Fixed build error by poppler-cpp
[platform/upstream/cups-filters.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cups-filters 1.0.36.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='cups-filters'
589 PACKAGE_TARNAME='cups-filters'
590 PACKAGE_VERSION='1.0.36'
591 PACKAGE_STRING='cups-filters 1.0.36'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 #  include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #  include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 SED_EXTENDED_REGEX_OPT
636 PHPDIR
637 PHPCONFIG
638 WITH_PHP_FALSE
639 WITH_PHP_TRUE
640 CUPS_ACROREAD
641 CUPS_PDFTOCAIRO
642 CUPS_PDFTOPS
643 CUPS_GHOSTSCRIPT
644 LARGEFILE
645 LIBQPDF_LIBS
646 LIBQPDF_CFLAGS
647 ZLIB_LIBS
648 ZLIB_CFLAGS
649 POPPLER_LIBS
650 POPPLER_CFLAGS
651 IJS_LIBS
652 IJS_CFLAGS
653 FONTCONFIG_LIBS
654 FONTCONFIG_CFLAGS
655 FREETYPE_LIBS
656 FREETYPE_CFLAGS
657 LCMS_LIBS
658 LCMS_CFLAGS
659 RCSTOP
660 RCSTART
661 RCLEVELS
662 INITDDIR
663 INITDIR
664 RCLINKS_FALSE
665 RCLINKS_TRUE
666 BROWSEREMOTEPROTOCOLS
667 AVAHI_GLIB_LIBS
668 AVAHI_GLIB_CFLAGS
669 GLIB_LIBS
670 GLIB_CFLAGS
671 AVAHI_CFLAGS
672 AVAHI_LIBS
673 ENABLE_AVAHI_FALSE
674 ENABLE_AVAHI_TRUE
675 PKGCONFIG
676 LIBTIFF_LIBS
677 LIBPNG_LIBS
678 LIBPNG_CFLAGS
679 LIBJPEG_LIBS
680 ENABLE_IMAGEFILTERS_FALSE
681 ENABLE_IMAGEFILTERS_TRUE
682 STRCASESTR
683 GETLINE
684 CUPS_DEFAULT_DOMAINSOCKET
685 CUPS_STATEDIR
686 DLOPEN_LIBS
687 BANNERTOPDF_DATADIR
688 CUPS_SERVERBIN
689 CUPS_FONTPATH
690 CUPS_SERVERROOT
691 CUPS_DATADIR
692 CUPS_LIBS
693 CUPS_CFLAGS
694 CUPSCONFIG
695 FONTDIR
696 PKG_CONFIG_LIBDIR
697 PKG_CONFIG_PATH
698 PKG_CONFIG
699 CXXCPP
700 OTOOL64
701 OTOOL
702 LIPO
703 NMEDIT
704 DSYMUTIL
705 MANIFEST_TOOL
706 RANLIB
707 ac_ct_AR
708 AR
709 DLLTOOL
710 OBJDUMP
711 NM
712 ac_ct_DUMPBIN
713 DUMPBIN
714 LD
715 FGREP
716 EGREP
717 GREP
718 SED
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 LIBTOOL
728 LN_S
729 CPP
730 am__fastdepCXX_FALSE
731 am__fastdepCXX_TRUE
732 CXXDEPMODE
733 ac_ct_CXX
734 CXXFLAGS
735 CXX
736 am__fastdepCC_FALSE
737 am__fastdepCC_TRUE
738 CCDEPMODE
739 am__nodep
740 AMDEPBACKSLASH
741 AMDEP_FALSE
742 AMDEP_TRUE
743 am__quote
744 am__include
745 DEPDIR
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
752 CC
753 AM_BACKSLASH
754 AM_DEFAULT_VERBOSITY
755 AM_DEFAULT_V
756 AM_V
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
762 AWK
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_silent_rules
822 enable_dependency_tracking
823 enable_shared
824 enable_static
825 with_pic
826 enable_fast_install
827 with_gnu_ld
828 with_sysroot
829 enable_libtool_lock
830 with_fontdir
831 with_cups_config
832 with_rundir
833 with_domainsocket
834 enable_imagefilters
835 with_jpeg
836 with_png
837 with_tiff
838 enable_avahi
839 with_avahi_libs
840 with_avahi_includes
841 with_browseremoteprotocols
842 with_rcdir
843 with_rclevels
844 with_rcstart
845 with_rcstop
846 enable_largefile
847 with_pdftops
848 with_gs_path
849 with_pdftops_path
850 with_pdftocairo_path
851 with_acroread_path
852 with_pdftops_maxres
853 with_php
854 with_php_config
855 with_test_font_path
856 enable_werror
857 '
858       ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CXX
867 CXXFLAGS
868 CCC
869 CPP
870 CXXCPP
871 PKG_CONFIG
872 PKG_CONFIG_PATH
873 PKG_CONFIG_LIBDIR
874 LIBPNG_CFLAGS
875 LIBPNG_LIBS
876 GLIB_CFLAGS
877 GLIB_LIBS
878 AVAHI_GLIB_CFLAGS
879 AVAHI_GLIB_LIBS
880 LCMS_CFLAGS
881 LCMS_LIBS
882 FREETYPE_CFLAGS
883 FREETYPE_LIBS
884 FONTCONFIG_CFLAGS
885 FONTCONFIG_LIBS
886 IJS_CFLAGS
887 IJS_LIBS
888 POPPLER_CFLAGS
889 POPPLER_LIBS
890 ZLIB_CFLAGS
891 ZLIB_LIBS
892 LIBQPDF_CFLAGS
893 LIBQPDF_LIBS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 ac_unrecognized_opts=
900 ac_unrecognized_sep=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
917
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948   # If the previous option needs an argument, assign it.
949   if test -n "$ac_prev"; then
950     eval $ac_prev=\$ac_option
951     ac_prev=
952     continue
953   fi
954
955   case $ac_option in
956   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957   *=)   ac_optarg= ;;
958   *)    ac_optarg=yes ;;
959   esac
960
961   # Accept the important Cygnus configure options, so we can diagnose typos.
962
963   case $ac_dashdash$ac_option in
964   --)
965     ac_dashdash=yes ;;
966
967   -bindir | --bindir | --bindi | --bind | --bin | --bi)
968     ac_prev=bindir ;;
969   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970     bindir=$ac_optarg ;;
971
972   -build | --build | --buil | --bui | --bu)
973     ac_prev=build_alias ;;
974   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975     build_alias=$ac_optarg ;;
976
977   -cache-file | --cache-file | --cache-fil | --cache-fi \
978   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979     ac_prev=cache_file ;;
980   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982     cache_file=$ac_optarg ;;
983
984   --config-cache | -C)
985     cache_file=config.cache ;;
986
987   -datadir | --datadir | --datadi | --datad)
988     ac_prev=datadir ;;
989   -datadir=* | --datadir=* | --datadi=* | --datad=*)
990     datadir=$ac_optarg ;;
991
992   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993   | --dataroo | --dataro | --datar)
994     ac_prev=datarootdir ;;
995   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997     datarootdir=$ac_optarg ;;
998
999   -disable-* | --disable-*)
1000     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003       as_fn_error $? "invalid feature name: $ac_useropt"
1004     ac_useropt_orig=$ac_useropt
1005     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006     case $ac_user_opts in
1007       *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011          ac_unrecognized_sep=', ';;
1012     esac
1013     eval enable_$ac_useropt=no ;;
1014
1015   -docdir | --docdir | --docdi | --doc | --do)
1016     ac_prev=docdir ;;
1017   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018     docdir=$ac_optarg ;;
1019
1020   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021     ac_prev=dvidir ;;
1022   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023     dvidir=$ac_optarg ;;
1024
1025   -enable-* | --enable-*)
1026     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027     # Reject names that are not valid shell variable names.
1028     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029       as_fn_error $? "invalid feature name: $ac_useropt"
1030     ac_useropt_orig=$ac_useropt
1031     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032     case $ac_user_opts in
1033       *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037          ac_unrecognized_sep=', ';;
1038     esac
1039     eval enable_$ac_useropt=\$ac_optarg ;;
1040
1041   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043   | --exec | --exe | --ex)
1044     ac_prev=exec_prefix ;;
1045   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047   | --exec=* | --exe=* | --ex=*)
1048     exec_prefix=$ac_optarg ;;
1049
1050   -gas | --gas | --ga | --g)
1051     # Obsolete; use --with-gas.
1052     with_gas=yes ;;
1053
1054   -help | --help | --hel | --he | -h)
1055     ac_init_help=long ;;
1056   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057     ac_init_help=recursive ;;
1058   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059     ac_init_help=short ;;
1060
1061   -host | --host | --hos | --ho)
1062     ac_prev=host_alias ;;
1063   -host=* | --host=* | --hos=* | --ho=*)
1064     host_alias=$ac_optarg ;;
1065
1066   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067     ac_prev=htmldir ;;
1068   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069   | --ht=*)
1070     htmldir=$ac_optarg ;;
1071
1072   -includedir | --includedir | --includedi | --included | --include \
1073   | --includ | --inclu | --incl | --inc)
1074     ac_prev=includedir ;;
1075   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076   | --includ=* | --inclu=* | --incl=* | --inc=*)
1077     includedir=$ac_optarg ;;
1078
1079   -infodir | --infodir | --infodi | --infod | --info | --inf)
1080     ac_prev=infodir ;;
1081   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082     infodir=$ac_optarg ;;
1083
1084   -libdir | --libdir | --libdi | --libd)
1085     ac_prev=libdir ;;
1086   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087     libdir=$ac_optarg ;;
1088
1089   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090   | --libexe | --libex | --libe)
1091     ac_prev=libexecdir ;;
1092   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093   | --libexe=* | --libex=* | --libe=*)
1094     libexecdir=$ac_optarg ;;
1095
1096   -localedir | --localedir | --localedi | --localed | --locale)
1097     ac_prev=localedir ;;
1098   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099     localedir=$ac_optarg ;;
1100
1101   -localstatedir | --localstatedir | --localstatedi | --localstated \
1102   | --localstate | --localstat | --localsta | --localst | --locals)
1103     ac_prev=localstatedir ;;
1104   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106     localstatedir=$ac_optarg ;;
1107
1108   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109     ac_prev=mandir ;;
1110   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111     mandir=$ac_optarg ;;
1112
1113   -nfp | --nfp | --nf)
1114     # Obsolete; use --without-fp.
1115     with_fp=no ;;
1116
1117   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118   | --no-cr | --no-c | -n)
1119     no_create=yes ;;
1120
1121   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123     no_recursion=yes ;;
1124
1125   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127   | --oldin | --oldi | --old | --ol | --o)
1128     ac_prev=oldincludedir ;;
1129   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132     oldincludedir=$ac_optarg ;;
1133
1134   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135     ac_prev=prefix ;;
1136   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137     prefix=$ac_optarg ;;
1138
1139   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140   | --program-pre | --program-pr | --program-p)
1141     ac_prev=program_prefix ;;
1142   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144     program_prefix=$ac_optarg ;;
1145
1146   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147   | --program-suf | --program-su | --program-s)
1148     ac_prev=program_suffix ;;
1149   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151     program_suffix=$ac_optarg ;;
1152
1153   -program-transform-name | --program-transform-name \
1154   | --program-transform-nam | --program-transform-na \
1155   | --program-transform-n | --program-transform- \
1156   | --program-transform | --program-transfor \
1157   | --program-transfo | --program-transf \
1158   | --program-trans | --program-tran \
1159   | --progr-tra | --program-tr | --program-t)
1160     ac_prev=program_transform_name ;;
1161   -program-transform-name=* | --program-transform-name=* \
1162   | --program-transform-nam=* | --program-transform-na=* \
1163   | --program-transform-n=* | --program-transform-=* \
1164   | --program-transform=* | --program-transfor=* \
1165   | --program-transfo=* | --program-transf=* \
1166   | --program-trans=* | --program-tran=* \
1167   | --progr-tra=* | --program-tr=* | --program-t=*)
1168     program_transform_name=$ac_optarg ;;
1169
1170   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171     ac_prev=pdfdir ;;
1172   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173     pdfdir=$ac_optarg ;;
1174
1175   -psdir | --psdir | --psdi | --psd | --ps)
1176     ac_prev=psdir ;;
1177   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178     psdir=$ac_optarg ;;
1179
1180   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181   | -silent | --silent | --silen | --sile | --sil)
1182     silent=yes ;;
1183
1184   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185     ac_prev=sbindir ;;
1186   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187   | --sbi=* | --sb=*)
1188     sbindir=$ac_optarg ;;
1189
1190   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192   | --sharedst | --shareds | --shared | --share | --shar \
1193   | --sha | --sh)
1194     ac_prev=sharedstatedir ;;
1195   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198   | --sha=* | --sh=*)
1199     sharedstatedir=$ac_optarg ;;
1200
1201   -site | --site | --sit)
1202     ac_prev=site ;;
1203   -site=* | --site=* | --sit=*)
1204     site=$ac_optarg ;;
1205
1206   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207     ac_prev=srcdir ;;
1208   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209     srcdir=$ac_optarg ;;
1210
1211   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212   | --syscon | --sysco | --sysc | --sys | --sy)
1213     ac_prev=sysconfdir ;;
1214   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216     sysconfdir=$ac_optarg ;;
1217
1218   -target | --target | --targe | --targ | --tar | --ta | --t)
1219     ac_prev=target_alias ;;
1220   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221     target_alias=$ac_optarg ;;
1222
1223   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224     verbose=yes ;;
1225
1226   -version | --version | --versio | --versi | --vers | -V)
1227     ac_init_version=: ;;
1228
1229   -with-* | --with-*)
1230     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231     # Reject names that are not valid shell variable names.
1232     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233       as_fn_error $? "invalid package name: $ac_useropt"
1234     ac_useropt_orig=$ac_useropt
1235     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236     case $ac_user_opts in
1237       *"
1238 "with_$ac_useropt"
1239 "*) ;;
1240       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241          ac_unrecognized_sep=', ';;
1242     esac
1243     eval with_$ac_useropt=\$ac_optarg ;;
1244
1245   -without-* | --without-*)
1246     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1247     # Reject names that are not valid shell variable names.
1248     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249       as_fn_error $? "invalid package name: $ac_useropt"
1250     ac_useropt_orig=$ac_useropt
1251     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252     case $ac_user_opts in
1253       *"
1254 "with_$ac_useropt"
1255 "*) ;;
1256       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257          ac_unrecognized_sep=', ';;
1258     esac
1259     eval with_$ac_useropt=no ;;
1260
1261   --x)
1262     # Obsolete; use --with-x.
1263     with_x=yes ;;
1264
1265   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266   | --x-incl | --x-inc | --x-in | --x-i)
1267     ac_prev=x_includes ;;
1268   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1270     x_includes=$ac_optarg ;;
1271
1272   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274     ac_prev=x_libraries ;;
1275   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1277     x_libraries=$ac_optarg ;;
1278
1279   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1280 Try \`$0 --help' for more information"
1281     ;;
1282
1283   *=*)
1284     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285     # Reject names that are not valid shell variable names.
1286     case $ac_envvar in #(
1287       '' | [0-9]* | *[!_$as_cr_alnum]* )
1288       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1289     esac
1290     eval $ac_envvar=\$ac_optarg
1291     export $ac_envvar ;;
1292
1293   *)
1294     # FIXME: should be removed in autoconf 3.0.
1295     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1296     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1297       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1298     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1299     ;;
1300
1301   esac
1302 done
1303
1304 if test -n "$ac_prev"; then
1305   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1306   as_fn_error $? "missing argument to $ac_option"
1307 fi
1308
1309 if test -n "$ac_unrecognized_opts"; then
1310   case $enable_option_checking in
1311     no) ;;
1312     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1313     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314   esac
1315 fi
1316
1317 # Check all directory arguments for consistency.
1318 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319                 datadir sysconfdir sharedstatedir localstatedir includedir \
1320                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321                 libdir localedir mandir
1322 do
1323   eval ac_val=\$$ac_var
1324   # Remove trailing slashes.
1325   case $ac_val in
1326     */ )
1327       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328       eval $ac_var=\$ac_val;;
1329   esac
1330   # Be sure to have absolute directory names.
1331   case $ac_val in
1332     [\\/$]* | ?:[\\/]* )  continue;;
1333     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334   esac
1335   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1336 done
1337
1338 # There might be people who depend on the old broken behavior: `$host'
1339 # used to hold the argument of --host etc.
1340 # FIXME: To remove some day.
1341 build=$build_alias
1342 host=$host_alias
1343 target=$target_alias
1344
1345 # FIXME: To remove some day.
1346 if test "x$host_alias" != x; then
1347   if test "x$build_alias" = x; then
1348     cross_compiling=maybe
1349   elif test "x$build_alias" != "x$host_alias"; then
1350     cross_compiling=yes
1351   fi
1352 fi
1353
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357 test "$silent" = yes && exec 6>/dev/null
1358
1359
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363   as_fn_error $? "working directory cannot be determined"
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365   as_fn_error $? "pwd does not report name of working directory"
1366
1367
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370   ac_srcdir_defaulted=yes
1371   # Try the directory containing this script, then the parent directory.
1372   ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374          X"$as_myself" : 'X\(//\)[^/]' \| \
1375          X"$as_myself" : 'X\(//\)$' \| \
1376          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\/\)[^/].*/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\/\)$/{
1387             s//\1/
1388             q
1389           }
1390           /^X\(\/\).*/{
1391             s//\1/
1392             q
1393           }
1394           s/.*/./; q'`
1395   srcdir=$ac_confdir
1396   if test ! -r "$srcdir/$ac_unique_file"; then
1397     srcdir=..
1398   fi
1399 else
1400   ac_srcdir_defaulted=no
1401 fi
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405 fi
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 ac_abs_confdir=`(
1408         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409         pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412   srcdir=.
1413 fi
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_env_${ac_var}_value=\$${ac_var}
1423   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1426
1427 #
1428 # Report the --help message.
1429 #
1430 if test "$ac_init_help" = "long"; then
1431   # Omit some internal or obsolete options to make the list less imposing.
1432   # This message is too long to be a string in the A/UX 3.1 sh.
1433   cat <<_ACEOF
1434 \`configure' configures cups-filters 1.0.36 to adapt to many kinds of systems.
1435
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE.  See below for descriptions of some of the useful variables.
1440
1441 Defaults for the options are specified in brackets.
1442
1443 Configuration:
1444   -h, --help              display this help and exit
1445       --help=short        display options specific to this package
1446       --help=recursive    display the short help of all the included packages
1447   -V, --version           display version information and exit
1448   -q, --quiet, --silent   do not print \`checking ...' messages
1449       --cache-file=FILE   cache test results in FILE [disabled]
1450   -C, --config-cache      alias for \`--cache-file=config.cache'
1451   -n, --no-create         do not create output files
1452       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1453
1454 Installation directories:
1455   --prefix=PREFIX         install architecture-independent files in PREFIX
1456                           [$ac_default_prefix]
1457   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1458                           [PREFIX]
1459
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1464
1465 For better control, use the options below.
1466
1467 Fine tuning of the installation directories:
1468   --bindir=DIR            user executables [EPREFIX/bin]
1469   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1470   --libexecdir=DIR        program executables [EPREFIX/libexec]
1471   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1472   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1473   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1474   --libdir=DIR            object code libraries [EPREFIX/lib]
1475   --includedir=DIR        C header files [PREFIX/include]
1476   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1477   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1478   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1479   --infodir=DIR           info documentation [DATAROOTDIR/info]
1480   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1481   --mandir=DIR            man documentation [DATAROOTDIR/man]
1482   --docdir=DIR            documentation root [DATAROOTDIR/doc/cups-filters]
1483   --htmldir=DIR           html documentation [DOCDIR]
1484   --dvidir=DIR            dvi documentation [DOCDIR]
1485   --pdfdir=DIR            pdf documentation [DOCDIR]
1486   --psdir=DIR             ps documentation [DOCDIR]
1487 _ACEOF
1488
1489   cat <<\_ACEOF
1490
1491 Program names:
1492   --program-prefix=PREFIX            prepend PREFIX to installed program names
1493   --program-suffix=SUFFIX            append SUFFIX to installed program names
1494   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1495
1496 System types:
1497   --build=BUILD     configure for building on BUILD [guessed]
1498   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503   case $ac_init_help in
1504      short | recursive ) echo "Configuration of cups-filters 1.0.36:";;
1505    esac
1506   cat <<\_ACEOF
1507
1508 Optional Features:
1509   --disable-option-checking  ignore unrecognized --enable/--with options
1510   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1511   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1512   --enable-silent-rules          less verbose build output (undo: `make V=1')
1513   --disable-silent-rules         verbose build output (undo: `make V=0')
1514   --disable-dependency-tracking  speeds up one-time build
1515   --enable-dependency-tracking   do not reject slow dependency extractors
1516   --enable-shared[=PKGS]  build shared libraries [default=yes]
1517   --enable-static[=PKGS]  build static libraries [default=yes]
1518   --enable-fast-install[=PKGS]
1519                           optimize for fast installation [default=yes]
1520   --disable-libtool-lock  avoid locking (might break parallel builds)
1521   --disable-imagefilters  Build the image filters.
1522   --disable-avahi         Disable DNS Service Discovery support using Avahi.
1523   --disable-largefile     omit support for large files
1524   --enable-werror         Treat all warnings as errors, useful for
1525                           development.
1526
1527 Optional Packages:
1528   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1529   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1530   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1531                           both]
1532   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1533   --with-sysroot=DIR Search for dependent libraries within DIR
1534                         (or the compiler's sysroot if not specified).
1535   --with-fontdir=path     Specify path to font config directory (default:
1536                           fonts/conf.d/).
1537   --with-cups-config=path Specify path to cups-config executable.
1538   --with-cups-rundir           set transient run-time state directory of CUPS
1539   --with-cups-domainsocket     set unix domain socket name used by CUPS
1540
1541   --without-jpeg          Disable jpeg support.
1542   --without-png           Disable png support.
1543   --without-tiff          Disable tiff support.
1544   --with-avahi-libs       Set directory for Avahi library.
1545   --with-avahi-includes   Set directory for Avahi includes
1546   --with-browseremoteprotocols=value
1547                           Set which protocols to listen for in cups-browsed
1548                           (default: dnssd cups)
1549   --with-rcdir            Set path for rc scripts
1550   --with-rclevels         Set run levels for rc scripts
1551   --with-rcstart          Set start number for rc scripts
1552   --with-rcstop           Set stop number for rc scripts
1553   --with-pdftops=value    Set which pdftops to use
1554                           (gs,pdftops,pdftocairo,acroread).
1555   --with-gs-path=value    Set path to ghostcript binary (default: system).
1556   --with-pdftops-path=value
1557                           Set path to pdftops/ghostscript binary (default:
1558                           system).
1559   --with-pdftocairo-path=value
1560                           Set path to pdftocairo binary (default: system).
1561   --with-acroread-path=value
1562                           Set path to acroread binary (default: system).
1563   --with-pdftops-maxres=value
1564                           Set maximum image rendering resolution for pdftops
1565                           filter (0, 75, 150, 300, 600, 1200, 2400, 4800, 90,
1566                           180, 360, 720, 1440, 2880, 5760, unlimited).
1567                           Default: 1440
1568   --with-php              Determine whether to build php cups extension.
1569   --with-php-config=path  Specify path to php-config executable.
1570   --with-test-font-path=value
1571                           Set path to pdftops/ghostscript binary (default:
1572                           /usr/share/fonts/dejavu/DejaVuSans.ttf).
1573
1574 Some influential environment variables:
1575   CC          C compiler command
1576   CFLAGS      C compiler flags
1577   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1578               nonstandard directory <lib dir>
1579   LIBS        libraries to pass to the linker, e.g. -l<library>
1580   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581               you have headers in a nonstandard directory <include dir>
1582   CXX         C++ compiler command
1583   CXXFLAGS    C++ compiler flags
1584   CPP         C preprocessor
1585   CXXCPP      C++ preprocessor
1586   PKG_CONFIG  path to pkg-config utility
1587   PKG_CONFIG_PATH
1588               directories to add to pkg-config's search path
1589   PKG_CONFIG_LIBDIR
1590               path overriding pkg-config's built-in search path
1591   LIBPNG_CFLAGS
1592               C compiler flags for LIBPNG, overriding pkg-config
1593   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1594   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1595   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1596   AVAHI_GLIB_CFLAGS
1597               C compiler flags for AVAHI_GLIB, overriding pkg-config
1598   AVAHI_GLIB_LIBS
1599               linker flags for AVAHI_GLIB, overriding pkg-config
1600   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
1601   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
1602   FREETYPE_CFLAGS
1603               C compiler flags for FREETYPE, overriding pkg-config
1604   FREETYPE_LIBS
1605               linker flags for FREETYPE, overriding pkg-config
1606   FONTCONFIG_CFLAGS
1607               C compiler flags for FONTCONFIG, overriding pkg-config
1608   FONTCONFIG_LIBS
1609               linker flags for FONTCONFIG, overriding pkg-config
1610   IJS_CFLAGS  C compiler flags for IJS, overriding pkg-config
1611   IJS_LIBS    linker flags for IJS, overriding pkg-config
1612   POPPLER_CFLAGS
1613               C compiler flags for POPPLER, overriding pkg-config
1614   POPPLER_LIBS
1615               linker flags for POPPLER, overriding pkg-config
1616   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1617   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1618   LIBQPDF_CFLAGS
1619               C compiler flags for LIBQPDF, overriding pkg-config
1620   LIBQPDF_LIBS
1621               linker flags for LIBQPDF, overriding pkg-config
1622
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1625
1626 Report bugs to the package provider.
1627 _ACEOF
1628 ac_status=$?
1629 fi
1630
1631 if test "$ac_init_help" = "recursive"; then
1632   # If there are subdirs, report their specific --help.
1633   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634     test -d "$ac_dir" ||
1635       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636       continue
1637     ac_builddir=.
1638
1639 case "$ac_dir" in
1640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *)
1642   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643   # A ".." for each directory in $ac_dir_suffix.
1644   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645   case $ac_top_builddir_sub in
1646   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648   esac ;;
1649 esac
1650 ac_abs_top_builddir=$ac_pwd
1651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652 # for backward compatibility:
1653 ac_top_builddir=$ac_top_build_prefix
1654
1655 case $srcdir in
1656   .)  # We are building in place.
1657     ac_srcdir=.
1658     ac_top_srcdir=$ac_top_builddir_sub
1659     ac_abs_top_srcdir=$ac_pwd ;;
1660   [\\/]* | ?:[\\/]* )  # Absolute name.
1661     ac_srcdir=$srcdir$ac_dir_suffix;
1662     ac_top_srcdir=$srcdir
1663     ac_abs_top_srcdir=$srcdir ;;
1664   *) # Relative name.
1665     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666     ac_top_srcdir=$ac_top_build_prefix$srcdir
1667     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 esac
1669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670
1671     cd "$ac_dir" || { ac_status=$?; continue; }
1672     # Check for guested configure.
1673     if test -f "$ac_srcdir/configure.gnu"; then
1674       echo &&
1675       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676     elif test -f "$ac_srcdir/configure"; then
1677       echo &&
1678       $SHELL "$ac_srcdir/configure" --help=recursive
1679     else
1680       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681     fi || ac_status=$?
1682     cd "$ac_pwd" || { ac_status=$?; break; }
1683   done
1684 fi
1685
1686 test -n "$ac_init_help" && exit $ac_status
1687 if $ac_init_version; then
1688   cat <<\_ACEOF
1689 cups-filters configure 1.0.36
1690 generated by GNU Autoconf 2.69
1691
1692 Copyright (C) 2012 Free Software Foundation, Inc.
1693 This configure script is free software; the Free Software Foundation
1694 gives unlimited permission to copy, distribute and modify it.
1695 _ACEOF
1696   exit
1697 fi
1698
1699 ## ------------------------ ##
1700 ## Autoconf initialization. ##
1701 ## ------------------------ ##
1702
1703 # ac_fn_c_try_compile LINENO
1704 # --------------------------
1705 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_compile ()
1707 {
1708   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709   rm -f conftest.$ac_objext
1710   if { { ac_try="$ac_compile"
1711 case "(($ac_try" in
1712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713   *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717   (eval "$ac_compile") 2>conftest.err
1718   ac_status=$?
1719   if test -s conftest.err; then
1720     grep -v '^ *+' conftest.err >conftest.er1
1721     cat conftest.er1 >&5
1722     mv -f conftest.er1 conftest.err
1723   fi
1724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; } && {
1726          test -z "$ac_c_werror_flag" ||
1727          test ! -s conftest.err
1728        } && test -s conftest.$ac_objext; then :
1729   ac_retval=0
1730 else
1731   $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734         ac_retval=1
1735 fi
1736   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737   as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_compile
1740
1741 # ac_fn_cxx_try_compile LINENO
1742 # ----------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_cxx_try_compile ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   rm -f conftest.$ac_objext
1748   if { { ac_try="$ac_compile"
1749 case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_compile") 2>conftest.err
1756   ac_status=$?
1757   if test -s conftest.err; then
1758     grep -v '^ *+' conftest.err >conftest.er1
1759     cat conftest.er1 >&5
1760     mv -f conftest.er1 conftest.err
1761   fi
1762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763   test $ac_status = 0; } && {
1764          test -z "$ac_cxx_werror_flag" ||
1765          test ! -s conftest.err
1766        } && test -s conftest.$ac_objext; then :
1767   ac_retval=0
1768 else
1769   $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772         ac_retval=1
1773 fi
1774   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775   as_fn_set_status $ac_retval
1776
1777 } # ac_fn_cxx_try_compile
1778
1779 # ac_fn_c_try_cpp LINENO
1780 # ----------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_cpp ()
1783 {
1784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785   if { { ac_try="$ac_cpp conftest.$ac_ext"
1786 case "(($ac_try" in
1787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788   *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793   ac_status=$?
1794   if test -s conftest.err; then
1795     grep -v '^ *+' conftest.err >conftest.er1
1796     cat conftest.er1 >&5
1797     mv -f conftest.er1 conftest.err
1798   fi
1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800   test $ac_status = 0; } > conftest.i && {
1801          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802          test ! -s conftest.err
1803        }; then :
1804   ac_retval=0
1805 else
1806   $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809     ac_retval=1
1810 fi
1811   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812   as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_cpp
1815
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_link ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   rm -f conftest.$ac_objext conftest$ac_exeext
1823   if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_link") 2>conftest.err
1831   ac_status=$?
1832   if test -s conftest.err; then
1833     grep -v '^ *+' conftest.err >conftest.er1
1834     cat conftest.er1 >&5
1835     mv -f conftest.er1 conftest.err
1836   fi
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && {
1839          test -z "$ac_c_werror_flag" ||
1840          test ! -s conftest.err
1841        } && test -s conftest$ac_exeext && {
1842          test "$cross_compiling" = yes ||
1843          test -x conftest$ac_exeext
1844        }; then :
1845   ac_retval=0
1846 else
1847   $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850         ac_retval=1
1851 fi
1852   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854   # interfere with the next link command; also delete a directory that is
1855   # left behind by Apple's compiler.  We do this before executing the actions.
1856   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858   as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_link
1861
1862 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1863 # -------------------------------------------------------
1864 # Tests whether HEADER exists and can be compiled using the include files in
1865 # INCLUDES, setting the cache variable VAR accordingly.
1866 ac_fn_c_check_header_compile ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872   $as_echo_n "(cached) " >&6
1873 else
1874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h.  */
1876 $4
1877 #include <$2>
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880   eval "$3=yes"
1881 else
1882   eval "$3=no"
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_header_compile
1892
1893 # ac_fn_c_try_run LINENO
1894 # ----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1896 # that executables *can* be run.
1897 ac_fn_c_try_run ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903   *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907   (eval "$ac_link") 2>&5
1908   ac_status=$?
1909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1911   { { case "(($ac_try" in
1912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913   *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917   (eval "$ac_try") 2>&5
1918   ac_status=$?
1919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920   test $ac_status = 0; }; }; then :
1921   ac_retval=0
1922 else
1923   $as_echo "$as_me: program exited with status $ac_status" >&5
1924        $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927        ac_retval=$ac_status
1928 fi
1929   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931   as_fn_set_status $ac_retval
1932
1933 } # ac_fn_c_try_run
1934
1935 # ac_fn_c_check_func LINENO FUNC VAR
1936 # ----------------------------------
1937 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1938 ac_fn_c_check_func ()
1939 {
1940   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944   $as_echo_n "(cached) " >&6
1945 else
1946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1950 #define $2 innocuous_$2
1951
1952 /* System header to define __stub macros and hopefully few prototypes,
1953     which can conflict with char $2 (); below.
1954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1955     <limits.h> exists even on freestanding compilers.  */
1956
1957 #ifdef __STDC__
1958 # include <limits.h>
1959 #else
1960 # include <assert.h>
1961 #endif
1962
1963 #undef $2
1964
1965 /* Override any GCC internal prototype to avoid an error.
1966    Use char because int might match the return type of a GCC
1967    builtin and then its argument prototype would still apply.  */
1968 #ifdef __cplusplus
1969 extern "C"
1970 #endif
1971 char $2 ();
1972 /* The GNU C library defines this for functions which it implements
1973     to always fail with ENOSYS.  Some functions are actually named
1974     something starting with __ and the normal name is an alias.  */
1975 #if defined __stub_$2 || defined __stub___$2
1976 choke me
1977 #endif
1978
1979 int
1980 main ()
1981 {
1982 return $2 ();
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_link "$LINENO"; then :
1988   eval "$3=yes"
1989 else
1990   eval "$3=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext \
1993     conftest$ac_exeext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$3
1996                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_func
2001
2002 # ac_fn_cxx_try_cpp LINENO
2003 # ------------------------
2004 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2005 ac_fn_cxx_try_cpp ()
2006 {
2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008   if { { ac_try="$ac_cpp conftest.$ac_ext"
2009 case "(($ac_try" in
2010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011   *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2016   ac_status=$?
2017   if test -s conftest.err; then
2018     grep -v '^ *+' conftest.err >conftest.er1
2019     cat conftest.er1 >&5
2020     mv -f conftest.er1 conftest.err
2021   fi
2022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023   test $ac_status = 0; } > conftest.i && {
2024          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2025          test ! -s conftest.err
2026        }; then :
2027   ac_retval=0
2028 else
2029   $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2031
2032     ac_retval=1
2033 fi
2034   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035   as_fn_set_status $ac_retval
2036
2037 } # ac_fn_cxx_try_cpp
2038
2039 # ac_fn_cxx_try_link LINENO
2040 # -------------------------
2041 # Try to link conftest.$ac_ext, and return whether this succeeded.
2042 ac_fn_cxx_try_link ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   rm -f conftest.$ac_objext conftest$ac_exeext
2046   if { { ac_try="$ac_link"
2047 case "(($ac_try" in
2048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049   *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053   (eval "$ac_link") 2>conftest.err
2054   ac_status=$?
2055   if test -s conftest.err; then
2056     grep -v '^ *+' conftest.err >conftest.er1
2057     cat conftest.er1 >&5
2058     mv -f conftest.er1 conftest.err
2059   fi
2060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061   test $ac_status = 0; } && {
2062          test -z "$ac_cxx_werror_flag" ||
2063          test ! -s conftest.err
2064        } && test -s conftest$ac_exeext && {
2065          test "$cross_compiling" = yes ||
2066          test -x conftest$ac_exeext
2067        }; then :
2068   ac_retval=0
2069 else
2070   $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073         ac_retval=1
2074 fi
2075   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2076   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2077   # interfere with the next link command; also delete a directory that is
2078   # left behind by Apple's compiler.  We do this before executing the actions.
2079   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2080   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081   as_fn_set_status $ac_retval
2082
2083 } # ac_fn_cxx_try_link
2084
2085 # ac_fn_cxx_check_func LINENO FUNC VAR
2086 # ------------------------------------
2087 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2088 ac_fn_cxx_check_func ()
2089 {
2090   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \${$3+:} false; then :
2094   $as_echo_n "(cached) " >&6
2095 else
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2100 #define $2 innocuous_$2
2101
2102 /* System header to define __stub macros and hopefully few prototypes,
2103     which can conflict with char $2 (); below.
2104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2105     <limits.h> exists even on freestanding compilers.  */
2106
2107 #ifdef __STDC__
2108 # include <limits.h>
2109 #else
2110 # include <assert.h>
2111 #endif
2112
2113 #undef $2
2114
2115 /* Override any GCC internal prototype to avoid an error.
2116    Use char because int might match the return type of a GCC
2117    builtin and then its argument prototype would still apply.  */
2118 #ifdef __cplusplus
2119 extern "C"
2120 #endif
2121 char $2 ();
2122 /* The GNU C library defines this for functions which it implements
2123     to always fail with ENOSYS.  Some functions are actually named
2124     something starting with __ and the normal name is an alias.  */
2125 #if defined __stub_$2 || defined __stub___$2
2126 choke me
2127 #endif
2128
2129 int
2130 main ()
2131 {
2132 return $2 ();
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_cxx_try_link "$LINENO"; then :
2138   eval "$3=yes"
2139 else
2140   eval "$3=no"
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext \
2143     conftest$ac_exeext conftest.$ac_ext
2144 fi
2145 eval ac_res=\$$3
2146                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149
2150 } # ac_fn_cxx_check_func
2151
2152 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2153 # ---------------------------------------------------------
2154 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2155 # the include files in INCLUDES and setting the cache variable VAR
2156 # accordingly.
2157 ac_fn_cxx_check_header_mongrel ()
2158 {
2159   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160   if eval \${$3+:} false; then :
2161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if eval \${$3+:} false; then :
2164   $as_echo_n "(cached) " >&6
2165 fi
2166 eval ac_res=\$$3
2167                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 else
2170   # Is the header compilable?
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2172 $as_echo_n "checking $2 usability... " >&6; }
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 #include <$2>
2177 _ACEOF
2178 if ac_fn_cxx_try_compile "$LINENO"; then :
2179   ac_header_compiler=yes
2180 else
2181   ac_header_compiler=no
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2185 $as_echo "$ac_header_compiler" >&6; }
2186
2187 # Is the header present?
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2189 $as_echo_n "checking $2 presence... " >&6; }
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h.  */
2192 #include <$2>
2193 _ACEOF
2194 if ac_fn_cxx_try_cpp "$LINENO"; then :
2195   ac_header_preproc=yes
2196 else
2197   ac_header_preproc=no
2198 fi
2199 rm -f conftest.err conftest.i conftest.$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2201 $as_echo "$ac_header_preproc" >&6; }
2202
2203 # So?  What about this header?
2204 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2205   yes:no: )
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2207 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2208     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210     ;;
2211   no:yes:* )
2212     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2213 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2214     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2215 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2216     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2217 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2218     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2219 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2220     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2221 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2222     ;;
2223 esac
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if eval \${$3+:} false; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   eval "$3=\$ac_header_compiler"
2230 fi
2231 eval ac_res=\$$3
2232                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 fi
2235   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236
2237 } # ac_fn_cxx_check_header_mongrel
2238
2239 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2240 # ---------------------------------------------
2241 # Tests whether TYPE exists after having included INCLUDES, setting cache
2242 # variable VAR accordingly.
2243 ac_fn_cxx_check_type ()
2244 {
2245   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval \${$3+:} false; then :
2249   $as_echo_n "(cached) " >&6
2250 else
2251   eval "$3=no"
2252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 $4
2255 int
2256 main ()
2257 {
2258 if (sizeof ($2))
2259          return 0;
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_cxx_try_compile "$LINENO"; then :
2265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h.  */
2267 $4
2268 int
2269 main ()
2270 {
2271 if (sizeof (($2)))
2272             return 0;
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_cxx_try_compile "$LINENO"; then :
2278
2279 else
2280   eval "$3=yes"
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 eval ac_res=\$$3
2287                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290
2291 } # ac_fn_cxx_check_type
2292 cat >config.log <<_ACEOF
2293 This file contains any messages produced by compilers while
2294 running configure, to aid debugging if configure makes a mistake.
2295
2296 It was created by cups-filters $as_me 1.0.36, which was
2297 generated by GNU Autoconf 2.69.  Invocation command line was
2298
2299   $ $0 $@
2300
2301 _ACEOF
2302 exec 5>>config.log
2303 {
2304 cat <<_ASUNAME
2305 ## --------- ##
2306 ## Platform. ##
2307 ## --------- ##
2308
2309 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2310 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2311 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2312 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2313 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2314
2315 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2316 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2317
2318 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2319 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2320 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2321 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2322 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2323 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2324 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2325
2326 _ASUNAME
2327
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333     $as_echo "PATH: $as_dir"
2334   done
2335 IFS=$as_save_IFS
2336
2337 } >&5
2338
2339 cat >&5 <<_ACEOF
2340
2341
2342 ## ----------- ##
2343 ## Core tests. ##
2344 ## ----------- ##
2345
2346 _ACEOF
2347
2348
2349 # Keep a trace of the command line.
2350 # Strip out --no-create and --no-recursion so they do not pile up.
2351 # Strip out --silent because we don't want to record it for future runs.
2352 # Also quote any args containing shell meta-characters.
2353 # Make two passes to allow for proper duplicate-argument suppression.
2354 ac_configure_args=
2355 ac_configure_args0=
2356 ac_configure_args1=
2357 ac_must_keep_next=false
2358 for ac_pass in 1 2
2359 do
2360   for ac_arg
2361   do
2362     case $ac_arg in
2363     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2364     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2365     | -silent | --silent | --silen | --sile | --sil)
2366       continue ;;
2367     *\'*)
2368       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2369     esac
2370     case $ac_pass in
2371     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2372     2)
2373       as_fn_append ac_configure_args1 " '$ac_arg'"
2374       if test $ac_must_keep_next = true; then
2375         ac_must_keep_next=false # Got value, back to normal.
2376       else
2377         case $ac_arg in
2378           *=* | --config-cache | -C | -disable-* | --disable-* \
2379           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2380           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2381           | -with-* | --with-* | -without-* | --without-* | --x)
2382             case "$ac_configure_args0 " in
2383               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2384             esac
2385             ;;
2386           -* ) ac_must_keep_next=true ;;
2387         esac
2388       fi
2389       as_fn_append ac_configure_args " '$ac_arg'"
2390       ;;
2391     esac
2392   done
2393 done
2394 { ac_configure_args0=; unset ac_configure_args0;}
2395 { ac_configure_args1=; unset ac_configure_args1;}
2396
2397 # When interrupted or exit'd, cleanup temporary files, and complete
2398 # config.log.  We remove comments because anyway the quotes in there
2399 # would cause problems or look ugly.
2400 # WARNING: Use '\'' to represent an apostrophe within the trap.
2401 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2402 trap 'exit_status=$?
2403   # Save into config.log some information that might help in debugging.
2404   {
2405     echo
2406
2407     $as_echo "## ---------------- ##
2408 ## Cache variables. ##
2409 ## ---------------- ##"
2410     echo
2411     # The following way of writing the cache mishandles newlines in values,
2412 (
2413   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2414     eval ac_val=\$$ac_var
2415     case $ac_val in #(
2416     *${as_nl}*)
2417       case $ac_var in #(
2418       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2420       esac
2421       case $ac_var in #(
2422       _ | IFS | as_nl) ;; #(
2423       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2424       *) { eval $ac_var=; unset $ac_var;} ;;
2425       esac ;;
2426     esac
2427   done
2428   (set) 2>&1 |
2429     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2430     *${as_nl}ac_space=\ *)
2431       sed -n \
2432         "s/'\''/'\''\\\\'\'''\''/g;
2433           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2434       ;; #(
2435     *)
2436       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2437       ;;
2438     esac |
2439     sort
2440 )
2441     echo
2442
2443     $as_echo "## ----------------- ##
2444 ## Output variables. ##
2445 ## ----------------- ##"
2446     echo
2447     for ac_var in $ac_subst_vars
2448     do
2449       eval ac_val=\$$ac_var
2450       case $ac_val in
2451       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452       esac
2453       $as_echo "$ac_var='\''$ac_val'\''"
2454     done | sort
2455     echo
2456
2457     if test -n "$ac_subst_files"; then
2458       $as_echo "## ------------------- ##
2459 ## File substitutions. ##
2460 ## ------------------- ##"
2461       echo
2462       for ac_var in $ac_subst_files
2463       do
2464         eval ac_val=\$$ac_var
2465         case $ac_val in
2466         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467         esac
2468         $as_echo "$ac_var='\''$ac_val'\''"
2469       done | sort
2470       echo
2471     fi
2472
2473     if test -s confdefs.h; then
2474       $as_echo "## ----------- ##
2475 ## confdefs.h. ##
2476 ## ----------- ##"
2477       echo
2478       cat confdefs.h
2479       echo
2480     fi
2481     test "$ac_signal" != 0 &&
2482       $as_echo "$as_me: caught signal $ac_signal"
2483     $as_echo "$as_me: exit $exit_status"
2484   } >&5
2485   rm -f core *.core core.conftest.* &&
2486     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2487     exit $exit_status
2488 ' 0
2489 for ac_signal in 1 2 13 15; do
2490   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2491 done
2492 ac_signal=0
2493
2494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2495 rm -f -r conftest* confdefs.h
2496
2497 $as_echo "/* confdefs.h */" > confdefs.h
2498
2499 # Predefined preprocessor variables.
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_NAME "$PACKAGE_NAME"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_STRING "$PACKAGE_STRING"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_URL "$PACKAGE_URL"
2523 _ACEOF
2524
2525
2526 # Let the site file select an alternate cache file if it wants to.
2527 # Prefer an explicitly selected file to automatically selected ones.
2528 ac_site_file1=NONE
2529 ac_site_file2=NONE
2530 if test -n "$CONFIG_SITE"; then
2531   # We do not want a PATH search for config.site.
2532   case $CONFIG_SITE in #((
2533     -*)  ac_site_file1=./$CONFIG_SITE;;
2534     */*) ac_site_file1=$CONFIG_SITE;;
2535     *)   ac_site_file1=./$CONFIG_SITE;;
2536   esac
2537 elif test "x$prefix" != xNONE; then
2538   ac_site_file1=$prefix/share/config.site
2539   ac_site_file2=$prefix/etc/config.site
2540 else
2541   ac_site_file1=$ac_default_prefix/share/config.site
2542   ac_site_file2=$ac_default_prefix/etc/config.site
2543 fi
2544 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2545 do
2546   test "x$ac_site_file" = xNONE && continue
2547   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2548     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2549 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2550     sed 's/^/| /' "$ac_site_file" >&5
2551     . "$ac_site_file" \
2552       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 as_fn_error $? "failed to load site script $ac_site_file
2555 See \`config.log' for more details" "$LINENO" 5; }
2556   fi
2557 done
2558
2559 if test -r "$cache_file"; then
2560   # Some versions of bash will fail to source /dev/null (special files
2561   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2562   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2563     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2564 $as_echo "$as_me: loading cache $cache_file" >&6;}
2565     case $cache_file in
2566       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2567       *)                      . "./$cache_file";;
2568     esac
2569   fi
2570 else
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2572 $as_echo "$as_me: creating cache $cache_file" >&6;}
2573   >$cache_file
2574 fi
2575
2576 # Check that the precious variables saved in the cache have kept the same
2577 # value.
2578 ac_cache_corrupted=false
2579 for ac_var in $ac_precious_vars; do
2580   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2581   eval ac_new_set=\$ac_env_${ac_var}_set
2582   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2583   eval ac_new_val=\$ac_env_${ac_var}_value
2584   case $ac_old_set,$ac_new_set in
2585     set,)
2586       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2587 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2588       ac_cache_corrupted=: ;;
2589     ,set)
2590       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2591 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2592       ac_cache_corrupted=: ;;
2593     ,);;
2594     *)
2595       if test "x$ac_old_val" != "x$ac_new_val"; then
2596         # differences in whitespace do not lead to failure.
2597         ac_old_val_w=`echo x $ac_old_val`
2598         ac_new_val_w=`echo x $ac_new_val`
2599         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2600           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2601 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2602           ac_cache_corrupted=:
2603         else
2604           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2605 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2606           eval $ac_var=\$ac_old_val
2607         fi
2608         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2609 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2610         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2611 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2612       fi;;
2613   esac
2614   # Pass precious variables to config.status.
2615   if test "$ac_new_set" = set; then
2616     case $ac_new_val in
2617     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2618     *) ac_arg=$ac_var=$ac_new_val ;;
2619     esac
2620     case " $ac_configure_args " in
2621       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2622       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2623     esac
2624   fi
2625 done
2626 if $ac_cache_corrupted; then
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2630 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2631   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2632 fi
2633 ## -------------------- ##
2634 ## Main body of script. ##
2635 ## -------------------- ##
2636
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642
2643
2644
2645
2646
2647
2648 # ===========================================================================
2649 #    http://www.gnu.org/software/autoconf-archive/ax_compare_version.html
2650 # ===========================================================================
2651 #
2652 # SYNOPSIS
2653 #
2654 #   AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
2655 #
2656 # DESCRIPTION
2657 #
2658 #   This macro compares two version strings. Due to the various number of
2659 #   minor-version numbers that can exist, and the fact that string
2660 #   comparisons are not compatible with numeric comparisons, this is not
2661 #   necessarily trivial to do in a autoconf script. This macro makes doing
2662 #   these comparisons easy.
2663 #
2664 #   The six basic comparisons are available, as well as checking equality
2665 #   limited to a certain number of minor-version levels.
2666 #
2667 #   The operator OP determines what type of comparison to do, and can be one
2668 #   of:
2669 #
2670 #    eq  - equal (test A == B)
2671 #    ne  - not equal (test A != B)
2672 #    le  - less than or equal (test A <= B)
2673 #    ge  - greater than or equal (test A >= B)
2674 #    lt  - less than (test A < B)
2675 #    gt  - greater than (test A > B)
2676 #
2677 #   Additionally, the eq and ne operator can have a number after it to limit
2678 #   the test to that number of minor versions.
2679 #
2680 #    eq0 - equal up to the length of the shorter version
2681 #    ne0 - not equal up to the length of the shorter version
2682 #    eqN - equal up to N sub-version levels
2683 #    neN - not equal up to N sub-version levels
2684 #
2685 #   When the condition is true, shell commands ACTION-IF-TRUE are run,
2686 #   otherwise shell commands ACTION-IF-FALSE are run. The environment
2687 #   variable 'ax_compare_version' is always set to either 'true' or 'false'
2688 #   as well.
2689 #
2690 #   Examples:
2691 #
2692 #     AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8])
2693 #     AX_COMPARE_VERSION([3.15],[lt],[3.15.8])
2694 #
2695 #   would both be true.
2696 #
2697 #     AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8])
2698 #     AX_COMPARE_VERSION([3.15],[gt],[3.15.8])
2699 #
2700 #   would both be false.
2701 #
2702 #     AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8])
2703 #
2704 #   would be true because it is only comparing two minor versions.
2705 #
2706 #     AX_COMPARE_VERSION([3.15.7],[eq0],[3.15])
2707 #
2708 #   would be true because it is only comparing the lesser number of minor
2709 #   versions of the two values.
2710 #
2711 #   Note: The characters that separate the version numbers do not matter. An
2712 #   empty string is the same as version 0. OP is evaluated by autoconf, not
2713 #   configure, so must be a string, not a variable.
2714 #
2715 #   The author would like to acknowledge Guido Draheim whose advice about
2716 #   the m4_case and m4_ifvaln functions make this macro only include the
2717 #   portions necessary to perform the specific comparison specified by the
2718 #   OP argument in the final configure script.
2719 #
2720 # LICENSE
2721 #
2722 #   Copyright (c) 2008 Tim Toolan <toolan@ele.uri.edu>
2723 #
2724 #   Copying and distribution of this file, with or without modification, are
2725 #   permitted in any medium without royalty provided the copyright notice
2726 #   and this notice are preserved. This file is offered as-is, without any
2727 #   warranty.
2728
2729 #serial 11
2730
2731
2732 am__api_version='1.11'
2733
2734 ac_aux_dir=
2735 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736   if test -f "$ac_dir/install-sh"; then
2737     ac_aux_dir=$ac_dir
2738     ac_install_sh="$ac_aux_dir/install-sh -c"
2739     break
2740   elif test -f "$ac_dir/install.sh"; then
2741     ac_aux_dir=$ac_dir
2742     ac_install_sh="$ac_aux_dir/install.sh -c"
2743     break
2744   elif test -f "$ac_dir/shtool"; then
2745     ac_aux_dir=$ac_dir
2746     ac_install_sh="$ac_aux_dir/shtool install -c"
2747     break
2748   fi
2749 done
2750 if test -z "$ac_aux_dir"; then
2751   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2752 fi
2753
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2759 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2760 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2761
2762
2763 # Find a good install program.  We prefer a C program (faster),
2764 # so one script is as good as another.  But avoid the broken or
2765 # incompatible versions:
2766 # SysV /etc/install, /usr/sbin/install
2767 # SunOS /usr/etc/install
2768 # IRIX /sbin/install
2769 # AIX /bin/install
2770 # AmigaOS /C/install, which installs bootblocks on floppy discs
2771 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2772 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2773 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2774 # OS/2's system install, which has a completely different semantic
2775 # ./install, which can be erroneously created by make from ./install.sh.
2776 # Reject install programs that cannot install multiple files.
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2778 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2779 if test -z "$INSTALL"; then
2780 if ${ac_cv_path_install+:} false; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788     # Account for people who put trailing slashes in PATH elements.
2789 case $as_dir/ in #((
2790   ./ | .// | /[cC]/* | \
2791   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2792   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2793   /usr/ucb/* ) ;;
2794   *)
2795     # OSF1 and SCO ODT 3.0 have their own names for install.
2796     # Don't use installbsd from OSF since it installs stuff as root
2797     # by default.
2798     for ac_prog in ginstall scoinst install; do
2799       for ac_exec_ext in '' $ac_executable_extensions; do
2800         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2801           if test $ac_prog = install &&
2802             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2803             # AIX install.  It has an incompatible calling convention.
2804             :
2805           elif test $ac_prog = install &&
2806             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2807             # program-specific install script used by HP pwplus--don't use.
2808             :
2809           else
2810             rm -rf conftest.one conftest.two conftest.dir
2811             echo one > conftest.one
2812             echo two > conftest.two
2813             mkdir conftest.dir
2814             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2815               test -s conftest.one && test -s conftest.two &&
2816               test -s conftest.dir/conftest.one &&
2817               test -s conftest.dir/conftest.two
2818             then
2819               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2820               break 3
2821             fi
2822           fi
2823         fi
2824       done
2825     done
2826     ;;
2827 esac
2828
2829   done
2830 IFS=$as_save_IFS
2831
2832 rm -rf conftest.one conftest.two conftest.dir
2833
2834 fi
2835   if test "${ac_cv_path_install+set}" = set; then
2836     INSTALL=$ac_cv_path_install
2837   else
2838     # As a last resort, use the slow shell script.  Don't cache a
2839     # value for INSTALL within a source directory, because that will
2840     # break other packages using the cache if that directory is
2841     # removed, or if the value is a relative name.
2842     INSTALL=$ac_install_sh
2843   fi
2844 fi
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2846 $as_echo "$INSTALL" >&6; }
2847
2848 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2849 # It thinks the first close brace ends the variable substitution.
2850 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2851
2852 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2853
2854 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2857 $as_echo_n "checking whether build environment is sane... " >&6; }
2858 # Just in case
2859 sleep 1
2860 echo timestamp > conftest.file
2861 # Reject unsafe characters in $srcdir or the absolute working directory
2862 # name.  Accept space and tab only in the latter.
2863 am_lf='
2864 '
2865 case `pwd` in
2866   *[\\\"\#\$\&\'\`$am_lf]*)
2867     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2868 esac
2869 case $srcdir in
2870   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2871     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2872 esac
2873
2874 # Do `set' in a subshell so we don't clobber the current shell's
2875 # arguments.  Must try -L first in case configure is actually a
2876 # symlink; some systems play weird games with the mod time of symlinks
2877 # (eg FreeBSD returns the mod time of the symlink's containing
2878 # directory).
2879 if (
2880    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2881    if test "$*" = "X"; then
2882       # -L didn't work.
2883       set X `ls -t "$srcdir/configure" conftest.file`
2884    fi
2885    rm -f conftest.file
2886    if test "$*" != "X $srcdir/configure conftest.file" \
2887       && test "$*" != "X conftest.file $srcdir/configure"; then
2888
2889       # If neither matched, then we have a broken ls.  This can happen
2890       # if, for instance, CONFIG_SHELL is bash and it inherits a
2891       # broken ls alias from the environment.  This has actually
2892       # happened.  Such a system could not be considered "sane".
2893       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2894 alias in your environment" "$LINENO" 5
2895    fi
2896
2897    test "$2" = conftest.file
2898    )
2899 then
2900    # Ok.
2901    :
2902 else
2903    as_fn_error $? "newly created file is older than distributed files!
2904 Check your system clock" "$LINENO" 5
2905 fi
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2907 $as_echo "yes" >&6; }
2908 test "$program_prefix" != NONE &&
2909   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2910 # Use a double $ so make ignores it.
2911 test "$program_suffix" != NONE &&
2912   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2913 # Double any \ or $.
2914 # By default was `s,x,x', remove it if useless.
2915 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2916 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2917
2918 # expand $ac_aux_dir to an absolute path
2919 am_aux_dir=`cd $ac_aux_dir && pwd`
2920
2921 if test x"${MISSING+set}" != xset; then
2922   case $am_aux_dir in
2923   *\ * | *\     *)
2924     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2925   *)
2926     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2927   esac
2928 fi
2929 # Use eval to expand $SHELL
2930 if eval "$MISSING --run true"; then
2931   am_missing_run="$MISSING --run "
2932 else
2933   am_missing_run=
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2935 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2936 fi
2937
2938 if test x"${install_sh}" != xset; then
2939   case $am_aux_dir in
2940   *\ * | *\     *)
2941     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2942   *)
2943     install_sh="\${SHELL} $am_aux_dir/install-sh"
2944   esac
2945 fi
2946
2947 # Installed binaries are usually stripped using `strip' when the user
2948 # run `make install-strip'.  However `strip' might not be the right
2949 # tool to use in cross-compilation environments, therefore Automake
2950 # will honor the `STRIP' environment variable to overrule this program.
2951 if test "$cross_compiling" != no; then
2952   if test -n "$ac_tool_prefix"; then
2953   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}strip; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_STRIP+:} false; then :
2958   $as_echo_n "(cached) " >&6
2959 else
2960   if test -n "$STRIP"; then
2961   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966   IFS=$as_save_IFS
2967   test -z "$as_dir" && as_dir=.
2968     for ac_exec_ext in '' $ac_executable_extensions; do
2969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972     break 2
2973   fi
2974 done
2975   done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 STRIP=$ac_cv_prog_STRIP
2981 if test -n "$STRIP"; then
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2983 $as_echo "$STRIP" >&6; }
2984 else
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 fi
2991 if test -z "$ac_cv_prog_STRIP"; then
2992   ac_ct_STRIP=$STRIP
2993   # Extract the first word of "strip", so it can be a program name with args.
2994 set dummy strip; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   if test -n "$ac_ct_STRIP"; then
3001   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     for ac_exec_ext in '' $ac_executable_extensions; do
3009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010     ac_cv_prog_ac_ct_STRIP="strip"
3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015   done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3021 if test -n "$ac_ct_STRIP"; then
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3023 $as_echo "$ac_ct_STRIP" >&6; }
3024 else
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029   if test "x$ac_ct_STRIP" = x; then
3030     STRIP=":"
3031   else
3032     case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038     STRIP=$ac_ct_STRIP
3039   fi
3040 else
3041   STRIP="$ac_cv_prog_STRIP"
3042 fi
3043
3044 fi
3045 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3046
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3048 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3049 if test -z "$MKDIR_P"; then
3050   if ${ac_cv_path_mkdir+:} false; then :
3051   $as_echo_n "(cached) " >&6
3052 else
3053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058     for ac_prog in mkdir gmkdir; do
3059          for ac_exec_ext in '' $ac_executable_extensions; do
3060            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3061            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3062              'mkdir (GNU coreutils) '* | \
3063              'mkdir (coreutils) '* | \
3064              'mkdir (fileutils) '4.1*)
3065                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3066                break 3;;
3067            esac
3068          done
3069        done
3070   done
3071 IFS=$as_save_IFS
3072
3073 fi
3074
3075   test -d ./--version && rmdir ./--version
3076   if test "${ac_cv_path_mkdir+set}" = set; then
3077     MKDIR_P="$ac_cv_path_mkdir -p"
3078   else
3079     # As a last resort, use the slow shell script.  Don't cache a
3080     # value for MKDIR_P within a source directory, because that will
3081     # break other packages using the cache if that directory is
3082     # removed, or if the value is a relative name.
3083     MKDIR_P="$ac_install_sh -d"
3084   fi
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3087 $as_echo "$MKDIR_P" >&6; }
3088
3089 mkdir_p="$MKDIR_P"
3090 case $mkdir_p in
3091   [\\/$]* | ?:[\\/]*) ;;
3092   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3093 esac
3094
3095 for ac_prog in gawk mawk nawk awk
3096 do
3097   # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set dummy $ac_prog; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_AWK+:} false; then :
3102   $as_echo_n "(cached) " >&6
3103 else
3104   if test -n "$AWK"; then
3105   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110   IFS=$as_save_IFS
3111   test -z "$as_dir" && as_dir=.
3112     for ac_exec_ext in '' $ac_executable_extensions; do
3113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114     ac_cv_prog_AWK="$ac_prog"
3115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116     break 2
3117   fi
3118 done
3119   done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 AWK=$ac_cv_prog_AWK
3125 if test -n "$AWK"; then
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3127 $as_echo "$AWK" >&6; }
3128 else
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134   test -n "$AWK" && break
3135 done
3136
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3138 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3139 set x ${MAKE-make}
3140 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3141 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3142   $as_echo_n "(cached) " >&6
3143 else
3144   cat >conftest.make <<\_ACEOF
3145 SHELL = /bin/sh
3146 all:
3147         @echo '@@@%%%=$(MAKE)=@@@%%%'
3148 _ACEOF
3149 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3150 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3151   *@@@%%%=?*=@@@%%%*)
3152     eval ac_cv_prog_make_${ac_make}_set=yes;;
3153   *)
3154     eval ac_cv_prog_make_${ac_make}_set=no;;
3155 esac
3156 rm -f conftest.make
3157 fi
3158 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 $as_echo "yes" >&6; }
3161   SET_MAKE=
3162 else
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165   SET_MAKE="MAKE=${MAKE-make}"
3166 fi
3167
3168 rm -rf .tst 2>/dev/null
3169 mkdir .tst 2>/dev/null
3170 if test -d .tst; then
3171   am__leading_dot=.
3172 else
3173   am__leading_dot=_
3174 fi
3175 rmdir .tst 2>/dev/null
3176
3177 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3178   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3179   # is not polluted with repeated "-I."
3180   am__isrc=' -I$(srcdir)'
3181   # test to see if srcdir already configured
3182   if test -f $srcdir/config.status; then
3183     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3184   fi
3185 fi
3186
3187 # test whether we have cygpath
3188 if test -z "$CYGPATH_W"; then
3189   if (cygpath --version) >/dev/null 2>/dev/null; then
3190     CYGPATH_W='cygpath -w'
3191   else
3192     CYGPATH_W=echo
3193   fi
3194 fi
3195
3196
3197 # Define the identity of the package.
3198  PACKAGE='cups-filters'
3199  VERSION='1.0.36'
3200
3201
3202 cat >>confdefs.h <<_ACEOF
3203 #define PACKAGE "$PACKAGE"
3204 _ACEOF
3205
3206
3207 cat >>confdefs.h <<_ACEOF
3208 #define VERSION "$VERSION"
3209 _ACEOF
3210
3211 # Some tools Automake needs.
3212
3213 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3214
3215
3216 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3217
3218
3219 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3220
3221
3222 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3223
3224
3225 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3226
3227 # We need awk for the "check" target.  The system "awk" is bad on
3228 # some platforms.
3229 # Always define AMTAR for backward compatibility.  Yes, it's still used
3230 # in the wild :-(  We should find a proper way to deprecate it ...
3231 AMTAR='$${TAR-tar}'
3232
3233 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3234
3235
3236
3237
3238
3239 # Check whether --enable-silent-rules was given.
3240 if test "${enable_silent_rules+set}" = set; then :
3241   enableval=$enable_silent_rules;
3242 fi
3243
3244 case $enable_silent_rules in
3245 yes) AM_DEFAULT_VERBOSITY=0;;
3246 no)  AM_DEFAULT_VERBOSITY=1;;
3247 *)   AM_DEFAULT_VERBOSITY=0;;
3248 esac
3249 am_make=${MAKE-make}
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3251 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3252 if ${am_cv_make_support_nested_variables+:} false; then :
3253   $as_echo_n "(cached) " >&6
3254 else
3255   if $as_echo 'TRUE=$(BAR$(V))
3256 BAR0=false
3257 BAR1=true
3258 V=1
3259 am__doit:
3260         @$(TRUE)
3261 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3262   am_cv_make_support_nested_variables=yes
3263 else
3264   am_cv_make_support_nested_variables=no
3265 fi
3266 fi
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3268 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3269 if test $am_cv_make_support_nested_variables = yes; then
3270     AM_V='$(V)'
3271   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3272 else
3273   AM_V=$AM_DEFAULT_VERBOSITY
3274   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3275 fi
3276 AM_BACKSLASH='\'
3277
3278 ac_ext=cpp
3279 ac_cpp='$CXXCPP $CPPFLAGS'
3280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3283
3284 ac_config_headers="$ac_config_headers config.h"
3285
3286 # Extra defines for the config.h
3287
3288
3289 # ===========================
3290 # Find required base packages
3291 # ===========================
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 if test -n "$ac_tool_prefix"; then
3298   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_CC+:} false; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   if test -n "$CC"; then
3306   ac_cv_prog_CC="$CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311   IFS=$as_save_IFS
3312   test -z "$as_dir" && as_dir=.
3313     for ac_exec_ext in '' $ac_executable_extensions; do
3314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320   done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 if test -z "$ac_cv_prog_CC"; then
3337   ac_ct_CC=$CC
3338   # Extract the first word of "gcc", so it can be a program name with args.
3339 set dummy gcc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3343   $as_echo_n "(cached) " >&6
3344 else
3345   if test -n "$ac_ct_CC"; then
3346   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353     for ac_exec_ext in '' $ac_executable_extensions; do
3354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355     ac_cv_prog_ac_ct_CC="gcc"
3356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360   done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3366 if test -n "$ac_ct_CC"; then
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3368 $as_echo "$ac_ct_CC" >&6; }
3369 else
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374   if test "x$ac_ct_CC" = x; then
3375     CC=""
3376   else
3377     case $cross_compiling:$ac_tool_warned in
3378 yes:)
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3381 ac_tool_warned=yes ;;
3382 esac
3383     CC=$ac_ct_CC
3384   fi
3385 else
3386   CC="$ac_cv_prog_CC"
3387 fi
3388
3389 if test -z "$CC"; then
3390           if test -n "$ac_tool_prefix"; then
3391     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   if test -n "$CC"; then
3399   ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   test -z "$as_dir" && as_dir=.
3406     for ac_exec_ext in '' $ac_executable_extensions; do
3407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408     ac_cv_prog_CC="${ac_tool_prefix}cc"
3409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410     break 2
3411   fi
3412 done
3413   done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428   fi
3429 fi
3430 if test -z "$CC"; then
3431   # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_CC+:} false; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   if test -n "$CC"; then
3439   ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441   ac_prog_rejected=no
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445   IFS=$as_save_IFS
3446   test -z "$as_dir" && as_dir=.
3447     for ac_exec_ext in '' $ac_executable_extensions; do
3448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450        ac_prog_rejected=yes
3451        continue
3452      fi
3453     ac_cv_prog_CC="cc"
3454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455     break 2
3456   fi
3457 done
3458   done
3459 IFS=$as_save_IFS
3460
3461 if test $ac_prog_rejected = yes; then
3462   # We found a bogon in the path, so make sure we never use it.
3463   set dummy $ac_cv_prog_CC
3464   shift
3465   if test $# != 0; then
3466     # We chose a different compiler from the bogus one.
3467     # However, it has the same basename, so the bogon will be chosen
3468     # first if we set CC to just the basename; use the full file name.
3469     shift
3470     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3471   fi
3472 fi
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3479 else
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484
3485 fi
3486 if test -z "$CC"; then
3487   if test -n "$ac_tool_prefix"; then
3488   for ac_prog in cl.exe
3489   do
3490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_CC+:} false; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   if test -n "$CC"; then
3498   ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505     for ac_exec_ext in '' $ac_executable_extensions; do
3506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512   done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3521 else
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 fi
3525
3526
3527     test -n "$CC" && break
3528   done
3529 fi
3530 if test -z "$CC"; then
3531   ac_ct_CC=$CC
3532   for ac_prog in cl.exe
3533 do
3534   # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   if test -n "$ac_ct_CC"; then
3542   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549     for ac_exec_ext in '' $ac_executable_extensions; do
3550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551     ac_cv_prog_ac_ct_CC="$ac_prog"
3552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556   done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570
3571   test -n "$ac_ct_CC" && break
3572 done
3573
3574   if test "x$ac_ct_CC" = x; then
3575     CC=""
3576   else
3577     case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583     CC=$ac_ct_CC
3584   fi
3585 fi
3586
3587 fi
3588
3589
3590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "no acceptable C compiler found in \$PATH
3593 See \`config.log' for more details" "$LINENO" 5; }
3594
3595 # Provide some information about the compiler.
3596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3597 set X $ac_compile
3598 ac_compiler=$2
3599 for ac_option in --version -v -V -qversion; do
3600   { { ac_try="$ac_compiler $ac_option >&5"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3608   ac_status=$?
3609   if test -s conftest.err; then
3610     sed '10a\
3611 ... rest of stderr output deleted ...
3612          10q' conftest.err >conftest.er1
3613     cat conftest.er1 >&5
3614   fi
3615   rm -f conftest.er1 conftest.err
3616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617   test $ac_status = 0; }
3618 done
3619
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622
3623 int
3624 main ()
3625 {
3626
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 ac_clean_files_save=$ac_clean_files
3632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3633 # Try to create an executable without -o first, disregard a.out.
3634 # It will help us diagnose broken compilers, and finding out an intuition
3635 # of exeext.
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3637 $as_echo_n "checking whether the C compiler works... " >&6; }
3638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3639
3640 # The possible output files:
3641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3642
3643 ac_rmfiles=
3644 for ac_file in $ac_files
3645 do
3646   case $ac_file in
3647     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3648     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3649   esac
3650 done
3651 rm -f $ac_rmfiles
3652
3653 if { { ac_try="$ac_link_default"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660   (eval "$ac_link_default") 2>&5
3661   ac_status=$?
3662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663   test $ac_status = 0; }; then :
3664   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3666 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3667 # so that the user can short-circuit this test for compilers unknown to
3668 # Autoconf.
3669 for ac_file in $ac_files ''
3670 do
3671   test -f "$ac_file" || continue
3672   case $ac_file in
3673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3674         ;;
3675     [ab].out )
3676         # We found the default executable, but exeext='' is most
3677         # certainly right.
3678         break;;
3679     *.* )
3680         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3681         then :; else
3682            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3683         fi
3684         # We set ac_cv_exeext here because the later test for it is not
3685         # safe: cross compilers may not add the suffix if given an `-o'
3686         # argument, so we may need to know it at that point already.
3687         # Even if this section looks crufty: it has the advantage of
3688         # actually working.
3689         break;;
3690     * )
3691         break;;
3692   esac
3693 done
3694 test "$ac_cv_exeext" = no && ac_cv_exeext=
3695
3696 else
3697   ac_file=''
3698 fi
3699 if test -z "$ac_file"; then :
3700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error 77 "C compiler cannot create executables
3708 See \`config.log' for more details" "$LINENO" 5; }
3709 else
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3711 $as_echo "yes" >&6; }
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3714 $as_echo_n "checking for C compiler default output file name... " >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3716 $as_echo "$ac_file" >&6; }
3717 ac_exeext=$ac_cv_exeext
3718
3719 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3720 ac_clean_files=$ac_clean_files_save
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3722 $as_echo_n "checking for suffix of executables... " >&6; }
3723 if { { ac_try="$ac_link"
3724 case "(($ac_try" in
3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726   *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730   (eval "$ac_link") 2>&5
3731   ac_status=$?
3732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733   test $ac_status = 0; }; then :
3734   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3735 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3736 # work properly (i.e., refer to `conftest.exe'), while it won't with
3737 # `rm'.
3738 for ac_file in conftest.exe conftest conftest.*; do
3739   test -f "$ac_file" || continue
3740   case $ac_file in
3741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3742     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743           break;;
3744     * ) break;;
3745   esac
3746 done
3747 else
3748   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3751 See \`config.log' for more details" "$LINENO" 5; }
3752 fi
3753 rm -f conftest conftest$ac_cv_exeext
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3755 $as_echo "$ac_cv_exeext" >&6; }
3756
3757 rm -f conftest.$ac_ext
3758 EXEEXT=$ac_cv_exeext
3759 ac_exeext=$EXEEXT
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h.  */
3762 #include <stdio.h>
3763 int
3764 main ()
3765 {
3766 FILE *f = fopen ("conftest.out", "w");
3767  return ferror (f) || fclose (f) != 0;
3768
3769   ;
3770   return 0;
3771 }
3772 _ACEOF
3773 ac_clean_files="$ac_clean_files conftest.out"
3774 # Check that the compiler produces executables we can run.  If not, either
3775 # the compiler is broken, or we cross compile.
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3777 $as_echo_n "checking whether we are cross compiling... " >&6; }
3778 if test "$cross_compiling" != yes; then
3779   { { ac_try="$ac_link"
3780 case "(($ac_try" in
3781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782   *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786   (eval "$ac_link") 2>&5
3787   ac_status=$?
3788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789   test $ac_status = 0; }
3790   if { ac_try='./conftest$ac_cv_exeext'
3791   { { case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797   (eval "$ac_try") 2>&5
3798   ac_status=$?
3799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800   test $ac_status = 0; }; }; then
3801     cross_compiling=no
3802   else
3803     if test "$cross_compiling" = maybe; then
3804         cross_compiling=yes
3805     else
3806         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "cannot run C compiled programs.
3809 If you meant to cross compile, use \`--host'.
3810 See \`config.log' for more details" "$LINENO" 5; }
3811     fi
3812   fi
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3815 $as_echo "$cross_compiling" >&6; }
3816
3817 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3818 ac_clean_files=$ac_clean_files_save
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3820 $as_echo_n "checking for suffix of object files... " >&6; }
3821 if ${ac_cv_objext+:} false; then :
3822   $as_echo_n "(cached) " >&6
3823 else
3824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h.  */
3826
3827 int
3828 main ()
3829 {
3830
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.o conftest.obj
3836 if { { ac_try="$ac_compile"
3837 case "(($ac_try" in
3838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839   *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843   (eval "$ac_compile") 2>&5
3844   ac_status=$?
3845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846   test $ac_status = 0; }; then :
3847   for ac_file in conftest.o conftest.obj conftest.*; do
3848   test -f "$ac_file" || continue;
3849   case $ac_file in
3850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3851     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3852        break;;
3853   esac
3854 done
3855 else
3856   $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "cannot compute suffix of object files: cannot compile
3862 See \`config.log' for more details" "$LINENO" 5; }
3863 fi
3864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3867 $as_echo "$ac_cv_objext" >&6; }
3868 OBJEXT=$ac_cv_objext
3869 ac_objext=$OBJEXT
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3872 if ${ac_cv_c_compiler_gnu+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __GNUC__
3882        choke me
3883 #endif
3884
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890   ac_compiler_gnu=yes
3891 else
3892   ac_compiler_gnu=no
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3900 if test $ac_compiler_gnu = yes; then
3901   GCC=yes
3902 else
3903   GCC=
3904 fi
3905 ac_test_CFLAGS=${CFLAGS+set}
3906 ac_save_CFLAGS=$CFLAGS
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3909 if ${ac_cv_prog_cc_g+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   ac_save_c_werror_flag=$ac_c_werror_flag
3913    ac_c_werror_flag=yes
3914    ac_cv_prog_cc_g=no
3915    CFLAGS="-g"
3916    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h.  */
3918
3919 int
3920 main ()
3921 {
3922
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928   ac_cv_prog_cc_g=yes
3929 else
3930   CFLAGS=""
3931       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h.  */
3933
3934 int
3935 main ()
3936 {
3937
3938   ;
3939   return 0;
3940 }
3941 _ACEOF
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943
3944 else
3945   ac_c_werror_flag=$ac_save_c_werror_flag
3946          CFLAGS="-g"
3947          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h.  */
3949
3950 int
3951 main ()
3952 {
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959   ac_cv_prog_cc_g=yes
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966    ac_c_werror_flag=$ac_save_c_werror_flag
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3969 $as_echo "$ac_cv_prog_cc_g" >&6; }
3970 if test "$ac_test_CFLAGS" = set; then
3971   CFLAGS=$ac_save_CFLAGS
3972 elif test $ac_cv_prog_cc_g = yes; then
3973   if test "$GCC" = yes; then
3974     CFLAGS="-g -O2"
3975   else
3976     CFLAGS="-g"
3977   fi
3978 else
3979   if test "$GCC" = yes; then
3980     CFLAGS="-O2"
3981   else
3982     CFLAGS=
3983   fi
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3987 if ${ac_cv_prog_cc_c89+:} false; then :
3988   $as_echo_n "(cached) " >&6
3989 else
3990   ac_cv_prog_cc_c89=no
3991 ac_save_CC=$CC
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h.  */
3994 #include <stdarg.h>
3995 #include <stdio.h>
3996 struct stat;
3997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3998 struct buf { int x; };
3999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4000 static char *e (p, i)
4001      char **p;
4002      int i;
4003 {
4004   return p[i];
4005 }
4006 static char *f (char * (*g) (char **, int), char **p, ...)
4007 {
4008   char *s;
4009   va_list v;
4010   va_start (v,p);
4011   s = g (p, va_arg (v,int));
4012   va_end (v);
4013   return s;
4014 }
4015
4016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4017    function prototypes and stuff, but not '\xHH' hex character constants.
4018    These don't provoke an error unfortunately, instead are silently treated
4019    as 'x'.  The following induces an error, until -std is added to get
4020    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4021    array size at least.  It's necessary to write '\x00'==0 to get something
4022    that's true only with -std.  */
4023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4024
4025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4026    inside strings and character constants.  */
4027 #define FOO(x) 'x'
4028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4029
4030 int test (int i, double x);
4031 struct s1 {int (*f) (int a);};
4032 struct s2 {int (*f) (double a);};
4033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4034 int argc;
4035 char **argv;
4036 int
4037 main ()
4038 {
4039 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4045         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4046 do
4047   CC="$ac_save_CC $ac_arg"
4048   if ac_fn_c_try_compile "$LINENO"; then :
4049   ac_cv_prog_cc_c89=$ac_arg
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext
4052   test "x$ac_cv_prog_cc_c89" != "xno" && break
4053 done
4054 rm -f conftest.$ac_ext
4055 CC=$ac_save_CC
4056
4057 fi
4058 # AC_CACHE_VAL
4059 case "x$ac_cv_prog_cc_c89" in
4060   x)
4061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4062 $as_echo "none needed" >&6; } ;;
4063   xno)
4064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4065 $as_echo "unsupported" >&6; } ;;
4066   *)
4067     CC="$CC $ac_cv_prog_cc_c89"
4068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4070 esac
4071 if test "x$ac_cv_prog_cc_c89" != xno; then :
4072
4073 fi
4074
4075 ac_ext=cpp
4076 ac_cpp='$CXXCPP $CPPFLAGS'
4077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4080 DEPDIR="${am__leading_dot}deps"
4081
4082 ac_config_commands="$ac_config_commands depfiles"
4083
4084
4085 am_make=${MAKE-make}
4086 cat > confinc << 'END'
4087 am__doit:
4088         @echo this is the am__doit target
4089 .PHONY: am__doit
4090 END
4091 # If we don't find an include directive, just comment out the code.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4093 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4094 am__include="#"
4095 am__quote=
4096 _am_result=none
4097 # First try GNU make style include.
4098 echo "include confinc" > confmf
4099 # Ignore all kinds of additional output from `make'.
4100 case `$am_make -s -f confmf 2> /dev/null` in #(
4101 *the\ am__doit\ target*)
4102   am__include=include
4103   am__quote=
4104   _am_result=GNU
4105   ;;
4106 esac
4107 # Now try BSD make style include.
4108 if test "$am__include" = "#"; then
4109    echo '.include "confinc"' > confmf
4110    case `$am_make -s -f confmf 2> /dev/null` in #(
4111    *the\ am__doit\ target*)
4112      am__include=.include
4113      am__quote="\""
4114      _am_result=BSD
4115      ;;
4116    esac
4117 fi
4118
4119
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4121 $as_echo "$_am_result" >&6; }
4122 rm -f confinc confmf
4123
4124 # Check whether --enable-dependency-tracking was given.
4125 if test "${enable_dependency_tracking+set}" = set; then :
4126   enableval=$enable_dependency_tracking;
4127 fi
4128
4129 if test "x$enable_dependency_tracking" != xno; then
4130   am_depcomp="$ac_aux_dir/depcomp"
4131   AMDEPBACKSLASH='\'
4132   am__nodep='_no'
4133 fi
4134  if test "x$enable_dependency_tracking" != xno; then
4135   AMDEP_TRUE=
4136   AMDEP_FALSE='#'
4137 else
4138   AMDEP_TRUE='#'
4139   AMDEP_FALSE=
4140 fi
4141
4142
4143
4144 depcc="$CC"   am_compiler_list=
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4147 $as_echo_n "checking dependency style of $depcc... " >&6; }
4148 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4152   # We make a subdir and do the tests there.  Otherwise we can end up
4153   # making bogus files that we don't know about and never remove.  For
4154   # instance it was reported that on HP-UX the gcc test will end up
4155   # making a dummy file named `D' -- because `-MD' means `put the output
4156   # in D'.
4157   rm -rf conftest.dir
4158   mkdir conftest.dir
4159   # Copy depcomp to subdir because otherwise we won't find it if we're
4160   # using a relative directory.
4161   cp "$am_depcomp" conftest.dir
4162   cd conftest.dir
4163   # We will build objects and dependencies in a subdirectory because
4164   # it helps to detect inapplicable dependency modes.  For instance
4165   # both Tru64's cc and ICC support -MD to output dependencies as a
4166   # side effect of compilation, but ICC will put the dependencies in
4167   # the current directory while Tru64 will put them in the object
4168   # directory.
4169   mkdir sub
4170
4171   am_cv_CC_dependencies_compiler_type=none
4172   if test "$am_compiler_list" = ""; then
4173      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4174   fi
4175   am__universal=false
4176   case " $depcc " in #(
4177      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4178      esac
4179
4180   for depmode in $am_compiler_list; do
4181     # Setup a source with many dependencies, because some compilers
4182     # like to wrap large dependency lists on column 80 (with \), and
4183     # we should not choose a depcomp mode which is confused by this.
4184     #
4185     # We need to recreate these files for each test, as the compiler may
4186     # overwrite some of them when testing with obscure command lines.
4187     # This happens at least with the AIX C compiler.
4188     : > sub/conftest.c
4189     for i in 1 2 3 4 5 6; do
4190       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4191       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4192       # Solaris 8's {/usr,}/bin/sh.
4193       touch sub/conftst$i.h
4194     done
4195     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4196
4197     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4198     # mode.  It turns out that the SunPro C++ compiler does not properly
4199     # handle `-M -o', and we need to detect this.  Also, some Intel
4200     # versions had trouble with output in subdirs
4201     am__obj=sub/conftest.${OBJEXT-o}
4202     am__minus_obj="-o $am__obj"
4203     case $depmode in
4204     gcc)
4205       # This depmode causes a compiler race in universal mode.
4206       test "$am__universal" = false || continue
4207       ;;
4208     nosideeffect)
4209       # after this tag, mechanisms are not by side-effect, so they'll
4210       # only be used when explicitly requested
4211       if test "x$enable_dependency_tracking" = xyes; then
4212         continue
4213       else
4214         break
4215       fi
4216       ;;
4217     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4218       # This compiler won't grok `-c -o', but also, the minuso test has
4219       # not run yet.  These depmodes are late enough in the game, and
4220       # so weak that their functioning should not be impacted.
4221       am__obj=conftest.${OBJEXT-o}
4222       am__minus_obj=
4223       ;;
4224     none) break ;;
4225     esac
4226     if depmode=$depmode \
4227        source=sub/conftest.c object=$am__obj \
4228        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4229        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4230          >/dev/null 2>conftest.err &&
4231        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4232        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4233        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4234        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4235       # icc doesn't choke on unknown options, it will just issue warnings
4236       # or remarks (even with -Werror).  So we grep stderr for any message
4237       # that says an option was ignored or not supported.
4238       # When given -MP, icc 7.0 and 7.1 complain thusly:
4239       #   icc: Command line warning: ignoring option '-M'; no argument required
4240       # The diagnosis changed in icc 8.0:
4241       #   icc: Command line remark: option '-MP' not supported
4242       if (grep 'ignoring option' conftest.err ||
4243           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4244         am_cv_CC_dependencies_compiler_type=$depmode
4245         break
4246       fi
4247     fi
4248   done
4249
4250   cd ..
4251   rm -rf conftest.dir
4252 else
4253   am_cv_CC_dependencies_compiler_type=none
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4258 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4260
4261  if
4262   test "x$enable_dependency_tracking" != xno \
4263   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4264   am__fastdepCC_TRUE=
4265   am__fastdepCC_FALSE='#'
4266 else
4267   am__fastdepCC_TRUE='#'
4268   am__fastdepCC_FALSE=
4269 fi
4270
4271
4272 ac_ext=cpp
4273 ac_cpp='$CXXCPP $CPPFLAGS'
4274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4277 if test -z "$CXX"; then
4278   if test -n "$CCC"; then
4279     CXX=$CCC
4280   else
4281     if test -n "$ac_tool_prefix"; then
4282   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4283   do
4284     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_CXX+:} false; then :
4289   $as_echo_n "(cached) " >&6
4290 else
4291   if test -n "$CXX"; then
4292   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297   IFS=$as_save_IFS
4298   test -z "$as_dir" && as_dir=.
4299     for ac_exec_ext in '' $ac_executable_extensions; do
4300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306   done
4307 IFS=$as_save_IFS
4308
4309 fi
4310 fi
4311 CXX=$ac_cv_prog_CXX
4312 if test -n "$CXX"; then
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4314 $as_echo "$CXX" >&6; }
4315 else
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 fi
4319
4320
4321     test -n "$CXX" && break
4322   done
4323 fi
4324 if test -z "$CXX"; then
4325   ac_ct_CXX=$CXX
4326   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4327 do
4328   # Extract the first word of "$ac_prog", so it can be a program name with args.
4329 set dummy $ac_prog; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -n "$ac_ct_CXX"; then
4336   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345     ac_cv_prog_ac_ct_CXX="$ac_prog"
4346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350   done
4351 IFS=$as_save_IFS
4352
4353 fi
4354 fi
4355 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4356 if test -n "$ac_ct_CXX"; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4358 $as_echo "$ac_ct_CXX" >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364
4365   test -n "$ac_ct_CXX" && break
4366 done
4367
4368   if test "x$ac_ct_CXX" = x; then
4369     CXX="g++"
4370   else
4371     case $cross_compiling:$ac_tool_warned in
4372 yes:)
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4375 ac_tool_warned=yes ;;
4376 esac
4377     CXX=$ac_ct_CXX
4378   fi
4379 fi
4380
4381   fi
4382 fi
4383 # Provide some information about the compiler.
4384 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4385 set X $ac_compile
4386 ac_compiler=$2
4387 for ac_option in --version -v -V -qversion; do
4388   { { ac_try="$ac_compiler $ac_option >&5"
4389 case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 $as_echo "$ac_try_echo"; } >&5
4395   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4396   ac_status=$?
4397   if test -s conftest.err; then
4398     sed '10a\
4399 ... rest of stderr output deleted ...
4400          10q' conftest.err >conftest.er1
4401     cat conftest.er1 >&5
4402   fi
4403   rm -f conftest.er1 conftest.err
4404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405   test $ac_status = 0; }
4406 done
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4409 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4410 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415
4416 int
4417 main ()
4418 {
4419 #ifndef __GNUC__
4420        choke me
4421 #endif
4422
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 if ac_fn_cxx_try_compile "$LINENO"; then :
4428   ac_compiler_gnu=yes
4429 else
4430   ac_compiler_gnu=no
4431 fi
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4434
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4437 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4438 if test $ac_compiler_gnu = yes; then
4439   GXX=yes
4440 else
4441   GXX=
4442 fi
4443 ac_test_CXXFLAGS=${CXXFLAGS+set}
4444 ac_save_CXXFLAGS=$CXXFLAGS
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4446 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4447 if ${ac_cv_prog_cxx_g+:} false; then :
4448   $as_echo_n "(cached) " >&6
4449 else
4450   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4451    ac_cxx_werror_flag=yes
4452    ac_cv_prog_cxx_g=no
4453    CXXFLAGS="-g"
4454    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h.  */
4456
4457 int
4458 main ()
4459 {
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_cxx_try_compile "$LINENO"; then :
4466   ac_cv_prog_cxx_g=yes
4467 else
4468   CXXFLAGS=""
4469       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h.  */
4471
4472 int
4473 main ()
4474 {
4475
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 if ac_fn_cxx_try_compile "$LINENO"; then :
4481
4482 else
4483   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4484          CXXFLAGS="-g"
4485          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487
4488 int
4489 main ()
4490 {
4491
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 if ac_fn_cxx_try_compile "$LINENO"; then :
4497   ac_cv_prog_cxx_g=yes
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4507 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4508 if test "$ac_test_CXXFLAGS" = set; then
4509   CXXFLAGS=$ac_save_CXXFLAGS
4510 elif test $ac_cv_prog_cxx_g = yes; then
4511   if test "$GXX" = yes; then
4512     CXXFLAGS="-g -O2"
4513   else
4514     CXXFLAGS="-g"
4515   fi
4516 else
4517   if test "$GXX" = yes; then
4518     CXXFLAGS="-O2"
4519   else
4520     CXXFLAGS=
4521   fi
4522 fi
4523 ac_ext=cpp
4524 ac_cpp='$CXXCPP $CPPFLAGS'
4525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4528
4529 depcc="$CXX"  am_compiler_list=
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4532 $as_echo_n "checking dependency style of $depcc... " >&6; }
4533 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4537   # We make a subdir and do the tests there.  Otherwise we can end up
4538   # making bogus files that we don't know about and never remove.  For
4539   # instance it was reported that on HP-UX the gcc test will end up
4540   # making a dummy file named `D' -- because `-MD' means `put the output
4541   # in D'.
4542   rm -rf conftest.dir
4543   mkdir conftest.dir
4544   # Copy depcomp to subdir because otherwise we won't find it if we're
4545   # using a relative directory.
4546   cp "$am_depcomp" conftest.dir
4547   cd conftest.dir
4548   # We will build objects and dependencies in a subdirectory because
4549   # it helps to detect inapplicable dependency modes.  For instance
4550   # both Tru64's cc and ICC support -MD to output dependencies as a
4551   # side effect of compilation, but ICC will put the dependencies in
4552   # the current directory while Tru64 will put them in the object
4553   # directory.
4554   mkdir sub
4555
4556   am_cv_CXX_dependencies_compiler_type=none
4557   if test "$am_compiler_list" = ""; then
4558      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4559   fi
4560   am__universal=false
4561   case " $depcc " in #(
4562      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4563      esac
4564
4565   for depmode in $am_compiler_list; do
4566     # Setup a source with many dependencies, because some compilers
4567     # like to wrap large dependency lists on column 80 (with \), and
4568     # we should not choose a depcomp mode which is confused by this.
4569     #
4570     # We need to recreate these files for each test, as the compiler may
4571     # overwrite some of them when testing with obscure command lines.
4572     # This happens at least with the AIX C compiler.
4573     : > sub/conftest.c
4574     for i in 1 2 3 4 5 6; do
4575       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4576       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4577       # Solaris 8's {/usr,}/bin/sh.
4578       touch sub/conftst$i.h
4579     done
4580     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4581
4582     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4583     # mode.  It turns out that the SunPro C++ compiler does not properly
4584     # handle `-M -o', and we need to detect this.  Also, some Intel
4585     # versions had trouble with output in subdirs
4586     am__obj=sub/conftest.${OBJEXT-o}
4587     am__minus_obj="-o $am__obj"
4588     case $depmode in
4589     gcc)
4590       # This depmode causes a compiler race in universal mode.
4591       test "$am__universal" = false || continue
4592       ;;
4593     nosideeffect)
4594       # after this tag, mechanisms are not by side-effect, so they'll
4595       # only be used when explicitly requested
4596       if test "x$enable_dependency_tracking" = xyes; then
4597         continue
4598       else
4599         break
4600       fi
4601       ;;
4602     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4603       # This compiler won't grok `-c -o', but also, the minuso test has
4604       # not run yet.  These depmodes are late enough in the game, and
4605       # so weak that their functioning should not be impacted.
4606       am__obj=conftest.${OBJEXT-o}
4607       am__minus_obj=
4608       ;;
4609     none) break ;;
4610     esac
4611     if depmode=$depmode \
4612        source=sub/conftest.c object=$am__obj \
4613        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4614        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4615          >/dev/null 2>conftest.err &&
4616        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4617        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4618        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4619        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4620       # icc doesn't choke on unknown options, it will just issue warnings
4621       # or remarks (even with -Werror).  So we grep stderr for any message
4622       # that says an option was ignored or not supported.
4623       # When given -MP, icc 7.0 and 7.1 complain thusly:
4624       #   icc: Command line warning: ignoring option '-M'; no argument required
4625       # The diagnosis changed in icc 8.0:
4626       #   icc: Command line remark: option '-MP' not supported
4627       if (grep 'ignoring option' conftest.err ||
4628           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4629         am_cv_CXX_dependencies_compiler_type=$depmode
4630         break
4631       fi
4632     fi
4633   done
4634
4635   cd ..
4636   rm -rf conftest.dir
4637 else
4638   am_cv_CXX_dependencies_compiler_type=none
4639 fi
4640
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4643 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4644 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4645
4646  if
4647   test "x$enable_dependency_tracking" != xno \
4648   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4649   am__fastdepCXX_TRUE=
4650   am__fastdepCXX_FALSE='#'
4651 else
4652   am__fastdepCXX_TRUE='#'
4653   am__fastdepCXX_FALSE=
4654 fi
4655
4656
4657 if test "x$CC" != xcc; then
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4659 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4660 else
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4662 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4663 fi
4664 set dummy $CC; ac_cc=`$as_echo "$2" |
4665                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4666 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4667   $as_echo_n "(cached) " >&6
4668 else
4669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h.  */
4671
4672 int
4673 main ()
4674 {
4675
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 # Make sure it works both with $CC and with simple cc.
4681 # We do the test twice because some compilers refuse to overwrite an
4682 # existing .o file with -o, though they will create one.
4683 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4684 rm -f conftest2.*
4685 if { { case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690 $as_echo "$ac_try_echo"; } >&5
4691   (eval "$ac_try") 2>&5
4692   ac_status=$?
4693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694   test $ac_status = 0; } &&
4695    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697   *) ac_try_echo=$ac_try;;
4698 esac
4699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 $as_echo "$ac_try_echo"; } >&5
4701   (eval "$ac_try") 2>&5
4702   ac_status=$?
4703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4704   test $ac_status = 0; };
4705 then
4706   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4707   if test "x$CC" != xcc; then
4708     # Test first that cc exists at all.
4709     if { ac_try='cc -c conftest.$ac_ext >&5'
4710   { { case "(($ac_try" in
4711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712   *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 $as_echo "$ac_try_echo"; } >&5
4716   (eval "$ac_try") 2>&5
4717   ac_status=$?
4718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719   test $ac_status = 0; }; }; then
4720       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4721       rm -f conftest2.*
4722       if { { case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727 $as_echo "$ac_try_echo"; } >&5
4728   (eval "$ac_try") 2>&5
4729   ac_status=$?
4730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731   test $ac_status = 0; } &&
4732          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734   *) ac_try_echo=$ac_try;;
4735 esac
4736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4737 $as_echo "$ac_try_echo"; } >&5
4738   (eval "$ac_try") 2>&5
4739   ac_status=$?
4740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4741   test $ac_status = 0; };
4742       then
4743         # cc works too.
4744         :
4745       else
4746         # cc exists but doesn't like -o.
4747         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4748       fi
4749     fi
4750   fi
4751 else
4752   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4753 fi
4754 rm -f core conftest*
4755
4756 fi
4757 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4759 $as_echo "yes" >&6; }
4760 else
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763
4764 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4765
4766 fi
4767
4768 # FIXME: we rely on the cache variable name because
4769 # there is no other way.
4770 set dummy $CC
4771 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4772 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4773 if test "$am_t" != yes; then
4774    # Losing compiler, so override with the script.
4775    # FIXME: It is wrong to rewrite CC.
4776    # But if we don't then we get into trouble of one sort or another.
4777    # A longer-term fix would be to have automake use am__CC in this case,
4778    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4779    CC="$am_aux_dir/compile $CC"
4780 fi
4781
4782
4783 ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4789 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4790 # On Suns, sometimes $CPP names a directory.
4791 if test -n "$CPP" && test -d "$CPP"; then
4792   CPP=
4793 fi
4794 if test -z "$CPP"; then
4795   if ${ac_cv_prog_CPP+:} false; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798       # Double quotes because CPP needs to be expanded
4799     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4800     do
4801       ac_preproc_ok=false
4802 for ac_c_preproc_warn_flag in '' yes
4803 do
4804   # Use a header file that comes with gcc, so configuring glibc
4805   # with a fresh cross-compiler works.
4806   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807   # <limits.h> exists even on freestanding compilers.
4808   # On the NeXT, cc -E runs the code through the compiler's parser,
4809   # not just through cpp. "Syntax error" is here to catch this case.
4810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h.  */
4812 #ifdef __STDC__
4813 # include <limits.h>
4814 #else
4815 # include <assert.h>
4816 #endif
4817                      Syntax error
4818 _ACEOF
4819 if ac_fn_c_try_cpp "$LINENO"; then :
4820
4821 else
4822   # Broken: fails on valid input.
4823 continue
4824 fi
4825 rm -f conftest.err conftest.i conftest.$ac_ext
4826
4827   # OK, works on sane cases.  Now check whether nonexistent headers
4828   # can be detected and how.
4829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h.  */
4831 #include <ac_nonexistent.h>
4832 _ACEOF
4833 if ac_fn_c_try_cpp "$LINENO"; then :
4834   # Broken: success on invalid input.
4835 continue
4836 else
4837   # Passes both tests.
4838 ac_preproc_ok=:
4839 break
4840 fi
4841 rm -f conftest.err conftest.i conftest.$ac_ext
4842
4843 done
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.i conftest.err conftest.$ac_ext
4846 if $ac_preproc_ok; then :
4847   break
4848 fi
4849
4850     done
4851     ac_cv_prog_CPP=$CPP
4852
4853 fi
4854   CPP=$ac_cv_prog_CPP
4855 else
4856   ac_cv_prog_CPP=$CPP
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4859 $as_echo "$CPP" >&6; }
4860 ac_preproc_ok=false
4861 for ac_c_preproc_warn_flag in '' yes
4862 do
4863   # Use a header file that comes with gcc, so configuring glibc
4864   # with a fresh cross-compiler works.
4865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866   # <limits.h> exists even on freestanding compilers.
4867   # On the NeXT, cc -E runs the code through the compiler's parser,
4868   # not just through cpp. "Syntax error" is here to catch this case.
4869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h.  */
4871 #ifdef __STDC__
4872 # include <limits.h>
4873 #else
4874 # include <assert.h>
4875 #endif
4876                      Syntax error
4877 _ACEOF
4878 if ac_fn_c_try_cpp "$LINENO"; then :
4879
4880 else
4881   # Broken: fails on valid input.
4882 continue
4883 fi
4884 rm -f conftest.err conftest.i conftest.$ac_ext
4885
4886   # OK, works on sane cases.  Now check whether nonexistent headers
4887   # can be detected and how.
4888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h.  */
4890 #include <ac_nonexistent.h>
4891 _ACEOF
4892 if ac_fn_c_try_cpp "$LINENO"; then :
4893   # Broken: success on invalid input.
4894 continue
4895 else
4896   # Passes both tests.
4897 ac_preproc_ok=:
4898 break
4899 fi
4900 rm -f conftest.err conftest.i conftest.$ac_ext
4901
4902 done
4903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4904 rm -f conftest.i conftest.err conftest.$ac_ext
4905 if $ac_preproc_ok; then :
4906
4907 else
4908   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4910 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4911 See \`config.log' for more details" "$LINENO" 5; }
4912 fi
4913
4914 ac_ext=cpp
4915 ac_cpp='$CXXCPP $CPPFLAGS'
4916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4919
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4922 $as_echo_n "checking whether ln -s works... " >&6; }
4923 LN_S=$as_ln_s
4924 if test "$LN_S" = "ln -s"; then
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4926 $as_echo "yes" >&6; }
4927 else
4928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4929 $as_echo "no, using $LN_S" >&6; }
4930 fi
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4933 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4934 set x ${MAKE-make}
4935 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4936 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   cat >conftest.make <<\_ACEOF
4940 SHELL = /bin/sh
4941 all:
4942         @echo '@@@%%%=$(MAKE)=@@@%%%'
4943 _ACEOF
4944 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4946   *@@@%%%=?*=@@@%%%*)
4947     eval ac_cv_prog_make_${ac_make}_set=yes;;
4948   *)
4949     eval ac_cv_prog_make_${ac_make}_set=no;;
4950 esac
4951 rm -f conftest.make
4952 fi
4953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4955 $as_echo "yes" >&6; }
4956   SET_MAKE=
4957 else
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960   SET_MAKE="MAKE=${MAKE-make}"
4961 fi
4962
4963 case `pwd` in
4964   *\ * | *\     *)
4965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4966 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4967 esac
4968
4969
4970
4971 macro_version='2.4.2'
4972 macro_revision='1.3337'
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986 ltmain="$ac_aux_dir/ltmain.sh"
4987
4988 # Make sure we can run config.sub.
4989 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4990   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4993 $as_echo_n "checking build system type... " >&6; }
4994 if ${ac_cv_build+:} false; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   ac_build_alias=$build_alias
4998 test "x$ac_build_alias" = x &&
4999   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5000 test "x$ac_build_alias" = x &&
5001   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5003   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5004
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5007 $as_echo "$ac_cv_build" >&6; }
5008 case $ac_cv_build in
5009 *-*-*) ;;
5010 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5011 esac
5012 build=$ac_cv_build
5013 ac_save_IFS=$IFS; IFS='-'
5014 set x $ac_cv_build
5015 shift
5016 build_cpu=$1
5017 build_vendor=$2
5018 shift; shift
5019 # Remember, the first character of IFS is used to create $*,
5020 # except with old shells:
5021 build_os=$*
5022 IFS=$ac_save_IFS
5023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5024
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5027 $as_echo_n "checking host system type... " >&6; }
5028 if ${ac_cv_host+:} false; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   if test "x$host_alias" = x; then
5032   ac_cv_host=$ac_cv_build
5033 else
5034   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5035     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5036 fi
5037
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5040 $as_echo "$ac_cv_host" >&6; }
5041 case $ac_cv_host in
5042 *-*-*) ;;
5043 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5044 esac
5045 host=$ac_cv_host
5046 ac_save_IFS=$IFS; IFS='-'
5047 set x $ac_cv_host
5048 shift
5049 host_cpu=$1
5050 host_vendor=$2
5051 shift; shift
5052 # Remember, the first character of IFS is used to create $*,
5053 # except with old shells:
5054 host_os=$*
5055 IFS=$ac_save_IFS
5056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5057
5058
5059 # Backslashify metacharacters that are still active within
5060 # double-quoted strings.
5061 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5062
5063 # Same as above, but do not quote variable references.
5064 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5065
5066 # Sed substitution to delay expansion of an escaped shell variable in a
5067 # double_quote_subst'ed string.
5068 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5069
5070 # Sed substitution to delay expansion of an escaped single quote.
5071 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5072
5073 # Sed substitution to avoid accidental globbing in evaled expressions
5074 no_glob_subst='s/\*/\\\*/g'
5075
5076 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5078 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5081 $as_echo_n "checking how to print strings... " >&6; }
5082 # Test print first, because it will be a builtin if present.
5083 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5084    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5085   ECHO='print -r --'
5086 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5087   ECHO='printf %s\n'
5088 else
5089   # Use this function as a fallback that always works.
5090   func_fallback_echo ()
5091   {
5092     eval 'cat <<_LTECHO_EOF
5093 $1
5094 _LTECHO_EOF'
5095   }
5096   ECHO='func_fallback_echo'
5097 fi
5098
5099 # func_echo_all arg...
5100 # Invoke $ECHO with all args, space-separated.
5101 func_echo_all ()
5102 {
5103     $ECHO ""
5104 }
5105
5106 case "$ECHO" in
5107   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5108 $as_echo "printf" >&6; } ;;
5109   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5110 $as_echo "print -r" >&6; } ;;
5111   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5112 $as_echo "cat" >&6; } ;;
5113 esac
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5129 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5130 if ${ac_cv_path_SED+:} false; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5134      for ac_i in 1 2 3 4 5 6 7; do
5135        ac_script="$ac_script$as_nl$ac_script"
5136      done
5137      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5138      { ac_script=; unset ac_script;}
5139      if test -z "$SED"; then
5140   ac_path_SED_found=false
5141   # Loop through the user's path and test for each of PROGNAME-LIST
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147     for ac_prog in sed gsed; do
5148     for ac_exec_ext in '' $ac_executable_extensions; do
5149       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5150       as_fn_executable_p "$ac_path_SED" || continue
5151 # Check for GNU ac_path_SED and select it if it is found.
5152   # Check for GNU $ac_path_SED
5153 case `"$ac_path_SED" --version 2>&1` in
5154 *GNU*)
5155   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5156 *)
5157   ac_count=0
5158   $as_echo_n 0123456789 >"conftest.in"
5159   while :
5160   do
5161     cat "conftest.in" "conftest.in" >"conftest.tmp"
5162     mv "conftest.tmp" "conftest.in"
5163     cp "conftest.in" "conftest.nl"
5164     $as_echo '' >> "conftest.nl"
5165     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167     as_fn_arith $ac_count + 1 && ac_count=$as_val
5168     if test $ac_count -gt ${ac_path_SED_max-0}; then
5169       # Best one so far, save it but keep looking for a better one
5170       ac_cv_path_SED="$ac_path_SED"
5171       ac_path_SED_max=$ac_count
5172     fi
5173     # 10*(2^10) chars as input seems more than enough
5174     test $ac_count -gt 10 && break
5175   done
5176   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 esac
5178
5179       $ac_path_SED_found && break 3
5180     done
5181   done
5182   done
5183 IFS=$as_save_IFS
5184   if test -z "$ac_cv_path_SED"; then
5185     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5186   fi
5187 else
5188   ac_cv_path_SED=$SED
5189 fi
5190
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5193 $as_echo "$ac_cv_path_SED" >&6; }
5194  SED="$ac_cv_path_SED"
5195   rm -f conftest.sed
5196
5197 test -z "$SED" && SED=sed
5198 Xsed="$SED -e 1s/^X//"
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5212 if ${ac_cv_path_GREP+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -z "$GREP"; then
5216   ac_path_GREP_found=false
5217   # Loop through the user's path and test for each of PROGNAME-LIST
5218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_prog in grep ggrep; do
5224     for ac_exec_ext in '' $ac_executable_extensions; do
5225       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5226       as_fn_executable_p "$ac_path_GREP" || continue
5227 # Check for GNU ac_path_GREP and select it if it is found.
5228   # Check for GNU $ac_path_GREP
5229 case `"$ac_path_GREP" --version 2>&1` in
5230 *GNU*)
5231   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5232 *)
5233   ac_count=0
5234   $as_echo_n 0123456789 >"conftest.in"
5235   while :
5236   do
5237     cat "conftest.in" "conftest.in" >"conftest.tmp"
5238     mv "conftest.tmp" "conftest.in"
5239     cp "conftest.in" "conftest.nl"
5240     $as_echo 'GREP' >> "conftest.nl"
5241     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5242     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5243     as_fn_arith $ac_count + 1 && ac_count=$as_val
5244     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5245       # Best one so far, save it but keep looking for a better one
5246       ac_cv_path_GREP="$ac_path_GREP"
5247       ac_path_GREP_max=$ac_count
5248     fi
5249     # 10*(2^10) chars as input seems more than enough
5250     test $ac_count -gt 10 && break
5251   done
5252   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5253 esac
5254
5255       $ac_path_GREP_found && break 3
5256     done
5257   done
5258   done
5259 IFS=$as_save_IFS
5260   if test -z "$ac_cv_path_GREP"; then
5261     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5262   fi
5263 else
5264   ac_cv_path_GREP=$GREP
5265 fi
5266
5267 fi
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5269 $as_echo "$ac_cv_path_GREP" >&6; }
5270  GREP="$ac_cv_path_GREP"
5271
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5274 $as_echo_n "checking for egrep... " >&6; }
5275 if ${ac_cv_path_EGREP+:} false; then :
5276   $as_echo_n "(cached) " >&6
5277 else
5278   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5279    then ac_cv_path_EGREP="$GREP -E"
5280    else
5281      if test -z "$EGREP"; then
5282   ac_path_EGREP_found=false
5283   # Loop through the user's path and test for each of PROGNAME-LIST
5284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289     for ac_prog in egrep; do
5290     for ac_exec_ext in '' $ac_executable_extensions; do
5291       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5292       as_fn_executable_p "$ac_path_EGREP" || continue
5293 # Check for GNU ac_path_EGREP and select it if it is found.
5294   # Check for GNU $ac_path_EGREP
5295 case `"$ac_path_EGREP" --version 2>&1` in
5296 *GNU*)
5297   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5298 *)
5299   ac_count=0
5300   $as_echo_n 0123456789 >"conftest.in"
5301   while :
5302   do
5303     cat "conftest.in" "conftest.in" >"conftest.tmp"
5304     mv "conftest.tmp" "conftest.in"
5305     cp "conftest.in" "conftest.nl"
5306     $as_echo 'EGREP' >> "conftest.nl"
5307     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5308     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5309     as_fn_arith $ac_count + 1 && ac_count=$as_val
5310     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5311       # Best one so far, save it but keep looking for a better one
5312       ac_cv_path_EGREP="$ac_path_EGREP"
5313       ac_path_EGREP_max=$ac_count
5314     fi
5315     # 10*(2^10) chars as input seems more than enough
5316     test $ac_count -gt 10 && break
5317   done
5318   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5319 esac
5320
5321       $ac_path_EGREP_found && break 3
5322     done
5323   done
5324   done
5325 IFS=$as_save_IFS
5326   if test -z "$ac_cv_path_EGREP"; then
5327     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5328   fi
5329 else
5330   ac_cv_path_EGREP=$EGREP
5331 fi
5332
5333    fi
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5336 $as_echo "$ac_cv_path_EGREP" >&6; }
5337  EGREP="$ac_cv_path_EGREP"
5338
5339
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5341 $as_echo_n "checking for fgrep... " >&6; }
5342 if ${ac_cv_path_FGREP+:} false; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5346    then ac_cv_path_FGREP="$GREP -F"
5347    else
5348      if test -z "$FGREP"; then
5349   ac_path_FGREP_found=false
5350   # Loop through the user's path and test for each of PROGNAME-LIST
5351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356     for ac_prog in fgrep; do
5357     for ac_exec_ext in '' $ac_executable_extensions; do
5358       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5359       as_fn_executable_p "$ac_path_FGREP" || continue
5360 # Check for GNU ac_path_FGREP and select it if it is found.
5361   # Check for GNU $ac_path_FGREP
5362 case `"$ac_path_FGREP" --version 2>&1` in
5363 *GNU*)
5364   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5365 *)
5366   ac_count=0
5367   $as_echo_n 0123456789 >"conftest.in"
5368   while :
5369   do
5370     cat "conftest.in" "conftest.in" >"conftest.tmp"
5371     mv "conftest.tmp" "conftest.in"
5372     cp "conftest.in" "conftest.nl"
5373     $as_echo 'FGREP' >> "conftest.nl"
5374     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5375     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5376     as_fn_arith $ac_count + 1 && ac_count=$as_val
5377     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5378       # Best one so far, save it but keep looking for a better one
5379       ac_cv_path_FGREP="$ac_path_FGREP"
5380       ac_path_FGREP_max=$ac_count
5381     fi
5382     # 10*(2^10) chars as input seems more than enough
5383     test $ac_count -gt 10 && break
5384   done
5385   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5386 esac
5387
5388       $ac_path_FGREP_found && break 3
5389     done
5390   done
5391   done
5392 IFS=$as_save_IFS
5393   if test -z "$ac_cv_path_FGREP"; then
5394     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5395   fi
5396 else
5397   ac_cv_path_FGREP=$FGREP
5398 fi
5399
5400    fi
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5403 $as_echo "$ac_cv_path_FGREP" >&6; }
5404  FGREP="$ac_cv_path_FGREP"
5405
5406
5407 test -z "$GREP" && GREP=grep
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 # Check whether --with-gnu-ld was given.
5428 if test "${with_gnu_ld+set}" = set; then :
5429   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5430 else
5431   with_gnu_ld=no
5432 fi
5433
5434 ac_prog=ld
5435 if test "$GCC" = yes; then
5436   # Check if gcc -print-prog-name=ld gives a path.
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5438 $as_echo_n "checking for ld used by $CC... " >&6; }
5439   case $host in
5440   *-*-mingw*)
5441     # gcc leaves a trailing carriage return which upsets mingw
5442     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5443   *)
5444     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5445   esac
5446   case $ac_prog in
5447     # Accept absolute paths.
5448     [\\/]* | ?:[\\/]*)
5449       re_direlt='/[^/][^/]*/\.\./'
5450       # Canonicalize the pathname of ld
5451       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5452       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5453         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5454       done
5455       test -z "$LD" && LD="$ac_prog"
5456       ;;
5457   "")
5458     # If it fails, then pretend we aren't using GCC.
5459     ac_prog=ld
5460     ;;
5461   *)
5462     # If it is relative, then search for the first ld in PATH.
5463     with_gnu_ld=unknown
5464     ;;
5465   esac
5466 elif test "$with_gnu_ld" = yes; then
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5468 $as_echo_n "checking for GNU ld... " >&6; }
5469 else
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5471 $as_echo_n "checking for non-GNU ld... " >&6; }
5472 fi
5473 if ${lt_cv_path_LD+:} false; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   if test -z "$LD"; then
5477   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5478   for ac_dir in $PATH; do
5479     IFS="$lt_save_ifs"
5480     test -z "$ac_dir" && ac_dir=.
5481     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5482       lt_cv_path_LD="$ac_dir/$ac_prog"
5483       # Check to see if the program is GNU ld.  I'd rather use --version,
5484       # but apparently some variants of GNU ld only accept -v.
5485       # Break only if it was the GNU/non-GNU ld that we prefer.
5486       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5487       *GNU* | *'with BFD'*)
5488         test "$with_gnu_ld" != no && break
5489         ;;
5490       *)
5491         test "$with_gnu_ld" != yes && break
5492         ;;
5493       esac
5494     fi
5495   done
5496   IFS="$lt_save_ifs"
5497 else
5498   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5499 fi
5500 fi
5501
5502 LD="$lt_cv_path_LD"
5503 if test -n "$LD"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5505 $as_echo "$LD" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5513 if ${lt_cv_prog_gnu_ld+:} false; then :
5514   $as_echo_n "(cached) " >&6
5515 else
5516   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5517 case `$LD -v 2>&1 </dev/null` in
5518 *GNU* | *'with BFD'*)
5519   lt_cv_prog_gnu_ld=yes
5520   ;;
5521 *)
5522   lt_cv_prog_gnu_ld=no
5523   ;;
5524 esac
5525 fi
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5528 with_gnu_ld=$lt_cv_prog_gnu_ld
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5539 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5540 if ${lt_cv_path_NM+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   if test -n "$NM"; then
5544   # Let the user override the test.
5545   lt_cv_path_NM="$NM"
5546 else
5547   lt_nm_to_check="${ac_tool_prefix}nm"
5548   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5549     lt_nm_to_check="$lt_nm_to_check nm"
5550   fi
5551   for lt_tmp_nm in $lt_nm_to_check; do
5552     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5553     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5554       IFS="$lt_save_ifs"
5555       test -z "$ac_dir" && ac_dir=.
5556       tmp_nm="$ac_dir/$lt_tmp_nm"
5557       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5558         # Check to see if the nm accepts a BSD-compat flag.
5559         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5560         #   nm: unknown option "B" ignored
5561         # Tru64's nm complains that /dev/null is an invalid object file
5562         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5563         */dev/null* | *'Invalid file or object type'*)
5564           lt_cv_path_NM="$tmp_nm -B"
5565           break
5566           ;;
5567         *)
5568           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5569           */dev/null*)
5570             lt_cv_path_NM="$tmp_nm -p"
5571             break
5572             ;;
5573           *)
5574             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5575             continue # so that we can try to find one that supports BSD flags
5576             ;;
5577           esac
5578           ;;
5579         esac
5580       fi
5581     done
5582     IFS="$lt_save_ifs"
5583   done
5584   : ${lt_cv_path_NM=no}
5585 fi
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5588 $as_echo "$lt_cv_path_NM" >&6; }
5589 if test "$lt_cv_path_NM" != "no"; then
5590   NM="$lt_cv_path_NM"
5591 else
5592   # Didn't find any BSD compatible name lister, look for dumpbin.
5593   if test -n "$DUMPBIN"; then :
5594     # Let the user override the test.
5595   else
5596     if test -n "$ac_tool_prefix"; then
5597   for ac_prog in dumpbin "link -dump"
5598   do
5599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_DUMPBIN+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   if test -n "$DUMPBIN"; then
5607   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614     for ac_exec_ext in '' $ac_executable_extensions; do
5615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621   done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 DUMPBIN=$ac_cv_prog_DUMPBIN
5627 if test -n "$DUMPBIN"; then
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5629 $as_echo "$DUMPBIN" >&6; }
5630 else
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636     test -n "$DUMPBIN" && break
5637   done
5638 fi
5639 if test -z "$DUMPBIN"; then
5640   ac_ct_DUMPBIN=$DUMPBIN
5641   for ac_prog in dumpbin "link -dump"
5642 do
5643   # Extract the first word of "$ac_prog", so it can be a program name with args.
5644 set dummy $ac_prog; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   if test -n "$ac_ct_DUMPBIN"; then
5651   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656   IFS=$as_save_IFS
5657   test -z "$as_dir" && as_dir=.
5658     for ac_exec_ext in '' $ac_executable_extensions; do
5659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665   done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5671 if test -n "$ac_ct_DUMPBIN"; then
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5673 $as_echo "$ac_ct_DUMPBIN" >&6; }
5674 else
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678
5679
5680   test -n "$ac_ct_DUMPBIN" && break
5681 done
5682
5683   if test "x$ac_ct_DUMPBIN" = x; then
5684     DUMPBIN=":"
5685   else
5686     case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692     DUMPBIN=$ac_ct_DUMPBIN
5693   fi
5694 fi
5695
5696     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5697     *COFF*)
5698       DUMPBIN="$DUMPBIN -symbols"
5699       ;;
5700     *)
5701       DUMPBIN=:
5702       ;;
5703     esac
5704   fi
5705
5706   if test "$DUMPBIN" != ":"; then
5707     NM="$DUMPBIN"
5708   fi
5709 fi
5710 test -z "$NM" && NM=nm
5711
5712
5713
5714
5715
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5718 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5719 if ${lt_cv_nm_interface+:} false; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722   lt_cv_nm_interface="BSD nm"
5723   echo "int some_variable = 0;" > conftest.$ac_ext
5724   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5725   (eval "$ac_compile" 2>conftest.err)
5726   cat conftest.err >&5
5727   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5728   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5729   cat conftest.err >&5
5730   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5731   cat conftest.out >&5
5732   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5733     lt_cv_nm_interface="MS dumpbin"
5734   fi
5735   rm -f conftest*
5736 fi
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5738 $as_echo "$lt_cv_nm_interface" >&6; }
5739
5740 # find the maximum length of command line arguments
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5742 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5743 if ${lt_cv_sys_max_cmd_len+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746     i=0
5747   teststring="ABCD"
5748
5749   case $build_os in
5750   msdosdjgpp*)
5751     # On DJGPP, this test can blow up pretty badly due to problems in libc
5752     # (any single argument exceeding 2000 bytes causes a buffer overrun
5753     # during glob expansion).  Even if it were fixed, the result of this
5754     # check would be larger than it should be.
5755     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5756     ;;
5757
5758   gnu*)
5759     # Under GNU Hurd, this test is not required because there is
5760     # no limit to the length of command line arguments.
5761     # Libtool will interpret -1 as no limit whatsoever
5762     lt_cv_sys_max_cmd_len=-1;
5763     ;;
5764
5765   cygwin* | mingw* | cegcc*)
5766     # On Win9x/ME, this test blows up -- it succeeds, but takes
5767     # about 5 minutes as the teststring grows exponentially.
5768     # Worse, since 9x/ME are not pre-emptively multitasking,
5769     # you end up with a "frozen" computer, even though with patience
5770     # the test eventually succeeds (with a max line length of 256k).
5771     # Instead, let's just punt: use the minimum linelength reported by
5772     # all of the supported platforms: 8192 (on NT/2K/XP).
5773     lt_cv_sys_max_cmd_len=8192;
5774     ;;
5775
5776   mint*)
5777     # On MiNT this can take a long time and run out of memory.
5778     lt_cv_sys_max_cmd_len=8192;
5779     ;;
5780
5781   amigaos*)
5782     # On AmigaOS with pdksh, this test takes hours, literally.
5783     # So we just punt and use a minimum line length of 8192.
5784     lt_cv_sys_max_cmd_len=8192;
5785     ;;
5786
5787   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5788     # This has been around since 386BSD, at least.  Likely further.
5789     if test -x /sbin/sysctl; then
5790       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5791     elif test -x /usr/sbin/sysctl; then
5792       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5793     else
5794       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5795     fi
5796     # And add a safety zone
5797     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5798     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5799     ;;
5800
5801   interix*)
5802     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5803     lt_cv_sys_max_cmd_len=196608
5804     ;;
5805
5806   os2*)
5807     # The test takes a long time on OS/2.
5808     lt_cv_sys_max_cmd_len=8192
5809     ;;
5810
5811   osf*)
5812     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5813     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5814     # nice to cause kernel panics so lets avoid the loop below.
5815     # First set a reasonable default.
5816     lt_cv_sys_max_cmd_len=16384
5817     #
5818     if test -x /sbin/sysconfig; then
5819       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5820         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5821       esac
5822     fi
5823     ;;
5824   sco3.2v5*)
5825     lt_cv_sys_max_cmd_len=102400
5826     ;;
5827   sysv5* | sco5v6* | sysv4.2uw2*)
5828     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5829     if test -n "$kargmax"; then
5830       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5831     else
5832       lt_cv_sys_max_cmd_len=32768
5833     fi
5834     ;;
5835   *)
5836     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5837     if test -n "$lt_cv_sys_max_cmd_len" && \
5838         test undefined != "$lt_cv_sys_max_cmd_len"; then
5839       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5841     else
5842       # Make teststring a little bigger before we do anything with it.
5843       # a 1K string should be a reasonable start.
5844       for i in 1 2 3 4 5 6 7 8 ; do
5845         teststring=$teststring$teststring
5846       done
5847       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5848       # If test is not a shell built-in, we'll probably end up computing a
5849       # maximum length that is only half of the actual maximum length, but
5850       # we can't tell.
5851       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5852                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5853               test $i != 17 # 1/2 MB should be enough
5854       do
5855         i=`expr $i + 1`
5856         teststring=$teststring$teststring
5857       done
5858       # Only check the string length outside the loop.
5859       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5860       teststring=
5861       # Add a significant safety factor because C++ compilers can tack on
5862       # massive amounts of additional arguments before passing them to the
5863       # linker.  It appears as though 1/2 is a usable value.
5864       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5865     fi
5866     ;;
5867   esac
5868
5869 fi
5870
5871 if test -n $lt_cv_sys_max_cmd_len ; then
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5873 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5874 else
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5876 $as_echo "none" >&6; }
5877 fi
5878 max_cmd_len=$lt_cv_sys_max_cmd_len
5879
5880
5881
5882
5883
5884
5885 : ${CP="cp -f"}
5886 : ${MV="mv -f"}
5887 : ${RM="rm -f"}
5888
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5890 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5891 # Try some XSI features
5892 xsi_shell=no
5893 ( _lt_dummy="a/b/c"
5894   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5895       = c,a/b,b/c, \
5896     && eval 'test $(( 1 + 1 )) -eq 2 \
5897     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5898   && xsi_shell=yes
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5900 $as_echo "$xsi_shell" >&6; }
5901
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5904 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5905 lt_shell_append=no
5906 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5907     >/dev/null 2>&1 \
5908   && lt_shell_append=yes
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5910 $as_echo "$lt_shell_append" >&6; }
5911
5912
5913 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5914   lt_unset=unset
5915 else
5916   lt_unset=false
5917 fi
5918
5919
5920
5921
5922
5923 # test EBCDIC or ASCII
5924 case `echo X|tr X '\101'` in
5925  A) # ASCII based system
5926     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5927   lt_SP2NL='tr \040 \012'
5928   lt_NL2SP='tr \015\012 \040\040'
5929   ;;
5930  *) # EBCDIC based system
5931   lt_SP2NL='tr \100 \n'
5932   lt_NL2SP='tr \r\n \100\100'
5933   ;;
5934 esac
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5945 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5946 if ${lt_cv_to_host_file_cmd+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   case $host in
5950   *-*-mingw* )
5951     case $build in
5952       *-*-mingw* ) # actually msys
5953         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5954         ;;
5955       *-*-cygwin* )
5956         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5957         ;;
5958       * ) # otherwise, assume *nix
5959         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5960         ;;
5961     esac
5962     ;;
5963   *-*-cygwin* )
5964     case $build in
5965       *-*-mingw* ) # actually msys
5966         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5967         ;;
5968       *-*-cygwin* )
5969         lt_cv_to_host_file_cmd=func_convert_file_noop
5970         ;;
5971       * ) # otherwise, assume *nix
5972         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5973         ;;
5974     esac
5975     ;;
5976   * ) # unhandled hosts (and "normal" native builds)
5977     lt_cv_to_host_file_cmd=func_convert_file_noop
5978     ;;
5979 esac
5980
5981 fi
5982
5983 to_host_file_cmd=$lt_cv_to_host_file_cmd
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5985 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5986
5987
5988
5989
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5992 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5993 if ${lt_cv_to_tool_file_cmd+:} false; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   #assume ordinary cross tools, or native build.
5997 lt_cv_to_tool_file_cmd=func_convert_file_noop
5998 case $host in
5999   *-*-mingw* )
6000     case $build in
6001       *-*-mingw* ) # actually msys
6002         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6003         ;;
6004     esac
6005     ;;
6006 esac
6007
6008 fi
6009
6010 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6012 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6013
6014
6015
6016
6017
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6019 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6020 if ${lt_cv_ld_reload_flag+:} false; then :
6021   $as_echo_n "(cached) " >&6
6022 else
6023   lt_cv_ld_reload_flag='-r'
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6026 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6027 reload_flag=$lt_cv_ld_reload_flag
6028 case $reload_flag in
6029 "" | " "*) ;;
6030 *) reload_flag=" $reload_flag" ;;
6031 esac
6032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6033 case $host_os in
6034   cygwin* | mingw* | pw32* | cegcc*)
6035     if test "$GCC" != yes; then
6036       reload_cmds=false
6037     fi
6038     ;;
6039   darwin*)
6040     if test "$GCC" = yes; then
6041       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6042     else
6043       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6044     fi
6045     ;;
6046 esac
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056 if test -n "$ac_tool_prefix"; then
6057   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6058 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if ${ac_cv_prog_OBJDUMP+:} false; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   if test -n "$OBJDUMP"; then
6065   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070   IFS=$as_save_IFS
6071   test -z "$as_dir" && as_dir=.
6072     for ac_exec_ext in '' $ac_executable_extensions; do
6073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6074     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076     break 2
6077   fi
6078 done
6079   done
6080 IFS=$as_save_IFS
6081
6082 fi
6083 fi
6084 OBJDUMP=$ac_cv_prog_OBJDUMP
6085 if test -n "$OBJDUMP"; then
6086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6087 $as_echo "$OBJDUMP" >&6; }
6088 else
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }
6091 fi
6092
6093
6094 fi
6095 if test -z "$ac_cv_prog_OBJDUMP"; then
6096   ac_ct_OBJDUMP=$OBJDUMP
6097   # Extract the first word of "objdump", so it can be a program name with args.
6098 set dummy objdump; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   if test -n "$ac_ct_OBJDUMP"; then
6105   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112     for ac_exec_ext in '' $ac_executable_extensions; do
6113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119   done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6125 if test -n "$ac_ct_OBJDUMP"; then
6126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6127 $as_echo "$ac_ct_OBJDUMP" >&6; }
6128 else
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133   if test "x$ac_ct_OBJDUMP" = x; then
6134     OBJDUMP="false"
6135   else
6136     case $cross_compiling:$ac_tool_warned in
6137 yes:)
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6140 ac_tool_warned=yes ;;
6141 esac
6142     OBJDUMP=$ac_ct_OBJDUMP
6143   fi
6144 else
6145   OBJDUMP="$ac_cv_prog_OBJDUMP"
6146 fi
6147
6148 test -z "$OBJDUMP" && OBJDUMP=objdump
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6159 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6160 if ${lt_cv_deplibs_check_method+:} false; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163   lt_cv_file_magic_cmd='$MAGIC_CMD'
6164 lt_cv_file_magic_test_file=
6165 lt_cv_deplibs_check_method='unknown'
6166 # Need to set the preceding variable on all platforms that support
6167 # interlibrary dependencies.
6168 # 'none' -- dependencies not supported.
6169 # `unknown' -- same as none, but documents that we really don't know.
6170 # 'pass_all' -- all dependencies passed with no checks.
6171 # 'test_compile' -- check by making test program.
6172 # 'file_magic [[regex]]' -- check by looking for files in library path
6173 # which responds to the $file_magic_cmd with a given extended regex.
6174 # If you have `file' or equivalent on your system and you're not sure
6175 # whether `pass_all' will *always* work, you probably want this one.
6176
6177 case $host_os in
6178 aix[4-9]*)
6179   lt_cv_deplibs_check_method=pass_all
6180   ;;
6181
6182 beos*)
6183   lt_cv_deplibs_check_method=pass_all
6184   ;;
6185
6186 bsdi[45]*)
6187   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6188   lt_cv_file_magic_cmd='/usr/bin/file -L'
6189   lt_cv_file_magic_test_file=/shlib/libc.so
6190   ;;
6191
6192 cygwin*)
6193   # func_win32_libid is a shell function defined in ltmain.sh
6194   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6195   lt_cv_file_magic_cmd='func_win32_libid'
6196   ;;
6197
6198 mingw* | pw32*)
6199   # Base MSYS/MinGW do not provide the 'file' command needed by
6200   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6201   # unless we find 'file', for example because we are cross-compiling.
6202   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6203   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6204     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6205     lt_cv_file_magic_cmd='func_win32_libid'
6206   else
6207     # Keep this pattern in sync with the one in func_win32_libid.
6208     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6209     lt_cv_file_magic_cmd='$OBJDUMP -f'
6210   fi
6211   ;;
6212
6213 cegcc*)
6214   # use the weaker test based on 'objdump'. See mingw*.
6215   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6216   lt_cv_file_magic_cmd='$OBJDUMP -f'
6217   ;;
6218
6219 darwin* | rhapsody*)
6220   lt_cv_deplibs_check_method=pass_all
6221   ;;
6222
6223 freebsd* | dragonfly*)
6224   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6225     case $host_cpu in
6226     i*86 )
6227       # Not sure whether the presence of OpenBSD here was a mistake.
6228       # Let's accept both of them until this is cleared up.
6229       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6230       lt_cv_file_magic_cmd=/usr/bin/file
6231       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6232       ;;
6233     esac
6234   else
6235     lt_cv_deplibs_check_method=pass_all
6236   fi
6237   ;;
6238
6239 haiku*)
6240   lt_cv_deplibs_check_method=pass_all
6241   ;;
6242
6243 hpux10.20* | hpux11*)
6244   lt_cv_file_magic_cmd=/usr/bin/file
6245   case $host_cpu in
6246   ia64*)
6247     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6248     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6249     ;;
6250   hppa*64*)
6251     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6252     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6253     ;;
6254   *)
6255     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6256     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6257     ;;
6258   esac
6259   ;;
6260
6261 interix[3-9]*)
6262   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6263   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6264   ;;
6265
6266 irix5* | irix6* | nonstopux*)
6267   case $LD in
6268   *-32|*"-32 ") libmagic=32-bit;;
6269   *-n32|*"-n32 ") libmagic=N32;;
6270   *-64|*"-64 ") libmagic=64-bit;;
6271   *) libmagic=never-match;;
6272   esac
6273   lt_cv_deplibs_check_method=pass_all
6274   ;;
6275
6276 # This must be glibc/ELF.
6277 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6278   lt_cv_deplibs_check_method=pass_all
6279   ;;
6280
6281 netbsd* | netbsdelf*-gnu)
6282   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6283     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6284   else
6285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6286   fi
6287   ;;
6288
6289 newos6*)
6290   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6291   lt_cv_file_magic_cmd=/usr/bin/file
6292   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6293   ;;
6294
6295 *nto* | *qnx*)
6296   lt_cv_deplibs_check_method=pass_all
6297   ;;
6298
6299 openbsd*)
6300   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6301     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6302   else
6303     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6304   fi
6305   ;;
6306
6307 osf3* | osf4* | osf5*)
6308   lt_cv_deplibs_check_method=pass_all
6309   ;;
6310
6311 rdos*)
6312   lt_cv_deplibs_check_method=pass_all
6313   ;;
6314
6315 solaris*)
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6320   lt_cv_deplibs_check_method=pass_all
6321   ;;
6322
6323 sysv4 | sysv4.3*)
6324   case $host_vendor in
6325   motorola)
6326     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6327     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6328     ;;
6329   ncr)
6330     lt_cv_deplibs_check_method=pass_all
6331     ;;
6332   sequent)
6333     lt_cv_file_magic_cmd='/bin/file'
6334     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6335     ;;
6336   sni)
6337     lt_cv_file_magic_cmd='/bin/file'
6338     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6339     lt_cv_file_magic_test_file=/lib/libc.so
6340     ;;
6341   siemens)
6342     lt_cv_deplibs_check_method=pass_all
6343     ;;
6344   pc)
6345     lt_cv_deplibs_check_method=pass_all
6346     ;;
6347   esac
6348   ;;
6349
6350 tpf*)
6351   lt_cv_deplibs_check_method=pass_all
6352   ;;
6353 esac
6354
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6357 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6358
6359 file_magic_glob=
6360 want_nocaseglob=no
6361 if test "$build" = "$host"; then
6362   case $host_os in
6363   mingw* | pw32*)
6364     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6365       want_nocaseglob=yes
6366     else
6367       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6368     fi
6369     ;;
6370   esac
6371 fi
6372
6373 file_magic_cmd=$lt_cv_file_magic_cmd
6374 deplibs_check_method=$lt_cv_deplibs_check_method
6375 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 if test -n "$ac_tool_prefix"; then
6399   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_DLLTOOL+:} false; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   if test -n "$DLLTOOL"; then
6407   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414     for ac_exec_ext in '' $ac_executable_extensions; do
6415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421   done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 DLLTOOL=$ac_cv_prog_DLLTOOL
6427 if test -n "$DLLTOOL"; then
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6429 $as_echo "$DLLTOOL" >&6; }
6430 else
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435
6436 fi
6437 if test -z "$ac_cv_prog_DLLTOOL"; then
6438   ac_ct_DLLTOOL=$DLLTOOL
6439   # Extract the first word of "dlltool", so it can be a program name with args.
6440 set dummy dlltool; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$ac_ct_DLLTOOL"; then
6447   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6467 if test -n "$ac_ct_DLLTOOL"; then
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6469 $as_echo "$ac_ct_DLLTOOL" >&6; }
6470 else
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475   if test "x$ac_ct_DLLTOOL" = x; then
6476     DLLTOOL="false"
6477   else
6478     case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484     DLLTOOL=$ac_ct_DLLTOOL
6485   fi
6486 else
6487   DLLTOOL="$ac_cv_prog_DLLTOOL"
6488 fi
6489
6490 test -z "$DLLTOOL" && DLLTOOL=dlltool
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6502 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6503 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   lt_cv_sharedlib_from_linklib_cmd='unknown'
6507
6508 case $host_os in
6509 cygwin* | mingw* | pw32* | cegcc*)
6510   # two different shell functions defined in ltmain.sh
6511   # decide which to use based on capabilities of $DLLTOOL
6512   case `$DLLTOOL --help 2>&1` in
6513   *--identify-strict*)
6514     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6515     ;;
6516   *)
6517     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6518     ;;
6519   esac
6520   ;;
6521 *)
6522   # fallback: assume linklib IS sharedlib
6523   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6524   ;;
6525 esac
6526
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6529 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6530 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6531 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6532
6533
6534
6535
6536
6537
6538
6539
6540 if test -n "$ac_tool_prefix"; then
6541   for ac_prog in ar
6542   do
6543     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_AR+:} false; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   if test -n "$AR"; then
6551   ac_cv_prog_AR="$AR" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565   done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 AR=$ac_cv_prog_AR
6571 if test -n "$AR"; then
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6573 $as_echo "$AR" >&6; }
6574 else
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579
6580     test -n "$AR" && break
6581   done
6582 fi
6583 if test -z "$AR"; then
6584   ac_ct_AR=$AR
6585   for ac_prog in ar
6586 do
6587   # Extract the first word of "$ac_prog", so it can be a program name with args.
6588 set dummy $ac_prog; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   if test -n "$ac_ct_AR"; then
6595   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602     for ac_exec_ext in '' $ac_executable_extensions; do
6603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604     ac_cv_prog_ac_ct_AR="$ac_prog"
6605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609   done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6615 if test -n "$ac_ct_AR"; then
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6617 $as_echo "$ac_ct_AR" >&6; }
6618 else
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623
6624   test -n "$ac_ct_AR" && break
6625 done
6626
6627   if test "x$ac_ct_AR" = x; then
6628     AR="false"
6629   else
6630     case $cross_compiling:$ac_tool_warned in
6631 yes:)
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6635 esac
6636     AR=$ac_ct_AR
6637   fi
6638 fi
6639
6640 : ${AR=ar}
6641 : ${AR_FLAGS=cru}
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6654 $as_echo_n "checking for archiver @FILE support... " >&6; }
6655 if ${lt_cv_ar_at_file+:} false; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   lt_cv_ar_at_file=no
6659    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h.  */
6661
6662 int
6663 main ()
6664 {
6665
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 if ac_fn_cxx_try_compile "$LINENO"; then :
6671   echo conftest.$ac_objext > conftest.lst
6672       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6673       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6674   (eval $lt_ar_try) 2>&5
6675   ac_status=$?
6676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677   test $ac_status = 0; }
6678       if test "$ac_status" -eq 0; then
6679         # Ensure the archiver fails upon bogus file names.
6680         rm -f conftest.$ac_objext libconftest.a
6681         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6682   (eval $lt_ar_try) 2>&5
6683   ac_status=$?
6684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685   test $ac_status = 0; }
6686         if test "$ac_status" -ne 0; then
6687           lt_cv_ar_at_file=@
6688         fi
6689       fi
6690       rm -f conftest.* libconftest.a
6691
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6697 $as_echo "$lt_cv_ar_at_file" >&6; }
6698
6699 if test "x$lt_cv_ar_at_file" = xno; then
6700   archiver_list_spec=
6701 else
6702   archiver_list_spec=$lt_cv_ar_at_file
6703 fi
6704
6705
6706
6707
6708
6709
6710
6711 if test -n "$ac_tool_prefix"; then
6712   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}strip; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_STRIP+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$STRIP"; then
6720   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727     for ac_exec_ext in '' $ac_executable_extensions; do
6728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734   done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 STRIP=$ac_cv_prog_STRIP
6740 if test -n "$STRIP"; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6742 $as_echo "$STRIP" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_STRIP"; then
6751   ac_ct_STRIP=$STRIP
6752   # Extract the first word of "strip", so it can be a program name with args.
6753 set dummy strip; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   if test -n "$ac_ct_STRIP"; then
6760   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767     for ac_exec_ext in '' $ac_executable_extensions; do
6768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769     ac_cv_prog_ac_ct_STRIP="strip"
6770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774   done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6780 if test -n "$ac_ct_STRIP"; then
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6782 $as_echo "$ac_ct_STRIP" >&6; }
6783 else
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788   if test "x$ac_ct_STRIP" = x; then
6789     STRIP=":"
6790   else
6791     case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797     STRIP=$ac_ct_STRIP
6798   fi
6799 else
6800   STRIP="$ac_cv_prog_STRIP"
6801 fi
6802
6803 test -z "$STRIP" && STRIP=:
6804
6805
6806
6807
6808
6809
6810 if test -n "$ac_tool_prefix"; then
6811   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_RANLIB+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   if test -n "$RANLIB"; then
6819   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826     for ac_exec_ext in '' $ac_executable_extensions; do
6827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833   done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 RANLIB=$ac_cv_prog_RANLIB
6839 if test -n "$RANLIB"; then
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6841 $as_echo "$RANLIB" >&6; }
6842 else
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847
6848 fi
6849 if test -z "$ac_cv_prog_RANLIB"; then
6850   ac_ct_RANLIB=$RANLIB
6851   # Extract the first word of "ranlib", so it can be a program name with args.
6852 set dummy ranlib; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858   if test -n "$ac_ct_RANLIB"; then
6859   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866     for ac_exec_ext in '' $ac_executable_extensions; do
6867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868     ac_cv_prog_ac_ct_RANLIB="ranlib"
6869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873   done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6879 if test -n "$ac_ct_RANLIB"; then
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6881 $as_echo "$ac_ct_RANLIB" >&6; }
6882 else
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887   if test "x$ac_ct_RANLIB" = x; then
6888     RANLIB=":"
6889   else
6890     case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896     RANLIB=$ac_ct_RANLIB
6897   fi
6898 else
6899   RANLIB="$ac_cv_prog_RANLIB"
6900 fi
6901
6902 test -z "$RANLIB" && RANLIB=:
6903
6904
6905
6906
6907
6908
6909 # Determine commands to create old-style static archives.
6910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6911 old_postinstall_cmds='chmod 644 $oldlib'
6912 old_postuninstall_cmds=
6913
6914 if test -n "$RANLIB"; then
6915   case $host_os in
6916   openbsd*)
6917     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6918     ;;
6919   *)
6920     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6921     ;;
6922   esac
6923   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6924 fi
6925
6926 case $host_os in
6927   darwin*)
6928     lock_old_archive_extraction=yes ;;
6929   *)
6930     lock_old_archive_extraction=no ;;
6931 esac
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971 # If no C compiler was specified, use CC.
6972 LTCC=${LTCC-"$CC"}
6973
6974 # If no C compiler flags were specified, use CFLAGS.
6975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6976
6977 # Allow CC to be a program name with arguments.
6978 compiler=$CC
6979
6980
6981 # Check for command to grab the raw symbol name followed by C symbol from nm.
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6984 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987
6988 # These are sane defaults that work on at least a few old systems.
6989 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6990
6991 # Character class describing NM global symbol codes.
6992 symcode='[BCDEGRST]'
6993
6994 # Regexp to match symbols that can be accessed directly from C.
6995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6996
6997 # Define system-specific variables.
6998 case $host_os in
6999 aix*)
7000   symcode='[BCDT]'
7001   ;;
7002 cygwin* | mingw* | pw32* | cegcc*)
7003   symcode='[ABCDGISTW]'
7004   ;;
7005 hpux*)
7006   if test "$host_cpu" = ia64; then
7007     symcode='[ABCDEGRST]'
7008   fi
7009   ;;
7010 irix* | nonstopux*)
7011   symcode='[BCDEGRST]'
7012   ;;
7013 osf*)
7014   symcode='[BCDEGQRST]'
7015   ;;
7016 solaris*)
7017   symcode='[BDRT]'
7018   ;;
7019 sco3.2v5*)
7020   symcode='[DT]'
7021   ;;
7022 sysv4.2uw2*)
7023   symcode='[DT]'
7024   ;;
7025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7026   symcode='[ABDT]'
7027   ;;
7028 sysv4)
7029   symcode='[DFNSTU]'
7030   ;;
7031 esac
7032
7033 # If we're using GNU nm, then use its standard symbol codes.
7034 case `$NM -V 2>&1` in
7035 *GNU* | *'with BFD'*)
7036   symcode='[ABCDGIRSTW]' ;;
7037 esac
7038
7039 # Transform an extracted symbol line into a proper C declaration.
7040 # Some systems (esp. on ia64) link data and code symbols differently,
7041 # so use this general approach.
7042 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7043
7044 # Transform an extracted symbol line into symbol name and symbol address
7045 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7046 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7047
7048 # Handle CRLF in mingw tool chain
7049 opt_cr=
7050 case $build_os in
7051 mingw*)
7052   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7053   ;;
7054 esac
7055
7056 # Try without a prefix underscore, then with it.
7057 for ac_symprfx in "" "_"; do
7058
7059   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7060   symxfrm="\\1 $ac_symprfx\\2 \\2"
7061
7062   # Write the raw and C identifiers.
7063   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7064     # Fake it for dumpbin and say T for any non-static function
7065     # and D for any global variable.
7066     # Also find C++ and __fastcall symbols from MSVC++,
7067     # which start with @ or ?.
7068     lt_cv_sys_global_symbol_pipe="$AWK '"\
7069 "     {last_section=section; section=\$ 3};"\
7070 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7071 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7072 "     \$ 0!~/External *\|/{next};"\
7073 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7074 "     {if(hide[section]) next};"\
7075 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7076 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7077 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7078 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7079 "     ' prfx=^$ac_symprfx"
7080   else
7081     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7082   fi
7083   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7084
7085   # Check to see that the pipe works correctly.
7086   pipe_works=no
7087
7088   rm -f conftest*
7089   cat > conftest.$ac_ext <<_LT_EOF
7090 #ifdef __cplusplus
7091 extern "C" {
7092 #endif
7093 char nm_test_var;
7094 void nm_test_func(void);
7095 void nm_test_func(void){}
7096 #ifdef __cplusplus
7097 }
7098 #endif
7099 int main(){nm_test_var='a';nm_test_func();return(0);}
7100 _LT_EOF
7101
7102   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7103   (eval $ac_compile) 2>&5
7104   ac_status=$?
7105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7106   test $ac_status = 0; }; then
7107     # Now try to grab the symbols.
7108     nlist=conftest.nm
7109     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7110   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7111   ac_status=$?
7112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7113   test $ac_status = 0; } && test -s "$nlist"; then
7114       # Try sorting and uniquifying the output.
7115       if sort "$nlist" | uniq > "$nlist"T; then
7116         mv -f "$nlist"T "$nlist"
7117       else
7118         rm -f "$nlist"T
7119       fi
7120
7121       # Make sure that we snagged all the symbols we need.
7122       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7123         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7124           cat <<_LT_EOF > conftest.$ac_ext
7125 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7126 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7127 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7128    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7129 # define LT_DLSYM_CONST
7130 #elif defined(__osf__)
7131 /* This system does not cope well with relocations in const data.  */
7132 # define LT_DLSYM_CONST
7133 #else
7134 # define LT_DLSYM_CONST const
7135 #endif
7136
7137 #ifdef __cplusplus
7138 extern "C" {
7139 #endif
7140
7141 _LT_EOF
7142           # Now generate the symbol file.
7143           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7144
7145           cat <<_LT_EOF >> conftest.$ac_ext
7146
7147 /* The mapping between symbol names and symbols.  */
7148 LT_DLSYM_CONST struct {
7149   const char *name;
7150   void       *address;
7151 }
7152 lt__PROGRAM__LTX_preloaded_symbols[] =
7153 {
7154   { "@PROGRAM@", (void *) 0 },
7155 _LT_EOF
7156           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7157           cat <<\_LT_EOF >> conftest.$ac_ext
7158   {0, (void *) 0}
7159 };
7160
7161 /* This works around a problem in FreeBSD linker */
7162 #ifdef FREEBSD_WORKAROUND
7163 static const void *lt_preloaded_setup() {
7164   return lt__PROGRAM__LTX_preloaded_symbols;
7165 }
7166 #endif
7167
7168 #ifdef __cplusplus
7169 }
7170 #endif
7171 _LT_EOF
7172           # Now try linking the two files.
7173           mv conftest.$ac_objext conftstm.$ac_objext
7174           lt_globsym_save_LIBS=$LIBS
7175           lt_globsym_save_CFLAGS=$CFLAGS
7176           LIBS="conftstm.$ac_objext"
7177           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7178           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7179   (eval $ac_link) 2>&5
7180   ac_status=$?
7181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7183             pipe_works=yes
7184           fi
7185           LIBS=$lt_globsym_save_LIBS
7186           CFLAGS=$lt_globsym_save_CFLAGS
7187         else
7188           echo "cannot find nm_test_func in $nlist" >&5
7189         fi
7190       else
7191         echo "cannot find nm_test_var in $nlist" >&5
7192       fi
7193     else
7194       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7195     fi
7196   else
7197     echo "$progname: failed program was:" >&5
7198     cat conftest.$ac_ext >&5
7199   fi
7200   rm -rf conftest* conftst*
7201
7202   # Do not use the global_symbol_pipe unless it works.
7203   if test "$pipe_works" = yes; then
7204     break
7205   else
7206     lt_cv_sys_global_symbol_pipe=
7207   fi
7208 done
7209
7210 fi
7211
7212 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7213   lt_cv_sys_global_symbol_to_cdecl=
7214 fi
7215 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7217 $as_echo "failed" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7220 $as_echo "ok" >&6; }
7221 fi
7222
7223 # Response file support.
7224 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7225   nm_file_list_spec='@'
7226 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7227   nm_file_list_spec='@'
7228 fi
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7257 $as_echo_n "checking for sysroot... " >&6; }
7258
7259 # Check whether --with-sysroot was given.
7260 if test "${with_sysroot+set}" = set; then :
7261   withval=$with_sysroot;
7262 else
7263   with_sysroot=no
7264 fi
7265
7266
7267 lt_sysroot=
7268 case ${with_sysroot} in #(
7269  yes)
7270    if test "$GCC" = yes; then
7271      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7272    fi
7273    ;; #(
7274  /*)
7275    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7276    ;; #(
7277  no|'')
7278    ;; #(
7279  *)
7280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7281 $as_echo "${with_sysroot}" >&6; }
7282    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7283    ;;
7284 esac
7285
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7287 $as_echo "${lt_sysroot:-no}" >&6; }
7288
7289
7290
7291
7292
7293
7294 # Check whether --enable-libtool-lock was given.
7295 if test "${enable_libtool_lock+set}" = set; then :
7296   enableval=$enable_libtool_lock;
7297 fi
7298
7299 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7300
7301 # Some flags need to be propagated to the compiler or linker for good
7302 # libtool support.
7303 case $host in
7304 ia64-*-hpux*)
7305   # Find out which ABI we are using.
7306   echo 'int i;' > conftest.$ac_ext
7307   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7308   (eval $ac_compile) 2>&5
7309   ac_status=$?
7310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311   test $ac_status = 0; }; then
7312     case `/usr/bin/file conftest.$ac_objext` in
7313       *ELF-32*)
7314         HPUX_IA64_MODE="32"
7315         ;;
7316       *ELF-64*)
7317         HPUX_IA64_MODE="64"
7318         ;;
7319     esac
7320   fi
7321   rm -rf conftest*
7322   ;;
7323 *-*-irix6*)
7324   # Find out which ABI we are using.
7325   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7326   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7327   (eval $ac_compile) 2>&5
7328   ac_status=$?
7329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7330   test $ac_status = 0; }; then
7331     if test "$lt_cv_prog_gnu_ld" = yes; then
7332       case `/usr/bin/file conftest.$ac_objext` in
7333         *32-bit*)
7334           LD="${LD-ld} -melf32bsmip"
7335           ;;
7336         *N32*)
7337           LD="${LD-ld} -melf32bmipn32"
7338           ;;
7339         *64-bit*)
7340           LD="${LD-ld} -melf64bmip"
7341         ;;
7342       esac
7343     else
7344       case `/usr/bin/file conftest.$ac_objext` in
7345         *32-bit*)
7346           LD="${LD-ld} -32"
7347           ;;
7348         *N32*)
7349           LD="${LD-ld} -n32"
7350           ;;
7351         *64-bit*)
7352           LD="${LD-ld} -64"
7353           ;;
7354       esac
7355     fi
7356   fi
7357   rm -rf conftest*
7358   ;;
7359
7360 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7361 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7362   # Find out which ABI we are using.
7363   echo 'int i;' > conftest.$ac_ext
7364   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7365   (eval $ac_compile) 2>&5
7366   ac_status=$?
7367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368   test $ac_status = 0; }; then
7369     case `/usr/bin/file conftest.o` in
7370       *32-bit*)
7371         case $host in
7372           x86_64-*kfreebsd*-gnu)
7373             LD="${LD-ld} -m elf_i386_fbsd"
7374             ;;
7375           x86_64-*linux*)
7376             case `/usr/bin/file conftest.o` in
7377               *x86-64*)
7378                 LD="${LD-ld} -m elf32_x86_64"
7379                 ;;
7380               *)
7381                 LD="${LD-ld} -m elf_i386"
7382                 ;;
7383             esac
7384             ;;
7385           ppc64-*linux*|powerpc64-*linux*)
7386             LD="${LD-ld} -m elf32ppclinux"
7387             ;;
7388           s390x-*linux*)
7389             LD="${LD-ld} -m elf_s390"
7390             ;;
7391           sparc64-*linux*)
7392             LD="${LD-ld} -m elf32_sparc"
7393             ;;
7394         esac
7395         ;;
7396       *64-bit*)
7397         case $host in
7398           x86_64-*kfreebsd*-gnu)
7399             LD="${LD-ld} -m elf_x86_64_fbsd"
7400             ;;
7401           x86_64-*linux*)
7402             LD="${LD-ld} -m elf_x86_64"
7403             ;;
7404           ppc*-*linux*|powerpc*-*linux*)
7405             LD="${LD-ld} -m elf64ppc"
7406             ;;
7407           s390*-*linux*|s390*-*tpf*)
7408             LD="${LD-ld} -m elf64_s390"
7409             ;;
7410           sparc*-*linux*)
7411             LD="${LD-ld} -m elf64_sparc"
7412             ;;
7413         esac
7414         ;;
7415     esac
7416   fi
7417   rm -rf conftest*
7418   ;;
7419
7420 *-*-sco3.2v5*)
7421   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7422   SAVE_CFLAGS="$CFLAGS"
7423   CFLAGS="$CFLAGS -belf"
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7425 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7426 if ${lt_cv_cc_needs_belf+:} false; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   ac_ext=c
7430 ac_cpp='$CPP $CPPFLAGS'
7431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7434
7435      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h.  */
7437
7438 int
7439 main ()
7440 {
7441
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 if ac_fn_c_try_link "$LINENO"; then :
7447   lt_cv_cc_needs_belf=yes
7448 else
7449   lt_cv_cc_needs_belf=no
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext \
7452     conftest$ac_exeext conftest.$ac_ext
7453      ac_ext=c
7454 ac_cpp='$CPP $CPPFLAGS'
7455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458
7459 fi
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7461 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7462   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7463     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7464     CFLAGS="$SAVE_CFLAGS"
7465   fi
7466   ;;
7467 *-*solaris*)
7468   # Find out which ABI we are using.
7469   echo 'int i;' > conftest.$ac_ext
7470   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7471   (eval $ac_compile) 2>&5
7472   ac_status=$?
7473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474   test $ac_status = 0; }; then
7475     case `/usr/bin/file conftest.o` in
7476     *64-bit*)
7477       case $lt_cv_prog_gnu_ld in
7478       yes*)
7479         case $host in
7480         i?86-*-solaris*)
7481           LD="${LD-ld} -m elf_x86_64"
7482           ;;
7483         sparc*-*-solaris*)
7484           LD="${LD-ld} -m elf64_sparc"
7485           ;;
7486         esac
7487         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7488         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7489           LD="${LD-ld}_sol2"
7490         fi
7491         ;;
7492       *)
7493         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7494           LD="${LD-ld} -64"
7495         fi
7496         ;;
7497       esac
7498       ;;
7499     esac
7500   fi
7501   rm -rf conftest*
7502   ;;
7503 esac
7504
7505 need_locks="$enable_libtool_lock"
7506
7507 if test -n "$ac_tool_prefix"; then
7508   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}mt; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   if test -n "$MANIFEST_TOOL"; then
7516   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523     for ac_exec_ext in '' $ac_executable_extensions; do
7524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530   done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7536 if test -n "$MANIFEST_TOOL"; then
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7538 $as_echo "$MANIFEST_TOOL" >&6; }
7539 else
7540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544
7545 fi
7546 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7547   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7548   # Extract the first word of "mt", so it can be a program name with args.
7549 set dummy mt; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   if test -n "$ac_ct_MANIFEST_TOOL"; then
7556   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563     for ac_exec_ext in '' $ac_executable_extensions; do
7564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570   done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7576 if test -n "$ac_ct_MANIFEST_TOOL"; then
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7578 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7579 else
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 fi
7583
7584   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7585     MANIFEST_TOOL=":"
7586   else
7587     case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7592 esac
7593     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7594   fi
7595 else
7596   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7597 fi
7598
7599 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7601 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7602 if ${lt_cv_path_mainfest_tool+:} false; then :
7603   $as_echo_n "(cached) " >&6
7604 else
7605   lt_cv_path_mainfest_tool=no
7606   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7607   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7608   cat conftest.err >&5
7609   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7610     lt_cv_path_mainfest_tool=yes
7611   fi
7612   rm -f conftest*
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7615 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7616 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7617   MANIFEST_TOOL=:
7618 fi
7619
7620
7621
7622
7623
7624
7625   case $host_os in
7626     rhapsody* | darwin*)
7627     if test -n "$ac_tool_prefix"; then
7628   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7629 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   if test -n "$DSYMUTIL"; then
7636   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643     for ac_exec_ext in '' $ac_executable_extensions; do
7644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650   done
7651 IFS=$as_save_IFS
7652
7653 fi
7654 fi
7655 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7656 if test -n "$DSYMUTIL"; then
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7658 $as_echo "$DSYMUTIL" >&6; }
7659 else
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663
7664
7665 fi
7666 if test -z "$ac_cv_prog_DSYMUTIL"; then
7667   ac_ct_DSYMUTIL=$DSYMUTIL
7668   # Extract the first word of "dsymutil", so it can be a program name with args.
7669 set dummy dsymutil; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   if test -n "$ac_ct_DSYMUTIL"; then
7676   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683     for ac_exec_ext in '' $ac_executable_extensions; do
7684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690   done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7696 if test -n "$ac_ct_DSYMUTIL"; then
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7698 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7699 else
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7702 fi
7703
7704   if test "x$ac_ct_DSYMUTIL" = x; then
7705     DSYMUTIL=":"
7706   else
7707     case $cross_compiling:$ac_tool_warned in
7708 yes:)
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711 ac_tool_warned=yes ;;
7712 esac
7713     DSYMUTIL=$ac_ct_DSYMUTIL
7714   fi
7715 else
7716   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7717 fi
7718
7719     if test -n "$ac_tool_prefix"; then
7720   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if ${ac_cv_prog_NMEDIT+:} false; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727   if test -n "$NMEDIT"; then
7728   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735     for ac_exec_ext in '' $ac_executable_extensions; do
7736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742   done
7743 IFS=$as_save_IFS
7744
7745 fi
7746 fi
7747 NMEDIT=$ac_cv_prog_NMEDIT
7748 if test -n "$NMEDIT"; then
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7750 $as_echo "$NMEDIT" >&6; }
7751 else
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756
7757 fi
7758 if test -z "$ac_cv_prog_NMEDIT"; then
7759   ac_ct_NMEDIT=$NMEDIT
7760   # Extract the first word of "nmedit", so it can be a program name with args.
7761 set dummy nmedit; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   if test -n "$ac_ct_NMEDIT"; then
7768   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773   IFS=$as_save_IFS
7774   test -z "$as_dir" && as_dir=.
7775     for ac_exec_ext in '' $ac_executable_extensions; do
7776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779     break 2
7780   fi
7781 done
7782   done
7783 IFS=$as_save_IFS
7784
7785 fi
7786 fi
7787 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7788 if test -n "$ac_ct_NMEDIT"; then
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7790 $as_echo "$ac_ct_NMEDIT" >&6; }
7791 else
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796   if test "x$ac_ct_NMEDIT" = x; then
7797     NMEDIT=":"
7798   else
7799     case $cross_compiling:$ac_tool_warned in
7800 yes:)
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7803 ac_tool_warned=yes ;;
7804 esac
7805     NMEDIT=$ac_ct_NMEDIT
7806   fi
7807 else
7808   NMEDIT="$ac_cv_prog_NMEDIT"
7809 fi
7810
7811     if test -n "$ac_tool_prefix"; then
7812   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7813 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_LIPO+:} false; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   if test -n "$LIPO"; then
7820   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827     for ac_exec_ext in '' $ac_executable_extensions; do
7828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834   done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 LIPO=$ac_cv_prog_LIPO
7840 if test -n "$LIPO"; then
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7842 $as_echo "$LIPO" >&6; }
7843 else
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848
7849 fi
7850 if test -z "$ac_cv_prog_LIPO"; then
7851   ac_ct_LIPO=$LIPO
7852   # Extract the first word of "lipo", so it can be a program name with args.
7853 set dummy lipo; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   if test -n "$ac_ct_LIPO"; then
7860   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867     for ac_exec_ext in '' $ac_executable_extensions; do
7868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869     ac_cv_prog_ac_ct_LIPO="lipo"
7870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874   done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7880 if test -n "$ac_ct_LIPO"; then
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7882 $as_echo "$ac_ct_LIPO" >&6; }
7883 else
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888   if test "x$ac_ct_LIPO" = x; then
7889     LIPO=":"
7890   else
7891     case $cross_compiling:$ac_tool_warned in
7892 yes:)
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7896 esac
7897     LIPO=$ac_ct_LIPO
7898   fi
7899 else
7900   LIPO="$ac_cv_prog_LIPO"
7901 fi
7902
7903     if test -n "$ac_tool_prefix"; then
7904   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7905 set dummy ${ac_tool_prefix}otool; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if ${ac_cv_prog_OTOOL+:} false; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   if test -n "$OTOOL"; then
7912   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7916 do
7917   IFS=$as_save_IFS
7918   test -z "$as_dir" && as_dir=.
7919     for ac_exec_ext in '' $ac_executable_extensions; do
7920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923     break 2
7924   fi
7925 done
7926   done
7927 IFS=$as_save_IFS
7928
7929 fi
7930 fi
7931 OTOOL=$ac_cv_prog_OTOOL
7932 if test -n "$OTOOL"; then
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7934 $as_echo "$OTOOL" >&6; }
7935 else
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7938 fi
7939
7940
7941 fi
7942 if test -z "$ac_cv_prog_OTOOL"; then
7943   ac_ct_OTOOL=$OTOOL
7944   # Extract the first word of "otool", so it can be a program name with args.
7945 set dummy otool; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   if test -n "$ac_ct_OTOOL"; then
7952   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959     for ac_exec_ext in '' $ac_executable_extensions; do
7960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961     ac_cv_prog_ac_ct_OTOOL="otool"
7962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966   done
7967 IFS=$as_save_IFS
7968
7969 fi
7970 fi
7971 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7972 if test -n "$ac_ct_OTOOL"; then
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7974 $as_echo "$ac_ct_OTOOL" >&6; }
7975 else
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980   if test "x$ac_ct_OTOOL" = x; then
7981     OTOOL=":"
7982   else
7983     case $cross_compiling:$ac_tool_warned in
7984 yes:)
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7987 ac_tool_warned=yes ;;
7988 esac
7989     OTOOL=$ac_ct_OTOOL
7990   fi
7991 else
7992   OTOOL="$ac_cv_prog_OTOOL"
7993 fi
7994
7995     if test -n "$ac_tool_prefix"; then
7996   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7997 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if ${ac_cv_prog_OTOOL64+:} false; then :
8001   $as_echo_n "(cached) " >&6
8002 else
8003   if test -n "$OTOOL64"; then
8004   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8005 else
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009   IFS=$as_save_IFS
8010   test -z "$as_dir" && as_dir=.
8011     for ac_exec_ext in '' $ac_executable_extensions; do
8012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8013     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015     break 2
8016   fi
8017 done
8018   done
8019 IFS=$as_save_IFS
8020
8021 fi
8022 fi
8023 OTOOL64=$ac_cv_prog_OTOOL64
8024 if test -n "$OTOOL64"; then
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8026 $as_echo "$OTOOL64" >&6; }
8027 else
8028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030 fi
8031
8032
8033 fi
8034 if test -z "$ac_cv_prog_OTOOL64"; then
8035   ac_ct_OTOOL64=$OTOOL64
8036   # Extract the first word of "otool64", so it can be a program name with args.
8037 set dummy otool64; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   if test -n "$ac_ct_OTOOL64"; then
8044   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049   IFS=$as_save_IFS
8050   test -z "$as_dir" && as_dir=.
8051     for ac_exec_ext in '' $ac_executable_extensions; do
8052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053     ac_cv_prog_ac_ct_OTOOL64="otool64"
8054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055     break 2
8056   fi
8057 done
8058   done
8059 IFS=$as_save_IFS
8060
8061 fi
8062 fi
8063 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8064 if test -n "$ac_ct_OTOOL64"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8066 $as_echo "$ac_ct_OTOOL64" >&6; }
8067 else
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071
8072   if test "x$ac_ct_OTOOL64" = x; then
8073     OTOOL64=":"
8074   else
8075     case $cross_compiling:$ac_tool_warned in
8076 yes:)
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8080 esac
8081     OTOOL64=$ac_ct_OTOOL64
8082   fi
8083 else
8084   OTOOL64="$ac_cv_prog_OTOOL64"
8085 fi
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8114 $as_echo_n "checking for -single_module linker flag... " >&6; }
8115 if ${lt_cv_apple_cc_single_mod+:} false; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   lt_cv_apple_cc_single_mod=no
8119       if test -z "${LT_MULTI_MODULE}"; then
8120         # By default we will add the -single_module flag. You can override
8121         # by either setting the environment variable LT_MULTI_MODULE
8122         # non-empty at configure time, or by adding -multi_module to the
8123         # link flags.
8124         rm -rf libconftest.dylib*
8125         echo "int foo(void){return 1;}" > conftest.c
8126         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8127 -dynamiclib -Wl,-single_module conftest.c" >&5
8128         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8129           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8130         _lt_result=$?
8131         # If there is a non-empty error log, and "single_module"
8132         # appears in it, assume the flag caused a linker warning
8133         if test -s conftest.err && $GREP single_module conftest.err; then
8134           cat conftest.err >&5
8135         # Otherwise, if the output was created with a 0 exit code from
8136         # the compiler, it worked.
8137         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8138           lt_cv_apple_cc_single_mod=yes
8139         else
8140           cat conftest.err >&5
8141         fi
8142         rm -rf libconftest.dylib*
8143         rm -f conftest.*
8144       fi
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8147 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8148
8149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8150 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8151 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8152   $as_echo_n "(cached) " >&6
8153 else
8154   lt_cv_ld_exported_symbols_list=no
8155       save_LDFLAGS=$LDFLAGS
8156       echo "_main" > conftest.sym
8157       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h.  */
8160
8161 int
8162 main ()
8163 {
8164
8165   ;
8166   return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170   lt_cv_ld_exported_symbols_list=yes
8171 else
8172   lt_cv_ld_exported_symbols_list=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext \
8175     conftest$ac_exeext conftest.$ac_ext
8176         LDFLAGS="$save_LDFLAGS"
8177
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8180 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8181
8182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8183 $as_echo_n "checking for -force_load linker flag... " >&6; }
8184 if ${lt_cv_ld_force_load+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   lt_cv_ld_force_load=no
8188       cat > conftest.c << _LT_EOF
8189 int forced_loaded() { return 2;}
8190 _LT_EOF
8191       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8192       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8193       echo "$AR cru libconftest.a conftest.o" >&5
8194       $AR cru libconftest.a conftest.o 2>&5
8195       echo "$RANLIB libconftest.a" >&5
8196       $RANLIB libconftest.a 2>&5
8197       cat > conftest.c << _LT_EOF
8198 int main() { return 0;}
8199 _LT_EOF
8200       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8201       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8202       _lt_result=$?
8203       if test -s conftest.err && $GREP force_load conftest.err; then
8204         cat conftest.err >&5
8205       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8206         lt_cv_ld_force_load=yes
8207       else
8208         cat conftest.err >&5
8209       fi
8210         rm -f conftest.err libconftest.a conftest conftest.c
8211         rm -rf conftest.dSYM
8212
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8215 $as_echo "$lt_cv_ld_force_load" >&6; }
8216     case $host_os in
8217     rhapsody* | darwin1.[012])
8218       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8219     darwin1.*)
8220       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8221     darwin*) # darwin 5.x on
8222       # if running on 10.5 or later, the deployment target defaults
8223       # to the OS version, if on x86, and 10.4, the deployment
8224       # target defaults to 10.4. Don't you love it?
8225       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8226         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8227           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8228         10.[012]*)
8229           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8230         10.*)
8231           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8232       esac
8233     ;;
8234   esac
8235     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8236       _lt_dar_single_mod='$single_module'
8237     fi
8238     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8239       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8240     else
8241       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8242     fi
8243     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8244       _lt_dsymutil='~$DSYMUTIL $lib || :'
8245     else
8246       _lt_dsymutil=
8247     fi
8248     ;;
8249   esac
8250
8251
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8253 $as_echo_n "checking for ANSI C header files... " >&6; }
8254 if ${ac_cv_header_stdc+:} false; then :
8255   $as_echo_n "(cached) " >&6
8256 else
8257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h.  */
8259 #include <stdlib.h>
8260 #include <stdarg.h>
8261 #include <string.h>
8262 #include <float.h>
8263
8264 int
8265 main ()
8266 {
8267
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_compile "$LINENO"; then :
8273   ac_cv_header_stdc=yes
8274 else
8275   ac_cv_header_stdc=no
8276 fi
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278
8279 if test $ac_cv_header_stdc = yes; then
8280   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h.  */
8283 #include <string.h>
8284
8285 _ACEOF
8286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8287   $EGREP "memchr" >/dev/null 2>&1; then :
8288
8289 else
8290   ac_cv_header_stdc=no
8291 fi
8292 rm -f conftest*
8293
8294 fi
8295
8296 if test $ac_cv_header_stdc = yes; then
8297   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h.  */
8300 #include <stdlib.h>
8301
8302 _ACEOF
8303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8304   $EGREP "free" >/dev/null 2>&1; then :
8305
8306 else
8307   ac_cv_header_stdc=no
8308 fi
8309 rm -f conftest*
8310
8311 fi
8312
8313 if test $ac_cv_header_stdc = yes; then
8314   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8315   if test "$cross_compiling" = yes; then :
8316   :
8317 else
8318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8320 #include <ctype.h>
8321 #include <stdlib.h>
8322 #if ((' ' & 0x0FF) == 0x020)
8323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8325 #else
8326 # define ISLOWER(c) \
8327                    (('a' <= (c) && (c) <= 'i') \
8328                      || ('j' <= (c) && (c) <= 'r') \
8329                      || ('s' <= (c) && (c) <= 'z'))
8330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8331 #endif
8332
8333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8334 int
8335 main ()
8336 {
8337   int i;
8338   for (i = 0; i < 256; i++)
8339     if (XOR (islower (i), ISLOWER (i))
8340         || toupper (i) != TOUPPER (i))
8341       return 2;
8342   return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_run "$LINENO"; then :
8346
8347 else
8348   ac_cv_header_stdc=no
8349 fi
8350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8351   conftest.$ac_objext conftest.beam conftest.$ac_ext
8352 fi
8353
8354 fi
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8357 $as_echo "$ac_cv_header_stdc" >&6; }
8358 if test $ac_cv_header_stdc = yes; then
8359
8360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8361
8362 fi
8363
8364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8366                   inttypes.h stdint.h unistd.h
8367 do :
8368   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8370 "
8371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8372   cat >>confdefs.h <<_ACEOF
8373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8374 _ACEOF
8375
8376 fi
8377
8378 done
8379
8380
8381 for ac_header in dlfcn.h
8382 do :
8383   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8384 "
8385 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8386   cat >>confdefs.h <<_ACEOF
8387 #define HAVE_DLFCN_H 1
8388 _ACEOF
8389
8390 fi
8391
8392 done
8393
8394
8395
8396 func_stripname_cnf ()
8397 {
8398   case ${2} in
8399   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8400   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8401   esac
8402 } # func_stripname_cnf
8403
8404
8405
8406
8407
8408 # Set options
8409
8410
8411
8412         enable_dlopen=no
8413
8414
8415   enable_win32_dll=no
8416
8417
8418             # Check whether --enable-shared was given.
8419 if test "${enable_shared+set}" = set; then :
8420   enableval=$enable_shared; p=${PACKAGE-default}
8421     case $enableval in
8422     yes) enable_shared=yes ;;
8423     no) enable_shared=no ;;
8424     *)
8425       enable_shared=no
8426       # Look at the argument we got.  We use all the common list separators.
8427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8428       for pkg in $enableval; do
8429         IFS="$lt_save_ifs"
8430         if test "X$pkg" = "X$p"; then
8431           enable_shared=yes
8432         fi
8433       done
8434       IFS="$lt_save_ifs"
8435       ;;
8436     esac
8437 else
8438   enable_shared=yes
8439 fi
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449   # Check whether --enable-static was given.
8450 if test "${enable_static+set}" = set; then :
8451   enableval=$enable_static; p=${PACKAGE-default}
8452     case $enableval in
8453     yes) enable_static=yes ;;
8454     no) enable_static=no ;;
8455     *)
8456      enable_static=no
8457       # Look at the argument we got.  We use all the common list separators.
8458       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8459       for pkg in $enableval; do
8460         IFS="$lt_save_ifs"
8461         if test "X$pkg" = "X$p"; then
8462           enable_static=yes
8463         fi
8464       done
8465       IFS="$lt_save_ifs"
8466       ;;
8467     esac
8468 else
8469   enable_static=yes
8470 fi
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 # Check whether --with-pic was given.
8482 if test "${with_pic+set}" = set; then :
8483   withval=$with_pic; lt_p=${PACKAGE-default}
8484     case $withval in
8485     yes|no) pic_mode=$withval ;;
8486     *)
8487       pic_mode=default
8488       # Look at the argument we got.  We use all the common list separators.
8489       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8490       for lt_pkg in $withval; do
8491         IFS="$lt_save_ifs"
8492         if test "X$lt_pkg" = "X$lt_p"; then
8493           pic_mode=yes
8494         fi
8495       done
8496       IFS="$lt_save_ifs"
8497       ;;
8498     esac
8499 else
8500   pic_mode=default
8501 fi
8502
8503
8504 test -z "$pic_mode" && pic_mode=default
8505
8506
8507
8508
8509
8510
8511
8512   # Check whether --enable-fast-install was given.
8513 if test "${enable_fast_install+set}" = set; then :
8514   enableval=$enable_fast_install; p=${PACKAGE-default}
8515     case $enableval in
8516     yes) enable_fast_install=yes ;;
8517     no) enable_fast_install=no ;;
8518     *)
8519       enable_fast_install=no
8520       # Look at the argument we got.  We use all the common list separators.
8521       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8522       for pkg in $enableval; do
8523         IFS="$lt_save_ifs"
8524         if test "X$pkg" = "X$p"; then
8525           enable_fast_install=yes
8526         fi
8527       done
8528       IFS="$lt_save_ifs"
8529       ;;
8530     esac
8531 else
8532   enable_fast_install=yes
8533 fi
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545 # This can be used to rebuild libtool when needed
8546 LIBTOOL_DEPS="$ltmain"
8547
8548 # Always use our own libtool.
8549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580 test -z "$LN_S" && LN_S="ln -s"
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 if test -n "${ZSH_VERSION+set}" ; then
8596    setopt NO_GLOB_SUBST
8597 fi
8598
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8600 $as_echo_n "checking for objdir... " >&6; }
8601 if ${lt_cv_objdir+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   rm -f .libs 2>/dev/null
8605 mkdir .libs 2>/dev/null
8606 if test -d .libs; then
8607   lt_cv_objdir=.libs
8608 else
8609   # MS-DOS does not allow filenames that begin with a dot.
8610   lt_cv_objdir=_libs
8611 fi
8612 rmdir .libs 2>/dev/null
8613 fi
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8615 $as_echo "$lt_cv_objdir" >&6; }
8616 objdir=$lt_cv_objdir
8617
8618
8619
8620
8621
8622 cat >>confdefs.h <<_ACEOF
8623 #define LT_OBJDIR "$lt_cv_objdir/"
8624 _ACEOF
8625
8626
8627
8628
8629 case $host_os in
8630 aix3*)
8631   # AIX sometimes has problems with the GCC collect2 program.  For some
8632   # reason, if we set the COLLECT_NAMES environment variable, the problems
8633   # vanish in a puff of smoke.
8634   if test "X${COLLECT_NAMES+set}" != Xset; then
8635     COLLECT_NAMES=
8636     export COLLECT_NAMES
8637   fi
8638   ;;
8639 esac
8640
8641 # Global variables:
8642 ofile=libtool
8643 can_build_shared=yes
8644
8645 # All known linkers require a `.a' archive for static linking (except MSVC,
8646 # which needs '.lib').
8647 libext=a
8648
8649 with_gnu_ld="$lt_cv_prog_gnu_ld"
8650
8651 old_CC="$CC"
8652 old_CFLAGS="$CFLAGS"
8653
8654 # Set sane defaults for various variables
8655 test -z "$CC" && CC=cc
8656 test -z "$LTCC" && LTCC=$CC
8657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8658 test -z "$LD" && LD=ld
8659 test -z "$ac_objext" && ac_objext=o
8660
8661 for cc_temp in $compiler""; do
8662   case $cc_temp in
8663     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8664     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8665     \-*) ;;
8666     *) break;;
8667   esac
8668 done
8669 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8670
8671
8672 # Only perform the check for file, if the check method requires it
8673 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8674 case $deplibs_check_method in
8675 file_magic*)
8676   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8678 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8679 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   case $MAGIC_CMD in
8683 [\\/*] |  ?:[\\/]*)
8684   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8685   ;;
8686 *)
8687   lt_save_MAGIC_CMD="$MAGIC_CMD"
8688   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8689   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8690   for ac_dir in $ac_dummy; do
8691     IFS="$lt_save_ifs"
8692     test -z "$ac_dir" && ac_dir=.
8693     if test -f $ac_dir/${ac_tool_prefix}file; then
8694       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8695       if test -n "$file_magic_test_file"; then
8696         case $deplibs_check_method in
8697         "file_magic "*)
8698           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8699           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8700           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8701             $EGREP "$file_magic_regex" > /dev/null; then
8702             :
8703           else
8704             cat <<_LT_EOF 1>&2
8705
8706 *** Warning: the command libtool uses to detect shared libraries,
8707 *** $file_magic_cmd, produces output that libtool cannot recognize.
8708 *** The result is that libtool may fail to recognize shared libraries
8709 *** as such.  This will affect the creation of libtool libraries that
8710 *** depend on shared libraries, but programs linked with such libtool
8711 *** libraries will work regardless of this problem.  Nevertheless, you
8712 *** may want to report the problem to your system manager and/or to
8713 *** bug-libtool@gnu.org
8714
8715 _LT_EOF
8716           fi ;;
8717         esac
8718       fi
8719       break
8720     fi
8721   done
8722   IFS="$lt_save_ifs"
8723   MAGIC_CMD="$lt_save_MAGIC_CMD"
8724   ;;
8725 esac
8726 fi
8727
8728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8729 if test -n "$MAGIC_CMD"; then
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8731 $as_echo "$MAGIC_CMD" >&6; }
8732 else
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736
8737
8738
8739
8740
8741 if test -z "$lt_cv_path_MAGIC_CMD"; then
8742   if test -n "$ac_tool_prefix"; then
8743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8744 $as_echo_n "checking for file... " >&6; }
8745 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   case $MAGIC_CMD in
8749 [\\/*] |  ?:[\\/]*)
8750   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8751   ;;
8752 *)
8753   lt_save_MAGIC_CMD="$MAGIC_CMD"
8754   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8755   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8756   for ac_dir in $ac_dummy; do
8757     IFS="$lt_save_ifs"
8758     test -z "$ac_dir" && ac_dir=.
8759     if test -f $ac_dir/file; then
8760       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8761       if test -n "$file_magic_test_file"; then
8762         case $deplibs_check_method in
8763         "file_magic "*)
8764           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8765           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8766           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8767             $EGREP "$file_magic_regex" > /dev/null; then
8768             :
8769           else
8770             cat <<_LT_EOF 1>&2
8771
8772 *** Warning: the command libtool uses to detect shared libraries,
8773 *** $file_magic_cmd, produces output that libtool cannot recognize.
8774 *** The result is that libtool may fail to recognize shared libraries
8775 *** as such.  This will affect the creation of libtool libraries that
8776 *** depend on shared libraries, but programs linked with such libtool
8777 *** libraries will work regardless of this problem.  Nevertheless, you
8778 *** may want to report the problem to your system manager and/or to
8779 *** bug-libtool@gnu.org
8780
8781 _LT_EOF
8782           fi ;;
8783         esac
8784       fi
8785       break
8786     fi
8787   done
8788   IFS="$lt_save_ifs"
8789   MAGIC_CMD="$lt_save_MAGIC_CMD"
8790   ;;
8791 esac
8792 fi
8793
8794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8795 if test -n "$MAGIC_CMD"; then
8796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8797 $as_echo "$MAGIC_CMD" >&6; }
8798 else
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8801 fi
8802
8803
8804   else
8805     MAGIC_CMD=:
8806   fi
8807 fi
8808
8809   fi
8810   ;;
8811 esac
8812
8813 # Use C for the default configuration in the libtool script
8814
8815 lt_save_CC="$CC"
8816 ac_ext=c
8817 ac_cpp='$CPP $CPPFLAGS'
8818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8821
8822
8823 # Source file extension for C test sources.
8824 ac_ext=c
8825
8826 # Object file extension for compiled C test sources.
8827 objext=o
8828 objext=$objext
8829
8830 # Code to be used in simple compile tests
8831 lt_simple_compile_test_code="int some_variable = 0;"
8832
8833 # Code to be used in simple link tests
8834 lt_simple_link_test_code='int main(){return(0);}'
8835
8836
8837
8838
8839
8840
8841
8842 # If no C compiler was specified, use CC.
8843 LTCC=${LTCC-"$CC"}
8844
8845 # If no C compiler flags were specified, use CFLAGS.
8846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8847
8848 # Allow CC to be a program name with arguments.
8849 compiler=$CC
8850
8851 # Save the default compiler, since it gets overwritten when the other
8852 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8853 compiler_DEFAULT=$CC
8854
8855 # save warnings/boilerplate of simple test code
8856 ac_outfile=conftest.$ac_objext
8857 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8859 _lt_compiler_boilerplate=`cat conftest.err`
8860 $RM conftest*
8861
8862 ac_outfile=conftest.$ac_objext
8863 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8865 _lt_linker_boilerplate=`cat conftest.err`
8866 $RM -r conftest*
8867
8868
8869 if test -n "$compiler"; then
8870
8871 lt_prog_compiler_no_builtin_flag=
8872
8873 if test "$GCC" = yes; then
8874   case $cc_basename in
8875   nvcc*)
8876     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8877   *)
8878     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8879   esac
8880
8881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8882 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8883 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8884   $as_echo_n "(cached) " >&6
8885 else
8886   lt_cv_prog_compiler_rtti_exceptions=no
8887    ac_outfile=conftest.$ac_objext
8888    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8889    lt_compiler_flag="-fno-rtti -fno-exceptions"
8890    # Insert the option either (1) after the last *FLAGS variable, or
8891    # (2) before a word containing "conftest.", or (3) at the end.
8892    # Note that $ac_compile itself does not contain backslashes and begins
8893    # with a dollar sign (not a hyphen), so the echo should work correctly.
8894    # The option is referenced via a variable to avoid confusing sed.
8895    lt_compile=`echo "$ac_compile" | $SED \
8896    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8898    -e 's:$: $lt_compiler_flag:'`
8899    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8900    (eval "$lt_compile" 2>conftest.err)
8901    ac_status=$?
8902    cat conftest.err >&5
8903    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904    if (exit $ac_status) && test -s "$ac_outfile"; then
8905      # The compiler can only warn and ignore the option if not recognized
8906      # So say no if there are warnings other than the usual output.
8907      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8908      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8909      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8910        lt_cv_prog_compiler_rtti_exceptions=yes
8911      fi
8912    fi
8913    $RM conftest*
8914
8915 fi
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8917 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8918
8919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8920     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8921 else
8922     :
8923 fi
8924
8925 fi
8926
8927
8928
8929
8930
8931
8932   lt_prog_compiler_wl=
8933 lt_prog_compiler_pic=
8934 lt_prog_compiler_static=
8935
8936
8937   if test "$GCC" = yes; then
8938     lt_prog_compiler_wl='-Wl,'
8939     lt_prog_compiler_static='-static'
8940
8941     case $host_os in
8942       aix*)
8943       # All AIX code is PIC.
8944       if test "$host_cpu" = ia64; then
8945         # AIX 5 now supports IA64 processor
8946         lt_prog_compiler_static='-Bstatic'
8947       fi
8948       ;;
8949
8950     amigaos*)
8951       case $host_cpu in
8952       powerpc)
8953             # see comment about AmigaOS4 .so support
8954             lt_prog_compiler_pic='-fPIC'
8955         ;;
8956       m68k)
8957             # FIXME: we need at least 68020 code to build shared libraries, but
8958             # adding the `-m68020' flag to GCC prevents building anything better,
8959             # like `-m68040'.
8960             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8961         ;;
8962       esac
8963       ;;
8964
8965     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8966       # PIC is the default for these OSes.
8967       ;;
8968
8969     mingw* | cygwin* | pw32* | os2* | cegcc*)
8970       # This hack is so that the source file can tell whether it is being
8971       # built for inclusion in a dll (and should export symbols for example).
8972       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8973       # (--disable-auto-import) libraries
8974       lt_prog_compiler_pic='-DDLL_EXPORT'
8975       ;;
8976
8977     darwin* | rhapsody*)
8978       # PIC is the default on this platform
8979       # Common symbols not allowed in MH_DYLIB files
8980       lt_prog_compiler_pic='-fno-common'
8981       ;;
8982
8983     haiku*)
8984       # PIC is the default for Haiku.
8985       # The "-static" flag exists, but is broken.
8986       lt_prog_compiler_static=
8987       ;;
8988
8989     hpux*)
8990       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8991       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8992       # sets the default TLS model and affects inlining.
8993       case $host_cpu in
8994       hppa*64*)
8995         # +Z the default
8996         ;;
8997       *)
8998         lt_prog_compiler_pic='-fPIC'
8999         ;;
9000       esac
9001       ;;
9002
9003     interix[3-9]*)
9004       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9005       # Instead, we relocate shared libraries at runtime.
9006       ;;
9007
9008     msdosdjgpp*)
9009       # Just because we use GCC doesn't mean we suddenly get shared libraries
9010       # on systems that don't support them.
9011       lt_prog_compiler_can_build_shared=no
9012       enable_shared=no
9013       ;;
9014
9015     *nto* | *qnx*)
9016       # QNX uses GNU C++, but need to define -shared option too, otherwise
9017       # it will coredump.
9018       lt_prog_compiler_pic='-fPIC -shared'
9019       ;;
9020
9021     sysv4*MP*)
9022       if test -d /usr/nec; then
9023         lt_prog_compiler_pic=-Kconform_pic
9024       fi
9025       ;;
9026
9027     *)
9028       lt_prog_compiler_pic='-fPIC'
9029       ;;
9030     esac
9031
9032     case $cc_basename in
9033     nvcc*) # Cuda Compiler Driver 2.2
9034       lt_prog_compiler_wl='-Xlinker '
9035       if test -n "$lt_prog_compiler_pic"; then
9036         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9037       fi
9038       ;;
9039     esac
9040   else
9041     # PORTME Check for flag to pass linker flags through the system compiler.
9042     case $host_os in
9043     aix*)
9044       lt_prog_compiler_wl='-Wl,'
9045       if test "$host_cpu" = ia64; then
9046         # AIX 5 now supports IA64 processor
9047         lt_prog_compiler_static='-Bstatic'
9048       else
9049         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9050       fi
9051       ;;
9052
9053     mingw* | cygwin* | pw32* | os2* | cegcc*)
9054       # This hack is so that the source file can tell whether it is being
9055       # built for inclusion in a dll (and should export symbols for example).
9056       lt_prog_compiler_pic='-DDLL_EXPORT'
9057       ;;
9058
9059     hpux9* | hpux10* | hpux11*)
9060       lt_prog_compiler_wl='-Wl,'
9061       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9062       # not for PA HP-UX.
9063       case $host_cpu in
9064       hppa*64*|ia64*)
9065         # +Z the default
9066         ;;
9067       *)
9068         lt_prog_compiler_pic='+Z'
9069         ;;
9070       esac
9071       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9072       lt_prog_compiler_static='${wl}-a ${wl}archive'
9073       ;;
9074
9075     irix5* | irix6* | nonstopux*)
9076       lt_prog_compiler_wl='-Wl,'
9077       # PIC (with -KPIC) is the default.
9078       lt_prog_compiler_static='-non_shared'
9079       ;;
9080
9081     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9082       case $cc_basename in
9083       # old Intel for x86_64 which still supported -KPIC.
9084       ecc*)
9085         lt_prog_compiler_wl='-Wl,'
9086         lt_prog_compiler_pic='-KPIC'
9087         lt_prog_compiler_static='-static'
9088         ;;
9089       # icc used to be incompatible with GCC.
9090       # ICC 10 doesn't accept -KPIC any more.
9091       icc* | ifort*)
9092         lt_prog_compiler_wl='-Wl,'
9093         lt_prog_compiler_pic='-fPIC'
9094         lt_prog_compiler_static='-static'
9095         ;;
9096       # Lahey Fortran 8.1.
9097       lf95*)
9098         lt_prog_compiler_wl='-Wl,'
9099         lt_prog_compiler_pic='--shared'
9100         lt_prog_compiler_static='--static'
9101         ;;
9102       nagfor*)
9103         # NAG Fortran compiler
9104         lt_prog_compiler_wl='-Wl,-Wl,,'
9105         lt_prog_compiler_pic='-PIC'
9106         lt_prog_compiler_static='-Bstatic'
9107         ;;
9108       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9109         # Portland Group compilers (*not* the Pentium gcc compiler,
9110         # which looks to be a dead project)
9111         lt_prog_compiler_wl='-Wl,'
9112         lt_prog_compiler_pic='-fpic'
9113         lt_prog_compiler_static='-Bstatic'
9114         ;;
9115       ccc*)
9116         lt_prog_compiler_wl='-Wl,'
9117         # All Alpha code is PIC.
9118         lt_prog_compiler_static='-non_shared'
9119         ;;
9120       xl* | bgxl* | bgf* | mpixl*)
9121         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9122         lt_prog_compiler_wl='-Wl,'
9123         lt_prog_compiler_pic='-qpic'
9124         lt_prog_compiler_static='-qstaticlink'
9125         ;;
9126       *)
9127         case `$CC -V 2>&1 | sed 5q` in
9128         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9129           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9130           lt_prog_compiler_pic='-KPIC'
9131           lt_prog_compiler_static='-Bstatic'
9132           lt_prog_compiler_wl=''
9133           ;;
9134         *Sun\ F* | *Sun*Fortran*)
9135           lt_prog_compiler_pic='-KPIC'
9136           lt_prog_compiler_static='-Bstatic'
9137           lt_prog_compiler_wl='-Qoption ld '
9138           ;;
9139         *Sun\ C*)
9140           # Sun C 5.9
9141           lt_prog_compiler_pic='-KPIC'
9142           lt_prog_compiler_static='-Bstatic'
9143           lt_prog_compiler_wl='-Wl,'
9144           ;;
9145         *Intel*\ [CF]*Compiler*)
9146           lt_prog_compiler_wl='-Wl,'
9147           lt_prog_compiler_pic='-fPIC'
9148           lt_prog_compiler_static='-static'
9149           ;;
9150         *Portland\ Group*)
9151           lt_prog_compiler_wl='-Wl,'
9152           lt_prog_compiler_pic='-fpic'
9153           lt_prog_compiler_static='-Bstatic'
9154           ;;
9155         esac
9156         ;;
9157       esac
9158       ;;
9159
9160     newsos6)
9161       lt_prog_compiler_pic='-KPIC'
9162       lt_prog_compiler_static='-Bstatic'
9163       ;;
9164
9165     *nto* | *qnx*)
9166       # QNX uses GNU C++, but need to define -shared option too, otherwise
9167       # it will coredump.
9168       lt_prog_compiler_pic='-fPIC -shared'
9169       ;;
9170
9171     osf3* | osf4* | osf5*)
9172       lt_prog_compiler_wl='-Wl,'
9173       # All OSF/1 code is PIC.
9174       lt_prog_compiler_static='-non_shared'
9175       ;;
9176
9177     rdos*)
9178       lt_prog_compiler_static='-non_shared'
9179       ;;
9180
9181     solaris*)
9182       lt_prog_compiler_pic='-KPIC'
9183       lt_prog_compiler_static='-Bstatic'
9184       case $cc_basename in
9185       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9186         lt_prog_compiler_wl='-Qoption ld ';;
9187       *)
9188         lt_prog_compiler_wl='-Wl,';;
9189       esac
9190       ;;
9191
9192     sunos4*)
9193       lt_prog_compiler_wl='-Qoption ld '
9194       lt_prog_compiler_pic='-PIC'
9195       lt_prog_compiler_static='-Bstatic'
9196       ;;
9197
9198     sysv4 | sysv4.2uw2* | sysv4.3*)
9199       lt_prog_compiler_wl='-Wl,'
9200       lt_prog_compiler_pic='-KPIC'
9201       lt_prog_compiler_static='-Bstatic'
9202       ;;
9203
9204     sysv4*MP*)
9205       if test -d /usr/nec ;then
9206         lt_prog_compiler_pic='-Kconform_pic'
9207         lt_prog_compiler_static='-Bstatic'
9208       fi
9209       ;;
9210
9211     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9212       lt_prog_compiler_wl='-Wl,'
9213       lt_prog_compiler_pic='-KPIC'
9214       lt_prog_compiler_static='-Bstatic'
9215       ;;
9216
9217     unicos*)
9218       lt_prog_compiler_wl='-Wl,'
9219       lt_prog_compiler_can_build_shared=no
9220       ;;
9221
9222     uts4*)
9223       lt_prog_compiler_pic='-pic'
9224       lt_prog_compiler_static='-Bstatic'
9225       ;;
9226
9227     *)
9228       lt_prog_compiler_can_build_shared=no
9229       ;;
9230     esac
9231   fi
9232
9233 case $host_os in
9234   # For platforms which do not support PIC, -DPIC is meaningless:
9235   *djgpp*)
9236     lt_prog_compiler_pic=
9237     ;;
9238   *)
9239     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9240     ;;
9241 esac
9242
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9244 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9245 if ${lt_cv_prog_compiler_pic+:} false; then :
9246   $as_echo_n "(cached) " >&6
9247 else
9248   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9249 fi
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9251 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9252 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9253
9254 #
9255 # Check to make sure the PIC flag actually works.
9256 #
9257 if test -n "$lt_prog_compiler_pic"; then
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9259 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9260 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9261   $as_echo_n "(cached) " >&6
9262 else
9263   lt_cv_prog_compiler_pic_works=no
9264    ac_outfile=conftest.$ac_objext
9265    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9266    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9267    # Insert the option either (1) after the last *FLAGS variable, or
9268    # (2) before a word containing "conftest.", or (3) at the end.
9269    # Note that $ac_compile itself does not contain backslashes and begins
9270    # with a dollar sign (not a hyphen), so the echo should work correctly.
9271    # The option is referenced via a variable to avoid confusing sed.
9272    lt_compile=`echo "$ac_compile" | $SED \
9273    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9274    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9275    -e 's:$: $lt_compiler_flag:'`
9276    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9277    (eval "$lt_compile" 2>conftest.err)
9278    ac_status=$?
9279    cat conftest.err >&5
9280    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281    if (exit $ac_status) && test -s "$ac_outfile"; then
9282      # The compiler can only warn and ignore the option if not recognized
9283      # So say no if there are warnings other than the usual output.
9284      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9285      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9286      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9287        lt_cv_prog_compiler_pic_works=yes
9288      fi
9289    fi
9290    $RM conftest*
9291
9292 fi
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9294 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9295
9296 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9297     case $lt_prog_compiler_pic in
9298      "" | " "*) ;;
9299      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9300      esac
9301 else
9302     lt_prog_compiler_pic=
9303      lt_prog_compiler_can_build_shared=no
9304 fi
9305
9306 fi
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318 #
9319 # Check to make sure the static flag actually works.
9320 #
9321 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9324 if ${lt_cv_prog_compiler_static_works+:} false; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   lt_cv_prog_compiler_static_works=no
9328    save_LDFLAGS="$LDFLAGS"
9329    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9330    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9331    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9332      # The linker can only warn and ignore the option if not recognized
9333      # So say no if there are warnings
9334      if test -s conftest.err; then
9335        # Append any errors to the config.log.
9336        cat conftest.err 1>&5
9337        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9338        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9339        if diff conftest.exp conftest.er2 >/dev/null; then
9340          lt_cv_prog_compiler_static_works=yes
9341        fi
9342      else
9343        lt_cv_prog_compiler_static_works=yes
9344      fi
9345    fi
9346    $RM -r conftest*
9347    LDFLAGS="$save_LDFLAGS"
9348
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9351 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9352
9353 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9354     :
9355 else
9356     lt_prog_compiler_static=
9357 fi
9358
9359
9360
9361
9362
9363
9364
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9366 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9367 if ${lt_cv_prog_compiler_c_o+:} false; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   lt_cv_prog_compiler_c_o=no
9371    $RM -r conftest 2>/dev/null
9372    mkdir conftest
9373    cd conftest
9374    mkdir out
9375    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9376
9377    lt_compiler_flag="-o out/conftest2.$ac_objext"
9378    # Insert the option either (1) after the last *FLAGS variable, or
9379    # (2) before a word containing "conftest.", or (3) at the end.
9380    # Note that $ac_compile itself does not contain backslashes and begins
9381    # with a dollar sign (not a hyphen), so the echo should work correctly.
9382    lt_compile=`echo "$ac_compile" | $SED \
9383    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9384    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9385    -e 's:$: $lt_compiler_flag:'`
9386    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9387    (eval "$lt_compile" 2>out/conftest.err)
9388    ac_status=$?
9389    cat out/conftest.err >&5
9390    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9392    then
9393      # The compiler can only warn and ignore the option if not recognized
9394      # So say no if there are warnings
9395      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9396      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9397      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9398        lt_cv_prog_compiler_c_o=yes
9399      fi
9400    fi
9401    chmod u+w . 2>&5
9402    $RM conftest*
9403    # SGI C++ compiler will create directory out/ii_files/ for
9404    # template instantiation
9405    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9406    $RM out/* && rmdir out
9407    cd ..
9408    $RM -r conftest
9409    $RM conftest*
9410
9411 fi
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9413 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9414
9415
9416
9417
9418
9419
9420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9422 if ${lt_cv_prog_compiler_c_o+:} false; then :
9423   $as_echo_n "(cached) " >&6
9424 else
9425   lt_cv_prog_compiler_c_o=no
9426    $RM -r conftest 2>/dev/null
9427    mkdir conftest
9428    cd conftest
9429    mkdir out
9430    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9431
9432    lt_compiler_flag="-o out/conftest2.$ac_objext"
9433    # Insert the option either (1) after the last *FLAGS variable, or
9434    # (2) before a word containing "conftest.", or (3) at the end.
9435    # Note that $ac_compile itself does not contain backslashes and begins
9436    # with a dollar sign (not a hyphen), so the echo should work correctly.
9437    lt_compile=`echo "$ac_compile" | $SED \
9438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9440    -e 's:$: $lt_compiler_flag:'`
9441    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9442    (eval "$lt_compile" 2>out/conftest.err)
9443    ac_status=$?
9444    cat out/conftest.err >&5
9445    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9447    then
9448      # The compiler can only warn and ignore the option if not recognized
9449      # So say no if there are warnings
9450      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9451      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9452      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9453        lt_cv_prog_compiler_c_o=yes
9454      fi
9455    fi
9456    chmod u+w . 2>&5
9457    $RM conftest*
9458    # SGI C++ compiler will create directory out/ii_files/ for
9459    # template instantiation
9460    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9461    $RM out/* && rmdir out
9462    cd ..
9463    $RM -r conftest
9464    $RM conftest*
9465
9466 fi
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9469
9470
9471
9472
9473 hard_links="nottested"
9474 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9475   # do not overwrite the value of need_locks provided by the user
9476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9477 $as_echo_n "checking if we can lock with hard links... " >&6; }
9478   hard_links=yes
9479   $RM conftest*
9480   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9481   touch conftest.a
9482   ln conftest.a conftest.b 2>&5 || hard_links=no
9483   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9485 $as_echo "$hard_links" >&6; }
9486   if test "$hard_links" = no; then
9487     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9488 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9489     need_locks=warn
9490   fi
9491 else
9492   need_locks=no
9493 fi
9494
9495
9496
9497
9498
9499
9500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9501 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9502
9503   runpath_var=
9504   allow_undefined_flag=
9505   always_export_symbols=no
9506   archive_cmds=
9507   archive_expsym_cmds=
9508   compiler_needs_object=no
9509   enable_shared_with_static_runtimes=no
9510   export_dynamic_flag_spec=
9511   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9512   hardcode_automatic=no
9513   hardcode_direct=no
9514   hardcode_direct_absolute=no
9515   hardcode_libdir_flag_spec=
9516   hardcode_libdir_separator=
9517   hardcode_minus_L=no
9518   hardcode_shlibpath_var=unsupported
9519   inherit_rpath=no
9520   link_all_deplibs=unknown
9521   module_cmds=
9522   module_expsym_cmds=
9523   old_archive_from_new_cmds=
9524   old_archive_from_expsyms_cmds=
9525   thread_safe_flag_spec=
9526   whole_archive_flag_spec=
9527   # include_expsyms should be a list of space-separated symbols to be *always*
9528   # included in the symbol list
9529   include_expsyms=
9530   # exclude_expsyms can be an extended regexp of symbols to exclude
9531   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9532   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9533   # as well as any symbol that contains `d'.
9534   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9535   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9536   # platforms (ab)use it in PIC code, but their linkers get confused if
9537   # the symbol is explicitly referenced.  Since portable code cannot
9538   # rely on this symbol name, it's probably fine to never include it in
9539   # preloaded symbol tables.
9540   # Exclude shared library initialization/finalization symbols.
9541   extract_expsyms_cmds=
9542
9543   case $host_os in
9544   cygwin* | mingw* | pw32* | cegcc*)
9545     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9546     # When not using gcc, we currently assume that we are using
9547     # Microsoft Visual C++.
9548     if test "$GCC" != yes; then
9549       with_gnu_ld=no
9550     fi
9551     ;;
9552   interix*)
9553     # we just hope/assume this is gcc and not c89 (= MSVC++)
9554     with_gnu_ld=yes
9555     ;;
9556   openbsd*)
9557     with_gnu_ld=no
9558     ;;
9559   linux* | k*bsd*-gnu | gnu*)
9560     link_all_deplibs=no
9561     ;;
9562   esac
9563
9564   ld_shlibs=yes
9565
9566   # On some targets, GNU ld is compatible enough with the native linker
9567   # that we're better off using the native interface for both.
9568   lt_use_gnu_ld_interface=no
9569   if test "$with_gnu_ld" = yes; then
9570     case $host_os in
9571       aix*)
9572         # The AIX port of GNU ld has always aspired to compatibility
9573         # with the native linker.  However, as the warning in the GNU ld
9574         # block says, versions before 2.19.5* couldn't really create working
9575         # shared libraries, regardless of the interface used.
9576         case `$LD -v 2>&1` in
9577           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9578           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9579           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9580           *)
9581             lt_use_gnu_ld_interface=yes
9582             ;;
9583         esac
9584         ;;
9585       *)
9586         lt_use_gnu_ld_interface=yes
9587         ;;
9588     esac
9589   fi
9590
9591   if test "$lt_use_gnu_ld_interface" = yes; then
9592     # If archive_cmds runs LD, not CC, wlarc should be empty
9593     wlarc='${wl}'
9594
9595     # Set some defaults for GNU ld with shared library support. These
9596     # are reset later if shared libraries are not supported. Putting them
9597     # here allows them to be overridden if necessary.
9598     runpath_var=LD_RUN_PATH
9599     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9600     export_dynamic_flag_spec='${wl}--export-dynamic'
9601     # ancient GNU ld didn't support --whole-archive et. al.
9602     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9603       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9604     else
9605       whole_archive_flag_spec=
9606     fi
9607     supports_anon_versioning=no
9608     case `$LD -v 2>&1` in
9609       *GNU\ gold*) supports_anon_versioning=yes ;;
9610       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9611       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9612       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9613       *\ 2.11.*) ;; # other 2.11 versions
9614       *) supports_anon_versioning=yes ;;
9615     esac
9616
9617     # See if GNU ld supports shared libraries.
9618     case $host_os in
9619     aix[3-9]*)
9620       # On AIX/PPC, the GNU linker is very broken
9621       if test "$host_cpu" != ia64; then
9622         ld_shlibs=no
9623         cat <<_LT_EOF 1>&2
9624
9625 *** Warning: the GNU linker, at least up to release 2.19, is reported
9626 *** to be unable to reliably create shared libraries on AIX.
9627 *** Therefore, libtool is disabling shared libraries support.  If you
9628 *** really care for shared libraries, you may want to install binutils
9629 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9630 *** You will then need to restart the configuration process.
9631
9632 _LT_EOF
9633       fi
9634       ;;
9635
9636     amigaos*)
9637       case $host_cpu in
9638       powerpc)
9639             # see comment about AmigaOS4 .so support
9640             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641             archive_expsym_cmds=''
9642         ;;
9643       m68k)
9644             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9645             hardcode_libdir_flag_spec='-L$libdir'
9646             hardcode_minus_L=yes
9647         ;;
9648       esac
9649       ;;
9650
9651     beos*)
9652       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9653         allow_undefined_flag=unsupported
9654         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9655         # support --undefined.  This deserves some investigation.  FIXME
9656         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9657       else
9658         ld_shlibs=no
9659       fi
9660       ;;
9661
9662     cygwin* | mingw* | pw32* | cegcc*)
9663       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9664       # as there is no search path for DLLs.
9665       hardcode_libdir_flag_spec='-L$libdir'
9666       export_dynamic_flag_spec='${wl}--export-all-symbols'
9667       allow_undefined_flag=unsupported
9668       always_export_symbols=no
9669       enable_shared_with_static_runtimes=yes
9670       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9671       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9672
9673       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9674         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9675         # If the export-symbols file already is a .def file (1st line
9676         # is EXPORTS), use it as is; otherwise, prepend...
9677         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9678           cp $export_symbols $output_objdir/$soname.def;
9679         else
9680           echo EXPORTS > $output_objdir/$soname.def;
9681           cat $export_symbols >> $output_objdir/$soname.def;
9682         fi~
9683         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9684       else
9685         ld_shlibs=no
9686       fi
9687       ;;
9688
9689     haiku*)
9690       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691       link_all_deplibs=yes
9692       ;;
9693
9694     interix[3-9]*)
9695       hardcode_direct=no
9696       hardcode_shlibpath_var=no
9697       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9698       export_dynamic_flag_spec='${wl}-E'
9699       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9700       # Instead, shared libraries are loaded at an image base (0x10000000 by
9701       # default) and relocated if they conflict, which is a slow very memory
9702       # consuming and fragmenting process.  To avoid this, we pick a random,
9703       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9704       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9705       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9706       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9707       ;;
9708
9709     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9710       tmp_diet=no
9711       if test "$host_os" = linux-dietlibc; then
9712         case $cc_basename in
9713           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9714         esac
9715       fi
9716       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9717          && test "$tmp_diet" = no
9718       then
9719         tmp_addflag=' $pic_flag'
9720         tmp_sharedflag='-shared'
9721         case $cc_basename,$host_cpu in
9722         pgcc*)                          # Portland Group C compiler
9723           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9724           tmp_addflag=' $pic_flag'
9725           ;;
9726         pgf77* | pgf90* | pgf95* | pgfortran*)
9727                                         # Portland Group f77 and f90 compilers
9728           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9729           tmp_addflag=' $pic_flag -Mnomain' ;;
9730         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9731           tmp_addflag=' -i_dynamic' ;;
9732         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9733           tmp_addflag=' -i_dynamic -nofor_main' ;;
9734         ifc* | ifort*)                  # Intel Fortran compiler
9735           tmp_addflag=' -nofor_main' ;;
9736         lf95*)                          # Lahey Fortran 8.1
9737           whole_archive_flag_spec=
9738           tmp_sharedflag='--shared' ;;
9739         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9740           tmp_sharedflag='-qmkshrobj'
9741           tmp_addflag= ;;
9742         nvcc*)  # Cuda Compiler Driver 2.2
9743           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9744           compiler_needs_object=yes
9745           ;;
9746         esac
9747         case `$CC -V 2>&1 | sed 5q` in
9748         *Sun\ C*)                       # Sun C 5.9
9749           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9750           compiler_needs_object=yes
9751           tmp_sharedflag='-G' ;;
9752         *Sun\ F*)                       # Sun Fortran 8.3
9753           tmp_sharedflag='-G' ;;
9754         esac
9755         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9756
9757         if test "x$supports_anon_versioning" = xyes; then
9758           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9759             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9760             echo "local: *; };" >> $output_objdir/$libname.ver~
9761             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9762         fi
9763
9764         case $cc_basename in
9765         xlf* | bgf* | bgxlf* | mpixlf*)
9766           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9767           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9768           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9769           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9770           if test "x$supports_anon_versioning" = xyes; then
9771             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9772               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9773               echo "local: *; };" >> $output_objdir/$libname.ver~
9774               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9775           fi
9776           ;;
9777         esac
9778       else
9779         ld_shlibs=no
9780       fi
9781       ;;
9782
9783     netbsd* | netbsdelf*-gnu)
9784       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9785         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9786         wlarc=
9787       else
9788         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9790       fi
9791       ;;
9792
9793     solaris*)
9794       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9795         ld_shlibs=no
9796         cat <<_LT_EOF 1>&2
9797
9798 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9799 *** create shared libraries on Solaris systems.  Therefore, libtool
9800 *** is disabling shared libraries support.  We urge you to upgrade GNU
9801 *** binutils to release 2.9.1 or newer.  Another option is to modify
9802 *** your PATH or compiler configuration so that the native linker is
9803 *** used, and then restart.
9804
9805 _LT_EOF
9806       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9807         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9808         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9809       else
9810         ld_shlibs=no
9811       fi
9812       ;;
9813
9814     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9815       case `$LD -v 2>&1` in
9816         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9817         ld_shlibs=no
9818         cat <<_LT_EOF 1>&2
9819
9820 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9821 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9822 *** is disabling shared libraries support.  We urge you to upgrade GNU
9823 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9824 *** your PATH or compiler configuration so that the native linker is
9825 *** used, and then restart.
9826
9827 _LT_EOF
9828         ;;
9829         *)
9830           # For security reasons, it is highly recommended that you always
9831           # use absolute paths for naming shared libraries, and exclude the
9832           # DT_RUNPATH tag from executables and libraries.  But doing so
9833           # requires that you compile everything twice, which is a pain.
9834           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9835             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9838           else
9839             ld_shlibs=no
9840           fi
9841         ;;
9842       esac
9843       ;;
9844
9845     sunos4*)
9846       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9847       wlarc=
9848       hardcode_direct=yes
9849       hardcode_shlibpath_var=no
9850       ;;
9851
9852     *)
9853       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9854         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9855         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9856       else
9857         ld_shlibs=no
9858       fi
9859       ;;
9860     esac
9861
9862     if test "$ld_shlibs" = no; then
9863       runpath_var=
9864       hardcode_libdir_flag_spec=
9865       export_dynamic_flag_spec=
9866       whole_archive_flag_spec=
9867     fi
9868   else
9869     # PORTME fill in a description of your system's linker (not GNU ld)
9870     case $host_os in
9871     aix3*)
9872       allow_undefined_flag=unsupported
9873       always_export_symbols=yes
9874       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9875       # Note: this linker hardcodes the directories in LIBPATH if there
9876       # are no directories specified by -L.
9877       hardcode_minus_L=yes
9878       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9879         # Neither direct hardcoding nor static linking is supported with a
9880         # broken collect2.
9881         hardcode_direct=unsupported
9882       fi
9883       ;;
9884
9885     aix[4-9]*)
9886       if test "$host_cpu" = ia64; then
9887         # On IA64, the linker does run time linking by default, so we don't
9888         # have to do anything special.
9889         aix_use_runtimelinking=no
9890         exp_sym_flag='-Bexport'
9891         no_entry_flag=""
9892       else
9893         # If we're using GNU nm, then we don't want the "-C" option.
9894         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9895         # Also, AIX nm treats weak defined symbols like other global
9896         # defined symbols, whereas GNU nm marks them as "W".
9897         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9898           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9899         else
9900           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9901         fi
9902         aix_use_runtimelinking=no
9903
9904         # Test if we are trying to use run time linking or normal
9905         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9906         # need to do runtime linking.
9907         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9908           for ld_flag in $LDFLAGS; do
9909           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9910             aix_use_runtimelinking=yes
9911             break
9912           fi
9913           done
9914           ;;
9915         esac
9916
9917         exp_sym_flag='-bexport'
9918         no_entry_flag='-bnoentry'
9919       fi
9920
9921       # When large executables or shared objects are built, AIX ld can
9922       # have problems creating the table of contents.  If linking a library
9923       # or program results in "error TOC overflow" add -mminimal-toc to
9924       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9925       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9926
9927       archive_cmds=''
9928       hardcode_direct=yes
9929       hardcode_direct_absolute=yes
9930       hardcode_libdir_separator=':'
9931       link_all_deplibs=yes
9932       file_list_spec='${wl}-f,'
9933
9934       if test "$GCC" = yes; then
9935         case $host_os in aix4.[012]|aix4.[012].*)
9936         # We only want to do this on AIX 4.2 and lower, the check
9937         # below for broken collect2 doesn't work under 4.3+
9938           collect2name=`${CC} -print-prog-name=collect2`
9939           if test -f "$collect2name" &&
9940            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9941           then
9942           # We have reworked collect2
9943           :
9944           else
9945           # We have old collect2
9946           hardcode_direct=unsupported
9947           # It fails to find uninstalled libraries when the uninstalled
9948           # path is not listed in the libpath.  Setting hardcode_minus_L
9949           # to unsupported forces relinking
9950           hardcode_minus_L=yes
9951           hardcode_libdir_flag_spec='-L$libdir'
9952           hardcode_libdir_separator=
9953           fi
9954           ;;
9955         esac
9956         shared_flag='-shared'
9957         if test "$aix_use_runtimelinking" = yes; then
9958           shared_flag="$shared_flag "'${wl}-G'
9959         fi
9960         link_all_deplibs=no
9961       else
9962         # not using gcc
9963         if test "$host_cpu" = ia64; then
9964         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9965         # chokes on -Wl,-G. The following line is correct:
9966           shared_flag='-G'
9967         else
9968           if test "$aix_use_runtimelinking" = yes; then
9969             shared_flag='${wl}-G'
9970           else
9971             shared_flag='${wl}-bM:SRE'
9972           fi
9973         fi
9974       fi
9975
9976       export_dynamic_flag_spec='${wl}-bexpall'
9977       # It seems that -bexpall does not export symbols beginning with
9978       # underscore (_), so it is better to generate a list of symbols to export.
9979       always_export_symbols=yes
9980       if test "$aix_use_runtimelinking" = yes; then
9981         # Warning - without using the other runtime loading flags (-brtl),
9982         # -berok will link without error, but may produce a broken library.
9983         allow_undefined_flag='-berok'
9984         # Determine the default libpath from the value encoded in an
9985         # empty executable.
9986         if test "${lt_cv_aix_libpath+set}" = set; then
9987   aix_libpath=$lt_cv_aix_libpath
9988 else
9989   if ${lt_cv_aix_libpath_+:} false; then :
9990   $as_echo_n "(cached) " >&6
9991 else
9992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h.  */
9994
9995 int
9996 main ()
9997 {
9998
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 if ac_fn_c_try_link "$LINENO"; then :
10004
10005   lt_aix_libpath_sed='
10006       /Import File Strings/,/^$/ {
10007           /^0/ {
10008               s/^0  *\([^ ]*\) *$/\1/
10009               p
10010           }
10011       }'
10012   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10013   # Check for a 64-bit object if we didn't find anything.
10014   if test -z "$lt_cv_aix_libpath_"; then
10015     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10016   fi
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext \
10019     conftest$ac_exeext conftest.$ac_ext
10020   if test -z "$lt_cv_aix_libpath_"; then
10021     lt_cv_aix_libpath_="/usr/lib:/lib"
10022   fi
10023
10024 fi
10025
10026   aix_libpath=$lt_cv_aix_libpath_
10027 fi
10028
10029         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10030         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10031       else
10032         if test "$host_cpu" = ia64; then
10033           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10034           allow_undefined_flag="-z nodefs"
10035           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10036         else
10037          # Determine the default libpath from the value encoded in an
10038          # empty executable.
10039          if test "${lt_cv_aix_libpath+set}" = set; then
10040   aix_libpath=$lt_cv_aix_libpath
10041 else
10042   if ${lt_cv_aix_libpath_+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h.  */
10047
10048 int
10049 main ()
10050 {
10051
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 if ac_fn_c_try_link "$LINENO"; then :
10057
10058   lt_aix_libpath_sed='
10059       /Import File Strings/,/^$/ {
10060           /^0/ {
10061               s/^0  *\([^ ]*\) *$/\1/
10062               p
10063           }
10064       }'
10065   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10066   # Check for a 64-bit object if we didn't find anything.
10067   if test -z "$lt_cv_aix_libpath_"; then
10068     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10069   fi
10070 fi
10071 rm -f core conftest.err conftest.$ac_objext \
10072     conftest$ac_exeext conftest.$ac_ext
10073   if test -z "$lt_cv_aix_libpath_"; then
10074     lt_cv_aix_libpath_="/usr/lib:/lib"
10075   fi
10076
10077 fi
10078
10079   aix_libpath=$lt_cv_aix_libpath_
10080 fi
10081
10082          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10083           # Warning - without using the other run time loading flags,
10084           # -berok will link without error, but may produce a broken library.
10085           no_undefined_flag=' ${wl}-bernotok'
10086           allow_undefined_flag=' ${wl}-berok'
10087           if test "$with_gnu_ld" = yes; then
10088             # We only use this code for GNU lds that support --whole-archive.
10089             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10090           else
10091             # Exported symbols can be pulled into shared objects from archives
10092             whole_archive_flag_spec='$convenience'
10093           fi
10094           archive_cmds_need_lc=yes
10095           # This is similar to how AIX traditionally builds its shared libraries.
10096           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10097         fi
10098       fi
10099       ;;
10100
10101     amigaos*)
10102       case $host_cpu in
10103       powerpc)
10104             # see comment about AmigaOS4 .so support
10105             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106             archive_expsym_cmds=''
10107         ;;
10108       m68k)
10109             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10110             hardcode_libdir_flag_spec='-L$libdir'
10111             hardcode_minus_L=yes
10112         ;;
10113       esac
10114       ;;
10115
10116     bsdi[45]*)
10117       export_dynamic_flag_spec=-rdynamic
10118       ;;
10119
10120     cygwin* | mingw* | pw32* | cegcc*)
10121       # When not using gcc, we currently assume that we are using
10122       # Microsoft Visual C++.
10123       # hardcode_libdir_flag_spec is actually meaningless, as there is
10124       # no search path for DLLs.
10125       case $cc_basename in
10126       cl*)
10127         # Native MSVC
10128         hardcode_libdir_flag_spec=' '
10129         allow_undefined_flag=unsupported
10130         always_export_symbols=yes
10131         file_list_spec='@'
10132         # Tell ltmain to make .lib files, not .a files.
10133         libext=lib
10134         # Tell ltmain to make .dll files, not .so files.
10135         shrext_cmds=".dll"
10136         # FIXME: Setting linknames here is a bad hack.
10137         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10138         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10139             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10140           else
10141             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10142           fi~
10143           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10144           linknames='
10145         # The linker will not automatically build a static lib if we build a DLL.
10146         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10147         enable_shared_with_static_runtimes=yes
10148         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10149         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10150         # Don't use ranlib
10151         old_postinstall_cmds='chmod 644 $oldlib'
10152         postlink_cmds='lt_outputfile="@OUTPUT@"~
10153           lt_tool_outputfile="@TOOL_OUTPUT@"~
10154           case $lt_outputfile in
10155             *.exe|*.EXE) ;;
10156             *)
10157               lt_outputfile="$lt_outputfile.exe"
10158               lt_tool_outputfile="$lt_tool_outputfile.exe"
10159               ;;
10160           esac~
10161           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10162             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10163             $RM "$lt_outputfile.manifest";
10164           fi'
10165         ;;
10166       *)
10167         # Assume MSVC wrapper
10168         hardcode_libdir_flag_spec=' '
10169         allow_undefined_flag=unsupported
10170         # Tell ltmain to make .lib files, not .a files.
10171         libext=lib
10172         # Tell ltmain to make .dll files, not .so files.
10173         shrext_cmds=".dll"
10174         # FIXME: Setting linknames here is a bad hack.
10175         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10176         # The linker will automatically build a .lib file if we build a DLL.
10177         old_archive_from_new_cmds='true'
10178         # FIXME: Should let the user specify the lib program.
10179         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10180         enable_shared_with_static_runtimes=yes
10181         ;;
10182       esac
10183       ;;
10184
10185     darwin* | rhapsody*)
10186
10187
10188   archive_cmds_need_lc=no
10189   hardcode_direct=no
10190   hardcode_automatic=yes
10191   hardcode_shlibpath_var=unsupported
10192   if test "$lt_cv_ld_force_load" = "yes"; then
10193     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10194
10195   else
10196     whole_archive_flag_spec=''
10197   fi
10198   link_all_deplibs=yes
10199   allow_undefined_flag="$_lt_dar_allow_undefined"
10200   case $cc_basename in
10201      ifort*) _lt_dar_can_shared=yes ;;
10202      *) _lt_dar_can_shared=$GCC ;;
10203   esac
10204   if test "$_lt_dar_can_shared" = "yes"; then
10205     output_verbose_link_cmd=func_echo_all
10206     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10207     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10208     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10209     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10210
10211   else
10212   ld_shlibs=no
10213   fi
10214
10215       ;;
10216
10217     dgux*)
10218       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219       hardcode_libdir_flag_spec='-L$libdir'
10220       hardcode_shlibpath_var=no
10221       ;;
10222
10223     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10224     # support.  Future versions do this automatically, but an explicit c++rt0.o
10225     # does not break anything, and helps significantly (at the cost of a little
10226     # extra space).
10227     freebsd2.2*)
10228       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10229       hardcode_libdir_flag_spec='-R$libdir'
10230       hardcode_direct=yes
10231       hardcode_shlibpath_var=no
10232       ;;
10233
10234     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10235     freebsd2.*)
10236       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10237       hardcode_direct=yes
10238       hardcode_minus_L=yes
10239       hardcode_shlibpath_var=no
10240       ;;
10241
10242     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10243     freebsd* | dragonfly*)
10244       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10245       hardcode_libdir_flag_spec='-R$libdir'
10246       hardcode_direct=yes
10247       hardcode_shlibpath_var=no
10248       ;;
10249
10250     hpux9*)
10251       if test "$GCC" = yes; then
10252         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10253       else
10254         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10255       fi
10256       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10257       hardcode_libdir_separator=:
10258       hardcode_direct=yes
10259
10260       # hardcode_minus_L: Not really in the search PATH,
10261       # but as the default location of the library.
10262       hardcode_minus_L=yes
10263       export_dynamic_flag_spec='${wl}-E'
10264       ;;
10265
10266     hpux10*)
10267       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10268         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10269       else
10270         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10271       fi
10272       if test "$with_gnu_ld" = no; then
10273         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10274         hardcode_libdir_separator=:
10275         hardcode_direct=yes
10276         hardcode_direct_absolute=yes
10277         export_dynamic_flag_spec='${wl}-E'
10278         # hardcode_minus_L: Not really in the search PATH,
10279         # but as the default location of the library.
10280         hardcode_minus_L=yes
10281       fi
10282       ;;
10283
10284     hpux11*)
10285       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10286         case $host_cpu in
10287         hppa*64*)
10288           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10289           ;;
10290         ia64*)
10291           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10292           ;;
10293         *)
10294           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10295           ;;
10296         esac
10297       else
10298         case $host_cpu in
10299         hppa*64*)
10300           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10301           ;;
10302         ia64*)
10303           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10304           ;;
10305         *)
10306
10307           # Older versions of the 11.00 compiler do not understand -b yet
10308           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10309           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10310 $as_echo_n "checking if $CC understands -b... " >&6; }
10311 if ${lt_cv_prog_compiler__b+:} false; then :
10312   $as_echo_n "(cached) " >&6
10313 else
10314   lt_cv_prog_compiler__b=no
10315    save_LDFLAGS="$LDFLAGS"
10316    LDFLAGS="$LDFLAGS -b"
10317    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10318    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10319      # The linker can only warn and ignore the option if not recognized
10320      # So say no if there are warnings
10321      if test -s conftest.err; then
10322        # Append any errors to the config.log.
10323        cat conftest.err 1>&5
10324        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10325        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10326        if diff conftest.exp conftest.er2 >/dev/null; then
10327          lt_cv_prog_compiler__b=yes
10328        fi
10329      else
10330        lt_cv_prog_compiler__b=yes
10331      fi
10332    fi
10333    $RM -r conftest*
10334    LDFLAGS="$save_LDFLAGS"
10335
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10338 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10339
10340 if test x"$lt_cv_prog_compiler__b" = xyes; then
10341     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10342 else
10343     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10344 fi
10345
10346           ;;
10347         esac
10348       fi
10349       if test "$with_gnu_ld" = no; then
10350         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10351         hardcode_libdir_separator=:
10352
10353         case $host_cpu in
10354         hppa*64*|ia64*)
10355           hardcode_direct=no
10356           hardcode_shlibpath_var=no
10357           ;;
10358         *)
10359           hardcode_direct=yes
10360           hardcode_direct_absolute=yes
10361           export_dynamic_flag_spec='${wl}-E'
10362
10363           # hardcode_minus_L: Not really in the search PATH,
10364           # but as the default location of the library.
10365           hardcode_minus_L=yes
10366           ;;
10367         esac
10368       fi
10369       ;;
10370
10371     irix5* | irix6* | nonstopux*)
10372       if test "$GCC" = yes; then
10373         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10374         # Try to use the -exported_symbol ld option, if it does not
10375         # work, assume that -exports_file does not work either and
10376         # implicitly export all symbols.
10377         # This should be the same for all languages, so no per-tag cache variable.
10378         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10379 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10380 if ${lt_cv_irix_exported_symbol+:} false; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   save_LDFLAGS="$LDFLAGS"
10384            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10385            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h.  */
10387 int foo (void) { return 0; }
10388 _ACEOF
10389 if ac_fn_c_try_link "$LINENO"; then :
10390   lt_cv_irix_exported_symbol=yes
10391 else
10392   lt_cv_irix_exported_symbol=no
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext \
10395     conftest$ac_exeext conftest.$ac_ext
10396            LDFLAGS="$save_LDFLAGS"
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10399 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10400         if test "$lt_cv_irix_exported_symbol" = yes; then
10401           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10402         fi
10403       else
10404         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10405         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10406       fi
10407       archive_cmds_need_lc='no'
10408       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10409       hardcode_libdir_separator=:
10410       inherit_rpath=yes
10411       link_all_deplibs=yes
10412       ;;
10413
10414     netbsd* | netbsdelf*-gnu)
10415       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10416         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10417       else
10418         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10419       fi
10420       hardcode_libdir_flag_spec='-R$libdir'
10421       hardcode_direct=yes
10422       hardcode_shlibpath_var=no
10423       ;;
10424
10425     newsos6)
10426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427       hardcode_direct=yes
10428       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10429       hardcode_libdir_separator=:
10430       hardcode_shlibpath_var=no
10431       ;;
10432
10433     *nto* | *qnx*)
10434       ;;
10435
10436     openbsd*)
10437       if test -f /usr/libexec/ld.so; then
10438         hardcode_direct=yes
10439         hardcode_shlibpath_var=no
10440         hardcode_direct_absolute=yes
10441         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10442           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10443           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10444           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10445           export_dynamic_flag_spec='${wl}-E'
10446         else
10447           case $host_os in
10448            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10449              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10450              hardcode_libdir_flag_spec='-R$libdir'
10451              ;;
10452            *)
10453              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10455              ;;
10456           esac
10457         fi
10458       else
10459         ld_shlibs=no
10460       fi
10461       ;;
10462
10463     os2*)
10464       hardcode_libdir_flag_spec='-L$libdir'
10465       hardcode_minus_L=yes
10466       allow_undefined_flag=unsupported
10467       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10468       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10469       ;;
10470
10471     osf3*)
10472       if test "$GCC" = yes; then
10473         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10474         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10475       else
10476         allow_undefined_flag=' -expect_unresolved \*'
10477         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10478       fi
10479       archive_cmds_need_lc='no'
10480       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10481       hardcode_libdir_separator=:
10482       ;;
10483
10484     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10485       if test "$GCC" = yes; then
10486         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10487         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10488         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10489       else
10490         allow_undefined_flag=' -expect_unresolved \*'
10491         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10492         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10493         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10494
10495         # Both c and cxx compiler support -rpath directly
10496         hardcode_libdir_flag_spec='-rpath $libdir'
10497       fi
10498       archive_cmds_need_lc='no'
10499       hardcode_libdir_separator=:
10500       ;;
10501
10502     solaris*)
10503       no_undefined_flag=' -z defs'
10504       if test "$GCC" = yes; then
10505         wlarc='${wl}'
10506         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10507         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10508           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10509       else
10510         case `$CC -V 2>&1` in
10511         *"Compilers 5.0"*)
10512           wlarc=''
10513           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10515           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10516           ;;
10517         *)
10518           wlarc='${wl}'
10519           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10520           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10521           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10522           ;;
10523         esac
10524       fi
10525       hardcode_libdir_flag_spec='-R$libdir'
10526       hardcode_shlibpath_var=no
10527       case $host_os in
10528       solaris2.[0-5] | solaris2.[0-5].*) ;;
10529       *)
10530         # The compiler driver will combine and reorder linker options,
10531         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10532         # but is careful enough not to reorder.
10533         # Supported since Solaris 2.6 (maybe 2.5.1?)
10534         if test "$GCC" = yes; then
10535           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10536         else
10537           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10538         fi
10539         ;;
10540       esac
10541       link_all_deplibs=yes
10542       ;;
10543
10544     sunos4*)
10545       if test "x$host_vendor" = xsequent; then
10546         # Use $CC to link under sequent, because it throws in some extra .o
10547         # files that make .init and .fini sections work.
10548         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10549       else
10550         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10551       fi
10552       hardcode_libdir_flag_spec='-L$libdir'
10553       hardcode_direct=yes
10554       hardcode_minus_L=yes
10555       hardcode_shlibpath_var=no
10556       ;;
10557
10558     sysv4)
10559       case $host_vendor in
10560         sni)
10561           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562           hardcode_direct=yes # is this really true???
10563         ;;
10564         siemens)
10565           ## LD is ld it makes a PLAMLIB
10566           ## CC just makes a GrossModule.
10567           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10568           reload_cmds='$CC -r -o $output$reload_objs'
10569           hardcode_direct=no
10570         ;;
10571         motorola)
10572           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10574         ;;
10575       esac
10576       runpath_var='LD_RUN_PATH'
10577       hardcode_shlibpath_var=no
10578       ;;
10579
10580     sysv4.3*)
10581       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582       hardcode_shlibpath_var=no
10583       export_dynamic_flag_spec='-Bexport'
10584       ;;
10585
10586     sysv4*MP*)
10587       if test -d /usr/nec; then
10588         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10589         hardcode_shlibpath_var=no
10590         runpath_var=LD_RUN_PATH
10591         hardcode_runpath_var=yes
10592         ld_shlibs=yes
10593       fi
10594       ;;
10595
10596     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10597       no_undefined_flag='${wl}-z,text'
10598       archive_cmds_need_lc=no
10599       hardcode_shlibpath_var=no
10600       runpath_var='LD_RUN_PATH'
10601
10602       if test "$GCC" = yes; then
10603         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605       else
10606         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608       fi
10609       ;;
10610
10611     sysv5* | sco3.2v5* | sco5v6*)
10612       # Note: We can NOT use -z defs as we might desire, because we do not
10613       # link with -lc, and that would cause any symbols used from libc to
10614       # always be unresolved, which means just about no library would
10615       # ever link correctly.  If we're not using GNU ld we use -z text
10616       # though, which does catch some bad symbols but isn't as heavy-handed
10617       # as -z defs.
10618       no_undefined_flag='${wl}-z,text'
10619       allow_undefined_flag='${wl}-z,nodefs'
10620       archive_cmds_need_lc=no
10621       hardcode_shlibpath_var=no
10622       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10623       hardcode_libdir_separator=':'
10624       link_all_deplibs=yes
10625       export_dynamic_flag_spec='${wl}-Bexport'
10626       runpath_var='LD_RUN_PATH'
10627
10628       if test "$GCC" = yes; then
10629         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10631       else
10632         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634       fi
10635       ;;
10636
10637     uts4*)
10638       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639       hardcode_libdir_flag_spec='-L$libdir'
10640       hardcode_shlibpath_var=no
10641       ;;
10642
10643     *)
10644       ld_shlibs=no
10645       ;;
10646     esac
10647
10648     if test x$host_vendor = xsni; then
10649       case $host in
10650       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10651         export_dynamic_flag_spec='${wl}-Blargedynsym'
10652         ;;
10653       esac
10654     fi
10655   fi
10656
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10658 $as_echo "$ld_shlibs" >&6; }
10659 test "$ld_shlibs" = no && can_build_shared=no
10660
10661 with_gnu_ld=$with_gnu_ld
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677 #
10678 # Do we need to explicitly link libc?
10679 #
10680 case "x$archive_cmds_need_lc" in
10681 x|xyes)
10682   # Assume -lc should be added
10683   archive_cmds_need_lc=yes
10684
10685   if test "$enable_shared" = yes && test "$GCC" = yes; then
10686     case $archive_cmds in
10687     *'~'*)
10688       # FIXME: we may have to deal with multi-command sequences.
10689       ;;
10690     '$CC '*)
10691       # Test whether the compiler implicitly links with -lc since on some
10692       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10693       # to ld, don't add -lc before -lgcc.
10694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10696 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10697   $as_echo_n "(cached) " >&6
10698 else
10699   $RM conftest*
10700         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10701
10702         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10703   (eval $ac_compile) 2>&5
10704   ac_status=$?
10705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10706   test $ac_status = 0; } 2>conftest.err; then
10707           soname=conftest
10708           lib=conftest
10709           libobjs=conftest.$ac_objext
10710           deplibs=
10711           wl=$lt_prog_compiler_wl
10712           pic_flag=$lt_prog_compiler_pic
10713           compiler_flags=-v
10714           linker_flags=-v
10715           verstring=
10716           output_objdir=.
10717           libname=conftest
10718           lt_save_allow_undefined_flag=$allow_undefined_flag
10719           allow_undefined_flag=
10720           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10721   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10722   ac_status=$?
10723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10724   test $ac_status = 0; }
10725           then
10726             lt_cv_archive_cmds_need_lc=no
10727           else
10728             lt_cv_archive_cmds_need_lc=yes
10729           fi
10730           allow_undefined_flag=$lt_save_allow_undefined_flag
10731         else
10732           cat conftest.err 1>&5
10733         fi
10734         $RM conftest*
10735
10736 fi
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10738 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10739       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10740       ;;
10741     esac
10742   fi
10743   ;;
10744 esac
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10898 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10899
10900 if test "$GCC" = yes; then
10901   case $host_os in
10902     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10903     *) lt_awk_arg="/^libraries:/" ;;
10904   esac
10905   case $host_os in
10906     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10907     *) lt_sed_strip_eq="s,=/,/,g" ;;
10908   esac
10909   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10910   case $lt_search_path_spec in
10911   *\;*)
10912     # if the path contains ";" then we assume it to be the separator
10913     # otherwise default to the standard path separator (i.e. ":") - it is
10914     # assumed that no part of a normal pathname contains ";" but that should
10915     # okay in the real world where ";" in dirpaths is itself problematic.
10916     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10917     ;;
10918   *)
10919     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10920     ;;
10921   esac
10922   # Ok, now we have the path, separated by spaces, we can step through it
10923   # and add multilib dir if necessary.
10924   lt_tmp_lt_search_path_spec=
10925   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10926   for lt_sys_path in $lt_search_path_spec; do
10927     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10928       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10929     else
10930       test -d "$lt_sys_path" && \
10931         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10932     fi
10933   done
10934   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10935 BEGIN {RS=" "; FS="/|\n";} {
10936   lt_foo="";
10937   lt_count=0;
10938   for (lt_i = NF; lt_i > 0; lt_i--) {
10939     if ($lt_i != "" && $lt_i != ".") {
10940       if ($lt_i == "..") {
10941         lt_count++;
10942       } else {
10943         if (lt_count == 0) {
10944           lt_foo="/" $lt_i lt_foo;
10945         } else {
10946           lt_count--;
10947         }
10948       }
10949     }
10950   }
10951   if (lt_foo != "") { lt_freq[lt_foo]++; }
10952   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10953 }'`
10954   # AWK program above erroneously prepends '/' to C:/dos/paths
10955   # for these hosts.
10956   case $host_os in
10957     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10958       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10959   esac
10960   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10961 else
10962   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10963 fi
10964 library_names_spec=
10965 libname_spec='lib$name'
10966 soname_spec=
10967 shrext_cmds=".so"
10968 postinstall_cmds=
10969 postuninstall_cmds=
10970 finish_cmds=
10971 finish_eval=
10972 shlibpath_var=
10973 shlibpath_overrides_runpath=unknown
10974 version_type=none
10975 dynamic_linker="$host_os ld.so"
10976 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10977 need_lib_prefix=unknown
10978 hardcode_into_libs=no
10979
10980 # when you set need_version to no, make sure it does not cause -set_version
10981 # flags to be left without arguments
10982 need_version=unknown
10983
10984 case $host_os in
10985 aix3*)
10986   version_type=linux # correct to gnu/linux during the next big refactor
10987   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10988   shlibpath_var=LIBPATH
10989
10990   # AIX 3 has no versioning support, so we append a major version to the name.
10991   soname_spec='${libname}${release}${shared_ext}$major'
10992   ;;
10993
10994 aix[4-9]*)
10995   version_type=linux # correct to gnu/linux during the next big refactor
10996   need_lib_prefix=no
10997   need_version=no
10998   hardcode_into_libs=yes
10999   if test "$host_cpu" = ia64; then
11000     # AIX 5 supports IA64
11001     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11002     shlibpath_var=LD_LIBRARY_PATH
11003   else
11004     # With GCC up to 2.95.x, collect2 would create an import file
11005     # for dependence libraries.  The import file would start with
11006     # the line `#! .'.  This would cause the generated library to
11007     # depend on `.', always an invalid library.  This was fixed in
11008     # development snapshots of GCC prior to 3.0.
11009     case $host_os in
11010       aix4 | aix4.[01] | aix4.[01].*)
11011       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11012            echo ' yes '
11013            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11014         :
11015       else
11016         can_build_shared=no
11017       fi
11018       ;;
11019     esac
11020     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11021     # soname into executable. Probably we can add versioning support to
11022     # collect2, so additional links can be useful in future.
11023     if test "$aix_use_runtimelinking" = yes; then
11024       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11025       # instead of lib<name>.a to let people know that these are not
11026       # typical AIX shared libraries.
11027       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028     else
11029       # We preserve .a as extension for shared libraries through AIX4.2
11030       # and later when we are not doing run time linking.
11031       library_names_spec='${libname}${release}.a $libname.a'
11032       soname_spec='${libname}${release}${shared_ext}$major'
11033     fi
11034     shlibpath_var=LIBPATH
11035   fi
11036   ;;
11037
11038 amigaos*)
11039   case $host_cpu in
11040   powerpc)
11041     # Since July 2007 AmigaOS4 officially supports .so libraries.
11042     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044     ;;
11045   m68k)
11046     library_names_spec='$libname.ixlibrary $libname.a'
11047     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11048     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11049     ;;
11050   esac
11051   ;;
11052
11053 beos*)
11054   library_names_spec='${libname}${shared_ext}'
11055   dynamic_linker="$host_os ld.so"
11056   shlibpath_var=LIBRARY_PATH
11057   ;;
11058
11059 bsdi[45]*)
11060   version_type=linux # correct to gnu/linux during the next big refactor
11061   need_version=no
11062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063   soname_spec='${libname}${release}${shared_ext}$major'
11064   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11065   shlibpath_var=LD_LIBRARY_PATH
11066   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11067   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11068   # the default ld.so.conf also contains /usr/contrib/lib and
11069   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11070   # libtool to hard-code these into programs
11071   ;;
11072
11073 cygwin* | mingw* | pw32* | cegcc*)
11074   version_type=windows
11075   shrext_cmds=".dll"
11076   need_version=no
11077   need_lib_prefix=no
11078
11079   case $GCC,$cc_basename in
11080   yes,*)
11081     # gcc
11082     library_names_spec='$libname.dll.a'
11083     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11084     postinstall_cmds='base_file=`basename \${file}`~
11085       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11086       dldir=$destdir/`dirname \$dlpath`~
11087       test -d \$dldir || mkdir -p \$dldir~
11088       $install_prog $dir/$dlname \$dldir/$dlname~
11089       chmod a+x \$dldir/$dlname~
11090       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11091         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11092       fi'
11093     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11094       dlpath=$dir/\$dldll~
11095        $RM \$dlpath'
11096     shlibpath_overrides_runpath=yes
11097
11098     case $host_os in
11099     cygwin*)
11100       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11101       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11102
11103       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11104       ;;
11105     mingw* | cegcc*)
11106       # MinGW DLLs use traditional 'lib' prefix
11107       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11108       ;;
11109     pw32*)
11110       # pw32 DLLs use 'pw' prefix rather than 'lib'
11111       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11112       ;;
11113     esac
11114     dynamic_linker='Win32 ld.exe'
11115     ;;
11116
11117   *,cl*)
11118     # Native MSVC
11119     libname_spec='$name'
11120     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11121     library_names_spec='${libname}.dll.lib'
11122
11123     case $build_os in
11124     mingw*)
11125       sys_lib_search_path_spec=
11126       lt_save_ifs=$IFS
11127       IFS=';'
11128       for lt_path in $LIB
11129       do
11130         IFS=$lt_save_ifs
11131         # Let DOS variable expansion print the short 8.3 style file name.
11132         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11133         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11134       done
11135       IFS=$lt_save_ifs
11136       # Convert to MSYS style.
11137       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11138       ;;
11139     cygwin*)
11140       # Convert to unix form, then to dos form, then back to unix form
11141       # but this time dos style (no spaces!) so that the unix form looks
11142       # like /cygdrive/c/PROGRA~1:/cygdr...
11143       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11144       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11145       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11146       ;;
11147     *)
11148       sys_lib_search_path_spec="$LIB"
11149       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11150         # It is most probably a Windows format PATH.
11151         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11152       else
11153         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11154       fi
11155       # FIXME: find the short name or the path components, as spaces are
11156       # common. (e.g. "Program Files" -> "PROGRA~1")
11157       ;;
11158     esac
11159
11160     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11161     postinstall_cmds='base_file=`basename \${file}`~
11162       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11163       dldir=$destdir/`dirname \$dlpath`~
11164       test -d \$dldir || mkdir -p \$dldir~
11165       $install_prog $dir/$dlname \$dldir/$dlname'
11166     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11167       dlpath=$dir/\$dldll~
11168        $RM \$dlpath'
11169     shlibpath_overrides_runpath=yes
11170     dynamic_linker='Win32 link.exe'
11171     ;;
11172
11173   *)
11174     # Assume MSVC wrapper
11175     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11176     dynamic_linker='Win32 ld.exe'
11177     ;;
11178   esac
11179   # FIXME: first we should search . and the directory the executable is in
11180   shlibpath_var=PATH
11181   ;;
11182
11183 darwin* | rhapsody*)
11184   dynamic_linker="$host_os dyld"
11185   version_type=darwin
11186   need_lib_prefix=no
11187   need_version=no
11188   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11189   soname_spec='${libname}${release}${major}$shared_ext'
11190   shlibpath_overrides_runpath=yes
11191   shlibpath_var=DYLD_LIBRARY_PATH
11192   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11193
11194   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11195   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11196   ;;
11197
11198 dgux*)
11199   version_type=linux # correct to gnu/linux during the next big refactor
11200   need_lib_prefix=no
11201   need_version=no
11202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11203   soname_spec='${libname}${release}${shared_ext}$major'
11204   shlibpath_var=LD_LIBRARY_PATH
11205   ;;
11206
11207 freebsd* | dragonfly*)
11208   # DragonFly does not have aout.  When/if they implement a new
11209   # versioning mechanism, adjust this.
11210   if test -x /usr/bin/objformat; then
11211     objformat=`/usr/bin/objformat`
11212   else
11213     case $host_os in
11214     freebsd[23].*) objformat=aout ;;
11215     *) objformat=elf ;;
11216     esac
11217   fi
11218   version_type=freebsd-$objformat
11219   case $version_type in
11220     freebsd-elf*)
11221       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11222       need_version=no
11223       need_lib_prefix=no
11224       ;;
11225     freebsd-*)
11226       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11227       need_version=yes
11228       ;;
11229   esac
11230   shlibpath_var=LD_LIBRARY_PATH
11231   case $host_os in
11232   freebsd2.*)
11233     shlibpath_overrides_runpath=yes
11234     ;;
11235   freebsd3.[01]* | freebsdelf3.[01]*)
11236     shlibpath_overrides_runpath=yes
11237     hardcode_into_libs=yes
11238     ;;
11239   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11240   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11241     shlibpath_overrides_runpath=no
11242     hardcode_into_libs=yes
11243     ;;
11244   *) # from 4.6 on, and DragonFly
11245     shlibpath_overrides_runpath=yes
11246     hardcode_into_libs=yes
11247     ;;
11248   esac
11249   ;;
11250
11251 haiku*)
11252   version_type=linux # correct to gnu/linux during the next big refactor
11253   need_lib_prefix=no
11254   need_version=no
11255   dynamic_linker="$host_os runtime_loader"
11256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11257   soname_spec='${libname}${release}${shared_ext}$major'
11258   shlibpath_var=LIBRARY_PATH
11259   shlibpath_overrides_runpath=yes
11260   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11261   hardcode_into_libs=yes
11262   ;;
11263
11264 hpux9* | hpux10* | hpux11*)
11265   # Give a soname corresponding to the major version so that dld.sl refuses to
11266   # link against other versions.
11267   version_type=sunos
11268   need_lib_prefix=no
11269   need_version=no
11270   case $host_cpu in
11271   ia64*)
11272     shrext_cmds='.so'
11273     hardcode_into_libs=yes
11274     dynamic_linker="$host_os dld.so"
11275     shlibpath_var=LD_LIBRARY_PATH
11276     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278     soname_spec='${libname}${release}${shared_ext}$major'
11279     if test "X$HPUX_IA64_MODE" = X32; then
11280       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11281     else
11282       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11283     fi
11284     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11285     ;;
11286   hppa*64*)
11287     shrext_cmds='.sl'
11288     hardcode_into_libs=yes
11289     dynamic_linker="$host_os dld.sl"
11290     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11291     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293     soname_spec='${libname}${release}${shared_ext}$major'
11294     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11295     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11296     ;;
11297   *)
11298     shrext_cmds='.sl'
11299     dynamic_linker="$host_os dld.sl"
11300     shlibpath_var=SHLIB_PATH
11301     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11302     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303     soname_spec='${libname}${release}${shared_ext}$major'
11304     ;;
11305   esac
11306   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11307   postinstall_cmds='chmod 555 $lib'
11308   # or fails outright, so override atomically:
11309   install_override_mode=555
11310   ;;
11311
11312 interix[3-9]*)
11313   version_type=linux # correct to gnu/linux during the next big refactor
11314   need_lib_prefix=no
11315   need_version=no
11316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11317   soname_spec='${libname}${release}${shared_ext}$major'
11318   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11319   shlibpath_var=LD_LIBRARY_PATH
11320   shlibpath_overrides_runpath=no
11321   hardcode_into_libs=yes
11322   ;;
11323
11324 irix5* | irix6* | nonstopux*)
11325   case $host_os in
11326     nonstopux*) version_type=nonstopux ;;
11327     *)
11328         if test "$lt_cv_prog_gnu_ld" = yes; then
11329                 version_type=linux # correct to gnu/linux during the next big refactor
11330         else
11331                 version_type=irix
11332         fi ;;
11333   esac
11334   need_lib_prefix=no
11335   need_version=no
11336   soname_spec='${libname}${release}${shared_ext}$major'
11337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11338   case $host_os in
11339   irix5* | nonstopux*)
11340     libsuff= shlibsuff=
11341     ;;
11342   *)
11343     case $LD in # libtool.m4 will add one of these switches to LD
11344     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11345       libsuff= shlibsuff= libmagic=32-bit;;
11346     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11347       libsuff=32 shlibsuff=N32 libmagic=N32;;
11348     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11349       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11350     *) libsuff= shlibsuff= libmagic=never-match;;
11351     esac
11352     ;;
11353   esac
11354   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11355   shlibpath_overrides_runpath=no
11356   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11357   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11358   hardcode_into_libs=yes
11359   ;;
11360
11361 # No shared lib support for Linux oldld, aout, or coff.
11362 linux*oldld* | linux*aout* | linux*coff*)
11363   dynamic_linker=no
11364   ;;
11365
11366 # This must be glibc/ELF.
11367 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11368   version_type=linux # correct to gnu/linux during the next big refactor
11369   need_lib_prefix=no
11370   need_version=no
11371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372   soname_spec='${libname}${release}${shared_ext}$major'
11373   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11374   shlibpath_var=LD_LIBRARY_PATH
11375   shlibpath_overrides_runpath=no
11376
11377   # Some binutils ld are patched to set DT_RUNPATH
11378   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11379   $as_echo_n "(cached) " >&6
11380 else
11381   lt_cv_shlibpath_overrides_runpath=no
11382     save_LDFLAGS=$LDFLAGS
11383     save_libdir=$libdir
11384     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11385          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11386     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h.  */
11388
11389 int
11390 main ()
11391 {
11392
11393   ;
11394   return 0;
11395 }
11396 _ACEOF
11397 if ac_fn_c_try_link "$LINENO"; then :
11398   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11399   lt_cv_shlibpath_overrides_runpath=yes
11400 fi
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext \
11403     conftest$ac_exeext conftest.$ac_ext
11404     LDFLAGS=$save_LDFLAGS
11405     libdir=$save_libdir
11406
11407 fi
11408
11409   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11410
11411   # This implies no fast_install, which is unacceptable.
11412   # Some rework will be needed to allow for fast_install
11413   # before this can be enabled.
11414   hardcode_into_libs=yes
11415
11416   # Append ld.so.conf contents to the search path
11417   if test -f /etc/ld.so.conf; then
11418     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11419     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11420   fi
11421
11422   # We used to test for /lib/ld.so.1 and disable shared libraries on
11423   # powerpc, because MkLinux only supported shared libraries with the
11424   # GNU dynamic linker.  Since this was broken with cross compilers,
11425   # most powerpc-linux boxes support dynamic linking these days and
11426   # people can always --disable-shared, the test was removed, and we
11427   # assume the GNU/Linux dynamic linker is in use.
11428   dynamic_linker='GNU/Linux ld.so'
11429   ;;
11430
11431 netbsdelf*-gnu)
11432   version_type=linux
11433   need_lib_prefix=no
11434   need_version=no
11435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11436   soname_spec='${libname}${release}${shared_ext}$major'
11437   shlibpath_var=LD_LIBRARY_PATH
11438   shlibpath_overrides_runpath=no
11439   hardcode_into_libs=yes
11440   dynamic_linker='NetBSD ld.elf_so'
11441   ;;
11442
11443 netbsd*)
11444   version_type=sunos
11445   need_lib_prefix=no
11446   need_version=no
11447   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11449     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11450     dynamic_linker='NetBSD (a.out) ld.so'
11451   else
11452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11453     soname_spec='${libname}${release}${shared_ext}$major'
11454     dynamic_linker='NetBSD ld.elf_so'
11455   fi
11456   shlibpath_var=LD_LIBRARY_PATH
11457   shlibpath_overrides_runpath=yes
11458   hardcode_into_libs=yes
11459   ;;
11460
11461 newsos6)
11462   version_type=linux # correct to gnu/linux during the next big refactor
11463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   shlibpath_overrides_runpath=yes
11466   ;;
11467
11468 *nto* | *qnx*)
11469   version_type=qnx
11470   need_lib_prefix=no
11471   need_version=no
11472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473   soname_spec='${libname}${release}${shared_ext}$major'
11474   shlibpath_var=LD_LIBRARY_PATH
11475   shlibpath_overrides_runpath=no
11476   hardcode_into_libs=yes
11477   dynamic_linker='ldqnx.so'
11478   ;;
11479
11480 openbsd*)
11481   version_type=sunos
11482   sys_lib_dlsearch_path_spec="/usr/lib"
11483   need_lib_prefix=no
11484   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11485   case $host_os in
11486     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11487     *)                          need_version=no  ;;
11488   esac
11489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11490   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11491   shlibpath_var=LD_LIBRARY_PATH
11492   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11493     case $host_os in
11494       openbsd2.[89] | openbsd2.[89].*)
11495         shlibpath_overrides_runpath=no
11496         ;;
11497       *)
11498         shlibpath_overrides_runpath=yes
11499         ;;
11500       esac
11501   else
11502     shlibpath_overrides_runpath=yes
11503   fi
11504   ;;
11505
11506 os2*)
11507   libname_spec='$name'
11508   shrext_cmds=".dll"
11509   need_lib_prefix=no
11510   library_names_spec='$libname${shared_ext} $libname.a'
11511   dynamic_linker='OS/2 ld.exe'
11512   shlibpath_var=LIBPATH
11513   ;;
11514
11515 osf3* | osf4* | osf5*)
11516   version_type=osf
11517   need_lib_prefix=no
11518   need_version=no
11519   soname_spec='${libname}${release}${shared_ext}$major'
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521   shlibpath_var=LD_LIBRARY_PATH
11522   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11523   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11524   ;;
11525
11526 rdos*)
11527   dynamic_linker=no
11528   ;;
11529
11530 solaris*)
11531   version_type=linux # correct to gnu/linux during the next big refactor
11532   need_lib_prefix=no
11533   need_version=no
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535   soname_spec='${libname}${release}${shared_ext}$major'
11536   shlibpath_var=LD_LIBRARY_PATH
11537   shlibpath_overrides_runpath=yes
11538   hardcode_into_libs=yes
11539   # ldd complains unless libraries are executable
11540   postinstall_cmds='chmod +x $lib'
11541   ;;
11542
11543 sunos4*)
11544   version_type=sunos
11545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11546   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11547   shlibpath_var=LD_LIBRARY_PATH
11548   shlibpath_overrides_runpath=yes
11549   if test "$with_gnu_ld" = yes; then
11550     need_lib_prefix=no
11551   fi
11552   need_version=yes
11553   ;;
11554
11555 sysv4 | sysv4.3*)
11556   version_type=linux # correct to gnu/linux during the next big refactor
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558   soname_spec='${libname}${release}${shared_ext}$major'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   case $host_vendor in
11561     sni)
11562       shlibpath_overrides_runpath=no
11563       need_lib_prefix=no
11564       runpath_var=LD_RUN_PATH
11565       ;;
11566     siemens)
11567       need_lib_prefix=no
11568       ;;
11569     motorola)
11570       need_lib_prefix=no
11571       need_version=no
11572       shlibpath_overrides_runpath=no
11573       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11574       ;;
11575   esac
11576   ;;
11577
11578 sysv4*MP*)
11579   if test -d /usr/nec ;then
11580     version_type=linux # correct to gnu/linux during the next big refactor
11581     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11582     soname_spec='$libname${shared_ext}.$major'
11583     shlibpath_var=LD_LIBRARY_PATH
11584   fi
11585   ;;
11586
11587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11588   version_type=freebsd-elf
11589   need_lib_prefix=no
11590   need_version=no
11591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11592   soname_spec='${libname}${release}${shared_ext}$major'
11593   shlibpath_var=LD_LIBRARY_PATH
11594   shlibpath_overrides_runpath=yes
11595   hardcode_into_libs=yes
11596   if test "$with_gnu_ld" = yes; then
11597     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11598   else
11599     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11600     case $host_os in
11601       sco3.2v5*)
11602         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11603         ;;
11604     esac
11605   fi
11606   sys_lib_dlsearch_path_spec='/usr/lib'
11607   ;;
11608
11609 tpf*)
11610   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11611   version_type=linux # correct to gnu/linux during the next big refactor
11612   need_lib_prefix=no
11613   need_version=no
11614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615   shlibpath_var=LD_LIBRARY_PATH
11616   shlibpath_overrides_runpath=no
11617   hardcode_into_libs=yes
11618   ;;
11619
11620 uts4*)
11621   version_type=linux # correct to gnu/linux during the next big refactor
11622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623   soname_spec='${libname}${release}${shared_ext}$major'
11624   shlibpath_var=LD_LIBRARY_PATH
11625   ;;
11626
11627 *)
11628   dynamic_linker=no
11629   ;;
11630 esac
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11632 $as_echo "$dynamic_linker" >&6; }
11633 test "$dynamic_linker" = no && can_build_shared=no
11634
11635 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11636 if test "$GCC" = yes; then
11637   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11638 fi
11639
11640 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11641   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11642 fi
11643 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11644   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11645 fi
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11739 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11740 hardcode_action=
11741 if test -n "$hardcode_libdir_flag_spec" ||
11742    test -n "$runpath_var" ||
11743    test "X$hardcode_automatic" = "Xyes" ; then
11744
11745   # We can hardcode non-existent directories.
11746   if test "$hardcode_direct" != no &&
11747      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11748      # have to relink, otherwise we might link with an installed library
11749      # when we should be linking with a yet-to-be-installed one
11750      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11751      test "$hardcode_minus_L" != no; then
11752     # Linking always hardcodes the temporary library directory.
11753     hardcode_action=relink
11754   else
11755     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11756     hardcode_action=immediate
11757   fi
11758 else
11759   # We cannot hardcode anything, or else we can only hardcode existing
11760   # directories.
11761   hardcode_action=unsupported
11762 fi
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11764 $as_echo "$hardcode_action" >&6; }
11765
11766 if test "$hardcode_action" = relink ||
11767    test "$inherit_rpath" = yes; then
11768   # Fast installation is not supported
11769   enable_fast_install=no
11770 elif test "$shlibpath_overrides_runpath" = yes ||
11771      test "$enable_shared" = no; then
11772   # Fast installation is not necessary
11773   enable_fast_install=needless
11774 fi
11775
11776
11777
11778
11779
11780
11781   if test "x$enable_dlopen" != xyes; then
11782   enable_dlopen=unknown
11783   enable_dlopen_self=unknown
11784   enable_dlopen_self_static=unknown
11785 else
11786   lt_cv_dlopen=no
11787   lt_cv_dlopen_libs=
11788
11789   case $host_os in
11790   beos*)
11791     lt_cv_dlopen="load_add_on"
11792     lt_cv_dlopen_libs=
11793     lt_cv_dlopen_self=yes
11794     ;;
11795
11796   mingw* | pw32* | cegcc*)
11797     lt_cv_dlopen="LoadLibrary"
11798     lt_cv_dlopen_libs=
11799     ;;
11800
11801   cygwin*)
11802     lt_cv_dlopen="dlopen"
11803     lt_cv_dlopen_libs=
11804     ;;
11805
11806   darwin*)
11807   # if libdl is installed we need to link against it
11808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11809 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11810 if ${ac_cv_lib_dl_dlopen+:} false; then :
11811   $as_echo_n "(cached) " >&6
11812 else
11813   ac_check_lib_save_LIBS=$LIBS
11814 LIBS="-ldl  $LIBS"
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h.  */
11817
11818 /* Override any GCC internal prototype to avoid an error.
11819    Use char because int might match the return type of a GCC
11820    builtin and then its argument prototype would still apply.  */
11821 #ifdef __cplusplus
11822 extern "C"
11823 #endif
11824 char dlopen ();
11825 int
11826 main ()
11827 {
11828 return dlopen ();
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_link "$LINENO"; then :
11834   ac_cv_lib_dl_dlopen=yes
11835 else
11836   ac_cv_lib_dl_dlopen=no
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext \
11839     conftest$ac_exeext conftest.$ac_ext
11840 LIBS=$ac_check_lib_save_LIBS
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11844 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11845   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11846 else
11847
11848     lt_cv_dlopen="dyld"
11849     lt_cv_dlopen_libs=
11850     lt_cv_dlopen_self=yes
11851
11852 fi
11853
11854     ;;
11855
11856   *)
11857     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11858 if test "x$ac_cv_func_shl_load" = xyes; then :
11859   lt_cv_dlopen="shl_load"
11860 else
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11862 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11863 if ${ac_cv_lib_dld_shl_load+:} false; then :
11864   $as_echo_n "(cached) " >&6
11865 else
11866   ac_check_lib_save_LIBS=$LIBS
11867 LIBS="-ldld  $LIBS"
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h.  */
11870
11871 /* Override any GCC internal prototype to avoid an error.
11872    Use char because int might match the return type of a GCC
11873    builtin and then its argument prototype would still apply.  */
11874 #ifdef __cplusplus
11875 extern "C"
11876 #endif
11877 char shl_load ();
11878 int
11879 main ()
11880 {
11881 return shl_load ();
11882   ;
11883   return 0;
11884 }
11885 _ACEOF
11886 if ac_fn_c_try_link "$LINENO"; then :
11887   ac_cv_lib_dld_shl_load=yes
11888 else
11889   ac_cv_lib_dld_shl_load=no
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext \
11892     conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11894 fi
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11896 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11897 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11898   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11899 else
11900   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11901 if test "x$ac_cv_func_dlopen" = xyes; then :
11902   lt_cv_dlopen="dlopen"
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11905 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11906 if ${ac_cv_lib_dl_dlopen+:} false; then :
11907   $as_echo_n "(cached) " >&6
11908 else
11909   ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-ldl  $LIBS"
11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h.  */
11913
11914 /* Override any GCC internal prototype to avoid an error.
11915    Use char because int might match the return type of a GCC
11916    builtin and then its argument prototype would still apply.  */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 char dlopen ();
11921 int
11922 main ()
11923 {
11924 return dlopen ();
11925   ;
11926   return 0;
11927 }
11928 _ACEOF
11929 if ac_fn_c_try_link "$LINENO"; then :
11930   ac_cv_lib_dl_dlopen=yes
11931 else
11932   ac_cv_lib_dl_dlopen=no
11933 fi
11934 rm -f core conftest.err conftest.$ac_objext \
11935     conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11939 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11940 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11941   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11942 else
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11944 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11945 if ${ac_cv_lib_svld_dlopen+:} false; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   ac_check_lib_save_LIBS=$LIBS
11949 LIBS="-lsvld  $LIBS"
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h.  */
11952
11953 /* Override any GCC internal prototype to avoid an error.
11954    Use char because int might match the return type of a GCC
11955    builtin and then its argument prototype would still apply.  */
11956 #ifdef __cplusplus
11957 extern "C"
11958 #endif
11959 char dlopen ();
11960 int
11961 main ()
11962 {
11963 return dlopen ();
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 if ac_fn_c_try_link "$LINENO"; then :
11969   ac_cv_lib_svld_dlopen=yes
11970 else
11971   ac_cv_lib_svld_dlopen=no
11972 fi
11973 rm -f core conftest.err conftest.$ac_objext \
11974     conftest$ac_exeext conftest.$ac_ext
11975 LIBS=$ac_check_lib_save_LIBS
11976 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11978 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11979 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11980   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11981 else
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11983 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11984 if ${ac_cv_lib_dld_dld_link+:} false; then :
11985   $as_echo_n "(cached) " >&6
11986 else
11987   ac_check_lib_save_LIBS=$LIBS
11988 LIBS="-ldld  $LIBS"
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h.  */
11991
11992 /* Override any GCC internal prototype to avoid an error.
11993    Use char because int might match the return type of a GCC
11994    builtin and then its argument prototype would still apply.  */
11995 #ifdef __cplusplus
11996 extern "C"
11997 #endif
11998 char dld_link ();
11999 int
12000 main ()
12001 {
12002 return dld_link ();
12003   ;
12004   return 0;
12005 }
12006 _ACEOF
12007 if ac_fn_c_try_link "$LINENO"; then :
12008   ac_cv_lib_dld_dld_link=yes
12009 else
12010   ac_cv_lib_dld_dld_link=no
12011 fi
12012 rm -f core conftest.err conftest.$ac_objext \
12013     conftest$ac_exeext conftest.$ac_ext
12014 LIBS=$ac_check_lib_save_LIBS
12015 fi
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12017 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12018 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12019   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12020 fi
12021
12022
12023 fi
12024
12025
12026 fi
12027
12028
12029 fi
12030
12031
12032 fi
12033
12034
12035 fi
12036
12037     ;;
12038   esac
12039
12040   if test "x$lt_cv_dlopen" != xno; then
12041     enable_dlopen=yes
12042   else
12043     enable_dlopen=no
12044   fi
12045
12046   case $lt_cv_dlopen in
12047   dlopen)
12048     save_CPPFLAGS="$CPPFLAGS"
12049     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12050
12051     save_LDFLAGS="$LDFLAGS"
12052     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12053
12054     save_LIBS="$LIBS"
12055     LIBS="$lt_cv_dlopen_libs $LIBS"
12056
12057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12058 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12059 if ${lt_cv_dlopen_self+:} false; then :
12060   $as_echo_n "(cached) " >&6
12061 else
12062           if test "$cross_compiling" = yes; then :
12063   lt_cv_dlopen_self=cross
12064 else
12065   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12066   lt_status=$lt_dlunknown
12067   cat > conftest.$ac_ext <<_LT_EOF
12068 #line $LINENO "configure"
12069 #include "confdefs.h"
12070
12071 #if HAVE_DLFCN_H
12072 #include <dlfcn.h>
12073 #endif
12074
12075 #include <stdio.h>
12076
12077 #ifdef RTLD_GLOBAL
12078 #  define LT_DLGLOBAL           RTLD_GLOBAL
12079 #else
12080 #  ifdef DL_GLOBAL
12081 #    define LT_DLGLOBAL         DL_GLOBAL
12082 #  else
12083 #    define LT_DLGLOBAL         0
12084 #  endif
12085 #endif
12086
12087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12088    find out it does not work in some platform. */
12089 #ifndef LT_DLLAZY_OR_NOW
12090 #  ifdef RTLD_LAZY
12091 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12092 #  else
12093 #    ifdef DL_LAZY
12094 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12095 #    else
12096 #      ifdef RTLD_NOW
12097 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12098 #      else
12099 #        ifdef DL_NOW
12100 #          define LT_DLLAZY_OR_NOW      DL_NOW
12101 #        else
12102 #          define LT_DLLAZY_OR_NOW      0
12103 #        endif
12104 #      endif
12105 #    endif
12106 #  endif
12107 #endif
12108
12109 /* When -fvisbility=hidden is used, assume the code has been annotated
12110    correspondingly for the symbols needed.  */
12111 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12112 int fnord () __attribute__((visibility("default")));
12113 #endif
12114
12115 int fnord () { return 42; }
12116 int main ()
12117 {
12118   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12119   int status = $lt_dlunknown;
12120
12121   if (self)
12122     {
12123       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12124       else
12125         {
12126           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12127           else puts (dlerror ());
12128         }
12129       /* dlclose (self); */
12130     }
12131   else
12132     puts (dlerror ());
12133
12134   return status;
12135 }
12136 _LT_EOF
12137   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12138   (eval $ac_link) 2>&5
12139   ac_status=$?
12140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12141   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12142     (./conftest; exit; ) >&5 2>/dev/null
12143     lt_status=$?
12144     case x$lt_status in
12145       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12146       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12147       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12148     esac
12149   else :
12150     # compilation failed
12151     lt_cv_dlopen_self=no
12152   fi
12153 fi
12154 rm -fr conftest*
12155
12156
12157 fi
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12159 $as_echo "$lt_cv_dlopen_self" >&6; }
12160
12161     if test "x$lt_cv_dlopen_self" = xyes; then
12162       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12163       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12164 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12165 if ${lt_cv_dlopen_self_static+:} false; then :
12166   $as_echo_n "(cached) " >&6
12167 else
12168           if test "$cross_compiling" = yes; then :
12169   lt_cv_dlopen_self_static=cross
12170 else
12171   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12172   lt_status=$lt_dlunknown
12173   cat > conftest.$ac_ext <<_LT_EOF
12174 #line $LINENO "configure"
12175 #include "confdefs.h"
12176
12177 #if HAVE_DLFCN_H
12178 #include <dlfcn.h>
12179 #endif
12180
12181 #include <stdio.h>
12182
12183 #ifdef RTLD_GLOBAL
12184 #  define LT_DLGLOBAL           RTLD_GLOBAL
12185 #else
12186 #  ifdef DL_GLOBAL
12187 #    define LT_DLGLOBAL         DL_GLOBAL
12188 #  else
12189 #    define LT_DLGLOBAL         0
12190 #  endif
12191 #endif
12192
12193 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12194    find out it does not work in some platform. */
12195 #ifndef LT_DLLAZY_OR_NOW
12196 #  ifdef RTLD_LAZY
12197 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12198 #  else
12199 #    ifdef DL_LAZY
12200 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12201 #    else
12202 #      ifdef RTLD_NOW
12203 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12204 #      else
12205 #        ifdef DL_NOW
12206 #          define LT_DLLAZY_OR_NOW      DL_NOW
12207 #        else
12208 #          define LT_DLLAZY_OR_NOW      0
12209 #        endif
12210 #      endif
12211 #    endif
12212 #  endif
12213 #endif
12214
12215 /* When -fvisbility=hidden is used, assume the code has been annotated
12216    correspondingly for the symbols needed.  */
12217 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12218 int fnord () __attribute__((visibility("default")));
12219 #endif
12220
12221 int fnord () { return 42; }
12222 int main ()
12223 {
12224   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12225   int status = $lt_dlunknown;
12226
12227   if (self)
12228     {
12229       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12230       else
12231         {
12232           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12233           else puts (dlerror ());
12234         }
12235       /* dlclose (self); */
12236     }
12237   else
12238     puts (dlerror ());
12239
12240   return status;
12241 }
12242 _LT_EOF
12243   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12244   (eval $ac_link) 2>&5
12245   ac_status=$?
12246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12247   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12248     (./conftest; exit; ) >&5 2>/dev/null
12249     lt_status=$?
12250     case x$lt_status in
12251       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12252       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12253       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12254     esac
12255   else :
12256     # compilation failed
12257     lt_cv_dlopen_self_static=no
12258   fi
12259 fi
12260 rm -fr conftest*
12261
12262
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12265 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12266     fi
12267
12268     CPPFLAGS="$save_CPPFLAGS"
12269     LDFLAGS="$save_LDFLAGS"
12270     LIBS="$save_LIBS"
12271     ;;
12272   esac
12273
12274   case $lt_cv_dlopen_self in
12275   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12276   *) enable_dlopen_self=unknown ;;
12277   esac
12278
12279   case $lt_cv_dlopen_self_static in
12280   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12281   *) enable_dlopen_self_static=unknown ;;
12282   esac
12283 fi
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301 striplib=
12302 old_striplib=
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12304 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12305 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12306   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12307   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12309 $as_echo "yes" >&6; }
12310 else
12311 # FIXME - insert some real tests, host_os isn't really good enough
12312   case $host_os in
12313   darwin*)
12314     if test -n "$STRIP" ; then
12315       striplib="$STRIP -x"
12316       old_striplib="$STRIP -S"
12317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12318 $as_echo "yes" >&6; }
12319     else
12320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12322     fi
12323     ;;
12324   *)
12325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327     ;;
12328   esac
12329 fi
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342   # Report which library types will actually be built
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12344 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12346 $as_echo "$can_build_shared" >&6; }
12347
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12349 $as_echo_n "checking whether to build shared libraries... " >&6; }
12350   test "$can_build_shared" = "no" && enable_shared=no
12351
12352   # On AIX, shared libraries and static libraries use the same namespace, and
12353   # are all built from PIC.
12354   case $host_os in
12355   aix3*)
12356     test "$enable_shared" = yes && enable_static=no
12357     if test -n "$RANLIB"; then
12358       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12359       postinstall_cmds='$RANLIB $lib'
12360     fi
12361     ;;
12362
12363   aix[4-9]*)
12364     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12365       test "$enable_shared" = yes && enable_static=no
12366     fi
12367     ;;
12368   esac
12369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12370 $as_echo "$enable_shared" >&6; }
12371
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12373 $as_echo_n "checking whether to build static libraries... " >&6; }
12374   # Make sure either enable_shared or enable_static is yes.
12375   test "$enable_shared" = yes || enable_static=yes
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12377 $as_echo "$enable_static" >&6; }
12378
12379
12380
12381
12382 fi
12383 ac_ext=cpp
12384 ac_cpp='$CXXCPP $CPPFLAGS'
12385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12388
12389 CC="$lt_save_CC"
12390
12391       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12392     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12393     (test "X$CXX" != "Xg++"))) ; then
12394   ac_ext=cpp
12395 ac_cpp='$CXXCPP $CPPFLAGS'
12396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12400 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12401 if test -z "$CXXCPP"; then
12402   if ${ac_cv_prog_CXXCPP+:} false; then :
12403   $as_echo_n "(cached) " >&6
12404 else
12405       # Double quotes because CXXCPP needs to be expanded
12406     for CXXCPP in "$CXX -E" "/lib/cpp"
12407     do
12408       ac_preproc_ok=false
12409 for ac_cxx_preproc_warn_flag in '' yes
12410 do
12411   # Use a header file that comes with gcc, so configuring glibc
12412   # with a fresh cross-compiler works.
12413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12414   # <limits.h> exists even on freestanding compilers.
12415   # On the NeXT, cc -E runs the code through the compiler's parser,
12416   # not just through cpp. "Syntax error" is here to catch this case.
12417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h.  */
12419 #ifdef __STDC__
12420 # include <limits.h>
12421 #else
12422 # include <assert.h>
12423 #endif
12424                      Syntax error
12425 _ACEOF
12426 if ac_fn_cxx_try_cpp "$LINENO"; then :
12427
12428 else
12429   # Broken: fails on valid input.
12430 continue
12431 fi
12432 rm -f conftest.err conftest.i conftest.$ac_ext
12433
12434   # OK, works on sane cases.  Now check whether nonexistent headers
12435   # can be detected and how.
12436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h.  */
12438 #include <ac_nonexistent.h>
12439 _ACEOF
12440 if ac_fn_cxx_try_cpp "$LINENO"; then :
12441   # Broken: success on invalid input.
12442 continue
12443 else
12444   # Passes both tests.
12445 ac_preproc_ok=:
12446 break
12447 fi
12448 rm -f conftest.err conftest.i conftest.$ac_ext
12449
12450 done
12451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12452 rm -f conftest.i conftest.err conftest.$ac_ext
12453 if $ac_preproc_ok; then :
12454   break
12455 fi
12456
12457     done
12458     ac_cv_prog_CXXCPP=$CXXCPP
12459
12460 fi
12461   CXXCPP=$ac_cv_prog_CXXCPP
12462 else
12463   ac_cv_prog_CXXCPP=$CXXCPP
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12466 $as_echo "$CXXCPP" >&6; }
12467 ac_preproc_ok=false
12468 for ac_cxx_preproc_warn_flag in '' yes
12469 do
12470   # Use a header file that comes with gcc, so configuring glibc
12471   # with a fresh cross-compiler works.
12472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12473   # <limits.h> exists even on freestanding compilers.
12474   # On the NeXT, cc -E runs the code through the compiler's parser,
12475   # not just through cpp. "Syntax error" is here to catch this case.
12476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h.  */
12478 #ifdef __STDC__
12479 # include <limits.h>
12480 #else
12481 # include <assert.h>
12482 #endif
12483                      Syntax error
12484 _ACEOF
12485 if ac_fn_cxx_try_cpp "$LINENO"; then :
12486
12487 else
12488   # Broken: fails on valid input.
12489 continue
12490 fi
12491 rm -f conftest.err conftest.i conftest.$ac_ext
12492
12493   # OK, works on sane cases.  Now check whether nonexistent headers
12494   # can be detected and how.
12495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h.  */
12497 #include <ac_nonexistent.h>
12498 _ACEOF
12499 if ac_fn_cxx_try_cpp "$LINENO"; then :
12500   # Broken: success on invalid input.
12501 continue
12502 else
12503   # Passes both tests.
12504 ac_preproc_ok=:
12505 break
12506 fi
12507 rm -f conftest.err conftest.i conftest.$ac_ext
12508
12509 done
12510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12511 rm -f conftest.i conftest.err conftest.$ac_ext
12512 if $ac_preproc_ok; then :
12513
12514 else
12515   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12517 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12518 See \`config.log' for more details" "$LINENO" 5; }
12519 fi
12520
12521 ac_ext=cpp
12522 ac_cpp='$CXXCPP $CPPFLAGS'
12523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12526
12527 else
12528   _lt_caught_CXX_error=yes
12529 fi
12530
12531 ac_ext=cpp
12532 ac_cpp='$CXXCPP $CPPFLAGS'
12533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12536
12537 archive_cmds_need_lc_CXX=no
12538 allow_undefined_flag_CXX=
12539 always_export_symbols_CXX=no
12540 archive_expsym_cmds_CXX=
12541 compiler_needs_object_CXX=no
12542 export_dynamic_flag_spec_CXX=
12543 hardcode_direct_CXX=no
12544 hardcode_direct_absolute_CXX=no
12545 hardcode_libdir_flag_spec_CXX=
12546 hardcode_libdir_separator_CXX=
12547 hardcode_minus_L_CXX=no
12548 hardcode_shlibpath_var_CXX=unsupported
12549 hardcode_automatic_CXX=no
12550 inherit_rpath_CXX=no
12551 module_cmds_CXX=
12552 module_expsym_cmds_CXX=
12553 link_all_deplibs_CXX=unknown
12554 old_archive_cmds_CXX=$old_archive_cmds
12555 reload_flag_CXX=$reload_flag
12556 reload_cmds_CXX=$reload_cmds
12557 no_undefined_flag_CXX=
12558 whole_archive_flag_spec_CXX=
12559 enable_shared_with_static_runtimes_CXX=no
12560
12561 # Source file extension for C++ test sources.
12562 ac_ext=cpp
12563
12564 # Object file extension for compiled C++ test sources.
12565 objext=o
12566 objext_CXX=$objext
12567
12568 # No sense in running all these tests if we already determined that
12569 # the CXX compiler isn't working.  Some variables (like enable_shared)
12570 # are currently assumed to apply to all compilers on this platform,
12571 # and will be corrupted by setting them based on a non-working compiler.
12572 if test "$_lt_caught_CXX_error" != yes; then
12573   # Code to be used in simple compile tests
12574   lt_simple_compile_test_code="int some_variable = 0;"
12575
12576   # Code to be used in simple link tests
12577   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12578
12579   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12580
12581
12582
12583
12584
12585
12586 # If no C compiler was specified, use CC.
12587 LTCC=${LTCC-"$CC"}
12588
12589 # If no C compiler flags were specified, use CFLAGS.
12590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12591
12592 # Allow CC to be a program name with arguments.
12593 compiler=$CC
12594
12595
12596   # save warnings/boilerplate of simple test code
12597   ac_outfile=conftest.$ac_objext
12598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12600 _lt_compiler_boilerplate=`cat conftest.err`
12601 $RM conftest*
12602
12603   ac_outfile=conftest.$ac_objext
12604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12606 _lt_linker_boilerplate=`cat conftest.err`
12607 $RM -r conftest*
12608
12609
12610   # Allow CC to be a program name with arguments.
12611   lt_save_CC=$CC
12612   lt_save_CFLAGS=$CFLAGS
12613   lt_save_LD=$LD
12614   lt_save_GCC=$GCC
12615   GCC=$GXX
12616   lt_save_with_gnu_ld=$with_gnu_ld
12617   lt_save_path_LD=$lt_cv_path_LD
12618   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12619     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12620   else
12621     $as_unset lt_cv_prog_gnu_ld
12622   fi
12623   if test -n "${lt_cv_path_LDCXX+set}"; then
12624     lt_cv_path_LD=$lt_cv_path_LDCXX
12625   else
12626     $as_unset lt_cv_path_LD
12627   fi
12628   test -z "${LDCXX+set}" || LD=$LDCXX
12629   CC=${CXX-"c++"}
12630   CFLAGS=$CXXFLAGS
12631   compiler=$CC
12632   compiler_CXX=$CC
12633   for cc_temp in $compiler""; do
12634   case $cc_temp in
12635     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12636     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12637     \-*) ;;
12638     *) break;;
12639   esac
12640 done
12641 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12642
12643
12644   if test -n "$compiler"; then
12645     # We don't want -fno-exception when compiling C++ code, so set the
12646     # no_builtin_flag separately
12647     if test "$GXX" = yes; then
12648       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12649     else
12650       lt_prog_compiler_no_builtin_flag_CXX=
12651     fi
12652
12653     if test "$GXX" = yes; then
12654       # Set up default GNU C++ configuration
12655
12656
12657
12658 # Check whether --with-gnu-ld was given.
12659 if test "${with_gnu_ld+set}" = set; then :
12660   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12661 else
12662   with_gnu_ld=no
12663 fi
12664
12665 ac_prog=ld
12666 if test "$GCC" = yes; then
12667   # Check if gcc -print-prog-name=ld gives a path.
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12669 $as_echo_n "checking for ld used by $CC... " >&6; }
12670   case $host in
12671   *-*-mingw*)
12672     # gcc leaves a trailing carriage return which upsets mingw
12673     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12674   *)
12675     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12676   esac
12677   case $ac_prog in
12678     # Accept absolute paths.
12679     [\\/]* | ?:[\\/]*)
12680       re_direlt='/[^/][^/]*/\.\./'
12681       # Canonicalize the pathname of ld
12682       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12683       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12684         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12685       done
12686       test -z "$LD" && LD="$ac_prog"
12687       ;;
12688   "")
12689     # If it fails, then pretend we aren't using GCC.
12690     ac_prog=ld
12691     ;;
12692   *)
12693     # If it is relative, then search for the first ld in PATH.
12694     with_gnu_ld=unknown
12695     ;;
12696   esac
12697 elif test "$with_gnu_ld" = yes; then
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12699 $as_echo_n "checking for GNU ld... " >&6; }
12700 else
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12702 $as_echo_n "checking for non-GNU ld... " >&6; }
12703 fi
12704 if ${lt_cv_path_LD+:} false; then :
12705   $as_echo_n "(cached) " >&6
12706 else
12707   if test -z "$LD"; then
12708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12709   for ac_dir in $PATH; do
12710     IFS="$lt_save_ifs"
12711     test -z "$ac_dir" && ac_dir=.
12712     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12713       lt_cv_path_LD="$ac_dir/$ac_prog"
12714       # Check to see if the program is GNU ld.  I'd rather use --version,
12715       # but apparently some variants of GNU ld only accept -v.
12716       # Break only if it was the GNU/non-GNU ld that we prefer.
12717       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12718       *GNU* | *'with BFD'*)
12719         test "$with_gnu_ld" != no && break
12720         ;;
12721       *)
12722         test "$with_gnu_ld" != yes && break
12723         ;;
12724       esac
12725     fi
12726   done
12727   IFS="$lt_save_ifs"
12728 else
12729   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12730 fi
12731 fi
12732
12733 LD="$lt_cv_path_LD"
12734 if test -n "$LD"; then
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12736 $as_echo "$LD" >&6; }
12737 else
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12740 fi
12741 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12743 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12744 if ${lt_cv_prog_gnu_ld+:} false; then :
12745   $as_echo_n "(cached) " >&6
12746 else
12747   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12748 case `$LD -v 2>&1 </dev/null` in
12749 *GNU* | *'with BFD'*)
12750   lt_cv_prog_gnu_ld=yes
12751   ;;
12752 *)
12753   lt_cv_prog_gnu_ld=no
12754   ;;
12755 esac
12756 fi
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12758 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12759 with_gnu_ld=$lt_cv_prog_gnu_ld
12760
12761
12762
12763
12764
12765
12766
12767       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12768       # archiving commands below assume that GNU ld is being used.
12769       if test "$with_gnu_ld" = yes; then
12770         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12772
12773         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12774         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12775
12776         # If archive_cmds runs LD, not CC, wlarc should be empty
12777         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12778         #     investigate it a little bit more. (MM)
12779         wlarc='${wl}'
12780
12781         # ancient GNU ld didn't support --whole-archive et. al.
12782         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12783           $GREP 'no-whole-archive' > /dev/null; then
12784           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12785         else
12786           whole_archive_flag_spec_CXX=
12787         fi
12788       else
12789         with_gnu_ld=no
12790         wlarc=
12791
12792         # A generic and very simple default shared library creation
12793         # command for GNU C++ for the case where it uses the native
12794         # linker, instead of GNU ld.  If possible, this setting should
12795         # overridden to take advantage of the native linker features on
12796         # the platform it is being used on.
12797         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12798       fi
12799
12800       # Commands to make compiler produce verbose output that lists
12801       # what "hidden" libraries, object files and flags are used when
12802       # linking a shared library.
12803       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12804
12805     else
12806       GXX=no
12807       with_gnu_ld=no
12808       wlarc=
12809     fi
12810
12811     # PORTME: fill in a description of your system's C++ link characteristics
12812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12813 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12814     ld_shlibs_CXX=yes
12815     case $host_os in
12816       aix3*)
12817         # FIXME: insert proper C++ library support
12818         ld_shlibs_CXX=no
12819         ;;
12820       aix[4-9]*)
12821         if test "$host_cpu" = ia64; then
12822           # On IA64, the linker does run time linking by default, so we don't
12823           # have to do anything special.
12824           aix_use_runtimelinking=no
12825           exp_sym_flag='-Bexport'
12826           no_entry_flag=""
12827         else
12828           aix_use_runtimelinking=no
12829
12830           # Test if we are trying to use run time linking or normal
12831           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12832           # need to do runtime linking.
12833           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12834             for ld_flag in $LDFLAGS; do
12835               case $ld_flag in
12836               *-brtl*)
12837                 aix_use_runtimelinking=yes
12838                 break
12839                 ;;
12840               esac
12841             done
12842             ;;
12843           esac
12844
12845           exp_sym_flag='-bexport'
12846           no_entry_flag='-bnoentry'
12847         fi
12848
12849         # When large executables or shared objects are built, AIX ld can
12850         # have problems creating the table of contents.  If linking a library
12851         # or program results in "error TOC overflow" add -mminimal-toc to
12852         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12853         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12854
12855         archive_cmds_CXX=''
12856         hardcode_direct_CXX=yes
12857         hardcode_direct_absolute_CXX=yes
12858         hardcode_libdir_separator_CXX=':'
12859         link_all_deplibs_CXX=yes
12860         file_list_spec_CXX='${wl}-f,'
12861
12862         if test "$GXX" = yes; then
12863           case $host_os in aix4.[012]|aix4.[012].*)
12864           # We only want to do this on AIX 4.2 and lower, the check
12865           # below for broken collect2 doesn't work under 4.3+
12866           collect2name=`${CC} -print-prog-name=collect2`
12867           if test -f "$collect2name" &&
12868              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12869           then
12870             # We have reworked collect2
12871             :
12872           else
12873             # We have old collect2
12874             hardcode_direct_CXX=unsupported
12875             # It fails to find uninstalled libraries when the uninstalled
12876             # path is not listed in the libpath.  Setting hardcode_minus_L
12877             # to unsupported forces relinking
12878             hardcode_minus_L_CXX=yes
12879             hardcode_libdir_flag_spec_CXX='-L$libdir'
12880             hardcode_libdir_separator_CXX=
12881           fi
12882           esac
12883           shared_flag='-shared'
12884           if test "$aix_use_runtimelinking" = yes; then
12885             shared_flag="$shared_flag "'${wl}-G'
12886           fi
12887         else
12888           # not using gcc
12889           if test "$host_cpu" = ia64; then
12890           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12891           # chokes on -Wl,-G. The following line is correct:
12892           shared_flag='-G'
12893           else
12894             if test "$aix_use_runtimelinking" = yes; then
12895               shared_flag='${wl}-G'
12896             else
12897               shared_flag='${wl}-bM:SRE'
12898             fi
12899           fi
12900         fi
12901
12902         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12903         # It seems that -bexpall does not export symbols beginning with
12904         # underscore (_), so it is better to generate a list of symbols to
12905         # export.
12906         always_export_symbols_CXX=yes
12907         if test "$aix_use_runtimelinking" = yes; then
12908           # Warning - without using the other runtime loading flags (-brtl),
12909           # -berok will link without error, but may produce a broken library.
12910           allow_undefined_flag_CXX='-berok'
12911           # Determine the default libpath from the value encoded in an empty
12912           # executable.
12913           if test "${lt_cv_aix_libpath+set}" = set; then
12914   aix_libpath=$lt_cv_aix_libpath
12915 else
12916   if ${lt_cv_aix_libpath__CXX+:} false; then :
12917   $as_echo_n "(cached) " >&6
12918 else
12919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h.  */
12921
12922 int
12923 main ()
12924 {
12925
12926   ;
12927   return 0;
12928 }
12929 _ACEOF
12930 if ac_fn_cxx_try_link "$LINENO"; then :
12931
12932   lt_aix_libpath_sed='
12933       /Import File Strings/,/^$/ {
12934           /^0/ {
12935               s/^0  *\([^ ]*\) *$/\1/
12936               p
12937           }
12938       }'
12939   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12940   # Check for a 64-bit object if we didn't find anything.
12941   if test -z "$lt_cv_aix_libpath__CXX"; then
12942     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12943   fi
12944 fi
12945 rm -f core conftest.err conftest.$ac_objext \
12946     conftest$ac_exeext conftest.$ac_ext
12947   if test -z "$lt_cv_aix_libpath__CXX"; then
12948     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12949   fi
12950
12951 fi
12952
12953   aix_libpath=$lt_cv_aix_libpath__CXX
12954 fi
12955
12956           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12957
12958           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12959         else
12960           if test "$host_cpu" = ia64; then
12961             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12962             allow_undefined_flag_CXX="-z nodefs"
12963             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12964           else
12965             # Determine the default libpath from the value encoded in an
12966             # empty executable.
12967             if test "${lt_cv_aix_libpath+set}" = set; then
12968   aix_libpath=$lt_cv_aix_libpath
12969 else
12970   if ${lt_cv_aix_libpath__CXX+:} false; then :
12971   $as_echo_n "(cached) " >&6
12972 else
12973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h.  */
12975
12976 int
12977 main ()
12978 {
12979
12980   ;
12981   return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_cxx_try_link "$LINENO"; then :
12985
12986   lt_aix_libpath_sed='
12987       /Import File Strings/,/^$/ {
12988           /^0/ {
12989               s/^0  *\([^ ]*\) *$/\1/
12990               p
12991           }
12992       }'
12993   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12994   # Check for a 64-bit object if we didn't find anything.
12995   if test -z "$lt_cv_aix_libpath__CXX"; then
12996     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12997   fi
12998 fi
12999 rm -f core conftest.err conftest.$ac_objext \
13000     conftest$ac_exeext conftest.$ac_ext
13001   if test -z "$lt_cv_aix_libpath__CXX"; then
13002     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13003   fi
13004
13005 fi
13006
13007   aix_libpath=$lt_cv_aix_libpath__CXX
13008 fi
13009
13010             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13011             # Warning - without using the other run time loading flags,
13012             # -berok will link without error, but may produce a broken library.
13013             no_undefined_flag_CXX=' ${wl}-bernotok'
13014             allow_undefined_flag_CXX=' ${wl}-berok'
13015             if test "$with_gnu_ld" = yes; then
13016               # We only use this code for GNU lds that support --whole-archive.
13017               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13018             else
13019               # Exported symbols can be pulled into shared objects from archives
13020               whole_archive_flag_spec_CXX='$convenience'
13021             fi
13022             archive_cmds_need_lc_CXX=yes
13023             # This is similar to how AIX traditionally builds its shared
13024             # libraries.
13025             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13026           fi
13027         fi
13028         ;;
13029
13030       beos*)
13031         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13032           allow_undefined_flag_CXX=unsupported
13033           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13034           # support --undefined.  This deserves some investigation.  FIXME
13035           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13036         else
13037           ld_shlibs_CXX=no
13038         fi
13039         ;;
13040
13041       chorus*)
13042         case $cc_basename in
13043           *)
13044           # FIXME: insert proper C++ library support
13045           ld_shlibs_CXX=no
13046           ;;
13047         esac
13048         ;;
13049
13050       cygwin* | mingw* | pw32* | cegcc*)
13051         case $GXX,$cc_basename in
13052         ,cl* | no,cl*)
13053           # Native MSVC
13054           # hardcode_libdir_flag_spec is actually meaningless, as there is
13055           # no search path for DLLs.
13056           hardcode_libdir_flag_spec_CXX=' '
13057           allow_undefined_flag_CXX=unsupported
13058           always_export_symbols_CXX=yes
13059           file_list_spec_CXX='@'
13060           # Tell ltmain to make .lib files, not .a files.
13061           libext=lib
13062           # Tell ltmain to make .dll files, not .so files.
13063           shrext_cmds=".dll"
13064           # FIXME: Setting linknames here is a bad hack.
13065           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13066           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13067               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13068             else
13069               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13070             fi~
13071             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13072             linknames='
13073           # The linker will not automatically build a static lib if we build a DLL.
13074           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13075           enable_shared_with_static_runtimes_CXX=yes
13076           # Don't use ranlib
13077           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13078           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13079             lt_tool_outputfile="@TOOL_OUTPUT@"~
13080             case $lt_outputfile in
13081               *.exe|*.EXE) ;;
13082               *)
13083                 lt_outputfile="$lt_outputfile.exe"
13084                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13085                 ;;
13086             esac~
13087             func_to_tool_file "$lt_outputfile"~
13088             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13089               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13090               $RM "$lt_outputfile.manifest";
13091             fi'
13092           ;;
13093         *)
13094           # g++
13095           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13096           # as there is no search path for DLLs.
13097           hardcode_libdir_flag_spec_CXX='-L$libdir'
13098           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13099           allow_undefined_flag_CXX=unsupported
13100           always_export_symbols_CXX=no
13101           enable_shared_with_static_runtimes_CXX=yes
13102
13103           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13104             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13105             # If the export-symbols file already is a .def file (1st line
13106             # is EXPORTS), use it as is; otherwise, prepend...
13107             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13108               cp $export_symbols $output_objdir/$soname.def;
13109             else
13110               echo EXPORTS > $output_objdir/$soname.def;
13111               cat $export_symbols >> $output_objdir/$soname.def;
13112             fi~
13113             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13114           else
13115             ld_shlibs_CXX=no
13116           fi
13117           ;;
13118         esac
13119         ;;
13120       darwin* | rhapsody*)
13121
13122
13123   archive_cmds_need_lc_CXX=no
13124   hardcode_direct_CXX=no
13125   hardcode_automatic_CXX=yes
13126   hardcode_shlibpath_var_CXX=unsupported
13127   if test "$lt_cv_ld_force_load" = "yes"; then
13128     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13129
13130   else
13131     whole_archive_flag_spec_CXX=''
13132   fi
13133   link_all_deplibs_CXX=yes
13134   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13135   case $cc_basename in
13136      ifort*) _lt_dar_can_shared=yes ;;
13137      *) _lt_dar_can_shared=$GCC ;;
13138   esac
13139   if test "$_lt_dar_can_shared" = "yes"; then
13140     output_verbose_link_cmd=func_echo_all
13141     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13142     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13143     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13144     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13145        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13146       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13147       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13148     fi
13149
13150   else
13151   ld_shlibs_CXX=no
13152   fi
13153
13154         ;;
13155
13156       dgux*)
13157         case $cc_basename in
13158           ec++*)
13159             # FIXME: insert proper C++ library support
13160             ld_shlibs_CXX=no
13161             ;;
13162           ghcx*)
13163             # Green Hills C++ Compiler
13164             # FIXME: insert proper C++ library support
13165             ld_shlibs_CXX=no
13166             ;;
13167           *)
13168             # FIXME: insert proper C++ library support
13169             ld_shlibs_CXX=no
13170             ;;
13171         esac
13172         ;;
13173
13174       freebsd2.*)
13175         # C++ shared libraries reported to be fairly broken before
13176         # switch to ELF
13177         ld_shlibs_CXX=no
13178         ;;
13179
13180       freebsd-elf*)
13181         archive_cmds_need_lc_CXX=no
13182         ;;
13183
13184       freebsd* | dragonfly*)
13185         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13186         # conventions
13187         ld_shlibs_CXX=yes
13188         ;;
13189
13190       haiku*)
13191         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192         link_all_deplibs_CXX=yes
13193         ;;
13194
13195       hpux9*)
13196         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13197         hardcode_libdir_separator_CXX=:
13198         export_dynamic_flag_spec_CXX='${wl}-E'
13199         hardcode_direct_CXX=yes
13200         hardcode_minus_L_CXX=yes # Not in the search PATH,
13201                                              # but as the default
13202                                              # location of the library.
13203
13204         case $cc_basename in
13205           CC*)
13206             # FIXME: insert proper C++ library support
13207             ld_shlibs_CXX=no
13208             ;;
13209           aCC*)
13210             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13211             # Commands to make compiler produce verbose output that lists
13212             # what "hidden" libraries, object files and flags are used when
13213             # linking a shared library.
13214             #
13215             # There doesn't appear to be a way to prevent this compiler from
13216             # explicitly linking system object files so we need to strip them
13217             # from the output so that they don't get included in the library
13218             # dependencies.
13219             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13220             ;;
13221           *)
13222             if test "$GXX" = yes; then
13223               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13224             else
13225               # FIXME: insert proper C++ library support
13226               ld_shlibs_CXX=no
13227             fi
13228             ;;
13229         esac
13230         ;;
13231
13232       hpux10*|hpux11*)
13233         if test $with_gnu_ld = no; then
13234           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13235           hardcode_libdir_separator_CXX=:
13236
13237           case $host_cpu in
13238             hppa*64*|ia64*)
13239               ;;
13240             *)
13241               export_dynamic_flag_spec_CXX='${wl}-E'
13242               ;;
13243           esac
13244         fi
13245         case $host_cpu in
13246           hppa*64*|ia64*)
13247             hardcode_direct_CXX=no
13248             hardcode_shlibpath_var_CXX=no
13249             ;;
13250           *)
13251             hardcode_direct_CXX=yes
13252             hardcode_direct_absolute_CXX=yes
13253             hardcode_minus_L_CXX=yes # Not in the search PATH,
13254                                                  # but as the default
13255                                                  # location of the library.
13256             ;;
13257         esac
13258
13259         case $cc_basename in
13260           CC*)
13261             # FIXME: insert proper C++ library support
13262             ld_shlibs_CXX=no
13263             ;;
13264           aCC*)
13265             case $host_cpu in
13266               hppa*64*)
13267                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13268                 ;;
13269               ia64*)
13270                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271                 ;;
13272               *)
13273                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274                 ;;
13275             esac
13276             # Commands to make compiler produce verbose output that lists
13277             # what "hidden" libraries, object files and flags are used when
13278             # linking a shared library.
13279             #
13280             # There doesn't appear to be a way to prevent this compiler from
13281             # explicitly linking system object files so we need to strip them
13282             # from the output so that they don't get included in the library
13283             # dependencies.
13284             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13285             ;;
13286           *)
13287             if test "$GXX" = yes; then
13288               if test $with_gnu_ld = no; then
13289                 case $host_cpu in
13290                   hppa*64*)
13291                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13292                     ;;
13293                   ia64*)
13294                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13295                     ;;
13296                   *)
13297                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13298                     ;;
13299                 esac
13300               fi
13301             else
13302               # FIXME: insert proper C++ library support
13303               ld_shlibs_CXX=no
13304             fi
13305             ;;
13306         esac
13307         ;;
13308
13309       interix[3-9]*)
13310         hardcode_direct_CXX=no
13311         hardcode_shlibpath_var_CXX=no
13312         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13313         export_dynamic_flag_spec_CXX='${wl}-E'
13314         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13315         # Instead, shared libraries are loaded at an image base (0x10000000 by
13316         # default) and relocated if they conflict, which is a slow very memory
13317         # consuming and fragmenting process.  To avoid this, we pick a random,
13318         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13319         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13320         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13321         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13322         ;;
13323       irix5* | irix6*)
13324         case $cc_basename in
13325           CC*)
13326             # SGI C++
13327             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13328
13329             # Archives containing C++ object files must be created using
13330             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13331             # necessary to make sure instantiated templates are included
13332             # in the archive.
13333             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13334             ;;
13335           *)
13336             if test "$GXX" = yes; then
13337               if test "$with_gnu_ld" = no; then
13338                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13339               else
13340                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13341               fi
13342             fi
13343             link_all_deplibs_CXX=yes
13344             ;;
13345         esac
13346         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13347         hardcode_libdir_separator_CXX=:
13348         inherit_rpath_CXX=yes
13349         ;;
13350
13351       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13352         case $cc_basename in
13353           KCC*)
13354             # Kuck and Associates, Inc. (KAI) C++ Compiler
13355
13356             # KCC will only create a shared library if the output file
13357             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13358             # to its proper name (with version) after linking.
13359             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13360             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13361             # Commands to make compiler produce verbose output that lists
13362             # what "hidden" libraries, object files and flags are used when
13363             # linking a shared library.
13364             #
13365             # There doesn't appear to be a way to prevent this compiler from
13366             # explicitly linking system object files so we need to strip them
13367             # from the output so that they don't get included in the library
13368             # dependencies.
13369             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13370
13371             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13372             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13373
13374             # Archives containing C++ object files must be created using
13375             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13376             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13377             ;;
13378           icpc* | ecpc* )
13379             # Intel C++
13380             with_gnu_ld=yes
13381             # version 8.0 and above of icpc choke on multiply defined symbols
13382             # if we add $predep_objects and $postdep_objects, however 7.1 and
13383             # earlier do not add the objects themselves.
13384             case `$CC -V 2>&1` in
13385               *"Version 7."*)
13386                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13388                 ;;
13389               *)  # Version 8.0 or newer
13390                 tmp_idyn=
13391                 case $host_cpu in
13392                   ia64*) tmp_idyn=' -i_dynamic';;
13393                 esac
13394                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13395                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13396                 ;;
13397             esac
13398             archive_cmds_need_lc_CXX=no
13399             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13400             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13401             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13402             ;;
13403           pgCC* | pgcpp*)
13404             # Portland Group C++ compiler
13405             case `$CC -V` in
13406             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13407               prelink_cmds_CXX='tpldir=Template.dir~
13408                 rm -rf $tpldir~
13409                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13410                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13411               old_archive_cmds_CXX='tpldir=Template.dir~
13412                 rm -rf $tpldir~
13413                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13414                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13415                 $RANLIB $oldlib'
13416               archive_cmds_CXX='tpldir=Template.dir~
13417                 rm -rf $tpldir~
13418                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13419                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13420               archive_expsym_cmds_CXX='tpldir=Template.dir~
13421                 rm -rf $tpldir~
13422                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13423                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13424               ;;
13425             *) # Version 6 and above use weak symbols
13426               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13427               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13428               ;;
13429             esac
13430
13431             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13432             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13433             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13434             ;;
13435           cxx*)
13436             # Compaq C++
13437             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13439
13440             runpath_var=LD_RUN_PATH
13441             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13442             hardcode_libdir_separator_CXX=:
13443
13444             # Commands to make compiler produce verbose output that lists
13445             # what "hidden" libraries, object files and flags are used when
13446             # linking a shared library.
13447             #
13448             # There doesn't appear to be a way to prevent this compiler from
13449             # explicitly linking system object files so we need to strip them
13450             # from the output so that they don't get included in the library
13451             # dependencies.
13452             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13453             ;;
13454           xl* | mpixl* | bgxl*)
13455             # IBM XL 8.0 on PPC, with GNU ld
13456             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13457             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13458             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459             if test "x$supports_anon_versioning" = xyes; then
13460               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13461                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13462                 echo "local: *; };" >> $output_objdir/$libname.ver~
13463                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13464             fi
13465             ;;
13466           *)
13467             case `$CC -V 2>&1 | sed 5q` in
13468             *Sun\ C*)
13469               # Sun C++ 5.9
13470               no_undefined_flag_CXX=' -zdefs'
13471               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13473               hardcode_libdir_flag_spec_CXX='-R$libdir'
13474               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13475               compiler_needs_object_CXX=yes
13476
13477               # Not sure whether something based on
13478               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13479               # would be better.
13480               output_verbose_link_cmd='func_echo_all'
13481
13482               # Archives containing C++ object files must be created using
13483               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13484               # necessary to make sure instantiated templates are included
13485               # in the archive.
13486               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13487               ;;
13488             esac
13489             ;;
13490         esac
13491         ;;
13492
13493       lynxos*)
13494         # FIXME: insert proper C++ library support
13495         ld_shlibs_CXX=no
13496         ;;
13497
13498       m88k*)
13499         # FIXME: insert proper C++ library support
13500         ld_shlibs_CXX=no
13501         ;;
13502
13503       mvs*)
13504         case $cc_basename in
13505           cxx*)
13506             # FIXME: insert proper C++ library support
13507             ld_shlibs_CXX=no
13508             ;;
13509           *)
13510             # FIXME: insert proper C++ library support
13511             ld_shlibs_CXX=no
13512             ;;
13513         esac
13514         ;;
13515
13516       netbsd*)
13517         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13518           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13519           wlarc=
13520           hardcode_libdir_flag_spec_CXX='-R$libdir'
13521           hardcode_direct_CXX=yes
13522           hardcode_shlibpath_var_CXX=no
13523         fi
13524         # Workaround some broken pre-1.5 toolchains
13525         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13526         ;;
13527
13528       *nto* | *qnx*)
13529         ld_shlibs_CXX=yes
13530         ;;
13531
13532       openbsd2*)
13533         # C++ shared libraries are fairly broken
13534         ld_shlibs_CXX=no
13535         ;;
13536
13537       openbsd*)
13538         if test -f /usr/libexec/ld.so; then
13539           hardcode_direct_CXX=yes
13540           hardcode_shlibpath_var_CXX=no
13541           hardcode_direct_absolute_CXX=yes
13542           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13543           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13544           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13545             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13546             export_dynamic_flag_spec_CXX='${wl}-E'
13547             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13548           fi
13549           output_verbose_link_cmd=func_echo_all
13550         else
13551           ld_shlibs_CXX=no
13552         fi
13553         ;;
13554
13555       osf3* | osf4* | osf5*)
13556         case $cc_basename in
13557           KCC*)
13558             # Kuck and Associates, Inc. (KAI) C++ Compiler
13559
13560             # KCC will only create a shared library if the output file
13561             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13562             # to its proper name (with version) after linking.
13563             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13564
13565             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13566             hardcode_libdir_separator_CXX=:
13567
13568             # Archives containing C++ object files must be created using
13569             # the KAI C++ compiler.
13570             case $host in
13571               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13572               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13573             esac
13574             ;;
13575           RCC*)
13576             # Rational C++ 2.4.1
13577             # FIXME: insert proper C++ library support
13578             ld_shlibs_CXX=no
13579             ;;
13580           cxx*)
13581             case $host in
13582               osf3*)
13583                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13584                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13585                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13586                 ;;
13587               *)
13588                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13589                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13590                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13591                   echo "-hidden">> $lib.exp~
13592                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13593                   $RM $lib.exp'
13594                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13595                 ;;
13596             esac
13597
13598             hardcode_libdir_separator_CXX=:
13599
13600             # Commands to make compiler produce verbose output that lists
13601             # what "hidden" libraries, object files and flags are used when
13602             # linking a shared library.
13603             #
13604             # There doesn't appear to be a way to prevent this compiler from
13605             # explicitly linking system object files so we need to strip them
13606             # from the output so that they don't get included in the library
13607             # dependencies.
13608             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13609             ;;
13610           *)
13611             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13612               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13613               case $host in
13614                 osf3*)
13615                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13616                   ;;
13617                 *)
13618                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13619                   ;;
13620               esac
13621
13622               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13623               hardcode_libdir_separator_CXX=:
13624
13625               # Commands to make compiler produce verbose output that lists
13626               # what "hidden" libraries, object files and flags are used when
13627               # linking a shared library.
13628               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13629
13630             else
13631               # FIXME: insert proper C++ library support
13632               ld_shlibs_CXX=no
13633             fi
13634             ;;
13635         esac
13636         ;;
13637
13638       psos*)
13639         # FIXME: insert proper C++ library support
13640         ld_shlibs_CXX=no
13641         ;;
13642
13643       sunos4*)
13644         case $cc_basename in
13645           CC*)
13646             # Sun C++ 4.x
13647             # FIXME: insert proper C++ library support
13648             ld_shlibs_CXX=no
13649             ;;
13650           lcc*)
13651             # Lucid
13652             # FIXME: insert proper C++ library support
13653             ld_shlibs_CXX=no
13654             ;;
13655           *)
13656             # FIXME: insert proper C++ library support
13657             ld_shlibs_CXX=no
13658             ;;
13659         esac
13660         ;;
13661
13662       solaris*)
13663         case $cc_basename in
13664           CC* | sunCC*)
13665             # Sun C++ 4.2, 5.x and Centerline C++
13666             archive_cmds_need_lc_CXX=yes
13667             no_undefined_flag_CXX=' -zdefs'
13668             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13669             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13670               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13671
13672             hardcode_libdir_flag_spec_CXX='-R$libdir'
13673             hardcode_shlibpath_var_CXX=no
13674             case $host_os in
13675               solaris2.[0-5] | solaris2.[0-5].*) ;;
13676               *)
13677                 # The compiler driver will combine and reorder linker options,
13678                 # but understands `-z linker_flag'.
13679                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13680                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13681                 ;;
13682             esac
13683             link_all_deplibs_CXX=yes
13684
13685             output_verbose_link_cmd='func_echo_all'
13686
13687             # Archives containing C++ object files must be created using
13688             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13689             # necessary to make sure instantiated templates are included
13690             # in the archive.
13691             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13692             ;;
13693           gcx*)
13694             # Green Hills C++ Compiler
13695             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13696
13697             # The C++ compiler must be used to create the archive.
13698             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13699             ;;
13700           *)
13701             # GNU C++ compiler with Solaris linker
13702             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13703               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13704               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13705                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13706                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13707                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13708
13709                 # Commands to make compiler produce verbose output that lists
13710                 # what "hidden" libraries, object files and flags are used when
13711                 # linking a shared library.
13712                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13713               else
13714                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13715                 # platform.
13716                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13717                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13719
13720                 # Commands to make compiler produce verbose output that lists
13721                 # what "hidden" libraries, object files and flags are used when
13722                 # linking a shared library.
13723                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13724               fi
13725
13726               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13727               case $host_os in
13728                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13729                 *)
13730                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13731                   ;;
13732               esac
13733             fi
13734             ;;
13735         esac
13736         ;;
13737
13738     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13739       no_undefined_flag_CXX='${wl}-z,text'
13740       archive_cmds_need_lc_CXX=no
13741       hardcode_shlibpath_var_CXX=no
13742       runpath_var='LD_RUN_PATH'
13743
13744       case $cc_basename in
13745         CC*)
13746           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13748           ;;
13749         *)
13750           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13752           ;;
13753       esac
13754       ;;
13755
13756       sysv5* | sco3.2v5* | sco5v6*)
13757         # Note: We can NOT use -z defs as we might desire, because we do not
13758         # link with -lc, and that would cause any symbols used from libc to
13759         # always be unresolved, which means just about no library would
13760         # ever link correctly.  If we're not using GNU ld we use -z text
13761         # though, which does catch some bad symbols but isn't as heavy-handed
13762         # as -z defs.
13763         no_undefined_flag_CXX='${wl}-z,text'
13764         allow_undefined_flag_CXX='${wl}-z,nodefs'
13765         archive_cmds_need_lc_CXX=no
13766         hardcode_shlibpath_var_CXX=no
13767         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13768         hardcode_libdir_separator_CXX=':'
13769         link_all_deplibs_CXX=yes
13770         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13771         runpath_var='LD_RUN_PATH'
13772
13773         case $cc_basename in
13774           CC*)
13775             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13778               '"$old_archive_cmds_CXX"
13779             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13780               '"$reload_cmds_CXX"
13781             ;;
13782           *)
13783             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13784             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785             ;;
13786         esac
13787       ;;
13788
13789       tandem*)
13790         case $cc_basename in
13791           NCC*)
13792             # NonStop-UX NCC 3.20
13793             # FIXME: insert proper C++ library support
13794             ld_shlibs_CXX=no
13795             ;;
13796           *)
13797             # FIXME: insert proper C++ library support
13798             ld_shlibs_CXX=no
13799             ;;
13800         esac
13801         ;;
13802
13803       vxworks*)
13804         # FIXME: insert proper C++ library support
13805         ld_shlibs_CXX=no
13806         ;;
13807
13808       *)
13809         # FIXME: insert proper C++ library support
13810         ld_shlibs_CXX=no
13811         ;;
13812     esac
13813
13814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13815 $as_echo "$ld_shlibs_CXX" >&6; }
13816     test "$ld_shlibs_CXX" = no && can_build_shared=no
13817
13818     GCC_CXX="$GXX"
13819     LD_CXX="$LD"
13820
13821     ## CAVEAT EMPTOR:
13822     ## There is no encapsulation within the following macros, do not change
13823     ## the running order or otherwise move them around unless you know exactly
13824     ## what you are doing...
13825     # Dependencies to place before and after the object being linked:
13826 predep_objects_CXX=
13827 postdep_objects_CXX=
13828 predeps_CXX=
13829 postdeps_CXX=
13830 compiler_lib_search_path_CXX=
13831
13832 cat > conftest.$ac_ext <<_LT_EOF
13833 class Foo
13834 {
13835 public:
13836   Foo (void) { a = 0; }
13837 private:
13838   int a;
13839 };
13840 _LT_EOF
13841
13842
13843 _lt_libdeps_save_CFLAGS=$CFLAGS
13844 case "$CC $CFLAGS " in #(
13845 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13846 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13847 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13848 esac
13849
13850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13851   (eval $ac_compile) 2>&5
13852   ac_status=$?
13853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13854   test $ac_status = 0; }; then
13855   # Parse the compiler output and extract the necessary
13856   # objects, libraries and library flags.
13857
13858   # Sentinel used to keep track of whether or not we are before
13859   # the conftest object file.
13860   pre_test_object_deps_done=no
13861
13862   for p in `eval "$output_verbose_link_cmd"`; do
13863     case ${prev}${p} in
13864
13865     -L* | -R* | -l*)
13866        # Some compilers place space between "-{L,R}" and the path.
13867        # Remove the space.
13868        if test $p = "-L" ||
13869           test $p = "-R"; then
13870          prev=$p
13871          continue
13872        fi
13873
13874        # Expand the sysroot to ease extracting the directories later.
13875        if test -z "$prev"; then
13876          case $p in
13877          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13878          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13879          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13880          esac
13881        fi
13882        case $p in
13883        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13884        esac
13885        if test "$pre_test_object_deps_done" = no; then
13886          case ${prev} in
13887          -L | -R)
13888            # Internal compiler library paths should come after those
13889            # provided the user.  The postdeps already come after the
13890            # user supplied libs so there is no need to process them.
13891            if test -z "$compiler_lib_search_path_CXX"; then
13892              compiler_lib_search_path_CXX="${prev}${p}"
13893            else
13894              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13895            fi
13896            ;;
13897          # The "-l" case would never come before the object being
13898          # linked, so don't bother handling this case.
13899          esac
13900        else
13901          if test -z "$postdeps_CXX"; then
13902            postdeps_CXX="${prev}${p}"
13903          else
13904            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13905          fi
13906        fi
13907        prev=
13908        ;;
13909
13910     *.lto.$objext) ;; # Ignore GCC LTO objects
13911     *.$objext)
13912        # This assumes that the test object file only shows up
13913        # once in the compiler output.
13914        if test "$p" = "conftest.$objext"; then
13915          pre_test_object_deps_done=yes
13916          continue
13917        fi
13918
13919        if test "$pre_test_object_deps_done" = no; then
13920          if test -z "$predep_objects_CXX"; then
13921            predep_objects_CXX="$p"
13922          else
13923            predep_objects_CXX="$predep_objects_CXX $p"
13924          fi
13925        else
13926          if test -z "$postdep_objects_CXX"; then
13927            postdep_objects_CXX="$p"
13928          else
13929            postdep_objects_CXX="$postdep_objects_CXX $p"
13930          fi
13931        fi
13932        ;;
13933
13934     *) ;; # Ignore the rest.
13935
13936     esac
13937   done
13938
13939   # Clean up.
13940   rm -f a.out a.exe
13941 else
13942   echo "libtool.m4: error: problem compiling CXX test program"
13943 fi
13944
13945 $RM -f confest.$objext
13946 CFLAGS=$_lt_libdeps_save_CFLAGS
13947
13948 # PORTME: override above test on systems where it is broken
13949 case $host_os in
13950 interix[3-9]*)
13951   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13952   # hack all around it, let's just trust "g++" to DTRT.
13953   predep_objects_CXX=
13954   postdep_objects_CXX=
13955   postdeps_CXX=
13956   ;;
13957
13958 linux*)
13959   case `$CC -V 2>&1 | sed 5q` in
13960   *Sun\ C*)
13961     # Sun C++ 5.9
13962
13963     # The more standards-conforming stlport4 library is
13964     # incompatible with the Cstd library. Avoid specifying
13965     # it if it's in CXXFLAGS. Ignore libCrun as
13966     # -library=stlport4 depends on it.
13967     case " $CXX $CXXFLAGS " in
13968     *" -library=stlport4 "*)
13969       solaris_use_stlport4=yes
13970       ;;
13971     esac
13972
13973     if test "$solaris_use_stlport4" != yes; then
13974       postdeps_CXX='-library=Cstd -library=Crun'
13975     fi
13976     ;;
13977   esac
13978   ;;
13979
13980 solaris*)
13981   case $cc_basename in
13982   CC* | sunCC*)
13983     # The more standards-conforming stlport4 library is
13984     # incompatible with the Cstd library. Avoid specifying
13985     # it if it's in CXXFLAGS. Ignore libCrun as
13986     # -library=stlport4 depends on it.
13987     case " $CXX $CXXFLAGS " in
13988     *" -library=stlport4 "*)
13989       solaris_use_stlport4=yes
13990       ;;
13991     esac
13992
13993     # Adding this requires a known-good setup of shared libraries for
13994     # Sun compiler versions before 5.6, else PIC objects from an old
13995     # archive will be linked into the output, leading to subtle bugs.
13996     if test "$solaris_use_stlport4" != yes; then
13997       postdeps_CXX='-library=Cstd -library=Crun'
13998     fi
13999     ;;
14000   esac
14001   ;;
14002 esac
14003
14004
14005 case " $postdeps_CXX " in
14006 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14007 esac
14008  compiler_lib_search_dirs_CXX=
14009 if test -n "${compiler_lib_search_path_CXX}"; then
14010  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14011 fi
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043     lt_prog_compiler_wl_CXX=
14044 lt_prog_compiler_pic_CXX=
14045 lt_prog_compiler_static_CXX=
14046
14047
14048   # C++ specific cases for pic, static, wl, etc.
14049   if test "$GXX" = yes; then
14050     lt_prog_compiler_wl_CXX='-Wl,'
14051     lt_prog_compiler_static_CXX='-static'
14052
14053     case $host_os in
14054     aix*)
14055       # All AIX code is PIC.
14056       if test "$host_cpu" = ia64; then
14057         # AIX 5 now supports IA64 processor
14058         lt_prog_compiler_static_CXX='-Bstatic'
14059       fi
14060       ;;
14061
14062     amigaos*)
14063       case $host_cpu in
14064       powerpc)
14065             # see comment about AmigaOS4 .so support
14066             lt_prog_compiler_pic_CXX='-fPIC'
14067         ;;
14068       m68k)
14069             # FIXME: we need at least 68020 code to build shared libraries, but
14070             # adding the `-m68020' flag to GCC prevents building anything better,
14071             # like `-m68040'.
14072             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14073         ;;
14074       esac
14075       ;;
14076
14077     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14078       # PIC is the default for these OSes.
14079       ;;
14080     mingw* | cygwin* | os2* | pw32* | cegcc*)
14081       # This hack is so that the source file can tell whether it is being
14082       # built for inclusion in a dll (and should export symbols for example).
14083       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14084       # (--disable-auto-import) libraries
14085       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14086       ;;
14087     darwin* | rhapsody*)
14088       # PIC is the default on this platform
14089       # Common symbols not allowed in MH_DYLIB files
14090       lt_prog_compiler_pic_CXX='-fno-common'
14091       ;;
14092     *djgpp*)
14093       # DJGPP does not support shared libraries at all
14094       lt_prog_compiler_pic_CXX=
14095       ;;
14096     haiku*)
14097       # PIC is the default for Haiku.
14098       # The "-static" flag exists, but is broken.
14099       lt_prog_compiler_static_CXX=
14100       ;;
14101     interix[3-9]*)
14102       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14103       # Instead, we relocate shared libraries at runtime.
14104       ;;
14105     sysv4*MP*)
14106       if test -d /usr/nec; then
14107         lt_prog_compiler_pic_CXX=-Kconform_pic
14108       fi
14109       ;;
14110     hpux*)
14111       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14112       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14113       # sets the default TLS model and affects inlining.
14114       case $host_cpu in
14115       hppa*64*)
14116         ;;
14117       *)
14118         lt_prog_compiler_pic_CXX='-fPIC'
14119         ;;
14120       esac
14121       ;;
14122     *qnx* | *nto*)
14123       # QNX uses GNU C++, but need to define -shared option too, otherwise
14124       # it will coredump.
14125       lt_prog_compiler_pic_CXX='-fPIC -shared'
14126       ;;
14127     *)
14128       lt_prog_compiler_pic_CXX='-fPIC'
14129       ;;
14130     esac
14131   else
14132     case $host_os in
14133       aix[4-9]*)
14134         # All AIX code is PIC.
14135         if test "$host_cpu" = ia64; then
14136           # AIX 5 now supports IA64 processor
14137           lt_prog_compiler_static_CXX='-Bstatic'
14138         else
14139           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14140         fi
14141         ;;
14142       chorus*)
14143         case $cc_basename in
14144         cxch68*)
14145           # Green Hills C++ Compiler
14146           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14147           ;;
14148         esac
14149         ;;
14150       mingw* | cygwin* | os2* | pw32* | cegcc*)
14151         # This hack is so that the source file can tell whether it is being
14152         # built for inclusion in a dll (and should export symbols for example).
14153         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14154         ;;
14155       dgux*)
14156         case $cc_basename in
14157           ec++*)
14158             lt_prog_compiler_pic_CXX='-KPIC'
14159             ;;
14160           ghcx*)
14161             # Green Hills C++ Compiler
14162             lt_prog_compiler_pic_CXX='-pic'
14163             ;;
14164           *)
14165             ;;
14166         esac
14167         ;;
14168       freebsd* | dragonfly*)
14169         # FreeBSD uses GNU C++
14170         ;;
14171       hpux9* | hpux10* | hpux11*)
14172         case $cc_basename in
14173           CC*)
14174             lt_prog_compiler_wl_CXX='-Wl,'
14175             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14176             if test "$host_cpu" != ia64; then
14177               lt_prog_compiler_pic_CXX='+Z'
14178             fi
14179             ;;
14180           aCC*)
14181             lt_prog_compiler_wl_CXX='-Wl,'
14182             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14183             case $host_cpu in
14184             hppa*64*|ia64*)
14185               # +Z the default
14186               ;;
14187             *)
14188               lt_prog_compiler_pic_CXX='+Z'
14189               ;;
14190             esac
14191             ;;
14192           *)
14193             ;;
14194         esac
14195         ;;
14196       interix*)
14197         # This is c89, which is MS Visual C++ (no shared libs)
14198         # Anyone wants to do a port?
14199         ;;
14200       irix5* | irix6* | nonstopux*)
14201         case $cc_basename in
14202           CC*)
14203             lt_prog_compiler_wl_CXX='-Wl,'
14204             lt_prog_compiler_static_CXX='-non_shared'
14205             # CC pic flag -KPIC is the default.
14206             ;;
14207           *)
14208             ;;
14209         esac
14210         ;;
14211       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14212         case $cc_basename in
14213           KCC*)
14214             # KAI C++ Compiler
14215             lt_prog_compiler_wl_CXX='--backend -Wl,'
14216             lt_prog_compiler_pic_CXX='-fPIC'
14217             ;;
14218           ecpc* )
14219             # old Intel C++ for x86_64 which still supported -KPIC.
14220             lt_prog_compiler_wl_CXX='-Wl,'
14221             lt_prog_compiler_pic_CXX='-KPIC'
14222             lt_prog_compiler_static_CXX='-static'
14223             ;;
14224           icpc* )
14225             # Intel C++, used to be incompatible with GCC.
14226             # ICC 10 doesn't accept -KPIC any more.
14227             lt_prog_compiler_wl_CXX='-Wl,'
14228             lt_prog_compiler_pic_CXX='-fPIC'
14229             lt_prog_compiler_static_CXX='-static'
14230             ;;
14231           pgCC* | pgcpp*)
14232             # Portland Group C++ compiler
14233             lt_prog_compiler_wl_CXX='-Wl,'
14234             lt_prog_compiler_pic_CXX='-fpic'
14235             lt_prog_compiler_static_CXX='-Bstatic'
14236             ;;
14237           cxx*)
14238             # Compaq C++
14239             # Make sure the PIC flag is empty.  It appears that all Alpha
14240             # Linux and Compaq Tru64 Unix objects are PIC.
14241             lt_prog_compiler_pic_CXX=
14242             lt_prog_compiler_static_CXX='-non_shared'
14243             ;;
14244           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14245             # IBM XL 8.0, 9.0 on PPC and BlueGene
14246             lt_prog_compiler_wl_CXX='-Wl,'
14247             lt_prog_compiler_pic_CXX='-qpic'
14248             lt_prog_compiler_static_CXX='-qstaticlink'
14249             ;;
14250           *)
14251             case `$CC -V 2>&1 | sed 5q` in
14252             *Sun\ C*)
14253               # Sun C++ 5.9
14254               lt_prog_compiler_pic_CXX='-KPIC'
14255               lt_prog_compiler_static_CXX='-Bstatic'
14256               lt_prog_compiler_wl_CXX='-Qoption ld '
14257               ;;
14258             esac
14259             ;;
14260         esac
14261         ;;
14262       lynxos*)
14263         ;;
14264       m88k*)
14265         ;;
14266       mvs*)
14267         case $cc_basename in
14268           cxx*)
14269             lt_prog_compiler_pic_CXX='-W c,exportall'
14270             ;;
14271           *)
14272             ;;
14273         esac
14274         ;;
14275       netbsd* | netbsdelf*-gnu)
14276         ;;
14277       *qnx* | *nto*)
14278         # QNX uses GNU C++, but need to define -shared option too, otherwise
14279         # it will coredump.
14280         lt_prog_compiler_pic_CXX='-fPIC -shared'
14281         ;;
14282       osf3* | osf4* | osf5*)
14283         case $cc_basename in
14284           KCC*)
14285             lt_prog_compiler_wl_CXX='--backend -Wl,'
14286             ;;
14287           RCC*)
14288             # Rational C++ 2.4.1
14289             lt_prog_compiler_pic_CXX='-pic'
14290             ;;
14291           cxx*)
14292             # Digital/Compaq C++
14293             lt_prog_compiler_wl_CXX='-Wl,'
14294             # Make sure the PIC flag is empty.  It appears that all Alpha
14295             # Linux and Compaq Tru64 Unix objects are PIC.
14296             lt_prog_compiler_pic_CXX=
14297             lt_prog_compiler_static_CXX='-non_shared'
14298             ;;
14299           *)
14300             ;;
14301         esac
14302         ;;
14303       psos*)
14304         ;;
14305       solaris*)
14306         case $cc_basename in
14307           CC* | sunCC*)
14308             # Sun C++ 4.2, 5.x and Centerline C++
14309             lt_prog_compiler_pic_CXX='-KPIC'
14310             lt_prog_compiler_static_CXX='-Bstatic'
14311             lt_prog_compiler_wl_CXX='-Qoption ld '
14312             ;;
14313           gcx*)
14314             # Green Hills C++ Compiler
14315             lt_prog_compiler_pic_CXX='-PIC'
14316             ;;
14317           *)
14318             ;;
14319         esac
14320         ;;
14321       sunos4*)
14322         case $cc_basename in
14323           CC*)
14324             # Sun C++ 4.x
14325             lt_prog_compiler_pic_CXX='-pic'
14326             lt_prog_compiler_static_CXX='-Bstatic'
14327             ;;
14328           lcc*)
14329             # Lucid
14330             lt_prog_compiler_pic_CXX='-pic'
14331             ;;
14332           *)
14333             ;;
14334         esac
14335         ;;
14336       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14337         case $cc_basename in
14338           CC*)
14339             lt_prog_compiler_wl_CXX='-Wl,'
14340             lt_prog_compiler_pic_CXX='-KPIC'
14341             lt_prog_compiler_static_CXX='-Bstatic'
14342             ;;
14343         esac
14344         ;;
14345       tandem*)
14346         case $cc_basename in
14347           NCC*)
14348             # NonStop-UX NCC 3.20
14349             lt_prog_compiler_pic_CXX='-KPIC'
14350             ;;
14351           *)
14352             ;;
14353         esac
14354         ;;
14355       vxworks*)
14356         ;;
14357       *)
14358         lt_prog_compiler_can_build_shared_CXX=no
14359         ;;
14360     esac
14361   fi
14362
14363 case $host_os in
14364   # For platforms which do not support PIC, -DPIC is meaningless:
14365   *djgpp*)
14366     lt_prog_compiler_pic_CXX=
14367     ;;
14368   *)
14369     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14370     ;;
14371 esac
14372
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14374 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14375 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14376   $as_echo_n "(cached) " >&6
14377 else
14378   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14381 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14382 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14383
14384 #
14385 # Check to make sure the PIC flag actually works.
14386 #
14387 if test -n "$lt_prog_compiler_pic_CXX"; then
14388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14389 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14390 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14391   $as_echo_n "(cached) " >&6
14392 else
14393   lt_cv_prog_compiler_pic_works_CXX=no
14394    ac_outfile=conftest.$ac_objext
14395    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14396    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14397    # Insert the option either (1) after the last *FLAGS variable, or
14398    # (2) before a word containing "conftest.", or (3) at the end.
14399    # Note that $ac_compile itself does not contain backslashes and begins
14400    # with a dollar sign (not a hyphen), so the echo should work correctly.
14401    # The option is referenced via a variable to avoid confusing sed.
14402    lt_compile=`echo "$ac_compile" | $SED \
14403    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14404    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14405    -e 's:$: $lt_compiler_flag:'`
14406    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14407    (eval "$lt_compile" 2>conftest.err)
14408    ac_status=$?
14409    cat conftest.err >&5
14410    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411    if (exit $ac_status) && test -s "$ac_outfile"; then
14412      # The compiler can only warn and ignore the option if not recognized
14413      # So say no if there are warnings other than the usual output.
14414      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14415      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14416      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14417        lt_cv_prog_compiler_pic_works_CXX=yes
14418      fi
14419    fi
14420    $RM conftest*
14421
14422 fi
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14424 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14425
14426 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14427     case $lt_prog_compiler_pic_CXX in
14428      "" | " "*) ;;
14429      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14430      esac
14431 else
14432     lt_prog_compiler_pic_CXX=
14433      lt_prog_compiler_can_build_shared_CXX=no
14434 fi
14435
14436 fi
14437
14438
14439
14440
14441
14442 #
14443 # Check to make sure the static flag actually works.
14444 #
14445 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14447 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14448 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14449   $as_echo_n "(cached) " >&6
14450 else
14451   lt_cv_prog_compiler_static_works_CXX=no
14452    save_LDFLAGS="$LDFLAGS"
14453    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14454    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14455    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14456      # The linker can only warn and ignore the option if not recognized
14457      # So say no if there are warnings
14458      if test -s conftest.err; then
14459        # Append any errors to the config.log.
14460        cat conftest.err 1>&5
14461        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14462        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14463        if diff conftest.exp conftest.er2 >/dev/null; then
14464          lt_cv_prog_compiler_static_works_CXX=yes
14465        fi
14466      else
14467        lt_cv_prog_compiler_static_works_CXX=yes
14468      fi
14469    fi
14470    $RM -r conftest*
14471    LDFLAGS="$save_LDFLAGS"
14472
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14475 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14476
14477 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14478     :
14479 else
14480     lt_prog_compiler_static_CXX=
14481 fi
14482
14483
14484
14485
14486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14487 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14488 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14489   $as_echo_n "(cached) " >&6
14490 else
14491   lt_cv_prog_compiler_c_o_CXX=no
14492    $RM -r conftest 2>/dev/null
14493    mkdir conftest
14494    cd conftest
14495    mkdir out
14496    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14497
14498    lt_compiler_flag="-o out/conftest2.$ac_objext"
14499    # Insert the option either (1) after the last *FLAGS variable, or
14500    # (2) before a word containing "conftest.", or (3) at the end.
14501    # Note that $ac_compile itself does not contain backslashes and begins
14502    # with a dollar sign (not a hyphen), so the echo should work correctly.
14503    lt_compile=`echo "$ac_compile" | $SED \
14504    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506    -e 's:$: $lt_compiler_flag:'`
14507    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14508    (eval "$lt_compile" 2>out/conftest.err)
14509    ac_status=$?
14510    cat out/conftest.err >&5
14511    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14513    then
14514      # The compiler can only warn and ignore the option if not recognized
14515      # So say no if there are warnings
14516      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14517      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14518      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14519        lt_cv_prog_compiler_c_o_CXX=yes
14520      fi
14521    fi
14522    chmod u+w . 2>&5
14523    $RM conftest*
14524    # SGI C++ compiler will create directory out/ii_files/ for
14525    # template instantiation
14526    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14527    $RM out/* && rmdir out
14528    cd ..
14529    $RM -r conftest
14530    $RM conftest*
14531
14532 fi
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14534 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14535
14536
14537
14538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14540 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14541   $as_echo_n "(cached) " >&6
14542 else
14543   lt_cv_prog_compiler_c_o_CXX=no
14544    $RM -r conftest 2>/dev/null
14545    mkdir conftest
14546    cd conftest
14547    mkdir out
14548    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14549
14550    lt_compiler_flag="-o out/conftest2.$ac_objext"
14551    # Insert the option either (1) after the last *FLAGS variable, or
14552    # (2) before a word containing "conftest.", or (3) at the end.
14553    # Note that $ac_compile itself does not contain backslashes and begins
14554    # with a dollar sign (not a hyphen), so the echo should work correctly.
14555    lt_compile=`echo "$ac_compile" | $SED \
14556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14558    -e 's:$: $lt_compiler_flag:'`
14559    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14560    (eval "$lt_compile" 2>out/conftest.err)
14561    ac_status=$?
14562    cat out/conftest.err >&5
14563    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14565    then
14566      # The compiler can only warn and ignore the option if not recognized
14567      # So say no if there are warnings
14568      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14569      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14570      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14571        lt_cv_prog_compiler_c_o_CXX=yes
14572      fi
14573    fi
14574    chmod u+w . 2>&5
14575    $RM conftest*
14576    # SGI C++ compiler will create directory out/ii_files/ for
14577    # template instantiation
14578    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14579    $RM out/* && rmdir out
14580    cd ..
14581    $RM -r conftest
14582    $RM conftest*
14583
14584 fi
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14586 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14587
14588
14589
14590
14591 hard_links="nottested"
14592 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14593   # do not overwrite the value of need_locks provided by the user
14594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14595 $as_echo_n "checking if we can lock with hard links... " >&6; }
14596   hard_links=yes
14597   $RM conftest*
14598   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14599   touch conftest.a
14600   ln conftest.a conftest.b 2>&5 || hard_links=no
14601   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14603 $as_echo "$hard_links" >&6; }
14604   if test "$hard_links" = no; then
14605     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14606 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14607     need_locks=warn
14608   fi
14609 else
14610   need_locks=no
14611 fi
14612
14613
14614
14615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14616 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14617
14618   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14619   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14620   case $host_os in
14621   aix[4-9]*)
14622     # If we're using GNU nm, then we don't want the "-C" option.
14623     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14624     # Also, AIX nm treats weak defined symbols like other global defined
14625     # symbols, whereas GNU nm marks them as "W".
14626     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14627       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14628     else
14629       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14630     fi
14631     ;;
14632   pw32*)
14633     export_symbols_cmds_CXX="$ltdll_cmds"
14634     ;;
14635   cygwin* | mingw* | cegcc*)
14636     case $cc_basename in
14637     cl*)
14638       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14639       ;;
14640     *)
14641       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14642       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14643       ;;
14644     esac
14645     ;;
14646   linux* | k*bsd*-gnu | gnu*)
14647     link_all_deplibs_CXX=no
14648     ;;
14649   *)
14650     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14651     ;;
14652   esac
14653
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14655 $as_echo "$ld_shlibs_CXX" >&6; }
14656 test "$ld_shlibs_CXX" = no && can_build_shared=no
14657
14658 with_gnu_ld_CXX=$with_gnu_ld
14659
14660
14661
14662
14663
14664
14665 #
14666 # Do we need to explicitly link libc?
14667 #
14668 case "x$archive_cmds_need_lc_CXX" in
14669 x|xyes)
14670   # Assume -lc should be added
14671   archive_cmds_need_lc_CXX=yes
14672
14673   if test "$enable_shared" = yes && test "$GCC" = yes; then
14674     case $archive_cmds_CXX in
14675     *'~'*)
14676       # FIXME: we may have to deal with multi-command sequences.
14677       ;;
14678     '$CC '*)
14679       # Test whether the compiler implicitly links with -lc since on some
14680       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14681       # to ld, don't add -lc before -lgcc.
14682       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14683 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14684 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14685   $as_echo_n "(cached) " >&6
14686 else
14687   $RM conftest*
14688         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14689
14690         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14691   (eval $ac_compile) 2>&5
14692   ac_status=$?
14693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14694   test $ac_status = 0; } 2>conftest.err; then
14695           soname=conftest
14696           lib=conftest
14697           libobjs=conftest.$ac_objext
14698           deplibs=
14699           wl=$lt_prog_compiler_wl_CXX
14700           pic_flag=$lt_prog_compiler_pic_CXX
14701           compiler_flags=-v
14702           linker_flags=-v
14703           verstring=
14704           output_objdir=.
14705           libname=conftest
14706           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14707           allow_undefined_flag_CXX=
14708           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14709   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14710   ac_status=$?
14711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712   test $ac_status = 0; }
14713           then
14714             lt_cv_archive_cmds_need_lc_CXX=no
14715           else
14716             lt_cv_archive_cmds_need_lc_CXX=yes
14717           fi
14718           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14719         else
14720           cat conftest.err 1>&5
14721         fi
14722         $RM conftest*
14723
14724 fi
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14726 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14727       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14728       ;;
14729     esac
14730   fi
14731   ;;
14732 esac
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14796 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14797
14798 library_names_spec=
14799 libname_spec='lib$name'
14800 soname_spec=
14801 shrext_cmds=".so"
14802 postinstall_cmds=
14803 postuninstall_cmds=
14804 finish_cmds=
14805 finish_eval=
14806 shlibpath_var=
14807 shlibpath_overrides_runpath=unknown
14808 version_type=none
14809 dynamic_linker="$host_os ld.so"
14810 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14811 need_lib_prefix=unknown
14812 hardcode_into_libs=no
14813
14814 # when you set need_version to no, make sure it does not cause -set_version
14815 # flags to be left without arguments
14816 need_version=unknown
14817
14818 case $host_os in
14819 aix3*)
14820   version_type=linux # correct to gnu/linux during the next big refactor
14821   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14822   shlibpath_var=LIBPATH
14823
14824   # AIX 3 has no versioning support, so we append a major version to the name.
14825   soname_spec='${libname}${release}${shared_ext}$major'
14826   ;;
14827
14828 aix[4-9]*)
14829   version_type=linux # correct to gnu/linux during the next big refactor
14830   need_lib_prefix=no
14831   need_version=no
14832   hardcode_into_libs=yes
14833   if test "$host_cpu" = ia64; then
14834     # AIX 5 supports IA64
14835     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14836     shlibpath_var=LD_LIBRARY_PATH
14837   else
14838     # With GCC up to 2.95.x, collect2 would create an import file
14839     # for dependence libraries.  The import file would start with
14840     # the line `#! .'.  This would cause the generated library to
14841     # depend on `.', always an invalid library.  This was fixed in
14842     # development snapshots of GCC prior to 3.0.
14843     case $host_os in
14844       aix4 | aix4.[01] | aix4.[01].*)
14845       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14846            echo ' yes '
14847            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14848         :
14849       else
14850         can_build_shared=no
14851       fi
14852       ;;
14853     esac
14854     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14855     # soname into executable. Probably we can add versioning support to
14856     # collect2, so additional links can be useful in future.
14857     if test "$aix_use_runtimelinking" = yes; then
14858       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14859       # instead of lib<name>.a to let people know that these are not
14860       # typical AIX shared libraries.
14861       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862     else
14863       # We preserve .a as extension for shared libraries through AIX4.2
14864       # and later when we are not doing run time linking.
14865       library_names_spec='${libname}${release}.a $libname.a'
14866       soname_spec='${libname}${release}${shared_ext}$major'
14867     fi
14868     shlibpath_var=LIBPATH
14869   fi
14870   ;;
14871
14872 amigaos*)
14873   case $host_cpu in
14874   powerpc)
14875     # Since July 2007 AmigaOS4 officially supports .so libraries.
14876     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878     ;;
14879   m68k)
14880     library_names_spec='$libname.ixlibrary $libname.a'
14881     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14882     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14883     ;;
14884   esac
14885   ;;
14886
14887 beos*)
14888   library_names_spec='${libname}${shared_ext}'
14889   dynamic_linker="$host_os ld.so"
14890   shlibpath_var=LIBRARY_PATH
14891   ;;
14892
14893 bsdi[45]*)
14894   version_type=linux # correct to gnu/linux during the next big refactor
14895   need_version=no
14896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897   soname_spec='${libname}${release}${shared_ext}$major'
14898   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14899   shlibpath_var=LD_LIBRARY_PATH
14900   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14901   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14902   # the default ld.so.conf also contains /usr/contrib/lib and
14903   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14904   # libtool to hard-code these into programs
14905   ;;
14906
14907 cygwin* | mingw* | pw32* | cegcc*)
14908   version_type=windows
14909   shrext_cmds=".dll"
14910   need_version=no
14911   need_lib_prefix=no
14912
14913   case $GCC,$cc_basename in
14914   yes,*)
14915     # gcc
14916     library_names_spec='$libname.dll.a'
14917     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14918     postinstall_cmds='base_file=`basename \${file}`~
14919       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14920       dldir=$destdir/`dirname \$dlpath`~
14921       test -d \$dldir || mkdir -p \$dldir~
14922       $install_prog $dir/$dlname \$dldir/$dlname~
14923       chmod a+x \$dldir/$dlname~
14924       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14925         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14926       fi'
14927     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14928       dlpath=$dir/\$dldll~
14929        $RM \$dlpath'
14930     shlibpath_overrides_runpath=yes
14931
14932     case $host_os in
14933     cygwin*)
14934       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14935       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14936
14937       ;;
14938     mingw* | cegcc*)
14939       # MinGW DLLs use traditional 'lib' prefix
14940       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14941       ;;
14942     pw32*)
14943       # pw32 DLLs use 'pw' prefix rather than 'lib'
14944       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14945       ;;
14946     esac
14947     dynamic_linker='Win32 ld.exe'
14948     ;;
14949
14950   *,cl*)
14951     # Native MSVC
14952     libname_spec='$name'
14953     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14954     library_names_spec='${libname}.dll.lib'
14955
14956     case $build_os in
14957     mingw*)
14958       sys_lib_search_path_spec=
14959       lt_save_ifs=$IFS
14960       IFS=';'
14961       for lt_path in $LIB
14962       do
14963         IFS=$lt_save_ifs
14964         # Let DOS variable expansion print the short 8.3 style file name.
14965         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14966         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14967       done
14968       IFS=$lt_save_ifs
14969       # Convert to MSYS style.
14970       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14971       ;;
14972     cygwin*)
14973       # Convert to unix form, then to dos form, then back to unix form
14974       # but this time dos style (no spaces!) so that the unix form looks
14975       # like /cygdrive/c/PROGRA~1:/cygdr...
14976       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14977       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14978       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14979       ;;
14980     *)
14981       sys_lib_search_path_spec="$LIB"
14982       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14983         # It is most probably a Windows format PATH.
14984         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14985       else
14986         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14987       fi
14988       # FIXME: find the short name or the path components, as spaces are
14989       # common. (e.g. "Program Files" -> "PROGRA~1")
14990       ;;
14991     esac
14992
14993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14994     postinstall_cmds='base_file=`basename \${file}`~
14995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14996       dldir=$destdir/`dirname \$dlpath`~
14997       test -d \$dldir || mkdir -p \$dldir~
14998       $install_prog $dir/$dlname \$dldir/$dlname'
14999     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15000       dlpath=$dir/\$dldll~
15001        $RM \$dlpath'
15002     shlibpath_overrides_runpath=yes
15003     dynamic_linker='Win32 link.exe'
15004     ;;
15005
15006   *)
15007     # Assume MSVC wrapper
15008     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15009     dynamic_linker='Win32 ld.exe'
15010     ;;
15011   esac
15012   # FIXME: first we should search . and the directory the executable is in
15013   shlibpath_var=PATH
15014   ;;
15015
15016 darwin* | rhapsody*)
15017   dynamic_linker="$host_os dyld"
15018   version_type=darwin
15019   need_lib_prefix=no
15020   need_version=no
15021   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15022   soname_spec='${libname}${release}${major}$shared_ext'
15023   shlibpath_overrides_runpath=yes
15024   shlibpath_var=DYLD_LIBRARY_PATH
15025   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15026
15027   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15028   ;;
15029
15030 dgux*)
15031   version_type=linux # correct to gnu/linux during the next big refactor
15032   need_lib_prefix=no
15033   need_version=no
15034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15035   soname_spec='${libname}${release}${shared_ext}$major'
15036   shlibpath_var=LD_LIBRARY_PATH
15037   ;;
15038
15039 freebsd* | dragonfly*)
15040   # DragonFly does not have aout.  When/if they implement a new
15041   # versioning mechanism, adjust this.
15042   if test -x /usr/bin/objformat; then
15043     objformat=`/usr/bin/objformat`
15044   else
15045     case $host_os in
15046     freebsd[23].*) objformat=aout ;;
15047     *) objformat=elf ;;
15048     esac
15049   fi
15050   version_type=freebsd-$objformat
15051   case $version_type in
15052     freebsd-elf*)
15053       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15054       need_version=no
15055       need_lib_prefix=no
15056       ;;
15057     freebsd-*)
15058       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15059       need_version=yes
15060       ;;
15061   esac
15062   shlibpath_var=LD_LIBRARY_PATH
15063   case $host_os in
15064   freebsd2.*)
15065     shlibpath_overrides_runpath=yes
15066     ;;
15067   freebsd3.[01]* | freebsdelf3.[01]*)
15068     shlibpath_overrides_runpath=yes
15069     hardcode_into_libs=yes
15070     ;;
15071   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15072   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15073     shlibpath_overrides_runpath=no
15074     hardcode_into_libs=yes
15075     ;;
15076   *) # from 4.6 on, and DragonFly
15077     shlibpath_overrides_runpath=yes
15078     hardcode_into_libs=yes
15079     ;;
15080   esac
15081   ;;
15082
15083 haiku*)
15084   version_type=linux # correct to gnu/linux during the next big refactor
15085   need_lib_prefix=no
15086   need_version=no
15087   dynamic_linker="$host_os runtime_loader"
15088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15089   soname_spec='${libname}${release}${shared_ext}$major'
15090   shlibpath_var=LIBRARY_PATH
15091   shlibpath_overrides_runpath=yes
15092   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15093   hardcode_into_libs=yes
15094   ;;
15095
15096 hpux9* | hpux10* | hpux11*)
15097   # Give a soname corresponding to the major version so that dld.sl refuses to
15098   # link against other versions.
15099   version_type=sunos
15100   need_lib_prefix=no
15101   need_version=no
15102   case $host_cpu in
15103   ia64*)
15104     shrext_cmds='.so'
15105     hardcode_into_libs=yes
15106     dynamic_linker="$host_os dld.so"
15107     shlibpath_var=LD_LIBRARY_PATH
15108     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110     soname_spec='${libname}${release}${shared_ext}$major'
15111     if test "X$HPUX_IA64_MODE" = X32; then
15112       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15113     else
15114       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15115     fi
15116     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15117     ;;
15118   hppa*64*)
15119     shrext_cmds='.sl'
15120     hardcode_into_libs=yes
15121     dynamic_linker="$host_os dld.sl"
15122     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15123     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125     soname_spec='${libname}${release}${shared_ext}$major'
15126     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15127     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15128     ;;
15129   *)
15130     shrext_cmds='.sl'
15131     dynamic_linker="$host_os dld.sl"
15132     shlibpath_var=SHLIB_PATH
15133     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135     soname_spec='${libname}${release}${shared_ext}$major'
15136     ;;
15137   esac
15138   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15139   postinstall_cmds='chmod 555 $lib'
15140   # or fails outright, so override atomically:
15141   install_override_mode=555
15142   ;;
15143
15144 interix[3-9]*)
15145   version_type=linux # correct to gnu/linux during the next big refactor
15146   need_lib_prefix=no
15147   need_version=no
15148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15149   soname_spec='${libname}${release}${shared_ext}$major'
15150   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15151   shlibpath_var=LD_LIBRARY_PATH
15152   shlibpath_overrides_runpath=no
15153   hardcode_into_libs=yes
15154   ;;
15155
15156 irix5* | irix6* | nonstopux*)
15157   case $host_os in
15158     nonstopux*) version_type=nonstopux ;;
15159     *)
15160         if test "$lt_cv_prog_gnu_ld" = yes; then
15161                 version_type=linux # correct to gnu/linux during the next big refactor
15162         else
15163                 version_type=irix
15164         fi ;;
15165   esac
15166   need_lib_prefix=no
15167   need_version=no
15168   soname_spec='${libname}${release}${shared_ext}$major'
15169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15170   case $host_os in
15171   irix5* | nonstopux*)
15172     libsuff= shlibsuff=
15173     ;;
15174   *)
15175     case $LD in # libtool.m4 will add one of these switches to LD
15176     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15177       libsuff= shlibsuff= libmagic=32-bit;;
15178     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15179       libsuff=32 shlibsuff=N32 libmagic=N32;;
15180     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15181       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15182     *) libsuff= shlibsuff= libmagic=never-match;;
15183     esac
15184     ;;
15185   esac
15186   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15187   shlibpath_overrides_runpath=no
15188   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15189   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15190   hardcode_into_libs=yes
15191   ;;
15192
15193 # No shared lib support for Linux oldld, aout, or coff.
15194 linux*oldld* | linux*aout* | linux*coff*)
15195   dynamic_linker=no
15196   ;;
15197
15198 # This must be glibc/ELF.
15199 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15200   version_type=linux # correct to gnu/linux during the next big refactor
15201   need_lib_prefix=no
15202   need_version=no
15203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204   soname_spec='${libname}${release}${shared_ext}$major'
15205   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15206   shlibpath_var=LD_LIBRARY_PATH
15207   shlibpath_overrides_runpath=no
15208
15209   # Some binutils ld are patched to set DT_RUNPATH
15210   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15211   $as_echo_n "(cached) " >&6
15212 else
15213   lt_cv_shlibpath_overrides_runpath=no
15214     save_LDFLAGS=$LDFLAGS
15215     save_libdir=$libdir
15216     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15217          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15218     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h.  */
15220
15221 int
15222 main ()
15223 {
15224
15225   ;
15226   return 0;
15227 }
15228 _ACEOF
15229 if ac_fn_cxx_try_link "$LINENO"; then :
15230   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15231   lt_cv_shlibpath_overrides_runpath=yes
15232 fi
15233 fi
15234 rm -f core conftest.err conftest.$ac_objext \
15235     conftest$ac_exeext conftest.$ac_ext
15236     LDFLAGS=$save_LDFLAGS
15237     libdir=$save_libdir
15238
15239 fi
15240
15241   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15242
15243   # This implies no fast_install, which is unacceptable.
15244   # Some rework will be needed to allow for fast_install
15245   # before this can be enabled.
15246   hardcode_into_libs=yes
15247
15248   # Append ld.so.conf contents to the search path
15249   if test -f /etc/ld.so.conf; then
15250     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15251     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15252   fi
15253
15254   # We used to test for /lib/ld.so.1 and disable shared libraries on
15255   # powerpc, because MkLinux only supported shared libraries with the
15256   # GNU dynamic linker.  Since this was broken with cross compilers,
15257   # most powerpc-linux boxes support dynamic linking these days and
15258   # people can always --disable-shared, the test was removed, and we
15259   # assume the GNU/Linux dynamic linker is in use.
15260   dynamic_linker='GNU/Linux ld.so'
15261   ;;
15262
15263 netbsdelf*-gnu)
15264   version_type=linux
15265   need_lib_prefix=no
15266   need_version=no
15267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15268   soname_spec='${libname}${release}${shared_ext}$major'
15269   shlibpath_var=LD_LIBRARY_PATH
15270   shlibpath_overrides_runpath=no
15271   hardcode_into_libs=yes
15272   dynamic_linker='NetBSD ld.elf_so'
15273   ;;
15274
15275 netbsd*)
15276   version_type=sunos
15277   need_lib_prefix=no
15278   need_version=no
15279   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15281     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15282     dynamic_linker='NetBSD (a.out) ld.so'
15283   else
15284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15285     soname_spec='${libname}${release}${shared_ext}$major'
15286     dynamic_linker='NetBSD ld.elf_so'
15287   fi
15288   shlibpath_var=LD_LIBRARY_PATH
15289   shlibpath_overrides_runpath=yes
15290   hardcode_into_libs=yes
15291   ;;
15292
15293 newsos6)
15294   version_type=linux # correct to gnu/linux during the next big refactor
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296   shlibpath_var=LD_LIBRARY_PATH
15297   shlibpath_overrides_runpath=yes
15298   ;;
15299
15300 *nto* | *qnx*)
15301   version_type=qnx
15302   need_lib_prefix=no
15303   need_version=no
15304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305   soname_spec='${libname}${release}${shared_ext}$major'
15306   shlibpath_var=LD_LIBRARY_PATH
15307   shlibpath_overrides_runpath=no
15308   hardcode_into_libs=yes
15309   dynamic_linker='ldqnx.so'
15310   ;;
15311
15312 openbsd*)
15313   version_type=sunos
15314   sys_lib_dlsearch_path_spec="/usr/lib"
15315   need_lib_prefix=no
15316   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15317   case $host_os in
15318     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15319     *)                          need_version=no  ;;
15320   esac
15321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15322   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15323   shlibpath_var=LD_LIBRARY_PATH
15324   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15325     case $host_os in
15326       openbsd2.[89] | openbsd2.[89].*)
15327         shlibpath_overrides_runpath=no
15328         ;;
15329       *)
15330         shlibpath_overrides_runpath=yes
15331         ;;
15332       esac
15333   else
15334     shlibpath_overrides_runpath=yes
15335   fi
15336   ;;
15337
15338 os2*)
15339   libname_spec='$name'
15340   shrext_cmds=".dll"
15341   need_lib_prefix=no
15342   library_names_spec='$libname${shared_ext} $libname.a'
15343   dynamic_linker='OS/2 ld.exe'
15344   shlibpath_var=LIBPATH
15345   ;;
15346
15347 osf3* | osf4* | osf5*)
15348   version_type=osf
15349   need_lib_prefix=no
15350   need_version=no
15351   soname_spec='${libname}${release}${shared_ext}$major'
15352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353   shlibpath_var=LD_LIBRARY_PATH
15354   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15355   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15356   ;;
15357
15358 rdos*)
15359   dynamic_linker=no
15360   ;;
15361
15362 solaris*)
15363   version_type=linux # correct to gnu/linux during the next big refactor
15364   need_lib_prefix=no
15365   need_version=no
15366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367   soname_spec='${libname}${release}${shared_ext}$major'
15368   shlibpath_var=LD_LIBRARY_PATH
15369   shlibpath_overrides_runpath=yes
15370   hardcode_into_libs=yes
15371   # ldd complains unless libraries are executable
15372   postinstall_cmds='chmod +x $lib'
15373   ;;
15374
15375 sunos4*)
15376   version_type=sunos
15377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15378   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15379   shlibpath_var=LD_LIBRARY_PATH
15380   shlibpath_overrides_runpath=yes
15381   if test "$with_gnu_ld" = yes; then
15382     need_lib_prefix=no
15383   fi
15384   need_version=yes
15385   ;;
15386
15387 sysv4 | sysv4.3*)
15388   version_type=linux # correct to gnu/linux during the next big refactor
15389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390   soname_spec='${libname}${release}${shared_ext}$major'
15391   shlibpath_var=LD_LIBRARY_PATH
15392   case $host_vendor in
15393     sni)
15394       shlibpath_overrides_runpath=no
15395       need_lib_prefix=no
15396       runpath_var=LD_RUN_PATH
15397       ;;
15398     siemens)
15399       need_lib_prefix=no
15400       ;;
15401     motorola)
15402       need_lib_prefix=no
15403       need_version=no
15404       shlibpath_overrides_runpath=no
15405       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15406       ;;
15407   esac
15408   ;;
15409
15410 sysv4*MP*)
15411   if test -d /usr/nec ;then
15412     version_type=linux # correct to gnu/linux during the next big refactor
15413     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15414     soname_spec='$libname${shared_ext}.$major'
15415     shlibpath_var=LD_LIBRARY_PATH
15416   fi
15417   ;;
15418
15419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15420   version_type=freebsd-elf
15421   need_lib_prefix=no
15422   need_version=no
15423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15424   soname_spec='${libname}${release}${shared_ext}$major'
15425   shlibpath_var=LD_LIBRARY_PATH
15426   shlibpath_overrides_runpath=yes
15427   hardcode_into_libs=yes
15428   if test "$with_gnu_ld" = yes; then
15429     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15430   else
15431     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15432     case $host_os in
15433       sco3.2v5*)
15434         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15435         ;;
15436     esac
15437   fi
15438   sys_lib_dlsearch_path_spec='/usr/lib'
15439   ;;
15440
15441 tpf*)
15442   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15443   version_type=linux # correct to gnu/linux during the next big refactor
15444   need_lib_prefix=no
15445   need_version=no
15446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15447   shlibpath_var=LD_LIBRARY_PATH
15448   shlibpath_overrides_runpath=no
15449   hardcode_into_libs=yes
15450   ;;
15451
15452 uts4*)
15453   version_type=linux # correct to gnu/linux during the next big refactor
15454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455   soname_spec='${libname}${release}${shared_ext}$major'
15456   shlibpath_var=LD_LIBRARY_PATH
15457   ;;
15458
15459 *)
15460   dynamic_linker=no
15461   ;;
15462 esac
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15464 $as_echo "$dynamic_linker" >&6; }
15465 test "$dynamic_linker" = no && can_build_shared=no
15466
15467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15468 if test "$GCC" = yes; then
15469   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15470 fi
15471
15472 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15473   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15474 fi
15475 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15476   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15477 fi
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15517 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15518 hardcode_action_CXX=
15519 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15520    test -n "$runpath_var_CXX" ||
15521    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15522
15523   # We can hardcode non-existent directories.
15524   if test "$hardcode_direct_CXX" != no &&
15525      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15526      # have to relink, otherwise we might link with an installed library
15527      # when we should be linking with a yet-to-be-installed one
15528      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15529      test "$hardcode_minus_L_CXX" != no; then
15530     # Linking always hardcodes the temporary library directory.
15531     hardcode_action_CXX=relink
15532   else
15533     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15534     hardcode_action_CXX=immediate
15535   fi
15536 else
15537   # We cannot hardcode anything, or else we can only hardcode existing
15538   # directories.
15539   hardcode_action_CXX=unsupported
15540 fi
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15542 $as_echo "$hardcode_action_CXX" >&6; }
15543
15544 if test "$hardcode_action_CXX" = relink ||
15545    test "$inherit_rpath_CXX" = yes; then
15546   # Fast installation is not supported
15547   enable_fast_install=no
15548 elif test "$shlibpath_overrides_runpath" = yes ||
15549      test "$enable_shared" = no; then
15550   # Fast installation is not necessary
15551   enable_fast_install=needless
15552 fi
15553
15554
15555
15556
15557
15558
15559
15560   fi # test -n "$compiler"
15561
15562   CC=$lt_save_CC
15563   CFLAGS=$lt_save_CFLAGS
15564   LDCXX=$LD
15565   LD=$lt_save_LD
15566   GCC=$lt_save_GCC
15567   with_gnu_ld=$lt_save_with_gnu_ld
15568   lt_cv_path_LDCXX=$lt_cv_path_LD
15569   lt_cv_path_LD=$lt_save_path_LD
15570   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15571   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15572 fi # test "$_lt_caught_CXX_error" != yes
15573
15574 ac_ext=cpp
15575 ac_cpp='$CXXCPP $CPPFLAGS'
15576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594         ac_config_commands="$ac_config_commands libtool"
15595
15596
15597
15598
15599 # Only expand once:
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15610         if test -n "$ac_tool_prefix"; then
15611   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15612 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15614 $as_echo_n "checking for $ac_word... " >&6; }
15615 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15616   $as_echo_n "(cached) " >&6
15617 else
15618   case $PKG_CONFIG in
15619   [\\/]* | ?:[\\/]*)
15620   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15621   ;;
15622   *)
15623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15624 for as_dir in $PATH
15625 do
15626   IFS=$as_save_IFS
15627   test -z "$as_dir" && as_dir=.
15628     for ac_exec_ext in '' $ac_executable_extensions; do
15629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15630     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15632     break 2
15633   fi
15634 done
15635   done
15636 IFS=$as_save_IFS
15637
15638   ;;
15639 esac
15640 fi
15641 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15642 if test -n "$PKG_CONFIG"; then
15643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15644 $as_echo "$PKG_CONFIG" >&6; }
15645 else
15646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15647 $as_echo "no" >&6; }
15648 fi
15649
15650
15651 fi
15652 if test -z "$ac_cv_path_PKG_CONFIG"; then
15653   ac_pt_PKG_CONFIG=$PKG_CONFIG
15654   # Extract the first word of "pkg-config", so it can be a program name with args.
15655 set dummy pkg-config; ac_word=$2
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15657 $as_echo_n "checking for $ac_word... " >&6; }
15658 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15659   $as_echo_n "(cached) " >&6
15660 else
15661   case $ac_pt_PKG_CONFIG in
15662   [\\/]* | ?:[\\/]*)
15663   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15664   ;;
15665   *)
15666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15667 for as_dir in $PATH
15668 do
15669   IFS=$as_save_IFS
15670   test -z "$as_dir" && as_dir=.
15671     for ac_exec_ext in '' $ac_executable_extensions; do
15672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15673     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15675     break 2
15676   fi
15677 done
15678   done
15679 IFS=$as_save_IFS
15680
15681   ;;
15682 esac
15683 fi
15684 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15685 if test -n "$ac_pt_PKG_CONFIG"; then
15686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15687 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15688 else
15689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15690 $as_echo "no" >&6; }
15691 fi
15692
15693   if test "x$ac_pt_PKG_CONFIG" = x; then
15694     PKG_CONFIG=""
15695   else
15696     case $cross_compiling:$ac_tool_warned in
15697 yes:)
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15700 ac_tool_warned=yes ;;
15701 esac
15702     PKG_CONFIG=$ac_pt_PKG_CONFIG
15703   fi
15704 else
15705   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15706 fi
15707
15708 fi
15709 if test -n "$PKG_CONFIG"; then
15710         _pkg_min_version=0.20
15711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15712 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15713         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15714                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15715 $as_echo "yes" >&6; }
15716         else
15717                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718 $as_echo "no" >&6; }
15719                 PKG_CONFIG=""
15720         fi
15721 fi
15722
15723 # ========================================
15724 # Specify the fontdir patch if not default
15725 # ========================================
15726
15727 # Check whether --with-fontdir was given.
15728 if test "${with_fontdir+set}" = set; then :
15729   withval=$with_fontdir; FONTDIR="$withval"
15730 else
15731   FONTDIR="fonts/conf.d"
15732
15733 fi
15734
15735
15736
15737 # ================================
15738 # Find CUPS internals (no pc file)
15739 # ================================
15740
15741 # Check whether --with-cups-config was given.
15742 if test "${with_cups_config+set}" = set; then :
15743   withval=$with_cups_config; with_cups_config="$withval"
15744 else
15745   with_cups_config=system
15746
15747 fi
15748
15749
15750 if test "x$with_cups_config" != "xsystem"; then :
15751
15752         CUPSCONFIG=$with_cups_config
15753
15754 else
15755
15756         # Extract the first word of "cups-config", so it can be a program name with args.
15757 set dummy cups-config; ac_word=$2
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15759 $as_echo_n "checking for $ac_word... " >&6; }
15760 if ${ac_cv_path_CUPSCONFIG+:} false; then :
15761   $as_echo_n "(cached) " >&6
15762 else
15763   case $CUPSCONFIG in
15764   [\\/]* | ?:[\\/]*)
15765   ac_cv_path_CUPSCONFIG="$CUPSCONFIG" # Let the user override the test with a path.
15766   ;;
15767   *)
15768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15769 for as_dir in $PATH
15770 do
15771   IFS=$as_save_IFS
15772   test -z "$as_dir" && as_dir=.
15773     for ac_exec_ext in '' $ac_executable_extensions; do
15774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15775     ac_cv_path_CUPSCONFIG="$as_dir/$ac_word$ac_exec_ext"
15776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15777     break 2
15778   fi
15779 done
15780   done
15781 IFS=$as_save_IFS
15782
15783   ;;
15784 esac
15785 fi
15786 CUPSCONFIG=$ac_cv_path_CUPSCONFIG
15787 if test -n "$CUPSCONFIG"; then
15788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPSCONFIG" >&5
15789 $as_echo "$CUPSCONFIG" >&6; }
15790 else
15791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792 $as_echo "no" >&6; }
15793 fi
15794
15795
15796         if test -z "$CUPSCONFIG"; then :
15797
15798                 as_fn_error $? "Required cups-config is missing. Please install CUPS developer packages." "$LINENO" 5
15799
15800 fi
15801
15802 fi
15803 CUPS_CFLAGS=`$CUPSCONFIG --cflags`
15804 CUPS_LIBS=`$CUPSCONFIG --image --libs`
15805 CUPS_VERSION=`$CUPSCONFIG --version`
15806
15807
15808
15809 CUPS_DATADIR="`$CUPSCONFIG --datadir`"
15810
15811 cat >>confdefs.h <<_ACEOF
15812 #define CUPS_DATADIR "$CUPS_DATADIR"
15813 _ACEOF
15814
15815
15816
15817 CUPS_SERVERROOT="`$CUPSCONFIG --serverroot`"
15818
15819 cat >>confdefs.h <<_ACEOF
15820 #define CUPS_SERVERROOT "$CUPS_SERVERROOT"
15821 _ACEOF
15822
15823
15824
15825 CUPS_FONTPATH="$CUPS_DATADIR/fonts"
15826
15827 cat >>confdefs.h <<_ACEOF
15828 #define CUPS_FONTPATH "$CUPS_FONTPATH"
15829 _ACEOF
15830
15831
15832
15833 CUPS_SERVERBIN="`$CUPSCONFIG --serverbin`"
15834
15835 cat >>confdefs.h <<_ACEOF
15836 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
15837 _ACEOF
15838
15839
15840
15841
15842
15843
15844   # Used to indicate true or false condition
15845   ax_compare_version=false
15846
15847   # Convert the two version strings to be compared into a format that
15848   # allows a simple string comparison.  The end result is that a version
15849   # string of the form 1.12.5-r617 will be converted to the form
15850   # 0001001200050617.  In other words, each number is zero padded to four
15851   # digits, and non digits are removed.
15852
15853   ax_compare_version_A=`echo "$CUPS_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15854                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15855                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15856                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15857                      -e 's/[^0-9]//g'`
15858
15859
15860   ax_compare_version_B=`echo "1.4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15861                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15862                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15863                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15864                      -e 's/[^0-9]//g'`
15865
15866
15867     ax_compare_version=`echo "x$ax_compare_version_A
15868 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15869
15870
15871
15872     if test "$ax_compare_version" = "true" ; then
15873
15874
15875 $as_echo "#define CUPS_1_4 1" >>confdefs.h
15876
15877
15878       fi
15879
15880
15881 $as_echo "#define PDFTOPDF /**/" >>confdefs.h
15882
15883
15884   prefix_NONE=
15885   exec_prefix_NONE=
15886   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15887   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15888   eval ac_define_dir="\"$"{CUPS_DATADIR}/data"\""
15889   eval ac_define_dir="\"$ac_define_dir\""
15890   BANNERTOPDF_DATADIR="$ac_define_dir"
15891
15892
15893 cat >>confdefs.h <<_ACEOF
15894 #define BANNERTOPDF_DATADIR "$ac_define_dir"
15895 _ACEOF
15896
15897   test "$prefix_NONE" && prefix=NONE
15898   test "$exec_prefix_NONE" && exec_prefix=NONE
15899
15900
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15902 $as_echo_n "checking for library containing dlopen... " >&6; }
15903 if ${ac_cv_search_dlopen+:} false; then :
15904   $as_echo_n "(cached) " >&6
15905 else
15906   ac_func_search_save_LIBS=$LIBS
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h.  */
15909
15910 /* Override any GCC internal prototype to avoid an error.
15911    Use char because int might match the return type of a GCC
15912    builtin and then its argument prototype would still apply.  */
15913 #ifdef __cplusplus
15914 extern "C"
15915 #endif
15916 char dlopen ();
15917 int
15918 main ()
15919 {
15920 return dlopen ();
15921   ;
15922   return 0;
15923 }
15924 _ACEOF
15925 for ac_lib in '' dl; do
15926   if test -z "$ac_lib"; then
15927     ac_res="none required"
15928   else
15929     ac_res=-l$ac_lib
15930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15931   fi
15932   if ac_fn_cxx_try_link "$LINENO"; then :
15933   ac_cv_search_dlopen=$ac_res
15934 fi
15935 rm -f core conftest.err conftest.$ac_objext \
15936     conftest$ac_exeext
15937   if ${ac_cv_search_dlopen+:} false; then :
15938   break
15939 fi
15940 done
15941 if ${ac_cv_search_dlopen+:} false; then :
15942
15943 else
15944   ac_cv_search_dlopen=no
15945 fi
15946 rm conftest.$ac_ext
15947 LIBS=$ac_func_search_save_LIBS
15948 fi
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15950 $as_echo "$ac_cv_search_dlopen" >&6; }
15951 ac_res=$ac_cv_search_dlopen
15952 if test "$ac_res" != no; then :
15953   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15954   if test "$ac_cv_search_dlopen" != "none required"; then :
15955
15956                 DLOPEN_LIBS="$ac_cv_search_dlopen"
15957
15958 fi
15959 else
15960   as_fn_error $? "unable to find the dlopen() function" "$LINENO" 5
15961
15962 fi
15963
15964
15965
15966 # Transient run-time state dir of CUPS
15967 CUPS_STATEDIR=""
15968
15969 # Check whether --with-rundir was given.
15970 if test "${with_rundir+set}" = set; then :
15971   withval=$with_rundir; CUPS_STATEDIR="$withval"
15972 else
15973
15974         case "$uname" in
15975                 Darwin*)
15976                         # Darwin (OS X)
15977                         CUPS_STATEDIR="$CUPS_SERVERROOT"
15978                         ;;
15979                 *)
15980                         # All others
15981                         CUPS_STATEDIR="$localstatedir/run/cups"
15982                         ;;
15983         esac
15984 fi
15985
15986
15987 cat >>confdefs.h <<_ACEOF
15988 #define CUPS_STATEDIR "$CUPS_STATEDIR"
15989 _ACEOF
15990
15991
15992
15993 # Domain socket of CUPS...
15994 CUPS_DEFAULT_DOMAINSOCKET=""
15995
15996 # Check whether --with-domainsocket was given.
15997 if test "${with_domainsocket+set}" = set; then :
15998   withval=$with_domainsocket; default_domainsocket="$withval"
15999 else
16000   default_domainsocket=""
16001 fi
16002
16003
16004 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
16005         if test "x$default_domainsocket" = x; then
16006                 case "$uname" in
16007                         Darwin*)
16008                                 # Darwin and MaxOS X do their own thing...
16009                                 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cu
16010 psd"
16011                                 ;;
16012                         *)
16013                                 # All others use FHS standard...
16014                                 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
16015                                 ;;
16016                 esac
16017         else
16018                 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
16019         fi
16020 fi
16021
16022 cat >>confdefs.h <<_ACEOF
16023 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
16024 _ACEOF
16025
16026
16027
16028 # ======================
16029 # Check system functions
16030 # ======================
16031 for ac_func in sigaction
16032 do :
16033   ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
16034 if test "x$ac_cv_func_sigaction" = xyes; then :
16035   cat >>confdefs.h <<_ACEOF
16036 #define HAVE_SIGACTION 1
16037 _ACEOF
16038
16039 fi
16040 done
16041
16042 for ac_func in waitpid wait3
16043 do :
16044   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16045 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16047   cat >>confdefs.h <<_ACEOF
16048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16049 _ACEOF
16050
16051 fi
16052 done
16053
16054 for ac_func in strtoll
16055 do :
16056   ac_fn_cxx_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
16057 if test "x$ac_cv_func_strtoll" = xyes; then :
16058   cat >>confdefs.h <<_ACEOF
16059 #define HAVE_STRTOLL 1
16060 _ACEOF
16061
16062 fi
16063 done
16064
16065 for ac_func in open_memstream
16066 do :
16067   ac_fn_cxx_check_func "$LINENO" "open_memstream" "ac_cv_func_open_memstream"
16068 if test "x$ac_cv_func_open_memstream" = xyes; then :
16069   cat >>confdefs.h <<_ACEOF
16070 #define HAVE_OPEN_MEMSTREAM 1
16071 _ACEOF
16072
16073 fi
16074 done
16075
16076 for ac_func in getline
16077 do :
16078   ac_fn_cxx_check_func "$LINENO" "getline" "ac_cv_func_getline"
16079 if test "x$ac_cv_func_getline" = xyes; then :
16080   cat >>confdefs.h <<_ACEOF
16081 #define HAVE_GETLINE 1
16082 _ACEOF
16083
16084 else
16085   GETLINE='bannertopdf-getline.$(OBJEXT)'
16086
16087 fi
16088 done
16089
16090 for ac_func in strcasestr
16091 do :
16092   ac_fn_cxx_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
16093 if test "x$ac_cv_func_strcasestr" = xyes; then :
16094   cat >>confdefs.h <<_ACEOF
16095 #define HAVE_STRCASESTR 1
16096 _ACEOF
16097
16098 else
16099   STRCASESTR='pdftops-strcasestr.$(OBJEXT)'
16100
16101 fi
16102 done
16103
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
16105 $as_echo_n "checking for library containing pow... " >&6; }
16106 if ${ac_cv_search_pow+:} false; then :
16107   $as_echo_n "(cached) " >&6
16108 else
16109   ac_func_search_save_LIBS=$LIBS
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h.  */
16112
16113 /* Override any GCC internal prototype to avoid an error.
16114    Use char because int might match the return type of a GCC
16115    builtin and then its argument prototype would still apply.  */
16116 #ifdef __cplusplus
16117 extern "C"
16118 #endif
16119 char pow ();
16120 int
16121 main ()
16122 {
16123 return pow ();
16124   ;
16125   return 0;
16126 }
16127 _ACEOF
16128 for ac_lib in '' m; do
16129   if test -z "$ac_lib"; then
16130     ac_res="none required"
16131   else
16132     ac_res=-l$ac_lib
16133     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16134   fi
16135   if ac_fn_cxx_try_link "$LINENO"; then :
16136   ac_cv_search_pow=$ac_res
16137 fi
16138 rm -f core conftest.err conftest.$ac_objext \
16139     conftest$ac_exeext
16140   if ${ac_cv_search_pow+:} false; then :
16141   break
16142 fi
16143 done
16144 if ${ac_cv_search_pow+:} false; then :
16145
16146 else
16147   ac_cv_search_pow=no
16148 fi
16149 rm conftest.$ac_ext
16150 LIBS=$ac_func_search_save_LIBS
16151 fi
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
16153 $as_echo "$ac_cv_search_pow" >&6; }
16154 ac_res=$ac_cv_search_pow
16155 if test "$ac_res" != no; then :
16156   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16157
16158 fi
16159
16160
16161 # ========================
16162 # Check for system headers
16163 # ========================
16164
16165 for ac_header in stdlib.h
16166 do :
16167   ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16168 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16169   cat >>confdefs.h <<_ACEOF
16170 #define HAVE_STDLIB_H 1
16171 _ACEOF
16172
16173 fi
16174
16175 done
16176
16177 for ac_header in sys/stat.h
16178 do :
16179   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
16180 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
16181   cat >>confdefs.h <<_ACEOF
16182 #define HAVE_SYS_STAT_H 1
16183 _ACEOF
16184
16185 fi
16186
16187 done
16188
16189 for ac_header in sys/types.h
16190 do :
16191   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
16192 if test "x$ac_cv_header_sys_types_h" = xyes; then :
16193   cat >>confdefs.h <<_ACEOF
16194 #define HAVE_SYS_TYPES_H 1
16195 _ACEOF
16196
16197 fi
16198
16199 done
16200
16201 for ac_header in unistd.h
16202 do :
16203   ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
16204 if test "x$ac_cv_header_unistd_h" = xyes; then :
16205   cat >>confdefs.h <<_ACEOF
16206 #define HAVE_UNISTD_H 1
16207 _ACEOF
16208
16209 fi
16210
16211 done
16212
16213 for ac_header in zlib.h
16214 do :
16215   ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16216 if test "x$ac_cv_header_zlib_h" = xyes; then :
16217   cat >>confdefs.h <<_ACEOF
16218 #define HAVE_ZLIB_H 1
16219 _ACEOF
16220
16221 fi
16222
16223 done
16224
16225 for ac_header in endian.h
16226 do :
16227   ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
16228 if test "x$ac_cv_header_endian_h" = xyes; then :
16229   cat >>confdefs.h <<_ACEOF
16230 #define HAVE_ENDIAN_H 1
16231 _ACEOF
16232
16233 fi
16234
16235 done
16236
16237 for ac_header in dirent.h
16238 do :
16239   ac_fn_cxx_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
16240 if test "x$ac_cv_header_dirent_h" = xyes; then :
16241   cat >>confdefs.h <<_ACEOF
16242 #define HAVE_DIRENT_H 1
16243 _ACEOF
16244
16245 fi
16246
16247 done
16248
16249 for ac_header in sys/ioctl.h
16250 do :
16251   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
16252 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
16253   cat >>confdefs.h <<_ACEOF
16254 #define HAVE_SYS_IOCTL_H 1
16255 _ACEOF
16256
16257 fi
16258
16259 done
16260
16261
16262 # =============
16263 # Image options
16264 # =============
16265 # Check whether --enable-imagefilters was given.
16266 if test "${enable_imagefilters+set}" = set; then :
16267   enableval=$enable_imagefilters; enable_imagefilters="$enableval"
16268 else
16269   enable_imagefilters=yes
16270
16271 fi
16272
16273  if test "x$enable_imagefilters" != "xno"; then
16274   ENABLE_IMAGEFILTERS_TRUE=
16275   ENABLE_IMAGEFILTERS_FALSE='#'
16276 else
16277   ENABLE_IMAGEFILTERS_TRUE='#'
16278   ENABLE_IMAGEFILTERS_FALSE=
16279 fi
16280
16281
16282 # Libraries
16283
16284 # Check whether --with-jpeg was given.
16285 if test "${with_jpeg+set}" = set; then :
16286   withval=$with_jpeg; with_jpeg="$withval"
16287 else
16288   with_jpeg=yes
16289
16290 fi
16291
16292 if test x"$with_jpeg" != "xno"; then :
16293
16294
16295 $as_echo "#define HAVE_LIBJPEG /**/" >>confdefs.h
16296
16297         for ac_header in jpeglib.h
16298 do :
16299   ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
16300 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
16301   cat >>confdefs.h <<_ACEOF
16302 #define HAVE_JPEGLIB_H 1
16303 _ACEOF
16304
16305 fi
16306
16307 done
16308
16309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jpeg_destroy_decompress" >&5
16310 $as_echo_n "checking for library containing jpeg_destroy_decompress... " >&6; }
16311 if ${ac_cv_search_jpeg_destroy_decompress+:} false; then :
16312   $as_echo_n "(cached) " >&6
16313 else
16314   ac_func_search_save_LIBS=$LIBS
16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h.  */
16317
16318 /* Override any GCC internal prototype to avoid an error.
16319    Use char because int might match the return type of a GCC
16320    builtin and then its argument prototype would still apply.  */
16321 #ifdef __cplusplus
16322 extern "C"
16323 #endif
16324 char jpeg_destroy_decompress ();
16325 int
16326 main ()
16327 {
16328 return jpeg_destroy_decompress ();
16329   ;
16330   return 0;
16331 }
16332 _ACEOF
16333 for ac_lib in '' jpeg; do
16334   if test -z "$ac_lib"; then
16335     ac_res="none required"
16336   else
16337     ac_res=-l$ac_lib
16338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16339   fi
16340   if ac_fn_cxx_try_link "$LINENO"; then :
16341   ac_cv_search_jpeg_destroy_decompress=$ac_res
16342 fi
16343 rm -f core conftest.err conftest.$ac_objext \
16344     conftest$ac_exeext
16345   if ${ac_cv_search_jpeg_destroy_decompress+:} false; then :
16346   break
16347 fi
16348 done
16349 if ${ac_cv_search_jpeg_destroy_decompress+:} false; then :
16350
16351 else
16352   ac_cv_search_jpeg_destroy_decompress=no
16353 fi
16354 rm conftest.$ac_ext
16355 LIBS=$ac_func_search_save_LIBS
16356 fi
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jpeg_destroy_decompress" >&5
16358 $as_echo "$ac_cv_search_jpeg_destroy_decompress" >&6; }
16359 ac_res=$ac_cv_search_jpeg_destroy_decompress
16360 if test "$ac_res" != no; then :
16361   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16362   LIBJPEG_LIBS="-ljpeg"
16363 else
16364   as_fn_error $? "jpeg libraries not found." "$LINENO" 5
16365
16366 fi
16367
16368
16369
16370 fi
16371
16372
16373 # Check whether --with-png was given.
16374 if test "${with_png+set}" = set; then :
16375   withval=$with_png; with_png="$withval"
16376 else
16377   with_png=yes
16378
16379 fi
16380
16381 if test x"$with_png" != "xno"; then :
16382
16383
16384 pkg_failed=no
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
16386 $as_echo_n "checking for LIBPNG... " >&6; }
16387
16388 if test -n "$LIBPNG_CFLAGS"; then
16389     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
16390  elif test -n "$PKG_CONFIG"; then
16391     if test -n "$PKG_CONFIG" && \
16392     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
16393   ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
16394   ac_status=$?
16395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16396   test $ac_status = 0; }; then
16397   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
16398                       test "x$?" != "x0" && pkg_failed=yes
16399 else
16400   pkg_failed=yes
16401 fi
16402  else
16403     pkg_failed=untried
16404 fi
16405 if test -n "$LIBPNG_LIBS"; then
16406     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
16407  elif test -n "$PKG_CONFIG"; then
16408     if test -n "$PKG_CONFIG" && \
16409     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
16410   ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
16411   ac_status=$?
16412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16413   test $ac_status = 0; }; then
16414   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
16415                       test "x$?" != "x0" && pkg_failed=yes
16416 else
16417   pkg_failed=yes
16418 fi
16419  else
16420     pkg_failed=untried
16421 fi
16422
16423
16424
16425 if test $pkg_failed = yes; then
16426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16428
16429 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16430         _pkg_short_errors_supported=yes
16431 else
16432         _pkg_short_errors_supported=no
16433 fi
16434         if test $_pkg_short_errors_supported = yes; then
16435                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
16436         else
16437                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
16438         fi
16439         # Put the nasty error message in config.log where it belongs
16440         echo "$LIBPNG_PKG_ERRORS" >&5
16441
16442         as_fn_error $? "Package requirements (libpng) were not met:
16443
16444 $LIBPNG_PKG_ERRORS
16445
16446 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16447 installed software in a non-standard prefix.
16448
16449 Alternatively, you may set the environment variables LIBPNG_CFLAGS
16450 and LIBPNG_LIBS to avoid the need to call pkg-config.
16451 See the pkg-config man page for more details." "$LINENO" 5
16452 elif test $pkg_failed = untried; then
16453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16454 $as_echo "no" >&6; }
16455         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16457 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16458 is in your PATH or set the PKG_CONFIG environment variable to the full
16459 path to pkg-config.
16460
16461 Alternatively, you may set the environment variables LIBPNG_CFLAGS
16462 and LIBPNG_LIBS to avoid the need to call pkg-config.
16463 See the pkg-config man page for more details.
16464
16465 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16466 See \`config.log' for more details" "$LINENO" 5; }
16467 else
16468         LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
16469         LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
16470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16471 $as_echo "yes" >&6; }
16472
16473 fi
16474
16475 $as_echo "#define HAVE_LIBPNG /**/" >>confdefs.h
16476
16477
16478 fi
16479
16480
16481 # Check whether --with-tiff was given.
16482 if test "${with_tiff+set}" = set; then :
16483   withval=$with_tiff; with_tiff="$withval"
16484 else
16485   with_tiff=yes
16486
16487 fi
16488
16489 if test x"$with_tiff" != "xno"; then :
16490
16491
16492 $as_echo "#define HAVE_LIBTIFF /**/" >>confdefs.h
16493
16494         for ac_header in tiff.h
16495 do :
16496   ac_fn_cxx_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
16497 if test "x$ac_cv_header_tiff_h" = xyes; then :
16498   cat >>confdefs.h <<_ACEOF
16499 #define HAVE_TIFF_H 1
16500 _ACEOF
16501
16502 fi
16503
16504 done
16505
16506         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TIFFReadScanline" >&5
16507 $as_echo_n "checking for library containing TIFFReadScanline... " >&6; }
16508 if ${ac_cv_search_TIFFReadScanline+:} false; then :
16509   $as_echo_n "(cached) " >&6
16510 else
16511   ac_func_search_save_LIBS=$LIBS
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h.  */
16514
16515 /* Override any GCC internal prototype to avoid an error.
16516    Use char because int might match the return type of a GCC
16517    builtin and then its argument prototype would still apply.  */
16518 #ifdef __cplusplus
16519 extern "C"
16520 #endif
16521 char TIFFReadScanline ();
16522 int
16523 main ()
16524 {
16525 return TIFFReadScanline ();
16526   ;
16527   return 0;
16528 }
16529 _ACEOF
16530 for ac_lib in '' tiff; do
16531   if test -z "$ac_lib"; then
16532     ac_res="none required"
16533   else
16534     ac_res=-l$ac_lib
16535     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16536   fi
16537   if ac_fn_cxx_try_link "$LINENO"; then :
16538   ac_cv_search_TIFFReadScanline=$ac_res
16539 fi
16540 rm -f core conftest.err conftest.$ac_objext \
16541     conftest$ac_exeext
16542   if ${ac_cv_search_TIFFReadScanline+:} false; then :
16543   break
16544 fi
16545 done
16546 if ${ac_cv_search_TIFFReadScanline+:} false; then :
16547
16548 else
16549   ac_cv_search_TIFFReadScanline=no
16550 fi
16551 rm conftest.$ac_ext
16552 LIBS=$ac_func_search_save_LIBS
16553 fi
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TIFFReadScanline" >&5
16555 $as_echo "$ac_cv_search_TIFFReadScanline" >&6; }
16556 ac_res=$ac_cv_search_TIFFReadScanline
16557 if test "$ac_res" != no; then :
16558   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16559   LIBJPEG_LIBS="-ltiff"
16560 else
16561   as_fn_error $? "tiff libraries not found." "$LINENO" 5
16562
16563 fi
16564
16565
16566
16567 fi
16568
16569 # ==================================
16570 # Check for modules needed by utils/
16571 # ==================================
16572
16573 # Extract the first word of "pkg-config", so it can be a program name with args.
16574 set dummy pkg-config; ac_word=$2
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16576 $as_echo_n "checking for $ac_word... " >&6; }
16577 if ${ac_cv_path_PKGCONFIG+:} false; then :
16578   $as_echo_n "(cached) " >&6
16579 else
16580   case $PKGCONFIG in
16581   [\\/]* | ?:[\\/]*)
16582   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
16583   ;;
16584   *)
16585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16586 for as_dir in $PATH
16587 do
16588   IFS=$as_save_IFS
16589   test -z "$as_dir" && as_dir=.
16590     for ac_exec_ext in '' $ac_executable_extensions; do
16591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16592     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
16593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16594     break 2
16595   fi
16596 done
16597   done
16598 IFS=$as_save_IFS
16599
16600   ;;
16601 esac
16602 fi
16603 PKGCONFIG=$ac_cv_path_PKGCONFIG
16604 if test -n "$PKGCONFIG"; then
16605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
16606 $as_echo "$PKGCONFIG" >&6; }
16607 else
16608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609 $as_echo "no" >&6; }
16610 fi
16611
16612
16613
16614 AVAHI_LIBS=""
16615 AVAHI_CFLAGS=""
16616 AVAHI_GLIB_CFLAGS=""
16617 AVAHI_GLIB_LIBS=""
16618
16619 # Check whether --enable-avahi was given.
16620 if test "${enable_avahi+set}" = set; then :
16621   enableval=$enable_avahi; enable_avahi="$enableval"
16622 else
16623   enable_avahi=yes
16624
16625 fi
16626
16627  if test "x$enable_avahi" != "xno"; then
16628   ENABLE_AVAHI_TRUE=
16629   ENABLE_AVAHI_FALSE='#'
16630 else
16631   ENABLE_AVAHI_TRUE='#'
16632   ENABLE_AVAHI_FALSE=
16633 fi
16634
16635
16636
16637 # Check whether --with-avahi-libs was given.
16638 if test "${with_avahi_libs+set}" = set; then :
16639   withval=$with_avahi_libs; AVAHI_LIBS="-L$withval $AVAHI_LIBS"
16640 fi
16641
16642
16643 # Check whether --with-avahi-includes was given.
16644 if test "${with_avahi_includes+set}" = set; then :
16645   withval=$with_avahi_includes; AVAHI_CFLAGS="-I$withval $AVAHI_CFLAGS"
16646 fi
16647
16648
16649 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then
16650         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
16651 $as_echo_n "checking for Avahi... " >&6; }
16652         if $PKGCONFIG --exists avahi-client; then
16653                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654 $as_echo "yes" >&6; }
16655                 AVAHI_CFLAGS="$AVAHI_CFLAGS `$PKGCONFIG --cflags avahi-client`"
16656                 AVAHI_LIBS="$AVAHI_LIBS `$PKGCONFIG --libs avahi-client`"
16657
16658 $as_echo "#define HAVE_AVAHI /**/" >>confdefs.h
16659
16660         else
16661                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16662 $as_echo "no" >&6; }
16663                 enable_avahi=no
16664         fi
16665 fi
16666
16667
16668
16669
16670
16671 pkg_failed=no
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
16673 $as_echo_n "checking for GLIB... " >&6; }
16674
16675 if test -n "$GLIB_CFLAGS"; then
16676     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
16677  elif test -n "$PKG_CONFIG"; then
16678     if test -n "$PKG_CONFIG" && \
16679     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30.2\""; } >&5
16680   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30.2") 2>&5
16681   ac_status=$?
16682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683   test $ac_status = 0; }; then
16684   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.30.2" 2>/dev/null`
16685                       test "x$?" != "x0" && pkg_failed=yes
16686 else
16687   pkg_failed=yes
16688 fi
16689  else
16690     pkg_failed=untried
16691 fi
16692 if test -n "$GLIB_LIBS"; then
16693     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
16694  elif test -n "$PKG_CONFIG"; then
16695     if test -n "$PKG_CONFIG" && \
16696     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.30.2\""; } >&5
16697   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.30.2") 2>&5
16698   ac_status=$?
16699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16700   test $ac_status = 0; }; then
16701   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.30.2" 2>/dev/null`
16702                       test "x$?" != "x0" && pkg_failed=yes
16703 else
16704   pkg_failed=yes
16705 fi
16706  else
16707     pkg_failed=untried
16708 fi
16709
16710
16711
16712 if test $pkg_failed = yes; then
16713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16714 $as_echo "no" >&6; }
16715
16716 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16717         _pkg_short_errors_supported=yes
16718 else
16719         _pkg_short_errors_supported=no
16720 fi
16721         if test $_pkg_short_errors_supported = yes; then
16722                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.30.2" 2>&1`
16723         else
16724                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.30.2" 2>&1`
16725         fi
16726         # Put the nasty error message in config.log where it belongs
16727         echo "$GLIB_PKG_ERRORS" >&5
16728
16729         as_fn_error $? "Package requirements (glib-2.0 >= 2.30.2) were not met:
16730
16731 $GLIB_PKG_ERRORS
16732
16733 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16734 installed software in a non-standard prefix.
16735
16736 Alternatively, you may set the environment variables GLIB_CFLAGS
16737 and GLIB_LIBS to avoid the need to call pkg-config.
16738 See the pkg-config man page for more details." "$LINENO" 5
16739 elif test $pkg_failed = untried; then
16740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16742         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16744 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16745 is in your PATH or set the PKG_CONFIG environment variable to the full
16746 path to pkg-config.
16747
16748 Alternatively, you may set the environment variables GLIB_CFLAGS
16749 and GLIB_LIBS to avoid the need to call pkg-config.
16750 See the pkg-config man page for more details.
16751
16752 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16753 See \`config.log' for more details" "$LINENO" 5; }
16754 else
16755         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
16756         GLIB_LIBS=$pkg_cv_GLIB_LIBS
16757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16758 $as_echo "yes" >&6; }
16759
16760 fi
16761
16762
16763
16764 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then
16765
16766 pkg_failed=no
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI_GLIB" >&5
16768 $as_echo_n "checking for AVAHI_GLIB... " >&6; }
16769
16770 if test -n "$AVAHI_GLIB_CFLAGS"; then
16771     pkg_cv_AVAHI_GLIB_CFLAGS="$AVAHI_GLIB_CFLAGS"
16772  elif test -n "$PKG_CONFIG"; then
16773     if test -n "$PKG_CONFIG" && \
16774     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-glib\""; } >&5
16775   ($PKG_CONFIG --exists --print-errors "avahi-glib") 2>&5
16776   ac_status=$?
16777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16778   test $ac_status = 0; }; then
16779   pkg_cv_AVAHI_GLIB_CFLAGS=`$PKG_CONFIG --cflags "avahi-glib" 2>/dev/null`
16780                       test "x$?" != "x0" && pkg_failed=yes
16781 else
16782   pkg_failed=yes
16783 fi
16784  else
16785     pkg_failed=untried
16786 fi
16787 if test -n "$AVAHI_GLIB_LIBS"; then
16788     pkg_cv_AVAHI_GLIB_LIBS="$AVAHI_GLIB_LIBS"
16789  elif test -n "$PKG_CONFIG"; then
16790     if test -n "$PKG_CONFIG" && \
16791     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-glib\""; } >&5
16792   ($PKG_CONFIG --exists --print-errors "avahi-glib") 2>&5
16793   ac_status=$?
16794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16795   test $ac_status = 0; }; then
16796   pkg_cv_AVAHI_GLIB_LIBS=`$PKG_CONFIG --libs "avahi-glib" 2>/dev/null`
16797                       test "x$?" != "x0" && pkg_failed=yes
16798 else
16799   pkg_failed=yes
16800 fi
16801  else
16802     pkg_failed=untried
16803 fi
16804
16805
16806
16807 if test $pkg_failed = yes; then
16808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16809 $as_echo "no" >&6; }
16810
16811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16812         _pkg_short_errors_supported=yes
16813 else
16814         _pkg_short_errors_supported=no
16815 fi
16816         if test $_pkg_short_errors_supported = yes; then
16817                 AVAHI_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-glib" 2>&1`
16818         else
16819                 AVAHI_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-glib" 2>&1`
16820         fi
16821         # Put the nasty error message in config.log where it belongs
16822         echo "$AVAHI_GLIB_PKG_ERRORS" >&5
16823
16824         as_fn_error $? "Package requirements (avahi-glib) were not met:
16825
16826 $AVAHI_GLIB_PKG_ERRORS
16827
16828 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16829 installed software in a non-standard prefix.
16830
16831 Alternatively, you may set the environment variables AVAHI_GLIB_CFLAGS
16832 and AVAHI_GLIB_LIBS to avoid the need to call pkg-config.
16833 See the pkg-config man page for more details." "$LINENO" 5
16834 elif test $pkg_failed = untried; then
16835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836 $as_echo "no" >&6; }
16837         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16839 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16840 is in your PATH or set the PKG_CONFIG environment variable to the full
16841 path to pkg-config.
16842
16843 Alternatively, you may set the environment variables AVAHI_GLIB_CFLAGS
16844 and AVAHI_GLIB_LIBS to avoid the need to call pkg-config.
16845 See the pkg-config man page for more details.
16846
16847 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16848 See \`config.log' for more details" "$LINENO" 5; }
16849 else
16850         AVAHI_GLIB_CFLAGS=$pkg_cv_AVAHI_GLIB_CFLAGS
16851         AVAHI_GLIB_LIBS=$pkg_cv_AVAHI_GLIB_LIBS
16852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853 $as_echo "yes" >&6; }
16854
16855 fi
16856 fi
16857
16858
16859
16860
16861
16862 # Check whether --with-browseremoteprotocols was given.
16863 if test "${with_browseremoteprotocols+set}" = set; then :
16864   withval=$with_browseremoteprotocols; with_browseremoteprotocols="$withval"
16865 else
16866   with_browseremoteprotocols="dnssd cups"
16867
16868 fi
16869
16870 BROWSEREMOTEPROTOCOLS="$with_browseremoteprotocols"
16871
16872
16873
16874 # Check whether --with-rcdir was given.
16875 if test "${with_rcdir+set}" = set; then :
16876   withval=$with_rcdir; rcdir="$withval"
16877 else
16878   rcdir=""
16879 fi
16880
16881
16882 # Check whether --with-rclevels was given.
16883 if test "${with_rclevels+set}" = set; then :
16884   withval=$with_rclevels; rclevels="$withval"
16885 else
16886   rclevels="2 3 5"
16887 fi
16888
16889
16890 # Check whether --with-rcstart was given.
16891 if test "${with_rcstart+set}" = set; then :
16892   withval=$with_rcstart; rcstart="$withval"
16893 else
16894   rcstart="99"
16895 fi
16896
16897
16898 # Check whether --with-rcstop was given.
16899 if test "${with_rcstop+set}" = set; then :
16900   withval=$with_rcstop; rcstop="$withval"
16901 else
16902   rcstop="00"
16903 fi
16904
16905
16906 INITDIR=""
16907 INITDDIR=""
16908 RCLEVELS="$rclevels"
16909 RCSTART="$rcstart"
16910 RCSTOP="$rcstop"
16911
16912 if test x$rcdir = x; then
16913         case "`uname`" in
16914                 FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*)
16915                         # FreeBSD and OpenBSD
16916                         ;;
16917
16918                 Linux | GNU | GNU/k*BSD*)
16919                         # Linux/HURD seems to choose an init.d directory at random...
16920                         if test -d /sbin/init.d; then
16921                                 # SuSE
16922                                 INITDIR="/sbin/init.d"
16923                         else
16924                                 if test -d /etc/init.d; then
16925                                         # Others
16926                                         INITDIR="/etc"
16927                                 else
16928                                         # RedHat
16929                                         INITDIR="/etc/rc.d"
16930                                 fi
16931                         fi
16932                         RCSTART="82"
16933                         RCSTOP="35"
16934                         ;;
16935
16936                 NetBSD*)
16937                         # NetBSD
16938                         INITDDIR="/etc/rc.d"
16939                         ;;
16940
16941                 *)
16942                         INITDIR="/etc"
16943                         ;;
16944
16945         esac
16946 elif test "x$rcdir" != xno; then
16947         if test "x$rclevels" = x; then
16948                 INITDDIR="$rcdir"
16949         else
16950                 INITDIR="$rcdir"
16951         fi
16952 fi
16953
16954  if test "x$INITDIR" != "x"; then
16955   RCLINKS_TRUE=
16956   RCLINKS_FALSE='#'
16957 else
16958   RCLINKS_TRUE='#'
16959   RCLINKS_FALSE=
16960 fi
16961
16962
16963 if test "x${INITDIR}" != "x" -a "x${INITDDIR}" = "x"; then
16964    INITDDIR="${INITDIR}/init.d"
16965 fi
16966
16967
16968
16969
16970
16971
16972
16973 # ======================================
16974 # Check for various pdf required modules
16975 # ======================================
16976
16977 pkg_failed=no
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
16979 $as_echo_n "checking for LCMS... " >&6; }
16980
16981 if test -n "$LCMS_CFLAGS"; then
16982     pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
16983  elif test -n "$PKG_CONFIG"; then
16984     if test -n "$PKG_CONFIG" && \
16985     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
16986   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
16987   ac_status=$?
16988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16989   test $ac_status = 0; }; then
16990   pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
16991                       test "x$?" != "x0" && pkg_failed=yes
16992 else
16993   pkg_failed=yes
16994 fi
16995  else
16996     pkg_failed=untried
16997 fi
16998 if test -n "$LCMS_LIBS"; then
16999     pkg_cv_LCMS_LIBS="$LCMS_LIBS"
17000  elif test -n "$PKG_CONFIG"; then
17001     if test -n "$PKG_CONFIG" && \
17002     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
17003   ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
17004   ac_status=$?
17005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17006   test $ac_status = 0; }; then
17007   pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
17008                       test "x$?" != "x0" && pkg_failed=yes
17009 else
17010   pkg_failed=yes
17011 fi
17012  else
17013     pkg_failed=untried
17014 fi
17015
17016
17017
17018 if test $pkg_failed = yes; then
17019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17020 $as_echo "no" >&6; }
17021
17022 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17023         _pkg_short_errors_supported=yes
17024 else
17025         _pkg_short_errors_supported=no
17026 fi
17027         if test $_pkg_short_errors_supported = yes; then
17028                 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2" 2>&1`
17029         else
17030                 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2" 2>&1`
17031         fi
17032         # Put the nasty error message in config.log where it belongs
17033         echo "$LCMS_PKG_ERRORS" >&5
17034
17035         lcms2=no
17036 elif test $pkg_failed = untried; then
17037         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17038 $as_echo "no" >&6; }
17039         lcms2=no
17040 else
17041         LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
17042         LCMS_LIBS=$pkg_cv_LCMS_LIBS
17043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17044 $as_echo "yes" >&6; }
17045         lcms2=yes
17046 fi
17047 if test x"$lcms2" = "xno"; then :
17048
17049
17050 pkg_failed=no
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
17052 $as_echo_n "checking for LCMS... " >&6; }
17053
17054 if test -n "$LCMS_CFLAGS"; then
17055     pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
17056  elif test -n "$PKG_CONFIG"; then
17057     if test -n "$PKG_CONFIG" && \
17058     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
17059   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
17060   ac_status=$?
17061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17062   test $ac_status = 0; }; then
17063   pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
17064                       test "x$?" != "x0" && pkg_failed=yes
17065 else
17066   pkg_failed=yes
17067 fi
17068  else
17069     pkg_failed=untried
17070 fi
17071 if test -n "$LCMS_LIBS"; then
17072     pkg_cv_LCMS_LIBS="$LCMS_LIBS"
17073  elif test -n "$PKG_CONFIG"; then
17074     if test -n "$PKG_CONFIG" && \
17075     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
17076   ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
17077   ac_status=$?
17078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17079   test $ac_status = 0; }; then
17080   pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
17081                       test "x$?" != "x0" && pkg_failed=yes
17082 else
17083   pkg_failed=yes
17084 fi
17085  else
17086     pkg_failed=untried
17087 fi
17088
17089
17090
17091 if test $pkg_failed = yes; then
17092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093 $as_echo "no" >&6; }
17094
17095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17096         _pkg_short_errors_supported=yes
17097 else
17098         _pkg_short_errors_supported=no
17099 fi
17100         if test $_pkg_short_errors_supported = yes; then
17101                 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms" 2>&1`
17102         else
17103                 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms" 2>&1`
17104         fi
17105         # Put the nasty error message in config.log where it belongs
17106         echo "$LCMS_PKG_ERRORS" >&5
17107
17108         as_fn_error $? "Package requirements (lcms) were not met:
17109
17110 $LCMS_PKG_ERRORS
17111
17112 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17113 installed software in a non-standard prefix.
17114
17115 Alternatively, you may set the environment variables LCMS_CFLAGS
17116 and LCMS_LIBS to avoid the need to call pkg-config.
17117 See the pkg-config man page for more details." "$LINENO" 5
17118 elif test $pkg_failed = untried; then
17119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17120 $as_echo "no" >&6; }
17121         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17123 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17124 is in your PATH or set the PKG_CONFIG environment variable to the full
17125 path to pkg-config.
17126
17127 Alternatively, you may set the environment variables LCMS_CFLAGS
17128 and LCMS_LIBS to avoid the need to call pkg-config.
17129 See the pkg-config man page for more details.
17130
17131 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17132 See \`config.log' for more details" "$LINENO" 5; }
17133 else
17134         LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
17135         LCMS_LIBS=$pkg_cv_LCMS_LIBS
17136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17137 $as_echo "yes" >&6; }
17138
17139 fi
17140
17141 $as_echo "#define USE_LCMS1 1" >>confdefs.h
17142
17143
17144 fi
17145
17146 pkg_failed=no
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
17148 $as_echo_n "checking for FREETYPE... " >&6; }
17149
17150 if test -n "$FREETYPE_CFLAGS"; then
17151     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
17152  elif test -n "$PKG_CONFIG"; then
17153     if test -n "$PKG_CONFIG" && \
17154     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
17155   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
17156   ac_status=$?
17157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17158   test $ac_status = 0; }; then
17159   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
17160                       test "x$?" != "x0" && pkg_failed=yes
17161 else
17162   pkg_failed=yes
17163 fi
17164  else
17165     pkg_failed=untried
17166 fi
17167 if test -n "$FREETYPE_LIBS"; then
17168     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
17169  elif test -n "$PKG_CONFIG"; then
17170     if test -n "$PKG_CONFIG" && \
17171     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
17172   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
17173   ac_status=$?
17174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175   test $ac_status = 0; }; then
17176   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
17177                       test "x$?" != "x0" && pkg_failed=yes
17178 else
17179   pkg_failed=yes
17180 fi
17181  else
17182     pkg_failed=untried
17183 fi
17184
17185
17186
17187 if test $pkg_failed = yes; then
17188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17190
17191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17192         _pkg_short_errors_supported=yes
17193 else
17194         _pkg_short_errors_supported=no
17195 fi
17196         if test $_pkg_short_errors_supported = yes; then
17197                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
17198         else
17199                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
17200         fi
17201         # Put the nasty error message in config.log where it belongs
17202         echo "$FREETYPE_PKG_ERRORS" >&5
17203
17204         as_fn_error $? "Package requirements (freetype2) were not met:
17205
17206 $FREETYPE_PKG_ERRORS
17207
17208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17209 installed software in a non-standard prefix.
17210
17211 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17212 and FREETYPE_LIBS to avoid the need to call pkg-config.
17213 See the pkg-config man page for more details." "$LINENO" 5
17214 elif test $pkg_failed = untried; then
17215         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17216 $as_echo "no" >&6; }
17217         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17219 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17220 is in your PATH or set the PKG_CONFIG environment variable to the full
17221 path to pkg-config.
17222
17223 Alternatively, you may set the environment variables FREETYPE_CFLAGS
17224 and FREETYPE_LIBS to avoid the need to call pkg-config.
17225 See the pkg-config man page for more details.
17226
17227 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17228 See \`config.log' for more details" "$LINENO" 5; }
17229 else
17230         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
17231         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
17232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17233 $as_echo "yes" >&6; }
17234
17235 $as_echo "#define HAVE_FREETYPE_H 1" >>confdefs.h
17236
17237 fi
17238
17239 pkg_failed=no
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
17241 $as_echo_n "checking for FONTCONFIG... " >&6; }
17242
17243 if test -n "$FONTCONFIG_CFLAGS"; then
17244     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
17245  elif test -n "$PKG_CONFIG"; then
17246     if test -n "$PKG_CONFIG" && \
17247     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5
17248   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5
17249   ac_status=$?
17250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17251   test $ac_status = 0; }; then
17252   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.0.0" 2>/dev/null`
17253                       test "x$?" != "x0" && pkg_failed=yes
17254 else
17255   pkg_failed=yes
17256 fi
17257  else
17258     pkg_failed=untried
17259 fi
17260 if test -n "$FONTCONFIG_LIBS"; then
17261     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
17262  elif test -n "$PKG_CONFIG"; then
17263     if test -n "$PKG_CONFIG" && \
17264     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.0.0\""; } >&5
17265   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.0.0") 2>&5
17266   ac_status=$?
17267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17268   test $ac_status = 0; }; then
17269   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.0.0" 2>/dev/null`
17270                       test "x$?" != "x0" && pkg_failed=yes
17271 else
17272   pkg_failed=yes
17273 fi
17274  else
17275     pkg_failed=untried
17276 fi
17277
17278
17279
17280 if test $pkg_failed = yes; then
17281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17283
17284 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17285         _pkg_short_errors_supported=yes
17286 else
17287         _pkg_short_errors_supported=no
17288 fi
17289         if test $_pkg_short_errors_supported = yes; then
17290                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.0.0" 2>&1`
17291         else
17292                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.0.0" 2>&1`
17293         fi
17294         # Put the nasty error message in config.log where it belongs
17295         echo "$FONTCONFIG_PKG_ERRORS" >&5
17296
17297         as_fn_error $? "Package requirements (fontconfig >= 2.0.0) were not met:
17298
17299 $FONTCONFIG_PKG_ERRORS
17300
17301 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17302 installed software in a non-standard prefix.
17303
17304 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
17305 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
17306 See the pkg-config man page for more details." "$LINENO" 5
17307 elif test $pkg_failed = untried; then
17308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17309 $as_echo "no" >&6; }
17310         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17312 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17313 is in your PATH or set the PKG_CONFIG environment variable to the full
17314 path to pkg-config.
17315
17316 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
17317 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
17318 See the pkg-config man page for more details.
17319
17320 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17321 See \`config.log' for more details" "$LINENO" 5; }
17322 else
17323         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
17324         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
17325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17326 $as_echo "yes" >&6; }
17327
17328 fi
17329
17330 pkg_failed=no
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IJS" >&5
17332 $as_echo_n "checking for IJS... " >&6; }
17333
17334 if test -n "$IJS_CFLAGS"; then
17335     pkg_cv_IJS_CFLAGS="$IJS_CFLAGS"
17336  elif test -n "$PKG_CONFIG"; then
17337     if test -n "$PKG_CONFIG" && \
17338     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ijs\""; } >&5
17339   ($PKG_CONFIG --exists --print-errors "ijs") 2>&5
17340   ac_status=$?
17341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17342   test $ac_status = 0; }; then
17343   pkg_cv_IJS_CFLAGS=`$PKG_CONFIG --cflags "ijs" 2>/dev/null`
17344                       test "x$?" != "x0" && pkg_failed=yes
17345 else
17346   pkg_failed=yes
17347 fi
17348  else
17349     pkg_failed=untried
17350 fi
17351 if test -n "$IJS_LIBS"; then
17352     pkg_cv_IJS_LIBS="$IJS_LIBS"
17353  elif test -n "$PKG_CONFIG"; then
17354     if test -n "$PKG_CONFIG" && \
17355     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ijs\""; } >&5
17356   ($PKG_CONFIG --exists --print-errors "ijs") 2>&5
17357   ac_status=$?
17358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17359   test $ac_status = 0; }; then
17360   pkg_cv_IJS_LIBS=`$PKG_CONFIG --libs "ijs" 2>/dev/null`
17361                       test "x$?" != "x0" && pkg_failed=yes
17362 else
17363   pkg_failed=yes
17364 fi
17365  else
17366     pkg_failed=untried
17367 fi
17368
17369
17370
17371 if test $pkg_failed = yes; then
17372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373 $as_echo "no" >&6; }
17374
17375 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17376         _pkg_short_errors_supported=yes
17377 else
17378         _pkg_short_errors_supported=no
17379 fi
17380         if test $_pkg_short_errors_supported = yes; then
17381                 IJS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ijs" 2>&1`
17382         else
17383                 IJS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ijs" 2>&1`
17384         fi
17385         # Put the nasty error message in config.log where it belongs
17386         echo "$IJS_PKG_ERRORS" >&5
17387
17388         as_fn_error $? "Package requirements (ijs) were not met:
17389
17390 $IJS_PKG_ERRORS
17391
17392 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17393 installed software in a non-standard prefix.
17394
17395 Alternatively, you may set the environment variables IJS_CFLAGS
17396 and IJS_LIBS to avoid the need to call pkg-config.
17397 See the pkg-config man page for more details." "$LINENO" 5
17398 elif test $pkg_failed = untried; then
17399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17400 $as_echo "no" >&6; }
17401         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17403 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17404 is in your PATH or set the PKG_CONFIG environment variable to the full
17405 path to pkg-config.
17406
17407 Alternatively, you may set the environment variables IJS_CFLAGS
17408 and IJS_LIBS to avoid the need to call pkg-config.
17409 See the pkg-config man page for more details.
17410
17411 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17412 See \`config.log' for more details" "$LINENO" 5; }
17413 else
17414         IJS_CFLAGS=$pkg_cv_IJS_CFLAGS
17415         IJS_LIBS=$pkg_cv_IJS_LIBS
17416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17417 $as_echo "yes" >&6; }
17418
17419 fi
17420
17421 pkg_failed=no
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
17423 $as_echo_n "checking for POPPLER... " >&6; }
17424
17425 if test -n "$POPPLER_CFLAGS"; then
17426     pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
17427  elif test -n "$PKG_CONFIG"; then
17428     if test -n "$PKG_CONFIG" && \
17429     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.18\""; } >&5
17430   ($PKG_CONFIG --exists --print-errors "poppler >= 0.18") 2>&5
17431   ac_status=$?
17432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17433   test $ac_status = 0; }; then
17434   pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler >= 0.18" 2>/dev/null`
17435                       test "x$?" != "x0" && pkg_failed=yes
17436 else
17437   pkg_failed=yes
17438 fi
17439  else
17440     pkg_failed=untried
17441 fi
17442 if test -n "$POPPLER_LIBS"; then
17443     pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
17444  elif test -n "$PKG_CONFIG"; then
17445     if test -n "$PKG_CONFIG" && \
17446     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.18\""; } >&5
17447   ($PKG_CONFIG --exists --print-errors "poppler >= 0.18") 2>&5
17448   ac_status=$?
17449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17450   test $ac_status = 0; }; then
17451   pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler >= 0.18" 2>/dev/null`
17452                       test "x$?" != "x0" && pkg_failed=yes
17453 else
17454   pkg_failed=yes
17455 fi
17456  else
17457     pkg_failed=untried
17458 fi
17459
17460
17461
17462 if test $pkg_failed = yes; then
17463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17464 $as_echo "no" >&6; }
17465
17466 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17467         _pkg_short_errors_supported=yes
17468 else
17469         _pkg_short_errors_supported=no
17470 fi
17471         if test $_pkg_short_errors_supported = yes; then
17472                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "poppler >= 0.18" 2>&1`
17473         else
17474                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "poppler >= 0.18" 2>&1`
17475         fi
17476         # Put the nasty error message in config.log where it belongs
17477         echo "$POPPLER_PKG_ERRORS" >&5
17478
17479         as_fn_error $? "Package requirements (poppler >= 0.18) were not met:
17480
17481 $POPPLER_PKG_ERRORS
17482
17483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17484 installed software in a non-standard prefix.
17485
17486 Alternatively, you may set the environment variables POPPLER_CFLAGS
17487 and POPPLER_LIBS to avoid the need to call pkg-config.
17488 See the pkg-config man page for more details." "$LINENO" 5
17489 elif test $pkg_failed = untried; then
17490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17491 $as_echo "no" >&6; }
17492         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17494 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17495 is in your PATH or set the PKG_CONFIG environment variable to the full
17496 path to pkg-config.
17497
17498 Alternatively, you may set the environment variables POPPLER_CFLAGS
17499 and POPPLER_LIBS to avoid the need to call pkg-config.
17500 See the pkg-config man page for more details.
17501
17502 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17503 See \`config.log' for more details" "$LINENO" 5; }
17504 else
17505         POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
17506         POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
17507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17508 $as_echo "yes" >&6; }
17509
17510 fi
17511
17512 pkg_failed=no
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
17514 $as_echo_n "checking for ZLIB... " >&6; }
17515
17516 if test -n "$ZLIB_CFLAGS"; then
17517     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
17518  elif test -n "$PKG_CONFIG"; then
17519     if test -n "$PKG_CONFIG" && \
17520     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
17521   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
17522   ac_status=$?
17523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17524   test $ac_status = 0; }; then
17525   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
17526                       test "x$?" != "x0" && pkg_failed=yes
17527 else
17528   pkg_failed=yes
17529 fi
17530  else
17531     pkg_failed=untried
17532 fi
17533 if test -n "$ZLIB_LIBS"; then
17534     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
17535  elif test -n "$PKG_CONFIG"; then
17536     if test -n "$PKG_CONFIG" && \
17537     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
17538   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
17539   ac_status=$?
17540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17541   test $ac_status = 0; }; then
17542   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
17543                       test "x$?" != "x0" && pkg_failed=yes
17544 else
17545   pkg_failed=yes
17546 fi
17547  else
17548     pkg_failed=untried
17549 fi
17550
17551
17552
17553 if test $pkg_failed = yes; then
17554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17555 $as_echo "no" >&6; }
17556
17557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17558         _pkg_short_errors_supported=yes
17559 else
17560         _pkg_short_errors_supported=no
17561 fi
17562         if test $_pkg_short_errors_supported = yes; then
17563                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
17564         else
17565                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
17566         fi
17567         # Put the nasty error message in config.log where it belongs
17568         echo "$ZLIB_PKG_ERRORS" >&5
17569
17570         as_fn_error $? "Package requirements (zlib) were not met:
17571
17572 $ZLIB_PKG_ERRORS
17573
17574 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17575 installed software in a non-standard prefix.
17576
17577 Alternatively, you may set the environment variables ZLIB_CFLAGS
17578 and ZLIB_LIBS to avoid the need to call pkg-config.
17579 See the pkg-config man page for more details." "$LINENO" 5
17580 elif test $pkg_failed = untried; then
17581         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17582 $as_echo "no" >&6; }
17583         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17585 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17586 is in your PATH or set the PKG_CONFIG environment variable to the full
17587 path to pkg-config.
17588
17589 Alternatively, you may set the environment variables ZLIB_CFLAGS
17590 and ZLIB_LIBS to avoid the need to call pkg-config.
17591 See the pkg-config man page for more details.
17592
17593 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17594 See \`config.log' for more details" "$LINENO" 5; }
17595 else
17596         ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
17597         ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
17598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17599 $as_echo "yes" >&6; }
17600
17601 fi
17602
17603 $as_echo "#define HAVE_LIBZ /**/" >>confdefs.h
17604
17605
17606 pkg_failed=no
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBQPDF" >&5
17608 $as_echo_n "checking for LIBQPDF... " >&6; }
17609
17610 if test -n "$LIBQPDF_CFLAGS"; then
17611     pkg_cv_LIBQPDF_CFLAGS="$LIBQPDF_CFLAGS"
17612  elif test -n "$PKG_CONFIG"; then
17613     if test -n "$PKG_CONFIG" && \
17614     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpdf >= 3.0.2\""; } >&5
17615   ($PKG_CONFIG --exists --print-errors "libqpdf >= 3.0.2") 2>&5
17616   ac_status=$?
17617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17618   test $ac_status = 0; }; then
17619   pkg_cv_LIBQPDF_CFLAGS=`$PKG_CONFIG --cflags "libqpdf >= 3.0.2" 2>/dev/null`
17620                       test "x$?" != "x0" && pkg_failed=yes
17621 else
17622   pkg_failed=yes
17623 fi
17624  else
17625     pkg_failed=untried
17626 fi
17627 if test -n "$LIBQPDF_LIBS"; then
17628     pkg_cv_LIBQPDF_LIBS="$LIBQPDF_LIBS"
17629  elif test -n "$PKG_CONFIG"; then
17630     if test -n "$PKG_CONFIG" && \
17631     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpdf >= 3.0.2\""; } >&5
17632   ($PKG_CONFIG --exists --print-errors "libqpdf >= 3.0.2") 2>&5
17633   ac_status=$?
17634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17635   test $ac_status = 0; }; then
17636   pkg_cv_LIBQPDF_LIBS=`$PKG_CONFIG --libs "libqpdf >= 3.0.2" 2>/dev/null`
17637                       test "x$?" != "x0" && pkg_failed=yes
17638 else
17639   pkg_failed=yes
17640 fi
17641  else
17642     pkg_failed=untried
17643 fi
17644
17645
17646
17647 if test $pkg_failed = yes; then
17648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17649 $as_echo "no" >&6; }
17650
17651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17652         _pkg_short_errors_supported=yes
17653 else
17654         _pkg_short_errors_supported=no
17655 fi
17656         if test $_pkg_short_errors_supported = yes; then
17657                 LIBQPDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libqpdf >= 3.0.2" 2>&1`
17658         else
17659                 LIBQPDF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libqpdf >= 3.0.2" 2>&1`
17660         fi
17661         # Put the nasty error message in config.log where it belongs
17662         echo "$LIBQPDF_PKG_ERRORS" >&5
17663
17664         as_fn_error $? "Package requirements (libqpdf >= 3.0.2) were not met:
17665
17666 $LIBQPDF_PKG_ERRORS
17667
17668 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17669 installed software in a non-standard prefix.
17670
17671 Alternatively, you may set the environment variables LIBQPDF_CFLAGS
17672 and LIBQPDF_LIBS to avoid the need to call pkg-config.
17673 See the pkg-config man page for more details." "$LINENO" 5
17674 elif test $pkg_failed = untried; then
17675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17676 $as_echo "no" >&6; }
17677         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17679 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17680 is in your PATH or set the PKG_CONFIG environment variable to the full
17681 path to pkg-config.
17682
17683 Alternatively, you may set the environment variables LIBQPDF_CFLAGS
17684 and LIBQPDF_LIBS to avoid the need to call pkg-config.
17685 See the pkg-config man page for more details.
17686
17687 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17688 See \`config.log' for more details" "$LINENO" 5; }
17689 else
17690         LIBQPDF_CFLAGS=$pkg_cv_LIBQPDF_CFLAGS
17691         LIBQPDF_LIBS=$pkg_cv_LIBQPDF_LIBS
17692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17693 $as_echo "yes" >&6; }
17694
17695 fi
17696
17697 # ================
17698 # Poppler features
17699 # ================
17700 ac_fn_cxx_check_header_mongrel "$LINENO" "poppler/cpp/poppler-version.h" "ac_cv_header_poppler_cpp_poppler_version_h" "$ac_includes_default"
17701 if test "x$ac_cv_header_poppler_cpp_poppler_version_h" = xyes; then :
17702
17703 $as_echo "#define HAVE_CPP_POPPLER_VERSION_H /**/" >>confdefs.h
17704
17705 fi
17706
17707
17708
17709 # ===================================
17710 # Check for large files and long long
17711 # ===================================
17712 # Check whether --enable-largefile was given.
17713 if test "${enable_largefile+set}" = set; then :
17714   enableval=$enable_largefile;
17715 fi
17716
17717 if test "$enable_largefile" != no; then
17718
17719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17720 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17721 if ${ac_cv_sys_largefile_CC+:} false; then :
17722   $as_echo_n "(cached) " >&6
17723 else
17724   ac_cv_sys_largefile_CC=no
17725      if test "$GCC" != yes; then
17726        ac_save_CC=$CC
17727        while :; do
17728          # IRIX 6.2 and later do not support large files by default,
17729          # so use the C compiler's -n32 option if that helps.
17730          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h.  */
17732 #include <sys/types.h>
17733  /* Check that off_t can represent 2**63 - 1 correctly.
17734     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17735     since some C++ compilers masquerading as C compilers
17736     incorrectly reject 9223372036854775807.  */
17737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17738   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17739                        && LARGE_OFF_T % 2147483647 == 1)
17740                       ? 1 : -1];
17741 int
17742 main ()
17743 {
17744
17745   ;
17746   return 0;
17747 }
17748 _ACEOF
17749          if ac_fn_cxx_try_compile "$LINENO"; then :
17750   break
17751 fi
17752 rm -f core conftest.err conftest.$ac_objext
17753          CC="$CC -n32"
17754          if ac_fn_cxx_try_compile "$LINENO"; then :
17755   ac_cv_sys_largefile_CC=' -n32'; break
17756 fi
17757 rm -f core conftest.err conftest.$ac_objext
17758          break
17759        done
17760        CC=$ac_save_CC
17761        rm -f conftest.$ac_ext
17762     fi
17763 fi
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17765 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17766   if test "$ac_cv_sys_largefile_CC" != no; then
17767     CC=$CC$ac_cv_sys_largefile_CC
17768   fi
17769
17770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17771 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17772 if ${ac_cv_sys_file_offset_bits+:} false; then :
17773   $as_echo_n "(cached) " >&6
17774 else
17775   while :; do
17776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h.  */
17778 #include <sys/types.h>
17779  /* Check that off_t can represent 2**63 - 1 correctly.
17780     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17781     since some C++ compilers masquerading as C compilers
17782     incorrectly reject 9223372036854775807.  */
17783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17784   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17785                        && LARGE_OFF_T % 2147483647 == 1)
17786                       ? 1 : -1];
17787 int
17788 main ()
17789 {
17790
17791   ;
17792   return 0;
17793 }
17794 _ACEOF
17795 if ac_fn_cxx_try_compile "$LINENO"; then :
17796   ac_cv_sys_file_offset_bits=no; break
17797 fi
17798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h.  */
17801 #define _FILE_OFFSET_BITS 64
17802 #include <sys/types.h>
17803  /* Check that off_t can represent 2**63 - 1 correctly.
17804     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17805     since some C++ compilers masquerading as C compilers
17806     incorrectly reject 9223372036854775807.  */
17807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17808   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17809                        && LARGE_OFF_T % 2147483647 == 1)
17810                       ? 1 : -1];
17811 int
17812 main ()
17813 {
17814
17815   ;
17816   return 0;
17817 }
17818 _ACEOF
17819 if ac_fn_cxx_try_compile "$LINENO"; then :
17820   ac_cv_sys_file_offset_bits=64; break
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17823   ac_cv_sys_file_offset_bits=unknown
17824   break
17825 done
17826 fi
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17828 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17829 case $ac_cv_sys_file_offset_bits in #(
17830   no | unknown) ;;
17831   *)
17832 cat >>confdefs.h <<_ACEOF
17833 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17834 _ACEOF
17835 ;;
17836 esac
17837 rm -rf conftest*
17838   if test $ac_cv_sys_file_offset_bits = unknown; then
17839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17840 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17841 if ${ac_cv_sys_large_files+:} false; then :
17842   $as_echo_n "(cached) " >&6
17843 else
17844   while :; do
17845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h.  */
17847 #include <sys/types.h>
17848  /* Check that off_t can represent 2**63 - 1 correctly.
17849     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17850     since some C++ compilers masquerading as C compilers
17851     incorrectly reject 9223372036854775807.  */
17852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17853   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17854                        && LARGE_OFF_T % 2147483647 == 1)
17855                       ? 1 : -1];
17856 int
17857 main ()
17858 {
17859
17860   ;
17861   return 0;
17862 }
17863 _ACEOF
17864 if ac_fn_cxx_try_compile "$LINENO"; then :
17865   ac_cv_sys_large_files=no; break
17866 fi
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h.  */
17870 #define _LARGE_FILES 1
17871 #include <sys/types.h>
17872  /* Check that off_t can represent 2**63 - 1 correctly.
17873     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17874     since some C++ compilers masquerading as C compilers
17875     incorrectly reject 9223372036854775807.  */
17876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17877   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17878                        && LARGE_OFF_T % 2147483647 == 1)
17879                       ? 1 : -1];
17880 int
17881 main ()
17882 {
17883
17884   ;
17885   return 0;
17886 }
17887 _ACEOF
17888 if ac_fn_cxx_try_compile "$LINENO"; then :
17889   ac_cv_sys_large_files=1; break
17890 fi
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892   ac_cv_sys_large_files=unknown
17893   break
17894 done
17895 fi
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17897 $as_echo "$ac_cv_sys_large_files" >&6; }
17898 case $ac_cv_sys_large_files in #(
17899   no | unknown) ;;
17900   *)
17901 cat >>confdefs.h <<_ACEOF
17902 #define _LARGE_FILES $ac_cv_sys_large_files
17903 _ACEOF
17904 ;;
17905 esac
17906 rm -rf conftest*
17907   fi
17908
17909
17910 fi
17911
17912 LARGEFILE=""
17913 if test x"$enable_largefile" != "xno"; then :
17914
17915         LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
17916         if test x"$ac_cv_sys_large_files" = "x1"; then :
17917   LARGEFILE="$LARGEFILE -D_LARGE_FILES"
17918 fi
17919         if test x"$ac_cv_sys_file_offset_bits" = "x64"; then :
17920   LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
17921 fi
17922
17923 fi
17924
17925
17926 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
17927 if test "x$ac_cv_type_long_long" = xyes; then :
17928   long_long_found=yes
17929 else
17930   long_long_found=no
17931 fi
17932
17933 if test x"$long_long_found" = "xyes"; then :
17934
17935
17936 $as_echo "#define HAVE_LONG_LONG /**/" >>confdefs.h
17937
17938
17939 fi
17940
17941 # ================
17942 # Check for pdf2ps
17943 # ================
17944
17945 # Check whether --with-pdftops was given.
17946 if test "${with_pdftops+set}" = set; then :
17947   withval=$with_pdftops; with_pdftops="$withval"
17948 else
17949   with_pdftops=gs
17950
17951 fi
17952
17953 case x$with_pdftops in #(
17954   xgs|xpdftops|xpdftocairo|xacroread) :
17955      ;; #(
17956   *) :
17957     as_fn_error $? "Unknown value of with-pdftops provided: $with_pdftops" "$LINENO" 5
17958  ;;
17959 esac
17960
17961 # Check whether --with-gs-path was given.
17962 if test "${with_gs_path+set}" = set; then :
17963   withval=$with_gs_path; with_gs_path="$withval"
17964 else
17965   with_gs_path=system
17966
17967 fi
17968
17969
17970 # Check whether --with-pdftops-path was given.
17971 if test "${with_pdftops_path+set}" = set; then :
17972   withval=$with_pdftops_path; with_pdftops_path="$withval"
17973 else
17974   with_pdftops_path=system
17975
17976 fi
17977
17978
17979 # Check whether --with-pdftocairo-path was given.
17980 if test "${with_pdftocairo_path+set}" = set; then :
17981   withval=$with_pdftocairo_path; with_pdftocairo_path="$withval"
17982 else
17983   with_pdftocairo_path=system
17984
17985 fi
17986
17987
17988 # Check whether --with-acroread-path was given.
17989 if test "${with_acroread_path+set}" = set; then :
17990   withval=$with_acroread_path; with_acroread_path="$withval"
17991 else
17992   with_acroread_path=system
17993
17994 fi
17995
17996
17997 # Check whether --with-pdftops-maxres was given.
17998 if test "${with_pdftops_maxres+set}" = set; then :
17999   withval=$with_pdftops_maxres; with_pdftops_maxres="$withval"
18000 else
18001   with_pdftops_maxres=1440
18002
18003 fi
18004
18005 case x$with_pdftops_maxres in #(
18006   x0|x75|x150|x300|x600|x1200|x2400|x4800|x90|x180|x360|x720|x1440|x2880|x5760) :
18007     CUPS_PDFTOPS_MAXRES=$with_pdftops_maxres ;; #(
18008   xunlimited) :
18009     CUPS_PDFTOPS_MAXRES=0 ;; #(
18010   *) :
18011     as_fn_error $? "Unknown value of with-pdftops-maxres provided: $with_pdftops" "$LINENO" 5
18012  ;;
18013 esac
18014
18015 if test "x$with_gs_path" != "xsystem"; then :
18016
18017         CUPS_GHOSTSCRIPT="$with_gs_path"
18018
18019 else
18020
18021         # Extract the first word of "gs", so it can be a program name with args.
18022 set dummy gs; ac_word=$2
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18024 $as_echo_n "checking for $ac_word... " >&6; }
18025 if ${ac_cv_path_CUPS_GHOSTSCRIPT+:} false; then :
18026   $as_echo_n "(cached) " >&6
18027 else
18028   case $CUPS_GHOSTSCRIPT in
18029   [\\/]* | ?:[\\/]*)
18030   ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
18031   ;;
18032   *)
18033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18034 for as_dir in $PATH
18035 do
18036   IFS=$as_save_IFS
18037   test -z "$as_dir" && as_dir=.
18038     for ac_exec_ext in '' $ac_executable_extensions; do
18039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18040     ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
18041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18042     break 2
18043   fi
18044 done
18045   done
18046 IFS=$as_save_IFS
18047
18048   test -z "$ac_cv_path_CUPS_GHOSTSCRIPT" && ac_cv_path_CUPS_GHOSTSCRIPT="as_fn_error $? "Required gs binary is missing. Please install ghostscript-gpl package." "$LINENO" 5"
18049   ;;
18050 esac
18051 fi
18052 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
18053 if test -n "$CUPS_GHOSTSCRIPT"; then
18054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
18055 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
18056 else
18057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18058 $as_echo "no" >&6; }
18059 fi
18060
18061
18062
18063 fi
18064 if test "x$CUPS_GHOSTSCRIPT" != "x"; then :
18065
18066
18067 $as_echo "#define HAVE_GHOSTSCRIPT /**/" >>confdefs.h
18068
18069         if test x"$with_pdftops" = xgs; then :
18070
18071 cat >>confdefs.h <<_ACEOF
18072 #define CUPS_PDFTOPS_RENDERER GS
18073 _ACEOF
18074
18075 fi
18076
18077         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gs supports the ps2write device" >&5
18078 $as_echo_n "checking whether gs supports the ps2write device... " >&6; }
18079         if `$CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write`; then :
18080
18081                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18082 $as_echo "yes" >&6; }
18083
18084 $as_echo "#define HAVE_GHOSTSCRIPT_PS2WRITE /**/" >>confdefs.h
18085
18086
18087 else
18088
18089                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18090 $as_echo "no" >&6; }
18091
18092 fi
18093
18094 else
18095
18096         CUPS_GHOSTSCRIPT="gs"
18097
18098 fi
18099
18100 if test "x$with_pdftops_path" != "xsystem"; then :
18101
18102         CUPS_PDFTOPS="$with_pdftops"
18103
18104 else
18105
18106         # Extract the first word of "pdftops", so it can be a program name with args.
18107 set dummy pdftops; ac_word=$2
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18109 $as_echo_n "checking for $ac_word... " >&6; }
18110 if ${ac_cv_path_CUPS_PDFTOPS+:} false; then :
18111   $as_echo_n "(cached) " >&6
18112 else
18113   case $CUPS_PDFTOPS in
18114   [\\/]* | ?:[\\/]*)
18115   ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
18116   ;;
18117   *)
18118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119 for as_dir in $PATH
18120 do
18121   IFS=$as_save_IFS
18122   test -z "$as_dir" && as_dir=.
18123     for ac_exec_ext in '' $ac_executable_extensions; do
18124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18125     ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
18126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18127     break 2
18128   fi
18129 done
18130   done
18131 IFS=$as_save_IFS
18132
18133   test -z "$ac_cv_path_CUPS_PDFTOPS" && ac_cv_path_CUPS_PDFTOPS="as_fn_error $? "Required pdftops is missing. Please install CUPS developer packages." "$LINENO" 5"
18134   ;;
18135 esac
18136 fi
18137 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
18138 if test -n "$CUPS_PDFTOPS"; then
18139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
18140 $as_echo "$CUPS_PDFTOPS" >&6; }
18141 else
18142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18143 $as_echo "no" >&6; }
18144 fi
18145
18146
18147
18148 fi
18149 if test "x$CUPS_PDFTOPS" != "x"; then :
18150
18151
18152 $as_echo "#define HAVE_POPPLER_PDFTOPS /**/" >>confdefs.h
18153
18154         if test x"$with_pdftops" = xpdftops; then :
18155
18156 cat >>confdefs.h <<_ACEOF
18157 #define CUPS_PDFTOPS_RENDERER PDFTOPS
18158 _ACEOF
18159
18160 fi
18161
18162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -origpagesizes" >&5
18163 $as_echo_n "checking whether pdftops supports -origpagesizes... " >&6; }
18164         if `$CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes`; then :
18165
18166                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18167 $as_echo "yes" >&6; }
18168
18169 $as_echo "#define HAVE_POPPLER_PDFTOPS_WITH_ORIGPAGESIZES  " >>confdefs.h
18170
18171
18172 else
18173
18174                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18175 $as_echo "no" >&6; }
18176
18177 fi
18178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -r" >&5
18179 $as_echo_n "checking whether pdftops supports -r... " >&6; }
18180         if `$CUPS_PDFTOPS -h 2>&1 | grep -q -- '-r '`; then :
18181
18182                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18183 $as_echo "yes" >&6; }
18184
18185 $as_echo "#define HAVE_POPPLER_PDFTOPS_WITH_RESOLUTION  " >>confdefs.h
18186
18187
18188 else
18189
18190                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18191 $as_echo "no" >&6; }
18192
18193 fi
18194
18195 else
18196
18197         CUPS_PDFTOPS="/usr/bin/pdftops"
18198
18199 fi
18200 if test "x$with_pdftocairo_path" != "xsystem"; then :
18201
18202         CUPS_PDFTOPS="$with_pdftocairo_path"
18203
18204 else
18205
18206         # Extract the first word of "pdftocairo", so it can be a program name with args.
18207 set dummy pdftocairo; ac_word=$2
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18209 $as_echo_n "checking for $ac_word... " >&6; }
18210 if ${ac_cv_path_CUPS_PDFTOCAIRO+:} false; then :
18211   $as_echo_n "(cached) " >&6
18212 else
18213   case $CUPS_PDFTOCAIRO in
18214   [\\/]* | ?:[\\/]*)
18215   ac_cv_path_CUPS_PDFTOCAIRO="$CUPS_PDFTOCAIRO" # Let the user override the test with a path.
18216   ;;
18217   *)
18218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18219 for as_dir in $PATH
18220 do
18221   IFS=$as_save_IFS
18222   test -z "$as_dir" && as_dir=.
18223     for ac_exec_ext in '' $ac_executable_extensions; do
18224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18225     ac_cv_path_CUPS_PDFTOCAIRO="$as_dir/$ac_word$ac_exec_ext"
18226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18227     break 2
18228   fi
18229 done
18230   done
18231 IFS=$as_save_IFS
18232
18233   test -z "$ac_cv_path_CUPS_PDFTOCAIRO" && ac_cv_path_CUPS_PDFTOCAIRO="as_fn_error $? "Required pdftocairo is missing. Please install Poppler developer packages." "$LINENO" 5"
18234   ;;
18235 esac
18236 fi
18237 CUPS_PDFTOCAIRO=$ac_cv_path_CUPS_PDFTOCAIRO
18238 if test -n "$CUPS_PDFTOCAIRO"; then
18239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOCAIRO" >&5
18240 $as_echo "$CUPS_PDFTOCAIRO" >&6; }
18241 else
18242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18243 $as_echo "no" >&6; }
18244 fi
18245
18246
18247
18248 fi
18249 if test "x$CUPS_PDFTOCAIRO" != "x"; then :
18250
18251
18252 $as_echo "#define HAVE_POPPLER_PDFTOCAIRO /**/" >>confdefs.h
18253
18254         if test x"$with_pdftops" = xpdftocairo; then :
18255
18256 cat >>confdefs.h <<_ACEOF
18257 #define CUPS_PDFTOPS_RENDERER PDFTOCAIRO
18258 _ACEOF
18259
18260 fi
18261
18262 else
18263
18264         CUPS_PDFTOCAIRO="pdftocairo"
18265
18266 fi
18267 if test "x$with_acroread_path" != "xsystem"; then :
18268
18269         CUPS_ACROREAD="$with_acroread_path"
18270
18271 else
18272
18273         # Extract the first word of "acroread", so it can be a program name with args.
18274 set dummy acroread; ac_word=$2
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18276 $as_echo_n "checking for $ac_word... " >&6; }
18277 if ${ac_cv_path_CUPS_ACROREAD+:} false; then :
18278   $as_echo_n "(cached) " >&6
18279 else
18280   case $CUPS_ACROREAD in
18281   [\\/]* | ?:[\\/]*)
18282   ac_cv_path_CUPS_ACROREAD="$CUPS_ACROREAD" # Let the user override the test with a path.
18283   ;;
18284   *)
18285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18286 for as_dir in $PATH
18287 do
18288   IFS=$as_save_IFS
18289   test -z "$as_dir" && as_dir=.
18290     for ac_exec_ext in '' $ac_executable_extensions; do
18291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18292     ac_cv_path_CUPS_ACROREAD="$as_dir/$ac_word$ac_exec_ext"
18293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18294     break 2
18295   fi
18296 done
18297   done
18298 IFS=$as_save_IFS
18299
18300   test -z "$ac_cv_path_CUPS_ACROREAD" && ac_cv_path_CUPS_ACROREAD="as_fn_error $? "Required acroread binary is missing. Please install acroread package." "$LINENO" 5"
18301   ;;
18302 esac
18303 fi
18304 CUPS_ACROREAD=$ac_cv_path_CUPS_ACROREAD
18305 if test -n "$CUPS_ACROREAD"; then
18306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_ACROREAD" >&5
18307 $as_echo "$CUPS_ACROREAD" >&6; }
18308 else
18309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 $as_echo "no" >&6; }
18311 fi
18312
18313
18314
18315 fi
18316 if test "x$CUPS_ACROREAD" != "x"; then :
18317
18318
18319 $as_echo "#define HAVE_ACROREAD /**/" >>confdefs.h
18320
18321         if test x"$with_pdftops" = xacroread; then :
18322
18323 cat >>confdefs.h <<_ACEOF
18324 #define CUPS_PDFTOPS_RENDERER ACROREAD
18325 _ACEOF
18326
18327 fi
18328
18329 else
18330
18331         CUPS_ACROREAD="acroread"
18332
18333 fi
18334
18335
18336 cat >>confdefs.h <<_ACEOF
18337 #define CUPS_GHOSTSCRIPT "$CUPS_GHOSTSCRIPT"
18338 _ACEOF
18339
18340
18341 cat >>confdefs.h <<_ACEOF
18342 #define CUPS_POPPLER_PDFTOPS "$CUPS_PDFTOPS"
18343 _ACEOF
18344
18345
18346 cat >>confdefs.h <<_ACEOF
18347 #define CUPS_POPPLER_PDFTOCAIRO "$CUPS_PDFTOCAIRO"
18348 _ACEOF
18349
18350
18351 cat >>confdefs.h <<_ACEOF
18352 #define CUPS_ACROREAD "$CUPS_ACROREAD"
18353 _ACEOF
18354
18355
18356 cat >>confdefs.h <<_ACEOF
18357 #define CUPS_PDFTOPS_MAX_RESOLUTION $CUPS_PDFTOPS_MAXRES
18358 _ACEOF
18359
18360
18361 # =============
18362 # Check for php
18363 # =============
18364 # NOTE: This stuff is broken, requires internal cups headers.
18365
18366 # Check whether --with-php was given.
18367 if test "${with_php+set}" = set; then :
18368   withval=$with_php; with_php="$withval"
18369 else
18370   with_php=no
18371
18372 fi
18373
18374
18375 # Check whether --with-php-config was given.
18376 if test "${with_php_config+set}" = set; then :
18377   withval=$with_php_config; with_php_config="$withval"
18378 else
18379   with_php_config=system
18380
18381 fi
18382
18383  if test "x$with_php" = "xyes"; then
18384   WITH_PHP_TRUE=
18385   WITH_PHP_FALSE='#'
18386 else
18387   WITH_PHP_TRUE='#'
18388   WITH_PHP_FALSE=
18389 fi
18390
18391 if test x"$with_php" = "xyes"; then :
18392
18393         if test "x$with_php_config" != "xsystem"; then :
18394
18395                 PHPCONFIG=$with_php_config
18396
18397 else
18398
18399                 # Extract the first word of "php-config", so it can be a program name with args.
18400 set dummy php-config; ac_word=$2
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18402 $as_echo_n "checking for $ac_word... " >&6; }
18403 if ${ac_cv_path_PHPCONFIG+:} false; then :
18404   $as_echo_n "(cached) " >&6
18405 else
18406   case $PHPCONFIG in
18407   [\\/]* | ?:[\\/]*)
18408   ac_cv_path_PHPCONFIG="$PHPCONFIG" # Let the user override the test with a path.
18409   ;;
18410   *)
18411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18412 for as_dir in $PATH
18413 do
18414   IFS=$as_save_IFS
18415   test -z "$as_dir" && as_dir=.
18416     for ac_exec_ext in '' $ac_executable_extensions; do
18417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18418     ac_cv_path_PHPCONFIG="$as_dir/$ac_word$ac_exec_ext"
18419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18420     break 2
18421   fi
18422 done
18423   done
18424 IFS=$as_save_IFS
18425
18426   ;;
18427 esac
18428 fi
18429 PHPCONFIG=$ac_cv_path_PHPCONFIG
18430 if test -n "$PHPCONFIG"; then
18431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCONFIG" >&5
18432 $as_echo "$PHPCONFIG" >&6; }
18433 else
18434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18435 $as_echo "no" >&6; }
18436 fi
18437
18438
18439                 if test -z "$PHPCONFIG"; then :
18440
18441                         as_fn_error $? "Required php-config is missing. Please install PHP developer packages." "$LINENO" 5
18442
18443 fi
18444
18445 fi
18446         PHPDIR="`$PHPCONFIG --extension-dir`"
18447
18448
18449 fi
18450
18451 # =========
18452 # Test ARGS
18453 # =========
18454
18455 # Check whether --with-test-font-path was given.
18456 if test "${with_test_font_path+set}" = set; then :
18457   withval=$with_test_font_path; with_test_font_path="$withval"
18458 else
18459   with_test_font_path="/usr/share/fonts/dejavu/DejaVuSans.ttf"
18460
18461 fi
18462
18463
18464 cat >>confdefs.h <<_ACEOF
18465 #define TESTFONT "$with_test_font_path"
18466 _ACEOF
18467
18468
18469 # ================
18470 # Check for cflags
18471 # ================
18472 # Check whether --enable-werror was given.
18473 if test "${enable_werror+set}" = set; then :
18474   enableval=$enable_werror; enable_werror="$enableval"
18475 else
18476   enable_werror=no
18477
18478 fi
18479
18480 if test x"$enable_werror" = "xyes"; then :
18481
18482         CFLAGS="$CFLAGS -Werror"
18483
18484 fi
18485 if test x"$GCC" = "xyes"; then :
18486
18487         # Be tough with warnings and produce less careless code
18488         CFLAGS="$CFLAGS -Wall -pedantic -std=gnu99"
18489         CXXFLAGS="$CXXFLAGS -Wall -pedantic" # -Weffc++" # TODO: enable when it does not print 1MB of warnings
18490
18491 fi
18492 CFLAGS="$CFLAGS -D_GNU_SOURCE"
18493 CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
18494
18495 # =======
18496 # gstopxl
18497 # =======
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
18499 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
18500 if ${ac_cv_path_SED+:} false; then :
18501   $as_echo_n "(cached) " >&6
18502 else
18503             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
18504      for ac_i in 1 2 3 4 5 6 7; do
18505        ac_script="$ac_script$as_nl$ac_script"
18506      done
18507      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
18508      { ac_script=; unset ac_script;}
18509      if test -z "$SED"; then
18510   ac_path_SED_found=false
18511   # Loop through the user's path and test for each of PROGNAME-LIST
18512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18513 for as_dir in $PATH
18514 do
18515   IFS=$as_save_IFS
18516   test -z "$as_dir" && as_dir=.
18517     for ac_prog in sed gsed; do
18518     for ac_exec_ext in '' $ac_executable_extensions; do
18519       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
18520       as_fn_executable_p "$ac_path_SED" || continue
18521 # Check for GNU ac_path_SED and select it if it is found.
18522   # Check for GNU $ac_path_SED
18523 case `"$ac_path_SED" --version 2>&1` in
18524 *GNU*)
18525   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
18526 *)
18527   ac_count=0
18528   $as_echo_n 0123456789 >"conftest.in"
18529   while :
18530   do
18531     cat "conftest.in" "conftest.in" >"conftest.tmp"
18532     mv "conftest.tmp" "conftest.in"
18533     cp "conftest.in" "conftest.nl"
18534     $as_echo '' >> "conftest.nl"
18535     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
18536     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18537     as_fn_arith $ac_count + 1 && ac_count=$as_val
18538     if test $ac_count -gt ${ac_path_SED_max-0}; then
18539       # Best one so far, save it but keep looking for a better one
18540       ac_cv_path_SED="$ac_path_SED"
18541       ac_path_SED_max=$ac_count
18542     fi
18543     # 10*(2^10) chars as input seems more than enough
18544     test $ac_count -gt 10 && break
18545   done
18546   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18547 esac
18548
18549       $ac_path_SED_found && break 3
18550     done
18551   done
18552   done
18553 IFS=$as_save_IFS
18554   if test -z "$ac_cv_path_SED"; then
18555     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
18556   fi
18557 else
18558   ac_cv_path_SED=$SED
18559 fi
18560
18561 fi
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
18563 $as_echo "$ac_cv_path_SED" >&6; }
18564  SED="$ac_cv_path_SED"
18565   rm -f conftest.sed
18566
18567 SED_EXTENDED_REGEX_OPT=-nre
18568 sed_variant=`sed --version 2>&1`
18569 sed_variant=`echo $sed_variant|sed -e 's/ .*//'`
18570 if test "$sed_variant" != GNU ; then
18571 SED_EXTENDED_REGEX_OPT=-nEe
18572 fi
18573
18574
18575
18576 # =====================
18577 # Prepare all .in files
18578 # =====================
18579 ac_config_files="$ac_config_files libcupsfilters.pc libfontembed.pc Makefile filter/gstopxl utils/cups-browsed utils/cups-browsed.conf"
18580
18581 cat >confcache <<\_ACEOF
18582 # This file is a shell script that caches the results of configure
18583 # tests run on this system so they can be shared between configure
18584 # scripts and configure runs, see configure's option --config-cache.
18585 # It is not useful on other systems.  If it contains results you don't
18586 # want to keep, you may remove or edit it.
18587 #
18588 # config.status only pays attention to the cache file if you give it
18589 # the --recheck option to rerun configure.
18590 #
18591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18593 # following values.
18594
18595 _ACEOF
18596
18597 # The following way of writing the cache mishandles newlines in values,
18598 # but we know of no workaround that is simple, portable, and efficient.
18599 # So, we kill variables containing newlines.
18600 # Ultrix sh set writes to stderr and can't be redirected directly,
18601 # and sets the high bit in the cache file unless we assign to the vars.
18602 (
18603   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18604     eval ac_val=\$$ac_var
18605     case $ac_val in #(
18606     *${as_nl}*)
18607       case $ac_var in #(
18608       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18610       esac
18611       case $ac_var in #(
18612       _ | IFS | as_nl) ;; #(
18613       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18614       *) { eval $ac_var=; unset $ac_var;} ;;
18615       esac ;;
18616     esac
18617   done
18618
18619   (set) 2>&1 |
18620     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18621     *${as_nl}ac_space=\ *)
18622       # `set' does not quote correctly, so add quotes: double-quote
18623       # substitution turns \\\\ into \\, and sed turns \\ into \.
18624       sed -n \
18625         "s/'/'\\\\''/g;
18626           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18627       ;; #(
18628     *)
18629       # `set' quotes correctly as required by POSIX, so do not add quotes.
18630       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18631       ;;
18632     esac |
18633     sort
18634 ) |
18635   sed '
18636      /^ac_cv_env_/b end
18637      t clear
18638      :clear
18639      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18640      t end
18641      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18642      :end' >>confcache
18643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18644   if test -w "$cache_file"; then
18645     if test "x$cache_file" != "x/dev/null"; then
18646       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18647 $as_echo "$as_me: updating cache $cache_file" >&6;}
18648       if test ! -f "$cache_file" || test -h "$cache_file"; then
18649         cat confcache >"$cache_file"
18650       else
18651         case $cache_file in #(
18652         */* | ?:*)
18653           mv -f confcache "$cache_file"$$ &&
18654           mv -f "$cache_file"$$ "$cache_file" ;; #(
18655         *)
18656           mv -f confcache "$cache_file" ;;
18657         esac
18658       fi
18659     fi
18660   else
18661     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18663   fi
18664 fi
18665 rm -f confcache
18666
18667 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18668 # Let make expand exec_prefix.
18669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18670
18671 DEFS=-DHAVE_CONFIG_H
18672
18673 ac_libobjs=
18674 ac_ltlibobjs=
18675 U=
18676 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18677   # 1. Remove the extension, and $U if already installed.
18678   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18679   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18680   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18681   #    will be set to the directory where LIBOBJS objects are built.
18682   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18683   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18684 done
18685 LIBOBJS=$ac_libobjs
18686
18687 LTLIBOBJS=$ac_ltlibobjs
18688
18689
18690  if test -n "$EXEEXT"; then
18691   am__EXEEXT_TRUE=
18692   am__EXEEXT_FALSE='#'
18693 else
18694   am__EXEEXT_TRUE='#'
18695   am__EXEEXT_FALSE=
18696 fi
18697
18698 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18699   as_fn_error $? "conditional \"AMDEP\" was never defined.
18700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18701 fi
18702 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18703   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18705 fi
18706 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18707   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18709 fi
18710 if test -z "${ENABLE_IMAGEFILTERS_TRUE}" && test -z "${ENABLE_IMAGEFILTERS_FALSE}"; then
18711   as_fn_error $? "conditional \"ENABLE_IMAGEFILTERS\" was never defined.
18712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18713 fi
18714 if test -z "${ENABLE_AVAHI_TRUE}" && test -z "${ENABLE_AVAHI_FALSE}"; then
18715   as_fn_error $? "conditional \"ENABLE_AVAHI\" was never defined.
18716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18717 fi
18718 if test -z "${RCLINKS_TRUE}" && test -z "${RCLINKS_FALSE}"; then
18719   as_fn_error $? "conditional \"RCLINKS\" was never defined.
18720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18721 fi
18722 if test -z "${WITH_PHP_TRUE}" && test -z "${WITH_PHP_FALSE}"; then
18723   as_fn_error $? "conditional \"WITH_PHP\" was never defined.
18724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18725 fi
18726
18727 : "${CONFIG_STATUS=./config.status}"
18728 ac_write_fail=0
18729 ac_clean_files_save=$ac_clean_files
18730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18732 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18733 as_write_fail=0
18734 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18735 #! $SHELL
18736 # Generated by $as_me.
18737 # Run this file to recreate the current configuration.
18738 # Compiler output produced by configure, useful for debugging
18739 # configure, is in config.log if it exists.
18740
18741 debug=false
18742 ac_cs_recheck=false
18743 ac_cs_silent=false
18744
18745 SHELL=\${CONFIG_SHELL-$SHELL}
18746 export SHELL
18747 _ASEOF
18748 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18749 ## -------------------- ##
18750 ## M4sh Initialization. ##
18751 ## -------------------- ##
18752
18753 # Be more Bourne compatible
18754 DUALCASE=1; export DUALCASE # for MKS sh
18755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18756   emulate sh
18757   NULLCMD=:
18758   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18759   # is contrary to our usage.  Disable this feature.
18760   alias -g '${1+"$@"}'='"$@"'
18761   setopt NO_GLOB_SUBST
18762 else
18763   case `(set -o) 2>/dev/null` in #(
18764   *posix*) :
18765     set -o posix ;; #(
18766   *) :
18767      ;;
18768 esac
18769 fi
18770
18771
18772 as_nl='
18773 '
18774 export as_nl
18775 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18776 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18779 # Prefer a ksh shell builtin over an external printf program on Solaris,
18780 # but without wasting forks for bash or zsh.
18781 if test -z "$BASH_VERSION$ZSH_VERSION" \
18782     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18783   as_echo='print -r --'
18784   as_echo_n='print -rn --'
18785 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18786   as_echo='printf %s\n'
18787   as_echo_n='printf %s'
18788 else
18789   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18790     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18791     as_echo_n='/usr/ucb/echo -n'
18792   else
18793     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18794     as_echo_n_body='eval
18795       arg=$1;
18796       case $arg in #(
18797       *"$as_nl"*)
18798         expr "X$arg" : "X\\(.*\\)$as_nl";
18799         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18800       esac;
18801       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18802     '
18803     export as_echo_n_body
18804     as_echo_n='sh -c $as_echo_n_body as_echo'
18805   fi
18806   export as_echo_body
18807   as_echo='sh -c $as_echo_body as_echo'
18808 fi
18809
18810 # The user is always right.
18811 if test "${PATH_SEPARATOR+set}" != set; then
18812   PATH_SEPARATOR=:
18813   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18814     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18815       PATH_SEPARATOR=';'
18816   }
18817 fi
18818
18819
18820 # IFS
18821 # We need space, tab and new line, in precisely that order.  Quoting is
18822 # there to prevent editors from complaining about space-tab.
18823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18824 # splitting by setting IFS to empty value.)
18825 IFS=" ""        $as_nl"
18826
18827 # Find who we are.  Look in the path if we contain no directory separator.
18828 as_myself=
18829 case $0 in #((
18830   *[\\/]* ) as_myself=$0 ;;
18831   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18832 for as_dir in $PATH
18833 do
18834   IFS=$as_save_IFS
18835   test -z "$as_dir" && as_dir=.
18836     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18837   done
18838 IFS=$as_save_IFS
18839
18840      ;;
18841 esac
18842 # We did not find ourselves, most probably we were run as `sh COMMAND'
18843 # in which case we are not to be found in the path.
18844 if test "x$as_myself" = x; then
18845   as_myself=$0
18846 fi
18847 if test ! -f "$as_myself"; then
18848   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18849   exit 1
18850 fi
18851
18852 # Unset variables that we do not need and which cause bugs (e.g. in
18853 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18854 # suppresses any "Segmentation fault" message there.  '((' could
18855 # trigger a bug in pdksh 5.2.14.
18856 for as_var in BASH_ENV ENV MAIL MAILPATH
18857 do eval test x\${$as_var+set} = xset \
18858   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18859 done
18860 PS1='$ '
18861 PS2='> '
18862 PS4='+ '
18863
18864 # NLS nuisances.
18865 LC_ALL=C
18866 export LC_ALL
18867 LANGUAGE=C
18868 export LANGUAGE
18869
18870 # CDPATH.
18871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18872
18873
18874 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18875 # ----------------------------------------
18876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18878 # script with STATUS, using 1 if that was 0.
18879 as_fn_error ()
18880 {
18881   as_status=$1; test $as_status -eq 0 && as_status=1
18882   if test "$4"; then
18883     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18884     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18885   fi
18886   $as_echo "$as_me: error: $2" >&2
18887   as_fn_exit $as_status
18888 } # as_fn_error
18889
18890
18891 # as_fn_set_status STATUS
18892 # -----------------------
18893 # Set $? to STATUS, without forking.
18894 as_fn_set_status ()
18895 {
18896   return $1
18897 } # as_fn_set_status
18898
18899 # as_fn_exit STATUS
18900 # -----------------
18901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18902 as_fn_exit ()
18903 {
18904   set +e
18905   as_fn_set_status $1
18906   exit $1
18907 } # as_fn_exit
18908
18909 # as_fn_unset VAR
18910 # ---------------
18911 # Portably unset VAR.
18912 as_fn_unset ()
18913 {
18914   { eval $1=; unset $1;}
18915 }
18916 as_unset=as_fn_unset
18917 # as_fn_append VAR VALUE
18918 # ----------------------
18919 # Append the text in VALUE to the end of the definition contained in VAR. Take
18920 # advantage of any shell optimizations that allow amortized linear growth over
18921 # repeated appends, instead of the typical quadratic growth present in naive
18922 # implementations.
18923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18924   eval 'as_fn_append ()
18925   {
18926     eval $1+=\$2
18927   }'
18928 else
18929   as_fn_append ()
18930   {
18931     eval $1=\$$1\$2
18932   }
18933 fi # as_fn_append
18934
18935 # as_fn_arith ARG...
18936 # ------------------
18937 # Perform arithmetic evaluation on the ARGs, and store the result in the
18938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18939 # must be portable across $(()) and expr.
18940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18941   eval 'as_fn_arith ()
18942   {
18943     as_val=$(( $* ))
18944   }'
18945 else
18946   as_fn_arith ()
18947   {
18948     as_val=`expr "$@" || test $? -eq 1`
18949   }
18950 fi # as_fn_arith
18951
18952
18953 if expr a : '\(a\)' >/dev/null 2>&1 &&
18954    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18955   as_expr=expr
18956 else
18957   as_expr=false
18958 fi
18959
18960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18961   as_basename=basename
18962 else
18963   as_basename=false
18964 fi
18965
18966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18967   as_dirname=dirname
18968 else
18969   as_dirname=false
18970 fi
18971
18972 as_me=`$as_basename -- "$0" ||
18973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18974          X"$0" : 'X\(//\)$' \| \
18975          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18976 $as_echo X/"$0" |
18977     sed '/^.*\/\([^/][^/]*\)\/*$/{
18978             s//\1/
18979             q
18980           }
18981           /^X\/\(\/\/\)$/{
18982             s//\1/
18983             q
18984           }
18985           /^X\/\(\/\).*/{
18986             s//\1/
18987             q
18988           }
18989           s/.*/./; q'`
18990
18991 # Avoid depending upon Character Ranges.
18992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18995 as_cr_digits='0123456789'
18996 as_cr_alnum=$as_cr_Letters$as_cr_digits
18997
18998 ECHO_C= ECHO_N= ECHO_T=
18999 case `echo -n x` in #(((((
19000 -n*)
19001   case `echo 'xy\c'` in
19002   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19003   xy)  ECHO_C='\c';;
19004   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19005        ECHO_T=' ';;
19006   esac;;
19007 *)
19008   ECHO_N='-n';;
19009 esac
19010
19011 rm -f conf$$ conf$$.exe conf$$.file
19012 if test -d conf$$.dir; then
19013   rm -f conf$$.dir/conf$$.file
19014 else
19015   rm -f conf$$.dir
19016   mkdir conf$$.dir 2>/dev/null
19017 fi
19018 if (echo >conf$$.file) 2>/dev/null; then
19019   if ln -s conf$$.file conf$$ 2>/dev/null; then
19020     as_ln_s='ln -s'
19021     # ... but there are two gotchas:
19022     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19023     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19024     # In both cases, we have to default to `cp -pR'.
19025     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19026       as_ln_s='cp -pR'
19027   elif ln conf$$.file conf$$ 2>/dev/null; then
19028     as_ln_s=ln
19029   else
19030     as_ln_s='cp -pR'
19031   fi
19032 else
19033   as_ln_s='cp -pR'
19034 fi
19035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19036 rmdir conf$$.dir 2>/dev/null
19037
19038
19039 # as_fn_mkdir_p
19040 # -------------
19041 # Create "$as_dir" as a directory, including parents if necessary.
19042 as_fn_mkdir_p ()
19043 {
19044
19045   case $as_dir in #(
19046   -*) as_dir=./$as_dir;;
19047   esac
19048   test -d "$as_dir" || eval $as_mkdir_p || {
19049     as_dirs=
19050     while :; do
19051       case $as_dir in #(
19052       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19053       *) as_qdir=$as_dir;;
19054       esac
19055       as_dirs="'$as_qdir' $as_dirs"
19056       as_dir=`$as_dirname -- "$as_dir" ||
19057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19058          X"$as_dir" : 'X\(//\)[^/]' \| \
19059          X"$as_dir" : 'X\(//\)$' \| \
19060          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19061 $as_echo X"$as_dir" |
19062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19063             s//\1/
19064             q
19065           }
19066           /^X\(\/\/\)[^/].*/{
19067             s//\1/
19068             q
19069           }
19070           /^X\(\/\/\)$/{
19071             s//\1/
19072             q
19073           }
19074           /^X\(\/\).*/{
19075             s//\1/
19076             q
19077           }
19078           s/.*/./; q'`
19079       test -d "$as_dir" && break
19080     done
19081     test -z "$as_dirs" || eval "mkdir $as_dirs"
19082   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19083
19084
19085 } # as_fn_mkdir_p
19086 if mkdir -p . 2>/dev/null; then
19087   as_mkdir_p='mkdir -p "$as_dir"'
19088 else
19089   test -d ./-p && rmdir ./-p
19090   as_mkdir_p=false
19091 fi
19092
19093
19094 # as_fn_executable_p FILE
19095 # -----------------------
19096 # Test if FILE is an executable regular file.
19097 as_fn_executable_p ()
19098 {
19099   test -f "$1" && test -x "$1"
19100 } # as_fn_executable_p
19101 as_test_x='test -x'
19102 as_executable_p=as_fn_executable_p
19103
19104 # Sed expression to map a string onto a valid CPP name.
19105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19106
19107 # Sed expression to map a string onto a valid variable name.
19108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19109
19110
19111 exec 6>&1
19112 ## ----------------------------------- ##
19113 ## Main body of $CONFIG_STATUS script. ##
19114 ## ----------------------------------- ##
19115 _ASEOF
19116 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19117
19118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19119 # Save the log message, to keep $0 and so on meaningful, and to
19120 # report actual input values of CONFIG_FILES etc. instead of their
19121 # values after options handling.
19122 ac_log="
19123 This file was extended by cups-filters $as_me 1.0.36, which was
19124 generated by GNU Autoconf 2.69.  Invocation command line was
19125
19126   CONFIG_FILES    = $CONFIG_FILES
19127   CONFIG_HEADERS  = $CONFIG_HEADERS
19128   CONFIG_LINKS    = $CONFIG_LINKS
19129   CONFIG_COMMANDS = $CONFIG_COMMANDS
19130   $ $0 $@
19131
19132 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19133 "
19134
19135 _ACEOF
19136
19137 case $ac_config_files in *"
19138 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19139 esac
19140
19141 case $ac_config_headers in *"
19142 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19143 esac
19144
19145
19146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19147 # Files that config.status was made for.
19148 config_files="$ac_config_files"
19149 config_headers="$ac_config_headers"
19150 config_commands="$ac_config_commands"
19151
19152 _ACEOF
19153
19154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19155 ac_cs_usage="\
19156 \`$as_me' instantiates files and other configuration actions
19157 from templates according to the current configuration.  Unless the files
19158 and actions are specified as TAGs, all are instantiated by default.
19159
19160 Usage: $0 [OPTION]... [TAG]...
19161
19162   -h, --help       print this help, then exit
19163   -V, --version    print version number and configuration settings, then exit
19164       --config     print configuration, then exit
19165   -q, --quiet, --silent
19166                    do not print progress messages
19167   -d, --debug      don't remove temporary files
19168       --recheck    update $as_me by reconfiguring in the same conditions
19169       --file=FILE[:TEMPLATE]
19170                    instantiate the configuration file FILE
19171       --header=FILE[:TEMPLATE]
19172                    instantiate the configuration header FILE
19173
19174 Configuration files:
19175 $config_files
19176
19177 Configuration headers:
19178 $config_headers
19179
19180 Configuration commands:
19181 $config_commands
19182
19183 Report bugs to the package provider."
19184
19185 _ACEOF
19186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19187 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19188 ac_cs_version="\\
19189 cups-filters config.status 1.0.36
19190 configured by $0, generated by GNU Autoconf 2.69,
19191   with options \\"\$ac_cs_config\\"
19192
19193 Copyright (C) 2012 Free Software Foundation, Inc.
19194 This config.status script is free software; the Free Software Foundation
19195 gives unlimited permission to copy, distribute and modify it."
19196
19197 ac_pwd='$ac_pwd'
19198 srcdir='$srcdir'
19199 INSTALL='$INSTALL'
19200 MKDIR_P='$MKDIR_P'
19201 AWK='$AWK'
19202 test -n "\$AWK" || AWK=awk
19203 _ACEOF
19204
19205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19206 # The default lists apply if the user does not specify any file.
19207 ac_need_defaults=:
19208 while test $# != 0
19209 do
19210   case $1 in
19211   --*=?*)
19212     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19213     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19214     ac_shift=:
19215     ;;
19216   --*=)
19217     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19218     ac_optarg=
19219     ac_shift=:
19220     ;;
19221   *)
19222     ac_option=$1
19223     ac_optarg=$2
19224     ac_shift=shift
19225     ;;
19226   esac
19227
19228   case $ac_option in
19229   # Handling of the options.
19230   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19231     ac_cs_recheck=: ;;
19232   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19233     $as_echo "$ac_cs_version"; exit ;;
19234   --config | --confi | --conf | --con | --co | --c )
19235     $as_echo "$ac_cs_config"; exit ;;
19236   --debug | --debu | --deb | --de | --d | -d )
19237     debug=: ;;
19238   --file | --fil | --fi | --f )
19239     $ac_shift
19240     case $ac_optarg in
19241     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19242     '') as_fn_error $? "missing file argument" ;;
19243     esac
19244     as_fn_append CONFIG_FILES " '$ac_optarg'"
19245     ac_need_defaults=false;;
19246   --header | --heade | --head | --hea )
19247     $ac_shift
19248     case $ac_optarg in
19249     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19250     esac
19251     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19252     ac_need_defaults=false;;
19253   --he | --h)
19254     # Conflict between --help and --header
19255     as_fn_error $? "ambiguous option: \`$1'
19256 Try \`$0 --help' for more information.";;
19257   --help | --hel | -h )
19258     $as_echo "$ac_cs_usage"; exit ;;
19259   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19260   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19261     ac_cs_silent=: ;;
19262
19263   # This is an error.
19264   -*) as_fn_error $? "unrecognized option: \`$1'
19265 Try \`$0 --help' for more information." ;;
19266
19267   *) as_fn_append ac_config_targets " $1"
19268      ac_need_defaults=false ;;
19269
19270   esac
19271   shift
19272 done
19273
19274 ac_configure_extra_args=
19275
19276 if $ac_cs_silent; then
19277   exec 6>/dev/null
19278   ac_configure_extra_args="$ac_configure_extra_args --silent"
19279 fi
19280
19281 _ACEOF
19282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19283 if \$ac_cs_recheck; then
19284   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19285   shift
19286   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19287   CONFIG_SHELL='$SHELL'
19288   export CONFIG_SHELL
19289   exec "\$@"
19290 fi
19291
19292 _ACEOF
19293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19294 exec 5>>config.log
19295 {
19296   echo
19297   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19298 ## Running $as_me. ##
19299 _ASBOX
19300   $as_echo "$ac_log"
19301 } >&5
19302
19303 _ACEOF
19304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19305 #
19306 # INIT-COMMANDS
19307 #
19308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19309
19310
19311 # The HP-UX ksh and POSIX shell print the target directory to stdout
19312 # if CDPATH is set.
19313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19314
19315 sed_quote_subst='$sed_quote_subst'
19316 double_quote_subst='$double_quote_subst'
19317 delay_variable_subst='$delay_variable_subst'
19318 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19319 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19321 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19322 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19323 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19326 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19327 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19328 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19329 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19330 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19331 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19332 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19333 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19334 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19335 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19336 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19337 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19338 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19339 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19340 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19341 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19342 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19343 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19344 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19345 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19346 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19347 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19348 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19349 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19350 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19351 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19352 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19353 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19354 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19355 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19356 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19357 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19358 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19359 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19360 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19361 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19362 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19363 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19364 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19365 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19366 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19367 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19368 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19369 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19370 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19371 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19372 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19373 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19374 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19375 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19376 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19377 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19378 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19379 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19380 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19381 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19382 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19383 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19384 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19385 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19386 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19387 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19388 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19389 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19390 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19391 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19392 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19393 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19394 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19395 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19396 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19397 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19398 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19399 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19400 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19401 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19402 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19403 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19404 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19405 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19406 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19407 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19408 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19409 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19410 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19411 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19412 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19413 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19414 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19415 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19416 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19417 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19418 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19419 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19420 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19421 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19422 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19423 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19424 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19425 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19426 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19427 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19428 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19429 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19430 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19431 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19432 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19433 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19434 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19435 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19436 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19437 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19438 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19439 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19440 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19441 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19442 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19443 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19444 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19445 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19446 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19447 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19448 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19449 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19450 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19451 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19452 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19453 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19454 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19455 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19456 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19457 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19458 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19459 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19460 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19461 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19462 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19463 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19464 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19465 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19466 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19467 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19468 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19469 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19470 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19471 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19472 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19473 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19474 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19475 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19476 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19477 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19478 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19479 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19480 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19481 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19482 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19483 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19484 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19485 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19486 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19487 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19488 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19489 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19490 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19491 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19492 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19493 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19494 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19495 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19496 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19497 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19498 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19499 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19500 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19501 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19502
19503 LTCC='$LTCC'
19504 LTCFLAGS='$LTCFLAGS'
19505 compiler='$compiler_DEFAULT'
19506
19507 # A function that is used when there is no print builtin or printf.
19508 func_fallback_echo ()
19509 {
19510   eval 'cat <<_LTECHO_EOF
19511 \$1
19512 _LTECHO_EOF'
19513 }
19514
19515 # Quote evaled strings.
19516 for var in SHELL \
19517 ECHO \
19518 PATH_SEPARATOR \
19519 SED \
19520 GREP \
19521 EGREP \
19522 FGREP \
19523 LD \
19524 NM \
19525 LN_S \
19526 lt_SP2NL \
19527 lt_NL2SP \
19528 reload_flag \
19529 OBJDUMP \
19530 deplibs_check_method \
19531 file_magic_cmd \
19532 file_magic_glob \
19533 want_nocaseglob \
19534 DLLTOOL \
19535 sharedlib_from_linklib_cmd \
19536 AR \
19537 AR_FLAGS \
19538 archiver_list_spec \
19539 STRIP \
19540 RANLIB \
19541 CC \
19542 CFLAGS \
19543 compiler \
19544 lt_cv_sys_global_symbol_pipe \
19545 lt_cv_sys_global_symbol_to_cdecl \
19546 lt_cv_sys_global_symbol_to_c_name_address \
19547 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19548 nm_file_list_spec \
19549 lt_prog_compiler_no_builtin_flag \
19550 lt_prog_compiler_pic \
19551 lt_prog_compiler_wl \
19552 lt_prog_compiler_static \
19553 lt_cv_prog_compiler_c_o \
19554 need_locks \
19555 MANIFEST_TOOL \
19556 DSYMUTIL \
19557 NMEDIT \
19558 LIPO \
19559 OTOOL \
19560 OTOOL64 \
19561 shrext_cmds \
19562 export_dynamic_flag_spec \
19563 whole_archive_flag_spec \
19564 compiler_needs_object \
19565 with_gnu_ld \
19566 allow_undefined_flag \
19567 no_undefined_flag \
19568 hardcode_libdir_flag_spec \
19569 hardcode_libdir_separator \
19570 exclude_expsyms \
19571 include_expsyms \
19572 file_list_spec \
19573 variables_saved_for_relink \
19574 libname_spec \
19575 library_names_spec \
19576 soname_spec \
19577 install_override_mode \
19578 finish_eval \
19579 old_striplib \
19580 striplib \
19581 compiler_lib_search_dirs \
19582 predep_objects \
19583 postdep_objects \
19584 predeps \
19585 postdeps \
19586 compiler_lib_search_path \
19587 LD_CXX \
19588 reload_flag_CXX \
19589 compiler_CXX \
19590 lt_prog_compiler_no_builtin_flag_CXX \
19591 lt_prog_compiler_pic_CXX \
19592 lt_prog_compiler_wl_CXX \
19593 lt_prog_compiler_static_CXX \
19594 lt_cv_prog_compiler_c_o_CXX \
19595 export_dynamic_flag_spec_CXX \
19596 whole_archive_flag_spec_CXX \
19597 compiler_needs_object_CXX \
19598 with_gnu_ld_CXX \
19599 allow_undefined_flag_CXX \
19600 no_undefined_flag_CXX \
19601 hardcode_libdir_flag_spec_CXX \
19602 hardcode_libdir_separator_CXX \
19603 exclude_expsyms_CXX \
19604 include_expsyms_CXX \
19605 file_list_spec_CXX \
19606 compiler_lib_search_dirs_CXX \
19607 predep_objects_CXX \
19608 postdep_objects_CXX \
19609 predeps_CXX \
19610 postdeps_CXX \
19611 compiler_lib_search_path_CXX; do
19612     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19613     *[\\\\\\\`\\"\\\$]*)
19614       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19615       ;;
19616     *)
19617       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19618       ;;
19619     esac
19620 done
19621
19622 # Double-quote double-evaled strings.
19623 for var in reload_cmds \
19624 old_postinstall_cmds \
19625 old_postuninstall_cmds \
19626 old_archive_cmds \
19627 extract_expsyms_cmds \
19628 old_archive_from_new_cmds \
19629 old_archive_from_expsyms_cmds \
19630 archive_cmds \
19631 archive_expsym_cmds \
19632 module_cmds \
19633 module_expsym_cmds \
19634 export_symbols_cmds \
19635 prelink_cmds \
19636 postlink_cmds \
19637 postinstall_cmds \
19638 postuninstall_cmds \
19639 finish_cmds \
19640 sys_lib_search_path_spec \
19641 sys_lib_dlsearch_path_spec \
19642 reload_cmds_CXX \
19643 old_archive_cmds_CXX \
19644 old_archive_from_new_cmds_CXX \
19645 old_archive_from_expsyms_cmds_CXX \
19646 archive_cmds_CXX \
19647 archive_expsym_cmds_CXX \
19648 module_cmds_CXX \
19649 module_expsym_cmds_CXX \
19650 export_symbols_cmds_CXX \
19651 prelink_cmds_CXX \
19652 postlink_cmds_CXX; do
19653     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19654     *[\\\\\\\`\\"\\\$]*)
19655       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19656       ;;
19657     *)
19658       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19659       ;;
19660     esac
19661 done
19662
19663 ac_aux_dir='$ac_aux_dir'
19664 xsi_shell='$xsi_shell'
19665 lt_shell_append='$lt_shell_append'
19666
19667 # See if we are running on zsh, and set the options which allow our
19668 # commands through without removal of \ escapes INIT.
19669 if test -n "\${ZSH_VERSION+set}" ; then
19670    setopt NO_GLOB_SUBST
19671 fi
19672
19673
19674     PACKAGE='$PACKAGE'
19675     VERSION='$VERSION'
19676     TIMESTAMP='$TIMESTAMP'
19677     RM='$RM'
19678     ofile='$ofile'
19679
19680
19681
19682
19683
19684
19685 _ACEOF
19686
19687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19688
19689 # Handling of arguments.
19690 for ac_config_target in $ac_config_targets
19691 do
19692   case $ac_config_target in
19693     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19694     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19695     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19696     "libcupsfilters.pc") CONFIG_FILES="$CONFIG_FILES libcupsfilters.pc" ;;
19697     "libfontembed.pc") CONFIG_FILES="$CONFIG_FILES libfontembed.pc" ;;
19698     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19699     "filter/gstopxl") CONFIG_FILES="$CONFIG_FILES filter/gstopxl" ;;
19700     "utils/cups-browsed") CONFIG_FILES="$CONFIG_FILES utils/cups-browsed" ;;
19701     "utils/cups-browsed.conf") CONFIG_FILES="$CONFIG_FILES utils/cups-browsed.conf" ;;
19702
19703   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19704   esac
19705 done
19706
19707
19708 # If the user did not use the arguments to specify the items to instantiate,
19709 # then the envvar interface is used.  Set only those that are not.
19710 # We use the long form for the default assignment because of an extremely
19711 # bizarre bug on SunOS 4.1.3.
19712 if $ac_need_defaults; then
19713   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19714   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19715   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19716 fi
19717
19718 # Have a temporary directory for convenience.  Make it in the build tree
19719 # simply because there is no reason against having it here, and in addition,
19720 # creating and moving files from /tmp can sometimes cause problems.
19721 # Hook for its removal unless debugging.
19722 # Note that there is a small window in which the directory will not be cleaned:
19723 # after its creation but before its name has been assigned to `$tmp'.
19724 $debug ||
19725 {
19726   tmp= ac_tmp=
19727   trap 'exit_status=$?
19728   : "${ac_tmp:=$tmp}"
19729   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19730 ' 0
19731   trap 'as_fn_exit 1' 1 2 13 15
19732 }
19733 # Create a (secure) tmp directory for tmp files.
19734
19735 {
19736   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19737   test -d "$tmp"
19738 }  ||
19739 {
19740   tmp=./conf$$-$RANDOM
19741   (umask 077 && mkdir "$tmp")
19742 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19743 ac_tmp=$tmp
19744
19745 # Set up the scripts for CONFIG_FILES section.
19746 # No need to generate them if there are no CONFIG_FILES.
19747 # This happens for instance with `./config.status config.h'.
19748 if test -n "$CONFIG_FILES"; then
19749
19750
19751 ac_cr=`echo X | tr X '\015'`
19752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19753 # But we know of no other shell where ac_cr would be empty at this
19754 # point, so we can use a bashism as a fallback.
19755 if test "x$ac_cr" = x; then
19756   eval ac_cr=\$\'\\r\'
19757 fi
19758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19760   ac_cs_awk_cr='\\r'
19761 else
19762   ac_cs_awk_cr=$ac_cr
19763 fi
19764
19765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19766 _ACEOF
19767
19768
19769 {
19770   echo "cat >conf$$subs.awk <<_ACEOF" &&
19771   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19772   echo "_ACEOF"
19773 } >conf$$subs.sh ||
19774   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19775 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19776 ac_delim='%!_!# '
19777 for ac_last_try in false false false false false :; do
19778   . ./conf$$subs.sh ||
19779     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19780
19781   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19782   if test $ac_delim_n = $ac_delim_num; then
19783     break
19784   elif $ac_last_try; then
19785     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19786   else
19787     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19788   fi
19789 done
19790 rm -f conf$$subs.sh
19791
19792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19793 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19794 _ACEOF
19795 sed -n '
19796 h
19797 s/^/S["/; s/!.*/"]=/
19798 p
19799 g
19800 s/^[^!]*!//
19801 :repl
19802 t repl
19803 s/'"$ac_delim"'$//
19804 t delim
19805 :nl
19806 h
19807 s/\(.\{148\}\)..*/\1/
19808 t more1
19809 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19810 p
19811 n
19812 b repl
19813 :more1
19814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19815 p
19816 g
19817 s/.\{148\}//
19818 t nl
19819 :delim
19820 h
19821 s/\(.\{148\}\)..*/\1/
19822 t more2
19823 s/["\\]/\\&/g; s/^/"/; s/$/"/
19824 p
19825 b
19826 :more2
19827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19828 p
19829 g
19830 s/.\{148\}//
19831 t delim
19832 ' <conf$$subs.awk | sed '
19833 /^[^""]/{
19834   N
19835   s/\n//
19836 }
19837 ' >>$CONFIG_STATUS || ac_write_fail=1
19838 rm -f conf$$subs.awk
19839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19840 _ACAWK
19841 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19842   for (key in S) S_is_set[key] = 1
19843   FS = "\a"
19844
19845 }
19846 {
19847   line = $ 0
19848   nfields = split(line, field, "@")
19849   substed = 0
19850   len = length(field[1])
19851   for (i = 2; i < nfields; i++) {
19852     key = field[i]
19853     keylen = length(key)
19854     if (S_is_set[key]) {
19855       value = S[key]
19856       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19857       len += length(value) + length(field[++i])
19858       substed = 1
19859     } else
19860       len += 1 + keylen
19861   }
19862
19863   print line
19864 }
19865
19866 _ACAWK
19867 _ACEOF
19868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19870   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19871 else
19872   cat
19873 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19874   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19875 _ACEOF
19876
19877 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19878 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19879 # trailing colons and then remove the whole line if VPATH becomes empty
19880 # (actually we leave an empty line to preserve line numbers).
19881 if test "x$srcdir" = x.; then
19882   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19883 h
19884 s///
19885 s/^/:/
19886 s/[      ]*$/:/
19887 s/:\$(srcdir):/:/g
19888 s/:\${srcdir}:/:/g
19889 s/:@srcdir@:/:/g
19890 s/^:*//
19891 s/:*$//
19892 x
19893 s/\(=[   ]*\).*/\1/
19894 G
19895 s/\n//
19896 s/^[^=]*=[       ]*$//
19897 }'
19898 fi
19899
19900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19901 fi # test -n "$CONFIG_FILES"
19902
19903 # Set up the scripts for CONFIG_HEADERS section.
19904 # No need to generate them if there are no CONFIG_HEADERS.
19905 # This happens for instance with `./config.status Makefile'.
19906 if test -n "$CONFIG_HEADERS"; then
19907 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19908 BEGIN {
19909 _ACEOF
19910
19911 # Transform confdefs.h into an awk script `defines.awk', embedded as
19912 # here-document in config.status, that substitutes the proper values into
19913 # config.h.in to produce config.h.
19914
19915 # Create a delimiter string that does not exist in confdefs.h, to ease
19916 # handling of long lines.
19917 ac_delim='%!_!# '
19918 for ac_last_try in false false :; do
19919   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19920   if test -z "$ac_tt"; then
19921     break
19922   elif $ac_last_try; then
19923     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19924   else
19925     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19926   fi
19927 done
19928
19929 # For the awk script, D is an array of macro values keyed by name,
19930 # likewise P contains macro parameters if any.  Preserve backslash
19931 # newline sequences.
19932
19933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19934 sed -n '
19935 s/.\{148\}/&'"$ac_delim"'/g
19936 t rset
19937 :rset
19938 s/^[     ]*#[    ]*define[       ][      ]*/ /
19939 t def
19940 d
19941 :def
19942 s/\\$//
19943 t bsnl
19944 s/["\\]/\\&/g
19945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19946 D["\1"]=" \3"/p
19947 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19948 d
19949 :bsnl
19950 s/["\\]/\\&/g
19951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19952 D["\1"]=" \3\\\\\\n"\\/p
19953 t cont
19954 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19955 t cont
19956 d
19957 :cont
19958 n
19959 s/.\{148\}/&'"$ac_delim"'/g
19960 t clear
19961 :clear
19962 s/\\$//
19963 t bsnlc
19964 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19965 d
19966 :bsnlc
19967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19968 b cont
19969 ' <confdefs.h | sed '
19970 s/'"$ac_delim"'/"\\\
19971 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19972
19973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19974   for (key in D) D_is_set[key] = 1
19975   FS = "\a"
19976 }
19977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19978   line = \$ 0
19979   split(line, arg, " ")
19980   if (arg[1] == "#") {
19981     defundef = arg[2]
19982     mac1 = arg[3]
19983   } else {
19984     defundef = substr(arg[1], 2)
19985     mac1 = arg[2]
19986   }
19987   split(mac1, mac2, "(") #)
19988   macro = mac2[1]
19989   prefix = substr(line, 1, index(line, defundef) - 1)
19990   if (D_is_set[macro]) {
19991     # Preserve the white space surrounding the "#".
19992     print prefix "define", macro P[macro] D[macro]
19993     next
19994   } else {
19995     # Replace #undef with comments.  This is necessary, for example,
19996     # in the case of _POSIX_SOURCE, which is predefined and required
19997     # on some systems where configure will not decide to define it.
19998     if (defundef == "undef") {
19999       print "/*", prefix defundef, macro, "*/"
20000       next
20001     }
20002   }
20003 }
20004 { print }
20005 _ACAWK
20006 _ACEOF
20007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20008   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20009 fi # test -n "$CONFIG_HEADERS"
20010
20011
20012 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20013 shift
20014 for ac_tag
20015 do
20016   case $ac_tag in
20017   :[FHLC]) ac_mode=$ac_tag; continue;;
20018   esac
20019   case $ac_mode$ac_tag in
20020   :[FHL]*:*);;
20021   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20022   :[FH]-) ac_tag=-:-;;
20023   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20024   esac
20025   ac_save_IFS=$IFS
20026   IFS=:
20027   set x $ac_tag
20028   IFS=$ac_save_IFS
20029   shift
20030   ac_file=$1
20031   shift
20032
20033   case $ac_mode in
20034   :L) ac_source=$1;;
20035   :[FH])
20036     ac_file_inputs=
20037     for ac_f
20038     do
20039       case $ac_f in
20040       -) ac_f="$ac_tmp/stdin";;
20041       *) # Look for the file first in the build tree, then in the source tree
20042          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20043          # because $ac_f cannot contain `:'.
20044          test -f "$ac_f" ||
20045            case $ac_f in
20046            [\\/$]*) false;;
20047            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20048            esac ||
20049            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20050       esac
20051       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20052       as_fn_append ac_file_inputs " '$ac_f'"
20053     done
20054
20055     # Let's still pretend it is `configure' which instantiates (i.e., don't
20056     # use $as_me), people would be surprised to read:
20057     #    /* config.h.  Generated by config.status.  */
20058     configure_input='Generated from '`
20059           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20060         `' by configure.'
20061     if test x"$ac_file" != x-; then
20062       configure_input="$ac_file.  $configure_input"
20063       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20064 $as_echo "$as_me: creating $ac_file" >&6;}
20065     fi
20066     # Neutralize special characters interpreted by sed in replacement strings.
20067     case $configure_input in #(
20068     *\&* | *\|* | *\\* )
20069        ac_sed_conf_input=`$as_echo "$configure_input" |
20070        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20071     *) ac_sed_conf_input=$configure_input;;
20072     esac
20073
20074     case $ac_tag in
20075     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20076       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20077     esac
20078     ;;
20079   esac
20080
20081   ac_dir=`$as_dirname -- "$ac_file" ||
20082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20083          X"$ac_file" : 'X\(//\)[^/]' \| \
20084          X"$ac_file" : 'X\(//\)$' \| \
20085          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20086 $as_echo X"$ac_file" |
20087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20088             s//\1/
20089             q
20090           }
20091           /^X\(\/\/\)[^/].*/{
20092             s//\1/
20093             q
20094           }
20095           /^X\(\/\/\)$/{
20096             s//\1/
20097             q
20098           }
20099           /^X\(\/\).*/{
20100             s//\1/
20101             q
20102           }
20103           s/.*/./; q'`
20104   as_dir="$ac_dir"; as_fn_mkdir_p
20105   ac_builddir=.
20106
20107 case "$ac_dir" in
20108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20109 *)
20110   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20111   # A ".." for each directory in $ac_dir_suffix.
20112   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20113   case $ac_top_builddir_sub in
20114   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20115   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20116   esac ;;
20117 esac
20118 ac_abs_top_builddir=$ac_pwd
20119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20120 # for backward compatibility:
20121 ac_top_builddir=$ac_top_build_prefix
20122
20123 case $srcdir in
20124   .)  # We are building in place.
20125     ac_srcdir=.
20126     ac_top_srcdir=$ac_top_builddir_sub
20127     ac_abs_top_srcdir=$ac_pwd ;;
20128   [\\/]* | ?:[\\/]* )  # Absolute name.
20129     ac_srcdir=$srcdir$ac_dir_suffix;
20130     ac_top_srcdir=$srcdir
20131     ac_abs_top_srcdir=$srcdir ;;
20132   *) # Relative name.
20133     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20134     ac_top_srcdir=$ac_top_build_prefix$srcdir
20135     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20136 esac
20137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20138
20139
20140   case $ac_mode in
20141   :F)
20142   #
20143   # CONFIG_FILE
20144   #
20145
20146   case $INSTALL in
20147   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20148   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20149   esac
20150   ac_MKDIR_P=$MKDIR_P
20151   case $MKDIR_P in
20152   [\\/$]* | ?:[\\/]* ) ;;
20153   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20154   esac
20155 _ACEOF
20156
20157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20158 # If the template does not know about datarootdir, expand it.
20159 # FIXME: This hack should be removed a few years after 2.60.
20160 ac_datarootdir_hack=; ac_datarootdir_seen=
20161 ac_sed_dataroot='
20162 /datarootdir/ {
20163   p
20164   q
20165 }
20166 /@datadir@/p
20167 /@docdir@/p
20168 /@infodir@/p
20169 /@localedir@/p
20170 /@mandir@/p'
20171 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20172 *datarootdir*) ac_datarootdir_seen=yes;;
20173 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20174   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20175 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20176 _ACEOF
20177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20178   ac_datarootdir_hack='
20179   s&@datadir@&$datadir&g
20180   s&@docdir@&$docdir&g
20181   s&@infodir@&$infodir&g
20182   s&@localedir@&$localedir&g
20183   s&@mandir@&$mandir&g
20184   s&\\\${datarootdir}&$datarootdir&g' ;;
20185 esac
20186 _ACEOF
20187
20188 # Neutralize VPATH when `$srcdir' = `.'.
20189 # Shell code in configure.ac might set extrasub.
20190 # FIXME: do we really want to maintain this feature?
20191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20192 ac_sed_extra="$ac_vpsub
20193 $extrasub
20194 _ACEOF
20195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20196 :t
20197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20198 s|@configure_input@|$ac_sed_conf_input|;t t
20199 s&@top_builddir@&$ac_top_builddir_sub&;t t
20200 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20201 s&@srcdir@&$ac_srcdir&;t t
20202 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20203 s&@top_srcdir@&$ac_top_srcdir&;t t
20204 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20205 s&@builddir@&$ac_builddir&;t t
20206 s&@abs_builddir@&$ac_abs_builddir&;t t
20207 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20208 s&@INSTALL@&$ac_INSTALL&;t t
20209 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20210 $ac_datarootdir_hack
20211 "
20212 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20213   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20214
20215 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20216   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20217   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20218       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20219   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20220 which seems to be undefined.  Please make sure it is defined" >&5
20221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20222 which seems to be undefined.  Please make sure it is defined" >&2;}
20223
20224   rm -f "$ac_tmp/stdin"
20225   case $ac_file in
20226   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20227   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20228   esac \
20229   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20230  ;;
20231   :H)
20232   #
20233   # CONFIG_HEADER
20234   #
20235   if test x"$ac_file" != x-; then
20236     {
20237       $as_echo "/* $configure_input  */" \
20238       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20239     } >"$ac_tmp/config.h" \
20240       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20241     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20242       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20243 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20244     else
20245       rm -f "$ac_file"
20246       mv "$ac_tmp/config.h" "$ac_file" \
20247         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20248     fi
20249   else
20250     $as_echo "/* $configure_input  */" \
20251       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20252       || as_fn_error $? "could not create -" "$LINENO" 5
20253   fi
20254 # Compute "$ac_file"'s index in $config_headers.
20255 _am_arg="$ac_file"
20256 _am_stamp_count=1
20257 for _am_header in $config_headers :; do
20258   case $_am_header in
20259     $_am_arg | $_am_arg:* )
20260       break ;;
20261     * )
20262       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20263   esac
20264 done
20265 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20266 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20267          X"$_am_arg" : 'X\(//\)[^/]' \| \
20268          X"$_am_arg" : 'X\(//\)$' \| \
20269          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20270 $as_echo X"$_am_arg" |
20271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20272             s//\1/
20273             q
20274           }
20275           /^X\(\/\/\)[^/].*/{
20276             s//\1/
20277             q
20278           }
20279           /^X\(\/\/\)$/{
20280             s//\1/
20281             q
20282           }
20283           /^X\(\/\).*/{
20284             s//\1/
20285             q
20286           }
20287           s/.*/./; q'`/stamp-h$_am_stamp_count
20288  ;;
20289
20290   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20291 $as_echo "$as_me: executing $ac_file commands" >&6;}
20292  ;;
20293   esac
20294
20295
20296   case $ac_file$ac_mode in
20297     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20298   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20299   # are listed without --file.  Let's play safe and only enable the eval
20300   # if we detect the quoting.
20301   case $CONFIG_FILES in
20302   *\'*) eval set x "$CONFIG_FILES" ;;
20303   *)   set x $CONFIG_FILES ;;
20304   esac
20305   shift
20306   for mf
20307   do
20308     # Strip MF so we end up with the name of the file.
20309     mf=`echo "$mf" | sed -e 's/:.*$//'`
20310     # Check whether this is an Automake generated Makefile or not.
20311     # We used to match only the files named `Makefile.in', but
20312     # some people rename them; so instead we look at the file content.
20313     # Grep'ing the first line is not enough: some people post-process
20314     # each Makefile.in and add a new line on top of each file to say so.
20315     # Grep'ing the whole file is not good either: AIX grep has a line
20316     # limit of 2048, but all sed's we know have understand at least 4000.
20317     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20318       dirpart=`$as_dirname -- "$mf" ||
20319 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20320          X"$mf" : 'X\(//\)[^/]' \| \
20321          X"$mf" : 'X\(//\)$' \| \
20322          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20323 $as_echo X"$mf" |
20324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20325             s//\1/
20326             q
20327           }
20328           /^X\(\/\/\)[^/].*/{
20329             s//\1/
20330             q
20331           }
20332           /^X\(\/\/\)$/{
20333             s//\1/
20334             q
20335           }
20336           /^X\(\/\).*/{
20337             s//\1/
20338             q
20339           }
20340           s/.*/./; q'`
20341     else
20342       continue
20343     fi
20344     # Extract the definition of DEPDIR, am__include, and am__quote
20345     # from the Makefile without running `make'.
20346     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20347     test -z "$DEPDIR" && continue
20348     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20349     test -z "am__include" && continue
20350     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20351     # When using ansi2knr, U may be empty or an underscore; expand it
20352     U=`sed -n 's/^U = //p' < "$mf"`
20353     # Find all dependency output files, they are included files with
20354     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20355     # simplest approach to changing $(DEPDIR) to its actual value in the
20356     # expansion.
20357     for file in `sed -n "
20358       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20359          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20360       # Make sure the directory exists.
20361       test -f "$dirpart/$file" && continue
20362       fdir=`$as_dirname -- "$file" ||
20363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20364          X"$file" : 'X\(//\)[^/]' \| \
20365          X"$file" : 'X\(//\)$' \| \
20366          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20367 $as_echo X"$file" |
20368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20369             s//\1/
20370             q
20371           }
20372           /^X\(\/\/\)[^/].*/{
20373             s//\1/
20374             q
20375           }
20376           /^X\(\/\/\)$/{
20377             s//\1/
20378             q
20379           }
20380           /^X\(\/\).*/{
20381             s//\1/
20382             q
20383           }
20384           s/.*/./; q'`
20385       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20386       # echo "creating $dirpart/$file"
20387       echo '# dummy' > "$dirpart/$file"
20388     done
20389   done
20390 }
20391  ;;
20392     "libtool":C)
20393
20394     # See if we are running on zsh, and set the options which allow our
20395     # commands through without removal of \ escapes.
20396     if test -n "${ZSH_VERSION+set}" ; then
20397       setopt NO_GLOB_SUBST
20398     fi
20399
20400     cfgfile="${ofile}T"
20401     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20402     $RM "$cfgfile"
20403
20404     cat <<_LT_EOF >> "$cfgfile"
20405 #! $SHELL
20406
20407 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20408 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20411 #
20412 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20413 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20414 #                 Foundation, Inc.
20415 #   Written by Gordon Matzigkeit, 1996
20416 #
20417 #   This file is part of GNU Libtool.
20418 #
20419 # GNU Libtool is free software; you can redistribute it and/or
20420 # modify it under the terms of the GNU General Public License as
20421 # published by the Free Software Foundation; either version 2 of
20422 # the License, or (at your option) any later version.
20423 #
20424 # As a special exception to the GNU General Public License,
20425 # if you distribute this file as part of a program or library that
20426 # is built using GNU Libtool, you may include this file under the
20427 # same distribution terms that you use for the rest of that program.
20428 #
20429 # GNU Libtool is distributed in the hope that it will be useful,
20430 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20432 # GNU General Public License for more details.
20433 #
20434 # You should have received a copy of the GNU General Public License
20435 # along with GNU Libtool; see the file COPYING.  If not, a copy
20436 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20437 # obtained by writing to the Free Software Foundation, Inc.,
20438 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20439
20440
20441 # The names of the tagged configurations supported by this script.
20442 available_tags="CXX "
20443
20444 # ### BEGIN LIBTOOL CONFIG
20445
20446 # Which release of libtool.m4 was used?
20447 macro_version=$macro_version
20448 macro_revision=$macro_revision
20449
20450 # Whether or not to build shared libraries.
20451 build_libtool_libs=$enable_shared
20452
20453 # Whether or not to build static libraries.
20454 build_old_libs=$enable_static
20455
20456 # What type of objects to build.
20457 pic_mode=$pic_mode
20458
20459 # Whether or not to optimize for fast installation.
20460 fast_install=$enable_fast_install
20461
20462 # Shell to use when invoking shell scripts.
20463 SHELL=$lt_SHELL
20464
20465 # An echo program that protects backslashes.
20466 ECHO=$lt_ECHO
20467
20468 # The PATH separator for the build system.
20469 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20470
20471 # The host system.
20472 host_alias=$host_alias
20473 host=$host
20474 host_os=$host_os
20475
20476 # The build system.
20477 build_alias=$build_alias
20478 build=$build
20479 build_os=$build_os
20480
20481 # A sed program that does not truncate output.
20482 SED=$lt_SED
20483
20484 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20485 Xsed="\$SED -e 1s/^X//"
20486
20487 # A grep program that handles long lines.
20488 GREP=$lt_GREP
20489
20490 # An ERE matcher.
20491 EGREP=$lt_EGREP
20492
20493 # A literal string matcher.
20494 FGREP=$lt_FGREP
20495
20496 # A BSD- or MS-compatible name lister.
20497 NM=$lt_NM
20498
20499 # Whether we need soft or hard links.
20500 LN_S=$lt_LN_S
20501
20502 # What is the maximum length of a command?
20503 max_cmd_len=$max_cmd_len
20504
20505 # Object file suffix (normally "o").
20506 objext=$ac_objext
20507
20508 # Executable file suffix (normally "").
20509 exeext=$exeext
20510
20511 # whether the shell understands "unset".
20512 lt_unset=$lt_unset
20513
20514 # turn spaces into newlines.
20515 SP2NL=$lt_lt_SP2NL
20516
20517 # turn newlines into spaces.
20518 NL2SP=$lt_lt_NL2SP
20519
20520 # convert \$build file names to \$host format.
20521 to_host_file_cmd=$lt_cv_to_host_file_cmd
20522
20523 # convert \$build files to toolchain format.
20524 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20525
20526 # An object symbol dumper.
20527 OBJDUMP=$lt_OBJDUMP
20528
20529 # Method to check whether dependent libraries are shared objects.
20530 deplibs_check_method=$lt_deplibs_check_method
20531
20532 # Command to use when deplibs_check_method = "file_magic".
20533 file_magic_cmd=$lt_file_magic_cmd
20534
20535 # How to find potential files when deplibs_check_method = "file_magic".
20536 file_magic_glob=$lt_file_magic_glob
20537
20538 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20539 want_nocaseglob=$lt_want_nocaseglob
20540
20541 # DLL creation program.
20542 DLLTOOL=$lt_DLLTOOL
20543
20544 # Command to associate shared and link libraries.
20545 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20546
20547 # The archiver.
20548 AR=$lt_AR
20549
20550 # Flags to create an archive.
20551 AR_FLAGS=$lt_AR_FLAGS
20552
20553 # How to feed a file listing to the archiver.
20554 archiver_list_spec=$lt_archiver_list_spec
20555
20556 # A symbol stripping program.
20557 STRIP=$lt_STRIP
20558
20559 # Commands used to install an old-style archive.
20560 RANLIB=$lt_RANLIB
20561 old_postinstall_cmds=$lt_old_postinstall_cmds
20562 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20563
20564 # Whether to use a lock for old archive extraction.
20565 lock_old_archive_extraction=$lock_old_archive_extraction
20566
20567 # A C compiler.
20568 LTCC=$lt_CC
20569
20570 # LTCC compiler flags.
20571 LTCFLAGS=$lt_CFLAGS
20572
20573 # Take the output of nm and produce a listing of raw symbols and C names.
20574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20575
20576 # Transform the output of nm in a proper C declaration.
20577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20578
20579 # Transform the output of nm in a C name address pair.
20580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20581
20582 # Transform the output of nm in a C name address pair when lib prefix is needed.
20583 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20584
20585 # Specify filename containing input files for \$NM.
20586 nm_file_list_spec=$lt_nm_file_list_spec
20587
20588 # The root where to search for dependent libraries,and in which our libraries should be installed.
20589 lt_sysroot=$lt_sysroot
20590
20591 # The name of the directory that contains temporary libtool files.
20592 objdir=$objdir
20593
20594 # Used to examine libraries when file_magic_cmd begins with "file".
20595 MAGIC_CMD=$MAGIC_CMD
20596
20597 # Must we lock files when doing compilation?
20598 need_locks=$lt_need_locks
20599
20600 # Manifest tool.
20601 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20602
20603 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20604 DSYMUTIL=$lt_DSYMUTIL
20605
20606 # Tool to change global to local symbols on Mac OS X.
20607 NMEDIT=$lt_NMEDIT
20608
20609 # Tool to manipulate fat objects and archives on Mac OS X.
20610 LIPO=$lt_LIPO
20611
20612 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20613 OTOOL=$lt_OTOOL
20614
20615 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20616 OTOOL64=$lt_OTOOL64
20617
20618 # Old archive suffix (normally "a").
20619 libext=$libext
20620
20621 # Shared library suffix (normally ".so").
20622 shrext_cmds=$lt_shrext_cmds
20623
20624 # The commands to extract the exported symbol list from a shared archive.
20625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20626
20627 # Variables whose values should be saved in libtool wrapper scripts and
20628 # restored at link time.
20629 variables_saved_for_relink=$lt_variables_saved_for_relink
20630
20631 # Do we need the "lib" prefix for modules?
20632 need_lib_prefix=$need_lib_prefix
20633
20634 # Do we need a version for libraries?
20635 need_version=$need_version
20636
20637 # Library versioning type.
20638 version_type=$version_type
20639
20640 # Shared library runtime path variable.
20641 runpath_var=$runpath_var
20642
20643 # Shared library path variable.
20644 shlibpath_var=$shlibpath_var
20645
20646 # Is shlibpath searched before the hard-coded library search path?
20647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20648
20649 # Format of library name prefix.
20650 libname_spec=$lt_libname_spec
20651
20652 # List of archive names.  First name is the real one, the rest are links.
20653 # The last name is the one that the linker finds with -lNAME
20654 library_names_spec=$lt_library_names_spec
20655
20656 # The coded name of the library, if different from the real name.
20657 soname_spec=$lt_soname_spec
20658
20659 # Permission mode override for installation of shared libraries.
20660 install_override_mode=$lt_install_override_mode
20661
20662 # Command to use after installation of a shared archive.
20663 postinstall_cmds=$lt_postinstall_cmds
20664
20665 # Command to use after uninstallation of a shared archive.
20666 postuninstall_cmds=$lt_postuninstall_cmds
20667
20668 # Commands used to finish a libtool library installation in a directory.
20669 finish_cmds=$lt_finish_cmds
20670
20671 # As "finish_cmds", except a single script fragment to be evaled but
20672 # not shown.
20673 finish_eval=$lt_finish_eval
20674
20675 # Whether we should hardcode library paths into libraries.
20676 hardcode_into_libs=$hardcode_into_libs
20677
20678 # Compile-time system search path for libraries.
20679 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20680
20681 # Run-time system search path for libraries.
20682 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20683
20684 # Whether dlopen is supported.
20685 dlopen_support=$enable_dlopen
20686
20687 # Whether dlopen of programs is supported.
20688 dlopen_self=$enable_dlopen_self
20689
20690 # Whether dlopen of statically linked programs is supported.
20691 dlopen_self_static=$enable_dlopen_self_static
20692
20693 # Commands to strip libraries.
20694 old_striplib=$lt_old_striplib
20695 striplib=$lt_striplib
20696
20697
20698 # The linker used to build libraries.
20699 LD=$lt_LD
20700
20701 # How to create reloadable object files.
20702 reload_flag=$lt_reload_flag
20703 reload_cmds=$lt_reload_cmds
20704
20705 # Commands used to build an old-style archive.
20706 old_archive_cmds=$lt_old_archive_cmds
20707
20708 # A language specific compiler.
20709 CC=$lt_compiler
20710
20711 # Is the compiler the GNU compiler?
20712 with_gcc=$GCC
20713
20714 # Compiler flag to turn off builtin functions.
20715 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20716
20717 # Additional compiler flags for building library objects.
20718 pic_flag=$lt_lt_prog_compiler_pic
20719
20720 # How to pass a linker flag through the compiler.
20721 wl=$lt_lt_prog_compiler_wl
20722
20723 # Compiler flag to prevent dynamic linking.
20724 link_static_flag=$lt_lt_prog_compiler_static
20725
20726 # Does compiler simultaneously support -c and -o options?
20727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20728
20729 # Whether or not to add -lc for building shared libraries.
20730 build_libtool_need_lc=$archive_cmds_need_lc
20731
20732 # Whether or not to disallow shared libs when runtime libs are static.
20733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20734
20735 # Compiler flag to allow reflexive dlopens.
20736 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20737
20738 # Compiler flag to generate shared objects directly from archives.
20739 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20740
20741 # Whether the compiler copes with passing no objects directly.
20742 compiler_needs_object=$lt_compiler_needs_object
20743
20744 # Create an old-style archive from a shared archive.
20745 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20746
20747 # Create a temporary old-style archive to link instead of a shared archive.
20748 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20749
20750 # Commands used to build a shared archive.
20751 archive_cmds=$lt_archive_cmds
20752 archive_expsym_cmds=$lt_archive_expsym_cmds
20753
20754 # Commands used to build a loadable module if different from building
20755 # a shared archive.
20756 module_cmds=$lt_module_cmds
20757 module_expsym_cmds=$lt_module_expsym_cmds
20758
20759 # Whether we are building with GNU ld or not.
20760 with_gnu_ld=$lt_with_gnu_ld
20761
20762 # Flag that allows shared libraries with undefined symbols to be built.
20763 allow_undefined_flag=$lt_allow_undefined_flag
20764
20765 # Flag that enforces no undefined symbols.
20766 no_undefined_flag=$lt_no_undefined_flag
20767
20768 # Flag to hardcode \$libdir into a binary during linking.
20769 # This must work even if \$libdir does not exist
20770 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20771
20772 # Whether we need a single "-rpath" flag with a separated argument.
20773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20774
20775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20776 # DIR into the resulting binary.
20777 hardcode_direct=$hardcode_direct
20778
20779 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20780 # DIR into the resulting binary and the resulting library dependency is
20781 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20782 # library is relocated.
20783 hardcode_direct_absolute=$hardcode_direct_absolute
20784
20785 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20786 # into the resulting binary.
20787 hardcode_minus_L=$hardcode_minus_L
20788
20789 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20790 # into the resulting binary.
20791 hardcode_shlibpath_var=$hardcode_shlibpath_var
20792
20793 # Set to "yes" if building a shared library automatically hardcodes DIR
20794 # into the library and all subsequent libraries and executables linked
20795 # against it.
20796 hardcode_automatic=$hardcode_automatic
20797
20798 # Set to yes if linker adds runtime paths of dependent libraries
20799 # to runtime path list.
20800 inherit_rpath=$inherit_rpath
20801
20802 # Whether libtool must link a program against all its dependency libraries.
20803 link_all_deplibs=$link_all_deplibs
20804
20805 # Set to "yes" if exported symbols are required.
20806 always_export_symbols=$always_export_symbols
20807
20808 # The commands to list exported symbols.
20809 export_symbols_cmds=$lt_export_symbols_cmds
20810
20811 # Symbols that should not be listed in the preloaded symbols.
20812 exclude_expsyms=$lt_exclude_expsyms
20813
20814 # Symbols that must always be exported.
20815 include_expsyms=$lt_include_expsyms
20816
20817 # Commands necessary for linking programs (against libraries) with templates.
20818 prelink_cmds=$lt_prelink_cmds
20819
20820 # Commands necessary for finishing linking programs.
20821 postlink_cmds=$lt_postlink_cmds
20822
20823 # Specify filename containing input files.
20824 file_list_spec=$lt_file_list_spec
20825
20826 # How to hardcode a shared library path into an executable.
20827 hardcode_action=$hardcode_action
20828
20829 # The directories searched by this compiler when creating a shared library.
20830 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20831
20832 # Dependencies to place before and after the objects being linked to
20833 # create a shared library.
20834 predep_objects=$lt_predep_objects
20835 postdep_objects=$lt_postdep_objects
20836 predeps=$lt_predeps
20837 postdeps=$lt_postdeps
20838
20839 # The library search path used internally by the compiler when linking
20840 # a shared library.
20841 compiler_lib_search_path=$lt_compiler_lib_search_path
20842
20843 # ### END LIBTOOL CONFIG
20844
20845 _LT_EOF
20846
20847   case $host_os in
20848   aix3*)
20849     cat <<\_LT_EOF >> "$cfgfile"
20850 # AIX sometimes has problems with the GCC collect2 program.  For some
20851 # reason, if we set the COLLECT_NAMES environment variable, the problems
20852 # vanish in a puff of smoke.
20853 if test "X${COLLECT_NAMES+set}" != Xset; then
20854   COLLECT_NAMES=
20855   export COLLECT_NAMES
20856 fi
20857 _LT_EOF
20858     ;;
20859   esac
20860
20861
20862 ltmain="$ac_aux_dir/ltmain.sh"
20863
20864
20865   # We use sed instead of cat because bash on DJGPP gets confused if
20866   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20867   # text mode, it properly converts lines to CR/LF.  This bash problem
20868   # is reportedly fixed, but why not run on old versions too?
20869   sed '$q' "$ltmain" >> "$cfgfile" \
20870      || (rm -f "$cfgfile"; exit 1)
20871
20872   if test x"$xsi_shell" = xyes; then
20873   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20874 func_dirname ()\
20875 {\
20876 \    case ${1} in\
20877 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20878 \      *  ) func_dirname_result="${3}" ;;\
20879 \    esac\
20880 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20881   && mv -f "$cfgfile.tmp" "$cfgfile" \
20882     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20883 test 0 -eq $? || _lt_function_replace_fail=:
20884
20885
20886   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20887 func_basename ()\
20888 {\
20889 \    func_basename_result="${1##*/}"\
20890 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20891   && mv -f "$cfgfile.tmp" "$cfgfile" \
20892     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20893 test 0 -eq $? || _lt_function_replace_fail=:
20894
20895
20896   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20897 func_dirname_and_basename ()\
20898 {\
20899 \    case ${1} in\
20900 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20901 \      *  ) func_dirname_result="${3}" ;;\
20902 \    esac\
20903 \    func_basename_result="${1##*/}"\
20904 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20905   && mv -f "$cfgfile.tmp" "$cfgfile" \
20906     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20907 test 0 -eq $? || _lt_function_replace_fail=:
20908
20909
20910   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20911 func_stripname ()\
20912 {\
20913 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20914 \    # positional parameters, so assign one to ordinary parameter first.\
20915 \    func_stripname_result=${3}\
20916 \    func_stripname_result=${func_stripname_result#"${1}"}\
20917 \    func_stripname_result=${func_stripname_result%"${2}"}\
20918 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20919   && mv -f "$cfgfile.tmp" "$cfgfile" \
20920     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20921 test 0 -eq $? || _lt_function_replace_fail=:
20922
20923
20924   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20925 func_split_long_opt ()\
20926 {\
20927 \    func_split_long_opt_name=${1%%=*}\
20928 \    func_split_long_opt_arg=${1#*=}\
20929 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20930   && mv -f "$cfgfile.tmp" "$cfgfile" \
20931     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20932 test 0 -eq $? || _lt_function_replace_fail=:
20933
20934
20935   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20936 func_split_short_opt ()\
20937 {\
20938 \    func_split_short_opt_arg=${1#??}\
20939 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20940 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20941   && mv -f "$cfgfile.tmp" "$cfgfile" \
20942     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20943 test 0 -eq $? || _lt_function_replace_fail=:
20944
20945
20946   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20947 func_lo2o ()\
20948 {\
20949 \    case ${1} in\
20950 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20951 \      *)    func_lo2o_result=${1} ;;\
20952 \    esac\
20953 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20954   && mv -f "$cfgfile.tmp" "$cfgfile" \
20955     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20956 test 0 -eq $? || _lt_function_replace_fail=:
20957
20958
20959   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20960 func_xform ()\
20961 {\
20962     func_xform_result=${1%.*}.lo\
20963 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20964   && mv -f "$cfgfile.tmp" "$cfgfile" \
20965     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20966 test 0 -eq $? || _lt_function_replace_fail=:
20967
20968
20969   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20970 func_arith ()\
20971 {\
20972     func_arith_result=$(( $* ))\
20973 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20974   && mv -f "$cfgfile.tmp" "$cfgfile" \
20975     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20976 test 0 -eq $? || _lt_function_replace_fail=:
20977
20978
20979   sed -e '/^func_len ()$/,/^} # func_len /c\
20980 func_len ()\
20981 {\
20982     func_len_result=${#1}\
20983 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20984   && mv -f "$cfgfile.tmp" "$cfgfile" \
20985     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20986 test 0 -eq $? || _lt_function_replace_fail=:
20987
20988 fi
20989
20990 if test x"$lt_shell_append" = xyes; then
20991   sed -e '/^func_append ()$/,/^} # func_append /c\
20992 func_append ()\
20993 {\
20994     eval "${1}+=\\${2}"\
20995 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20996   && mv -f "$cfgfile.tmp" "$cfgfile" \
20997     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20998 test 0 -eq $? || _lt_function_replace_fail=:
20999
21000
21001   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21002 func_append_quoted ()\
21003 {\
21004 \    func_quote_for_eval "${2}"\
21005 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21006 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21007   && mv -f "$cfgfile.tmp" "$cfgfile" \
21008     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21009 test 0 -eq $? || _lt_function_replace_fail=:
21010
21011
21012   # Save a `func_append' function call where possible by direct use of '+='
21013   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21014     && mv -f "$cfgfile.tmp" "$cfgfile" \
21015       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21016   test 0 -eq $? || _lt_function_replace_fail=:
21017 else
21018   # Save a `func_append' function call even when '+=' is not available
21019   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21020     && mv -f "$cfgfile.tmp" "$cfgfile" \
21021       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21022   test 0 -eq $? || _lt_function_replace_fail=:
21023 fi
21024
21025 if test x"$_lt_function_replace_fail" = x":"; then
21026   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21027 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21028 fi
21029
21030
21031    mv -f "$cfgfile" "$ofile" ||
21032     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21033   chmod +x "$ofile"
21034
21035
21036     cat <<_LT_EOF >> "$ofile"
21037
21038 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21039
21040 # The linker used to build libraries.
21041 LD=$lt_LD_CXX
21042
21043 # How to create reloadable object files.
21044 reload_flag=$lt_reload_flag_CXX
21045 reload_cmds=$lt_reload_cmds_CXX
21046
21047 # Commands used to build an old-style archive.
21048 old_archive_cmds=$lt_old_archive_cmds_CXX
21049
21050 # A language specific compiler.
21051 CC=$lt_compiler_CXX
21052
21053 # Is the compiler the GNU compiler?
21054 with_gcc=$GCC_CXX
21055
21056 # Compiler flag to turn off builtin functions.
21057 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21058
21059 # Additional compiler flags for building library objects.
21060 pic_flag=$lt_lt_prog_compiler_pic_CXX
21061
21062 # How to pass a linker flag through the compiler.
21063 wl=$lt_lt_prog_compiler_wl_CXX
21064
21065 # Compiler flag to prevent dynamic linking.
21066 link_static_flag=$lt_lt_prog_compiler_static_CXX
21067
21068 # Does compiler simultaneously support -c and -o options?
21069 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21070
21071 # Whether or not to add -lc for building shared libraries.
21072 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21073
21074 # Whether or not to disallow shared libs when runtime libs are static.
21075 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21076
21077 # Compiler flag to allow reflexive dlopens.
21078 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21079
21080 # Compiler flag to generate shared objects directly from archives.
21081 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21082
21083 # Whether the compiler copes with passing no objects directly.
21084 compiler_needs_object=$lt_compiler_needs_object_CXX
21085
21086 # Create an old-style archive from a shared archive.
21087 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21088
21089 # Create a temporary old-style archive to link instead of a shared archive.
21090 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21091
21092 # Commands used to build a shared archive.
21093 archive_cmds=$lt_archive_cmds_CXX
21094 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21095
21096 # Commands used to build a loadable module if different from building
21097 # a shared archive.
21098 module_cmds=$lt_module_cmds_CXX
21099 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21100
21101 # Whether we are building with GNU ld or not.
21102 with_gnu_ld=$lt_with_gnu_ld_CXX
21103
21104 # Flag that allows shared libraries with undefined symbols to be built.
21105 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21106
21107 # Flag that enforces no undefined symbols.
21108 no_undefined_flag=$lt_no_undefined_flag_CXX
21109
21110 # Flag to hardcode \$libdir into a binary during linking.
21111 # This must work even if \$libdir does not exist
21112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21113
21114 # Whether we need a single "-rpath" flag with a separated argument.
21115 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21116
21117 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21118 # DIR into the resulting binary.
21119 hardcode_direct=$hardcode_direct_CXX
21120
21121 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21122 # DIR into the resulting binary and the resulting library dependency is
21123 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21124 # library is relocated.
21125 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21126
21127 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21128 # into the resulting binary.
21129 hardcode_minus_L=$hardcode_minus_L_CXX
21130
21131 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21132 # into the resulting binary.
21133 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21134
21135 # Set to "yes" if building a shared library automatically hardcodes DIR
21136 # into the library and all subsequent libraries and executables linked
21137 # against it.
21138 hardcode_automatic=$hardcode_automatic_CXX
21139
21140 # Set to yes if linker adds runtime paths of dependent libraries
21141 # to runtime path list.
21142 inherit_rpath=$inherit_rpath_CXX
21143
21144 # Whether libtool must link a program against all its dependency libraries.
21145 link_all_deplibs=$link_all_deplibs_CXX
21146
21147 # Set to "yes" if exported symbols are required.
21148 always_export_symbols=$always_export_symbols_CXX
21149
21150 # The commands to list exported symbols.
21151 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21152
21153 # Symbols that should not be listed in the preloaded symbols.
21154 exclude_expsyms=$lt_exclude_expsyms_CXX
21155
21156 # Symbols that must always be exported.
21157 include_expsyms=$lt_include_expsyms_CXX
21158
21159 # Commands necessary for linking programs (against libraries) with templates.
21160 prelink_cmds=$lt_prelink_cmds_CXX
21161
21162 # Commands necessary for finishing linking programs.
21163 postlink_cmds=$lt_postlink_cmds_CXX
21164
21165 # Specify filename containing input files.
21166 file_list_spec=$lt_file_list_spec_CXX
21167
21168 # How to hardcode a shared library path into an executable.
21169 hardcode_action=$hardcode_action_CXX
21170
21171 # The directories searched by this compiler when creating a shared library.
21172 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21173
21174 # Dependencies to place before and after the objects being linked to
21175 # create a shared library.
21176 predep_objects=$lt_predep_objects_CXX
21177 postdep_objects=$lt_postdep_objects_CXX
21178 predeps=$lt_predeps_CXX
21179 postdeps=$lt_postdeps_CXX
21180
21181 # The library search path used internally by the compiler when linking
21182 # a shared library.
21183 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21184
21185 # ### END LIBTOOL TAG CONFIG: CXX
21186 _LT_EOF
21187
21188  ;;
21189
21190   esac
21191 done # for ac_tag
21192
21193
21194 as_fn_exit 0
21195 _ACEOF
21196 ac_clean_files=$ac_clean_files_save
21197
21198 test $ac_write_fail = 0 ||
21199   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21200
21201
21202 # configure is writing to config.log, and then calls config.status.
21203 # config.status does its own redirection, appending to config.log.
21204 # Unfortunately, on DOS this fails, as config.log is still kept open
21205 # by configure, so config.status won't be able to write to it; its
21206 # output is simply discarded.  So we exec the FD to /dev/null,
21207 # effectively closing config.log, so it can be properly (re)opened and
21208 # appended to by config.status.  When coming back to configure, we
21209 # need to make the FD available again.
21210 if test "$no_create" != yes; then
21211   ac_cs_success=:
21212   ac_config_status_args=
21213   test "$silent" = yes &&
21214     ac_config_status_args="$ac_config_status_args --quiet"
21215   exec 5>/dev/null
21216   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21217   exec 5>>config.log
21218   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21219   # would make configure fail if this is the last instruction.
21220   $ac_cs_success || as_fn_exit 1
21221 fi
21222 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21223   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21224 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21225 fi
21226
21227
21228 # ==============================================
21229 # Display final informations about configuration
21230 # ==============================================
21231 { $as_echo "$as_me:${as_lineno-$LINENO}:
21232 ==============================================================================
21233 Environment settings:
21234         CFLAGS:          ${CFLAGS}
21235         CXXFLAGS:        ${CXXFLAGS}
21236         LDFLAGS:         ${LDFLAGS}
21237 Build configuration:
21238         cups-config:     ${with_cups_config}
21239         font directory:  ${sysconfdir}/${FONTDIR}
21240         init directory:  ${INITDDIR}
21241         cups dom socket: ${CUPS_DEFAULT_DOMAINSOCKET}
21242         gs-path:         ${with_gs_path}
21243         imagefilters:    ${enable_imagefilters}
21244         jpeg:            ${with_jpeg}
21245         pdftocairo-path: ${with_pdftocairo_path}
21246         pdftops:         ${with_pdftops}
21247         pdftops-path:    ${with_pdftops_path}
21248         png:             ${with_png}
21249         php:             ${with_php}
21250         php-config:      ${with_php_config}
21251         test-font:       ${with_test_font_path}
21252         tiff:            ${with_tiff}
21253         avahi:           ${enable_avahi}
21254         browsing:        ${with_browseremoteprotocols}
21255         werror:          ${enable_werror}
21256 ==============================================================================
21257 " >&5
21258 $as_echo "$as_me:
21259 ==============================================================================
21260 Environment settings:
21261         CFLAGS:          ${CFLAGS}
21262         CXXFLAGS:        ${CXXFLAGS}
21263         LDFLAGS:         ${LDFLAGS}
21264 Build configuration:
21265         cups-config:     ${with_cups_config}
21266         font directory:  ${sysconfdir}/${FONTDIR}
21267         init directory:  ${INITDDIR}
21268         cups dom socket: ${CUPS_DEFAULT_DOMAINSOCKET}
21269         gs-path:         ${with_gs_path}
21270         imagefilters:    ${enable_imagefilters}
21271         jpeg:            ${with_jpeg}
21272         pdftocairo-path: ${with_pdftocairo_path}
21273         pdftops:         ${with_pdftops}
21274         pdftops-path:    ${with_pdftops_path}
21275         png:             ${with_png}
21276         php:             ${with_php}
21277         php-config:      ${with_php_config}
21278         test-font:       ${with_test_font_path}
21279         tiff:            ${with_tiff}
21280         avahi:           ${enable_avahi}
21281         browsing:        ${with_browseremoteprotocols}
21282         werror:          ${enable_werror}
21283 ==============================================================================
21284 " >&6;}