]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/openpam/configure
sqlite3: Vendor import of sqlite3 3.46.0
[FreeBSD/FreeBSD.git] / contrib / openpam / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for OpenPAM 20230627.
4 #
5 # Report bugs to <des@des.no>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
100     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     PATH=/empty FPATH=/empty; export PATH FPATH
192     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and des@des.no about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323 # as_fn_nop
324 # ---------
325 # Do nothing but, unlike ":", preserve the value of $?.
326 as_fn_nop ()
327 {
328   return $?
329 }
330 as_nop=as_fn_nop
331
332 # as_fn_mkdir_p
333 # -------------
334 # Create "$as_dir" as a directory, including parents if necessary.
335 as_fn_mkdir_p ()
336 {
337
338   case $as_dir in #(
339   -*) as_dir=./$as_dir;;
340   esac
341   test -d "$as_dir" || eval $as_mkdir_p || {
342     as_dirs=
343     while :; do
344       case $as_dir in #(
345       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
346       *) as_qdir=$as_dir;;
347       esac
348       as_dirs="'$as_qdir' $as_dirs"
349       as_dir=`$as_dirname -- "$as_dir" ||
350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
351          X"$as_dir" : 'X\(//\)[^/]' \| \
352          X"$as_dir" : 'X\(//\)$' \| \
353          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
354 printf "%s\n" X"$as_dir" |
355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\/\)[^/].*/{
360             s//\1/
361             q
362           }
363           /^X\(\/\/\)$/{
364             s//\1/
365             q
366           }
367           /^X\(\/\).*/{
368             s//\1/
369             q
370           }
371           s/.*/./; q'`
372       test -d "$as_dir" && break
373     done
374     test -z "$as_dirs" || eval "mkdir $as_dirs"
375   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
376
377
378 } # as_fn_mkdir_p
379
380 # as_fn_executable_p FILE
381 # -----------------------
382 # Test if FILE is an executable regular file.
383 as_fn_executable_p ()
384 {
385   test -f "$1" && test -x "$1"
386 } # as_fn_executable_p
387 # as_fn_append VAR VALUE
388 # ----------------------
389 # Append the text in VALUE to the end of the definition contained in VAR. Take
390 # advantage of any shell optimizations that allow amortized linear growth over
391 # repeated appends, instead of the typical quadratic growth present in naive
392 # implementations.
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
394 then :
395   eval 'as_fn_append ()
396   {
397     eval $1+=\$2
398   }'
399 else $as_nop
400   as_fn_append ()
401   {
402     eval $1=\$$1\$2
403   }
404 fi # as_fn_append
405
406 # as_fn_arith ARG...
407 # ------------------
408 # Perform arithmetic evaluation on the ARGs, and store the result in the
409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
410 # must be portable across $(()) and expr.
411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
412 then :
413   eval 'as_fn_arith ()
414   {
415     as_val=$(( $* ))
416   }'
417 else $as_nop
418   as_fn_arith ()
419   {
420     as_val=`expr "$@" || test $? -eq 1`
421   }
422 fi # as_fn_arith
423
424 # as_fn_nop
425 # ---------
426 # Do nothing but, unlike ":", preserve the value of $?.
427 as_fn_nop ()
428 {
429   return $?
430 }
431 as_nop=as_fn_nop
432
433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
434 # ----------------------------------------
435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
437 # script with STATUS, using 1 if that was 0.
438 as_fn_error ()
439 {
440   as_status=$1; test $as_status -eq 0 && as_status=1
441   if test "$4"; then
442     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
443     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
444   fi
445   printf "%s\n" "$as_me: error: $2" >&2
446   as_fn_exit $as_status
447 } # as_fn_error
448
449 if expr a : '\(a\)' >/dev/null 2>&1 &&
450    test "X`expr 00001 : '.*\(...\)'`" = X001; then
451   as_expr=expr
452 else
453   as_expr=false
454 fi
455
456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
457   as_basename=basename
458 else
459   as_basename=false
460 fi
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 as_me=`$as_basename -- "$0" ||
469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
470          X"$0" : 'X\(//\)$' \| \
471          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
472 printf "%s\n" X/"$0" |
473     sed '/^.*\/\([^/][^/]*\)\/*$/{
474             s//\1/
475             q
476           }
477           /^X\/\(\/\/\)$/{
478             s//\1/
479             q
480           }
481           /^X\/\(\/\).*/{
482             s//\1/
483             q
484           }
485           s/.*/./; q'`
486
487 # Avoid depending upon Character Ranges.
488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
491 as_cr_digits='0123456789'
492 as_cr_alnum=$as_cr_Letters$as_cr_digits
493
494
495   as_lineno_1=$LINENO as_lineno_1a=$LINENO
496   as_lineno_2=$LINENO as_lineno_2a=$LINENO
497   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
498   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
499   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
500   sed -n '
501     p
502     /[$]LINENO/=
503   ' <$as_myself |
504     sed '
505       s/[$]LINENO.*/&-/
506       t lineno
507       b
508       :lineno
509       N
510       :loop
511       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
512       t loop
513       s/-\n.*//
514     ' >$as_me.lineno &&
515   chmod +x "$as_me.lineno" ||
516     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
517
518   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
519   # already done that, so ensure we don't try to do so again and fall
520   # in an infinite loop.  This has already happened in practice.
521   _as_can_reexec=no; export _as_can_reexec
522   # Don't try to exec as it changes $[0], causing all sort of problems
523   # (the dirname of $[0] is not the place where we might find the
524   # original and so on.  Autoconf is especially sensitive to this).
525   . "./$as_me.lineno"
526   # Exit status is that of the last command.
527   exit
528 }
529
530
531 # Determine whether it's possible to make 'echo' print without a newline.
532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
533 # for compatibility with existing Makefiles.
534 ECHO_C= ECHO_N= ECHO_T=
535 case `echo -n x` in #(((((
536 -n*)
537   case `echo 'xy\c'` in
538   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
539   xy)  ECHO_C='\c';;
540   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
541        ECHO_T=' ';;
542   esac;;
543 *)
544   ECHO_N='-n';;
545 esac
546
547 # For backward compatibility with old third-party macros, we provide
548 # the shell variables $as_echo and $as_echo_n.  New code should use
549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
550 as_echo='printf %s\n'
551 as_echo_n='printf %s'
552
553
554 rm -f conf$$ conf$$.exe conf$$.file
555 if test -d conf$$.dir; then
556   rm -f conf$$.dir/conf$$.file
557 else
558   rm -f conf$$.dir
559   mkdir conf$$.dir 2>/dev/null
560 fi
561 if (echo >conf$$.file) 2>/dev/null; then
562   if ln -s conf$$.file conf$$ 2>/dev/null; then
563     as_ln_s='ln -s'
564     # ... but there are two gotchas:
565     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
566     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
567     # In both cases, we have to default to `cp -pR'.
568     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
569       as_ln_s='cp -pR'
570   elif ln conf$$.file conf$$ 2>/dev/null; then
571     as_ln_s=ln
572   else
573     as_ln_s='cp -pR'
574   fi
575 else
576   as_ln_s='cp -pR'
577 fi
578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
579 rmdir conf$$.dir 2>/dev/null
580
581 if mkdir -p . 2>/dev/null; then
582   as_mkdir_p='mkdir -p "$as_dir"'
583 else
584   test -d ./-p && rmdir ./-p
585   as_mkdir_p=false
586 fi
587
588 as_test_x='test -x'
589 as_executable_p=as_fn_executable_p
590
591 # Sed expression to map a string onto a valid CPP name.
592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
593
594 # Sed expression to map a string onto a valid variable name.
595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
596
597 SHELL=${CONFIG_SHELL-/bin/sh}
598
599
600 test -n "$DJDIR" || exec 7<&0 </dev/null
601 exec 6>&1
602
603 # Name of the host.
604 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
605 # so uname gets run too.
606 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
607
608 #
609 # Initializations.
610 #
611 ac_default_prefix=/usr/local
612 ac_clean_files=
613 ac_config_libobj_dir=.
614 LIBOBJS=
615 cross_compiling=no
616 subdirs=
617 MFLAGS=
618 MAKEFLAGS=
619
620 # Identity of this package.
621 PACKAGE_NAME='OpenPAM'
622 PACKAGE_TARNAME='openpam'
623 PACKAGE_VERSION='20230627'
624 PACKAGE_STRING='OpenPAM 20230627'
625 PACKAGE_BUGREPORT='des@des.no'
626 PACKAGE_URL='https://openpam.org/'
627
628 ac_unique_file="lib/libpam/pam_start.c"
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 CLANG_CODE_COVERAGE_FALSE
666 CLANG_CODE_COVERAGE_TRUE
667 WITH_CODE_COVERAGE_FALSE
668 WITH_CODE_COVERAGE_TRUE
669 clang_ver
670 WITH_TEST_FALSE
671 WITH_TEST_TRUE
672 HAVE_CRYB_TEST_FALSE
673 HAVE_CRYB_TEST_TRUE
674 CRYB_TEST_VERSION
675 CRYB_TEST_LIBS
676 CRYB_TEST_CFLAGS
677 SYSTEM_LIBPAM
678 DL_LIBS
679 WITH_SYSTEM_LIBPAM_FALSE
680 WITH_SYSTEM_LIBPAM_TRUE
681 WITH_SU_FALSE
682 WITH_SU_TRUE
683 WITH_PAMTEST_FALSE
684 WITH_PAMTEST_TRUE
685 WITH_PAM_UNIX_FALSE
686 WITH_PAM_UNIX_TRUE
687 WITH_DOC_FALSE
688 WITH_DOC_TRUE
689 CUSTOM_MODULES_DIR_FALSE
690 CUSTOM_MODULES_DIR_TRUE
691 OPENPAM_MODULES_DIR
692 LIB_MAJ
693 pkgconfigdir
694 PKG_CONFIG_LIBDIR
695 PKG_CONFIG_PATH
696 PKG_CONFIG
697 CXXCPP
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 ac_ct_AR
707 AR
708 DLLTOOL
709 OBJDUMP
710 FILECMD
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 EGREP
718 GREP
719 SED
720 host_os
721 host_vendor
722 host_cpu
723 host
724 build_os
725 build_vendor
726 build_cpu
727 build
728 LIBTOOL
729 am__fastdepCXX_FALSE
730 am__fastdepCXX_TRUE
731 CXXDEPMODE
732 ac_ct_CXX
733 CXXFLAGS
734 CXX
735 CPP
736 am__fastdepCC_FALSE
737 am__fastdepCC_TRUE
738 CCDEPMODE
739 am__nodep
740 AMDEPBACKSLASH
741 AMDEP_FALSE
742 AMDEP_TRUE
743 am__include
744 DEPDIR
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 AM_BACKSLASH
753 AM_DEFAULT_VERBOSITY
754 AM_DEFAULT_V
755 AM_V
756 CSCOPE
757 ETAGS
758 CTAGS
759 am__untar
760 am__tar
761 AMTAR
762 am__leading_dot
763 SET_MAKE
764 AWK
765 mkdir_p
766 MKDIR_P
767 INSTALL_STRIP_PROGRAM
768 STRIP
769 install_sh
770 MAKEINFO
771 AUTOHEADER
772 AUTOMAKE
773 AUTOCONF
774 ACLOCAL
775 VERSION
776 PACKAGE
777 CYGPATH_W
778 am__isrc
779 INSTALL_DATA
780 INSTALL_SCRIPT
781 INSTALL_PROGRAM
782 target_alias
783 host_alias
784 build_alias
785 LIBS
786 ECHO_T
787 ECHO_N
788 ECHO_C
789 DEFS
790 mandir
791 localedir
792 libdir
793 psdir
794 pdfdir
795 dvidir
796 htmldir
797 infodir
798 docdir
799 oldincludedir
800 includedir
801 runstatedir
802 localstatedir
803 sharedstatedir
804 sysconfdir
805 datadir
806 datarootdir
807 libexecdir
808 sbindir
809 bindir
810 program_transform_name
811 prefix
812 exec_prefix
813 PACKAGE_URL
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL
821 am__quote'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 enable_silent_rules
826 enable_dependency_tracking
827 enable_static
828 enable_shared
829 with_pic
830 enable_fast_install
831 with_aix_soname
832 with_gnu_ld
833 with_sysroot
834 enable_libtool_lock
835 with_pkgconfigdir
836 enable_debug
837 enable_unversioned_modules
838 with_modules_dir
839 with_doc
840 with_pam_unix
841 with_pamtest
842 with_su
843 with_system_libpam
844 enable_developer_warnings
845 enable_debugging_symbols
846 enable_werror
847 enable_code_coverage
848 '
849       ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CPP
858 CXX
859 CXXFLAGS
860 CCC
861 LT_SYS_LIBRARY_PATH
862 CXXCPP
863 PKG_CONFIG
864 PKG_CONFIG_PATH
865 PKG_CONFIG_LIBDIR
866 CRYB_TEST_CFLAGS
867 CRYB_TEST_LIBS'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 runstatedir='${localstatedir}/run'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923   # If the previous option needs an argument, assign it.
924   if test -n "$ac_prev"; then
925     eval $ac_prev=\$ac_option
926     ac_prev=
927     continue
928   fi
929
930   case $ac_option in
931   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932   *=)   ac_optarg= ;;
933   *)    ac_optarg=yes ;;
934   esac
935
936   case $ac_dashdash$ac_option in
937   --)
938     ac_dashdash=yes ;;
939
940   -bindir | --bindir | --bindi | --bind | --bin | --bi)
941     ac_prev=bindir ;;
942   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943     bindir=$ac_optarg ;;
944
945   -build | --build | --buil | --bui | --bu)
946     ac_prev=build_alias ;;
947   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948     build_alias=$ac_optarg ;;
949
950   -cache-file | --cache-file | --cache-fil | --cache-fi \
951   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952     ac_prev=cache_file ;;
953   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955     cache_file=$ac_optarg ;;
956
957   --config-cache | -C)
958     cache_file=config.cache ;;
959
960   -datadir | --datadir | --datadi | --datad)
961     ac_prev=datadir ;;
962   -datadir=* | --datadir=* | --datadi=* | --datad=*)
963     datadir=$ac_optarg ;;
964
965   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966   | --dataroo | --dataro | --datar)
967     ac_prev=datarootdir ;;
968   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970     datarootdir=$ac_optarg ;;
971
972   -disable-* | --disable-*)
973     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974     # Reject names that are not valid shell variable names.
975     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976       as_fn_error $? "invalid feature name: \`$ac_useropt'"
977     ac_useropt_orig=$ac_useropt
978     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979     case $ac_user_opts in
980       *"
981 "enable_$ac_useropt"
982 "*) ;;
983       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984          ac_unrecognized_sep=', ';;
985     esac
986     eval enable_$ac_useropt=no ;;
987
988   -docdir | --docdir | --docdi | --doc | --do)
989     ac_prev=docdir ;;
990   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991     docdir=$ac_optarg ;;
992
993   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994     ac_prev=dvidir ;;
995   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996     dvidir=$ac_optarg ;;
997
998   -enable-* | --enable-*)
999     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016   | --exec | --exe | --ex)
1017     ac_prev=exec_prefix ;;
1018   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020   | --exec=* | --exe=* | --ex=*)
1021     exec_prefix=$ac_optarg ;;
1022
1023   -gas | --gas | --ga | --g)
1024     # Obsolete; use --with-gas.
1025     with_gas=yes ;;
1026
1027   -help | --help | --hel | --he | -h)
1028     ac_init_help=long ;;
1029   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030     ac_init_help=recursive ;;
1031   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032     ac_init_help=short ;;
1033
1034   -host | --host | --hos | --ho)
1035     ac_prev=host_alias ;;
1036   -host=* | --host=* | --hos=* | --ho=*)
1037     host_alias=$ac_optarg ;;
1038
1039   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040     ac_prev=htmldir ;;
1041   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042   | --ht=*)
1043     htmldir=$ac_optarg ;;
1044
1045   -includedir | --includedir | --includedi | --included | --include \
1046   | --includ | --inclu | --incl | --inc)
1047     ac_prev=includedir ;;
1048   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049   | --includ=* | --inclu=* | --incl=* | --inc=*)
1050     includedir=$ac_optarg ;;
1051
1052   -infodir | --infodir | --infodi | --infod | --info | --inf)
1053     ac_prev=infodir ;;
1054   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055     infodir=$ac_optarg ;;
1056
1057   -libdir | --libdir | --libdi | --libd)
1058     ac_prev=libdir ;;
1059   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060     libdir=$ac_optarg ;;
1061
1062   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063   | --libexe | --libex | --libe)
1064     ac_prev=libexecdir ;;
1065   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066   | --libexe=* | --libex=* | --libe=*)
1067     libexecdir=$ac_optarg ;;
1068
1069   -localedir | --localedir | --localedi | --localed | --locale)
1070     ac_prev=localedir ;;
1071   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072     localedir=$ac_optarg ;;
1073
1074   -localstatedir | --localstatedir | --localstatedi | --localstated \
1075   | --localstate | --localstat | --localsta | --localst | --locals)
1076     ac_prev=localstatedir ;;
1077   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079     localstatedir=$ac_optarg ;;
1080
1081   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082     ac_prev=mandir ;;
1083   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084     mandir=$ac_optarg ;;
1085
1086   -nfp | --nfp | --nf)
1087     # Obsolete; use --without-fp.
1088     with_fp=no ;;
1089
1090   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091   | --no-cr | --no-c | -n)
1092     no_create=yes ;;
1093
1094   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096     no_recursion=yes ;;
1097
1098   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100   | --oldin | --oldi | --old | --ol | --o)
1101     ac_prev=oldincludedir ;;
1102   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105     oldincludedir=$ac_optarg ;;
1106
1107   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108     ac_prev=prefix ;;
1109   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110     prefix=$ac_optarg ;;
1111
1112   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113   | --program-pre | --program-pr | --program-p)
1114     ac_prev=program_prefix ;;
1115   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117     program_prefix=$ac_optarg ;;
1118
1119   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120   | --program-suf | --program-su | --program-s)
1121     ac_prev=program_suffix ;;
1122   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124     program_suffix=$ac_optarg ;;
1125
1126   -program-transform-name | --program-transform-name \
1127   | --program-transform-nam | --program-transform-na \
1128   | --program-transform-n | --program-transform- \
1129   | --program-transform | --program-transfor \
1130   | --program-transfo | --program-transf \
1131   | --program-trans | --program-tran \
1132   | --progr-tra | --program-tr | --program-t)
1133     ac_prev=program_transform_name ;;
1134   -program-transform-name=* | --program-transform-name=* \
1135   | --program-transform-nam=* | --program-transform-na=* \
1136   | --program-transform-n=* | --program-transform-=* \
1137   | --program-transform=* | --program-transfor=* \
1138   | --program-transfo=* | --program-transf=* \
1139   | --program-trans=* | --program-tran=* \
1140   | --progr-tra=* | --program-tr=* | --program-t=*)
1141     program_transform_name=$ac_optarg ;;
1142
1143   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144     ac_prev=pdfdir ;;
1145   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146     pdfdir=$ac_optarg ;;
1147
1148   -psdir | --psdir | --psdi | --psd | --ps)
1149     ac_prev=psdir ;;
1150   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151     psdir=$ac_optarg ;;
1152
1153   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154   | -silent | --silent | --silen | --sile | --sil)
1155     silent=yes ;;
1156
1157   -runstatedir | --runstatedir | --runstatedi | --runstated \
1158   | --runstate | --runstat | --runsta | --runst | --runs \
1159   | --run | --ru | --r)
1160     ac_prev=runstatedir ;;
1161   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1162   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1163   | --run=* | --ru=* | --r=*)
1164     runstatedir=$ac_optarg ;;
1165
1166   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167     ac_prev=sbindir ;;
1168   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169   | --sbi=* | --sb=*)
1170     sbindir=$ac_optarg ;;
1171
1172   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174   | --sharedst | --shareds | --shared | --share | --shar \
1175   | --sha | --sh)
1176     ac_prev=sharedstatedir ;;
1177   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180   | --sha=* | --sh=*)
1181     sharedstatedir=$ac_optarg ;;
1182
1183   -site | --site | --sit)
1184     ac_prev=site ;;
1185   -site=* | --site=* | --sit=*)
1186     site=$ac_optarg ;;
1187
1188   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189     ac_prev=srcdir ;;
1190   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191     srcdir=$ac_optarg ;;
1192
1193   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194   | --syscon | --sysco | --sysc | --sys | --sy)
1195     ac_prev=sysconfdir ;;
1196   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198     sysconfdir=$ac_optarg ;;
1199
1200   -target | --target | --targe | --targ | --tar | --ta | --t)
1201     ac_prev=target_alias ;;
1202   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203     target_alias=$ac_optarg ;;
1204
1205   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206     verbose=yes ;;
1207
1208   -version | --version | --versio | --versi | --vers | -V)
1209     ac_init_version=: ;;
1210
1211   -with-* | --with-*)
1212     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215       as_fn_error $? "invalid package name: \`$ac_useropt'"
1216     ac_useropt_orig=$ac_useropt
1217     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218     case $ac_user_opts in
1219       *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223          ac_unrecognized_sep=', ';;
1224     esac
1225     eval with_$ac_useropt=\$ac_optarg ;;
1226
1227   -without-* | --without-*)
1228     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231       as_fn_error $? "invalid package name: \`$ac_useropt'"
1232     ac_useropt_orig=$ac_useropt
1233     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234     case $ac_user_opts in
1235       *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239          ac_unrecognized_sep=', ';;
1240     esac
1241     eval with_$ac_useropt=no ;;
1242
1243   --x)
1244     # Obsolete; use --with-x.
1245     with_x=yes ;;
1246
1247   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248   | --x-incl | --x-inc | --x-in | --x-i)
1249     ac_prev=x_includes ;;
1250   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252     x_includes=$ac_optarg ;;
1253
1254   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256     ac_prev=x_libraries ;;
1257   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259     x_libraries=$ac_optarg ;;
1260
1261   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1263     ;;
1264
1265   *=*)
1266     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267     # Reject names that are not valid shell variable names.
1268     case $ac_envvar in #(
1269       '' | [0-9]* | *[!_$as_cr_alnum]* )
1270       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271     esac
1272     eval $ac_envvar=\$ac_optarg
1273     export $ac_envvar ;;
1274
1275   *)
1276     # FIXME: should be removed in autoconf 3.0.
1277     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1278     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1280     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281     ;;
1282
1283   esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288   as_fn_error $? "missing argument to $ac_option"
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292   case $enable_option_checking in
1293     no) ;;
1294     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296   esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301                 datadir sysconfdir sharedstatedir localstatedir includedir \
1302                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303                 libdir localedir mandir runstatedir
1304 do
1305   eval ac_val=\$$ac_var
1306   # Remove trailing slashes.
1307   case $ac_val in
1308     */ )
1309       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310       eval $ac_var=\$ac_val;;
1311   esac
1312   # Be sure to have absolute directory names.
1313   case $ac_val in
1314     [\\/$]* | ?:[\\/]* )  continue;;
1315     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316   esac
1317   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1319
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329   if test "x$build_alias" = x; then
1330     cross_compiling=maybe
1331   elif test "x$build_alias" != "x$host_alias"; then
1332     cross_compiling=yes
1333   fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345   as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347   as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352   ac_srcdir_defaulted=yes
1353   # Try the directory containing this script, then the parent directory.
1354   ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356          X"$as_myself" : 'X\(//\)[^/]' \| \
1357          X"$as_myself" : 'X\(//\)$' \| \
1358          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 printf "%s\n" X"$as_myself" |
1360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)[^/].*/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\).*/{
1373             s//\1/
1374             q
1375           }
1376           s/.*/./; q'`
1377   srcdir=$ac_confdir
1378   if test ! -r "$srcdir/$ac_unique_file"; then
1379     srcdir=..
1380   fi
1381 else
1382   ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391         pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394   srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_env_${ac_var}_value=\$${ac_var}
1405   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413   # Omit some internal or obsolete options to make the list less imposing.
1414   # This message is too long to be a string in the A/UX 3.1 sh.
1415   cat <<_ACEOF
1416 \`configure' configures OpenPAM 20230627 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426   -h, --help              display this help and exit
1427       --help=short        display options specific to this package
1428       --help=recursive    display the short help of all the included packages
1429   -V, --version           display version information and exit
1430   -q, --quiet, --silent   do not print \`checking ...' messages
1431       --cache-file=FILE   cache test results in FILE [disabled]
1432   -C, --config-cache      alias for \`--cache-file=config.cache'
1433   -n, --no-create         do not create output files
1434       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437   --prefix=PREFIX         install architecture-independent files in PREFIX
1438                           [$ac_default_prefix]
1439   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                           [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450   --bindir=DIR            user executables [EPREFIX/bin]
1451   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1452   --libexecdir=DIR        program executables [EPREFIX/libexec]
1453   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1454   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1455   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1456   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1457   --libdir=DIR            object code libraries [EPREFIX/lib]
1458   --includedir=DIR        C header files [PREFIX/include]
1459   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1460   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1461   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1462   --infodir=DIR           info documentation [DATAROOTDIR/info]
1463   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1464   --mandir=DIR            man documentation [DATAROOTDIR/man]
1465   --docdir=DIR            documentation root [DATAROOTDIR/doc/openpam]
1466   --htmldir=DIR           html documentation [DOCDIR]
1467   --dvidir=DIR            dvi documentation [DOCDIR]
1468   --pdfdir=DIR            pdf documentation [DOCDIR]
1469   --psdir=DIR             ps documentation [DOCDIR]
1470 _ACEOF
1471
1472   cat <<\_ACEOF
1473
1474 Program names:
1475   --program-prefix=PREFIX            prepend PREFIX to installed program names
1476   --program-suffix=SUFFIX            append SUFFIX to installed program names
1477   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1478
1479 System types:
1480   --build=BUILD     configure for building on BUILD [guessed]
1481   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486   case $ac_init_help in
1487      short | recursive ) echo "Configuration of OpenPAM 20230627:";;
1488    esac
1489   cat <<\_ACEOF
1490
1491 Optional Features:
1492   --disable-option-checking  ignore unrecognized --enable/--with options
1493   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1494   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1495   --enable-silent-rules   less verbose build output (undo: "make V=1")
1496   --disable-silent-rules  verbose build output (undo: "make V=0")
1497   --enable-dependency-tracking
1498                           do not reject slow dependency extractors
1499   --disable-dependency-tracking
1500                           speeds up one-time build
1501   --enable-static[=PKGS]  build static libraries [default=no]
1502   --enable-shared[=PKGS]  build shared libraries [default=yes]
1503   --enable-fast-install[=PKGS]
1504                           optimize for fast installation [default=yes]
1505   --disable-libtool-lock  avoid locking (might break parallel builds)
1506   --enable-debug          turn debugging macros on
1507   --disable-unversioned-modules
1508                           support loading of unversioned modules
1509   --enable-developer-warnings
1510                           enable strict warnings (default is NO)
1511   --enable-debugging-symbols
1512                           enable debugging symbols (default is NO)
1513   --enable-werror         use -Werror (default is NO)
1514   --enable-code-coverage  enable code coverage
1515
1516 Optional Packages:
1517   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1520                           both]
1521   --with-aix-soname=aix|svr4|both
1522                           shared library versioning (aka "SONAME") variant to
1523                           provide on AIX, [default=aix].
1524   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1525   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1526                           compiler's sysroot if not specified).
1527   --with-pkgconfigdir     installation directory for .pc files
1528                           [LIBDIR/pkgconfig]
1529   --with-modules-dir=DIR  OpenPAM modules directory
1530   --without-doc           do not build documentation
1531   --with-pam-unix         build sample pam_unix(8) module
1532   --with-pamtest          build test application
1533   --with-su               build sample su(1) implementation
1534   --with-system-libpam    use system libpam
1535
1536 Some influential environment variables:
1537   CC          C compiler command
1538   CFLAGS      C compiler flags
1539   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1540               nonstandard directory <lib dir>
1541   LIBS        libraries to pass to the linker, e.g. -l<library>
1542   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543               you have headers in a nonstandard directory <include dir>
1544   CPP         C preprocessor
1545   CXX         C++ compiler command
1546   CXXFLAGS    C++ compiler flags
1547   LT_SYS_LIBRARY_PATH
1548               User-defined run-time library search path.
1549   CXXCPP      C++ preprocessor
1550   PKG_CONFIG  path to pkg-config binary
1551   PKG_CONFIG_PATH
1552               list of directories to prepend to default search path
1553   PKG_CONFIG_LIBDIR
1554               list of directories to search instead of default search path
1555   CRYB_TEST_CFLAGS
1556               C compiler flags for cryb-test
1557   CRYB_TEST_LIBS
1558               linker flags for cryb-test
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to <des@des.no>.
1564 OpenPAM home page: <https://openpam.org/>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570   # If there are subdirs, report their specific --help.
1571   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572     test -d "$ac_dir" ||
1573       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574       continue
1575     ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1581   # A ".." for each directory in $ac_dir_suffix.
1582   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583   case $ac_top_builddir_sub in
1584   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586   esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594   .)  # We are building in place.
1595     ac_srcdir=.
1596     ac_top_srcdir=$ac_top_builddir_sub
1597     ac_abs_top_srcdir=$ac_pwd ;;
1598   [\\/]* | ?:[\\/]* )  # Absolute name.
1599     ac_srcdir=$srcdir$ac_dir_suffix;
1600     ac_top_srcdir=$srcdir
1601     ac_abs_top_srcdir=$srcdir ;;
1602   *) # Relative name.
1603     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604     ac_top_srcdir=$ac_top_build_prefix$srcdir
1605     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609     cd "$ac_dir" || { ac_status=$?; continue; }
1610     # Check for configure.gnu first; this name is used for a wrapper for
1611     # Metaconfig's "Configure" on case-insensitive file systems.
1612     if test -f "$ac_srcdir/configure.gnu"; then
1613       echo &&
1614       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615     elif test -f "$ac_srcdir/configure"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure" --help=recursive
1618     else
1619       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620     fi || ac_status=$?
1621     cd "$ac_pwd" || { ac_status=$?; break; }
1622   done
1623 fi
1624
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1627   cat <<\_ACEOF
1628 OpenPAM configure 20230627
1629 generated by GNU Autoconf 2.71
1630
1631 Copyright (C) 2021 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635   exit
1636 fi
1637
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1641
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   rm -f conftest.$ac_objext conftest.beam
1649   if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 printf "%s\n" "$ac_try_echo"; } >&5
1656   (eval "$ac_compile") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && {
1665          test -z "$ac_c_werror_flag" ||
1666          test ! -s conftest.err
1667        } && test -s conftest.$ac_objext
1668 then :
1669   ac_retval=0
1670 else $as_nop
1671   printf "%s\n" "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674         ac_retval=1
1675 fi
1676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677   as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1681 # ac_fn_c_try_cpp LINENO
1682 # ----------------------
1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_cpp ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   if { { ac_try="$ac_cpp conftest.$ac_ext"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 printf "%s\n" "$ac_try_echo"; } >&5
1694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } > conftest.i && {
1703          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        }
1706 then :
1707   ac_retval=0
1708 else $as_nop
1709   printf "%s\n" "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712     ac_retval=1
1713 fi
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_cpp
1718
1719 # ac_fn_cxx_try_compile LINENO
1720 # ----------------------------
1721 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_cxx_try_compile ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   rm -f conftest.$ac_objext conftest.beam
1726   if { { ac_try="$ac_compile"
1727 case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 printf "%s\n" "$ac_try_echo"; } >&5
1733   (eval "$ac_compile") 2>conftest.err
1734   ac_status=$?
1735   if test -s conftest.err; then
1736     grep -v '^ *+' conftest.err >conftest.er1
1737     cat conftest.er1 >&5
1738     mv -f conftest.er1 conftest.err
1739   fi
1740   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741   test $ac_status = 0; } && {
1742          test -z "$ac_cxx_werror_flag" ||
1743          test ! -s conftest.err
1744        } && test -s conftest.$ac_objext
1745 then :
1746   ac_retval=0
1747 else $as_nop
1748   printf "%s\n" "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751         ac_retval=1
1752 fi
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_cxx_try_compile
1757
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile ()
1763 {
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 printf %s "checking for $2... " >&6; }
1767 if eval test \${$3+y}
1768 then :
1769   printf %s "(cached) " >&6
1770 else $as_nop
1771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h.  */
1773 $4
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"
1777 then :
1778   eval "$3=yes"
1779 else $as_nop
1780   eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 printf "%s\n" "$ac_res" >&6; }
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_header_compile
1790
1791 # ac_fn_c_try_link LINENO
1792 # -----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_link ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1798   if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 printf "%s\n" "$ac_try_echo"; } >&5
1805   (eval "$ac_link") 2>conftest.err
1806   ac_status=$?
1807   if test -s conftest.err; then
1808     grep -v '^ *+' conftest.err >conftest.er1
1809     cat conftest.er1 >&5
1810     mv -f conftest.er1 conftest.err
1811   fi
1812   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813   test $ac_status = 0; } && {
1814          test -z "$ac_c_werror_flag" ||
1815          test ! -s conftest.err
1816        } && test -s conftest$ac_exeext && {
1817          test "$cross_compiling" = yes ||
1818          test -x conftest$ac_exeext
1819        }
1820 then :
1821   ac_retval=0
1822 else $as_nop
1823   printf "%s\n" "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826         ac_retval=1
1827 fi
1828   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830   # interfere with the next link command; also delete a directory that is
1831   # left behind by Apple's compiler.  We do this before executing the actions.
1832   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834   as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_c_check_func LINENO FUNC VAR
1839 # ----------------------------------
1840 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1841 ac_fn_c_check_func ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 printf %s "checking for $2... " >&6; }
1846 if eval test \${$3+y}
1847 then :
1848   printf %s "(cached) " >&6
1849 else $as_nop
1850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h.  */
1852 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1854 #define $2 innocuous_$2
1855
1856 /* System header to define __stub macros and hopefully few prototypes,
1857    which can conflict with char $2 (); below.  */
1858
1859 #include <limits.h>
1860 #undef $2
1861
1862 /* Override any GCC internal prototype to avoid an error.
1863    Use char because int might match the return type of a GCC
1864    builtin and then its argument prototype would still apply.  */
1865 #ifdef __cplusplus
1866 extern "C"
1867 #endif
1868 char $2 ();
1869 /* The GNU C library defines this for functions which it implements
1870     to always fail with ENOSYS.  Some functions are actually named
1871     something starting with __ and the normal name is an alias.  */
1872 #if defined __stub_$2 || defined __stub___$2
1873 choke me
1874 #endif
1875
1876 int
1877 main (void)
1878 {
1879 return $2 ();
1880   ;
1881   return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_link "$LINENO"
1885 then :
1886   eval "$3=yes"
1887 else $as_nop
1888   eval "$3=no"
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1891     conftest$ac_exeext conftest.$ac_ext
1892 fi
1893 eval ac_res=\$$3
1894                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 printf "%s\n" "$ac_res" >&6; }
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898 } # ac_fn_c_check_func
1899
1900 # ac_fn_cxx_try_cpp LINENO
1901 # ------------------------
1902 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_cxx_try_cpp ()
1904 {
1905   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906   if { { ac_try="$ac_cpp conftest.$ac_ext"
1907 case "(($ac_try" in
1908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909   *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 printf "%s\n" "$ac_try_echo"; } >&5
1913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914   ac_status=$?
1915   if test -s conftest.err; then
1916     grep -v '^ *+' conftest.err >conftest.er1
1917     cat conftest.er1 >&5
1918     mv -f conftest.er1 conftest.err
1919   fi
1920   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921   test $ac_status = 0; } > conftest.i && {
1922          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1923          test ! -s conftest.err
1924        }
1925 then :
1926   ac_retval=0
1927 else $as_nop
1928   printf "%s\n" "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931     ac_retval=1
1932 fi
1933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934   as_fn_set_status $ac_retval
1935
1936 } # ac_fn_cxx_try_cpp
1937
1938 # ac_fn_cxx_try_link LINENO
1939 # -------------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_link ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1945   if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 printf "%s\n" "$ac_try_echo"; } >&5
1952   (eval "$ac_link") 2>conftest.err
1953   ac_status=$?
1954   if test -s conftest.err; then
1955     grep -v '^ *+' conftest.err >conftest.er1
1956     cat conftest.er1 >&5
1957     mv -f conftest.er1 conftest.err
1958   fi
1959   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; } && {
1961          test -z "$ac_cxx_werror_flag" ||
1962          test ! -s conftest.err
1963        } && test -s conftest$ac_exeext && {
1964          test "$cross_compiling" = yes ||
1965          test -x conftest$ac_exeext
1966        }
1967 then :
1968   ac_retval=0
1969 else $as_nop
1970   printf "%s\n" "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973         ac_retval=1
1974 fi
1975   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977   # interfere with the next link command; also delete a directory that is
1978   # left behind by Apple's compiler.  We do this before executing the actions.
1979   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981   as_fn_set_status $ac_retval
1982
1983 } # ac_fn_cxx_try_link
1984 ac_configure_args_raw=
1985 for ac_arg
1986 do
1987   case $ac_arg in
1988   *\'*)
1989     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1990   esac
1991   as_fn_append ac_configure_args_raw " '$ac_arg'"
1992 done
1993
1994 case $ac_configure_args_raw in
1995   *$as_nl*)
1996     ac_safe_unquote= ;;
1997   *)
1998     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
1999     ac_unsafe_a="$ac_unsafe_z#~"
2000     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2001     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2002 esac
2003
2004 cat >config.log <<_ACEOF
2005 This file contains any messages produced by compilers while
2006 running configure, to aid debugging if configure makes a mistake.
2007
2008 It was created by OpenPAM $as_me 20230627, which was
2009 generated by GNU Autoconf 2.71.  Invocation command line was
2010
2011   $ $0$ac_configure_args_raw
2012
2013 _ACEOF
2014 exec 5>>config.log
2015 {
2016 cat <<_ASUNAME
2017 ## --------- ##
2018 ## Platform. ##
2019 ## --------- ##
2020
2021 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2026
2027 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2029
2030 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2031 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2032 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2034 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2035 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2036 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2037
2038 _ASUNAME
2039
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043   IFS=$as_save_IFS
2044   case $as_dir in #(((
2045     '') as_dir=./ ;;
2046     */) ;;
2047     *) as_dir=$as_dir/ ;;
2048   esac
2049     printf "%s\n" "PATH: $as_dir"
2050   done
2051 IFS=$as_save_IFS
2052
2053 } >&5
2054
2055 cat >&5 <<_ACEOF
2056
2057
2058 ## ----------- ##
2059 ## Core tests. ##
2060 ## ----------- ##
2061
2062 _ACEOF
2063
2064
2065 # Keep a trace of the command line.
2066 # Strip out --no-create and --no-recursion so they do not pile up.
2067 # Strip out --silent because we don't want to record it for future runs.
2068 # Also quote any args containing shell meta-characters.
2069 # Make two passes to allow for proper duplicate-argument suppression.
2070 ac_configure_args=
2071 ac_configure_args0=
2072 ac_configure_args1=
2073 ac_must_keep_next=false
2074 for ac_pass in 1 2
2075 do
2076   for ac_arg
2077   do
2078     case $ac_arg in
2079     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2080     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2081     | -silent | --silent | --silen | --sile | --sil)
2082       continue ;;
2083     *\'*)
2084       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2085     esac
2086     case $ac_pass in
2087     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2088     2)
2089       as_fn_append ac_configure_args1 " '$ac_arg'"
2090       if test $ac_must_keep_next = true; then
2091         ac_must_keep_next=false # Got value, back to normal.
2092       else
2093         case $ac_arg in
2094           *=* | --config-cache | -C | -disable-* | --disable-* \
2095           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2096           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2097           | -with-* | --with-* | -without-* | --without-* | --x)
2098             case "$ac_configure_args0 " in
2099               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2100             esac
2101             ;;
2102           -* ) ac_must_keep_next=true ;;
2103         esac
2104       fi
2105       as_fn_append ac_configure_args " '$ac_arg'"
2106       ;;
2107     esac
2108   done
2109 done
2110 { ac_configure_args0=; unset ac_configure_args0;}
2111 { ac_configure_args1=; unset ac_configure_args1;}
2112
2113 # When interrupted or exit'd, cleanup temporary files, and complete
2114 # config.log.  We remove comments because anyway the quotes in there
2115 # would cause problems or look ugly.
2116 # WARNING: Use '\'' to represent an apostrophe within the trap.
2117 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2118 trap 'exit_status=$?
2119   # Sanitize IFS.
2120   IFS=" ""      $as_nl"
2121   # Save into config.log some information that might help in debugging.
2122   {
2123     echo
2124
2125     printf "%s\n" "## ---------------- ##
2126 ## Cache variables. ##
2127 ## ---------------- ##"
2128     echo
2129     # The following way of writing the cache mishandles newlines in values,
2130 (
2131   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2132     eval ac_val=\$$ac_var
2133     case $ac_val in #(
2134     *${as_nl}*)
2135       case $ac_var in #(
2136       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2137 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2138       esac
2139       case $ac_var in #(
2140       _ | IFS | as_nl) ;; #(
2141       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2142       *) { eval $ac_var=; unset $ac_var;} ;;
2143       esac ;;
2144     esac
2145   done
2146   (set) 2>&1 |
2147     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2148     *${as_nl}ac_space=\ *)
2149       sed -n \
2150         "s/'\''/'\''\\\\'\'''\''/g;
2151           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2152       ;; #(
2153     *)
2154       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2155       ;;
2156     esac |
2157     sort
2158 )
2159     echo
2160
2161     printf "%s\n" "## ----------------- ##
2162 ## Output variables. ##
2163 ## ----------------- ##"
2164     echo
2165     for ac_var in $ac_subst_vars
2166     do
2167       eval ac_val=\$$ac_var
2168       case $ac_val in
2169       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170       esac
2171       printf "%s\n" "$ac_var='\''$ac_val'\''"
2172     done | sort
2173     echo
2174
2175     if test -n "$ac_subst_files"; then
2176       printf "%s\n" "## ------------------- ##
2177 ## File substitutions. ##
2178 ## ------------------- ##"
2179       echo
2180       for ac_var in $ac_subst_files
2181       do
2182         eval ac_val=\$$ac_var
2183         case $ac_val in
2184         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185         esac
2186         printf "%s\n" "$ac_var='\''$ac_val'\''"
2187       done | sort
2188       echo
2189     fi
2190
2191     if test -s confdefs.h; then
2192       printf "%s\n" "## ----------- ##
2193 ## confdefs.h. ##
2194 ## ----------- ##"
2195       echo
2196       cat confdefs.h
2197       echo
2198     fi
2199     test "$ac_signal" != 0 &&
2200       printf "%s\n" "$as_me: caught signal $ac_signal"
2201     printf "%s\n" "$as_me: exit $exit_status"
2202   } >&5
2203   rm -f core *.core core.conftest.* &&
2204     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2205     exit $exit_status
2206 ' 0
2207 for ac_signal in 1 2 13 15; do
2208   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2209 done
2210 ac_signal=0
2211
2212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2213 rm -f -r conftest* confdefs.h
2214
2215 printf "%s\n" "/* confdefs.h */" > confdefs.h
2216
2217 # Predefined preprocessor variables.
2218
2219 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2220
2221 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2222
2223 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2224
2225 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2226
2227 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2228
2229 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2230
2231
2232 # Let the site file select an alternate cache file if it wants to.
2233 # Prefer an explicitly selected file to automatically selected ones.
2234 if test -n "$CONFIG_SITE"; then
2235   ac_site_files="$CONFIG_SITE"
2236 elif test "x$prefix" != xNONE; then
2237   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2238 else
2239   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2240 fi
2241
2242 for ac_site_file in $ac_site_files
2243 do
2244   case $ac_site_file in #(
2245   */*) :
2246      ;; #(
2247   *) :
2248     ac_site_file=./$ac_site_file ;;
2249 esac
2250   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2251     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2252 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2253     sed 's/^/| /' "$ac_site_file" >&5
2254     . "$ac_site_file" \
2255       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2257 as_fn_error $? "failed to load site script $ac_site_file
2258 See \`config.log' for more details" "$LINENO" 5; }
2259   fi
2260 done
2261
2262 if test -r "$cache_file"; then
2263   # Some versions of bash will fail to source /dev/null (special files
2264   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2265   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2266     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2267 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2268     case $cache_file in
2269       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2270       *)                      . "./$cache_file";;
2271     esac
2272   fi
2273 else
2274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2275 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2276   >$cache_file
2277 fi
2278
2279 # Test code for whether the C compiler supports C89 (global declarations)
2280 ac_c_conftest_c89_globals='
2281 /* Does the compiler advertise C89 conformance?
2282    Do not test the value of __STDC__, because some compilers set it to 0
2283    while being otherwise adequately conformant. */
2284 #if !defined __STDC__
2285 # error "Compiler does not advertise C89 conformance"
2286 #endif
2287
2288 #include <stddef.h>
2289 #include <stdarg.h>
2290 struct stat;
2291 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2292 struct buf { int x; };
2293 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2294 static char *e (p, i)
2295      char **p;
2296      int i;
2297 {
2298   return p[i];
2299 }
2300 static char *f (char * (*g) (char **, int), char **p, ...)
2301 {
2302   char *s;
2303   va_list v;
2304   va_start (v,p);
2305   s = g (p, va_arg (v,int));
2306   va_end (v);
2307   return s;
2308 }
2309
2310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2311    function prototypes and stuff, but not \xHH hex character constants.
2312    These do not provoke an error unfortunately, instead are silently treated
2313    as an "x".  The following induces an error, until -std is added to get
2314    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2315    array size at least.  It is necessary to write \x00 == 0 to get something
2316    that is true only with -std.  */
2317 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2318
2319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2320    inside strings and character constants.  */
2321 #define FOO(x) '\''x'\''
2322 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2323
2324 int test (int i, double x);
2325 struct s1 {int (*f) (int a);};
2326 struct s2 {int (*f) (double a);};
2327 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2328                int, int);'
2329
2330 # Test code for whether the C compiler supports C89 (body of main).
2331 ac_c_conftest_c89_main='
2332 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2333 '
2334
2335 # Test code for whether the C compiler supports C99 (global declarations)
2336 ac_c_conftest_c99_globals='
2337 // Does the compiler advertise C99 conformance?
2338 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2339 # error "Compiler does not advertise C99 conformance"
2340 #endif
2341
2342 #include <stdbool.h>
2343 extern int puts (const char *);
2344 extern int printf (const char *, ...);
2345 extern int dprintf (int, const char *, ...);
2346 extern void *malloc (size_t);
2347
2348 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2349 // dprintf is used instead of fprintf to avoid needing to declare
2350 // FILE and stderr.
2351 #define debug(...) dprintf (2, __VA_ARGS__)
2352 #define showlist(...) puts (#__VA_ARGS__)
2353 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2354 static void
2355 test_varargs_macros (void)
2356 {
2357   int x = 1234;
2358   int y = 5678;
2359   debug ("Flag");
2360   debug ("X = %d\n", x);
2361   showlist (The first, second, and third items.);
2362   report (x>y, "x is %d but y is %d", x, y);
2363 }
2364
2365 // Check long long types.
2366 #define BIG64 18446744073709551615ull
2367 #define BIG32 4294967295ul
2368 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2369 #if !BIG_OK
2370   #error "your preprocessor is broken"
2371 #endif
2372 #if BIG_OK
2373 #else
2374   #error "your preprocessor is broken"
2375 #endif
2376 static long long int bignum = -9223372036854775807LL;
2377 static unsigned long long int ubignum = BIG64;
2378
2379 struct incomplete_array
2380 {
2381   int datasize;
2382   double data[];
2383 };
2384
2385 struct named_init {
2386   int number;
2387   const wchar_t *name;
2388   double average;
2389 };
2390
2391 typedef const char *ccp;
2392
2393 static inline int
2394 test_restrict (ccp restrict text)
2395 {
2396   // See if C++-style comments work.
2397   // Iterate through items via the restricted pointer.
2398   // Also check for declarations in for loops.
2399   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2400     continue;
2401   return 0;
2402 }
2403
2404 // Check varargs and va_copy.
2405 static bool
2406 test_varargs (const char *format, ...)
2407 {
2408   va_list args;
2409   va_start (args, format);
2410   va_list args_copy;
2411   va_copy (args_copy, args);
2412
2413   const char *str = "";
2414   int number = 0;
2415   float fnumber = 0;
2416
2417   while (*format)
2418     {
2419       switch (*format++)
2420         {
2421         case '\''s'\'': // string
2422           str = va_arg (args_copy, const char *);
2423           break;
2424         case '\''d'\'': // int
2425           number = va_arg (args_copy, int);
2426           break;
2427         case '\''f'\'': // float
2428           fnumber = va_arg (args_copy, double);
2429           break;
2430         default:
2431           break;
2432         }
2433     }
2434   va_end (args_copy);
2435   va_end (args);
2436
2437   return *str && number && fnumber;
2438 }
2439 '
2440
2441 # Test code for whether the C compiler supports C99 (body of main).
2442 ac_c_conftest_c99_main='
2443   // Check bool.
2444   _Bool success = false;
2445   success |= (argc != 0);
2446
2447   // Check restrict.
2448   if (test_restrict ("String literal") == 0)
2449     success = true;
2450   char *restrict newvar = "Another string";
2451
2452   // Check varargs.
2453   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2454   test_varargs_macros ();
2455
2456   // Check flexible array members.
2457   struct incomplete_array *ia =
2458     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2459   ia->datasize = 10;
2460   for (int i = 0; i < ia->datasize; ++i)
2461     ia->data[i] = i * 1.234;
2462
2463   // Check named initializers.
2464   struct named_init ni = {
2465     .number = 34,
2466     .name = L"Test wide string",
2467     .average = 543.34343,
2468   };
2469
2470   ni.number = 58;
2471
2472   int dynamic_array[ni.number];
2473   dynamic_array[0] = argv[0][0];
2474   dynamic_array[ni.number - 1] = 543;
2475
2476   // work around unused variable warnings
2477   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2478          || dynamic_array[ni.number - 1] != 543);
2479 '
2480
2481 # Test code for whether the C compiler supports C11 (global declarations)
2482 ac_c_conftest_c11_globals='
2483 // Does the compiler advertise C11 conformance?
2484 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2485 # error "Compiler does not advertise C11 conformance"
2486 #endif
2487
2488 // Check _Alignas.
2489 char _Alignas (double) aligned_as_double;
2490 char _Alignas (0) no_special_alignment;
2491 extern char aligned_as_int;
2492 char _Alignas (0) _Alignas (int) aligned_as_int;
2493
2494 // Check _Alignof.
2495 enum
2496 {
2497   int_alignment = _Alignof (int),
2498   int_array_alignment = _Alignof (int[100]),
2499   char_alignment = _Alignof (char)
2500 };
2501 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2502
2503 // Check _Noreturn.
2504 int _Noreturn does_not_return (void) { for (;;) continue; }
2505
2506 // Check _Static_assert.
2507 struct test_static_assert
2508 {
2509   int x;
2510   _Static_assert (sizeof (int) <= sizeof (long int),
2511                   "_Static_assert does not work in struct");
2512   long int y;
2513 };
2514
2515 // Check UTF-8 literals.
2516 #define u8 syntax error!
2517 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2518
2519 // Check duplicate typedefs.
2520 typedef long *long_ptr;
2521 typedef long int *long_ptr;
2522 typedef long_ptr long_ptr;
2523
2524 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2525 struct anonymous
2526 {
2527   union {
2528     struct { int i; int j; };
2529     struct { int k; long int l; } w;
2530   };
2531   int m;
2532 } v1;
2533 '
2534
2535 # Test code for whether the C compiler supports C11 (body of main).
2536 ac_c_conftest_c11_main='
2537   _Static_assert ((offsetof (struct anonymous, i)
2538                    == offsetof (struct anonymous, w.k)),
2539                   "Anonymous union alignment botch");
2540   v1.i = 2;
2541   v1.w.k = 5;
2542   ok |= v1.i != 5;
2543 '
2544
2545 # Test code for whether the C compiler supports C11 (complete).
2546 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2547 ${ac_c_conftest_c99_globals}
2548 ${ac_c_conftest_c11_globals}
2549
2550 int
2551 main (int argc, char **argv)
2552 {
2553   int ok = 0;
2554   ${ac_c_conftest_c89_main}
2555   ${ac_c_conftest_c99_main}
2556   ${ac_c_conftest_c11_main}
2557   return ok;
2558 }
2559 "
2560
2561 # Test code for whether the C compiler supports C99 (complete).
2562 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2563 ${ac_c_conftest_c99_globals}
2564
2565 int
2566 main (int argc, char **argv)
2567 {
2568   int ok = 0;
2569   ${ac_c_conftest_c89_main}
2570   ${ac_c_conftest_c99_main}
2571   return ok;
2572 }
2573 "
2574
2575 # Test code for whether the C compiler supports C89 (complete).
2576 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2577
2578 int
2579 main (int argc, char **argv)
2580 {
2581   int ok = 0;
2582   ${ac_c_conftest_c89_main}
2583   return ok;
2584 }
2585 "
2586
2587 # Test code for whether the C++ compiler supports C++98 (global declarations)
2588 ac_cxx_conftest_cxx98_globals='
2589 // Does the compiler advertise C++98 conformance?
2590 #if !defined __cplusplus || __cplusplus < 199711L
2591 # error "Compiler does not advertise C++98 conformance"
2592 #endif
2593
2594 // These inclusions are to reject old compilers that
2595 // lack the unsuffixed header files.
2596 #include <cstdlib>
2597 #include <exception>
2598
2599 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2600 extern void assert (int);
2601 namespace std {
2602   extern int strcmp (const char *, const char *);
2603 }
2604
2605 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2606 using std::exception;
2607 using std::strcmp;
2608
2609 namespace {
2610
2611 void test_exception_syntax()
2612 {
2613   try {
2614     throw "test";
2615   } catch (const char *s) {
2616     // Extra parentheses suppress a warning when building autoconf itself,
2617     // due to lint rules shared with more typical C programs.
2618     assert (!(strcmp) (s, "test"));
2619   }
2620 }
2621
2622 template <typename T> struct test_template
2623 {
2624   T const val;
2625   explicit test_template(T t) : val(t) {}
2626   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2627 };
2628
2629 } // anonymous namespace
2630 '
2631
2632 # Test code for whether the C++ compiler supports C++98 (body of main)
2633 ac_cxx_conftest_cxx98_main='
2634   assert (argc);
2635   assert (! argv[0]);
2636 {
2637   test_exception_syntax ();
2638   test_template<double> tt (2.0);
2639   assert (tt.add (4) == 6.0);
2640   assert (true && !false);
2641 }
2642 '
2643
2644 # Test code for whether the C++ compiler supports C++11 (global declarations)
2645 ac_cxx_conftest_cxx11_globals='
2646 // Does the compiler advertise C++ 2011 conformance?
2647 #if !defined __cplusplus || __cplusplus < 201103L
2648 # error "Compiler does not advertise C++11 conformance"
2649 #endif
2650
2651 namespace cxx11test
2652 {
2653   constexpr int get_val() { return 20; }
2654
2655   struct testinit
2656   {
2657     int i;
2658     double d;
2659   };
2660
2661   class delegate
2662   {
2663   public:
2664     delegate(int n) : n(n) {}
2665     delegate(): delegate(2354) {}
2666
2667     virtual int getval() { return this->n; };
2668   protected:
2669     int n;
2670   };
2671
2672   class overridden : public delegate
2673   {
2674   public:
2675     overridden(int n): delegate(n) {}
2676     virtual int getval() override final { return this->n * 2; }
2677   };
2678
2679   class nocopy
2680   {
2681   public:
2682     nocopy(int i): i(i) {}
2683     nocopy() = default;
2684     nocopy(const nocopy&) = delete;
2685     nocopy & operator=(const nocopy&) = delete;
2686   private:
2687     int i;
2688   };
2689
2690   // for testing lambda expressions
2691   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2692   {
2693     return f(v);
2694   }
2695
2696   // for testing variadic templates and trailing return types
2697   template <typename V> auto sum(V first) -> V
2698   {
2699     return first;
2700   }
2701   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2702   {
2703     return first + sum(rest...);
2704   }
2705 }
2706 '
2707
2708 # Test code for whether the C++ compiler supports C++11 (body of main)
2709 ac_cxx_conftest_cxx11_main='
2710 {
2711   // Test auto and decltype
2712   auto a1 = 6538;
2713   auto a2 = 48573953.4;
2714   auto a3 = "String literal";
2715
2716   int total = 0;
2717   for (auto i = a3; *i; ++i) { total += *i; }
2718
2719   decltype(a2) a4 = 34895.034;
2720 }
2721 {
2722   // Test constexpr
2723   short sa[cxx11test::get_val()] = { 0 };
2724 }
2725 {
2726   // Test initializer lists
2727   cxx11test::testinit il = { 4323, 435234.23544 };
2728 }
2729 {
2730   // Test range-based for
2731   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2732                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2733   for (auto &x : array) { x += 23; }
2734 }
2735 {
2736   // Test lambda expressions
2737   using cxx11test::eval;
2738   assert (eval ([](int x) { return x*2; }, 21) == 42);
2739   double d = 2.0;
2740   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2741   assert (d == 5.0);
2742   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2743   assert (d == 5.0);
2744 }
2745 {
2746   // Test use of variadic templates
2747   using cxx11test::sum;
2748   auto a = sum(1);
2749   auto b = sum(1, 2);
2750   auto c = sum(1.0, 2.0, 3.0);
2751 }
2752 {
2753   // Test constructor delegation
2754   cxx11test::delegate d1;
2755   cxx11test::delegate d2();
2756   cxx11test::delegate d3(45);
2757 }
2758 {
2759   // Test override and final
2760   cxx11test::overridden o1(55464);
2761 }
2762 {
2763   // Test nullptr
2764   char *c = nullptr;
2765 }
2766 {
2767   // Test template brackets
2768   test_template<::test_template<int>> v(test_template<int>(12));
2769 }
2770 {
2771   // Unicode literals
2772   char const *utf8 = u8"UTF-8 string \u2500";
2773   char16_t const *utf16 = u"UTF-8 string \u2500";
2774   char32_t const *utf32 = U"UTF-32 string \u2500";
2775 }
2776 '
2777
2778 # Test code for whether the C compiler supports C++11 (complete).
2779 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2780 ${ac_cxx_conftest_cxx11_globals}
2781
2782 int
2783 main (int argc, char **argv)
2784 {
2785   int ok = 0;
2786   ${ac_cxx_conftest_cxx98_main}
2787   ${ac_cxx_conftest_cxx11_main}
2788   return ok;
2789 }
2790 "
2791
2792 # Test code for whether the C compiler supports C++98 (complete).
2793 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2794 int
2795 main (int argc, char **argv)
2796 {
2797   int ok = 0;
2798   ${ac_cxx_conftest_cxx98_main}
2799   return ok;
2800 }
2801 "
2802
2803 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2804 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2805 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2806 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2807 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2808 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2809 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2810 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2811 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2812 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2813 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2814
2815 # Auxiliary files required by this configure script.
2816 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2817
2818 # Locations in which to look for auxiliary files.
2819 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2820
2821 # Search for a directory containing all of the required auxiliary files,
2822 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2823 # If we don't find one directory that contains all the files we need,
2824 # we report the set of missing files from the *first* directory in
2825 # $ac_aux_dir_candidates and give up.
2826 ac_missing_aux_files=""
2827 ac_first_candidate=:
2828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 as_found=false
2831 for as_dir in $ac_aux_dir_candidates
2832 do
2833   IFS=$as_save_IFS
2834   case $as_dir in #(((
2835     '') as_dir=./ ;;
2836     */) ;;
2837     *) as_dir=$as_dir/ ;;
2838   esac
2839   as_found=:
2840
2841   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2842   ac_aux_dir_found=yes
2843   ac_install_sh=
2844   for ac_aux in $ac_aux_files
2845   do
2846     # As a special case, if "install-sh" is required, that requirement
2847     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2848     # and $ac_install_sh is set appropriately for whichever one is found.
2849     if test x"$ac_aux" = x"install-sh"
2850     then
2851       if test -f "${as_dir}install-sh"; then
2852         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2853         ac_install_sh="${as_dir}install-sh -c"
2854       elif test -f "${as_dir}install.sh"; then
2855         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2856         ac_install_sh="${as_dir}install.sh -c"
2857       elif test -f "${as_dir}shtool"; then
2858         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2859         ac_install_sh="${as_dir}shtool install -c"
2860       else
2861         ac_aux_dir_found=no
2862         if $ac_first_candidate; then
2863           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2864         else
2865           break
2866         fi
2867       fi
2868     else
2869       if test -f "${as_dir}${ac_aux}"; then
2870         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2871       else
2872         ac_aux_dir_found=no
2873         if $ac_first_candidate; then
2874           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2875         else
2876           break
2877         fi
2878       fi
2879     fi
2880   done
2881   if test "$ac_aux_dir_found" = yes; then
2882     ac_aux_dir="$as_dir"
2883     break
2884   fi
2885   ac_first_candidate=false
2886
2887   as_found=false
2888 done
2889 IFS=$as_save_IFS
2890 if $as_found
2891 then :
2892
2893 else $as_nop
2894   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2895 fi
2896
2897
2898 # These three variables are undocumented and unsupported,
2899 # and are intended to be withdrawn in a future Autoconf release.
2900 # They can cause serious problems if a builder's source tree is in a directory
2901 # whose full name contains unusual characters.
2902 if test -f "${ac_aux_dir}config.guess"; then
2903   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2904 fi
2905 if test -f "${ac_aux_dir}config.sub"; then
2906   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2907 fi
2908 if test -f "$ac_aux_dir/configure"; then
2909   ac_configure="$SHELL ${ac_aux_dir}configure"
2910 fi
2911
2912 # Check that the precious variables saved in the cache have kept the same
2913 # value.
2914 ac_cache_corrupted=false
2915 for ac_var in $ac_precious_vars; do
2916   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2917   eval ac_new_set=\$ac_env_${ac_var}_set
2918   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2919   eval ac_new_val=\$ac_env_${ac_var}_value
2920   case $ac_old_set,$ac_new_set in
2921     set,)
2922       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2923 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2924       ac_cache_corrupted=: ;;
2925     ,set)
2926       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2927 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2928       ac_cache_corrupted=: ;;
2929     ,);;
2930     *)
2931       if test "x$ac_old_val" != "x$ac_new_val"; then
2932         # differences in whitespace do not lead to failure.
2933         ac_old_val_w=`echo x $ac_old_val`
2934         ac_new_val_w=`echo x $ac_new_val`
2935         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2936           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2937 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2938           ac_cache_corrupted=:
2939         else
2940           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2941 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2942           eval $ac_var=\$ac_old_val
2943         fi
2944         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2945 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2946         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2947 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2948       fi;;
2949   esac
2950   # Pass precious variables to config.status.
2951   if test "$ac_new_set" = set; then
2952     case $ac_new_val in
2953     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2954     *) ac_arg=$ac_var=$ac_new_val ;;
2955     esac
2956     case " $ac_configure_args " in
2957       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2958       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2959     esac
2960   fi
2961 done
2962 if $ac_cache_corrupted; then
2963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2966 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2967   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2968             and start over" "$LINENO" 5
2969 fi
2970 ## -------------------- ##
2971 ## Main body of script. ##
2972 ## -------------------- ##
2973
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979
2980
2981
2982
2983 am__api_version='1.16'
2984
2985
2986
2987   # Find a good install program.  We prefer a C program (faster),
2988 # so one script is as good as another.  But avoid the broken or
2989 # incompatible versions:
2990 # SysV /etc/install, /usr/sbin/install
2991 # SunOS /usr/etc/install
2992 # IRIX /sbin/install
2993 # AIX /bin/install
2994 # AmigaOS /C/install, which installs bootblocks on floppy discs
2995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2998 # OS/2's system install, which has a completely different semantic
2999 # ./install, which can be erroneously created by make from ./install.sh.
3000 # Reject install programs that cannot install multiple files.
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3002 printf %s "checking for a BSD-compatible install... " >&6; }
3003 if test -z "$INSTALL"; then
3004 if test ${ac_cv_path_install+y}
3005 then :
3006   printf %s "(cached) " >&6
3007 else $as_nop
3008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011   IFS=$as_save_IFS
3012   case $as_dir in #(((
3013     '') as_dir=./ ;;
3014     */) ;;
3015     *) as_dir=$as_dir/ ;;
3016   esac
3017     # Account for fact that we put trailing slashes in our PATH walk.
3018 case $as_dir in #((
3019   ./ | /[cC]/* | \
3020   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3021   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3022   /usr/ucb/* ) ;;
3023   *)
3024     # OSF1 and SCO ODT 3.0 have their own names for install.
3025     # Don't use installbsd from OSF since it installs stuff as root
3026     # by default.
3027     for ac_prog in ginstall scoinst install; do
3028       for ac_exec_ext in '' $ac_executable_extensions; do
3029         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3030           if test $ac_prog = install &&
3031             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3032             # AIX install.  It has an incompatible calling convention.
3033             :
3034           elif test $ac_prog = install &&
3035             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3036             # program-specific install script used by HP pwplus--don't use.
3037             :
3038           else
3039             rm -rf conftest.one conftest.two conftest.dir
3040             echo one > conftest.one
3041             echo two > conftest.two
3042             mkdir conftest.dir
3043             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3044               test -s conftest.one && test -s conftest.two &&
3045               test -s conftest.dir/conftest.one &&
3046               test -s conftest.dir/conftest.two
3047             then
3048               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3049               break 3
3050             fi
3051           fi
3052         fi
3053       done
3054     done
3055     ;;
3056 esac
3057
3058   done
3059 IFS=$as_save_IFS
3060
3061 rm -rf conftest.one conftest.two conftest.dir
3062
3063 fi
3064   if test ${ac_cv_path_install+y}; then
3065     INSTALL=$ac_cv_path_install
3066   else
3067     # As a last resort, use the slow shell script.  Don't cache a
3068     # value for INSTALL within a source directory, because that will
3069     # break other packages using the cache if that directory is
3070     # removed, or if the value is a relative name.
3071     INSTALL=$ac_install_sh
3072   fi
3073 fi
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3075 printf "%s\n" "$INSTALL" >&6; }
3076
3077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3078 # It thinks the first close brace ends the variable substitution.
3079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3080
3081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3082
3083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3084
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3086 printf %s "checking whether build environment is sane... " >&6; }
3087 # Reject unsafe characters in $srcdir or the absolute working directory
3088 # name.  Accept space and tab only in the latter.
3089 am_lf='
3090 '
3091 case `pwd` in
3092   *[\\\"\#\$\&\'\`$am_lf]*)
3093     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3094 esac
3095 case $srcdir in
3096   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3097     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3098 esac
3099
3100 # Do 'set' in a subshell so we don't clobber the current shell's
3101 # arguments.  Must try -L first in case configure is actually a
3102 # symlink; some systems play weird games with the mod time of symlinks
3103 # (eg FreeBSD returns the mod time of the symlink's containing
3104 # directory).
3105 if (
3106    am_has_slept=no
3107    for am_try in 1 2; do
3108      echo "timestamp, slept: $am_has_slept" > conftest.file
3109      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3110      if test "$*" = "X"; then
3111         # -L didn't work.
3112         set X `ls -t "$srcdir/configure" conftest.file`
3113      fi
3114      if test "$*" != "X $srcdir/configure conftest.file" \
3115         && test "$*" != "X conftest.file $srcdir/configure"; then
3116
3117         # If neither matched, then we have a broken ls.  This can happen
3118         # if, for instance, CONFIG_SHELL is bash and it inherits a
3119         # broken ls alias from the environment.  This has actually
3120         # happened.  Such a system could not be considered "sane".
3121         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3122   alias in your environment" "$LINENO" 5
3123      fi
3124      if test "$2" = conftest.file || test $am_try -eq 2; then
3125        break
3126      fi
3127      # Just in case.
3128      sleep 1
3129      am_has_slept=yes
3130    done
3131    test "$2" = conftest.file
3132    )
3133 then
3134    # Ok.
3135    :
3136 else
3137    as_fn_error $? "newly created file is older than distributed files!
3138 Check your system clock" "$LINENO" 5
3139 fi
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141 printf "%s\n" "yes" >&6; }
3142 # If we didn't sleep, we still need to ensure time stamps of config.status and
3143 # generated files are strictly newer.
3144 am_sleep_pid=
3145 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3146   ( sleep 1 ) &
3147   am_sleep_pid=$!
3148 fi
3149
3150 rm -f conftest.file
3151
3152 test "$program_prefix" != NONE &&
3153   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE &&
3156   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3157 # Double any \ or $.
3158 # By default was `s,x,x', remove it if useless.
3159 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3160 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3161
3162
3163 # Expand $ac_aux_dir to an absolute path.
3164 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3165
3166
3167   if test x"${MISSING+set}" != xset; then
3168   MISSING="\${SHELL} '$am_aux_dir/missing'"
3169 fi
3170 # Use eval to expand $SHELL
3171 if eval "$MISSING --is-lightweight"; then
3172   am_missing_run="$MISSING "
3173 else
3174   am_missing_run=
3175   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3176 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3177 fi
3178
3179 if test x"${install_sh+set}" != xset; then
3180   case $am_aux_dir in
3181   *\ * | *\     *)
3182     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3183   *)
3184     install_sh="\${SHELL} $am_aux_dir/install-sh"
3185   esac
3186 fi
3187
3188 # Installed binaries are usually stripped using 'strip' when the user
3189 # run "make install-strip".  However 'strip' might not be the right
3190 # tool to use in cross-compilation environments, therefore Automake
3191 # will honor the 'STRIP' environment variable to overrule this program.
3192 if test "$cross_compiling" != no; then
3193   if test -n "$ac_tool_prefix"; then
3194   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}strip; ac_word=$2
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 printf %s "checking for $ac_word... " >&6; }
3198 if test ${ac_cv_prog_STRIP+y}
3199 then :
3200   printf %s "(cached) " >&6
3201 else $as_nop
3202   if test -n "$STRIP"; then
3203   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208   IFS=$as_save_IFS
3209   case $as_dir in #(((
3210     '') as_dir=./ ;;
3211     */) ;;
3212     *) as_dir=$as_dir/ ;;
3213   esac
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3216     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3217     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 STRIP=$ac_cv_prog_STRIP
3227 if test -n "$STRIP"; then
3228   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3229 printf "%s\n" "$STRIP" >&6; }
3230 else
3231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 printf "%s\n" "no" >&6; }
3233 fi
3234
3235
3236 fi
3237 if test -z "$ac_cv_prog_STRIP"; then
3238   ac_ct_STRIP=$STRIP
3239   # Extract the first word of "strip", so it can be a program name with args.
3240 set dummy strip; ac_word=$2
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 printf %s "checking for $ac_word... " >&6; }
3243 if test ${ac_cv_prog_ac_ct_STRIP+y}
3244 then :
3245   printf %s "(cached) " >&6
3246 else $as_nop
3247   if test -n "$ac_ct_STRIP"; then
3248   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253   IFS=$as_save_IFS
3254   case $as_dir in #(((
3255     '') as_dir=./ ;;
3256     */) ;;
3257     *) as_dir=$as_dir/ ;;
3258   esac
3259     for ac_exec_ext in '' $ac_executable_extensions; do
3260   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3261     ac_cv_prog_ac_ct_STRIP="strip"
3262     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3263     break 2
3264   fi
3265 done
3266   done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3272 if test -n "$ac_ct_STRIP"; then
3273   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3274 printf "%s\n" "$ac_ct_STRIP" >&6; }
3275 else
3276   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 printf "%s\n" "no" >&6; }
3278 fi
3279
3280   if test "x$ac_ct_STRIP" = x; then
3281     STRIP=":"
3282   else
3283     case $cross_compiling:$ac_tool_warned in
3284 yes:)
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3286 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3287 ac_tool_warned=yes ;;
3288 esac
3289     STRIP=$ac_ct_STRIP
3290   fi
3291 else
3292   STRIP="$ac_cv_prog_STRIP"
3293 fi
3294
3295 fi
3296 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3297
3298
3299   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3300 printf %s "checking for a race-free mkdir -p... " >&6; }
3301 if test -z "$MKDIR_P"; then
3302   if test ${ac_cv_path_mkdir+y}
3303 then :
3304   printf %s "(cached) " >&6
3305 else $as_nop
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3308 do
3309   IFS=$as_save_IFS
3310   case $as_dir in #(((
3311     '') as_dir=./ ;;
3312     */) ;;
3313     *) as_dir=$as_dir/ ;;
3314   esac
3315     for ac_prog in mkdir gmkdir; do
3316          for ac_exec_ext in '' $ac_executable_extensions; do
3317            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3318            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3319              'mkdir ('*'coreutils) '* | \
3320              'BusyBox '* | \
3321              'mkdir (fileutils) '4.1*)
3322                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3323                break 3;;
3324            esac
3325          done
3326        done
3327   done
3328 IFS=$as_save_IFS
3329
3330 fi
3331
3332   test -d ./--version && rmdir ./--version
3333   if test ${ac_cv_path_mkdir+y}; then
3334     MKDIR_P="$ac_cv_path_mkdir -p"
3335   else
3336     # As a last resort, use the slow shell script.  Don't cache a
3337     # value for MKDIR_P within a source directory, because that will
3338     # break other packages using the cache if that directory is
3339     # removed, or if the value is a relative name.
3340     MKDIR_P="$ac_install_sh -d"
3341   fi
3342 fi
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3344 printf "%s\n" "$MKDIR_P" >&6; }
3345
3346 for ac_prog in gawk mawk nawk awk
3347 do
3348   # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 printf %s "checking for $ac_word... " >&6; }
3352 if test ${ac_cv_prog_AWK+y}
3353 then :
3354   printf %s "(cached) " >&6
3355 else $as_nop
3356   if test -n "$AWK"; then
3357   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   case $as_dir in #(((
3364     '') as_dir=./ ;;
3365     */) ;;
3366     *) as_dir=$as_dir/ ;;
3367   esac
3368     for ac_exec_ext in '' $ac_executable_extensions; do
3369   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3370     ac_cv_prog_AWK="$ac_prog"
3371     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3372     break 2
3373   fi
3374 done
3375   done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 AWK=$ac_cv_prog_AWK
3381 if test -n "$AWK"; then
3382   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3383 printf "%s\n" "$AWK" >&6; }
3384 else
3385   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 printf "%s\n" "no" >&6; }
3387 fi
3388
3389
3390   test -n "$AWK" && break
3391 done
3392
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3394 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3395 set x ${MAKE-make}
3396 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3397 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3398 then :
3399   printf %s "(cached) " >&6
3400 else $as_nop
3401   cat >conftest.make <<\_ACEOF
3402 SHELL = /bin/sh
3403 all:
3404         @echo '@@@%%%=$(MAKE)=@@@%%%'
3405 _ACEOF
3406 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3407 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3408   *@@@%%%=?*=@@@%%%*)
3409     eval ac_cv_prog_make_${ac_make}_set=yes;;
3410   *)
3411     eval ac_cv_prog_make_${ac_make}_set=no;;
3412 esac
3413 rm -f conftest.make
3414 fi
3415 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417 printf "%s\n" "yes" >&6; }
3418   SET_MAKE=
3419 else
3420   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 printf "%s\n" "no" >&6; }
3422   SET_MAKE="MAKE=${MAKE-make}"
3423 fi
3424
3425 rm -rf .tst 2>/dev/null
3426 mkdir .tst 2>/dev/null
3427 if test -d .tst; then
3428   am__leading_dot=.
3429 else
3430   am__leading_dot=_
3431 fi
3432 rmdir .tst 2>/dev/null
3433
3434 # Check whether --enable-silent-rules was given.
3435 if test ${enable_silent_rules+y}
3436 then :
3437   enableval=$enable_silent_rules;
3438 fi
3439
3440 case $enable_silent_rules in # (((
3441   yes) AM_DEFAULT_VERBOSITY=0;;
3442    no) AM_DEFAULT_VERBOSITY=1;;
3443     *) AM_DEFAULT_VERBOSITY=1;;
3444 esac
3445 am_make=${MAKE-make}
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3447 printf %s "checking whether $am_make supports nested variables... " >&6; }
3448 if test ${am_cv_make_support_nested_variables+y}
3449 then :
3450   printf %s "(cached) " >&6
3451 else $as_nop
3452   if printf "%s\n" 'TRUE=$(BAR$(V))
3453 BAR0=false
3454 BAR1=true
3455 V=1
3456 am__doit:
3457         @$(TRUE)
3458 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3459   am_cv_make_support_nested_variables=yes
3460 else
3461   am_cv_make_support_nested_variables=no
3462 fi
3463 fi
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3465 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3466 if test $am_cv_make_support_nested_variables = yes; then
3467     AM_V='$(V)'
3468   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3469 else
3470   AM_V=$AM_DEFAULT_VERBOSITY
3471   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3472 fi
3473 AM_BACKSLASH='\'
3474
3475 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3476   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3477   # is not polluted with repeated "-I."
3478   am__isrc=' -I$(srcdir)'
3479   # test to see if srcdir already configured
3480   if test -f $srcdir/config.status; then
3481     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3482   fi
3483 fi
3484
3485 # test whether we have cygpath
3486 if test -z "$CYGPATH_W"; then
3487   if (cygpath --version) >/dev/null 2>/dev/null; then
3488     CYGPATH_W='cygpath -w'
3489   else
3490     CYGPATH_W=echo
3491   fi
3492 fi
3493
3494
3495 # Define the identity of the package.
3496  PACKAGE='openpam'
3497  VERSION='20230627'
3498
3499
3500 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3501
3502
3503 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3504
3505 # Some tools Automake needs.
3506
3507 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3508
3509
3510 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3511
3512
3513 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3514
3515
3516 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3517
3518
3519 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3520
3521 # For better backward compatibility.  To be removed once Automake 1.9.x
3522 # dies out for good.  For more background, see:
3523 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3524 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3525 mkdir_p='$(MKDIR_P)'
3526
3527 # We need awk for the "check" target (and possibly the TAP driver).  The
3528 # system "awk" is bad on some platforms.
3529 # Always define AMTAR for backward compatibility.  Yes, it's still used
3530 # in the wild :-(  We should find a proper way to deprecate it ...
3531 AMTAR='$${TAR-tar}'
3532
3533
3534 # We'll loop over all known methods to create a tar archive until one works.
3535 _am_tools='gnutar  pax cpio none'
3536
3537 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3538
3539
3540
3541
3542
3543 # Variables for tags utilities; see am/tags.am
3544 if test -z "$CTAGS"; then
3545   CTAGS=ctags
3546 fi
3547
3548 if test -z "$ETAGS"; then
3549   ETAGS=etags
3550 fi
3551
3552 if test -z "$CSCOPE"; then
3553   CSCOPE=cscope
3554 fi
3555
3556
3557
3558 # POSIX will say in a future version that running "rm -f" with no argument
3559 # is OK; and we want to be able to make that assumption in our Makefile
3560 # recipes.  So use an aggressive probe to check that the usage we want is
3561 # actually supported "in the wild" to an acceptable degree.
3562 # See automake bug#10828.
3563 # To make any issue more visible, cause the running configure to be aborted
3564 # by default if the 'rm' program in use doesn't match our expectations; the
3565 # user can still override this though.
3566 if rm -f && rm -fr && rm -rf; then : OK; else
3567   cat >&2 <<'END'
3568 Oops!
3569
3570 Your 'rm' program seems unable to run without file operands specified
3571 on the command line, even when the '-f' option is present.  This is contrary
3572 to the behaviour of most rm programs out there, and not conforming with
3573 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3574
3575 Please tell bug-automake@gnu.org about your system, including the value
3576 of your $PATH and any error possibly output before this message.  This
3577 can help us improve future automake versions.
3578
3579 END
3580   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3581     echo 'Configuration will proceed anyway, since you have set the' >&2
3582     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3583     echo >&2
3584   else
3585     cat >&2 <<'END'
3586 Aborting the configuration process, to ensure you take notice of the issue.
3587
3588 You can download and install GNU coreutils to get an 'rm' implementation
3589 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3590
3591 If you want to complete the configuration process using your problematic
3592 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3593 to "yes", and re-run configure.
3594
3595 END
3596     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3597   fi
3598 fi
3599
3600 ac_config_headers="$ac_config_headers config.h"
3601
3602
3603 # C compiler and features
3604 ac_ext=c
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619 ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624 if test -n "$ac_tool_prefix"; then
3625   for ac_prog in clang gcc cc
3626   do
3627     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 printf %s "checking for $ac_word... " >&6; }
3631 if test ${ac_cv_prog_CC+y}
3632 then :
3633   printf %s "(cached) " >&6
3634 else $as_nop
3635   if test -n "$CC"; then
3636   ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   case $as_dir in #(((
3643     '') as_dir=./ ;;
3644     */) ;;
3645     *) as_dir=$as_dir/ ;;
3646   esac
3647     for ac_exec_ext in '' $ac_executable_extensions; do
3648   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3649     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3650     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654   done
3655 IFS=$as_save_IFS
3656
3657 fi
3658 fi
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 printf "%s\n" "$CC" >&6; }
3663 else
3664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 printf "%s\n" "no" >&6; }
3666 fi
3667
3668
3669     test -n "$CC" && break
3670   done
3671 fi
3672 if test -z "$CC"; then
3673   ac_ct_CC=$CC
3674   for ac_prog in clang gcc cc
3675 do
3676   # Extract the first word of "$ac_prog", so it can be a program name with args.
3677 set dummy $ac_prog; ac_word=$2
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 printf %s "checking for $ac_word... " >&6; }
3680 if test ${ac_cv_prog_ac_ct_CC+y}
3681 then :
3682   printf %s "(cached) " >&6
3683 else $as_nop
3684   if test -n "$ac_ct_CC"; then
3685   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690   IFS=$as_save_IFS
3691   case $as_dir in #(((
3692     '') as_dir=./ ;;
3693     */) ;;
3694     *) as_dir=$as_dir/ ;;
3695   esac
3696     for ac_exec_ext in '' $ac_executable_extensions; do
3697   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3698     ac_cv_prog_ac_ct_CC="$ac_prog"
3699     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3700     break 2
3701   fi
3702 done
3703   done
3704 IFS=$as_save_IFS
3705
3706 fi
3707 fi
3708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3709 if test -n "$ac_ct_CC"; then
3710   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3711 printf "%s\n" "$ac_ct_CC" >&6; }
3712 else
3713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 printf "%s\n" "no" >&6; }
3715 fi
3716
3717
3718   test -n "$ac_ct_CC" && break
3719 done
3720
3721   if test "x$ac_ct_CC" = x; then
3722     CC=""
3723   else
3724     case $cross_compiling:$ac_tool_warned in
3725 yes:)
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3727 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3728 ac_tool_warned=yes ;;
3729 esac
3730     CC=$ac_ct_CC
3731   fi
3732 fi
3733
3734
3735 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "no acceptable C compiler found in \$PATH
3738 See \`config.log' for more details" "$LINENO" 5; }
3739
3740 # Provide some information about the compiler.
3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3742 set X $ac_compile
3743 ac_compiler=$2
3744 for ac_option in --version -v -V -qversion -version; do
3745   { { ac_try="$ac_compiler $ac_option >&5"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 printf "%s\n" "$ac_try_echo"; } >&5
3752   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3753   ac_status=$?
3754   if test -s conftest.err; then
3755     sed '10a\
3756 ... rest of stderr output deleted ...
3757          10q' conftest.err >conftest.er1
3758     cat conftest.er1 >&5
3759   fi
3760   rm -f conftest.er1 conftest.err
3761   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762   test $ac_status = 0; }
3763 done
3764
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h.  */
3767
3768 int
3769 main (void)
3770 {
3771
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 ac_clean_files_save=$ac_clean_files
3777 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3778 # Try to create an executable without -o first, disregard a.out.
3779 # It will help us diagnose broken compilers, and finding out an intuition
3780 # of exeext.
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3782 printf %s "checking whether the C compiler works... " >&6; }
3783 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3784
3785 # The possible output files:
3786 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3787
3788 ac_rmfiles=
3789 for ac_file in $ac_files
3790 do
3791   case $ac_file in
3792     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3793     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3794   esac
3795 done
3796 rm -f $ac_rmfiles
3797
3798 if { { ac_try="$ac_link_default"
3799 case "(($ac_try" in
3800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801   *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 printf "%s\n" "$ac_try_echo"; } >&5
3805   (eval "$ac_link_default") 2>&5
3806   ac_status=$?
3807   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808   test $ac_status = 0; }
3809 then :
3810   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3811 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3812 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3813 # so that the user can short-circuit this test for compilers unknown to
3814 # Autoconf.
3815 for ac_file in $ac_files ''
3816 do
3817   test -f "$ac_file" || continue
3818   case $ac_file in
3819     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3820         ;;
3821     [ab].out )
3822         # We found the default executable, but exeext='' is most
3823         # certainly right.
3824         break;;
3825     *.* )
3826         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3827         then :; else
3828            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3829         fi
3830         # We set ac_cv_exeext here because the later test for it is not
3831         # safe: cross compilers may not add the suffix if given an `-o'
3832         # argument, so we may need to know it at that point already.
3833         # Even if this section looks crufty: it has the advantage of
3834         # actually working.
3835         break;;
3836     * )
3837         break;;
3838   esac
3839 done
3840 test "$ac_cv_exeext" = no && ac_cv_exeext=
3841
3842 else $as_nop
3843   ac_file=''
3844 fi
3845 if test -z "$ac_file"
3846 then :
3847   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 printf "%s\n" "no" >&6; }
3849 printf "%s\n" "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error 77 "C compiler cannot create executables
3855 See \`config.log' for more details" "$LINENO" 5; }
3856 else $as_nop
3857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3858 printf "%s\n" "yes" >&6; }
3859 fi
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3861 printf %s "checking for C compiler default output file name... " >&6; }
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3863 printf "%s\n" "$ac_file" >&6; }
3864 ac_exeext=$ac_cv_exeext
3865
3866 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3867 ac_clean_files=$ac_clean_files_save
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3869 printf %s "checking for suffix of executables... " >&6; }
3870 if { { ac_try="$ac_link"
3871 case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 printf "%s\n" "$ac_try_echo"; } >&5
3877   (eval "$ac_link") 2>&5
3878   ac_status=$?
3879   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880   test $ac_status = 0; }
3881 then :
3882   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3883 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3884 # work properly (i.e., refer to `conftest.exe'), while it won't with
3885 # `rm'.
3886 for ac_file in conftest.exe conftest conftest.*; do
3887   test -f "$ac_file" || continue
3888   case $ac_file in
3889     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891           break;;
3892     * ) break;;
3893   esac
3894 done
3895 else $as_nop
3896   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3899 See \`config.log' for more details" "$LINENO" 5; }
3900 fi
3901 rm -f conftest conftest$ac_cv_exeext
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3903 printf "%s\n" "$ac_cv_exeext" >&6; }
3904
3905 rm -f conftest.$ac_ext
3906 EXEEXT=$ac_cv_exeext
3907 ac_exeext=$EXEEXT
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910 #include <stdio.h>
3911 int
3912 main (void)
3913 {
3914 FILE *f = fopen ("conftest.out", "w");
3915  return ferror (f) || fclose (f) != 0;
3916
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 ac_clean_files="$ac_clean_files conftest.out"
3922 # Check that the compiler produces executables we can run.  If not, either
3923 # the compiler is broken, or we cross compile.
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3925 printf %s "checking whether we are cross compiling... " >&6; }
3926 if test "$cross_compiling" != yes; then
3927   { { ac_try="$ac_link"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 printf "%s\n" "$ac_try_echo"; } >&5
3934   (eval "$ac_link") 2>&5
3935   ac_status=$?
3936   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937   test $ac_status = 0; }
3938   if { ac_try='./conftest$ac_cv_exeext'
3939   { { case "(($ac_try" in
3940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941   *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 printf "%s\n" "$ac_try_echo"; } >&5
3945   (eval "$ac_try") 2>&5
3946   ac_status=$?
3947   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948   test $ac_status = 0; }; }; then
3949     cross_compiling=no
3950   else
3951     if test "$cross_compiling" = maybe; then
3952         cross_compiling=yes
3953     else
3954         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error 77 "cannot run C compiled programs.
3957 If you meant to cross compile, use \`--host'.
3958 See \`config.log' for more details" "$LINENO" 5; }
3959     fi
3960   fi
3961 fi
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3963 printf "%s\n" "$cross_compiling" >&6; }
3964
3965 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3966 ac_clean_files=$ac_clean_files_save
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3968 printf %s "checking for suffix of object files... " >&6; }
3969 if test ${ac_cv_objext+y}
3970 then :
3971   printf %s "(cached) " >&6
3972 else $as_nop
3973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h.  */
3975
3976 int
3977 main (void)
3978 {
3979
3980   ;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.o conftest.obj
3985 if { { ac_try="$ac_compile"
3986 case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 printf "%s\n" "$ac_try_echo"; } >&5
3992   (eval "$ac_compile") 2>&5
3993   ac_status=$?
3994   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995   test $ac_status = 0; }
3996 then :
3997   for ac_file in conftest.o conftest.obj conftest.*; do
3998   test -f "$ac_file" || continue;
3999   case $ac_file in
4000     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4001     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4002        break;;
4003   esac
4004 done
4005 else $as_nop
4006   printf "%s\n" "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "cannot compute suffix of object files: cannot compile
4012 See \`config.log' for more details" "$LINENO" 5; }
4013 fi
4014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4015 fi
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4017 printf "%s\n" "$ac_cv_objext" >&6; }
4018 OBJEXT=$ac_cv_objext
4019 ac_objext=$OBJEXT
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4021 printf %s "checking whether the compiler supports GNU C... " >&6; }
4022 if test ${ac_cv_c_compiler_gnu+y}
4023 then :
4024   printf %s "(cached) " >&6
4025 else $as_nop
4026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h.  */
4028
4029 int
4030 main (void)
4031 {
4032 #ifndef __GNUC__
4033        choke me
4034 #endif
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"
4041 then :
4042   ac_compiler_gnu=yes
4043 else $as_nop
4044   ac_compiler_gnu=no
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4048
4049 fi
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4051 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054 if test $ac_compiler_gnu = yes; then
4055   GCC=yes
4056 else
4057   GCC=
4058 fi
4059 ac_test_CFLAGS=${CFLAGS+y}
4060 ac_save_CFLAGS=$CFLAGS
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4062 printf %s "checking whether $CC accepts -g... " >&6; }
4063 if test ${ac_cv_prog_cc_g+y}
4064 then :
4065   printf %s "(cached) " >&6
4066 else $as_nop
4067   ac_save_c_werror_flag=$ac_c_werror_flag
4068    ac_c_werror_flag=yes
4069    ac_cv_prog_cc_g=no
4070    CFLAGS="-g"
4071    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h.  */
4073
4074 int
4075 main (void)
4076 {
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"
4083 then :
4084   ac_cv_prog_cc_g=yes
4085 else $as_nop
4086   CFLAGS=""
4087       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h.  */
4089
4090 int
4091 main (void)
4092 {
4093
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"
4099 then :
4100
4101 else $as_nop
4102   ac_c_werror_flag=$ac_save_c_werror_flag
4103          CFLAGS="-g"
4104          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h.  */
4106
4107 int
4108 main (void)
4109 {
4110
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"
4116 then :
4117   ac_cv_prog_cc_g=yes
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4124    ac_c_werror_flag=$ac_save_c_werror_flag
4125 fi
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4128 if test $ac_test_CFLAGS; then
4129   CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131   if test "$GCC" = yes; then
4132     CFLAGS="-g -O2"
4133   else
4134     CFLAGS="-g"
4135   fi
4136 else
4137   if test "$GCC" = yes; then
4138     CFLAGS="-O2"
4139   else
4140     CFLAGS=
4141   fi
4142 fi
4143 ac_prog_cc_stdc=no
4144 if test x$ac_prog_cc_stdc = xno
4145 then :
4146   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4147 printf %s "checking for $CC option to enable C11 features... " >&6; }
4148 if test ${ac_cv_prog_cc_c11+y}
4149 then :
4150   printf %s "(cached) " >&6
4151 else $as_nop
4152   ac_cv_prog_cc_c11=no
4153 ac_save_CC=$CC
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h.  */
4156 $ac_c_conftest_c11_program
4157 _ACEOF
4158 for ac_arg in '' -std=gnu11
4159 do
4160   CC="$ac_save_CC $ac_arg"
4161   if ac_fn_c_try_compile "$LINENO"
4162 then :
4163   ac_cv_prog_cc_c11=$ac_arg
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext conftest.beam
4166   test "x$ac_cv_prog_cc_c11" != "xno" && break
4167 done
4168 rm -f conftest.$ac_ext
4169 CC=$ac_save_CC
4170 fi
4171
4172 if test "x$ac_cv_prog_cc_c11" = xno
4173 then :
4174   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4175 printf "%s\n" "unsupported" >&6; }
4176 else $as_nop
4177   if test "x$ac_cv_prog_cc_c11" = x
4178 then :
4179   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4180 printf "%s\n" "none needed" >&6; }
4181 else $as_nop
4182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4183 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4184      CC="$CC $ac_cv_prog_cc_c11"
4185 fi
4186   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4187   ac_prog_cc_stdc=c11
4188 fi
4189 fi
4190 if test x$ac_prog_cc_stdc = xno
4191 then :
4192   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4193 printf %s "checking for $CC option to enable C99 features... " >&6; }
4194 if test ${ac_cv_prog_cc_c99+y}
4195 then :
4196   printf %s "(cached) " >&6
4197 else $as_nop
4198   ac_cv_prog_cc_c99=no
4199 ac_save_CC=$CC
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h.  */
4202 $ac_c_conftest_c99_program
4203 _ACEOF
4204 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4205 do
4206   CC="$ac_save_CC $ac_arg"
4207   if ac_fn_c_try_compile "$LINENO"
4208 then :
4209   ac_cv_prog_cc_c99=$ac_arg
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.beam
4212   test "x$ac_cv_prog_cc_c99" != "xno" && break
4213 done
4214 rm -f conftest.$ac_ext
4215 CC=$ac_save_CC
4216 fi
4217
4218 if test "x$ac_cv_prog_cc_c99" = xno
4219 then :
4220   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4221 printf "%s\n" "unsupported" >&6; }
4222 else $as_nop
4223   if test "x$ac_cv_prog_cc_c99" = x
4224 then :
4225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4226 printf "%s\n" "none needed" >&6; }
4227 else $as_nop
4228   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4229 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4230      CC="$CC $ac_cv_prog_cc_c99"
4231 fi
4232   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4233   ac_prog_cc_stdc=c99
4234 fi
4235 fi
4236 if test x$ac_prog_cc_stdc = xno
4237 then :
4238   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4239 printf %s "checking for $CC option to enable C89 features... " >&6; }
4240 if test ${ac_cv_prog_cc_c89+y}
4241 then :
4242   printf %s "(cached) " >&6
4243 else $as_nop
4244   ac_cv_prog_cc_c89=no
4245 ac_save_CC=$CC
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h.  */
4248 $ac_c_conftest_c89_program
4249 _ACEOF
4250 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4251 do
4252   CC="$ac_save_CC $ac_arg"
4253   if ac_fn_c_try_compile "$LINENO"
4254 then :
4255   ac_cv_prog_cc_c89=$ac_arg
4256 fi
4257 rm -f core conftest.err conftest.$ac_objext conftest.beam
4258   test "x$ac_cv_prog_cc_c89" != "xno" && break
4259 done
4260 rm -f conftest.$ac_ext
4261 CC=$ac_save_CC
4262 fi
4263
4264 if test "x$ac_cv_prog_cc_c89" = xno
4265 then :
4266   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4267 printf "%s\n" "unsupported" >&6; }
4268 else $as_nop
4269   if test "x$ac_cv_prog_cc_c89" = x
4270 then :
4271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272 printf "%s\n" "none needed" >&6; }
4273 else $as_nop
4274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4275 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4276      CC="$CC $ac_cv_prog_cc_c89"
4277 fi
4278   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4279   ac_prog_cc_stdc=c89
4280 fi
4281 fi
4282
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289
4290   ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4296 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4297 if test ${am_cv_prog_cc_c_o+y}
4298 then :
4299   printf %s "(cached) " >&6
4300 else $as_nop
4301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h.  */
4303
4304 int
4305 main (void)
4306 {
4307
4308   ;
4309   return 0;
4310 }
4311 _ACEOF
4312   # Make sure it works both with $CC and with simple cc.
4313   # Following AC_PROG_CC_C_O, we do the test twice because some
4314   # compilers refuse to overwrite an existing .o file with -o,
4315   # though they will create one.
4316   am_cv_prog_cc_c_o=yes
4317   for am_i in 1 2; do
4318     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4319    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4320    ac_status=$?
4321    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322    (exit $ac_status); } \
4323          && test -f conftest2.$ac_objext; then
4324       : OK
4325     else
4326       am_cv_prog_cc_c_o=no
4327       break
4328     fi
4329   done
4330   rm -f core conftest*
4331   unset am_i
4332 fi
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4334 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4335 if test "$am_cv_prog_cc_c_o" != yes; then
4336    # Losing compiler, so override with the script.
4337    # FIXME: It is wrong to rewrite CC.
4338    # But if we don't then we get into trouble of one sort or another.
4339    # A longer-term fix would be to have automake use am__CC in this case,
4340    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4341    CC="$am_aux_dir/compile $CC"
4342 fi
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349 DEPDIR="${am__leading_dot}deps"
4350
4351 ac_config_commands="$ac_config_commands depfiles"
4352
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4354 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4355 cat > confinc.mk << 'END'
4356 am__doit:
4357         @echo this is the am__doit target >confinc.out
4358 .PHONY: am__doit
4359 END
4360 am__include="#"
4361 am__quote=
4362 # BSD make does it like this.
4363 echo '.include "confinc.mk" # ignored' > confmf.BSD
4364 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4365 echo 'include confinc.mk # ignored' > confmf.GNU
4366 _am_result=no
4367 for s in GNU BSD; do
4368   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4369    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4370    ac_status=$?
4371    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372    (exit $ac_status); }
4373   case $?:`cat confinc.out 2>/dev/null` in #(
4374   '0:this is the am__doit target') :
4375     case $s in #(
4376   BSD) :
4377     am__include='.include' am__quote='"' ;; #(
4378   *) :
4379     am__include='include' am__quote='' ;;
4380 esac ;; #(
4381   *) :
4382      ;;
4383 esac
4384   if test "$am__include" != "#"; then
4385     _am_result="yes ($s style)"
4386     break
4387   fi
4388 done
4389 rm -f confinc.* confmf.*
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4391 printf "%s\n" "${_am_result}" >&6; }
4392
4393 # Check whether --enable-dependency-tracking was given.
4394 if test ${enable_dependency_tracking+y}
4395 then :
4396   enableval=$enable_dependency_tracking;
4397 fi
4398
4399 if test "x$enable_dependency_tracking" != xno; then
4400   am_depcomp="$ac_aux_dir/depcomp"
4401   AMDEPBACKSLASH='\'
4402   am__nodep='_no'
4403 fi
4404  if test "x$enable_dependency_tracking" != xno; then
4405   AMDEP_TRUE=
4406   AMDEP_FALSE='#'
4407 else
4408   AMDEP_TRUE='#'
4409   AMDEP_FALSE=
4410 fi
4411
4412
4413
4414 depcc="$CC"   am_compiler_list=
4415
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4417 printf %s "checking dependency style of $depcc... " >&6; }
4418 if test ${am_cv_CC_dependencies_compiler_type+y}
4419 then :
4420   printf %s "(cached) " >&6
4421 else $as_nop
4422   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4423   # We make a subdir and do the tests there.  Otherwise we can end up
4424   # making bogus files that we don't know about and never remove.  For
4425   # instance it was reported that on HP-UX the gcc test will end up
4426   # making a dummy file named 'D' -- because '-MD' means "put the output
4427   # in D".
4428   rm -rf conftest.dir
4429   mkdir conftest.dir
4430   # Copy depcomp to subdir because otherwise we won't find it if we're
4431   # using a relative directory.
4432   cp "$am_depcomp" conftest.dir
4433   cd conftest.dir
4434   # We will build objects and dependencies in a subdirectory because
4435   # it helps to detect inapplicable dependency modes.  For instance
4436   # both Tru64's cc and ICC support -MD to output dependencies as a
4437   # side effect of compilation, but ICC will put the dependencies in
4438   # the current directory while Tru64 will put them in the object
4439   # directory.
4440   mkdir sub
4441
4442   am_cv_CC_dependencies_compiler_type=none
4443   if test "$am_compiler_list" = ""; then
4444      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4445   fi
4446   am__universal=false
4447   case " $depcc " in #(
4448      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4449      esac
4450
4451   for depmode in $am_compiler_list; do
4452     # Setup a source with many dependencies, because some compilers
4453     # like to wrap large dependency lists on column 80 (with \), and
4454     # we should not choose a depcomp mode which is confused by this.
4455     #
4456     # We need to recreate these files for each test, as the compiler may
4457     # overwrite some of them when testing with obscure command lines.
4458     # This happens at least with the AIX C compiler.
4459     : > sub/conftest.c
4460     for i in 1 2 3 4 5 6; do
4461       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4462       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4463       # Solaris 10 /bin/sh.
4464       echo '/* dummy */' > sub/conftst$i.h
4465     done
4466     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4467
4468     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4469     # mode.  It turns out that the SunPro C++ compiler does not properly
4470     # handle '-M -o', and we need to detect this.  Also, some Intel
4471     # versions had trouble with output in subdirs.
4472     am__obj=sub/conftest.${OBJEXT-o}
4473     am__minus_obj="-o $am__obj"
4474     case $depmode in
4475     gcc)
4476       # This depmode causes a compiler race in universal mode.
4477       test "$am__universal" = false || continue
4478       ;;
4479     nosideeffect)
4480       # After this tag, mechanisms are not by side-effect, so they'll
4481       # only be used when explicitly requested.
4482       if test "x$enable_dependency_tracking" = xyes; then
4483         continue
4484       else
4485         break
4486       fi
4487       ;;
4488     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4489       # This compiler won't grok '-c -o', but also, the minuso test has
4490       # not run yet.  These depmodes are late enough in the game, and
4491       # so weak that their functioning should not be impacted.
4492       am__obj=conftest.${OBJEXT-o}
4493       am__minus_obj=
4494       ;;
4495     none) break ;;
4496     esac
4497     if depmode=$depmode \
4498        source=sub/conftest.c object=$am__obj \
4499        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4500        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4501          >/dev/null 2>conftest.err &&
4502        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4503        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4504        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4505        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4506       # icc doesn't choke on unknown options, it will just issue warnings
4507       # or remarks (even with -Werror).  So we grep stderr for any message
4508       # that says an option was ignored or not supported.
4509       # When given -MP, icc 7.0 and 7.1 complain thusly:
4510       #   icc: Command line warning: ignoring option '-M'; no argument required
4511       # The diagnosis changed in icc 8.0:
4512       #   icc: Command line remark: option '-MP' not supported
4513       if (grep 'ignoring option' conftest.err ||
4514           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4515         am_cv_CC_dependencies_compiler_type=$depmode
4516         break
4517       fi
4518     fi
4519   done
4520
4521   cd ..
4522   rm -rf conftest.dir
4523 else
4524   am_cv_CC_dependencies_compiler_type=none
4525 fi
4526
4527 fi
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4529 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4531
4532  if
4533   test "x$enable_dependency_tracking" != xno \
4534   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4535   am__fastdepCC_TRUE=
4536   am__fastdepCC_FALSE='#'
4537 else
4538   am__fastdepCC_TRUE='#'
4539   am__fastdepCC_FALSE=
4540 fi
4541
4542
4543
4544 ac_ext=c
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4550 printf %s "checking how to run the C preprocessor... " >&6; }
4551 # On Suns, sometimes $CPP names a directory.
4552 if test -n "$CPP" && test -d "$CPP"; then
4553   CPP=
4554 fi
4555 if test -z "$CPP"; then
4556   if test ${ac_cv_prog_CPP+y}
4557 then :
4558   printf %s "(cached) " >&6
4559 else $as_nop
4560       # Double quotes because $CC needs to be expanded
4561     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4562     do
4563       ac_preproc_ok=false
4564 for ac_c_preproc_warn_flag in '' yes
4565 do
4566   # Use a header file that comes with gcc, so configuring glibc
4567   # with a fresh cross-compiler works.
4568   # On the NeXT, cc -E runs the code through the compiler's parser,
4569   # not just through cpp. "Syntax error" is here to catch this case.
4570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h.  */
4572 #include <limits.h>
4573                      Syntax error
4574 _ACEOF
4575 if ac_fn_c_try_cpp "$LINENO"
4576 then :
4577
4578 else $as_nop
4579   # Broken: fails on valid input.
4580 continue
4581 fi
4582 rm -f conftest.err conftest.i conftest.$ac_ext
4583
4584   # OK, works on sane cases.  Now check whether nonexistent headers
4585   # can be detected and how.
4586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588 #include <ac_nonexistent.h>
4589 _ACEOF
4590 if ac_fn_c_try_cpp "$LINENO"
4591 then :
4592   # Broken: success on invalid input.
4593 continue
4594 else $as_nop
4595   # Passes both tests.
4596 ac_preproc_ok=:
4597 break
4598 fi
4599 rm -f conftest.err conftest.i conftest.$ac_ext
4600
4601 done
4602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603 rm -f conftest.i conftest.err conftest.$ac_ext
4604 if $ac_preproc_ok
4605 then :
4606   break
4607 fi
4608
4609     done
4610     ac_cv_prog_CPP=$CPP
4611
4612 fi
4613   CPP=$ac_cv_prog_CPP
4614 else
4615   ac_cv_prog_CPP=$CPP
4616 fi
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4618 printf "%s\n" "$CPP" >&6; }
4619 ac_preproc_ok=false
4620 for ac_c_preproc_warn_flag in '' yes
4621 do
4622   # Use a header file that comes with gcc, so configuring glibc
4623   # with a fresh cross-compiler works.
4624   # On the NeXT, cc -E runs the code through the compiler's parser,
4625   # not just through cpp. "Syntax error" is here to catch this case.
4626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h.  */
4628 #include <limits.h>
4629                      Syntax error
4630 _ACEOF
4631 if ac_fn_c_try_cpp "$LINENO"
4632 then :
4633
4634 else $as_nop
4635   # Broken: fails on valid input.
4636 continue
4637 fi
4638 rm -f conftest.err conftest.i conftest.$ac_ext
4639
4640   # OK, works on sane cases.  Now check whether nonexistent headers
4641   # can be detected and how.
4642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h.  */
4644 #include <ac_nonexistent.h>
4645 _ACEOF
4646 if ac_fn_c_try_cpp "$LINENO"
4647 then :
4648   # Broken: success on invalid input.
4649 continue
4650 else $as_nop
4651   # Passes both tests.
4652 ac_preproc_ok=:
4653 break
4654 fi
4655 rm -f conftest.err conftest.i conftest.$ac_ext
4656
4657 done
4658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4659 rm -f conftest.i conftest.err conftest.$ac_ext
4660 if $ac_preproc_ok
4661 then :
4662
4663 else $as_nop
4664   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4665 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4666 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4667 See \`config.log' for more details" "$LINENO" 5; }
4668 fi
4669
4670 ac_ext=c
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675
4676
4677
4678
4679
4680
4681
4682 ac_ext=cpp
4683 ac_cpp='$CXXCPP $CPPFLAGS'
4684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4687 if test -z "$CXX"; then
4688   if test -n "$CCC"; then
4689     CXX=$CCC
4690   else
4691     if test -n "$ac_tool_prefix"; then
4692   for ac_prog in clang++ g++ c++
4693   do
4694     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 printf %s "checking for $ac_word... " >&6; }
4698 if test ${ac_cv_prog_CXX+y}
4699 then :
4700   printf %s "(cached) " >&6
4701 else $as_nop
4702   if test -n "$CXX"; then
4703   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   case $as_dir in #(((
4710     '') as_dir=./ ;;
4711     */) ;;
4712     *) as_dir=$as_dir/ ;;
4713   esac
4714     for ac_exec_ext in '' $ac_executable_extensions; do
4715   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4716     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4717     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721   done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 CXX=$ac_cv_prog_CXX
4727 if test -n "$CXX"; then
4728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4729 printf "%s\n" "$CXX" >&6; }
4730 else
4731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 printf "%s\n" "no" >&6; }
4733 fi
4734
4735
4736     test -n "$CXX" && break
4737   done
4738 fi
4739 if test -z "$CXX"; then
4740   ac_ct_CXX=$CXX
4741   for ac_prog in clang++ g++ c++
4742 do
4743   # Extract the first word of "$ac_prog", so it can be a program name with args.
4744 set dummy $ac_prog; ac_word=$2
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 printf %s "checking for $ac_word... " >&6; }
4747 if test ${ac_cv_prog_ac_ct_CXX+y}
4748 then :
4749   printf %s "(cached) " >&6
4750 else $as_nop
4751   if test -n "$ac_ct_CXX"; then
4752   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757   IFS=$as_save_IFS
4758   case $as_dir in #(((
4759     '') as_dir=./ ;;
4760     */) ;;
4761     *) as_dir=$as_dir/ ;;
4762   esac
4763     for ac_exec_ext in '' $ac_executable_extensions; do
4764   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4765     ac_cv_prog_ac_ct_CXX="$ac_prog"
4766     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770   done
4771 IFS=$as_save_IFS
4772
4773 fi
4774 fi
4775 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4776 if test -n "$ac_ct_CXX"; then
4777   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4778 printf "%s\n" "$ac_ct_CXX" >&6; }
4779 else
4780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 printf "%s\n" "no" >&6; }
4782 fi
4783
4784
4785   test -n "$ac_ct_CXX" && break
4786 done
4787
4788   if test "x$ac_ct_CXX" = x; then
4789     CXX="g++"
4790   else
4791     case $cross_compiling:$ac_tool_warned in
4792 yes:)
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795 ac_tool_warned=yes ;;
4796 esac
4797     CXX=$ac_ct_CXX
4798   fi
4799 fi
4800
4801   fi
4802 fi
4803 # Provide some information about the compiler.
4804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4805 set X $ac_compile
4806 ac_compiler=$2
4807 for ac_option in --version -v -V -qversion; do
4808   { { ac_try="$ac_compiler $ac_option >&5"
4809 case "(($ac_try" in
4810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811   *) ac_try_echo=$ac_try;;
4812 esac
4813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4814 printf "%s\n" "$ac_try_echo"; } >&5
4815   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4816   ac_status=$?
4817   if test -s conftest.err; then
4818     sed '10a\
4819 ... rest of stderr output deleted ...
4820          10q' conftest.err >conftest.er1
4821     cat conftest.er1 >&5
4822   fi
4823   rm -f conftest.er1 conftest.err
4824   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4825   test $ac_status = 0; }
4826 done
4827
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4829 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4830 if test ${ac_cv_cxx_compiler_gnu+y}
4831 then :
4832   printf %s "(cached) " >&6
4833 else $as_nop
4834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h.  */
4836
4837 int
4838 main (void)
4839 {
4840 #ifndef __GNUC__
4841        choke me
4842 #endif
4843
4844   ;
4845   return 0;
4846 }
4847 _ACEOF
4848 if ac_fn_cxx_try_compile "$LINENO"
4849 then :
4850   ac_compiler_gnu=yes
4851 else $as_nop
4852   ac_compiler_gnu=no
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4855 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4856
4857 fi
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4859 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4861
4862 if test $ac_compiler_gnu = yes; then
4863   GXX=yes
4864 else
4865   GXX=
4866 fi
4867 ac_test_CXXFLAGS=${CXXFLAGS+y}
4868 ac_save_CXXFLAGS=$CXXFLAGS
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4870 printf %s "checking whether $CXX accepts -g... " >&6; }
4871 if test ${ac_cv_prog_cxx_g+y}
4872 then :
4873   printf %s "(cached) " >&6
4874 else $as_nop
4875   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4876    ac_cxx_werror_flag=yes
4877    ac_cv_prog_cxx_g=no
4878    CXXFLAGS="-g"
4879    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881
4882 int
4883 main (void)
4884 {
4885
4886   ;
4887   return 0;
4888 }
4889 _ACEOF
4890 if ac_fn_cxx_try_compile "$LINENO"
4891 then :
4892   ac_cv_prog_cxx_g=yes
4893 else $as_nop
4894   CXXFLAGS=""
4895       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h.  */
4897
4898 int
4899 main (void)
4900 {
4901
4902   ;
4903   return 0;
4904 }
4905 _ACEOF
4906 if ac_fn_cxx_try_compile "$LINENO"
4907 then :
4908
4909 else $as_nop
4910   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4911          CXXFLAGS="-g"
4912          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h.  */
4914
4915 int
4916 main (void)
4917 {
4918
4919   ;
4920   return 0;
4921 }
4922 _ACEOF
4923 if ac_fn_cxx_try_compile "$LINENO"
4924 then :
4925   ac_cv_prog_cxx_g=yes
4926 fi
4927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4932    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4933 fi
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4935 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4936 if test $ac_test_CXXFLAGS; then
4937   CXXFLAGS=$ac_save_CXXFLAGS
4938 elif test $ac_cv_prog_cxx_g = yes; then
4939   if test "$GXX" = yes; then
4940     CXXFLAGS="-g -O2"
4941   else
4942     CXXFLAGS="-g"
4943   fi
4944 else
4945   if test "$GXX" = yes; then
4946     CXXFLAGS="-O2"
4947   else
4948     CXXFLAGS=
4949   fi
4950 fi
4951 ac_prog_cxx_stdcxx=no
4952 if test x$ac_prog_cxx_stdcxx = xno
4953 then :
4954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4955 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4956 if test ${ac_cv_prog_cxx_11+y}
4957 then :
4958   printf %s "(cached) " >&6
4959 else $as_nop
4960   ac_cv_prog_cxx_11=no
4961 ac_save_CXX=$CXX
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h.  */
4964 $ac_cxx_conftest_cxx11_program
4965 _ACEOF
4966 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4967 do
4968   CXX="$ac_save_CXX $ac_arg"
4969   if ac_fn_cxx_try_compile "$LINENO"
4970 then :
4971   ac_cv_prog_cxx_cxx11=$ac_arg
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext conftest.beam
4974   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4975 done
4976 rm -f conftest.$ac_ext
4977 CXX=$ac_save_CXX
4978 fi
4979
4980 if test "x$ac_cv_prog_cxx_cxx11" = xno
4981 then :
4982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4983 printf "%s\n" "unsupported" >&6; }
4984 else $as_nop
4985   if test "x$ac_cv_prog_cxx_cxx11" = x
4986 then :
4987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4988 printf "%s\n" "none needed" >&6; }
4989 else $as_nop
4990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4991 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4992      CXX="$CXX $ac_cv_prog_cxx_cxx11"
4993 fi
4994   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4995   ac_prog_cxx_stdcxx=cxx11
4996 fi
4997 fi
4998 if test x$ac_prog_cxx_stdcxx = xno
4999 then :
5000   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5001 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5002 if test ${ac_cv_prog_cxx_98+y}
5003 then :
5004   printf %s "(cached) " >&6
5005 else $as_nop
5006   ac_cv_prog_cxx_98=no
5007 ac_save_CXX=$CXX
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h.  */
5010 $ac_cxx_conftest_cxx98_program
5011 _ACEOF
5012 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5013 do
5014   CXX="$ac_save_CXX $ac_arg"
5015   if ac_fn_cxx_try_compile "$LINENO"
5016 then :
5017   ac_cv_prog_cxx_cxx98=$ac_arg
5018 fi
5019 rm -f core conftest.err conftest.$ac_objext conftest.beam
5020   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5021 done
5022 rm -f conftest.$ac_ext
5023 CXX=$ac_save_CXX
5024 fi
5025
5026 if test "x$ac_cv_prog_cxx_cxx98" = xno
5027 then :
5028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5029 printf "%s\n" "unsupported" >&6; }
5030 else $as_nop
5031   if test "x$ac_cv_prog_cxx_cxx98" = x
5032 then :
5033   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5034 printf "%s\n" "none needed" >&6; }
5035 else $as_nop
5036   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5037 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5038      CXX="$CXX $ac_cv_prog_cxx_cxx98"
5039 fi
5040   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5041   ac_prog_cxx_stdcxx=cxx98
5042 fi
5043 fi
5044
5045 ac_ext=c
5046 ac_cpp='$CPP $CPPFLAGS'
5047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
5051 depcc="$CXX"  am_compiler_list=
5052
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5054 printf %s "checking dependency style of $depcc... " >&6; }
5055 if test ${am_cv_CXX_dependencies_compiler_type+y}
5056 then :
5057   printf %s "(cached) " >&6
5058 else $as_nop
5059   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5060   # We make a subdir and do the tests there.  Otherwise we can end up
5061   # making bogus files that we don't know about and never remove.  For
5062   # instance it was reported that on HP-UX the gcc test will end up
5063   # making a dummy file named 'D' -- because '-MD' means "put the output
5064   # in D".
5065   rm -rf conftest.dir
5066   mkdir conftest.dir
5067   # Copy depcomp to subdir because otherwise we won't find it if we're
5068   # using a relative directory.
5069   cp "$am_depcomp" conftest.dir
5070   cd conftest.dir
5071   # We will build objects and dependencies in a subdirectory because
5072   # it helps to detect inapplicable dependency modes.  For instance
5073   # both Tru64's cc and ICC support -MD to output dependencies as a
5074   # side effect of compilation, but ICC will put the dependencies in
5075   # the current directory while Tru64 will put them in the object
5076   # directory.
5077   mkdir sub
5078
5079   am_cv_CXX_dependencies_compiler_type=none
5080   if test "$am_compiler_list" = ""; then
5081      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5082   fi
5083   am__universal=false
5084   case " $depcc " in #(
5085      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5086      esac
5087
5088   for depmode in $am_compiler_list; do
5089     # Setup a source with many dependencies, because some compilers
5090     # like to wrap large dependency lists on column 80 (with \), and
5091     # we should not choose a depcomp mode which is confused by this.
5092     #
5093     # We need to recreate these files for each test, as the compiler may
5094     # overwrite some of them when testing with obscure command lines.
5095     # This happens at least with the AIX C compiler.
5096     : > sub/conftest.c
5097     for i in 1 2 3 4 5 6; do
5098       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5099       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5100       # Solaris 10 /bin/sh.
5101       echo '/* dummy */' > sub/conftst$i.h
5102     done
5103     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5104
5105     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5106     # mode.  It turns out that the SunPro C++ compiler does not properly
5107     # handle '-M -o', and we need to detect this.  Also, some Intel
5108     # versions had trouble with output in subdirs.
5109     am__obj=sub/conftest.${OBJEXT-o}
5110     am__minus_obj="-o $am__obj"
5111     case $depmode in
5112     gcc)
5113       # This depmode causes a compiler race in universal mode.
5114       test "$am__universal" = false || continue
5115       ;;
5116     nosideeffect)
5117       # After this tag, mechanisms are not by side-effect, so they'll
5118       # only be used when explicitly requested.
5119       if test "x$enable_dependency_tracking" = xyes; then
5120         continue
5121       else
5122         break
5123       fi
5124       ;;
5125     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5126       # This compiler won't grok '-c -o', but also, the minuso test has
5127       # not run yet.  These depmodes are late enough in the game, and
5128       # so weak that their functioning should not be impacted.
5129       am__obj=conftest.${OBJEXT-o}
5130       am__minus_obj=
5131       ;;
5132     none) break ;;
5133     esac
5134     if depmode=$depmode \
5135        source=sub/conftest.c object=$am__obj \
5136        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5137        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5138          >/dev/null 2>conftest.err &&
5139        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5140        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5141        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5142        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5143       # icc doesn't choke on unknown options, it will just issue warnings
5144       # or remarks (even with -Werror).  So we grep stderr for any message
5145       # that says an option was ignored or not supported.
5146       # When given -MP, icc 7.0 and 7.1 complain thusly:
5147       #   icc: Command line warning: ignoring option '-M'; no argument required
5148       # The diagnosis changed in icc 8.0:
5149       #   icc: Command line remark: option '-MP' not supported
5150       if (grep 'ignoring option' conftest.err ||
5151           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5152         am_cv_CXX_dependencies_compiler_type=$depmode
5153         break
5154       fi
5155     fi
5156   done
5157
5158   cd ..
5159   rm -rf conftest.dir
5160 else
5161   am_cv_CXX_dependencies_compiler_type=none
5162 fi
5163
5164 fi
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5166 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5167 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5168
5169  if
5170   test "x$enable_dependency_tracking" != xno \
5171   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5172   am__fastdepCXX_TRUE=
5173   am__fastdepCXX_FALSE='#'
5174 else
5175   am__fastdepCXX_TRUE='#'
5176   am__fastdepCXX_FALSE=
5177 fi
5178
5179
5180
5181 ac_header= ac_cache=
5182 for ac_item in $ac_header_c_list
5183 do
5184   if test $ac_cache; then
5185     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5186     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5187       printf "%s\n" "#define $ac_item 1" >> confdefs.h
5188     fi
5189     ac_header= ac_cache=
5190   elif test $ac_header; then
5191     ac_cache=$ac_item
5192   else
5193     ac_header=$ac_item
5194   fi
5195 done
5196
5197
5198
5199
5200
5201
5202
5203
5204 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5205 then :
5206
5207 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5208
5209 fi
5210
5211
5212
5213
5214
5215
5216   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5217 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5218 if test ${ac_cv_safe_to_define___extensions__+y}
5219 then :
5220   printf %s "(cached) " >&6
5221 else $as_nop
5222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h.  */
5224
5225 #         define __EXTENSIONS__ 1
5226           $ac_includes_default
5227 int
5228 main (void)
5229 {
5230
5231   ;
5232   return 0;
5233 }
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"
5236 then :
5237   ac_cv_safe_to_define___extensions__=yes
5238 else $as_nop
5239   ac_cv_safe_to_define___extensions__=no
5240 fi
5241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5242 fi
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5244 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5245
5246   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5247 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5248 if test ${ac_cv_should_define__xopen_source+y}
5249 then :
5250   printf %s "(cached) " >&6
5251 else $as_nop
5252   ac_cv_should_define__xopen_source=no
5253     if test $ac_cv_header_wchar_h = yes
5254 then :
5255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h.  */
5257
5258           #include <wchar.h>
5259           mbstate_t x;
5260 int
5261 main (void)
5262 {
5263
5264   ;
5265   return 0;
5266 }
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"
5269 then :
5270
5271 else $as_nop
5272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h.  */
5274
5275             #define _XOPEN_SOURCE 500
5276             #include <wchar.h>
5277             mbstate_t x;
5278 int
5279 main (void)
5280 {
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"
5287 then :
5288   ac_cv_should_define__xopen_source=yes
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5293 fi
5294 fi
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5296 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5297
5298   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5299
5300   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5301
5302   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5303
5304   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5305
5306   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5307
5308   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5309
5310   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5311
5312   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5313
5314   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5315
5316   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5317
5318   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5319
5320   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5321
5322   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5323
5324   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5325
5326   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5327
5328   if test $ac_cv_header_minix_config_h = yes
5329 then :
5330   MINIX=yes
5331     printf "%s\n" "#define _MINIX 1" >>confdefs.h
5332
5333     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5334
5335     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5336
5337 else $as_nop
5338   MINIX=
5339 fi
5340   if test $ac_cv_safe_to_define___extensions__ = yes
5341 then :
5342   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5343
5344 fi
5345   if test $ac_cv_should_define__xopen_source = yes
5346 then :
5347   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5348
5349 fi
5350
5351
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5353 printf %s "checking for an ANSI C-conforming const... " >&6; }
5354 if test ${ac_cv_c_const+y}
5355 then :
5356   printf %s "(cached) " >&6
5357 else $as_nop
5358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h.  */
5360
5361 int
5362 main (void)
5363 {
5364
5365 #ifndef __cplusplus
5366   /* Ultrix mips cc rejects this sort of thing.  */
5367   typedef int charset[2];
5368   const charset cs = { 0, 0 };
5369   /* SunOS 4.1.1 cc rejects this.  */
5370   char const *const *pcpcc;
5371   char **ppc;
5372   /* NEC SVR4.0.2 mips cc rejects this.  */
5373   struct point {int x, y;};
5374   static struct point const zero = {0,0};
5375   /* IBM XL C 1.02.0.0 rejects this.
5376      It does not let you subtract one const X* pointer from another in
5377      an arm of an if-expression whose if-part is not a constant
5378      expression */
5379   const char *g = "string";
5380   pcpcc = &g + (g ? g-g : 0);
5381   /* HPUX 7.0 cc rejects these. */
5382   ++pcpcc;
5383   ppc = (char**) pcpcc;
5384   pcpcc = (char const *const *) ppc;
5385   { /* SCO 3.2v4 cc rejects this sort of thing.  */
5386     char tx;
5387     char *t = &tx;
5388     char const *s = 0 ? (char *) 0 : (char const *) 0;
5389
5390     *t++ = 0;
5391     if (s) return 0;
5392   }
5393   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5394     int x[] = {25, 17};
5395     const int *foo = &x[0];
5396     ++foo;
5397   }
5398   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5399     typedef const int *iptr;
5400     iptr p = 0;
5401     ++p;
5402   }
5403   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5404        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5405     struct s { int j; const int *ap[3]; } bx;
5406     struct s *b = &bx; b->j = 5;
5407   }
5408   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5409     const int foo = 10;
5410     if (!foo) return 0;
5411   }
5412   return !cs[0] && !zero.x;
5413 #endif
5414
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"
5420 then :
5421   ac_cv_c_const=yes
5422 else $as_nop
5423   ac_cv_c_const=no
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5426 fi
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5428 printf "%s\n" "$ac_cv_c_const" >&6; }
5429 if test $ac_cv_c_const = no; then
5430
5431 printf "%s\n" "#define const /**/" >>confdefs.h
5432
5433 fi
5434
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5436 printf %s "checking for C/C++ restrict keyword... " >&6; }
5437 if test ${ac_cv_c_restrict+y}
5438 then :
5439   printf %s "(cached) " >&6
5440 else $as_nop
5441   ac_cv_c_restrict=no
5442    # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
5443    # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
5444    # Put 'restrict' last, because C++ lacks it.
5445    for ac_kw in __restrict__ __restrict _Restrict restrict; do
5446      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448 typedef int *int_ptr;
5449            int foo (int_ptr $ac_kw ip) { return ip[0]; }
5450            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
5451            int bar (int ip[$ac_kw]) { return ip[0]; }
5452
5453 int
5454 main (void)
5455 {
5456 int s[1];
5457            int *$ac_kw t = s;
5458            t[0] = 0;
5459            return foo (t) + bar (t);
5460
5461   ;
5462   return 0;
5463 }
5464 _ACEOF
5465 if ac_fn_c_try_compile "$LINENO"
5466 then :
5467   ac_cv_c_restrict=$ac_kw
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5470      test "$ac_cv_c_restrict" != no && break
5471    done
5472
5473 fi
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5475 printf "%s\n" "$ac_cv_c_restrict" >&6; }
5476
5477  case $ac_cv_c_restrict in
5478    restrict) ;;
5479    no) printf "%s\n" "#define restrict /**/" >>confdefs.h
5480  ;;
5481    *)  printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
5482  ;;
5483  esac
5484
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5486 printf %s "checking for working volatile... " >&6; }
5487 if test ${ac_cv_c_volatile+y}
5488 then :
5489   printf %s "(cached) " >&6
5490 else $as_nop
5491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h.  */
5493
5494 int
5495 main (void)
5496 {
5497
5498 volatile int x;
5499 int * volatile y = (int *) 0;
5500 return !x && !y;
5501   ;
5502   return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"
5506 then :
5507   ac_cv_c_volatile=yes
5508 else $as_nop
5509   ac_cv_c_volatile=no
5510 fi
5511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5512 fi
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5514 printf "%s\n" "$ac_cv_c_volatile" >&6; }
5515 if test $ac_cv_c_volatile = no; then
5516
5517 printf "%s\n" "#define volatile /**/" >>confdefs.h
5518
5519 fi
5520
5521     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
5522 printf %s "checking for C compiler vendor... " >&6; }
5523 if test ${ax_cv_c_compiler_vendor+y}
5524 then :
5525   printf %s "(cached) " >&6
5526 else $as_nop
5527
5528         vendors="
5529                 intel:          __ICC,__ECC,__INTEL_COMPILER
5530                 ibm:            __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
5531                 pathscale:      __PATHCC__,__PATHSCALE__
5532                 clang:          __clang__
5533                 cray:           _CRAYC
5534                 fujitsu:        __FUJITSU
5535                 sdcc:           SDCC,__SDCC
5536                 sx:             _SX
5537                 portland:       __PGI
5538                 gnu:            __GNUC__
5539                 sun:            __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
5540                 hp:             __HP_cc,__HP_aCC
5541                 dec:            __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
5542                 borland:        __BORLANDC__,__CODEGEARC__,__TURBOC__
5543                 comeau:         __COMO__
5544                 kai:            __KCC
5545                 lcc:            __LCC__
5546                 sgi:            __sgi,sgi
5547                 microsoft:      _MSC_VER
5548                 metrowerks:     __MWERKS__
5549                 watcom:         __WATCOMC__
5550                 tcc:            __TINYC__
5551                 unknown:        UNKNOWN
5552         "
5553         for ventest in $vendors; do
5554             case $ventest in
5555                 *:)
5556                     vendor=$ventest
5557                     continue
5558                     ;;
5559                 *)
5560                     vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
5561                     ;;
5562             esac
5563
5564             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h.  */
5566
5567 int
5568 main (void)
5569 {
5570
5571 #if !($vencpp)
5572       thisisanerror;
5573 #endif
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"
5580 then :
5581   break
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5584         done
5585
5586         ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
5587
5588 fi
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
5590 printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
5591
5592
5593 # libtool
5594
5595 case `pwd` in
5596   *\ * | *\     *)
5597     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5598 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5599 esac
5600
5601
5602
5603 macro_version='2.4.7'
5604 macro_revision='2.4.7'
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619 ltmain=$ac_aux_dir/ltmain.sh
5620
5621
5622
5623   # Make sure we can run config.sub.
5624 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5625   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5626
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5628 printf %s "checking build system type... " >&6; }
5629 if test ${ac_cv_build+y}
5630 then :
5631   printf %s "(cached) " >&6
5632 else $as_nop
5633   ac_build_alias=$build_alias
5634 test "x$ac_build_alias" = x &&
5635   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5636 test "x$ac_build_alias" = x &&
5637   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5638 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5639   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5640
5641 fi
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5643 printf "%s\n" "$ac_cv_build" >&6; }
5644 case $ac_cv_build in
5645 *-*-*) ;;
5646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5647 esac
5648 build=$ac_cv_build
5649 ac_save_IFS=$IFS; IFS='-'
5650 set x $ac_cv_build
5651 shift
5652 build_cpu=$1
5653 build_vendor=$2
5654 shift; shift
5655 # Remember, the first character of IFS is used to create $*,
5656 # except with old shells:
5657 build_os=$*
5658 IFS=$ac_save_IFS
5659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5660
5661
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5663 printf %s "checking host system type... " >&6; }
5664 if test ${ac_cv_host+y}
5665 then :
5666   printf %s "(cached) " >&6
5667 else $as_nop
5668   if test "x$host_alias" = x; then
5669   ac_cv_host=$ac_cv_build
5670 else
5671   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5672     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5673 fi
5674
5675 fi
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5677 printf "%s\n" "$ac_cv_host" >&6; }
5678 case $ac_cv_host in
5679 *-*-*) ;;
5680 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5681 esac
5682 host=$ac_cv_host
5683 ac_save_IFS=$IFS; IFS='-'
5684 set x $ac_cv_host
5685 shift
5686 host_cpu=$1
5687 host_vendor=$2
5688 shift; shift
5689 # Remember, the first character of IFS is used to create $*,
5690 # except with old shells:
5691 host_os=$*
5692 IFS=$ac_save_IFS
5693 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5694
5695
5696 # Backslashify metacharacters that are still active within
5697 # double-quoted strings.
5698 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5699
5700 # Same as above, but do not quote variable references.
5701 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5702
5703 # Sed substitution to delay expansion of an escaped shell variable in a
5704 # double_quote_subst'ed string.
5705 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5706
5707 # Sed substitution to delay expansion of an escaped single quote.
5708 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5709
5710 # Sed substitution to avoid accidental globbing in evaled expressions
5711 no_glob_subst='s/\*/\\\*/g'
5712
5713 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5714 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5715 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5716
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5718 printf %s "checking how to print strings... " >&6; }
5719 # Test print first, because it will be a builtin if present.
5720 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5721    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5722   ECHO='print -r --'
5723 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5724   ECHO='printf %s\n'
5725 else
5726   # Use this function as a fallback that always works.
5727   func_fallback_echo ()
5728   {
5729     eval 'cat <<_LTECHO_EOF
5730 $1
5731 _LTECHO_EOF'
5732   }
5733   ECHO='func_fallback_echo'
5734 fi
5735
5736 # func_echo_all arg...
5737 # Invoke $ECHO with all args, space-separated.
5738 func_echo_all ()
5739 {
5740     $ECHO ""
5741 }
5742
5743 case $ECHO in
5744   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5745 printf "%s\n" "printf" >&6; } ;;
5746   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5747 printf "%s\n" "print -r" >&6; } ;;
5748   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5749 printf "%s\n" "cat" >&6; } ;;
5750 esac
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5766 printf %s "checking for a sed that does not truncate output... " >&6; }
5767 if test ${ac_cv_path_SED+y}
5768 then :
5769   printf %s "(cached) " >&6
5770 else $as_nop
5771             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5772      for ac_i in 1 2 3 4 5 6 7; do
5773        ac_script="$ac_script$as_nl$ac_script"
5774      done
5775      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5776      { ac_script=; unset ac_script;}
5777      if test -z "$SED"; then
5778   ac_path_SED_found=false
5779   # Loop through the user's path and test for each of PROGNAME-LIST
5780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783   IFS=$as_save_IFS
5784   case $as_dir in #(((
5785     '') as_dir=./ ;;
5786     */) ;;
5787     *) as_dir=$as_dir/ ;;
5788   esac
5789     for ac_prog in sed gsed
5790    do
5791     for ac_exec_ext in '' $ac_executable_extensions; do
5792       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5793       as_fn_executable_p "$ac_path_SED" || continue
5794 # Check for GNU ac_path_SED and select it if it is found.
5795   # Check for GNU $ac_path_SED
5796 case `"$ac_path_SED" --version 2>&1` in
5797 *GNU*)
5798   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5799 *)
5800   ac_count=0
5801   printf %s 0123456789 >"conftest.in"
5802   while :
5803   do
5804     cat "conftest.in" "conftest.in" >"conftest.tmp"
5805     mv "conftest.tmp" "conftest.in"
5806     cp "conftest.in" "conftest.nl"
5807     printf "%s\n" '' >> "conftest.nl"
5808     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810     as_fn_arith $ac_count + 1 && ac_count=$as_val
5811     if test $ac_count -gt ${ac_path_SED_max-0}; then
5812       # Best one so far, save it but keep looking for a better one
5813       ac_cv_path_SED="$ac_path_SED"
5814       ac_path_SED_max=$ac_count
5815     fi
5816     # 10*(2^10) chars as input seems more than enough
5817     test $ac_count -gt 10 && break
5818   done
5819   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5820 esac
5821
5822       $ac_path_SED_found && break 3
5823     done
5824   done
5825   done
5826 IFS=$as_save_IFS
5827   if test -z "$ac_cv_path_SED"; then
5828     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5829   fi
5830 else
5831   ac_cv_path_SED=$SED
5832 fi
5833
5834 fi
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5836 printf "%s\n" "$ac_cv_path_SED" >&6; }
5837  SED="$ac_cv_path_SED"
5838   rm -f conftest.sed
5839
5840 test -z "$SED" && SED=sed
5841 Xsed="$SED -e 1s/^X//"
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5854 printf %s "checking for grep that handles long lines and -e... " >&6; }
5855 if test ${ac_cv_path_GREP+y}
5856 then :
5857   printf %s "(cached) " >&6
5858 else $as_nop
5859   if test -z "$GREP"; then
5860   ac_path_GREP_found=false
5861   # Loop through the user's path and test for each of PROGNAME-LIST
5862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5864 do
5865   IFS=$as_save_IFS
5866   case $as_dir in #(((
5867     '') as_dir=./ ;;
5868     */) ;;
5869     *) as_dir=$as_dir/ ;;
5870   esac
5871     for ac_prog in grep ggrep
5872    do
5873     for ac_exec_ext in '' $ac_executable_extensions; do
5874       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5875       as_fn_executable_p "$ac_path_GREP" || continue
5876 # Check for GNU ac_path_GREP and select it if it is found.
5877   # Check for GNU $ac_path_GREP
5878 case `"$ac_path_GREP" --version 2>&1` in
5879 *GNU*)
5880   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5881 *)
5882   ac_count=0
5883   printf %s 0123456789 >"conftest.in"
5884   while :
5885   do
5886     cat "conftest.in" "conftest.in" >"conftest.tmp"
5887     mv "conftest.tmp" "conftest.in"
5888     cp "conftest.in" "conftest.nl"
5889     printf "%s\n" 'GREP' >> "conftest.nl"
5890     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5891     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5892     as_fn_arith $ac_count + 1 && ac_count=$as_val
5893     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5894       # Best one so far, save it but keep looking for a better one
5895       ac_cv_path_GREP="$ac_path_GREP"
5896       ac_path_GREP_max=$ac_count
5897     fi
5898     # 10*(2^10) chars as input seems more than enough
5899     test $ac_count -gt 10 && break
5900   done
5901   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5902 esac
5903
5904       $ac_path_GREP_found && break 3
5905     done
5906   done
5907   done
5908 IFS=$as_save_IFS
5909   if test -z "$ac_cv_path_GREP"; then
5910     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5911   fi
5912 else
5913   ac_cv_path_GREP=$GREP
5914 fi
5915
5916 fi
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5918 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5919  GREP="$ac_cv_path_GREP"
5920
5921
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5923 printf %s "checking for egrep... " >&6; }
5924 if test ${ac_cv_path_EGREP+y}
5925 then :
5926   printf %s "(cached) " >&6
5927 else $as_nop
5928   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5929    then ac_cv_path_EGREP="$GREP -E"
5930    else
5931      if test -z "$EGREP"; then
5932   ac_path_EGREP_found=false
5933   # Loop through the user's path and test for each of PROGNAME-LIST
5934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5936 do
5937   IFS=$as_save_IFS
5938   case $as_dir in #(((
5939     '') as_dir=./ ;;
5940     */) ;;
5941     *) as_dir=$as_dir/ ;;
5942   esac
5943     for ac_prog in egrep
5944    do
5945     for ac_exec_ext in '' $ac_executable_extensions; do
5946       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5947       as_fn_executable_p "$ac_path_EGREP" || continue
5948 # Check for GNU ac_path_EGREP and select it if it is found.
5949   # Check for GNU $ac_path_EGREP
5950 case `"$ac_path_EGREP" --version 2>&1` in
5951 *GNU*)
5952   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5953 *)
5954   ac_count=0
5955   printf %s 0123456789 >"conftest.in"
5956   while :
5957   do
5958     cat "conftest.in" "conftest.in" >"conftest.tmp"
5959     mv "conftest.tmp" "conftest.in"
5960     cp "conftest.in" "conftest.nl"
5961     printf "%s\n" 'EGREP' >> "conftest.nl"
5962     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5963     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5964     as_fn_arith $ac_count + 1 && ac_count=$as_val
5965     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5966       # Best one so far, save it but keep looking for a better one
5967       ac_cv_path_EGREP="$ac_path_EGREP"
5968       ac_path_EGREP_max=$ac_count
5969     fi
5970     # 10*(2^10) chars as input seems more than enough
5971     test $ac_count -gt 10 && break
5972   done
5973   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5974 esac
5975
5976       $ac_path_EGREP_found && break 3
5977     done
5978   done
5979   done
5980 IFS=$as_save_IFS
5981   if test -z "$ac_cv_path_EGREP"; then
5982     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5983   fi
5984 else
5985   ac_cv_path_EGREP=$EGREP
5986 fi
5987
5988    fi
5989 fi
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5991 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5992  EGREP="$ac_cv_path_EGREP"
5993
5994
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5996 printf %s "checking for fgrep... " >&6; }
5997 if test ${ac_cv_path_FGREP+y}
5998 then :
5999   printf %s "(cached) " >&6
6000 else $as_nop
6001   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6002    then ac_cv_path_FGREP="$GREP -F"
6003    else
6004      if test -z "$FGREP"; then
6005   ac_path_FGREP_found=false
6006   # Loop through the user's path and test for each of PROGNAME-LIST
6007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6009 do
6010   IFS=$as_save_IFS
6011   case $as_dir in #(((
6012     '') as_dir=./ ;;
6013     */) ;;
6014     *) as_dir=$as_dir/ ;;
6015   esac
6016     for ac_prog in fgrep
6017    do
6018     for ac_exec_ext in '' $ac_executable_extensions; do
6019       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6020       as_fn_executable_p "$ac_path_FGREP" || continue
6021 # Check for GNU ac_path_FGREP and select it if it is found.
6022   # Check for GNU $ac_path_FGREP
6023 case `"$ac_path_FGREP" --version 2>&1` in
6024 *GNU*)
6025   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6026 *)
6027   ac_count=0
6028   printf %s 0123456789 >"conftest.in"
6029   while :
6030   do
6031     cat "conftest.in" "conftest.in" >"conftest.tmp"
6032     mv "conftest.tmp" "conftest.in"
6033     cp "conftest.in" "conftest.nl"
6034     printf "%s\n" 'FGREP' >> "conftest.nl"
6035     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6036     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6037     as_fn_arith $ac_count + 1 && ac_count=$as_val
6038     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6039       # Best one so far, save it but keep looking for a better one
6040       ac_cv_path_FGREP="$ac_path_FGREP"
6041       ac_path_FGREP_max=$ac_count
6042     fi
6043     # 10*(2^10) chars as input seems more than enough
6044     test $ac_count -gt 10 && break
6045   done
6046   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6047 esac
6048
6049       $ac_path_FGREP_found && break 3
6050     done
6051   done
6052   done
6053 IFS=$as_save_IFS
6054   if test -z "$ac_cv_path_FGREP"; then
6055     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6056   fi
6057 else
6058   ac_cv_path_FGREP=$FGREP
6059 fi
6060
6061    fi
6062 fi
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6064 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6065  FGREP="$ac_cv_path_FGREP"
6066
6067
6068 test -z "$GREP" && GREP=grep
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 # Check whether --with-gnu-ld was given.
6089 if test ${with_gnu_ld+y}
6090 then :
6091   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6092 else $as_nop
6093   with_gnu_ld=no
6094 fi
6095
6096 ac_prog=ld
6097 if test yes = "$GCC"; then
6098   # Check if gcc -print-prog-name=ld gives a path.
6099   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6100 printf %s "checking for ld used by $CC... " >&6; }
6101   case $host in
6102   *-*-mingw*)
6103     # gcc leaves a trailing carriage return, which upsets mingw
6104     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6105   *)
6106     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6107   esac
6108   case $ac_prog in
6109     # Accept absolute paths.
6110     [\\/]* | ?:[\\/]*)
6111       re_direlt='/[^/][^/]*/\.\./'
6112       # Canonicalize the pathname of ld
6113       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6114       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6115         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6116       done
6117       test -z "$LD" && LD=$ac_prog
6118       ;;
6119   "")
6120     # If it fails, then pretend we aren't using GCC.
6121     ac_prog=ld
6122     ;;
6123   *)
6124     # If it is relative, then search for the first ld in PATH.
6125     with_gnu_ld=unknown
6126     ;;
6127   esac
6128 elif test yes = "$with_gnu_ld"; then
6129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6130 printf %s "checking for GNU ld... " >&6; }
6131 else
6132   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6133 printf %s "checking for non-GNU ld... " >&6; }
6134 fi
6135 if test ${lt_cv_path_LD+y}
6136 then :
6137   printf %s "(cached) " >&6
6138 else $as_nop
6139   if test -z "$LD"; then
6140   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6141   for ac_dir in $PATH; do
6142     IFS=$lt_save_ifs
6143     test -z "$ac_dir" && ac_dir=.
6144     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6145       lt_cv_path_LD=$ac_dir/$ac_prog
6146       # Check to see if the program is GNU ld.  I'd rather use --version,
6147       # but apparently some variants of GNU ld only accept -v.
6148       # Break only if it was the GNU/non-GNU ld that we prefer.
6149       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6150       *GNU* | *'with BFD'*)
6151         test no != "$with_gnu_ld" && break
6152         ;;
6153       *)
6154         test yes != "$with_gnu_ld" && break
6155         ;;
6156       esac
6157     fi
6158   done
6159   IFS=$lt_save_ifs
6160 else
6161   lt_cv_path_LD=$LD # Let the user override the test with a path.
6162 fi
6163 fi
6164
6165 LD=$lt_cv_path_LD
6166 if test -n "$LD"; then
6167   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6168 printf "%s\n" "$LD" >&6; }
6169 else
6170   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 printf "%s\n" "no" >&6; }
6172 fi
6173 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6175 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6176 if test ${lt_cv_prog_gnu_ld+y}
6177 then :
6178   printf %s "(cached) " >&6
6179 else $as_nop
6180   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6181 case `$LD -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183   lt_cv_prog_gnu_ld=yes
6184   ;;
6185 *)
6186   lt_cv_prog_gnu_ld=no
6187   ;;
6188 esac
6189 fi
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6191 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6192 with_gnu_ld=$lt_cv_prog_gnu_ld
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6203 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6204 if test ${lt_cv_path_NM+y}
6205 then :
6206   printf %s "(cached) " >&6
6207 else $as_nop
6208   if test -n "$NM"; then
6209   # Let the user override the test.
6210   lt_cv_path_NM=$NM
6211 else
6212   lt_nm_to_check=${ac_tool_prefix}nm
6213   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6214     lt_nm_to_check="$lt_nm_to_check nm"
6215   fi
6216   for lt_tmp_nm in $lt_nm_to_check; do
6217     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6218     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6219       IFS=$lt_save_ifs
6220       test -z "$ac_dir" && ac_dir=.
6221       tmp_nm=$ac_dir/$lt_tmp_nm
6222       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6223         # Check to see if the nm accepts a BSD-compat flag.
6224         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6225         #   nm: unknown option "B" ignored
6226         # Tru64's nm complains that /dev/null is an invalid object file
6227         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6228         case $build_os in
6229         mingw*) lt_bad_file=conftest.nm/nofile ;;
6230         *) lt_bad_file=/dev/null ;;
6231         esac
6232         case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6233         *$lt_bad_file* | *'Invalid file or object type'*)
6234           lt_cv_path_NM="$tmp_nm -B"
6235           break 2
6236           ;;
6237         *)
6238           case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6239           */dev/null*)
6240             lt_cv_path_NM="$tmp_nm -p"
6241             break 2
6242             ;;
6243           *)
6244             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6245             continue # so that we can try to find one that supports BSD flags
6246             ;;
6247           esac
6248           ;;
6249         esac
6250       fi
6251     done
6252     IFS=$lt_save_ifs
6253   done
6254   : ${lt_cv_path_NM=no}
6255 fi
6256 fi
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6258 printf "%s\n" "$lt_cv_path_NM" >&6; }
6259 if test no != "$lt_cv_path_NM"; then
6260   NM=$lt_cv_path_NM
6261 else
6262   # Didn't find any BSD compatible name lister, look for dumpbin.
6263   if test -n "$DUMPBIN"; then :
6264     # Let the user override the test.
6265   else
6266     if test -n "$ac_tool_prefix"; then
6267   for ac_prog in dumpbin "link -dump"
6268   do
6269     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 printf %s "checking for $ac_word... " >&6; }
6273 if test ${ac_cv_prog_DUMPBIN+y}
6274 then :
6275   printf %s "(cached) " >&6
6276 else $as_nop
6277   if test -n "$DUMPBIN"; then
6278   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   case $as_dir in #(((
6285     '') as_dir=./ ;;
6286     */) ;;
6287     *) as_dir=$as_dir/ ;;
6288   esac
6289     for ac_exec_ext in '' $ac_executable_extensions; do
6290   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6291     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6292     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296   done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 DUMPBIN=$ac_cv_prog_DUMPBIN
6302 if test -n "$DUMPBIN"; then
6303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6304 printf "%s\n" "$DUMPBIN" >&6; }
6305 else
6306   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 printf "%s\n" "no" >&6; }
6308 fi
6309
6310
6311     test -n "$DUMPBIN" && break
6312   done
6313 fi
6314 if test -z "$DUMPBIN"; then
6315   ac_ct_DUMPBIN=$DUMPBIN
6316   for ac_prog in dumpbin "link -dump"
6317 do
6318   # Extract the first word of "$ac_prog", so it can be a program name with args.
6319 set dummy $ac_prog; ac_word=$2
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 printf %s "checking for $ac_word... " >&6; }
6322 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6323 then :
6324   printf %s "(cached) " >&6
6325 else $as_nop
6326   if test -n "$ac_ct_DUMPBIN"; then
6327   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   case $as_dir in #(((
6334     '') as_dir=./ ;;
6335     */) ;;
6336     *) as_dir=$as_dir/ ;;
6337   esac
6338     for ac_exec_ext in '' $ac_executable_extensions; do
6339   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6340     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6341     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345   done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6351 if test -n "$ac_ct_DUMPBIN"; then
6352   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6353 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6354 else
6355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 printf "%s\n" "no" >&6; }
6357 fi
6358
6359
6360   test -n "$ac_ct_DUMPBIN" && break
6361 done
6362
6363   if test "x$ac_ct_DUMPBIN" = x; then
6364     DUMPBIN=":"
6365   else
6366     case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372     DUMPBIN=$ac_ct_DUMPBIN
6373   fi
6374 fi
6375
6376     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6377     *COFF*)
6378       DUMPBIN="$DUMPBIN -symbols -headers"
6379       ;;
6380     *)
6381       DUMPBIN=:
6382       ;;
6383     esac
6384   fi
6385
6386   if test : != "$DUMPBIN"; then
6387     NM=$DUMPBIN
6388   fi
6389 fi
6390 test -z "$NM" && NM=nm
6391
6392
6393
6394
6395
6396
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6398 printf %s "checking the name lister ($NM) interface... " >&6; }
6399 if test ${lt_cv_nm_interface+y}
6400 then :
6401   printf %s "(cached) " >&6
6402 else $as_nop
6403   lt_cv_nm_interface="BSD nm"
6404   echo "int some_variable = 0;" > conftest.$ac_ext
6405   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6406   (eval "$ac_compile" 2>conftest.err)
6407   cat conftest.err >&5
6408   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6409   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6410   cat conftest.err >&5
6411   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6412   cat conftest.out >&5
6413   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6414     lt_cv_nm_interface="MS dumpbin"
6415   fi
6416   rm -f conftest*
6417 fi
6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6419 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6420
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6422 printf %s "checking whether ln -s works... " >&6; }
6423 LN_S=$as_ln_s
6424 if test "$LN_S" = "ln -s"; then
6425   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6426 printf "%s\n" "yes" >&6; }
6427 else
6428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6429 printf "%s\n" "no, using $LN_S" >&6; }
6430 fi
6431
6432 # find the maximum length of command line arguments
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6434 printf %s "checking the maximum length of command line arguments... " >&6; }
6435 if test ${lt_cv_sys_max_cmd_len+y}
6436 then :
6437   printf %s "(cached) " >&6
6438 else $as_nop
6439     i=0
6440   teststring=ABCD
6441
6442   case $build_os in
6443   msdosdjgpp*)
6444     # On DJGPP, this test can blow up pretty badly due to problems in libc
6445     # (any single argument exceeding 2000 bytes causes a buffer overrun
6446     # during glob expansion).  Even if it were fixed, the result of this
6447     # check would be larger than it should be.
6448     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6449     ;;
6450
6451   gnu*)
6452     # Under GNU Hurd, this test is not required because there is
6453     # no limit to the length of command line arguments.
6454     # Libtool will interpret -1 as no limit whatsoever
6455     lt_cv_sys_max_cmd_len=-1;
6456     ;;
6457
6458   cygwin* | mingw* | cegcc*)
6459     # On Win9x/ME, this test blows up -- it succeeds, but takes
6460     # about 5 minutes as the teststring grows exponentially.
6461     # Worse, since 9x/ME are not pre-emptively multitasking,
6462     # you end up with a "frozen" computer, even though with patience
6463     # the test eventually succeeds (with a max line length of 256k).
6464     # Instead, let's just punt: use the minimum linelength reported by
6465     # all of the supported platforms: 8192 (on NT/2K/XP).
6466     lt_cv_sys_max_cmd_len=8192;
6467     ;;
6468
6469   mint*)
6470     # On MiNT this can take a long time and run out of memory.
6471     lt_cv_sys_max_cmd_len=8192;
6472     ;;
6473
6474   amigaos*)
6475     # On AmigaOS with pdksh, this test takes hours, literally.
6476     # So we just punt and use a minimum line length of 8192.
6477     lt_cv_sys_max_cmd_len=8192;
6478     ;;
6479
6480   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6481     # This has been around since 386BSD, at least.  Likely further.
6482     if test -x /sbin/sysctl; then
6483       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6484     elif test -x /usr/sbin/sysctl; then
6485       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6486     else
6487       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6488     fi
6489     # And add a safety zone
6490     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6491     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6492     ;;
6493
6494   interix*)
6495     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6496     lt_cv_sys_max_cmd_len=196608
6497     ;;
6498
6499   os2*)
6500     # The test takes a long time on OS/2.
6501     lt_cv_sys_max_cmd_len=8192
6502     ;;
6503
6504   osf*)
6505     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6506     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6507     # nice to cause kernel panics so lets avoid the loop below.
6508     # First set a reasonable default.
6509     lt_cv_sys_max_cmd_len=16384
6510     #
6511     if test -x /sbin/sysconfig; then
6512       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6513         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6514       esac
6515     fi
6516     ;;
6517   sco3.2v5*)
6518     lt_cv_sys_max_cmd_len=102400
6519     ;;
6520   sysv5* | sco5v6* | sysv4.2uw2*)
6521     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6522     if test -n "$kargmax"; then
6523       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
6524     else
6525       lt_cv_sys_max_cmd_len=32768
6526     fi
6527     ;;
6528   *)
6529     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6530     if test -n "$lt_cv_sys_max_cmd_len" && \
6531        test undefined != "$lt_cv_sys_max_cmd_len"; then
6532       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6533       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6534     else
6535       # Make teststring a little bigger before we do anything with it.
6536       # a 1K string should be a reasonable start.
6537       for i in 1 2 3 4 5 6 7 8; do
6538         teststring=$teststring$teststring
6539       done
6540       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6541       # If test is not a shell built-in, we'll probably end up computing a
6542       # maximum length that is only half of the actual maximum length, but
6543       # we can't tell.
6544       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6545                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6546               test 17 != "$i" # 1/2 MB should be enough
6547       do
6548         i=`expr $i + 1`
6549         teststring=$teststring$teststring
6550       done
6551       # Only check the string length outside the loop.
6552       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6553       teststring=
6554       # Add a significant safety factor because C++ compilers can tack on
6555       # massive amounts of additional arguments before passing them to the
6556       # linker.  It appears as though 1/2 is a usable value.
6557       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6558     fi
6559     ;;
6560   esac
6561
6562 fi
6563
6564 if test -n "$lt_cv_sys_max_cmd_len"; then
6565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6566 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6567 else
6568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6569 printf "%s\n" "none" >&6; }
6570 fi
6571 max_cmd_len=$lt_cv_sys_max_cmd_len
6572
6573
6574
6575
6576
6577
6578 : ${CP="cp -f"}
6579 : ${MV="mv -f"}
6580 : ${RM="rm -f"}
6581
6582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6583   lt_unset=unset
6584 else
6585   lt_unset=false
6586 fi
6587
6588
6589
6590
6591
6592 # test EBCDIC or ASCII
6593 case `echo X|tr X '\101'` in
6594  A) # ASCII based system
6595     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6596   lt_SP2NL='tr \040 \012'
6597   lt_NL2SP='tr \015\012 \040\040'
6598   ;;
6599  *) # EBCDIC based system
6600   lt_SP2NL='tr \100 \n'
6601   lt_NL2SP='tr \r\n \100\100'
6602   ;;
6603 esac
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6614 printf %s "checking how to convert $build file names to $host format... " >&6; }
6615 if test ${lt_cv_to_host_file_cmd+y}
6616 then :
6617   printf %s "(cached) " >&6
6618 else $as_nop
6619   case $host in
6620   *-*-mingw* )
6621     case $build in
6622       *-*-mingw* ) # actually msys
6623         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6624         ;;
6625       *-*-cygwin* )
6626         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6627         ;;
6628       * ) # otherwise, assume *nix
6629         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6630         ;;
6631     esac
6632     ;;
6633   *-*-cygwin* )
6634     case $build in
6635       *-*-mingw* ) # actually msys
6636         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6637         ;;
6638       *-*-cygwin* )
6639         lt_cv_to_host_file_cmd=func_convert_file_noop
6640         ;;
6641       * ) # otherwise, assume *nix
6642         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6643         ;;
6644     esac
6645     ;;
6646   * ) # unhandled hosts (and "normal" native builds)
6647     lt_cv_to_host_file_cmd=func_convert_file_noop
6648     ;;
6649 esac
6650
6651 fi
6652
6653 to_host_file_cmd=$lt_cv_to_host_file_cmd
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6655 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6656
6657
6658
6659
6660
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6662 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6663 if test ${lt_cv_to_tool_file_cmd+y}
6664 then :
6665   printf %s "(cached) " >&6
6666 else $as_nop
6667   #assume ordinary cross tools, or native build.
6668 lt_cv_to_tool_file_cmd=func_convert_file_noop
6669 case $host in
6670   *-*-mingw* )
6671     case $build in
6672       *-*-mingw* ) # actually msys
6673         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6674         ;;
6675     esac
6676     ;;
6677 esac
6678
6679 fi
6680
6681 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6683 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6684
6685
6686
6687
6688
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6690 printf %s "checking for $LD option to reload object files... " >&6; }
6691 if test ${lt_cv_ld_reload_flag+y}
6692 then :
6693   printf %s "(cached) " >&6
6694 else $as_nop
6695   lt_cv_ld_reload_flag='-r'
6696 fi
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6698 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6699 reload_flag=$lt_cv_ld_reload_flag
6700 case $reload_flag in
6701 "" | " "*) ;;
6702 *) reload_flag=" $reload_flag" ;;
6703 esac
6704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6705 case $host_os in
6706   cygwin* | mingw* | pw32* | cegcc*)
6707     if test yes != "$GCC"; then
6708       reload_cmds=false
6709     fi
6710     ;;
6711   darwin*)
6712     if test yes = "$GCC"; then
6713       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6714     else
6715       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6716     fi
6717     ;;
6718 esac
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728 if test -n "$ac_tool_prefix"; then
6729   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}file; ac_word=$2
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 printf %s "checking for $ac_word... " >&6; }
6733 if test ${ac_cv_prog_FILECMD+y}
6734 then :
6735   printf %s "(cached) " >&6
6736 else $as_nop
6737   if test -n "$FILECMD"; then
6738   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743   IFS=$as_save_IFS
6744   case $as_dir in #(((
6745     '') as_dir=./ ;;
6746     */) ;;
6747     *) as_dir=$as_dir/ ;;
6748   esac
6749     for ac_exec_ext in '' $ac_executable_extensions; do
6750   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6751     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6752     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756   done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 FILECMD=$ac_cv_prog_FILECMD
6762 if test -n "$FILECMD"; then
6763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6764 printf "%s\n" "$FILECMD" >&6; }
6765 else
6766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 printf "%s\n" "no" >&6; }
6768 fi
6769
6770
6771 fi
6772 if test -z "$ac_cv_prog_FILECMD"; then
6773   ac_ct_FILECMD=$FILECMD
6774   # Extract the first word of "file", so it can be a program name with args.
6775 set dummy file; ac_word=$2
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 printf %s "checking for $ac_word... " >&6; }
6778 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6779 then :
6780   printf %s "(cached) " >&6
6781 else $as_nop
6782   if test -n "$ac_ct_FILECMD"; then
6783   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   case $as_dir in #(((
6790     '') as_dir=./ ;;
6791     */) ;;
6792     *) as_dir=$as_dir/ ;;
6793   esac
6794     for ac_exec_ext in '' $ac_executable_extensions; do
6795   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6796     ac_cv_prog_ac_ct_FILECMD="file"
6797     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801   done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6807 if test -n "$ac_ct_FILECMD"; then
6808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6809 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6810 else
6811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 printf "%s\n" "no" >&6; }
6813 fi
6814
6815   if test "x$ac_ct_FILECMD" = x; then
6816     FILECMD=":"
6817   else
6818     case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824     FILECMD=$ac_ct_FILECMD
6825   fi
6826 else
6827   FILECMD="$ac_cv_prog_FILECMD"
6828 fi
6829
6830
6831
6832
6833
6834
6835
6836 if test -n "$ac_tool_prefix"; then
6837   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 printf %s "checking for $ac_word... " >&6; }
6841 if test ${ac_cv_prog_OBJDUMP+y}
6842 then :
6843   printf %s "(cached) " >&6
6844 else $as_nop
6845   if test -n "$OBJDUMP"; then
6846   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   case $as_dir in #(((
6853     '') as_dir=./ ;;
6854     */) ;;
6855     *) as_dir=$as_dir/ ;;
6856   esac
6857     for ac_exec_ext in '' $ac_executable_extensions; do
6858   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6859     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6860     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6861     break 2
6862   fi
6863 done
6864   done
6865 IFS=$as_save_IFS
6866
6867 fi
6868 fi
6869 OBJDUMP=$ac_cv_prog_OBJDUMP
6870 if test -n "$OBJDUMP"; then
6871   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6872 printf "%s\n" "$OBJDUMP" >&6; }
6873 else
6874   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 printf "%s\n" "no" >&6; }
6876 fi
6877
6878
6879 fi
6880 if test -z "$ac_cv_prog_OBJDUMP"; then
6881   ac_ct_OBJDUMP=$OBJDUMP
6882   # Extract the first word of "objdump", so it can be a program name with args.
6883 set dummy objdump; ac_word=$2
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 printf %s "checking for $ac_word... " >&6; }
6886 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6887 then :
6888   printf %s "(cached) " >&6
6889 else $as_nop
6890   if test -n "$ac_ct_OBJDUMP"; then
6891   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   case $as_dir in #(((
6898     '') as_dir=./ ;;
6899     */) ;;
6900     *) as_dir=$as_dir/ ;;
6901   esac
6902     for ac_exec_ext in '' $ac_executable_extensions; do
6903   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6904     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6905     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909   done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6915 if test -n "$ac_ct_OBJDUMP"; then
6916   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6917 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6918 else
6919   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 printf "%s\n" "no" >&6; }
6921 fi
6922
6923   if test "x$ac_ct_OBJDUMP" = x; then
6924     OBJDUMP="false"
6925   else
6926     case $cross_compiling:$ac_tool_warned in
6927 yes:)
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930 ac_tool_warned=yes ;;
6931 esac
6932     OBJDUMP=$ac_ct_OBJDUMP
6933   fi
6934 else
6935   OBJDUMP="$ac_cv_prog_OBJDUMP"
6936 fi
6937
6938 test -z "$OBJDUMP" && OBJDUMP=objdump
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6949 printf %s "checking how to recognize dependent libraries... " >&6; }
6950 if test ${lt_cv_deplibs_check_method+y}
6951 then :
6952   printf %s "(cached) " >&6
6953 else $as_nop
6954   lt_cv_file_magic_cmd='$MAGIC_CMD'
6955 lt_cv_file_magic_test_file=
6956 lt_cv_deplibs_check_method='unknown'
6957 # Need to set the preceding variable on all platforms that support
6958 # interlibrary dependencies.
6959 # 'none' -- dependencies not supported.
6960 # 'unknown' -- same as none, but documents that we really don't know.
6961 # 'pass_all' -- all dependencies passed with no checks.
6962 # 'test_compile' -- check by making test program.
6963 # 'file_magic [[regex]]' -- check by looking for files in library path
6964 # that responds to the $file_magic_cmd with a given extended regex.
6965 # If you have 'file' or equivalent on your system and you're not sure
6966 # whether 'pass_all' will *always* work, you probably want this one.
6967
6968 case $host_os in
6969 aix[4-9]*)
6970   lt_cv_deplibs_check_method=pass_all
6971   ;;
6972
6973 beos*)
6974   lt_cv_deplibs_check_method=pass_all
6975   ;;
6976
6977 bsdi[45]*)
6978   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6979   lt_cv_file_magic_cmd='$FILECMD -L'
6980   lt_cv_file_magic_test_file=/shlib/libc.so
6981   ;;
6982
6983 cygwin*)
6984   # func_win32_libid is a shell function defined in ltmain.sh
6985   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6986   lt_cv_file_magic_cmd='func_win32_libid'
6987   ;;
6988
6989 mingw* | pw32*)
6990   # Base MSYS/MinGW do not provide the 'file' command needed by
6991   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6992   # unless we find 'file', for example because we are cross-compiling.
6993   if ( file / ) >/dev/null 2>&1; then
6994     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6995     lt_cv_file_magic_cmd='func_win32_libid'
6996   else
6997     # Keep this pattern in sync with the one in func_win32_libid.
6998     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6999     lt_cv_file_magic_cmd='$OBJDUMP -f'
7000   fi
7001   ;;
7002
7003 cegcc*)
7004   # use the weaker test based on 'objdump'. See mingw*.
7005   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7006   lt_cv_file_magic_cmd='$OBJDUMP -f'
7007   ;;
7008
7009 darwin* | rhapsody*)
7010   lt_cv_deplibs_check_method=pass_all
7011   ;;
7012
7013 freebsd* | dragonfly* | midnightbsd*)
7014   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7015     case $host_cpu in
7016     i*86 )
7017       # Not sure whether the presence of OpenBSD here was a mistake.
7018       # Let's accept both of them until this is cleared up.
7019       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7020       lt_cv_file_magic_cmd=$FILECMD
7021       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7022       ;;
7023     esac
7024   else
7025     lt_cv_deplibs_check_method=pass_all
7026   fi
7027   ;;
7028
7029 haiku*)
7030   lt_cv_deplibs_check_method=pass_all
7031   ;;
7032
7033 hpux10.20* | hpux11*)
7034   lt_cv_file_magic_cmd=$FILECMD
7035   case $host_cpu in
7036   ia64*)
7037     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7038     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7039     ;;
7040   hppa*64*)
7041     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]'
7042     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7043     ;;
7044   *)
7045     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7046     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7047     ;;
7048   esac
7049   ;;
7050
7051 interix[3-9]*)
7052   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7053   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7054   ;;
7055
7056 irix5* | irix6* | nonstopux*)
7057   case $LD in
7058   *-32|*"-32 ") libmagic=32-bit;;
7059   *-n32|*"-n32 ") libmagic=N32;;
7060   *-64|*"-64 ") libmagic=64-bit;;
7061   *) libmagic=never-match;;
7062   esac
7063   lt_cv_deplibs_check_method=pass_all
7064   ;;
7065
7066 # This must be glibc/ELF.
7067 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7068   lt_cv_deplibs_check_method=pass_all
7069   ;;
7070
7071 netbsd*)
7072   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7073     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7074   else
7075     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7076   fi
7077   ;;
7078
7079 newos6*)
7080   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7081   lt_cv_file_magic_cmd=$FILECMD
7082   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7083   ;;
7084
7085 *nto* | *qnx*)
7086   lt_cv_deplibs_check_method=pass_all
7087   ;;
7088
7089 openbsd* | bitrig*)
7090   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7092   else
7093     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7094   fi
7095   ;;
7096
7097 osf3* | osf4* | osf5*)
7098   lt_cv_deplibs_check_method=pass_all
7099   ;;
7100
7101 rdos*)
7102   lt_cv_deplibs_check_method=pass_all
7103   ;;
7104
7105 solaris*)
7106   lt_cv_deplibs_check_method=pass_all
7107   ;;
7108
7109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7110   lt_cv_deplibs_check_method=pass_all
7111   ;;
7112
7113 sysv4 | sysv4.3*)
7114   case $host_vendor in
7115   motorola)
7116     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]'
7117     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7118     ;;
7119   ncr)
7120     lt_cv_deplibs_check_method=pass_all
7121     ;;
7122   sequent)
7123     lt_cv_file_magic_cmd='/bin/file'
7124     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7125     ;;
7126   sni)
7127     lt_cv_file_magic_cmd='/bin/file'
7128     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7129     lt_cv_file_magic_test_file=/lib/libc.so
7130     ;;
7131   siemens)
7132     lt_cv_deplibs_check_method=pass_all
7133     ;;
7134   pc)
7135     lt_cv_deplibs_check_method=pass_all
7136     ;;
7137   esac
7138   ;;
7139
7140 tpf*)
7141   lt_cv_deplibs_check_method=pass_all
7142   ;;
7143 os2*)
7144   lt_cv_deplibs_check_method=pass_all
7145   ;;
7146 esac
7147
7148 fi
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7150 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7151
7152 file_magic_glob=
7153 want_nocaseglob=no
7154 if test "$build" = "$host"; then
7155   case $host_os in
7156   mingw* | pw32*)
7157     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7158       want_nocaseglob=yes
7159     else
7160       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7161     fi
7162     ;;
7163   esac
7164 fi
7165
7166 file_magic_cmd=$lt_cv_file_magic_cmd
7167 deplibs_check_method=$lt_cv_deplibs_check_method
7168 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 if test -n "$ac_tool_prefix"; then
7192   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 printf %s "checking for $ac_word... " >&6; }
7196 if test ${ac_cv_prog_DLLTOOL+y}
7197 then :
7198   printf %s "(cached) " >&6
7199 else $as_nop
7200   if test -n "$DLLTOOL"; then
7201   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7202 else
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206   IFS=$as_save_IFS
7207   case $as_dir in #(((
7208     '') as_dir=./ ;;
7209     */) ;;
7210     *) as_dir=$as_dir/ ;;
7211   esac
7212     for ac_exec_ext in '' $ac_executable_extensions; do
7213   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7214     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7215     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219   done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 DLLTOOL=$ac_cv_prog_DLLTOOL
7225 if test -n "$DLLTOOL"; then
7226   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7227 printf "%s\n" "$DLLTOOL" >&6; }
7228 else
7229   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 printf "%s\n" "no" >&6; }
7231 fi
7232
7233
7234 fi
7235 if test -z "$ac_cv_prog_DLLTOOL"; then
7236   ac_ct_DLLTOOL=$DLLTOOL
7237   # Extract the first word of "dlltool", so it can be a program name with args.
7238 set dummy dlltool; ac_word=$2
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 printf %s "checking for $ac_word... " >&6; }
7241 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7242 then :
7243   printf %s "(cached) " >&6
7244 else $as_nop
7245   if test -n "$ac_ct_DLLTOOL"; then
7246   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   case $as_dir in #(((
7253     '') as_dir=./ ;;
7254     */) ;;
7255     *) as_dir=$as_dir/ ;;
7256   esac
7257     for ac_exec_ext in '' $ac_executable_extensions; do
7258   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7259     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7260     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264   done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7270 if test -n "$ac_ct_DLLTOOL"; then
7271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7272 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7273 else
7274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 printf "%s\n" "no" >&6; }
7276 fi
7277
7278   if test "x$ac_ct_DLLTOOL" = x; then
7279     DLLTOOL="false"
7280   else
7281     case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287     DLLTOOL=$ac_ct_DLLTOOL
7288   fi
7289 else
7290   DLLTOOL="$ac_cv_prog_DLLTOOL"
7291 fi
7292
7293 test -z "$DLLTOOL" && DLLTOOL=dlltool
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7305 printf %s "checking how to associate runtime and link libraries... " >&6; }
7306 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7307 then :
7308   printf %s "(cached) " >&6
7309 else $as_nop
7310   lt_cv_sharedlib_from_linklib_cmd='unknown'
7311
7312 case $host_os in
7313 cygwin* | mingw* | pw32* | cegcc*)
7314   # two different shell functions defined in ltmain.sh;
7315   # decide which one to use based on capabilities of $DLLTOOL
7316   case `$DLLTOOL --help 2>&1` in
7317   *--identify-strict*)
7318     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7319     ;;
7320   *)
7321     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7322     ;;
7323   esac
7324   ;;
7325 *)
7326   # fallback: assume linklib IS sharedlib
7327   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7328   ;;
7329 esac
7330
7331 fi
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7333 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7334 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7335 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7336
7337
7338
7339
7340
7341
7342
7343 if test -n "$ac_tool_prefix"; then
7344   for ac_prog in ar
7345   do
7346     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 printf %s "checking for $ac_word... " >&6; }
7350 if test ${ac_cv_prog_AR+y}
7351 then :
7352   printf %s "(cached) " >&6
7353 else $as_nop
7354   if test -n "$AR"; then
7355   ac_cv_prog_AR="$AR" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   case $as_dir in #(((
7362     '') as_dir=./ ;;
7363     */) ;;
7364     *) as_dir=$as_dir/ ;;
7365   esac
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7368     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7369     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 AR=$ac_cv_prog_AR
7379 if test -n "$AR"; then
7380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7381 printf "%s\n" "$AR" >&6; }
7382 else
7383   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 printf "%s\n" "no" >&6; }
7385 fi
7386
7387
7388     test -n "$AR" && break
7389   done
7390 fi
7391 if test -z "$AR"; then
7392   ac_ct_AR=$AR
7393   for ac_prog in ar
7394 do
7395   # Extract the first word of "$ac_prog", so it can be a program name with args.
7396 set dummy $ac_prog; ac_word=$2
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 printf %s "checking for $ac_word... " >&6; }
7399 if test ${ac_cv_prog_ac_ct_AR+y}
7400 then :
7401   printf %s "(cached) " >&6
7402 else $as_nop
7403   if test -n "$ac_ct_AR"; then
7404   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   case $as_dir in #(((
7411     '') as_dir=./ ;;
7412     */) ;;
7413     *) as_dir=$as_dir/ ;;
7414   esac
7415     for ac_exec_ext in '' $ac_executable_extensions; do
7416   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7417     ac_cv_prog_ac_ct_AR="$ac_prog"
7418     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7419     break 2
7420   fi
7421 done
7422   done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7428 if test -n "$ac_ct_AR"; then
7429   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7430 printf "%s\n" "$ac_ct_AR" >&6; }
7431 else
7432   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 printf "%s\n" "no" >&6; }
7434 fi
7435
7436
7437   test -n "$ac_ct_AR" && break
7438 done
7439
7440   if test "x$ac_ct_AR" = x; then
7441     AR="false"
7442   else
7443     case $cross_compiling:$ac_tool_warned in
7444 yes:)
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7448 esac
7449     AR=$ac_ct_AR
7450   fi
7451 fi
7452
7453 : ${AR=ar}
7454
7455
7456
7457
7458
7459
7460 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7461 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7462 # higher priority because thats what people were doing historically (setting
7463 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7464 # variable obsoleted/removed.
7465
7466 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7467 lt_ar_flags=$AR_FLAGS
7468
7469
7470
7471
7472
7473
7474 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7475 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7476
7477
7478
7479
7480
7481
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7483 printf %s "checking for archiver @FILE support... " >&6; }
7484 if test ${lt_cv_ar_at_file+y}
7485 then :
7486   printf %s "(cached) " >&6
7487 else $as_nop
7488   lt_cv_ar_at_file=no
7489    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h.  */
7491
7492 int
7493 main (void)
7494 {
7495
7496   ;
7497   return 0;
7498 }
7499 _ACEOF
7500 if ac_fn_c_try_compile "$LINENO"
7501 then :
7502   echo conftest.$ac_objext > conftest.lst
7503       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7504       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7505   (eval $lt_ar_try) 2>&5
7506   ac_status=$?
7507   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508   test $ac_status = 0; }
7509       if test 0 -eq "$ac_status"; then
7510         # Ensure the archiver fails upon bogus file names.
7511         rm -f conftest.$ac_objext libconftest.a
7512         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7513   (eval $lt_ar_try) 2>&5
7514   ac_status=$?
7515   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516   test $ac_status = 0; }
7517         if test 0 -ne "$ac_status"; then
7518           lt_cv_ar_at_file=@
7519         fi
7520       fi
7521       rm -f conftest.* libconftest.a
7522
7523 fi
7524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7525
7526 fi
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7528 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7529
7530 if test no = "$lt_cv_ar_at_file"; then
7531   archiver_list_spec=
7532 else
7533   archiver_list_spec=$lt_cv_ar_at_file
7534 fi
7535
7536
7537
7538
7539
7540
7541
7542 if test -n "$ac_tool_prefix"; then
7543   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7544 set dummy ${ac_tool_prefix}strip; ac_word=$2
7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 printf %s "checking for $ac_word... " >&6; }
7547 if test ${ac_cv_prog_STRIP+y}
7548 then :
7549   printf %s "(cached) " >&6
7550 else $as_nop
7551   if test -n "$STRIP"; then
7552   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   case $as_dir in #(((
7559     '') as_dir=./ ;;
7560     */) ;;
7561     *) as_dir=$as_dir/ ;;
7562   esac
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_STRIP="${ac_tool_prefix}strip"
7566     printf "%s\n" "$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 STRIP=$ac_cv_prog_STRIP
7576 if test -n "$STRIP"; then
7577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7578 printf "%s\n" "$STRIP" >&6; }
7579 else
7580   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 printf "%s\n" "no" >&6; }
7582 fi
7583
7584
7585 fi
7586 if test -z "$ac_cv_prog_STRIP"; then
7587   ac_ct_STRIP=$STRIP
7588   # Extract the first word of "strip", so it can be a program name with args.
7589 set dummy strip; ac_word=$2
7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 printf %s "checking for $ac_word... " >&6; }
7592 if test ${ac_cv_prog_ac_ct_STRIP+y}
7593 then :
7594   printf %s "(cached) " >&6
7595 else $as_nop
7596   if test -n "$ac_ct_STRIP"; then
7597   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   case $as_dir in #(((
7604     '') as_dir=./ ;;
7605     */) ;;
7606     *) as_dir=$as_dir/ ;;
7607   esac
7608     for ac_exec_ext in '' $ac_executable_extensions; do
7609   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7610     ac_cv_prog_ac_ct_STRIP="strip"
7611     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615   done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7621 if test -n "$ac_ct_STRIP"; then
7622   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7623 printf "%s\n" "$ac_ct_STRIP" >&6; }
7624 else
7625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 printf "%s\n" "no" >&6; }
7627 fi
7628
7629   if test "x$ac_ct_STRIP" = x; then
7630     STRIP=":"
7631   else
7632     case $cross_compiling:$ac_tool_warned in
7633 yes:)
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638     STRIP=$ac_ct_STRIP
7639   fi
7640 else
7641   STRIP="$ac_cv_prog_STRIP"
7642 fi
7643
7644 test -z "$STRIP" && STRIP=:
7645
7646
7647
7648
7649
7650
7651 if test -n "$ac_tool_prefix"; then
7652   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7653 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 printf %s "checking for $ac_word... " >&6; }
7656 if test ${ac_cv_prog_RANLIB+y}
7657 then :
7658   printf %s "(cached) " >&6
7659 else $as_nop
7660   if test -n "$RANLIB"; then
7661   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666   IFS=$as_save_IFS
7667   case $as_dir in #(((
7668     '') as_dir=./ ;;
7669     */) ;;
7670     *) as_dir=$as_dir/ ;;
7671   esac
7672     for ac_exec_ext in '' $ac_executable_extensions; do
7673   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7674     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7675     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679   done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 RANLIB=$ac_cv_prog_RANLIB
7685 if test -n "$RANLIB"; then
7686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7687 printf "%s\n" "$RANLIB" >&6; }
7688 else
7689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 printf "%s\n" "no" >&6; }
7691 fi
7692
7693
7694 fi
7695 if test -z "$ac_cv_prog_RANLIB"; then
7696   ac_ct_RANLIB=$RANLIB
7697   # Extract the first word of "ranlib", so it can be a program name with args.
7698 set dummy ranlib; ac_word=$2
7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 printf %s "checking for $ac_word... " >&6; }
7701 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7702 then :
7703   printf %s "(cached) " >&6
7704 else $as_nop
7705   if test -n "$ac_ct_RANLIB"; then
7706   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   case $as_dir in #(((
7713     '') as_dir=./ ;;
7714     */) ;;
7715     *) as_dir=$as_dir/ ;;
7716   esac
7717     for ac_exec_ext in '' $ac_executable_extensions; do
7718   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7719     ac_cv_prog_ac_ct_RANLIB="ranlib"
7720     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724   done
7725 IFS=$as_save_IFS
7726
7727 fi
7728 fi
7729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7730 if test -n "$ac_ct_RANLIB"; then
7731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7732 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7733 else
7734   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 printf "%s\n" "no" >&6; }
7736 fi
7737
7738   if test "x$ac_ct_RANLIB" = x; then
7739     RANLIB=":"
7740   else
7741     case $cross_compiling:$ac_tool_warned in
7742 yes:)
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7746 esac
7747     RANLIB=$ac_ct_RANLIB
7748   fi
7749 else
7750   RANLIB="$ac_cv_prog_RANLIB"
7751 fi
7752
7753 test -z "$RANLIB" && RANLIB=:
7754
7755
7756
7757
7758
7759
7760 # Determine commands to create old-style static archives.
7761 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7762 old_postinstall_cmds='chmod 644 $oldlib'
7763 old_postuninstall_cmds=
7764
7765 if test -n "$RANLIB"; then
7766   case $host_os in
7767   bitrig* | openbsd*)
7768     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7769     ;;
7770   *)
7771     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7772     ;;
7773   esac
7774   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7775 fi
7776
7777 case $host_os in
7778   darwin*)
7779     lock_old_archive_extraction=yes ;;
7780   *)
7781     lock_old_archive_extraction=no ;;
7782 esac
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822 # If no C compiler was specified, use CC.
7823 LTCC=${LTCC-"$CC"}
7824
7825 # If no C compiler flags were specified, use CFLAGS.
7826 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7827
7828 # Allow CC to be a program name with arguments.
7829 compiler=$CC
7830
7831
7832 # Check for command to grab the raw symbol name followed by C symbol from nm.
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7834 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7835 if test ${lt_cv_sys_global_symbol_pipe+y}
7836 then :
7837   printf %s "(cached) " >&6
7838 else $as_nop
7839
7840 # These are sane defaults that work on at least a few old systems.
7841 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7842
7843 # Character class describing NM global symbol codes.
7844 symcode='[BCDEGRST]'
7845
7846 # Regexp to match symbols that can be accessed directly from C.
7847 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7848
7849 # Define system-specific variables.
7850 case $host_os in
7851 aix*)
7852   symcode='[BCDT]'
7853   ;;
7854 cygwin* | mingw* | pw32* | cegcc*)
7855   symcode='[ABCDGISTW]'
7856   ;;
7857 hpux*)
7858   if test ia64 = "$host_cpu"; then
7859     symcode='[ABCDEGRST]'
7860   fi
7861   ;;
7862 irix* | nonstopux*)
7863   symcode='[BCDEGRST]'
7864   ;;
7865 osf*)
7866   symcode='[BCDEGQRST]'
7867   ;;
7868 solaris*)
7869   symcode='[BDRT]'
7870   ;;
7871 sco3.2v5*)
7872   symcode='[DT]'
7873   ;;
7874 sysv4.2uw2*)
7875   symcode='[DT]'
7876   ;;
7877 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7878   symcode='[ABDT]'
7879   ;;
7880 sysv4)
7881   symcode='[DFNSTU]'
7882   ;;
7883 esac
7884
7885 # If we're using GNU nm, then use its standard symbol codes.
7886 case `$NM -V 2>&1` in
7887 *GNU* | *'with BFD'*)
7888   symcode='[ABCDGIRSTW]' ;;
7889 esac
7890
7891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7892   # Gets list of data symbols to import.
7893   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7894   # Adjust the below global symbol transforms to fixup imported variables.
7895   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7896   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7897   lt_c_name_lib_hook="\
7898   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7899   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7900 else
7901   # Disable hooks by default.
7902   lt_cv_sys_global_symbol_to_import=
7903   lt_cdecl_hook=
7904   lt_c_name_hook=
7905   lt_c_name_lib_hook=
7906 fi
7907
7908 # Transform an extracted symbol line into a proper C declaration.
7909 # Some systems (esp. on ia64) link data and code symbols differently,
7910 # so use this general approach.
7911 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7912 $lt_cdecl_hook\
7913 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7914 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7915
7916 # Transform an extracted symbol line into symbol name and symbol address
7917 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7918 $lt_c_name_hook\
7919 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7920 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7921
7922 # Transform an extracted symbol line into symbol name with lib prefix and
7923 # symbol address.
7924 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7925 $lt_c_name_lib_hook\
7926 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7927 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7928 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7929
7930 # Handle CRLF in mingw tool chain
7931 opt_cr=
7932 case $build_os in
7933 mingw*)
7934   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7935   ;;
7936 esac
7937
7938 # Try without a prefix underscore, then with it.
7939 for ac_symprfx in "" "_"; do
7940
7941   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7942   symxfrm="\\1 $ac_symprfx\\2 \\2"
7943
7944   # Write the raw and C identifiers.
7945   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7946     # Fake it for dumpbin and say T for any non-static function,
7947     # D for any global variable and I for any imported variable.
7948     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7949     # which start with @ or ?.
7950     lt_cv_sys_global_symbol_pipe="$AWK '"\
7951 "     {last_section=section; section=\$ 3};"\
7952 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7953 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7954 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7955 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7956 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7957 "     \$ 0!~/External *\|/{next};"\
7958 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7959 "     {if(hide[section]) next};"\
7960 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7961 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7962 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7963 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7964 "     ' prfx=^$ac_symprfx"
7965   else
7966     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7967   fi
7968   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7969
7970   # Check to see that the pipe works correctly.
7971   pipe_works=no
7972
7973   rm -f conftest*
7974   cat > conftest.$ac_ext <<_LT_EOF
7975 #ifdef __cplusplus
7976 extern "C" {
7977 #endif
7978 char nm_test_var;
7979 void nm_test_func(void);
7980 void nm_test_func(void){}
7981 #ifdef __cplusplus
7982 }
7983 #endif
7984 int main(){nm_test_var='a';nm_test_func();return(0);}
7985 _LT_EOF
7986
7987   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7988   (eval $ac_compile) 2>&5
7989   ac_status=$?
7990   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991   test $ac_status = 0; }; then
7992     # Now try to grab the symbols.
7993     nlist=conftest.nm
7994     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7995   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7996   ac_status=$?
7997   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7998   test $ac_status = 0; } && test -s "$nlist"; then
7999       # Try sorting and uniquifying the output.
8000       if sort "$nlist" | uniq > "$nlist"T; then
8001         mv -f "$nlist"T "$nlist"
8002       else
8003         rm -f "$nlist"T
8004       fi
8005
8006       # Make sure that we snagged all the symbols we need.
8007       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8008         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8009           cat <<_LT_EOF > conftest.$ac_ext
8010 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8011 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8012 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8013    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8014 # define LT_DLSYM_CONST
8015 #elif defined __osf__
8016 /* This system does not cope well with relocations in const data.  */
8017 # define LT_DLSYM_CONST
8018 #else
8019 # define LT_DLSYM_CONST const
8020 #endif
8021
8022 #ifdef __cplusplus
8023 extern "C" {
8024 #endif
8025
8026 _LT_EOF
8027           # Now generate the symbol file.
8028           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8029
8030           cat <<_LT_EOF >> conftest.$ac_ext
8031
8032 /* The mapping between symbol names and symbols.  */
8033 LT_DLSYM_CONST struct {
8034   const char *name;
8035   void       *address;
8036 }
8037 lt__PROGRAM__LTX_preloaded_symbols[] =
8038 {
8039   { "@PROGRAM@", (void *) 0 },
8040 _LT_EOF
8041           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8042           cat <<\_LT_EOF >> conftest.$ac_ext
8043   {0, (void *) 0}
8044 };
8045
8046 /* This works around a problem in FreeBSD linker */
8047 #ifdef FREEBSD_WORKAROUND
8048 static const void *lt_preloaded_setup() {
8049   return lt__PROGRAM__LTX_preloaded_symbols;
8050 }
8051 #endif
8052
8053 #ifdef __cplusplus
8054 }
8055 #endif
8056 _LT_EOF
8057           # Now try linking the two files.
8058           mv conftest.$ac_objext conftstm.$ac_objext
8059           lt_globsym_save_LIBS=$LIBS
8060           lt_globsym_save_CFLAGS=$CFLAGS
8061           LIBS=conftstm.$ac_objext
8062           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8063           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8064   (eval $ac_link) 2>&5
8065   ac_status=$?
8066   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8067   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8068             pipe_works=yes
8069           fi
8070           LIBS=$lt_globsym_save_LIBS
8071           CFLAGS=$lt_globsym_save_CFLAGS
8072         else
8073           echo "cannot find nm_test_func in $nlist" >&5
8074         fi
8075       else
8076         echo "cannot find nm_test_var in $nlist" >&5
8077       fi
8078     else
8079       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8080     fi
8081   else
8082     echo "$progname: failed program was:" >&5
8083     cat conftest.$ac_ext >&5
8084   fi
8085   rm -rf conftest* conftst*
8086
8087   # Do not use the global_symbol_pipe unless it works.
8088   if test yes = "$pipe_works"; then
8089     break
8090   else
8091     lt_cv_sys_global_symbol_pipe=
8092   fi
8093 done
8094
8095 fi
8096
8097 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8098   lt_cv_sys_global_symbol_to_cdecl=
8099 fi
8100 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8102 printf "%s\n" "failed" >&6; }
8103 else
8104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8105 printf "%s\n" "ok" >&6; }
8106 fi
8107
8108 # Response file support.
8109 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8110   nm_file_list_spec='@'
8111 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8112   nm_file_list_spec='@'
8113 fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8152 printf %s "checking for sysroot... " >&6; }
8153
8154 # Check whether --with-sysroot was given.
8155 if test ${with_sysroot+y}
8156 then :
8157   withval=$with_sysroot;
8158 else $as_nop
8159   with_sysroot=no
8160 fi
8161
8162
8163 lt_sysroot=
8164 case $with_sysroot in #(
8165  yes)
8166    if test yes = "$GCC"; then
8167      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8168    fi
8169    ;; #(
8170  /*)
8171    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8172    ;; #(
8173  no|'')
8174    ;; #(
8175  *)
8176    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8177 printf "%s\n" "$with_sysroot" >&6; }
8178    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8179    ;;
8180 esac
8181
8182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8183 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8184
8185
8186
8187
8188
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8190 printf %s "checking for a working dd... " >&6; }
8191 if test ${ac_cv_path_lt_DD+y}
8192 then :
8193   printf %s "(cached) " >&6
8194 else $as_nop
8195   printf 0123456789abcdef0123456789abcdef >conftest.i
8196 cat conftest.i conftest.i >conftest2.i
8197 : ${lt_DD:=$DD}
8198 if test -z "$lt_DD"; then
8199   ac_path_lt_DD_found=false
8200   # Loop through the user's path and test for each of PROGNAME-LIST
8201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   case $as_dir in #(((
8206     '') as_dir=./ ;;
8207     */) ;;
8208     *) as_dir=$as_dir/ ;;
8209   esac
8210     for ac_prog in dd
8211    do
8212     for ac_exec_ext in '' $ac_executable_extensions; do
8213       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8214       as_fn_executable_p "$ac_path_lt_DD" || continue
8215 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8216   cmp -s conftest.i conftest.out \
8217   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8218 fi
8219       $ac_path_lt_DD_found && break 3
8220     done
8221   done
8222   done
8223 IFS=$as_save_IFS
8224   if test -z "$ac_cv_path_lt_DD"; then
8225     :
8226   fi
8227 else
8228   ac_cv_path_lt_DD=$lt_DD
8229 fi
8230
8231 rm -f conftest.i conftest2.i conftest.out
8232 fi
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8234 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8235
8236
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8238 printf %s "checking how to truncate binary pipes... " >&6; }
8239 if test ${lt_cv_truncate_bin+y}
8240 then :
8241   printf %s "(cached) " >&6
8242 else $as_nop
8243   printf 0123456789abcdef0123456789abcdef >conftest.i
8244 cat conftest.i conftest.i >conftest2.i
8245 lt_cv_truncate_bin=
8246 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8247   cmp -s conftest.i conftest.out \
8248   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8249 fi
8250 rm -f conftest.i conftest2.i conftest.out
8251 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8252 fi
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8254 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8255
8256
8257
8258
8259
8260
8261
8262 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8263 func_cc_basename ()
8264 {
8265     for cc_temp in $*""; do
8266       case $cc_temp in
8267         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8268         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8269         \-*) ;;
8270         *) break;;
8271       esac
8272     done
8273     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8274 }
8275
8276 # Check whether --enable-libtool-lock was given.
8277 if test ${enable_libtool_lock+y}
8278 then :
8279   enableval=$enable_libtool_lock;
8280 fi
8281
8282 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8283
8284 # Some flags need to be propagated to the compiler or linker for good
8285 # libtool support.
8286 case $host in
8287 ia64-*-hpux*)
8288   # Find out what ABI is being produced by ac_compile, and set mode
8289   # options accordingly.
8290   echo 'int i;' > conftest.$ac_ext
8291   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8292   (eval $ac_compile) 2>&5
8293   ac_status=$?
8294   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8295   test $ac_status = 0; }; then
8296     case `$FILECMD conftest.$ac_objext` in
8297       *ELF-32*)
8298         HPUX_IA64_MODE=32
8299         ;;
8300       *ELF-64*)
8301         HPUX_IA64_MODE=64
8302         ;;
8303     esac
8304   fi
8305   rm -rf conftest*
8306   ;;
8307 *-*-irix6*)
8308   # Find out what ABI is being produced by ac_compile, and set linker
8309   # options accordingly.
8310   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8311   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8312   (eval $ac_compile) 2>&5
8313   ac_status=$?
8314   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8315   test $ac_status = 0; }; then
8316     if test yes = "$lt_cv_prog_gnu_ld"; then
8317       case `$FILECMD conftest.$ac_objext` in
8318         *32-bit*)
8319           LD="${LD-ld} -melf32bsmip"
8320           ;;
8321         *N32*)
8322           LD="${LD-ld} -melf32bmipn32"
8323           ;;
8324         *64-bit*)
8325           LD="${LD-ld} -melf64bmip"
8326         ;;
8327       esac
8328     else
8329       case `$FILECMD conftest.$ac_objext` in
8330         *32-bit*)
8331           LD="${LD-ld} -32"
8332           ;;
8333         *N32*)
8334           LD="${LD-ld} -n32"
8335           ;;
8336         *64-bit*)
8337           LD="${LD-ld} -64"
8338           ;;
8339       esac
8340     fi
8341   fi
8342   rm -rf conftest*
8343   ;;
8344
8345 mips64*-*linux*)
8346   # Find out what ABI is being produced by ac_compile, and set linker
8347   # options accordingly.
8348   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8349   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8350   (eval $ac_compile) 2>&5
8351   ac_status=$?
8352   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8353   test $ac_status = 0; }; then
8354     emul=elf
8355     case `$FILECMD conftest.$ac_objext` in
8356       *32-bit*)
8357         emul="${emul}32"
8358         ;;
8359       *64-bit*)
8360         emul="${emul}64"
8361         ;;
8362     esac
8363     case `$FILECMD conftest.$ac_objext` in
8364       *MSB*)
8365         emul="${emul}btsmip"
8366         ;;
8367       *LSB*)
8368         emul="${emul}ltsmip"
8369         ;;
8370     esac
8371     case `$FILECMD conftest.$ac_objext` in
8372       *N32*)
8373         emul="${emul}n32"
8374         ;;
8375     esac
8376     LD="${LD-ld} -m $emul"
8377   fi
8378   rm -rf conftest*
8379   ;;
8380
8381 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8382 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8383   # Find out what ABI is being produced by ac_compile, and set linker
8384   # options accordingly.  Note that the listed cases only cover the
8385   # situations where additional linker options are needed (such as when
8386   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8387   # vice versa); the common cases where no linker options are needed do
8388   # not appear in the list.
8389   echo 'int i;' > conftest.$ac_ext
8390   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8391   (eval $ac_compile) 2>&5
8392   ac_status=$?
8393   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8394   test $ac_status = 0; }; then
8395     case `$FILECMD conftest.o` in
8396       *32-bit*)
8397         case $host in
8398           x86_64-*kfreebsd*-gnu)
8399             LD="${LD-ld} -m elf_i386_fbsd"
8400             ;;
8401           x86_64-*linux*)
8402             case `$FILECMD conftest.o` in
8403               *x86-64*)
8404                 LD="${LD-ld} -m elf32_x86_64"
8405                 ;;
8406               *)
8407                 LD="${LD-ld} -m elf_i386"
8408                 ;;
8409             esac
8410             ;;
8411           powerpc64le-*linux*)
8412             LD="${LD-ld} -m elf32lppclinux"
8413             ;;
8414           powerpc64-*linux*)
8415             LD="${LD-ld} -m elf32ppclinux"
8416             ;;
8417           s390x-*linux*)
8418             LD="${LD-ld} -m elf_s390"
8419             ;;
8420           sparc64-*linux*)
8421             LD="${LD-ld} -m elf32_sparc"
8422             ;;
8423         esac
8424         ;;
8425       *64-bit*)
8426         case $host in
8427           x86_64-*kfreebsd*-gnu)
8428             LD="${LD-ld} -m elf_x86_64_fbsd"
8429             ;;
8430           x86_64-*linux*)
8431             LD="${LD-ld} -m elf_x86_64"
8432             ;;
8433           powerpcle-*linux*)
8434             LD="${LD-ld} -m elf64lppc"
8435             ;;
8436           powerpc-*linux*)
8437             LD="${LD-ld} -m elf64ppc"
8438             ;;
8439           s390*-*linux*|s390*-*tpf*)
8440             LD="${LD-ld} -m elf64_s390"
8441             ;;
8442           sparc*-*linux*)
8443             LD="${LD-ld} -m elf64_sparc"
8444             ;;
8445         esac
8446         ;;
8447     esac
8448   fi
8449   rm -rf conftest*
8450   ;;
8451
8452 *-*-sco3.2v5*)
8453   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8454   SAVE_CFLAGS=$CFLAGS
8455   CFLAGS="$CFLAGS -belf"
8456   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8457 printf %s "checking whether the C compiler needs -belf... " >&6; }
8458 if test ${lt_cv_cc_needs_belf+y}
8459 then :
8460   printf %s "(cached) " >&6
8461 else $as_nop
8462   ac_ext=c
8463 ac_cpp='$CPP $CPPFLAGS'
8464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8467
8468      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h.  */
8470
8471 int
8472 main (void)
8473 {
8474
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"
8480 then :
8481   lt_cv_cc_needs_belf=yes
8482 else $as_nop
8483   lt_cv_cc_needs_belf=no
8484 fi
8485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8486     conftest$ac_exeext conftest.$ac_ext
8487      ac_ext=c
8488 ac_cpp='$CPP $CPPFLAGS'
8489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8492
8493 fi
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8495 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8496   if test yes != "$lt_cv_cc_needs_belf"; then
8497     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8498     CFLAGS=$SAVE_CFLAGS
8499   fi
8500   ;;
8501 *-*solaris*)
8502   # Find out what ABI is being produced by ac_compile, and set linker
8503   # options accordingly.
8504   echo 'int i;' > conftest.$ac_ext
8505   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8506   (eval $ac_compile) 2>&5
8507   ac_status=$?
8508   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8509   test $ac_status = 0; }; then
8510     case `$FILECMD conftest.o` in
8511     *64-bit*)
8512       case $lt_cv_prog_gnu_ld in
8513       yes*)
8514         case $host in
8515         i?86-*-solaris*|x86_64-*-solaris*)
8516           LD="${LD-ld} -m elf_x86_64"
8517           ;;
8518         sparc*-*-solaris*)
8519           LD="${LD-ld} -m elf64_sparc"
8520           ;;
8521         esac
8522         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8523         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8524           LD=${LD-ld}_sol2
8525         fi
8526         ;;
8527       *)
8528         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8529           LD="${LD-ld} -64"
8530         fi
8531         ;;
8532       esac
8533       ;;
8534     esac
8535   fi
8536   rm -rf conftest*
8537   ;;
8538 esac
8539
8540 need_locks=$enable_libtool_lock
8541
8542 if test -n "$ac_tool_prefix"; then
8543   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8544 set dummy ${ac_tool_prefix}mt; ac_word=$2
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 printf %s "checking for $ac_word... " >&6; }
8547 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8548 then :
8549   printf %s "(cached) " >&6
8550 else $as_nop
8551   if test -n "$MANIFEST_TOOL"; then
8552   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8553 else
8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 for as_dir in $PATH
8556 do
8557   IFS=$as_save_IFS
8558   case $as_dir in #(((
8559     '') as_dir=./ ;;
8560     */) ;;
8561     *) as_dir=$as_dir/ ;;
8562   esac
8563     for ac_exec_ext in '' $ac_executable_extensions; do
8564   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8565     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8566     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8567     break 2
8568   fi
8569 done
8570   done
8571 IFS=$as_save_IFS
8572
8573 fi
8574 fi
8575 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8576 if test -n "$MANIFEST_TOOL"; then
8577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8578 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8579 else
8580   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 printf "%s\n" "no" >&6; }
8582 fi
8583
8584
8585 fi
8586 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8587   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8588   # Extract the first word of "mt", so it can be a program name with args.
8589 set dummy mt; ac_word=$2
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 printf %s "checking for $ac_word... " >&6; }
8592 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8593 then :
8594   printf %s "(cached) " >&6
8595 else $as_nop
8596   if test -n "$ac_ct_MANIFEST_TOOL"; then
8597   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8598 else
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8601 do
8602   IFS=$as_save_IFS
8603   case $as_dir in #(((
8604     '') as_dir=./ ;;
8605     */) ;;
8606     *) as_dir=$as_dir/ ;;
8607   esac
8608     for ac_exec_ext in '' $ac_executable_extensions; do
8609   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8610     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8611     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8612     break 2
8613   fi
8614 done
8615   done
8616 IFS=$as_save_IFS
8617
8618 fi
8619 fi
8620 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8621 if test -n "$ac_ct_MANIFEST_TOOL"; then
8622   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8623 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8624 else
8625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 printf "%s\n" "no" >&6; }
8627 fi
8628
8629   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8630     MANIFEST_TOOL=":"
8631   else
8632     case $cross_compiling:$ac_tool_warned in
8633 yes:)
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8636 ac_tool_warned=yes ;;
8637 esac
8638     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8639   fi
8640 else
8641   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8642 fi
8643
8644 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8646 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8647 if test ${lt_cv_path_mainfest_tool+y}
8648 then :
8649   printf %s "(cached) " >&6
8650 else $as_nop
8651   lt_cv_path_mainfest_tool=no
8652   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8653   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8654   cat conftest.err >&5
8655   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8656     lt_cv_path_mainfest_tool=yes
8657   fi
8658   rm -f conftest*
8659 fi
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8661 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8662 if test yes != "$lt_cv_path_mainfest_tool"; then
8663   MANIFEST_TOOL=:
8664 fi
8665
8666
8667
8668
8669
8670
8671   case $host_os in
8672     rhapsody* | darwin*)
8673     if test -n "$ac_tool_prefix"; then
8674   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8675 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 printf %s "checking for $ac_word... " >&6; }
8678 if test ${ac_cv_prog_DSYMUTIL+y}
8679 then :
8680   printf %s "(cached) " >&6
8681 else $as_nop
8682   if test -n "$DSYMUTIL"; then
8683   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688   IFS=$as_save_IFS
8689   case $as_dir in #(((
8690     '') as_dir=./ ;;
8691     */) ;;
8692     *) as_dir=$as_dir/ ;;
8693   esac
8694     for ac_exec_ext in '' $ac_executable_extensions; do
8695   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8696     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8697     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8698     break 2
8699   fi
8700 done
8701   done
8702 IFS=$as_save_IFS
8703
8704 fi
8705 fi
8706 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8707 if test -n "$DSYMUTIL"; then
8708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8709 printf "%s\n" "$DSYMUTIL" >&6; }
8710 else
8711   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 printf "%s\n" "no" >&6; }
8713 fi
8714
8715
8716 fi
8717 if test -z "$ac_cv_prog_DSYMUTIL"; then
8718   ac_ct_DSYMUTIL=$DSYMUTIL
8719   # Extract the first word of "dsymutil", so it can be a program name with args.
8720 set dummy dsymutil; ac_word=$2
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 printf %s "checking for $ac_word... " >&6; }
8723 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8724 then :
8725   printf %s "(cached) " >&6
8726 else $as_nop
8727   if test -n "$ac_ct_DSYMUTIL"; then
8728   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8729 else
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8732 do
8733   IFS=$as_save_IFS
8734   case $as_dir in #(((
8735     '') as_dir=./ ;;
8736     */) ;;
8737     *) as_dir=$as_dir/ ;;
8738   esac
8739     for ac_exec_ext in '' $ac_executable_extensions; do
8740   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8741     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8742     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8743     break 2
8744   fi
8745 done
8746   done
8747 IFS=$as_save_IFS
8748
8749 fi
8750 fi
8751 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8752 if test -n "$ac_ct_DSYMUTIL"; then
8753   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8754 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8755 else
8756   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 printf "%s\n" "no" >&6; }
8758 fi
8759
8760   if test "x$ac_ct_DSYMUTIL" = x; then
8761     DSYMUTIL=":"
8762   else
8763     case $cross_compiling:$ac_tool_warned in
8764 yes:)
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8767 ac_tool_warned=yes ;;
8768 esac
8769     DSYMUTIL=$ac_ct_DSYMUTIL
8770   fi
8771 else
8772   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8773 fi
8774
8775     if test -n "$ac_tool_prefix"; then
8776   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8777 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779 printf %s "checking for $ac_word... " >&6; }
8780 if test ${ac_cv_prog_NMEDIT+y}
8781 then :
8782   printf %s "(cached) " >&6
8783 else $as_nop
8784   if test -n "$NMEDIT"; then
8785   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8786 else
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8789 do
8790   IFS=$as_save_IFS
8791   case $as_dir in #(((
8792     '') as_dir=./ ;;
8793     */) ;;
8794     *) as_dir=$as_dir/ ;;
8795   esac
8796     for ac_exec_ext in '' $ac_executable_extensions; do
8797   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8798     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8799     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8800     break 2
8801   fi
8802 done
8803   done
8804 IFS=$as_save_IFS
8805
8806 fi
8807 fi
8808 NMEDIT=$ac_cv_prog_NMEDIT
8809 if test -n "$NMEDIT"; then
8810   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8811 printf "%s\n" "$NMEDIT" >&6; }
8812 else
8813   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 printf "%s\n" "no" >&6; }
8815 fi
8816
8817
8818 fi
8819 if test -z "$ac_cv_prog_NMEDIT"; then
8820   ac_ct_NMEDIT=$NMEDIT
8821   # Extract the first word of "nmedit", so it can be a program name with args.
8822 set dummy nmedit; ac_word=$2
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 printf %s "checking for $ac_word... " >&6; }
8825 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8826 then :
8827   printf %s "(cached) " >&6
8828 else $as_nop
8829   if test -n "$ac_ct_NMEDIT"; then
8830   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835   IFS=$as_save_IFS
8836   case $as_dir in #(((
8837     '') as_dir=./ ;;
8838     */) ;;
8839     *) as_dir=$as_dir/ ;;
8840   esac
8841     for ac_exec_ext in '' $ac_executable_extensions; do
8842   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8843     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8844     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8845     break 2
8846   fi
8847 done
8848   done
8849 IFS=$as_save_IFS
8850
8851 fi
8852 fi
8853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8854 if test -n "$ac_ct_NMEDIT"; then
8855   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8856 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8857 else
8858   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 printf "%s\n" "no" >&6; }
8860 fi
8861
8862   if test "x$ac_ct_NMEDIT" = x; then
8863     NMEDIT=":"
8864   else
8865     case $cross_compiling:$ac_tool_warned in
8866 yes:)
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8869 ac_tool_warned=yes ;;
8870 esac
8871     NMEDIT=$ac_ct_NMEDIT
8872   fi
8873 else
8874   NMEDIT="$ac_cv_prog_NMEDIT"
8875 fi
8876
8877     if test -n "$ac_tool_prefix"; then
8878   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8879 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 printf %s "checking for $ac_word... " >&6; }
8882 if test ${ac_cv_prog_LIPO+y}
8883 then :
8884   printf %s "(cached) " >&6
8885 else $as_nop
8886   if test -n "$LIPO"; then
8887   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8888 else
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892   IFS=$as_save_IFS
8893   case $as_dir in #(((
8894     '') as_dir=./ ;;
8895     */) ;;
8896     *) as_dir=$as_dir/ ;;
8897   esac
8898     for ac_exec_ext in '' $ac_executable_extensions; do
8899   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8900     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8901     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8902     break 2
8903   fi
8904 done
8905   done
8906 IFS=$as_save_IFS
8907
8908 fi
8909 fi
8910 LIPO=$ac_cv_prog_LIPO
8911 if test -n "$LIPO"; then
8912   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8913 printf "%s\n" "$LIPO" >&6; }
8914 else
8915   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 printf "%s\n" "no" >&6; }
8917 fi
8918
8919
8920 fi
8921 if test -z "$ac_cv_prog_LIPO"; then
8922   ac_ct_LIPO=$LIPO
8923   # Extract the first word of "lipo", so it can be a program name with args.
8924 set dummy lipo; ac_word=$2
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 printf %s "checking for $ac_word... " >&6; }
8927 if test ${ac_cv_prog_ac_ct_LIPO+y}
8928 then :
8929   printf %s "(cached) " >&6
8930 else $as_nop
8931   if test -n "$ac_ct_LIPO"; then
8932   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8933 else
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8936 do
8937   IFS=$as_save_IFS
8938   case $as_dir in #(((
8939     '') as_dir=./ ;;
8940     */) ;;
8941     *) as_dir=$as_dir/ ;;
8942   esac
8943     for ac_exec_ext in '' $ac_executable_extensions; do
8944   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8945     ac_cv_prog_ac_ct_LIPO="lipo"
8946     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8947     break 2
8948   fi
8949 done
8950   done
8951 IFS=$as_save_IFS
8952
8953 fi
8954 fi
8955 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8956 if test -n "$ac_ct_LIPO"; then
8957   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8958 printf "%s\n" "$ac_ct_LIPO" >&6; }
8959 else
8960   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 printf "%s\n" "no" >&6; }
8962 fi
8963
8964   if test "x$ac_ct_LIPO" = x; then
8965     LIPO=":"
8966   else
8967     case $cross_compiling:$ac_tool_warned in
8968 yes:)
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8971 ac_tool_warned=yes ;;
8972 esac
8973     LIPO=$ac_ct_LIPO
8974   fi
8975 else
8976   LIPO="$ac_cv_prog_LIPO"
8977 fi
8978
8979     if test -n "$ac_tool_prefix"; then
8980   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8981 set dummy ${ac_tool_prefix}otool; ac_word=$2
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983 printf %s "checking for $ac_word... " >&6; }
8984 if test ${ac_cv_prog_OTOOL+y}
8985 then :
8986   printf %s "(cached) " >&6
8987 else $as_nop
8988   if test -n "$OTOOL"; then
8989   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8990 else
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 for as_dir in $PATH
8993 do
8994   IFS=$as_save_IFS
8995   case $as_dir in #(((
8996     '') as_dir=./ ;;
8997     */) ;;
8998     *) as_dir=$as_dir/ ;;
8999   esac
9000     for ac_exec_ext in '' $ac_executable_extensions; do
9001   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9002     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9003     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9004     break 2
9005   fi
9006 done
9007   done
9008 IFS=$as_save_IFS
9009
9010 fi
9011 fi
9012 OTOOL=$ac_cv_prog_OTOOL
9013 if test -n "$OTOOL"; then
9014   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9015 printf "%s\n" "$OTOOL" >&6; }
9016 else
9017   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 printf "%s\n" "no" >&6; }
9019 fi
9020
9021
9022 fi
9023 if test -z "$ac_cv_prog_OTOOL"; then
9024   ac_ct_OTOOL=$OTOOL
9025   # Extract the first word of "otool", so it can be a program name with args.
9026 set dummy otool; ac_word=$2
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 printf %s "checking for $ac_word... " >&6; }
9029 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9030 then :
9031   printf %s "(cached) " >&6
9032 else $as_nop
9033   if test -n "$ac_ct_OTOOL"; then
9034   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9035 else
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9038 do
9039   IFS=$as_save_IFS
9040   case $as_dir in #(((
9041     '') as_dir=./ ;;
9042     */) ;;
9043     *) as_dir=$as_dir/ ;;
9044   esac
9045     for ac_exec_ext in '' $ac_executable_extensions; do
9046   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9047     ac_cv_prog_ac_ct_OTOOL="otool"
9048     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9049     break 2
9050   fi
9051 done
9052   done
9053 IFS=$as_save_IFS
9054
9055 fi
9056 fi
9057 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9058 if test -n "$ac_ct_OTOOL"; then
9059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9060 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9061 else
9062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 printf "%s\n" "no" >&6; }
9064 fi
9065
9066   if test "x$ac_ct_OTOOL" = x; then
9067     OTOOL=":"
9068   else
9069     case $cross_compiling:$ac_tool_warned in
9070 yes:)
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9072 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9073 ac_tool_warned=yes ;;
9074 esac
9075     OTOOL=$ac_ct_OTOOL
9076   fi
9077 else
9078   OTOOL="$ac_cv_prog_OTOOL"
9079 fi
9080
9081     if test -n "$ac_tool_prefix"; then
9082   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9083 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 printf %s "checking for $ac_word... " >&6; }
9086 if test ${ac_cv_prog_OTOOL64+y}
9087 then :
9088   printf %s "(cached) " >&6
9089 else $as_nop
9090   if test -n "$OTOOL64"; then
9091   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9092 else
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9095 do
9096   IFS=$as_save_IFS
9097   case $as_dir in #(((
9098     '') as_dir=./ ;;
9099     */) ;;
9100     *) as_dir=$as_dir/ ;;
9101   esac
9102     for ac_exec_ext in '' $ac_executable_extensions; do
9103   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9104     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9105     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9106     break 2
9107   fi
9108 done
9109   done
9110 IFS=$as_save_IFS
9111
9112 fi
9113 fi
9114 OTOOL64=$ac_cv_prog_OTOOL64
9115 if test -n "$OTOOL64"; then
9116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9117 printf "%s\n" "$OTOOL64" >&6; }
9118 else
9119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 printf "%s\n" "no" >&6; }
9121 fi
9122
9123
9124 fi
9125 if test -z "$ac_cv_prog_OTOOL64"; then
9126   ac_ct_OTOOL64=$OTOOL64
9127   # Extract the first word of "otool64", so it can be a program name with args.
9128 set dummy otool64; ac_word=$2
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 printf %s "checking for $ac_word... " >&6; }
9131 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9132 then :
9133   printf %s "(cached) " >&6
9134 else $as_nop
9135   if test -n "$ac_ct_OTOOL64"; then
9136   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9137 else
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9140 do
9141   IFS=$as_save_IFS
9142   case $as_dir in #(((
9143     '') as_dir=./ ;;
9144     */) ;;
9145     *) as_dir=$as_dir/ ;;
9146   esac
9147     for ac_exec_ext in '' $ac_executable_extensions; do
9148   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9149     ac_cv_prog_ac_ct_OTOOL64="otool64"
9150     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9151     break 2
9152   fi
9153 done
9154   done
9155 IFS=$as_save_IFS
9156
9157 fi
9158 fi
9159 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9160 if test -n "$ac_ct_OTOOL64"; then
9161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9162 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9163 else
9164   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165 printf "%s\n" "no" >&6; }
9166 fi
9167
9168   if test "x$ac_ct_OTOOL64" = x; then
9169     OTOOL64=":"
9170   else
9171     case $cross_compiling:$ac_tool_warned in
9172 yes:)
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9174 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9175 ac_tool_warned=yes ;;
9176 esac
9177     OTOOL64=$ac_ct_OTOOL64
9178   fi
9179 else
9180   OTOOL64="$ac_cv_prog_OTOOL64"
9181 fi
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9210 printf %s "checking for -single_module linker flag... " >&6; }
9211 if test ${lt_cv_apple_cc_single_mod+y}
9212 then :
9213   printf %s "(cached) " >&6
9214 else $as_nop
9215   lt_cv_apple_cc_single_mod=no
9216       if test -z "$LT_MULTI_MODULE"; then
9217         # By default we will add the -single_module flag. You can override
9218         # by either setting the environment variable LT_MULTI_MODULE
9219         # non-empty at configure time, or by adding -multi_module to the
9220         # link flags.
9221         rm -rf libconftest.dylib*
9222         echo "int foo(void){return 1;}" > conftest.c
9223         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9224 -dynamiclib -Wl,-single_module conftest.c" >&5
9225         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9226           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9227         _lt_result=$?
9228         # If there is a non-empty error log, and "single_module"
9229         # appears in it, assume the flag caused a linker warning
9230         if test -s conftest.err && $GREP single_module conftest.err; then
9231           cat conftest.err >&5
9232         # Otherwise, if the output was created with a 0 exit code from
9233         # the compiler, it worked.
9234         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9235           lt_cv_apple_cc_single_mod=yes
9236         else
9237           cat conftest.err >&5
9238         fi
9239         rm -rf libconftest.dylib*
9240         rm -f conftest.*
9241       fi
9242 fi
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9244 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9245
9246     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9247 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9248 if test ${lt_cv_ld_exported_symbols_list+y}
9249 then :
9250   printf %s "(cached) " >&6
9251 else $as_nop
9252   lt_cv_ld_exported_symbols_list=no
9253       save_LDFLAGS=$LDFLAGS
9254       echo "_main" > conftest.sym
9255       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9256       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h.  */
9258
9259 int
9260 main (void)
9261 {
9262
9263   ;
9264   return 0;
9265 }
9266 _ACEOF
9267 if ac_fn_c_try_link "$LINENO"
9268 then :
9269   lt_cv_ld_exported_symbols_list=yes
9270 else $as_nop
9271   lt_cv_ld_exported_symbols_list=no
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9274     conftest$ac_exeext conftest.$ac_ext
9275         LDFLAGS=$save_LDFLAGS
9276
9277 fi
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9279 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9280
9281     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9282 printf %s "checking for -force_load linker flag... " >&6; }
9283 if test ${lt_cv_ld_force_load+y}
9284 then :
9285   printf %s "(cached) " >&6
9286 else $as_nop
9287   lt_cv_ld_force_load=no
9288       cat > conftest.c << _LT_EOF
9289 int forced_loaded() { return 2;}
9290 _LT_EOF
9291       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9292       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9293       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9294       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9295       echo "$RANLIB libconftest.a" >&5
9296       $RANLIB libconftest.a 2>&5
9297       cat > conftest.c << _LT_EOF
9298 int main() { return 0;}
9299 _LT_EOF
9300       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9301       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9302       _lt_result=$?
9303       if test -s conftest.err && $GREP force_load conftest.err; then
9304         cat conftest.err >&5
9305       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9306         lt_cv_ld_force_load=yes
9307       else
9308         cat conftest.err >&5
9309       fi
9310         rm -f conftest.err libconftest.a conftest conftest.c
9311         rm -rf conftest.dSYM
9312
9313 fi
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9315 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9316     case $host_os in
9317     rhapsody* | darwin1.[012])
9318       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9319     darwin1.*)
9320       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9321     darwin*)
9322       case $MACOSX_DEPLOYMENT_TARGET,$host in
9323         10.[012],*|,*powerpc*-darwin[5-8]*)
9324           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9325         *)
9326           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9327       esac
9328     ;;
9329   esac
9330     if test yes = "$lt_cv_apple_cc_single_mod"; then
9331       _lt_dar_single_mod='$single_module'
9332     fi
9333     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9334       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9335     else
9336       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9337     fi
9338     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9339       _lt_dsymutil='~$DSYMUTIL $lib || :'
9340     else
9341       _lt_dsymutil=
9342     fi
9343     ;;
9344   esac
9345
9346 # func_munge_path_list VARIABLE PATH
9347 # -----------------------------------
9348 # VARIABLE is name of variable containing _space_ separated list of
9349 # directories to be munged by the contents of PATH, which is string
9350 # having a format:
9351 # "DIR[:DIR]:"
9352 #       string "DIR[ DIR]" will be prepended to VARIABLE
9353 # ":DIR[:DIR]"
9354 #       string "DIR[ DIR]" will be appended to VARIABLE
9355 # "DIRP[:DIRP]::[DIRA:]DIRA"
9356 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9357 #       "DIRA[ DIRA]" will be appended to VARIABLE
9358 # "DIR[:DIR]"
9359 #       VARIABLE will be replaced by "DIR[ DIR]"
9360 func_munge_path_list ()
9361 {
9362     case x$2 in
9363     x)
9364         ;;
9365     *:)
9366         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9367         ;;
9368     x:*)
9369         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9370         ;;
9371     *::*)
9372         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9373         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9374         ;;
9375     *)
9376         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9377         ;;
9378     esac
9379 }
9380
9381 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9382 "
9383 if test "x$ac_cv_header_dlfcn_h" = xyes
9384 then :
9385   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9386
9387 fi
9388
9389
9390
9391
9392 func_stripname_cnf ()
9393 {
9394   case $2 in
9395   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9396   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9397   esac
9398 } # func_stripname_cnf
9399
9400
9401
9402
9403
9404 # Set options
9405 # Check whether --enable-static was given.
9406 if test ${enable_static+y}
9407 then :
9408   enableval=$enable_static; p=${PACKAGE-default}
9409     case $enableval in
9410     yes) enable_static=yes ;;
9411     no) enable_static=no ;;
9412     *)
9413      enable_static=no
9414       # Look at the argument we got.  We use all the common list separators.
9415       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9416       for pkg in $enableval; do
9417         IFS=$lt_save_ifs
9418         if test "X$pkg" = "X$p"; then
9419           enable_static=yes
9420         fi
9421       done
9422       IFS=$lt_save_ifs
9423       ;;
9424     esac
9425 else $as_nop
9426   enable_static=no
9427 fi
9428
9429
9430
9431
9432
9433
9434
9435 enable_dlopen=yes
9436
9437
9438
9439
9440   enable_win32_dll=no
9441
9442
9443             # Check whether --enable-shared was given.
9444 if test ${enable_shared+y}
9445 then :
9446   enableval=$enable_shared; p=${PACKAGE-default}
9447     case $enableval in
9448     yes) enable_shared=yes ;;
9449     no) enable_shared=no ;;
9450     *)
9451       enable_shared=no
9452       # Look at the argument we got.  We use all the common list separators.
9453       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9454       for pkg in $enableval; do
9455         IFS=$lt_save_ifs
9456         if test "X$pkg" = "X$p"; then
9457           enable_shared=yes
9458         fi
9459       done
9460       IFS=$lt_save_ifs
9461       ;;
9462     esac
9463 else $as_nop
9464   enable_shared=yes
9465 fi
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477 # Check whether --with-pic was given.
9478 if test ${with_pic+y}
9479 then :
9480   withval=$with_pic; lt_p=${PACKAGE-default}
9481     case $withval in
9482     yes|no) pic_mode=$withval ;;
9483     *)
9484       pic_mode=default
9485       # Look at the argument we got.  We use all the common list separators.
9486       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9487       for lt_pkg in $withval; do
9488         IFS=$lt_save_ifs
9489         if test "X$lt_pkg" = "X$lt_p"; then
9490           pic_mode=yes
9491         fi
9492       done
9493       IFS=$lt_save_ifs
9494       ;;
9495     esac
9496 else $as_nop
9497   pic_mode=default
9498 fi
9499
9500
9501
9502
9503
9504
9505
9506
9507   # Check whether --enable-fast-install was given.
9508 if test ${enable_fast_install+y}
9509 then :
9510   enableval=$enable_fast_install; p=${PACKAGE-default}
9511     case $enableval in
9512     yes) enable_fast_install=yes ;;
9513     no) enable_fast_install=no ;;
9514     *)
9515       enable_fast_install=no
9516       # Look at the argument we got.  We use all the common list separators.
9517       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9518       for pkg in $enableval; do
9519         IFS=$lt_save_ifs
9520         if test "X$pkg" = "X$p"; then
9521           enable_fast_install=yes
9522         fi
9523       done
9524       IFS=$lt_save_ifs
9525       ;;
9526     esac
9527 else $as_nop
9528   enable_fast_install=yes
9529 fi
9530
9531
9532
9533
9534
9535
9536
9537
9538   shared_archive_member_spec=
9539 case $host,$enable_shared in
9540 power*-*-aix[5-9]*,yes)
9541   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9542 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9543
9544 # Check whether --with-aix-soname was given.
9545 if test ${with_aix_soname+y}
9546 then :
9547   withval=$with_aix_soname; case $withval in
9548     aix|svr4|both)
9549       ;;
9550     *)
9551       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9552       ;;
9553     esac
9554     lt_cv_with_aix_soname=$with_aix_soname
9555 else $as_nop
9556   if test ${lt_cv_with_aix_soname+y}
9557 then :
9558   printf %s "(cached) " >&6
9559 else $as_nop
9560   lt_cv_with_aix_soname=aix
9561 fi
9562
9563     with_aix_soname=$lt_cv_with_aix_soname
9564 fi
9565
9566   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9567 printf "%s\n" "$with_aix_soname" >&6; }
9568   if test aix != "$with_aix_soname"; then
9569     # For the AIX way of multilib, we name the shared archive member
9570     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9571     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9572     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9573     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9574     if test 64 = "${OBJECT_MODE-32}"; then
9575       shared_archive_member_spec=shr_64
9576     else
9577       shared_archive_member_spec=shr
9578     fi
9579   fi
9580   ;;
9581 *)
9582   with_aix_soname=aix
9583   ;;
9584 esac
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595 # This can be used to rebuild libtool when needed
9596 LIBTOOL_DEPS=$ltmain
9597
9598 # Always use our own libtool.
9599 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630 test -z "$LN_S" && LN_S="ln -s"
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645 if test -n "${ZSH_VERSION+set}"; then
9646    setopt NO_GLOB_SUBST
9647 fi
9648
9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9650 printf %s "checking for objdir... " >&6; }
9651 if test ${lt_cv_objdir+y}
9652 then :
9653   printf %s "(cached) " >&6
9654 else $as_nop
9655   rm -f .libs 2>/dev/null
9656 mkdir .libs 2>/dev/null
9657 if test -d .libs; then
9658   lt_cv_objdir=.libs
9659 else
9660   # MS-DOS does not allow filenames that begin with a dot.
9661   lt_cv_objdir=_libs
9662 fi
9663 rmdir .libs 2>/dev/null
9664 fi
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9666 printf "%s\n" "$lt_cv_objdir" >&6; }
9667 objdir=$lt_cv_objdir
9668
9669
9670
9671
9672
9673 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9674
9675
9676
9677
9678 case $host_os in
9679 aix3*)
9680   # AIX sometimes has problems with the GCC collect2 program.  For some
9681   # reason, if we set the COLLECT_NAMES environment variable, the problems
9682   # vanish in a puff of smoke.
9683   if test set != "${COLLECT_NAMES+set}"; then
9684     COLLECT_NAMES=
9685     export COLLECT_NAMES
9686   fi
9687   ;;
9688 esac
9689
9690 # Global variables:
9691 ofile=libtool
9692 can_build_shared=yes
9693
9694 # All known linkers require a '.a' archive for static linking (except MSVC and
9695 # ICC, which need '.lib').
9696 libext=a
9697
9698 with_gnu_ld=$lt_cv_prog_gnu_ld
9699
9700 old_CC=$CC
9701 old_CFLAGS=$CFLAGS
9702
9703 # Set sane defaults for various variables
9704 test -z "$CC" && CC=cc
9705 test -z "$LTCC" && LTCC=$CC
9706 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9707 test -z "$LD" && LD=ld
9708 test -z "$ac_objext" && ac_objext=o
9709
9710 func_cc_basename $compiler
9711 cc_basename=$func_cc_basename_result
9712
9713
9714 # Only perform the check for file, if the check method requires it
9715 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9716 case $deplibs_check_method in
9717 file_magic*)
9718   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9719     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9720 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9721 if test ${lt_cv_path_MAGIC_CMD+y}
9722 then :
9723   printf %s "(cached) " >&6
9724 else $as_nop
9725   case $MAGIC_CMD in
9726 [\\/*] |  ?:[\\/]*)
9727   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9728   ;;
9729 *)
9730   lt_save_MAGIC_CMD=$MAGIC_CMD
9731   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9732   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9733   for ac_dir in $ac_dummy; do
9734     IFS=$lt_save_ifs
9735     test -z "$ac_dir" && ac_dir=.
9736     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9737       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9738       if test -n "$file_magic_test_file"; then
9739         case $deplibs_check_method in
9740         "file_magic "*)
9741           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9742           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9743           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9744             $EGREP "$file_magic_regex" > /dev/null; then
9745             :
9746           else
9747             cat <<_LT_EOF 1>&2
9748
9749 *** Warning: the command libtool uses to detect shared libraries,
9750 *** $file_magic_cmd, produces output that libtool cannot recognize.
9751 *** The result is that libtool may fail to recognize shared libraries
9752 *** as such.  This will affect the creation of libtool libraries that
9753 *** depend on shared libraries, but programs linked with such libtool
9754 *** libraries will work regardless of this problem.  Nevertheless, you
9755 *** may want to report the problem to your system manager and/or to
9756 *** bug-libtool@gnu.org
9757
9758 _LT_EOF
9759           fi ;;
9760         esac
9761       fi
9762       break
9763     fi
9764   done
9765   IFS=$lt_save_ifs
9766   MAGIC_CMD=$lt_save_MAGIC_CMD
9767   ;;
9768 esac
9769 fi
9770
9771 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9772 if test -n "$MAGIC_CMD"; then
9773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9774 printf "%s\n" "$MAGIC_CMD" >&6; }
9775 else
9776   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9777 printf "%s\n" "no" >&6; }
9778 fi
9779
9780
9781
9782
9783
9784 if test -z "$lt_cv_path_MAGIC_CMD"; then
9785   if test -n "$ac_tool_prefix"; then
9786     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9787 printf %s "checking for file... " >&6; }
9788 if test ${lt_cv_path_MAGIC_CMD+y}
9789 then :
9790   printf %s "(cached) " >&6
9791 else $as_nop
9792   case $MAGIC_CMD in
9793 [\\/*] |  ?:[\\/]*)
9794   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9795   ;;
9796 *)
9797   lt_save_MAGIC_CMD=$MAGIC_CMD
9798   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9799   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9800   for ac_dir in $ac_dummy; do
9801     IFS=$lt_save_ifs
9802     test -z "$ac_dir" && ac_dir=.
9803     if test -f "$ac_dir/file"; then
9804       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9805       if test -n "$file_magic_test_file"; then
9806         case $deplibs_check_method in
9807         "file_magic "*)
9808           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9809           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9810           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9811             $EGREP "$file_magic_regex" > /dev/null; then
9812             :
9813           else
9814             cat <<_LT_EOF 1>&2
9815
9816 *** Warning: the command libtool uses to detect shared libraries,
9817 *** $file_magic_cmd, produces output that libtool cannot recognize.
9818 *** The result is that libtool may fail to recognize shared libraries
9819 *** as such.  This will affect the creation of libtool libraries that
9820 *** depend on shared libraries, but programs linked with such libtool
9821 *** libraries will work regardless of this problem.  Nevertheless, you
9822 *** may want to report the problem to your system manager and/or to
9823 *** bug-libtool@gnu.org
9824
9825 _LT_EOF
9826           fi ;;
9827         esac
9828       fi
9829       break
9830     fi
9831   done
9832   IFS=$lt_save_ifs
9833   MAGIC_CMD=$lt_save_MAGIC_CMD
9834   ;;
9835 esac
9836 fi
9837
9838 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9839 if test -n "$MAGIC_CMD"; then
9840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9841 printf "%s\n" "$MAGIC_CMD" >&6; }
9842 else
9843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 printf "%s\n" "no" >&6; }
9845 fi
9846
9847
9848   else
9849     MAGIC_CMD=:
9850   fi
9851 fi
9852
9853   fi
9854   ;;
9855 esac
9856
9857 # Use C for the default configuration in the libtool script
9858
9859 lt_save_CC=$CC
9860 ac_ext=c
9861 ac_cpp='$CPP $CPPFLAGS'
9862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9865
9866
9867 # Source file extension for C test sources.
9868 ac_ext=c
9869
9870 # Object file extension for compiled C test sources.
9871 objext=o
9872 objext=$objext
9873
9874 # Code to be used in simple compile tests
9875 lt_simple_compile_test_code="int some_variable = 0;"
9876
9877 # Code to be used in simple link tests
9878 lt_simple_link_test_code='int main(){return(0);}'
9879
9880
9881
9882
9883
9884
9885
9886 # If no C compiler was specified, use CC.
9887 LTCC=${LTCC-"$CC"}
9888
9889 # If no C compiler flags were specified, use CFLAGS.
9890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9891
9892 # Allow CC to be a program name with arguments.
9893 compiler=$CC
9894
9895 # Save the default compiler, since it gets overwritten when the other
9896 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9897 compiler_DEFAULT=$CC
9898
9899 # save warnings/boilerplate of simple test code
9900 ac_outfile=conftest.$ac_objext
9901 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9903 _lt_compiler_boilerplate=`cat conftest.err`
9904 $RM conftest*
9905
9906 ac_outfile=conftest.$ac_objext
9907 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9909 _lt_linker_boilerplate=`cat conftest.err`
9910 $RM -r conftest*
9911
9912
9913 ## CAVEAT EMPTOR:
9914 ## There is no encapsulation within the following macros, do not change
9915 ## the running order or otherwise move them around unless you know exactly
9916 ## what you are doing...
9917 if test -n "$compiler"; then
9918
9919 lt_prog_compiler_no_builtin_flag=
9920
9921 if test yes = "$GCC"; then
9922   case $cc_basename in
9923   nvcc*)
9924     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9925   *)
9926     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9927   esac
9928
9929   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9930 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9931 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9932 then :
9933   printf %s "(cached) " >&6
9934 else $as_nop
9935   lt_cv_prog_compiler_rtti_exceptions=no
9936    ac_outfile=conftest.$ac_objext
9937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9938    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9939    # Insert the option either (1) after the last *FLAGS variable, or
9940    # (2) before a word containing "conftest.", or (3) at the end.
9941    # Note that $ac_compile itself does not contain backslashes and begins
9942    # with a dollar sign (not a hyphen), so the echo should work correctly.
9943    # The option is referenced via a variable to avoid confusing sed.
9944    lt_compile=`echo "$ac_compile" | $SED \
9945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9947    -e 's:$: $lt_compiler_flag:'`
9948    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9949    (eval "$lt_compile" 2>conftest.err)
9950    ac_status=$?
9951    cat conftest.err >&5
9952    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953    if (exit $ac_status) && test -s "$ac_outfile"; then
9954      # The compiler can only warn and ignore the option if not recognized
9955      # So say no if there are warnings other than the usual output.
9956      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9957      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9958      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9959        lt_cv_prog_compiler_rtti_exceptions=yes
9960      fi
9961    fi
9962    $RM conftest*
9963
9964 fi
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9966 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9967
9968 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9969     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9970 else
9971     :
9972 fi
9973
9974 fi
9975
9976
9977
9978
9979
9980
9981   lt_prog_compiler_wl=
9982 lt_prog_compiler_pic=
9983 lt_prog_compiler_static=
9984
9985
9986   if test yes = "$GCC"; then
9987     lt_prog_compiler_wl='-Wl,'
9988     lt_prog_compiler_static='-static'
9989
9990     case $host_os in
9991       aix*)
9992       # All AIX code is PIC.
9993       if test ia64 = "$host_cpu"; then
9994         # AIX 5 now supports IA64 processor
9995         lt_prog_compiler_static='-Bstatic'
9996       fi
9997       lt_prog_compiler_pic='-fPIC'
9998       ;;
9999
10000     amigaos*)
10001       case $host_cpu in
10002       powerpc)
10003             # see comment about AmigaOS4 .so support
10004             lt_prog_compiler_pic='-fPIC'
10005         ;;
10006       m68k)
10007             # FIXME: we need at least 68020 code to build shared libraries, but
10008             # adding the '-m68020' flag to GCC prevents building anything better,
10009             # like '-m68040'.
10010             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10011         ;;
10012       esac
10013       ;;
10014
10015     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10016       # PIC is the default for these OSes.
10017       ;;
10018
10019     mingw* | cygwin* | pw32* | os2* | cegcc*)
10020       # This hack is so that the source file can tell whether it is being
10021       # built for inclusion in a dll (and should export symbols for example).
10022       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10023       # (--disable-auto-import) libraries
10024       lt_prog_compiler_pic='-DDLL_EXPORT'
10025       case $host_os in
10026       os2*)
10027         lt_prog_compiler_static='$wl-static'
10028         ;;
10029       esac
10030       ;;
10031
10032     darwin* | rhapsody*)
10033       # PIC is the default on this platform
10034       # Common symbols not allowed in MH_DYLIB files
10035       lt_prog_compiler_pic='-fno-common'
10036       ;;
10037
10038     haiku*)
10039       # PIC is the default for Haiku.
10040       # The "-static" flag exists, but is broken.
10041       lt_prog_compiler_static=
10042       ;;
10043
10044     hpux*)
10045       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10046       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10047       # sets the default TLS model and affects inlining.
10048       case $host_cpu in
10049       hppa*64*)
10050         # +Z the default
10051         ;;
10052       *)
10053         lt_prog_compiler_pic='-fPIC'
10054         ;;
10055       esac
10056       ;;
10057
10058     interix[3-9]*)
10059       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10060       # Instead, we relocate shared libraries at runtime.
10061       ;;
10062
10063     msdosdjgpp*)
10064       # Just because we use GCC doesn't mean we suddenly get shared libraries
10065       # on systems that don't support them.
10066       lt_prog_compiler_can_build_shared=no
10067       enable_shared=no
10068       ;;
10069
10070     *nto* | *qnx*)
10071       # QNX uses GNU C++, but need to define -shared option too, otherwise
10072       # it will coredump.
10073       lt_prog_compiler_pic='-fPIC -shared'
10074       ;;
10075
10076     sysv4*MP*)
10077       if test -d /usr/nec; then
10078         lt_prog_compiler_pic=-Kconform_pic
10079       fi
10080       ;;
10081
10082     *)
10083       lt_prog_compiler_pic='-fPIC'
10084       ;;
10085     esac
10086
10087     case $cc_basename in
10088     nvcc*) # Cuda Compiler Driver 2.2
10089       lt_prog_compiler_wl='-Xlinker '
10090       if test -n "$lt_prog_compiler_pic"; then
10091         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10092       fi
10093       ;;
10094     esac
10095   else
10096     # PORTME Check for flag to pass linker flags through the system compiler.
10097     case $host_os in
10098     aix*)
10099       lt_prog_compiler_wl='-Wl,'
10100       if test ia64 = "$host_cpu"; then
10101         # AIX 5 now supports IA64 processor
10102         lt_prog_compiler_static='-Bstatic'
10103       else
10104         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10105       fi
10106       ;;
10107
10108     darwin* | rhapsody*)
10109       # PIC is the default on this platform
10110       # Common symbols not allowed in MH_DYLIB files
10111       lt_prog_compiler_pic='-fno-common'
10112       case $cc_basename in
10113       nagfor*)
10114         # NAG Fortran compiler
10115         lt_prog_compiler_wl='-Wl,-Wl,,'
10116         lt_prog_compiler_pic='-PIC'
10117         lt_prog_compiler_static='-Bstatic'
10118         ;;
10119       esac
10120       ;;
10121
10122     mingw* | cygwin* | pw32* | os2* | cegcc*)
10123       # This hack is so that the source file can tell whether it is being
10124       # built for inclusion in a dll (and should export symbols for example).
10125       lt_prog_compiler_pic='-DDLL_EXPORT'
10126       case $host_os in
10127       os2*)
10128         lt_prog_compiler_static='$wl-static'
10129         ;;
10130       esac
10131       ;;
10132
10133     hpux9* | hpux10* | hpux11*)
10134       lt_prog_compiler_wl='-Wl,'
10135       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10136       # not for PA HP-UX.
10137       case $host_cpu in
10138       hppa*64*|ia64*)
10139         # +Z the default
10140         ;;
10141       *)
10142         lt_prog_compiler_pic='+Z'
10143         ;;
10144       esac
10145       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10146       lt_prog_compiler_static='$wl-a ${wl}archive'
10147       ;;
10148
10149     irix5* | irix6* | nonstopux*)
10150       lt_prog_compiler_wl='-Wl,'
10151       # PIC (with -KPIC) is the default.
10152       lt_prog_compiler_static='-non_shared'
10153       ;;
10154
10155     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10156       case $cc_basename in
10157       # old Intel for x86_64, which still supported -KPIC.
10158       ecc*)
10159         lt_prog_compiler_wl='-Wl,'
10160         lt_prog_compiler_pic='-KPIC'
10161         lt_prog_compiler_static='-static'
10162         ;;
10163       # icc used to be incompatible with GCC.
10164       # ICC 10 doesn't accept -KPIC any more.
10165       icc* | ifort*)
10166         lt_prog_compiler_wl='-Wl,'
10167         lt_prog_compiler_pic='-fPIC'
10168         lt_prog_compiler_static='-static'
10169         ;;
10170       # Lahey Fortran 8.1.
10171       lf95*)
10172         lt_prog_compiler_wl='-Wl,'
10173         lt_prog_compiler_pic='--shared'
10174         lt_prog_compiler_static='--static'
10175         ;;
10176       nagfor*)
10177         # NAG Fortran compiler
10178         lt_prog_compiler_wl='-Wl,-Wl,,'
10179         lt_prog_compiler_pic='-PIC'
10180         lt_prog_compiler_static='-Bstatic'
10181         ;;
10182       tcc*)
10183         # Fabrice Bellard et al's Tiny C Compiler
10184         lt_prog_compiler_wl='-Wl,'
10185         lt_prog_compiler_pic='-fPIC'
10186         lt_prog_compiler_static='-static'
10187         ;;
10188       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10189         # Portland Group compilers (*not* the Pentium gcc compiler,
10190         # which looks to be a dead project)
10191         lt_prog_compiler_wl='-Wl,'
10192         lt_prog_compiler_pic='-fpic'
10193         lt_prog_compiler_static='-Bstatic'
10194         ;;
10195       ccc*)
10196         lt_prog_compiler_wl='-Wl,'
10197         # All Alpha code is PIC.
10198         lt_prog_compiler_static='-non_shared'
10199         ;;
10200       xl* | bgxl* | bgf* | mpixl*)
10201         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10202         lt_prog_compiler_wl='-Wl,'
10203         lt_prog_compiler_pic='-qpic'
10204         lt_prog_compiler_static='-qstaticlink'
10205         ;;
10206       *)
10207         case `$CC -V 2>&1 | $SED 5q` in
10208         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10209           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10210           lt_prog_compiler_pic='-KPIC'
10211           lt_prog_compiler_static='-Bstatic'
10212           lt_prog_compiler_wl=''
10213           ;;
10214         *Sun\ F* | *Sun*Fortran*)
10215           lt_prog_compiler_pic='-KPIC'
10216           lt_prog_compiler_static='-Bstatic'
10217           lt_prog_compiler_wl='-Qoption ld '
10218           ;;
10219         *Sun\ C*)
10220           # Sun C 5.9
10221           lt_prog_compiler_pic='-KPIC'
10222           lt_prog_compiler_static='-Bstatic'
10223           lt_prog_compiler_wl='-Wl,'
10224           ;;
10225         *Intel*\ [CF]*Compiler*)
10226           lt_prog_compiler_wl='-Wl,'
10227           lt_prog_compiler_pic='-fPIC'
10228           lt_prog_compiler_static='-static'
10229           ;;
10230         *Portland\ Group*)
10231           lt_prog_compiler_wl='-Wl,'
10232           lt_prog_compiler_pic='-fpic'
10233           lt_prog_compiler_static='-Bstatic'
10234           ;;
10235         esac
10236         ;;
10237       esac
10238       ;;
10239
10240     newsos6)
10241       lt_prog_compiler_pic='-KPIC'
10242       lt_prog_compiler_static='-Bstatic'
10243       ;;
10244
10245     *nto* | *qnx*)
10246       # QNX uses GNU C++, but need to define -shared option too, otherwise
10247       # it will coredump.
10248       lt_prog_compiler_pic='-fPIC -shared'
10249       ;;
10250
10251     osf3* | osf4* | osf5*)
10252       lt_prog_compiler_wl='-Wl,'
10253       # All OSF/1 code is PIC.
10254       lt_prog_compiler_static='-non_shared'
10255       ;;
10256
10257     rdos*)
10258       lt_prog_compiler_static='-non_shared'
10259       ;;
10260
10261     solaris*)
10262       lt_prog_compiler_pic='-KPIC'
10263       lt_prog_compiler_static='-Bstatic'
10264       case $cc_basename in
10265       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10266         lt_prog_compiler_wl='-Qoption ld ';;
10267       *)
10268         lt_prog_compiler_wl='-Wl,';;
10269       esac
10270       ;;
10271
10272     sunos4*)
10273       lt_prog_compiler_wl='-Qoption ld '
10274       lt_prog_compiler_pic='-PIC'
10275       lt_prog_compiler_static='-Bstatic'
10276       ;;
10277
10278     sysv4 | sysv4.2uw2* | sysv4.3*)
10279       lt_prog_compiler_wl='-Wl,'
10280       lt_prog_compiler_pic='-KPIC'
10281       lt_prog_compiler_static='-Bstatic'
10282       ;;
10283
10284     sysv4*MP*)
10285       if test -d /usr/nec; then
10286         lt_prog_compiler_pic='-Kconform_pic'
10287         lt_prog_compiler_static='-Bstatic'
10288       fi
10289       ;;
10290
10291     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10292       lt_prog_compiler_wl='-Wl,'
10293       lt_prog_compiler_pic='-KPIC'
10294       lt_prog_compiler_static='-Bstatic'
10295       ;;
10296
10297     unicos*)
10298       lt_prog_compiler_wl='-Wl,'
10299       lt_prog_compiler_can_build_shared=no
10300       ;;
10301
10302     uts4*)
10303       lt_prog_compiler_pic='-pic'
10304       lt_prog_compiler_static='-Bstatic'
10305       ;;
10306
10307     *)
10308       lt_prog_compiler_can_build_shared=no
10309       ;;
10310     esac
10311   fi
10312
10313 case $host_os in
10314   # For platforms that do not support PIC, -DPIC is meaningless:
10315   *djgpp*)
10316     lt_prog_compiler_pic=
10317     ;;
10318   *)
10319     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10320     ;;
10321 esac
10322
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10324 printf %s "checking for $compiler option to produce PIC... " >&6; }
10325 if test ${lt_cv_prog_compiler_pic+y}
10326 then :
10327   printf %s "(cached) " >&6
10328 else $as_nop
10329   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10330 fi
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10332 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10333 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10334
10335 #
10336 # Check to make sure the PIC flag actually works.
10337 #
10338 if test -n "$lt_prog_compiler_pic"; then
10339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10340 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10341 if test ${lt_cv_prog_compiler_pic_works+y}
10342 then :
10343   printf %s "(cached) " >&6
10344 else $as_nop
10345   lt_cv_prog_compiler_pic_works=no
10346    ac_outfile=conftest.$ac_objext
10347    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10348    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10349    # Insert the option either (1) after the last *FLAGS variable, or
10350    # (2) before a word containing "conftest.", or (3) at the end.
10351    # Note that $ac_compile itself does not contain backslashes and begins
10352    # with a dollar sign (not a hyphen), so the echo should work correctly.
10353    # The option is referenced via a variable to avoid confusing sed.
10354    lt_compile=`echo "$ac_compile" | $SED \
10355    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10356    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10357    -e 's:$: $lt_compiler_flag:'`
10358    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10359    (eval "$lt_compile" 2>conftest.err)
10360    ac_status=$?
10361    cat conftest.err >&5
10362    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363    if (exit $ac_status) && test -s "$ac_outfile"; then
10364      # The compiler can only warn and ignore the option if not recognized
10365      # So say no if there are warnings other than the usual output.
10366      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10367      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10368      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10369        lt_cv_prog_compiler_pic_works=yes
10370      fi
10371    fi
10372    $RM conftest*
10373
10374 fi
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10376 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10377
10378 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10379     case $lt_prog_compiler_pic in
10380      "" | " "*) ;;
10381      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10382      esac
10383 else
10384     lt_prog_compiler_pic=
10385      lt_prog_compiler_can_build_shared=no
10386 fi
10387
10388 fi
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400 #
10401 # Check to make sure the static flag actually works.
10402 #
10403 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10405 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10406 if test ${lt_cv_prog_compiler_static_works+y}
10407 then :
10408   printf %s "(cached) " >&6
10409 else $as_nop
10410   lt_cv_prog_compiler_static_works=no
10411    save_LDFLAGS=$LDFLAGS
10412    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10413    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10414    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10415      # The linker can only warn and ignore the option if not recognized
10416      # So say no if there are warnings
10417      if test -s conftest.err; then
10418        # Append any errors to the config.log.
10419        cat conftest.err 1>&5
10420        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10421        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10422        if diff conftest.exp conftest.er2 >/dev/null; then
10423          lt_cv_prog_compiler_static_works=yes
10424        fi
10425      else
10426        lt_cv_prog_compiler_static_works=yes
10427      fi
10428    fi
10429    $RM -r conftest*
10430    LDFLAGS=$save_LDFLAGS
10431
10432 fi
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10434 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10435
10436 if test yes = "$lt_cv_prog_compiler_static_works"; then
10437     :
10438 else
10439     lt_prog_compiler_static=
10440 fi
10441
10442
10443
10444
10445
10446
10447
10448   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10449 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10450 if test ${lt_cv_prog_compiler_c_o+y}
10451 then :
10452   printf %s "(cached) " >&6
10453 else $as_nop
10454   lt_cv_prog_compiler_c_o=no
10455    $RM -r conftest 2>/dev/null
10456    mkdir conftest
10457    cd conftest
10458    mkdir out
10459    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10460
10461    lt_compiler_flag="-o out/conftest2.$ac_objext"
10462    # Insert the option either (1) after the last *FLAGS variable, or
10463    # (2) before a word containing "conftest.", or (3) at the end.
10464    # Note that $ac_compile itself does not contain backslashes and begins
10465    # with a dollar sign (not a hyphen), so the echo should work correctly.
10466    lt_compile=`echo "$ac_compile" | $SED \
10467    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10468    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10469    -e 's:$: $lt_compiler_flag:'`
10470    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10471    (eval "$lt_compile" 2>out/conftest.err)
10472    ac_status=$?
10473    cat out/conftest.err >&5
10474    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10476    then
10477      # The compiler can only warn and ignore the option if not recognized
10478      # So say no if there are warnings
10479      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10480      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10481      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10482        lt_cv_prog_compiler_c_o=yes
10483      fi
10484    fi
10485    chmod u+w . 2>&5
10486    $RM conftest*
10487    # SGI C++ compiler will create directory out/ii_files/ for
10488    # template instantiation
10489    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10490    $RM out/* && rmdir out
10491    cd ..
10492    $RM -r conftest
10493    $RM conftest*
10494
10495 fi
10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10497 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10498
10499
10500
10501
10502
10503
10504   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10505 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10506 if test ${lt_cv_prog_compiler_c_o+y}
10507 then :
10508   printf %s "(cached) " >&6
10509 else $as_nop
10510   lt_cv_prog_compiler_c_o=no
10511    $RM -r conftest 2>/dev/null
10512    mkdir conftest
10513    cd conftest
10514    mkdir out
10515    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10516
10517    lt_compiler_flag="-o out/conftest2.$ac_objext"
10518    # Insert the option either (1) after the last *FLAGS variable, or
10519    # (2) before a word containing "conftest.", or (3) at the end.
10520    # Note that $ac_compile itself does not contain backslashes and begins
10521    # with a dollar sign (not a hyphen), so the echo should work correctly.
10522    lt_compile=`echo "$ac_compile" | $SED \
10523    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10524    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10525    -e 's:$: $lt_compiler_flag:'`
10526    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10527    (eval "$lt_compile" 2>out/conftest.err)
10528    ac_status=$?
10529    cat out/conftest.err >&5
10530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10532    then
10533      # The compiler can only warn and ignore the option if not recognized
10534      # So say no if there are warnings
10535      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10536      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10537      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10538        lt_cv_prog_compiler_c_o=yes
10539      fi
10540    fi
10541    chmod u+w . 2>&5
10542    $RM conftest*
10543    # SGI C++ compiler will create directory out/ii_files/ for
10544    # template instantiation
10545    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10546    $RM out/* && rmdir out
10547    cd ..
10548    $RM -r conftest
10549    $RM conftest*
10550
10551 fi
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10553 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10554
10555
10556
10557
10558 hard_links=nottested
10559 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10560   # do not overwrite the value of need_locks provided by the user
10561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10562 printf %s "checking if we can lock with hard links... " >&6; }
10563   hard_links=yes
10564   $RM conftest*
10565   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10566   touch conftest.a
10567   ln conftest.a conftest.b 2>&5 || hard_links=no
10568   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10569   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10570 printf "%s\n" "$hard_links" >&6; }
10571   if test no = "$hard_links"; then
10572     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10573 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10574     need_locks=warn
10575   fi
10576 else
10577   need_locks=no
10578 fi
10579
10580
10581
10582
10583
10584
10585   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10586 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10587
10588   runpath_var=
10589   allow_undefined_flag=
10590   always_export_symbols=no
10591   archive_cmds=
10592   archive_expsym_cmds=
10593   compiler_needs_object=no
10594   enable_shared_with_static_runtimes=no
10595   export_dynamic_flag_spec=
10596   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10597   hardcode_automatic=no
10598   hardcode_direct=no
10599   hardcode_direct_absolute=no
10600   hardcode_libdir_flag_spec=
10601   hardcode_libdir_separator=
10602   hardcode_minus_L=no
10603   hardcode_shlibpath_var=unsupported
10604   inherit_rpath=no
10605   link_all_deplibs=unknown
10606   module_cmds=
10607   module_expsym_cmds=
10608   old_archive_from_new_cmds=
10609   old_archive_from_expsyms_cmds=
10610   thread_safe_flag_spec=
10611   whole_archive_flag_spec=
10612   # include_expsyms should be a list of space-separated symbols to be *always*
10613   # included in the symbol list
10614   include_expsyms=
10615   # exclude_expsyms can be an extended regexp of symbols to exclude
10616   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10617   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10618   # as well as any symbol that contains 'd'.
10619   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10620   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10621   # platforms (ab)use it in PIC code, but their linkers get confused if
10622   # the symbol is explicitly referenced.  Since portable code cannot
10623   # rely on this symbol name, it's probably fine to never include it in
10624   # preloaded symbol tables.
10625   # Exclude shared library initialization/finalization symbols.
10626   extract_expsyms_cmds=
10627
10628   case $host_os in
10629   cygwin* | mingw* | pw32* | cegcc*)
10630     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10631     # When not using gcc, we currently assume that we are using
10632     # Microsoft Visual C++ or Intel C++ Compiler.
10633     if test yes != "$GCC"; then
10634       with_gnu_ld=no
10635     fi
10636     ;;
10637   interix*)
10638     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10639     with_gnu_ld=yes
10640     ;;
10641   openbsd* | bitrig*)
10642     with_gnu_ld=no
10643     ;;
10644   esac
10645
10646   ld_shlibs=yes
10647
10648   # On some targets, GNU ld is compatible enough with the native linker
10649   # that we're better off using the native interface for both.
10650   lt_use_gnu_ld_interface=no
10651   if test yes = "$with_gnu_ld"; then
10652     case $host_os in
10653       aix*)
10654         # The AIX port of GNU ld has always aspired to compatibility
10655         # with the native linker.  However, as the warning in the GNU ld
10656         # block says, versions before 2.19.5* couldn't really create working
10657         # shared libraries, regardless of the interface used.
10658         case `$LD -v 2>&1` in
10659           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10660           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10661           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10662           *)
10663             lt_use_gnu_ld_interface=yes
10664             ;;
10665         esac
10666         ;;
10667       *)
10668         lt_use_gnu_ld_interface=yes
10669         ;;
10670     esac
10671   fi
10672
10673   if test yes = "$lt_use_gnu_ld_interface"; then
10674     # If archive_cmds runs LD, not CC, wlarc should be empty
10675     wlarc='$wl'
10676
10677     # Set some defaults for GNU ld with shared library support. These
10678     # are reset later if shared libraries are not supported. Putting them
10679     # here allows them to be overridden if necessary.
10680     runpath_var=LD_RUN_PATH
10681     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10682     export_dynamic_flag_spec='$wl--export-dynamic'
10683     # ancient GNU ld didn't support --whole-archive et. al.
10684     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10685       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10686     else
10687       whole_archive_flag_spec=
10688     fi
10689     supports_anon_versioning=no
10690     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10691       *GNU\ gold*) supports_anon_versioning=yes ;;
10692       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10693       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10694       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10695       *\ 2.11.*) ;; # other 2.11 versions
10696       *) supports_anon_versioning=yes ;;
10697     esac
10698
10699     # See if GNU ld supports shared libraries.
10700     case $host_os in
10701     aix[3-9]*)
10702       # On AIX/PPC, the GNU linker is very broken
10703       if test ia64 != "$host_cpu"; then
10704         ld_shlibs=no
10705         cat <<_LT_EOF 1>&2
10706
10707 *** Warning: the GNU linker, at least up to release 2.19, is reported
10708 *** to be unable to reliably create shared libraries on AIX.
10709 *** Therefore, libtool is disabling shared libraries support.  If you
10710 *** really care for shared libraries, you may want to install binutils
10711 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10712 *** You will then need to restart the configuration process.
10713
10714 _LT_EOF
10715       fi
10716       ;;
10717
10718     amigaos*)
10719       case $host_cpu in
10720       powerpc)
10721             # see comment about AmigaOS4 .so support
10722             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10723             archive_expsym_cmds=''
10724         ;;
10725       m68k)
10726             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)'
10727             hardcode_libdir_flag_spec='-L$libdir'
10728             hardcode_minus_L=yes
10729         ;;
10730       esac
10731       ;;
10732
10733     beos*)
10734       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10735         allow_undefined_flag=unsupported
10736         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10737         # support --undefined.  This deserves some investigation.  FIXME
10738         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10739       else
10740         ld_shlibs=no
10741       fi
10742       ;;
10743
10744     cygwin* | mingw* | pw32* | cegcc*)
10745       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10746       # as there is no search path for DLLs.
10747       hardcode_libdir_flag_spec='-L$libdir'
10748       export_dynamic_flag_spec='$wl--export-all-symbols'
10749       allow_undefined_flag=unsupported
10750       always_export_symbols=no
10751       enable_shared_with_static_runtimes=yes
10752       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'
10753       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10754
10755       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10756         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10757         # If the export-symbols file already is a .def file, use it as
10758         # is; otherwise, prepend EXPORTS...
10759         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10760           cp $export_symbols $output_objdir/$soname.def;
10761         else
10762           echo EXPORTS > $output_objdir/$soname.def;
10763           cat $export_symbols >> $output_objdir/$soname.def;
10764         fi~
10765         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10766       else
10767         ld_shlibs=no
10768       fi
10769       ;;
10770
10771     haiku*)
10772       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10773       link_all_deplibs=yes
10774       ;;
10775
10776     os2*)
10777       hardcode_libdir_flag_spec='-L$libdir'
10778       hardcode_minus_L=yes
10779       allow_undefined_flag=unsupported
10780       shrext_cmds=.dll
10781       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10782         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10783         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10784         $ECHO EXPORTS >> $output_objdir/$libname.def~
10785         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10786         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10787         emximp -o $lib $output_objdir/$libname.def'
10788       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10789         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10790         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10791         $ECHO EXPORTS >> $output_objdir/$libname.def~
10792         prefix_cmds="$SED"~
10793         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10794           prefix_cmds="$prefix_cmds -e 1d";
10795         fi~
10796         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10797         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10798         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10799         emximp -o $lib $output_objdir/$libname.def'
10800       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10801       enable_shared_with_static_runtimes=yes
10802       file_list_spec='@'
10803       ;;
10804
10805     interix[3-9]*)
10806       hardcode_direct=no
10807       hardcode_shlibpath_var=no
10808       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10809       export_dynamic_flag_spec='$wl-E'
10810       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10811       # Instead, shared libraries are loaded at an image base (0x10000000 by
10812       # default) and relocated if they conflict, which is a slow very memory
10813       # consuming and fragmenting process.  To avoid this, we pick a random,
10814       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10815       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10816       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10817       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'
10818       ;;
10819
10820     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10821       tmp_diet=no
10822       if test linux-dietlibc = "$host_os"; then
10823         case $cc_basename in
10824           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10825         esac
10826       fi
10827       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10828          && test no = "$tmp_diet"
10829       then
10830         tmp_addflag=' $pic_flag'
10831         tmp_sharedflag='-shared'
10832         case $cc_basename,$host_cpu in
10833         pgcc*)                          # Portland Group C compiler
10834           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'
10835           tmp_addflag=' $pic_flag'
10836           ;;
10837         pgf77* | pgf90* | pgf95* | pgfortran*)
10838                                         # Portland Group f77 and f90 compilers
10839           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'
10840           tmp_addflag=' $pic_flag -Mnomain' ;;
10841         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10842           tmp_addflag=' -i_dynamic' ;;
10843         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10844           tmp_addflag=' -i_dynamic -nofor_main' ;;
10845         ifc* | ifort*)                  # Intel Fortran compiler
10846           tmp_addflag=' -nofor_main' ;;
10847         lf95*)                          # Lahey Fortran 8.1
10848           whole_archive_flag_spec=
10849           tmp_sharedflag='--shared' ;;
10850         nagfor*)                        # NAGFOR 5.3
10851           tmp_sharedflag='-Wl,-shared' ;;
10852         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10853           tmp_sharedflag='-qmkshrobj'
10854           tmp_addflag= ;;
10855         nvcc*)  # Cuda Compiler Driver 2.2
10856           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'
10857           compiler_needs_object=yes
10858           ;;
10859         esac
10860         case `$CC -V 2>&1 | $SED 5q` in
10861         *Sun\ C*)                       # Sun C 5.9
10862           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'
10863           compiler_needs_object=yes
10864           tmp_sharedflag='-G' ;;
10865         *Sun\ F*)                       # Sun Fortran 8.3
10866           tmp_sharedflag='-G' ;;
10867         esac
10868         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10869
10870         if test yes = "$supports_anon_versioning"; then
10871           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10872             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10873             echo "local: *; };" >> $output_objdir/$libname.ver~
10874             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10875         fi
10876
10877         case $cc_basename in
10878         tcc*)
10879           export_dynamic_flag_spec='-rdynamic'
10880           ;;
10881         xlf* | bgf* | bgxlf* | mpixlf*)
10882           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10883           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10884           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10885           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10886           if test yes = "$supports_anon_versioning"; then
10887             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10888               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10889               echo "local: *; };" >> $output_objdir/$libname.ver~
10890               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10891           fi
10892           ;;
10893         esac
10894       else
10895         ld_shlibs=no
10896       fi
10897       ;;
10898
10899     netbsd*)
10900       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10901         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10902         wlarc=
10903       else
10904         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10905         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10906       fi
10907       ;;
10908
10909     solaris*)
10910       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10911         ld_shlibs=no
10912         cat <<_LT_EOF 1>&2
10913
10914 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10915 *** create shared libraries on Solaris systems.  Therefore, libtool
10916 *** is disabling shared libraries support.  We urge you to upgrade GNU
10917 *** binutils to release 2.9.1 or newer.  Another option is to modify
10918 *** your PATH or compiler configuration so that the native linker is
10919 *** used, and then restart.
10920
10921 _LT_EOF
10922       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10923         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10924         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10925       else
10926         ld_shlibs=no
10927       fi
10928       ;;
10929
10930     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10931       case `$LD -v 2>&1` in
10932         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10933         ld_shlibs=no
10934         cat <<_LT_EOF 1>&2
10935
10936 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10937 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10938 *** is disabling shared libraries support.  We urge you to upgrade GNU
10939 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10940 *** your PATH or compiler configuration so that the native linker is
10941 *** used, and then restart.
10942
10943 _LT_EOF
10944         ;;
10945         *)
10946           # For security reasons, it is highly recommended that you always
10947           # use absolute paths for naming shared libraries, and exclude the
10948           # DT_RUNPATH tag from executables and libraries.  But doing so
10949           # requires that you compile everything twice, which is a pain.
10950           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10951             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10952             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10953             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10954           else
10955             ld_shlibs=no
10956           fi
10957         ;;
10958       esac
10959       ;;
10960
10961     sunos4*)
10962       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10963       wlarc=
10964       hardcode_direct=yes
10965       hardcode_shlibpath_var=no
10966       ;;
10967
10968     *)
10969       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10970         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10971         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10972       else
10973         ld_shlibs=no
10974       fi
10975       ;;
10976     esac
10977
10978     if test no = "$ld_shlibs"; then
10979       runpath_var=
10980       hardcode_libdir_flag_spec=
10981       export_dynamic_flag_spec=
10982       whole_archive_flag_spec=
10983     fi
10984   else
10985     # PORTME fill in a description of your system's linker (not GNU ld)
10986     case $host_os in
10987     aix3*)
10988       allow_undefined_flag=unsupported
10989       always_export_symbols=yes
10990       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'
10991       # Note: this linker hardcodes the directories in LIBPATH if there
10992       # are no directories specified by -L.
10993       hardcode_minus_L=yes
10994       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10995         # Neither direct hardcoding nor static linking is supported with a
10996         # broken collect2.
10997         hardcode_direct=unsupported
10998       fi
10999       ;;
11000
11001     aix[4-9]*)
11002       if test ia64 = "$host_cpu"; then
11003         # On IA64, the linker does run time linking by default, so we don't
11004         # have to do anything special.
11005         aix_use_runtimelinking=no
11006         exp_sym_flag='-Bexport'
11007         no_entry_flag=
11008       else
11009         # If we're using GNU nm, then we don't want the "-C" option.
11010         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11011         # Without the "-l" option, or with the "-B" option, AIX nm treats
11012         # weak defined symbols like other global defined symbols, whereas
11013         # GNU nm marks them as "W".
11014         # While the 'weak' keyword is ignored in the Export File, we need
11015         # it in the Import File for the 'aix-soname' feature, so we have
11016         # to replace the "-B" option with "-P" for AIX nm.
11017         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11018           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11019         else
11020           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11021         fi
11022         aix_use_runtimelinking=no
11023
11024         # Test if we are trying to use run time linking or normal
11025         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11026         # have runtime linking enabled, and use it for executables.
11027         # For shared libraries, we enable/disable runtime linking
11028         # depending on the kind of the shared library created -
11029         # when "with_aix_soname,aix_use_runtimelinking" is:
11030         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11031         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11032         #            lib.a           static archive
11033         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11034         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11035         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11036         #            lib.a(lib.so.V) shared, rtl:no
11037         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11038         #            lib.a           static archive
11039         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11040           for ld_flag in $LDFLAGS; do
11041           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11042             aix_use_runtimelinking=yes
11043             break
11044           fi
11045           done
11046           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11047             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11048             # so we don't have lib.a shared libs to link our executables.
11049             # We have to force runtime linking in this case.
11050             aix_use_runtimelinking=yes
11051             LDFLAGS="$LDFLAGS -Wl,-brtl"
11052           fi
11053           ;;
11054         esac
11055
11056         exp_sym_flag='-bexport'
11057         no_entry_flag='-bnoentry'
11058       fi
11059
11060       # When large executables or shared objects are built, AIX ld can
11061       # have problems creating the table of contents.  If linking a library
11062       # or program results in "error TOC overflow" add -mminimal-toc to
11063       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11064       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11065
11066       archive_cmds=''
11067       hardcode_direct=yes
11068       hardcode_direct_absolute=yes
11069       hardcode_libdir_separator=':'
11070       link_all_deplibs=yes
11071       file_list_spec='$wl-f,'
11072       case $with_aix_soname,$aix_use_runtimelinking in
11073       aix,*) ;; # traditional, no import file
11074       svr4,* | *,yes) # use import file
11075         # The Import File defines what to hardcode.
11076         hardcode_direct=no
11077         hardcode_direct_absolute=no
11078         ;;
11079       esac
11080
11081       if test yes = "$GCC"; then
11082         case $host_os in aix4.[012]|aix4.[012].*)
11083         # We only want to do this on AIX 4.2 and lower, the check
11084         # below for broken collect2 doesn't work under 4.3+
11085           collect2name=`$CC -print-prog-name=collect2`
11086           if test -f "$collect2name" &&
11087            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11088           then
11089           # We have reworked collect2
11090           :
11091           else
11092           # We have old collect2
11093           hardcode_direct=unsupported
11094           # It fails to find uninstalled libraries when the uninstalled
11095           # path is not listed in the libpath.  Setting hardcode_minus_L
11096           # to unsupported forces relinking
11097           hardcode_minus_L=yes
11098           hardcode_libdir_flag_spec='-L$libdir'
11099           hardcode_libdir_separator=
11100           fi
11101           ;;
11102         esac
11103         shared_flag='-shared'
11104         if test yes = "$aix_use_runtimelinking"; then
11105           shared_flag="$shared_flag "'$wl-G'
11106         fi
11107         # Need to ensure runtime linking is disabled for the traditional
11108         # shared library, or the linker may eventually find shared libraries
11109         # /with/ Import File - we do not want to mix them.
11110         shared_flag_aix='-shared'
11111         shared_flag_svr4='-shared $wl-G'
11112       else
11113         # not using gcc
11114         if test ia64 = "$host_cpu"; then
11115         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11116         # chokes on -Wl,-G. The following line is correct:
11117           shared_flag='-G'
11118         else
11119           if test yes = "$aix_use_runtimelinking"; then
11120             shared_flag='$wl-G'
11121           else
11122             shared_flag='$wl-bM:SRE'
11123           fi
11124           shared_flag_aix='$wl-bM:SRE'
11125           shared_flag_svr4='$wl-G'
11126         fi
11127       fi
11128
11129       export_dynamic_flag_spec='$wl-bexpall'
11130       # It seems that -bexpall does not export symbols beginning with
11131       # underscore (_), so it is better to generate a list of symbols to export.
11132       always_export_symbols=yes
11133       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11134         # Warning - without using the other runtime loading flags (-brtl),
11135         # -berok will link without error, but may produce a broken library.
11136         allow_undefined_flag='-berok'
11137         # Determine the default libpath from the value encoded in an
11138         # empty executable.
11139         if test set = "${lt_cv_aix_libpath+set}"; then
11140   aix_libpath=$lt_cv_aix_libpath
11141 else
11142   if test ${lt_cv_aix_libpath_+y}
11143 then :
11144   printf %s "(cached) " >&6
11145 else $as_nop
11146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h.  */
11148
11149 int
11150 main (void)
11151 {
11152
11153   ;
11154   return 0;
11155 }
11156 _ACEOF
11157 if ac_fn_c_try_link "$LINENO"
11158 then :
11159
11160   lt_aix_libpath_sed='
11161       /Import File Strings/,/^$/ {
11162           /^0/ {
11163               s/^0  *\([^ ]*\) *$/\1/
11164               p
11165           }
11166       }'
11167   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11168   # Check for a 64-bit object if we didn't find anything.
11169   if test -z "$lt_cv_aix_libpath_"; then
11170     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11171   fi
11172 fi
11173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11174     conftest$ac_exeext conftest.$ac_ext
11175   if test -z "$lt_cv_aix_libpath_"; then
11176     lt_cv_aix_libpath_=/usr/lib:/lib
11177   fi
11178
11179 fi
11180
11181   aix_libpath=$lt_cv_aix_libpath_
11182 fi
11183
11184         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11185         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11186       else
11187         if test ia64 = "$host_cpu"; then
11188           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11189           allow_undefined_flag="-z nodefs"
11190           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"
11191         else
11192          # Determine the default libpath from the value encoded in an
11193          # empty executable.
11194          if test set = "${lt_cv_aix_libpath+set}"; then
11195   aix_libpath=$lt_cv_aix_libpath
11196 else
11197   if test ${lt_cv_aix_libpath_+y}
11198 then :
11199   printf %s "(cached) " >&6
11200 else $as_nop
11201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h.  */
11203
11204 int
11205 main (void)
11206 {
11207
11208   ;
11209   return 0;
11210 }
11211 _ACEOF
11212 if ac_fn_c_try_link "$LINENO"
11213 then :
11214
11215   lt_aix_libpath_sed='
11216       /Import File Strings/,/^$/ {
11217           /^0/ {
11218               s/^0  *\([^ ]*\) *$/\1/
11219               p
11220           }
11221       }'
11222   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11223   # Check for a 64-bit object if we didn't find anything.
11224   if test -z "$lt_cv_aix_libpath_"; then
11225     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11226   fi
11227 fi
11228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11229     conftest$ac_exeext conftest.$ac_ext
11230   if test -z "$lt_cv_aix_libpath_"; then
11231     lt_cv_aix_libpath_=/usr/lib:/lib
11232   fi
11233
11234 fi
11235
11236   aix_libpath=$lt_cv_aix_libpath_
11237 fi
11238
11239          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11240           # Warning - without using the other run time loading flags,
11241           # -berok will link without error, but may produce a broken library.
11242           no_undefined_flag=' $wl-bernotok'
11243           allow_undefined_flag=' $wl-berok'
11244           if test yes = "$with_gnu_ld"; then
11245             # We only use this code for GNU lds that support --whole-archive.
11246             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11247           else
11248             # Exported symbols can be pulled into shared objects from archives
11249             whole_archive_flag_spec='$convenience'
11250           fi
11251           archive_cmds_need_lc=yes
11252           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11253           # -brtl affects multiple linker settings, -berok does not and is overridden later
11254           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11255           if test svr4 != "$with_aix_soname"; then
11256             # This is similar to how AIX traditionally builds its shared libraries.
11257             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11258           fi
11259           if test aix != "$with_aix_soname"; then
11260             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11261           else
11262             # used by -dlpreopen to get the symbols
11263             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11264           fi
11265           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11266         fi
11267       fi
11268       ;;
11269
11270     amigaos*)
11271       case $host_cpu in
11272       powerpc)
11273             # see comment about AmigaOS4 .so support
11274             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11275             archive_expsym_cmds=''
11276         ;;
11277       m68k)
11278             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)'
11279             hardcode_libdir_flag_spec='-L$libdir'
11280             hardcode_minus_L=yes
11281         ;;
11282       esac
11283       ;;
11284
11285     bsdi[45]*)
11286       export_dynamic_flag_spec=-rdynamic
11287       ;;
11288
11289     cygwin* | mingw* | pw32* | cegcc*)
11290       # When not using gcc, we currently assume that we are using
11291       # Microsoft Visual C++ or Intel C++ Compiler.
11292       # hardcode_libdir_flag_spec is actually meaningless, as there is
11293       # no search path for DLLs.
11294       case $cc_basename in
11295       cl* | icl*)
11296         # Native MSVC or ICC
11297         hardcode_libdir_flag_spec=' '
11298         allow_undefined_flag=unsupported
11299         always_export_symbols=yes
11300         file_list_spec='@'
11301         # Tell ltmain to make .lib files, not .a files.
11302         libext=lib
11303         # Tell ltmain to make .dll files, not .so files.
11304         shrext_cmds=.dll
11305         # FIXME: Setting linknames here is a bad hack.
11306         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11307         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11308             cp "$export_symbols" "$output_objdir/$soname.def";
11309             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11310           else
11311             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11312           fi~
11313           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11314           linknames='
11315         # The linker will not automatically build a static lib if we build a DLL.
11316         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11317         enable_shared_with_static_runtimes=yes
11318         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11319         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11320         # Don't use ranlib
11321         old_postinstall_cmds='chmod 644 $oldlib'
11322         postlink_cmds='lt_outputfile="@OUTPUT@"~
11323           lt_tool_outputfile="@TOOL_OUTPUT@"~
11324           case $lt_outputfile in
11325             *.exe|*.EXE) ;;
11326             *)
11327               lt_outputfile=$lt_outputfile.exe
11328               lt_tool_outputfile=$lt_tool_outputfile.exe
11329               ;;
11330           esac~
11331           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11332             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11333             $RM "$lt_outputfile.manifest";
11334           fi'
11335         ;;
11336       *)
11337         # Assume MSVC and ICC wrapper
11338         hardcode_libdir_flag_spec=' '
11339         allow_undefined_flag=unsupported
11340         # Tell ltmain to make .lib files, not .a files.
11341         libext=lib
11342         # Tell ltmain to make .dll files, not .so files.
11343         shrext_cmds=.dll
11344         # FIXME: Setting linknames here is a bad hack.
11345         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11346         # The linker will automatically build a .lib file if we build a DLL.
11347         old_archive_from_new_cmds='true'
11348         # FIXME: Should let the user specify the lib program.
11349         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11350         enable_shared_with_static_runtimes=yes
11351         ;;
11352       esac
11353       ;;
11354
11355     darwin* | rhapsody*)
11356
11357
11358   archive_cmds_need_lc=no
11359   hardcode_direct=no
11360   hardcode_automatic=yes
11361   hardcode_shlibpath_var=unsupported
11362   if test yes = "$lt_cv_ld_force_load"; then
11363     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\"`'
11364
11365   else
11366     whole_archive_flag_spec=''
11367   fi
11368   link_all_deplibs=yes
11369   allow_undefined_flag=$_lt_dar_allow_undefined
11370   case $cc_basename in
11371      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11372      *) _lt_dar_can_shared=$GCC ;;
11373   esac
11374   if test yes = "$_lt_dar_can_shared"; then
11375     output_verbose_link_cmd=func_echo_all
11376     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11377     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11378     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"
11379     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"
11380
11381   else
11382   ld_shlibs=no
11383   fi
11384
11385       ;;
11386
11387     dgux*)
11388       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11389       hardcode_libdir_flag_spec='-L$libdir'
11390       hardcode_shlibpath_var=no
11391       ;;
11392
11393     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11394     # support.  Future versions do this automatically, but an explicit c++rt0.o
11395     # does not break anything, and helps significantly (at the cost of a little
11396     # extra space).
11397     freebsd2.2*)
11398       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11399       hardcode_libdir_flag_spec='-R$libdir'
11400       hardcode_direct=yes
11401       hardcode_shlibpath_var=no
11402       ;;
11403
11404     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11405     freebsd2.*)
11406       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11407       hardcode_direct=yes
11408       hardcode_minus_L=yes
11409       hardcode_shlibpath_var=no
11410       ;;
11411
11412     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11413     freebsd* | dragonfly* | midnightbsd*)
11414       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11415       hardcode_libdir_flag_spec='-R$libdir'
11416       hardcode_direct=yes
11417       hardcode_shlibpath_var=no
11418       ;;
11419
11420     hpux9*)
11421       if test yes = "$GCC"; then
11422         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11423       else
11424         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11425       fi
11426       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11427       hardcode_libdir_separator=:
11428       hardcode_direct=yes
11429
11430       # hardcode_minus_L: Not really in the search PATH,
11431       # but as the default location of the library.
11432       hardcode_minus_L=yes
11433       export_dynamic_flag_spec='$wl-E'
11434       ;;
11435
11436     hpux10*)
11437       if test yes,no = "$GCC,$with_gnu_ld"; then
11438         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11439       else
11440         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11441       fi
11442       if test no = "$with_gnu_ld"; then
11443         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11444         hardcode_libdir_separator=:
11445         hardcode_direct=yes
11446         hardcode_direct_absolute=yes
11447         export_dynamic_flag_spec='$wl-E'
11448         # hardcode_minus_L: Not really in the search PATH,
11449         # but as the default location of the library.
11450         hardcode_minus_L=yes
11451       fi
11452       ;;
11453
11454     hpux11*)
11455       if test yes,no = "$GCC,$with_gnu_ld"; then
11456         case $host_cpu in
11457         hppa*64*)
11458           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11459           ;;
11460         ia64*)
11461           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11462           ;;
11463         *)
11464           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11465           ;;
11466         esac
11467       else
11468         case $host_cpu in
11469         hppa*64*)
11470           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11471           ;;
11472         ia64*)
11473           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11474           ;;
11475         *)
11476
11477           # Older versions of the 11.00 compiler do not understand -b yet
11478           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11479           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11480 printf %s "checking if $CC understands -b... " >&6; }
11481 if test ${lt_cv_prog_compiler__b+y}
11482 then :
11483   printf %s "(cached) " >&6
11484 else $as_nop
11485   lt_cv_prog_compiler__b=no
11486    save_LDFLAGS=$LDFLAGS
11487    LDFLAGS="$LDFLAGS -b"
11488    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11489    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11490      # The linker can only warn and ignore the option if not recognized
11491      # So say no if there are warnings
11492      if test -s conftest.err; then
11493        # Append any errors to the config.log.
11494        cat conftest.err 1>&5
11495        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11496        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11497        if diff conftest.exp conftest.er2 >/dev/null; then
11498          lt_cv_prog_compiler__b=yes
11499        fi
11500      else
11501        lt_cv_prog_compiler__b=yes
11502      fi
11503    fi
11504    $RM -r conftest*
11505    LDFLAGS=$save_LDFLAGS
11506
11507 fi
11508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11509 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11510
11511 if test yes = "$lt_cv_prog_compiler__b"; then
11512     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11513 else
11514     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11515 fi
11516
11517           ;;
11518         esac
11519       fi
11520       if test no = "$with_gnu_ld"; then
11521         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11522         hardcode_libdir_separator=:
11523
11524         case $host_cpu in
11525         hppa*64*|ia64*)
11526           hardcode_direct=no
11527           hardcode_shlibpath_var=no
11528           ;;
11529         *)
11530           hardcode_direct=yes
11531           hardcode_direct_absolute=yes
11532           export_dynamic_flag_spec='$wl-E'
11533
11534           # hardcode_minus_L: Not really in the search PATH,
11535           # but as the default location of the library.
11536           hardcode_minus_L=yes
11537           ;;
11538         esac
11539       fi
11540       ;;
11541
11542     irix5* | irix6* | nonstopux*)
11543       if test yes = "$GCC"; then
11544         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'
11545         # Try to use the -exported_symbol ld option, if it does not
11546         # work, assume that -exports_file does not work either and
11547         # implicitly export all symbols.
11548         # This should be the same for all languages, so no per-tag cache variable.
11549         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11550 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11551 if test ${lt_cv_irix_exported_symbol+y}
11552 then :
11553   printf %s "(cached) " >&6
11554 else $as_nop
11555   save_LDFLAGS=$LDFLAGS
11556            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11557            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h.  */
11559 int foo (void) { return 0; }
11560 _ACEOF
11561 if ac_fn_c_try_link "$LINENO"
11562 then :
11563   lt_cv_irix_exported_symbol=yes
11564 else $as_nop
11565   lt_cv_irix_exported_symbol=no
11566 fi
11567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11568     conftest$ac_exeext conftest.$ac_ext
11569            LDFLAGS=$save_LDFLAGS
11570 fi
11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11572 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11573         if test yes = "$lt_cv_irix_exported_symbol"; then
11574           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'
11575         fi
11576       else
11577         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'
11578         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'
11579       fi
11580       archive_cmds_need_lc='no'
11581       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11582       hardcode_libdir_separator=:
11583       inherit_rpath=yes
11584       link_all_deplibs=yes
11585       ;;
11586
11587     linux*)
11588       case $cc_basename in
11589       tcc*)
11590         # Fabrice Bellard et al's Tiny C Compiler
11591         ld_shlibs=yes
11592         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11593         ;;
11594       esac
11595       ;;
11596
11597     netbsd*)
11598       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11599         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11600       else
11601         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11602       fi
11603       hardcode_libdir_flag_spec='-R$libdir'
11604       hardcode_direct=yes
11605       hardcode_shlibpath_var=no
11606       ;;
11607
11608     newsos6)
11609       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11610       hardcode_direct=yes
11611       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11612       hardcode_libdir_separator=:
11613       hardcode_shlibpath_var=no
11614       ;;
11615
11616     *nto* | *qnx*)
11617       ;;
11618
11619     openbsd* | bitrig*)
11620       if test -f /usr/libexec/ld.so; then
11621         hardcode_direct=yes
11622         hardcode_shlibpath_var=no
11623         hardcode_direct_absolute=yes
11624         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11625           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11626           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11627           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11628           export_dynamic_flag_spec='$wl-E'
11629         else
11630           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11631           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11632         fi
11633       else
11634         ld_shlibs=no
11635       fi
11636       ;;
11637
11638     os2*)
11639       hardcode_libdir_flag_spec='-L$libdir'
11640       hardcode_minus_L=yes
11641       allow_undefined_flag=unsupported
11642       shrext_cmds=.dll
11643       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11644         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11645         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11646         $ECHO EXPORTS >> $output_objdir/$libname.def~
11647         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11648         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11649         emximp -o $lib $output_objdir/$libname.def'
11650       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11651         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11652         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11653         $ECHO EXPORTS >> $output_objdir/$libname.def~
11654         prefix_cmds="$SED"~
11655         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11656           prefix_cmds="$prefix_cmds -e 1d";
11657         fi~
11658         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11659         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11660         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11661         emximp -o $lib $output_objdir/$libname.def'
11662       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11663       enable_shared_with_static_runtimes=yes
11664       file_list_spec='@'
11665       ;;
11666
11667     osf3*)
11668       if test yes = "$GCC"; then
11669         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11670         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'
11671       else
11672         allow_undefined_flag=' -expect_unresolved \*'
11673         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'
11674       fi
11675       archive_cmds_need_lc='no'
11676       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11677       hardcode_libdir_separator=:
11678       ;;
11679
11680     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11681       if test yes = "$GCC"; then
11682         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11683         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'
11684         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11685       else
11686         allow_undefined_flag=' -expect_unresolved \*'
11687         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'
11688         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~
11689           $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'
11690
11691         # Both c and cxx compiler support -rpath directly
11692         hardcode_libdir_flag_spec='-rpath $libdir'
11693       fi
11694       archive_cmds_need_lc='no'
11695       hardcode_libdir_separator=:
11696       ;;
11697
11698     solaris*)
11699       no_undefined_flag=' -z defs'
11700       if test yes = "$GCC"; then
11701         wlarc='$wl'
11702         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11703         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11704           $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'
11705       else
11706         case `$CC -V 2>&1` in
11707         *"Compilers 5.0"*)
11708           wlarc=''
11709           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11710           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11711             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11712           ;;
11713         *)
11714           wlarc='$wl'
11715           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11716           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11717             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11718           ;;
11719         esac
11720       fi
11721       hardcode_libdir_flag_spec='-R$libdir'
11722       hardcode_shlibpath_var=no
11723       case $host_os in
11724       solaris2.[0-5] | solaris2.[0-5].*) ;;
11725       *)
11726         # The compiler driver will combine and reorder linker options,
11727         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11728         # but is careful enough not to reorder.
11729         # Supported since Solaris 2.6 (maybe 2.5.1?)
11730         if test yes = "$GCC"; then
11731           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11732         else
11733           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11734         fi
11735         ;;
11736       esac
11737       link_all_deplibs=yes
11738       ;;
11739
11740     sunos4*)
11741       if test sequent = "$host_vendor"; then
11742         # Use $CC to link under sequent, because it throws in some extra .o
11743         # files that make .init and .fini sections work.
11744         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11745       else
11746         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11747       fi
11748       hardcode_libdir_flag_spec='-L$libdir'
11749       hardcode_direct=yes
11750       hardcode_minus_L=yes
11751       hardcode_shlibpath_var=no
11752       ;;
11753
11754     sysv4)
11755       case $host_vendor in
11756         sni)
11757           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11758           hardcode_direct=yes # is this really true???
11759         ;;
11760         siemens)
11761           ## LD is ld it makes a PLAMLIB
11762           ## CC just makes a GrossModule.
11763           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11764           reload_cmds='$CC -r -o $output$reload_objs'
11765           hardcode_direct=no
11766         ;;
11767         motorola)
11768           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11769           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11770         ;;
11771       esac
11772       runpath_var='LD_RUN_PATH'
11773       hardcode_shlibpath_var=no
11774       ;;
11775
11776     sysv4.3*)
11777       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11778       hardcode_shlibpath_var=no
11779       export_dynamic_flag_spec='-Bexport'
11780       ;;
11781
11782     sysv4*MP*)
11783       if test -d /usr/nec; then
11784         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11785         hardcode_shlibpath_var=no
11786         runpath_var=LD_RUN_PATH
11787         hardcode_runpath_var=yes
11788         ld_shlibs=yes
11789       fi
11790       ;;
11791
11792     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11793       no_undefined_flag='$wl-z,text'
11794       archive_cmds_need_lc=no
11795       hardcode_shlibpath_var=no
11796       runpath_var='LD_RUN_PATH'
11797
11798       if test yes = "$GCC"; then
11799         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11800         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11801       else
11802         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11803         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11804       fi
11805       ;;
11806
11807     sysv5* | sco3.2v5* | sco5v6*)
11808       # Note: We CANNOT use -z defs as we might desire, because we do not
11809       # link with -lc, and that would cause any symbols used from libc to
11810       # always be unresolved, which means just about no library would
11811       # ever link correctly.  If we're not using GNU ld we use -z text
11812       # though, which does catch some bad symbols but isn't as heavy-handed
11813       # as -z defs.
11814       no_undefined_flag='$wl-z,text'
11815       allow_undefined_flag='$wl-z,nodefs'
11816       archive_cmds_need_lc=no
11817       hardcode_shlibpath_var=no
11818       hardcode_libdir_flag_spec='$wl-R,$libdir'
11819       hardcode_libdir_separator=':'
11820       link_all_deplibs=yes
11821       export_dynamic_flag_spec='$wl-Bexport'
11822       runpath_var='LD_RUN_PATH'
11823
11824       if test yes = "$GCC"; then
11825         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11826         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11827       else
11828         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11829         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11830       fi
11831       ;;
11832
11833     uts4*)
11834       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11835       hardcode_libdir_flag_spec='-L$libdir'
11836       hardcode_shlibpath_var=no
11837       ;;
11838
11839     *)
11840       ld_shlibs=no
11841       ;;
11842     esac
11843
11844     if test sni = "$host_vendor"; then
11845       case $host in
11846       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11847         export_dynamic_flag_spec='$wl-Blargedynsym'
11848         ;;
11849       esac
11850     fi
11851   fi
11852
11853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11854 printf "%s\n" "$ld_shlibs" >&6; }
11855 test no = "$ld_shlibs" && can_build_shared=no
11856
11857 with_gnu_ld=$with_gnu_ld
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873 #
11874 # Do we need to explicitly link libc?
11875 #
11876 case "x$archive_cmds_need_lc" in
11877 x|xyes)
11878   # Assume -lc should be added
11879   archive_cmds_need_lc=yes
11880
11881   if test yes,yes = "$GCC,$enable_shared"; then
11882     case $archive_cmds in
11883     *'~'*)
11884       # FIXME: we may have to deal with multi-command sequences.
11885       ;;
11886     '$CC '*)
11887       # Test whether the compiler implicitly links with -lc since on some
11888       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11889       # to ld, don't add -lc before -lgcc.
11890       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11891 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11892 if test ${lt_cv_archive_cmds_need_lc+y}
11893 then :
11894   printf %s "(cached) " >&6
11895 else $as_nop
11896   $RM conftest*
11897         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11898
11899         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11900   (eval $ac_compile) 2>&5
11901   ac_status=$?
11902   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11903   test $ac_status = 0; } 2>conftest.err; then
11904           soname=conftest
11905           lib=conftest
11906           libobjs=conftest.$ac_objext
11907           deplibs=
11908           wl=$lt_prog_compiler_wl
11909           pic_flag=$lt_prog_compiler_pic
11910           compiler_flags=-v
11911           linker_flags=-v
11912           verstring=
11913           output_objdir=.
11914           libname=conftest
11915           lt_save_allow_undefined_flag=$allow_undefined_flag
11916           allow_undefined_flag=
11917           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11918   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11919   ac_status=$?
11920   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11921   test $ac_status = 0; }
11922           then
11923             lt_cv_archive_cmds_need_lc=no
11924           else
11925             lt_cv_archive_cmds_need_lc=yes
11926           fi
11927           allow_undefined_flag=$lt_save_allow_undefined_flag
11928         else
11929           cat conftest.err 1>&5
11930         fi
11931         $RM conftest*
11932
11933 fi
11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11935 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11936       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11937       ;;
11938     esac
11939   fi
11940   ;;
11941 esac
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12095 printf %s "checking dynamic linker characteristics... " >&6; }
12096
12097 if test yes = "$GCC"; then
12098   case $host_os in
12099     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12100     *) lt_awk_arg='/^libraries:/' ;;
12101   esac
12102   case $host_os in
12103     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12104     *) lt_sed_strip_eq='s|=/|/|g' ;;
12105   esac
12106   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12107   case $lt_search_path_spec in
12108   *\;*)
12109     # if the path contains ";" then we assume it to be the separator
12110     # otherwise default to the standard path separator (i.e. ":") - it is
12111     # assumed that no part of a normal pathname contains ";" but that should
12112     # okay in the real world where ";" in dirpaths is itself problematic.
12113     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12114     ;;
12115   *)
12116     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12117     ;;
12118   esac
12119   # Ok, now we have the path, separated by spaces, we can step through it
12120   # and add multilib dir if necessary...
12121   lt_tmp_lt_search_path_spec=
12122   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12123   # ...but if some path component already ends with the multilib dir we assume
12124   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12125   case "$lt_multi_os_dir; $lt_search_path_spec " in
12126   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12127     lt_multi_os_dir=
12128     ;;
12129   esac
12130   for lt_sys_path in $lt_search_path_spec; do
12131     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12132       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12133     elif test -n "$lt_multi_os_dir"; then
12134       test -d "$lt_sys_path" && \
12135         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12136     fi
12137   done
12138   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12139 BEGIN {RS = " "; FS = "/|\n";} {
12140   lt_foo = "";
12141   lt_count = 0;
12142   for (lt_i = NF; lt_i > 0; lt_i--) {
12143     if ($lt_i != "" && $lt_i != ".") {
12144       if ($lt_i == "..") {
12145         lt_count++;
12146       } else {
12147         if (lt_count == 0) {
12148           lt_foo = "/" $lt_i lt_foo;
12149         } else {
12150           lt_count--;
12151         }
12152       }
12153     }
12154   }
12155   if (lt_foo != "") { lt_freq[lt_foo]++; }
12156   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12157 }'`
12158   # AWK program above erroneously prepends '/' to C:/dos/paths
12159   # for these hosts.
12160   case $host_os in
12161     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12162       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12163   esac
12164   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12165 else
12166   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12167 fi
12168 library_names_spec=
12169 libname_spec='lib$name'
12170 soname_spec=
12171 shrext_cmds=.so
12172 postinstall_cmds=
12173 postuninstall_cmds=
12174 finish_cmds=
12175 finish_eval=
12176 shlibpath_var=
12177 shlibpath_overrides_runpath=unknown
12178 version_type=none
12179 dynamic_linker="$host_os ld.so"
12180 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12181 need_lib_prefix=unknown
12182 hardcode_into_libs=no
12183
12184 # when you set need_version to no, make sure it does not cause -set_version
12185 # flags to be left without arguments
12186 need_version=unknown
12187
12188
12189
12190 case $host_os in
12191 aix3*)
12192   version_type=linux # correct to gnu/linux during the next big refactor
12193   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12194   shlibpath_var=LIBPATH
12195
12196   # AIX 3 has no versioning support, so we append a major version to the name.
12197   soname_spec='$libname$release$shared_ext$major'
12198   ;;
12199
12200 aix[4-9]*)
12201   version_type=linux # correct to gnu/linux during the next big refactor
12202   need_lib_prefix=no
12203   need_version=no
12204   hardcode_into_libs=yes
12205   if test ia64 = "$host_cpu"; then
12206     # AIX 5 supports IA64
12207     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12208     shlibpath_var=LD_LIBRARY_PATH
12209   else
12210     # With GCC up to 2.95.x, collect2 would create an import file
12211     # for dependence libraries.  The import file would start with
12212     # the line '#! .'.  This would cause the generated library to
12213     # depend on '.', always an invalid library.  This was fixed in
12214     # development snapshots of GCC prior to 3.0.
12215     case $host_os in
12216       aix4 | aix4.[01] | aix4.[01].*)
12217       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12218            echo ' yes '
12219            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12220         :
12221       else
12222         can_build_shared=no
12223       fi
12224       ;;
12225     esac
12226     # Using Import Files as archive members, it is possible to support
12227     # filename-based versioning of shared library archives on AIX. While
12228     # this would work for both with and without runtime linking, it will
12229     # prevent static linking of such archives. So we do filename-based
12230     # shared library versioning with .so extension only, which is used
12231     # when both runtime linking and shared linking is enabled.
12232     # Unfortunately, runtime linking may impact performance, so we do
12233     # not want this to be the default eventually. Also, we use the
12234     # versioned .so libs for executables only if there is the -brtl
12235     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12236     # To allow for filename-based versioning support, we need to create
12237     # libNAME.so.V as an archive file, containing:
12238     # *) an Import File, referring to the versioned filename of the
12239     #    archive as well as the shared archive member, telling the
12240     #    bitwidth (32 or 64) of that shared object, and providing the
12241     #    list of exported symbols of that shared object, eventually
12242     #    decorated with the 'weak' keyword
12243     # *) the shared object with the F_LOADONLY flag set, to really avoid
12244     #    it being seen by the linker.
12245     # At run time we better use the real file rather than another symlink,
12246     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12247
12248     case $with_aix_soname,$aix_use_runtimelinking in
12249     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12250     # soname into executable. Probably we can add versioning support to
12251     # collect2, so additional links can be useful in future.
12252     aix,yes) # traditional libtool
12253       dynamic_linker='AIX unversionable lib.so'
12254       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12255       # instead of lib<name>.a to let people know that these are not
12256       # typical AIX shared libraries.
12257       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12258       ;;
12259     aix,no) # traditional AIX only
12260       dynamic_linker='AIX lib.a(lib.so.V)'
12261       # We preserve .a as extension for shared libraries through AIX4.2
12262       # and later when we are not doing run time linking.
12263       library_names_spec='$libname$release.a $libname.a'
12264       soname_spec='$libname$release$shared_ext$major'
12265       ;;
12266     svr4,*) # full svr4 only
12267       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12268       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12269       # We do not specify a path in Import Files, so LIBPATH fires.
12270       shlibpath_overrides_runpath=yes
12271       ;;
12272     *,yes) # both, prefer svr4
12273       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12274       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12275       # unpreferred sharedlib libNAME.a needs extra handling
12276       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12277       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12278       # We do not specify a path in Import Files, so LIBPATH fires.
12279       shlibpath_overrides_runpath=yes
12280       ;;
12281     *,no) # both, prefer aix
12282       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12283       library_names_spec='$libname$release.a $libname.a'
12284       soname_spec='$libname$release$shared_ext$major'
12285       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12286       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12287       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12288       ;;
12289     esac
12290     shlibpath_var=LIBPATH
12291   fi
12292   ;;
12293
12294 amigaos*)
12295   case $host_cpu in
12296   powerpc)
12297     # Since July 2007 AmigaOS4 officially supports .so libraries.
12298     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12299     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12300     ;;
12301   m68k)
12302     library_names_spec='$libname.ixlibrary $libname.a'
12303     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12304     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12305     ;;
12306   esac
12307   ;;
12308
12309 beos*)
12310   library_names_spec='$libname$shared_ext'
12311   dynamic_linker="$host_os ld.so"
12312   shlibpath_var=LIBRARY_PATH
12313   ;;
12314
12315 bsdi[45]*)
12316   version_type=linux # correct to gnu/linux during the next big refactor
12317   need_version=no
12318   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12319   soname_spec='$libname$release$shared_ext$major'
12320   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12321   shlibpath_var=LD_LIBRARY_PATH
12322   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12323   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12324   # the default ld.so.conf also contains /usr/contrib/lib and
12325   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12326   # libtool to hard-code these into programs
12327   ;;
12328
12329 cygwin* | mingw* | pw32* | cegcc*)
12330   version_type=windows
12331   shrext_cmds=.dll
12332   need_version=no
12333   need_lib_prefix=no
12334
12335   case $GCC,$cc_basename in
12336   yes,*)
12337     # gcc
12338     library_names_spec='$libname.dll.a'
12339     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12340     postinstall_cmds='base_file=`basename \$file`~
12341       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12342       dldir=$destdir/`dirname \$dlpath`~
12343       test -d \$dldir || mkdir -p \$dldir~
12344       $install_prog $dir/$dlname \$dldir/$dlname~
12345       chmod a+x \$dldir/$dlname~
12346       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12347         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12348       fi'
12349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12350       dlpath=$dir/\$dldll~
12351        $RM \$dlpath'
12352     shlibpath_overrides_runpath=yes
12353
12354     case $host_os in
12355     cygwin*)
12356       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12357       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12358
12359       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12360       ;;
12361     mingw* | cegcc*)
12362       # MinGW DLLs use traditional 'lib' prefix
12363       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12364       ;;
12365     pw32*)
12366       # pw32 DLLs use 'pw' prefix rather than 'lib'
12367       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12368       ;;
12369     esac
12370     dynamic_linker='Win32 ld.exe'
12371     ;;
12372
12373   *,cl* | *,icl*)
12374     # Native MSVC or ICC
12375     libname_spec='$name'
12376     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12377     library_names_spec='$libname.dll.lib'
12378
12379     case $build_os in
12380     mingw*)
12381       sys_lib_search_path_spec=
12382       lt_save_ifs=$IFS
12383       IFS=';'
12384       for lt_path in $LIB
12385       do
12386         IFS=$lt_save_ifs
12387         # Let DOS variable expansion print the short 8.3 style file name.
12388         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12389         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12390       done
12391       IFS=$lt_save_ifs
12392       # Convert to MSYS style.
12393       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12394       ;;
12395     cygwin*)
12396       # Convert to unix form, then to dos form, then back to unix form
12397       # but this time dos style (no spaces!) so that the unix form looks
12398       # like /cygdrive/c/PROGRA~1:/cygdr...
12399       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12400       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12401       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12402       ;;
12403     *)
12404       sys_lib_search_path_spec=$LIB
12405       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12406         # It is most probably a Windows format PATH.
12407         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12408       else
12409         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12410       fi
12411       # FIXME: find the short name or the path components, as spaces are
12412       # common. (e.g. "Program Files" -> "PROGRA~1")
12413       ;;
12414     esac
12415
12416     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12417     postinstall_cmds='base_file=`basename \$file`~
12418       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12419       dldir=$destdir/`dirname \$dlpath`~
12420       test -d \$dldir || mkdir -p \$dldir~
12421       $install_prog $dir/$dlname \$dldir/$dlname'
12422     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12423       dlpath=$dir/\$dldll~
12424        $RM \$dlpath'
12425     shlibpath_overrides_runpath=yes
12426     dynamic_linker='Win32 link.exe'
12427     ;;
12428
12429   *)
12430     # Assume MSVC and ICC wrapper
12431     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12432     dynamic_linker='Win32 ld.exe'
12433     ;;
12434   esac
12435   # FIXME: first we should search . and the directory the executable is in
12436   shlibpath_var=PATH
12437   ;;
12438
12439 darwin* | rhapsody*)
12440   dynamic_linker="$host_os dyld"
12441   version_type=darwin
12442   need_lib_prefix=no
12443   need_version=no
12444   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12445   soname_spec='$libname$release$major$shared_ext'
12446   shlibpath_overrides_runpath=yes
12447   shlibpath_var=DYLD_LIBRARY_PATH
12448   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12449
12450   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12451   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12452   ;;
12453
12454 dgux*)
12455   version_type=linux # correct to gnu/linux during the next big refactor
12456   need_lib_prefix=no
12457   need_version=no
12458   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12459   soname_spec='$libname$release$shared_ext$major'
12460   shlibpath_var=LD_LIBRARY_PATH
12461   ;;
12462
12463 freebsd* | dragonfly* | midnightbsd*)
12464   # DragonFly does not have aout.  When/if they implement a new
12465   # versioning mechanism, adjust this.
12466   if test -x /usr/bin/objformat; then
12467     objformat=`/usr/bin/objformat`
12468   else
12469     case $host_os in
12470     freebsd[23].*) objformat=aout ;;
12471     *) objformat=elf ;;
12472     esac
12473   fi
12474   version_type=freebsd-$objformat
12475   case $version_type in
12476     freebsd-elf*)
12477       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12478       soname_spec='$libname$release$shared_ext$major'
12479       need_version=no
12480       need_lib_prefix=no
12481       ;;
12482     freebsd-*)
12483       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12484       need_version=yes
12485       ;;
12486   esac
12487   shlibpath_var=LD_LIBRARY_PATH
12488   case $host_os in
12489   freebsd2.*)
12490     shlibpath_overrides_runpath=yes
12491     ;;
12492   freebsd3.[01]* | freebsdelf3.[01]*)
12493     shlibpath_overrides_runpath=yes
12494     hardcode_into_libs=yes
12495     ;;
12496   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12497   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12498     shlibpath_overrides_runpath=no
12499     hardcode_into_libs=yes
12500     ;;
12501   *) # from 4.6 on, and DragonFly
12502     shlibpath_overrides_runpath=yes
12503     hardcode_into_libs=yes
12504     ;;
12505   esac
12506   ;;
12507
12508 haiku*)
12509   version_type=linux # correct to gnu/linux during the next big refactor
12510   need_lib_prefix=no
12511   need_version=no
12512   dynamic_linker="$host_os runtime_loader"
12513   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514   soname_spec='$libname$release$shared_ext$major'
12515   shlibpath_var=LIBRARY_PATH
12516   shlibpath_overrides_runpath=no
12517   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12518   hardcode_into_libs=yes
12519   ;;
12520
12521 hpux9* | hpux10* | hpux11*)
12522   # Give a soname corresponding to the major version so that dld.sl refuses to
12523   # link against other versions.
12524   version_type=sunos
12525   need_lib_prefix=no
12526   need_version=no
12527   case $host_cpu in
12528   ia64*)
12529     shrext_cmds='.so'
12530     hardcode_into_libs=yes
12531     dynamic_linker="$host_os dld.so"
12532     shlibpath_var=LD_LIBRARY_PATH
12533     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12534     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12535     soname_spec='$libname$release$shared_ext$major'
12536     if test 32 = "$HPUX_IA64_MODE"; then
12537       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12538       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12539     else
12540       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12541       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12542     fi
12543     ;;
12544   hppa*64*)
12545     shrext_cmds='.sl'
12546     hardcode_into_libs=yes
12547     dynamic_linker="$host_os dld.sl"
12548     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12549     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12550     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12551     soname_spec='$libname$release$shared_ext$major'
12552     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12553     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12554     ;;
12555   *)
12556     shrext_cmds='.sl'
12557     dynamic_linker="$host_os dld.sl"
12558     shlibpath_var=SHLIB_PATH
12559     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12560     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561     soname_spec='$libname$release$shared_ext$major'
12562     ;;
12563   esac
12564   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12565   postinstall_cmds='chmod 555 $lib'
12566   # or fails outright, so override atomically:
12567   install_override_mode=555
12568   ;;
12569
12570 interix[3-9]*)
12571   version_type=linux # correct to gnu/linux during the next big refactor
12572   need_lib_prefix=no
12573   need_version=no
12574   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12575   soname_spec='$libname$release$shared_ext$major'
12576   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12577   shlibpath_var=LD_LIBRARY_PATH
12578   shlibpath_overrides_runpath=no
12579   hardcode_into_libs=yes
12580   ;;
12581
12582 irix5* | irix6* | nonstopux*)
12583   case $host_os in
12584     nonstopux*) version_type=nonstopux ;;
12585     *)
12586         if test yes = "$lt_cv_prog_gnu_ld"; then
12587                 version_type=linux # correct to gnu/linux during the next big refactor
12588         else
12589                 version_type=irix
12590         fi ;;
12591   esac
12592   need_lib_prefix=no
12593   need_version=no
12594   soname_spec='$libname$release$shared_ext$major'
12595   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12596   case $host_os in
12597   irix5* | nonstopux*)
12598     libsuff= shlibsuff=
12599     ;;
12600   *)
12601     case $LD in # libtool.m4 will add one of these switches to LD
12602     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12603       libsuff= shlibsuff= libmagic=32-bit;;
12604     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12605       libsuff=32 shlibsuff=N32 libmagic=N32;;
12606     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12607       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12608     *) libsuff= shlibsuff= libmagic=never-match;;
12609     esac
12610     ;;
12611   esac
12612   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12613   shlibpath_overrides_runpath=no
12614   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12615   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12616   hardcode_into_libs=yes
12617   ;;
12618
12619 # No shared lib support for Linux oldld, aout, or coff.
12620 linux*oldld* | linux*aout* | linux*coff*)
12621   dynamic_linker=no
12622   ;;
12623
12624 linux*android*)
12625   version_type=none # Android doesn't support versioned libraries.
12626   need_lib_prefix=no
12627   need_version=no
12628   library_names_spec='$libname$release$shared_ext'
12629   soname_spec='$libname$release$shared_ext'
12630   finish_cmds=
12631   shlibpath_var=LD_LIBRARY_PATH
12632   shlibpath_overrides_runpath=yes
12633
12634   # This implies no fast_install, which is unacceptable.
12635   # Some rework will be needed to allow for fast_install
12636   # before this can be enabled.
12637   hardcode_into_libs=yes
12638
12639   dynamic_linker='Android linker'
12640   # Don't embed -rpath directories since the linker doesn't support them.
12641   hardcode_libdir_flag_spec='-L$libdir'
12642   ;;
12643
12644 # This must be glibc/ELF.
12645 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12646   version_type=linux # correct to gnu/linux during the next big refactor
12647   need_lib_prefix=no
12648   need_version=no
12649   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12650   soname_spec='$libname$release$shared_ext$major'
12651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12652   shlibpath_var=LD_LIBRARY_PATH
12653   shlibpath_overrides_runpath=no
12654
12655   # Some binutils ld are patched to set DT_RUNPATH
12656   if test ${lt_cv_shlibpath_overrides_runpath+y}
12657 then :
12658   printf %s "(cached) " >&6
12659 else $as_nop
12660   lt_cv_shlibpath_overrides_runpath=no
12661     save_LDFLAGS=$LDFLAGS
12662     save_libdir=$libdir
12663     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12664          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h.  */
12667
12668 int
12669 main (void)
12670 {
12671
12672   ;
12673   return 0;
12674 }
12675 _ACEOF
12676 if ac_fn_c_try_link "$LINENO"
12677 then :
12678   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12679 then :
12680   lt_cv_shlibpath_overrides_runpath=yes
12681 fi
12682 fi
12683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12684     conftest$ac_exeext conftest.$ac_ext
12685     LDFLAGS=$save_LDFLAGS
12686     libdir=$save_libdir
12687
12688 fi
12689
12690   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12691
12692   # This implies no fast_install, which is unacceptable.
12693   # Some rework will be needed to allow for fast_install
12694   # before this can be enabled.
12695   hardcode_into_libs=yes
12696
12697   # Ideally, we could use ldconfig to report *all* directores which are
12698   # searched for libraries, however this is still not possible.  Aside from not
12699   # being certain /sbin/ldconfig is available, command
12700   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12701   # even though it is searched at run-time.  Try to do the best guess by
12702   # appending ld.so.conf contents (and includes) to the search path.
12703   if test -f /etc/ld.so.conf; then
12704     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' ' '`
12705     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12706   fi
12707
12708   # We used to test for /lib/ld.so.1 and disable shared libraries on
12709   # powerpc, because MkLinux only supported shared libraries with the
12710   # GNU dynamic linker.  Since this was broken with cross compilers,
12711   # most powerpc-linux boxes support dynamic linking these days and
12712   # people can always --disable-shared, the test was removed, and we
12713   # assume the GNU/Linux dynamic linker is in use.
12714   dynamic_linker='GNU/Linux ld.so'
12715   ;;
12716
12717 netbsd*)
12718   version_type=sunos
12719   need_lib_prefix=no
12720   need_version=no
12721   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12722     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12723     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12724     dynamic_linker='NetBSD (a.out) ld.so'
12725   else
12726     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12727     soname_spec='$libname$release$shared_ext$major'
12728     dynamic_linker='NetBSD ld.elf_so'
12729   fi
12730   shlibpath_var=LD_LIBRARY_PATH
12731   shlibpath_overrides_runpath=yes
12732   hardcode_into_libs=yes
12733   ;;
12734
12735 newsos6)
12736   version_type=linux # correct to gnu/linux during the next big refactor
12737   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12738   shlibpath_var=LD_LIBRARY_PATH
12739   shlibpath_overrides_runpath=yes
12740   ;;
12741
12742 *nto* | *qnx*)
12743   version_type=qnx
12744   need_lib_prefix=no
12745   need_version=no
12746   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12747   soname_spec='$libname$release$shared_ext$major'
12748   shlibpath_var=LD_LIBRARY_PATH
12749   shlibpath_overrides_runpath=no
12750   hardcode_into_libs=yes
12751   dynamic_linker='ldqnx.so'
12752   ;;
12753
12754 openbsd* | bitrig*)
12755   version_type=sunos
12756   sys_lib_dlsearch_path_spec=/usr/lib
12757   need_lib_prefix=no
12758   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12759     need_version=no
12760   else
12761     need_version=yes
12762   fi
12763   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12764   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12765   shlibpath_var=LD_LIBRARY_PATH
12766   shlibpath_overrides_runpath=yes
12767   ;;
12768
12769 os2*)
12770   libname_spec='$name'
12771   version_type=windows
12772   shrext_cmds=.dll
12773   need_version=no
12774   need_lib_prefix=no
12775   # OS/2 can only load a DLL with a base name of 8 characters or less.
12776   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12777     v=$($ECHO $release$versuffix | tr -d .-);
12778     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12779     $ECHO $n$v`$shared_ext'
12780   library_names_spec='${libname}_dll.$libext'
12781   dynamic_linker='OS/2 ld.exe'
12782   shlibpath_var=BEGINLIBPATH
12783   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12784   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12785   postinstall_cmds='base_file=`basename \$file`~
12786     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12787     dldir=$destdir/`dirname \$dlpath`~
12788     test -d \$dldir || mkdir -p \$dldir~
12789     $install_prog $dir/$dlname \$dldir/$dlname~
12790     chmod a+x \$dldir/$dlname~
12791     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12792       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12793     fi'
12794   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12795     dlpath=$dir/\$dldll~
12796     $RM \$dlpath'
12797   ;;
12798
12799 osf3* | osf4* | osf5*)
12800   version_type=osf
12801   need_lib_prefix=no
12802   need_version=no
12803   soname_spec='$libname$release$shared_ext$major'
12804   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12805   shlibpath_var=LD_LIBRARY_PATH
12806   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12807   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12808   ;;
12809
12810 rdos*)
12811   dynamic_linker=no
12812   ;;
12813
12814 solaris*)
12815   version_type=linux # correct to gnu/linux during the next big refactor
12816   need_lib_prefix=no
12817   need_version=no
12818   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12819   soname_spec='$libname$release$shared_ext$major'
12820   shlibpath_var=LD_LIBRARY_PATH
12821   shlibpath_overrides_runpath=yes
12822   hardcode_into_libs=yes
12823   # ldd complains unless libraries are executable
12824   postinstall_cmds='chmod +x $lib'
12825   ;;
12826
12827 sunos4*)
12828   version_type=sunos
12829   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12830   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12831   shlibpath_var=LD_LIBRARY_PATH
12832   shlibpath_overrides_runpath=yes
12833   if test yes = "$with_gnu_ld"; then
12834     need_lib_prefix=no
12835   fi
12836   need_version=yes
12837   ;;
12838
12839 sysv4 | sysv4.3*)
12840   version_type=linux # correct to gnu/linux during the next big refactor
12841   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12842   soname_spec='$libname$release$shared_ext$major'
12843   shlibpath_var=LD_LIBRARY_PATH
12844   case $host_vendor in
12845     sni)
12846       shlibpath_overrides_runpath=no
12847       need_lib_prefix=no
12848       runpath_var=LD_RUN_PATH
12849       ;;
12850     siemens)
12851       need_lib_prefix=no
12852       ;;
12853     motorola)
12854       need_lib_prefix=no
12855       need_version=no
12856       shlibpath_overrides_runpath=no
12857       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12858       ;;
12859   esac
12860   ;;
12861
12862 sysv4*MP*)
12863   if test -d /usr/nec; then
12864     version_type=linux # correct to gnu/linux during the next big refactor
12865     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12866     soname_spec='$libname$shared_ext.$major'
12867     shlibpath_var=LD_LIBRARY_PATH
12868   fi
12869   ;;
12870
12871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12872   version_type=sco
12873   need_lib_prefix=no
12874   need_version=no
12875   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12876   soname_spec='$libname$release$shared_ext$major'
12877   shlibpath_var=LD_LIBRARY_PATH
12878   shlibpath_overrides_runpath=yes
12879   hardcode_into_libs=yes
12880   if test yes = "$with_gnu_ld"; then
12881     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12882   else
12883     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12884     case $host_os in
12885       sco3.2v5*)
12886         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12887         ;;
12888     esac
12889   fi
12890   sys_lib_dlsearch_path_spec='/usr/lib'
12891   ;;
12892
12893 tpf*)
12894   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12895   version_type=linux # correct to gnu/linux during the next big refactor
12896   need_lib_prefix=no
12897   need_version=no
12898   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12899   shlibpath_var=LD_LIBRARY_PATH
12900   shlibpath_overrides_runpath=no
12901   hardcode_into_libs=yes
12902   ;;
12903
12904 uts4*)
12905   version_type=linux # correct to gnu/linux during the next big refactor
12906   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12907   soname_spec='$libname$release$shared_ext$major'
12908   shlibpath_var=LD_LIBRARY_PATH
12909   ;;
12910
12911 *)
12912   dynamic_linker=no
12913   ;;
12914 esac
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12916 printf "%s\n" "$dynamic_linker" >&6; }
12917 test no = "$dynamic_linker" && can_build_shared=no
12918
12919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12920 if test yes = "$GCC"; then
12921   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12922 fi
12923
12924 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12925   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12926 fi
12927
12928 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12929   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12930 fi
12931
12932 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12933 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12934
12935 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12936 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12937
12938 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12939 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13038 printf %s "checking how to hardcode library paths into programs... " >&6; }
13039 hardcode_action=
13040 if test -n "$hardcode_libdir_flag_spec" ||
13041    test -n "$runpath_var" ||
13042    test yes = "$hardcode_automatic"; then
13043
13044   # We can hardcode non-existent directories.
13045   if test no != "$hardcode_direct" &&
13046      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13047      # have to relink, otherwise we might link with an installed library
13048      # when we should be linking with a yet-to-be-installed one
13049      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13050      test no != "$hardcode_minus_L"; then
13051     # Linking always hardcodes the temporary library directory.
13052     hardcode_action=relink
13053   else
13054     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13055     hardcode_action=immediate
13056   fi
13057 else
13058   # We cannot hardcode anything, or else we can only hardcode existing
13059   # directories.
13060   hardcode_action=unsupported
13061 fi
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13063 printf "%s\n" "$hardcode_action" >&6; }
13064
13065 if test relink = "$hardcode_action" ||
13066    test yes = "$inherit_rpath"; then
13067   # Fast installation is not supported
13068   enable_fast_install=no
13069 elif test yes = "$shlibpath_overrides_runpath" ||
13070      test no = "$enable_shared"; then
13071   # Fast installation is not necessary
13072   enable_fast_install=needless
13073 fi
13074
13075
13076
13077
13078
13079
13080   if test yes != "$enable_dlopen"; then
13081   enable_dlopen=unknown
13082   enable_dlopen_self=unknown
13083   enable_dlopen_self_static=unknown
13084 else
13085   lt_cv_dlopen=no
13086   lt_cv_dlopen_libs=
13087
13088   case $host_os in
13089   beos*)
13090     lt_cv_dlopen=load_add_on
13091     lt_cv_dlopen_libs=
13092     lt_cv_dlopen_self=yes
13093     ;;
13094
13095   mingw* | pw32* | cegcc*)
13096     lt_cv_dlopen=LoadLibrary
13097     lt_cv_dlopen_libs=
13098     ;;
13099
13100   cygwin*)
13101     lt_cv_dlopen=dlopen
13102     lt_cv_dlopen_libs=
13103     ;;
13104
13105   darwin*)
13106     # if libdl is installed we need to link against it
13107     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13108 printf %s "checking for dlopen in -ldl... " >&6; }
13109 if test ${ac_cv_lib_dl_dlopen+y}
13110 then :
13111   printf %s "(cached) " >&6
13112 else $as_nop
13113   ac_check_lib_save_LIBS=$LIBS
13114 LIBS="-ldl  $LIBS"
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h.  */
13117
13118 /* Override any GCC internal prototype to avoid an error.
13119    Use char because int might match the return type of a GCC
13120    builtin and then its argument prototype would still apply.  */
13121 char dlopen ();
13122 int
13123 main (void)
13124 {
13125 return dlopen ();
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"
13131 then :
13132   ac_cv_lib_dl_dlopen=yes
13133 else $as_nop
13134   ac_cv_lib_dl_dlopen=no
13135 fi
13136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13137     conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS
13139 fi
13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13141 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13142 if test "x$ac_cv_lib_dl_dlopen" = xyes
13143 then :
13144   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13145 else $as_nop
13146
13147     lt_cv_dlopen=dyld
13148     lt_cv_dlopen_libs=
13149     lt_cv_dlopen_self=yes
13150
13151 fi
13152
13153     ;;
13154
13155   tpf*)
13156     # Don't try to run any link tests for TPF.  We know it's impossible
13157     # because TPF is a cross-compiler, and we know how we open DSOs.
13158     lt_cv_dlopen=dlopen
13159     lt_cv_dlopen_libs=
13160     lt_cv_dlopen_self=no
13161     ;;
13162
13163   *)
13164     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13165 if test "x$ac_cv_func_shl_load" = xyes
13166 then :
13167   lt_cv_dlopen=shl_load
13168 else $as_nop
13169   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13170 printf %s "checking for shl_load in -ldld... " >&6; }
13171 if test ${ac_cv_lib_dld_shl_load+y}
13172 then :
13173   printf %s "(cached) " >&6
13174 else $as_nop
13175   ac_check_lib_save_LIBS=$LIBS
13176 LIBS="-ldld  $LIBS"
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h.  */
13179
13180 /* Override any GCC internal prototype to avoid an error.
13181    Use char because int might match the return type of a GCC
13182    builtin and then its argument prototype would still apply.  */
13183 char shl_load ();
13184 int
13185 main (void)
13186 {
13187 return shl_load ();
13188   ;
13189   return 0;
13190 }
13191 _ACEOF
13192 if ac_fn_c_try_link "$LINENO"
13193 then :
13194   ac_cv_lib_dld_shl_load=yes
13195 else $as_nop
13196   ac_cv_lib_dld_shl_load=no
13197 fi
13198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13199     conftest$ac_exeext conftest.$ac_ext
13200 LIBS=$ac_check_lib_save_LIBS
13201 fi
13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13203 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13204 if test "x$ac_cv_lib_dld_shl_load" = xyes
13205 then :
13206   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13207 else $as_nop
13208   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13209 if test "x$ac_cv_func_dlopen" = xyes
13210 then :
13211   lt_cv_dlopen=dlopen
13212 else $as_nop
13213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13214 printf %s "checking for dlopen in -ldl... " >&6; }
13215 if test ${ac_cv_lib_dl_dlopen+y}
13216 then :
13217   printf %s "(cached) " >&6
13218 else $as_nop
13219   ac_check_lib_save_LIBS=$LIBS
13220 LIBS="-ldl  $LIBS"
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h.  */
13223
13224 /* Override any GCC internal prototype to avoid an error.
13225    Use char because int might match the return type of a GCC
13226    builtin and then its argument prototype would still apply.  */
13227 char dlopen ();
13228 int
13229 main (void)
13230 {
13231 return dlopen ();
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 if ac_fn_c_try_link "$LINENO"
13237 then :
13238   ac_cv_lib_dl_dlopen=yes
13239 else $as_nop
13240   ac_cv_lib_dl_dlopen=no
13241 fi
13242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13243     conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13245 fi
13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13247 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13248 if test "x$ac_cv_lib_dl_dlopen" = xyes
13249 then :
13250   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13251 else $as_nop
13252   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13253 printf %s "checking for dlopen in -lsvld... " >&6; }
13254 if test ${ac_cv_lib_svld_dlopen+y}
13255 then :
13256   printf %s "(cached) " >&6
13257 else $as_nop
13258   ac_check_lib_save_LIBS=$LIBS
13259 LIBS="-lsvld  $LIBS"
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h.  */
13262
13263 /* Override any GCC internal prototype to avoid an error.
13264    Use char because int might match the return type of a GCC
13265    builtin and then its argument prototype would still apply.  */
13266 char dlopen ();
13267 int
13268 main (void)
13269 {
13270 return dlopen ();
13271   ;
13272   return 0;
13273 }
13274 _ACEOF
13275 if ac_fn_c_try_link "$LINENO"
13276 then :
13277   ac_cv_lib_svld_dlopen=yes
13278 else $as_nop
13279   ac_cv_lib_svld_dlopen=no
13280 fi
13281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13282     conftest$ac_exeext conftest.$ac_ext
13283 LIBS=$ac_check_lib_save_LIBS
13284 fi
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13286 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13287 if test "x$ac_cv_lib_svld_dlopen" = xyes
13288 then :
13289   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13290 else $as_nop
13291   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13292 printf %s "checking for dld_link in -ldld... " >&6; }
13293 if test ${ac_cv_lib_dld_dld_link+y}
13294 then :
13295   printf %s "(cached) " >&6
13296 else $as_nop
13297   ac_check_lib_save_LIBS=$LIBS
13298 LIBS="-ldld  $LIBS"
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h.  */
13301
13302 /* Override any GCC internal prototype to avoid an error.
13303    Use char because int might match the return type of a GCC
13304    builtin and then its argument prototype would still apply.  */
13305 char dld_link ();
13306 int
13307 main (void)
13308 {
13309 return dld_link ();
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"
13315 then :
13316   ac_cv_lib_dld_dld_link=yes
13317 else $as_nop
13318   ac_cv_lib_dld_dld_link=no
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13321     conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13323 fi
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13325 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13326 if test "x$ac_cv_lib_dld_dld_link" = xyes
13327 then :
13328   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13329 fi
13330
13331
13332 fi
13333
13334
13335 fi
13336
13337
13338 fi
13339
13340
13341 fi
13342
13343
13344 fi
13345
13346     ;;
13347   esac
13348
13349   if test no = "$lt_cv_dlopen"; then
13350     enable_dlopen=no
13351   else
13352     enable_dlopen=yes
13353   fi
13354
13355   case $lt_cv_dlopen in
13356   dlopen)
13357     save_CPPFLAGS=$CPPFLAGS
13358     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13359
13360     save_LDFLAGS=$LDFLAGS
13361     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13362
13363     save_LIBS=$LIBS
13364     LIBS="$lt_cv_dlopen_libs $LIBS"
13365
13366     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13367 printf %s "checking whether a program can dlopen itself... " >&6; }
13368 if test ${lt_cv_dlopen_self+y}
13369 then :
13370   printf %s "(cached) " >&6
13371 else $as_nop
13372           if test yes = "$cross_compiling"; then :
13373   lt_cv_dlopen_self=cross
13374 else
13375   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13376   lt_status=$lt_dlunknown
13377   cat > conftest.$ac_ext <<_LT_EOF
13378 #line $LINENO "configure"
13379 #include "confdefs.h"
13380
13381 #if HAVE_DLFCN_H
13382 #include <dlfcn.h>
13383 #endif
13384
13385 #include <stdio.h>
13386
13387 #ifdef RTLD_GLOBAL
13388 #  define LT_DLGLOBAL           RTLD_GLOBAL
13389 #else
13390 #  ifdef DL_GLOBAL
13391 #    define LT_DLGLOBAL         DL_GLOBAL
13392 #  else
13393 #    define LT_DLGLOBAL         0
13394 #  endif
13395 #endif
13396
13397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13398    find out it does not work in some platform. */
13399 #ifndef LT_DLLAZY_OR_NOW
13400 #  ifdef RTLD_LAZY
13401 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13402 #  else
13403 #    ifdef DL_LAZY
13404 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13405 #    else
13406 #      ifdef RTLD_NOW
13407 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13408 #      else
13409 #        ifdef DL_NOW
13410 #          define LT_DLLAZY_OR_NOW      DL_NOW
13411 #        else
13412 #          define LT_DLLAZY_OR_NOW      0
13413 #        endif
13414 #      endif
13415 #    endif
13416 #  endif
13417 #endif
13418
13419 /* When -fvisibility=hidden is used, assume the code has been annotated
13420    correspondingly for the symbols needed.  */
13421 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13422 int fnord () __attribute__((visibility("default")));
13423 #endif
13424
13425 int fnord () { return 42; }
13426 int main ()
13427 {
13428   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13429   int status = $lt_dlunknown;
13430
13431   if (self)
13432     {
13433       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13434       else
13435         {
13436           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13437           else puts (dlerror ());
13438         }
13439       /* dlclose (self); */
13440     }
13441   else
13442     puts (dlerror ());
13443
13444   return status;
13445 }
13446 _LT_EOF
13447   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13448   (eval $ac_link) 2>&5
13449   ac_status=$?
13450   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13452     (./conftest; exit; ) >&5 2>/dev/null
13453     lt_status=$?
13454     case x$lt_status in
13455       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13456       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13457       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13458     esac
13459   else :
13460     # compilation failed
13461     lt_cv_dlopen_self=no
13462   fi
13463 fi
13464 rm -fr conftest*
13465
13466
13467 fi
13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13469 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13470
13471     if test yes = "$lt_cv_dlopen_self"; then
13472       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13473       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13474 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13475 if test ${lt_cv_dlopen_self_static+y}
13476 then :
13477   printf %s "(cached) " >&6
13478 else $as_nop
13479           if test yes = "$cross_compiling"; then :
13480   lt_cv_dlopen_self_static=cross
13481 else
13482   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13483   lt_status=$lt_dlunknown
13484   cat > conftest.$ac_ext <<_LT_EOF
13485 #line $LINENO "configure"
13486 #include "confdefs.h"
13487
13488 #if HAVE_DLFCN_H
13489 #include <dlfcn.h>
13490 #endif
13491
13492 #include <stdio.h>
13493
13494 #ifdef RTLD_GLOBAL
13495 #  define LT_DLGLOBAL           RTLD_GLOBAL
13496 #else
13497 #  ifdef DL_GLOBAL
13498 #    define LT_DLGLOBAL         DL_GLOBAL
13499 #  else
13500 #    define LT_DLGLOBAL         0
13501 #  endif
13502 #endif
13503
13504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13505    find out it does not work in some platform. */
13506 #ifndef LT_DLLAZY_OR_NOW
13507 #  ifdef RTLD_LAZY
13508 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13509 #  else
13510 #    ifdef DL_LAZY
13511 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13512 #    else
13513 #      ifdef RTLD_NOW
13514 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13515 #      else
13516 #        ifdef DL_NOW
13517 #          define LT_DLLAZY_OR_NOW      DL_NOW
13518 #        else
13519 #          define LT_DLLAZY_OR_NOW      0
13520 #        endif
13521 #      endif
13522 #    endif
13523 #  endif
13524 #endif
13525
13526 /* When -fvisibility=hidden is used, assume the code has been annotated
13527    correspondingly for the symbols needed.  */
13528 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13529 int fnord () __attribute__((visibility("default")));
13530 #endif
13531
13532 int fnord () { return 42; }
13533 int main ()
13534 {
13535   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13536   int status = $lt_dlunknown;
13537
13538   if (self)
13539     {
13540       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13541       else
13542         {
13543           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13544           else puts (dlerror ());
13545         }
13546       /* dlclose (self); */
13547     }
13548   else
13549     puts (dlerror ());
13550
13551   return status;
13552 }
13553 _LT_EOF
13554   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13555   (eval $ac_link) 2>&5
13556   ac_status=$?
13557   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13559     (./conftest; exit; ) >&5 2>/dev/null
13560     lt_status=$?
13561     case x$lt_status in
13562       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13563       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13564       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13565     esac
13566   else :
13567     # compilation failed
13568     lt_cv_dlopen_self_static=no
13569   fi
13570 fi
13571 rm -fr conftest*
13572
13573
13574 fi
13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13576 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13577     fi
13578
13579     CPPFLAGS=$save_CPPFLAGS
13580     LDFLAGS=$save_LDFLAGS
13581     LIBS=$save_LIBS
13582     ;;
13583   esac
13584
13585   case $lt_cv_dlopen_self in
13586   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13587   *) enable_dlopen_self=unknown ;;
13588   esac
13589
13590   case $lt_cv_dlopen_self_static in
13591   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13592   *) enable_dlopen_self_static=unknown ;;
13593   esac
13594 fi
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612 striplib=
13613 old_striplib=
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13615 printf %s "checking whether stripping libraries is possible... " >&6; }
13616 if test -z "$STRIP"; then
13617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 printf "%s\n" "no" >&6; }
13619 else
13620   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13621     old_striplib="$STRIP --strip-debug"
13622     striplib="$STRIP --strip-unneeded"
13623     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13624 printf "%s\n" "yes" >&6; }
13625   else
13626     case $host_os in
13627     darwin*)
13628       # FIXME - insert some real tests, host_os isn't really good enough
13629       striplib="$STRIP -x"
13630       old_striplib="$STRIP -S"
13631       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13632 printf "%s\n" "yes" >&6; }
13633       ;;
13634     freebsd*)
13635       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13636         old_striplib="$STRIP --strip-debug"
13637         striplib="$STRIP --strip-unneeded"
13638         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13639 printf "%s\n" "yes" >&6; }
13640       else
13641         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 printf "%s\n" "no" >&6; }
13643       fi
13644       ;;
13645     *)
13646       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 printf "%s\n" "no" >&6; }
13648       ;;
13649     esac
13650   fi
13651 fi
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664   # Report what library types will actually be built
13665   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13666 printf %s "checking if libtool supports shared libraries... " >&6; }
13667   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13668 printf "%s\n" "$can_build_shared" >&6; }
13669
13670   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13671 printf %s "checking whether to build shared libraries... " >&6; }
13672   test no = "$can_build_shared" && enable_shared=no
13673
13674   # On AIX, shared libraries and static libraries use the same namespace, and
13675   # are all built from PIC.
13676   case $host_os in
13677   aix3*)
13678     test yes = "$enable_shared" && enable_static=no
13679     if test -n "$RANLIB"; then
13680       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13681       postinstall_cmds='$RANLIB $lib'
13682     fi
13683     ;;
13684
13685   aix[4-9]*)
13686     if test ia64 != "$host_cpu"; then
13687       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13688       yes,aix,yes) ;;                   # shared object as lib.so file only
13689       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13690       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13691       esac
13692     fi
13693     ;;
13694   esac
13695   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13696 printf "%s\n" "$enable_shared" >&6; }
13697
13698   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13699 printf %s "checking whether to build static libraries... " >&6; }
13700   # Make sure either enable_shared or enable_static is yes.
13701   test yes = "$enable_shared" || enable_static=yes
13702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13703 printf "%s\n" "$enable_static" >&6; }
13704
13705
13706
13707
13708 fi
13709 ac_ext=c
13710 ac_cpp='$CPP $CPPFLAGS'
13711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13714
13715 CC=$lt_save_CC
13716
13717       if test -n "$CXX" && ( test no != "$CXX" &&
13718     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13719     (test g++ != "$CXX"))); then
13720   ac_ext=cpp
13721 ac_cpp='$CXXCPP $CPPFLAGS'
13722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13726 printf %s "checking how to run the C++ preprocessor... " >&6; }
13727 if test -z "$CXXCPP"; then
13728   if test ${ac_cv_prog_CXXCPP+y}
13729 then :
13730   printf %s "(cached) " >&6
13731 else $as_nop
13732       # Double quotes because $CXX needs to be expanded
13733     for CXXCPP in "$CXX -E" cpp /lib/cpp
13734     do
13735       ac_preproc_ok=false
13736 for ac_cxx_preproc_warn_flag in '' yes
13737 do
13738   # Use a header file that comes with gcc, so configuring glibc
13739   # with a fresh cross-compiler works.
13740   # On the NeXT, cc -E runs the code through the compiler's parser,
13741   # not just through cpp. "Syntax error" is here to catch this case.
13742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h.  */
13744 #include <limits.h>
13745                      Syntax error
13746 _ACEOF
13747 if ac_fn_cxx_try_cpp "$LINENO"
13748 then :
13749
13750 else $as_nop
13751   # Broken: fails on valid input.
13752 continue
13753 fi
13754 rm -f conftest.err conftest.i conftest.$ac_ext
13755
13756   # OK, works on sane cases.  Now check whether nonexistent headers
13757   # can be detected and how.
13758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h.  */
13760 #include <ac_nonexistent.h>
13761 _ACEOF
13762 if ac_fn_cxx_try_cpp "$LINENO"
13763 then :
13764   # Broken: success on invalid input.
13765 continue
13766 else $as_nop
13767   # Passes both tests.
13768 ac_preproc_ok=:
13769 break
13770 fi
13771 rm -f conftest.err conftest.i conftest.$ac_ext
13772
13773 done
13774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13775 rm -f conftest.i conftest.err conftest.$ac_ext
13776 if $ac_preproc_ok
13777 then :
13778   break
13779 fi
13780
13781     done
13782     ac_cv_prog_CXXCPP=$CXXCPP
13783
13784 fi
13785   CXXCPP=$ac_cv_prog_CXXCPP
13786 else
13787   ac_cv_prog_CXXCPP=$CXXCPP
13788 fi
13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13790 printf "%s\n" "$CXXCPP" >&6; }
13791 ac_preproc_ok=false
13792 for ac_cxx_preproc_warn_flag in '' yes
13793 do
13794   # Use a header file that comes with gcc, so configuring glibc
13795   # with a fresh cross-compiler works.
13796   # On the NeXT, cc -E runs the code through the compiler's parser,
13797   # not just through cpp. "Syntax error" is here to catch this case.
13798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h.  */
13800 #include <limits.h>
13801                      Syntax error
13802 _ACEOF
13803 if ac_fn_cxx_try_cpp "$LINENO"
13804 then :
13805
13806 else $as_nop
13807   # Broken: fails on valid input.
13808 continue
13809 fi
13810 rm -f conftest.err conftest.i conftest.$ac_ext
13811
13812   # OK, works on sane cases.  Now check whether nonexistent headers
13813   # can be detected and how.
13814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h.  */
13816 #include <ac_nonexistent.h>
13817 _ACEOF
13818 if ac_fn_cxx_try_cpp "$LINENO"
13819 then :
13820   # Broken: success on invalid input.
13821 continue
13822 else $as_nop
13823   # Passes both tests.
13824 ac_preproc_ok=:
13825 break
13826 fi
13827 rm -f conftest.err conftest.i conftest.$ac_ext
13828
13829 done
13830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13831 rm -f conftest.i conftest.err conftest.$ac_ext
13832 if $ac_preproc_ok
13833 then :
13834
13835 else $as_nop
13836   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13837 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13838 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13839 See \`config.log' for more details" "$LINENO" 5; }
13840 fi
13841
13842 ac_ext=c
13843 ac_cpp='$CPP $CPPFLAGS'
13844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13847
13848 else
13849   _lt_caught_CXX_error=yes
13850 fi
13851
13852 ac_ext=cpp
13853 ac_cpp='$CXXCPP $CPPFLAGS'
13854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13857
13858 archive_cmds_need_lc_CXX=no
13859 allow_undefined_flag_CXX=
13860 always_export_symbols_CXX=no
13861 archive_expsym_cmds_CXX=
13862 compiler_needs_object_CXX=no
13863 export_dynamic_flag_spec_CXX=
13864 hardcode_direct_CXX=no
13865 hardcode_direct_absolute_CXX=no
13866 hardcode_libdir_flag_spec_CXX=
13867 hardcode_libdir_separator_CXX=
13868 hardcode_minus_L_CXX=no
13869 hardcode_shlibpath_var_CXX=unsupported
13870 hardcode_automatic_CXX=no
13871 inherit_rpath_CXX=no
13872 module_cmds_CXX=
13873 module_expsym_cmds_CXX=
13874 link_all_deplibs_CXX=unknown
13875 old_archive_cmds_CXX=$old_archive_cmds
13876 reload_flag_CXX=$reload_flag
13877 reload_cmds_CXX=$reload_cmds
13878 no_undefined_flag_CXX=
13879 whole_archive_flag_spec_CXX=
13880 enable_shared_with_static_runtimes_CXX=no
13881
13882 # Source file extension for C++ test sources.
13883 ac_ext=cpp
13884
13885 # Object file extension for compiled C++ test sources.
13886 objext=o
13887 objext_CXX=$objext
13888
13889 # No sense in running all these tests if we already determined that
13890 # the CXX compiler isn't working.  Some variables (like enable_shared)
13891 # are currently assumed to apply to all compilers on this platform,
13892 # and will be corrupted by setting them based on a non-working compiler.
13893 if test yes != "$_lt_caught_CXX_error"; then
13894   # Code to be used in simple compile tests
13895   lt_simple_compile_test_code="int some_variable = 0;"
13896
13897   # Code to be used in simple link tests
13898   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13899
13900   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13901
13902
13903
13904
13905
13906
13907 # If no C compiler was specified, use CC.
13908 LTCC=${LTCC-"$CC"}
13909
13910 # If no C compiler flags were specified, use CFLAGS.
13911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13912
13913 # Allow CC to be a program name with arguments.
13914 compiler=$CC
13915
13916
13917   # save warnings/boilerplate of simple test code
13918   ac_outfile=conftest.$ac_objext
13919 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13920 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13921 _lt_compiler_boilerplate=`cat conftest.err`
13922 $RM conftest*
13923
13924   ac_outfile=conftest.$ac_objext
13925 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13926 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13927 _lt_linker_boilerplate=`cat conftest.err`
13928 $RM -r conftest*
13929
13930
13931   # Allow CC to be a program name with arguments.
13932   lt_save_CC=$CC
13933   lt_save_CFLAGS=$CFLAGS
13934   lt_save_LD=$LD
13935   lt_save_GCC=$GCC
13936   GCC=$GXX
13937   lt_save_with_gnu_ld=$with_gnu_ld
13938   lt_save_path_LD=$lt_cv_path_LD
13939   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13940     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13941   else
13942     $as_unset lt_cv_prog_gnu_ld
13943   fi
13944   if test -n "${lt_cv_path_LDCXX+set}"; then
13945     lt_cv_path_LD=$lt_cv_path_LDCXX
13946   else
13947     $as_unset lt_cv_path_LD
13948   fi
13949   test -z "${LDCXX+set}" || LD=$LDCXX
13950   CC=${CXX-"c++"}
13951   CFLAGS=$CXXFLAGS
13952   compiler=$CC
13953   compiler_CXX=$CC
13954   func_cc_basename $compiler
13955 cc_basename=$func_cc_basename_result
13956
13957
13958   if test -n "$compiler"; then
13959     # We don't want -fno-exception when compiling C++ code, so set the
13960     # no_builtin_flag separately
13961     if test yes = "$GXX"; then
13962       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13963     else
13964       lt_prog_compiler_no_builtin_flag_CXX=
13965     fi
13966
13967     if test yes = "$GXX"; then
13968       # Set up default GNU C++ configuration
13969
13970
13971
13972 # Check whether --with-gnu-ld was given.
13973 if test ${with_gnu_ld+y}
13974 then :
13975   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13976 else $as_nop
13977   with_gnu_ld=no
13978 fi
13979
13980 ac_prog=ld
13981 if test yes = "$GCC"; then
13982   # Check if gcc -print-prog-name=ld gives a path.
13983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13984 printf %s "checking for ld used by $CC... " >&6; }
13985   case $host in
13986   *-*-mingw*)
13987     # gcc leaves a trailing carriage return, which upsets mingw
13988     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13989   *)
13990     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13991   esac
13992   case $ac_prog in
13993     # Accept absolute paths.
13994     [\\/]* | ?:[\\/]*)
13995       re_direlt='/[^/][^/]*/\.\./'
13996       # Canonicalize the pathname of ld
13997       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13998       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13999         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14000       done
14001       test -z "$LD" && LD=$ac_prog
14002       ;;
14003   "")
14004     # If it fails, then pretend we aren't using GCC.
14005     ac_prog=ld
14006     ;;
14007   *)
14008     # If it is relative, then search for the first ld in PATH.
14009     with_gnu_ld=unknown
14010     ;;
14011   esac
14012 elif test yes = "$with_gnu_ld"; then
14013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14014 printf %s "checking for GNU ld... " >&6; }
14015 else
14016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14017 printf %s "checking for non-GNU ld... " >&6; }
14018 fi
14019 if test ${lt_cv_path_LD+y}
14020 then :
14021   printf %s "(cached) " >&6
14022 else $as_nop
14023   if test -z "$LD"; then
14024   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14025   for ac_dir in $PATH; do
14026     IFS=$lt_save_ifs
14027     test -z "$ac_dir" && ac_dir=.
14028     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14029       lt_cv_path_LD=$ac_dir/$ac_prog
14030       # Check to see if the program is GNU ld.  I'd rather use --version,
14031       # but apparently some variants of GNU ld only accept -v.
14032       # Break only if it was the GNU/non-GNU ld that we prefer.
14033       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14034       *GNU* | *'with BFD'*)
14035         test no != "$with_gnu_ld" && break
14036         ;;
14037       *)
14038         test yes != "$with_gnu_ld" && break
14039         ;;
14040       esac
14041     fi
14042   done
14043   IFS=$lt_save_ifs
14044 else
14045   lt_cv_path_LD=$LD # Let the user override the test with a path.
14046 fi
14047 fi
14048
14049 LD=$lt_cv_path_LD
14050 if test -n "$LD"; then
14051   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14052 printf "%s\n" "$LD" >&6; }
14053 else
14054   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055 printf "%s\n" "no" >&6; }
14056 fi
14057 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14059 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14060 if test ${lt_cv_prog_gnu_ld+y}
14061 then :
14062   printf %s "(cached) " >&6
14063 else $as_nop
14064   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14065 case `$LD -v 2>&1 </dev/null` in
14066 *GNU* | *'with BFD'*)
14067   lt_cv_prog_gnu_ld=yes
14068   ;;
14069 *)
14070   lt_cv_prog_gnu_ld=no
14071   ;;
14072 esac
14073 fi
14074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14075 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14076 with_gnu_ld=$lt_cv_prog_gnu_ld
14077
14078
14079
14080
14081
14082
14083
14084       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14085       # archiving commands below assume that GNU ld is being used.
14086       if test yes = "$with_gnu_ld"; then
14087         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14088         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'
14089
14090         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14091         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14092
14093         # If archive_cmds runs LD, not CC, wlarc should be empty
14094         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14095         #     investigate it a little bit more. (MM)
14096         wlarc='$wl'
14097
14098         # ancient GNU ld didn't support --whole-archive et. al.
14099         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14100           $GREP 'no-whole-archive' > /dev/null; then
14101           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14102         else
14103           whole_archive_flag_spec_CXX=
14104         fi
14105       else
14106         with_gnu_ld=no
14107         wlarc=
14108
14109         # A generic and very simple default shared library creation
14110         # command for GNU C++ for the case where it uses the native
14111         # linker, instead of GNU ld.  If possible, this setting should
14112         # overridden to take advantage of the native linker features on
14113         # the platform it is being used on.
14114         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14115       fi
14116
14117       # Commands to make compiler produce verbose output that lists
14118       # what "hidden" libraries, object files and flags are used when
14119       # linking a shared library.
14120       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14121
14122     else
14123       GXX=no
14124       with_gnu_ld=no
14125       wlarc=
14126     fi
14127
14128     # PORTME: fill in a description of your system's C++ link characteristics
14129     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14130 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14131     ld_shlibs_CXX=yes
14132     case $host_os in
14133       aix3*)
14134         # FIXME: insert proper C++ library support
14135         ld_shlibs_CXX=no
14136         ;;
14137       aix[4-9]*)
14138         if test ia64 = "$host_cpu"; then
14139           # On IA64, the linker does run time linking by default, so we don't
14140           # have to do anything special.
14141           aix_use_runtimelinking=no
14142           exp_sym_flag='-Bexport'
14143           no_entry_flag=
14144         else
14145           aix_use_runtimelinking=no
14146
14147           # Test if we are trying to use run time linking or normal
14148           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14149           # have runtime linking enabled, and use it for executables.
14150           # For shared libraries, we enable/disable runtime linking
14151           # depending on the kind of the shared library created -
14152           # when "with_aix_soname,aix_use_runtimelinking" is:
14153           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14154           # "aix,yes"  lib.so          shared, rtl:yes, for executables
14155           #            lib.a           static archive
14156           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14157           #            lib.a(lib.so.V) shared, rtl:no,  for executables
14158           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14159           #            lib.a(lib.so.V) shared, rtl:no
14160           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14161           #            lib.a           static archive
14162           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14163             for ld_flag in $LDFLAGS; do
14164               case $ld_flag in
14165               *-brtl*)
14166                 aix_use_runtimelinking=yes
14167                 break
14168                 ;;
14169               esac
14170             done
14171             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14172               # With aix-soname=svr4, we create the lib.so.V shared archives only,
14173               # so we don't have lib.a shared libs to link our executables.
14174               # We have to force runtime linking in this case.
14175               aix_use_runtimelinking=yes
14176               LDFLAGS="$LDFLAGS -Wl,-brtl"
14177             fi
14178             ;;
14179           esac
14180
14181           exp_sym_flag='-bexport'
14182           no_entry_flag='-bnoentry'
14183         fi
14184
14185         # When large executables or shared objects are built, AIX ld can
14186         # have problems creating the table of contents.  If linking a library
14187         # or program results in "error TOC overflow" add -mminimal-toc to
14188         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14189         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14190
14191         archive_cmds_CXX=''
14192         hardcode_direct_CXX=yes
14193         hardcode_direct_absolute_CXX=yes
14194         hardcode_libdir_separator_CXX=':'
14195         link_all_deplibs_CXX=yes
14196         file_list_spec_CXX='$wl-f,'
14197         case $with_aix_soname,$aix_use_runtimelinking in
14198         aix,*) ;;       # no import file
14199         svr4,* | *,yes) # use import file
14200           # The Import File defines what to hardcode.
14201           hardcode_direct_CXX=no
14202           hardcode_direct_absolute_CXX=no
14203           ;;
14204         esac
14205
14206         if test yes = "$GXX"; then
14207           case $host_os in aix4.[012]|aix4.[012].*)
14208           # We only want to do this on AIX 4.2 and lower, the check
14209           # below for broken collect2 doesn't work under 4.3+
14210           collect2name=`$CC -print-prog-name=collect2`
14211           if test -f "$collect2name" &&
14212              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14213           then
14214             # We have reworked collect2
14215             :
14216           else
14217             # We have old collect2
14218             hardcode_direct_CXX=unsupported
14219             # It fails to find uninstalled libraries when the uninstalled
14220             # path is not listed in the libpath.  Setting hardcode_minus_L
14221             # to unsupported forces relinking
14222             hardcode_minus_L_CXX=yes
14223             hardcode_libdir_flag_spec_CXX='-L$libdir'
14224             hardcode_libdir_separator_CXX=
14225           fi
14226           esac
14227           shared_flag='-shared'
14228           if test yes = "$aix_use_runtimelinking"; then
14229             shared_flag=$shared_flag' $wl-G'
14230           fi
14231           # Need to ensure runtime linking is disabled for the traditional
14232           # shared library, or the linker may eventually find shared libraries
14233           # /with/ Import File - we do not want to mix them.
14234           shared_flag_aix='-shared'
14235           shared_flag_svr4='-shared $wl-G'
14236         else
14237           # not using gcc
14238           if test ia64 = "$host_cpu"; then
14239           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14240           # chokes on -Wl,-G. The following line is correct:
14241           shared_flag='-G'
14242           else
14243             if test yes = "$aix_use_runtimelinking"; then
14244               shared_flag='$wl-G'
14245             else
14246               shared_flag='$wl-bM:SRE'
14247             fi
14248             shared_flag_aix='$wl-bM:SRE'
14249             shared_flag_svr4='$wl-G'
14250           fi
14251         fi
14252
14253         export_dynamic_flag_spec_CXX='$wl-bexpall'
14254         # It seems that -bexpall does not export symbols beginning with
14255         # underscore (_), so it is better to generate a list of symbols to
14256         # export.
14257         always_export_symbols_CXX=yes
14258         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14259           # Warning - without using the other runtime loading flags (-brtl),
14260           # -berok will link without error, but may produce a broken library.
14261           # The "-G" linker flag allows undefined symbols.
14262           no_undefined_flag_CXX='-bernotok'
14263           # Determine the default libpath from the value encoded in an empty
14264           # executable.
14265           if test set = "${lt_cv_aix_libpath+set}"; then
14266   aix_libpath=$lt_cv_aix_libpath
14267 else
14268   if test ${lt_cv_aix_libpath__CXX+y}
14269 then :
14270   printf %s "(cached) " >&6
14271 else $as_nop
14272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h.  */
14274
14275 int
14276 main (void)
14277 {
14278
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 if ac_fn_cxx_try_link "$LINENO"
14284 then :
14285
14286   lt_aix_libpath_sed='
14287       /Import File Strings/,/^$/ {
14288           /^0/ {
14289               s/^0  *\([^ ]*\) *$/\1/
14290               p
14291           }
14292       }'
14293   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14294   # Check for a 64-bit object if we didn't find anything.
14295   if test -z "$lt_cv_aix_libpath__CXX"; then
14296     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14297   fi
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14300     conftest$ac_exeext conftest.$ac_ext
14301   if test -z "$lt_cv_aix_libpath__CXX"; then
14302     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14303   fi
14304
14305 fi
14306
14307   aix_libpath=$lt_cv_aix_libpath__CXX
14308 fi
14309
14310           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14311
14312           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14313         else
14314           if test ia64 = "$host_cpu"; then
14315             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14316             allow_undefined_flag_CXX="-z nodefs"
14317             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"
14318           else
14319             # Determine the default libpath from the value encoded in an
14320             # empty executable.
14321             if test set = "${lt_cv_aix_libpath+set}"; then
14322   aix_libpath=$lt_cv_aix_libpath
14323 else
14324   if test ${lt_cv_aix_libpath__CXX+y}
14325 then :
14326   printf %s "(cached) " >&6
14327 else $as_nop
14328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h.  */
14330
14331 int
14332 main (void)
14333 {
14334
14335   ;
14336   return 0;
14337 }
14338 _ACEOF
14339 if ac_fn_cxx_try_link "$LINENO"
14340 then :
14341
14342   lt_aix_libpath_sed='
14343       /Import File Strings/,/^$/ {
14344           /^0/ {
14345               s/^0  *\([^ ]*\) *$/\1/
14346               p
14347           }
14348       }'
14349   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14350   # Check for a 64-bit object if we didn't find anything.
14351   if test -z "$lt_cv_aix_libpath__CXX"; then
14352     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14353   fi
14354 fi
14355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14356     conftest$ac_exeext conftest.$ac_ext
14357   if test -z "$lt_cv_aix_libpath__CXX"; then
14358     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14359   fi
14360
14361 fi
14362
14363   aix_libpath=$lt_cv_aix_libpath__CXX
14364 fi
14365
14366             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14367             # Warning - without using the other run time loading flags,
14368             # -berok will link without error, but may produce a broken library.
14369             no_undefined_flag_CXX=' $wl-bernotok'
14370             allow_undefined_flag_CXX=' $wl-berok'
14371             if test yes = "$with_gnu_ld"; then
14372               # We only use this code for GNU lds that support --whole-archive.
14373               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14374             else
14375               # Exported symbols can be pulled into shared objects from archives
14376               whole_archive_flag_spec_CXX='$convenience'
14377             fi
14378             archive_cmds_need_lc_CXX=yes
14379             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14380             # -brtl affects multiple linker settings, -berok does not and is overridden later
14381             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14382             if test svr4 != "$with_aix_soname"; then
14383               # This is similar to how AIX traditionally builds its shared
14384               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14385               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14386             fi
14387             if test aix != "$with_aix_soname"; then
14388               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14389             else
14390               # used by -dlpreopen to get the symbols
14391               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14392             fi
14393             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14394           fi
14395         fi
14396         ;;
14397
14398       beos*)
14399         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14400           allow_undefined_flag_CXX=unsupported
14401           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14402           # support --undefined.  This deserves some investigation.  FIXME
14403           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14404         else
14405           ld_shlibs_CXX=no
14406         fi
14407         ;;
14408
14409       chorus*)
14410         case $cc_basename in
14411           *)
14412           # FIXME: insert proper C++ library support
14413           ld_shlibs_CXX=no
14414           ;;
14415         esac
14416         ;;
14417
14418       cygwin* | mingw* | pw32* | cegcc*)
14419         case $GXX,$cc_basename in
14420         ,cl* | no,cl* | ,icl* | no,icl*)
14421           # Native MSVC or ICC
14422           # hardcode_libdir_flag_spec is actually meaningless, as there is
14423           # no search path for DLLs.
14424           hardcode_libdir_flag_spec_CXX=' '
14425           allow_undefined_flag_CXX=unsupported
14426           always_export_symbols_CXX=yes
14427           file_list_spec_CXX='@'
14428           # Tell ltmain to make .lib files, not .a files.
14429           libext=lib
14430           # Tell ltmain to make .dll files, not .so files.
14431           shrext_cmds=.dll
14432           # FIXME: Setting linknames here is a bad hack.
14433           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14434           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14435               cp "$export_symbols" "$output_objdir/$soname.def";
14436               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14437             else
14438               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14439             fi~
14440             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14441             linknames='
14442           # The linker will not automatically build a static lib if we build a DLL.
14443           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14444           enable_shared_with_static_runtimes_CXX=yes
14445           # Don't use ranlib
14446           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14447           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14448             lt_tool_outputfile="@TOOL_OUTPUT@"~
14449             case $lt_outputfile in
14450               *.exe|*.EXE) ;;
14451               *)
14452                 lt_outputfile=$lt_outputfile.exe
14453                 lt_tool_outputfile=$lt_tool_outputfile.exe
14454                 ;;
14455             esac~
14456             func_to_tool_file "$lt_outputfile"~
14457             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14458               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14459               $RM "$lt_outputfile.manifest";
14460             fi'
14461           ;;
14462         *)
14463           # g++
14464           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14465           # as there is no search path for DLLs.
14466           hardcode_libdir_flag_spec_CXX='-L$libdir'
14467           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14468           allow_undefined_flag_CXX=unsupported
14469           always_export_symbols_CXX=no
14470           enable_shared_with_static_runtimes_CXX=yes
14471
14472           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14473             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'
14474             # If the export-symbols file already is a .def file, use it as
14475             # is; otherwise, prepend EXPORTS...
14476             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14477               cp $export_symbols $output_objdir/$soname.def;
14478             else
14479               echo EXPORTS > $output_objdir/$soname.def;
14480               cat $export_symbols >> $output_objdir/$soname.def;
14481             fi~
14482             $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'
14483           else
14484             ld_shlibs_CXX=no
14485           fi
14486           ;;
14487         esac
14488         ;;
14489       darwin* | rhapsody*)
14490
14491
14492   archive_cmds_need_lc_CXX=no
14493   hardcode_direct_CXX=no
14494   hardcode_automatic_CXX=yes
14495   hardcode_shlibpath_var_CXX=unsupported
14496   if test yes = "$lt_cv_ld_force_load"; then
14497     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\"`'
14498
14499   else
14500     whole_archive_flag_spec_CXX=''
14501   fi
14502   link_all_deplibs_CXX=yes
14503   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14504   case $cc_basename in
14505      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14506      *) _lt_dar_can_shared=$GCC ;;
14507   esac
14508   if test yes = "$_lt_dar_can_shared"; then
14509     output_verbose_link_cmd=func_echo_all
14510     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"
14511     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14512     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"
14513     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"
14514        if test yes != "$lt_cv_apple_cc_single_mod"; then
14515       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"
14516       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"
14517     fi
14518
14519   else
14520   ld_shlibs_CXX=no
14521   fi
14522
14523         ;;
14524
14525       os2*)
14526         hardcode_libdir_flag_spec_CXX='-L$libdir'
14527         hardcode_minus_L_CXX=yes
14528         allow_undefined_flag_CXX=unsupported
14529         shrext_cmds=.dll
14530         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14531           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14532           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14533           $ECHO EXPORTS >> $output_objdir/$libname.def~
14534           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14535           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14536           emximp -o $lib $output_objdir/$libname.def'
14537         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14538           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14539           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14540           $ECHO EXPORTS >> $output_objdir/$libname.def~
14541           prefix_cmds="$SED"~
14542           if test EXPORTS = "`$SED 1q $export_symbols`"; then
14543             prefix_cmds="$prefix_cmds -e 1d";
14544           fi~
14545           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14546           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14547           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14548           emximp -o $lib $output_objdir/$libname.def'
14549         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14550         enable_shared_with_static_runtimes_CXX=yes
14551         file_list_spec_CXX='@'
14552         ;;
14553
14554       dgux*)
14555         case $cc_basename in
14556           ec++*)
14557             # FIXME: insert proper C++ library support
14558             ld_shlibs_CXX=no
14559             ;;
14560           ghcx*)
14561             # Green Hills C++ Compiler
14562             # FIXME: insert proper C++ library support
14563             ld_shlibs_CXX=no
14564             ;;
14565           *)
14566             # FIXME: insert proper C++ library support
14567             ld_shlibs_CXX=no
14568             ;;
14569         esac
14570         ;;
14571
14572       freebsd2.*)
14573         # C++ shared libraries reported to be fairly broken before
14574         # switch to ELF
14575         ld_shlibs_CXX=no
14576         ;;
14577
14578       freebsd-elf*)
14579         archive_cmds_need_lc_CXX=no
14580         ;;
14581
14582       freebsd* | dragonfly* | midnightbsd*)
14583         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14584         # conventions
14585         ld_shlibs_CXX=yes
14586         ;;
14587
14588       haiku*)
14589         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14590         link_all_deplibs_CXX=yes
14591         ;;
14592
14593       hpux9*)
14594         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14595         hardcode_libdir_separator_CXX=:
14596         export_dynamic_flag_spec_CXX='$wl-E'
14597         hardcode_direct_CXX=yes
14598         hardcode_minus_L_CXX=yes # Not in the search PATH,
14599                                              # but as the default
14600                                              # location of the library.
14601
14602         case $cc_basename in
14603           CC*)
14604             # FIXME: insert proper C++ library support
14605             ld_shlibs_CXX=no
14606             ;;
14607           aCC*)
14608             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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14609             # Commands to make compiler produce verbose output that lists
14610             # what "hidden" libraries, object files and flags are used when
14611             # linking a shared library.
14612             #
14613             # There doesn't appear to be a way to prevent this compiler from
14614             # explicitly linking system object files so we need to strip them
14615             # from the output so that they don't get included in the library
14616             # dependencies.
14617             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"'
14618             ;;
14619           *)
14620             if test yes = "$GXX"; then
14621               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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14622             else
14623               # FIXME: insert proper C++ library support
14624               ld_shlibs_CXX=no
14625             fi
14626             ;;
14627         esac
14628         ;;
14629
14630       hpux10*|hpux11*)
14631         if test no = "$with_gnu_ld"; then
14632           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14633           hardcode_libdir_separator_CXX=:
14634
14635           case $host_cpu in
14636             hppa*64*|ia64*)
14637               ;;
14638             *)
14639               export_dynamic_flag_spec_CXX='$wl-E'
14640               ;;
14641           esac
14642         fi
14643         case $host_cpu in
14644           hppa*64*|ia64*)
14645             hardcode_direct_CXX=no
14646             hardcode_shlibpath_var_CXX=no
14647             ;;
14648           *)
14649             hardcode_direct_CXX=yes
14650             hardcode_direct_absolute_CXX=yes
14651             hardcode_minus_L_CXX=yes # Not in the search PATH,
14652                                                  # but as the default
14653                                                  # location of the library.
14654             ;;
14655         esac
14656
14657         case $cc_basename in
14658           CC*)
14659             # FIXME: insert proper C++ library support
14660             ld_shlibs_CXX=no
14661             ;;
14662           aCC*)
14663             case $host_cpu in
14664               hppa*64*)
14665                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14666                 ;;
14667               ia64*)
14668                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14669                 ;;
14670               *)
14671                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14672                 ;;
14673             esac
14674             # Commands to make compiler produce verbose output that lists
14675             # what "hidden" libraries, object files and flags are used when
14676             # linking a shared library.
14677             #
14678             # There doesn't appear to be a way to prevent this compiler from
14679             # explicitly linking system object files so we need to strip them
14680             # from the output so that they don't get included in the library
14681             # dependencies.
14682             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"'
14683             ;;
14684           *)
14685             if test yes = "$GXX"; then
14686               if test no = "$with_gnu_ld"; then
14687                 case $host_cpu in
14688                   hppa*64*)
14689                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14690                     ;;
14691                   ia64*)
14692                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14693                     ;;
14694                   *)
14695                     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'
14696                     ;;
14697                 esac
14698               fi
14699             else
14700               # FIXME: insert proper C++ library support
14701               ld_shlibs_CXX=no
14702             fi
14703             ;;
14704         esac
14705         ;;
14706
14707       interix[3-9]*)
14708         hardcode_direct_CXX=no
14709         hardcode_shlibpath_var_CXX=no
14710         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14711         export_dynamic_flag_spec_CXX='$wl-E'
14712         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14713         # Instead, shared libraries are loaded at an image base (0x10000000 by
14714         # default) and relocated if they conflict, which is a slow very memory
14715         # consuming and fragmenting process.  To avoid this, we pick a random,
14716         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14717         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14718         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'
14719         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'
14720         ;;
14721       irix5* | irix6*)
14722         case $cc_basename in
14723           CC*)
14724             # SGI C++
14725             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'
14726
14727             # Archives containing C++ object files must be created using
14728             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14729             # necessary to make sure instantiated templates are included
14730             # in the archive.
14731             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14732             ;;
14733           *)
14734             if test yes = "$GXX"; then
14735               if test no = "$with_gnu_ld"; then
14736                 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'
14737               else
14738                 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'
14739               fi
14740             fi
14741             link_all_deplibs_CXX=yes
14742             ;;
14743         esac
14744         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14745         hardcode_libdir_separator_CXX=:
14746         inherit_rpath_CXX=yes
14747         ;;
14748
14749       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14750         case $cc_basename in
14751           KCC*)
14752             # Kuck and Associates, Inc. (KAI) C++ Compiler
14753
14754             # KCC will only create a shared library if the output file
14755             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14756             # to its proper name (with version) after linking.
14757             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'
14758             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'
14759             # Commands to make compiler produce verbose output that lists
14760             # what "hidden" libraries, object files and flags are used when
14761             # linking a shared library.
14762             #
14763             # There doesn't appear to be a way to prevent this compiler from
14764             # explicitly linking system object files so we need to strip them
14765             # from the output so that they don't get included in the library
14766             # dependencies.
14767             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"'
14768
14769             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14770             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14771
14772             # Archives containing C++ object files must be created using
14773             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14774             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14775             ;;
14776           icpc* | ecpc* )
14777             # Intel C++
14778             with_gnu_ld=yes
14779             # version 8.0 and above of icpc choke on multiply defined symbols
14780             # if we add $predep_objects and $postdep_objects, however 7.1 and
14781             # earlier do not add the objects themselves.
14782             case `$CC -V 2>&1` in
14783               *"Version 7."*)
14784                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14785                 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'
14786                 ;;
14787               *)  # Version 8.0 or newer
14788                 tmp_idyn=
14789                 case $host_cpu in
14790                   ia64*) tmp_idyn=' -i_dynamic';;
14791                 esac
14792                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14793                 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'
14794                 ;;
14795             esac
14796             archive_cmds_need_lc_CXX=no
14797             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14798             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14799             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14800             ;;
14801           pgCC* | pgcpp*)
14802             # Portland Group C++ compiler
14803             case `$CC -V` in
14804             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14805               prelink_cmds_CXX='tpldir=Template.dir~
14806                rm -rf $tpldir~
14807                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14808                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14809               old_archive_cmds_CXX='tpldir=Template.dir~
14810                 rm -rf $tpldir~
14811                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14812                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14813                 $RANLIB $oldlib'
14814               archive_cmds_CXX='tpldir=Template.dir~
14815                 rm -rf $tpldir~
14816                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14817                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14818               archive_expsym_cmds_CXX='tpldir=Template.dir~
14819                 rm -rf $tpldir~
14820                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14821                 $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'
14822               ;;
14823             *) # Version 6 and above use weak symbols
14824               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14825               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'
14826               ;;
14827             esac
14828
14829             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14830             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14831             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'
14832             ;;
14833           cxx*)
14834             # Compaq C++
14835             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14836             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'
14837
14838             runpath_var=LD_RUN_PATH
14839             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14840             hardcode_libdir_separator_CXX=:
14841
14842             # Commands to make compiler produce verbose output that lists
14843             # what "hidden" libraries, object files and flags are used when
14844             # linking a shared library.
14845             #
14846             # There doesn't appear to be a way to prevent this compiler from
14847             # explicitly linking system object files so we need to strip them
14848             # from the output so that they don't get included in the library
14849             # dependencies.
14850             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'
14851             ;;
14852           xl* | mpixl* | bgxl*)
14853             # IBM XL 8.0 on PPC, with GNU ld
14854             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14855             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14856             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14857             if test yes = "$supports_anon_versioning"; then
14858               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14859                 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14860                 echo "local: *; };" >> $output_objdir/$libname.ver~
14861                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14862             fi
14863             ;;
14864           *)
14865             case `$CC -V 2>&1 | $SED 5q` in
14866             *Sun\ C*)
14867               # Sun C++ 5.9
14868               no_undefined_flag_CXX=' -zdefs'
14869               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14870               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'
14871               hardcode_libdir_flag_spec_CXX='-R$libdir'
14872               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'
14873               compiler_needs_object_CXX=yes
14874
14875               # Not sure whether something based on
14876               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14877               # would be better.
14878               output_verbose_link_cmd='func_echo_all'
14879
14880               # Archives containing C++ object files must be created using
14881               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14882               # necessary to make sure instantiated templates are included
14883               # in the archive.
14884               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14885               ;;
14886             esac
14887             ;;
14888         esac
14889         ;;
14890
14891       lynxos*)
14892         # FIXME: insert proper C++ library support
14893         ld_shlibs_CXX=no
14894         ;;
14895
14896       m88k*)
14897         # FIXME: insert proper C++ library support
14898         ld_shlibs_CXX=no
14899         ;;
14900
14901       mvs*)
14902         case $cc_basename in
14903           cxx*)
14904             # FIXME: insert proper C++ library support
14905             ld_shlibs_CXX=no
14906             ;;
14907           *)
14908             # FIXME: insert proper C++ library support
14909             ld_shlibs_CXX=no
14910             ;;
14911         esac
14912         ;;
14913
14914       netbsd*)
14915         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14916           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14917           wlarc=
14918           hardcode_libdir_flag_spec_CXX='-R$libdir'
14919           hardcode_direct_CXX=yes
14920           hardcode_shlibpath_var_CXX=no
14921         fi
14922         # Workaround some broken pre-1.5 toolchains
14923         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14924         ;;
14925
14926       *nto* | *qnx*)
14927         ld_shlibs_CXX=yes
14928         ;;
14929
14930       openbsd* | bitrig*)
14931         if test -f /usr/libexec/ld.so; then
14932           hardcode_direct_CXX=yes
14933           hardcode_shlibpath_var_CXX=no
14934           hardcode_direct_absolute_CXX=yes
14935           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14936           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14937           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14938             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14939             export_dynamic_flag_spec_CXX='$wl-E'
14940             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14941           fi
14942           output_verbose_link_cmd=func_echo_all
14943         else
14944           ld_shlibs_CXX=no
14945         fi
14946         ;;
14947
14948       osf3* | osf4* | osf5*)
14949         case $cc_basename in
14950           KCC*)
14951             # Kuck and Associates, Inc. (KAI) C++ Compiler
14952
14953             # KCC will only create a shared library if the output file
14954             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14955             # to its proper name (with version) after linking.
14956             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'
14957
14958             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14959             hardcode_libdir_separator_CXX=:
14960
14961             # Archives containing C++ object files must be created using
14962             # the KAI C++ compiler.
14963             case $host in
14964               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14965               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14966             esac
14967             ;;
14968           RCC*)
14969             # Rational C++ 2.4.1
14970             # FIXME: insert proper C++ library support
14971             ld_shlibs_CXX=no
14972             ;;
14973           cxx*)
14974             case $host in
14975               osf3*)
14976                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14977                 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'
14978                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14979                 ;;
14980               *)
14981                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14982                 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'
14983                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14984                   echo "-hidden">> $lib.exp~
14985                   $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~
14986                   $RM $lib.exp'
14987                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14988                 ;;
14989             esac
14990
14991             hardcode_libdir_separator_CXX=:
14992
14993             # Commands to make compiler produce verbose output that lists
14994             # what "hidden" libraries, object files and flags are used when
14995             # linking a shared library.
14996             #
14997             # There doesn't appear to be a way to prevent this compiler from
14998             # explicitly linking system object files so we need to strip them
14999             # from the output so that they don't get included in the library
15000             # dependencies.
15001             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"'
15002             ;;
15003           *)
15004             if test yes,no = "$GXX,$with_gnu_ld"; then
15005               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15006               case $host in
15007                 osf3*)
15008                   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'
15009                   ;;
15010                 *)
15011                   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'
15012                   ;;
15013               esac
15014
15015               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15016               hardcode_libdir_separator_CXX=:
15017
15018               # Commands to make compiler produce verbose output that lists
15019               # what "hidden" libraries, object files and flags are used when
15020               # linking a shared library.
15021               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15022
15023             else
15024               # FIXME: insert proper C++ library support
15025               ld_shlibs_CXX=no
15026             fi
15027             ;;
15028         esac
15029         ;;
15030
15031       psos*)
15032         # FIXME: insert proper C++ library support
15033         ld_shlibs_CXX=no
15034         ;;
15035
15036       sunos4*)
15037         case $cc_basename in
15038           CC*)
15039             # Sun C++ 4.x
15040             # FIXME: insert proper C++ library support
15041             ld_shlibs_CXX=no
15042             ;;
15043           lcc*)
15044             # Lucid
15045             # FIXME: insert proper C++ library support
15046             ld_shlibs_CXX=no
15047             ;;
15048           *)
15049             # FIXME: insert proper C++ library support
15050             ld_shlibs_CXX=no
15051             ;;
15052         esac
15053         ;;
15054
15055       solaris*)
15056         case $cc_basename in
15057           CC* | sunCC*)
15058             # Sun C++ 4.2, 5.x and Centerline C++
15059             archive_cmds_need_lc_CXX=yes
15060             no_undefined_flag_CXX=' -zdefs'
15061             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15062             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15063               $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'
15064
15065             hardcode_libdir_flag_spec_CXX='-R$libdir'
15066             hardcode_shlibpath_var_CXX=no
15067             case $host_os in
15068               solaris2.[0-5] | solaris2.[0-5].*) ;;
15069               *)
15070                 # The compiler driver will combine and reorder linker options,
15071                 # but understands '-z linker_flag'.
15072                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15073                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15074                 ;;
15075             esac
15076             link_all_deplibs_CXX=yes
15077
15078             output_verbose_link_cmd='func_echo_all'
15079
15080             # Archives containing C++ object files must be created using
15081             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15082             # necessary to make sure instantiated templates are included
15083             # in the archive.
15084             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15085             ;;
15086           gcx*)
15087             # Green Hills C++ Compiler
15088             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15089
15090             # The C++ compiler must be used to create the archive.
15091             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15092             ;;
15093           *)
15094             # GNU C++ compiler with Solaris linker
15095             if test yes,no = "$GXX,$with_gnu_ld"; then
15096               no_undefined_flag_CXX=' $wl-z ${wl}defs'
15097               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15098                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15099                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15100                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15101
15102                 # Commands to make compiler produce verbose output that lists
15103                 # what "hidden" libraries, object files and flags are used when
15104                 # linking a shared library.
15105                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15106               else
15107                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15108                 # platform.
15109                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15110                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15111                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15112
15113                 # Commands to make compiler produce verbose output that lists
15114                 # what "hidden" libraries, object files and flags are used when
15115                 # linking a shared library.
15116                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15117               fi
15118
15119               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15120               case $host_os in
15121                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15122                 *)
15123                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15124                   ;;
15125               esac
15126             fi
15127             ;;
15128         esac
15129         ;;
15130
15131     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15132       no_undefined_flag_CXX='$wl-z,text'
15133       archive_cmds_need_lc_CXX=no
15134       hardcode_shlibpath_var_CXX=no
15135       runpath_var='LD_RUN_PATH'
15136
15137       case $cc_basename in
15138         CC*)
15139           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15140           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15141           ;;
15142         *)
15143           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15144           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15145           ;;
15146       esac
15147       ;;
15148
15149       sysv5* | sco3.2v5* | sco5v6*)
15150         # Note: We CANNOT use -z defs as we might desire, because we do not
15151         # link with -lc, and that would cause any symbols used from libc to
15152         # always be unresolved, which means just about no library would
15153         # ever link correctly.  If we're not using GNU ld we use -z text
15154         # though, which does catch some bad symbols but isn't as heavy-handed
15155         # as -z defs.
15156         no_undefined_flag_CXX='$wl-z,text'
15157         allow_undefined_flag_CXX='$wl-z,nodefs'
15158         archive_cmds_need_lc_CXX=no
15159         hardcode_shlibpath_var_CXX=no
15160         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15161         hardcode_libdir_separator_CXX=':'
15162         link_all_deplibs_CXX=yes
15163         export_dynamic_flag_spec_CXX='$wl-Bexport'
15164         runpath_var='LD_RUN_PATH'
15165
15166         case $cc_basename in
15167           CC*)
15168             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15171               '"$old_archive_cmds_CXX"
15172             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15173               '"$reload_cmds_CXX"
15174             ;;
15175           *)
15176             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15177             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15178             ;;
15179         esac
15180       ;;
15181
15182       tandem*)
15183         case $cc_basename in
15184           NCC*)
15185             # NonStop-UX NCC 3.20
15186             # FIXME: insert proper C++ library support
15187             ld_shlibs_CXX=no
15188             ;;
15189           *)
15190             # FIXME: insert proper C++ library support
15191             ld_shlibs_CXX=no
15192             ;;
15193         esac
15194         ;;
15195
15196       vxworks*)
15197         # FIXME: insert proper C++ library support
15198         ld_shlibs_CXX=no
15199         ;;
15200
15201       *)
15202         # FIXME: insert proper C++ library support
15203         ld_shlibs_CXX=no
15204         ;;
15205     esac
15206
15207     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15208 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15209     test no = "$ld_shlibs_CXX" && can_build_shared=no
15210
15211     GCC_CXX=$GXX
15212     LD_CXX=$LD
15213
15214     ## CAVEAT EMPTOR:
15215     ## There is no encapsulation within the following macros, do not change
15216     ## the running order or otherwise move them around unless you know exactly
15217     ## what you are doing...
15218     # Dependencies to place before and after the object being linked:
15219 predep_objects_CXX=
15220 postdep_objects_CXX=
15221 predeps_CXX=
15222 postdeps_CXX=
15223 compiler_lib_search_path_CXX=
15224
15225 cat > conftest.$ac_ext <<_LT_EOF
15226 class Foo
15227 {
15228 public:
15229   Foo (void) { a = 0; }
15230 private:
15231   int a;
15232 };
15233 _LT_EOF
15234
15235
15236 _lt_libdeps_save_CFLAGS=$CFLAGS
15237 case "$CC $CFLAGS " in #(
15238 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15239 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15240 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15241 esac
15242
15243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15244   (eval $ac_compile) 2>&5
15245   ac_status=$?
15246   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15247   test $ac_status = 0; }; then
15248   # Parse the compiler output and extract the necessary
15249   # objects, libraries and library flags.
15250
15251   # Sentinel used to keep track of whether or not we are before
15252   # the conftest object file.
15253   pre_test_object_deps_done=no
15254
15255   for p in `eval "$output_verbose_link_cmd"`; do
15256     case $prev$p in
15257
15258     -L* | -R* | -l*)
15259        # Some compilers place space between "-{L,R}" and the path.
15260        # Remove the space.
15261        if test x-L = "$p" ||
15262           test x-R = "$p"; then
15263          prev=$p
15264          continue
15265        fi
15266
15267        # Expand the sysroot to ease extracting the directories later.
15268        if test -z "$prev"; then
15269          case $p in
15270          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15271          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15272          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15273          esac
15274        fi
15275        case $p in
15276        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15277        esac
15278        if test no = "$pre_test_object_deps_done"; then
15279          case $prev in
15280          -L | -R)
15281            # Internal compiler library paths should come after those
15282            # provided the user.  The postdeps already come after the
15283            # user supplied libs so there is no need to process them.
15284            if test -z "$compiler_lib_search_path_CXX"; then
15285              compiler_lib_search_path_CXX=$prev$p
15286            else
15287              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15288            fi
15289            ;;
15290          # The "-l" case would never come before the object being
15291          # linked, so don't bother handling this case.
15292          esac
15293        else
15294          if test -z "$postdeps_CXX"; then
15295            postdeps_CXX=$prev$p
15296          else
15297            postdeps_CXX="${postdeps_CXX} $prev$p"
15298          fi
15299        fi
15300        prev=
15301        ;;
15302
15303     *.lto.$objext) ;; # Ignore GCC LTO objects
15304     *.$objext)
15305        # This assumes that the test object file only shows up
15306        # once in the compiler output.
15307        if test "$p" = "conftest.$objext"; then
15308          pre_test_object_deps_done=yes
15309          continue
15310        fi
15311
15312        if test no = "$pre_test_object_deps_done"; then
15313          if test -z "$predep_objects_CXX"; then
15314            predep_objects_CXX=$p
15315          else
15316            predep_objects_CXX="$predep_objects_CXX $p"
15317          fi
15318        else
15319          if test -z "$postdep_objects_CXX"; then
15320            postdep_objects_CXX=$p
15321          else
15322            postdep_objects_CXX="$postdep_objects_CXX $p"
15323          fi
15324        fi
15325        ;;
15326
15327     *) ;; # Ignore the rest.
15328
15329     esac
15330   done
15331
15332   # Clean up.
15333   rm -f a.out a.exe
15334 else
15335   echo "libtool.m4: error: problem compiling CXX test program"
15336 fi
15337
15338 $RM -f confest.$objext
15339 CFLAGS=$_lt_libdeps_save_CFLAGS
15340
15341 # PORTME: override above test on systems where it is broken
15342 case $host_os in
15343 interix[3-9]*)
15344   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15345   # hack all around it, let's just trust "g++" to DTRT.
15346   predep_objects_CXX=
15347   postdep_objects_CXX=
15348   postdeps_CXX=
15349   ;;
15350 esac
15351
15352
15353 case " $postdeps_CXX " in
15354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15355 esac
15356  compiler_lib_search_dirs_CXX=
15357 if test -n "${compiler_lib_search_path_CXX}"; then
15358  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15359 fi
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391     lt_prog_compiler_wl_CXX=
15392 lt_prog_compiler_pic_CXX=
15393 lt_prog_compiler_static_CXX=
15394
15395
15396   # C++ specific cases for pic, static, wl, etc.
15397   if test yes = "$GXX"; then
15398     lt_prog_compiler_wl_CXX='-Wl,'
15399     lt_prog_compiler_static_CXX='-static'
15400
15401     case $host_os in
15402     aix*)
15403       # All AIX code is PIC.
15404       if test ia64 = "$host_cpu"; then
15405         # AIX 5 now supports IA64 processor
15406         lt_prog_compiler_static_CXX='-Bstatic'
15407       fi
15408       lt_prog_compiler_pic_CXX='-fPIC'
15409       ;;
15410
15411     amigaos*)
15412       case $host_cpu in
15413       powerpc)
15414             # see comment about AmigaOS4 .so support
15415             lt_prog_compiler_pic_CXX='-fPIC'
15416         ;;
15417       m68k)
15418             # FIXME: we need at least 68020 code to build shared libraries, but
15419             # adding the '-m68020' flag to GCC prevents building anything better,
15420             # like '-m68040'.
15421             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15422         ;;
15423       esac
15424       ;;
15425
15426     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15427       # PIC is the default for these OSes.
15428       ;;
15429     mingw* | cygwin* | os2* | pw32* | cegcc*)
15430       # This hack is so that the source file can tell whether it is being
15431       # built for inclusion in a dll (and should export symbols for example).
15432       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15433       # (--disable-auto-import) libraries
15434       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15435       case $host_os in
15436       os2*)
15437         lt_prog_compiler_static_CXX='$wl-static'
15438         ;;
15439       esac
15440       ;;
15441     darwin* | rhapsody*)
15442       # PIC is the default on this platform
15443       # Common symbols not allowed in MH_DYLIB files
15444       lt_prog_compiler_pic_CXX='-fno-common'
15445       ;;
15446     *djgpp*)
15447       # DJGPP does not support shared libraries at all
15448       lt_prog_compiler_pic_CXX=
15449       ;;
15450     haiku*)
15451       # PIC is the default for Haiku.
15452       # The "-static" flag exists, but is broken.
15453       lt_prog_compiler_static_CXX=
15454       ;;
15455     interix[3-9]*)
15456       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15457       # Instead, we relocate shared libraries at runtime.
15458       ;;
15459     sysv4*MP*)
15460       if test -d /usr/nec; then
15461         lt_prog_compiler_pic_CXX=-Kconform_pic
15462       fi
15463       ;;
15464     hpux*)
15465       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15466       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15467       # sets the default TLS model and affects inlining.
15468       case $host_cpu in
15469       hppa*64*)
15470         ;;
15471       *)
15472         lt_prog_compiler_pic_CXX='-fPIC'
15473         ;;
15474       esac
15475       ;;
15476     *qnx* | *nto*)
15477       # QNX uses GNU C++, but need to define -shared option too, otherwise
15478       # it will coredump.
15479       lt_prog_compiler_pic_CXX='-fPIC -shared'
15480       ;;
15481     *)
15482       lt_prog_compiler_pic_CXX='-fPIC'
15483       ;;
15484     esac
15485   else
15486     case $host_os in
15487       aix[4-9]*)
15488         # All AIX code is PIC.
15489         if test ia64 = "$host_cpu"; then
15490           # AIX 5 now supports IA64 processor
15491           lt_prog_compiler_static_CXX='-Bstatic'
15492         else
15493           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15494         fi
15495         ;;
15496       chorus*)
15497         case $cc_basename in
15498         cxch68*)
15499           # Green Hills C++ Compiler
15500           # _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"
15501           ;;
15502         esac
15503         ;;
15504       mingw* | cygwin* | os2* | pw32* | cegcc*)
15505         # This hack is so that the source file can tell whether it is being
15506         # built for inclusion in a dll (and should export symbols for example).
15507         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15508         ;;
15509       dgux*)
15510         case $cc_basename in
15511           ec++*)
15512             lt_prog_compiler_pic_CXX='-KPIC'
15513             ;;
15514           ghcx*)
15515             # Green Hills C++ Compiler
15516             lt_prog_compiler_pic_CXX='-pic'
15517             ;;
15518           *)
15519             ;;
15520         esac
15521         ;;
15522       freebsd* | dragonfly* | midnightbsd*)
15523         # FreeBSD uses GNU C++
15524         ;;
15525       hpux9* | hpux10* | hpux11*)
15526         case $cc_basename in
15527           CC*)
15528             lt_prog_compiler_wl_CXX='-Wl,'
15529             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15530             if test ia64 != "$host_cpu"; then
15531               lt_prog_compiler_pic_CXX='+Z'
15532             fi
15533             ;;
15534           aCC*)
15535             lt_prog_compiler_wl_CXX='-Wl,'
15536             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15537             case $host_cpu in
15538             hppa*64*|ia64*)
15539               # +Z the default
15540               ;;
15541             *)
15542               lt_prog_compiler_pic_CXX='+Z'
15543               ;;
15544             esac
15545             ;;
15546           *)
15547             ;;
15548         esac
15549         ;;
15550       interix*)
15551         # This is c89, which is MS Visual C++ (no shared libs)
15552         # Anyone wants to do a port?
15553         ;;
15554       irix5* | irix6* | nonstopux*)
15555         case $cc_basename in
15556           CC*)
15557             lt_prog_compiler_wl_CXX='-Wl,'
15558             lt_prog_compiler_static_CXX='-non_shared'
15559             # CC pic flag -KPIC is the default.
15560             ;;
15561           *)
15562             ;;
15563         esac
15564         ;;
15565       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15566         case $cc_basename in
15567           KCC*)
15568             # KAI C++ Compiler
15569             lt_prog_compiler_wl_CXX='--backend -Wl,'
15570             lt_prog_compiler_pic_CXX='-fPIC'
15571             ;;
15572           ecpc* )
15573             # old Intel C++ for x86_64, which still supported -KPIC.
15574             lt_prog_compiler_wl_CXX='-Wl,'
15575             lt_prog_compiler_pic_CXX='-KPIC'
15576             lt_prog_compiler_static_CXX='-static'
15577             ;;
15578           icpc* )
15579             # Intel C++, used to be incompatible with GCC.
15580             # ICC 10 doesn't accept -KPIC any more.
15581             lt_prog_compiler_wl_CXX='-Wl,'
15582             lt_prog_compiler_pic_CXX='-fPIC'
15583             lt_prog_compiler_static_CXX='-static'
15584             ;;
15585           pgCC* | pgcpp*)
15586             # Portland Group C++ compiler
15587             lt_prog_compiler_wl_CXX='-Wl,'
15588             lt_prog_compiler_pic_CXX='-fpic'
15589             lt_prog_compiler_static_CXX='-Bstatic'
15590             ;;
15591           cxx*)
15592             # Compaq C++
15593             # Make sure the PIC flag is empty.  It appears that all Alpha
15594             # Linux and Compaq Tru64 Unix objects are PIC.
15595             lt_prog_compiler_pic_CXX=
15596             lt_prog_compiler_static_CXX='-non_shared'
15597             ;;
15598           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15599             # IBM XL 8.0, 9.0 on PPC and BlueGene
15600             lt_prog_compiler_wl_CXX='-Wl,'
15601             lt_prog_compiler_pic_CXX='-qpic'
15602             lt_prog_compiler_static_CXX='-qstaticlink'
15603             ;;
15604           *)
15605             case `$CC -V 2>&1 | $SED 5q` in
15606             *Sun\ C*)
15607               # Sun C++ 5.9
15608               lt_prog_compiler_pic_CXX='-KPIC'
15609               lt_prog_compiler_static_CXX='-Bstatic'
15610               lt_prog_compiler_wl_CXX='-Qoption ld '
15611               ;;
15612             esac
15613             ;;
15614         esac
15615         ;;
15616       lynxos*)
15617         ;;
15618       m88k*)
15619         ;;
15620       mvs*)
15621         case $cc_basename in
15622           cxx*)
15623             lt_prog_compiler_pic_CXX='-W c,exportall'
15624             ;;
15625           *)
15626             ;;
15627         esac
15628         ;;
15629       netbsd*)
15630         ;;
15631       *qnx* | *nto*)
15632         # QNX uses GNU C++, but need to define -shared option too, otherwise
15633         # it will coredump.
15634         lt_prog_compiler_pic_CXX='-fPIC -shared'
15635         ;;
15636       osf3* | osf4* | osf5*)
15637         case $cc_basename in
15638           KCC*)
15639             lt_prog_compiler_wl_CXX='--backend -Wl,'
15640             ;;
15641           RCC*)
15642             # Rational C++ 2.4.1
15643             lt_prog_compiler_pic_CXX='-pic'
15644             ;;
15645           cxx*)
15646             # Digital/Compaq C++
15647             lt_prog_compiler_wl_CXX='-Wl,'
15648             # Make sure the PIC flag is empty.  It appears that all Alpha
15649             # Linux and Compaq Tru64 Unix objects are PIC.
15650             lt_prog_compiler_pic_CXX=
15651             lt_prog_compiler_static_CXX='-non_shared'
15652             ;;
15653           *)
15654             ;;
15655         esac
15656         ;;
15657       psos*)
15658         ;;
15659       solaris*)
15660         case $cc_basename in
15661           CC* | sunCC*)
15662             # Sun C++ 4.2, 5.x and Centerline C++
15663             lt_prog_compiler_pic_CXX='-KPIC'
15664             lt_prog_compiler_static_CXX='-Bstatic'
15665             lt_prog_compiler_wl_CXX='-Qoption ld '
15666             ;;
15667           gcx*)
15668             # Green Hills C++ Compiler
15669             lt_prog_compiler_pic_CXX='-PIC'
15670             ;;
15671           *)
15672             ;;
15673         esac
15674         ;;
15675       sunos4*)
15676         case $cc_basename in
15677           CC*)
15678             # Sun C++ 4.x
15679             lt_prog_compiler_pic_CXX='-pic'
15680             lt_prog_compiler_static_CXX='-Bstatic'
15681             ;;
15682           lcc*)
15683             # Lucid
15684             lt_prog_compiler_pic_CXX='-pic'
15685             ;;
15686           *)
15687             ;;
15688         esac
15689         ;;
15690       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15691         case $cc_basename in
15692           CC*)
15693             lt_prog_compiler_wl_CXX='-Wl,'
15694             lt_prog_compiler_pic_CXX='-KPIC'
15695             lt_prog_compiler_static_CXX='-Bstatic'
15696             ;;
15697         esac
15698         ;;
15699       tandem*)
15700         case $cc_basename in
15701           NCC*)
15702             # NonStop-UX NCC 3.20
15703             lt_prog_compiler_pic_CXX='-KPIC'
15704             ;;
15705           *)
15706             ;;
15707         esac
15708         ;;
15709       vxworks*)
15710         ;;
15711       *)
15712         lt_prog_compiler_can_build_shared_CXX=no
15713         ;;
15714     esac
15715   fi
15716
15717 case $host_os in
15718   # For platforms that do not support PIC, -DPIC is meaningless:
15719   *djgpp*)
15720     lt_prog_compiler_pic_CXX=
15721     ;;
15722   *)
15723     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15724     ;;
15725 esac
15726
15727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15728 printf %s "checking for $compiler option to produce PIC... " >&6; }
15729 if test ${lt_cv_prog_compiler_pic_CXX+y}
15730 then :
15731   printf %s "(cached) " >&6
15732 else $as_nop
15733   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15734 fi
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15736 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15737 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15738
15739 #
15740 # Check to make sure the PIC flag actually works.
15741 #
15742 if test -n "$lt_prog_compiler_pic_CXX"; then
15743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15744 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15745 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15746 then :
15747   printf %s "(cached) " >&6
15748 else $as_nop
15749   lt_cv_prog_compiler_pic_works_CXX=no
15750    ac_outfile=conftest.$ac_objext
15751    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15752    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15753    # Insert the option either (1) after the last *FLAGS variable, or
15754    # (2) before a word containing "conftest.", or (3) at the end.
15755    # Note that $ac_compile itself does not contain backslashes and begins
15756    # with a dollar sign (not a hyphen), so the echo should work correctly.
15757    # The option is referenced via a variable to avoid confusing sed.
15758    lt_compile=`echo "$ac_compile" | $SED \
15759    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15760    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15761    -e 's:$: $lt_compiler_flag:'`
15762    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15763    (eval "$lt_compile" 2>conftest.err)
15764    ac_status=$?
15765    cat conftest.err >&5
15766    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767    if (exit $ac_status) && test -s "$ac_outfile"; then
15768      # The compiler can only warn and ignore the option if not recognized
15769      # So say no if there are warnings other than the usual output.
15770      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15771      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15772      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15773        lt_cv_prog_compiler_pic_works_CXX=yes
15774      fi
15775    fi
15776    $RM conftest*
15777
15778 fi
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15780 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15781
15782 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15783     case $lt_prog_compiler_pic_CXX in
15784      "" | " "*) ;;
15785      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15786      esac
15787 else
15788     lt_prog_compiler_pic_CXX=
15789      lt_prog_compiler_can_build_shared_CXX=no
15790 fi
15791
15792 fi
15793
15794
15795
15796
15797
15798 #
15799 # Check to make sure the static flag actually works.
15800 #
15801 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15803 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15804 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15805 then :
15806   printf %s "(cached) " >&6
15807 else $as_nop
15808   lt_cv_prog_compiler_static_works_CXX=no
15809    save_LDFLAGS=$LDFLAGS
15810    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15811    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15812    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15813      # The linker can only warn and ignore the option if not recognized
15814      # So say no if there are warnings
15815      if test -s conftest.err; then
15816        # Append any errors to the config.log.
15817        cat conftest.err 1>&5
15818        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15819        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15820        if diff conftest.exp conftest.er2 >/dev/null; then
15821          lt_cv_prog_compiler_static_works_CXX=yes
15822        fi
15823      else
15824        lt_cv_prog_compiler_static_works_CXX=yes
15825      fi
15826    fi
15827    $RM -r conftest*
15828    LDFLAGS=$save_LDFLAGS
15829
15830 fi
15831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15832 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15833
15834 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15835     :
15836 else
15837     lt_prog_compiler_static_CXX=
15838 fi
15839
15840
15841
15842
15843     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15844 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15845 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15846 then :
15847   printf %s "(cached) " >&6
15848 else $as_nop
15849   lt_cv_prog_compiler_c_o_CXX=no
15850    $RM -r conftest 2>/dev/null
15851    mkdir conftest
15852    cd conftest
15853    mkdir out
15854    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15855
15856    lt_compiler_flag="-o out/conftest2.$ac_objext"
15857    # Insert the option either (1) after the last *FLAGS variable, or
15858    # (2) before a word containing "conftest.", or (3) at the end.
15859    # Note that $ac_compile itself does not contain backslashes and begins
15860    # with a dollar sign (not a hyphen), so the echo should work correctly.
15861    lt_compile=`echo "$ac_compile" | $SED \
15862    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15864    -e 's:$: $lt_compiler_flag:'`
15865    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15866    (eval "$lt_compile" 2>out/conftest.err)
15867    ac_status=$?
15868    cat out/conftest.err >&5
15869    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15871    then
15872      # The compiler can only warn and ignore the option if not recognized
15873      # So say no if there are warnings
15874      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15875      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15876      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15877        lt_cv_prog_compiler_c_o_CXX=yes
15878      fi
15879    fi
15880    chmod u+w . 2>&5
15881    $RM conftest*
15882    # SGI C++ compiler will create directory out/ii_files/ for
15883    # template instantiation
15884    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15885    $RM out/* && rmdir out
15886    cd ..
15887    $RM -r conftest
15888    $RM conftest*
15889
15890 fi
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15892 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15893
15894
15895
15896     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15897 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15898 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15899 then :
15900   printf %s "(cached) " >&6
15901 else $as_nop
15902   lt_cv_prog_compiler_c_o_CXX=no
15903    $RM -r conftest 2>/dev/null
15904    mkdir conftest
15905    cd conftest
15906    mkdir out
15907    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15908
15909    lt_compiler_flag="-o out/conftest2.$ac_objext"
15910    # Insert the option either (1) after the last *FLAGS variable, or
15911    # (2) before a word containing "conftest.", or (3) at the end.
15912    # Note that $ac_compile itself does not contain backslashes and begins
15913    # with a dollar sign (not a hyphen), so the echo should work correctly.
15914    lt_compile=`echo "$ac_compile" | $SED \
15915    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15917    -e 's:$: $lt_compiler_flag:'`
15918    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15919    (eval "$lt_compile" 2>out/conftest.err)
15920    ac_status=$?
15921    cat out/conftest.err >&5
15922    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15924    then
15925      # The compiler can only warn and ignore the option if not recognized
15926      # So say no if there are warnings
15927      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15928      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15929      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15930        lt_cv_prog_compiler_c_o_CXX=yes
15931      fi
15932    fi
15933    chmod u+w . 2>&5
15934    $RM conftest*
15935    # SGI C++ compiler will create directory out/ii_files/ for
15936    # template instantiation
15937    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15938    $RM out/* && rmdir out
15939    cd ..
15940    $RM -r conftest
15941    $RM conftest*
15942
15943 fi
15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15945 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15946
15947
15948
15949
15950 hard_links=nottested
15951 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15952   # do not overwrite the value of need_locks provided by the user
15953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15954 printf %s "checking if we can lock with hard links... " >&6; }
15955   hard_links=yes
15956   $RM conftest*
15957   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15958   touch conftest.a
15959   ln conftest.a conftest.b 2>&5 || hard_links=no
15960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15962 printf "%s\n" "$hard_links" >&6; }
15963   if test no = "$hard_links"; then
15964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15965 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15966     need_locks=warn
15967   fi
15968 else
15969   need_locks=no
15970 fi
15971
15972
15973
15974     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15975 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15976
15977   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15978   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15979   case $host_os in
15980   aix[4-9]*)
15981     # If we're using GNU nm, then we don't want the "-C" option.
15982     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15983     # Without the "-l" option, or with the "-B" option, AIX nm treats
15984     # weak defined symbols like other global defined symbols, whereas
15985     # GNU nm marks them as "W".
15986     # While the 'weak' keyword is ignored in the Export File, we need
15987     # it in the Import File for the 'aix-soname' feature, so we have
15988     # to replace the "-B" option with "-P" for AIX nm.
15989     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15990       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15991     else
15992       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15993     fi
15994     ;;
15995   pw32*)
15996     export_symbols_cmds_CXX=$ltdll_cmds
15997     ;;
15998   cygwin* | mingw* | cegcc*)
15999     case $cc_basename in
16000     cl* | icl*)
16001       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16002       ;;
16003     *)
16004       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'
16005       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16006       ;;
16007     esac
16008     ;;
16009   *)
16010     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16011     ;;
16012   esac
16013
16014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16015 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16016 test no = "$ld_shlibs_CXX" && can_build_shared=no
16017
16018 with_gnu_ld_CXX=$with_gnu_ld
16019
16020
16021
16022
16023
16024
16025 #
16026 # Do we need to explicitly link libc?
16027 #
16028 case "x$archive_cmds_need_lc_CXX" in
16029 x|xyes)
16030   # Assume -lc should be added
16031   archive_cmds_need_lc_CXX=yes
16032
16033   if test yes,yes = "$GCC,$enable_shared"; then
16034     case $archive_cmds_CXX in
16035     *'~'*)
16036       # FIXME: we may have to deal with multi-command sequences.
16037       ;;
16038     '$CC '*)
16039       # Test whether the compiler implicitly links with -lc since on some
16040       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16041       # to ld, don't add -lc before -lgcc.
16042       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16043 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16044 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16045 then :
16046   printf %s "(cached) " >&6
16047 else $as_nop
16048   $RM conftest*
16049         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16050
16051         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16052   (eval $ac_compile) 2>&5
16053   ac_status=$?
16054   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16055   test $ac_status = 0; } 2>conftest.err; then
16056           soname=conftest
16057           lib=conftest
16058           libobjs=conftest.$ac_objext
16059           deplibs=
16060           wl=$lt_prog_compiler_wl_CXX
16061           pic_flag=$lt_prog_compiler_pic_CXX
16062           compiler_flags=-v
16063           linker_flags=-v
16064           verstring=
16065           output_objdir=.
16066           libname=conftest
16067           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16068           allow_undefined_flag_CXX=
16069           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16070   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16071   ac_status=$?
16072   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16073   test $ac_status = 0; }
16074           then
16075             lt_cv_archive_cmds_need_lc_CXX=no
16076           else
16077             lt_cv_archive_cmds_need_lc_CXX=yes
16078           fi
16079           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16080         else
16081           cat conftest.err 1>&5
16082         fi
16083         $RM conftest*
16084
16085 fi
16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16087 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16088       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16089       ;;
16090     esac
16091   fi
16092   ;;
16093 esac
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16157 printf %s "checking dynamic linker characteristics... " >&6; }
16158
16159 library_names_spec=
16160 libname_spec='lib$name'
16161 soname_spec=
16162 shrext_cmds=.so
16163 postinstall_cmds=
16164 postuninstall_cmds=
16165 finish_cmds=
16166 finish_eval=
16167 shlibpath_var=
16168 shlibpath_overrides_runpath=unknown
16169 version_type=none
16170 dynamic_linker="$host_os ld.so"
16171 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16172 need_lib_prefix=unknown
16173 hardcode_into_libs=no
16174
16175 # when you set need_version to no, make sure it does not cause -set_version
16176 # flags to be left without arguments
16177 need_version=unknown
16178
16179
16180
16181 case $host_os in
16182 aix3*)
16183   version_type=linux # correct to gnu/linux during the next big refactor
16184   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16185   shlibpath_var=LIBPATH
16186
16187   # AIX 3 has no versioning support, so we append a major version to the name.
16188   soname_spec='$libname$release$shared_ext$major'
16189   ;;
16190
16191 aix[4-9]*)
16192   version_type=linux # correct to gnu/linux during the next big refactor
16193   need_lib_prefix=no
16194   need_version=no
16195   hardcode_into_libs=yes
16196   if test ia64 = "$host_cpu"; then
16197     # AIX 5 supports IA64
16198     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16199     shlibpath_var=LD_LIBRARY_PATH
16200   else
16201     # With GCC up to 2.95.x, collect2 would create an import file
16202     # for dependence libraries.  The import file would start with
16203     # the line '#! .'.  This would cause the generated library to
16204     # depend on '.', always an invalid library.  This was fixed in
16205     # development snapshots of GCC prior to 3.0.
16206     case $host_os in
16207       aix4 | aix4.[01] | aix4.[01].*)
16208       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16209            echo ' yes '
16210            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16211         :
16212       else
16213         can_build_shared=no
16214       fi
16215       ;;
16216     esac
16217     # Using Import Files as archive members, it is possible to support
16218     # filename-based versioning of shared library archives on AIX. While
16219     # this would work for both with and without runtime linking, it will
16220     # prevent static linking of such archives. So we do filename-based
16221     # shared library versioning with .so extension only, which is used
16222     # when both runtime linking and shared linking is enabled.
16223     # Unfortunately, runtime linking may impact performance, so we do
16224     # not want this to be the default eventually. Also, we use the
16225     # versioned .so libs for executables only if there is the -brtl
16226     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16227     # To allow for filename-based versioning support, we need to create
16228     # libNAME.so.V as an archive file, containing:
16229     # *) an Import File, referring to the versioned filename of the
16230     #    archive as well as the shared archive member, telling the
16231     #    bitwidth (32 or 64) of that shared object, and providing the
16232     #    list of exported symbols of that shared object, eventually
16233     #    decorated with the 'weak' keyword
16234     # *) the shared object with the F_LOADONLY flag set, to really avoid
16235     #    it being seen by the linker.
16236     # At run time we better use the real file rather than another symlink,
16237     # but for link time we create the symlink libNAME.so -> libNAME.so.V
16238
16239     case $with_aix_soname,$aix_use_runtimelinking in
16240     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16241     # soname into executable. Probably we can add versioning support to
16242     # collect2, so additional links can be useful in future.
16243     aix,yes) # traditional libtool
16244       dynamic_linker='AIX unversionable lib.so'
16245       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16246       # instead of lib<name>.a to let people know that these are not
16247       # typical AIX shared libraries.
16248       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16249       ;;
16250     aix,no) # traditional AIX only
16251       dynamic_linker='AIX lib.a(lib.so.V)'
16252       # We preserve .a as extension for shared libraries through AIX4.2
16253       # and later when we are not doing run time linking.
16254       library_names_spec='$libname$release.a $libname.a'
16255       soname_spec='$libname$release$shared_ext$major'
16256       ;;
16257     svr4,*) # full svr4 only
16258       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16259       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16260       # We do not specify a path in Import Files, so LIBPATH fires.
16261       shlibpath_overrides_runpath=yes
16262       ;;
16263     *,yes) # both, prefer svr4
16264       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16265       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16266       # unpreferred sharedlib libNAME.a needs extra handling
16267       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16268       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16269       # We do not specify a path in Import Files, so LIBPATH fires.
16270       shlibpath_overrides_runpath=yes
16271       ;;
16272     *,no) # both, prefer aix
16273       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16274       library_names_spec='$libname$release.a $libname.a'
16275       soname_spec='$libname$release$shared_ext$major'
16276       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16277       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16278       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16279       ;;
16280     esac
16281     shlibpath_var=LIBPATH
16282   fi
16283   ;;
16284
16285 amigaos*)
16286   case $host_cpu in
16287   powerpc)
16288     # Since July 2007 AmigaOS4 officially supports .so libraries.
16289     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16290     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16291     ;;
16292   m68k)
16293     library_names_spec='$libname.ixlibrary $libname.a'
16294     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16295     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16296     ;;
16297   esac
16298   ;;
16299
16300 beos*)
16301   library_names_spec='$libname$shared_ext'
16302   dynamic_linker="$host_os ld.so"
16303   shlibpath_var=LIBRARY_PATH
16304   ;;
16305
16306 bsdi[45]*)
16307   version_type=linux # correct to gnu/linux during the next big refactor
16308   need_version=no
16309   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16310   soname_spec='$libname$release$shared_ext$major'
16311   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16312   shlibpath_var=LD_LIBRARY_PATH
16313   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16314   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16315   # the default ld.so.conf also contains /usr/contrib/lib and
16316   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16317   # libtool to hard-code these into programs
16318   ;;
16319
16320 cygwin* | mingw* | pw32* | cegcc*)
16321   version_type=windows
16322   shrext_cmds=.dll
16323   need_version=no
16324   need_lib_prefix=no
16325
16326   case $GCC,$cc_basename in
16327   yes,*)
16328     # gcc
16329     library_names_spec='$libname.dll.a'
16330     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16331     postinstall_cmds='base_file=`basename \$file`~
16332       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16333       dldir=$destdir/`dirname \$dlpath`~
16334       test -d \$dldir || mkdir -p \$dldir~
16335       $install_prog $dir/$dlname \$dldir/$dlname~
16336       chmod a+x \$dldir/$dlname~
16337       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16338         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16339       fi'
16340     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16341       dlpath=$dir/\$dldll~
16342        $RM \$dlpath'
16343     shlibpath_overrides_runpath=yes
16344
16345     case $host_os in
16346     cygwin*)
16347       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16348       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16349
16350       ;;
16351     mingw* | cegcc*)
16352       # MinGW DLLs use traditional 'lib' prefix
16353       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16354       ;;
16355     pw32*)
16356       # pw32 DLLs use 'pw' prefix rather than 'lib'
16357       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16358       ;;
16359     esac
16360     dynamic_linker='Win32 ld.exe'
16361     ;;
16362
16363   *,cl* | *,icl*)
16364     # Native MSVC or ICC
16365     libname_spec='$name'
16366     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16367     library_names_spec='$libname.dll.lib'
16368
16369     case $build_os in
16370     mingw*)
16371       sys_lib_search_path_spec=
16372       lt_save_ifs=$IFS
16373       IFS=';'
16374       for lt_path in $LIB
16375       do
16376         IFS=$lt_save_ifs
16377         # Let DOS variable expansion print the short 8.3 style file name.
16378         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16379         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16380       done
16381       IFS=$lt_save_ifs
16382       # Convert to MSYS style.
16383       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16384       ;;
16385     cygwin*)
16386       # Convert to unix form, then to dos form, then back to unix form
16387       # but this time dos style (no spaces!) so that the unix form looks
16388       # like /cygdrive/c/PROGRA~1:/cygdr...
16389       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16390       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16391       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16392       ;;
16393     *)
16394       sys_lib_search_path_spec=$LIB
16395       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16396         # It is most probably a Windows format PATH.
16397         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16398       else
16399         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16400       fi
16401       # FIXME: find the short name or the path components, as spaces are
16402       # common. (e.g. "Program Files" -> "PROGRA~1")
16403       ;;
16404     esac
16405
16406     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16407     postinstall_cmds='base_file=`basename \$file`~
16408       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16409       dldir=$destdir/`dirname \$dlpath`~
16410       test -d \$dldir || mkdir -p \$dldir~
16411       $install_prog $dir/$dlname \$dldir/$dlname'
16412     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16413       dlpath=$dir/\$dldll~
16414        $RM \$dlpath'
16415     shlibpath_overrides_runpath=yes
16416     dynamic_linker='Win32 link.exe'
16417     ;;
16418
16419   *)
16420     # Assume MSVC and ICC wrapper
16421     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16422     dynamic_linker='Win32 ld.exe'
16423     ;;
16424   esac
16425   # FIXME: first we should search . and the directory the executable is in
16426   shlibpath_var=PATH
16427   ;;
16428
16429 darwin* | rhapsody*)
16430   dynamic_linker="$host_os dyld"
16431   version_type=darwin
16432   need_lib_prefix=no
16433   need_version=no
16434   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16435   soname_spec='$libname$release$major$shared_ext'
16436   shlibpath_overrides_runpath=yes
16437   shlibpath_var=DYLD_LIBRARY_PATH
16438   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16439
16440   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16441   ;;
16442
16443 dgux*)
16444   version_type=linux # correct to gnu/linux during the next big refactor
16445   need_lib_prefix=no
16446   need_version=no
16447   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16448   soname_spec='$libname$release$shared_ext$major'
16449   shlibpath_var=LD_LIBRARY_PATH
16450   ;;
16451
16452 freebsd* | dragonfly* | midnightbsd*)
16453   # DragonFly does not have aout.  When/if they implement a new
16454   # versioning mechanism, adjust this.
16455   if test -x /usr/bin/objformat; then
16456     objformat=`/usr/bin/objformat`
16457   else
16458     case $host_os in
16459     freebsd[23].*) objformat=aout ;;
16460     *) objformat=elf ;;
16461     esac
16462   fi
16463   version_type=freebsd-$objformat
16464   case $version_type in
16465     freebsd-elf*)
16466       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16467       soname_spec='$libname$release$shared_ext$major'
16468       need_version=no
16469       need_lib_prefix=no
16470       ;;
16471     freebsd-*)
16472       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16473       need_version=yes
16474       ;;
16475   esac
16476   shlibpath_var=LD_LIBRARY_PATH
16477   case $host_os in
16478   freebsd2.*)
16479     shlibpath_overrides_runpath=yes
16480     ;;
16481   freebsd3.[01]* | freebsdelf3.[01]*)
16482     shlibpath_overrides_runpath=yes
16483     hardcode_into_libs=yes
16484     ;;
16485   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16486   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16487     shlibpath_overrides_runpath=no
16488     hardcode_into_libs=yes
16489     ;;
16490   *) # from 4.6 on, and DragonFly
16491     shlibpath_overrides_runpath=yes
16492     hardcode_into_libs=yes
16493     ;;
16494   esac
16495   ;;
16496
16497 haiku*)
16498   version_type=linux # correct to gnu/linux during the next big refactor
16499   need_lib_prefix=no
16500   need_version=no
16501   dynamic_linker="$host_os runtime_loader"
16502   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16503   soname_spec='$libname$release$shared_ext$major'
16504   shlibpath_var=LIBRARY_PATH
16505   shlibpath_overrides_runpath=no
16506   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16507   hardcode_into_libs=yes
16508   ;;
16509
16510 hpux9* | hpux10* | hpux11*)
16511   # Give a soname corresponding to the major version so that dld.sl refuses to
16512   # link against other versions.
16513   version_type=sunos
16514   need_lib_prefix=no
16515   need_version=no
16516   case $host_cpu in
16517   ia64*)
16518     shrext_cmds='.so'
16519     hardcode_into_libs=yes
16520     dynamic_linker="$host_os dld.so"
16521     shlibpath_var=LD_LIBRARY_PATH
16522     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16523     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16524     soname_spec='$libname$release$shared_ext$major'
16525     if test 32 = "$HPUX_IA64_MODE"; then
16526       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16527       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16528     else
16529       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16530       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16531     fi
16532     ;;
16533   hppa*64*)
16534     shrext_cmds='.sl'
16535     hardcode_into_libs=yes
16536     dynamic_linker="$host_os dld.sl"
16537     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16538     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16539     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16540     soname_spec='$libname$release$shared_ext$major'
16541     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16542     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16543     ;;
16544   *)
16545     shrext_cmds='.sl'
16546     dynamic_linker="$host_os dld.sl"
16547     shlibpath_var=SHLIB_PATH
16548     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16549     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16550     soname_spec='$libname$release$shared_ext$major'
16551     ;;
16552   esac
16553   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16554   postinstall_cmds='chmod 555 $lib'
16555   # or fails outright, so override atomically:
16556   install_override_mode=555
16557   ;;
16558
16559 interix[3-9]*)
16560   version_type=linux # correct to gnu/linux during the next big refactor
16561   need_lib_prefix=no
16562   need_version=no
16563   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16564   soname_spec='$libname$release$shared_ext$major'
16565   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16566   shlibpath_var=LD_LIBRARY_PATH
16567   shlibpath_overrides_runpath=no
16568   hardcode_into_libs=yes
16569   ;;
16570
16571 irix5* | irix6* | nonstopux*)
16572   case $host_os in
16573     nonstopux*) version_type=nonstopux ;;
16574     *)
16575         if test yes = "$lt_cv_prog_gnu_ld"; then
16576                 version_type=linux # correct to gnu/linux during the next big refactor
16577         else
16578                 version_type=irix
16579         fi ;;
16580   esac
16581   need_lib_prefix=no
16582   need_version=no
16583   soname_spec='$libname$release$shared_ext$major'
16584   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16585   case $host_os in
16586   irix5* | nonstopux*)
16587     libsuff= shlibsuff=
16588     ;;
16589   *)
16590     case $LD in # libtool.m4 will add one of these switches to LD
16591     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16592       libsuff= shlibsuff= libmagic=32-bit;;
16593     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16594       libsuff=32 shlibsuff=N32 libmagic=N32;;
16595     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16596       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16597     *) libsuff= shlibsuff= libmagic=never-match;;
16598     esac
16599     ;;
16600   esac
16601   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16602   shlibpath_overrides_runpath=no
16603   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16604   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16605   hardcode_into_libs=yes
16606   ;;
16607
16608 # No shared lib support for Linux oldld, aout, or coff.
16609 linux*oldld* | linux*aout* | linux*coff*)
16610   dynamic_linker=no
16611   ;;
16612
16613 linux*android*)
16614   version_type=none # Android doesn't support versioned libraries.
16615   need_lib_prefix=no
16616   need_version=no
16617   library_names_spec='$libname$release$shared_ext'
16618   soname_spec='$libname$release$shared_ext'
16619   finish_cmds=
16620   shlibpath_var=LD_LIBRARY_PATH
16621   shlibpath_overrides_runpath=yes
16622
16623   # This implies no fast_install, which is unacceptable.
16624   # Some rework will be needed to allow for fast_install
16625   # before this can be enabled.
16626   hardcode_into_libs=yes
16627
16628   dynamic_linker='Android linker'
16629   # Don't embed -rpath directories since the linker doesn't support them.
16630   hardcode_libdir_flag_spec_CXX='-L$libdir'
16631   ;;
16632
16633 # This must be glibc/ELF.
16634 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16635   version_type=linux # correct to gnu/linux during the next big refactor
16636   need_lib_prefix=no
16637   need_version=no
16638   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16639   soname_spec='$libname$release$shared_ext$major'
16640   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16641   shlibpath_var=LD_LIBRARY_PATH
16642   shlibpath_overrides_runpath=no
16643
16644   # Some binutils ld are patched to set DT_RUNPATH
16645   if test ${lt_cv_shlibpath_overrides_runpath+y}
16646 then :
16647   printf %s "(cached) " >&6
16648 else $as_nop
16649   lt_cv_shlibpath_overrides_runpath=no
16650     save_LDFLAGS=$LDFLAGS
16651     save_libdir=$libdir
16652     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16653          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h.  */
16656
16657 int
16658 main (void)
16659 {
16660
16661   ;
16662   return 0;
16663 }
16664 _ACEOF
16665 if ac_fn_cxx_try_link "$LINENO"
16666 then :
16667   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16668 then :
16669   lt_cv_shlibpath_overrides_runpath=yes
16670 fi
16671 fi
16672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16673     conftest$ac_exeext conftest.$ac_ext
16674     LDFLAGS=$save_LDFLAGS
16675     libdir=$save_libdir
16676
16677 fi
16678
16679   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16680
16681   # This implies no fast_install, which is unacceptable.
16682   # Some rework will be needed to allow for fast_install
16683   # before this can be enabled.
16684   hardcode_into_libs=yes
16685
16686   # Ideally, we could use ldconfig to report *all* directores which are
16687   # searched for libraries, however this is still not possible.  Aside from not
16688   # being certain /sbin/ldconfig is available, command
16689   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16690   # even though it is searched at run-time.  Try to do the best guess by
16691   # appending ld.so.conf contents (and includes) to the search path.
16692   if test -f /etc/ld.so.conf; then
16693     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' ' '`
16694     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16695   fi
16696
16697   # We used to test for /lib/ld.so.1 and disable shared libraries on
16698   # powerpc, because MkLinux only supported shared libraries with the
16699   # GNU dynamic linker.  Since this was broken with cross compilers,
16700   # most powerpc-linux boxes support dynamic linking these days and
16701   # people can always --disable-shared, the test was removed, and we
16702   # assume the GNU/Linux dynamic linker is in use.
16703   dynamic_linker='GNU/Linux ld.so'
16704   ;;
16705
16706 netbsd*)
16707   version_type=sunos
16708   need_lib_prefix=no
16709   need_version=no
16710   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16711     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16712     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16713     dynamic_linker='NetBSD (a.out) ld.so'
16714   else
16715     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16716     soname_spec='$libname$release$shared_ext$major'
16717     dynamic_linker='NetBSD ld.elf_so'
16718   fi
16719   shlibpath_var=LD_LIBRARY_PATH
16720   shlibpath_overrides_runpath=yes
16721   hardcode_into_libs=yes
16722   ;;
16723
16724 newsos6)
16725   version_type=linux # correct to gnu/linux during the next big refactor
16726   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16727   shlibpath_var=LD_LIBRARY_PATH
16728   shlibpath_overrides_runpath=yes
16729   ;;
16730
16731 *nto* | *qnx*)
16732   version_type=qnx
16733   need_lib_prefix=no
16734   need_version=no
16735   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16736   soname_spec='$libname$release$shared_ext$major'
16737   shlibpath_var=LD_LIBRARY_PATH
16738   shlibpath_overrides_runpath=no
16739   hardcode_into_libs=yes
16740   dynamic_linker='ldqnx.so'
16741   ;;
16742
16743 openbsd* | bitrig*)
16744   version_type=sunos
16745   sys_lib_dlsearch_path_spec=/usr/lib
16746   need_lib_prefix=no
16747   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16748     need_version=no
16749   else
16750     need_version=yes
16751   fi
16752   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16753   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   shlibpath_overrides_runpath=yes
16756   ;;
16757
16758 os2*)
16759   libname_spec='$name'
16760   version_type=windows
16761   shrext_cmds=.dll
16762   need_version=no
16763   need_lib_prefix=no
16764   # OS/2 can only load a DLL with a base name of 8 characters or less.
16765   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16766     v=$($ECHO $release$versuffix | tr -d .-);
16767     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16768     $ECHO $n$v`$shared_ext'
16769   library_names_spec='${libname}_dll.$libext'
16770   dynamic_linker='OS/2 ld.exe'
16771   shlibpath_var=BEGINLIBPATH
16772   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16773   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16774   postinstall_cmds='base_file=`basename \$file`~
16775     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16776     dldir=$destdir/`dirname \$dlpath`~
16777     test -d \$dldir || mkdir -p \$dldir~
16778     $install_prog $dir/$dlname \$dldir/$dlname~
16779     chmod a+x \$dldir/$dlname~
16780     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16781       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16782     fi'
16783   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16784     dlpath=$dir/\$dldll~
16785     $RM \$dlpath'
16786   ;;
16787
16788 osf3* | osf4* | osf5*)
16789   version_type=osf
16790   need_lib_prefix=no
16791   need_version=no
16792   soname_spec='$libname$release$shared_ext$major'
16793   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16794   shlibpath_var=LD_LIBRARY_PATH
16795   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16796   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16797   ;;
16798
16799 rdos*)
16800   dynamic_linker=no
16801   ;;
16802
16803 solaris*)
16804   version_type=linux # correct to gnu/linux during the next big refactor
16805   need_lib_prefix=no
16806   need_version=no
16807   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16808   soname_spec='$libname$release$shared_ext$major'
16809   shlibpath_var=LD_LIBRARY_PATH
16810   shlibpath_overrides_runpath=yes
16811   hardcode_into_libs=yes
16812   # ldd complains unless libraries are executable
16813   postinstall_cmds='chmod +x $lib'
16814   ;;
16815
16816 sunos4*)
16817   version_type=sunos
16818   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16819   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16820   shlibpath_var=LD_LIBRARY_PATH
16821   shlibpath_overrides_runpath=yes
16822   if test yes = "$with_gnu_ld"; then
16823     need_lib_prefix=no
16824   fi
16825   need_version=yes
16826   ;;
16827
16828 sysv4 | sysv4.3*)
16829   version_type=linux # correct to gnu/linux during the next big refactor
16830   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16831   soname_spec='$libname$release$shared_ext$major'
16832   shlibpath_var=LD_LIBRARY_PATH
16833   case $host_vendor in
16834     sni)
16835       shlibpath_overrides_runpath=no
16836       need_lib_prefix=no
16837       runpath_var=LD_RUN_PATH
16838       ;;
16839     siemens)
16840       need_lib_prefix=no
16841       ;;
16842     motorola)
16843       need_lib_prefix=no
16844       need_version=no
16845       shlibpath_overrides_runpath=no
16846       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16847       ;;
16848   esac
16849   ;;
16850
16851 sysv4*MP*)
16852   if test -d /usr/nec; then
16853     version_type=linux # correct to gnu/linux during the next big refactor
16854     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16855     soname_spec='$libname$shared_ext.$major'
16856     shlibpath_var=LD_LIBRARY_PATH
16857   fi
16858   ;;
16859
16860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16861   version_type=sco
16862   need_lib_prefix=no
16863   need_version=no
16864   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16865   soname_spec='$libname$release$shared_ext$major'
16866   shlibpath_var=LD_LIBRARY_PATH
16867   shlibpath_overrides_runpath=yes
16868   hardcode_into_libs=yes
16869   if test yes = "$with_gnu_ld"; then
16870     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16871   else
16872     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16873     case $host_os in
16874       sco3.2v5*)
16875         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16876         ;;
16877     esac
16878   fi
16879   sys_lib_dlsearch_path_spec='/usr/lib'
16880   ;;
16881
16882 tpf*)
16883   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16884   version_type=linux # correct to gnu/linux during the next big refactor
16885   need_lib_prefix=no
16886   need_version=no
16887   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16888   shlibpath_var=LD_LIBRARY_PATH
16889   shlibpath_overrides_runpath=no
16890   hardcode_into_libs=yes
16891   ;;
16892
16893 uts4*)
16894   version_type=linux # correct to gnu/linux during the next big refactor
16895   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16896   soname_spec='$libname$release$shared_ext$major'
16897   shlibpath_var=LD_LIBRARY_PATH
16898   ;;
16899
16900 *)
16901   dynamic_linker=no
16902   ;;
16903 esac
16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16905 printf "%s\n" "$dynamic_linker" >&6; }
16906 test no = "$dynamic_linker" && can_build_shared=no
16907
16908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16909 if test yes = "$GCC"; then
16910   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16911 fi
16912
16913 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16914   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16915 fi
16916
16917 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16918   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16919 fi
16920
16921 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16922 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16923
16924 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16925 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16926
16927 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16928 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16970 printf %s "checking how to hardcode library paths into programs... " >&6; }
16971 hardcode_action_CXX=
16972 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16973    test -n "$runpath_var_CXX" ||
16974    test yes = "$hardcode_automatic_CXX"; then
16975
16976   # We can hardcode non-existent directories.
16977   if test no != "$hardcode_direct_CXX" &&
16978      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16979      # have to relink, otherwise we might link with an installed library
16980      # when we should be linking with a yet-to-be-installed one
16981      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16982      test no != "$hardcode_minus_L_CXX"; then
16983     # Linking always hardcodes the temporary library directory.
16984     hardcode_action_CXX=relink
16985   else
16986     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16987     hardcode_action_CXX=immediate
16988   fi
16989 else
16990   # We cannot hardcode anything, or else we can only hardcode existing
16991   # directories.
16992   hardcode_action_CXX=unsupported
16993 fi
16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16995 printf "%s\n" "$hardcode_action_CXX" >&6; }
16996
16997 if test relink = "$hardcode_action_CXX" ||
16998    test yes = "$inherit_rpath_CXX"; then
16999   # Fast installation is not supported
17000   enable_fast_install=no
17001 elif test yes = "$shlibpath_overrides_runpath" ||
17002      test no = "$enable_shared"; then
17003   # Fast installation is not necessary
17004   enable_fast_install=needless
17005 fi
17006
17007
17008
17009
17010
17011
17012
17013   fi # test -n "$compiler"
17014
17015   CC=$lt_save_CC
17016   CFLAGS=$lt_save_CFLAGS
17017   LDCXX=$LD
17018   LD=$lt_save_LD
17019   GCC=$lt_save_GCC
17020   with_gnu_ld=$lt_save_with_gnu_ld
17021   lt_cv_path_LDCXX=$lt_cv_path_LD
17022   lt_cv_path_LD=$lt_save_path_LD
17023   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17024   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17025 fi # test yes != "$_lt_caught_CXX_error"
17026
17027 ac_ext=c
17028 ac_cpp='$CPP $CPPFLAGS'
17029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047         ac_config_commands="$ac_config_commands libtool"
17048
17049
17050
17051
17052 # Only expand once:
17053
17054
17055
17056 # pkg-config
17057
17058
17059
17060
17061
17062     if test x"${PKG_CONFIG}" = x"" ; then
17063         for ac_prog in pkgconf pkg-config
17064 do
17065   # Extract the first word of "$ac_prog", so it can be a program name with args.
17066 set dummy $ac_prog; ac_word=$2
17067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17068 printf %s "checking for $ac_word... " >&6; }
17069 if test ${ac_cv_path_PKG_CONFIG+y}
17070 then :
17071   printf %s "(cached) " >&6
17072 else $as_nop
17073   case $PKG_CONFIG in
17074   [\\/]* | ?:[\\/]*)
17075   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17076   ;;
17077   *)
17078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17079 for as_dir in $PATH
17080 do
17081   IFS=$as_save_IFS
17082   case $as_dir in #(((
17083     '') as_dir=./ ;;
17084     */) ;;
17085     *) as_dir=$as_dir/ ;;
17086   esac
17087     for ac_exec_ext in '' $ac_executable_extensions; do
17088   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17089     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17090     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17091     break 2
17092   fi
17093 done
17094   done
17095 IFS=$as_save_IFS
17096
17097   ;;
17098 esac
17099 fi
17100 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17101 if test -n "$PKG_CONFIG"; then
17102   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17103 printf "%s\n" "$PKG_CONFIG" >&6; }
17104 else
17105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17106 printf "%s\n" "no" >&6; }
17107 fi
17108
17109
17110   test -n "$PKG_CONFIG" && break
17111 done
17112  >/dev/null
17113     else
17114         # Extract the first word of "${PKG_CONFIG}", so it can be a program name with args.
17115 set dummy ${PKG_CONFIG}; ac_word=$2
17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17117 printf %s "checking for $ac_word... " >&6; }
17118 if test ${ac_cv_path_PKG_CONFIG+y}
17119 then :
17120   printf %s "(cached) " >&6
17121 else $as_nop
17122   case $PKG_CONFIG in
17123   [\\/]* | ?:[\\/]*)
17124   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17125   ;;
17126   *)
17127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17128 for as_dir in $PATH
17129 do
17130   IFS=$as_save_IFS
17131   case $as_dir in #(((
17132     '') as_dir=./ ;;
17133     */) ;;
17134     *) as_dir=$as_dir/ ;;
17135   esac
17136     for ac_exec_ext in '' $ac_executable_extensions; do
17137   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17138     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17139     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17140     break 2
17141   fi
17142 done
17143   done
17144 IFS=$as_save_IFS
17145
17146   ;;
17147 esac
17148 fi
17149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17150 if test -n "$PKG_CONFIG"; then
17151   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17152 printf "%s\n" "$PKG_CONFIG" >&6; }
17153 else
17154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155 printf "%s\n" "no" >&6; }
17156 fi
17157
17158
17159     fi
17160     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config or pkgconf" >&5
17161 printf %s "checking for pkg-config or pkgconf... " >&6; }
17162     if test -x "${PKG_CONFIG}" ; then
17163         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG}" >&5
17164 printf "%s\n" "${PKG_CONFIG}" >&6; }
17165         case "${PKG_CONFIG}" in
17166         *pkgconf)
17167             _min_version="1.3.0"
17168             ;;
17169         *pkg-config)
17170             _min_version="0.23"
17171             ;;
17172         *)
17173             _min_version="9.9.error"
17174             ;;
17175         esac
17176         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that ${PKG_CONFIG} is at least version ${_min_version}" >&5
17177 printf %s "checking that ${PKG_CONFIG} is at least version ${_min_version}... " >&6; }
17178         _act_version=`"${PKG_CONFIG}" --version`
17179         if ! "${PKG_CONFIG}" --atleast-pkgconfig-version="${_min_version}" ; then
17180             PKG_CONFIG=""
17181         fi
17182         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_act_version}" >&5
17183 printf "%s\n" "${_act_version}" >&6; }
17184     else
17185         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 printf "%s\n" "no" >&6; }
17187         PKG_CONFIG=""
17188     fi
17189     if test x"${PKG_CONFIG}" = x"" ; then
17190         as_fn_error $? "pkg-config was not found or is too old" "$LINENO" 5
17191     fi
17192
17193 # Check whether --with-pkgconfigdir was given.
17194 if test ${with_pkgconfigdir+y}
17195 then :
17196   withval=$with_pkgconfigdir; pkgconfigdir=$withval
17197 else $as_nop
17198   pkgconfigdir='${libdir}/pkgconfig'
17199 fi
17200
17201     pkgconfigdir=$pkgconfigdir
17202
17203
17204
17205 # other programs
17206
17207
17208 LIB_MAJ=2
17209
17210
17211 printf "%s\n" "#define LIB_MAJ $LIB_MAJ" >>confdefs.h
17212
17213
17214 # Check whether --enable-debug was given.
17215 if test ${enable_debug+y}
17216 then :
17217   enableval=$enable_debug;
17218 printf "%s\n" "#define OPENPAM_DEBUG 1" >>confdefs.h
17219
17220 fi
17221
17222
17223 # Check whether --enable-unversioned-modules was given.
17224 if test ${enable_unversioned_modules+y}
17225 then :
17226   enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"
17227 then :
17228
17229
17230 printf "%s\n" "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
17231
17232
17233 fi
17234 fi
17235
17236
17237
17238 # Check whether --with-modules-dir was given.
17239 if test ${with_modules_dir+y}
17240 then :
17241   withval=$with_modules_dir; if test x"$withval" != x"no"
17242 then :
17243
17244         OPENPAM_MODULES_DIR="$withval"
17245
17246 printf "%s\n" "#define OPENPAM_MODULES_DIR \"${OPENPAM_MODULES_DIR%/}\"" >>confdefs.h
17247
17248
17249 fi
17250 fi
17251
17252
17253  if test x"$OPENPAM_MODULES_DIR" != x""; then
17254   CUSTOM_MODULES_DIR_TRUE=
17255   CUSTOM_MODULES_DIR_FALSE='#'
17256 else
17257   CUSTOM_MODULES_DIR_TRUE='#'
17258   CUSTOM_MODULES_DIR_FALSE=
17259 fi
17260
17261
17262
17263 # Check whether --with-doc was given.
17264 if test ${with_doc+y}
17265 then :
17266   withval=$with_doc;
17267 else $as_nop
17268   with_doc=yes
17269 fi
17270
17271  if test x"$with_doc" = x"yes"; then
17272   WITH_DOC_TRUE=
17273   WITH_DOC_FALSE='#'
17274 else
17275   WITH_DOC_TRUE='#'
17276   WITH_DOC_FALSE=
17277 fi
17278
17279
17280
17281 # Check whether --with-pam-unix was given.
17282 if test ${with_pam_unix+y}
17283 then :
17284   withval=$with_pam_unix;
17285 else $as_nop
17286   with_pam_unix=no
17287 fi
17288
17289  if test x"$with_pam_unix" = x"yes"; then
17290   WITH_PAM_UNIX_TRUE=
17291   WITH_PAM_UNIX_FALSE='#'
17292 else
17293   WITH_PAM_UNIX_TRUE='#'
17294   WITH_PAM_UNIX_FALSE=
17295 fi
17296
17297
17298
17299 # Check whether --with-pamtest was given.
17300 if test ${with_pamtest+y}
17301 then :
17302   withval=$with_pamtest;
17303 else $as_nop
17304   with_pamtest=no
17305 fi
17306
17307  if test x"$with_pamtest" = x"yes"; then
17308   WITH_PAMTEST_TRUE=
17309   WITH_PAMTEST_FALSE='#'
17310 else
17311   WITH_PAMTEST_TRUE='#'
17312   WITH_PAMTEST_FALSE=
17313 fi
17314
17315
17316
17317 # Check whether --with-su was given.
17318 if test ${with_su+y}
17319 then :
17320   withval=$with_su;
17321 else $as_nop
17322   with_su=no
17323 fi
17324
17325  if test x"$with_su" = x"yes"; then
17326   WITH_SU_TRUE=
17327   WITH_SU_FALSE='#'
17328 else
17329   WITH_SU_TRUE='#'
17330   WITH_SU_FALSE=
17331 fi
17332
17333
17334
17335 # Check whether --with-system-libpam was given.
17336 if test ${with_system_libpam+y}
17337 then :
17338   withval=$with_system_libpam;
17339 else $as_nop
17340   with_system_libpam=no
17341 fi
17342
17343  if test x"$with_system_libpam" = x"yes"; then
17344   WITH_SYSTEM_LIBPAM_TRUE=
17345   WITH_SYSTEM_LIBPAM_FALSE='#'
17346 else
17347   WITH_SYSTEM_LIBPAM_TRUE='#'
17348   WITH_SYSTEM_LIBPAM_FALSE=
17349 fi
17350
17351
17352 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
17353 if test "x$ac_cv_header_crypt_h" = xyes
17354 then :
17355   printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
17356
17357 fi
17358
17359
17360 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
17361 if test "x$ac_cv_func_asprintf" = xyes
17362 then :
17363   printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
17364
17365 fi
17366 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
17367 if test "x$ac_cv_func_vasprintf" = xyes
17368 then :
17369   printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
17370
17371 fi
17372
17373 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
17374 if test "x$ac_cv_func_dlfunc" = xyes
17375 then :
17376   printf "%s\n" "#define HAVE_DLFUNC 1" >>confdefs.h
17377
17378 fi
17379 ac_fn_c_check_func "$LINENO" "fdlopen" "ac_cv_func_fdlopen"
17380 if test "x$ac_cv_func_fdlopen" = xyes
17381 then :
17382   printf "%s\n" "#define HAVE_FDLOPEN 1" >>confdefs.h
17383
17384 fi
17385
17386 ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
17387 if test "x$ac_cv_func_fpurge" = xyes
17388 then :
17389   printf "%s\n" "#define HAVE_FPURGE 1" >>confdefs.h
17390
17391 fi
17392
17393 ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
17394 if test "x$ac_cv_func_setlogmask" = xyes
17395 then :
17396   printf "%s\n" "#define HAVE_SETLOGMASK 1" >>confdefs.h
17397
17398 fi
17399
17400 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17401 if test "x$ac_cv_func_strlcat" = xyes
17402 then :
17403   printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
17404
17405 fi
17406 ac_fn_c_check_func "$LINENO" "strlcmp" "ac_cv_func_strlcmp"
17407 if test "x$ac_cv_func_strlcmp" = xyes
17408 then :
17409   printf "%s\n" "#define HAVE_STRLCMP 1" >>confdefs.h
17410
17411 fi
17412 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17413 if test "x$ac_cv_func_strlcpy" = xyes
17414 then :
17415   printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
17416
17417 fi
17418 ac_fn_c_check_func "$LINENO" "strlset" "ac_cv_func_strlset"
17419 if test "x$ac_cv_func_strlset" = xyes
17420 then :
17421   printf "%s\n" "#define HAVE_STRLSET 1" >>confdefs.h
17422
17423 fi
17424
17425
17426 saved_LIBS="${LIBS}"
17427 LIBS=""
17428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17429 printf %s "checking for dlopen in -ldl... " >&6; }
17430 if test ${ac_cv_lib_dl_dlopen+y}
17431 then :
17432   printf %s "(cached) " >&6
17433 else $as_nop
17434   ac_check_lib_save_LIBS=$LIBS
17435 LIBS="-ldl  $LIBS"
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h.  */
17438
17439 /* Override any GCC internal prototype to avoid an error.
17440    Use char because int might match the return type of a GCC
17441    builtin and then its argument prototype would still apply.  */
17442 char dlopen ();
17443 int
17444 main (void)
17445 {
17446 return dlopen ();
17447   ;
17448   return 0;
17449 }
17450 _ACEOF
17451 if ac_fn_c_try_link "$LINENO"
17452 then :
17453   ac_cv_lib_dl_dlopen=yes
17454 else $as_nop
17455   ac_cv_lib_dl_dlopen=no
17456 fi
17457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17458     conftest$ac_exeext conftest.$ac_ext
17459 LIBS=$ac_check_lib_save_LIBS
17460 fi
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17462 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17463 if test "x$ac_cv_lib_dl_dlopen" = xyes
17464 then :
17465   printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
17466
17467   LIBS="-ldl $LIBS"
17468
17469 fi
17470
17471 DL_LIBS="${LIBS}"
17472 LIBS="${saved_LIBS}"
17473
17474
17475 saved_LIBS="${LIBS}"
17476 LIBS=""
17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17478 printf %s "checking for pam_start in -lpam... " >&6; }
17479 if test ${ac_cv_lib_pam_pam_start+y}
17480 then :
17481   printf %s "(cached) " >&6
17482 else $as_nop
17483   ac_check_lib_save_LIBS=$LIBS
17484 LIBS="-lpam  $LIBS"
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h.  */
17487
17488 /* Override any GCC internal prototype to avoid an error.
17489    Use char because int might match the return type of a GCC
17490    builtin and then its argument prototype would still apply.  */
17491 char pam_start ();
17492 int
17493 main (void)
17494 {
17495 return pam_start ();
17496   ;
17497   return 0;
17498 }
17499 _ACEOF
17500 if ac_fn_c_try_link "$LINENO"
17501 then :
17502   ac_cv_lib_pam_pam_start=yes
17503 else $as_nop
17504   ac_cv_lib_pam_pam_start=no
17505 fi
17506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17507     conftest$ac_exeext conftest.$ac_ext
17508 LIBS=$ac_check_lib_save_LIBS
17509 fi
17510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17511 printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; }
17512 if test "x$ac_cv_lib_pam_pam_start" = xyes
17513 then :
17514   printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h
17515
17516   LIBS="-lpam $LIBS"
17517
17518 fi
17519
17520 SYSTEM_LIBPAM="${LIBS}"
17521 LIBS="${saved_LIBS}"
17522
17523
17524
17525
17526
17527
17528
17529
17530     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cryb-test is installed" >&5
17531 printf %s "checking if cryb-test is installed... " >&6; }
17532     if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \"\${PKG_CONFIG}\" --exists --print-errors \"cryb-test\""; } >&5
17533   ("${PKG_CONFIG}" --exists --print-errors "cryb-test") 2>&5
17534   ac_status=$?
17535   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17536   test $ac_status = 0; } ; then
17537         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17538 printf "%s\n" "yes" >&6; }
17539         ax_pc_cv_have_cryb_test=yes
17540
17541 printf "%s\n" "#define HAVE_CRYB_TEST 1" >>confdefs.h
17542
17543         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test version" >&5
17544 printf %s "checking cryb-test version... " >&6; }
17545
17546
17547
17548     ax_pc_cv_cryb_test_version=`"${PKG_CONFIG}" --modversion cryb-test`
17549
17550         CRYB_TEST_VERSION=$ax_pc_cv_cryb_test_version
17551
17552         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_version:-unknown}" >&5
17553 printf "%s\n" "${ax_pc_cv_cryb_test_version:-unknown}" >&6; }
17554         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test compiler flags" >&5
17555 printf %s "checking cryb-test compiler flags... " >&6; }
17556
17557
17558
17559     ax_pc_cv_cryb_test_cflags=`"${PKG_CONFIG}" --cflags cryb-test`
17560
17561         CRYB_TEST_CFLAGS=$ax_pc_cv_cryb_test_cflags
17562
17563         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_cflags:-none}" >&5
17564 printf "%s\n" "${ax_pc_cv_cryb_test_cflags:-none}" >&6; }
17565         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test linker flags" >&5
17566 printf %s "checking cryb-test linker flags... " >&6; }
17567
17568
17569
17570     ax_pc_cv_cryb_test_libs=`"${PKG_CONFIG}" --libs cryb-test`
17571
17572         CRYB_TEST_LIBS=$ax_pc_cv_cryb_test_libs
17573
17574         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_libs:-none}" >&5
17575 printf "%s\n" "${ax_pc_cv_cryb_test_libs:-none}" >&6; }
17576         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cryb test framework found, unit tests enabled." >&5
17577 printf "%s\n" "$as_me: Cryb test framework found, unit tests enabled." >&6;}
17578     else
17579         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580 printf "%s\n" "no" >&6; }
17581         ax_pc_cv_have_cryb_test=no
17582         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cryb test framework not found, unit tests disabled." >&5
17583 printf "%s\n" "$as_me: WARNING: Cryb test framework not found, unit tests disabled." >&2;}
17584     fi
17585
17586          if test x"$ax_pc_cv_have_cryb_test" = x"yes"; then
17587   HAVE_CRYB_TEST_TRUE=
17588   HAVE_CRYB_TEST_FALSE='#'
17589 else
17590   HAVE_CRYB_TEST_TRUE='#'
17591   HAVE_CRYB_TEST_FALSE=
17592 fi
17593
17594
17595
17596  if test x"$CRYB_TEST_LIBS" != x""; then
17597   WITH_TEST_TRUE=
17598   WITH_TEST_FALSE='#'
17599 else
17600   WITH_TEST_TRUE='#'
17601   WITH_TEST_FALSE=
17602 fi
17603
17604
17605 # Check whether --enable-developer-warnings was given.
17606 if test ${enable_developer_warnings+y}
17607 then :
17608   enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual"
17609 fi
17610
17611 # Check whether --enable-debugging-symbols was given.
17612 if test ${enable_debugging_symbols+y}
17613 then :
17614   enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
17615 fi
17616
17617 # Check whether --enable-werror was given.
17618 if test ${enable_werror+y}
17619 then :
17620   enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
17621 fi
17622
17623
17624 # Check whether --enable-code-coverage was given.
17625 if test ${enable_code_coverage+y}
17626 then :
17627   enableval=$enable_code_coverage;
17628 fi
17629
17630 if test x"$enable_code_coverage" = x"yes"
17631 then :
17632
17633     if test -z "$WITH_TEST_TRUE"; then :
17634
17635         if test x"$ax_cv_c_compiler_vendor" = x"clang"
17636 then :
17637
17638             CFLAGS="${CFLAGS} -fprofile-instr-generate -fcoverage-mapping"
17639             clang_code_coverage="yes"
17640             clang_ver=${CC#clang}
17641
17642
17643 else $as_nop
17644
17645             as_fn_error $? "code coverage is only supported with clang" "$LINENO" 5
17646
17647 fi
17648
17649 printf "%s\n" "#define WITH_CODE_COVERAGE 1" >>confdefs.h
17650
17651         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: code coverage enabled" >&5
17652 printf "%s\n" "$as_me: code coverage enabled" >&6;}
17653
17654 else
17655
17656         as_fn_error $? "code coverage requires unit tests" "$LINENO" 5
17657
17658 fi
17659
17660 fi
17661  if test x"$enable_code_coverage" = x"yes"; then
17662   WITH_CODE_COVERAGE_TRUE=
17663   WITH_CODE_COVERAGE_FALSE='#'
17664 else
17665   WITH_CODE_COVERAGE_TRUE='#'
17666   WITH_CODE_COVERAGE_FALSE=
17667 fi
17668
17669  if test x"$clang_code_coverage" = x"yes"; then
17670   CLANG_CODE_COVERAGE_TRUE=
17671   CLANG_CODE_COVERAGE_FALSE='#'
17672 else
17673   CLANG_CODE_COVERAGE_TRUE='#'
17674   CLANG_CODE_COVERAGE_FALSE=
17675 fi
17676
17677
17678 ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile freebsd/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile misc/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_return/Makefile modules/pam_unix/Makefile t/Makefile"
17679
17680 ac_config_files="$ac_config_files misc/coverity.sh"
17681
17682 cat >confcache <<\_ACEOF
17683 # This file is a shell script that caches the results of configure
17684 # tests run on this system so they can be shared between configure
17685 # scripts and configure runs, see configure's option --config-cache.
17686 # It is not useful on other systems.  If it contains results you don't
17687 # want to keep, you may remove or edit it.
17688 #
17689 # config.status only pays attention to the cache file if you give it
17690 # the --recheck option to rerun configure.
17691 #
17692 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17693 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17694 # following values.
17695
17696 _ACEOF
17697
17698 # The following way of writing the cache mishandles newlines in values,
17699 # but we know of no workaround that is simple, portable, and efficient.
17700 # So, we kill variables containing newlines.
17701 # Ultrix sh set writes to stderr and can't be redirected directly,
17702 # and sets the high bit in the cache file unless we assign to the vars.
17703 (
17704   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17705     eval ac_val=\$$ac_var
17706     case $ac_val in #(
17707     *${as_nl}*)
17708       case $ac_var in #(
17709       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17710 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17711       esac
17712       case $ac_var in #(
17713       _ | IFS | as_nl) ;; #(
17714       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17715       *) { eval $ac_var=; unset $ac_var;} ;;
17716       esac ;;
17717     esac
17718   done
17719
17720   (set) 2>&1 |
17721     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17722     *${as_nl}ac_space=\ *)
17723       # `set' does not quote correctly, so add quotes: double-quote
17724       # substitution turns \\\\ into \\, and sed turns \\ into \.
17725       sed -n \
17726         "s/'/'\\\\''/g;
17727           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17728       ;; #(
17729     *)
17730       # `set' quotes correctly as required by POSIX, so do not add quotes.
17731       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17732       ;;
17733     esac |
17734     sort
17735 ) |
17736   sed '
17737      /^ac_cv_env_/b end
17738      t clear
17739      :clear
17740      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17741      t end
17742      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17743      :end' >>confcache
17744 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17745   if test -w "$cache_file"; then
17746     if test "x$cache_file" != "x/dev/null"; then
17747       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17748 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17749       if test ! -f "$cache_file" || test -h "$cache_file"; then
17750         cat confcache >"$cache_file"
17751       else
17752         case $cache_file in #(
17753         */* | ?:*)
17754           mv -f confcache "$cache_file"$$ &&
17755           mv -f "$cache_file"$$ "$cache_file" ;; #(
17756         *)
17757           mv -f confcache "$cache_file" ;;
17758         esac
17759       fi
17760     fi
17761   else
17762     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17763 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17764   fi
17765 fi
17766 rm -f confcache
17767
17768 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17769 # Let make expand exec_prefix.
17770 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17771
17772 DEFS=-DHAVE_CONFIG_H
17773
17774 ac_libobjs=
17775 ac_ltlibobjs=
17776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17777   # 1. Remove the extension, and $U if already installed.
17778   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17779   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17780   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17781   #    will be set to the directory where LIBOBJS objects are built.
17782   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17783   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17784 done
17785 LIBOBJS=$ac_libobjs
17786
17787 LTLIBOBJS=$ac_ltlibobjs
17788
17789
17790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17791 printf %s "checking that generated files are newer than configure... " >&6; }
17792    if test -n "$am_sleep_pid"; then
17793      # Hide warnings about reused PIDs.
17794      wait $am_sleep_pid 2>/dev/null
17795    fi
17796    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17797 printf "%s\n" "done" >&6; }
17798  if test -n "$EXEEXT"; then
17799   am__EXEEXT_TRUE=
17800   am__EXEEXT_FALSE='#'
17801 else
17802   am__EXEEXT_TRUE='#'
17803   am__EXEEXT_FALSE=
17804 fi
17805
17806 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17807   as_fn_error $? "conditional \"AMDEP\" was never defined.
17808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17809 fi
17810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17811   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17813 fi
17814 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17815   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17817 fi
17818 if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
17819   as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
17820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17821 fi
17822 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
17823   as_fn_error $? "conditional \"WITH_DOC\" was never defined.
17824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17825 fi
17826 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
17827   as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
17828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17829 fi
17830 if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
17831   as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
17832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17833 fi
17834 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
17835   as_fn_error $? "conditional \"WITH_SU\" was never defined.
17836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17837 fi
17838 if test -z "${WITH_SYSTEM_LIBPAM_TRUE}" && test -z "${WITH_SYSTEM_LIBPAM_FALSE}"; then
17839   as_fn_error $? "conditional \"WITH_SYSTEM_LIBPAM\" was never defined.
17840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17841 fi
17842 if test -z "${HAVE_CRYB_TEST_TRUE}" && test -z "${HAVE_CRYB_TEST_FALSE}"; then
17843   as_fn_error $? "conditional \"HAVE_CRYB_TEST\" was never defined.
17844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17845 fi
17846 if test -z "${WITH_TEST_TRUE}" && test -z "${WITH_TEST_FALSE}"; then
17847   as_fn_error $? "conditional \"WITH_TEST\" was never defined.
17848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17849 fi
17850 if test -z "${WITH_CODE_COVERAGE_TRUE}" && test -z "${WITH_CODE_COVERAGE_FALSE}"; then
17851   as_fn_error $? "conditional \"WITH_CODE_COVERAGE\" was never defined.
17852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17853 fi
17854 if test -z "${CLANG_CODE_COVERAGE_TRUE}" && test -z "${CLANG_CODE_COVERAGE_FALSE}"; then
17855   as_fn_error $? "conditional \"CLANG_CODE_COVERAGE\" was never defined.
17856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17857 fi
17858
17859 : "${CONFIG_STATUS=./config.status}"
17860 ac_write_fail=0
17861 ac_clean_files_save=$ac_clean_files
17862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17864 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17865 as_write_fail=0
17866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17867 #! $SHELL
17868 # Generated by $as_me.
17869 # Run this file to recreate the current configuration.
17870 # Compiler output produced by configure, useful for debugging
17871 # configure, is in config.log if it exists.
17872
17873 debug=false
17874 ac_cs_recheck=false
17875 ac_cs_silent=false
17876
17877 SHELL=\${CONFIG_SHELL-$SHELL}
17878 export SHELL
17879 _ASEOF
17880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17881 ## -------------------- ##
17882 ## M4sh Initialization. ##
17883 ## -------------------- ##
17884
17885 # Be more Bourne compatible
17886 DUALCASE=1; export DUALCASE # for MKS sh
17887 as_nop=:
17888 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17889 then :
17890   emulate sh
17891   NULLCMD=:
17892   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17893   # is contrary to our usage.  Disable this feature.
17894   alias -g '${1+"$@"}'='"$@"'
17895   setopt NO_GLOB_SUBST
17896 else $as_nop
17897   case `(set -o) 2>/dev/null` in #(
17898   *posix*) :
17899     set -o posix ;; #(
17900   *) :
17901      ;;
17902 esac
17903 fi
17904
17905
17906
17907 # Reset variables that may have inherited troublesome values from
17908 # the environment.
17909
17910 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17911 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17912 # side effect of setting IFS to empty, thus disabling word splitting.)
17913 # Quoting is to prevent editors from complaining about space-tab.
17914 as_nl='
17915 '
17916 export as_nl
17917 IFS=" ""        $as_nl"
17918
17919 PS1='$ '
17920 PS2='> '
17921 PS4='+ '
17922
17923 # Ensure predictable behavior from utilities with locale-dependent output.
17924 LC_ALL=C
17925 export LC_ALL
17926 LANGUAGE=C
17927 export LANGUAGE
17928
17929 # We cannot yet rely on "unset" to work, but we need these variables
17930 # to be unset--not just set to an empty or harmless value--now, to
17931 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
17932 # also avoids known problems related to "unset" and subshell syntax
17933 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17934 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17935 do eval test \${$as_var+y} \
17936   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17937 done
17938
17939 # Ensure that fds 0, 1, and 2 are open.
17940 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17941 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17942 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
17943
17944 # The user is always right.
17945 if ${PATH_SEPARATOR+false} :; then
17946   PATH_SEPARATOR=:
17947   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17948     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17949       PATH_SEPARATOR=';'
17950   }
17951 fi
17952
17953
17954 # Find who we are.  Look in the path if we contain no directory separator.
17955 as_myself=
17956 case $0 in #((
17957   *[\\/]* ) as_myself=$0 ;;
17958   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959 for as_dir in $PATH
17960 do
17961   IFS=$as_save_IFS
17962   case $as_dir in #(((
17963     '') as_dir=./ ;;
17964     */) ;;
17965     *) as_dir=$as_dir/ ;;
17966   esac
17967     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17968   done
17969 IFS=$as_save_IFS
17970
17971      ;;
17972 esac
17973 # We did not find ourselves, most probably we were run as `sh COMMAND'
17974 # in which case we are not to be found in the path.
17975 if test "x$as_myself" = x; then
17976   as_myself=$0
17977 fi
17978 if test ! -f "$as_myself"; then
17979   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17980   exit 1
17981 fi
17982
17983
17984
17985 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17986 # ----------------------------------------
17987 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17988 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17989 # script with STATUS, using 1 if that was 0.
17990 as_fn_error ()
17991 {
17992   as_status=$1; test $as_status -eq 0 && as_status=1
17993   if test "$4"; then
17994     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17995     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17996   fi
17997   printf "%s\n" "$as_me: error: $2" >&2
17998   as_fn_exit $as_status
17999 } # as_fn_error
18000
18001
18002
18003 # as_fn_set_status STATUS
18004 # -----------------------
18005 # Set $? to STATUS, without forking.
18006 as_fn_set_status ()
18007 {
18008   return $1
18009 } # as_fn_set_status
18010
18011 # as_fn_exit STATUS
18012 # -----------------
18013 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18014 as_fn_exit ()
18015 {
18016   set +e
18017   as_fn_set_status $1
18018   exit $1
18019 } # as_fn_exit
18020
18021 # as_fn_unset VAR
18022 # ---------------
18023 # Portably unset VAR.
18024 as_fn_unset ()
18025 {
18026   { eval $1=; unset $1;}
18027 }
18028 as_unset=as_fn_unset
18029
18030 # as_fn_append VAR VALUE
18031 # ----------------------
18032 # Append the text in VALUE to the end of the definition contained in VAR. Take
18033 # advantage of any shell optimizations that allow amortized linear growth over
18034 # repeated appends, instead of the typical quadratic growth present in naive
18035 # implementations.
18036 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18037 then :
18038   eval 'as_fn_append ()
18039   {
18040     eval $1+=\$2
18041   }'
18042 else $as_nop
18043   as_fn_append ()
18044   {
18045     eval $1=\$$1\$2
18046   }
18047 fi # as_fn_append
18048
18049 # as_fn_arith ARG...
18050 # ------------------
18051 # Perform arithmetic evaluation on the ARGs, and store the result in the
18052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18053 # must be portable across $(()) and expr.
18054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18055 then :
18056   eval 'as_fn_arith ()
18057   {
18058     as_val=$(( $* ))
18059   }'
18060 else $as_nop
18061   as_fn_arith ()
18062   {
18063     as_val=`expr "$@" || test $? -eq 1`
18064   }
18065 fi # as_fn_arith
18066
18067
18068 if expr a : '\(a\)' >/dev/null 2>&1 &&
18069    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18070   as_expr=expr
18071 else
18072   as_expr=false
18073 fi
18074
18075 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18076   as_basename=basename
18077 else
18078   as_basename=false
18079 fi
18080
18081 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18082   as_dirname=dirname
18083 else
18084   as_dirname=false
18085 fi
18086
18087 as_me=`$as_basename -- "$0" ||
18088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18089          X"$0" : 'X\(//\)$' \| \
18090          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18091 printf "%s\n" X/"$0" |
18092     sed '/^.*\/\([^/][^/]*\)\/*$/{
18093             s//\1/
18094             q
18095           }
18096           /^X\/\(\/\/\)$/{
18097             s//\1/
18098             q
18099           }
18100           /^X\/\(\/\).*/{
18101             s//\1/
18102             q
18103           }
18104           s/.*/./; q'`
18105
18106 # Avoid depending upon Character Ranges.
18107 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18108 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18109 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18110 as_cr_digits='0123456789'
18111 as_cr_alnum=$as_cr_Letters$as_cr_digits
18112
18113
18114 # Determine whether it's possible to make 'echo' print without a newline.
18115 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18116 # for compatibility with existing Makefiles.
18117 ECHO_C= ECHO_N= ECHO_T=
18118 case `echo -n x` in #(((((
18119 -n*)
18120   case `echo 'xy\c'` in
18121   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18122   xy)  ECHO_C='\c';;
18123   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18124        ECHO_T=' ';;
18125   esac;;
18126 *)
18127   ECHO_N='-n';;
18128 esac
18129
18130 # For backward compatibility with old third-party macros, we provide
18131 # the shell variables $as_echo and $as_echo_n.  New code should use
18132 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18133 as_echo='printf %s\n'
18134 as_echo_n='printf %s'
18135
18136 rm -f conf$$ conf$$.exe conf$$.file
18137 if test -d conf$$.dir; then
18138   rm -f conf$$.dir/conf$$.file
18139 else
18140   rm -f conf$$.dir
18141   mkdir conf$$.dir 2>/dev/null
18142 fi
18143 if (echo >conf$$.file) 2>/dev/null; then
18144   if ln -s conf$$.file conf$$ 2>/dev/null; then
18145     as_ln_s='ln -s'
18146     # ... but there are two gotchas:
18147     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18148     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18149     # In both cases, we have to default to `cp -pR'.
18150     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18151       as_ln_s='cp -pR'
18152   elif ln conf$$.file conf$$ 2>/dev/null; then
18153     as_ln_s=ln
18154   else
18155     as_ln_s='cp -pR'
18156   fi
18157 else
18158   as_ln_s='cp -pR'
18159 fi
18160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18161 rmdir conf$$.dir 2>/dev/null
18162
18163
18164 # as_fn_mkdir_p
18165 # -------------
18166 # Create "$as_dir" as a directory, including parents if necessary.
18167 as_fn_mkdir_p ()
18168 {
18169
18170   case $as_dir in #(
18171   -*) as_dir=./$as_dir;;
18172   esac
18173   test -d "$as_dir" || eval $as_mkdir_p || {
18174     as_dirs=
18175     while :; do
18176       case $as_dir in #(
18177       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18178       *) as_qdir=$as_dir;;
18179       esac
18180       as_dirs="'$as_qdir' $as_dirs"
18181       as_dir=`$as_dirname -- "$as_dir" ||
18182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18183          X"$as_dir" : 'X\(//\)[^/]' \| \
18184          X"$as_dir" : 'X\(//\)$' \| \
18185          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18186 printf "%s\n" X"$as_dir" |
18187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18188             s//\1/
18189             q
18190           }
18191           /^X\(\/\/\)[^/].*/{
18192             s//\1/
18193             q
18194           }
18195           /^X\(\/\/\)$/{
18196             s//\1/
18197             q
18198           }
18199           /^X\(\/\).*/{
18200             s//\1/
18201             q
18202           }
18203           s/.*/./; q'`
18204       test -d "$as_dir" && break
18205     done
18206     test -z "$as_dirs" || eval "mkdir $as_dirs"
18207   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18208
18209
18210 } # as_fn_mkdir_p
18211 if mkdir -p . 2>/dev/null; then
18212   as_mkdir_p='mkdir -p "$as_dir"'
18213 else
18214   test -d ./-p && rmdir ./-p
18215   as_mkdir_p=false
18216 fi
18217
18218
18219 # as_fn_executable_p FILE
18220 # -----------------------
18221 # Test if FILE is an executable regular file.
18222 as_fn_executable_p ()
18223 {
18224   test -f "$1" && test -x "$1"
18225 } # as_fn_executable_p
18226 as_test_x='test -x'
18227 as_executable_p=as_fn_executable_p
18228
18229 # Sed expression to map a string onto a valid CPP name.
18230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18231
18232 # Sed expression to map a string onto a valid variable name.
18233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18234
18235
18236 exec 6>&1
18237 ## ----------------------------------- ##
18238 ## Main body of $CONFIG_STATUS script. ##
18239 ## ----------------------------------- ##
18240 _ASEOF
18241 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18242
18243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18244 # Save the log message, to keep $0 and so on meaningful, and to
18245 # report actual input values of CONFIG_FILES etc. instead of their
18246 # values after options handling.
18247 ac_log="
18248 This file was extended by OpenPAM $as_me 20230627, which was
18249 generated by GNU Autoconf 2.71.  Invocation command line was
18250
18251   CONFIG_FILES    = $CONFIG_FILES
18252   CONFIG_HEADERS  = $CONFIG_HEADERS
18253   CONFIG_LINKS    = $CONFIG_LINKS
18254   CONFIG_COMMANDS = $CONFIG_COMMANDS
18255   $ $0 $@
18256
18257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18258 "
18259
18260 _ACEOF
18261
18262 case $ac_config_files in *"
18263 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18264 esac
18265
18266 case $ac_config_headers in *"
18267 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18268 esac
18269
18270
18271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18272 # Files that config.status was made for.
18273 config_files="$ac_config_files"
18274 config_headers="$ac_config_headers"
18275 config_commands="$ac_config_commands"
18276
18277 _ACEOF
18278
18279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18280 ac_cs_usage="\
18281 \`$as_me' instantiates files and other configuration actions
18282 from templates according to the current configuration.  Unless the files
18283 and actions are specified as TAGs, all are instantiated by default.
18284
18285 Usage: $0 [OPTION]... [TAG]...
18286
18287   -h, --help       print this help, then exit
18288   -V, --version    print version number and configuration settings, then exit
18289       --config     print configuration, then exit
18290   -q, --quiet, --silent
18291                    do not print progress messages
18292   -d, --debug      don't remove temporary files
18293       --recheck    update $as_me by reconfiguring in the same conditions
18294       --file=FILE[:TEMPLATE]
18295                    instantiate the configuration file FILE
18296       --header=FILE[:TEMPLATE]
18297                    instantiate the configuration header FILE
18298
18299 Configuration files:
18300 $config_files
18301
18302 Configuration headers:
18303 $config_headers
18304
18305 Configuration commands:
18306 $config_commands
18307
18308 Report bugs to <des@des.no>.
18309 OpenPAM home page: <https://openpam.org/>."
18310
18311 _ACEOF
18312 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18313 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18315 ac_cs_config='$ac_cs_config_escaped'
18316 ac_cs_version="\\
18317 OpenPAM config.status 20230627
18318 configured by $0, generated by GNU Autoconf 2.71,
18319   with options \\"\$ac_cs_config\\"
18320
18321 Copyright (C) 2021 Free Software Foundation, Inc.
18322 This config.status script is free software; the Free Software Foundation
18323 gives unlimited permission to copy, distribute and modify it."
18324
18325 ac_pwd='$ac_pwd'
18326 srcdir='$srcdir'
18327 INSTALL='$INSTALL'
18328 MKDIR_P='$MKDIR_P'
18329 AWK='$AWK'
18330 test -n "\$AWK" || AWK=awk
18331 _ACEOF
18332
18333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334 # The default lists apply if the user does not specify any file.
18335 ac_need_defaults=:
18336 while test $# != 0
18337 do
18338   case $1 in
18339   --*=?*)
18340     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18341     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18342     ac_shift=:
18343     ;;
18344   --*=)
18345     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18346     ac_optarg=
18347     ac_shift=:
18348     ;;
18349   *)
18350     ac_option=$1
18351     ac_optarg=$2
18352     ac_shift=shift
18353     ;;
18354   esac
18355
18356   case $ac_option in
18357   # Handling of the options.
18358   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18359     ac_cs_recheck=: ;;
18360   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18361     printf "%s\n" "$ac_cs_version"; exit ;;
18362   --config | --confi | --conf | --con | --co | --c )
18363     printf "%s\n" "$ac_cs_config"; exit ;;
18364   --debug | --debu | --deb | --de | --d | -d )
18365     debug=: ;;
18366   --file | --fil | --fi | --f )
18367     $ac_shift
18368     case $ac_optarg in
18369     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18370     '') as_fn_error $? "missing file argument" ;;
18371     esac
18372     as_fn_append CONFIG_FILES " '$ac_optarg'"
18373     ac_need_defaults=false;;
18374   --header | --heade | --head | --hea )
18375     $ac_shift
18376     case $ac_optarg in
18377     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18378     esac
18379     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18380     ac_need_defaults=false;;
18381   --he | --h)
18382     # Conflict between --help and --header
18383     as_fn_error $? "ambiguous option: \`$1'
18384 Try \`$0 --help' for more information.";;
18385   --help | --hel | -h )
18386     printf "%s\n" "$ac_cs_usage"; exit ;;
18387   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18388   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18389     ac_cs_silent=: ;;
18390
18391   # This is an error.
18392   -*) as_fn_error $? "unrecognized option: \`$1'
18393 Try \`$0 --help' for more information." ;;
18394
18395   *) as_fn_append ac_config_targets " $1"
18396      ac_need_defaults=false ;;
18397
18398   esac
18399   shift
18400 done
18401
18402 ac_configure_extra_args=
18403
18404 if $ac_cs_silent; then
18405   exec 6>/dev/null
18406   ac_configure_extra_args="$ac_configure_extra_args --silent"
18407 fi
18408
18409 _ACEOF
18410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18411 if \$ac_cs_recheck; then
18412   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18413   shift
18414   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18415   CONFIG_SHELL='$SHELL'
18416   export CONFIG_SHELL
18417   exec "\$@"
18418 fi
18419
18420 _ACEOF
18421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18422 exec 5>>config.log
18423 {
18424   echo
18425   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18426 ## Running $as_me. ##
18427 _ASBOX
18428   printf "%s\n" "$ac_log"
18429 } >&5
18430
18431 _ACEOF
18432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18433 #
18434 # INIT-COMMANDS
18435 #
18436 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18437
18438
18439 # The HP-UX ksh and POSIX shell print the target directory to stdout
18440 # if CDPATH is set.
18441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18442
18443 sed_quote_subst='$sed_quote_subst'
18444 double_quote_subst='$double_quote_subst'
18445 delay_variable_subst='$delay_variable_subst'
18446 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18447 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18448 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18449 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18450 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18451 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18452 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18453 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18454 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18455 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18456 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18457 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18458 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18459 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18460 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18461 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18462 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18463 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18464 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18465 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18466 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18467 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18468 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18469 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18470 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18471 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18472 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18473 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18474 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18475 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18476 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18477 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18478 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18479 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18480 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18481 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18482 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18483 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18484 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18485 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18486 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18487 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18488 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18489 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18490 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18491 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18492 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18493 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18494 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18495 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18496 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18497 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18498 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18499 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18500 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18501 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18502 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18503 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18504 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18505 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18506 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"`'
18507 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18508 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18509 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18510 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18511 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18512 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18513 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18514 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18515 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18516 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18517 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18518 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18519 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18520 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18521 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18522 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18523 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18524 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18525 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18526 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18527 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18528 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18529 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18530 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18531 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18532 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18533 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18534 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18535 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18536 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18537 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18538 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18539 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18540 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18541 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18542 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18543 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18544 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18545 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18546 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18547 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18548 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18549 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18550 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18551 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18552 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18553 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18554 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18555 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18556 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18557 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18558 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18559 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18560 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18561 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18562 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18563 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18564 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18565 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18566 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18567 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18568 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18569 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18570 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18571 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18572 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18573 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18574 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18575 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18576 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18577 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18578 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18579 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18580 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18581 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18582 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18583 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18584 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18585 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18586 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18587 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18588 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18589 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18590 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18591 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18592 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18593 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18594 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18595 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18596 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18597 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18598 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18599 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18600 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18601 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18602 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18603 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18604 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18605 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18606 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18607 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18608 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18609 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18610 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18611 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18612 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18613 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18614 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18615 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18616 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18617 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18618 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18619 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18620 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18621 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18622 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18623 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18624 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18625 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18626 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18627 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18628 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18629 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18630 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18631 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18632 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18633 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18634 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18635 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18636 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18637
18638 LTCC='$LTCC'
18639 LTCFLAGS='$LTCFLAGS'
18640 compiler='$compiler_DEFAULT'
18641
18642 # A function that is used when there is no print builtin or printf.
18643 func_fallback_echo ()
18644 {
18645   eval 'cat <<_LTECHO_EOF
18646 \$1
18647 _LTECHO_EOF'
18648 }
18649
18650 # Quote evaled strings.
18651 for var in SHELL \
18652 ECHO \
18653 PATH_SEPARATOR \
18654 SED \
18655 GREP \
18656 EGREP \
18657 FGREP \
18658 LD \
18659 NM \
18660 LN_S \
18661 lt_SP2NL \
18662 lt_NL2SP \
18663 reload_flag \
18664 FILECMD \
18665 OBJDUMP \
18666 deplibs_check_method \
18667 file_magic_cmd \
18668 file_magic_glob \
18669 want_nocaseglob \
18670 DLLTOOL \
18671 sharedlib_from_linklib_cmd \
18672 AR \
18673 archiver_list_spec \
18674 STRIP \
18675 RANLIB \
18676 CC \
18677 CFLAGS \
18678 compiler \
18679 lt_cv_sys_global_symbol_pipe \
18680 lt_cv_sys_global_symbol_to_cdecl \
18681 lt_cv_sys_global_symbol_to_import \
18682 lt_cv_sys_global_symbol_to_c_name_address \
18683 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18684 lt_cv_nm_interface \
18685 nm_file_list_spec \
18686 lt_cv_truncate_bin \
18687 lt_prog_compiler_no_builtin_flag \
18688 lt_prog_compiler_pic \
18689 lt_prog_compiler_wl \
18690 lt_prog_compiler_static \
18691 lt_cv_prog_compiler_c_o \
18692 need_locks \
18693 MANIFEST_TOOL \
18694 DSYMUTIL \
18695 NMEDIT \
18696 LIPO \
18697 OTOOL \
18698 OTOOL64 \
18699 shrext_cmds \
18700 export_dynamic_flag_spec \
18701 whole_archive_flag_spec \
18702 compiler_needs_object \
18703 with_gnu_ld \
18704 allow_undefined_flag \
18705 no_undefined_flag \
18706 hardcode_libdir_flag_spec \
18707 hardcode_libdir_separator \
18708 exclude_expsyms \
18709 include_expsyms \
18710 file_list_spec \
18711 variables_saved_for_relink \
18712 libname_spec \
18713 library_names_spec \
18714 soname_spec \
18715 install_override_mode \
18716 finish_eval \
18717 old_striplib \
18718 striplib \
18719 compiler_lib_search_dirs \
18720 predep_objects \
18721 postdep_objects \
18722 predeps \
18723 postdeps \
18724 compiler_lib_search_path \
18725 LD_CXX \
18726 reload_flag_CXX \
18727 compiler_CXX \
18728 lt_prog_compiler_no_builtin_flag_CXX \
18729 lt_prog_compiler_pic_CXX \
18730 lt_prog_compiler_wl_CXX \
18731 lt_prog_compiler_static_CXX \
18732 lt_cv_prog_compiler_c_o_CXX \
18733 export_dynamic_flag_spec_CXX \
18734 whole_archive_flag_spec_CXX \
18735 compiler_needs_object_CXX \
18736 with_gnu_ld_CXX \
18737 allow_undefined_flag_CXX \
18738 no_undefined_flag_CXX \
18739 hardcode_libdir_flag_spec_CXX \
18740 hardcode_libdir_separator_CXX \
18741 exclude_expsyms_CXX \
18742 include_expsyms_CXX \
18743 file_list_spec_CXX \
18744 compiler_lib_search_dirs_CXX \
18745 predep_objects_CXX \
18746 postdep_objects_CXX \
18747 predeps_CXX \
18748 postdeps_CXX \
18749 compiler_lib_search_path_CXX; do
18750     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18751     *[\\\\\\\`\\"\\\$]*)
18752       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18753       ;;
18754     *)
18755       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18756       ;;
18757     esac
18758 done
18759
18760 # Double-quote double-evaled strings.
18761 for var in reload_cmds \
18762 old_postinstall_cmds \
18763 old_postuninstall_cmds \
18764 old_archive_cmds \
18765 extract_expsyms_cmds \
18766 old_archive_from_new_cmds \
18767 old_archive_from_expsyms_cmds \
18768 archive_cmds \
18769 archive_expsym_cmds \
18770 module_cmds \
18771 module_expsym_cmds \
18772 export_symbols_cmds \
18773 prelink_cmds \
18774 postlink_cmds \
18775 postinstall_cmds \
18776 postuninstall_cmds \
18777 finish_cmds \
18778 sys_lib_search_path_spec \
18779 configure_time_dlsearch_path \
18780 configure_time_lt_sys_library_path \
18781 reload_cmds_CXX \
18782 old_archive_cmds_CXX \
18783 old_archive_from_new_cmds_CXX \
18784 old_archive_from_expsyms_cmds_CXX \
18785 archive_cmds_CXX \
18786 archive_expsym_cmds_CXX \
18787 module_cmds_CXX \
18788 module_expsym_cmds_CXX \
18789 export_symbols_cmds_CXX \
18790 prelink_cmds_CXX \
18791 postlink_cmds_CXX; do
18792     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18793     *[\\\\\\\`\\"\\\$]*)
18794       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18795       ;;
18796     *)
18797       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18798       ;;
18799     esac
18800 done
18801
18802 ac_aux_dir='$ac_aux_dir'
18803
18804 # See if we are running on zsh, and set the options that allow our
18805 # commands through without removal of \ escapes INIT.
18806 if test -n "\${ZSH_VERSION+set}"; then
18807    setopt NO_GLOB_SUBST
18808 fi
18809
18810
18811     PACKAGE='$PACKAGE'
18812     VERSION='$VERSION'
18813     RM='$RM'
18814     ofile='$ofile'
18815
18816
18817
18818
18819
18820
18821 _ACEOF
18822
18823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18824
18825 # Handling of arguments.
18826 for ac_config_target in $ac_config_targets
18827 do
18828   case $ac_config_target in
18829     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18830     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18831     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18832     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18833     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
18834     "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
18835     "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
18836     "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
18837     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18838     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
18839     "freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES freebsd/Makefile" ;;
18840     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18841     "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
18842     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18843     "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
18844     "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
18845     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18846     "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
18847     "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
18848     "modules/pam_return/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_return/Makefile" ;;
18849     "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
18850     "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
18851     "misc/coverity.sh") CONFIG_FILES="$CONFIG_FILES misc/coverity.sh" ;;
18852
18853   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18854   esac
18855 done
18856
18857
18858 # If the user did not use the arguments to specify the items to instantiate,
18859 # then the envvar interface is used.  Set only those that are not.
18860 # We use the long form for the default assignment because of an extremely
18861 # bizarre bug on SunOS 4.1.3.
18862 if $ac_need_defaults; then
18863   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18864   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18865   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18866 fi
18867
18868 # Have a temporary directory for convenience.  Make it in the build tree
18869 # simply because there is no reason against having it here, and in addition,
18870 # creating and moving files from /tmp can sometimes cause problems.
18871 # Hook for its removal unless debugging.
18872 # Note that there is a small window in which the directory will not be cleaned:
18873 # after its creation but before its name has been assigned to `$tmp'.
18874 $debug ||
18875 {
18876   tmp= ac_tmp=
18877   trap 'exit_status=$?
18878   : "${ac_tmp:=$tmp}"
18879   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18880 ' 0
18881   trap 'as_fn_exit 1' 1 2 13 15
18882 }
18883 # Create a (secure) tmp directory for tmp files.
18884
18885 {
18886   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18887   test -d "$tmp"
18888 }  ||
18889 {
18890   tmp=./conf$$-$RANDOM
18891   (umask 077 && mkdir "$tmp")
18892 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18893 ac_tmp=$tmp
18894
18895 # Set up the scripts for CONFIG_FILES section.
18896 # No need to generate them if there are no CONFIG_FILES.
18897 # This happens for instance with `./config.status config.h'.
18898 if test -n "$CONFIG_FILES"; then
18899
18900
18901 ac_cr=`echo X | tr X '\015'`
18902 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18903 # But we know of no other shell where ac_cr would be empty at this
18904 # point, so we can use a bashism as a fallback.
18905 if test "x$ac_cr" = x; then
18906   eval ac_cr=\$\'\\r\'
18907 fi
18908 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18909 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18910   ac_cs_awk_cr='\\r'
18911 else
18912   ac_cs_awk_cr=$ac_cr
18913 fi
18914
18915 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18916 _ACEOF
18917
18918
18919 {
18920   echo "cat >conf$$subs.awk <<_ACEOF" &&
18921   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18922   echo "_ACEOF"
18923 } >conf$$subs.sh ||
18924   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18925 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18926 ac_delim='%!_!# '
18927 for ac_last_try in false false false false false :; do
18928   . ./conf$$subs.sh ||
18929     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18930
18931   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18932   if test $ac_delim_n = $ac_delim_num; then
18933     break
18934   elif $ac_last_try; then
18935     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18936   else
18937     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18938   fi
18939 done
18940 rm -f conf$$subs.sh
18941
18942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18943 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18944 _ACEOF
18945 sed -n '
18946 h
18947 s/^/S["/; s/!.*/"]=/
18948 p
18949 g
18950 s/^[^!]*!//
18951 :repl
18952 t repl
18953 s/'"$ac_delim"'$//
18954 t delim
18955 :nl
18956 h
18957 s/\(.\{148\}\)..*/\1/
18958 t more1
18959 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18960 p
18961 n
18962 b repl
18963 :more1
18964 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18965 p
18966 g
18967 s/.\{148\}//
18968 t nl
18969 :delim
18970 h
18971 s/\(.\{148\}\)..*/\1/
18972 t more2
18973 s/["\\]/\\&/g; s/^/"/; s/$/"/
18974 p
18975 b
18976 :more2
18977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18978 p
18979 g
18980 s/.\{148\}//
18981 t delim
18982 ' <conf$$subs.awk | sed '
18983 /^[^""]/{
18984   N
18985   s/\n//
18986 }
18987 ' >>$CONFIG_STATUS || ac_write_fail=1
18988 rm -f conf$$subs.awk
18989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18990 _ACAWK
18991 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18992   for (key in S) S_is_set[key] = 1
18993   FS = "\a"
18994
18995 }
18996 {
18997   line = $ 0
18998   nfields = split(line, field, "@")
18999   substed = 0
19000   len = length(field[1])
19001   for (i = 2; i < nfields; i++) {
19002     key = field[i]
19003     keylen = length(key)
19004     if (S_is_set[key]) {
19005       value = S[key]
19006       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19007       len += length(value) + length(field[++i])
19008       substed = 1
19009     } else
19010       len += 1 + keylen
19011   }
19012
19013   print line
19014 }
19015
19016 _ACAWK
19017 _ACEOF
19018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19019 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19020   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19021 else
19022   cat
19023 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19024   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19025 _ACEOF
19026
19027 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19028 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19029 # trailing colons and then remove the whole line if VPATH becomes empty
19030 # (actually we leave an empty line to preserve line numbers).
19031 if test "x$srcdir" = x.; then
19032   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19033 h
19034 s///
19035 s/^/:/
19036 s/[      ]*$/:/
19037 s/:\$(srcdir):/:/g
19038 s/:\${srcdir}:/:/g
19039 s/:@srcdir@:/:/g
19040 s/^:*//
19041 s/:*$//
19042 x
19043 s/\(=[   ]*\).*/\1/
19044 G
19045 s/\n//
19046 s/^[^=]*=[       ]*$//
19047 }'
19048 fi
19049
19050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19051 fi # test -n "$CONFIG_FILES"
19052
19053 # Set up the scripts for CONFIG_HEADERS section.
19054 # No need to generate them if there are no CONFIG_HEADERS.
19055 # This happens for instance with `./config.status Makefile'.
19056 if test -n "$CONFIG_HEADERS"; then
19057 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19058 BEGIN {
19059 _ACEOF
19060
19061 # Transform confdefs.h into an awk script `defines.awk', embedded as
19062 # here-document in config.status, that substitutes the proper values into
19063 # config.h.in to produce config.h.
19064
19065 # Create a delimiter string that does not exist in confdefs.h, to ease
19066 # handling of long lines.
19067 ac_delim='%!_!# '
19068 for ac_last_try in false false :; do
19069   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19070   if test -z "$ac_tt"; then
19071     break
19072   elif $ac_last_try; then
19073     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19074   else
19075     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19076   fi
19077 done
19078
19079 # For the awk script, D is an array of macro values keyed by name,
19080 # likewise P contains macro parameters if any.  Preserve backslash
19081 # newline sequences.
19082
19083 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19084 sed -n '
19085 s/.\{148\}/&'"$ac_delim"'/g
19086 t rset
19087 :rset
19088 s/^[     ]*#[    ]*define[       ][      ]*/ /
19089 t def
19090 d
19091 :def
19092 s/\\$//
19093 t bsnl
19094 s/["\\]/\\&/g
19095 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19096 D["\1"]=" \3"/p
19097 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19098 d
19099 :bsnl
19100 s/["\\]/\\&/g
19101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19102 D["\1"]=" \3\\\\\\n"\\/p
19103 t cont
19104 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19105 t cont
19106 d
19107 :cont
19108 n
19109 s/.\{148\}/&'"$ac_delim"'/g
19110 t clear
19111 :clear
19112 s/\\$//
19113 t bsnlc
19114 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19115 d
19116 :bsnlc
19117 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19118 b cont
19119 ' <confdefs.h | sed '
19120 s/'"$ac_delim"'/"\\\
19121 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19122
19123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19124   for (key in D) D_is_set[key] = 1
19125   FS = "\a"
19126 }
19127 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19128   line = \$ 0
19129   split(line, arg, " ")
19130   if (arg[1] == "#") {
19131     defundef = arg[2]
19132     mac1 = arg[3]
19133   } else {
19134     defundef = substr(arg[1], 2)
19135     mac1 = arg[2]
19136   }
19137   split(mac1, mac2, "(") #)
19138   macro = mac2[1]
19139   prefix = substr(line, 1, index(line, defundef) - 1)
19140   if (D_is_set[macro]) {
19141     # Preserve the white space surrounding the "#".
19142     print prefix "define", macro P[macro] D[macro]
19143     next
19144   } else {
19145     # Replace #undef with comments.  This is necessary, for example,
19146     # in the case of _POSIX_SOURCE, which is predefined and required
19147     # on some systems where configure will not decide to define it.
19148     if (defundef == "undef") {
19149       print "/*", prefix defundef, macro, "*/"
19150       next
19151     }
19152   }
19153 }
19154 { print }
19155 _ACAWK
19156 _ACEOF
19157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19158   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19159 fi # test -n "$CONFIG_HEADERS"
19160
19161
19162 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19163 shift
19164 for ac_tag
19165 do
19166   case $ac_tag in
19167   :[FHLC]) ac_mode=$ac_tag; continue;;
19168   esac
19169   case $ac_mode$ac_tag in
19170   :[FHL]*:*);;
19171   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19172   :[FH]-) ac_tag=-:-;;
19173   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19174   esac
19175   ac_save_IFS=$IFS
19176   IFS=:
19177   set x $ac_tag
19178   IFS=$ac_save_IFS
19179   shift
19180   ac_file=$1
19181   shift
19182
19183   case $ac_mode in
19184   :L) ac_source=$1;;
19185   :[FH])
19186     ac_file_inputs=
19187     for ac_f
19188     do
19189       case $ac_f in
19190       -) ac_f="$ac_tmp/stdin";;
19191       *) # Look for the file first in the build tree, then in the source tree
19192          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19193          # because $ac_f cannot contain `:'.
19194          test -f "$ac_f" ||
19195            case $ac_f in
19196            [\\/$]*) false;;
19197            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19198            esac ||
19199            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19200       esac
19201       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19202       as_fn_append ac_file_inputs " '$ac_f'"
19203     done
19204
19205     # Let's still pretend it is `configure' which instantiates (i.e., don't
19206     # use $as_me), people would be surprised to read:
19207     #    /* config.h.  Generated by config.status.  */
19208     configure_input='Generated from '`
19209           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19210         `' by configure.'
19211     if test x"$ac_file" != x-; then
19212       configure_input="$ac_file.  $configure_input"
19213       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19214 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19215     fi
19216     # Neutralize special characters interpreted by sed in replacement strings.
19217     case $configure_input in #(
19218     *\&* | *\|* | *\\* )
19219        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19220        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19221     *) ac_sed_conf_input=$configure_input;;
19222     esac
19223
19224     case $ac_tag in
19225     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19226       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19227     esac
19228     ;;
19229   esac
19230
19231   ac_dir=`$as_dirname -- "$ac_file" ||
19232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19233          X"$ac_file" : 'X\(//\)[^/]' \| \
19234          X"$ac_file" : 'X\(//\)$' \| \
19235          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19236 printf "%s\n" X"$ac_file" |
19237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19238             s//\1/
19239             q
19240           }
19241           /^X\(\/\/\)[^/].*/{
19242             s//\1/
19243             q
19244           }
19245           /^X\(\/\/\)$/{
19246             s//\1/
19247             q
19248           }
19249           /^X\(\/\).*/{
19250             s//\1/
19251             q
19252           }
19253           s/.*/./; q'`
19254   as_dir="$ac_dir"; as_fn_mkdir_p
19255   ac_builddir=.
19256
19257 case "$ac_dir" in
19258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19259 *)
19260   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19261   # A ".." for each directory in $ac_dir_suffix.
19262   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19263   case $ac_top_builddir_sub in
19264   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19265   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19266   esac ;;
19267 esac
19268 ac_abs_top_builddir=$ac_pwd
19269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19270 # for backward compatibility:
19271 ac_top_builddir=$ac_top_build_prefix
19272
19273 case $srcdir in
19274   .)  # We are building in place.
19275     ac_srcdir=.
19276     ac_top_srcdir=$ac_top_builddir_sub
19277     ac_abs_top_srcdir=$ac_pwd ;;
19278   [\\/]* | ?:[\\/]* )  # Absolute name.
19279     ac_srcdir=$srcdir$ac_dir_suffix;
19280     ac_top_srcdir=$srcdir
19281     ac_abs_top_srcdir=$srcdir ;;
19282   *) # Relative name.
19283     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19284     ac_top_srcdir=$ac_top_build_prefix$srcdir
19285     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19286 esac
19287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19288
19289
19290   case $ac_mode in
19291   :F)
19292   #
19293   # CONFIG_FILE
19294   #
19295
19296   case $INSTALL in
19297   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19298   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19299   esac
19300   ac_MKDIR_P=$MKDIR_P
19301   case $MKDIR_P in
19302   [\\/$]* | ?:[\\/]* ) ;;
19303   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19304   esac
19305 _ACEOF
19306
19307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19308 # If the template does not know about datarootdir, expand it.
19309 # FIXME: This hack should be removed a few years after 2.60.
19310 ac_datarootdir_hack=; ac_datarootdir_seen=
19311 ac_sed_dataroot='
19312 /datarootdir/ {
19313   p
19314   q
19315 }
19316 /@datadir@/p
19317 /@docdir@/p
19318 /@infodir@/p
19319 /@localedir@/p
19320 /@mandir@/p'
19321 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19322 *datarootdir*) ac_datarootdir_seen=yes;;
19323 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19325 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19326 _ACEOF
19327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19328   ac_datarootdir_hack='
19329   s&@datadir@&$datadir&g
19330   s&@docdir@&$docdir&g
19331   s&@infodir@&$infodir&g
19332   s&@localedir@&$localedir&g
19333   s&@mandir@&$mandir&g
19334   s&\\\${datarootdir}&$datarootdir&g' ;;
19335 esac
19336 _ACEOF
19337
19338 # Neutralize VPATH when `$srcdir' = `.'.
19339 # Shell code in configure.ac might set extrasub.
19340 # FIXME: do we really want to maintain this feature?
19341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19342 ac_sed_extra="$ac_vpsub
19343 $extrasub
19344 _ACEOF
19345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19346 :t
19347 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19348 s|@configure_input@|$ac_sed_conf_input|;t t
19349 s&@top_builddir@&$ac_top_builddir_sub&;t t
19350 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19351 s&@srcdir@&$ac_srcdir&;t t
19352 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19353 s&@top_srcdir@&$ac_top_srcdir&;t t
19354 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19355 s&@builddir@&$ac_builddir&;t t
19356 s&@abs_builddir@&$ac_abs_builddir&;t t
19357 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19358 s&@INSTALL@&$ac_INSTALL&;t t
19359 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19360 $ac_datarootdir_hack
19361 "
19362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19363   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19364
19365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19366   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19367   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19368       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19369   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19370 which seems to be undefined.  Please make sure it is defined" >&5
19371 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19372 which seems to be undefined.  Please make sure it is defined" >&2;}
19373
19374   rm -f "$ac_tmp/stdin"
19375   case $ac_file in
19376   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19377   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19378   esac \
19379   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19380  ;;
19381   :H)
19382   #
19383   # CONFIG_HEADER
19384   #
19385   if test x"$ac_file" != x-; then
19386     {
19387       printf "%s\n" "/* $configure_input  */" >&1 \
19388       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19389     } >"$ac_tmp/config.h" \
19390       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19391     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19392       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19393 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19394     else
19395       rm -f "$ac_file"
19396       mv "$ac_tmp/config.h" "$ac_file" \
19397         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19398     fi
19399   else
19400     printf "%s\n" "/* $configure_input  */" >&1 \
19401       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19402       || as_fn_error $? "could not create -" "$LINENO" 5
19403   fi
19404 # Compute "$ac_file"'s index in $config_headers.
19405 _am_arg="$ac_file"
19406 _am_stamp_count=1
19407 for _am_header in $config_headers :; do
19408   case $_am_header in
19409     $_am_arg | $_am_arg:* )
19410       break ;;
19411     * )
19412       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19413   esac
19414 done
19415 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19416 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19417          X"$_am_arg" : 'X\(//\)[^/]' \| \
19418          X"$_am_arg" : 'X\(//\)$' \| \
19419          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19420 printf "%s\n" X"$_am_arg" |
19421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19422             s//\1/
19423             q
19424           }
19425           /^X\(\/\/\)[^/].*/{
19426             s//\1/
19427             q
19428           }
19429           /^X\(\/\/\)$/{
19430             s//\1/
19431             q
19432           }
19433           /^X\(\/\).*/{
19434             s//\1/
19435             q
19436           }
19437           s/.*/./; q'`/stamp-h$_am_stamp_count
19438  ;;
19439
19440   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19441 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19442  ;;
19443   esac
19444
19445
19446   case $ac_file$ac_mode in
19447     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19448   # Older Autoconf quotes --file arguments for eval, but not when files
19449   # are listed without --file.  Let's play safe and only enable the eval
19450   # if we detect the quoting.
19451   # TODO: see whether this extra hack can be removed once we start
19452   # requiring Autoconf 2.70 or later.
19453   case $CONFIG_FILES in #(
19454   *\'*) :
19455     eval set x "$CONFIG_FILES" ;; #(
19456   *) :
19457     set x $CONFIG_FILES ;; #(
19458   *) :
19459      ;;
19460 esac
19461   shift
19462   # Used to flag and report bootstrapping failures.
19463   am_rc=0
19464   for am_mf
19465   do
19466     # Strip MF so we end up with the name of the file.
19467     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19468     # Check whether this is an Automake generated Makefile which includes
19469     # dependency-tracking related rules and includes.
19470     # Grep'ing the whole file directly is not great: AIX grep has a line
19471     # limit of 2048, but all sed's we know have understand at least 4000.
19472     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19473       || continue
19474     am_dirpart=`$as_dirname -- "$am_mf" ||
19475 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19476          X"$am_mf" : 'X\(//\)[^/]' \| \
19477          X"$am_mf" : 'X\(//\)$' \| \
19478          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19479 printf "%s\n" X"$am_mf" |
19480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19481             s//\1/
19482             q
19483           }
19484           /^X\(\/\/\)[^/].*/{
19485             s//\1/
19486             q
19487           }
19488           /^X\(\/\/\)$/{
19489             s//\1/
19490             q
19491           }
19492           /^X\(\/\).*/{
19493             s//\1/
19494             q
19495           }
19496           s/.*/./; q'`
19497     am_filepart=`$as_basename -- "$am_mf" ||
19498 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19499          X"$am_mf" : 'X\(//\)$' \| \
19500          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19501 printf "%s\n" X/"$am_mf" |
19502     sed '/^.*\/\([^/][^/]*\)\/*$/{
19503             s//\1/
19504             q
19505           }
19506           /^X\/\(\/\/\)$/{
19507             s//\1/
19508             q
19509           }
19510           /^X\/\(\/\).*/{
19511             s//\1/
19512             q
19513           }
19514           s/.*/./; q'`
19515     { echo "$as_me:$LINENO: cd "$am_dirpart" \
19516       && sed -e '/# am--include-marker/d' "$am_filepart" \
19517         | $MAKE -f - am--depfiles" >&5
19518    (cd "$am_dirpart" \
19519       && sed -e '/# am--include-marker/d' "$am_filepart" \
19520         | $MAKE -f - am--depfiles) >&5 2>&5
19521    ac_status=$?
19522    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523    (exit $ac_status); } || am_rc=$?
19524   done
19525   if test $am_rc -ne 0; then
19526     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19527 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19528 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19529     for automatic dependency tracking.  If GNU make was not used, consider
19530     re-running the configure script with MAKE=\"gmake\" (or whatever is
19531     necessary).  You can also try re-running configure with the
19532     '--disable-dependency-tracking' option to at least be able to build
19533     the package (albeit without support for automatic dependency tracking).
19534 See \`config.log' for more details" "$LINENO" 5; }
19535   fi
19536   { am_dirpart=; unset am_dirpart;}
19537   { am_filepart=; unset am_filepart;}
19538   { am_mf=; unset am_mf;}
19539   { am_rc=; unset am_rc;}
19540   rm -f conftest-deps.mk
19541 }
19542  ;;
19543     "libtool":C)
19544
19545     # See if we are running on zsh, and set the options that allow our
19546     # commands through without removal of \ escapes.
19547     if test -n "${ZSH_VERSION+set}"; then
19548       setopt NO_GLOB_SUBST
19549     fi
19550
19551     cfgfile=${ofile}T
19552     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19553     $RM "$cfgfile"
19554
19555     cat <<_LT_EOF >> "$cfgfile"
19556 #! $SHELL
19557 # Generated automatically by $as_me ($PACKAGE) $VERSION
19558 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19559 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19560
19561 # Provide generalized library-building support services.
19562 # Written by Gordon Matzigkeit, 1996
19563
19564 # Copyright (C) 2014 Free Software Foundation, Inc.
19565 # This is free software; see the source for copying conditions.  There is NO
19566 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19567
19568 # GNU Libtool is free software; you can redistribute it and/or modify
19569 # it under the terms of the GNU General Public License as published by
19570 # the Free Software Foundation; either version 2 of of the License, or
19571 # (at your option) any later version.
19572 #
19573 # As a special exception to the GNU General Public License, if you
19574 # distribute this file as part of a program or library that is built
19575 # using GNU Libtool, you may include this file under the  same
19576 # distribution terms that you use for the rest of that program.
19577 #
19578 # GNU Libtool is distributed in the hope that it will be useful, but
19579 # WITHOUT ANY WARRANTY; without even the implied warranty of
19580 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19581 # GNU General Public License for more details.
19582 #
19583 # You should have received a copy of the GNU General Public License
19584 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19585
19586
19587 # The names of the tagged configurations supported by this script.
19588 available_tags='CXX '
19589
19590 # Configured defaults for sys_lib_dlsearch_path munging.
19591 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19592
19593 # ### BEGIN LIBTOOL CONFIG
19594
19595 # Which release of libtool.m4 was used?
19596 macro_version=$macro_version
19597 macro_revision=$macro_revision
19598
19599 # Whether or not to build static libraries.
19600 build_old_libs=$enable_static
19601
19602 # Whether or not to build shared libraries.
19603 build_libtool_libs=$enable_shared
19604
19605 # What type of objects to build.
19606 pic_mode=$pic_mode
19607
19608 # Whether or not to optimize for fast installation.
19609 fast_install=$enable_fast_install
19610
19611 # Shared archive member basename,for filename based shared library versioning on AIX.
19612 shared_archive_member_spec=$shared_archive_member_spec
19613
19614 # Shell to use when invoking shell scripts.
19615 SHELL=$lt_SHELL
19616
19617 # An echo program that protects backslashes.
19618 ECHO=$lt_ECHO
19619
19620 # The PATH separator for the build system.
19621 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19622
19623 # The host system.
19624 host_alias=$host_alias
19625 host=$host
19626 host_os=$host_os
19627
19628 # The build system.
19629 build_alias=$build_alias
19630 build=$build
19631 build_os=$build_os
19632
19633 # A sed program that does not truncate output.
19634 SED=$lt_SED
19635
19636 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19637 Xsed="\$SED -e 1s/^X//"
19638
19639 # A grep program that handles long lines.
19640 GREP=$lt_GREP
19641
19642 # An ERE matcher.
19643 EGREP=$lt_EGREP
19644
19645 # A literal string matcher.
19646 FGREP=$lt_FGREP
19647
19648 # A BSD- or MS-compatible name lister.
19649 NM=$lt_NM
19650
19651 # Whether we need soft or hard links.
19652 LN_S=$lt_LN_S
19653
19654 # What is the maximum length of a command?
19655 max_cmd_len=$max_cmd_len
19656
19657 # Object file suffix (normally "o").
19658 objext=$ac_objext
19659
19660 # Executable file suffix (normally "").
19661 exeext=$exeext
19662
19663 # whether the shell understands "unset".
19664 lt_unset=$lt_unset
19665
19666 # turn spaces into newlines.
19667 SP2NL=$lt_lt_SP2NL
19668
19669 # turn newlines into spaces.
19670 NL2SP=$lt_lt_NL2SP
19671
19672 # convert \$build file names to \$host format.
19673 to_host_file_cmd=$lt_cv_to_host_file_cmd
19674
19675 # convert \$build files to toolchain format.
19676 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19677
19678 # A file(cmd) program that detects file types.
19679 FILECMD=$lt_FILECMD
19680
19681 # An object symbol dumper.
19682 OBJDUMP=$lt_OBJDUMP
19683
19684 # Method to check whether dependent libraries are shared objects.
19685 deplibs_check_method=$lt_deplibs_check_method
19686
19687 # Command to use when deplibs_check_method = "file_magic".
19688 file_magic_cmd=$lt_file_magic_cmd
19689
19690 # How to find potential files when deplibs_check_method = "file_magic".
19691 file_magic_glob=$lt_file_magic_glob
19692
19693 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19694 want_nocaseglob=$lt_want_nocaseglob
19695
19696 # DLL creation program.
19697 DLLTOOL=$lt_DLLTOOL
19698
19699 # Command to associate shared and link libraries.
19700 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19701
19702 # The archiver.
19703 AR=$lt_AR
19704
19705 # Flags to create an archive (by configure).
19706 lt_ar_flags=$lt_ar_flags
19707
19708 # Flags to create an archive.
19709 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19710
19711 # How to feed a file listing to the archiver.
19712 archiver_list_spec=$lt_archiver_list_spec
19713
19714 # A symbol stripping program.
19715 STRIP=$lt_STRIP
19716
19717 # Commands used to install an old-style archive.
19718 RANLIB=$lt_RANLIB
19719 old_postinstall_cmds=$lt_old_postinstall_cmds
19720 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19721
19722 # Whether to use a lock for old archive extraction.
19723 lock_old_archive_extraction=$lock_old_archive_extraction
19724
19725 # A C compiler.
19726 LTCC=$lt_CC
19727
19728 # LTCC compiler flags.
19729 LTCFLAGS=$lt_CFLAGS
19730
19731 # Take the output of nm and produce a listing of raw symbols and C names.
19732 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19733
19734 # Transform the output of nm in a proper C declaration.
19735 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19736
19737 # Transform the output of nm into a list of symbols to manually relocate.
19738 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19739
19740 # Transform the output of nm in a C name address pair.
19741 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19742
19743 # Transform the output of nm in a C name address pair when lib prefix is needed.
19744 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19745
19746 # The name lister interface.
19747 nm_interface=$lt_lt_cv_nm_interface
19748
19749 # Specify filename containing input files for \$NM.
19750 nm_file_list_spec=$lt_nm_file_list_spec
19751
19752 # The root where to search for dependent libraries,and where our libraries should be installed.
19753 lt_sysroot=$lt_sysroot
19754
19755 # Command to truncate a binary pipe.
19756 lt_truncate_bin=$lt_lt_cv_truncate_bin
19757
19758 # The name of the directory that contains temporary libtool files.
19759 objdir=$objdir
19760
19761 # Used to examine libraries when file_magic_cmd begins with "file".
19762 MAGIC_CMD=$MAGIC_CMD
19763
19764 # Must we lock files when doing compilation?
19765 need_locks=$lt_need_locks
19766
19767 # Manifest tool.
19768 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19769
19770 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19771 DSYMUTIL=$lt_DSYMUTIL
19772
19773 # Tool to change global to local symbols on Mac OS X.
19774 NMEDIT=$lt_NMEDIT
19775
19776 # Tool to manipulate fat objects and archives on Mac OS X.
19777 LIPO=$lt_LIPO
19778
19779 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19780 OTOOL=$lt_OTOOL
19781
19782 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19783 OTOOL64=$lt_OTOOL64
19784
19785 # Old archive suffix (normally "a").
19786 libext=$libext
19787
19788 # Shared library suffix (normally ".so").
19789 shrext_cmds=$lt_shrext_cmds
19790
19791 # The commands to extract the exported symbol list from a shared archive.
19792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19793
19794 # Variables whose values should be saved in libtool wrapper scripts and
19795 # restored at link time.
19796 variables_saved_for_relink=$lt_variables_saved_for_relink
19797
19798 # Do we need the "lib" prefix for modules?
19799 need_lib_prefix=$need_lib_prefix
19800
19801 # Do we need a version for libraries?
19802 need_version=$need_version
19803
19804 # Library versioning type.
19805 version_type=$version_type
19806
19807 # Shared library runtime path variable.
19808 runpath_var=$runpath_var
19809
19810 # Shared library path variable.
19811 shlibpath_var=$shlibpath_var
19812
19813 # Is shlibpath searched before the hard-coded library search path?
19814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19815
19816 # Format of library name prefix.
19817 libname_spec=$lt_libname_spec
19818
19819 # List of archive names.  First name is the real one, the rest are links.
19820 # The last name is the one that the linker finds with -lNAME
19821 library_names_spec=$lt_library_names_spec
19822
19823 # The coded name of the library, if different from the real name.
19824 soname_spec=$lt_soname_spec
19825
19826 # Permission mode override for installation of shared libraries.
19827 install_override_mode=$lt_install_override_mode
19828
19829 # Command to use after installation of a shared archive.
19830 postinstall_cmds=$lt_postinstall_cmds
19831
19832 # Command to use after uninstallation of a shared archive.
19833 postuninstall_cmds=$lt_postuninstall_cmds
19834
19835 # Commands used to finish a libtool library installation in a directory.
19836 finish_cmds=$lt_finish_cmds
19837
19838 # As "finish_cmds", except a single script fragment to be evaled but
19839 # not shown.
19840 finish_eval=$lt_finish_eval
19841
19842 # Whether we should hardcode library paths into libraries.
19843 hardcode_into_libs=$hardcode_into_libs
19844
19845 # Compile-time system search path for libraries.
19846 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19847
19848 # Detected run-time system search path for libraries.
19849 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19850
19851 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19852 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19853
19854 # Whether dlopen is supported.
19855 dlopen_support=$enable_dlopen
19856
19857 # Whether dlopen of programs is supported.
19858 dlopen_self=$enable_dlopen_self
19859
19860 # Whether dlopen of statically linked programs is supported.
19861 dlopen_self_static=$enable_dlopen_self_static
19862
19863 # Commands to strip libraries.
19864 old_striplib=$lt_old_striplib
19865 striplib=$lt_striplib
19866
19867
19868 # The linker used to build libraries.
19869 LD=$lt_LD
19870
19871 # How to create reloadable object files.
19872 reload_flag=$lt_reload_flag
19873 reload_cmds=$lt_reload_cmds
19874
19875 # Commands used to build an old-style archive.
19876 old_archive_cmds=$lt_old_archive_cmds
19877
19878 # A language specific compiler.
19879 CC=$lt_compiler
19880
19881 # Is the compiler the GNU compiler?
19882 with_gcc=$GCC
19883
19884 # Compiler flag to turn off builtin functions.
19885 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19886
19887 # Additional compiler flags for building library objects.
19888 pic_flag=$lt_lt_prog_compiler_pic
19889
19890 # How to pass a linker flag through the compiler.
19891 wl=$lt_lt_prog_compiler_wl
19892
19893 # Compiler flag to prevent dynamic linking.
19894 link_static_flag=$lt_lt_prog_compiler_static
19895
19896 # Does compiler simultaneously support -c and -o options?
19897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19898
19899 # Whether or not to add -lc for building shared libraries.
19900 build_libtool_need_lc=$archive_cmds_need_lc
19901
19902 # Whether or not to disallow shared libs when runtime libs are static.
19903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19904
19905 # Compiler flag to allow reflexive dlopens.
19906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19907
19908 # Compiler flag to generate shared objects directly from archives.
19909 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19910
19911 # Whether the compiler copes with passing no objects directly.
19912 compiler_needs_object=$lt_compiler_needs_object
19913
19914 # Create an old-style archive from a shared archive.
19915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19916
19917 # Create a temporary old-style archive to link instead of a shared archive.
19918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19919
19920 # Commands used to build a shared archive.
19921 archive_cmds=$lt_archive_cmds
19922 archive_expsym_cmds=$lt_archive_expsym_cmds
19923
19924 # Commands used to build a loadable module if different from building
19925 # a shared archive.
19926 module_cmds=$lt_module_cmds
19927 module_expsym_cmds=$lt_module_expsym_cmds
19928
19929 # Whether we are building with GNU ld or not.
19930 with_gnu_ld=$lt_with_gnu_ld
19931
19932 # Flag that allows shared libraries with undefined symbols to be built.
19933 allow_undefined_flag=$lt_allow_undefined_flag
19934
19935 # Flag that enforces no undefined symbols.
19936 no_undefined_flag=$lt_no_undefined_flag
19937
19938 # Flag to hardcode \$libdir into a binary during linking.
19939 # This must work even if \$libdir does not exist
19940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19941
19942 # Whether we need a single "-rpath" flag with a separated argument.
19943 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19944
19945 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19946 # DIR into the resulting binary.
19947 hardcode_direct=$hardcode_direct
19948
19949 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19950 # DIR into the resulting binary and the resulting library dependency is
19951 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19952 # library is relocated.
19953 hardcode_direct_absolute=$hardcode_direct_absolute
19954
19955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19956 # into the resulting binary.
19957 hardcode_minus_L=$hardcode_minus_L
19958
19959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19960 # into the resulting binary.
19961 hardcode_shlibpath_var=$hardcode_shlibpath_var
19962
19963 # Set to "yes" if building a shared library automatically hardcodes DIR
19964 # into the library and all subsequent libraries and executables linked
19965 # against it.
19966 hardcode_automatic=$hardcode_automatic
19967
19968 # Set to yes if linker adds runtime paths of dependent libraries
19969 # to runtime path list.
19970 inherit_rpath=$inherit_rpath
19971
19972 # Whether libtool must link a program against all its dependency libraries.
19973 link_all_deplibs=$link_all_deplibs
19974
19975 # Set to "yes" if exported symbols are required.
19976 always_export_symbols=$always_export_symbols
19977
19978 # The commands to list exported symbols.
19979 export_symbols_cmds=$lt_export_symbols_cmds
19980
19981 # Symbols that should not be listed in the preloaded symbols.
19982 exclude_expsyms=$lt_exclude_expsyms
19983
19984 # Symbols that must always be exported.
19985 include_expsyms=$lt_include_expsyms
19986
19987 # Commands necessary for linking programs (against libraries) with templates.
19988 prelink_cmds=$lt_prelink_cmds
19989
19990 # Commands necessary for finishing linking programs.
19991 postlink_cmds=$lt_postlink_cmds
19992
19993 # Specify filename containing input files.
19994 file_list_spec=$lt_file_list_spec
19995
19996 # How to hardcode a shared library path into an executable.
19997 hardcode_action=$hardcode_action
19998
19999 # The directories searched by this compiler when creating a shared library.
20000 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20001
20002 # Dependencies to place before and after the objects being linked to
20003 # create a shared library.
20004 predep_objects=$lt_predep_objects
20005 postdep_objects=$lt_postdep_objects
20006 predeps=$lt_predeps
20007 postdeps=$lt_postdeps
20008
20009 # The library search path used internally by the compiler when linking
20010 # a shared library.
20011 compiler_lib_search_path=$lt_compiler_lib_search_path
20012
20013 # ### END LIBTOOL CONFIG
20014
20015 _LT_EOF
20016
20017     cat <<'_LT_EOF' >> "$cfgfile"
20018
20019 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20020
20021 # func_munge_path_list VARIABLE PATH
20022 # -----------------------------------
20023 # VARIABLE is name of variable containing _space_ separated list of
20024 # directories to be munged by the contents of PATH, which is string
20025 # having a format:
20026 # "DIR[:DIR]:"
20027 #       string "DIR[ DIR]" will be prepended to VARIABLE
20028 # ":DIR[:DIR]"
20029 #       string "DIR[ DIR]" will be appended to VARIABLE
20030 # "DIRP[:DIRP]::[DIRA:]DIRA"
20031 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20032 #       "DIRA[ DIRA]" will be appended to VARIABLE
20033 # "DIR[:DIR]"
20034 #       VARIABLE will be replaced by "DIR[ DIR]"
20035 func_munge_path_list ()
20036 {
20037     case x$2 in
20038     x)
20039         ;;
20040     *:)
20041         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20042         ;;
20043     x:*)
20044         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20045         ;;
20046     *::*)
20047         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20048         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20049         ;;
20050     *)
20051         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20052         ;;
20053     esac
20054 }
20055
20056
20057 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20058 func_cc_basename ()
20059 {
20060     for cc_temp in $*""; do
20061       case $cc_temp in
20062         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20063         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20064         \-*) ;;
20065         *) break;;
20066       esac
20067     done
20068     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20069 }
20070
20071
20072 # ### END FUNCTIONS SHARED WITH CONFIGURE
20073
20074 _LT_EOF
20075
20076   case $host_os in
20077   aix3*)
20078     cat <<\_LT_EOF >> "$cfgfile"
20079 # AIX sometimes has problems with the GCC collect2 program.  For some
20080 # reason, if we set the COLLECT_NAMES environment variable, the problems
20081 # vanish in a puff of smoke.
20082 if test set != "${COLLECT_NAMES+set}"; then
20083   COLLECT_NAMES=
20084   export COLLECT_NAMES
20085 fi
20086 _LT_EOF
20087     ;;
20088   esac
20089
20090
20091
20092 ltmain=$ac_aux_dir/ltmain.sh
20093
20094
20095   # We use sed instead of cat because bash on DJGPP gets confused if
20096   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20097   # text mode, it properly converts lines to CR/LF.  This bash problem
20098   # is reportedly fixed, but why not run on old versions too?
20099   $SED '$q' "$ltmain" >> "$cfgfile" \
20100      || (rm -f "$cfgfile"; exit 1)
20101
20102    mv -f "$cfgfile" "$ofile" ||
20103     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20104   chmod +x "$ofile"
20105
20106
20107     cat <<_LT_EOF >> "$ofile"
20108
20109 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20110
20111 # The linker used to build libraries.
20112 LD=$lt_LD_CXX
20113
20114 # How to create reloadable object files.
20115 reload_flag=$lt_reload_flag_CXX
20116 reload_cmds=$lt_reload_cmds_CXX
20117
20118 # Commands used to build an old-style archive.
20119 old_archive_cmds=$lt_old_archive_cmds_CXX
20120
20121 # A language specific compiler.
20122 CC=$lt_compiler_CXX
20123
20124 # Is the compiler the GNU compiler?
20125 with_gcc=$GCC_CXX
20126
20127 # Compiler flag to turn off builtin functions.
20128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20129
20130 # Additional compiler flags for building library objects.
20131 pic_flag=$lt_lt_prog_compiler_pic_CXX
20132
20133 # How to pass a linker flag through the compiler.
20134 wl=$lt_lt_prog_compiler_wl_CXX
20135
20136 # Compiler flag to prevent dynamic linking.
20137 link_static_flag=$lt_lt_prog_compiler_static_CXX
20138
20139 # Does compiler simultaneously support -c and -o options?
20140 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20141
20142 # Whether or not to add -lc for building shared libraries.
20143 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20144
20145 # Whether or not to disallow shared libs when runtime libs are static.
20146 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20147
20148 # Compiler flag to allow reflexive dlopens.
20149 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20150
20151 # Compiler flag to generate shared objects directly from archives.
20152 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20153
20154 # Whether the compiler copes with passing no objects directly.
20155 compiler_needs_object=$lt_compiler_needs_object_CXX
20156
20157 # Create an old-style archive from a shared archive.
20158 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20159
20160 # Create a temporary old-style archive to link instead of a shared archive.
20161 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20162
20163 # Commands used to build a shared archive.
20164 archive_cmds=$lt_archive_cmds_CXX
20165 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20166
20167 # Commands used to build a loadable module if different from building
20168 # a shared archive.
20169 module_cmds=$lt_module_cmds_CXX
20170 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20171
20172 # Whether we are building with GNU ld or not.
20173 with_gnu_ld=$lt_with_gnu_ld_CXX
20174
20175 # Flag that allows shared libraries with undefined symbols to be built.
20176 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20177
20178 # Flag that enforces no undefined symbols.
20179 no_undefined_flag=$lt_no_undefined_flag_CXX
20180
20181 # Flag to hardcode \$libdir into a binary during linking.
20182 # This must work even if \$libdir does not exist
20183 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20184
20185 # Whether we need a single "-rpath" flag with a separated argument.
20186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20187
20188 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20189 # DIR into the resulting binary.
20190 hardcode_direct=$hardcode_direct_CXX
20191
20192 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20193 # DIR into the resulting binary and the resulting library dependency is
20194 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20195 # library is relocated.
20196 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20197
20198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20199 # into the resulting binary.
20200 hardcode_minus_L=$hardcode_minus_L_CXX
20201
20202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20203 # into the resulting binary.
20204 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20205
20206 # Set to "yes" if building a shared library automatically hardcodes DIR
20207 # into the library and all subsequent libraries and executables linked
20208 # against it.
20209 hardcode_automatic=$hardcode_automatic_CXX
20210
20211 # Set to yes if linker adds runtime paths of dependent libraries
20212 # to runtime path list.
20213 inherit_rpath=$inherit_rpath_CXX
20214
20215 # Whether libtool must link a program against all its dependency libraries.
20216 link_all_deplibs=$link_all_deplibs_CXX
20217
20218 # Set to "yes" if exported symbols are required.
20219 always_export_symbols=$always_export_symbols_CXX
20220
20221 # The commands to list exported symbols.
20222 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20223
20224 # Symbols that should not be listed in the preloaded symbols.
20225 exclude_expsyms=$lt_exclude_expsyms_CXX
20226
20227 # Symbols that must always be exported.
20228 include_expsyms=$lt_include_expsyms_CXX
20229
20230 # Commands necessary for linking programs (against libraries) with templates.
20231 prelink_cmds=$lt_prelink_cmds_CXX
20232
20233 # Commands necessary for finishing linking programs.
20234 postlink_cmds=$lt_postlink_cmds_CXX
20235
20236 # Specify filename containing input files.
20237 file_list_spec=$lt_file_list_spec_CXX
20238
20239 # How to hardcode a shared library path into an executable.
20240 hardcode_action=$hardcode_action_CXX
20241
20242 # The directories searched by this compiler when creating a shared library.
20243 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20244
20245 # Dependencies to place before and after the objects being linked to
20246 # create a shared library.
20247 predep_objects=$lt_predep_objects_CXX
20248 postdep_objects=$lt_postdep_objects_CXX
20249 predeps=$lt_predeps_CXX
20250 postdeps=$lt_postdeps_CXX
20251
20252 # The library search path used internally by the compiler when linking
20253 # a shared library.
20254 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20255
20256 # ### END LIBTOOL TAG CONFIG: CXX
20257 _LT_EOF
20258
20259  ;;
20260     "misc/coverity.sh":F) chmod +x misc/coverity.sh ;;
20261
20262   esac
20263 done # for ac_tag
20264
20265
20266 as_fn_exit 0
20267 _ACEOF
20268 ac_clean_files=$ac_clean_files_save
20269
20270 test $ac_write_fail = 0 ||
20271   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20272
20273
20274 # configure is writing to config.log, and then calls config.status.
20275 # config.status does its own redirection, appending to config.log.
20276 # Unfortunately, on DOS this fails, as config.log is still kept open
20277 # by configure, so config.status won't be able to write to it; its
20278 # output is simply discarded.  So we exec the FD to /dev/null,
20279 # effectively closing config.log, so it can be properly (re)opened and
20280 # appended to by config.status.  When coming back to configure, we
20281 # need to make the FD available again.
20282 if test "$no_create" != yes; then
20283   ac_cs_success=:
20284   ac_config_status_args=
20285   test "$silent" = yes &&
20286     ac_config_status_args="$ac_config_status_args --quiet"
20287   exec 5>/dev/null
20288   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20289   exec 5>>config.log
20290   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20291   # would make configure fail if this is the last instruction.
20292   $ac_cs_success || as_fn_exit 1
20293 fi
20294 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20295   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20296 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20297 fi
20298
20299