de39278170ef17712902b3f1c59ab36e598cefdc
[platform/upstream/gettext.git] / gettext-runtime / libasprintf / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libasprintf 1.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libasprintf'
589 PACKAGE_TARNAME='libasprintf'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='libasprintf 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="vasprintf.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 gl_header_list=
633 ac_subst_vars='gltests_LTLIBOBJS
634 gltests_LIBOBJS
635 gl_LTLIBOBJS
636 gl_LIBOBJS
637 am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 PERL
642 TEXI2PDF
643 DVIPS
644 gltests_WITNESS
645 EOVERFLOW_VALUE
646 EOVERFLOW_HIDDEN
647 ENOLINK_VALUE
648 ENOLINK_HIDDEN
649 EMULTIHOP_VALUE
650 EMULTIHOP_HIDDEN
651 GL_GENERATE_ERRNO_H_FALSE
652 GL_GENERATE_ERRNO_H_TRUE
653 ERRNO_H
654 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
655 NEXT_ERRNO_H
656 PRAGMA_COLUMNS
657 PRAGMA_SYSTEM_HEADER
658 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
659 INCLUDE_NEXT
660 GL_GENERATE_ALLOCA_H_FALSE
661 GL_GENERATE_ALLOCA_H_TRUE
662 ALLOCA_H
663 ALLOCA
664 LTALLOCA
665 GL_COND_LIBTOOL_FALSE
666 GL_COND_LIBTOOL_TRUE
667 LTNOUNDEF
668 CXXCPP
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 LN_S
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 SED
683 LIBTOOL
684 OBJDUMP
685 DLLTOOL
686 AS
687 RANLIB
688 ARFLAGS
689 ac_ct_AR
690 AR
691 EGREP
692 GREP
693 CPP
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 am__fastdepCXX_FALSE
703 am__fastdepCXX_TRUE
704 CXXDEPMODE
705 ac_ct_CXX
706 CXXFLAGS
707 CXX
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 AM_BACKSLASH
726 AM_DEFAULT_VERBOSITY
727 AM_DEFAULT_V
728 AM_V
729 am__untar
730 am__tar
731 AMTAR
732 am__leading_dot
733 SET_MAKE
734 AWK
735 mkdir_p
736 MKDIR_P
737 INSTALL_STRIP_PROGRAM
738 STRIP
739 install_sh
740 MAKEINFO
741 AUTOHEADER
742 AUTOMAKE
743 AUTOCONF
744 ACLOCAL
745 VERSION
746 PACKAGE
747 CYGPATH_W
748 am__isrc
749 INSTALL_DATA
750 INSTALL_SCRIPT
751 INSTALL_PROGRAM
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_silent_rules
794 enable_dependency_tracking
795 enable_shared
796 enable_static
797 with_pic
798 enable_fast_install
799 with_aix_soname
800 with_gnu_ld
801 with_sysroot
802 enable_libtool_lock
803 '
804       ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 LIBS
811 CPPFLAGS
812 CXX
813 CXXFLAGS
814 CCC
815 CPP
816 LT_SYS_LIBRARY_PATH
817 CXXCPP'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *=)   ac_optarg= ;;
882   *)    ac_optarg=yes ;;
883   esac
884
885   # Accept the important Cygnus configure options, so we can diagnose typos.
886
887   case $ac_dashdash$ac_option in
888   --)
889     ac_dashdash=yes ;;
890
891   -bindir | --bindir | --bindi | --bind | --bin | --bi)
892     ac_prev=bindir ;;
893   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894     bindir=$ac_optarg ;;
895
896   -build | --build | --buil | --bui | --bu)
897     ac_prev=build_alias ;;
898   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899     build_alias=$ac_optarg ;;
900
901   -cache-file | --cache-file | --cache-fil | --cache-fi \
902   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903     ac_prev=cache_file ;;
904   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906     cache_file=$ac_optarg ;;
907
908   --config-cache | -C)
909     cache_file=config.cache ;;
910
911   -datadir | --datadir | --datadi | --datad)
912     ac_prev=datadir ;;
913   -datadir=* | --datadir=* | --datadi=* | --datad=*)
914     datadir=$ac_optarg ;;
915
916   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917   | --dataroo | --dataro | --datar)
918     ac_prev=datarootdir ;;
919   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921     datarootdir=$ac_optarg ;;
922
923   -disable-* | --disable-*)
924     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927       as_fn_error $? "invalid feature name: $ac_useropt"
928     ac_useropt_orig=$ac_useropt
929     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930     case $ac_user_opts in
931       *"
932 "enable_$ac_useropt"
933 "*) ;;
934       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935          ac_unrecognized_sep=', ';;
936     esac
937     eval enable_$ac_useropt=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error $? "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=\$ac_optarg ;;
964
965   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967   | --exec | --exe | --ex)
968     ac_prev=exec_prefix ;;
969   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971   | --exec=* | --exe=* | --ex=*)
972     exec_prefix=$ac_optarg ;;
973
974   -gas | --gas | --ga | --g)
975     # Obsolete; use --with-gas.
976     with_gas=yes ;;
977
978   -help | --help | --hel | --he | -h)
979     ac_init_help=long ;;
980   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981     ac_init_help=recursive ;;
982   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983     ac_init_help=short ;;
984
985   -host | --host | --hos | --ho)
986     ac_prev=host_alias ;;
987   -host=* | --host=* | --hos=* | --ho=*)
988     host_alias=$ac_optarg ;;
989
990   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991     ac_prev=htmldir ;;
992   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993   | --ht=*)
994     htmldir=$ac_optarg ;;
995
996   -includedir | --includedir | --includedi | --included | --include \
997   | --includ | --inclu | --incl | --inc)
998     ac_prev=includedir ;;
999   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000   | --includ=* | --inclu=* | --incl=* | --inc=*)
1001     includedir=$ac_optarg ;;
1002
1003   -infodir | --infodir | --infodi | --infod | --info | --inf)
1004     ac_prev=infodir ;;
1005   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006     infodir=$ac_optarg ;;
1007
1008   -libdir | --libdir | --libdi | --libd)
1009     ac_prev=libdir ;;
1010   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011     libdir=$ac_optarg ;;
1012
1013   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014   | --libexe | --libex | --libe)
1015     ac_prev=libexecdir ;;
1016   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017   | --libexe=* | --libex=* | --libe=*)
1018     libexecdir=$ac_optarg ;;
1019
1020   -localedir | --localedir | --localedi | --localed | --locale)
1021     ac_prev=localedir ;;
1022   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023     localedir=$ac_optarg ;;
1024
1025   -localstatedir | --localstatedir | --localstatedi | --localstated \
1026   | --localstate | --localstat | --localsta | --localst | --locals)
1027     ac_prev=localstatedir ;;
1028   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030     localstatedir=$ac_optarg ;;
1031
1032   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033     ac_prev=mandir ;;
1034   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035     mandir=$ac_optarg ;;
1036
1037   -nfp | --nfp | --nf)
1038     # Obsolete; use --without-fp.
1039     with_fp=no ;;
1040
1041   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042   | --no-cr | --no-c | -n)
1043     no_create=yes ;;
1044
1045   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047     no_recursion=yes ;;
1048
1049   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051   | --oldin | --oldi | --old | --ol | --o)
1052     ac_prev=oldincludedir ;;
1053   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056     oldincludedir=$ac_optarg ;;
1057
1058   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059     ac_prev=prefix ;;
1060   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061     prefix=$ac_optarg ;;
1062
1063   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064   | --program-pre | --program-pr | --program-p)
1065     ac_prev=program_prefix ;;
1066   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068     program_prefix=$ac_optarg ;;
1069
1070   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071   | --program-suf | --program-su | --program-s)
1072     ac_prev=program_suffix ;;
1073   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075     program_suffix=$ac_optarg ;;
1076
1077   -program-transform-name | --program-transform-name \
1078   | --program-transform-nam | --program-transform-na \
1079   | --program-transform-n | --program-transform- \
1080   | --program-transform | --program-transfor \
1081   | --program-transfo | --program-transf \
1082   | --program-trans | --program-tran \
1083   | --progr-tra | --program-tr | --program-t)
1084     ac_prev=program_transform_name ;;
1085   -program-transform-name=* | --program-transform-name=* \
1086   | --program-transform-nam=* | --program-transform-na=* \
1087   | --program-transform-n=* | --program-transform-=* \
1088   | --program-transform=* | --program-transfor=* \
1089   | --program-transfo=* | --program-transf=* \
1090   | --program-trans=* | --program-tran=* \
1091   | --progr-tra=* | --program-tr=* | --program-t=*)
1092     program_transform_name=$ac_optarg ;;
1093
1094   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095     ac_prev=pdfdir ;;
1096   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097     pdfdir=$ac_optarg ;;
1098
1099   -psdir | --psdir | --psdi | --psd | --ps)
1100     ac_prev=psdir ;;
1101   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102     psdir=$ac_optarg ;;
1103
1104   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105   | -silent | --silent | --silen | --sile | --sil)
1106     silent=yes ;;
1107
1108   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109     ac_prev=sbindir ;;
1110   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111   | --sbi=* | --sb=*)
1112     sbindir=$ac_optarg ;;
1113
1114   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116   | --sharedst | --shareds | --shared | --share | --shar \
1117   | --sha | --sh)
1118     ac_prev=sharedstatedir ;;
1119   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122   | --sha=* | --sh=*)
1123     sharedstatedir=$ac_optarg ;;
1124
1125   -site | --site | --sit)
1126     ac_prev=site ;;
1127   -site=* | --site=* | --sit=*)
1128     site=$ac_optarg ;;
1129
1130   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131     ac_prev=srcdir ;;
1132   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133     srcdir=$ac_optarg ;;
1134
1135   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136   | --syscon | --sysco | --sysc | --sys | --sy)
1137     ac_prev=sysconfdir ;;
1138   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140     sysconfdir=$ac_optarg ;;
1141
1142   -target | --target | --targe | --targ | --tar | --ta | --t)
1143     ac_prev=target_alias ;;
1144   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145     target_alias=$ac_optarg ;;
1146
1147   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148     verbose=yes ;;
1149
1150   -version | --version | --versio | --versi | --vers | -V)
1151     ac_init_version=: ;;
1152
1153   -with-* | --with-*)
1154     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157       as_fn_error $? "invalid package name: $ac_useropt"
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval with_$ac_useropt=\$ac_optarg ;;
1168
1169   -without-* | --without-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=no ;;
1184
1185   --x)
1186     # Obsolete; use --with-x.
1187     with_x=yes ;;
1188
1189   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190   | --x-incl | --x-inc | --x-in | --x-i)
1191     ac_prev=x_includes ;;
1192   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194     x_includes=$ac_optarg ;;
1195
1196   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198     ac_prev=x_libraries ;;
1199   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201     x_libraries=$ac_optarg ;;
1202
1203   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1205     ;;
1206
1207   *=*)
1208     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209     # Reject names that are not valid shell variable names.
1210     case $ac_envvar in #(
1211       '' | [0-9]* | *[!_$as_cr_alnum]* )
1212       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213     esac
1214     eval $ac_envvar=\$ac_optarg
1215     export $ac_envvar ;;
1216
1217   *)
1218     # FIXME: should be removed in autoconf 3.0.
1219     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223     ;;
1224
1225   esac
1226 done
1227
1228 if test -n "$ac_prev"; then
1229   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230   as_fn_error $? "missing argument to $ac_option"
1231 fi
1232
1233 if test -n "$ac_unrecognized_opts"; then
1234   case $enable_option_checking in
1235     no) ;;
1236     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238   esac
1239 fi
1240
1241 # Check all directory arguments for consistency.
1242 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243                 datadir sysconfdir sharedstatedir localstatedir includedir \
1244                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245                 libdir localedir mandir
1246 do
1247   eval ac_val=\$$ac_var
1248   # Remove trailing slashes.
1249   case $ac_val in
1250     */ )
1251       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252       eval $ac_var=\$ac_val;;
1253   esac
1254   # Be sure to have absolute directory names.
1255   case $ac_val in
1256     [\\/$]* | ?:[\\/]* )  continue;;
1257     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258   esac
1259   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271   if test "x$build_alias" = x; then
1272     cross_compiling=maybe
1273   elif test "x$build_alias" != "x$host_alias"; then
1274     cross_compiling=yes
1275   fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287   as_fn_error $? "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289   as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294   ac_srcdir_defaulted=yes
1295   # Try the directory containing this script, then the parent directory.
1296   ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298          X"$as_myself" : 'X\(//\)[^/]' \| \
1299          X"$as_myself" : 'X\(//\)$' \| \
1300          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\/\)[^/].*/{
1307             s//\1/
1308             q
1309           }
1310           /^X\(\/\/\)$/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\).*/{
1315             s//\1/
1316             q
1317           }
1318           s/.*/./; q'`
1319   srcdir=$ac_confdir
1320   if test ! -r "$srcdir/$ac_unique_file"; then
1321     srcdir=..
1322   fi
1323 else
1324   ac_srcdir_defaulted=no
1325 fi
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333         pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336   srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346   eval ac_env_${ac_var}_value=\$${ac_var}
1347   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1350
1351 #
1352 # Report the --help message.
1353 #
1354 if test "$ac_init_help" = "long"; then
1355   # Omit some internal or obsolete options to make the list less imposing.
1356   # This message is too long to be a string in the A/UX 3.1 sh.
1357   cat <<_ACEOF
1358 \`configure' configures libasprintf 1.0 to adapt to many kinds of systems.
1359
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE.  See below for descriptions of some of the useful variables.
1364
1365 Defaults for the options are specified in brackets.
1366
1367 Configuration:
1368   -h, --help              display this help and exit
1369       --help=short        display options specific to this package
1370       --help=recursive    display the short help of all the included packages
1371   -V, --version           display version information and exit
1372   -q, --quiet, --silent   do not print \`checking ...' messages
1373       --cache-file=FILE   cache test results in FILE [disabled]
1374   -C, --config-cache      alias for \`--cache-file=config.cache'
1375   -n, --no-create         do not create output files
1376       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1377
1378 Installation directories:
1379   --prefix=PREFIX         install architecture-independent files in PREFIX
1380                           [$ac_default_prefix]
1381   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1382                           [PREFIX]
1383
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1388
1389 For better control, use the options below.
1390
1391 Fine tuning of the installation directories:
1392   --bindir=DIR            user executables [EPREFIX/bin]
1393   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1394   --libexecdir=DIR        program executables [EPREFIX/libexec]
1395   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1396   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1397   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1398   --libdir=DIR            object code libraries [EPREFIX/lib]
1399   --includedir=DIR        C header files [PREFIX/include]
1400   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403   --infodir=DIR           info documentation [DATAROOTDIR/info]
1404   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405   --mandir=DIR            man documentation [DATAROOTDIR/man]
1406   --docdir=DIR            documentation root [DATAROOTDIR/doc/libasprintf]
1407   --htmldir=DIR           html documentation [DOCDIR]
1408   --dvidir=DIR            dvi documentation [DOCDIR]
1409   --pdfdir=DIR            pdf documentation [DOCDIR]
1410   --psdir=DIR             ps documentation [DOCDIR]
1411 _ACEOF
1412
1413   cat <<\_ACEOF
1414
1415 Program names:
1416   --program-prefix=PREFIX            prepend PREFIX to installed program names
1417   --program-suffix=SUFFIX            append SUFFIX to installed program names
1418   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420 System types:
1421   --build=BUILD     configure for building on BUILD [guessed]
1422   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427   case $ac_init_help in
1428      short | recursive ) echo "Configuration of libasprintf 1.0:";;
1429    esac
1430   cat <<\_ACEOF
1431
1432 Optional Features:
1433   --disable-option-checking  ignore unrecognized --enable/--with options
1434   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436   --enable-silent-rules   less verbose build output (undo: "make V=1")
1437   --disable-silent-rules  verbose build output (undo: "make V=0")
1438   --enable-dependency-tracking
1439                           do not reject slow dependency extractors
1440   --disable-dependency-tracking
1441                           speeds up one-time build
1442   --enable-shared[=PKGS]  build shared libraries [default=yes]
1443   --enable-static[=PKGS]  build static libraries [default=yes]
1444   --enable-fast-install[=PKGS]
1445                           optimize for fast installation [default=yes]
1446   --disable-libtool-lock  avoid locking (might break parallel builds)
1447
1448 Optional Packages:
1449   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1452                           both]
1453   --with-aix-soname=aix|svr4|both
1454                           shared library versioning (aka "SONAME") variant to
1455                           provide on AIX, [default=aix].
1456   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1457   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1458                           compiler's sysroot if not specified).
1459
1460 Some influential environment variables:
1461   CC          C compiler command
1462   CFLAGS      C compiler flags
1463   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1464               nonstandard directory <lib dir>
1465   LIBS        libraries to pass to the linker, e.g. -l<library>
1466   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CXX         C++ compiler command
1469   CXXFLAGS    C++ compiler flags
1470   CPP         C preprocessor
1471   LT_SYS_LIBRARY_PATH
1472               User-defined run-time library search path.
1473   CXXCPP      C++ preprocessor
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to the package provider.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484   # If there are subdirs, report their specific --help.
1485   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486     test -d "$ac_dir" ||
1487       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488       continue
1489     ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495   # A ".." for each directory in $ac_dir_suffix.
1496   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497   case $ac_top_builddir_sub in
1498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500   esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508   .)  # We are building in place.
1509     ac_srcdir=.
1510     ac_top_srcdir=$ac_top_builddir_sub
1511     ac_abs_top_srcdir=$ac_pwd ;;
1512   [\\/]* | ?:[\\/]* )  # Absolute name.
1513     ac_srcdir=$srcdir$ac_dir_suffix;
1514     ac_top_srcdir=$srcdir
1515     ac_abs_top_srcdir=$srcdir ;;
1516   *) # Relative name.
1517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518     ac_top_srcdir=$ac_top_build_prefix$srcdir
1519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523     cd "$ac_dir" || { ac_status=$?; continue; }
1524     # Check for guested configure.
1525     if test -f "$ac_srcdir/configure.gnu"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528     elif test -f "$ac_srcdir/configure"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure" --help=recursive
1531     else
1532       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533     fi || ac_status=$?
1534     cd "$ac_pwd" || { ac_status=$?; break; }
1535   done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540   cat <<\_ACEOF
1541 libasprintf configure 1.0
1542 generated by GNU Autoconf 2.69
1543
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548   exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561   rm -f conftest.$ac_objext
1562   if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565   *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569   (eval "$ac_compile") 2>conftest.err
1570   ac_status=$?
1571   if test -s conftest.err; then
1572     grep -v '^ *+' conftest.err >conftest.er1
1573     cat conftest.er1 >&5
1574     mv -f conftest.er1 conftest.err
1575   fi
1576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577   test $ac_status = 0; } && {
1578          test -z "$ac_c_werror_flag" ||
1579          test ! -s conftest.err
1580        } && test -s conftest.$ac_objext; then :
1581   ac_retval=0
1582 else
1583   $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586         ac_retval=1
1587 fi
1588   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589   as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_cxx_try_compile LINENO
1594 # ----------------------------
1595 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_cxx_try_compile ()
1597 {
1598   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599   rm -f conftest.$ac_objext
1600   if { { ac_try="$ac_compile"
1601 case "(($ac_try" in
1602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603   *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607   (eval "$ac_compile") 2>conftest.err
1608   ac_status=$?
1609   if test -s conftest.err; then
1610     grep -v '^ *+' conftest.err >conftest.er1
1611     cat conftest.er1 >&5
1612     mv -f conftest.er1 conftest.err
1613   fi
1614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615   test $ac_status = 0; } && {
1616          test -z "$ac_cxx_werror_flag" ||
1617          test ! -s conftest.err
1618        } && test -s conftest.$ac_objext; then :
1619   ac_retval=0
1620 else
1621   $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624         ac_retval=1
1625 fi
1626   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627   as_fn_set_status $ac_retval
1628
1629 } # ac_fn_cxx_try_compile
1630
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_cpp ()
1635 {
1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637   if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 case "(($ac_try" in
1639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640   *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645   ac_status=$?
1646   if test -s conftest.err; then
1647     grep -v '^ *+' conftest.err >conftest.er1
1648     cat conftest.er1 >&5
1649     mv -f conftest.er1 conftest.err
1650   fi
1651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652   test $ac_status = 0; } > conftest.i && {
1653          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654          test ! -s conftest.err
1655        }; then :
1656   ac_retval=0
1657 else
1658   $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661     ac_retval=1
1662 fi
1663   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664   as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_cpp
1667
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_link ()
1672 {
1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674   rm -f conftest.$ac_objext conftest$ac_exeext
1675   if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678   *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682   (eval "$ac_link") 2>conftest.err
1683   ac_status=$?
1684   if test -s conftest.err; then
1685     grep -v '^ *+' conftest.err >conftest.er1
1686     cat conftest.er1 >&5
1687     mv -f conftest.er1 conftest.err
1688   fi
1689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690   test $ac_status = 0; } && {
1691          test -z "$ac_c_werror_flag" ||
1692          test ! -s conftest.err
1693        } && test -s conftest$ac_exeext && {
1694          test "$cross_compiling" = yes ||
1695          test -x conftest$ac_exeext
1696        }; then :
1697   ac_retval=0
1698 else
1699   $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702         ac_retval=1
1703 fi
1704   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706   # interfere with the next link command; also delete a directory that is
1707   # left behind by Apple's compiler.  We do this before executing the actions.
1708   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710   as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_link
1713
1714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists and can be compiled using the include files in
1717 # INCLUDES, setting the cache variable VAR accordingly.
1718 ac_fn_c_check_header_compile ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724   $as_echo_n "(cached) " >&6
1725 else
1726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h.  */
1728 $4
1729 #include <$2>
1730 _ACEOF
1731 if ac_fn_c_try_compile "$LINENO"; then :
1732   eval "$3=yes"
1733 else
1734   eval "$3=no"
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_header_compile
1744
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1749 ac_fn_c_try_run ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755   *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759   (eval "$ac_link") 2>&5
1760   ac_status=$?
1761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763   { { case "(($ac_try" in
1764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765   *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769   (eval "$ac_try") 2>&5
1770   ac_status=$?
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; }; }; then :
1773   ac_retval=0
1774 else
1775   $as_echo "$as_me: program exited with status $ac_status" >&5
1776        $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779        ac_retval=$ac_status
1780 fi
1781   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783   as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_run
1786
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796   $as_echo_n "(cached) " >&6
1797 else
1798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h.  */
1800 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1802 #define $2 innocuous_$2
1803
1804 /* System header to define __stub macros and hopefully few prototypes,
1805     which can conflict with char $2 (); below.
1806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1807     <limits.h> exists even on freestanding compilers.  */
1808
1809 #ifdef __STDC__
1810 # include <limits.h>
1811 #else
1812 # include <assert.h>
1813 #endif
1814
1815 #undef $2
1816
1817 /* Override any GCC internal prototype to avoid an error.
1818    Use char because int might match the return type of a GCC
1819    builtin and then its argument prototype would still apply.  */
1820 #ifdef __cplusplus
1821 extern "C"
1822 #endif
1823 char $2 ();
1824 /* The GNU C library defines this for functions which it implements
1825     to always fail with ENOSYS.  Some functions are actually named
1826     something starting with __ and the normal name is an alias.  */
1827 #if defined __stub_$2 || defined __stub___$2
1828 choke me
1829 #endif
1830
1831 int
1832 main ()
1833 {
1834 return $2 ();
1835   ;
1836   return 0;
1837 }
1838 _ACEOF
1839 if ac_fn_c_try_link "$LINENO"; then :
1840   eval "$3=yes"
1841 else
1842   eval "$3=no"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext \
1845     conftest$ac_exeext conftest.$ac_ext
1846 fi
1847 eval ac_res=\$$3
1848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852 } # ac_fn_c_check_func
1853
1854 # ac_fn_cxx_try_cpp LINENO
1855 # ------------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_cxx_try_cpp ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868   ac_status=$?
1869   if test -s conftest.err; then
1870     grep -v '^ *+' conftest.err >conftest.er1
1871     cat conftest.er1 >&5
1872     mv -f conftest.er1 conftest.err
1873   fi
1874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875   test $ac_status = 0; } > conftest.i && {
1876          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1877          test ! -s conftest.err
1878        }; then :
1879   ac_retval=0
1880 else
1881   $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1883
1884     ac_retval=1
1885 fi
1886   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887   as_fn_set_status $ac_retval
1888
1889 } # ac_fn_cxx_try_cpp
1890
1891 # ac_fn_cxx_try_link LINENO
1892 # -------------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_link ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   rm -f conftest.$ac_objext conftest$ac_exeext
1898   if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901   *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905   (eval "$ac_link") 2>conftest.err
1906   ac_status=$?
1907   if test -s conftest.err; then
1908     grep -v '^ *+' conftest.err >conftest.er1
1909     cat conftest.er1 >&5
1910     mv -f conftest.er1 conftest.err
1911   fi
1912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913   test $ac_status = 0; } && {
1914          test -z "$ac_cxx_werror_flag" ||
1915          test ! -s conftest.err
1916        } && test -s conftest$ac_exeext && {
1917          test "$cross_compiling" = yes ||
1918          test -x conftest$ac_exeext
1919        }; then :
1920   ac_retval=0
1921 else
1922   $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925         ac_retval=1
1926 fi
1927   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929   # interfere with the next link command; also delete a directory that is
1930   # left behind by Apple's compiler.  We do this before executing the actions.
1931   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933   as_fn_set_status $ac_retval
1934
1935 } # ac_fn_cxx_try_link
1936
1937 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1941 # accordingly.
1942 ac_fn_c_check_header_mongrel ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   if eval \${$3+:} false; then :
1946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949   $as_echo_n "(cached) " >&6
1950 fi
1951 eval ac_res=\$$3
1952                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 else
1955   # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $4
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964   ac_header_compiler=yes
1965 else
1966   ac_header_compiler=no
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1971
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h.  */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_cpp "$LINENO"; then :
1980   ac_header_preproc=yes
1981 else
1982   ac_header_preproc=no
1983 fi
1984 rm -f conftest.err conftest.i conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1987
1988 # So?  What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1990   yes:no: )
1991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995     ;;
1996   no:yes:* )
1997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007     ;;
2008 esac
2009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012   $as_echo_n "(cached) " >&6
2013 else
2014   eval "$3=\$ac_header_compiler"
2015 fi
2016 eval ac_res=\$$3
2017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 fi
2020   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022 } # ac_fn_c_check_header_mongrel
2023
2024 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2025 # -------------------------------------------
2026 # Tests whether TYPE exists after having included INCLUDES, setting cache
2027 # variable VAR accordingly.
2028 ac_fn_c_check_type ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034   $as_echo_n "(cached) " >&6
2035 else
2036   eval "$3=no"
2037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 int
2041 main ()
2042 {
2043 if (sizeof ($2))
2044          return 0;
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 $4
2053 int
2054 main ()
2055 {
2056 if (sizeof (($2)))
2057             return 0;
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063
2064 else
2065   eval "$3=yes"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 eval ac_res=\$$3
2072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_c_check_type
2077
2078 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2079 # --------------------------------------------
2080 # Tries to find the compile-time value of EXPR in a program that includes
2081 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2082 # computed
2083 ac_fn_c_compute_int ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   if test "$cross_compiling" = yes; then
2087     # Depending upon the size, compute the lo and hi bounds.
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 $4
2091 int
2092 main ()
2093 {
2094 static int test_array [1 - 2 * !(($2) >= 0)];
2095 test_array [0] = 0;
2096 return test_array [0];
2097
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103   ac_lo=0 ac_mid=0
2104   while :; do
2105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 $4
2108 int
2109 main ()
2110 {
2111 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2112 test_array [0] = 0;
2113 return test_array [0];
2114
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120   ac_hi=$ac_mid; break
2121 else
2122   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123                         if test $ac_lo -le $ac_mid; then
2124                           ac_lo= ac_hi=
2125                           break
2126                         fi
2127                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130   done
2131 else
2132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h.  */
2134 $4
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(($2) < 0)];
2139 test_array [0] = 0;
2140 return test_array [0];
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147   ac_hi=-1 ac_mid=-1
2148   while :; do
2149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2156 test_array [0] = 0;
2157 return test_array [0];
2158
2159   ;
2160   return 0;
2161 }
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164   ac_lo=$ac_mid; break
2165 else
2166   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2167                         if test $ac_mid -le $ac_hi; then
2168                           ac_lo= ac_hi=
2169                           break
2170                         fi
2171                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174   done
2175 else
2176   ac_lo= ac_hi=
2177 fi
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 # Binary search between lo and hi bounds.
2182 while test "x$ac_lo" != "x$ac_hi"; do
2183   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h.  */
2186 $4
2187 int
2188 main ()
2189 {
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2191 test_array [0] = 0;
2192 return test_array [0];
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199   ac_hi=$ac_mid
2200 else
2201   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 done
2205 case $ac_lo in #((
2206 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2207 '') ac_retval=1 ;;
2208 esac
2209   else
2210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h.  */
2212 $4
2213 static long int longval () { return $2; }
2214 static unsigned long int ulongval () { return $2; }
2215 #include <stdio.h>
2216 #include <stdlib.h>
2217 int
2218 main ()
2219 {
2220
2221   FILE *f = fopen ("conftest.val", "w");
2222   if (! f)
2223     return 1;
2224   if (($2) < 0)
2225     {
2226       long int i = longval ();
2227       if (i != ($2))
2228         return 1;
2229       fprintf (f, "%ld", i);
2230     }
2231   else
2232     {
2233       unsigned long int i = ulongval ();
2234       if (i != ($2))
2235         return 1;
2236       fprintf (f, "%lu", i);
2237     }
2238   /* Do not output a trailing newline, as this causes \r\n confusion
2239      on some platforms.  */
2240   return ferror (f) || fclose (f) != 0;
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_run "$LINENO"; then :
2247   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2248 else
2249   ac_retval=1
2250 fi
2251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2252   conftest.$ac_objext conftest.beam conftest.$ac_ext
2253 rm -f conftest.val
2254
2255   fi
2256   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257   as_fn_set_status $ac_retval
2258
2259 } # ac_fn_c_compute_int
2260
2261 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2262 # ---------------------------------------------
2263 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2264 # accordingly.
2265 ac_fn_c_check_decl ()
2266 {
2267   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268   as_decl_name=`echo $2|sed 's/ *(.*//'`
2269   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2271 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2272 if eval \${$3+:} false; then :
2273   $as_echo_n "(cached) " >&6
2274 else
2275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h.  */
2277 $4
2278 int
2279 main ()
2280 {
2281 #ifndef $as_decl_name
2282 #ifdef __cplusplus
2283   (void) $as_decl_use;
2284 #else
2285   (void) $as_decl_name;
2286 #endif
2287 #endif
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294   eval "$3=yes"
2295 else
2296   eval "$3=no"
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 eval ac_res=\$$3
2301                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304
2305 } # ac_fn_c_check_decl
2306 cat >config.log <<_ACEOF
2307 This file contains any messages produced by compilers while
2308 running configure, to aid debugging if configure makes a mistake.
2309
2310 It was created by libasprintf $as_me 1.0, which was
2311 generated by GNU Autoconf 2.69.  Invocation command line was
2312
2313   $ $0 $@
2314
2315 _ACEOF
2316 exec 5>>config.log
2317 {
2318 cat <<_ASUNAME
2319 ## --------- ##
2320 ## Platform. ##
2321 ## --------- ##
2322
2323 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2324 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2325 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2326 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2327 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2328
2329 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2330 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2331
2332 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2333 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2334 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2335 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2336 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2337 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2338 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2339
2340 _ASUNAME
2341
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347     $as_echo "PATH: $as_dir"
2348   done
2349 IFS=$as_save_IFS
2350
2351 } >&5
2352
2353 cat >&5 <<_ACEOF
2354
2355
2356 ## ----------- ##
2357 ## Core tests. ##
2358 ## ----------- ##
2359
2360 _ACEOF
2361
2362
2363 # Keep a trace of the command line.
2364 # Strip out --no-create and --no-recursion so they do not pile up.
2365 # Strip out --silent because we don't want to record it for future runs.
2366 # Also quote any args containing shell meta-characters.
2367 # Make two passes to allow for proper duplicate-argument suppression.
2368 ac_configure_args=
2369 ac_configure_args0=
2370 ac_configure_args1=
2371 ac_must_keep_next=false
2372 for ac_pass in 1 2
2373 do
2374   for ac_arg
2375   do
2376     case $ac_arg in
2377     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2378     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2379     | -silent | --silent | --silen | --sile | --sil)
2380       continue ;;
2381     *\'*)
2382       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2383     esac
2384     case $ac_pass in
2385     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2386     2)
2387       as_fn_append ac_configure_args1 " '$ac_arg'"
2388       if test $ac_must_keep_next = true; then
2389         ac_must_keep_next=false # Got value, back to normal.
2390       else
2391         case $ac_arg in
2392           *=* | --config-cache | -C | -disable-* | --disable-* \
2393           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2394           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2395           | -with-* | --with-* | -without-* | --without-* | --x)
2396             case "$ac_configure_args0 " in
2397               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2398             esac
2399             ;;
2400           -* ) ac_must_keep_next=true ;;
2401         esac
2402       fi
2403       as_fn_append ac_configure_args " '$ac_arg'"
2404       ;;
2405     esac
2406   done
2407 done
2408 { ac_configure_args0=; unset ac_configure_args0;}
2409 { ac_configure_args1=; unset ac_configure_args1;}
2410
2411 # When interrupted or exit'd, cleanup temporary files, and complete
2412 # config.log.  We remove comments because anyway the quotes in there
2413 # would cause problems or look ugly.
2414 # WARNING: Use '\'' to represent an apostrophe within the trap.
2415 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2416 trap 'exit_status=$?
2417   # Save into config.log some information that might help in debugging.
2418   {
2419     echo
2420
2421     $as_echo "## ---------------- ##
2422 ## Cache variables. ##
2423 ## ---------------- ##"
2424     echo
2425     # The following way of writing the cache mishandles newlines in values,
2426 (
2427   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2428     eval ac_val=\$$ac_var
2429     case $ac_val in #(
2430     *${as_nl}*)
2431       case $ac_var in #(
2432       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2433 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2434       esac
2435       case $ac_var in #(
2436       _ | IFS | as_nl) ;; #(
2437       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2438       *) { eval $ac_var=; unset $ac_var;} ;;
2439       esac ;;
2440     esac
2441   done
2442   (set) 2>&1 |
2443     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2444     *${as_nl}ac_space=\ *)
2445       sed -n \
2446         "s/'\''/'\''\\\\'\'''\''/g;
2447           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2448       ;; #(
2449     *)
2450       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2451       ;;
2452     esac |
2453     sort
2454 )
2455     echo
2456
2457     $as_echo "## ----------------- ##
2458 ## Output variables. ##
2459 ## ----------------- ##"
2460     echo
2461     for ac_var in $ac_subst_vars
2462     do
2463       eval ac_val=\$$ac_var
2464       case $ac_val in
2465       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466       esac
2467       $as_echo "$ac_var='\''$ac_val'\''"
2468     done | sort
2469     echo
2470
2471     if test -n "$ac_subst_files"; then
2472       $as_echo "## ------------------- ##
2473 ## File substitutions. ##
2474 ## ------------------- ##"
2475       echo
2476       for ac_var in $ac_subst_files
2477       do
2478         eval ac_val=\$$ac_var
2479         case $ac_val in
2480         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481         esac
2482         $as_echo "$ac_var='\''$ac_val'\''"
2483       done | sort
2484       echo
2485     fi
2486
2487     if test -s confdefs.h; then
2488       $as_echo "## ----------- ##
2489 ## confdefs.h. ##
2490 ## ----------- ##"
2491       echo
2492       cat confdefs.h
2493       echo
2494     fi
2495     test "$ac_signal" != 0 &&
2496       $as_echo "$as_me: caught signal $ac_signal"
2497     $as_echo "$as_me: exit $exit_status"
2498   } >&5
2499   rm -f core *.core core.conftest.* &&
2500     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2501     exit $exit_status
2502 ' 0
2503 for ac_signal in 1 2 13 15; do
2504   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2505 done
2506 ac_signal=0
2507
2508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2509 rm -f -r conftest* confdefs.h
2510
2511 $as_echo "/* confdefs.h */" > confdefs.h
2512
2513 # Predefined preprocessor variables.
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_NAME "$PACKAGE_NAME"
2517 _ACEOF
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2521 _ACEOF
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_STRING "$PACKAGE_STRING"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_URL "$PACKAGE_URL"
2537 _ACEOF
2538
2539
2540 # Let the site file select an alternate cache file if it wants to.
2541 # Prefer an explicitly selected file to automatically selected ones.
2542 ac_site_file1=NONE
2543 ac_site_file2=NONE
2544 if test -n "$CONFIG_SITE"; then
2545   # We do not want a PATH search for config.site.
2546   case $CONFIG_SITE in #((
2547     -*)  ac_site_file1=./$CONFIG_SITE;;
2548     */*) ac_site_file1=$CONFIG_SITE;;
2549     *)   ac_site_file1=./$CONFIG_SITE;;
2550   esac
2551 elif test "x$prefix" != xNONE; then
2552   ac_site_file1=$prefix/share/config.site
2553   ac_site_file2=$prefix/etc/config.site
2554 else
2555   ac_site_file1=$ac_default_prefix/share/config.site
2556   ac_site_file2=$ac_default_prefix/etc/config.site
2557 fi
2558 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2559 do
2560   test "x$ac_site_file" = xNONE && continue
2561   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2562     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2563 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2564     sed 's/^/| /' "$ac_site_file" >&5
2565     . "$ac_site_file" \
2566       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 as_fn_error $? "failed to load site script $ac_site_file
2569 See \`config.log' for more details" "$LINENO" 5; }
2570   fi
2571 done
2572
2573 if test -r "$cache_file"; then
2574   # Some versions of bash will fail to source /dev/null (special files
2575   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2576   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2577     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2578 $as_echo "$as_me: loading cache $cache_file" >&6;}
2579     case $cache_file in
2580       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2581       *)                      . "./$cache_file";;
2582     esac
2583   fi
2584 else
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2586 $as_echo "$as_me: creating cache $cache_file" >&6;}
2587   >$cache_file
2588 fi
2589
2590 gl_header_list="$gl_header_list stdlib.h"
2591 gl_header_list="$gl_header_list string.h"
2592 # Check that the precious variables saved in the cache have kept the same
2593 # value.
2594 ac_cache_corrupted=false
2595 for ac_var in $ac_precious_vars; do
2596   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597   eval ac_new_set=\$ac_env_${ac_var}_set
2598   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599   eval ac_new_val=\$ac_env_${ac_var}_value
2600   case $ac_old_set,$ac_new_set in
2601     set,)
2602       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2603 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2604       ac_cache_corrupted=: ;;
2605     ,set)
2606       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2607 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2608       ac_cache_corrupted=: ;;
2609     ,);;
2610     *)
2611       if test "x$ac_old_val" != "x$ac_new_val"; then
2612         # differences in whitespace do not lead to failure.
2613         ac_old_val_w=`echo x $ac_old_val`
2614         ac_new_val_w=`echo x $ac_new_val`
2615         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2617 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2618           ac_cache_corrupted=:
2619         else
2620           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2621 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2622           eval $ac_var=\$ac_old_val
2623         fi
2624         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2625 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2626         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2627 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2628       fi;;
2629   esac
2630   # Pass precious variables to config.status.
2631   if test "$ac_new_set" = set; then
2632     case $ac_new_val in
2633     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634     *) ac_arg=$ac_var=$ac_new_val ;;
2635     esac
2636     case " $ac_configure_args " in
2637       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2638       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2639     esac
2640   fi
2641 done
2642 if $ac_cache_corrupted; then
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2647   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2648 fi
2649 ## -------------------- ##
2650 ## Main body of script. ##
2651 ## -------------------- ##
2652
2653 ac_ext=c
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659
2660
2661 ac_aux_dir=
2662 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2663   if test -f "$ac_dir/install-sh"; then
2664     ac_aux_dir=$ac_dir
2665     ac_install_sh="$ac_aux_dir/install-sh -c"
2666     break
2667   elif test -f "$ac_dir/install.sh"; then
2668     ac_aux_dir=$ac_dir
2669     ac_install_sh="$ac_aux_dir/install.sh -c"
2670     break
2671   elif test -f "$ac_dir/shtool"; then
2672     ac_aux_dir=$ac_dir
2673     ac_install_sh="$ac_aux_dir/shtool install -c"
2674     break
2675   fi
2676 done
2677 if test -z "$ac_aux_dir"; then
2678   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2679 fi
2680
2681 # These three variables are undocumented and unsupported,
2682 # and are intended to be withdrawn in a future Autoconf release.
2683 # They can cause serious problems if a builder's source tree is in a directory
2684 # whose full name contains unusual characters.
2685 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2686 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2687 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2688
2689
2690 am__api_version='1.15'
2691
2692 # Find a good install program.  We prefer a C program (faster),
2693 # so one script is as good as another.  But avoid the broken or
2694 # incompatible versions:
2695 # SysV /etc/install, /usr/sbin/install
2696 # SunOS /usr/etc/install
2697 # IRIX /sbin/install
2698 # AIX /bin/install
2699 # AmigaOS /C/install, which installs bootblocks on floppy discs
2700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2703 # OS/2's system install, which has a completely different semantic
2704 # ./install, which can be erroneously created by make from ./install.sh.
2705 # Reject install programs that cannot install multiple files.
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2707 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2708 if test -z "$INSTALL"; then
2709 if ${ac_cv_path_install+:} false; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715   IFS=$as_save_IFS
2716   test -z "$as_dir" && as_dir=.
2717     # Account for people who put trailing slashes in PATH elements.
2718 case $as_dir/ in #((
2719   ./ | .// | /[cC]/* | \
2720   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2721   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2722   /usr/ucb/* ) ;;
2723   *)
2724     # OSF1 and SCO ODT 3.0 have their own names for install.
2725     # Don't use installbsd from OSF since it installs stuff as root
2726     # by default.
2727     for ac_prog in ginstall scoinst install; do
2728       for ac_exec_ext in '' $ac_executable_extensions; do
2729         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2730           if test $ac_prog = install &&
2731             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2732             # AIX install.  It has an incompatible calling convention.
2733             :
2734           elif test $ac_prog = install &&
2735             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2736             # program-specific install script used by HP pwplus--don't use.
2737             :
2738           else
2739             rm -rf conftest.one conftest.two conftest.dir
2740             echo one > conftest.one
2741             echo two > conftest.two
2742             mkdir conftest.dir
2743             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2744               test -s conftest.one && test -s conftest.two &&
2745               test -s conftest.dir/conftest.one &&
2746               test -s conftest.dir/conftest.two
2747             then
2748               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2749               break 3
2750             fi
2751           fi
2752         fi
2753       done
2754     done
2755     ;;
2756 esac
2757
2758   done
2759 IFS=$as_save_IFS
2760
2761 rm -rf conftest.one conftest.two conftest.dir
2762
2763 fi
2764   if test "${ac_cv_path_install+set}" = set; then
2765     INSTALL=$ac_cv_path_install
2766   else
2767     # As a last resort, use the slow shell script.  Don't cache a
2768     # value for INSTALL within a source directory, because that will
2769     # break other packages using the cache if that directory is
2770     # removed, or if the value is a relative name.
2771     INSTALL=$ac_install_sh
2772   fi
2773 fi
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2775 $as_echo "$INSTALL" >&6; }
2776
2777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2778 # It thinks the first close brace ends the variable substitution.
2779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2780
2781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2782
2783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2786 $as_echo_n "checking whether build environment is sane... " >&6; }
2787 # Reject unsafe characters in $srcdir or the absolute working directory
2788 # name.  Accept space and tab only in the latter.
2789 am_lf='
2790 '
2791 case `pwd` in
2792   *[\\\"\#\$\&\'\`$am_lf]*)
2793     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2794 esac
2795 case $srcdir in
2796   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2797     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2798 esac
2799
2800 # Do 'set' in a subshell so we don't clobber the current shell's
2801 # arguments.  Must try -L first in case configure is actually a
2802 # symlink; some systems play weird games with the mod time of symlinks
2803 # (eg FreeBSD returns the mod time of the symlink's containing
2804 # directory).
2805 if (
2806    am_has_slept=no
2807    for am_try in 1 2; do
2808      echo "timestamp, slept: $am_has_slept" > conftest.file
2809      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2810      if test "$*" = "X"; then
2811         # -L didn't work.
2812         set X `ls -t "$srcdir/configure" conftest.file`
2813      fi
2814      if test "$*" != "X $srcdir/configure conftest.file" \
2815         && test "$*" != "X conftest.file $srcdir/configure"; then
2816
2817         # If neither matched, then we have a broken ls.  This can happen
2818         # if, for instance, CONFIG_SHELL is bash and it inherits a
2819         # broken ls alias from the environment.  This has actually
2820         # happened.  Such a system could not be considered "sane".
2821         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2822   alias in your environment" "$LINENO" 5
2823      fi
2824      if test "$2" = conftest.file || test $am_try -eq 2; then
2825        break
2826      fi
2827      # Just in case.
2828      sleep 1
2829      am_has_slept=yes
2830    done
2831    test "$2" = conftest.file
2832    )
2833 then
2834    # Ok.
2835    :
2836 else
2837    as_fn_error $? "newly created file is older than distributed files!
2838 Check your system clock" "$LINENO" 5
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2841 $as_echo "yes" >&6; }
2842 # If we didn't sleep, we still need to ensure time stamps of config.status and
2843 # generated files are strictly newer.
2844 am_sleep_pid=
2845 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2846   ( sleep 1 ) &
2847   am_sleep_pid=$!
2848 fi
2849
2850 rm -f conftest.file
2851
2852 test "$program_prefix" != NONE &&
2853   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2854 # Use a double $ so make ignores it.
2855 test "$program_suffix" != NONE &&
2856   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2857 # Double any \ or $.
2858 # By default was `s,x,x', remove it if useless.
2859 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2860 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2861
2862 # Expand $ac_aux_dir to an absolute path.
2863 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2864
2865 if test x"${MISSING+set}" != xset; then
2866   case $am_aux_dir in
2867   *\ * | *\     *)
2868     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2869   *)
2870     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2871   esac
2872 fi
2873 # Use eval to expand $SHELL
2874 if eval "$MISSING --is-lightweight"; then
2875   am_missing_run="$MISSING "
2876 else
2877   am_missing_run=
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2879 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2880 fi
2881
2882 if test x"${install_sh+set}" != xset; then
2883   case $am_aux_dir in
2884   *\ * | *\     *)
2885     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2886   *)
2887     install_sh="\${SHELL} $am_aux_dir/install-sh"
2888   esac
2889 fi
2890
2891 # Installed binaries are usually stripped using 'strip' when the user
2892 # run "make install-strip".  However 'strip' might not be the right
2893 # tool to use in cross-compilation environments, therefore Automake
2894 # will honor the 'STRIP' environment variable to overrule this program.
2895 if test "$cross_compiling" != no; then
2896   if test -n "$ac_tool_prefix"; then
2897   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}strip; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_STRIP+:} false; then :
2902   $as_echo_n "(cached) " >&6
2903 else
2904   if test -n "$STRIP"; then
2905   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910   IFS=$as_save_IFS
2911   test -z "$as_dir" && as_dir=.
2912     for ac_exec_ext in '' $ac_executable_extensions; do
2913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916     break 2
2917   fi
2918 done
2919   done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 STRIP=$ac_cv_prog_STRIP
2925 if test -n "$STRIP"; then
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2927 $as_echo "$STRIP" >&6; }
2928 else
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934 fi
2935 if test -z "$ac_cv_prog_STRIP"; then
2936   ac_ct_STRIP=$STRIP
2937   # Extract the first word of "strip", so it can be a program name with args.
2938 set dummy strip; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2942   $as_echo_n "(cached) " >&6
2943 else
2944   if test -n "$ac_ct_STRIP"; then
2945   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952     for ac_exec_ext in '' $ac_executable_extensions; do
2953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954     ac_cv_prog_ac_ct_STRIP="strip"
2955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959   done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2965 if test -n "$ac_ct_STRIP"; then
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2967 $as_echo "$ac_ct_STRIP" >&6; }
2968 else
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973   if test "x$ac_ct_STRIP" = x; then
2974     STRIP=":"
2975   else
2976     case $cross_compiling:$ac_tool_warned in
2977 yes:)
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2981 esac
2982     STRIP=$ac_ct_STRIP
2983   fi
2984 else
2985   STRIP="$ac_cv_prog_STRIP"
2986 fi
2987
2988 fi
2989 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2990
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2992 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2993 if test -z "$MKDIR_P"; then
2994   if ${ac_cv_path_mkdir+:} false; then :
2995   $as_echo_n "(cached) " >&6
2996 else
2997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2999 do
3000   IFS=$as_save_IFS
3001   test -z "$as_dir" && as_dir=.
3002     for ac_prog in mkdir gmkdir; do
3003          for ac_exec_ext in '' $ac_executable_extensions; do
3004            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3005            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3006              'mkdir (GNU coreutils) '* | \
3007              'mkdir (coreutils) '* | \
3008              'mkdir (fileutils) '4.1*)
3009                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3010                break 3;;
3011            esac
3012          done
3013        done
3014   done
3015 IFS=$as_save_IFS
3016
3017 fi
3018
3019   test -d ./--version && rmdir ./--version
3020   if test "${ac_cv_path_mkdir+set}" = set; then
3021     MKDIR_P="$ac_cv_path_mkdir -p"
3022   else
3023     # As a last resort, use the slow shell script.  Don't cache a
3024     # value for MKDIR_P within a source directory, because that will
3025     # break other packages using the cache if that directory is
3026     # removed, or if the value is a relative name.
3027     MKDIR_P="$ac_install_sh -d"
3028   fi
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3031 $as_echo "$MKDIR_P" >&6; }
3032
3033 for ac_prog in gawk mawk nawk awk
3034 do
3035   # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_AWK+:} false; then :
3040   $as_echo_n "(cached) " >&6
3041 else
3042   if test -n "$AWK"; then
3043   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050     for ac_exec_ext in '' $ac_executable_extensions; do
3051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052     ac_cv_prog_AWK="$ac_prog"
3053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057   done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 AWK=$ac_cv_prog_AWK
3063 if test -n "$AWK"; then
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3065 $as_echo "$AWK" >&6; }
3066 else
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071
3072   test -n "$AWK" && break
3073 done
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3076 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3077 set x ${MAKE-make}
3078 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3079 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   cat >conftest.make <<\_ACEOF
3083 SHELL = /bin/sh
3084 all:
3085         @echo '@@@%%%=$(MAKE)=@@@%%%'
3086 _ACEOF
3087 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3088 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3089   *@@@%%%=?*=@@@%%%*)
3090     eval ac_cv_prog_make_${ac_make}_set=yes;;
3091   *)
3092     eval ac_cv_prog_make_${ac_make}_set=no;;
3093 esac
3094 rm -f conftest.make
3095 fi
3096 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3099   SET_MAKE=
3100 else
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103   SET_MAKE="MAKE=${MAKE-make}"
3104 fi
3105
3106 rm -rf .tst 2>/dev/null
3107 mkdir .tst 2>/dev/null
3108 if test -d .tst; then
3109   am__leading_dot=.
3110 else
3111   am__leading_dot=_
3112 fi
3113 rmdir .tst 2>/dev/null
3114
3115 # Check whether --enable-silent-rules was given.
3116 if test "${enable_silent_rules+set}" = set; then :
3117   enableval=$enable_silent_rules;
3118 fi
3119
3120 case $enable_silent_rules in # (((
3121   yes) AM_DEFAULT_VERBOSITY=0;;
3122    no) AM_DEFAULT_VERBOSITY=1;;
3123     *) AM_DEFAULT_VERBOSITY=1;;
3124 esac
3125 am_make=${MAKE-make}
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3127 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3128 if ${am_cv_make_support_nested_variables+:} false; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   if $as_echo 'TRUE=$(BAR$(V))
3132 BAR0=false
3133 BAR1=true
3134 V=1
3135 am__doit:
3136         @$(TRUE)
3137 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3138   am_cv_make_support_nested_variables=yes
3139 else
3140   am_cv_make_support_nested_variables=no
3141 fi
3142 fi
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3144 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3145 if test $am_cv_make_support_nested_variables = yes; then
3146     AM_V='$(V)'
3147   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3148 else
3149   AM_V=$AM_DEFAULT_VERBOSITY
3150   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3151 fi
3152 AM_BACKSLASH='\'
3153
3154 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3155   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3156   # is not polluted with repeated "-I."
3157   am__isrc=' -I$(srcdir)'
3158   # test to see if srcdir already configured
3159   if test -f $srcdir/config.status; then
3160     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3161   fi
3162 fi
3163
3164 # test whether we have cygpath
3165 if test -z "$CYGPATH_W"; then
3166   if (cygpath --version) >/dev/null 2>/dev/null; then
3167     CYGPATH_W='cygpath -w'
3168   else
3169     CYGPATH_W=echo
3170   fi
3171 fi
3172
3173
3174 # Define the identity of the package.
3175  PACKAGE='libasprintf'
3176  VERSION='1.0'
3177
3178
3179 cat >>confdefs.h <<_ACEOF
3180 #define PACKAGE "$PACKAGE"
3181 _ACEOF
3182
3183
3184 cat >>confdefs.h <<_ACEOF
3185 #define VERSION "$VERSION"
3186 _ACEOF
3187
3188 # Some tools Automake needs.
3189
3190 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3191
3192
3193 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3194
3195
3196 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3197
3198
3199 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3200
3201
3202 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3203
3204 # For better backward compatibility.  To be removed once Automake 1.9.x
3205 # dies out for good.  For more background, see:
3206 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3207 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3208 mkdir_p='$(MKDIR_P)'
3209
3210 # We need awk for the "check" target (and possibly the TAP driver).  The
3211 # system "awk" is bad on some platforms.
3212 # Always define AMTAR for backward compatibility.  Yes, it's still used
3213 # in the wild :-(  We should find a proper way to deprecate it ...
3214 AMTAR='$${TAR-tar}'
3215
3216
3217 # We'll loop over all known methods to create a tar archive until one works.
3218 _am_tools='gnutar  pax cpio none'
3219
3220 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3221
3222
3223
3224
3225
3226
3227 # POSIX will say in a future version that running "rm -f" with no argument
3228 # is OK; and we want to be able to make that assumption in our Makefile
3229 # recipes.  So use an aggressive probe to check that the usage we want is
3230 # actually supported "in the wild" to an acceptable degree.
3231 # See automake bug#10828.
3232 # To make any issue more visible, cause the running configure to be aborted
3233 # by default if the 'rm' program in use doesn't match our expectations; the
3234 # user can still override this though.
3235 if rm -f && rm -fr && rm -rf; then : OK; else
3236   cat >&2 <<'END'
3237 Oops!
3238
3239 Your 'rm' program seems unable to run without file operands specified
3240 on the command line, even when the '-f' option is present.  This is contrary
3241 to the behaviour of most rm programs out there, and not conforming with
3242 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3243
3244 Please tell bug-automake@gnu.org about your system, including the value
3245 of your $PATH and any error possibly output before this message.  This
3246 can help us improve future automake versions.
3247
3248 END
3249   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3250     echo 'Configuration will proceed anyway, since you have set the' >&2
3251     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3252     echo >&2
3253   else
3254     cat >&2 <<'END'
3255 Aborting the configuration process, to ensure you take notice of the issue.
3256
3257 You can download and install GNU coreutils to get an 'rm' implementation
3258 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3259
3260 If you want to complete the configuration process using your problematic
3261 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3262 to "yes", and re-run configure.
3263
3264 END
3265     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3266   fi
3267 fi
3268
3269 ac_config_headers="$ac_config_headers config.h"
3270
3271
3272 ac_ext=c
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 if test -n "$ac_tool_prefix"; then
3278   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283   $as_echo_n "(cached) " >&6
3284 else
3285   if test -n "$CC"; then
3286   ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293     for ac_exec_ext in '' $ac_executable_extensions; do
3294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300   done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 if test -z "$ac_cv_prog_CC"; then
3317   ac_ct_CC=$CC
3318   # Extract the first word of "gcc", so it can be a program name with args.
3319 set dummy gcc; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   if test -n "$ac_ct_CC"; then
3326   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335     ac_cv_prog_ac_ct_CC="gcc"
3336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340   done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3349 else
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354   if test "x$ac_ct_CC" = x; then
3355     CC=""
3356   else
3357     case $cross_compiling:$ac_tool_warned in
3358 yes:)
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3362 esac
3363     CC=$ac_ct_CC
3364   fi
3365 else
3366   CC="$ac_cv_prog_CC"
3367 fi
3368
3369 if test -z "$CC"; then
3370           if test -n "$ac_tool_prefix"; then
3371     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}cc; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_CC+:} false; then :
3376   $as_echo_n "(cached) " >&6
3377 else
3378   if test -n "$CC"; then
3379   ac_cv_prog_CC="$CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384   IFS=$as_save_IFS
3385   test -z "$as_dir" && as_dir=.
3386     for ac_exec_ext in '' $ac_executable_extensions; do
3387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388     ac_cv_prog_CC="${ac_tool_prefix}cc"
3389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390     break 2
3391   fi
3392 done
3393   done
3394 IFS=$as_save_IFS
3395
3396 fi
3397 fi
3398 CC=$ac_cv_prog_CC
3399 if test -n "$CC"; then
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401 $as_echo "$CC" >&6; }
3402 else
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 fi
3406
3407
3408   fi
3409 fi
3410 if test -z "$CC"; then
3411   # Extract the first word of "cc", so it can be a program name with args.
3412 set dummy cc; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   if test -n "$CC"; then
3419   ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421   ac_prog_rejected=no
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425   IFS=$as_save_IFS
3426   test -z "$as_dir" && as_dir=.
3427     for ac_exec_ext in '' $ac_executable_extensions; do
3428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3430        ac_prog_rejected=yes
3431        continue
3432      fi
3433     ac_cv_prog_CC="cc"
3434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438   done
3439 IFS=$as_save_IFS
3440
3441 if test $ac_prog_rejected = yes; then
3442   # We found a bogon in the path, so make sure we never use it.
3443   set dummy $ac_cv_prog_CC
3444   shift
3445   if test $# != 0; then
3446     # We chose a different compiler from the bogus one.
3447     # However, it has the same basename, so the bogon will be chosen
3448     # first if we set CC to just the basename; use the full file name.
3449     shift
3450     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3451   fi
3452 fi
3453 fi
3454 fi
3455 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3459 else
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464
3465 fi
3466 if test -z "$CC"; then
3467   if test -n "$ac_tool_prefix"; then
3468   for ac_prog in cl.exe
3469   do
3470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_CC+:} false; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   if test -n "$CC"; then
3478   ac_cv_prog_CC="$CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485     for ac_exec_ext in '' $ac_executable_extensions; do
3486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492   done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507     test -n "$CC" && break
3508   done
3509 fi
3510 if test -z "$CC"; then
3511   ac_ct_CC=$CC
3512   for ac_prog in cl.exe
3513 do
3514   # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3519   $as_echo_n "(cached) " >&6
3520 else
3521   if test -n "$ac_ct_CC"; then
3522   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527   IFS=$as_save_IFS
3528   test -z "$as_dir" && as_dir=.
3529     for ac_exec_ext in '' $ac_executable_extensions; do
3530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531     ac_cv_prog_ac_ct_CC="$ac_prog"
3532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533     break 2
3534   fi
3535 done
3536   done
3537 IFS=$as_save_IFS
3538
3539 fi
3540 fi
3541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3544 $as_echo "$ac_ct_CC" >&6; }
3545 else
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 fi
3549
3550
3551   test -n "$ac_ct_CC" && break
3552 done
3553
3554   if test "x$ac_ct_CC" = x; then
3555     CC=""
3556   else
3557     case $cross_compiling:$ac_tool_warned in
3558 yes:)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned=yes ;;
3562 esac
3563     CC=$ac_ct_CC
3564   fi
3565 fi
3566
3567 fi
3568
3569
3570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "no acceptable C compiler found in \$PATH
3573 See \`config.log' for more details" "$LINENO" 5; }
3574
3575 # Provide some information about the compiler.
3576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3577 set X $ac_compile
3578 ac_compiler=$2
3579 for ac_option in --version -v -V -qversion; do
3580   { { ac_try="$ac_compiler $ac_option >&5"
3581 case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3588   ac_status=$?
3589   if test -s conftest.err; then
3590     sed '10a\
3591 ... rest of stderr output deleted ...
3592          10q' conftest.err >conftest.er1
3593     cat conftest.er1 >&5
3594   fi
3595   rm -f conftest.er1 conftest.err
3596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597   test $ac_status = 0; }
3598 done
3599
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h.  */
3602
3603 int
3604 main ()
3605 {
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3613 # Try to create an executable without -o first, disregard a.out.
3614 # It will help us diagnose broken compilers, and finding out an intuition
3615 # of exeext.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3617 $as_echo_n "checking whether the C compiler works... " >&6; }
3618 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3619
3620 # The possible output files:
3621 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3622
3623 ac_rmfiles=
3624 for ac_file in $ac_files
3625 do
3626   case $ac_file in
3627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3629   esac
3630 done
3631 rm -f $ac_rmfiles
3632
3633 if { { ac_try="$ac_link_default"
3634 case "(($ac_try" in
3635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636   *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640   (eval "$ac_link_default") 2>&5
3641   ac_status=$?
3642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643   test $ac_status = 0; }; then :
3644   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3645 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3646 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3647 # so that the user can short-circuit this test for compilers unknown to
3648 # Autoconf.
3649 for ac_file in $ac_files ''
3650 do
3651   test -f "$ac_file" || continue
3652   case $ac_file in
3653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3654         ;;
3655     [ab].out )
3656         # We found the default executable, but exeext='' is most
3657         # certainly right.
3658         break;;
3659     *.* )
3660         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3661         then :; else
3662            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663         fi
3664         # We set ac_cv_exeext here because the later test for it is not
3665         # safe: cross compilers may not add the suffix if given an `-o'
3666         # argument, so we may need to know it at that point already.
3667         # Even if this section looks crufty: it has the advantage of
3668         # actually working.
3669         break;;
3670     * )
3671         break;;
3672   esac
3673 done
3674 test "$ac_cv_exeext" = no && ac_cv_exeext=
3675
3676 else
3677   ac_file=''
3678 fi
3679 if test -z "$ac_file"; then :
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error 77 "C compiler cannot create executables
3688 See \`config.log' for more details" "$LINENO" 5; }
3689 else
3690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3691 $as_echo "yes" >&6; }
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3694 $as_echo_n "checking for C compiler default output file name... " >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3696 $as_echo "$ac_file" >&6; }
3697 ac_exeext=$ac_cv_exeext
3698
3699 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3700 ac_clean_files=$ac_clean_files_save
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3702 $as_echo_n "checking for suffix of executables... " >&6; }
3703 if { { ac_try="$ac_link"
3704 case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710   (eval "$ac_link") 2>&5
3711   ac_status=$?
3712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713   test $ac_status = 0; }; then :
3714   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3715 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3716 # work properly (i.e., refer to `conftest.exe'), while it won't with
3717 # `rm'.
3718 for ac_file in conftest.exe conftest conftest.*; do
3719   test -f "$ac_file" || continue
3720   case $ac_file in
3721     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3722     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3723           break;;
3724     * ) break;;
3725   esac
3726 done
3727 else
3728   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3731 See \`config.log' for more details" "$LINENO" 5; }
3732 fi
3733 rm -f conftest conftest$ac_cv_exeext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3735 $as_echo "$ac_cv_exeext" >&6; }
3736
3737 rm -f conftest.$ac_ext
3738 EXEEXT=$ac_cv_exeext
3739 ac_exeext=$EXEEXT
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h.  */
3742 #include <stdio.h>
3743 int
3744 main ()
3745 {
3746 FILE *f = fopen ("conftest.out", "w");
3747  return ferror (f) || fclose (f) != 0;
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 ac_clean_files="$ac_clean_files conftest.out"
3754 # Check that the compiler produces executables we can run.  If not, either
3755 # the compiler is broken, or we cross compile.
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3757 $as_echo_n "checking whether we are cross compiling... " >&6; }
3758 if test "$cross_compiling" != yes; then
3759   { { ac_try="$ac_link"
3760 case "(($ac_try" in
3761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762   *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766   (eval "$ac_link") 2>&5
3767   ac_status=$?
3768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769   test $ac_status = 0; }
3770   if { ac_try='./conftest$ac_cv_exeext'
3771   { { case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777   (eval "$ac_try") 2>&5
3778   ac_status=$?
3779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780   test $ac_status = 0; }; }; then
3781     cross_compiling=no
3782   else
3783     if test "$cross_compiling" = maybe; then
3784         cross_compiling=yes
3785     else
3786         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "cannot run C compiled programs.
3789 If you meant to cross compile, use \`--host'.
3790 See \`config.log' for more details" "$LINENO" 5; }
3791     fi
3792   fi
3793 fi
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3795 $as_echo "$cross_compiling" >&6; }
3796
3797 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3798 ac_clean_files=$ac_clean_files_save
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3800 $as_echo_n "checking for suffix of object files... " >&6; }
3801 if ${ac_cv_objext+:} false; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h.  */
3806
3807 int
3808 main ()
3809 {
3810
3811   ;
3812   return 0;
3813 }
3814 _ACEOF
3815 rm -f conftest.o conftest.obj
3816 if { { ac_try="$ac_compile"
3817 case "(($ac_try" in
3818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819   *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823   (eval "$ac_compile") 2>&5
3824   ac_status=$?
3825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826   test $ac_status = 0; }; then :
3827   for ac_file in conftest.o conftest.obj conftest.*; do
3828   test -f "$ac_file" || continue;
3829   case $ac_file in
3830     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3831     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3832        break;;
3833   esac
3834 done
3835 else
3836   $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "cannot compute suffix of object files: cannot compile
3842 See \`config.log' for more details" "$LINENO" 5; }
3843 fi
3844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3847 $as_echo "$ac_cv_objext" >&6; }
3848 OBJEXT=$ac_cv_objext
3849 ac_objext=$OBJEXT
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3852 if ${ac_cv_c_compiler_gnu+:} false; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h.  */
3857
3858 int
3859 main ()
3860 {
3861 #ifndef __GNUC__
3862        choke me
3863 #endif
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870   ac_compiler_gnu=yes
3871 else
3872   ac_compiler_gnu=no
3873 fi
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3876
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3879 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3880 if test $ac_compiler_gnu = yes; then
3881   GCC=yes
3882 else
3883   GCC=
3884 fi
3885 ac_test_CFLAGS=${CFLAGS+set}
3886 ac_save_CFLAGS=$CFLAGS
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3888 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3889 if ${ac_cv_prog_cc_g+:} false; then :
3890   $as_echo_n "(cached) " >&6
3891 else
3892   ac_save_c_werror_flag=$ac_c_werror_flag
3893    ac_c_werror_flag=yes
3894    ac_cv_prog_cc_g=no
3895    CFLAGS="-g"
3896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898
3899 int
3900 main ()
3901 {
3902
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 if ac_fn_c_try_compile "$LINENO"; then :
3908   ac_cv_prog_cc_g=yes
3909 else
3910   CFLAGS=""
3911       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923
3924 else
3925   ac_c_werror_flag=$ac_save_c_werror_flag
3926          CFLAGS="-g"
3927          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h.  */
3929
3930 int
3931 main ()
3932 {
3933
3934   ;
3935   return 0;
3936 }
3937 _ACEOF
3938 if ac_fn_c_try_compile "$LINENO"; then :
3939   ac_cv_prog_cc_g=yes
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 fi
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946    ac_c_werror_flag=$ac_save_c_werror_flag
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3949 $as_echo "$ac_cv_prog_cc_g" >&6; }
3950 if test "$ac_test_CFLAGS" = set; then
3951   CFLAGS=$ac_save_CFLAGS
3952 elif test $ac_cv_prog_cc_g = yes; then
3953   if test "$GCC" = yes; then
3954     CFLAGS="-g -O2"
3955   else
3956     CFLAGS="-g"
3957   fi
3958 else
3959   if test "$GCC" = yes; then
3960     CFLAGS="-O2"
3961   else
3962     CFLAGS=
3963   fi
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3966 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3967 if ${ac_cv_prog_cc_c89+:} false; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   ac_cv_prog_cc_c89=no
3971 ac_save_CC=$CC
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h.  */
3974 #include <stdarg.h>
3975 #include <stdio.h>
3976 struct stat;
3977 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3978 struct buf { int x; };
3979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3980 static char *e (p, i)
3981      char **p;
3982      int i;
3983 {
3984   return p[i];
3985 }
3986 static char *f (char * (*g) (char **, int), char **p, ...)
3987 {
3988   char *s;
3989   va_list v;
3990   va_start (v,p);
3991   s = g (p, va_arg (v,int));
3992   va_end (v);
3993   return s;
3994 }
3995
3996 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3997    function prototypes and stuff, but not '\xHH' hex character constants.
3998    These don't provoke an error unfortunately, instead are silently treated
3999    as 'x'.  The following induces an error, until -std is added to get
4000    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4001    array size at least.  It's necessary to write '\x00'==0 to get something
4002    that's true only with -std.  */
4003 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4004
4005 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4006    inside strings and character constants.  */
4007 #define FOO(x) 'x'
4008 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4009
4010 int test (int i, double x);
4011 struct s1 {int (*f) (int a);};
4012 struct s2 {int (*f) (double a);};
4013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4014 int argc;
4015 char **argv;
4016 int
4017 main ()
4018 {
4019 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4025         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4026 do
4027   CC="$ac_save_CC $ac_arg"
4028   if ac_fn_c_try_compile "$LINENO"; then :
4029   ac_cv_prog_cc_c89=$ac_arg
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext
4032   test "x$ac_cv_prog_cc_c89" != "xno" && break
4033 done
4034 rm -f conftest.$ac_ext
4035 CC=$ac_save_CC
4036
4037 fi
4038 # AC_CACHE_VAL
4039 case "x$ac_cv_prog_cc_c89" in
4040   x)
4041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4042 $as_echo "none needed" >&6; } ;;
4043   xno)
4044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4045 $as_echo "unsupported" >&6; } ;;
4046   *)
4047     CC="$CC $ac_cv_prog_cc_c89"
4048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4049 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4050 esac
4051 if test "x$ac_cv_prog_cc_c89" != xno; then :
4052
4053 fi
4054
4055 ac_ext=c
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061 ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4067 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4068 if ${am_cv_prog_cc_c_o+:} false; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h.  */
4073
4074 int
4075 main ()
4076 {
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082   # Make sure it works both with $CC and with simple cc.
4083   # Following AC_PROG_CC_C_O, we do the test twice because some
4084   # compilers refuse to overwrite an existing .o file with -o,
4085   # though they will create one.
4086   am_cv_prog_cc_c_o=yes
4087   for am_i in 1 2; do
4088     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4089    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4090    ac_status=$?
4091    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092    (exit $ac_status); } \
4093          && test -f conftest2.$ac_objext; then
4094       : OK
4095     else
4096       am_cv_prog_cc_c_o=no
4097       break
4098     fi
4099   done
4100   rm -f core conftest*
4101   unset am_i
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4104 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4105 if test "$am_cv_prog_cc_c_o" != yes; then
4106    # Losing compiler, so override with the script.
4107    # FIXME: It is wrong to rewrite CC.
4108    # But if we don't then we get into trouble of one sort or another.
4109    # A longer-term fix would be to have automake use am__CC in this case,
4110    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4111    CC="$am_aux_dir/compile $CC"
4112 fi
4113 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118
4119 DEPDIR="${am__leading_dot}deps"
4120
4121 ac_config_commands="$ac_config_commands depfiles"
4122
4123
4124 am_make=${MAKE-make}
4125 cat > confinc << 'END'
4126 am__doit:
4127         @echo this is the am__doit target
4128 .PHONY: am__doit
4129 END
4130 # If we don't find an include directive, just comment out the code.
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4132 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4133 am__include="#"
4134 am__quote=
4135 _am_result=none
4136 # First try GNU make style include.
4137 echo "include confinc" > confmf
4138 # Ignore all kinds of additional output from 'make'.
4139 case `$am_make -s -f confmf 2> /dev/null` in #(
4140 *the\ am__doit\ target*)
4141   am__include=include
4142   am__quote=
4143   _am_result=GNU
4144   ;;
4145 esac
4146 # Now try BSD make style include.
4147 if test "$am__include" = "#"; then
4148    echo '.include "confinc"' > confmf
4149    case `$am_make -s -f confmf 2> /dev/null` in #(
4150    *the\ am__doit\ target*)
4151      am__include=.include
4152      am__quote="\""
4153      _am_result=BSD
4154      ;;
4155    esac
4156 fi
4157
4158
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4160 $as_echo "$_am_result" >&6; }
4161 rm -f confinc confmf
4162
4163 # Check whether --enable-dependency-tracking was given.
4164 if test "${enable_dependency_tracking+set}" = set; then :
4165   enableval=$enable_dependency_tracking;
4166 fi
4167
4168 if test "x$enable_dependency_tracking" != xno; then
4169   am_depcomp="$ac_aux_dir/depcomp"
4170   AMDEPBACKSLASH='\'
4171   am__nodep='_no'
4172 fi
4173  if test "x$enable_dependency_tracking" != xno; then
4174   AMDEP_TRUE=
4175   AMDEP_FALSE='#'
4176 else
4177   AMDEP_TRUE='#'
4178   AMDEP_FALSE=
4179 fi
4180
4181
4182
4183 depcc="$CC"   am_compiler_list=
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4186 $as_echo_n "checking dependency style of $depcc... " >&6; }
4187 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4191   # We make a subdir and do the tests there.  Otherwise we can end up
4192   # making bogus files that we don't know about and never remove.  For
4193   # instance it was reported that on HP-UX the gcc test will end up
4194   # making a dummy file named 'D' -- because '-MD' means "put the output
4195   # in D".
4196   rm -rf conftest.dir
4197   mkdir conftest.dir
4198   # Copy depcomp to subdir because otherwise we won't find it if we're
4199   # using a relative directory.
4200   cp "$am_depcomp" conftest.dir
4201   cd conftest.dir
4202   # We will build objects and dependencies in a subdirectory because
4203   # it helps to detect inapplicable dependency modes.  For instance
4204   # both Tru64's cc and ICC support -MD to output dependencies as a
4205   # side effect of compilation, but ICC will put the dependencies in
4206   # the current directory while Tru64 will put them in the object
4207   # directory.
4208   mkdir sub
4209
4210   am_cv_CC_dependencies_compiler_type=none
4211   if test "$am_compiler_list" = ""; then
4212      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4213   fi
4214   am__universal=false
4215   case " $depcc " in #(
4216      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4217      esac
4218
4219   for depmode in $am_compiler_list; do
4220     # Setup a source with many dependencies, because some compilers
4221     # like to wrap large dependency lists on column 80 (with \), and
4222     # we should not choose a depcomp mode which is confused by this.
4223     #
4224     # We need to recreate these files for each test, as the compiler may
4225     # overwrite some of them when testing with obscure command lines.
4226     # This happens at least with the AIX C compiler.
4227     : > sub/conftest.c
4228     for i in 1 2 3 4 5 6; do
4229       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4231       # Solaris 10 /bin/sh.
4232       echo '/* dummy */' > sub/conftst$i.h
4233     done
4234     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4235
4236     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4237     # mode.  It turns out that the SunPro C++ compiler does not properly
4238     # handle '-M -o', and we need to detect this.  Also, some Intel
4239     # versions had trouble with output in subdirs.
4240     am__obj=sub/conftest.${OBJEXT-o}
4241     am__minus_obj="-o $am__obj"
4242     case $depmode in
4243     gcc)
4244       # This depmode causes a compiler race in universal mode.
4245       test "$am__universal" = false || continue
4246       ;;
4247     nosideeffect)
4248       # After this tag, mechanisms are not by side-effect, so they'll
4249       # only be used when explicitly requested.
4250       if test "x$enable_dependency_tracking" = xyes; then
4251         continue
4252       else
4253         break
4254       fi
4255       ;;
4256     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4257       # This compiler won't grok '-c -o', but also, the minuso test has
4258       # not run yet.  These depmodes are late enough in the game, and
4259       # so weak that their functioning should not be impacted.
4260       am__obj=conftest.${OBJEXT-o}
4261       am__minus_obj=
4262       ;;
4263     none) break ;;
4264     esac
4265     if depmode=$depmode \
4266        source=sub/conftest.c object=$am__obj \
4267        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4268        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4269          >/dev/null 2>conftest.err &&
4270        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4271        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4272        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4273        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4274       # icc doesn't choke on unknown options, it will just issue warnings
4275       # or remarks (even with -Werror).  So we grep stderr for any message
4276       # that says an option was ignored or not supported.
4277       # When given -MP, icc 7.0 and 7.1 complain thusly:
4278       #   icc: Command line warning: ignoring option '-M'; no argument required
4279       # The diagnosis changed in icc 8.0:
4280       #   icc: Command line remark: option '-MP' not supported
4281       if (grep 'ignoring option' conftest.err ||
4282           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4283         am_cv_CC_dependencies_compiler_type=$depmode
4284         break
4285       fi
4286     fi
4287   done
4288
4289   cd ..
4290   rm -rf conftest.dir
4291 else
4292   am_cv_CC_dependencies_compiler_type=none
4293 fi
4294
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4297 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4298 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4299
4300  if
4301   test "x$enable_dependency_tracking" != xno \
4302   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4303   am__fastdepCC_TRUE=
4304   am__fastdepCC_FALSE='#'
4305 else
4306   am__fastdepCC_TRUE='#'
4307   am__fastdepCC_FALSE=
4308 fi
4309
4310
4311 ac_ext=cpp
4312 ac_cpp='$CXXCPP $CPPFLAGS'
4313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4316 if test -z "$CXX"; then
4317   if test -n "$CCC"; then
4318     CXX=$CCC
4319   else
4320     if test -n "$ac_tool_prefix"; then
4321   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4322   do
4323     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if ${ac_cv_prog_CXX+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   if test -n "$CXX"; then
4331   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338     for ac_exec_ext in '' $ac_executable_extensions; do
4339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342     break 2
4343   fi
4344 done
4345   done
4346 IFS=$as_save_IFS
4347
4348 fi
4349 fi
4350 CXX=$ac_cv_prog_CXX
4351 if test -n "$CXX"; then
4352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4353 $as_echo "$CXX" >&6; }
4354 else
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4357 fi
4358
4359
4360     test -n "$CXX" && break
4361   done
4362 fi
4363 if test -z "$CXX"; then
4364   ac_ct_CXX=$CXX
4365   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4366 do
4367   # Extract the first word of "$ac_prog", so it can be a program name with args.
4368 set dummy $ac_prog; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4372   $as_echo_n "(cached) " >&6
4373 else
4374   if test -n "$ac_ct_CXX"; then
4375   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382     for ac_exec_ext in '' $ac_executable_extensions; do
4383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384     ac_cv_prog_ac_ct_CXX="$ac_prog"
4385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386     break 2
4387   fi
4388 done
4389   done
4390 IFS=$as_save_IFS
4391
4392 fi
4393 fi
4394 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4395 if test -n "$ac_ct_CXX"; then
4396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4397 $as_echo "$ac_ct_CXX" >&6; }
4398 else
4399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 fi
4402
4403
4404   test -n "$ac_ct_CXX" && break
4405 done
4406
4407   if test "x$ac_ct_CXX" = x; then
4408     CXX="g++"
4409   else
4410     case $cross_compiling:$ac_tool_warned in
4411 yes:)
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4414 ac_tool_warned=yes ;;
4415 esac
4416     CXX=$ac_ct_CXX
4417   fi
4418 fi
4419
4420   fi
4421 fi
4422 # Provide some information about the compiler.
4423 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4424 set X $ac_compile
4425 ac_compiler=$2
4426 for ac_option in --version -v -V -qversion; do
4427   { { ac_try="$ac_compiler $ac_option >&5"
4428 case "(($ac_try" in
4429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430   *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4435   ac_status=$?
4436   if test -s conftest.err; then
4437     sed '10a\
4438 ... rest of stderr output deleted ...
4439          10q' conftest.err >conftest.er1
4440     cat conftest.er1 >&5
4441   fi
4442   rm -f conftest.er1 conftest.err
4443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4444   test $ac_status = 0; }
4445 done
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4448 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4449 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h.  */
4454
4455 int
4456 main ()
4457 {
4458 #ifndef __GNUC__
4459        choke me
4460 #endif
4461
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 if ac_fn_cxx_try_compile "$LINENO"; then :
4467   ac_compiler_gnu=yes
4468 else
4469   ac_compiler_gnu=no
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4473
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4476 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4477 if test $ac_compiler_gnu = yes; then
4478   GXX=yes
4479 else
4480   GXX=
4481 fi
4482 ac_test_CXXFLAGS=${CXXFLAGS+set}
4483 ac_save_CXXFLAGS=$CXXFLAGS
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4485 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4486 if ${ac_cv_prog_cxx_g+:} false; then :
4487   $as_echo_n "(cached) " >&6
4488 else
4489   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4490    ac_cxx_werror_flag=yes
4491    ac_cv_prog_cxx_g=no
4492    CXXFLAGS="-g"
4493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h.  */
4495
4496 int
4497 main ()
4498 {
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 if ac_fn_cxx_try_compile "$LINENO"; then :
4505   ac_cv_prog_cxx_g=yes
4506 else
4507   CXXFLAGS=""
4508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510
4511 int
4512 main ()
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 if ac_fn_cxx_try_compile "$LINENO"; then :
4520
4521 else
4522   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4523          CXXFLAGS="-g"
4524          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h.  */
4526
4527 int
4528 main ()
4529 {
4530
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536   ac_cv_prog_cxx_g=yes
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 fi
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4546 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4547 if test "$ac_test_CXXFLAGS" = set; then
4548   CXXFLAGS=$ac_save_CXXFLAGS
4549 elif test $ac_cv_prog_cxx_g = yes; then
4550   if test "$GXX" = yes; then
4551     CXXFLAGS="-g -O2"
4552   else
4553     CXXFLAGS="-g"
4554   fi
4555 else
4556   if test "$GXX" = yes; then
4557     CXXFLAGS="-O2"
4558   else
4559     CXXFLAGS=
4560   fi
4561 fi
4562 ac_ext=c
4563 ac_cpp='$CPP $CPPFLAGS'
4564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4567
4568 depcc="$CXX"  am_compiler_list=
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4571 $as_echo_n "checking dependency style of $depcc... " >&6; }
4572 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4576   # We make a subdir and do the tests there.  Otherwise we can end up
4577   # making bogus files that we don't know about and never remove.  For
4578   # instance it was reported that on HP-UX the gcc test will end up
4579   # making a dummy file named 'D' -- because '-MD' means "put the output
4580   # in D".
4581   rm -rf conftest.dir
4582   mkdir conftest.dir
4583   # Copy depcomp to subdir because otherwise we won't find it if we're
4584   # using a relative directory.
4585   cp "$am_depcomp" conftest.dir
4586   cd conftest.dir
4587   # We will build objects and dependencies in a subdirectory because
4588   # it helps to detect inapplicable dependency modes.  For instance
4589   # both Tru64's cc and ICC support -MD to output dependencies as a
4590   # side effect of compilation, but ICC will put the dependencies in
4591   # the current directory while Tru64 will put them in the object
4592   # directory.
4593   mkdir sub
4594
4595   am_cv_CXX_dependencies_compiler_type=none
4596   if test "$am_compiler_list" = ""; then
4597      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4598   fi
4599   am__universal=false
4600   case " $depcc " in #(
4601      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4602      esac
4603
4604   for depmode in $am_compiler_list; do
4605     # Setup a source with many dependencies, because some compilers
4606     # like to wrap large dependency lists on column 80 (with \), and
4607     # we should not choose a depcomp mode which is confused by this.
4608     #
4609     # We need to recreate these files for each test, as the compiler may
4610     # overwrite some of them when testing with obscure command lines.
4611     # This happens at least with the AIX C compiler.
4612     : > sub/conftest.c
4613     for i in 1 2 3 4 5 6; do
4614       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4615       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4616       # Solaris 10 /bin/sh.
4617       echo '/* dummy */' > sub/conftst$i.h
4618     done
4619     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4620
4621     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4622     # mode.  It turns out that the SunPro C++ compiler does not properly
4623     # handle '-M -o', and we need to detect this.  Also, some Intel
4624     # versions had trouble with output in subdirs.
4625     am__obj=sub/conftest.${OBJEXT-o}
4626     am__minus_obj="-o $am__obj"
4627     case $depmode in
4628     gcc)
4629       # This depmode causes a compiler race in universal mode.
4630       test "$am__universal" = false || continue
4631       ;;
4632     nosideeffect)
4633       # After this tag, mechanisms are not by side-effect, so they'll
4634       # only be used when explicitly requested.
4635       if test "x$enable_dependency_tracking" = xyes; then
4636         continue
4637       else
4638         break
4639       fi
4640       ;;
4641     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4642       # This compiler won't grok '-c -o', but also, the minuso test has
4643       # not run yet.  These depmodes are late enough in the game, and
4644       # so weak that their functioning should not be impacted.
4645       am__obj=conftest.${OBJEXT-o}
4646       am__minus_obj=
4647       ;;
4648     none) break ;;
4649     esac
4650     if depmode=$depmode \
4651        source=sub/conftest.c object=$am__obj \
4652        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4653        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4654          >/dev/null 2>conftest.err &&
4655        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4656        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4657        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4658        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4659       # icc doesn't choke on unknown options, it will just issue warnings
4660       # or remarks (even with -Werror).  So we grep stderr for any message
4661       # that says an option was ignored or not supported.
4662       # When given -MP, icc 7.0 and 7.1 complain thusly:
4663       #   icc: Command line warning: ignoring option '-M'; no argument required
4664       # The diagnosis changed in icc 8.0:
4665       #   icc: Command line remark: option '-MP' not supported
4666       if (grep 'ignoring option' conftest.err ||
4667           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4668         am_cv_CXX_dependencies_compiler_type=$depmode
4669         break
4670       fi
4671     fi
4672   done
4673
4674   cd ..
4675   rm -rf conftest.dir
4676 else
4677   am_cv_CXX_dependencies_compiler_type=none
4678 fi
4679
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4682 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4683 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4684
4685  if
4686   test "x$enable_dependency_tracking" != xno \
4687   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4688   am__fastdepCXX_TRUE=
4689   am__fastdepCXX_FALSE='#'
4690 else
4691   am__fastdepCXX_TRUE='#'
4692   am__fastdepCXX_FALSE=
4693 fi
4694
4695
4696
4697
4698 # Make sure we can run config.sub.
4699 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4700   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4701
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4703 $as_echo_n "checking build system type... " >&6; }
4704 if ${ac_cv_build+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   ac_build_alias=$build_alias
4708 test "x$ac_build_alias" = x &&
4709   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4710 test "x$ac_build_alias" = x &&
4711   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4712 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4713   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4714
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4717 $as_echo "$ac_cv_build" >&6; }
4718 case $ac_cv_build in
4719 *-*-*) ;;
4720 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4721 esac
4722 build=$ac_cv_build
4723 ac_save_IFS=$IFS; IFS='-'
4724 set x $ac_cv_build
4725 shift
4726 build_cpu=$1
4727 build_vendor=$2
4728 shift; shift
4729 # Remember, the first character of IFS is used to create $*,
4730 # except with old shells:
4731 build_os=$*
4732 IFS=$ac_save_IFS
4733 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4734
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4737 $as_echo_n "checking host system type... " >&6; }
4738 if ${ac_cv_host+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test "x$host_alias" = x; then
4742   ac_cv_host=$ac_cv_build
4743 else
4744   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4745     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4746 fi
4747
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4750 $as_echo "$ac_cv_host" >&6; }
4751 case $ac_cv_host in
4752 *-*-*) ;;
4753 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4754 esac
4755 host=$ac_cv_host
4756 ac_save_IFS=$IFS; IFS='-'
4757 set x $ac_cv_host
4758 shift
4759 host_cpu=$1
4760 host_vendor=$2
4761 shift; shift
4762 # Remember, the first character of IFS is used to create $*,
4763 # except with old shells:
4764 host_os=$*
4765 IFS=$ac_save_IFS
4766 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4767
4768
4769
4770
4771
4772
4773
4774 ac_ext=c
4775 ac_cpp='$CPP $CPPFLAGS'
4776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4780 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4781 # On Suns, sometimes $CPP names a directory.
4782 if test -n "$CPP" && test -d "$CPP"; then
4783   CPP=
4784 fi
4785 if test -z "$CPP"; then
4786   if ${ac_cv_prog_CPP+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789       # Double quotes because CPP needs to be expanded
4790     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4791     do
4792       ac_preproc_ok=false
4793 for ac_c_preproc_warn_flag in '' yes
4794 do
4795   # Use a header file that comes with gcc, so configuring glibc
4796   # with a fresh cross-compiler works.
4797   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798   # <limits.h> exists even on freestanding compilers.
4799   # On the NeXT, cc -E runs the code through the compiler's parser,
4800   # not just through cpp. "Syntax error" is here to catch this case.
4801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h.  */
4803 #ifdef __STDC__
4804 # include <limits.h>
4805 #else
4806 # include <assert.h>
4807 #endif
4808                      Syntax error
4809 _ACEOF
4810 if ac_fn_c_try_cpp "$LINENO"; then :
4811
4812 else
4813   # Broken: fails on valid input.
4814 continue
4815 fi
4816 rm -f conftest.err conftest.i conftest.$ac_ext
4817
4818   # OK, works on sane cases.  Now check whether nonexistent headers
4819   # can be detected and how.
4820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822 #include <ac_nonexistent.h>
4823 _ACEOF
4824 if ac_fn_c_try_cpp "$LINENO"; then :
4825   # Broken: success on invalid input.
4826 continue
4827 else
4828   # Passes both tests.
4829 ac_preproc_ok=:
4830 break
4831 fi
4832 rm -f conftest.err conftest.i conftest.$ac_ext
4833
4834 done
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.i conftest.err conftest.$ac_ext
4837 if $ac_preproc_ok; then :
4838   break
4839 fi
4840
4841     done
4842     ac_cv_prog_CPP=$CPP
4843
4844 fi
4845   CPP=$ac_cv_prog_CPP
4846 else
4847   ac_cv_prog_CPP=$CPP
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4850 $as_echo "$CPP" >&6; }
4851 ac_preproc_ok=false
4852 for ac_c_preproc_warn_flag in '' yes
4853 do
4854   # Use a header file that comes with gcc, so configuring glibc
4855   # with a fresh cross-compiler works.
4856   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4857   # <limits.h> exists even on freestanding compilers.
4858   # On the NeXT, cc -E runs the code through the compiler's parser,
4859   # not just through cpp. "Syntax error" is here to catch this case.
4860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h.  */
4862 #ifdef __STDC__
4863 # include <limits.h>
4864 #else
4865 # include <assert.h>
4866 #endif
4867                      Syntax error
4868 _ACEOF
4869 if ac_fn_c_try_cpp "$LINENO"; then :
4870
4871 else
4872   # Broken: fails on valid input.
4873 continue
4874 fi
4875 rm -f conftest.err conftest.i conftest.$ac_ext
4876
4877   # OK, works on sane cases.  Now check whether nonexistent headers
4878   # can be detected and how.
4879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881 #include <ac_nonexistent.h>
4882 _ACEOF
4883 if ac_fn_c_try_cpp "$LINENO"; then :
4884   # Broken: success on invalid input.
4885 continue
4886 else
4887   # Passes both tests.
4888 ac_preproc_ok=:
4889 break
4890 fi
4891 rm -f conftest.err conftest.i conftest.$ac_ext
4892
4893 done
4894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4895 rm -f conftest.i conftest.err conftest.$ac_ext
4896 if $ac_preproc_ok; then :
4897
4898 else
4899   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4901 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4902 See \`config.log' for more details" "$LINENO" 5; }
4903 fi
4904
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4914 if ${ac_cv_path_GREP+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if test -z "$GREP"; then
4918   ac_path_GREP_found=false
4919   # Loop through the user's path and test for each of PROGNAME-LIST
4920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_prog in grep ggrep; do
4926     for ac_exec_ext in '' $ac_executable_extensions; do
4927       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4928       as_fn_executable_p "$ac_path_GREP" || continue
4929 # Check for GNU ac_path_GREP and select it if it is found.
4930   # Check for GNU $ac_path_GREP
4931 case `"$ac_path_GREP" --version 2>&1` in
4932 *GNU*)
4933   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4934 *)
4935   ac_count=0
4936   $as_echo_n 0123456789 >"conftest.in"
4937   while :
4938   do
4939     cat "conftest.in" "conftest.in" >"conftest.tmp"
4940     mv "conftest.tmp" "conftest.in"
4941     cp "conftest.in" "conftest.nl"
4942     $as_echo 'GREP' >> "conftest.nl"
4943     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4944     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4945     as_fn_arith $ac_count + 1 && ac_count=$as_val
4946     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4947       # Best one so far, save it but keep looking for a better one
4948       ac_cv_path_GREP="$ac_path_GREP"
4949       ac_path_GREP_max=$ac_count
4950     fi
4951     # 10*(2^10) chars as input seems more than enough
4952     test $ac_count -gt 10 && break
4953   done
4954   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4955 esac
4956
4957       $ac_path_GREP_found && break 3
4958     done
4959   done
4960   done
4961 IFS=$as_save_IFS
4962   if test -z "$ac_cv_path_GREP"; then
4963     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4964   fi
4965 else
4966   ac_cv_path_GREP=$GREP
4967 fi
4968
4969 fi
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4971 $as_echo "$ac_cv_path_GREP" >&6; }
4972  GREP="$ac_cv_path_GREP"
4973
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4976 $as_echo_n "checking for egrep... " >&6; }
4977 if ${ac_cv_path_EGREP+:} false; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4981    then ac_cv_path_EGREP="$GREP -E"
4982    else
4983      if test -z "$EGREP"; then
4984   ac_path_EGREP_found=false
4985   # Loop through the user's path and test for each of PROGNAME-LIST
4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991     for ac_prog in egrep; do
4992     for ac_exec_ext in '' $ac_executable_extensions; do
4993       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4994       as_fn_executable_p "$ac_path_EGREP" || continue
4995 # Check for GNU ac_path_EGREP and select it if it is found.
4996   # Check for GNU $ac_path_EGREP
4997 case `"$ac_path_EGREP" --version 2>&1` in
4998 *GNU*)
4999   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5000 *)
5001   ac_count=0
5002   $as_echo_n 0123456789 >"conftest.in"
5003   while :
5004   do
5005     cat "conftest.in" "conftest.in" >"conftest.tmp"
5006     mv "conftest.tmp" "conftest.in"
5007     cp "conftest.in" "conftest.nl"
5008     $as_echo 'EGREP' >> "conftest.nl"
5009     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5011     as_fn_arith $ac_count + 1 && ac_count=$as_val
5012     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5013       # Best one so far, save it but keep looking for a better one
5014       ac_cv_path_EGREP="$ac_path_EGREP"
5015       ac_path_EGREP_max=$ac_count
5016     fi
5017     # 10*(2^10) chars as input seems more than enough
5018     test $ac_count -gt 10 && break
5019   done
5020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5021 esac
5022
5023       $ac_path_EGREP_found && break 3
5024     done
5025   done
5026   done
5027 IFS=$as_save_IFS
5028   if test -z "$ac_cv_path_EGREP"; then
5029     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5030   fi
5031 else
5032   ac_cv_path_EGREP=$EGREP
5033 fi
5034
5035    fi
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5038 $as_echo "$ac_cv_path_EGREP" >&6; }
5039  EGREP="$ac_cv_path_EGREP"
5040
5041
5042
5043
5044
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5046 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5047 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050
5051       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h.  */
5053
5054 #ifdef __ACK__
5055 Amsterdam
5056 #endif
5057
5058 _ACEOF
5059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060   $EGREP "Amsterdam" >/dev/null 2>&1; then :
5061   gl_cv_c_amsterdam_compiler=yes
5062 else
5063   gl_cv_c_amsterdam_compiler=no
5064 fi
5065 rm -f conftest*
5066
5067
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5070 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5071
5072       if test $gl_cv_c_amsterdam_compiler = yes; then
5073     if test -z "$AR"; then
5074       AR='cc -c.a'
5075     fi
5076     if test -z "$ARFLAGS"; then
5077       ARFLAGS='-o'
5078     fi
5079   else
5080                                         if test -n "$ac_tool_prefix"; then
5081   for ac_prog in ar lib "link -lib"
5082   do
5083     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_AR+:} false; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090   if test -n "$AR"; then
5091   ac_cv_prog_AR="$AR" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105   done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 AR=$ac_cv_prog_AR
5111 if test -n "$AR"; then
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5113 $as_echo "$AR" >&6; }
5114 else
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120     test -n "$AR" && break
5121   done
5122 fi
5123 if test -z "$AR"; then
5124   ac_ct_AR=$AR
5125   for ac_prog in ar lib "link -lib"
5126 do
5127   # Extract the first word of "$ac_prog", so it can be a program name with args.
5128 set dummy $ac_prog; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5132   $as_echo_n "(cached) " >&6
5133 else
5134   if test -n "$ac_ct_AR"; then
5135   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142     for ac_exec_ext in '' $ac_executable_extensions; do
5143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144     ac_cv_prog_ac_ct_AR="$ac_prog"
5145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149   done
5150 IFS=$as_save_IFS
5151
5152 fi
5153 fi
5154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5155 if test -n "$ac_ct_AR"; then
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5157 $as_echo "$ac_ct_AR" >&6; }
5158 else
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163
5164   test -n "$ac_ct_AR" && break
5165 done
5166
5167   if test "x$ac_ct_AR" = x; then
5168     AR="false"
5169   else
5170     case $cross_compiling:$ac_tool_warned in
5171 yes:)
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5174 ac_tool_warned=yes ;;
5175 esac
5176     AR=$ac_ct_AR
5177   fi
5178 fi
5179
5180 : ${AR=ar}
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5183 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5184 if ${am_cv_ar_interface+:} false; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187   ac_ext=c
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192
5193    am_cv_ar_interface=ar
5194    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h.  */
5196 int some_variable = 0;
5197 _ACEOF
5198 if ac_fn_c_try_compile "$LINENO"; then :
5199   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5200       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5201   (eval $am_ar_try) 2>&5
5202   ac_status=$?
5203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5204   test $ac_status = 0; }
5205       if test "$ac_status" -eq 0; then
5206         am_cv_ar_interface=ar
5207       else
5208         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5209         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5210   (eval $am_ar_try) 2>&5
5211   ac_status=$?
5212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5213   test $ac_status = 0; }
5214         if test "$ac_status" -eq 0; then
5215           am_cv_ar_interface=lib
5216         else
5217           am_cv_ar_interface=unknown
5218         fi
5219       fi
5220       rm -f conftest.lib libconftest.a
5221
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224    ac_ext=c
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229
5230 fi
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5232 $as_echo "$am_cv_ar_interface" >&6; }
5233
5234 case $am_cv_ar_interface in
5235 ar)
5236   ;;
5237 lib)
5238   # Microsoft lib, so override with the ar-lib wrapper script.
5239   # FIXME: It is wrong to rewrite AR.
5240   # But if we don't then we get into trouble of one sort or another.
5241   # A longer-term fix would be to have automake use am__AR in this case,
5242   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5243   # similar.
5244   AR="$am_aux_dir/ar-lib $AR"
5245   ;;
5246 unknown)
5247   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5248   ;;
5249 esac
5250
5251   fi
5252
5253         if test -n "$ac_tool_prefix"; then
5254   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5255 set dummy ${ac_tool_prefix}ar; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_AR+:} false; then :
5259   $as_echo_n "(cached) " >&6
5260 else
5261   if test -n "$AR"; then
5262   ac_cv_prog_AR="$AR" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267   IFS=$as_save_IFS
5268   test -z "$as_dir" && as_dir=.
5269     for ac_exec_ext in '' $ac_executable_extensions; do
5270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271     ac_cv_prog_AR="${ac_tool_prefix}ar"
5272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273     break 2
5274   fi
5275 done
5276   done
5277 IFS=$as_save_IFS
5278
5279 fi
5280 fi
5281 AR=$ac_cv_prog_AR
5282 if test -n "$AR"; then
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5284 $as_echo "$AR" >&6; }
5285 else
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289
5290
5291 fi
5292 if test -z "$ac_cv_prog_AR"; then
5293   ac_ct_AR=$AR
5294   # Extract the first word of "ar", so it can be a program name with args.
5295 set dummy ar; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   if test -n "$ac_ct_AR"; then
5302   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307   IFS=$as_save_IFS
5308   test -z "$as_dir" && as_dir=.
5309     for ac_exec_ext in '' $ac_executable_extensions; do
5310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311     ac_cv_prog_ac_ct_AR="ar"
5312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313     break 2
5314   fi
5315 done
5316   done
5317 IFS=$as_save_IFS
5318
5319 fi
5320 fi
5321 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5322 if test -n "$ac_ct_AR"; then
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5324 $as_echo "$ac_ct_AR" >&6; }
5325 else
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329
5330   if test "x$ac_ct_AR" = x; then
5331     AR="ar"
5332   else
5333     case $cross_compiling:$ac_tool_warned in
5334 yes:)
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned=yes ;;
5338 esac
5339     AR=$ac_ct_AR
5340   fi
5341 else
5342   AR="$ac_cv_prog_AR"
5343 fi
5344
5345   if test -z "$ARFLAGS"; then
5346     ARFLAGS='cr'
5347   fi
5348
5349
5350
5351   if test -z "$RANLIB"; then
5352     if test $gl_cv_c_amsterdam_compiler = yes; then
5353       RANLIB=':'
5354     else
5355             if test -n "$ac_tool_prefix"; then
5356   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_RANLIB+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if test -n "$RANLIB"; then
5364   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369   IFS=$as_save_IFS
5370   test -z "$as_dir" && as_dir=.
5371     for ac_exec_ext in '' $ac_executable_extensions; do
5372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378   done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 RANLIB=$ac_cv_prog_RANLIB
5384 if test -n "$RANLIB"; then
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5386 $as_echo "$RANLIB" >&6; }
5387 else
5388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392
5393 fi
5394 if test -z "$ac_cv_prog_RANLIB"; then
5395   ac_ct_RANLIB=$RANLIB
5396   # Extract the first word of "ranlib", so it can be a program name with args.
5397 set dummy ranlib; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   if test -n "$ac_ct_RANLIB"; then
5404   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411     for ac_exec_ext in '' $ac_executable_extensions; do
5412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413     ac_cv_prog_ac_ct_RANLIB="ranlib"
5414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415     break 2
5416   fi
5417 done
5418   done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5424 if test -n "$ac_ct_RANLIB"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5426 $as_echo "$ac_ct_RANLIB" >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432   if test "x$ac_ct_RANLIB" = x; then
5433     RANLIB=":"
5434   else
5435     case $cross_compiling:$ac_tool_warned in
5436 yes:)
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439 ac_tool_warned=yes ;;
5440 esac
5441     RANLIB=$ac_ct_RANLIB
5442   fi
5443 else
5444   RANLIB="$ac_cv_prog_RANLIB"
5445 fi
5446
5447     fi
5448   fi
5449
5450
5451
5452
5453   # Pre-early section.
5454
5455
5456   # Code from module absolute-header:
5457   # Code from module alloca:
5458   # Code from module alloca-opt:
5459   # Code from module errno:
5460   # Code from module extern-inline:
5461   # Code from module include_next:
5462   # Code from module size_max:
5463   # Code from module verify:
5464   # Code from module xsize:
5465
5466
5467
5468
5469   case "$host_os" in
5470     mingw* | cygwin*)
5471       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
5472 $as_echo_n "checking for auto-import of symbols... " >&6; }
5473       if ${gl_cv_ld_autoimport+:} false; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476
5477         gl_save_LDFLAGS="$LDFLAGS"
5478         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5479         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h.  */
5481
5482 int
5483 main ()
5484 {
5485
5486   ;
5487   return 0;
5488 }
5489 _ACEOF
5490 if ac_fn_c_try_link "$LINENO"; then :
5491   gl_cv_ld_autoimport=yes
5492 else
5493   gl_cv_ld_autoimport=no
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext \
5496     conftest$ac_exeext conftest.$ac_ext
5497         LDFLAGS="$gl_save_LDFLAGS"
5498 fi
5499
5500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
5501 $as_echo "$gl_cv_ld_autoimport" >&6; }
5502       if test $gl_cv_ld_autoimport = yes; then
5503         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5504       fi
5505       ;;
5506   esac
5507
5508 case `pwd` in
5509   *\ * | *\     *)
5510     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5511 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5512 esac
5513
5514
5515
5516 macro_version='2.4.6'
5517 macro_revision='2.4.6'
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 ltmain=$ac_aux_dir/ltmain.sh
5532
5533 # Backslashify metacharacters that are still active within
5534 # double-quoted strings.
5535 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5536
5537 # Same as above, but do not quote variable references.
5538 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5539
5540 # Sed substitution to delay expansion of an escaped shell variable in a
5541 # double_quote_subst'ed string.
5542 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5543
5544 # Sed substitution to delay expansion of an escaped single quote.
5545 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5546
5547 # Sed substitution to avoid accidental globbing in evaled expressions
5548 no_glob_subst='s/\*/\\\*/g'
5549
5550 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5552 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5555 $as_echo_n "checking how to print strings... " >&6; }
5556 # Test print first, because it will be a builtin if present.
5557 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5558    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5559   ECHO='print -r --'
5560 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5561   ECHO='printf %s\n'
5562 else
5563   # Use this function as a fallback that always works.
5564   func_fallback_echo ()
5565   {
5566     eval 'cat <<_LTECHO_EOF
5567 $1
5568 _LTECHO_EOF'
5569   }
5570   ECHO='func_fallback_echo'
5571 fi
5572
5573 # func_echo_all arg...
5574 # Invoke $ECHO with all args, space-separated.
5575 func_echo_all ()
5576 {
5577     $ECHO ""
5578 }
5579
5580 case $ECHO in
5581   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5582 $as_echo "printf" >&6; } ;;
5583   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5584 $as_echo "print -r" >&6; } ;;
5585   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5586 $as_echo "cat" >&6; } ;;
5587 esac
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5603 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5604 if ${ac_cv_path_SED+:} false; then :
5605   $as_echo_n "(cached) " >&6
5606 else
5607             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5608      for ac_i in 1 2 3 4 5 6 7; do
5609        ac_script="$ac_script$as_nl$ac_script"
5610      done
5611      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5612      { ac_script=; unset ac_script;}
5613      if test -z "$SED"; then
5614   ac_path_SED_found=false
5615   # Loop through the user's path and test for each of PROGNAME-LIST
5616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621     for ac_prog in sed gsed; do
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5624       as_fn_executable_p "$ac_path_SED" || continue
5625 # Check for GNU ac_path_SED and select it if it is found.
5626   # Check for GNU $ac_path_SED
5627 case `"$ac_path_SED" --version 2>&1` in
5628 *GNU*)
5629   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5630 *)
5631   ac_count=0
5632   $as_echo_n 0123456789 >"conftest.in"
5633   while :
5634   do
5635     cat "conftest.in" "conftest.in" >"conftest.tmp"
5636     mv "conftest.tmp" "conftest.in"
5637     cp "conftest.in" "conftest.nl"
5638     $as_echo '' >> "conftest.nl"
5639     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641     as_fn_arith $ac_count + 1 && ac_count=$as_val
5642     if test $ac_count -gt ${ac_path_SED_max-0}; then
5643       # Best one so far, save it but keep looking for a better one
5644       ac_cv_path_SED="$ac_path_SED"
5645       ac_path_SED_max=$ac_count
5646     fi
5647     # 10*(2^10) chars as input seems more than enough
5648     test $ac_count -gt 10 && break
5649   done
5650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 esac
5652
5653       $ac_path_SED_found && break 3
5654     done
5655   done
5656   done
5657 IFS=$as_save_IFS
5658   if test -z "$ac_cv_path_SED"; then
5659     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5660   fi
5661 else
5662   ac_cv_path_SED=$SED
5663 fi
5664
5665 fi
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5667 $as_echo "$ac_cv_path_SED" >&6; }
5668  SED="$ac_cv_path_SED"
5669   rm -f conftest.sed
5670
5671 test -z "$SED" && SED=sed
5672 Xsed="$SED -e 1s/^X//"
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5685 $as_echo_n "checking for fgrep... " >&6; }
5686 if ${ac_cv_path_FGREP+:} false; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5690    then ac_cv_path_FGREP="$GREP -F"
5691    else
5692      if test -z "$FGREP"; then
5693   ac_path_FGREP_found=false
5694   # Loop through the user's path and test for each of PROGNAME-LIST
5695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700     for ac_prog in fgrep; do
5701     for ac_exec_ext in '' $ac_executable_extensions; do
5702       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5703       as_fn_executable_p "$ac_path_FGREP" || continue
5704 # Check for GNU ac_path_FGREP and select it if it is found.
5705   # Check for GNU $ac_path_FGREP
5706 case `"$ac_path_FGREP" --version 2>&1` in
5707 *GNU*)
5708   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5709 *)
5710   ac_count=0
5711   $as_echo_n 0123456789 >"conftest.in"
5712   while :
5713   do
5714     cat "conftest.in" "conftest.in" >"conftest.tmp"
5715     mv "conftest.tmp" "conftest.in"
5716     cp "conftest.in" "conftest.nl"
5717     $as_echo 'FGREP' >> "conftest.nl"
5718     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5719     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5720     as_fn_arith $ac_count + 1 && ac_count=$as_val
5721     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5722       # Best one so far, save it but keep looking for a better one
5723       ac_cv_path_FGREP="$ac_path_FGREP"
5724       ac_path_FGREP_max=$ac_count
5725     fi
5726     # 10*(2^10) chars as input seems more than enough
5727     test $ac_count -gt 10 && break
5728   done
5729   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5730 esac
5731
5732       $ac_path_FGREP_found && break 3
5733     done
5734   done
5735   done
5736 IFS=$as_save_IFS
5737   if test -z "$ac_cv_path_FGREP"; then
5738     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5739   fi
5740 else
5741   ac_cv_path_FGREP=$FGREP
5742 fi
5743
5744    fi
5745 fi
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5747 $as_echo "$ac_cv_path_FGREP" >&6; }
5748  FGREP="$ac_cv_path_FGREP"
5749
5750
5751 test -z "$GREP" && GREP=grep
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771 # Check whether --with-gnu-ld was given.
5772 if test "${with_gnu_ld+set}" = set; then :
5773   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5774 else
5775   with_gnu_ld=no
5776 fi
5777
5778 ac_prog=ld
5779 if test yes = "$GCC"; then
5780   # Check if gcc -print-prog-name=ld gives a path.
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5782 $as_echo_n "checking for ld used by $CC... " >&6; }
5783   case $host in
5784   *-*-mingw*)
5785     # gcc leaves a trailing carriage return, which upsets mingw
5786     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5787   *)
5788     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5789   esac
5790   case $ac_prog in
5791     # Accept absolute paths.
5792     [\\/]* | ?:[\\/]*)
5793       re_direlt='/[^/][^/]*/\.\./'
5794       # Canonicalize the pathname of ld
5795       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5796       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5797         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5798       done
5799       test -z "$LD" && LD=$ac_prog
5800       ;;
5801   "")
5802     # If it fails, then pretend we aren't using GCC.
5803     ac_prog=ld
5804     ;;
5805   *)
5806     # If it is relative, then search for the first ld in PATH.
5807     with_gnu_ld=unknown
5808     ;;
5809   esac
5810 elif test yes = "$with_gnu_ld"; then
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5812 $as_echo_n "checking for GNU ld... " >&6; }
5813 else
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5815 $as_echo_n "checking for non-GNU ld... " >&6; }
5816 fi
5817 if ${lt_cv_path_LD+:} false; then :
5818   $as_echo_n "(cached) " >&6
5819 else
5820   if test -z "$LD"; then
5821   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5822   for ac_dir in $PATH; do
5823     IFS=$lt_save_ifs
5824     test -z "$ac_dir" && ac_dir=.
5825     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5826       lt_cv_path_LD=$ac_dir/$ac_prog
5827       # Check to see if the program is GNU ld.  I'd rather use --version,
5828       # but apparently some variants of GNU ld only accept -v.
5829       # Break only if it was the GNU/non-GNU ld that we prefer.
5830       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5831       *GNU* | *'with BFD'*)
5832         test no != "$with_gnu_ld" && break
5833         ;;
5834       *)
5835         test yes != "$with_gnu_ld" && break
5836         ;;
5837       esac
5838     fi
5839   done
5840   IFS=$lt_save_ifs
5841 else
5842   lt_cv_path_LD=$LD # Let the user override the test with a path.
5843 fi
5844 fi
5845
5846 LD=$lt_cv_path_LD
5847 if test -n "$LD"; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5849 $as_echo "$LD" >&6; }
5850 else
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5856 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5857 if ${lt_cv_prog_gnu_ld+:} false; then :
5858   $as_echo_n "(cached) " >&6
5859 else
5860   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5861 case `$LD -v 2>&1 </dev/null` in
5862 *GNU* | *'with BFD'*)
5863   lt_cv_prog_gnu_ld=yes
5864   ;;
5865 *)
5866   lt_cv_prog_gnu_ld=no
5867   ;;
5868 esac
5869 fi
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5871 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5872 with_gnu_ld=$lt_cv_prog_gnu_ld
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5883 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5884 if ${lt_cv_path_NM+:} false; then :
5885   $as_echo_n "(cached) " >&6
5886 else
5887   if test -n "$NM"; then
5888   # Let the user override the test.
5889   lt_cv_path_NM=$NM
5890 else
5891   lt_nm_to_check=${ac_tool_prefix}nm
5892   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5893     lt_nm_to_check="$lt_nm_to_check nm"
5894   fi
5895   for lt_tmp_nm in $lt_nm_to_check; do
5896     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5897     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5898       IFS=$lt_save_ifs
5899       test -z "$ac_dir" && ac_dir=.
5900       tmp_nm=$ac_dir/$lt_tmp_nm
5901       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5902         # Check to see if the nm accepts a BSD-compat flag.
5903         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5904         #   nm: unknown option "B" ignored
5905         # Tru64's nm complains that /dev/null is an invalid object file
5906         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5907         case $build_os in
5908         mingw*) lt_bad_file=conftest.nm/nofile ;;
5909         *) lt_bad_file=/dev/null ;;
5910         esac
5911         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5912         *$lt_bad_file* | *'Invalid file or object type'*)
5913           lt_cv_path_NM="$tmp_nm -B"
5914           break 2
5915           ;;
5916         *)
5917           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5918           */dev/null*)
5919             lt_cv_path_NM="$tmp_nm -p"
5920             break 2
5921             ;;
5922           *)
5923             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5924             continue # so that we can try to find one that supports BSD flags
5925             ;;
5926           esac
5927           ;;
5928         esac
5929       fi
5930     done
5931     IFS=$lt_save_ifs
5932   done
5933   : ${lt_cv_path_NM=no}
5934 fi
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5937 $as_echo "$lt_cv_path_NM" >&6; }
5938 if test no != "$lt_cv_path_NM"; then
5939   NM=$lt_cv_path_NM
5940 else
5941   # Didn't find any BSD compatible name lister, look for dumpbin.
5942   if test -n "$DUMPBIN"; then :
5943     # Let the user override the test.
5944   else
5945     if test -n "$ac_tool_prefix"; then
5946   for ac_prog in dumpbin "link -dump"
5947   do
5948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_DUMPBIN+:} false; then :
5953   $as_echo_n "(cached) " >&6
5954 else
5955   if test -n "$DUMPBIN"; then
5956   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963     for ac_exec_ext in '' $ac_executable_extensions; do
5964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970   done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 DUMPBIN=$ac_cv_prog_DUMPBIN
5976 if test -n "$DUMPBIN"; then
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5978 $as_echo "$DUMPBIN" >&6; }
5979 else
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984
5985     test -n "$DUMPBIN" && break
5986   done
5987 fi
5988 if test -z "$DUMPBIN"; then
5989   ac_ct_DUMPBIN=$DUMPBIN
5990   for ac_prog in dumpbin "link -dump"
5991 do
5992   # Extract the first word of "$ac_prog", so it can be a program name with args.
5993 set dummy $ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5997   $as_echo_n "(cached) " >&6
5998 else
5999   if test -n "$ac_ct_DUMPBIN"; then
6000   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007     for ac_exec_ext in '' $ac_executable_extensions; do
6008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011     break 2
6012   fi
6013 done
6014   done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6020 if test -n "$ac_ct_DUMPBIN"; then
6021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6022 $as_echo "$ac_ct_DUMPBIN" >&6; }
6023 else
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028
6029   test -n "$ac_ct_DUMPBIN" && break
6030 done
6031
6032   if test "x$ac_ct_DUMPBIN" = x; then
6033     DUMPBIN=":"
6034   else
6035     case $cross_compiling:$ac_tool_warned in
6036 yes:)
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6040 esac
6041     DUMPBIN=$ac_ct_DUMPBIN
6042   fi
6043 fi
6044
6045     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6046     *COFF*)
6047       DUMPBIN="$DUMPBIN -symbols -headers"
6048       ;;
6049     *)
6050       DUMPBIN=:
6051       ;;
6052     esac
6053   fi
6054
6055   if test : != "$DUMPBIN"; then
6056     NM=$DUMPBIN
6057   fi
6058 fi
6059 test -z "$NM" && NM=nm
6060
6061
6062
6063
6064
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6067 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6068 if ${lt_cv_nm_interface+:} false; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   lt_cv_nm_interface="BSD nm"
6072   echo "int some_variable = 0;" > conftest.$ac_ext
6073   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6074   (eval "$ac_compile" 2>conftest.err)
6075   cat conftest.err >&5
6076   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6077   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6078   cat conftest.err >&5
6079   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6080   cat conftest.out >&5
6081   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6082     lt_cv_nm_interface="MS dumpbin"
6083   fi
6084   rm -f conftest*
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6087 $as_echo "$lt_cv_nm_interface" >&6; }
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6090 $as_echo_n "checking whether ln -s works... " >&6; }
6091 LN_S=$as_ln_s
6092 if test "$LN_S" = "ln -s"; then
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6094 $as_echo "yes" >&6; }
6095 else
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6097 $as_echo "no, using $LN_S" >&6; }
6098 fi
6099
6100 # find the maximum length of command line arguments
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6102 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6103 if ${lt_cv_sys_max_cmd_len+:} false; then :
6104   $as_echo_n "(cached) " >&6
6105 else
6106     i=0
6107   teststring=ABCD
6108
6109   case $build_os in
6110   msdosdjgpp*)
6111     # On DJGPP, this test can blow up pretty badly due to problems in libc
6112     # (any single argument exceeding 2000 bytes causes a buffer overrun
6113     # during glob expansion).  Even if it were fixed, the result of this
6114     # check would be larger than it should be.
6115     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6116     ;;
6117
6118   gnu*)
6119     # Under GNU Hurd, this test is not required because there is
6120     # no limit to the length of command line arguments.
6121     # Libtool will interpret -1 as no limit whatsoever
6122     lt_cv_sys_max_cmd_len=-1;
6123     ;;
6124
6125   cygwin* | mingw* | cegcc*)
6126     # On Win9x/ME, this test blows up -- it succeeds, but takes
6127     # about 5 minutes as the teststring grows exponentially.
6128     # Worse, since 9x/ME are not pre-emptively multitasking,
6129     # you end up with a "frozen" computer, even though with patience
6130     # the test eventually succeeds (with a max line length of 256k).
6131     # Instead, let's just punt: use the minimum linelength reported by
6132     # all of the supported platforms: 8192 (on NT/2K/XP).
6133     lt_cv_sys_max_cmd_len=8192;
6134     ;;
6135
6136   mint*)
6137     # On MiNT this can take a long time and run out of memory.
6138     lt_cv_sys_max_cmd_len=8192;
6139     ;;
6140
6141   amigaos*)
6142     # On AmigaOS with pdksh, this test takes hours, literally.
6143     # So we just punt and use a minimum line length of 8192.
6144     lt_cv_sys_max_cmd_len=8192;
6145     ;;
6146
6147   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6148     # This has been around since 386BSD, at least.  Likely further.
6149     if test -x /sbin/sysctl; then
6150       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6151     elif test -x /usr/sbin/sysctl; then
6152       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6153     else
6154       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6155     fi
6156     # And add a safety zone
6157     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6158     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6159     ;;
6160
6161   interix*)
6162     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6163     lt_cv_sys_max_cmd_len=196608
6164     ;;
6165
6166   os2*)
6167     # The test takes a long time on OS/2.
6168     lt_cv_sys_max_cmd_len=8192
6169     ;;
6170
6171   osf*)
6172     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6173     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6174     # nice to cause kernel panics so lets avoid the loop below.
6175     # First set a reasonable default.
6176     lt_cv_sys_max_cmd_len=16384
6177     #
6178     if test -x /sbin/sysconfig; then
6179       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6180         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6181       esac
6182     fi
6183     ;;
6184   sco3.2v5*)
6185     lt_cv_sys_max_cmd_len=102400
6186     ;;
6187   sysv5* | sco5v6* | sysv4.2uw2*)
6188     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6189     if test -n "$kargmax"; then
6190       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6191     else
6192       lt_cv_sys_max_cmd_len=32768
6193     fi
6194     ;;
6195   *)
6196     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6197     if test -n "$lt_cv_sys_max_cmd_len" && \
6198        test undefined != "$lt_cv_sys_max_cmd_len"; then
6199       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6200       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6201     else
6202       # Make teststring a little bigger before we do anything with it.
6203       # a 1K string should be a reasonable start.
6204       for i in 1 2 3 4 5 6 7 8; do
6205         teststring=$teststring$teststring
6206       done
6207       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6208       # If test is not a shell built-in, we'll probably end up computing a
6209       # maximum length that is only half of the actual maximum length, but
6210       # we can't tell.
6211       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6212                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6213               test 17 != "$i" # 1/2 MB should be enough
6214       do
6215         i=`expr $i + 1`
6216         teststring=$teststring$teststring
6217       done
6218       # Only check the string length outside the loop.
6219       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6220       teststring=
6221       # Add a significant safety factor because C++ compilers can tack on
6222       # massive amounts of additional arguments before passing them to the
6223       # linker.  It appears as though 1/2 is a usable value.
6224       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6225     fi
6226     ;;
6227   esac
6228
6229 fi
6230
6231 if test -n "$lt_cv_sys_max_cmd_len"; then
6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6233 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6234 else
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6236 $as_echo "none" >&6; }
6237 fi
6238 max_cmd_len=$lt_cv_sys_max_cmd_len
6239
6240
6241
6242
6243
6244
6245 : ${CP="cp -f"}
6246 : ${MV="mv -f"}
6247 : ${RM="rm -f"}
6248
6249 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6250   lt_unset=unset
6251 else
6252   lt_unset=false
6253 fi
6254
6255
6256
6257
6258
6259 # test EBCDIC or ASCII
6260 case `echo X|tr X '\101'` in
6261  A) # ASCII based system
6262     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6263   lt_SP2NL='tr \040 \012'
6264   lt_NL2SP='tr \015\012 \040\040'
6265   ;;
6266  *) # EBCDIC based system
6267   lt_SP2NL='tr \100 \n'
6268   lt_NL2SP='tr \r\n \100\100'
6269   ;;
6270 esac
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6281 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6282 if ${lt_cv_to_host_file_cmd+:} false; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   case $host in
6286   *-*-mingw* )
6287     case $build in
6288       *-*-mingw* ) # actually msys
6289         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6290         ;;
6291       *-*-cygwin* )
6292         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6293         ;;
6294       * ) # otherwise, assume *nix
6295         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6296         ;;
6297     esac
6298     ;;
6299   *-*-cygwin* )
6300     case $build in
6301       *-*-mingw* ) # actually msys
6302         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6303         ;;
6304       *-*-cygwin* )
6305         lt_cv_to_host_file_cmd=func_convert_file_noop
6306         ;;
6307       * ) # otherwise, assume *nix
6308         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6309         ;;
6310     esac
6311     ;;
6312   * ) # unhandled hosts (and "normal" native builds)
6313     lt_cv_to_host_file_cmd=func_convert_file_noop
6314     ;;
6315 esac
6316
6317 fi
6318
6319 to_host_file_cmd=$lt_cv_to_host_file_cmd
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6321 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6322
6323
6324
6325
6326
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6328 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6329 if ${lt_cv_to_tool_file_cmd+:} false; then :
6330   $as_echo_n "(cached) " >&6
6331 else
6332   #assume ordinary cross tools, or native build.
6333 lt_cv_to_tool_file_cmd=func_convert_file_noop
6334 case $host in
6335   *-*-mingw* )
6336     case $build in
6337       *-*-mingw* ) # actually msys
6338         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6339         ;;
6340     esac
6341     ;;
6342 esac
6343
6344 fi
6345
6346 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6348 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6349
6350
6351
6352
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6355 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6356 if ${lt_cv_ld_reload_flag+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   lt_cv_ld_reload_flag='-r'
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6362 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6363 reload_flag=$lt_cv_ld_reload_flag
6364 case $reload_flag in
6365 "" | " "*) ;;
6366 *) reload_flag=" $reload_flag" ;;
6367 esac
6368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6369 case $host_os in
6370   cygwin* | mingw* | pw32* | cegcc*)
6371     if test yes != "$GCC"; then
6372       reload_cmds=false
6373     fi
6374     ;;
6375   darwin*)
6376     if test yes = "$GCC"; then
6377       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6378     else
6379       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6380     fi
6381     ;;
6382 esac
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 if test -n "$ac_tool_prefix"; then
6393   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_OBJDUMP+:} false; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   if test -n "$OBJDUMP"; then
6401   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408     for ac_exec_ext in '' $ac_executable_extensions; do
6409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412     break 2
6413   fi
6414 done
6415   done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 OBJDUMP=$ac_cv_prog_OBJDUMP
6421 if test -n "$OBJDUMP"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6423 $as_echo "$OBJDUMP" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429
6430 fi
6431 if test -z "$ac_cv_prog_OBJDUMP"; then
6432   ac_ct_OBJDUMP=$OBJDUMP
6433   # Extract the first word of "objdump", so it can be a program name with args.
6434 set dummy objdump; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   if test -n "$ac_ct_OBJDUMP"; then
6441   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   test -z "$as_dir" && as_dir=.
6448     for ac_exec_ext in '' $ac_executable_extensions; do
6449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453   fi
6454 done
6455   done
6456 IFS=$as_save_IFS
6457
6458 fi
6459 fi
6460 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6461 if test -n "$ac_ct_OBJDUMP"; then
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6463 $as_echo "$ac_ct_OBJDUMP" >&6; }
6464 else
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468
6469   if test "x$ac_ct_OBJDUMP" = x; then
6470     OBJDUMP="false"
6471   else
6472     case $cross_compiling:$ac_tool_warned in
6473 yes:)
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6477 esac
6478     OBJDUMP=$ac_ct_OBJDUMP
6479   fi
6480 else
6481   OBJDUMP="$ac_cv_prog_OBJDUMP"
6482 fi
6483
6484 test -z "$OBJDUMP" && OBJDUMP=objdump
6485
6486
6487
6488
6489
6490
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6492 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6493 if ${lt_cv_deplibs_check_method+:} false; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   lt_cv_file_magic_cmd='$MAGIC_CMD'
6497 lt_cv_file_magic_test_file=
6498 lt_cv_deplibs_check_method='unknown'
6499 # Need to set the preceding variable on all platforms that support
6500 # interlibrary dependencies.
6501 # 'none' -- dependencies not supported.
6502 # 'unknown' -- same as none, but documents that we really don't know.
6503 # 'pass_all' -- all dependencies passed with no checks.
6504 # 'test_compile' -- check by making test program.
6505 # 'file_magic [[regex]]' -- check by looking for files in library path
6506 # that responds to the $file_magic_cmd with a given extended regex.
6507 # If you have 'file' or equivalent on your system and you're not sure
6508 # whether 'pass_all' will *always* work, you probably want this one.
6509
6510 case $host_os in
6511 aix[4-9]*)
6512   lt_cv_deplibs_check_method=pass_all
6513   ;;
6514
6515 beos*)
6516   lt_cv_deplibs_check_method=pass_all
6517   ;;
6518
6519 bsdi[45]*)
6520   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6521   lt_cv_file_magic_cmd='/usr/bin/file -L'
6522   lt_cv_file_magic_test_file=/shlib/libc.so
6523   ;;
6524
6525 cygwin*)
6526   # func_win32_libid is a shell function defined in ltmain.sh
6527   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6528   lt_cv_file_magic_cmd='func_win32_libid'
6529   ;;
6530
6531 mingw* | pw32*)
6532   # Base MSYS/MinGW do not provide the 'file' command needed by
6533   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6534   # unless we find 'file', for example because we are cross-compiling.
6535   if ( file / ) >/dev/null 2>&1; then
6536     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6537     lt_cv_file_magic_cmd='func_win32_libid'
6538   else
6539     # Keep this pattern in sync with the one in func_win32_libid.
6540     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6541     lt_cv_file_magic_cmd='$OBJDUMP -f'
6542   fi
6543   ;;
6544
6545 cegcc*)
6546   # use the weaker test based on 'objdump'. See mingw*.
6547   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6548   lt_cv_file_magic_cmd='$OBJDUMP -f'
6549   ;;
6550
6551 darwin* | rhapsody*)
6552   lt_cv_deplibs_check_method=pass_all
6553   ;;
6554
6555 freebsd* | dragonfly*)
6556   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6557     case $host_cpu in
6558     i*86 )
6559       # Not sure whether the presence of OpenBSD here was a mistake.
6560       # Let's accept both of them until this is cleared up.
6561       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6562       lt_cv_file_magic_cmd=/usr/bin/file
6563       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6564       ;;
6565     esac
6566   else
6567     lt_cv_deplibs_check_method=pass_all
6568   fi
6569   ;;
6570
6571 haiku*)
6572   lt_cv_deplibs_check_method=pass_all
6573   ;;
6574
6575 hpux10.20* | hpux11*)
6576   lt_cv_file_magic_cmd=/usr/bin/file
6577   case $host_cpu in
6578   ia64*)
6579     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6580     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6581     ;;
6582   hppa*64*)
6583     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]'
6584     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6585     ;;
6586   *)
6587     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6588     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6589     ;;
6590   esac
6591   ;;
6592
6593 interix[3-9]*)
6594   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6595   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6596   ;;
6597
6598 irix5* | irix6* | nonstopux*)
6599   case $LD in
6600   *-32|*"-32 ") libmagic=32-bit;;
6601   *-n32|*"-n32 ") libmagic=N32;;
6602   *-64|*"-64 ") libmagic=64-bit;;
6603   *) libmagic=never-match;;
6604   esac
6605   lt_cv_deplibs_check_method=pass_all
6606   ;;
6607
6608 # This must be glibc/ELF.
6609 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6610   lt_cv_deplibs_check_method=pass_all
6611   ;;
6612
6613 netbsd*)
6614   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6615     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6616   else
6617     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6618   fi
6619   ;;
6620
6621 newos6*)
6622   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6623   lt_cv_file_magic_cmd=/usr/bin/file
6624   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6625   ;;
6626
6627 *nto* | *qnx*)
6628   lt_cv_deplibs_check_method=pass_all
6629   ;;
6630
6631 openbsd* | bitrig*)
6632   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6633     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6634   else
6635     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6636   fi
6637   ;;
6638
6639 osf3* | osf4* | osf5*)
6640   lt_cv_deplibs_check_method=pass_all
6641   ;;
6642
6643 rdos*)
6644   lt_cv_deplibs_check_method=pass_all
6645   ;;
6646
6647 solaris*)
6648   lt_cv_deplibs_check_method=pass_all
6649   ;;
6650
6651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6652   lt_cv_deplibs_check_method=pass_all
6653   ;;
6654
6655 sysv4 | sysv4.3*)
6656   case $host_vendor in
6657   motorola)
6658     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]'
6659     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6660     ;;
6661   ncr)
6662     lt_cv_deplibs_check_method=pass_all
6663     ;;
6664   sequent)
6665     lt_cv_file_magic_cmd='/bin/file'
6666     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6667     ;;
6668   sni)
6669     lt_cv_file_magic_cmd='/bin/file'
6670     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6671     lt_cv_file_magic_test_file=/lib/libc.so
6672     ;;
6673   siemens)
6674     lt_cv_deplibs_check_method=pass_all
6675     ;;
6676   pc)
6677     lt_cv_deplibs_check_method=pass_all
6678     ;;
6679   esac
6680   ;;
6681
6682 tpf*)
6683   lt_cv_deplibs_check_method=pass_all
6684   ;;
6685 os2*)
6686   lt_cv_deplibs_check_method=pass_all
6687   ;;
6688 esac
6689
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6692 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6693
6694 file_magic_glob=
6695 want_nocaseglob=no
6696 if test "$build" = "$host"; then
6697   case $host_os in
6698   mingw* | pw32*)
6699     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6700       want_nocaseglob=yes
6701     else
6702       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6703     fi
6704     ;;
6705   esac
6706 fi
6707
6708 file_magic_cmd=$lt_cv_file_magic_cmd
6709 deplibs_check_method=$lt_cv_deplibs_check_method
6710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733 if test -n "$ac_tool_prefix"; then
6734   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_DLLTOOL+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   if test -n "$DLLTOOL"; then
6742   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
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_DLLTOOL="${ac_tool_prefix}dlltool"
6752     $as_echo "$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 DLLTOOL=$ac_cv_prog_DLLTOOL
6762 if test -n "$DLLTOOL"; then
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6764 $as_echo "$DLLTOOL" >&6; }
6765 else
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770
6771 fi
6772 if test -z "$ac_cv_prog_DLLTOOL"; then
6773   ac_ct_DLLTOOL=$DLLTOOL
6774   # Extract the first word of "dlltool", so it can be a program name with args.
6775 set dummy dlltool; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   if test -n "$ac_ct_DLLTOOL"; then
6782   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789     for ac_exec_ext in '' $ac_executable_extensions; do
6790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796   done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6802 if test -n "$ac_ct_DLLTOOL"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6804 $as_echo "$ac_ct_DLLTOOL" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810   if test "x$ac_ct_DLLTOOL" = x; then
6811     DLLTOOL="false"
6812   else
6813     case $cross_compiling:$ac_tool_warned in
6814 yes:)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6818 esac
6819     DLLTOOL=$ac_ct_DLLTOOL
6820   fi
6821 else
6822   DLLTOOL="$ac_cv_prog_DLLTOOL"
6823 fi
6824
6825 test -z "$DLLTOOL" && DLLTOOL=dlltool
6826
6827
6828
6829
6830
6831
6832
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6834 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6835 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6836   $as_echo_n "(cached) " >&6
6837 else
6838   lt_cv_sharedlib_from_linklib_cmd='unknown'
6839
6840 case $host_os in
6841 cygwin* | mingw* | pw32* | cegcc*)
6842   # two different shell functions defined in ltmain.sh;
6843   # decide which one to use based on capabilities of $DLLTOOL
6844   case `$DLLTOOL --help 2>&1` in
6845   *--identify-strict*)
6846     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6847     ;;
6848   *)
6849     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6850     ;;
6851   esac
6852   ;;
6853 *)
6854   # fallback: assume linklib IS sharedlib
6855   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6856   ;;
6857 esac
6858
6859 fi
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6861 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6862 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6863 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6864
6865
6866
6867
6868
6869
6870
6871 if test -n "$ac_tool_prefix"; then
6872   for ac_prog in ar
6873   do
6874     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_AR+:} false; then :
6879   $as_echo_n "(cached) " >&6
6880 else
6881   if test -n "$AR"; then
6882   ac_cv_prog_AR="$AR" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889     for ac_exec_ext in '' $ac_executable_extensions; do
6890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896   done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 AR=$ac_cv_prog_AR
6902 if test -n "$AR"; then
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6904 $as_echo "$AR" >&6; }
6905 else
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910
6911     test -n "$AR" && break
6912   done
6913 fi
6914 if test -z "$AR"; then
6915   ac_ct_AR=$AR
6916   for ac_prog in ar
6917 do
6918   # Extract the first word of "$ac_prog", so it can be a program name with args.
6919 set dummy $ac_prog; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   if test -n "$ac_ct_AR"; then
6926   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933     for ac_exec_ext in '' $ac_executable_extensions; do
6934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935     ac_cv_prog_ac_ct_AR="$ac_prog"
6936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940   done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6946 if test -n "$ac_ct_AR"; then
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6948 $as_echo "$ac_ct_AR" >&6; }
6949 else
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953
6954
6955   test -n "$ac_ct_AR" && break
6956 done
6957
6958   if test "x$ac_ct_AR" = x; then
6959     AR="false"
6960   else
6961     case $cross_compiling:$ac_tool_warned in
6962 yes:)
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965 ac_tool_warned=yes ;;
6966 esac
6967     AR=$ac_ct_AR
6968   fi
6969 fi
6970
6971 : ${AR=ar}
6972 : ${AR_FLAGS=cru}
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6985 $as_echo_n "checking for archiver @FILE support... " >&6; }
6986 if ${lt_cv_ar_at_file+:} false; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   lt_cv_ar_at_file=no
6990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h.  */
6992
6993 int
6994 main ()
6995 {
6996
6997   ;
6998   return 0;
6999 }
7000 _ACEOF
7001 if ac_fn_c_try_compile "$LINENO"; then :
7002   echo conftest.$ac_objext > conftest.lst
7003       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7004       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7005   (eval $lt_ar_try) 2>&5
7006   ac_status=$?
7007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008   test $ac_status = 0; }
7009       if test 0 -eq "$ac_status"; then
7010         # Ensure the archiver fails upon bogus file names.
7011         rm -f conftest.$ac_objext libconftest.a
7012         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7013   (eval $lt_ar_try) 2>&5
7014   ac_status=$?
7015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016   test $ac_status = 0; }
7017         if test 0 -ne "$ac_status"; then
7018           lt_cv_ar_at_file=@
7019         fi
7020       fi
7021       rm -f conftest.* libconftest.a
7022
7023 fi
7024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025
7026 fi
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7028 $as_echo "$lt_cv_ar_at_file" >&6; }
7029
7030 if test no = "$lt_cv_ar_at_file"; then
7031   archiver_list_spec=
7032 else
7033   archiver_list_spec=$lt_cv_ar_at_file
7034 fi
7035
7036
7037
7038
7039
7040
7041
7042 if test -n "$ac_tool_prefix"; then
7043   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7044 set dummy ${ac_tool_prefix}strip; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_STRIP+:} false; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   if test -n "$STRIP"; then
7051   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065   done
7066 IFS=$as_save_IFS
7067
7068 fi
7069 fi
7070 STRIP=$ac_cv_prog_STRIP
7071 if test -n "$STRIP"; then
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7073 $as_echo "$STRIP" >&6; }
7074 else
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078
7079
7080 fi
7081 if test -z "$ac_cv_prog_STRIP"; then
7082   ac_ct_STRIP=$STRIP
7083   # Extract the first word of "strip", so it can be a program name with args.
7084 set dummy strip; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   if test -n "$ac_ct_STRIP"; then
7091   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098     for ac_exec_ext in '' $ac_executable_extensions; do
7099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100     ac_cv_prog_ac_ct_STRIP="strip"
7101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105   done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7111 if test -n "$ac_ct_STRIP"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7113 $as_echo "$ac_ct_STRIP" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119   if test "x$ac_ct_STRIP" = x; then
7120     STRIP=":"
7121   else
7122     case $cross_compiling:$ac_tool_warned in
7123 yes:)
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126 ac_tool_warned=yes ;;
7127 esac
7128     STRIP=$ac_ct_STRIP
7129   fi
7130 else
7131   STRIP="$ac_cv_prog_STRIP"
7132 fi
7133
7134 test -z "$STRIP" && STRIP=:
7135
7136
7137
7138
7139
7140
7141 if test -n "$ac_tool_prefix"; then
7142   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_prog_RANLIB+:} false; then :
7147   $as_echo_n "(cached) " >&6
7148 else
7149   if test -n "$RANLIB"; then
7150   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155   IFS=$as_save_IFS
7156   test -z "$as_dir" && as_dir=.
7157     for ac_exec_ext in '' $ac_executable_extensions; do
7158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161     break 2
7162   fi
7163 done
7164   done
7165 IFS=$as_save_IFS
7166
7167 fi
7168 fi
7169 RANLIB=$ac_cv_prog_RANLIB
7170 if test -n "$RANLIB"; then
7171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7172 $as_echo "$RANLIB" >&6; }
7173 else
7174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7176 fi
7177
7178
7179 fi
7180 if test -z "$ac_cv_prog_RANLIB"; then
7181   ac_ct_RANLIB=$RANLIB
7182   # Extract the first word of "ranlib", so it can be a program name with args.
7183 set dummy ranlib; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7187   $as_echo_n "(cached) " >&6
7188 else
7189   if test -n "$ac_ct_RANLIB"; then
7190   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197     for ac_exec_ext in '' $ac_executable_extensions; do
7198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199     ac_cv_prog_ac_ct_RANLIB="ranlib"
7200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204   done
7205 IFS=$as_save_IFS
7206
7207 fi
7208 fi
7209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7210 if test -n "$ac_ct_RANLIB"; then
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7212 $as_echo "$ac_ct_RANLIB" >&6; }
7213 else
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7216 fi
7217
7218   if test "x$ac_ct_RANLIB" = x; then
7219     RANLIB=":"
7220   else
7221     case $cross_compiling:$ac_tool_warned in
7222 yes:)
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7225 ac_tool_warned=yes ;;
7226 esac
7227     RANLIB=$ac_ct_RANLIB
7228   fi
7229 else
7230   RANLIB="$ac_cv_prog_RANLIB"
7231 fi
7232
7233 test -z "$RANLIB" && RANLIB=:
7234
7235
7236
7237
7238
7239
7240 # Determine commands to create old-style static archives.
7241 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7242 old_postinstall_cmds='chmod 644 $oldlib'
7243 old_postuninstall_cmds=
7244
7245 if test -n "$RANLIB"; then
7246   case $host_os in
7247   bitrig* | openbsd*)
7248     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7249     ;;
7250   *)
7251     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7252     ;;
7253   esac
7254   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7255 fi
7256
7257 case $host_os in
7258   darwin*)
7259     lock_old_archive_extraction=yes ;;
7260   *)
7261     lock_old_archive_extraction=no ;;
7262 esac
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302 # If no C compiler was specified, use CC.
7303 LTCC=${LTCC-"$CC"}
7304
7305 # If no C compiler flags were specified, use CFLAGS.
7306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7307
7308 # Allow CC to be a program name with arguments.
7309 compiler=$CC
7310
7311
7312 # Check for command to grab the raw symbol name followed by C symbol from nm.
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7314 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7315 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7316   $as_echo_n "(cached) " >&6
7317 else
7318
7319 # These are sane defaults that work on at least a few old systems.
7320 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7321
7322 # Character class describing NM global symbol codes.
7323 symcode='[BCDEGRST]'
7324
7325 # Regexp to match symbols that can be accessed directly from C.
7326 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7327
7328 # Define system-specific variables.
7329 case $host_os in
7330 aix*)
7331   symcode='[BCDT]'
7332   ;;
7333 cygwin* | mingw* | pw32* | cegcc*)
7334   symcode='[ABCDGISTW]'
7335   ;;
7336 hpux*)
7337   if test ia64 = "$host_cpu"; then
7338     symcode='[ABCDEGRST]'
7339   fi
7340   ;;
7341 irix* | nonstopux*)
7342   symcode='[BCDEGRST]'
7343   ;;
7344 osf*)
7345   symcode='[BCDEGQRST]'
7346   ;;
7347 solaris*)
7348   symcode='[BDRT]'
7349   ;;
7350 sco3.2v5*)
7351   symcode='[DT]'
7352   ;;
7353 sysv4.2uw2*)
7354   symcode='[DT]'
7355   ;;
7356 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7357   symcode='[ABDT]'
7358   ;;
7359 sysv4)
7360   symcode='[DFNSTU]'
7361   ;;
7362 esac
7363
7364 # If we're using GNU nm, then use its standard symbol codes.
7365 case `$NM -V 2>&1` in
7366 *GNU* | *'with BFD'*)
7367   symcode='[ABCDGIRSTW]' ;;
7368 esac
7369
7370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7371   # Gets list of data symbols to import.
7372   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7373   # Adjust the below global symbol transforms to fixup imported variables.
7374   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7375   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7376   lt_c_name_lib_hook="\
7377   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7378   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7379 else
7380   # Disable hooks by default.
7381   lt_cv_sys_global_symbol_to_import=
7382   lt_cdecl_hook=
7383   lt_c_name_hook=
7384   lt_c_name_lib_hook=
7385 fi
7386
7387 # Transform an extracted symbol line into a proper C declaration.
7388 # Some systems (esp. on ia64) link data and code symbols differently,
7389 # so use this general approach.
7390 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7391 $lt_cdecl_hook\
7392 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7393 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7394
7395 # Transform an extracted symbol line into symbol name and symbol address
7396 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7397 $lt_c_name_hook\
7398 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7399 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7400
7401 # Transform an extracted symbol line into symbol name with lib prefix and
7402 # symbol address.
7403 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7404 $lt_c_name_lib_hook\
7405 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7406 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7407 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7408
7409 # Handle CRLF in mingw tool chain
7410 opt_cr=
7411 case $build_os in
7412 mingw*)
7413   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7414   ;;
7415 esac
7416
7417 # Try without a prefix underscore, then with it.
7418 for ac_symprfx in "" "_"; do
7419
7420   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7421   symxfrm="\\1 $ac_symprfx\\2 \\2"
7422
7423   # Write the raw and C identifiers.
7424   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7425     # Fake it for dumpbin and say T for any non-static function,
7426     # D for any global variable and I for any imported variable.
7427     # Also find C++ and __fastcall symbols from MSVC++,
7428     # which start with @ or ?.
7429     lt_cv_sys_global_symbol_pipe="$AWK '"\
7430 "     {last_section=section; section=\$ 3};"\
7431 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7432 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7433 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7434 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7435 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7436 "     \$ 0!~/External *\|/{next};"\
7437 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7438 "     {if(hide[section]) next};"\
7439 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7440 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7441 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7442 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7443 "     ' prfx=^$ac_symprfx"
7444   else
7445     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7446   fi
7447   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7448
7449   # Check to see that the pipe works correctly.
7450   pipe_works=no
7451
7452   rm -f conftest*
7453   cat > conftest.$ac_ext <<_LT_EOF
7454 #ifdef __cplusplus
7455 extern "C" {
7456 #endif
7457 char nm_test_var;
7458 void nm_test_func(void);
7459 void nm_test_func(void){}
7460 #ifdef __cplusplus
7461 }
7462 #endif
7463 int main(){nm_test_var='a';nm_test_func();return(0);}
7464 _LT_EOF
7465
7466   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7467   (eval $ac_compile) 2>&5
7468   ac_status=$?
7469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7470   test $ac_status = 0; }; then
7471     # Now try to grab the symbols.
7472     nlist=conftest.nm
7473     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7474   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7475   ac_status=$?
7476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7477   test $ac_status = 0; } && test -s "$nlist"; then
7478       # Try sorting and uniquifying the output.
7479       if sort "$nlist" | uniq > "$nlist"T; then
7480         mv -f "$nlist"T "$nlist"
7481       else
7482         rm -f "$nlist"T
7483       fi
7484
7485       # Make sure that we snagged all the symbols we need.
7486       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7487         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7488           cat <<_LT_EOF > conftest.$ac_ext
7489 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7490 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7491 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7492    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7493 # define LT_DLSYM_CONST
7494 #elif defined __osf__
7495 /* This system does not cope well with relocations in const data.  */
7496 # define LT_DLSYM_CONST
7497 #else
7498 # define LT_DLSYM_CONST const
7499 #endif
7500
7501 #ifdef __cplusplus
7502 extern "C" {
7503 #endif
7504
7505 _LT_EOF
7506           # Now generate the symbol file.
7507           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7508
7509           cat <<_LT_EOF >> conftest.$ac_ext
7510
7511 /* The mapping between symbol names and symbols.  */
7512 LT_DLSYM_CONST struct {
7513   const char *name;
7514   void       *address;
7515 }
7516 lt__PROGRAM__LTX_preloaded_symbols[] =
7517 {
7518   { "@PROGRAM@", (void *) 0 },
7519 _LT_EOF
7520           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7521           cat <<\_LT_EOF >> conftest.$ac_ext
7522   {0, (void *) 0}
7523 };
7524
7525 /* This works around a problem in FreeBSD linker */
7526 #ifdef FREEBSD_WORKAROUND
7527 static const void *lt_preloaded_setup() {
7528   return lt__PROGRAM__LTX_preloaded_symbols;
7529 }
7530 #endif
7531
7532 #ifdef __cplusplus
7533 }
7534 #endif
7535 _LT_EOF
7536           # Now try linking the two files.
7537           mv conftest.$ac_objext conftstm.$ac_objext
7538           lt_globsym_save_LIBS=$LIBS
7539           lt_globsym_save_CFLAGS=$CFLAGS
7540           LIBS=conftstm.$ac_objext
7541           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7542           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7543   (eval $ac_link) 2>&5
7544   ac_status=$?
7545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7547             pipe_works=yes
7548           fi
7549           LIBS=$lt_globsym_save_LIBS
7550           CFLAGS=$lt_globsym_save_CFLAGS
7551         else
7552           echo "cannot find nm_test_func in $nlist" >&5
7553         fi
7554       else
7555         echo "cannot find nm_test_var in $nlist" >&5
7556       fi
7557     else
7558       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7559     fi
7560   else
7561     echo "$progname: failed program was:" >&5
7562     cat conftest.$ac_ext >&5
7563   fi
7564   rm -rf conftest* conftst*
7565
7566   # Do not use the global_symbol_pipe unless it works.
7567   if test yes = "$pipe_works"; then
7568     break
7569   else
7570     lt_cv_sys_global_symbol_pipe=
7571   fi
7572 done
7573
7574 fi
7575
7576 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7577   lt_cv_sys_global_symbol_to_cdecl=
7578 fi
7579 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7581 $as_echo "failed" >&6; }
7582 else
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7584 $as_echo "ok" >&6; }
7585 fi
7586
7587 # Response file support.
7588 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7589   nm_file_list_spec='@'
7590 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7591   nm_file_list_spec='@'
7592 fi
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7631 $as_echo_n "checking for sysroot... " >&6; }
7632
7633 # Check whether --with-sysroot was given.
7634 if test "${with_sysroot+set}" = set; then :
7635   withval=$with_sysroot;
7636 else
7637   with_sysroot=no
7638 fi
7639
7640
7641 lt_sysroot=
7642 case $with_sysroot in #(
7643  yes)
7644    if test yes = "$GCC"; then
7645      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7646    fi
7647    ;; #(
7648  /*)
7649    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7650    ;; #(
7651  no|'')
7652    ;; #(
7653  *)
7654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7655 $as_echo "$with_sysroot" >&6; }
7656    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7657    ;;
7658 esac
7659
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7661 $as_echo "${lt_sysroot:-no}" >&6; }
7662
7663
7664
7665
7666
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7668 $as_echo_n "checking for a working dd... " >&6; }
7669 if ${ac_cv_path_lt_DD+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   printf 0123456789abcdef0123456789abcdef >conftest.i
7673 cat conftest.i conftest.i >conftest2.i
7674 : ${lt_DD:=$DD}
7675 if test -z "$lt_DD"; then
7676   ac_path_lt_DD_found=false
7677   # Loop through the user's path and test for each of PROGNAME-LIST
7678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683     for ac_prog in dd; do
7684     for ac_exec_ext in '' $ac_executable_extensions; do
7685       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7686       as_fn_executable_p "$ac_path_lt_DD" || continue
7687 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7688   cmp -s conftest.i conftest.out \
7689   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7690 fi
7691       $ac_path_lt_DD_found && break 3
7692     done
7693   done
7694   done
7695 IFS=$as_save_IFS
7696   if test -z "$ac_cv_path_lt_DD"; then
7697     :
7698   fi
7699 else
7700   ac_cv_path_lt_DD=$lt_DD
7701 fi
7702
7703 rm -f conftest.i conftest2.i conftest.out
7704 fi
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7706 $as_echo "$ac_cv_path_lt_DD" >&6; }
7707
7708
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7710 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7711 if ${lt_cv_truncate_bin+:} false; then :
7712   $as_echo_n "(cached) " >&6
7713 else
7714   printf 0123456789abcdef0123456789abcdef >conftest.i
7715 cat conftest.i conftest.i >conftest2.i
7716 lt_cv_truncate_bin=
7717 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7718   cmp -s conftest.i conftest.out \
7719   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7720 fi
7721 rm -f conftest.i conftest2.i conftest.out
7722 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7725 $as_echo "$lt_cv_truncate_bin" >&6; }
7726
7727
7728
7729
7730
7731
7732
7733 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7734 func_cc_basename ()
7735 {
7736     for cc_temp in $*""; do
7737       case $cc_temp in
7738         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7739         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7740         \-*) ;;
7741         *) break;;
7742       esac
7743     done
7744     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7745 }
7746
7747 # Check whether --enable-libtool-lock was given.
7748 if test "${enable_libtool_lock+set}" = set; then :
7749   enableval=$enable_libtool_lock;
7750 fi
7751
7752 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7753
7754 # Some flags need to be propagated to the compiler or linker for good
7755 # libtool support.
7756 case $host in
7757 ia64-*-hpux*)
7758   # Find out what ABI is being produced by ac_compile, and set mode
7759   # options accordingly.
7760   echo 'int i;' > conftest.$ac_ext
7761   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762   (eval $ac_compile) 2>&5
7763   ac_status=$?
7764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765   test $ac_status = 0; }; then
7766     case `/usr/bin/file conftest.$ac_objext` in
7767       *ELF-32*)
7768         HPUX_IA64_MODE=32
7769         ;;
7770       *ELF-64*)
7771         HPUX_IA64_MODE=64
7772         ;;
7773     esac
7774   fi
7775   rm -rf conftest*
7776   ;;
7777 *-*-irix6*)
7778   # Find out what ABI is being produced by ac_compile, and set linker
7779   # options accordingly.
7780   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7781   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782   (eval $ac_compile) 2>&5
7783   ac_status=$?
7784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785   test $ac_status = 0; }; then
7786     if test yes = "$lt_cv_prog_gnu_ld"; then
7787       case `/usr/bin/file conftest.$ac_objext` in
7788         *32-bit*)
7789           LD="${LD-ld} -melf32bsmip"
7790           ;;
7791         *N32*)
7792           LD="${LD-ld} -melf32bmipn32"
7793           ;;
7794         *64-bit*)
7795           LD="${LD-ld} -melf64bmip"
7796         ;;
7797       esac
7798     else
7799       case `/usr/bin/file conftest.$ac_objext` in
7800         *32-bit*)
7801           LD="${LD-ld} -32"
7802           ;;
7803         *N32*)
7804           LD="${LD-ld} -n32"
7805           ;;
7806         *64-bit*)
7807           LD="${LD-ld} -64"
7808           ;;
7809       esac
7810     fi
7811   fi
7812   rm -rf conftest*
7813   ;;
7814
7815 mips64*-*linux*)
7816   # Find out what ABI is being produced by ac_compile, and set linker
7817   # options accordingly.
7818   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7819   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820   (eval $ac_compile) 2>&5
7821   ac_status=$?
7822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823   test $ac_status = 0; }; then
7824     emul=elf
7825     case `/usr/bin/file conftest.$ac_objext` in
7826       *32-bit*)
7827         emul="${emul}32"
7828         ;;
7829       *64-bit*)
7830         emul="${emul}64"
7831         ;;
7832     esac
7833     case `/usr/bin/file conftest.$ac_objext` in
7834       *MSB*)
7835         emul="${emul}btsmip"
7836         ;;
7837       *LSB*)
7838         emul="${emul}ltsmip"
7839         ;;
7840     esac
7841     case `/usr/bin/file conftest.$ac_objext` in
7842       *N32*)
7843         emul="${emul}n32"
7844         ;;
7845     esac
7846     LD="${LD-ld} -m $emul"
7847   fi
7848   rm -rf conftest*
7849   ;;
7850
7851 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7852 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7853   # Find out what ABI is being produced by ac_compile, and set linker
7854   # options accordingly.  Note that the listed cases only cover the
7855   # situations where additional linker options are needed (such as when
7856   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7857   # vice versa); the common cases where no linker options are needed do
7858   # not appear in the list.
7859   echo 'int i;' > conftest.$ac_ext
7860   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7861   (eval $ac_compile) 2>&5
7862   ac_status=$?
7863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864   test $ac_status = 0; }; then
7865     case `/usr/bin/file conftest.o` in
7866       *32-bit*)
7867         case $host in
7868           x86_64-*kfreebsd*-gnu)
7869             LD="${LD-ld} -m elf_i386_fbsd"
7870             ;;
7871           x86_64-*linux*)
7872             case `/usr/bin/file conftest.o` in
7873               *x86-64*)
7874                 LD="${LD-ld} -m elf32_x86_64"
7875                 ;;
7876               *)
7877                 LD="${LD-ld} -m elf_i386"
7878                 ;;
7879             esac
7880             ;;
7881           powerpc64le-*linux*)
7882             LD="${LD-ld} -m elf32lppclinux"
7883             ;;
7884           powerpc64-*linux*)
7885             LD="${LD-ld} -m elf32ppclinux"
7886             ;;
7887           s390x-*linux*)
7888             LD="${LD-ld} -m elf_s390"
7889             ;;
7890           sparc64-*linux*)
7891             LD="${LD-ld} -m elf32_sparc"
7892             ;;
7893         esac
7894         ;;
7895       *64-bit*)
7896         case $host in
7897           x86_64-*kfreebsd*-gnu)
7898             LD="${LD-ld} -m elf_x86_64_fbsd"
7899             ;;
7900           x86_64-*linux*)
7901             LD="${LD-ld} -m elf_x86_64"
7902             ;;
7903           powerpcle-*linux*)
7904             LD="${LD-ld} -m elf64lppc"
7905             ;;
7906           powerpc-*linux*)
7907             LD="${LD-ld} -m elf64ppc"
7908             ;;
7909           s390*-*linux*|s390*-*tpf*)
7910             LD="${LD-ld} -m elf64_s390"
7911             ;;
7912           sparc*-*linux*)
7913             LD="${LD-ld} -m elf64_sparc"
7914             ;;
7915         esac
7916         ;;
7917     esac
7918   fi
7919   rm -rf conftest*
7920   ;;
7921
7922 *-*-sco3.2v5*)
7923   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7924   SAVE_CFLAGS=$CFLAGS
7925   CFLAGS="$CFLAGS -belf"
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7927 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7928 if ${lt_cv_cc_needs_belf+:} false; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   ac_ext=c
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h.  */
7939
7940 int
7941 main ()
7942 {
7943
7944   ;
7945   return 0;
7946 }
7947 _ACEOF
7948 if ac_fn_c_try_link "$LINENO"; then :
7949   lt_cv_cc_needs_belf=yes
7950 else
7951   lt_cv_cc_needs_belf=no
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext \
7954     conftest$ac_exeext conftest.$ac_ext
7955      ac_ext=c
7956 ac_cpp='$CPP $CPPFLAGS'
7957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7963 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7964   if test yes != "$lt_cv_cc_needs_belf"; then
7965     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7966     CFLAGS=$SAVE_CFLAGS
7967   fi
7968   ;;
7969 *-*solaris*)
7970   # Find out what ABI is being produced by ac_compile, and set linker
7971   # options accordingly.
7972   echo 'int i;' > conftest.$ac_ext
7973   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7974   (eval $ac_compile) 2>&5
7975   ac_status=$?
7976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977   test $ac_status = 0; }; then
7978     case `/usr/bin/file conftest.o` in
7979     *64-bit*)
7980       case $lt_cv_prog_gnu_ld in
7981       yes*)
7982         case $host in
7983         i?86-*-solaris*|x86_64-*-solaris*)
7984           LD="${LD-ld} -m elf_x86_64"
7985           ;;
7986         sparc*-*-solaris*)
7987           LD="${LD-ld} -m elf64_sparc"
7988           ;;
7989         esac
7990         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7991         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7992           LD=${LD-ld}_sol2
7993         fi
7994         ;;
7995       *)
7996         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7997           LD="${LD-ld} -64"
7998         fi
7999         ;;
8000       esac
8001       ;;
8002     esac
8003   fi
8004   rm -rf conftest*
8005   ;;
8006 esac
8007
8008 need_locks=$enable_libtool_lock
8009
8010 if test -n "$ac_tool_prefix"; then
8011   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8012 set dummy ${ac_tool_prefix}mt; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8016   $as_echo_n "(cached) " >&6
8017 else
8018   if test -n "$MANIFEST_TOOL"; then
8019   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024   IFS=$as_save_IFS
8025   test -z "$as_dir" && as_dir=.
8026     for ac_exec_ext in '' $ac_executable_extensions; do
8027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030     break 2
8031   fi
8032 done
8033   done
8034 IFS=$as_save_IFS
8035
8036 fi
8037 fi
8038 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8039 if test -n "$MANIFEST_TOOL"; then
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8041 $as_echo "$MANIFEST_TOOL" >&6; }
8042 else
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047
8048 fi
8049 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8050   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8051   # Extract the first word of "mt", so it can be a program name with args.
8052 set dummy mt; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   if test -n "$ac_ct_MANIFEST_TOOL"; then
8059   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8063 do
8064   IFS=$as_save_IFS
8065   test -z "$as_dir" && as_dir=.
8066     for ac_exec_ext in '' $ac_executable_extensions; do
8067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070     break 2
8071   fi
8072 done
8073   done
8074 IFS=$as_save_IFS
8075
8076 fi
8077 fi
8078 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8079 if test -n "$ac_ct_MANIFEST_TOOL"; then
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8081 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8082 else
8083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8085 fi
8086
8087   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8088     MANIFEST_TOOL=":"
8089   else
8090     case $cross_compiling:$ac_tool_warned in
8091 yes:)
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8094 ac_tool_warned=yes ;;
8095 esac
8096     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8097   fi
8098 else
8099   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8100 fi
8101
8102 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8104 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8105 if ${lt_cv_path_mainfest_tool+:} false; then :
8106   $as_echo_n "(cached) " >&6
8107 else
8108   lt_cv_path_mainfest_tool=no
8109   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8110   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8111   cat conftest.err >&5
8112   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8113     lt_cv_path_mainfest_tool=yes
8114   fi
8115   rm -f conftest*
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8118 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8119 if test yes != "$lt_cv_path_mainfest_tool"; then
8120   MANIFEST_TOOL=:
8121 fi
8122
8123
8124
8125
8126
8127
8128   case $host_os in
8129     rhapsody* | darwin*)
8130     if test -n "$ac_tool_prefix"; then
8131   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   if test -n "$DSYMUTIL"; then
8139   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144   IFS=$as_save_IFS
8145   test -z "$as_dir" && as_dir=.
8146     for ac_exec_ext in '' $ac_executable_extensions; do
8147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150     break 2
8151   fi
8152 done
8153   done
8154 IFS=$as_save_IFS
8155
8156 fi
8157 fi
8158 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8159 if test -n "$DSYMUTIL"; then
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8161 $as_echo "$DSYMUTIL" >&6; }
8162 else
8163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168 fi
8169 if test -z "$ac_cv_prog_DSYMUTIL"; then
8170   ac_ct_DSYMUTIL=$DSYMUTIL
8171   # Extract the first word of "dsymutil", so it can be a program name with args.
8172 set dummy dsymutil; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8176   $as_echo_n "(cached) " >&6
8177 else
8178   if test -n "$ac_ct_DSYMUTIL"; then
8179   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184   IFS=$as_save_IFS
8185   test -z "$as_dir" && as_dir=.
8186     for ac_exec_ext in '' $ac_executable_extensions; do
8187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190     break 2
8191   fi
8192 done
8193   done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8199 if test -n "$ac_ct_DSYMUTIL"; then
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8201 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8202 else
8203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207   if test "x$ac_ct_DSYMUTIL" = x; then
8208     DSYMUTIL=":"
8209   else
8210     case $cross_compiling:$ac_tool_warned in
8211 yes:)
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned=yes ;;
8215 esac
8216     DSYMUTIL=$ac_ct_DSYMUTIL
8217   fi
8218 else
8219   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8220 fi
8221
8222     if test -n "$ac_tool_prefix"; then
8223   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8224 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if ${ac_cv_prog_NMEDIT+:} false; then :
8228   $as_echo_n "(cached) " >&6
8229 else
8230   if test -n "$NMEDIT"; then
8231   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236   IFS=$as_save_IFS
8237   test -z "$as_dir" && as_dir=.
8238     for ac_exec_ext in '' $ac_executable_extensions; do
8239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8240     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242     break 2
8243   fi
8244 done
8245   done
8246 IFS=$as_save_IFS
8247
8248 fi
8249 fi
8250 NMEDIT=$ac_cv_prog_NMEDIT
8251 if test -n "$NMEDIT"; then
8252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8253 $as_echo "$NMEDIT" >&6; }
8254 else
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258
8259
8260 fi
8261 if test -z "$ac_cv_prog_NMEDIT"; then
8262   ac_ct_NMEDIT=$NMEDIT
8263   # Extract the first word of "nmedit", so it can be a program name with args.
8264 set dummy nmedit; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   if test -n "$ac_ct_NMEDIT"; then
8271   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276   IFS=$as_save_IFS
8277   test -z "$as_dir" && as_dir=.
8278     for ac_exec_ext in '' $ac_executable_extensions; do
8279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8280     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282     break 2
8283   fi
8284 done
8285   done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8291 if test -n "$ac_ct_NMEDIT"; then
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8293 $as_echo "$ac_ct_NMEDIT" >&6; }
8294 else
8295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299   if test "x$ac_ct_NMEDIT" = x; then
8300     NMEDIT=":"
8301   else
8302     case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308     NMEDIT=$ac_ct_NMEDIT
8309   fi
8310 else
8311   NMEDIT="$ac_cv_prog_NMEDIT"
8312 fi
8313
8314     if test -n "$ac_tool_prefix"; then
8315   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_prog_LIPO+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   if test -n "$LIPO"; then
8323   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328   IFS=$as_save_IFS
8329   test -z "$as_dir" && as_dir=.
8330     for ac_exec_ext in '' $ac_executable_extensions; do
8331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334     break 2
8335   fi
8336 done
8337   done
8338 IFS=$as_save_IFS
8339
8340 fi
8341 fi
8342 LIPO=$ac_cv_prog_LIPO
8343 if test -n "$LIPO"; then
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8345 $as_echo "$LIPO" >&6; }
8346 else
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350
8351
8352 fi
8353 if test -z "$ac_cv_prog_LIPO"; then
8354   ac_ct_LIPO=$LIPO
8355   # Extract the first word of "lipo", so it can be a program name with args.
8356 set dummy lipo; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8360   $as_echo_n "(cached) " >&6
8361 else
8362   if test -n "$ac_ct_LIPO"; then
8363   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368   IFS=$as_save_IFS
8369   test -z "$as_dir" && as_dir=.
8370     for ac_exec_ext in '' $ac_executable_extensions; do
8371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372     ac_cv_prog_ac_ct_LIPO="lipo"
8373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374     break 2
8375   fi
8376 done
8377   done
8378 IFS=$as_save_IFS
8379
8380 fi
8381 fi
8382 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8383 if test -n "$ac_ct_LIPO"; then
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8385 $as_echo "$ac_ct_LIPO" >&6; }
8386 else
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391   if test "x$ac_ct_LIPO" = x; then
8392     LIPO=":"
8393   else
8394     case $cross_compiling:$ac_tool_warned in
8395 yes:)
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8399 esac
8400     LIPO=$ac_ct_LIPO
8401   fi
8402 else
8403   LIPO="$ac_cv_prog_LIPO"
8404 fi
8405
8406     if test -n "$ac_tool_prefix"; then
8407   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8408 set dummy ${ac_tool_prefix}otool; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if ${ac_cv_prog_OTOOL+:} false; then :
8412   $as_echo_n "(cached) " >&6
8413 else
8414   if test -n "$OTOOL"; then
8415   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420   IFS=$as_save_IFS
8421   test -z "$as_dir" && as_dir=.
8422     for ac_exec_ext in '' $ac_executable_extensions; do
8423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426     break 2
8427   fi
8428 done
8429   done
8430 IFS=$as_save_IFS
8431
8432 fi
8433 fi
8434 OTOOL=$ac_cv_prog_OTOOL
8435 if test -n "$OTOOL"; then
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8437 $as_echo "$OTOOL" >&6; }
8438 else
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442
8443
8444 fi
8445 if test -z "$ac_cv_prog_OTOOL"; then
8446   ac_ct_OTOOL=$OTOOL
8447   # Extract the first word of "otool", so it can be a program name with args.
8448 set dummy otool; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8452   $as_echo_n "(cached) " >&6
8453 else
8454   if test -n "$ac_ct_OTOOL"; then
8455   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460   IFS=$as_save_IFS
8461   test -z "$as_dir" && as_dir=.
8462     for ac_exec_ext in '' $ac_executable_extensions; do
8463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464     ac_cv_prog_ac_ct_OTOOL="otool"
8465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466     break 2
8467   fi
8468 done
8469   done
8470 IFS=$as_save_IFS
8471
8472 fi
8473 fi
8474 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8475 if test -n "$ac_ct_OTOOL"; then
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8477 $as_echo "$ac_ct_OTOOL" >&6; }
8478 else
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482
8483   if test "x$ac_ct_OTOOL" = x; then
8484     OTOOL=":"
8485   else
8486     case $cross_compiling:$ac_tool_warned in
8487 yes:)
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8491 esac
8492     OTOOL=$ac_ct_OTOOL
8493   fi
8494 else
8495   OTOOL="$ac_cv_prog_OTOOL"
8496 fi
8497
8498     if test -n "$ac_tool_prefix"; then
8499   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8500 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_prog_OTOOL64+:} false; then :
8504   $as_echo_n "(cached) " >&6
8505 else
8506   if test -n "$OTOOL64"; then
8507   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8508 else
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512   IFS=$as_save_IFS
8513   test -z "$as_dir" && as_dir=.
8514     for ac_exec_ext in '' $ac_executable_extensions; do
8515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518     break 2
8519   fi
8520 done
8521   done
8522 IFS=$as_save_IFS
8523
8524 fi
8525 fi
8526 OTOOL64=$ac_cv_prog_OTOOL64
8527 if test -n "$OTOOL64"; then
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8529 $as_echo "$OTOOL64" >&6; }
8530 else
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 fi
8534
8535
8536 fi
8537 if test -z "$ac_cv_prog_OTOOL64"; then
8538   ac_ct_OTOOL64=$OTOOL64
8539   # Extract the first word of "otool64", so it can be a program name with args.
8540 set dummy otool64; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8544   $as_echo_n "(cached) " >&6
8545 else
8546   if test -n "$ac_ct_OTOOL64"; then
8547   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8548 else
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8551 do
8552   IFS=$as_save_IFS
8553   test -z "$as_dir" && as_dir=.
8554     for ac_exec_ext in '' $ac_executable_extensions; do
8555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556     ac_cv_prog_ac_ct_OTOOL64="otool64"
8557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558     break 2
8559   fi
8560 done
8561   done
8562 IFS=$as_save_IFS
8563
8564 fi
8565 fi
8566 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8567 if test -n "$ac_ct_OTOOL64"; then
8568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8569 $as_echo "$ac_ct_OTOOL64" >&6; }
8570 else
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8573 fi
8574
8575   if test "x$ac_ct_OTOOL64" = x; then
8576     OTOOL64=":"
8577   else
8578     case $cross_compiling:$ac_tool_warned in
8579 yes:)
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8582 ac_tool_warned=yes ;;
8583 esac
8584     OTOOL64=$ac_ct_OTOOL64
8585   fi
8586 else
8587   OTOOL64="$ac_cv_prog_OTOOL64"
8588 fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8617 $as_echo_n "checking for -single_module linker flag... " >&6; }
8618 if ${lt_cv_apple_cc_single_mod+:} false; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   lt_cv_apple_cc_single_mod=no
8622       if test -z "$LT_MULTI_MODULE"; then
8623         # By default we will add the -single_module flag. You can override
8624         # by either setting the environment variable LT_MULTI_MODULE
8625         # non-empty at configure time, or by adding -multi_module to the
8626         # link flags.
8627         rm -rf libconftest.dylib*
8628         echo "int foo(void){return 1;}" > conftest.c
8629         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8630 -dynamiclib -Wl,-single_module conftest.c" >&5
8631         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8632           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8633         _lt_result=$?
8634         # If there is a non-empty error log, and "single_module"
8635         # appears in it, assume the flag caused a linker warning
8636         if test -s conftest.err && $GREP single_module conftest.err; then
8637           cat conftest.err >&5
8638         # Otherwise, if the output was created with a 0 exit code from
8639         # the compiler, it worked.
8640         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8641           lt_cv_apple_cc_single_mod=yes
8642         else
8643           cat conftest.err >&5
8644         fi
8645         rm -rf libconftest.dylib*
8646         rm -f conftest.*
8647       fi
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8650 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8651
8652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8653 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8654 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8655   $as_echo_n "(cached) " >&6
8656 else
8657   lt_cv_ld_exported_symbols_list=no
8658       save_LDFLAGS=$LDFLAGS
8659       echo "_main" > conftest.sym
8660       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8661       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h.  */
8663
8664 int
8665 main ()
8666 {
8667
8668   ;
8669   return 0;
8670 }
8671 _ACEOF
8672 if ac_fn_c_try_link "$LINENO"; then :
8673   lt_cv_ld_exported_symbols_list=yes
8674 else
8675   lt_cv_ld_exported_symbols_list=no
8676 fi
8677 rm -f core conftest.err conftest.$ac_objext \
8678     conftest$ac_exeext conftest.$ac_ext
8679         LDFLAGS=$save_LDFLAGS
8680
8681 fi
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8683 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8684
8685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8686 $as_echo_n "checking for -force_load linker flag... " >&6; }
8687 if ${lt_cv_ld_force_load+:} false; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   lt_cv_ld_force_load=no
8691       cat > conftest.c << _LT_EOF
8692 int forced_loaded() { return 2;}
8693 _LT_EOF
8694       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8695       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8696       echo "$AR cru libconftest.a conftest.o" >&5
8697       $AR cru libconftest.a conftest.o 2>&5
8698       echo "$RANLIB libconftest.a" >&5
8699       $RANLIB libconftest.a 2>&5
8700       cat > conftest.c << _LT_EOF
8701 int main() { return 0;}
8702 _LT_EOF
8703       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8704       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8705       _lt_result=$?
8706       if test -s conftest.err && $GREP force_load conftest.err; then
8707         cat conftest.err >&5
8708       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8709         lt_cv_ld_force_load=yes
8710       else
8711         cat conftest.err >&5
8712       fi
8713         rm -f conftest.err libconftest.a conftest conftest.c
8714         rm -rf conftest.dSYM
8715
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8718 $as_echo "$lt_cv_ld_force_load" >&6; }
8719     case $host_os in
8720     rhapsody* | darwin1.[012])
8721       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8722     darwin1.*)
8723       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8724     darwin*) # darwin 5.x on
8725       # if running on 10.5 or later, the deployment target defaults
8726       # to the OS version, if on x86, and 10.4, the deployment
8727       # target defaults to 10.4. Don't you love it?
8728       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8729         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8730           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8731         10.[012][,.]*)
8732           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8733         10.*)
8734           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8735       esac
8736     ;;
8737   esac
8738     if test yes = "$lt_cv_apple_cc_single_mod"; then
8739       _lt_dar_single_mod='$single_module'
8740     fi
8741     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8742       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8743     else
8744       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8745     fi
8746     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8747       _lt_dsymutil='~$DSYMUTIL $lib || :'
8748     else
8749       _lt_dsymutil=
8750     fi
8751     ;;
8752   esac
8753
8754 # func_munge_path_list VARIABLE PATH
8755 # -----------------------------------
8756 # VARIABLE is name of variable containing _space_ separated list of
8757 # directories to be munged by the contents of PATH, which is string
8758 # having a format:
8759 # "DIR[:DIR]:"
8760 #       string "DIR[ DIR]" will be prepended to VARIABLE
8761 # ":DIR[:DIR]"
8762 #       string "DIR[ DIR]" will be appended to VARIABLE
8763 # "DIRP[:DIRP]::[DIRA:]DIRA"
8764 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8765 #       "DIRA[ DIRA]" will be appended to VARIABLE
8766 # "DIR[:DIR]"
8767 #       VARIABLE will be replaced by "DIR[ DIR]"
8768 func_munge_path_list ()
8769 {
8770     case x$2 in
8771     x)
8772         ;;
8773     *:)
8774         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8775         ;;
8776     x:*)
8777         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8778         ;;
8779     *::*)
8780         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8781         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8782         ;;
8783     *)
8784         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8785         ;;
8786     esac
8787 }
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8790 $as_echo_n "checking for ANSI C header files... " >&6; }
8791 if ${ac_cv_header_stdc+:} false; then :
8792   $as_echo_n "(cached) " >&6
8793 else
8794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h.  */
8796 #include <stdlib.h>
8797 #include <stdarg.h>
8798 #include <string.h>
8799 #include <float.h>
8800
8801 int
8802 main ()
8803 {
8804
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 if ac_fn_c_try_compile "$LINENO"; then :
8810   ac_cv_header_stdc=yes
8811 else
8812   ac_cv_header_stdc=no
8813 fi
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815
8816 if test $ac_cv_header_stdc = yes; then
8817   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h.  */
8820 #include <string.h>
8821
8822 _ACEOF
8823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8824   $EGREP "memchr" >/dev/null 2>&1; then :
8825
8826 else
8827   ac_cv_header_stdc=no
8828 fi
8829 rm -f conftest*
8830
8831 fi
8832
8833 if test $ac_cv_header_stdc = yes; then
8834   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h.  */
8837 #include <stdlib.h>
8838
8839 _ACEOF
8840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8841   $EGREP "free" >/dev/null 2>&1; then :
8842
8843 else
8844   ac_cv_header_stdc=no
8845 fi
8846 rm -f conftest*
8847
8848 fi
8849
8850 if test $ac_cv_header_stdc = yes; then
8851   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8852   if test "$cross_compiling" = yes; then :
8853   :
8854 else
8855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h.  */
8857 #include <ctype.h>
8858 #include <stdlib.h>
8859 #if ((' ' & 0x0FF) == 0x020)
8860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8862 #else
8863 # define ISLOWER(c) \
8864                    (('a' <= (c) && (c) <= 'i') \
8865                      || ('j' <= (c) && (c) <= 'r') \
8866                      || ('s' <= (c) && (c) <= 'z'))
8867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8868 #endif
8869
8870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8871 int
8872 main ()
8873 {
8874   int i;
8875   for (i = 0; i < 256; i++)
8876     if (XOR (islower (i), ISLOWER (i))
8877         || toupper (i) != TOUPPER (i))
8878       return 2;
8879   return 0;
8880 }
8881 _ACEOF
8882 if ac_fn_c_try_run "$LINENO"; then :
8883
8884 else
8885   ac_cv_header_stdc=no
8886 fi
8887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8888   conftest.$ac_objext conftest.beam conftest.$ac_ext
8889 fi
8890
8891 fi
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8894 $as_echo "$ac_cv_header_stdc" >&6; }
8895 if test $ac_cv_header_stdc = yes; then
8896
8897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8898
8899 fi
8900
8901 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8903                   inttypes.h stdint.h unistd.h
8904 do :
8905   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8907 "
8908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8909   cat >>confdefs.h <<_ACEOF
8910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8911 _ACEOF
8912
8913 fi
8914
8915 done
8916
8917
8918 for ac_header in dlfcn.h
8919 do :
8920   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8921 "
8922 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8923   cat >>confdefs.h <<_ACEOF
8924 #define HAVE_DLFCN_H 1
8925 _ACEOF
8926
8927 fi
8928
8929 done
8930
8931
8932
8933
8934 func_stripname_cnf ()
8935 {
8936   case $2 in
8937   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8938   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8939   esac
8940 } # func_stripname_cnf
8941
8942
8943
8944
8945
8946 # Set options
8947 enable_win32_dll=yes
8948
8949 case $host in
8950 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8951   if test -n "$ac_tool_prefix"; then
8952   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8953 set dummy ${ac_tool_prefix}as; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if ${ac_cv_prog_AS+:} false; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   if test -n "$AS"; then
8960   ac_cv_prog_AS="$AS" # Let the user override the test.
8961 else
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $PATH
8964 do
8965   IFS=$as_save_IFS
8966   test -z "$as_dir" && as_dir=.
8967     for ac_exec_ext in '' $ac_executable_extensions; do
8968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8969     ac_cv_prog_AS="${ac_tool_prefix}as"
8970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8971     break 2
8972   fi
8973 done
8974   done
8975 IFS=$as_save_IFS
8976
8977 fi
8978 fi
8979 AS=$ac_cv_prog_AS
8980 if test -n "$AS"; then
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8982 $as_echo "$AS" >&6; }
8983 else
8984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8986 fi
8987
8988
8989 fi
8990 if test -z "$ac_cv_prog_AS"; then
8991   ac_ct_AS=$AS
8992   # Extract the first word of "as", so it can be a program name with args.
8993 set dummy as; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   if test -n "$ac_ct_AS"; then
9000   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9001 else
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003 for as_dir in $PATH
9004 do
9005   IFS=$as_save_IFS
9006   test -z "$as_dir" && as_dir=.
9007     for ac_exec_ext in '' $ac_executable_extensions; do
9008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9009     ac_cv_prog_ac_ct_AS="as"
9010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011     break 2
9012   fi
9013 done
9014   done
9015 IFS=$as_save_IFS
9016
9017 fi
9018 fi
9019 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9020 if test -n "$ac_ct_AS"; then
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9022 $as_echo "$ac_ct_AS" >&6; }
9023 else
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9026 fi
9027
9028   if test "x$ac_ct_AS" = x; then
9029     AS="false"
9030   else
9031     case $cross_compiling:$ac_tool_warned in
9032 yes:)
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9035 ac_tool_warned=yes ;;
9036 esac
9037     AS=$ac_ct_AS
9038   fi
9039 else
9040   AS="$ac_cv_prog_AS"
9041 fi
9042
9043   if test -n "$ac_tool_prefix"; then
9044   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9045 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 $as_echo_n "checking for $ac_word... " >&6; }
9048 if ${ac_cv_prog_DLLTOOL+:} false; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051   if test -n "$DLLTOOL"; then
9052   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9053 else
9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 for as_dir in $PATH
9056 do
9057   IFS=$as_save_IFS
9058   test -z "$as_dir" && as_dir=.
9059     for ac_exec_ext in '' $ac_executable_extensions; do
9060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063     break 2
9064   fi
9065 done
9066   done
9067 IFS=$as_save_IFS
9068
9069 fi
9070 fi
9071 DLLTOOL=$ac_cv_prog_DLLTOOL
9072 if test -n "$DLLTOOL"; then
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9074 $as_echo "$DLLTOOL" >&6; }
9075 else
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9078 fi
9079
9080
9081 fi
9082 if test -z "$ac_cv_prog_DLLTOOL"; then
9083   ac_ct_DLLTOOL=$DLLTOOL
9084   # Extract the first word of "dlltool", so it can be a program name with args.
9085 set dummy dlltool; ac_word=$2
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087 $as_echo_n "checking for $ac_word... " >&6; }
9088 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9089   $as_echo_n "(cached) " >&6
9090 else
9091   if test -n "$ac_ct_DLLTOOL"; then
9092   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9093 else
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 for as_dir in $PATH
9096 do
9097   IFS=$as_save_IFS
9098   test -z "$as_dir" && as_dir=.
9099     for ac_exec_ext in '' $ac_executable_extensions; do
9100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9101     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103     break 2
9104   fi
9105 done
9106   done
9107 IFS=$as_save_IFS
9108
9109 fi
9110 fi
9111 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9112 if test -n "$ac_ct_DLLTOOL"; then
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9114 $as_echo "$ac_ct_DLLTOOL" >&6; }
9115 else
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118 fi
9119
9120   if test "x$ac_ct_DLLTOOL" = x; then
9121     DLLTOOL="false"
9122   else
9123     case $cross_compiling:$ac_tool_warned in
9124 yes:)
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9127 ac_tool_warned=yes ;;
9128 esac
9129     DLLTOOL=$ac_ct_DLLTOOL
9130   fi
9131 else
9132   DLLTOOL="$ac_cv_prog_DLLTOOL"
9133 fi
9134
9135   if test -n "$ac_tool_prefix"; then
9136   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9137 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if ${ac_cv_prog_OBJDUMP+:} false; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   if test -n "$OBJDUMP"; then
9144   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9145 else
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9148 do
9149   IFS=$as_save_IFS
9150   test -z "$as_dir" && as_dir=.
9151     for ac_exec_ext in '' $ac_executable_extensions; do
9152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9153     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155     break 2
9156   fi
9157 done
9158   done
9159 IFS=$as_save_IFS
9160
9161 fi
9162 fi
9163 OBJDUMP=$ac_cv_prog_OBJDUMP
9164 if test -n "$OBJDUMP"; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9166 $as_echo "$OBJDUMP" >&6; }
9167 else
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172
9173 fi
9174 if test -z "$ac_cv_prog_OBJDUMP"; then
9175   ac_ct_OBJDUMP=$OBJDUMP
9176   # Extract the first word of "objdump", so it can be a program name with args.
9177 set dummy objdump; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   if test -n "$ac_ct_OBJDUMP"; then
9184   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9185 else
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9188 do
9189   IFS=$as_save_IFS
9190   test -z "$as_dir" && as_dir=.
9191     for ac_exec_ext in '' $ac_executable_extensions; do
9192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9193     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195     break 2
9196   fi
9197 done
9198   done
9199 IFS=$as_save_IFS
9200
9201 fi
9202 fi
9203 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9204 if test -n "$ac_ct_OBJDUMP"; then
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9206 $as_echo "$ac_ct_OBJDUMP" >&6; }
9207 else
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9210 fi
9211
9212   if test "x$ac_ct_OBJDUMP" = x; then
9213     OBJDUMP="false"
9214   else
9215     case $cross_compiling:$ac_tool_warned in
9216 yes:)
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9219 ac_tool_warned=yes ;;
9220 esac
9221     OBJDUMP=$ac_ct_OBJDUMP
9222   fi
9223 else
9224   OBJDUMP="$ac_cv_prog_OBJDUMP"
9225 fi
9226
9227   ;;
9228 esac
9229
9230 test -z "$AS" && AS=as
9231
9232
9233
9234
9235
9236 test -z "$DLLTOOL" && DLLTOOL=dlltool
9237
9238
9239
9240
9241
9242 test -z "$OBJDUMP" && OBJDUMP=objdump
9243
9244
9245
9246
9247
9248
9249
9250         enable_dlopen=no
9251
9252
9253
9254             # Check whether --enable-shared was given.
9255 if test "${enable_shared+set}" = set; then :
9256   enableval=$enable_shared; p=${PACKAGE-default}
9257     case $enableval in
9258     yes) enable_shared=yes ;;
9259     no) enable_shared=no ;;
9260     *)
9261       enable_shared=no
9262       # Look at the argument we got.  We use all the common list separators.
9263       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9264       for pkg in $enableval; do
9265         IFS=$lt_save_ifs
9266         if test "X$pkg" = "X$p"; then
9267           enable_shared=yes
9268         fi
9269       done
9270       IFS=$lt_save_ifs
9271       ;;
9272     esac
9273 else
9274   enable_shared=yes
9275 fi
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285   # Check whether --enable-static was given.
9286 if test "${enable_static+set}" = set; then :
9287   enableval=$enable_static; p=${PACKAGE-default}
9288     case $enableval in
9289     yes) enable_static=yes ;;
9290     no) enable_static=no ;;
9291     *)
9292      enable_static=no
9293       # Look at the argument we got.  We use all the common list separators.
9294       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9295       for pkg in $enableval; do
9296         IFS=$lt_save_ifs
9297         if test "X$pkg" = "X$p"; then
9298           enable_static=yes
9299         fi
9300       done
9301       IFS=$lt_save_ifs
9302       ;;
9303     esac
9304 else
9305   enable_static=yes
9306 fi
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317 # Check whether --with-pic was given.
9318 if test "${with_pic+set}" = set; then :
9319   withval=$with_pic; lt_p=${PACKAGE-default}
9320     case $withval in
9321     yes|no) pic_mode=$withval ;;
9322     *)
9323       pic_mode=default
9324       # Look at the argument we got.  We use all the common list separators.
9325       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9326       for lt_pkg in $withval; do
9327         IFS=$lt_save_ifs
9328         if test "X$lt_pkg" = "X$lt_p"; then
9329           pic_mode=yes
9330         fi
9331       done
9332       IFS=$lt_save_ifs
9333       ;;
9334     esac
9335 else
9336   pic_mode=default
9337 fi
9338
9339
9340
9341
9342
9343
9344
9345
9346   # Check whether --enable-fast-install was given.
9347 if test "${enable_fast_install+set}" = set; then :
9348   enableval=$enable_fast_install; p=${PACKAGE-default}
9349     case $enableval in
9350     yes) enable_fast_install=yes ;;
9351     no) enable_fast_install=no ;;
9352     *)
9353       enable_fast_install=no
9354       # Look at the argument we got.  We use all the common list separators.
9355       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9356       for pkg in $enableval; do
9357         IFS=$lt_save_ifs
9358         if test "X$pkg" = "X$p"; then
9359           enable_fast_install=yes
9360         fi
9361       done
9362       IFS=$lt_save_ifs
9363       ;;
9364     esac
9365 else
9366   enable_fast_install=yes
9367 fi
9368
9369
9370
9371
9372
9373
9374
9375
9376   shared_archive_member_spec=
9377 case $host,$enable_shared in
9378 power*-*-aix[5-9]*,yes)
9379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9380 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9381
9382 # Check whether --with-aix-soname was given.
9383 if test "${with_aix_soname+set}" = set; then :
9384   withval=$with_aix_soname; case $withval in
9385     aix|svr4|both)
9386       ;;
9387     *)
9388       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9389       ;;
9390     esac
9391     lt_cv_with_aix_soname=$with_aix_soname
9392 else
9393   if ${lt_cv_with_aix_soname+:} false; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396   lt_cv_with_aix_soname=aix
9397 fi
9398
9399     with_aix_soname=$lt_cv_with_aix_soname
9400 fi
9401
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9403 $as_echo "$with_aix_soname" >&6; }
9404   if test aix != "$with_aix_soname"; then
9405     # For the AIX way of multilib, we name the shared archive member
9406     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9407     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9408     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9409     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9410     if test 64 = "${OBJECT_MODE-32}"; then
9411       shared_archive_member_spec=shr_64
9412     else
9413       shared_archive_member_spec=shr
9414     fi
9415   fi
9416   ;;
9417 *)
9418   with_aix_soname=aix
9419   ;;
9420 esac
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431 # This can be used to rebuild libtool when needed
9432 LIBTOOL_DEPS=$ltmain
9433
9434 # Always use our own libtool.
9435 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466 test -z "$LN_S" && LN_S="ln -s"
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481 if test -n "${ZSH_VERSION+set}"; then
9482    setopt NO_GLOB_SUBST
9483 fi
9484
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9486 $as_echo_n "checking for objdir... " >&6; }
9487 if ${lt_cv_objdir+:} false; then :
9488   $as_echo_n "(cached) " >&6
9489 else
9490   rm -f .libs 2>/dev/null
9491 mkdir .libs 2>/dev/null
9492 if test -d .libs; then
9493   lt_cv_objdir=.libs
9494 else
9495   # MS-DOS does not allow filenames that begin with a dot.
9496   lt_cv_objdir=_libs
9497 fi
9498 rmdir .libs 2>/dev/null
9499 fi
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9501 $as_echo "$lt_cv_objdir" >&6; }
9502 objdir=$lt_cv_objdir
9503
9504
9505
9506
9507
9508 cat >>confdefs.h <<_ACEOF
9509 #define LT_OBJDIR "$lt_cv_objdir/"
9510 _ACEOF
9511
9512
9513
9514
9515 case $host_os in
9516 aix3*)
9517   # AIX sometimes has problems with the GCC collect2 program.  For some
9518   # reason, if we set the COLLECT_NAMES environment variable, the problems
9519   # vanish in a puff of smoke.
9520   if test set != "${COLLECT_NAMES+set}"; then
9521     COLLECT_NAMES=
9522     export COLLECT_NAMES
9523   fi
9524   ;;
9525 esac
9526
9527 # Global variables:
9528 ofile=libtool
9529 can_build_shared=yes
9530
9531 # All known linkers require a '.a' archive for static linking (except MSVC,
9532 # which needs '.lib').
9533 libext=a
9534
9535 with_gnu_ld=$lt_cv_prog_gnu_ld
9536
9537 old_CC=$CC
9538 old_CFLAGS=$CFLAGS
9539
9540 # Set sane defaults for various variables
9541 test -z "$CC" && CC=cc
9542 test -z "$LTCC" && LTCC=$CC
9543 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9544 test -z "$LD" && LD=ld
9545 test -z "$ac_objext" && ac_objext=o
9546
9547 func_cc_basename $compiler
9548 cc_basename=$func_cc_basename_result
9549
9550
9551 # Only perform the check for file, if the check method requires it
9552 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9553 case $deplibs_check_method in
9554 file_magic*)
9555   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9557 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9558 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9559   $as_echo_n "(cached) " >&6
9560 else
9561   case $MAGIC_CMD in
9562 [\\/*] |  ?:[\\/]*)
9563   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9564   ;;
9565 *)
9566   lt_save_MAGIC_CMD=$MAGIC_CMD
9567   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9568   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9569   for ac_dir in $ac_dummy; do
9570     IFS=$lt_save_ifs
9571     test -z "$ac_dir" && ac_dir=.
9572     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9573       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9574       if test -n "$file_magic_test_file"; then
9575         case $deplibs_check_method in
9576         "file_magic "*)
9577           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9578           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9579           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9580             $EGREP "$file_magic_regex" > /dev/null; then
9581             :
9582           else
9583             cat <<_LT_EOF 1>&2
9584
9585 *** Warning: the command libtool uses to detect shared libraries,
9586 *** $file_magic_cmd, produces output that libtool cannot recognize.
9587 *** The result is that libtool may fail to recognize shared libraries
9588 *** as such.  This will affect the creation of libtool libraries that
9589 *** depend on shared libraries, but programs linked with such libtool
9590 *** libraries will work regardless of this problem.  Nevertheless, you
9591 *** may want to report the problem to your system manager and/or to
9592 *** bug-libtool@gnu.org
9593
9594 _LT_EOF
9595           fi ;;
9596         esac
9597       fi
9598       break
9599     fi
9600   done
9601   IFS=$lt_save_ifs
9602   MAGIC_CMD=$lt_save_MAGIC_CMD
9603   ;;
9604 esac
9605 fi
9606
9607 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9608 if test -n "$MAGIC_CMD"; then
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9610 $as_echo "$MAGIC_CMD" >&6; }
9611 else
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9614 fi
9615
9616
9617
9618
9619
9620 if test -z "$lt_cv_path_MAGIC_CMD"; then
9621   if test -n "$ac_tool_prefix"; then
9622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9623 $as_echo_n "checking for file... " >&6; }
9624 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627   case $MAGIC_CMD in
9628 [\\/*] |  ?:[\\/]*)
9629   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9630   ;;
9631 *)
9632   lt_save_MAGIC_CMD=$MAGIC_CMD
9633   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9634   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9635   for ac_dir in $ac_dummy; do
9636     IFS=$lt_save_ifs
9637     test -z "$ac_dir" && ac_dir=.
9638     if test -f "$ac_dir/file"; then
9639       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9640       if test -n "$file_magic_test_file"; then
9641         case $deplibs_check_method in
9642         "file_magic "*)
9643           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9644           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9645           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9646             $EGREP "$file_magic_regex" > /dev/null; then
9647             :
9648           else
9649             cat <<_LT_EOF 1>&2
9650
9651 *** Warning: the command libtool uses to detect shared libraries,
9652 *** $file_magic_cmd, produces output that libtool cannot recognize.
9653 *** The result is that libtool may fail to recognize shared libraries
9654 *** as such.  This will affect the creation of libtool libraries that
9655 *** depend on shared libraries, but programs linked with such libtool
9656 *** libraries will work regardless of this problem.  Nevertheless, you
9657 *** may want to report the problem to your system manager and/or to
9658 *** bug-libtool@gnu.org
9659
9660 _LT_EOF
9661           fi ;;
9662         esac
9663       fi
9664       break
9665     fi
9666   done
9667   IFS=$lt_save_ifs
9668   MAGIC_CMD=$lt_save_MAGIC_CMD
9669   ;;
9670 esac
9671 fi
9672
9673 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9674 if test -n "$MAGIC_CMD"; then
9675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9676 $as_echo "$MAGIC_CMD" >&6; }
9677 else
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9680 fi
9681
9682
9683   else
9684     MAGIC_CMD=:
9685   fi
9686 fi
9687
9688   fi
9689   ;;
9690 esac
9691
9692 # Use C for the default configuration in the libtool script
9693
9694 lt_save_CC=$CC
9695 ac_ext=c
9696 ac_cpp='$CPP $CPPFLAGS'
9697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9700
9701
9702 # Source file extension for C test sources.
9703 ac_ext=c
9704
9705 # Object file extension for compiled C test sources.
9706 objext=o
9707 objext=$objext
9708
9709 # Code to be used in simple compile tests
9710 lt_simple_compile_test_code="int some_variable = 0;"
9711
9712 # Code to be used in simple link tests
9713 lt_simple_link_test_code='int main(){return(0);}'
9714
9715
9716
9717
9718
9719
9720
9721 # If no C compiler was specified, use CC.
9722 LTCC=${LTCC-"$CC"}
9723
9724 # If no C compiler flags were specified, use CFLAGS.
9725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9726
9727 # Allow CC to be a program name with arguments.
9728 compiler=$CC
9729
9730 # Save the default compiler, since it gets overwritten when the other
9731 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9732 compiler_DEFAULT=$CC
9733
9734 # save warnings/boilerplate of simple test code
9735 ac_outfile=conftest.$ac_objext
9736 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9737 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9738 _lt_compiler_boilerplate=`cat conftest.err`
9739 $RM conftest*
9740
9741 ac_outfile=conftest.$ac_objext
9742 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9743 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9744 _lt_linker_boilerplate=`cat conftest.err`
9745 $RM -r conftest*
9746
9747
9748 ## CAVEAT EMPTOR:
9749 ## There is no encapsulation within the following macros, do not change
9750 ## the running order or otherwise move them around unless you know exactly
9751 ## what you are doing...
9752 if test -n "$compiler"; then
9753
9754 lt_prog_compiler_no_builtin_flag=
9755
9756 if test yes = "$GCC"; then
9757   case $cc_basename in
9758   nvcc*)
9759     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9760   *)
9761     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9762   esac
9763
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9765 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9766 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9767   $as_echo_n "(cached) " >&6
9768 else
9769   lt_cv_prog_compiler_rtti_exceptions=no
9770    ac_outfile=conftest.$ac_objext
9771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9772    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9773    # Insert the option either (1) after the last *FLAGS variable, or
9774    # (2) before a word containing "conftest.", or (3) at the end.
9775    # Note that $ac_compile itself does not contain backslashes and begins
9776    # with a dollar sign (not a hyphen), so the echo should work correctly.
9777    # The option is referenced via a variable to avoid confusing sed.
9778    lt_compile=`echo "$ac_compile" | $SED \
9779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9781    -e 's:$: $lt_compiler_flag:'`
9782    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9783    (eval "$lt_compile" 2>conftest.err)
9784    ac_status=$?
9785    cat conftest.err >&5
9786    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787    if (exit $ac_status) && test -s "$ac_outfile"; then
9788      # The compiler can only warn and ignore the option if not recognized
9789      # So say no if there are warnings other than the usual output.
9790      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9793        lt_cv_prog_compiler_rtti_exceptions=yes
9794      fi
9795    fi
9796    $RM conftest*
9797
9798 fi
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9800 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9801
9802 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9803     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9804 else
9805     :
9806 fi
9807
9808 fi
9809
9810
9811
9812
9813
9814
9815   lt_prog_compiler_wl=
9816 lt_prog_compiler_pic=
9817 lt_prog_compiler_static=
9818
9819
9820   if test yes = "$GCC"; then
9821     lt_prog_compiler_wl='-Wl,'
9822     lt_prog_compiler_static='-static'
9823
9824     case $host_os in
9825       aix*)
9826       # All AIX code is PIC.
9827       if test ia64 = "$host_cpu"; then
9828         # AIX 5 now supports IA64 processor
9829         lt_prog_compiler_static='-Bstatic'
9830       fi
9831       lt_prog_compiler_pic='-fPIC'
9832       ;;
9833
9834     amigaos*)
9835       case $host_cpu in
9836       powerpc)
9837             # see comment about AmigaOS4 .so support
9838             lt_prog_compiler_pic='-fPIC'
9839         ;;
9840       m68k)
9841             # FIXME: we need at least 68020 code to build shared libraries, but
9842             # adding the '-m68020' flag to GCC prevents building anything better,
9843             # like '-m68040'.
9844             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9845         ;;
9846       esac
9847       ;;
9848
9849     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9850       # PIC is the default for these OSes.
9851       ;;
9852
9853     mingw* | cygwin* | pw32* | os2* | cegcc*)
9854       # This hack is so that the source file can tell whether it is being
9855       # built for inclusion in a dll (and should export symbols for example).
9856       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9857       # (--disable-auto-import) libraries
9858       lt_prog_compiler_pic='-DDLL_EXPORT'
9859       case $host_os in
9860       os2*)
9861         lt_prog_compiler_static='$wl-static'
9862         ;;
9863       esac
9864       ;;
9865
9866     darwin* | rhapsody*)
9867       # PIC is the default on this platform
9868       # Common symbols not allowed in MH_DYLIB files
9869       lt_prog_compiler_pic='-fno-common'
9870       ;;
9871
9872     haiku*)
9873       # PIC is the default for Haiku.
9874       # The "-static" flag exists, but is broken.
9875       lt_prog_compiler_static=
9876       ;;
9877
9878     hpux*)
9879       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9880       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9881       # sets the default TLS model and affects inlining.
9882       case $host_cpu in
9883       hppa*64*)
9884         # +Z the default
9885         ;;
9886       *)
9887         lt_prog_compiler_pic='-fPIC'
9888         ;;
9889       esac
9890       ;;
9891
9892     interix[3-9]*)
9893       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9894       # Instead, we relocate shared libraries at runtime.
9895       ;;
9896
9897     msdosdjgpp*)
9898       # Just because we use GCC doesn't mean we suddenly get shared libraries
9899       # on systems that don't support them.
9900       lt_prog_compiler_can_build_shared=no
9901       enable_shared=no
9902       ;;
9903
9904     *nto* | *qnx*)
9905       # QNX uses GNU C++, but need to define -shared option too, otherwise
9906       # it will coredump.
9907       lt_prog_compiler_pic='-fPIC -shared'
9908       ;;
9909
9910     sysv4*MP*)
9911       if test -d /usr/nec; then
9912         lt_prog_compiler_pic=-Kconform_pic
9913       fi
9914       ;;
9915
9916     *)
9917       lt_prog_compiler_pic='-fPIC'
9918       ;;
9919     esac
9920
9921     case $cc_basename in
9922     nvcc*) # Cuda Compiler Driver 2.2
9923       lt_prog_compiler_wl='-Xlinker '
9924       if test -n "$lt_prog_compiler_pic"; then
9925         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9926       fi
9927       ;;
9928     esac
9929   else
9930     # PORTME Check for flag to pass linker flags through the system compiler.
9931     case $host_os in
9932     aix*)
9933       lt_prog_compiler_wl='-Wl,'
9934       if test ia64 = "$host_cpu"; then
9935         # AIX 5 now supports IA64 processor
9936         lt_prog_compiler_static='-Bstatic'
9937       else
9938         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9939       fi
9940       ;;
9941
9942     darwin* | rhapsody*)
9943       # PIC is the default on this platform
9944       # Common symbols not allowed in MH_DYLIB files
9945       lt_prog_compiler_pic='-fno-common'
9946       case $cc_basename in
9947       nagfor*)
9948         # NAG Fortran compiler
9949         lt_prog_compiler_wl='-Wl,-Wl,,'
9950         lt_prog_compiler_pic='-PIC'
9951         lt_prog_compiler_static='-Bstatic'
9952         ;;
9953       esac
9954       ;;
9955
9956     mingw* | cygwin* | pw32* | os2* | cegcc*)
9957       # This hack is so that the source file can tell whether it is being
9958       # built for inclusion in a dll (and should export symbols for example).
9959       lt_prog_compiler_pic='-DDLL_EXPORT'
9960       case $host_os in
9961       os2*)
9962         lt_prog_compiler_static='$wl-static'
9963         ;;
9964       esac
9965       ;;
9966
9967     hpux9* | hpux10* | hpux11*)
9968       lt_prog_compiler_wl='-Wl,'
9969       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9970       # not for PA HP-UX.
9971       case $host_cpu in
9972       hppa*64*|ia64*)
9973         # +Z the default
9974         ;;
9975       *)
9976         lt_prog_compiler_pic='+Z'
9977         ;;
9978       esac
9979       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9980       lt_prog_compiler_static='$wl-a ${wl}archive'
9981       ;;
9982
9983     irix5* | irix6* | nonstopux*)
9984       lt_prog_compiler_wl='-Wl,'
9985       # PIC (with -KPIC) is the default.
9986       lt_prog_compiler_static='-non_shared'
9987       ;;
9988
9989     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9990       case $cc_basename in
9991       # old Intel for x86_64, which still supported -KPIC.
9992       ecc*)
9993         lt_prog_compiler_wl='-Wl,'
9994         lt_prog_compiler_pic='-KPIC'
9995         lt_prog_compiler_static='-static'
9996         ;;
9997       # icc used to be incompatible with GCC.
9998       # ICC 10 doesn't accept -KPIC any more.
9999       icc* | ifort*)
10000         lt_prog_compiler_wl='-Wl,'
10001         lt_prog_compiler_pic='-fPIC'
10002         lt_prog_compiler_static='-static'
10003         ;;
10004       # Lahey Fortran 8.1.
10005       lf95*)
10006         lt_prog_compiler_wl='-Wl,'
10007         lt_prog_compiler_pic='--shared'
10008         lt_prog_compiler_static='--static'
10009         ;;
10010       nagfor*)
10011         # NAG Fortran compiler
10012         lt_prog_compiler_wl='-Wl,-Wl,,'
10013         lt_prog_compiler_pic='-PIC'
10014         lt_prog_compiler_static='-Bstatic'
10015         ;;
10016       tcc*)
10017         # Fabrice Bellard et al's Tiny C Compiler
10018         lt_prog_compiler_wl='-Wl,'
10019         lt_prog_compiler_pic='-fPIC'
10020         lt_prog_compiler_static='-static'
10021         ;;
10022       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10023         # Portland Group compilers (*not* the Pentium gcc compiler,
10024         # which looks to be a dead project)
10025         lt_prog_compiler_wl='-Wl,'
10026         lt_prog_compiler_pic='-fpic'
10027         lt_prog_compiler_static='-Bstatic'
10028         ;;
10029       ccc*)
10030         lt_prog_compiler_wl='-Wl,'
10031         # All Alpha code is PIC.
10032         lt_prog_compiler_static='-non_shared'
10033         ;;
10034       xl* | bgxl* | bgf* | mpixl*)
10035         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10036         lt_prog_compiler_wl='-Wl,'
10037         lt_prog_compiler_pic='-qpic'
10038         lt_prog_compiler_static='-qstaticlink'
10039         ;;
10040       *)
10041         case `$CC -V 2>&1 | sed 5q` in
10042         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10043           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10044           lt_prog_compiler_pic='-KPIC'
10045           lt_prog_compiler_static='-Bstatic'
10046           lt_prog_compiler_wl=''
10047           ;;
10048         *Sun\ F* | *Sun*Fortran*)
10049           lt_prog_compiler_pic='-KPIC'
10050           lt_prog_compiler_static='-Bstatic'
10051           lt_prog_compiler_wl='-Qoption ld '
10052           ;;
10053         *Sun\ C*)
10054           # Sun C 5.9
10055           lt_prog_compiler_pic='-KPIC'
10056           lt_prog_compiler_static='-Bstatic'
10057           lt_prog_compiler_wl='-Wl,'
10058           ;;
10059         *Intel*\ [CF]*Compiler*)
10060           lt_prog_compiler_wl='-Wl,'
10061           lt_prog_compiler_pic='-fPIC'
10062           lt_prog_compiler_static='-static'
10063           ;;
10064         *Portland\ Group*)
10065           lt_prog_compiler_wl='-Wl,'
10066           lt_prog_compiler_pic='-fpic'
10067           lt_prog_compiler_static='-Bstatic'
10068           ;;
10069         esac
10070         ;;
10071       esac
10072       ;;
10073
10074     newsos6)
10075       lt_prog_compiler_pic='-KPIC'
10076       lt_prog_compiler_static='-Bstatic'
10077       ;;
10078
10079     *nto* | *qnx*)
10080       # QNX uses GNU C++, but need to define -shared option too, otherwise
10081       # it will coredump.
10082       lt_prog_compiler_pic='-fPIC -shared'
10083       ;;
10084
10085     osf3* | osf4* | osf5*)
10086       lt_prog_compiler_wl='-Wl,'
10087       # All OSF/1 code is PIC.
10088       lt_prog_compiler_static='-non_shared'
10089       ;;
10090
10091     rdos*)
10092       lt_prog_compiler_static='-non_shared'
10093       ;;
10094
10095     solaris*)
10096       lt_prog_compiler_pic='-KPIC'
10097       lt_prog_compiler_static='-Bstatic'
10098       case $cc_basename in
10099       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10100         lt_prog_compiler_wl='-Qoption ld ';;
10101       *)
10102         lt_prog_compiler_wl='-Wl,';;
10103       esac
10104       ;;
10105
10106     sunos4*)
10107       lt_prog_compiler_wl='-Qoption ld '
10108       lt_prog_compiler_pic='-PIC'
10109       lt_prog_compiler_static='-Bstatic'
10110       ;;
10111
10112     sysv4 | sysv4.2uw2* | sysv4.3*)
10113       lt_prog_compiler_wl='-Wl,'
10114       lt_prog_compiler_pic='-KPIC'
10115       lt_prog_compiler_static='-Bstatic'
10116       ;;
10117
10118     sysv4*MP*)
10119       if test -d /usr/nec; then
10120         lt_prog_compiler_pic='-Kconform_pic'
10121         lt_prog_compiler_static='-Bstatic'
10122       fi
10123       ;;
10124
10125     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10126       lt_prog_compiler_wl='-Wl,'
10127       lt_prog_compiler_pic='-KPIC'
10128       lt_prog_compiler_static='-Bstatic'
10129       ;;
10130
10131     unicos*)
10132       lt_prog_compiler_wl='-Wl,'
10133       lt_prog_compiler_can_build_shared=no
10134       ;;
10135
10136     uts4*)
10137       lt_prog_compiler_pic='-pic'
10138       lt_prog_compiler_static='-Bstatic'
10139       ;;
10140
10141     *)
10142       lt_prog_compiler_can_build_shared=no
10143       ;;
10144     esac
10145   fi
10146
10147 case $host_os in
10148   # For platforms that do not support PIC, -DPIC is meaningless:
10149   *djgpp*)
10150     lt_prog_compiler_pic=
10151     ;;
10152   *)
10153     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10154     ;;
10155 esac
10156
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10158 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10159 if ${lt_cv_prog_compiler_pic+:} false; then :
10160   $as_echo_n "(cached) " >&6
10161 else
10162   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10165 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10166 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10167
10168 #
10169 # Check to make sure the PIC flag actually works.
10170 #
10171 if test -n "$lt_prog_compiler_pic"; then
10172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10173 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10174 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10175   $as_echo_n "(cached) " >&6
10176 else
10177   lt_cv_prog_compiler_pic_works=no
10178    ac_outfile=conftest.$ac_objext
10179    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10180    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10181    # Insert the option either (1) after the last *FLAGS variable, or
10182    # (2) before a word containing "conftest.", or (3) at the end.
10183    # Note that $ac_compile itself does not contain backslashes and begins
10184    # with a dollar sign (not a hyphen), so the echo should work correctly.
10185    # The option is referenced via a variable to avoid confusing sed.
10186    lt_compile=`echo "$ac_compile" | $SED \
10187    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10189    -e 's:$: $lt_compiler_flag:'`
10190    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10191    (eval "$lt_compile" 2>conftest.err)
10192    ac_status=$?
10193    cat conftest.err >&5
10194    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195    if (exit $ac_status) && test -s "$ac_outfile"; then
10196      # The compiler can only warn and ignore the option if not recognized
10197      # So say no if there are warnings other than the usual output.
10198      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10199      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10200      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10201        lt_cv_prog_compiler_pic_works=yes
10202      fi
10203    fi
10204    $RM conftest*
10205
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10208 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10209
10210 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10211     case $lt_prog_compiler_pic in
10212      "" | " "*) ;;
10213      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10214      esac
10215 else
10216     lt_prog_compiler_pic=
10217      lt_prog_compiler_can_build_shared=no
10218 fi
10219
10220 fi
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232 #
10233 # Check to make sure the static flag actually works.
10234 #
10235 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10237 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10238 if ${lt_cv_prog_compiler_static_works+:} false; then :
10239   $as_echo_n "(cached) " >&6
10240 else
10241   lt_cv_prog_compiler_static_works=no
10242    save_LDFLAGS=$LDFLAGS
10243    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10244    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10245    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10246      # The linker can only warn and ignore the option if not recognized
10247      # So say no if there are warnings
10248      if test -s conftest.err; then
10249        # Append any errors to the config.log.
10250        cat conftest.err 1>&5
10251        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10252        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10253        if diff conftest.exp conftest.er2 >/dev/null; then
10254          lt_cv_prog_compiler_static_works=yes
10255        fi
10256      else
10257        lt_cv_prog_compiler_static_works=yes
10258      fi
10259    fi
10260    $RM -r conftest*
10261    LDFLAGS=$save_LDFLAGS
10262
10263 fi
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10265 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10266
10267 if test yes = "$lt_cv_prog_compiler_static_works"; then
10268     :
10269 else
10270     lt_prog_compiler_static=
10271 fi
10272
10273
10274
10275
10276
10277
10278
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10280 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10281 if ${lt_cv_prog_compiler_c_o+:} false; then :
10282   $as_echo_n "(cached) " >&6
10283 else
10284   lt_cv_prog_compiler_c_o=no
10285    $RM -r conftest 2>/dev/null
10286    mkdir conftest
10287    cd conftest
10288    mkdir out
10289    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10290
10291    lt_compiler_flag="-o out/conftest2.$ac_objext"
10292    # Insert the option either (1) after the last *FLAGS variable, or
10293    # (2) before a word containing "conftest.", or (3) at the end.
10294    # Note that $ac_compile itself does not contain backslashes and begins
10295    # with a dollar sign (not a hyphen), so the echo should work correctly.
10296    lt_compile=`echo "$ac_compile" | $SED \
10297    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10298    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10299    -e 's:$: $lt_compiler_flag:'`
10300    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10301    (eval "$lt_compile" 2>out/conftest.err)
10302    ac_status=$?
10303    cat out/conftest.err >&5
10304    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10306    then
10307      # The compiler can only warn and ignore the option if not recognized
10308      # So say no if there are warnings
10309      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10310      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10311      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10312        lt_cv_prog_compiler_c_o=yes
10313      fi
10314    fi
10315    chmod u+w . 2>&5
10316    $RM conftest*
10317    # SGI C++ compiler will create directory out/ii_files/ for
10318    # template instantiation
10319    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10320    $RM out/* && rmdir out
10321    cd ..
10322    $RM -r conftest
10323    $RM conftest*
10324
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10327 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10328
10329
10330
10331
10332
10333
10334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10335 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10336 if ${lt_cv_prog_compiler_c_o+:} false; then :
10337   $as_echo_n "(cached) " >&6
10338 else
10339   lt_cv_prog_compiler_c_o=no
10340    $RM -r conftest 2>/dev/null
10341    mkdir conftest
10342    cd conftest
10343    mkdir out
10344    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10345
10346    lt_compiler_flag="-o out/conftest2.$ac_objext"
10347    # Insert the option either (1) after the last *FLAGS variable, or
10348    # (2) before a word containing "conftest.", or (3) at the end.
10349    # Note that $ac_compile itself does not contain backslashes and begins
10350    # with a dollar sign (not a hyphen), so the echo should work correctly.
10351    lt_compile=`echo "$ac_compile" | $SED \
10352    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10353    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10354    -e 's:$: $lt_compiler_flag:'`
10355    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10356    (eval "$lt_compile" 2>out/conftest.err)
10357    ac_status=$?
10358    cat out/conftest.err >&5
10359    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10361    then
10362      # The compiler can only warn and ignore the option if not recognized
10363      # So say no if there are warnings
10364      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10365      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10366      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10367        lt_cv_prog_compiler_c_o=yes
10368      fi
10369    fi
10370    chmod u+w . 2>&5
10371    $RM conftest*
10372    # SGI C++ compiler will create directory out/ii_files/ for
10373    # template instantiation
10374    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10375    $RM out/* && rmdir out
10376    cd ..
10377    $RM -r conftest
10378    $RM conftest*
10379
10380 fi
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10382 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10383
10384
10385
10386
10387 hard_links=nottested
10388 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10389   # do not overwrite the value of need_locks provided by the user
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10391 $as_echo_n "checking if we can lock with hard links... " >&6; }
10392   hard_links=yes
10393   $RM conftest*
10394   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10395   touch conftest.a
10396   ln conftest.a conftest.b 2>&5 || hard_links=no
10397   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10399 $as_echo "$hard_links" >&6; }
10400   if test no = "$hard_links"; then
10401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10402 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10403     need_locks=warn
10404   fi
10405 else
10406   need_locks=no
10407 fi
10408
10409
10410
10411
10412
10413
10414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10415 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10416
10417   runpath_var=
10418   allow_undefined_flag=
10419   always_export_symbols=no
10420   archive_cmds=
10421   archive_expsym_cmds=
10422   compiler_needs_object=no
10423   enable_shared_with_static_runtimes=no
10424   export_dynamic_flag_spec=
10425   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10426   hardcode_automatic=no
10427   hardcode_direct=no
10428   hardcode_direct_absolute=no
10429   hardcode_libdir_flag_spec=
10430   hardcode_libdir_separator=
10431   hardcode_minus_L=no
10432   hardcode_shlibpath_var=unsupported
10433   inherit_rpath=no
10434   link_all_deplibs=unknown
10435   module_cmds=
10436   module_expsym_cmds=
10437   old_archive_from_new_cmds=
10438   old_archive_from_expsyms_cmds=
10439   thread_safe_flag_spec=
10440   whole_archive_flag_spec=
10441   # include_expsyms should be a list of space-separated symbols to be *always*
10442   # included in the symbol list
10443   include_expsyms=
10444   # exclude_expsyms can be an extended regexp of symbols to exclude
10445   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10446   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10447   # as well as any symbol that contains 'd'.
10448   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10449   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10450   # platforms (ab)use it in PIC code, but their linkers get confused if
10451   # the symbol is explicitly referenced.  Since portable code cannot
10452   # rely on this symbol name, it's probably fine to never include it in
10453   # preloaded symbol tables.
10454   # Exclude shared library initialization/finalization symbols.
10455   extract_expsyms_cmds=
10456
10457   case $host_os in
10458   cygwin* | mingw* | pw32* | cegcc*)
10459     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10460     # When not using gcc, we currently assume that we are using
10461     # Microsoft Visual C++.
10462     if test yes != "$GCC"; then
10463       with_gnu_ld=no
10464     fi
10465     ;;
10466   interix*)
10467     # we just hope/assume this is gcc and not c89 (= MSVC++)
10468     with_gnu_ld=yes
10469     ;;
10470   openbsd* | bitrig*)
10471     with_gnu_ld=no
10472     ;;
10473   esac
10474
10475   ld_shlibs=yes
10476
10477   # On some targets, GNU ld is compatible enough with the native linker
10478   # that we're better off using the native interface for both.
10479   lt_use_gnu_ld_interface=no
10480   if test yes = "$with_gnu_ld"; then
10481     case $host_os in
10482       aix*)
10483         # The AIX port of GNU ld has always aspired to compatibility
10484         # with the native linker.  However, as the warning in the GNU ld
10485         # block says, versions before 2.19.5* couldn't really create working
10486         # shared libraries, regardless of the interface used.
10487         case `$LD -v 2>&1` in
10488           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10489           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10490           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10491           *)
10492             lt_use_gnu_ld_interface=yes
10493             ;;
10494         esac
10495         ;;
10496       *)
10497         lt_use_gnu_ld_interface=yes
10498         ;;
10499     esac
10500   fi
10501
10502   if test yes = "$lt_use_gnu_ld_interface"; then
10503     # If archive_cmds runs LD, not CC, wlarc should be empty
10504     wlarc='$wl'
10505
10506     # Set some defaults for GNU ld with shared library support. These
10507     # are reset later if shared libraries are not supported. Putting them
10508     # here allows them to be overridden if necessary.
10509     runpath_var=LD_RUN_PATH
10510     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10511     export_dynamic_flag_spec='$wl--export-dynamic'
10512     # ancient GNU ld didn't support --whole-archive et. al.
10513     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10514       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10515     else
10516       whole_archive_flag_spec=
10517     fi
10518     supports_anon_versioning=no
10519     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10520       *GNU\ gold*) supports_anon_versioning=yes ;;
10521       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10522       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10523       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10524       *\ 2.11.*) ;; # other 2.11 versions
10525       *) supports_anon_versioning=yes ;;
10526     esac
10527
10528     # See if GNU ld supports shared libraries.
10529     case $host_os in
10530     aix[3-9]*)
10531       # On AIX/PPC, the GNU linker is very broken
10532       if test ia64 != "$host_cpu"; then
10533         ld_shlibs=no
10534         cat <<_LT_EOF 1>&2
10535
10536 *** Warning: the GNU linker, at least up to release 2.19, is reported
10537 *** to be unable to reliably create shared libraries on AIX.
10538 *** Therefore, libtool is disabling shared libraries support.  If you
10539 *** really care for shared libraries, you may want to install binutils
10540 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10541 *** You will then need to restart the configuration process.
10542
10543 _LT_EOF
10544       fi
10545       ;;
10546
10547     amigaos*)
10548       case $host_cpu in
10549       powerpc)
10550             # see comment about AmigaOS4 .so support
10551             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10552             archive_expsym_cmds=''
10553         ;;
10554       m68k)
10555             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)'
10556             hardcode_libdir_flag_spec='-L$libdir'
10557             hardcode_minus_L=yes
10558         ;;
10559       esac
10560       ;;
10561
10562     beos*)
10563       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10564         allow_undefined_flag=unsupported
10565         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10566         # support --undefined.  This deserves some investigation.  FIXME
10567         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10568       else
10569         ld_shlibs=no
10570       fi
10571       ;;
10572
10573     cygwin* | mingw* | pw32* | cegcc*)
10574       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10575       # as there is no search path for DLLs.
10576       hardcode_libdir_flag_spec='-L$libdir'
10577       export_dynamic_flag_spec='$wl--export-all-symbols'
10578       allow_undefined_flag=unsupported
10579       always_export_symbols=no
10580       enable_shared_with_static_runtimes=yes
10581       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'
10582       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10583
10584       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10585         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10586         # If the export-symbols file already is a .def file, use it as
10587         # is; otherwise, prepend EXPORTS...
10588         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10589           cp $export_symbols $output_objdir/$soname.def;
10590         else
10591           echo EXPORTS > $output_objdir/$soname.def;
10592           cat $export_symbols >> $output_objdir/$soname.def;
10593         fi~
10594         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10595       else
10596         ld_shlibs=no
10597       fi
10598       ;;
10599
10600     haiku*)
10601       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10602       link_all_deplibs=yes
10603       ;;
10604
10605     os2*)
10606       hardcode_libdir_flag_spec='-L$libdir'
10607       hardcode_minus_L=yes
10608       allow_undefined_flag=unsupported
10609       shrext_cmds=.dll
10610       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10611         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10612         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10613         $ECHO EXPORTS >> $output_objdir/$libname.def~
10614         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10615         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10616         emximp -o $lib $output_objdir/$libname.def'
10617       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10618         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10619         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10620         $ECHO EXPORTS >> $output_objdir/$libname.def~
10621         prefix_cmds="$SED"~
10622         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10623           prefix_cmds="$prefix_cmds -e 1d";
10624         fi~
10625         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10626         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10627         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10628         emximp -o $lib $output_objdir/$libname.def'
10629       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10630       enable_shared_with_static_runtimes=yes
10631       ;;
10632
10633     interix[3-9]*)
10634       hardcode_direct=no
10635       hardcode_shlibpath_var=no
10636       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10637       export_dynamic_flag_spec='$wl-E'
10638       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10639       # Instead, shared libraries are loaded at an image base (0x10000000 by
10640       # default) and relocated if they conflict, which is a slow very memory
10641       # consuming and fragmenting process.  To avoid this, we pick a random,
10642       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10643       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10644       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10645       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'
10646       ;;
10647
10648     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10649       tmp_diet=no
10650       if test linux-dietlibc = "$host_os"; then
10651         case $cc_basename in
10652           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10653         esac
10654       fi
10655       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10656          && test no = "$tmp_diet"
10657       then
10658         tmp_addflag=' $pic_flag'
10659         tmp_sharedflag='-shared'
10660         case $cc_basename,$host_cpu in
10661         pgcc*)                          # Portland Group C compiler
10662           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'
10663           tmp_addflag=' $pic_flag'
10664           ;;
10665         pgf77* | pgf90* | pgf95* | pgfortran*)
10666                                         # Portland Group f77 and f90 compilers
10667           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'
10668           tmp_addflag=' $pic_flag -Mnomain' ;;
10669         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10670           tmp_addflag=' -i_dynamic' ;;
10671         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10672           tmp_addflag=' -i_dynamic -nofor_main' ;;
10673         ifc* | ifort*)                  # Intel Fortran compiler
10674           tmp_addflag=' -nofor_main' ;;
10675         lf95*)                          # Lahey Fortran 8.1
10676           whole_archive_flag_spec=
10677           tmp_sharedflag='--shared' ;;
10678         nagfor*)                        # NAGFOR 5.3
10679           tmp_sharedflag='-Wl,-shared' ;;
10680         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10681           tmp_sharedflag='-qmkshrobj'
10682           tmp_addflag= ;;
10683         nvcc*)  # Cuda Compiler Driver 2.2
10684           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'
10685           compiler_needs_object=yes
10686           ;;
10687         esac
10688         case `$CC -V 2>&1 | sed 5q` in
10689         *Sun\ C*)                       # Sun C 5.9
10690           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'
10691           compiler_needs_object=yes
10692           tmp_sharedflag='-G' ;;
10693         *Sun\ F*)                       # Sun Fortran 8.3
10694           tmp_sharedflag='-G' ;;
10695         esac
10696         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10697
10698         if test yes = "$supports_anon_versioning"; then
10699           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10700             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10701             echo "local: *; };" >> $output_objdir/$libname.ver~
10702             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10703         fi
10704
10705         case $cc_basename in
10706         tcc*)
10707           export_dynamic_flag_spec='-rdynamic'
10708           ;;
10709         xlf* | bgf* | bgxlf* | mpixlf*)
10710           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10711           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10712           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10713           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10714           if test yes = "$supports_anon_versioning"; then
10715             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10716               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10717               echo "local: *; };" >> $output_objdir/$libname.ver~
10718               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10719           fi
10720           ;;
10721         esac
10722       else
10723         ld_shlibs=no
10724       fi
10725       ;;
10726
10727     netbsd*)
10728       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10729         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10730         wlarc=
10731       else
10732         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10733         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10734       fi
10735       ;;
10736
10737     solaris*)
10738       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10739         ld_shlibs=no
10740         cat <<_LT_EOF 1>&2
10741
10742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10743 *** create shared libraries on Solaris systems.  Therefore, libtool
10744 *** is disabling shared libraries support.  We urge you to upgrade GNU
10745 *** binutils to release 2.9.1 or newer.  Another option is to modify
10746 *** your PATH or compiler configuration so that the native linker is
10747 *** used, and then restart.
10748
10749 _LT_EOF
10750       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10751         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10752         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10753       else
10754         ld_shlibs=no
10755       fi
10756       ;;
10757
10758     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10759       case `$LD -v 2>&1` in
10760         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10761         ld_shlibs=no
10762         cat <<_LT_EOF 1>&2
10763
10764 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10765 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10766 *** is disabling shared libraries support.  We urge you to upgrade GNU
10767 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10768 *** your PATH or compiler configuration so that the native linker is
10769 *** used, and then restart.
10770
10771 _LT_EOF
10772         ;;
10773         *)
10774           # For security reasons, it is highly recommended that you always
10775           # use absolute paths for naming shared libraries, and exclude the
10776           # DT_RUNPATH tag from executables and libraries.  But doing so
10777           # requires that you compile everything twice, which is a pain.
10778           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10779             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10780             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10781             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10782           else
10783             ld_shlibs=no
10784           fi
10785         ;;
10786       esac
10787       ;;
10788
10789     sunos4*)
10790       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10791       wlarc=
10792       hardcode_direct=yes
10793       hardcode_shlibpath_var=no
10794       ;;
10795
10796     *)
10797       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10798         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10799         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10800       else
10801         ld_shlibs=no
10802       fi
10803       ;;
10804     esac
10805
10806     if test no = "$ld_shlibs"; then
10807       runpath_var=
10808       hardcode_libdir_flag_spec=
10809       export_dynamic_flag_spec=
10810       whole_archive_flag_spec=
10811     fi
10812   else
10813     # PORTME fill in a description of your system's linker (not GNU ld)
10814     case $host_os in
10815     aix3*)
10816       allow_undefined_flag=unsupported
10817       always_export_symbols=yes
10818       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'
10819       # Note: this linker hardcodes the directories in LIBPATH if there
10820       # are no directories specified by -L.
10821       hardcode_minus_L=yes
10822       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10823         # Neither direct hardcoding nor static linking is supported with a
10824         # broken collect2.
10825         hardcode_direct=unsupported
10826       fi
10827       ;;
10828
10829     aix[4-9]*)
10830       if test ia64 = "$host_cpu"; then
10831         # On IA64, the linker does run time linking by default, so we don't
10832         # have to do anything special.
10833         aix_use_runtimelinking=no
10834         exp_sym_flag='-Bexport'
10835         no_entry_flag=
10836       else
10837         # If we're using GNU nm, then we don't want the "-C" option.
10838         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10839         # Without the "-l" option, or with the "-B" option, AIX nm treats
10840         # weak defined symbols like other global defined symbols, whereas
10841         # GNU nm marks them as "W".
10842         # While the 'weak' keyword is ignored in the Export File, we need
10843         # it in the Import File for the 'aix-soname' feature, so we have
10844         # to replace the "-B" option with "-P" for AIX nm.
10845         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10846           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'
10847         else
10848           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 == "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'
10849         fi
10850         aix_use_runtimelinking=no
10851
10852         # Test if we are trying to use run time linking or normal
10853         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10854         # have runtime linking enabled, and use it for executables.
10855         # For shared libraries, we enable/disable runtime linking
10856         # depending on the kind of the shared library created -
10857         # when "with_aix_soname,aix_use_runtimelinking" is:
10858         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10859         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10860         #            lib.a           static archive
10861         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10862         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10863         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10864         #            lib.a(lib.so.V) shared, rtl:no
10865         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10866         #            lib.a           static archive
10867         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10868           for ld_flag in $LDFLAGS; do
10869           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10870             aix_use_runtimelinking=yes
10871             break
10872           fi
10873           done
10874           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10875             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10876             # so we don't have lib.a shared libs to link our executables.
10877             # We have to force runtime linking in this case.
10878             aix_use_runtimelinking=yes
10879             LDFLAGS="$LDFLAGS -Wl,-brtl"
10880           fi
10881           ;;
10882         esac
10883
10884         exp_sym_flag='-bexport'
10885         no_entry_flag='-bnoentry'
10886       fi
10887
10888       # When large executables or shared objects are built, AIX ld can
10889       # have problems creating the table of contents.  If linking a library
10890       # or program results in "error TOC overflow" add -mminimal-toc to
10891       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10892       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10893
10894       archive_cmds=''
10895       hardcode_direct=yes
10896       hardcode_direct_absolute=yes
10897       hardcode_libdir_separator=':'
10898       link_all_deplibs=yes
10899       file_list_spec='$wl-f,'
10900       case $with_aix_soname,$aix_use_runtimelinking in
10901       aix,*) ;; # traditional, no import file
10902       svr4,* | *,yes) # use import file
10903         # The Import File defines what to hardcode.
10904         hardcode_direct=no
10905         hardcode_direct_absolute=no
10906         ;;
10907       esac
10908
10909       if test yes = "$GCC"; then
10910         case $host_os in aix4.[012]|aix4.[012].*)
10911         # We only want to do this on AIX 4.2 and lower, the check
10912         # below for broken collect2 doesn't work under 4.3+
10913           collect2name=`$CC -print-prog-name=collect2`
10914           if test -f "$collect2name" &&
10915            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10916           then
10917           # We have reworked collect2
10918           :
10919           else
10920           # We have old collect2
10921           hardcode_direct=unsupported
10922           # It fails to find uninstalled libraries when the uninstalled
10923           # path is not listed in the libpath.  Setting hardcode_minus_L
10924           # to unsupported forces relinking
10925           hardcode_minus_L=yes
10926           hardcode_libdir_flag_spec='-L$libdir'
10927           hardcode_libdir_separator=
10928           fi
10929           ;;
10930         esac
10931         shared_flag='-shared'
10932         if test yes = "$aix_use_runtimelinking"; then
10933           shared_flag="$shared_flag "'$wl-G'
10934         fi
10935         # Need to ensure runtime linking is disabled for the traditional
10936         # shared library, or the linker may eventually find shared libraries
10937         # /with/ Import File - we do not want to mix them.
10938         shared_flag_aix='-shared'
10939         shared_flag_svr4='-shared $wl-G'
10940       else
10941         # not using gcc
10942         if test ia64 = "$host_cpu"; then
10943         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10944         # chokes on -Wl,-G. The following line is correct:
10945           shared_flag='-G'
10946         else
10947           if test yes = "$aix_use_runtimelinking"; then
10948             shared_flag='$wl-G'
10949           else
10950             shared_flag='$wl-bM:SRE'
10951           fi
10952           shared_flag_aix='$wl-bM:SRE'
10953           shared_flag_svr4='$wl-G'
10954         fi
10955       fi
10956
10957       export_dynamic_flag_spec='$wl-bexpall'
10958       # It seems that -bexpall does not export symbols beginning with
10959       # underscore (_), so it is better to generate a list of symbols to export.
10960       always_export_symbols=yes
10961       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10962         # Warning - without using the other runtime loading flags (-brtl),
10963         # -berok will link without error, but may produce a broken library.
10964         allow_undefined_flag='-berok'
10965         # Determine the default libpath from the value encoded in an
10966         # empty executable.
10967         if test set = "${lt_cv_aix_libpath+set}"; then
10968   aix_libpath=$lt_cv_aix_libpath
10969 else
10970   if ${lt_cv_aix_libpath_+:} false; then :
10971   $as_echo_n "(cached) " >&6
10972 else
10973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h.  */
10975
10976 int
10977 main ()
10978 {
10979
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 if ac_fn_c_try_link "$LINENO"; then :
10985
10986   lt_aix_libpath_sed='
10987       /Import File Strings/,/^$/ {
10988           /^0/ {
10989               s/^0  *\([^ ]*\) *$/\1/
10990               p
10991           }
10992       }'
10993   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10994   # Check for a 64-bit object if we didn't find anything.
10995   if test -z "$lt_cv_aix_libpath_"; then
10996     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10997   fi
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext \
11000     conftest$ac_exeext conftest.$ac_ext
11001   if test -z "$lt_cv_aix_libpath_"; then
11002     lt_cv_aix_libpath_=/usr/lib:/lib
11003   fi
11004
11005 fi
11006
11007   aix_libpath=$lt_cv_aix_libpath_
11008 fi
11009
11010         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11011         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
11012       else
11013         if test ia64 = "$host_cpu"; then
11014           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11015           allow_undefined_flag="-z nodefs"
11016           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"
11017         else
11018          # Determine the default libpath from the value encoded in an
11019          # empty executable.
11020          if test set = "${lt_cv_aix_libpath+set}"; then
11021   aix_libpath=$lt_cv_aix_libpath
11022 else
11023   if ${lt_cv_aix_libpath_+:} false; then :
11024   $as_echo_n "(cached) " >&6
11025 else
11026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h.  */
11028
11029 int
11030 main ()
11031 {
11032
11033   ;
11034   return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"; then :
11038
11039   lt_aix_libpath_sed='
11040       /Import File Strings/,/^$/ {
11041           /^0/ {
11042               s/^0  *\([^ ]*\) *$/\1/
11043               p
11044           }
11045       }'
11046   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11047   # Check for a 64-bit object if we didn't find anything.
11048   if test -z "$lt_cv_aix_libpath_"; then
11049     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11050   fi
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext \
11053     conftest$ac_exeext conftest.$ac_ext
11054   if test -z "$lt_cv_aix_libpath_"; then
11055     lt_cv_aix_libpath_=/usr/lib:/lib
11056   fi
11057
11058 fi
11059
11060   aix_libpath=$lt_cv_aix_libpath_
11061 fi
11062
11063          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11064           # Warning - without using the other run time loading flags,
11065           # -berok will link without error, but may produce a broken library.
11066           no_undefined_flag=' $wl-bernotok'
11067           allow_undefined_flag=' $wl-berok'
11068           if test yes = "$with_gnu_ld"; then
11069             # We only use this code for GNU lds that support --whole-archive.
11070             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11071           else
11072             # Exported symbols can be pulled into shared objects from archives
11073             whole_archive_flag_spec='$convenience'
11074           fi
11075           archive_cmds_need_lc=yes
11076           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11077           # -brtl affects multiple linker settings, -berok does not and is overridden later
11078           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11079           if test svr4 != "$with_aix_soname"; then
11080             # This is similar to how AIX traditionally builds its shared libraries.
11081             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'
11082           fi
11083           if test aix != "$with_aix_soname"; then
11084             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'
11085           else
11086             # used by -dlpreopen to get the symbols
11087             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11088           fi
11089           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11090         fi
11091       fi
11092       ;;
11093
11094     amigaos*)
11095       case $host_cpu in
11096       powerpc)
11097             # see comment about AmigaOS4 .so support
11098             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11099             archive_expsym_cmds=''
11100         ;;
11101       m68k)
11102             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)'
11103             hardcode_libdir_flag_spec='-L$libdir'
11104             hardcode_minus_L=yes
11105         ;;
11106       esac
11107       ;;
11108
11109     bsdi[45]*)
11110       export_dynamic_flag_spec=-rdynamic
11111       ;;
11112
11113     cygwin* | mingw* | pw32* | cegcc*)
11114       # When not using gcc, we currently assume that we are using
11115       # Microsoft Visual C++.
11116       # hardcode_libdir_flag_spec is actually meaningless, as there is
11117       # no search path for DLLs.
11118       case $cc_basename in
11119       cl*)
11120         # Native MSVC
11121         hardcode_libdir_flag_spec=' '
11122         allow_undefined_flag=unsupported
11123         always_export_symbols=yes
11124         file_list_spec='@'
11125         # Tell ltmain to make .lib files, not .a files.
11126         libext=lib
11127         # Tell ltmain to make .dll files, not .so files.
11128         shrext_cmds=.dll
11129         # FIXME: Setting linknames here is a bad hack.
11130         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11131         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11132             cp "$export_symbols" "$output_objdir/$soname.def";
11133             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11134           else
11135             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11136           fi~
11137           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11138           linknames='
11139         # The linker will not automatically build a static lib if we build a DLL.
11140         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11141         enable_shared_with_static_runtimes=yes
11142         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11143         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11144         # Don't use ranlib
11145         old_postinstall_cmds='chmod 644 $oldlib'
11146         postlink_cmds='lt_outputfile="@OUTPUT@"~
11147           lt_tool_outputfile="@TOOL_OUTPUT@"~
11148           case $lt_outputfile in
11149             *.exe|*.EXE) ;;
11150             *)
11151               lt_outputfile=$lt_outputfile.exe
11152               lt_tool_outputfile=$lt_tool_outputfile.exe
11153               ;;
11154           esac~
11155           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11156             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11157             $RM "$lt_outputfile.manifest";
11158           fi'
11159         ;;
11160       *)
11161         # Assume MSVC wrapper
11162         hardcode_libdir_flag_spec=' '
11163         allow_undefined_flag=unsupported
11164         # Tell ltmain to make .lib files, not .a files.
11165         libext=lib
11166         # Tell ltmain to make .dll files, not .so files.
11167         shrext_cmds=.dll
11168         # FIXME: Setting linknames here is a bad hack.
11169         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11170         # The linker will automatically build a .lib file if we build a DLL.
11171         old_archive_from_new_cmds='true'
11172         # FIXME: Should let the user specify the lib program.
11173         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11174         enable_shared_with_static_runtimes=yes
11175         ;;
11176       esac
11177       ;;
11178
11179     darwin* | rhapsody*)
11180
11181
11182   archive_cmds_need_lc=no
11183   hardcode_direct=no
11184   hardcode_automatic=yes
11185   hardcode_shlibpath_var=unsupported
11186   if test yes = "$lt_cv_ld_force_load"; then
11187     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\"`'
11188
11189   else
11190     whole_archive_flag_spec=''
11191   fi
11192   link_all_deplibs=yes
11193   allow_undefined_flag=$_lt_dar_allow_undefined
11194   case $cc_basename in
11195      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11196      *) _lt_dar_can_shared=$GCC ;;
11197   esac
11198   if test yes = "$_lt_dar_can_shared"; then
11199     output_verbose_link_cmd=func_echo_all
11200     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11201     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11202     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"
11203     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"
11204
11205   else
11206   ld_shlibs=no
11207   fi
11208
11209       ;;
11210
11211     dgux*)
11212       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11213       hardcode_libdir_flag_spec='-L$libdir'
11214       hardcode_shlibpath_var=no
11215       ;;
11216
11217     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11218     # support.  Future versions do this automatically, but an explicit c++rt0.o
11219     # does not break anything, and helps significantly (at the cost of a little
11220     # extra space).
11221     freebsd2.2*)
11222       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11223       hardcode_libdir_flag_spec='-R$libdir'
11224       hardcode_direct=yes
11225       hardcode_shlibpath_var=no
11226       ;;
11227
11228     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11229     freebsd2.*)
11230       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11231       hardcode_direct=yes
11232       hardcode_minus_L=yes
11233       hardcode_shlibpath_var=no
11234       ;;
11235
11236     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11237     freebsd* | dragonfly*)
11238       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11239       hardcode_libdir_flag_spec='-R$libdir'
11240       hardcode_direct=yes
11241       hardcode_shlibpath_var=no
11242       ;;
11243
11244     hpux9*)
11245       if test yes = "$GCC"; then
11246         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'
11247       else
11248         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'
11249       fi
11250       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11251       hardcode_libdir_separator=:
11252       hardcode_direct=yes
11253
11254       # hardcode_minus_L: Not really in the search PATH,
11255       # but as the default location of the library.
11256       hardcode_minus_L=yes
11257       export_dynamic_flag_spec='$wl-E'
11258       ;;
11259
11260     hpux10*)
11261       if test yes,no = "$GCC,$with_gnu_ld"; then
11262         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11263       else
11264         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11265       fi
11266       if test no = "$with_gnu_ld"; then
11267         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11268         hardcode_libdir_separator=:
11269         hardcode_direct=yes
11270         hardcode_direct_absolute=yes
11271         export_dynamic_flag_spec='$wl-E'
11272         # hardcode_minus_L: Not really in the search PATH,
11273         # but as the default location of the library.
11274         hardcode_minus_L=yes
11275       fi
11276       ;;
11277
11278     hpux11*)
11279       if test yes,no = "$GCC,$with_gnu_ld"; then
11280         case $host_cpu in
11281         hppa*64*)
11282           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11283           ;;
11284         ia64*)
11285           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11286           ;;
11287         *)
11288           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11289           ;;
11290         esac
11291       else
11292         case $host_cpu in
11293         hppa*64*)
11294           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11295           ;;
11296         ia64*)
11297           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11298           ;;
11299         *)
11300
11301           # Older versions of the 11.00 compiler do not understand -b yet
11302           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11303           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11304 $as_echo_n "checking if $CC understands -b... " >&6; }
11305 if ${lt_cv_prog_compiler__b+:} false; then :
11306   $as_echo_n "(cached) " >&6
11307 else
11308   lt_cv_prog_compiler__b=no
11309    save_LDFLAGS=$LDFLAGS
11310    LDFLAGS="$LDFLAGS -b"
11311    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11312    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11313      # The linker can only warn and ignore the option if not recognized
11314      # So say no if there are warnings
11315      if test -s conftest.err; then
11316        # Append any errors to the config.log.
11317        cat conftest.err 1>&5
11318        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11319        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11320        if diff conftest.exp conftest.er2 >/dev/null; then
11321          lt_cv_prog_compiler__b=yes
11322        fi
11323      else
11324        lt_cv_prog_compiler__b=yes
11325      fi
11326    fi
11327    $RM -r conftest*
11328    LDFLAGS=$save_LDFLAGS
11329
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11332 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11333
11334 if test yes = "$lt_cv_prog_compiler__b"; then
11335     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11336 else
11337     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11338 fi
11339
11340           ;;
11341         esac
11342       fi
11343       if test no = "$with_gnu_ld"; then
11344         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11345         hardcode_libdir_separator=:
11346
11347         case $host_cpu in
11348         hppa*64*|ia64*)
11349           hardcode_direct=no
11350           hardcode_shlibpath_var=no
11351           ;;
11352         *)
11353           hardcode_direct=yes
11354           hardcode_direct_absolute=yes
11355           export_dynamic_flag_spec='$wl-E'
11356
11357           # hardcode_minus_L: Not really in the search PATH,
11358           # but as the default location of the library.
11359           hardcode_minus_L=yes
11360           ;;
11361         esac
11362       fi
11363       ;;
11364
11365     irix5* | irix6* | nonstopux*)
11366       if test yes = "$GCC"; then
11367         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'
11368         # Try to use the -exported_symbol ld option, if it does not
11369         # work, assume that -exports_file does not work either and
11370         # implicitly export all symbols.
11371         # This should be the same for all languages, so no per-tag cache variable.
11372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11373 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11374 if ${lt_cv_irix_exported_symbol+:} false; then :
11375   $as_echo_n "(cached) " >&6
11376 else
11377   save_LDFLAGS=$LDFLAGS
11378            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11379            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h.  */
11381 int foo (void) { return 0; }
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384   lt_cv_irix_exported_symbol=yes
11385 else
11386   lt_cv_irix_exported_symbol=no
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext \
11389     conftest$ac_exeext conftest.$ac_ext
11390            LDFLAGS=$save_LDFLAGS
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11393 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11394         if test yes = "$lt_cv_irix_exported_symbol"; then
11395           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'
11396         fi
11397       else
11398         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'
11399         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'
11400       fi
11401       archive_cmds_need_lc='no'
11402       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11403       hardcode_libdir_separator=:
11404       inherit_rpath=yes
11405       link_all_deplibs=yes
11406       ;;
11407
11408     linux*)
11409       case $cc_basename in
11410       tcc*)
11411         # Fabrice Bellard et al's Tiny C Compiler
11412         ld_shlibs=yes
11413         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11414         ;;
11415       esac
11416       ;;
11417
11418     netbsd*)
11419       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11420         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11421       else
11422         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11423       fi
11424       hardcode_libdir_flag_spec='-R$libdir'
11425       hardcode_direct=yes
11426       hardcode_shlibpath_var=no
11427       ;;
11428
11429     newsos6)
11430       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11431       hardcode_direct=yes
11432       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11433       hardcode_libdir_separator=:
11434       hardcode_shlibpath_var=no
11435       ;;
11436
11437     *nto* | *qnx*)
11438       ;;
11439
11440     openbsd* | bitrig*)
11441       if test -f /usr/libexec/ld.so; then
11442         hardcode_direct=yes
11443         hardcode_shlibpath_var=no
11444         hardcode_direct_absolute=yes
11445         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11446           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11447           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11448           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11449           export_dynamic_flag_spec='$wl-E'
11450         else
11451           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11452           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11453         fi
11454       else
11455         ld_shlibs=no
11456       fi
11457       ;;
11458
11459     os2*)
11460       hardcode_libdir_flag_spec='-L$libdir'
11461       hardcode_minus_L=yes
11462       allow_undefined_flag=unsupported
11463       shrext_cmds=.dll
11464       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11465         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11466         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11467         $ECHO EXPORTS >> $output_objdir/$libname.def~
11468         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11469         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11470         emximp -o $lib $output_objdir/$libname.def'
11471       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11472         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11473         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11474         $ECHO EXPORTS >> $output_objdir/$libname.def~
11475         prefix_cmds="$SED"~
11476         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11477           prefix_cmds="$prefix_cmds -e 1d";
11478         fi~
11479         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11480         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11481         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11482         emximp -o $lib $output_objdir/$libname.def'
11483       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11484       enable_shared_with_static_runtimes=yes
11485       ;;
11486
11487     osf3*)
11488       if test yes = "$GCC"; then
11489         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11490         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'
11491       else
11492         allow_undefined_flag=' -expect_unresolved \*'
11493         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'
11494       fi
11495       archive_cmds_need_lc='no'
11496       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11497       hardcode_libdir_separator=:
11498       ;;
11499
11500     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11501       if test yes = "$GCC"; then
11502         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11503         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'
11504         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11505       else
11506         allow_undefined_flag=' -expect_unresolved \*'
11507         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'
11508         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~
11509           $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'
11510
11511         # Both c and cxx compiler support -rpath directly
11512         hardcode_libdir_flag_spec='-rpath $libdir'
11513       fi
11514       archive_cmds_need_lc='no'
11515       hardcode_libdir_separator=:
11516       ;;
11517
11518     solaris*)
11519       no_undefined_flag=' -z defs'
11520       if test yes = "$GCC"; then
11521         wlarc='$wl'
11522         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11523         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11524           $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'
11525       else
11526         case `$CC -V 2>&1` in
11527         *"Compilers 5.0"*)
11528           wlarc=''
11529           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11530           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11531             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11532           ;;
11533         *)
11534           wlarc='$wl'
11535           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11536           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11537             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11538           ;;
11539         esac
11540       fi
11541       hardcode_libdir_flag_spec='-R$libdir'
11542       hardcode_shlibpath_var=no
11543       case $host_os in
11544       solaris2.[0-5] | solaris2.[0-5].*) ;;
11545       *)
11546         # The compiler driver will combine and reorder linker options,
11547         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11548         # but is careful enough not to reorder.
11549         # Supported since Solaris 2.6 (maybe 2.5.1?)
11550         if test yes = "$GCC"; then
11551           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11552         else
11553           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11554         fi
11555         ;;
11556       esac
11557       link_all_deplibs=yes
11558       ;;
11559
11560     sunos4*)
11561       if test sequent = "$host_vendor"; then
11562         # Use $CC to link under sequent, because it throws in some extra .o
11563         # files that make .init and .fini sections work.
11564         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11565       else
11566         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11567       fi
11568       hardcode_libdir_flag_spec='-L$libdir'
11569       hardcode_direct=yes
11570       hardcode_minus_L=yes
11571       hardcode_shlibpath_var=no
11572       ;;
11573
11574     sysv4)
11575       case $host_vendor in
11576         sni)
11577           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11578           hardcode_direct=yes # is this really true???
11579         ;;
11580         siemens)
11581           ## LD is ld it makes a PLAMLIB
11582           ## CC just makes a GrossModule.
11583           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11584           reload_cmds='$CC -r -o $output$reload_objs'
11585           hardcode_direct=no
11586         ;;
11587         motorola)
11588           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11589           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11590         ;;
11591       esac
11592       runpath_var='LD_RUN_PATH'
11593       hardcode_shlibpath_var=no
11594       ;;
11595
11596     sysv4.3*)
11597       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11598       hardcode_shlibpath_var=no
11599       export_dynamic_flag_spec='-Bexport'
11600       ;;
11601
11602     sysv4*MP*)
11603       if test -d /usr/nec; then
11604         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11605         hardcode_shlibpath_var=no
11606         runpath_var=LD_RUN_PATH
11607         hardcode_runpath_var=yes
11608         ld_shlibs=yes
11609       fi
11610       ;;
11611
11612     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11613       no_undefined_flag='$wl-z,text'
11614       archive_cmds_need_lc=no
11615       hardcode_shlibpath_var=no
11616       runpath_var='LD_RUN_PATH'
11617
11618       if test yes = "$GCC"; then
11619         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11620         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11621       else
11622         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11623         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11624       fi
11625       ;;
11626
11627     sysv5* | sco3.2v5* | sco5v6*)
11628       # Note: We CANNOT use -z defs as we might desire, because we do not
11629       # link with -lc, and that would cause any symbols used from libc to
11630       # always be unresolved, which means just about no library would
11631       # ever link correctly.  If we're not using GNU ld we use -z text
11632       # though, which does catch some bad symbols but isn't as heavy-handed
11633       # as -z defs.
11634       no_undefined_flag='$wl-z,text'
11635       allow_undefined_flag='$wl-z,nodefs'
11636       archive_cmds_need_lc=no
11637       hardcode_shlibpath_var=no
11638       hardcode_libdir_flag_spec='$wl-R,$libdir'
11639       hardcode_libdir_separator=':'
11640       link_all_deplibs=yes
11641       export_dynamic_flag_spec='$wl-Bexport'
11642       runpath_var='LD_RUN_PATH'
11643
11644       if test yes = "$GCC"; then
11645         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11646         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11647       else
11648         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11649         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11650       fi
11651       ;;
11652
11653     uts4*)
11654       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11655       hardcode_libdir_flag_spec='-L$libdir'
11656       hardcode_shlibpath_var=no
11657       ;;
11658
11659     *)
11660       ld_shlibs=no
11661       ;;
11662     esac
11663
11664     if test sni = "$host_vendor"; then
11665       case $host in
11666       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11667         export_dynamic_flag_spec='$wl-Blargedynsym'
11668         ;;
11669       esac
11670     fi
11671   fi
11672
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11674 $as_echo "$ld_shlibs" >&6; }
11675 test no = "$ld_shlibs" && can_build_shared=no
11676
11677 with_gnu_ld=$with_gnu_ld
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693 #
11694 # Do we need to explicitly link libc?
11695 #
11696 case "x$archive_cmds_need_lc" in
11697 x|xyes)
11698   # Assume -lc should be added
11699   archive_cmds_need_lc=yes
11700
11701   if test yes,yes = "$GCC,$enable_shared"; then
11702     case $archive_cmds in
11703     *'~'*)
11704       # FIXME: we may have to deal with multi-command sequences.
11705       ;;
11706     '$CC '*)
11707       # Test whether the compiler implicitly links with -lc since on some
11708       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11709       # to ld, don't add -lc before -lgcc.
11710       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11711 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11712 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11713   $as_echo_n "(cached) " >&6
11714 else
11715   $RM conftest*
11716         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11717
11718         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11719   (eval $ac_compile) 2>&5
11720   ac_status=$?
11721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722   test $ac_status = 0; } 2>conftest.err; then
11723           soname=conftest
11724           lib=conftest
11725           libobjs=conftest.$ac_objext
11726           deplibs=
11727           wl=$lt_prog_compiler_wl
11728           pic_flag=$lt_prog_compiler_pic
11729           compiler_flags=-v
11730           linker_flags=-v
11731           verstring=
11732           output_objdir=.
11733           libname=conftest
11734           lt_save_allow_undefined_flag=$allow_undefined_flag
11735           allow_undefined_flag=
11736           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11737   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11738   ac_status=$?
11739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740   test $ac_status = 0; }
11741           then
11742             lt_cv_archive_cmds_need_lc=no
11743           else
11744             lt_cv_archive_cmds_need_lc=yes
11745           fi
11746           allow_undefined_flag=$lt_save_allow_undefined_flag
11747         else
11748           cat conftest.err 1>&5
11749         fi
11750         $RM conftest*
11751
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11754 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11755       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11756       ;;
11757     esac
11758   fi
11759   ;;
11760 esac
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11914 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11915
11916 if test yes = "$GCC"; then
11917   case $host_os in
11918     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11919     *) lt_awk_arg='/^libraries:/' ;;
11920   esac
11921   case $host_os in
11922     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11923     *) lt_sed_strip_eq='s|=/|/|g' ;;
11924   esac
11925   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11926   case $lt_search_path_spec in
11927   *\;*)
11928     # if the path contains ";" then we assume it to be the separator
11929     # otherwise default to the standard path separator (i.e. ":") - it is
11930     # assumed that no part of a normal pathname contains ";" but that should
11931     # okay in the real world where ";" in dirpaths is itself problematic.
11932     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11933     ;;
11934   *)
11935     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11936     ;;
11937   esac
11938   # Ok, now we have the path, separated by spaces, we can step through it
11939   # and add multilib dir if necessary...
11940   lt_tmp_lt_search_path_spec=
11941   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11942   # ...but if some path component already ends with the multilib dir we assume
11943   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11944   case "$lt_multi_os_dir; $lt_search_path_spec " in
11945   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11946     lt_multi_os_dir=
11947     ;;
11948   esac
11949   for lt_sys_path in $lt_search_path_spec; do
11950     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11951       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11952     elif test -n "$lt_multi_os_dir"; then
11953       test -d "$lt_sys_path" && \
11954         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11955     fi
11956   done
11957   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11958 BEGIN {RS = " "; FS = "/|\n";} {
11959   lt_foo = "";
11960   lt_count = 0;
11961   for (lt_i = NF; lt_i > 0; lt_i--) {
11962     if ($lt_i != "" && $lt_i != ".") {
11963       if ($lt_i == "..") {
11964         lt_count++;
11965       } else {
11966         if (lt_count == 0) {
11967           lt_foo = "/" $lt_i lt_foo;
11968         } else {
11969           lt_count--;
11970         }
11971       }
11972     }
11973   }
11974   if (lt_foo != "") { lt_freq[lt_foo]++; }
11975   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11976 }'`
11977   # AWK program above erroneously prepends '/' to C:/dos/paths
11978   # for these hosts.
11979   case $host_os in
11980     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11981       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11982   esac
11983   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11984 else
11985   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11986 fi
11987 library_names_spec=
11988 libname_spec='lib$name'
11989 soname_spec=
11990 shrext_cmds=.so
11991 postinstall_cmds=
11992 postuninstall_cmds=
11993 finish_cmds=
11994 finish_eval=
11995 shlibpath_var=
11996 shlibpath_overrides_runpath=unknown
11997 version_type=none
11998 dynamic_linker="$host_os ld.so"
11999 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12000 need_lib_prefix=unknown
12001 hardcode_into_libs=no
12002
12003 # when you set need_version to no, make sure it does not cause -set_version
12004 # flags to be left without arguments
12005 need_version=unknown
12006
12007
12008
12009 case $host_os in
12010 aix3*)
12011   version_type=linux # correct to gnu/linux during the next big refactor
12012   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12013   shlibpath_var=LIBPATH
12014
12015   # AIX 3 has no versioning support, so we append a major version to the name.
12016   soname_spec='$libname$release$shared_ext$major'
12017   ;;
12018
12019 aix[4-9]*)
12020   version_type=linux # correct to gnu/linux during the next big refactor
12021   need_lib_prefix=no
12022   need_version=no
12023   hardcode_into_libs=yes
12024   if test ia64 = "$host_cpu"; then
12025     # AIX 5 supports IA64
12026     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12027     shlibpath_var=LD_LIBRARY_PATH
12028   else
12029     # With GCC up to 2.95.x, collect2 would create an import file
12030     # for dependence libraries.  The import file would start with
12031     # the line '#! .'.  This would cause the generated library to
12032     # depend on '.', always an invalid library.  This was fixed in
12033     # development snapshots of GCC prior to 3.0.
12034     case $host_os in
12035       aix4 | aix4.[01] | aix4.[01].*)
12036       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12037            echo ' yes '
12038            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12039         :
12040       else
12041         can_build_shared=no
12042       fi
12043       ;;
12044     esac
12045     # Using Import Files as archive members, it is possible to support
12046     # filename-based versioning of shared library archives on AIX. While
12047     # this would work for both with and without runtime linking, it will
12048     # prevent static linking of such archives. So we do filename-based
12049     # shared library versioning with .so extension only, which is used
12050     # when both runtime linking and shared linking is enabled.
12051     # Unfortunately, runtime linking may impact performance, so we do
12052     # not want this to be the default eventually. Also, we use the
12053     # versioned .so libs for executables only if there is the -brtl
12054     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12055     # To allow for filename-based versioning support, we need to create
12056     # libNAME.so.V as an archive file, containing:
12057     # *) an Import File, referring to the versioned filename of the
12058     #    archive as well as the shared archive member, telling the
12059     #    bitwidth (32 or 64) of that shared object, and providing the
12060     #    list of exported symbols of that shared object, eventually
12061     #    decorated with the 'weak' keyword
12062     # *) the shared object with the F_LOADONLY flag set, to really avoid
12063     #    it being seen by the linker.
12064     # At run time we better use the real file rather than another symlink,
12065     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12066
12067     case $with_aix_soname,$aix_use_runtimelinking in
12068     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12069     # soname into executable. Probably we can add versioning support to
12070     # collect2, so additional links can be useful in future.
12071     aix,yes) # traditional libtool
12072       dynamic_linker='AIX unversionable lib.so'
12073       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12074       # instead of lib<name>.a to let people know that these are not
12075       # typical AIX shared libraries.
12076       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12077       ;;
12078     aix,no) # traditional AIX only
12079       dynamic_linker='AIX lib.a(lib.so.V)'
12080       # We preserve .a as extension for shared libraries through AIX4.2
12081       # and later when we are not doing run time linking.
12082       library_names_spec='$libname$release.a $libname.a'
12083       soname_spec='$libname$release$shared_ext$major'
12084       ;;
12085     svr4,*) # full svr4 only
12086       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12087       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12088       # We do not specify a path in Import Files, so LIBPATH fires.
12089       shlibpath_overrides_runpath=yes
12090       ;;
12091     *,yes) # both, prefer svr4
12092       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12093       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12094       # unpreferred sharedlib libNAME.a needs extra handling
12095       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"'
12096       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"'
12097       # We do not specify a path in Import Files, so LIBPATH fires.
12098       shlibpath_overrides_runpath=yes
12099       ;;
12100     *,no) # both, prefer aix
12101       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12102       library_names_spec='$libname$release.a $libname.a'
12103       soname_spec='$libname$release$shared_ext$major'
12104       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12105       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)'
12106       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"'
12107       ;;
12108     esac
12109     shlibpath_var=LIBPATH
12110   fi
12111   ;;
12112
12113 amigaos*)
12114   case $host_cpu in
12115   powerpc)
12116     # Since July 2007 AmigaOS4 officially supports .so libraries.
12117     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12118     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12119     ;;
12120   m68k)
12121     library_names_spec='$libname.ixlibrary $libname.a'
12122     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12123     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'
12124     ;;
12125   esac
12126   ;;
12127
12128 beos*)
12129   library_names_spec='$libname$shared_ext'
12130   dynamic_linker="$host_os ld.so"
12131   shlibpath_var=LIBRARY_PATH
12132   ;;
12133
12134 bsdi[45]*)
12135   version_type=linux # correct to gnu/linux during the next big refactor
12136   need_version=no
12137   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138   soname_spec='$libname$release$shared_ext$major'
12139   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12140   shlibpath_var=LD_LIBRARY_PATH
12141   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12142   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12143   # the default ld.so.conf also contains /usr/contrib/lib and
12144   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12145   # libtool to hard-code these into programs
12146   ;;
12147
12148 cygwin* | mingw* | pw32* | cegcc*)
12149   version_type=windows
12150   shrext_cmds=.dll
12151   need_version=no
12152   need_lib_prefix=no
12153
12154   case $GCC,$cc_basename in
12155   yes,*)
12156     # gcc
12157     library_names_spec='$libname.dll.a'
12158     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12159     postinstall_cmds='base_file=`basename \$file`~
12160       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12161       dldir=$destdir/`dirname \$dlpath`~
12162       test -d \$dldir || mkdir -p \$dldir~
12163       $install_prog $dir/$dlname \$dldir/$dlname~
12164       chmod a+x \$dldir/$dlname~
12165       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12166         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12167       fi'
12168     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12169       dlpath=$dir/\$dldll~
12170        $RM \$dlpath'
12171     shlibpath_overrides_runpath=yes
12172
12173     case $host_os in
12174     cygwin*)
12175       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12176       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12177
12178       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12179       ;;
12180     mingw* | cegcc*)
12181       # MinGW DLLs use traditional 'lib' prefix
12182       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12183       ;;
12184     pw32*)
12185       # pw32 DLLs use 'pw' prefix rather than 'lib'
12186       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12187       ;;
12188     esac
12189     dynamic_linker='Win32 ld.exe'
12190     ;;
12191
12192   *,cl*)
12193     # Native MSVC
12194     libname_spec='$name'
12195     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12196     library_names_spec='$libname.dll.lib'
12197
12198     case $build_os in
12199     mingw*)
12200       sys_lib_search_path_spec=
12201       lt_save_ifs=$IFS
12202       IFS=';'
12203       for lt_path in $LIB
12204       do
12205         IFS=$lt_save_ifs
12206         # Let DOS variable expansion print the short 8.3 style file name.
12207         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12208         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12209       done
12210       IFS=$lt_save_ifs
12211       # Convert to MSYS style.
12212       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12213       ;;
12214     cygwin*)
12215       # Convert to unix form, then to dos form, then back to unix form
12216       # but this time dos style (no spaces!) so that the unix form looks
12217       # like /cygdrive/c/PROGRA~1:/cygdr...
12218       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12219       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12220       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12221       ;;
12222     *)
12223       sys_lib_search_path_spec=$LIB
12224       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12225         # It is most probably a Windows format PATH.
12226         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12227       else
12228         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12229       fi
12230       # FIXME: find the short name or the path components, as spaces are
12231       # common. (e.g. "Program Files" -> "PROGRA~1")
12232       ;;
12233     esac
12234
12235     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12236     postinstall_cmds='base_file=`basename \$file`~
12237       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12238       dldir=$destdir/`dirname \$dlpath`~
12239       test -d \$dldir || mkdir -p \$dldir~
12240       $install_prog $dir/$dlname \$dldir/$dlname'
12241     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12242       dlpath=$dir/\$dldll~
12243        $RM \$dlpath'
12244     shlibpath_overrides_runpath=yes
12245     dynamic_linker='Win32 link.exe'
12246     ;;
12247
12248   *)
12249     # Assume MSVC wrapper
12250     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12251     dynamic_linker='Win32 ld.exe'
12252     ;;
12253   esac
12254   # FIXME: first we should search . and the directory the executable is in
12255   shlibpath_var=PATH
12256   ;;
12257
12258 darwin* | rhapsody*)
12259   dynamic_linker="$host_os dyld"
12260   version_type=darwin
12261   need_lib_prefix=no
12262   need_version=no
12263   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12264   soname_spec='$libname$release$major$shared_ext'
12265   shlibpath_overrides_runpath=yes
12266   shlibpath_var=DYLD_LIBRARY_PATH
12267   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12268
12269   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12270   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12271   ;;
12272
12273 dgux*)
12274   version_type=linux # correct to gnu/linux during the next big refactor
12275   need_lib_prefix=no
12276   need_version=no
12277   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12278   soname_spec='$libname$release$shared_ext$major'
12279   shlibpath_var=LD_LIBRARY_PATH
12280   ;;
12281
12282 freebsd* | dragonfly*)
12283   # DragonFly does not have aout.  When/if they implement a new
12284   # versioning mechanism, adjust this.
12285   if test -x /usr/bin/objformat; then
12286     objformat=`/usr/bin/objformat`
12287   else
12288     case $host_os in
12289     freebsd[23].*) objformat=aout ;;
12290     *) objformat=elf ;;
12291     esac
12292   fi
12293   version_type=freebsd-$objformat
12294   case $version_type in
12295     freebsd-elf*)
12296       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12297       soname_spec='$libname$release$shared_ext$major'
12298       need_version=no
12299       need_lib_prefix=no
12300       ;;
12301     freebsd-*)
12302       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12303       need_version=yes
12304       ;;
12305   esac
12306   shlibpath_var=LD_LIBRARY_PATH
12307   case $host_os in
12308   freebsd2.*)
12309     shlibpath_overrides_runpath=yes
12310     ;;
12311   freebsd3.[01]* | freebsdelf3.[01]*)
12312     shlibpath_overrides_runpath=yes
12313     hardcode_into_libs=yes
12314     ;;
12315   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12316   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12317     shlibpath_overrides_runpath=no
12318     hardcode_into_libs=yes
12319     ;;
12320   *) # from 4.6 on, and DragonFly
12321     shlibpath_overrides_runpath=yes
12322     hardcode_into_libs=yes
12323     ;;
12324   esac
12325   ;;
12326
12327 haiku*)
12328   version_type=linux # correct to gnu/linux during the next big refactor
12329   need_lib_prefix=no
12330   need_version=no
12331   dynamic_linker="$host_os runtime_loader"
12332   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12333   soname_spec='$libname$release$shared_ext$major'
12334   shlibpath_var=LIBRARY_PATH
12335   shlibpath_overrides_runpath=no
12336   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12337   hardcode_into_libs=yes
12338   ;;
12339
12340 hpux9* | hpux10* | hpux11*)
12341   # Give a soname corresponding to the major version so that dld.sl refuses to
12342   # link against other versions.
12343   version_type=sunos
12344   need_lib_prefix=no
12345   need_version=no
12346   case $host_cpu in
12347   ia64*)
12348     shrext_cmds='.so'
12349     hardcode_into_libs=yes
12350     dynamic_linker="$host_os dld.so"
12351     shlibpath_var=LD_LIBRARY_PATH
12352     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12353     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12354     soname_spec='$libname$release$shared_ext$major'
12355     if test 32 = "$HPUX_IA64_MODE"; then
12356       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12357       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12358     else
12359       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12360       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12361     fi
12362     ;;
12363   hppa*64*)
12364     shrext_cmds='.sl'
12365     hardcode_into_libs=yes
12366     dynamic_linker="$host_os dld.sl"
12367     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12368     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12369     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12370     soname_spec='$libname$release$shared_ext$major'
12371     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12372     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12373     ;;
12374   *)
12375     shrext_cmds='.sl'
12376     dynamic_linker="$host_os dld.sl"
12377     shlibpath_var=SHLIB_PATH
12378     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12379     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12380     soname_spec='$libname$release$shared_ext$major'
12381     ;;
12382   esac
12383   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12384   postinstall_cmds='chmod 555 $lib'
12385   # or fails outright, so override atomically:
12386   install_override_mode=555
12387   ;;
12388
12389 interix[3-9]*)
12390   version_type=linux # correct to gnu/linux during the next big refactor
12391   need_lib_prefix=no
12392   need_version=no
12393   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12394   soname_spec='$libname$release$shared_ext$major'
12395   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12396   shlibpath_var=LD_LIBRARY_PATH
12397   shlibpath_overrides_runpath=no
12398   hardcode_into_libs=yes
12399   ;;
12400
12401 irix5* | irix6* | nonstopux*)
12402   case $host_os in
12403     nonstopux*) version_type=nonstopux ;;
12404     *)
12405         if test yes = "$lt_cv_prog_gnu_ld"; then
12406                 version_type=linux # correct to gnu/linux during the next big refactor
12407         else
12408                 version_type=irix
12409         fi ;;
12410   esac
12411   need_lib_prefix=no
12412   need_version=no
12413   soname_spec='$libname$release$shared_ext$major'
12414   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12415   case $host_os in
12416   irix5* | nonstopux*)
12417     libsuff= shlibsuff=
12418     ;;
12419   *)
12420     case $LD in # libtool.m4 will add one of these switches to LD
12421     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12422       libsuff= shlibsuff= libmagic=32-bit;;
12423     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12424       libsuff=32 shlibsuff=N32 libmagic=N32;;
12425     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12426       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12427     *) libsuff= shlibsuff= libmagic=never-match;;
12428     esac
12429     ;;
12430   esac
12431   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12432   shlibpath_overrides_runpath=no
12433   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12434   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12435   hardcode_into_libs=yes
12436   ;;
12437
12438 # No shared lib support for Linux oldld, aout, or coff.
12439 linux*oldld* | linux*aout* | linux*coff*)
12440   dynamic_linker=no
12441   ;;
12442
12443 linux*android*)
12444   version_type=none # Android doesn't support versioned libraries.
12445   need_lib_prefix=no
12446   need_version=no
12447   library_names_spec='$libname$release$shared_ext'
12448   soname_spec='$libname$release$shared_ext'
12449   finish_cmds=
12450   shlibpath_var=LD_LIBRARY_PATH
12451   shlibpath_overrides_runpath=yes
12452
12453   # This implies no fast_install, which is unacceptable.
12454   # Some rework will be needed to allow for fast_install
12455   # before this can be enabled.
12456   hardcode_into_libs=yes
12457
12458   dynamic_linker='Android linker'
12459   # Don't embed -rpath directories since the linker doesn't support them.
12460   hardcode_libdir_flag_spec='-L$libdir'
12461   ;;
12462
12463 # This must be glibc/ELF.
12464 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12465   version_type=linux # correct to gnu/linux during the next big refactor
12466   need_lib_prefix=no
12467   need_version=no
12468   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12469   soname_spec='$libname$release$shared_ext$major'
12470   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12471   shlibpath_var=LD_LIBRARY_PATH
12472   shlibpath_overrides_runpath=no
12473
12474   # Some binutils ld are patched to set DT_RUNPATH
12475   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12476   $as_echo_n "(cached) " >&6
12477 else
12478   lt_cv_shlibpath_overrides_runpath=no
12479     save_LDFLAGS=$LDFLAGS
12480     save_libdir=$libdir
12481     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12482          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h.  */
12485
12486 int
12487 main ()
12488 {
12489
12490   ;
12491   return 0;
12492 }
12493 _ACEOF
12494 if ac_fn_c_try_link "$LINENO"; then :
12495   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12496   lt_cv_shlibpath_overrides_runpath=yes
12497 fi
12498 fi
12499 rm -f core conftest.err conftest.$ac_objext \
12500     conftest$ac_exeext conftest.$ac_ext
12501     LDFLAGS=$save_LDFLAGS
12502     libdir=$save_libdir
12503
12504 fi
12505
12506   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12507
12508   # This implies no fast_install, which is unacceptable.
12509   # Some rework will be needed to allow for fast_install
12510   # before this can be enabled.
12511   hardcode_into_libs=yes
12512
12513   # Ideally, we could use ldconfig to report *all* directores which are
12514   # searched for libraries, however this is still not possible.  Aside from not
12515   # being certain /sbin/ldconfig is available, command
12516   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12517   # even though it is searched at run-time.  Try to do the best guess by
12518   # appending ld.so.conf contents (and includes) to the search path.
12519   if test -f /etc/ld.so.conf; then
12520     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' ' '`
12521     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12522   fi
12523
12524   # We used to test for /lib/ld.so.1 and disable shared libraries on
12525   # powerpc, because MkLinux only supported shared libraries with the
12526   # GNU dynamic linker.  Since this was broken with cross compilers,
12527   # most powerpc-linux boxes support dynamic linking these days and
12528   # people can always --disable-shared, the test was removed, and we
12529   # assume the GNU/Linux dynamic linker is in use.
12530   dynamic_linker='GNU/Linux ld.so'
12531   ;;
12532
12533 netbsd*)
12534   version_type=sunos
12535   need_lib_prefix=no
12536   need_version=no
12537   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12538     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12539     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12540     dynamic_linker='NetBSD (a.out) ld.so'
12541   else
12542     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12543     soname_spec='$libname$release$shared_ext$major'
12544     dynamic_linker='NetBSD ld.elf_so'
12545   fi
12546   shlibpath_var=LD_LIBRARY_PATH
12547   shlibpath_overrides_runpath=yes
12548   hardcode_into_libs=yes
12549   ;;
12550
12551 newsos6)
12552   version_type=linux # correct to gnu/linux during the next big refactor
12553   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12554   shlibpath_var=LD_LIBRARY_PATH
12555   shlibpath_overrides_runpath=yes
12556   ;;
12557
12558 *nto* | *qnx*)
12559   version_type=qnx
12560   need_lib_prefix=no
12561   need_version=no
12562   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12563   soname_spec='$libname$release$shared_ext$major'
12564   shlibpath_var=LD_LIBRARY_PATH
12565   shlibpath_overrides_runpath=no
12566   hardcode_into_libs=yes
12567   dynamic_linker='ldqnx.so'
12568   ;;
12569
12570 openbsd* | bitrig*)
12571   version_type=sunos
12572   sys_lib_dlsearch_path_spec=/usr/lib
12573   need_lib_prefix=no
12574   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12575     need_version=no
12576   else
12577     need_version=yes
12578   fi
12579   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12580   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12581   shlibpath_var=LD_LIBRARY_PATH
12582   shlibpath_overrides_runpath=yes
12583   ;;
12584
12585 os2*)
12586   libname_spec='$name'
12587   version_type=windows
12588   shrext_cmds=.dll
12589   need_version=no
12590   need_lib_prefix=no
12591   # OS/2 can only load a DLL with a base name of 8 characters or less.
12592   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12593     v=$($ECHO $release$versuffix | tr -d .-);
12594     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12595     $ECHO $n$v`$shared_ext'
12596   library_names_spec='${libname}_dll.$libext'
12597   dynamic_linker='OS/2 ld.exe'
12598   shlibpath_var=BEGINLIBPATH
12599   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12600   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12601   postinstall_cmds='base_file=`basename \$file`~
12602     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12603     dldir=$destdir/`dirname \$dlpath`~
12604     test -d \$dldir || mkdir -p \$dldir~
12605     $install_prog $dir/$dlname \$dldir/$dlname~
12606     chmod a+x \$dldir/$dlname~
12607     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12608       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12609     fi'
12610   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12611     dlpath=$dir/\$dldll~
12612     $RM \$dlpath'
12613   ;;
12614
12615 osf3* | osf4* | osf5*)
12616   version_type=osf
12617   need_lib_prefix=no
12618   need_version=no
12619   soname_spec='$libname$release$shared_ext$major'
12620   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12621   shlibpath_var=LD_LIBRARY_PATH
12622   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12623   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12624   ;;
12625
12626 rdos*)
12627   dynamic_linker=no
12628   ;;
12629
12630 solaris*)
12631   version_type=linux # correct to gnu/linux during the next big refactor
12632   need_lib_prefix=no
12633   need_version=no
12634   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12635   soname_spec='$libname$release$shared_ext$major'
12636   shlibpath_var=LD_LIBRARY_PATH
12637   shlibpath_overrides_runpath=yes
12638   hardcode_into_libs=yes
12639   # ldd complains unless libraries are executable
12640   postinstall_cmds='chmod +x $lib'
12641   ;;
12642
12643 sunos4*)
12644   version_type=sunos
12645   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12646   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12647   shlibpath_var=LD_LIBRARY_PATH
12648   shlibpath_overrides_runpath=yes
12649   if test yes = "$with_gnu_ld"; then
12650     need_lib_prefix=no
12651   fi
12652   need_version=yes
12653   ;;
12654
12655 sysv4 | sysv4.3*)
12656   version_type=linux # correct to gnu/linux during the next big refactor
12657   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12658   soname_spec='$libname$release$shared_ext$major'
12659   shlibpath_var=LD_LIBRARY_PATH
12660   case $host_vendor in
12661     sni)
12662       shlibpath_overrides_runpath=no
12663       need_lib_prefix=no
12664       runpath_var=LD_RUN_PATH
12665       ;;
12666     siemens)
12667       need_lib_prefix=no
12668       ;;
12669     motorola)
12670       need_lib_prefix=no
12671       need_version=no
12672       shlibpath_overrides_runpath=no
12673       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12674       ;;
12675   esac
12676   ;;
12677
12678 sysv4*MP*)
12679   if test -d /usr/nec; then
12680     version_type=linux # correct to gnu/linux during the next big refactor
12681     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12682     soname_spec='$libname$shared_ext.$major'
12683     shlibpath_var=LD_LIBRARY_PATH
12684   fi
12685   ;;
12686
12687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12688   version_type=sco
12689   need_lib_prefix=no
12690   need_version=no
12691   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12692   soname_spec='$libname$release$shared_ext$major'
12693   shlibpath_var=LD_LIBRARY_PATH
12694   shlibpath_overrides_runpath=yes
12695   hardcode_into_libs=yes
12696   if test yes = "$with_gnu_ld"; then
12697     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12698   else
12699     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12700     case $host_os in
12701       sco3.2v5*)
12702         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12703         ;;
12704     esac
12705   fi
12706   sys_lib_dlsearch_path_spec='/usr/lib'
12707   ;;
12708
12709 tpf*)
12710   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12711   version_type=linux # correct to gnu/linux during the next big refactor
12712   need_lib_prefix=no
12713   need_version=no
12714   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12715   shlibpath_var=LD_LIBRARY_PATH
12716   shlibpath_overrides_runpath=no
12717   hardcode_into_libs=yes
12718   ;;
12719
12720 uts4*)
12721   version_type=linux # correct to gnu/linux during the next big refactor
12722   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12723   soname_spec='$libname$release$shared_ext$major'
12724   shlibpath_var=LD_LIBRARY_PATH
12725   ;;
12726
12727 *)
12728   dynamic_linker=no
12729   ;;
12730 esac
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12732 $as_echo "$dynamic_linker" >&6; }
12733 test no = "$dynamic_linker" && can_build_shared=no
12734
12735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12736 if test yes = "$GCC"; then
12737   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12738 fi
12739
12740 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12741   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12742 fi
12743
12744 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12745   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12746 fi
12747
12748 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12749 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12750
12751 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12752 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12753
12754 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12755 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12854 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12855 hardcode_action=
12856 if test -n "$hardcode_libdir_flag_spec" ||
12857    test -n "$runpath_var" ||
12858    test yes = "$hardcode_automatic"; then
12859
12860   # We can hardcode non-existent directories.
12861   if test no != "$hardcode_direct" &&
12862      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12863      # have to relink, otherwise we might link with an installed library
12864      # when we should be linking with a yet-to-be-installed one
12865      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12866      test no != "$hardcode_minus_L"; then
12867     # Linking always hardcodes the temporary library directory.
12868     hardcode_action=relink
12869   else
12870     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12871     hardcode_action=immediate
12872   fi
12873 else
12874   # We cannot hardcode anything, or else we can only hardcode existing
12875   # directories.
12876   hardcode_action=unsupported
12877 fi
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12879 $as_echo "$hardcode_action" >&6; }
12880
12881 if test relink = "$hardcode_action" ||
12882    test yes = "$inherit_rpath"; then
12883   # Fast installation is not supported
12884   enable_fast_install=no
12885 elif test yes = "$shlibpath_overrides_runpath" ||
12886      test no = "$enable_shared"; then
12887   # Fast installation is not necessary
12888   enable_fast_install=needless
12889 fi
12890
12891
12892
12893
12894
12895
12896   if test yes != "$enable_dlopen"; then
12897   enable_dlopen=unknown
12898   enable_dlopen_self=unknown
12899   enable_dlopen_self_static=unknown
12900 else
12901   lt_cv_dlopen=no
12902   lt_cv_dlopen_libs=
12903
12904   case $host_os in
12905   beos*)
12906     lt_cv_dlopen=load_add_on
12907     lt_cv_dlopen_libs=
12908     lt_cv_dlopen_self=yes
12909     ;;
12910
12911   mingw* | pw32* | cegcc*)
12912     lt_cv_dlopen=LoadLibrary
12913     lt_cv_dlopen_libs=
12914     ;;
12915
12916   cygwin*)
12917     lt_cv_dlopen=dlopen
12918     lt_cv_dlopen_libs=
12919     ;;
12920
12921   darwin*)
12922     # if libdl is installed we need to link against it
12923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12924 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12925 if ${ac_cv_lib_dl_dlopen+:} false; then :
12926   $as_echo_n "(cached) " >&6
12927 else
12928   ac_check_lib_save_LIBS=$LIBS
12929 LIBS="-ldl  $LIBS"
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h.  */
12932
12933 /* Override any GCC internal prototype to avoid an error.
12934    Use char because int might match the return type of a GCC
12935    builtin and then its argument prototype would still apply.  */
12936 #ifdef __cplusplus
12937 extern "C"
12938 #endif
12939 char dlopen ();
12940 int
12941 main ()
12942 {
12943 return dlopen ();
12944   ;
12945   return 0;
12946 }
12947 _ACEOF
12948 if ac_fn_c_try_link "$LINENO"; then :
12949   ac_cv_lib_dl_dlopen=yes
12950 else
12951   ac_cv_lib_dl_dlopen=no
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext \
12954     conftest$ac_exeext conftest.$ac_ext
12955 LIBS=$ac_check_lib_save_LIBS
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12958 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12959 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12960   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12961 else
12962
12963     lt_cv_dlopen=dyld
12964     lt_cv_dlopen_libs=
12965     lt_cv_dlopen_self=yes
12966
12967 fi
12968
12969     ;;
12970
12971   tpf*)
12972     # Don't try to run any link tests for TPF.  We know it's impossible
12973     # because TPF is a cross-compiler, and we know how we open DSOs.
12974     lt_cv_dlopen=dlopen
12975     lt_cv_dlopen_libs=
12976     lt_cv_dlopen_self=no
12977     ;;
12978
12979   *)
12980     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12981 if test "x$ac_cv_func_shl_load" = xyes; then :
12982   lt_cv_dlopen=shl_load
12983 else
12984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12985 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12986 if ${ac_cv_lib_dld_shl_load+:} false; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   ac_check_lib_save_LIBS=$LIBS
12990 LIBS="-ldld  $LIBS"
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h.  */
12993
12994 /* Override any GCC internal prototype to avoid an error.
12995    Use char because int might match the return type of a GCC
12996    builtin and then its argument prototype would still apply.  */
12997 #ifdef __cplusplus
12998 extern "C"
12999 #endif
13000 char shl_load ();
13001 int
13002 main ()
13003 {
13004 return shl_load ();
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 if ac_fn_c_try_link "$LINENO"; then :
13010   ac_cv_lib_dld_shl_load=yes
13011 else
13012   ac_cv_lib_dld_shl_load=no
13013 fi
13014 rm -f core conftest.err conftest.$ac_objext \
13015     conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13019 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13020 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13021   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13022 else
13023   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13024 if test "x$ac_cv_func_dlopen" = xyes; then :
13025   lt_cv_dlopen=dlopen
13026 else
13027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13028 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13029 if ${ac_cv_lib_dl_dlopen+:} false; then :
13030   $as_echo_n "(cached) " >&6
13031 else
13032   ac_check_lib_save_LIBS=$LIBS
13033 LIBS="-ldl  $LIBS"
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h.  */
13036
13037 /* Override any GCC internal prototype to avoid an error.
13038    Use char because int might match the return type of a GCC
13039    builtin and then its argument prototype would still apply.  */
13040 #ifdef __cplusplus
13041 extern "C"
13042 #endif
13043 char dlopen ();
13044 int
13045 main ()
13046 {
13047 return dlopen ();
13048   ;
13049   return 0;
13050 }
13051 _ACEOF
13052 if ac_fn_c_try_link "$LINENO"; then :
13053   ac_cv_lib_dl_dlopen=yes
13054 else
13055   ac_cv_lib_dl_dlopen=no
13056 fi
13057 rm -f core conftest.err conftest.$ac_objext \
13058     conftest$ac_exeext conftest.$ac_ext
13059 LIBS=$ac_check_lib_save_LIBS
13060 fi
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13062 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13063 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13064   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13065 else
13066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13067 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13068 if ${ac_cv_lib_svld_dlopen+:} false; then :
13069   $as_echo_n "(cached) " >&6
13070 else
13071   ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lsvld  $LIBS"
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h.  */
13075
13076 /* Override any GCC internal prototype to avoid an error.
13077    Use char because int might match the return type of a GCC
13078    builtin and then its argument prototype would still apply.  */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 char dlopen ();
13083 int
13084 main ()
13085 {
13086 return dlopen ();
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 if ac_fn_c_try_link "$LINENO"; then :
13092   ac_cv_lib_svld_dlopen=yes
13093 else
13094   ac_cv_lib_svld_dlopen=no
13095 fi
13096 rm -f core conftest.err conftest.$ac_objext \
13097     conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13101 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13102 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13103   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13104 else
13105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13106 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13107 if ${ac_cv_lib_dld_dld_link+:} false; then :
13108   $as_echo_n "(cached) " >&6
13109 else
13110   ac_check_lib_save_LIBS=$LIBS
13111 LIBS="-ldld  $LIBS"
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h.  */
13114
13115 /* Override any GCC internal prototype to avoid an error.
13116    Use char because int might match the return type of a GCC
13117    builtin and then its argument prototype would still apply.  */
13118 #ifdef __cplusplus
13119 extern "C"
13120 #endif
13121 char dld_link ();
13122 int
13123 main ()
13124 {
13125 return dld_link ();
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"; then :
13131   ac_cv_lib_dld_dld_link=yes
13132 else
13133   ac_cv_lib_dld_dld_link=no
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext \
13136     conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13138 fi
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13140 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13141 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13142   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13143 fi
13144
13145
13146 fi
13147
13148
13149 fi
13150
13151
13152 fi
13153
13154
13155 fi
13156
13157
13158 fi
13159
13160     ;;
13161   esac
13162
13163   if test no = "$lt_cv_dlopen"; then
13164     enable_dlopen=no
13165   else
13166     enable_dlopen=yes
13167   fi
13168
13169   case $lt_cv_dlopen in
13170   dlopen)
13171     save_CPPFLAGS=$CPPFLAGS
13172     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13173
13174     save_LDFLAGS=$LDFLAGS
13175     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13176
13177     save_LIBS=$LIBS
13178     LIBS="$lt_cv_dlopen_libs $LIBS"
13179
13180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13181 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13182 if ${lt_cv_dlopen_self+:} false; then :
13183   $as_echo_n "(cached) " >&6
13184 else
13185           if test yes = "$cross_compiling"; then :
13186   lt_cv_dlopen_self=cross
13187 else
13188   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13189   lt_status=$lt_dlunknown
13190   cat > conftest.$ac_ext <<_LT_EOF
13191 #line $LINENO "configure"
13192 #include "confdefs.h"
13193
13194 #if HAVE_DLFCN_H
13195 #include <dlfcn.h>
13196 #endif
13197
13198 #include <stdio.h>
13199
13200 #ifdef RTLD_GLOBAL
13201 #  define LT_DLGLOBAL           RTLD_GLOBAL
13202 #else
13203 #  ifdef DL_GLOBAL
13204 #    define LT_DLGLOBAL         DL_GLOBAL
13205 #  else
13206 #    define LT_DLGLOBAL         0
13207 #  endif
13208 #endif
13209
13210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13211    find out it does not work in some platform. */
13212 #ifndef LT_DLLAZY_OR_NOW
13213 #  ifdef RTLD_LAZY
13214 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13215 #  else
13216 #    ifdef DL_LAZY
13217 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13218 #    else
13219 #      ifdef RTLD_NOW
13220 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13221 #      else
13222 #        ifdef DL_NOW
13223 #          define LT_DLLAZY_OR_NOW      DL_NOW
13224 #        else
13225 #          define LT_DLLAZY_OR_NOW      0
13226 #        endif
13227 #      endif
13228 #    endif
13229 #  endif
13230 #endif
13231
13232 /* When -fvisibility=hidden is used, assume the code has been annotated
13233    correspondingly for the symbols needed.  */
13234 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13235 int fnord () __attribute__((visibility("default")));
13236 #endif
13237
13238 int fnord () { return 42; }
13239 int main ()
13240 {
13241   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13242   int status = $lt_dlunknown;
13243
13244   if (self)
13245     {
13246       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13247       else
13248         {
13249           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13250           else puts (dlerror ());
13251         }
13252       /* dlclose (self); */
13253     }
13254   else
13255     puts (dlerror ());
13256
13257   return status;
13258 }
13259 _LT_EOF
13260   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13261   (eval $ac_link) 2>&5
13262   ac_status=$?
13263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13264   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13265     (./conftest; exit; ) >&5 2>/dev/null
13266     lt_status=$?
13267     case x$lt_status in
13268       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13269       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13270       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13271     esac
13272   else :
13273     # compilation failed
13274     lt_cv_dlopen_self=no
13275   fi
13276 fi
13277 rm -fr conftest*
13278
13279
13280 fi
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13282 $as_echo "$lt_cv_dlopen_self" >&6; }
13283
13284     if test yes = "$lt_cv_dlopen_self"; then
13285       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13286       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13287 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13288 if ${lt_cv_dlopen_self_static+:} false; then :
13289   $as_echo_n "(cached) " >&6
13290 else
13291           if test yes = "$cross_compiling"; then :
13292   lt_cv_dlopen_self_static=cross
13293 else
13294   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13295   lt_status=$lt_dlunknown
13296   cat > conftest.$ac_ext <<_LT_EOF
13297 #line $LINENO "configure"
13298 #include "confdefs.h"
13299
13300 #if HAVE_DLFCN_H
13301 #include <dlfcn.h>
13302 #endif
13303
13304 #include <stdio.h>
13305
13306 #ifdef RTLD_GLOBAL
13307 #  define LT_DLGLOBAL           RTLD_GLOBAL
13308 #else
13309 #  ifdef DL_GLOBAL
13310 #    define LT_DLGLOBAL         DL_GLOBAL
13311 #  else
13312 #    define LT_DLGLOBAL         0
13313 #  endif
13314 #endif
13315
13316 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13317    find out it does not work in some platform. */
13318 #ifndef LT_DLLAZY_OR_NOW
13319 #  ifdef RTLD_LAZY
13320 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13321 #  else
13322 #    ifdef DL_LAZY
13323 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13324 #    else
13325 #      ifdef RTLD_NOW
13326 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13327 #      else
13328 #        ifdef DL_NOW
13329 #          define LT_DLLAZY_OR_NOW      DL_NOW
13330 #        else
13331 #          define LT_DLLAZY_OR_NOW      0
13332 #        endif
13333 #      endif
13334 #    endif
13335 #  endif
13336 #endif
13337
13338 /* When -fvisibility=hidden is used, assume the code has been annotated
13339    correspondingly for the symbols needed.  */
13340 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13341 int fnord () __attribute__((visibility("default")));
13342 #endif
13343
13344 int fnord () { return 42; }
13345 int main ()
13346 {
13347   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13348   int status = $lt_dlunknown;
13349
13350   if (self)
13351     {
13352       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13353       else
13354         {
13355           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13356           else puts (dlerror ());
13357         }
13358       /* dlclose (self); */
13359     }
13360   else
13361     puts (dlerror ());
13362
13363   return status;
13364 }
13365 _LT_EOF
13366   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13367   (eval $ac_link) 2>&5
13368   ac_status=$?
13369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13370   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13371     (./conftest; exit; ) >&5 2>/dev/null
13372     lt_status=$?
13373     case x$lt_status in
13374       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13375       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13376       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13377     esac
13378   else :
13379     # compilation failed
13380     lt_cv_dlopen_self_static=no
13381   fi
13382 fi
13383 rm -fr conftest*
13384
13385
13386 fi
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13388 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13389     fi
13390
13391     CPPFLAGS=$save_CPPFLAGS
13392     LDFLAGS=$save_LDFLAGS
13393     LIBS=$save_LIBS
13394     ;;
13395   esac
13396
13397   case $lt_cv_dlopen_self in
13398   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13399   *) enable_dlopen_self=unknown ;;
13400   esac
13401
13402   case $lt_cv_dlopen_self_static in
13403   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13404   *) enable_dlopen_self_static=unknown ;;
13405   esac
13406 fi
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424 striplib=
13425 old_striplib=
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13427 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13428 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13429   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13430   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13432 $as_echo "yes" >&6; }
13433 else
13434 # FIXME - insert some real tests, host_os isn't really good enough
13435   case $host_os in
13436   darwin*)
13437     if test -n "$STRIP"; then
13438       striplib="$STRIP -x"
13439       old_striplib="$STRIP -S"
13440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13441 $as_echo "yes" >&6; }
13442     else
13443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444 $as_echo "no" >&6; }
13445     fi
13446     ;;
13447   *)
13448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13450     ;;
13451   esac
13452 fi
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465   # Report what library types will actually be built
13466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13469 $as_echo "$can_build_shared" >&6; }
13470
13471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13472 $as_echo_n "checking whether to build shared libraries... " >&6; }
13473   test no = "$can_build_shared" && enable_shared=no
13474
13475   # On AIX, shared libraries and static libraries use the same namespace, and
13476   # are all built from PIC.
13477   case $host_os in
13478   aix3*)
13479     test yes = "$enable_shared" && enable_static=no
13480     if test -n "$RANLIB"; then
13481       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13482       postinstall_cmds='$RANLIB $lib'
13483     fi
13484     ;;
13485
13486   aix[4-9]*)
13487     if test ia64 != "$host_cpu"; then
13488       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13489       yes,aix,yes) ;;                   # shared object as lib.so file only
13490       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13491       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13492       esac
13493     fi
13494     ;;
13495   esac
13496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13497 $as_echo "$enable_shared" >&6; }
13498
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13500 $as_echo_n "checking whether to build static libraries... " >&6; }
13501   # Make sure either enable_shared or enable_static is yes.
13502   test yes = "$enable_shared" || enable_static=yes
13503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13504 $as_echo "$enable_static" >&6; }
13505
13506
13507
13508
13509 fi
13510 ac_ext=c
13511 ac_cpp='$CPP $CPPFLAGS'
13512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13515
13516 CC=$lt_save_CC
13517
13518       if test -n "$CXX" && ( test no != "$CXX" &&
13519     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13520     (test g++ != "$CXX"))); then
13521   ac_ext=cpp
13522 ac_cpp='$CXXCPP $CPPFLAGS'
13523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13527 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13528 if test -z "$CXXCPP"; then
13529   if ${ac_cv_prog_CXXCPP+:} false; then :
13530   $as_echo_n "(cached) " >&6
13531 else
13532       # Double quotes because CXXCPP needs to be expanded
13533     for CXXCPP in "$CXX -E" "/lib/cpp"
13534     do
13535       ac_preproc_ok=false
13536 for ac_cxx_preproc_warn_flag in '' yes
13537 do
13538   # Use a header file that comes with gcc, so configuring glibc
13539   # with a fresh cross-compiler works.
13540   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13541   # <limits.h> exists even on freestanding compilers.
13542   # On the NeXT, cc -E runs the code through the compiler's parser,
13543   # not just through cpp. "Syntax error" is here to catch this case.
13544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h.  */
13546 #ifdef __STDC__
13547 # include <limits.h>
13548 #else
13549 # include <assert.h>
13550 #endif
13551                      Syntax error
13552 _ACEOF
13553 if ac_fn_cxx_try_cpp "$LINENO"; then :
13554
13555 else
13556   # Broken: fails on valid input.
13557 continue
13558 fi
13559 rm -f conftest.err conftest.i conftest.$ac_ext
13560
13561   # OK, works on sane cases.  Now check whether nonexistent headers
13562   # can be detected and how.
13563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h.  */
13565 #include <ac_nonexistent.h>
13566 _ACEOF
13567 if ac_fn_cxx_try_cpp "$LINENO"; then :
13568   # Broken: success on invalid input.
13569 continue
13570 else
13571   # Passes both tests.
13572 ac_preproc_ok=:
13573 break
13574 fi
13575 rm -f conftest.err conftest.i conftest.$ac_ext
13576
13577 done
13578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13579 rm -f conftest.i conftest.err conftest.$ac_ext
13580 if $ac_preproc_ok; then :
13581   break
13582 fi
13583
13584     done
13585     ac_cv_prog_CXXCPP=$CXXCPP
13586
13587 fi
13588   CXXCPP=$ac_cv_prog_CXXCPP
13589 else
13590   ac_cv_prog_CXXCPP=$CXXCPP
13591 fi
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13593 $as_echo "$CXXCPP" >&6; }
13594 ac_preproc_ok=false
13595 for ac_cxx_preproc_warn_flag in '' yes
13596 do
13597   # Use a header file that comes with gcc, so configuring glibc
13598   # with a fresh cross-compiler works.
13599   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13600   # <limits.h> exists even on freestanding compilers.
13601   # On the NeXT, cc -E runs the code through the compiler's parser,
13602   # not just through cpp. "Syntax error" is here to catch this case.
13603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h.  */
13605 #ifdef __STDC__
13606 # include <limits.h>
13607 #else
13608 # include <assert.h>
13609 #endif
13610                      Syntax error
13611 _ACEOF
13612 if ac_fn_cxx_try_cpp "$LINENO"; then :
13613
13614 else
13615   # Broken: fails on valid input.
13616 continue
13617 fi
13618 rm -f conftest.err conftest.i conftest.$ac_ext
13619
13620   # OK, works on sane cases.  Now check whether nonexistent headers
13621   # can be detected and how.
13622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h.  */
13624 #include <ac_nonexistent.h>
13625 _ACEOF
13626 if ac_fn_cxx_try_cpp "$LINENO"; then :
13627   # Broken: success on invalid input.
13628 continue
13629 else
13630   # Passes both tests.
13631 ac_preproc_ok=:
13632 break
13633 fi
13634 rm -f conftest.err conftest.i conftest.$ac_ext
13635
13636 done
13637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13638 rm -f conftest.i conftest.err conftest.$ac_ext
13639 if $ac_preproc_ok; then :
13640
13641 else
13642   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13644 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13645 See \`config.log' for more details" "$LINENO" 5; }
13646 fi
13647
13648 ac_ext=c
13649 ac_cpp='$CPP $CPPFLAGS'
13650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13653
13654 else
13655   _lt_caught_CXX_error=yes
13656 fi
13657
13658 ac_ext=cpp
13659 ac_cpp='$CXXCPP $CPPFLAGS'
13660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13663
13664 archive_cmds_need_lc_CXX=no
13665 allow_undefined_flag_CXX=
13666 always_export_symbols_CXX=no
13667 archive_expsym_cmds_CXX=
13668 compiler_needs_object_CXX=no
13669 export_dynamic_flag_spec_CXX=
13670 hardcode_direct_CXX=no
13671 hardcode_direct_absolute_CXX=no
13672 hardcode_libdir_flag_spec_CXX=
13673 hardcode_libdir_separator_CXX=
13674 hardcode_minus_L_CXX=no
13675 hardcode_shlibpath_var_CXX=unsupported
13676 hardcode_automatic_CXX=no
13677 inherit_rpath_CXX=no
13678 module_cmds_CXX=
13679 module_expsym_cmds_CXX=
13680 link_all_deplibs_CXX=unknown
13681 old_archive_cmds_CXX=$old_archive_cmds
13682 reload_flag_CXX=$reload_flag
13683 reload_cmds_CXX=$reload_cmds
13684 no_undefined_flag_CXX=
13685 whole_archive_flag_spec_CXX=
13686 enable_shared_with_static_runtimes_CXX=no
13687
13688 # Source file extension for C++ test sources.
13689 ac_ext=cpp
13690
13691 # Object file extension for compiled C++ test sources.
13692 objext=o
13693 objext_CXX=$objext
13694
13695 # No sense in running all these tests if we already determined that
13696 # the CXX compiler isn't working.  Some variables (like enable_shared)
13697 # are currently assumed to apply to all compilers on this platform,
13698 # and will be corrupted by setting them based on a non-working compiler.
13699 if test yes != "$_lt_caught_CXX_error"; then
13700   # Code to be used in simple compile tests
13701   lt_simple_compile_test_code="int some_variable = 0;"
13702
13703   # Code to be used in simple link tests
13704   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13705
13706   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13707
13708
13709
13710
13711
13712
13713 # If no C compiler was specified, use CC.
13714 LTCC=${LTCC-"$CC"}
13715
13716 # If no C compiler flags were specified, use CFLAGS.
13717 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13718
13719 # Allow CC to be a program name with arguments.
13720 compiler=$CC
13721
13722
13723   # save warnings/boilerplate of simple test code
13724   ac_outfile=conftest.$ac_objext
13725 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13726 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13727 _lt_compiler_boilerplate=`cat conftest.err`
13728 $RM conftest*
13729
13730   ac_outfile=conftest.$ac_objext
13731 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13732 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13733 _lt_linker_boilerplate=`cat conftest.err`
13734 $RM -r conftest*
13735
13736
13737   # Allow CC to be a program name with arguments.
13738   lt_save_CC=$CC
13739   lt_save_CFLAGS=$CFLAGS
13740   lt_save_LD=$LD
13741   lt_save_GCC=$GCC
13742   GCC=$GXX
13743   lt_save_with_gnu_ld=$with_gnu_ld
13744   lt_save_path_LD=$lt_cv_path_LD
13745   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13746     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13747   else
13748     $as_unset lt_cv_prog_gnu_ld
13749   fi
13750   if test -n "${lt_cv_path_LDCXX+set}"; then
13751     lt_cv_path_LD=$lt_cv_path_LDCXX
13752   else
13753     $as_unset lt_cv_path_LD
13754   fi
13755   test -z "${LDCXX+set}" || LD=$LDCXX
13756   CC=${CXX-"c++"}
13757   CFLAGS=$CXXFLAGS
13758   compiler=$CC
13759   compiler_CXX=$CC
13760   func_cc_basename $compiler
13761 cc_basename=$func_cc_basename_result
13762
13763
13764   if test -n "$compiler"; then
13765     # We don't want -fno-exception when compiling C++ code, so set the
13766     # no_builtin_flag separately
13767     if test yes = "$GXX"; then
13768       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13769     else
13770       lt_prog_compiler_no_builtin_flag_CXX=
13771     fi
13772
13773     if test yes = "$GXX"; then
13774       # Set up default GNU C++ configuration
13775
13776
13777
13778 # Check whether --with-gnu-ld was given.
13779 if test "${with_gnu_ld+set}" = set; then :
13780   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13781 else
13782   with_gnu_ld=no
13783 fi
13784
13785 ac_prog=ld
13786 if test yes = "$GCC"; then
13787   # Check if gcc -print-prog-name=ld gives a path.
13788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13789 $as_echo_n "checking for ld used by $CC... " >&6; }
13790   case $host in
13791   *-*-mingw*)
13792     # gcc leaves a trailing carriage return, which upsets mingw
13793     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13794   *)
13795     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13796   esac
13797   case $ac_prog in
13798     # Accept absolute paths.
13799     [\\/]* | ?:[\\/]*)
13800       re_direlt='/[^/][^/]*/\.\./'
13801       # Canonicalize the pathname of ld
13802       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13803       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13804         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13805       done
13806       test -z "$LD" && LD=$ac_prog
13807       ;;
13808   "")
13809     # If it fails, then pretend we aren't using GCC.
13810     ac_prog=ld
13811     ;;
13812   *)
13813     # If it is relative, then search for the first ld in PATH.
13814     with_gnu_ld=unknown
13815     ;;
13816   esac
13817 elif test yes = "$with_gnu_ld"; then
13818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13819 $as_echo_n "checking for GNU ld... " >&6; }
13820 else
13821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13822 $as_echo_n "checking for non-GNU ld... " >&6; }
13823 fi
13824 if ${lt_cv_path_LD+:} false; then :
13825   $as_echo_n "(cached) " >&6
13826 else
13827   if test -z "$LD"; then
13828   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13829   for ac_dir in $PATH; do
13830     IFS=$lt_save_ifs
13831     test -z "$ac_dir" && ac_dir=.
13832     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13833       lt_cv_path_LD=$ac_dir/$ac_prog
13834       # Check to see if the program is GNU ld.  I'd rather use --version,
13835       # but apparently some variants of GNU ld only accept -v.
13836       # Break only if it was the GNU/non-GNU ld that we prefer.
13837       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13838       *GNU* | *'with BFD'*)
13839         test no != "$with_gnu_ld" && break
13840         ;;
13841       *)
13842         test yes != "$with_gnu_ld" && break
13843         ;;
13844       esac
13845     fi
13846   done
13847   IFS=$lt_save_ifs
13848 else
13849   lt_cv_path_LD=$LD # Let the user override the test with a path.
13850 fi
13851 fi
13852
13853 LD=$lt_cv_path_LD
13854 if test -n "$LD"; then
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13856 $as_echo "$LD" >&6; }
13857 else
13858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13860 fi
13861 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13864 if ${lt_cv_prog_gnu_ld+:} false; then :
13865   $as_echo_n "(cached) " >&6
13866 else
13867   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13868 case `$LD -v 2>&1 </dev/null` in
13869 *GNU* | *'with BFD'*)
13870   lt_cv_prog_gnu_ld=yes
13871   ;;
13872 *)
13873   lt_cv_prog_gnu_ld=no
13874   ;;
13875 esac
13876 fi
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13879 with_gnu_ld=$lt_cv_prog_gnu_ld
13880
13881
13882
13883
13884
13885
13886
13887       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13888       # archiving commands below assume that GNU ld is being used.
13889       if test yes = "$with_gnu_ld"; then
13890         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13891         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'
13892
13893         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13894         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13895
13896         # If archive_cmds runs LD, not CC, wlarc should be empty
13897         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13898         #     investigate it a little bit more. (MM)
13899         wlarc='$wl'
13900
13901         # ancient GNU ld didn't support --whole-archive et. al.
13902         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13903           $GREP 'no-whole-archive' > /dev/null; then
13904           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13905         else
13906           whole_archive_flag_spec_CXX=
13907         fi
13908       else
13909         with_gnu_ld=no
13910         wlarc=
13911
13912         # A generic and very simple default shared library creation
13913         # command for GNU C++ for the case where it uses the native
13914         # linker, instead of GNU ld.  If possible, this setting should
13915         # overridden to take advantage of the native linker features on
13916         # the platform it is being used on.
13917         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13918       fi
13919
13920       # Commands to make compiler produce verbose output that lists
13921       # what "hidden" libraries, object files and flags are used when
13922       # linking a shared library.
13923       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13924
13925     else
13926       GXX=no
13927       with_gnu_ld=no
13928       wlarc=
13929     fi
13930
13931     # PORTME: fill in a description of your system's C++ link characteristics
13932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13934     ld_shlibs_CXX=yes
13935     case $host_os in
13936       aix3*)
13937         # FIXME: insert proper C++ library support
13938         ld_shlibs_CXX=no
13939         ;;
13940       aix[4-9]*)
13941         if test ia64 = "$host_cpu"; then
13942           # On IA64, the linker does run time linking by default, so we don't
13943           # have to do anything special.
13944           aix_use_runtimelinking=no
13945           exp_sym_flag='-Bexport'
13946           no_entry_flag=
13947         else
13948           aix_use_runtimelinking=no
13949
13950           # Test if we are trying to use run time linking or normal
13951           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13952           # have runtime linking enabled, and use it for executables.
13953           # For shared libraries, we enable/disable runtime linking
13954           # depending on the kind of the shared library created -
13955           # when "with_aix_soname,aix_use_runtimelinking" is:
13956           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13957           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13958           #            lib.a           static archive
13959           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13960           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13961           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13962           #            lib.a(lib.so.V) shared, rtl:no
13963           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13964           #            lib.a           static archive
13965           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13966             for ld_flag in $LDFLAGS; do
13967               case $ld_flag in
13968               *-brtl*)
13969                 aix_use_runtimelinking=yes
13970                 break
13971                 ;;
13972               esac
13973             done
13974             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13975               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13976               # so we don't have lib.a shared libs to link our executables.
13977               # We have to force runtime linking in this case.
13978               aix_use_runtimelinking=yes
13979               LDFLAGS="$LDFLAGS -Wl,-brtl"
13980             fi
13981             ;;
13982           esac
13983
13984           exp_sym_flag='-bexport'
13985           no_entry_flag='-bnoentry'
13986         fi
13987
13988         # When large executables or shared objects are built, AIX ld can
13989         # have problems creating the table of contents.  If linking a library
13990         # or program results in "error TOC overflow" add -mminimal-toc to
13991         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13992         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13993
13994         archive_cmds_CXX=''
13995         hardcode_direct_CXX=yes
13996         hardcode_direct_absolute_CXX=yes
13997         hardcode_libdir_separator_CXX=':'
13998         link_all_deplibs_CXX=yes
13999         file_list_spec_CXX='$wl-f,'
14000         case $with_aix_soname,$aix_use_runtimelinking in
14001         aix,*) ;;       # no import file
14002         svr4,* | *,yes) # use import file
14003           # The Import File defines what to hardcode.
14004           hardcode_direct_CXX=no
14005           hardcode_direct_absolute_CXX=no
14006           ;;
14007         esac
14008
14009         if test yes = "$GXX"; then
14010           case $host_os in aix4.[012]|aix4.[012].*)
14011           # We only want to do this on AIX 4.2 and lower, the check
14012           # below for broken collect2 doesn't work under 4.3+
14013           collect2name=`$CC -print-prog-name=collect2`
14014           if test -f "$collect2name" &&
14015              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14016           then
14017             # We have reworked collect2
14018             :
14019           else
14020             # We have old collect2
14021             hardcode_direct_CXX=unsupported
14022             # It fails to find uninstalled libraries when the uninstalled
14023             # path is not listed in the libpath.  Setting hardcode_minus_L
14024             # to unsupported forces relinking
14025             hardcode_minus_L_CXX=yes
14026             hardcode_libdir_flag_spec_CXX='-L$libdir'
14027             hardcode_libdir_separator_CXX=
14028           fi
14029           esac
14030           shared_flag='-shared'
14031           if test yes = "$aix_use_runtimelinking"; then
14032             shared_flag=$shared_flag' $wl-G'
14033           fi
14034           # Need to ensure runtime linking is disabled for the traditional
14035           # shared library, or the linker may eventually find shared libraries
14036           # /with/ Import File - we do not want to mix them.
14037           shared_flag_aix='-shared'
14038           shared_flag_svr4='-shared $wl-G'
14039         else
14040           # not using gcc
14041           if test ia64 = "$host_cpu"; then
14042           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14043           # chokes on -Wl,-G. The following line is correct:
14044           shared_flag='-G'
14045           else
14046             if test yes = "$aix_use_runtimelinking"; then
14047               shared_flag='$wl-G'
14048             else
14049               shared_flag='$wl-bM:SRE'
14050             fi
14051             shared_flag_aix='$wl-bM:SRE'
14052             shared_flag_svr4='$wl-G'
14053           fi
14054         fi
14055
14056         export_dynamic_flag_spec_CXX='$wl-bexpall'
14057         # It seems that -bexpall does not export symbols beginning with
14058         # underscore (_), so it is better to generate a list of symbols to
14059         # export.
14060         always_export_symbols_CXX=yes
14061         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14062           # Warning - without using the other runtime loading flags (-brtl),
14063           # -berok will link without error, but may produce a broken library.
14064           # The "-G" linker flag allows undefined symbols.
14065           no_undefined_flag_CXX='-bernotok'
14066           # Determine the default libpath from the value encoded in an empty
14067           # executable.
14068           if test set = "${lt_cv_aix_libpath+set}"; then
14069   aix_libpath=$lt_cv_aix_libpath
14070 else
14071   if ${lt_cv_aix_libpath__CXX+:} false; then :
14072   $as_echo_n "(cached) " >&6
14073 else
14074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h.  */
14076
14077 int
14078 main ()
14079 {
14080
14081   ;
14082   return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_cxx_try_link "$LINENO"; then :
14086
14087   lt_aix_libpath_sed='
14088       /Import File Strings/,/^$/ {
14089           /^0/ {
14090               s/^0  *\([^ ]*\) *$/\1/
14091               p
14092           }
14093       }'
14094   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14095   # Check for a 64-bit object if we didn't find anything.
14096   if test -z "$lt_cv_aix_libpath__CXX"; then
14097     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14098   fi
14099 fi
14100 rm -f core conftest.err conftest.$ac_objext \
14101     conftest$ac_exeext conftest.$ac_ext
14102   if test -z "$lt_cv_aix_libpath__CXX"; then
14103     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14104   fi
14105
14106 fi
14107
14108   aix_libpath=$lt_cv_aix_libpath__CXX
14109 fi
14110
14111           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14112
14113           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
14114         else
14115           if test ia64 = "$host_cpu"; then
14116             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14117             allow_undefined_flag_CXX="-z nodefs"
14118             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"
14119           else
14120             # Determine the default libpath from the value encoded in an
14121             # empty executable.
14122             if test set = "${lt_cv_aix_libpath+set}"; then
14123   aix_libpath=$lt_cv_aix_libpath
14124 else
14125   if ${lt_cv_aix_libpath__CXX+:} false; then :
14126   $as_echo_n "(cached) " >&6
14127 else
14128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h.  */
14130
14131 int
14132 main ()
14133 {
14134
14135   ;
14136   return 0;
14137 }
14138 _ACEOF
14139 if ac_fn_cxx_try_link "$LINENO"; then :
14140
14141   lt_aix_libpath_sed='
14142       /Import File Strings/,/^$/ {
14143           /^0/ {
14144               s/^0  *\([^ ]*\) *$/\1/
14145               p
14146           }
14147       }'
14148   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14149   # Check for a 64-bit object if we didn't find anything.
14150   if test -z "$lt_cv_aix_libpath__CXX"; then
14151     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14152   fi
14153 fi
14154 rm -f core conftest.err conftest.$ac_objext \
14155     conftest$ac_exeext conftest.$ac_ext
14156   if test -z "$lt_cv_aix_libpath__CXX"; then
14157     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14158   fi
14159
14160 fi
14161
14162   aix_libpath=$lt_cv_aix_libpath__CXX
14163 fi
14164
14165             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14166             # Warning - without using the other run time loading flags,
14167             # -berok will link without error, but may produce a broken library.
14168             no_undefined_flag_CXX=' $wl-bernotok'
14169             allow_undefined_flag_CXX=' $wl-berok'
14170             if test yes = "$with_gnu_ld"; then
14171               # We only use this code for GNU lds that support --whole-archive.
14172               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14173             else
14174               # Exported symbols can be pulled into shared objects from archives
14175               whole_archive_flag_spec_CXX='$convenience'
14176             fi
14177             archive_cmds_need_lc_CXX=yes
14178             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14179             # -brtl affects multiple linker settings, -berok does not and is overridden later
14180             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14181             if test svr4 != "$with_aix_soname"; then
14182               # This is similar to how AIX traditionally builds its shared
14183               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14184               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'
14185             fi
14186             if test aix != "$with_aix_soname"; then
14187               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'
14188             else
14189               # used by -dlpreopen to get the symbols
14190               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14191             fi
14192             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14193           fi
14194         fi
14195         ;;
14196
14197       beos*)
14198         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14199           allow_undefined_flag_CXX=unsupported
14200           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14201           # support --undefined.  This deserves some investigation.  FIXME
14202           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14203         else
14204           ld_shlibs_CXX=no
14205         fi
14206         ;;
14207
14208       chorus*)
14209         case $cc_basename in
14210           *)
14211           # FIXME: insert proper C++ library support
14212           ld_shlibs_CXX=no
14213           ;;
14214         esac
14215         ;;
14216
14217       cygwin* | mingw* | pw32* | cegcc*)
14218         case $GXX,$cc_basename in
14219         ,cl* | no,cl*)
14220           # Native MSVC
14221           # hardcode_libdir_flag_spec is actually meaningless, as there is
14222           # no search path for DLLs.
14223           hardcode_libdir_flag_spec_CXX=' '
14224           allow_undefined_flag_CXX=unsupported
14225           always_export_symbols_CXX=yes
14226           file_list_spec_CXX='@'
14227           # Tell ltmain to make .lib files, not .a files.
14228           libext=lib
14229           # Tell ltmain to make .dll files, not .so files.
14230           shrext_cmds=.dll
14231           # FIXME: Setting linknames here is a bad hack.
14232           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14233           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14234               cp "$export_symbols" "$output_objdir/$soname.def";
14235               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14236             else
14237               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14238             fi~
14239             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14240             linknames='
14241           # The linker will not automatically build a static lib if we build a DLL.
14242           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14243           enable_shared_with_static_runtimes_CXX=yes
14244           # Don't use ranlib
14245           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14246           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14247             lt_tool_outputfile="@TOOL_OUTPUT@"~
14248             case $lt_outputfile in
14249               *.exe|*.EXE) ;;
14250               *)
14251                 lt_outputfile=$lt_outputfile.exe
14252                 lt_tool_outputfile=$lt_tool_outputfile.exe
14253                 ;;
14254             esac~
14255             func_to_tool_file "$lt_outputfile"~
14256             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14257               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14258               $RM "$lt_outputfile.manifest";
14259             fi'
14260           ;;
14261         *)
14262           # g++
14263           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14264           # as there is no search path for DLLs.
14265           hardcode_libdir_flag_spec_CXX='-L$libdir'
14266           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14267           allow_undefined_flag_CXX=unsupported
14268           always_export_symbols_CXX=no
14269           enable_shared_with_static_runtimes_CXX=yes
14270
14271           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14272             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'
14273             # If the export-symbols file already is a .def file, use it as
14274             # is; otherwise, prepend EXPORTS...
14275             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14276               cp $export_symbols $output_objdir/$soname.def;
14277             else
14278               echo EXPORTS > $output_objdir/$soname.def;
14279               cat $export_symbols >> $output_objdir/$soname.def;
14280             fi~
14281             $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'
14282           else
14283             ld_shlibs_CXX=no
14284           fi
14285           ;;
14286         esac
14287         ;;
14288       darwin* | rhapsody*)
14289
14290
14291   archive_cmds_need_lc_CXX=no
14292   hardcode_direct_CXX=no
14293   hardcode_automatic_CXX=yes
14294   hardcode_shlibpath_var_CXX=unsupported
14295   if test yes = "$lt_cv_ld_force_load"; then
14296     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\"`'
14297
14298   else
14299     whole_archive_flag_spec_CXX=''
14300   fi
14301   link_all_deplibs_CXX=yes
14302   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14303   case $cc_basename in
14304      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14305      *) _lt_dar_can_shared=$GCC ;;
14306   esac
14307   if test yes = "$_lt_dar_can_shared"; then
14308     output_verbose_link_cmd=func_echo_all
14309     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"
14310     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14311     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"
14312     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"
14313        if test yes != "$lt_cv_apple_cc_single_mod"; then
14314       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"
14315       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"
14316     fi
14317
14318   else
14319   ld_shlibs_CXX=no
14320   fi
14321
14322         ;;
14323
14324       os2*)
14325         hardcode_libdir_flag_spec_CXX='-L$libdir'
14326         hardcode_minus_L_CXX=yes
14327         allow_undefined_flag_CXX=unsupported
14328         shrext_cmds=.dll
14329         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14330           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14331           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14332           $ECHO EXPORTS >> $output_objdir/$libname.def~
14333           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14334           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14335           emximp -o $lib $output_objdir/$libname.def'
14336         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14337           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14338           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14339           $ECHO EXPORTS >> $output_objdir/$libname.def~
14340           prefix_cmds="$SED"~
14341           if test EXPORTS = "`$SED 1q $export_symbols`"; then
14342             prefix_cmds="$prefix_cmds -e 1d";
14343           fi~
14344           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14345           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14346           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14347           emximp -o $lib $output_objdir/$libname.def'
14348         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14349         enable_shared_with_static_runtimes_CXX=yes
14350         ;;
14351
14352       dgux*)
14353         case $cc_basename in
14354           ec++*)
14355             # FIXME: insert proper C++ library support
14356             ld_shlibs_CXX=no
14357             ;;
14358           ghcx*)
14359             # Green Hills C++ Compiler
14360             # FIXME: insert proper C++ library support
14361             ld_shlibs_CXX=no
14362             ;;
14363           *)
14364             # FIXME: insert proper C++ library support
14365             ld_shlibs_CXX=no
14366             ;;
14367         esac
14368         ;;
14369
14370       freebsd2.*)
14371         # C++ shared libraries reported to be fairly broken before
14372         # switch to ELF
14373         ld_shlibs_CXX=no
14374         ;;
14375
14376       freebsd-elf*)
14377         archive_cmds_need_lc_CXX=no
14378         ;;
14379
14380       freebsd* | dragonfly*)
14381         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14382         # conventions
14383         ld_shlibs_CXX=yes
14384         ;;
14385
14386       haiku*)
14387         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14388         link_all_deplibs_CXX=yes
14389         ;;
14390
14391       hpux9*)
14392         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14393         hardcode_libdir_separator_CXX=:
14394         export_dynamic_flag_spec_CXX='$wl-E'
14395         hardcode_direct_CXX=yes
14396         hardcode_minus_L_CXX=yes # Not in the search PATH,
14397                                              # but as the default
14398                                              # location of the library.
14399
14400         case $cc_basename in
14401           CC*)
14402             # FIXME: insert proper C++ library support
14403             ld_shlibs_CXX=no
14404             ;;
14405           aCC*)
14406             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'
14407             # Commands to make compiler produce verbose output that lists
14408             # what "hidden" libraries, object files and flags are used when
14409             # linking a shared library.
14410             #
14411             # There doesn't appear to be a way to prevent this compiler from
14412             # explicitly linking system object files so we need to strip them
14413             # from the output so that they don't get included in the library
14414             # dependencies.
14415             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"'
14416             ;;
14417           *)
14418             if test yes = "$GXX"; then
14419               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'
14420             else
14421               # FIXME: insert proper C++ library support
14422               ld_shlibs_CXX=no
14423             fi
14424             ;;
14425         esac
14426         ;;
14427
14428       hpux10*|hpux11*)
14429         if test no = "$with_gnu_ld"; then
14430           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14431           hardcode_libdir_separator_CXX=:
14432
14433           case $host_cpu in
14434             hppa*64*|ia64*)
14435               ;;
14436             *)
14437               export_dynamic_flag_spec_CXX='$wl-E'
14438               ;;
14439           esac
14440         fi
14441         case $host_cpu in
14442           hppa*64*|ia64*)
14443             hardcode_direct_CXX=no
14444             hardcode_shlibpath_var_CXX=no
14445             ;;
14446           *)
14447             hardcode_direct_CXX=yes
14448             hardcode_direct_absolute_CXX=yes
14449             hardcode_minus_L_CXX=yes # Not in the search PATH,
14450                                                  # but as the default
14451                                                  # location of the library.
14452             ;;
14453         esac
14454
14455         case $cc_basename in
14456           CC*)
14457             # FIXME: insert proper C++ library support
14458             ld_shlibs_CXX=no
14459             ;;
14460           aCC*)
14461             case $host_cpu in
14462               hppa*64*)
14463                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14464                 ;;
14465               ia64*)
14466                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14467                 ;;
14468               *)
14469                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14470                 ;;
14471             esac
14472             # Commands to make compiler produce verbose output that lists
14473             # what "hidden" libraries, object files and flags are used when
14474             # linking a shared library.
14475             #
14476             # There doesn't appear to be a way to prevent this compiler from
14477             # explicitly linking system object files so we need to strip them
14478             # from the output so that they don't get included in the library
14479             # dependencies.
14480             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"'
14481             ;;
14482           *)
14483             if test yes = "$GXX"; then
14484               if test no = "$with_gnu_ld"; then
14485                 case $host_cpu in
14486                   hppa*64*)
14487                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14488                     ;;
14489                   ia64*)
14490                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14491                     ;;
14492                   *)
14493                     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'
14494                     ;;
14495                 esac
14496               fi
14497             else
14498               # FIXME: insert proper C++ library support
14499               ld_shlibs_CXX=no
14500             fi
14501             ;;
14502         esac
14503         ;;
14504
14505       interix[3-9]*)
14506         hardcode_direct_CXX=no
14507         hardcode_shlibpath_var_CXX=no
14508         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14509         export_dynamic_flag_spec_CXX='$wl-E'
14510         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14511         # Instead, shared libraries are loaded at an image base (0x10000000 by
14512         # default) and relocated if they conflict, which is a slow very memory
14513         # consuming and fragmenting process.  To avoid this, we pick a random,
14514         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14515         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14516         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'
14517         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'
14518         ;;
14519       irix5* | irix6*)
14520         case $cc_basename in
14521           CC*)
14522             # SGI C++
14523             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'
14524
14525             # Archives containing C++ object files must be created using
14526             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14527             # necessary to make sure instantiated templates are included
14528             # in the archive.
14529             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14530             ;;
14531           *)
14532             if test yes = "$GXX"; then
14533               if test no = "$with_gnu_ld"; then
14534                 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'
14535               else
14536                 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'
14537               fi
14538             fi
14539             link_all_deplibs_CXX=yes
14540             ;;
14541         esac
14542         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14543         hardcode_libdir_separator_CXX=:
14544         inherit_rpath_CXX=yes
14545         ;;
14546
14547       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14548         case $cc_basename in
14549           KCC*)
14550             # Kuck and Associates, Inc. (KAI) C++ Compiler
14551
14552             # KCC will only create a shared library if the output file
14553             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14554             # to its proper name (with version) after linking.
14555             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'
14556             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'
14557             # Commands to make compiler produce verbose output that lists
14558             # what "hidden" libraries, object files and flags are used when
14559             # linking a shared library.
14560             #
14561             # There doesn't appear to be a way to prevent this compiler from
14562             # explicitly linking system object files so we need to strip them
14563             # from the output so that they don't get included in the library
14564             # dependencies.
14565             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"'
14566
14567             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14568             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14569
14570             # Archives containing C++ object files must be created using
14571             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14572             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14573             ;;
14574           icpc* | ecpc* )
14575             # Intel C++
14576             with_gnu_ld=yes
14577             # version 8.0 and above of icpc choke on multiply defined symbols
14578             # if we add $predep_objects and $postdep_objects, however 7.1 and
14579             # earlier do not add the objects themselves.
14580             case `$CC -V 2>&1` in
14581               *"Version 7."*)
14582                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14583                 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'
14584                 ;;
14585               *)  # Version 8.0 or newer
14586                 tmp_idyn=
14587                 case $host_cpu in
14588                   ia64*) tmp_idyn=' -i_dynamic';;
14589                 esac
14590                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14591                 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'
14592                 ;;
14593             esac
14594             archive_cmds_need_lc_CXX=no
14595             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14596             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14597             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14598             ;;
14599           pgCC* | pgcpp*)
14600             # Portland Group C++ compiler
14601             case `$CC -V` in
14602             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14603               prelink_cmds_CXX='tpldir=Template.dir~
14604                rm -rf $tpldir~
14605                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14606                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14607               old_archive_cmds_CXX='tpldir=Template.dir~
14608                 rm -rf $tpldir~
14609                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14610                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14611                 $RANLIB $oldlib'
14612               archive_cmds_CXX='tpldir=Template.dir~
14613                 rm -rf $tpldir~
14614                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14615                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14616               archive_expsym_cmds_CXX='tpldir=Template.dir~
14617                 rm -rf $tpldir~
14618                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14619                 $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'
14620               ;;
14621             *) # Version 6 and above use weak symbols
14622               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14623               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'
14624               ;;
14625             esac
14626
14627             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14628             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14629             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'
14630             ;;
14631           cxx*)
14632             # Compaq C++
14633             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14634             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'
14635
14636             runpath_var=LD_RUN_PATH
14637             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14638             hardcode_libdir_separator_CXX=:
14639
14640             # Commands to make compiler produce verbose output that lists
14641             # what "hidden" libraries, object files and flags are used when
14642             # linking a shared library.
14643             #
14644             # There doesn't appear to be a way to prevent this compiler from
14645             # explicitly linking system object files so we need to strip them
14646             # from the output so that they don't get included in the library
14647             # dependencies.
14648             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'
14649             ;;
14650           xl* | mpixl* | bgxl*)
14651             # IBM XL 8.0 on PPC, with GNU ld
14652             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14653             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14654             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14655             if test yes = "$supports_anon_versioning"; then
14656               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14657                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14658                 echo "local: *; };" >> $output_objdir/$libname.ver~
14659                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14660             fi
14661             ;;
14662           *)
14663             case `$CC -V 2>&1 | sed 5q` in
14664             *Sun\ C*)
14665               # Sun C++ 5.9
14666               no_undefined_flag_CXX=' -zdefs'
14667               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14668               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'
14669               hardcode_libdir_flag_spec_CXX='-R$libdir'
14670               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'
14671               compiler_needs_object_CXX=yes
14672
14673               # Not sure whether something based on
14674               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14675               # would be better.
14676               output_verbose_link_cmd='func_echo_all'
14677
14678               # Archives containing C++ object files must be created using
14679               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14680               # necessary to make sure instantiated templates are included
14681               # in the archive.
14682               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14683               ;;
14684             esac
14685             ;;
14686         esac
14687         ;;
14688
14689       lynxos*)
14690         # FIXME: insert proper C++ library support
14691         ld_shlibs_CXX=no
14692         ;;
14693
14694       m88k*)
14695         # FIXME: insert proper C++ library support
14696         ld_shlibs_CXX=no
14697         ;;
14698
14699       mvs*)
14700         case $cc_basename in
14701           cxx*)
14702             # FIXME: insert proper C++ library support
14703             ld_shlibs_CXX=no
14704             ;;
14705           *)
14706             # FIXME: insert proper C++ library support
14707             ld_shlibs_CXX=no
14708             ;;
14709         esac
14710         ;;
14711
14712       netbsd*)
14713         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14714           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14715           wlarc=
14716           hardcode_libdir_flag_spec_CXX='-R$libdir'
14717           hardcode_direct_CXX=yes
14718           hardcode_shlibpath_var_CXX=no
14719         fi
14720         # Workaround some broken pre-1.5 toolchains
14721         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14722         ;;
14723
14724       *nto* | *qnx*)
14725         ld_shlibs_CXX=yes
14726         ;;
14727
14728       openbsd* | bitrig*)
14729         if test -f /usr/libexec/ld.so; then
14730           hardcode_direct_CXX=yes
14731           hardcode_shlibpath_var_CXX=no
14732           hardcode_direct_absolute_CXX=yes
14733           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14734           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14735           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14736             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14737             export_dynamic_flag_spec_CXX='$wl-E'
14738             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14739           fi
14740           output_verbose_link_cmd=func_echo_all
14741         else
14742           ld_shlibs_CXX=no
14743         fi
14744         ;;
14745
14746       osf3* | osf4* | osf5*)
14747         case $cc_basename in
14748           KCC*)
14749             # Kuck and Associates, Inc. (KAI) C++ Compiler
14750
14751             # KCC will only create a shared library if the output file
14752             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14753             # to its proper name (with version) after linking.
14754             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'
14755
14756             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14757             hardcode_libdir_separator_CXX=:
14758
14759             # Archives containing C++ object files must be created using
14760             # the KAI C++ compiler.
14761             case $host in
14762               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14763               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14764             esac
14765             ;;
14766           RCC*)
14767             # Rational C++ 2.4.1
14768             # FIXME: insert proper C++ library support
14769             ld_shlibs_CXX=no
14770             ;;
14771           cxx*)
14772             case $host in
14773               osf3*)
14774                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14775                 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'
14776                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14777                 ;;
14778               *)
14779                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14780                 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'
14781                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14782                   echo "-hidden">> $lib.exp~
14783                   $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~
14784                   $RM $lib.exp'
14785                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14786                 ;;
14787             esac
14788
14789             hardcode_libdir_separator_CXX=:
14790
14791             # Commands to make compiler produce verbose output that lists
14792             # what "hidden" libraries, object files and flags are used when
14793             # linking a shared library.
14794             #
14795             # There doesn't appear to be a way to prevent this compiler from
14796             # explicitly linking system object files so we need to strip them
14797             # from the output so that they don't get included in the library
14798             # dependencies.
14799             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"'
14800             ;;
14801           *)
14802             if test yes,no = "$GXX,$with_gnu_ld"; then
14803               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14804               case $host in
14805                 osf3*)
14806                   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'
14807                   ;;
14808                 *)
14809                   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'
14810                   ;;
14811               esac
14812
14813               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14814               hardcode_libdir_separator_CXX=:
14815
14816               # Commands to make compiler produce verbose output that lists
14817               # what "hidden" libraries, object files and flags are used when
14818               # linking a shared library.
14819               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14820
14821             else
14822               # FIXME: insert proper C++ library support
14823               ld_shlibs_CXX=no
14824             fi
14825             ;;
14826         esac
14827         ;;
14828
14829       psos*)
14830         # FIXME: insert proper C++ library support
14831         ld_shlibs_CXX=no
14832         ;;
14833
14834       sunos4*)
14835         case $cc_basename in
14836           CC*)
14837             # Sun C++ 4.x
14838             # FIXME: insert proper C++ library support
14839             ld_shlibs_CXX=no
14840             ;;
14841           lcc*)
14842             # Lucid
14843             # FIXME: insert proper C++ library support
14844             ld_shlibs_CXX=no
14845             ;;
14846           *)
14847             # FIXME: insert proper C++ library support
14848             ld_shlibs_CXX=no
14849             ;;
14850         esac
14851         ;;
14852
14853       solaris*)
14854         case $cc_basename in
14855           CC* | sunCC*)
14856             # Sun C++ 4.2, 5.x and Centerline C++
14857             archive_cmds_need_lc_CXX=yes
14858             no_undefined_flag_CXX=' -zdefs'
14859             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14860             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14861               $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'
14862
14863             hardcode_libdir_flag_spec_CXX='-R$libdir'
14864             hardcode_shlibpath_var_CXX=no
14865             case $host_os in
14866               solaris2.[0-5] | solaris2.[0-5].*) ;;
14867               *)
14868                 # The compiler driver will combine and reorder linker options,
14869                 # but understands '-z linker_flag'.
14870                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14871                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14872                 ;;
14873             esac
14874             link_all_deplibs_CXX=yes
14875
14876             output_verbose_link_cmd='func_echo_all'
14877
14878             # Archives containing C++ object files must be created using
14879             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14880             # necessary to make sure instantiated templates are included
14881             # in the archive.
14882             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14883             ;;
14884           gcx*)
14885             # Green Hills C++ Compiler
14886             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14887
14888             # The C++ compiler must be used to create the archive.
14889             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14890             ;;
14891           *)
14892             # GNU C++ compiler with Solaris linker
14893             if test yes,no = "$GXX,$with_gnu_ld"; then
14894               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14895               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14896                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14897                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14898                   $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'
14899
14900                 # Commands to make compiler produce verbose output that lists
14901                 # what "hidden" libraries, object files and flags are used when
14902                 # linking a shared library.
14903                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14904               else
14905                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14906                 # platform.
14907                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14908                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14909                   $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'
14910
14911                 # Commands to make compiler produce verbose output that lists
14912                 # what "hidden" libraries, object files and flags are used when
14913                 # linking a shared library.
14914                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14915               fi
14916
14917               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14918               case $host_os in
14919                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14920                 *)
14921                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14922                   ;;
14923               esac
14924             fi
14925             ;;
14926         esac
14927         ;;
14928
14929     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14930       no_undefined_flag_CXX='$wl-z,text'
14931       archive_cmds_need_lc_CXX=no
14932       hardcode_shlibpath_var_CXX=no
14933       runpath_var='LD_RUN_PATH'
14934
14935       case $cc_basename in
14936         CC*)
14937           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14938           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14939           ;;
14940         *)
14941           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14942           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14943           ;;
14944       esac
14945       ;;
14946
14947       sysv5* | sco3.2v5* | sco5v6*)
14948         # Note: We CANNOT use -z defs as we might desire, because we do not
14949         # link with -lc, and that would cause any symbols used from libc to
14950         # always be unresolved, which means just about no library would
14951         # ever link correctly.  If we're not using GNU ld we use -z text
14952         # though, which does catch some bad symbols but isn't as heavy-handed
14953         # as -z defs.
14954         no_undefined_flag_CXX='$wl-z,text'
14955         allow_undefined_flag_CXX='$wl-z,nodefs'
14956         archive_cmds_need_lc_CXX=no
14957         hardcode_shlibpath_var_CXX=no
14958         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14959         hardcode_libdir_separator_CXX=':'
14960         link_all_deplibs_CXX=yes
14961         export_dynamic_flag_spec_CXX='$wl-Bexport'
14962         runpath_var='LD_RUN_PATH'
14963
14964         case $cc_basename in
14965           CC*)
14966             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14968             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14969               '"$old_archive_cmds_CXX"
14970             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14971               '"$reload_cmds_CXX"
14972             ;;
14973           *)
14974             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14975             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14976             ;;
14977         esac
14978       ;;
14979
14980       tandem*)
14981         case $cc_basename in
14982           NCC*)
14983             # NonStop-UX NCC 3.20
14984             # FIXME: insert proper C++ library support
14985             ld_shlibs_CXX=no
14986             ;;
14987           *)
14988             # FIXME: insert proper C++ library support
14989             ld_shlibs_CXX=no
14990             ;;
14991         esac
14992         ;;
14993
14994       vxworks*)
14995         # FIXME: insert proper C++ library support
14996         ld_shlibs_CXX=no
14997         ;;
14998
14999       *)
15000         # FIXME: insert proper C++ library support
15001         ld_shlibs_CXX=no
15002         ;;
15003     esac
15004
15005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15006 $as_echo "$ld_shlibs_CXX" >&6; }
15007     test no = "$ld_shlibs_CXX" && can_build_shared=no
15008
15009     GCC_CXX=$GXX
15010     LD_CXX=$LD
15011
15012     ## CAVEAT EMPTOR:
15013     ## There is no encapsulation within the following macros, do not change
15014     ## the running order or otherwise move them around unless you know exactly
15015     ## what you are doing...
15016     # Dependencies to place before and after the object being linked:
15017 predep_objects_CXX=
15018 postdep_objects_CXX=
15019 predeps_CXX=
15020 postdeps_CXX=
15021 compiler_lib_search_path_CXX=
15022
15023 cat > conftest.$ac_ext <<_LT_EOF
15024 class Foo
15025 {
15026 public:
15027   Foo (void) { a = 0; }
15028 private:
15029   int a;
15030 };
15031 _LT_EOF
15032
15033
15034 _lt_libdeps_save_CFLAGS=$CFLAGS
15035 case "$CC $CFLAGS " in #(
15036 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15037 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15038 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15039 esac
15040
15041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15042   (eval $ac_compile) 2>&5
15043   ac_status=$?
15044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15045   test $ac_status = 0; }; then
15046   # Parse the compiler output and extract the necessary
15047   # objects, libraries and library flags.
15048
15049   # Sentinel used to keep track of whether or not we are before
15050   # the conftest object file.
15051   pre_test_object_deps_done=no
15052
15053   for p in `eval "$output_verbose_link_cmd"`; do
15054     case $prev$p in
15055
15056     -L* | -R* | -l*)
15057        # Some compilers place space between "-{L,R}" and the path.
15058        # Remove the space.
15059        if test x-L = "$p" ||
15060           test x-R = "$p"; then
15061          prev=$p
15062          continue
15063        fi
15064
15065        # Expand the sysroot to ease extracting the directories later.
15066        if test -z "$prev"; then
15067          case $p in
15068          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15069          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15070          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15071          esac
15072        fi
15073        case $p in
15074        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15075        esac
15076        if test no = "$pre_test_object_deps_done"; then
15077          case $prev in
15078          -L | -R)
15079            # Internal compiler library paths should come after those
15080            # provided the user.  The postdeps already come after the
15081            # user supplied libs so there is no need to process them.
15082            if test -z "$compiler_lib_search_path_CXX"; then
15083              compiler_lib_search_path_CXX=$prev$p
15084            else
15085              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15086            fi
15087            ;;
15088          # The "-l" case would never come before the object being
15089          # linked, so don't bother handling this case.
15090          esac
15091        else
15092          if test -z "$postdeps_CXX"; then
15093            postdeps_CXX=$prev$p
15094          else
15095            postdeps_CXX="${postdeps_CXX} $prev$p"
15096          fi
15097        fi
15098        prev=
15099        ;;
15100
15101     *.lto.$objext) ;; # Ignore GCC LTO objects
15102     *.$objext)
15103        # This assumes that the test object file only shows up
15104        # once in the compiler output.
15105        if test "$p" = "conftest.$objext"; then
15106          pre_test_object_deps_done=yes
15107          continue
15108        fi
15109
15110        if test no = "$pre_test_object_deps_done"; then
15111          if test -z "$predep_objects_CXX"; then
15112            predep_objects_CXX=$p
15113          else
15114            predep_objects_CXX="$predep_objects_CXX $p"
15115          fi
15116        else
15117          if test -z "$postdep_objects_CXX"; then
15118            postdep_objects_CXX=$p
15119          else
15120            postdep_objects_CXX="$postdep_objects_CXX $p"
15121          fi
15122        fi
15123        ;;
15124
15125     *) ;; # Ignore the rest.
15126
15127     esac
15128   done
15129
15130   # Clean up.
15131   rm -f a.out a.exe
15132 else
15133   echo "libtool.m4: error: problem compiling CXX test program"
15134 fi
15135
15136 $RM -f confest.$objext
15137 CFLAGS=$_lt_libdeps_save_CFLAGS
15138
15139 # PORTME: override above test on systems where it is broken
15140 case $host_os in
15141 interix[3-9]*)
15142   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15143   # hack all around it, let's just trust "g++" to DTRT.
15144   predep_objects_CXX=
15145   postdep_objects_CXX=
15146   postdeps_CXX=
15147   ;;
15148 esac
15149
15150
15151 case " $postdeps_CXX " in
15152 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15153 esac
15154  compiler_lib_search_dirs_CXX=
15155 if test -n "${compiler_lib_search_path_CXX}"; then
15156  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15157 fi
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189     lt_prog_compiler_wl_CXX=
15190 lt_prog_compiler_pic_CXX=
15191 lt_prog_compiler_static_CXX=
15192
15193
15194   # C++ specific cases for pic, static, wl, etc.
15195   if test yes = "$GXX"; then
15196     lt_prog_compiler_wl_CXX='-Wl,'
15197     lt_prog_compiler_static_CXX='-static'
15198
15199     case $host_os in
15200     aix*)
15201       # All AIX code is PIC.
15202       if test ia64 = "$host_cpu"; then
15203         # AIX 5 now supports IA64 processor
15204         lt_prog_compiler_static_CXX='-Bstatic'
15205       fi
15206       lt_prog_compiler_pic_CXX='-fPIC'
15207       ;;
15208
15209     amigaos*)
15210       case $host_cpu in
15211       powerpc)
15212             # see comment about AmigaOS4 .so support
15213             lt_prog_compiler_pic_CXX='-fPIC'
15214         ;;
15215       m68k)
15216             # FIXME: we need at least 68020 code to build shared libraries, but
15217             # adding the '-m68020' flag to GCC prevents building anything better,
15218             # like '-m68040'.
15219             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15220         ;;
15221       esac
15222       ;;
15223
15224     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15225       # PIC is the default for these OSes.
15226       ;;
15227     mingw* | cygwin* | os2* | pw32* | cegcc*)
15228       # This hack is so that the source file can tell whether it is being
15229       # built for inclusion in a dll (and should export symbols for example).
15230       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15231       # (--disable-auto-import) libraries
15232       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15233       case $host_os in
15234       os2*)
15235         lt_prog_compiler_static_CXX='$wl-static'
15236         ;;
15237       esac
15238       ;;
15239     darwin* | rhapsody*)
15240       # PIC is the default on this platform
15241       # Common symbols not allowed in MH_DYLIB files
15242       lt_prog_compiler_pic_CXX='-fno-common'
15243       ;;
15244     *djgpp*)
15245       # DJGPP does not support shared libraries at all
15246       lt_prog_compiler_pic_CXX=
15247       ;;
15248     haiku*)
15249       # PIC is the default for Haiku.
15250       # The "-static" flag exists, but is broken.
15251       lt_prog_compiler_static_CXX=
15252       ;;
15253     interix[3-9]*)
15254       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15255       # Instead, we relocate shared libraries at runtime.
15256       ;;
15257     sysv4*MP*)
15258       if test -d /usr/nec; then
15259         lt_prog_compiler_pic_CXX=-Kconform_pic
15260       fi
15261       ;;
15262     hpux*)
15263       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15264       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15265       # sets the default TLS model and affects inlining.
15266       case $host_cpu in
15267       hppa*64*)
15268         ;;
15269       *)
15270         lt_prog_compiler_pic_CXX='-fPIC'
15271         ;;
15272       esac
15273       ;;
15274     *qnx* | *nto*)
15275       # QNX uses GNU C++, but need to define -shared option too, otherwise
15276       # it will coredump.
15277       lt_prog_compiler_pic_CXX='-fPIC -shared'
15278       ;;
15279     *)
15280       lt_prog_compiler_pic_CXX='-fPIC'
15281       ;;
15282     esac
15283   else
15284     case $host_os in
15285       aix[4-9]*)
15286         # All AIX code is PIC.
15287         if test ia64 = "$host_cpu"; then
15288           # AIX 5 now supports IA64 processor
15289           lt_prog_compiler_static_CXX='-Bstatic'
15290         else
15291           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15292         fi
15293         ;;
15294       chorus*)
15295         case $cc_basename in
15296         cxch68*)
15297           # Green Hills C++ Compiler
15298           # _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"
15299           ;;
15300         esac
15301         ;;
15302       mingw* | cygwin* | os2* | pw32* | cegcc*)
15303         # This hack is so that the source file can tell whether it is being
15304         # built for inclusion in a dll (and should export symbols for example).
15305         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15306         ;;
15307       dgux*)
15308         case $cc_basename in
15309           ec++*)
15310             lt_prog_compiler_pic_CXX='-KPIC'
15311             ;;
15312           ghcx*)
15313             # Green Hills C++ Compiler
15314             lt_prog_compiler_pic_CXX='-pic'
15315             ;;
15316           *)
15317             ;;
15318         esac
15319         ;;
15320       freebsd* | dragonfly*)
15321         # FreeBSD uses GNU C++
15322         ;;
15323       hpux9* | hpux10* | hpux11*)
15324         case $cc_basename in
15325           CC*)
15326             lt_prog_compiler_wl_CXX='-Wl,'
15327             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15328             if test ia64 != "$host_cpu"; then
15329               lt_prog_compiler_pic_CXX='+Z'
15330             fi
15331             ;;
15332           aCC*)
15333             lt_prog_compiler_wl_CXX='-Wl,'
15334             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15335             case $host_cpu in
15336             hppa*64*|ia64*)
15337               # +Z the default
15338               ;;
15339             *)
15340               lt_prog_compiler_pic_CXX='+Z'
15341               ;;
15342             esac
15343             ;;
15344           *)
15345             ;;
15346         esac
15347         ;;
15348       interix*)
15349         # This is c89, which is MS Visual C++ (no shared libs)
15350         # Anyone wants to do a port?
15351         ;;
15352       irix5* | irix6* | nonstopux*)
15353         case $cc_basename in
15354           CC*)
15355             lt_prog_compiler_wl_CXX='-Wl,'
15356             lt_prog_compiler_static_CXX='-non_shared'
15357             # CC pic flag -KPIC is the default.
15358             ;;
15359           *)
15360             ;;
15361         esac
15362         ;;
15363       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15364         case $cc_basename in
15365           KCC*)
15366             # KAI C++ Compiler
15367             lt_prog_compiler_wl_CXX='--backend -Wl,'
15368             lt_prog_compiler_pic_CXX='-fPIC'
15369             ;;
15370           ecpc* )
15371             # old Intel C++ for x86_64, which still supported -KPIC.
15372             lt_prog_compiler_wl_CXX='-Wl,'
15373             lt_prog_compiler_pic_CXX='-KPIC'
15374             lt_prog_compiler_static_CXX='-static'
15375             ;;
15376           icpc* )
15377             # Intel C++, used to be incompatible with GCC.
15378             # ICC 10 doesn't accept -KPIC any more.
15379             lt_prog_compiler_wl_CXX='-Wl,'
15380             lt_prog_compiler_pic_CXX='-fPIC'
15381             lt_prog_compiler_static_CXX='-static'
15382             ;;
15383           pgCC* | pgcpp*)
15384             # Portland Group C++ compiler
15385             lt_prog_compiler_wl_CXX='-Wl,'
15386             lt_prog_compiler_pic_CXX='-fpic'
15387             lt_prog_compiler_static_CXX='-Bstatic'
15388             ;;
15389           cxx*)
15390             # Compaq C++
15391             # Make sure the PIC flag is empty.  It appears that all Alpha
15392             # Linux and Compaq Tru64 Unix objects are PIC.
15393             lt_prog_compiler_pic_CXX=
15394             lt_prog_compiler_static_CXX='-non_shared'
15395             ;;
15396           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15397             # IBM XL 8.0, 9.0 on PPC and BlueGene
15398             lt_prog_compiler_wl_CXX='-Wl,'
15399             lt_prog_compiler_pic_CXX='-qpic'
15400             lt_prog_compiler_static_CXX='-qstaticlink'
15401             ;;
15402           *)
15403             case `$CC -V 2>&1 | sed 5q` in
15404             *Sun\ C*)
15405               # Sun C++ 5.9
15406               lt_prog_compiler_pic_CXX='-KPIC'
15407               lt_prog_compiler_static_CXX='-Bstatic'
15408               lt_prog_compiler_wl_CXX='-Qoption ld '
15409               ;;
15410             esac
15411             ;;
15412         esac
15413         ;;
15414       lynxos*)
15415         ;;
15416       m88k*)
15417         ;;
15418       mvs*)
15419         case $cc_basename in
15420           cxx*)
15421             lt_prog_compiler_pic_CXX='-W c,exportall'
15422             ;;
15423           *)
15424             ;;
15425         esac
15426         ;;
15427       netbsd*)
15428         ;;
15429       *qnx* | *nto*)
15430         # QNX uses GNU C++, but need to define -shared option too, otherwise
15431         # it will coredump.
15432         lt_prog_compiler_pic_CXX='-fPIC -shared'
15433         ;;
15434       osf3* | osf4* | osf5*)
15435         case $cc_basename in
15436           KCC*)
15437             lt_prog_compiler_wl_CXX='--backend -Wl,'
15438             ;;
15439           RCC*)
15440             # Rational C++ 2.4.1
15441             lt_prog_compiler_pic_CXX='-pic'
15442             ;;
15443           cxx*)
15444             # Digital/Compaq C++
15445             lt_prog_compiler_wl_CXX='-Wl,'
15446             # Make sure the PIC flag is empty.  It appears that all Alpha
15447             # Linux and Compaq Tru64 Unix objects are PIC.
15448             lt_prog_compiler_pic_CXX=
15449             lt_prog_compiler_static_CXX='-non_shared'
15450             ;;
15451           *)
15452             ;;
15453         esac
15454         ;;
15455       psos*)
15456         ;;
15457       solaris*)
15458         case $cc_basename in
15459           CC* | sunCC*)
15460             # Sun C++ 4.2, 5.x and Centerline C++
15461             lt_prog_compiler_pic_CXX='-KPIC'
15462             lt_prog_compiler_static_CXX='-Bstatic'
15463             lt_prog_compiler_wl_CXX='-Qoption ld '
15464             ;;
15465           gcx*)
15466             # Green Hills C++ Compiler
15467             lt_prog_compiler_pic_CXX='-PIC'
15468             ;;
15469           *)
15470             ;;
15471         esac
15472         ;;
15473       sunos4*)
15474         case $cc_basename in
15475           CC*)
15476             # Sun C++ 4.x
15477             lt_prog_compiler_pic_CXX='-pic'
15478             lt_prog_compiler_static_CXX='-Bstatic'
15479             ;;
15480           lcc*)
15481             # Lucid
15482             lt_prog_compiler_pic_CXX='-pic'
15483             ;;
15484           *)
15485             ;;
15486         esac
15487         ;;
15488       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15489         case $cc_basename in
15490           CC*)
15491             lt_prog_compiler_wl_CXX='-Wl,'
15492             lt_prog_compiler_pic_CXX='-KPIC'
15493             lt_prog_compiler_static_CXX='-Bstatic'
15494             ;;
15495         esac
15496         ;;
15497       tandem*)
15498         case $cc_basename in
15499           NCC*)
15500             # NonStop-UX NCC 3.20
15501             lt_prog_compiler_pic_CXX='-KPIC'
15502             ;;
15503           *)
15504             ;;
15505         esac
15506         ;;
15507       vxworks*)
15508         ;;
15509       *)
15510         lt_prog_compiler_can_build_shared_CXX=no
15511         ;;
15512     esac
15513   fi
15514
15515 case $host_os in
15516   # For platforms that do not support PIC, -DPIC is meaningless:
15517   *djgpp*)
15518     lt_prog_compiler_pic_CXX=
15519     ;;
15520   *)
15521     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15522     ;;
15523 esac
15524
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15526 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15527 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15528   $as_echo_n "(cached) " >&6
15529 else
15530   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15531 fi
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15533 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15534 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15535
15536 #
15537 # Check to make sure the PIC flag actually works.
15538 #
15539 if test -n "$lt_prog_compiler_pic_CXX"; then
15540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15541 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15542 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15543   $as_echo_n "(cached) " >&6
15544 else
15545   lt_cv_prog_compiler_pic_works_CXX=no
15546    ac_outfile=conftest.$ac_objext
15547    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15548    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15549    # Insert the option either (1) after the last *FLAGS variable, or
15550    # (2) before a word containing "conftest.", or (3) at the end.
15551    # Note that $ac_compile itself does not contain backslashes and begins
15552    # with a dollar sign (not a hyphen), so the echo should work correctly.
15553    # The option is referenced via a variable to avoid confusing sed.
15554    lt_compile=`echo "$ac_compile" | $SED \
15555    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15556    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15557    -e 's:$: $lt_compiler_flag:'`
15558    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15559    (eval "$lt_compile" 2>conftest.err)
15560    ac_status=$?
15561    cat conftest.err >&5
15562    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563    if (exit $ac_status) && test -s "$ac_outfile"; then
15564      # The compiler can only warn and ignore the option if not recognized
15565      # So say no if there are warnings other than the usual output.
15566      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15567      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15568      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15569        lt_cv_prog_compiler_pic_works_CXX=yes
15570      fi
15571    fi
15572    $RM conftest*
15573
15574 fi
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15576 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15577
15578 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15579     case $lt_prog_compiler_pic_CXX in
15580      "" | " "*) ;;
15581      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15582      esac
15583 else
15584     lt_prog_compiler_pic_CXX=
15585      lt_prog_compiler_can_build_shared_CXX=no
15586 fi
15587
15588 fi
15589
15590
15591
15592
15593
15594 #
15595 # Check to make sure the static flag actually works.
15596 #
15597 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15599 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15600 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15601   $as_echo_n "(cached) " >&6
15602 else
15603   lt_cv_prog_compiler_static_works_CXX=no
15604    save_LDFLAGS=$LDFLAGS
15605    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15606    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15607    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15608      # The linker can only warn and ignore the option if not recognized
15609      # So say no if there are warnings
15610      if test -s conftest.err; then
15611        # Append any errors to the config.log.
15612        cat conftest.err 1>&5
15613        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15614        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15615        if diff conftest.exp conftest.er2 >/dev/null; then
15616          lt_cv_prog_compiler_static_works_CXX=yes
15617        fi
15618      else
15619        lt_cv_prog_compiler_static_works_CXX=yes
15620      fi
15621    fi
15622    $RM -r conftest*
15623    LDFLAGS=$save_LDFLAGS
15624
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15627 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15628
15629 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15630     :
15631 else
15632     lt_prog_compiler_static_CXX=
15633 fi
15634
15635
15636
15637
15638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15640 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15641   $as_echo_n "(cached) " >&6
15642 else
15643   lt_cv_prog_compiler_c_o_CXX=no
15644    $RM -r conftest 2>/dev/null
15645    mkdir conftest
15646    cd conftest
15647    mkdir out
15648    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15649
15650    lt_compiler_flag="-o out/conftest2.$ac_objext"
15651    # Insert the option either (1) after the last *FLAGS variable, or
15652    # (2) before a word containing "conftest.", or (3) at the end.
15653    # Note that $ac_compile itself does not contain backslashes and begins
15654    # with a dollar sign (not a hyphen), so the echo should work correctly.
15655    lt_compile=`echo "$ac_compile" | $SED \
15656    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15657    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15658    -e 's:$: $lt_compiler_flag:'`
15659    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15660    (eval "$lt_compile" 2>out/conftest.err)
15661    ac_status=$?
15662    cat out/conftest.err >&5
15663    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15665    then
15666      # The compiler can only warn and ignore the option if not recognized
15667      # So say no if there are warnings
15668      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15669      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15670      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15671        lt_cv_prog_compiler_c_o_CXX=yes
15672      fi
15673    fi
15674    chmod u+w . 2>&5
15675    $RM conftest*
15676    # SGI C++ compiler will create directory out/ii_files/ for
15677    # template instantiation
15678    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15679    $RM out/* && rmdir out
15680    cd ..
15681    $RM -r conftest
15682    $RM conftest*
15683
15684 fi
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15686 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15687
15688
15689
15690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15692 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15693   $as_echo_n "(cached) " >&6
15694 else
15695   lt_cv_prog_compiler_c_o_CXX=no
15696    $RM -r conftest 2>/dev/null
15697    mkdir conftest
15698    cd conftest
15699    mkdir out
15700    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15701
15702    lt_compiler_flag="-o out/conftest2.$ac_objext"
15703    # Insert the option either (1) after the last *FLAGS variable, or
15704    # (2) before a word containing "conftest.", or (3) at the end.
15705    # Note that $ac_compile itself does not contain backslashes and begins
15706    # with a dollar sign (not a hyphen), so the echo should work correctly.
15707    lt_compile=`echo "$ac_compile" | $SED \
15708    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15710    -e 's:$: $lt_compiler_flag:'`
15711    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15712    (eval "$lt_compile" 2>out/conftest.err)
15713    ac_status=$?
15714    cat out/conftest.err >&5
15715    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15717    then
15718      # The compiler can only warn and ignore the option if not recognized
15719      # So say no if there are warnings
15720      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15721      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15722      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15723        lt_cv_prog_compiler_c_o_CXX=yes
15724      fi
15725    fi
15726    chmod u+w . 2>&5
15727    $RM conftest*
15728    # SGI C++ compiler will create directory out/ii_files/ for
15729    # template instantiation
15730    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15731    $RM out/* && rmdir out
15732    cd ..
15733    $RM -r conftest
15734    $RM conftest*
15735
15736 fi
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15738 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15739
15740
15741
15742
15743 hard_links=nottested
15744 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15745   # do not overwrite the value of need_locks provided by the user
15746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15747 $as_echo_n "checking if we can lock with hard links... " >&6; }
15748   hard_links=yes
15749   $RM conftest*
15750   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15751   touch conftest.a
15752   ln conftest.a conftest.b 2>&5 || hard_links=no
15753   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15755 $as_echo "$hard_links" >&6; }
15756   if test no = "$hard_links"; then
15757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15758 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15759     need_locks=warn
15760   fi
15761 else
15762   need_locks=no
15763 fi
15764
15765
15766
15767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15768 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15769
15770   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15771   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15772   case $host_os in
15773   aix[4-9]*)
15774     # If we're using GNU nm, then we don't want the "-C" option.
15775     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15776     # Without the "-l" option, or with the "-B" option, AIX nm treats
15777     # weak defined symbols like other global defined symbols, whereas
15778     # GNU nm marks them as "W".
15779     # While the 'weak' keyword is ignored in the Export File, we need
15780     # it in the Import File for the 'aix-soname' feature, so we have
15781     # to replace the "-B" option with "-P" for AIX nm.
15782     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15783       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'
15784     else
15785       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 == "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'
15786     fi
15787     ;;
15788   pw32*)
15789     export_symbols_cmds_CXX=$ltdll_cmds
15790     ;;
15791   cygwin* | mingw* | cegcc*)
15792     case $cc_basename in
15793     cl*)
15794       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15795       ;;
15796     *)
15797       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'
15798       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15799       ;;
15800     esac
15801     ;;
15802   *)
15803     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15804     ;;
15805   esac
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15808 $as_echo "$ld_shlibs_CXX" >&6; }
15809 test no = "$ld_shlibs_CXX" && can_build_shared=no
15810
15811 with_gnu_ld_CXX=$with_gnu_ld
15812
15813
15814
15815
15816
15817
15818 #
15819 # Do we need to explicitly link libc?
15820 #
15821 case "x$archive_cmds_need_lc_CXX" in
15822 x|xyes)
15823   # Assume -lc should be added
15824   archive_cmds_need_lc_CXX=yes
15825
15826   if test yes,yes = "$GCC,$enable_shared"; then
15827     case $archive_cmds_CXX in
15828     *'~'*)
15829       # FIXME: we may have to deal with multi-command sequences.
15830       ;;
15831     '$CC '*)
15832       # Test whether the compiler implicitly links with -lc since on some
15833       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15834       # to ld, don't add -lc before -lgcc.
15835       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15836 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15837 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15838   $as_echo_n "(cached) " >&6
15839 else
15840   $RM conftest*
15841         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15842
15843         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15844   (eval $ac_compile) 2>&5
15845   ac_status=$?
15846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15847   test $ac_status = 0; } 2>conftest.err; then
15848           soname=conftest
15849           lib=conftest
15850           libobjs=conftest.$ac_objext
15851           deplibs=
15852           wl=$lt_prog_compiler_wl_CXX
15853           pic_flag=$lt_prog_compiler_pic_CXX
15854           compiler_flags=-v
15855           linker_flags=-v
15856           verstring=
15857           output_objdir=.
15858           libname=conftest
15859           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15860           allow_undefined_flag_CXX=
15861           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15862   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15863   ac_status=$?
15864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15865   test $ac_status = 0; }
15866           then
15867             lt_cv_archive_cmds_need_lc_CXX=no
15868           else
15869             lt_cv_archive_cmds_need_lc_CXX=yes
15870           fi
15871           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15872         else
15873           cat conftest.err 1>&5
15874         fi
15875         $RM conftest*
15876
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15879 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15880       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15881       ;;
15882     esac
15883   fi
15884   ;;
15885 esac
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15949 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15950
15951 library_names_spec=
15952 libname_spec='lib$name'
15953 soname_spec=
15954 shrext_cmds=.so
15955 postinstall_cmds=
15956 postuninstall_cmds=
15957 finish_cmds=
15958 finish_eval=
15959 shlibpath_var=
15960 shlibpath_overrides_runpath=unknown
15961 version_type=none
15962 dynamic_linker="$host_os ld.so"
15963 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15964 need_lib_prefix=unknown
15965 hardcode_into_libs=no
15966
15967 # when you set need_version to no, make sure it does not cause -set_version
15968 # flags to be left without arguments
15969 need_version=unknown
15970
15971
15972
15973 case $host_os in
15974 aix3*)
15975   version_type=linux # correct to gnu/linux during the next big refactor
15976   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15977   shlibpath_var=LIBPATH
15978
15979   # AIX 3 has no versioning support, so we append a major version to the name.
15980   soname_spec='$libname$release$shared_ext$major'
15981   ;;
15982
15983 aix[4-9]*)
15984   version_type=linux # correct to gnu/linux during the next big refactor
15985   need_lib_prefix=no
15986   need_version=no
15987   hardcode_into_libs=yes
15988   if test ia64 = "$host_cpu"; then
15989     # AIX 5 supports IA64
15990     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15991     shlibpath_var=LD_LIBRARY_PATH
15992   else
15993     # With GCC up to 2.95.x, collect2 would create an import file
15994     # for dependence libraries.  The import file would start with
15995     # the line '#! .'.  This would cause the generated library to
15996     # depend on '.', always an invalid library.  This was fixed in
15997     # development snapshots of GCC prior to 3.0.
15998     case $host_os in
15999       aix4 | aix4.[01] | aix4.[01].*)
16000       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16001            echo ' yes '
16002            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16003         :
16004       else
16005         can_build_shared=no
16006       fi
16007       ;;
16008     esac
16009     # Using Import Files as archive members, it is possible to support
16010     # filename-based versioning of shared library archives on AIX. While
16011     # this would work for both with and without runtime linking, it will
16012     # prevent static linking of such archives. So we do filename-based
16013     # shared library versioning with .so extension only, which is used
16014     # when both runtime linking and shared linking is enabled.
16015     # Unfortunately, runtime linking may impact performance, so we do
16016     # not want this to be the default eventually. Also, we use the
16017     # versioned .so libs for executables only if there is the -brtl
16018     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16019     # To allow for filename-based versioning support, we need to create
16020     # libNAME.so.V as an archive file, containing:
16021     # *) an Import File, referring to the versioned filename of the
16022     #    archive as well as the shared archive member, telling the
16023     #    bitwidth (32 or 64) of that shared object, and providing the
16024     #    list of exported symbols of that shared object, eventually
16025     #    decorated with the 'weak' keyword
16026     # *) the shared object with the F_LOADONLY flag set, to really avoid
16027     #    it being seen by the linker.
16028     # At run time we better use the real file rather than another symlink,
16029     # but for link time we create the symlink libNAME.so -> libNAME.so.V
16030
16031     case $with_aix_soname,$aix_use_runtimelinking in
16032     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16033     # soname into executable. Probably we can add versioning support to
16034     # collect2, so additional links can be useful in future.
16035     aix,yes) # traditional libtool
16036       dynamic_linker='AIX unversionable lib.so'
16037       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16038       # instead of lib<name>.a to let people know that these are not
16039       # typical AIX shared libraries.
16040       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16041       ;;
16042     aix,no) # traditional AIX only
16043       dynamic_linker='AIX lib.a(lib.so.V)'
16044       # We preserve .a as extension for shared libraries through AIX4.2
16045       # and later when we are not doing run time linking.
16046       library_names_spec='$libname$release.a $libname.a'
16047       soname_spec='$libname$release$shared_ext$major'
16048       ;;
16049     svr4,*) # full svr4 only
16050       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16051       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16052       # We do not specify a path in Import Files, so LIBPATH fires.
16053       shlibpath_overrides_runpath=yes
16054       ;;
16055     *,yes) # both, prefer svr4
16056       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16057       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16058       # unpreferred sharedlib libNAME.a needs extra handling
16059       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"'
16060       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"'
16061       # We do not specify a path in Import Files, so LIBPATH fires.
16062       shlibpath_overrides_runpath=yes
16063       ;;
16064     *,no) # both, prefer aix
16065       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16066       library_names_spec='$libname$release.a $libname.a'
16067       soname_spec='$libname$release$shared_ext$major'
16068       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16069       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)'
16070       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"'
16071       ;;
16072     esac
16073     shlibpath_var=LIBPATH
16074   fi
16075   ;;
16076
16077 amigaos*)
16078   case $host_cpu in
16079   powerpc)
16080     # Since July 2007 AmigaOS4 officially supports .so libraries.
16081     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16082     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16083     ;;
16084   m68k)
16085     library_names_spec='$libname.ixlibrary $libname.a'
16086     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16087     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'
16088     ;;
16089   esac
16090   ;;
16091
16092 beos*)
16093   library_names_spec='$libname$shared_ext'
16094   dynamic_linker="$host_os ld.so"
16095   shlibpath_var=LIBRARY_PATH
16096   ;;
16097
16098 bsdi[45]*)
16099   version_type=linux # correct to gnu/linux during the next big refactor
16100   need_version=no
16101   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16102   soname_spec='$libname$release$shared_ext$major'
16103   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16104   shlibpath_var=LD_LIBRARY_PATH
16105   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16106   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16107   # the default ld.so.conf also contains /usr/contrib/lib and
16108   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16109   # libtool to hard-code these into programs
16110   ;;
16111
16112 cygwin* | mingw* | pw32* | cegcc*)
16113   version_type=windows
16114   shrext_cmds=.dll
16115   need_version=no
16116   need_lib_prefix=no
16117
16118   case $GCC,$cc_basename in
16119   yes,*)
16120     # gcc
16121     library_names_spec='$libname.dll.a'
16122     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16123     postinstall_cmds='base_file=`basename \$file`~
16124       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16125       dldir=$destdir/`dirname \$dlpath`~
16126       test -d \$dldir || mkdir -p \$dldir~
16127       $install_prog $dir/$dlname \$dldir/$dlname~
16128       chmod a+x \$dldir/$dlname~
16129       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16130         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16131       fi'
16132     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16133       dlpath=$dir/\$dldll~
16134        $RM \$dlpath'
16135     shlibpath_overrides_runpath=yes
16136
16137     case $host_os in
16138     cygwin*)
16139       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16140       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16141
16142       ;;
16143     mingw* | cegcc*)
16144       # MinGW DLLs use traditional 'lib' prefix
16145       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16146       ;;
16147     pw32*)
16148       # pw32 DLLs use 'pw' prefix rather than 'lib'
16149       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16150       ;;
16151     esac
16152     dynamic_linker='Win32 ld.exe'
16153     ;;
16154
16155   *,cl*)
16156     # Native MSVC
16157     libname_spec='$name'
16158     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16159     library_names_spec='$libname.dll.lib'
16160
16161     case $build_os in
16162     mingw*)
16163       sys_lib_search_path_spec=
16164       lt_save_ifs=$IFS
16165       IFS=';'
16166       for lt_path in $LIB
16167       do
16168         IFS=$lt_save_ifs
16169         # Let DOS variable expansion print the short 8.3 style file name.
16170         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16171         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16172       done
16173       IFS=$lt_save_ifs
16174       # Convert to MSYS style.
16175       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16176       ;;
16177     cygwin*)
16178       # Convert to unix form, then to dos form, then back to unix form
16179       # but this time dos style (no spaces!) so that the unix form looks
16180       # like /cygdrive/c/PROGRA~1:/cygdr...
16181       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16182       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16183       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16184       ;;
16185     *)
16186       sys_lib_search_path_spec=$LIB
16187       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16188         # It is most probably a Windows format PATH.
16189         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16190       else
16191         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16192       fi
16193       # FIXME: find the short name or the path components, as spaces are
16194       # common. (e.g. "Program Files" -> "PROGRA~1")
16195       ;;
16196     esac
16197
16198     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16199     postinstall_cmds='base_file=`basename \$file`~
16200       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16201       dldir=$destdir/`dirname \$dlpath`~
16202       test -d \$dldir || mkdir -p \$dldir~
16203       $install_prog $dir/$dlname \$dldir/$dlname'
16204     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16205       dlpath=$dir/\$dldll~
16206        $RM \$dlpath'
16207     shlibpath_overrides_runpath=yes
16208     dynamic_linker='Win32 link.exe'
16209     ;;
16210
16211   *)
16212     # Assume MSVC wrapper
16213     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16214     dynamic_linker='Win32 ld.exe'
16215     ;;
16216   esac
16217   # FIXME: first we should search . and the directory the executable is in
16218   shlibpath_var=PATH
16219   ;;
16220
16221 darwin* | rhapsody*)
16222   dynamic_linker="$host_os dyld"
16223   version_type=darwin
16224   need_lib_prefix=no
16225   need_version=no
16226   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16227   soname_spec='$libname$release$major$shared_ext'
16228   shlibpath_overrides_runpath=yes
16229   shlibpath_var=DYLD_LIBRARY_PATH
16230   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16231
16232   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16233   ;;
16234
16235 dgux*)
16236   version_type=linux # correct to gnu/linux during the next big refactor
16237   need_lib_prefix=no
16238   need_version=no
16239   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16240   soname_spec='$libname$release$shared_ext$major'
16241   shlibpath_var=LD_LIBRARY_PATH
16242   ;;
16243
16244 freebsd* | dragonfly*)
16245   # DragonFly does not have aout.  When/if they implement a new
16246   # versioning mechanism, adjust this.
16247   if test -x /usr/bin/objformat; then
16248     objformat=`/usr/bin/objformat`
16249   else
16250     case $host_os in
16251     freebsd[23].*) objformat=aout ;;
16252     *) objformat=elf ;;
16253     esac
16254   fi
16255   version_type=freebsd-$objformat
16256   case $version_type in
16257     freebsd-elf*)
16258       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16259       soname_spec='$libname$release$shared_ext$major'
16260       need_version=no
16261       need_lib_prefix=no
16262       ;;
16263     freebsd-*)
16264       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16265       need_version=yes
16266       ;;
16267   esac
16268   shlibpath_var=LD_LIBRARY_PATH
16269   case $host_os in
16270   freebsd2.*)
16271     shlibpath_overrides_runpath=yes
16272     ;;
16273   freebsd3.[01]* | freebsdelf3.[01]*)
16274     shlibpath_overrides_runpath=yes
16275     hardcode_into_libs=yes
16276     ;;
16277   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16278   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16279     shlibpath_overrides_runpath=no
16280     hardcode_into_libs=yes
16281     ;;
16282   *) # from 4.6 on, and DragonFly
16283     shlibpath_overrides_runpath=yes
16284     hardcode_into_libs=yes
16285     ;;
16286   esac
16287   ;;
16288
16289 haiku*)
16290   version_type=linux # correct to gnu/linux during the next big refactor
16291   need_lib_prefix=no
16292   need_version=no
16293   dynamic_linker="$host_os runtime_loader"
16294   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16295   soname_spec='$libname$release$shared_ext$major'
16296   shlibpath_var=LIBRARY_PATH
16297   shlibpath_overrides_runpath=no
16298   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16299   hardcode_into_libs=yes
16300   ;;
16301
16302 hpux9* | hpux10* | hpux11*)
16303   # Give a soname corresponding to the major version so that dld.sl refuses to
16304   # link against other versions.
16305   version_type=sunos
16306   need_lib_prefix=no
16307   need_version=no
16308   case $host_cpu in
16309   ia64*)
16310     shrext_cmds='.so'
16311     hardcode_into_libs=yes
16312     dynamic_linker="$host_os dld.so"
16313     shlibpath_var=LD_LIBRARY_PATH
16314     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16315     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16316     soname_spec='$libname$release$shared_ext$major'
16317     if test 32 = "$HPUX_IA64_MODE"; then
16318       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16319       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16320     else
16321       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16322       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16323     fi
16324     ;;
16325   hppa*64*)
16326     shrext_cmds='.sl'
16327     hardcode_into_libs=yes
16328     dynamic_linker="$host_os dld.sl"
16329     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16330     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16332     soname_spec='$libname$release$shared_ext$major'
16333     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16334     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16335     ;;
16336   *)
16337     shrext_cmds='.sl'
16338     dynamic_linker="$host_os dld.sl"
16339     shlibpath_var=SHLIB_PATH
16340     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16341     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16342     soname_spec='$libname$release$shared_ext$major'
16343     ;;
16344   esac
16345   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16346   postinstall_cmds='chmod 555 $lib'
16347   # or fails outright, so override atomically:
16348   install_override_mode=555
16349   ;;
16350
16351 interix[3-9]*)
16352   version_type=linux # correct to gnu/linux during the next big refactor
16353   need_lib_prefix=no
16354   need_version=no
16355   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16356   soname_spec='$libname$release$shared_ext$major'
16357   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16358   shlibpath_var=LD_LIBRARY_PATH
16359   shlibpath_overrides_runpath=no
16360   hardcode_into_libs=yes
16361   ;;
16362
16363 irix5* | irix6* | nonstopux*)
16364   case $host_os in
16365     nonstopux*) version_type=nonstopux ;;
16366     *)
16367         if test yes = "$lt_cv_prog_gnu_ld"; then
16368                 version_type=linux # correct to gnu/linux during the next big refactor
16369         else
16370                 version_type=irix
16371         fi ;;
16372   esac
16373   need_lib_prefix=no
16374   need_version=no
16375   soname_spec='$libname$release$shared_ext$major'
16376   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16377   case $host_os in
16378   irix5* | nonstopux*)
16379     libsuff= shlibsuff=
16380     ;;
16381   *)
16382     case $LD in # libtool.m4 will add one of these switches to LD
16383     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16384       libsuff= shlibsuff= libmagic=32-bit;;
16385     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16386       libsuff=32 shlibsuff=N32 libmagic=N32;;
16387     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16388       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16389     *) libsuff= shlibsuff= libmagic=never-match;;
16390     esac
16391     ;;
16392   esac
16393   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16394   shlibpath_overrides_runpath=no
16395   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16396   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16397   hardcode_into_libs=yes
16398   ;;
16399
16400 # No shared lib support for Linux oldld, aout, or coff.
16401 linux*oldld* | linux*aout* | linux*coff*)
16402   dynamic_linker=no
16403   ;;
16404
16405 linux*android*)
16406   version_type=none # Android doesn't support versioned libraries.
16407   need_lib_prefix=no
16408   need_version=no
16409   library_names_spec='$libname$release$shared_ext'
16410   soname_spec='$libname$release$shared_ext'
16411   finish_cmds=
16412   shlibpath_var=LD_LIBRARY_PATH
16413   shlibpath_overrides_runpath=yes
16414
16415   # This implies no fast_install, which is unacceptable.
16416   # Some rework will be needed to allow for fast_install
16417   # before this can be enabled.
16418   hardcode_into_libs=yes
16419
16420   dynamic_linker='Android linker'
16421   # Don't embed -rpath directories since the linker doesn't support them.
16422   hardcode_libdir_flag_spec_CXX='-L$libdir'
16423   ;;
16424
16425 # This must be glibc/ELF.
16426 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16427   version_type=linux # correct to gnu/linux during the next big refactor
16428   need_lib_prefix=no
16429   need_version=no
16430   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16431   soname_spec='$libname$release$shared_ext$major'
16432   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16433   shlibpath_var=LD_LIBRARY_PATH
16434   shlibpath_overrides_runpath=no
16435
16436   # Some binutils ld are patched to set DT_RUNPATH
16437   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16438   $as_echo_n "(cached) " >&6
16439 else
16440   lt_cv_shlibpath_overrides_runpath=no
16441     save_LDFLAGS=$LDFLAGS
16442     save_libdir=$libdir
16443     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16444          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16445     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h.  */
16447
16448 int
16449 main ()
16450 {
16451
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 if ac_fn_cxx_try_link "$LINENO"; then :
16457   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16458   lt_cv_shlibpath_overrides_runpath=yes
16459 fi
16460 fi
16461 rm -f core conftest.err conftest.$ac_objext \
16462     conftest$ac_exeext conftest.$ac_ext
16463     LDFLAGS=$save_LDFLAGS
16464     libdir=$save_libdir
16465
16466 fi
16467
16468   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16469
16470   # This implies no fast_install, which is unacceptable.
16471   # Some rework will be needed to allow for fast_install
16472   # before this can be enabled.
16473   hardcode_into_libs=yes
16474
16475   # Ideally, we could use ldconfig to report *all* directores which are
16476   # searched for libraries, however this is still not possible.  Aside from not
16477   # being certain /sbin/ldconfig is available, command
16478   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16479   # even though it is searched at run-time.  Try to do the best guess by
16480   # appending ld.so.conf contents (and includes) to the search path.
16481   if test -f /etc/ld.so.conf; then
16482     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' ' '`
16483     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16484   fi
16485
16486   # We used to test for /lib/ld.so.1 and disable shared libraries on
16487   # powerpc, because MkLinux only supported shared libraries with the
16488   # GNU dynamic linker.  Since this was broken with cross compilers,
16489   # most powerpc-linux boxes support dynamic linking these days and
16490   # people can always --disable-shared, the test was removed, and we
16491   # assume the GNU/Linux dynamic linker is in use.
16492   dynamic_linker='GNU/Linux ld.so'
16493   ;;
16494
16495 netbsd*)
16496   version_type=sunos
16497   need_lib_prefix=no
16498   need_version=no
16499   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16500     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16501     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16502     dynamic_linker='NetBSD (a.out) ld.so'
16503   else
16504     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16505     soname_spec='$libname$release$shared_ext$major'
16506     dynamic_linker='NetBSD ld.elf_so'
16507   fi
16508   shlibpath_var=LD_LIBRARY_PATH
16509   shlibpath_overrides_runpath=yes
16510   hardcode_into_libs=yes
16511   ;;
16512
16513 newsos6)
16514   version_type=linux # correct to gnu/linux during the next big refactor
16515   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16516   shlibpath_var=LD_LIBRARY_PATH
16517   shlibpath_overrides_runpath=yes
16518   ;;
16519
16520 *nto* | *qnx*)
16521   version_type=qnx
16522   need_lib_prefix=no
16523   need_version=no
16524   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16525   soname_spec='$libname$release$shared_ext$major'
16526   shlibpath_var=LD_LIBRARY_PATH
16527   shlibpath_overrides_runpath=no
16528   hardcode_into_libs=yes
16529   dynamic_linker='ldqnx.so'
16530   ;;
16531
16532 openbsd* | bitrig*)
16533   version_type=sunos
16534   sys_lib_dlsearch_path_spec=/usr/lib
16535   need_lib_prefix=no
16536   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16537     need_version=no
16538   else
16539     need_version=yes
16540   fi
16541   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16542   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16543   shlibpath_var=LD_LIBRARY_PATH
16544   shlibpath_overrides_runpath=yes
16545   ;;
16546
16547 os2*)
16548   libname_spec='$name'
16549   version_type=windows
16550   shrext_cmds=.dll
16551   need_version=no
16552   need_lib_prefix=no
16553   # OS/2 can only load a DLL with a base name of 8 characters or less.
16554   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16555     v=$($ECHO $release$versuffix | tr -d .-);
16556     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16557     $ECHO $n$v`$shared_ext'
16558   library_names_spec='${libname}_dll.$libext'
16559   dynamic_linker='OS/2 ld.exe'
16560   shlibpath_var=BEGINLIBPATH
16561   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16562   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16563   postinstall_cmds='base_file=`basename \$file`~
16564     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16565     dldir=$destdir/`dirname \$dlpath`~
16566     test -d \$dldir || mkdir -p \$dldir~
16567     $install_prog $dir/$dlname \$dldir/$dlname~
16568     chmod a+x \$dldir/$dlname~
16569     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16570       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16571     fi'
16572   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16573     dlpath=$dir/\$dldll~
16574     $RM \$dlpath'
16575   ;;
16576
16577 osf3* | osf4* | osf5*)
16578   version_type=osf
16579   need_lib_prefix=no
16580   need_version=no
16581   soname_spec='$libname$release$shared_ext$major'
16582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16583   shlibpath_var=LD_LIBRARY_PATH
16584   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16585   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16586   ;;
16587
16588 rdos*)
16589   dynamic_linker=no
16590   ;;
16591
16592 solaris*)
16593   version_type=linux # correct to gnu/linux during the next big refactor
16594   need_lib_prefix=no
16595   need_version=no
16596   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16597   soname_spec='$libname$release$shared_ext$major'
16598   shlibpath_var=LD_LIBRARY_PATH
16599   shlibpath_overrides_runpath=yes
16600   hardcode_into_libs=yes
16601   # ldd complains unless libraries are executable
16602   postinstall_cmds='chmod +x $lib'
16603   ;;
16604
16605 sunos4*)
16606   version_type=sunos
16607   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16608   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16609   shlibpath_var=LD_LIBRARY_PATH
16610   shlibpath_overrides_runpath=yes
16611   if test yes = "$with_gnu_ld"; then
16612     need_lib_prefix=no
16613   fi
16614   need_version=yes
16615   ;;
16616
16617 sysv4 | sysv4.3*)
16618   version_type=linux # correct to gnu/linux during the next big refactor
16619   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16620   soname_spec='$libname$release$shared_ext$major'
16621   shlibpath_var=LD_LIBRARY_PATH
16622   case $host_vendor in
16623     sni)
16624       shlibpath_overrides_runpath=no
16625       need_lib_prefix=no
16626       runpath_var=LD_RUN_PATH
16627       ;;
16628     siemens)
16629       need_lib_prefix=no
16630       ;;
16631     motorola)
16632       need_lib_prefix=no
16633       need_version=no
16634       shlibpath_overrides_runpath=no
16635       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16636       ;;
16637   esac
16638   ;;
16639
16640 sysv4*MP*)
16641   if test -d /usr/nec; then
16642     version_type=linux # correct to gnu/linux during the next big refactor
16643     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16644     soname_spec='$libname$shared_ext.$major'
16645     shlibpath_var=LD_LIBRARY_PATH
16646   fi
16647   ;;
16648
16649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16650   version_type=sco
16651   need_lib_prefix=no
16652   need_version=no
16653   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16654   soname_spec='$libname$release$shared_ext$major'
16655   shlibpath_var=LD_LIBRARY_PATH
16656   shlibpath_overrides_runpath=yes
16657   hardcode_into_libs=yes
16658   if test yes = "$with_gnu_ld"; then
16659     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16660   else
16661     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16662     case $host_os in
16663       sco3.2v5*)
16664         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16665         ;;
16666     esac
16667   fi
16668   sys_lib_dlsearch_path_spec='/usr/lib'
16669   ;;
16670
16671 tpf*)
16672   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16673   version_type=linux # correct to gnu/linux during the next big refactor
16674   need_lib_prefix=no
16675   need_version=no
16676   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16677   shlibpath_var=LD_LIBRARY_PATH
16678   shlibpath_overrides_runpath=no
16679   hardcode_into_libs=yes
16680   ;;
16681
16682 uts4*)
16683   version_type=linux # correct to gnu/linux during the next big refactor
16684   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16685   soname_spec='$libname$release$shared_ext$major'
16686   shlibpath_var=LD_LIBRARY_PATH
16687   ;;
16688
16689 *)
16690   dynamic_linker=no
16691   ;;
16692 esac
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16694 $as_echo "$dynamic_linker" >&6; }
16695 test no = "$dynamic_linker" && can_build_shared=no
16696
16697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16698 if test yes = "$GCC"; then
16699   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16700 fi
16701
16702 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16703   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16704 fi
16705
16706 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16707   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16708 fi
16709
16710 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16711 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16712
16713 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16714 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16715
16716 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16717 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16759 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16760 hardcode_action_CXX=
16761 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16762    test -n "$runpath_var_CXX" ||
16763    test yes = "$hardcode_automatic_CXX"; then
16764
16765   # We can hardcode non-existent directories.
16766   if test no != "$hardcode_direct_CXX" &&
16767      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16768      # have to relink, otherwise we might link with an installed library
16769      # when we should be linking with a yet-to-be-installed one
16770      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16771      test no != "$hardcode_minus_L_CXX"; then
16772     # Linking always hardcodes the temporary library directory.
16773     hardcode_action_CXX=relink
16774   else
16775     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16776     hardcode_action_CXX=immediate
16777   fi
16778 else
16779   # We cannot hardcode anything, or else we can only hardcode existing
16780   # directories.
16781   hardcode_action_CXX=unsupported
16782 fi
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16784 $as_echo "$hardcode_action_CXX" >&6; }
16785
16786 if test relink = "$hardcode_action_CXX" ||
16787    test yes = "$inherit_rpath_CXX"; then
16788   # Fast installation is not supported
16789   enable_fast_install=no
16790 elif test yes = "$shlibpath_overrides_runpath" ||
16791      test no = "$enable_shared"; then
16792   # Fast installation is not necessary
16793   enable_fast_install=needless
16794 fi
16795
16796
16797
16798
16799
16800
16801
16802   fi # test -n "$compiler"
16803
16804   CC=$lt_save_CC
16805   CFLAGS=$lt_save_CFLAGS
16806   LDCXX=$LD
16807   LD=$lt_save_LD
16808   GCC=$lt_save_GCC
16809   with_gnu_ld=$lt_save_with_gnu_ld
16810   lt_cv_path_LDCXX=$lt_cv_path_LD
16811   lt_cv_path_LD=$lt_save_path_LD
16812   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16813   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16814 fi # test yes != "$_lt_caught_CXX_error"
16815
16816 ac_ext=c
16817 ac_cpp='$CPP $CPPFLAGS'
16818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836         ac_config_commands="$ac_config_commands libtool"
16837
16838
16839
16840
16841 # Only expand once:
16842
16843
16844 case "$host_os" in
16845   # On Cygwin, without -no-undefined, a warning is emitted and only a static
16846   # library is built.
16847   beos* | mingw* | cygwin* | os2*) LTNOUNDEF='-no-undefined' ;;
16848   *) LTNOUNDEF='' ;;
16849 esac
16850
16851
16852
16853 for ac_header in features.h
16854 do :
16855   ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
16856 if test "x$ac_cv_header_features_h" = xyes; then :
16857   cat >>confdefs.h <<_ACEOF
16858 #define HAVE_FEATURES_H 1
16859 _ACEOF
16860
16861 fi
16862
16863 done
16864
16865
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16867 $as_echo_n "checking for inline... " >&6; }
16868 if ${ac_cv_c_inline+:} false; then :
16869   $as_echo_n "(cached) " >&6
16870 else
16871   ac_cv_c_inline=no
16872 for ac_kw in inline __inline__ __inline; do
16873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h.  */
16875 #ifndef __cplusplus
16876 typedef int foo_t;
16877 static $ac_kw foo_t static_foo () {return 0; }
16878 $ac_kw foo_t foo () {return 0; }
16879 #endif
16880
16881 _ACEOF
16882 if ac_fn_c_try_compile "$LINENO"; then :
16883   ac_cv_c_inline=$ac_kw
16884 fi
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886   test "$ac_cv_c_inline" != no && break
16887 done
16888
16889 fi
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16891 $as_echo "$ac_cv_c_inline" >&6; }
16892
16893 case $ac_cv_c_inline in
16894   inline | yes) ;;
16895   *)
16896     case $ac_cv_c_inline in
16897       no) ac_val=;;
16898       *) ac_val=$ac_cv_c_inline;;
16899     esac
16900     cat >>confdefs.h <<_ACEOF
16901 #ifndef __cplusplus
16902 #define inline $ac_val
16903 #endif
16904 _ACEOF
16905     ;;
16906 esac
16907
16908 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16909 if test "x$ac_cv_type_size_t" = xyes; then :
16910
16911 else
16912
16913 cat >>confdefs.h <<_ACEOF
16914 #define size_t unsigned int
16915 _ACEOF
16916
16917 fi
16918
16919
16920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16921 $as_echo_n "checking for unsigned long long int... " >&6; }
16922 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16923   $as_echo_n "(cached) " >&6
16924 else
16925   ac_cv_type_unsigned_long_long_int=yes
16926      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16927        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h.  */
16929
16930   /* For now, do not test the preprocessor; as of 2007 there are too many
16931          implementations with broken preprocessors.  Perhaps this can
16932          be revisited in 2012.  In the meantime, code should not expect
16933          #if to work with literals wider than 32 bits.  */
16934       /* Test literals.  */
16935       long long int ll = 9223372036854775807ll;
16936       long long int nll = -9223372036854775807LL;
16937       unsigned long long int ull = 18446744073709551615ULL;
16938       /* Test constant expressions.   */
16939       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16940                      ? 1 : -1)];
16941       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16942                      ? 1 : -1)];
16943       int i = 63;
16944 int
16945 main ()
16946 {
16947 /* Test availability of runtime routines for shift and division.  */
16948       long long int llmax = 9223372036854775807ll;
16949       unsigned long long int ullmax = 18446744073709551615ull;
16950       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16951               | (llmax / ll) | (llmax % ll)
16952               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16953               | (ullmax / ull) | (ullmax % ull));
16954   ;
16955   return 0;
16956 }
16957
16958 _ACEOF
16959 if ac_fn_c_try_link "$LINENO"; then :
16960
16961 else
16962   ac_cv_type_unsigned_long_long_int=no
16963 fi
16964 rm -f core conftest.err conftest.$ac_objext \
16965     conftest$ac_exeext conftest.$ac_ext
16966      fi
16967 fi
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16969 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16970   if test $ac_cv_type_unsigned_long_long_int = yes; then
16971
16972 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16973
16974   fi
16975
16976
16977
16978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16979 $as_echo_n "checking for long long int... " >&6; }
16980 if ${ac_cv_type_long_long_int+:} false; then :
16981   $as_echo_n "(cached) " >&6
16982 else
16983   ac_cv_type_long_long_int=yes
16984       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16985         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16986         if test $ac_cv_type_long_long_int = yes; then
16987                                         if test "$cross_compiling" = yes; then :
16988   :
16989 else
16990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h.  */
16992 #include <limits.h>
16993                  #ifndef LLONG_MAX
16994                  # define HALF \
16995                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16996                  # define LLONG_MAX (HALF - 1 + HALF)
16997                  #endif
16998 int
16999 main ()
17000 {
17001 long long int n = 1;
17002                  int i;
17003                  for (i = 0; ; i++)
17004                    {
17005                      long long int m = n << i;
17006                      if (m >> i != n)
17007                        return 1;
17008                      if (LLONG_MAX / 2 < m)
17009                        break;
17010                    }
17011                  return 0;
17012   ;
17013   return 0;
17014 }
17015 _ACEOF
17016 if ac_fn_c_try_run "$LINENO"; then :
17017
17018 else
17019   ac_cv_type_long_long_int=no
17020 fi
17021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17022   conftest.$ac_objext conftest.beam conftest.$ac_ext
17023 fi
17024
17025         fi
17026       fi
17027 fi
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17029 $as_echo "$ac_cv_type_long_long_int" >&6; }
17030   if test $ac_cv_type_long_long_int = yes; then
17031
17032 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17033
17034   fi
17035
17036
17037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17038 $as_echo_n "checking for wchar_t... " >&6; }
17039 if ${gt_cv_c_wchar_t+:} false; then :
17040   $as_echo_n "(cached) " >&6
17041 else
17042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h.  */
17044 #include <stddef.h>
17045             wchar_t foo = (wchar_t)'\0';
17046 int
17047 main ()
17048 {
17049
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 if ac_fn_c_try_compile "$LINENO"; then :
17055   gt_cv_c_wchar_t=yes
17056 else
17057   gt_cv_c_wchar_t=no
17058 fi
17059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17060 fi
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17062 $as_echo "$gt_cv_c_wchar_t" >&6; }
17063   if test $gt_cv_c_wchar_t = yes; then
17064
17065 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17066
17067   fi
17068
17069
17070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17071 $as_echo_n "checking for wint_t... " >&6; }
17072 if ${gt_cv_c_wint_t+:} false; then :
17073   $as_echo_n "(cached) " >&6
17074 else
17075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h.  */
17077
17078 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17079    <wchar.h>.
17080    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17081    before <wchar.h>.  */
17082 #include <stddef.h>
17083 #include <stdio.h>
17084 #include <time.h>
17085 #include <wchar.h>
17086             wint_t foo = (wchar_t)'\0';
17087 int
17088 main ()
17089 {
17090
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 if ac_fn_c_try_compile "$LINENO"; then :
17096   gt_cv_c_wint_t=yes
17097 else
17098   gt_cv_c_wint_t=no
17099 fi
17100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101 fi
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17103 $as_echo "$gt_cv_c_wint_t" >&6; }
17104   if test $gt_cv_c_wint_t = yes; then
17105
17106 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
17107
17108   fi
17109
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17111 $as_echo_n "checking for mbstate_t... " >&6; }
17112 if ${ac_cv_type_mbstate_t+:} false; then :
17113   $as_echo_n "(cached) " >&6
17114 else
17115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h.  */
17117 $ac_includes_default
17118 #           include <wchar.h>
17119 int
17120 main ()
17121 {
17122 mbstate_t x; return sizeof x;
17123   ;
17124   return 0;
17125 }
17126 _ACEOF
17127 if ac_fn_c_try_compile "$LINENO"; then :
17128   ac_cv_type_mbstate_t=yes
17129 else
17130   ac_cv_type_mbstate_t=no
17131 fi
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133 fi
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17135 $as_echo "$ac_cv_type_mbstate_t" >&6; }
17136    if test $ac_cv_type_mbstate_t = yes; then
17137
17138 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17139
17140    else
17141
17142 $as_echo "#define mbstate_t int" >>confdefs.h
17143
17144    fi
17145 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17146 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17147
17148 else
17149
17150 $as_echo "#define ptrdiff_t long" >>confdefs.h
17151
17152
17153 fi
17154
17155
17156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
17157 $as_echo_n "checking for inttypes.h... " >&6; }
17158 if ${gl_cv_header_inttypes_h+:} false; then :
17159   $as_echo_n "(cached) " >&6
17160 else
17161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h.  */
17163
17164 #include <sys/types.h>
17165 #include <inttypes.h>
17166
17167 int
17168 main ()
17169 {
17170 uintmax_t i = (uintmax_t) -1; return !i;
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 if ac_fn_c_try_compile "$LINENO"; then :
17176   gl_cv_header_inttypes_h=yes
17177 else
17178   gl_cv_header_inttypes_h=no
17179 fi
17180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17181 fi
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
17183 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17184   if test $gl_cv_header_inttypes_h = yes; then
17185
17186 cat >>confdefs.h <<_ACEOF
17187 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17188 _ACEOF
17189
17190   fi
17191
17192
17193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
17194 $as_echo_n "checking for stdint.h... " >&6; }
17195 if ${gl_cv_header_stdint_h+:} false; then :
17196   $as_echo_n "(cached) " >&6
17197 else
17198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h.  */
17200 #include <sys/types.h>
17201             #include <stdint.h>
17202 int
17203 main ()
17204 {
17205 uintmax_t i = (uintmax_t) -1; return !i;
17206   ;
17207   return 0;
17208 }
17209 _ACEOF
17210 if ac_fn_c_try_compile "$LINENO"; then :
17211   gl_cv_header_stdint_h=yes
17212 else
17213   gl_cv_header_stdint_h=no
17214 fi
17215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17216 fi
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
17218 $as_echo "$gl_cv_header_stdint_h" >&6; }
17219   if test $gl_cv_header_stdint_h = yes; then
17220
17221 cat >>confdefs.h <<_ACEOF
17222 #define HAVE_STDINT_H_WITH_UINTMAX 1
17223 _ACEOF
17224
17225   fi
17226
17227
17228
17229
17230   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
17231
17232     test $ac_cv_type_long_long_int = yes \
17233       && ac_type='long long' \
17234       || ac_type='long'
17235
17236 cat >>confdefs.h <<_ACEOF
17237 #define intmax_t $ac_type
17238 _ACEOF
17239
17240   else
17241
17242 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17243
17244   fi
17245
17246
17247   for ac_header in stdint.h
17248 do :
17249   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17250 if test "x$ac_cv_header_stdint_h" = xyes; then :
17251   cat >>confdefs.h <<_ACEOF
17252 #define HAVE_STDINT_H 1
17253 _ACEOF
17254
17255 fi
17256
17257 done
17258
17259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
17260 $as_echo_n "checking for SIZE_MAX... " >&6; }
17261 if ${gl_cv_size_max+:} false; then :
17262   $as_echo_n "(cached) " >&6
17263 else
17264
17265     gl_cv_size_max=
17266     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17267 /* end confdefs.h.  */
17268
17269 #include <limits.h>
17270 #if HAVE_STDINT_H
17271 #include <stdint.h>
17272 #endif
17273 #ifdef SIZE_MAX
17274 Found it
17275 #endif
17276
17277 _ACEOF
17278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17279   $EGREP "Found it" >/dev/null 2>&1; then :
17280   gl_cv_size_max=yes
17281 fi
17282 rm -f conftest*
17283
17284     if test -z "$gl_cv_size_max"; then
17285                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
17286 #include <limits.h>"; then :
17287
17288 else
17289   size_t_bits_minus_1=
17290 fi
17291
17292       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
17293
17294 else
17295   fits_in_uint=
17296 fi
17297
17298       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
17299         if test $fits_in_uint = 1; then
17300                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h.  */
17302 #include <stddef.h>
17303                  extern size_t foo;
17304                  extern unsigned long foo;
17305
17306 int
17307 main ()
17308 {
17309
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 if ac_fn_c_try_compile "$LINENO"; then :
17315   fits_in_uint=0
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318         fi
17319                                 if test $fits_in_uint = 1; then
17320           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17321         else
17322           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17323         fi
17324       else
17325                 gl_cv_size_max='((size_t)~(size_t)0)'
17326       fi
17327     fi
17328
17329 fi
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
17331 $as_echo "$gl_cv_size_max" >&6; }
17332   if test "$gl_cv_size_max" != yes; then
17333
17334 cat >>confdefs.h <<_ACEOF
17335 #define SIZE_MAX $gl_cv_size_max
17336 _ACEOF
17337
17338   fi
17339
17340
17341
17342
17343   for ac_header in stdint.h
17344 do :
17345   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17346 if test "x$ac_cv_header_stdint_h" = xyes; then :
17347   cat >>confdefs.h <<_ACEOF
17348 #define HAVE_STDINT_H 1
17349 _ACEOF
17350
17351 fi
17352
17353 done
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363           LIBC_FATAL_STDERR_=1
17364   export LIBC_FATAL_STDERR_
17365
17366 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17367 # for constant arguments.  Useless!
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17369 $as_echo_n "checking for working alloca.h... " >&6; }
17370 if ${ac_cv_working_alloca_h+:} false; then :
17371   $as_echo_n "(cached) " >&6
17372 else
17373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h.  */
17375 #include <alloca.h>
17376 int
17377 main ()
17378 {
17379 char *p = (char *) alloca (2 * sizeof (int));
17380                           if (p) return 0;
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 if ac_fn_c_try_link "$LINENO"; then :
17386   ac_cv_working_alloca_h=yes
17387 else
17388   ac_cv_working_alloca_h=no
17389 fi
17390 rm -f core conftest.err conftest.$ac_objext \
17391     conftest$ac_exeext conftest.$ac_ext
17392 fi
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17394 $as_echo "$ac_cv_working_alloca_h" >&6; }
17395 if test $ac_cv_working_alloca_h = yes; then
17396
17397 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17398
17399 fi
17400
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17402 $as_echo_n "checking for alloca... " >&6; }
17403 if ${ac_cv_func_alloca_works+:} false; then :
17404   $as_echo_n "(cached) " >&6
17405 else
17406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h.  */
17408 #ifdef __GNUC__
17409 # define alloca __builtin_alloca
17410 #else
17411 # ifdef _MSC_VER
17412 #  include <malloc.h>
17413 #  define alloca _alloca
17414 # else
17415 #  ifdef HAVE_ALLOCA_H
17416 #   include <alloca.h>
17417 #  else
17418 #   ifdef _AIX
17419  #pragma alloca
17420 #   else
17421 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17422 void *alloca (size_t);
17423 #    endif
17424 #   endif
17425 #  endif
17426 # endif
17427 #endif
17428
17429 int
17430 main ()
17431 {
17432 char *p = (char *) alloca (1);
17433                                     if (p) return 0;
17434   ;
17435   return 0;
17436 }
17437 _ACEOF
17438 if ac_fn_c_try_link "$LINENO"; then :
17439   ac_cv_func_alloca_works=yes
17440 else
17441   ac_cv_func_alloca_works=no
17442 fi
17443 rm -f core conftest.err conftest.$ac_objext \
17444     conftest$ac_exeext conftest.$ac_ext
17445 fi
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17447 $as_echo "$ac_cv_func_alloca_works" >&6; }
17448
17449 if test $ac_cv_func_alloca_works = yes; then
17450
17451 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17452
17453 else
17454   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17455 # that cause trouble.  Some versions do not even contain alloca or
17456 # contain a buggy version.  If you still want to use their alloca,
17457 # use ar to extract alloca.o from them instead of compiling alloca.c.
17458
17459
17460
17461
17462
17463 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17464
17465 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17466
17467
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17469 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17470 if ${ac_cv_os_cray+:} false; then :
17471   $as_echo_n "(cached) " >&6
17472 else
17473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h.  */
17475 #if defined CRAY && ! defined CRAY2
17476 webecray
17477 #else
17478 wenotbecray
17479 #endif
17480
17481 _ACEOF
17482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17483   $EGREP "webecray" >/dev/null 2>&1; then :
17484   ac_cv_os_cray=yes
17485 else
17486   ac_cv_os_cray=no
17487 fi
17488 rm -f conftest*
17489
17490 fi
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17492 $as_echo "$ac_cv_os_cray" >&6; }
17493 if test $ac_cv_os_cray = yes; then
17494   for ac_func in _getb67 GETB67 getb67; do
17495     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17497 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17498
17499 cat >>confdefs.h <<_ACEOF
17500 #define CRAY_STACKSEG_END $ac_func
17501 _ACEOF
17502
17503     break
17504 fi
17505
17506   done
17507 fi
17508
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17510 $as_echo_n "checking stack direction for C alloca... " >&6; }
17511 if ${ac_cv_c_stack_direction+:} false; then :
17512   $as_echo_n "(cached) " >&6
17513 else
17514   if test "$cross_compiling" = yes; then :
17515   ac_cv_c_stack_direction=0
17516 else
17517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h.  */
17519 $ac_includes_default
17520 int
17521 find_stack_direction (int *addr, int depth)
17522 {
17523   int dir, dummy = 0;
17524   if (! addr)
17525     addr = &dummy;
17526   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17527   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17528   return dir + dummy;
17529 }
17530
17531 int
17532 main (int argc, char **argv)
17533 {
17534   return find_stack_direction (0, argc + !argv + 20) < 0;
17535 }
17536 _ACEOF
17537 if ac_fn_c_try_run "$LINENO"; then :
17538   ac_cv_c_stack_direction=1
17539 else
17540   ac_cv_c_stack_direction=-1
17541 fi
17542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17543   conftest.$ac_objext conftest.beam conftest.$ac_ext
17544 fi
17545
17546 fi
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17548 $as_echo "$ac_cv_c_stack_direction" >&6; }
17549 cat >>confdefs.h <<_ACEOF
17550 #define STACK_DIRECTION $ac_cv_c_stack_direction
17551 _ACEOF
17552
17553
17554 fi
17555
17556
17557
17558
17559
17560   for ac_header in $gl_header_list
17561 do :
17562   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17563 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17565   cat >>confdefs.h <<_ACEOF
17566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17567 _ACEOF
17568
17569 fi
17570
17571 done
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17585 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17586 if ${gl_cv_have_include_next+:} false; then :
17587   $as_echo_n "(cached) " >&6
17588 else
17589   rm -rf conftestd1a conftestd1b conftestd2
17590      mkdir conftestd1a conftestd1b conftestd2
17591                                                   cat <<EOF > conftestd1a/conftest.h
17592 #define DEFINED_IN_CONFTESTD1
17593 #include_next <conftest.h>
17594 #ifdef DEFINED_IN_CONFTESTD2
17595 int foo;
17596 #else
17597 #error "include_next doesn't work"
17598 #endif
17599 EOF
17600      cat <<EOF > conftestd1b/conftest.h
17601 #define DEFINED_IN_CONFTESTD1
17602 #include <stdio.h>
17603 #include_next <conftest.h>
17604 #ifdef DEFINED_IN_CONFTESTD2
17605 int foo;
17606 #else
17607 #error "include_next doesn't work"
17608 #endif
17609 EOF
17610      cat <<EOF > conftestd2/conftest.h
17611 #ifndef DEFINED_IN_CONFTESTD1
17612 #error "include_next test doesn't work"
17613 #endif
17614 #define DEFINED_IN_CONFTESTD2
17615 EOF
17616      gl_save_CPPFLAGS="$CPPFLAGS"
17617      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17618      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h.  */
17620 #include <conftest.h>
17621 _ACEOF
17622 if ac_fn_c_try_compile "$LINENO"; then :
17623   gl_cv_have_include_next=yes
17624 else
17625   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17626         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h.  */
17628 #include <conftest.h>
17629 _ACEOF
17630 if ac_fn_c_try_compile "$LINENO"; then :
17631   gl_cv_have_include_next=buggy
17632 else
17633   gl_cv_have_include_next=no
17634 fi
17635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17636
17637 fi
17638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17639      CPPFLAGS="$gl_save_CPPFLAGS"
17640      rm -rf conftestd1a conftestd1b conftestd2
17641
17642 fi
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17644 $as_echo "$gl_cv_have_include_next" >&6; }
17645   PRAGMA_SYSTEM_HEADER=
17646   if test $gl_cv_have_include_next = yes; then
17647     INCLUDE_NEXT=include_next
17648     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17649     if test -n "$GCC"; then
17650       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17651     fi
17652   else
17653     if test $gl_cv_have_include_next = buggy; then
17654       INCLUDE_NEXT=include
17655       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17656     else
17657       INCLUDE_NEXT=include
17658       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17659     fi
17660   fi
17661
17662
17663
17664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17665 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17666 if ${gl_cv_pragma_columns+:} false; then :
17667   $as_echo_n "(cached) " >&6
17668 else
17669        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h.  */
17671
17672 #ifdef __TANDEM
17673 choke me
17674 #endif
17675
17676 _ACEOF
17677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17678   $EGREP "choke me" >/dev/null 2>&1; then :
17679   gl_cv_pragma_columns=yes
17680 else
17681   gl_cv_pragma_columns=no
17682 fi
17683 rm -f conftest*
17684
17685
17686 fi
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17688 $as_echo "$gl_cv_pragma_columns" >&6; }
17689   if test $gl_cv_pragma_columns = yes; then
17690     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17691   else
17692     PRAGMA_COLUMNS=
17693   fi
17694
17695
17696
17697
17698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
17699 $as_echo_n "checking for complete errno.h... " >&6; }
17700 if ${gl_cv_header_errno_h_complete+:} false; then :
17701   $as_echo_n "(cached) " >&6
17702 else
17703
17704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h.  */
17706
17707 #include <errno.h>
17708 #if !defined ETXTBSY
17709 booboo
17710 #endif
17711 #if !defined ENOMSG
17712 booboo
17713 #endif
17714 #if !defined EIDRM
17715 booboo
17716 #endif
17717 #if !defined ENOLINK
17718 booboo
17719 #endif
17720 #if !defined EPROTO
17721 booboo
17722 #endif
17723 #if !defined EMULTIHOP
17724 booboo
17725 #endif
17726 #if !defined EBADMSG
17727 booboo
17728 #endif
17729 #if !defined EOVERFLOW
17730 booboo
17731 #endif
17732 #if !defined ENOTSUP
17733 booboo
17734 #endif
17735 #if !defined ENETRESET
17736 booboo
17737 #endif
17738 #if !defined ECONNABORTED
17739 booboo
17740 #endif
17741 #if !defined ESTALE
17742 booboo
17743 #endif
17744 #if !defined EDQUOT
17745 booboo
17746 #endif
17747 #if !defined ECANCELED
17748 booboo
17749 #endif
17750 #if !defined EOWNERDEAD
17751 booboo
17752 #endif
17753 #if !defined ENOTRECOVERABLE
17754 booboo
17755 #endif
17756 #if !defined EILSEQ
17757 booboo
17758 #endif
17759
17760 _ACEOF
17761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17762   $EGREP "booboo" >/dev/null 2>&1; then :
17763   gl_cv_header_errno_h_complete=no
17764 else
17765   gl_cv_header_errno_h_complete=yes
17766 fi
17767 rm -f conftest*
17768
17769
17770 fi
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
17772 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
17773   if test $gl_cv_header_errno_h_complete = yes; then
17774     ERRNO_H=''
17775   else
17776
17777
17778
17779
17780
17781
17782
17783
17784      if test $gl_cv_have_include_next = yes; then
17785        gl_cv_next_errno_h='<'errno.h'>'
17786      else
17787        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
17788 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
17789 if ${gl_cv_next_errno_h+:} false; then :
17790   $as_echo_n "(cached) " >&6
17791 else
17792
17793
17794
17795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h.  */
17797 #include <errno.h>
17798 _ACEOF
17799                 case "$host_os" in
17800     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17801     *)    gl_absname_cpp="$ac_cpp" ;;
17802   esac
17803
17804   case "$host_os" in
17805     mingw*)
17806                                           gl_dirsep_regex='[/\\]'
17807       ;;
17808     *)
17809       gl_dirsep_regex='\/'
17810       ;;
17811   esac
17812       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17813   gl_header_literal_regex=`echo 'errno.h' \
17814                            | sed -e "$gl_make_literal_regex_sed"`
17815   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17816       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17817       s|^/[^/]|//&|
17818       p
17819       q
17820     }'
17821
17822         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17823   sed -n "$gl_absolute_header_sed"`
17824
17825            gl_header=$gl_cv_absolute_errno_h
17826            gl_cv_next_errno_h='"'$gl_header'"'
17827
17828
17829 fi
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
17831 $as_echo "$gl_cv_next_errno_h" >&6; }
17832      fi
17833      NEXT_ERRNO_H=$gl_cv_next_errno_h
17834
17835      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17836        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17837        gl_next_as_first_directive='<'errno.h'>'
17838      else
17839        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17840        gl_next_as_first_directive=$gl_cv_next_errno_h
17841      fi
17842      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
17843
17844
17845
17846
17847     ERRNO_H='errno.h'
17848   fi
17849
17850    if test -n "$ERRNO_H"; then
17851   GL_GENERATE_ERRNO_H_TRUE=
17852   GL_GENERATE_ERRNO_H_FALSE='#'
17853 else
17854   GL_GENERATE_ERRNO_H_TRUE='#'
17855   GL_GENERATE_ERRNO_H_FALSE=
17856 fi
17857
17858
17859   if test -n "$ERRNO_H"; then
17860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
17861 $as_echo_n "checking for EMULTIHOP value... " >&6; }
17862 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
17863   $as_echo_n "(cached) " >&6
17864 else
17865
17866       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h.  */
17868
17869 #include <errno.h>
17870 #ifdef EMULTIHOP
17871 yes
17872 #endif
17873
17874 _ACEOF
17875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17876   $EGREP "yes" >/dev/null 2>&1; then :
17877   gl_cv_header_errno_h_EMULTIHOP=yes
17878 else
17879   gl_cv_header_errno_h_EMULTIHOP=no
17880 fi
17881 rm -f conftest*
17882
17883       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
17884         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h.  */
17886
17887 #define _XOPEN_SOURCE_EXTENDED 1
17888 #include <errno.h>
17889 #ifdef EMULTIHOP
17890 yes
17891 #endif
17892
17893 _ACEOF
17894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17895   $EGREP "yes" >/dev/null 2>&1; then :
17896   gl_cv_header_errno_h_EMULTIHOP=hidden
17897 fi
17898 rm -f conftest*
17899
17900         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
17901                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
17902 #define _XOPEN_SOURCE_EXTENDED 1
17903 #include <errno.h>
17904 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
17905 #include <stdio.h>
17906 #include <stdlib.h>
17907 "; then :
17908
17909 fi
17910
17911         fi
17912       fi
17913
17914 fi
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
17916 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
17917     case $gl_cv_header_errno_h_EMULTIHOP in
17918       yes | no)
17919         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
17920         ;;
17921       *)
17922         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
17923         ;;
17924     esac
17925
17926
17927   fi
17928
17929
17930   if test -n "$ERRNO_H"; then
17931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
17932 $as_echo_n "checking for ENOLINK value... " >&6; }
17933 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
17934   $as_echo_n "(cached) " >&6
17935 else
17936
17937       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h.  */
17939
17940 #include <errno.h>
17941 #ifdef ENOLINK
17942 yes
17943 #endif
17944
17945 _ACEOF
17946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17947   $EGREP "yes" >/dev/null 2>&1; then :
17948   gl_cv_header_errno_h_ENOLINK=yes
17949 else
17950   gl_cv_header_errno_h_ENOLINK=no
17951 fi
17952 rm -f conftest*
17953
17954       if test $gl_cv_header_errno_h_ENOLINK = no; then
17955         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h.  */
17957
17958 #define _XOPEN_SOURCE_EXTENDED 1
17959 #include <errno.h>
17960 #ifdef ENOLINK
17961 yes
17962 #endif
17963
17964 _ACEOF
17965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17966   $EGREP "yes" >/dev/null 2>&1; then :
17967   gl_cv_header_errno_h_ENOLINK=hidden
17968 fi
17969 rm -f conftest*
17970
17971         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
17972                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
17973 #define _XOPEN_SOURCE_EXTENDED 1
17974 #include <errno.h>
17975 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
17976 #include <stdio.h>
17977 #include <stdlib.h>
17978 "; then :
17979
17980 fi
17981
17982         fi
17983       fi
17984
17985 fi
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17987 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
17988     case $gl_cv_header_errno_h_ENOLINK in
17989       yes | no)
17990         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
17991         ;;
17992       *)
17993         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
17994         ;;
17995     esac
17996
17997
17998   fi
17999
18000
18001   if test -n "$ERRNO_H"; then
18002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18003 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18004 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
18005   $as_echo_n "(cached) " >&6
18006 else
18007
18008       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h.  */
18010
18011 #include <errno.h>
18012 #ifdef EOVERFLOW
18013 yes
18014 #endif
18015
18016 _ACEOF
18017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18018   $EGREP "yes" >/dev/null 2>&1; then :
18019   gl_cv_header_errno_h_EOVERFLOW=yes
18020 else
18021   gl_cv_header_errno_h_EOVERFLOW=no
18022 fi
18023 rm -f conftest*
18024
18025       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18026         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18027 /* end confdefs.h.  */
18028
18029 #define _XOPEN_SOURCE_EXTENDED 1
18030 #include <errno.h>
18031 #ifdef EOVERFLOW
18032 yes
18033 #endif
18034
18035 _ACEOF
18036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18037   $EGREP "yes" >/dev/null 2>&1; then :
18038   gl_cv_header_errno_h_EOVERFLOW=hidden
18039 fi
18040 rm -f conftest*
18041
18042         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18043                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
18044 #define _XOPEN_SOURCE_EXTENDED 1
18045 #include <errno.h>
18046 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
18047 #include <stdio.h>
18048 #include <stdlib.h>
18049 "; then :
18050
18051 fi
18052
18053         fi
18054       fi
18055
18056 fi
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18058 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18059     case $gl_cv_header_errno_h_EOVERFLOW in
18060       yes | no)
18061         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18062         ;;
18063       *)
18064         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18065         ;;
18066     esac
18067
18068
18069   fi
18070
18071
18072
18073
18074
18075
18076    if true; then
18077   GL_COND_LIBTOOL_TRUE=
18078   GL_COND_LIBTOOL_FALSE='#'
18079 else
18080   GL_COND_LIBTOOL_TRUE='#'
18081   GL_COND_LIBTOOL_FALSE=
18082 fi
18083
18084   gl_cond_libtool=true
18085   gl_m4_base='gnulib-m4'
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095   gl_source_base='.'
18096 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
18097
18098
18099
18100
18101
18102
18103   if test $ac_cv_func_alloca_works = no; then
18104
18105
18106   :
18107
18108
18109
18110
18111
18112
18113
18114
18115   :
18116
18117   fi
18118
18119   # Define an additional variable used in the Makefile substitution.
18120
18121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h.  */
18123
18124 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
18125   Need own alloca
18126 #endif
18127
18128 _ACEOF
18129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18130   $EGREP "Need own alloca" >/dev/null 2>&1; then :
18131   ALLOCA_H=alloca.h
18132 else
18133   ALLOCA_H=
18134 fi
18135 rm -f conftest*
18136
18137
18138    if test -n "$ALLOCA_H"; then
18139   GL_GENERATE_ALLOCA_H_TRUE=
18140   GL_GENERATE_ALLOCA_H_FALSE='#'
18141 else
18142   GL_GENERATE_ALLOCA_H_TRUE='#'
18143   GL_GENERATE_ALLOCA_H_FALSE=
18144 fi
18145
18146
18147
18148
18149
18150   for ac_header in stdint.h
18151 do :
18152   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18153 if test "x$ac_cv_header_stdint_h" = xyes; then :
18154   cat >>confdefs.h <<_ACEOF
18155 #define HAVE_STDINT_H 1
18156 _ACEOF
18157
18158 fi
18159
18160 done
18161
18162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18163 $as_echo_n "checking for SIZE_MAX... " >&6; }
18164 if ${gl_cv_size_max+:} false; then :
18165   $as_echo_n "(cached) " >&6
18166 else
18167
18168     gl_cv_size_max=
18169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h.  */
18171
18172 #include <limits.h>
18173 #if HAVE_STDINT_H
18174 #include <stdint.h>
18175 #endif
18176 #ifdef SIZE_MAX
18177 Found it
18178 #endif
18179
18180 _ACEOF
18181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18182   $EGREP "Found it" >/dev/null 2>&1; then :
18183   gl_cv_size_max=yes
18184 fi
18185 rm -f conftest*
18186
18187     if test -z "$gl_cv_size_max"; then
18188                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
18189 #include <limits.h>"; then :
18190
18191 else
18192   size_t_bits_minus_1=
18193 fi
18194
18195       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
18196
18197 else
18198   fits_in_uint=
18199 fi
18200
18201       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18202         if test $fits_in_uint = 1; then
18203                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h.  */
18205 #include <stddef.h>
18206                  extern size_t foo;
18207                  extern unsigned long foo;
18208
18209 int
18210 main ()
18211 {
18212
18213   ;
18214   return 0;
18215 }
18216 _ACEOF
18217 if ac_fn_c_try_compile "$LINENO"; then :
18218   fits_in_uint=0
18219 fi
18220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18221         fi
18222                                 if test $fits_in_uint = 1; then
18223           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18224         else
18225           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18226         fi
18227       else
18228                 gl_cv_size_max='((size_t)~(size_t)0)'
18229       fi
18230     fi
18231
18232 fi
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18234 $as_echo "$gl_cv_size_max" >&6; }
18235   if test "$gl_cv_size_max" != yes; then
18236
18237 cat >>confdefs.h <<_ACEOF
18238 #define SIZE_MAX $gl_cv_size_max
18239 _ACEOF
18240
18241   fi
18242
18243
18244
18245
18246   for ac_header in stdint.h
18247 do :
18248   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18249 if test "x$ac_cv_header_stdint_h" = xyes; then :
18250   cat >>confdefs.h <<_ACEOF
18251 #define HAVE_STDINT_H 1
18252 _ACEOF
18253
18254 fi
18255
18256 done
18257
18258
18259   # End of code from modules
18260
18261
18262
18263
18264
18265
18266
18267   gltests_libdeps=
18268   gltests_ltlibdeps=
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278   gl_source_base='tests'
18279   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
18280
18281   gl_module_indicator_condition=$gltests_WITNESS
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292 for ac_func in snprintf vasprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18293 do :
18294   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18297   cat >>confdefs.h <<_ACEOF
18298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18299 _ACEOF
18300
18301 fi
18302 done
18303
18304 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
18305 "
18306 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
18307   ac_have_decl=1
18308 else
18309   ac_have_decl=0
18310 fi
18311
18312 cat >>confdefs.h <<_ACEOF
18313 #define HAVE_DECL__SNPRINTF $ac_have_decl
18314 _ACEOF
18315
18316
18317
18318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18319 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18320 if ${gt_cv_func_printf_posix+:} false; then :
18321   $as_echo_n "(cached) " >&6
18322 else
18323
18324       if test "$cross_compiling" = yes; then :
18325
18326           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h.  */
18328
18329 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18330   notposix
18331 #endif
18332
18333 _ACEOF
18334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18335   $EGREP "notposix" >/dev/null 2>&1; then :
18336   gt_cv_func_printf_posix="guessing no"
18337 else
18338   gt_cv_func_printf_posix="guessing yes"
18339 fi
18340 rm -f conftest*
18341
18342
18343 else
18344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h.  */
18346
18347 #include <stdio.h>
18348 #include <string.h>
18349 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18350    dollar expansion (possibly an autoconf bug).  */
18351 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18352 static char buf[100];
18353 int main ()
18354 {
18355   sprintf (buf, format, 33, 55);
18356   return (strcmp (buf, "55 33") != 0);
18357 }
18358 _ACEOF
18359 if ac_fn_c_try_run "$LINENO"; then :
18360   gt_cv_func_printf_posix=yes
18361 else
18362   gt_cv_func_printf_posix=no
18363 fi
18364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18365   conftest.$ac_objext conftest.beam conftest.$ac_ext
18366 fi
18367
18368
18369 fi
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18371 $as_echo "$gt_cv_func_printf_posix" >&6; }
18372   case $gt_cv_func_printf_posix in
18373     *yes)
18374
18375 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18376
18377       ;;
18378   esac
18379
18380
18381 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
18382 # Extract the first word of "dvips", so it can be a program name with args.
18383 set dummy dvips; ac_word=$2
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18385 $as_echo_n "checking for $ac_word... " >&6; }
18386 if ${ac_cv_path_DVIPS+:} false; then :
18387   $as_echo_n "(cached) " >&6
18388 else
18389   case $DVIPS in
18390   [\\/]* | ?:[\\/]*)
18391   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
18392   ;;
18393   *)
18394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18395 for as_dir in $PATH
18396 do
18397   IFS=$as_save_IFS
18398   test -z "$as_dir" && as_dir=.
18399     for ac_exec_ext in '' $ac_executable_extensions; do
18400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18401     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
18402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18403     break 2
18404   fi
18405 done
18406   done
18407 IFS=$as_save_IFS
18408
18409   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
18410   ;;
18411 esac
18412 fi
18413 DVIPS=$ac_cv_path_DVIPS
18414 if test -n "$DVIPS"; then
18415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
18416 $as_echo "$DVIPS" >&6; }
18417 else
18418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419 $as_echo "no" >&6; }
18420 fi
18421
18422
18423 # Extract the first word of "texi2pdf", so it can be a program name with args.
18424 set dummy texi2pdf; ac_word=$2
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18426 $as_echo_n "checking for $ac_word... " >&6; }
18427 if ${ac_cv_path_TEXI2PDF+:} false; then :
18428   $as_echo_n "(cached) " >&6
18429 else
18430   case $TEXI2PDF in
18431   [\\/]* | ?:[\\/]*)
18432   ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
18433   ;;
18434   *)
18435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18436 for as_dir in $PATH
18437 do
18438   IFS=$as_save_IFS
18439   test -z "$as_dir" && as_dir=.
18440     for ac_exec_ext in '' $ac_executable_extensions; do
18441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18442     ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
18443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18444     break 2
18445   fi
18446 done
18447   done
18448 IFS=$as_save_IFS
18449
18450   test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
18451   ;;
18452 esac
18453 fi
18454 TEXI2PDF=$ac_cv_path_TEXI2PDF
18455 if test -n "$TEXI2PDF"; then
18456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
18457 $as_echo "$TEXI2PDF" >&6; }
18458 else
18459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18460 $as_echo "no" >&6; }
18461 fi
18462
18463
18464 # Extract the first word of "perl", so it can be a program name with args.
18465 set dummy perl; ac_word=$2
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18467 $as_echo_n "checking for $ac_word... " >&6; }
18468 if ${ac_cv_path_PERL+:} false; then :
18469   $as_echo_n "(cached) " >&6
18470 else
18471   case $PERL in
18472   [\\/]* | ?:[\\/]*)
18473   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18474   ;;
18475   *)
18476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18477 for as_dir in $PATH
18478 do
18479   IFS=$as_save_IFS
18480   test -z "$as_dir" && as_dir=.
18481     for ac_exec_ext in '' $ac_executable_extensions; do
18482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18483     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18485     break 2
18486   fi
18487 done
18488   done
18489 IFS=$as_save_IFS
18490
18491   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
18492   ;;
18493 esac
18494 fi
18495 PERL=$ac_cv_path_PERL
18496 if test -n "$PERL"; then
18497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18498 $as_echo "$PERL" >&6; }
18499 else
18500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501 $as_echo "no" >&6; }
18502 fi
18503
18504
18505
18506 ac_config_files="$ac_config_files Makefile"
18507
18508
18509 cat >confcache <<\_ACEOF
18510 # This file is a shell script that caches the results of configure
18511 # tests run on this system so they can be shared between configure
18512 # scripts and configure runs, see configure's option --config-cache.
18513 # It is not useful on other systems.  If it contains results you don't
18514 # want to keep, you may remove or edit it.
18515 #
18516 # config.status only pays attention to the cache file if you give it
18517 # the --recheck option to rerun configure.
18518 #
18519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18521 # following values.
18522
18523 _ACEOF
18524
18525 # The following way of writing the cache mishandles newlines in values,
18526 # but we know of no workaround that is simple, portable, and efficient.
18527 # So, we kill variables containing newlines.
18528 # Ultrix sh set writes to stderr and can't be redirected directly,
18529 # and sets the high bit in the cache file unless we assign to the vars.
18530 (
18531   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18532     eval ac_val=\$$ac_var
18533     case $ac_val in #(
18534     *${as_nl}*)
18535       case $ac_var in #(
18536       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18538       esac
18539       case $ac_var in #(
18540       _ | IFS | as_nl) ;; #(
18541       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18542       *) { eval $ac_var=; unset $ac_var;} ;;
18543       esac ;;
18544     esac
18545   done
18546
18547   (set) 2>&1 |
18548     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18549     *${as_nl}ac_space=\ *)
18550       # `set' does not quote correctly, so add quotes: double-quote
18551       # substitution turns \\\\ into \\, and sed turns \\ into \.
18552       sed -n \
18553         "s/'/'\\\\''/g;
18554           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18555       ;; #(
18556     *)
18557       # `set' quotes correctly as required by POSIX, so do not add quotes.
18558       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18559       ;;
18560     esac |
18561     sort
18562 ) |
18563   sed '
18564      /^ac_cv_env_/b end
18565      t clear
18566      :clear
18567      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18568      t end
18569      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18570      :end' >>confcache
18571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18572   if test -w "$cache_file"; then
18573     if test "x$cache_file" != "x/dev/null"; then
18574       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18575 $as_echo "$as_me: updating cache $cache_file" >&6;}
18576       if test ! -f "$cache_file" || test -h "$cache_file"; then
18577         cat confcache >"$cache_file"
18578       else
18579         case $cache_file in #(
18580         */* | ?:*)
18581           mv -f confcache "$cache_file"$$ &&
18582           mv -f "$cache_file"$$ "$cache_file" ;; #(
18583         *)
18584           mv -f confcache "$cache_file" ;;
18585         esac
18586       fi
18587     fi
18588   else
18589     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18590 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18591   fi
18592 fi
18593 rm -f confcache
18594
18595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18596 # Let make expand exec_prefix.
18597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18598
18599 DEFS=-DHAVE_CONFIG_H
18600
18601 ac_libobjs=
18602 ac_ltlibobjs=
18603 U=
18604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18605   # 1. Remove the extension, and $U if already installed.
18606   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18607   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18608   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18609   #    will be set to the directory where LIBOBJS objects are built.
18610   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18611   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18612 done
18613 LIBOBJS=$ac_libobjs
18614
18615 LTLIBOBJS=$ac_ltlibobjs
18616
18617
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18619 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18620    if test -n "$am_sleep_pid"; then
18621      # Hide warnings about reused PIDs.
18622      wait $am_sleep_pid 2>/dev/null
18623    fi
18624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18625 $as_echo "done" >&6; }
18626  if test -n "$EXEEXT"; then
18627   am__EXEEXT_TRUE=
18628   am__EXEEXT_FALSE='#'
18629 else
18630   am__EXEEXT_TRUE='#'
18631   am__EXEEXT_FALSE=
18632 fi
18633
18634 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18635   as_fn_error $? "conditional \"AMDEP\" was never defined.
18636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18637 fi
18638 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18639   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18641 fi
18642 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18643   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18645 fi
18646 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18647   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
18648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18649 fi
18650 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18651   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18653 fi
18654 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18655   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18657 fi
18658
18659     gl_libobjs=
18660     gl_ltlibobjs=
18661     if test -n "$gl_LIBOBJS"; then
18662       # Remove the extension.
18663       sed_drop_objext='s/\.o$//;s/\.obj$//'
18664       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18665         gl_libobjs="$gl_libobjs $i.$ac_objext"
18666         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18667       done
18668     fi
18669     gl_LIBOBJS=$gl_libobjs
18670
18671     gl_LTLIBOBJS=$gl_ltlibobjs
18672
18673
18674
18675     gltests_libobjs=
18676     gltests_ltlibobjs=
18677     if test -n "$gltests_LIBOBJS"; then
18678       # Remove the extension.
18679       sed_drop_objext='s/\.o$//;s/\.obj$//'
18680       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18681         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18682         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18683       done
18684     fi
18685     gltests_LIBOBJS=$gltests_libobjs
18686
18687     gltests_LTLIBOBJS=$gltests_ltlibobjs
18688
18689
18690
18691 : "${CONFIG_STATUS=./config.status}"
18692 ac_write_fail=0
18693 ac_clean_files_save=$ac_clean_files
18694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18696 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18697 as_write_fail=0
18698 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18699 #! $SHELL
18700 # Generated by $as_me.
18701 # Run this file to recreate the current configuration.
18702 # Compiler output produced by configure, useful for debugging
18703 # configure, is in config.log if it exists.
18704
18705 debug=false
18706 ac_cs_recheck=false
18707 ac_cs_silent=false
18708
18709 SHELL=\${CONFIG_SHELL-$SHELL}
18710 export SHELL
18711 _ASEOF
18712 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18713 ## -------------------- ##
18714 ## M4sh Initialization. ##
18715 ## -------------------- ##
18716
18717 # Be more Bourne compatible
18718 DUALCASE=1; export DUALCASE # for MKS sh
18719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18720   emulate sh
18721   NULLCMD=:
18722   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18723   # is contrary to our usage.  Disable this feature.
18724   alias -g '${1+"$@"}'='"$@"'
18725   setopt NO_GLOB_SUBST
18726 else
18727   case `(set -o) 2>/dev/null` in #(
18728   *posix*) :
18729     set -o posix ;; #(
18730   *) :
18731      ;;
18732 esac
18733 fi
18734
18735
18736 as_nl='
18737 '
18738 export as_nl
18739 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18740 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18743 # Prefer a ksh shell builtin over an external printf program on Solaris,
18744 # but without wasting forks for bash or zsh.
18745 if test -z "$BASH_VERSION$ZSH_VERSION" \
18746     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18747   as_echo='print -r --'
18748   as_echo_n='print -rn --'
18749 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18750   as_echo='printf %s\n'
18751   as_echo_n='printf %s'
18752 else
18753   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18754     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18755     as_echo_n='/usr/ucb/echo -n'
18756   else
18757     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18758     as_echo_n_body='eval
18759       arg=$1;
18760       case $arg in #(
18761       *"$as_nl"*)
18762         expr "X$arg" : "X\\(.*\\)$as_nl";
18763         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18764       esac;
18765       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18766     '
18767     export as_echo_n_body
18768     as_echo_n='sh -c $as_echo_n_body as_echo'
18769   fi
18770   export as_echo_body
18771   as_echo='sh -c $as_echo_body as_echo'
18772 fi
18773
18774 # The user is always right.
18775 if test "${PATH_SEPARATOR+set}" != set; then
18776   PATH_SEPARATOR=:
18777   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18778     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18779       PATH_SEPARATOR=';'
18780   }
18781 fi
18782
18783
18784 # IFS
18785 # We need space, tab and new line, in precisely that order.  Quoting is
18786 # there to prevent editors from complaining about space-tab.
18787 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18788 # splitting by setting IFS to empty value.)
18789 IFS=" ""        $as_nl"
18790
18791 # Find who we are.  Look in the path if we contain no directory separator.
18792 as_myself=
18793 case $0 in #((
18794   *[\\/]* ) as_myself=$0 ;;
18795   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18796 for as_dir in $PATH
18797 do
18798   IFS=$as_save_IFS
18799   test -z "$as_dir" && as_dir=.
18800     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18801   done
18802 IFS=$as_save_IFS
18803
18804      ;;
18805 esac
18806 # We did not find ourselves, most probably we were run as `sh COMMAND'
18807 # in which case we are not to be found in the path.
18808 if test "x$as_myself" = x; then
18809   as_myself=$0
18810 fi
18811 if test ! -f "$as_myself"; then
18812   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18813   exit 1
18814 fi
18815
18816 # Unset variables that we do not need and which cause bugs (e.g. in
18817 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18818 # suppresses any "Segmentation fault" message there.  '((' could
18819 # trigger a bug in pdksh 5.2.14.
18820 for as_var in BASH_ENV ENV MAIL MAILPATH
18821 do eval test x\${$as_var+set} = xset \
18822   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18823 done
18824 PS1='$ '
18825 PS2='> '
18826 PS4='+ '
18827
18828 # NLS nuisances.
18829 LC_ALL=C
18830 export LC_ALL
18831 LANGUAGE=C
18832 export LANGUAGE
18833
18834 # CDPATH.
18835 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18836
18837
18838 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18839 # ----------------------------------------
18840 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18841 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18842 # script with STATUS, using 1 if that was 0.
18843 as_fn_error ()
18844 {
18845   as_status=$1; test $as_status -eq 0 && as_status=1
18846   if test "$4"; then
18847     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18848     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18849   fi
18850   $as_echo "$as_me: error: $2" >&2
18851   as_fn_exit $as_status
18852 } # as_fn_error
18853
18854
18855 # as_fn_set_status STATUS
18856 # -----------------------
18857 # Set $? to STATUS, without forking.
18858 as_fn_set_status ()
18859 {
18860   return $1
18861 } # as_fn_set_status
18862
18863 # as_fn_exit STATUS
18864 # -----------------
18865 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18866 as_fn_exit ()
18867 {
18868   set +e
18869   as_fn_set_status $1
18870   exit $1
18871 } # as_fn_exit
18872
18873 # as_fn_unset VAR
18874 # ---------------
18875 # Portably unset VAR.
18876 as_fn_unset ()
18877 {
18878   { eval $1=; unset $1;}
18879 }
18880 as_unset=as_fn_unset
18881 # as_fn_append VAR VALUE
18882 # ----------------------
18883 # Append the text in VALUE to the end of the definition contained in VAR. Take
18884 # advantage of any shell optimizations that allow amortized linear growth over
18885 # repeated appends, instead of the typical quadratic growth present in naive
18886 # implementations.
18887 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18888   eval 'as_fn_append ()
18889   {
18890     eval $1+=\$2
18891   }'
18892 else
18893   as_fn_append ()
18894   {
18895     eval $1=\$$1\$2
18896   }
18897 fi # as_fn_append
18898
18899 # as_fn_arith ARG...
18900 # ------------------
18901 # Perform arithmetic evaluation on the ARGs, and store the result in the
18902 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18903 # must be portable across $(()) and expr.
18904 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18905   eval 'as_fn_arith ()
18906   {
18907     as_val=$(( $* ))
18908   }'
18909 else
18910   as_fn_arith ()
18911   {
18912     as_val=`expr "$@" || test $? -eq 1`
18913   }
18914 fi # as_fn_arith
18915
18916
18917 if expr a : '\(a\)' >/dev/null 2>&1 &&
18918    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18919   as_expr=expr
18920 else
18921   as_expr=false
18922 fi
18923
18924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18925   as_basename=basename
18926 else
18927   as_basename=false
18928 fi
18929
18930 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18931   as_dirname=dirname
18932 else
18933   as_dirname=false
18934 fi
18935
18936 as_me=`$as_basename -- "$0" ||
18937 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18938          X"$0" : 'X\(//\)$' \| \
18939          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18940 $as_echo X/"$0" |
18941     sed '/^.*\/\([^/][^/]*\)\/*$/{
18942             s//\1/
18943             q
18944           }
18945           /^X\/\(\/\/\)$/{
18946             s//\1/
18947             q
18948           }
18949           /^X\/\(\/\).*/{
18950             s//\1/
18951             q
18952           }
18953           s/.*/./; q'`
18954
18955 # Avoid depending upon Character Ranges.
18956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18959 as_cr_digits='0123456789'
18960 as_cr_alnum=$as_cr_Letters$as_cr_digits
18961
18962 ECHO_C= ECHO_N= ECHO_T=
18963 case `echo -n x` in #(((((
18964 -n*)
18965   case `echo 'xy\c'` in
18966   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18967   xy)  ECHO_C='\c';;
18968   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18969        ECHO_T=' ';;
18970   esac;;
18971 *)
18972   ECHO_N='-n';;
18973 esac
18974
18975 rm -f conf$$ conf$$.exe conf$$.file
18976 if test -d conf$$.dir; then
18977   rm -f conf$$.dir/conf$$.file
18978 else
18979   rm -f conf$$.dir
18980   mkdir conf$$.dir 2>/dev/null
18981 fi
18982 if (echo >conf$$.file) 2>/dev/null; then
18983   if ln -s conf$$.file conf$$ 2>/dev/null; then
18984     as_ln_s='ln -s'
18985     # ... but there are two gotchas:
18986     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18987     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18988     # In both cases, we have to default to `cp -pR'.
18989     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18990       as_ln_s='cp -pR'
18991   elif ln conf$$.file conf$$ 2>/dev/null; then
18992     as_ln_s=ln
18993   else
18994     as_ln_s='cp -pR'
18995   fi
18996 else
18997   as_ln_s='cp -pR'
18998 fi
18999 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19000 rmdir conf$$.dir 2>/dev/null
19001
19002
19003 # as_fn_mkdir_p
19004 # -------------
19005 # Create "$as_dir" as a directory, including parents if necessary.
19006 as_fn_mkdir_p ()
19007 {
19008
19009   case $as_dir in #(
19010   -*) as_dir=./$as_dir;;
19011   esac
19012   test -d "$as_dir" || eval $as_mkdir_p || {
19013     as_dirs=
19014     while :; do
19015       case $as_dir in #(
19016       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19017       *) as_qdir=$as_dir;;
19018       esac
19019       as_dirs="'$as_qdir' $as_dirs"
19020       as_dir=`$as_dirname -- "$as_dir" ||
19021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19022          X"$as_dir" : 'X\(//\)[^/]' \| \
19023          X"$as_dir" : 'X\(//\)$' \| \
19024          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19025 $as_echo X"$as_dir" |
19026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19027             s//\1/
19028             q
19029           }
19030           /^X\(\/\/\)[^/].*/{
19031             s//\1/
19032             q
19033           }
19034           /^X\(\/\/\)$/{
19035             s//\1/
19036             q
19037           }
19038           /^X\(\/\).*/{
19039             s//\1/
19040             q
19041           }
19042           s/.*/./; q'`
19043       test -d "$as_dir" && break
19044     done
19045     test -z "$as_dirs" || eval "mkdir $as_dirs"
19046   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19047
19048
19049 } # as_fn_mkdir_p
19050 if mkdir -p . 2>/dev/null; then
19051   as_mkdir_p='mkdir -p "$as_dir"'
19052 else
19053   test -d ./-p && rmdir ./-p
19054   as_mkdir_p=false
19055 fi
19056
19057
19058 # as_fn_executable_p FILE
19059 # -----------------------
19060 # Test if FILE is an executable regular file.
19061 as_fn_executable_p ()
19062 {
19063   test -f "$1" && test -x "$1"
19064 } # as_fn_executable_p
19065 as_test_x='test -x'
19066 as_executable_p=as_fn_executable_p
19067
19068 # Sed expression to map a string onto a valid CPP name.
19069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19070
19071 # Sed expression to map a string onto a valid variable name.
19072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19073
19074
19075 exec 6>&1
19076 ## ----------------------------------- ##
19077 ## Main body of $CONFIG_STATUS script. ##
19078 ## ----------------------------------- ##
19079 _ASEOF
19080 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19081
19082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19083 # Save the log message, to keep $0 and so on meaningful, and to
19084 # report actual input values of CONFIG_FILES etc. instead of their
19085 # values after options handling.
19086 ac_log="
19087 This file was extended by libasprintf $as_me 1.0, which was
19088 generated by GNU Autoconf 2.69.  Invocation command line was
19089
19090   CONFIG_FILES    = $CONFIG_FILES
19091   CONFIG_HEADERS  = $CONFIG_HEADERS
19092   CONFIG_LINKS    = $CONFIG_LINKS
19093   CONFIG_COMMANDS = $CONFIG_COMMANDS
19094   $ $0 $@
19095
19096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19097 "
19098
19099 _ACEOF
19100
19101 case $ac_config_files in *"
19102 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19103 esac
19104
19105 case $ac_config_headers in *"
19106 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19107 esac
19108
19109
19110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19111 # Files that config.status was made for.
19112 config_files="$ac_config_files"
19113 config_headers="$ac_config_headers"
19114 config_commands="$ac_config_commands"
19115
19116 _ACEOF
19117
19118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19119 ac_cs_usage="\
19120 \`$as_me' instantiates files and other configuration actions
19121 from templates according to the current configuration.  Unless the files
19122 and actions are specified as TAGs, all are instantiated by default.
19123
19124 Usage: $0 [OPTION]... [TAG]...
19125
19126   -h, --help       print this help, then exit
19127   -V, --version    print version number and configuration settings, then exit
19128       --config     print configuration, then exit
19129   -q, --quiet, --silent
19130                    do not print progress messages
19131   -d, --debug      don't remove temporary files
19132       --recheck    update $as_me by reconfiguring in the same conditions
19133       --file=FILE[:TEMPLATE]
19134                    instantiate the configuration file FILE
19135       --header=FILE[:TEMPLATE]
19136                    instantiate the configuration header FILE
19137
19138 Configuration files:
19139 $config_files
19140
19141 Configuration headers:
19142 $config_headers
19143
19144 Configuration commands:
19145 $config_commands
19146
19147 Report bugs to the package provider."
19148
19149 _ACEOF
19150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19151 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19152 ac_cs_version="\\
19153 libasprintf config.status 1.0
19154 configured by $0, generated by GNU Autoconf 2.69,
19155   with options \\"\$ac_cs_config\\"
19156
19157 Copyright (C) 2012 Free Software Foundation, Inc.
19158 This config.status script is free software; the Free Software Foundation
19159 gives unlimited permission to copy, distribute and modify it."
19160
19161 ac_pwd='$ac_pwd'
19162 srcdir='$srcdir'
19163 INSTALL='$INSTALL'
19164 MKDIR_P='$MKDIR_P'
19165 AWK='$AWK'
19166 test -n "\$AWK" || AWK=awk
19167 _ACEOF
19168
19169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19170 # The default lists apply if the user does not specify any file.
19171 ac_need_defaults=:
19172 while test $# != 0
19173 do
19174   case $1 in
19175   --*=?*)
19176     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19177     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19178     ac_shift=:
19179     ;;
19180   --*=)
19181     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19182     ac_optarg=
19183     ac_shift=:
19184     ;;
19185   *)
19186     ac_option=$1
19187     ac_optarg=$2
19188     ac_shift=shift
19189     ;;
19190   esac
19191
19192   case $ac_option in
19193   # Handling of the options.
19194   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19195     ac_cs_recheck=: ;;
19196   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19197     $as_echo "$ac_cs_version"; exit ;;
19198   --config | --confi | --conf | --con | --co | --c )
19199     $as_echo "$ac_cs_config"; exit ;;
19200   --debug | --debu | --deb | --de | --d | -d )
19201     debug=: ;;
19202   --file | --fil | --fi | --f )
19203     $ac_shift
19204     case $ac_optarg in
19205     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19206     '') as_fn_error $? "missing file argument" ;;
19207     esac
19208     as_fn_append CONFIG_FILES " '$ac_optarg'"
19209     ac_need_defaults=false;;
19210   --header | --heade | --head | --hea )
19211     $ac_shift
19212     case $ac_optarg in
19213     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19214     esac
19215     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19216     ac_need_defaults=false;;
19217   --he | --h)
19218     # Conflict between --help and --header
19219     as_fn_error $? "ambiguous option: \`$1'
19220 Try \`$0 --help' for more information.";;
19221   --help | --hel | -h )
19222     $as_echo "$ac_cs_usage"; exit ;;
19223   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19224   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19225     ac_cs_silent=: ;;
19226
19227   # This is an error.
19228   -*) as_fn_error $? "unrecognized option: \`$1'
19229 Try \`$0 --help' for more information." ;;
19230
19231   *) as_fn_append ac_config_targets " $1"
19232      ac_need_defaults=false ;;
19233
19234   esac
19235   shift
19236 done
19237
19238 ac_configure_extra_args=
19239
19240 if $ac_cs_silent; then
19241   exec 6>/dev/null
19242   ac_configure_extra_args="$ac_configure_extra_args --silent"
19243 fi
19244
19245 _ACEOF
19246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19247 if \$ac_cs_recheck; then
19248   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19249   shift
19250   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19251   CONFIG_SHELL='$SHELL'
19252   export CONFIG_SHELL
19253   exec "\$@"
19254 fi
19255
19256 _ACEOF
19257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19258 exec 5>>config.log
19259 {
19260   echo
19261   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19262 ## Running $as_me. ##
19263 _ASBOX
19264   $as_echo "$ac_log"
19265 } >&5
19266
19267 _ACEOF
19268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19269 #
19270 # INIT-COMMANDS
19271 #
19272 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19273
19274
19275 # The HP-UX ksh and POSIX shell print the target directory to stdout
19276 # if CDPATH is set.
19277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19278
19279 sed_quote_subst='$sed_quote_subst'
19280 double_quote_subst='$double_quote_subst'
19281 delay_variable_subst='$delay_variable_subst'
19282 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19283 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19284 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19285 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19286 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19287 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19288 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19289 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19290 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19291 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19292 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19293 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19294 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19295 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19296 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19297 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19298 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19299 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19300 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19301 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19302 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19303 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19304 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19305 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19306 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19307 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19308 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19309 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19310 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19311 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19312 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19313 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19314 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19315 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19316 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19317 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19318 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19319 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19320 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19321 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19322 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19323 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19324 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19325 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19326 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19327 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19328 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19329 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19330 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19331 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19332 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19333 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19334 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19335 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19336 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19337 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19338 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19339 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19340 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19341 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"`'
19342 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19343 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19344 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19345 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19346 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19347 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19348 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19349 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19350 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19351 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19352 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19353 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19354 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19355 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19356 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19357 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19358 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19359 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19360 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19361 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19362 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19363 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19364 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19365 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19366 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19367 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19368 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19369 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19370 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19371 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19372 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19373 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19374 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19375 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19376 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19377 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19378 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19379 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19380 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19381 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19382 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19383 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19384 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19385 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19386 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19387 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19388 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19389 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19390 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19391 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19392 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19393 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19394 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19395 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19396 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19397 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19398 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19399 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19400 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19401 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19402 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19403 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19404 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19405 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19406 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19407 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19408 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19409 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19410 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19411 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19412 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19413 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19414 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19415 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19416 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19417 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19418 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19419 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19420 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19421 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19422 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19423 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19424 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19425 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19426 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19427 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19428 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19429 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19430 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19431 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19432 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19433 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19434 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19435 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19436 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19437 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19438 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19439 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19440 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19441 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19442 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19443 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19444 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19445 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19446 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19447 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19448 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19449 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19450 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19451 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19452 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19453 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19454 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19455 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19456 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19457 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19458 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19459 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19460 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19461 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19462 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19463 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19464 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19465 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19466 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19467 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19468 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19469 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19470 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19471 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19472
19473 LTCC='$LTCC'
19474 LTCFLAGS='$LTCFLAGS'
19475 compiler='$compiler_DEFAULT'
19476
19477 # A function that is used when there is no print builtin or printf.
19478 func_fallback_echo ()
19479 {
19480   eval 'cat <<_LTECHO_EOF
19481 \$1
19482 _LTECHO_EOF'
19483 }
19484
19485 # Quote evaled strings.
19486 for var in AS \
19487 DLLTOOL \
19488 OBJDUMP \
19489 SHELL \
19490 ECHO \
19491 PATH_SEPARATOR \
19492 SED \
19493 GREP \
19494 EGREP \
19495 FGREP \
19496 LD \
19497 NM \
19498 LN_S \
19499 lt_SP2NL \
19500 lt_NL2SP \
19501 reload_flag \
19502 deplibs_check_method \
19503 file_magic_cmd \
19504 file_magic_glob \
19505 want_nocaseglob \
19506 sharedlib_from_linklib_cmd \
19507 AR \
19508 AR_FLAGS \
19509 archiver_list_spec \
19510 STRIP \
19511 RANLIB \
19512 CC \
19513 CFLAGS \
19514 compiler \
19515 lt_cv_sys_global_symbol_pipe \
19516 lt_cv_sys_global_symbol_to_cdecl \
19517 lt_cv_sys_global_symbol_to_import \
19518 lt_cv_sys_global_symbol_to_c_name_address \
19519 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19520 lt_cv_nm_interface \
19521 nm_file_list_spec \
19522 lt_cv_truncate_bin \
19523 lt_prog_compiler_no_builtin_flag \
19524 lt_prog_compiler_pic \
19525 lt_prog_compiler_wl \
19526 lt_prog_compiler_static \
19527 lt_cv_prog_compiler_c_o \
19528 need_locks \
19529 MANIFEST_TOOL \
19530 DSYMUTIL \
19531 NMEDIT \
19532 LIPO \
19533 OTOOL \
19534 OTOOL64 \
19535 shrext_cmds \
19536 export_dynamic_flag_spec \
19537 whole_archive_flag_spec \
19538 compiler_needs_object \
19539 with_gnu_ld \
19540 allow_undefined_flag \
19541 no_undefined_flag \
19542 hardcode_libdir_flag_spec \
19543 hardcode_libdir_separator \
19544 exclude_expsyms \
19545 include_expsyms \
19546 file_list_spec \
19547 variables_saved_for_relink \
19548 libname_spec \
19549 library_names_spec \
19550 soname_spec \
19551 install_override_mode \
19552 finish_eval \
19553 old_striplib \
19554 striplib \
19555 compiler_lib_search_dirs \
19556 predep_objects \
19557 postdep_objects \
19558 predeps \
19559 postdeps \
19560 compiler_lib_search_path \
19561 LD_CXX \
19562 reload_flag_CXX \
19563 compiler_CXX \
19564 lt_prog_compiler_no_builtin_flag_CXX \
19565 lt_prog_compiler_pic_CXX \
19566 lt_prog_compiler_wl_CXX \
19567 lt_prog_compiler_static_CXX \
19568 lt_cv_prog_compiler_c_o_CXX \
19569 export_dynamic_flag_spec_CXX \
19570 whole_archive_flag_spec_CXX \
19571 compiler_needs_object_CXX \
19572 with_gnu_ld_CXX \
19573 allow_undefined_flag_CXX \
19574 no_undefined_flag_CXX \
19575 hardcode_libdir_flag_spec_CXX \
19576 hardcode_libdir_separator_CXX \
19577 exclude_expsyms_CXX \
19578 include_expsyms_CXX \
19579 file_list_spec_CXX \
19580 compiler_lib_search_dirs_CXX \
19581 predep_objects_CXX \
19582 postdep_objects_CXX \
19583 predeps_CXX \
19584 postdeps_CXX \
19585 compiler_lib_search_path_CXX; do
19586     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19587     *[\\\\\\\`\\"\\\$]*)
19588       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19589       ;;
19590     *)
19591       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19592       ;;
19593     esac
19594 done
19595
19596 # Double-quote double-evaled strings.
19597 for var in reload_cmds \
19598 old_postinstall_cmds \
19599 old_postuninstall_cmds \
19600 old_archive_cmds \
19601 extract_expsyms_cmds \
19602 old_archive_from_new_cmds \
19603 old_archive_from_expsyms_cmds \
19604 archive_cmds \
19605 archive_expsym_cmds \
19606 module_cmds \
19607 module_expsym_cmds \
19608 export_symbols_cmds \
19609 prelink_cmds \
19610 postlink_cmds \
19611 postinstall_cmds \
19612 postuninstall_cmds \
19613 finish_cmds \
19614 sys_lib_search_path_spec \
19615 configure_time_dlsearch_path \
19616 configure_time_lt_sys_library_path \
19617 reload_cmds_CXX \
19618 old_archive_cmds_CXX \
19619 old_archive_from_new_cmds_CXX \
19620 old_archive_from_expsyms_cmds_CXX \
19621 archive_cmds_CXX \
19622 archive_expsym_cmds_CXX \
19623 module_cmds_CXX \
19624 module_expsym_cmds_CXX \
19625 export_symbols_cmds_CXX \
19626 prelink_cmds_CXX \
19627 postlink_cmds_CXX; do
19628     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19629     *[\\\\\\\`\\"\\\$]*)
19630       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19631       ;;
19632     *)
19633       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19634       ;;
19635     esac
19636 done
19637
19638 ac_aux_dir='$ac_aux_dir'
19639
19640 # See if we are running on zsh, and set the options that allow our
19641 # commands through without removal of \ escapes INIT.
19642 if test -n "\${ZSH_VERSION+set}"; then
19643    setopt NO_GLOB_SUBST
19644 fi
19645
19646
19647     PACKAGE='$PACKAGE'
19648     VERSION='$VERSION'
19649     RM='$RM'
19650     ofile='$ofile'
19651
19652
19653
19654
19655
19656
19657 _ACEOF
19658
19659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19660
19661 # Handling of arguments.
19662 for ac_config_target in $ac_config_targets
19663 do
19664   case $ac_config_target in
19665     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19666     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19667     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19668     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19669
19670   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19671   esac
19672 done
19673
19674
19675 # If the user did not use the arguments to specify the items to instantiate,
19676 # then the envvar interface is used.  Set only those that are not.
19677 # We use the long form for the default assignment because of an extremely
19678 # bizarre bug on SunOS 4.1.3.
19679 if $ac_need_defaults; then
19680   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19681   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19682   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19683 fi
19684
19685 # Have a temporary directory for convenience.  Make it in the build tree
19686 # simply because there is no reason against having it here, and in addition,
19687 # creating and moving files from /tmp can sometimes cause problems.
19688 # Hook for its removal unless debugging.
19689 # Note that there is a small window in which the directory will not be cleaned:
19690 # after its creation but before its name has been assigned to `$tmp'.
19691 $debug ||
19692 {
19693   tmp= ac_tmp=
19694   trap 'exit_status=$?
19695   : "${ac_tmp:=$tmp}"
19696   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19697 ' 0
19698   trap 'as_fn_exit 1' 1 2 13 15
19699 }
19700 # Create a (secure) tmp directory for tmp files.
19701
19702 {
19703   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19704   test -d "$tmp"
19705 }  ||
19706 {
19707   tmp=./conf$$-$RANDOM
19708   (umask 077 && mkdir "$tmp")
19709 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19710 ac_tmp=$tmp
19711
19712 # Set up the scripts for CONFIG_FILES section.
19713 # No need to generate them if there are no CONFIG_FILES.
19714 # This happens for instance with `./config.status config.h'.
19715 if test -n "$CONFIG_FILES"; then
19716
19717
19718 ac_cr=`echo X | tr X '\015'`
19719 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19720 # But we know of no other shell where ac_cr would be empty at this
19721 # point, so we can use a bashism as a fallback.
19722 if test "x$ac_cr" = x; then
19723   eval ac_cr=\$\'\\r\'
19724 fi
19725 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19726 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19727   ac_cs_awk_cr='\\r'
19728 else
19729   ac_cs_awk_cr=$ac_cr
19730 fi
19731
19732 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19733 _ACEOF
19734
19735
19736 {
19737   echo "cat >conf$$subs.awk <<_ACEOF" &&
19738   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19739   echo "_ACEOF"
19740 } >conf$$subs.sh ||
19741   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19742 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19743 ac_delim='%!_!# '
19744 for ac_last_try in false false false false false :; do
19745   . ./conf$$subs.sh ||
19746     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19747
19748   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19749   if test $ac_delim_n = $ac_delim_num; then
19750     break
19751   elif $ac_last_try; then
19752     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19753   else
19754     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19755   fi
19756 done
19757 rm -f conf$$subs.sh
19758
19759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19760 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19761 _ACEOF
19762 sed -n '
19763 h
19764 s/^/S["/; s/!.*/"]=/
19765 p
19766 g
19767 s/^[^!]*!//
19768 :repl
19769 t repl
19770 s/'"$ac_delim"'$//
19771 t delim
19772 :nl
19773 h
19774 s/\(.\{148\}\)..*/\1/
19775 t more1
19776 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19777 p
19778 n
19779 b repl
19780 :more1
19781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19782 p
19783 g
19784 s/.\{148\}//
19785 t nl
19786 :delim
19787 h
19788 s/\(.\{148\}\)..*/\1/
19789 t more2
19790 s/["\\]/\\&/g; s/^/"/; s/$/"/
19791 p
19792 b
19793 :more2
19794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19795 p
19796 g
19797 s/.\{148\}//
19798 t delim
19799 ' <conf$$subs.awk | sed '
19800 /^[^""]/{
19801   N
19802   s/\n//
19803 }
19804 ' >>$CONFIG_STATUS || ac_write_fail=1
19805 rm -f conf$$subs.awk
19806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19807 _ACAWK
19808 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19809   for (key in S) S_is_set[key] = 1
19810   FS = "\a"
19811
19812 }
19813 {
19814   line = $ 0
19815   nfields = split(line, field, "@")
19816   substed = 0
19817   len = length(field[1])
19818   for (i = 2; i < nfields; i++) {
19819     key = field[i]
19820     keylen = length(key)
19821     if (S_is_set[key]) {
19822       value = S[key]
19823       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19824       len += length(value) + length(field[++i])
19825       substed = 1
19826     } else
19827       len += 1 + keylen
19828   }
19829
19830   print line
19831 }
19832
19833 _ACAWK
19834 _ACEOF
19835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19836 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19837   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19838 else
19839   cat
19840 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19841   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19842 _ACEOF
19843
19844 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19845 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19846 # trailing colons and then remove the whole line if VPATH becomes empty
19847 # (actually we leave an empty line to preserve line numbers).
19848 if test "x$srcdir" = x.; then
19849   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19850 h
19851 s///
19852 s/^/:/
19853 s/[      ]*$/:/
19854 s/:\$(srcdir):/:/g
19855 s/:\${srcdir}:/:/g
19856 s/:@srcdir@:/:/g
19857 s/^:*//
19858 s/:*$//
19859 x
19860 s/\(=[   ]*\).*/\1/
19861 G
19862 s/\n//
19863 s/^[^=]*=[       ]*$//
19864 }'
19865 fi
19866
19867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868 fi # test -n "$CONFIG_FILES"
19869
19870 # Set up the scripts for CONFIG_HEADERS section.
19871 # No need to generate them if there are no CONFIG_HEADERS.
19872 # This happens for instance with `./config.status Makefile'.
19873 if test -n "$CONFIG_HEADERS"; then
19874 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19875 BEGIN {
19876 _ACEOF
19877
19878 # Transform confdefs.h into an awk script `defines.awk', embedded as
19879 # here-document in config.status, that substitutes the proper values into
19880 # config.h.in to produce config.h.
19881
19882 # Create a delimiter string that does not exist in confdefs.h, to ease
19883 # handling of long lines.
19884 ac_delim='%!_!# '
19885 for ac_last_try in false false :; do
19886   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19887   if test -z "$ac_tt"; then
19888     break
19889   elif $ac_last_try; then
19890     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19891   else
19892     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19893   fi
19894 done
19895
19896 # For the awk script, D is an array of macro values keyed by name,
19897 # likewise P contains macro parameters if any.  Preserve backslash
19898 # newline sequences.
19899
19900 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19901 sed -n '
19902 s/.\{148\}/&'"$ac_delim"'/g
19903 t rset
19904 :rset
19905 s/^[     ]*#[    ]*define[       ][      ]*/ /
19906 t def
19907 d
19908 :def
19909 s/\\$//
19910 t bsnl
19911 s/["\\]/\\&/g
19912 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19913 D["\1"]=" \3"/p
19914 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19915 d
19916 :bsnl
19917 s/["\\]/\\&/g
19918 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19919 D["\1"]=" \3\\\\\\n"\\/p
19920 t cont
19921 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19922 t cont
19923 d
19924 :cont
19925 n
19926 s/.\{148\}/&'"$ac_delim"'/g
19927 t clear
19928 :clear
19929 s/\\$//
19930 t bsnlc
19931 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19932 d
19933 :bsnlc
19934 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19935 b cont
19936 ' <confdefs.h | sed '
19937 s/'"$ac_delim"'/"\\\
19938 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19939
19940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19941   for (key in D) D_is_set[key] = 1
19942   FS = "\a"
19943 }
19944 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19945   line = \$ 0
19946   split(line, arg, " ")
19947   if (arg[1] == "#") {
19948     defundef = arg[2]
19949     mac1 = arg[3]
19950   } else {
19951     defundef = substr(arg[1], 2)
19952     mac1 = arg[2]
19953   }
19954   split(mac1, mac2, "(") #)
19955   macro = mac2[1]
19956   prefix = substr(line, 1, index(line, defundef) - 1)
19957   if (D_is_set[macro]) {
19958     # Preserve the white space surrounding the "#".
19959     print prefix "define", macro P[macro] D[macro]
19960     next
19961   } else {
19962     # Replace #undef with comments.  This is necessary, for example,
19963     # in the case of _POSIX_SOURCE, which is predefined and required
19964     # on some systems where configure will not decide to define it.
19965     if (defundef == "undef") {
19966       print "/*", prefix defundef, macro, "*/"
19967       next
19968     }
19969   }
19970 }
19971 { print }
19972 _ACAWK
19973 _ACEOF
19974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19975   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19976 fi # test -n "$CONFIG_HEADERS"
19977
19978
19979 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19980 shift
19981 for ac_tag
19982 do
19983   case $ac_tag in
19984   :[FHLC]) ac_mode=$ac_tag; continue;;
19985   esac
19986   case $ac_mode$ac_tag in
19987   :[FHL]*:*);;
19988   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19989   :[FH]-) ac_tag=-:-;;
19990   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19991   esac
19992   ac_save_IFS=$IFS
19993   IFS=:
19994   set x $ac_tag
19995   IFS=$ac_save_IFS
19996   shift
19997   ac_file=$1
19998   shift
19999
20000   case $ac_mode in
20001   :L) ac_source=$1;;
20002   :[FH])
20003     ac_file_inputs=
20004     for ac_f
20005     do
20006       case $ac_f in
20007       -) ac_f="$ac_tmp/stdin";;
20008       *) # Look for the file first in the build tree, then in the source tree
20009          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20010          # because $ac_f cannot contain `:'.
20011          test -f "$ac_f" ||
20012            case $ac_f in
20013            [\\/$]*) false;;
20014            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20015            esac ||
20016            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20017       esac
20018       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20019       as_fn_append ac_file_inputs " '$ac_f'"
20020     done
20021
20022     # Let's still pretend it is `configure' which instantiates (i.e., don't
20023     # use $as_me), people would be surprised to read:
20024     #    /* config.h.  Generated by config.status.  */
20025     configure_input='Generated from '`
20026           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20027         `' by configure.'
20028     if test x"$ac_file" != x-; then
20029       configure_input="$ac_file.  $configure_input"
20030       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20031 $as_echo "$as_me: creating $ac_file" >&6;}
20032     fi
20033     # Neutralize special characters interpreted by sed in replacement strings.
20034     case $configure_input in #(
20035     *\&* | *\|* | *\\* )
20036        ac_sed_conf_input=`$as_echo "$configure_input" |
20037        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20038     *) ac_sed_conf_input=$configure_input;;
20039     esac
20040
20041     case $ac_tag in
20042     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20043       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20044     esac
20045     ;;
20046   esac
20047
20048   ac_dir=`$as_dirname -- "$ac_file" ||
20049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20050          X"$ac_file" : 'X\(//\)[^/]' \| \
20051          X"$ac_file" : 'X\(//\)$' \| \
20052          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20053 $as_echo X"$ac_file" |
20054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20055             s//\1/
20056             q
20057           }
20058           /^X\(\/\/\)[^/].*/{
20059             s//\1/
20060             q
20061           }
20062           /^X\(\/\/\)$/{
20063             s//\1/
20064             q
20065           }
20066           /^X\(\/\).*/{
20067             s//\1/
20068             q
20069           }
20070           s/.*/./; q'`
20071   as_dir="$ac_dir"; as_fn_mkdir_p
20072   ac_builddir=.
20073
20074 case "$ac_dir" in
20075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20076 *)
20077   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20078   # A ".." for each directory in $ac_dir_suffix.
20079   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20080   case $ac_top_builddir_sub in
20081   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20082   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20083   esac ;;
20084 esac
20085 ac_abs_top_builddir=$ac_pwd
20086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20087 # for backward compatibility:
20088 ac_top_builddir=$ac_top_build_prefix
20089
20090 case $srcdir in
20091   .)  # We are building in place.
20092     ac_srcdir=.
20093     ac_top_srcdir=$ac_top_builddir_sub
20094     ac_abs_top_srcdir=$ac_pwd ;;
20095   [\\/]* | ?:[\\/]* )  # Absolute name.
20096     ac_srcdir=$srcdir$ac_dir_suffix;
20097     ac_top_srcdir=$srcdir
20098     ac_abs_top_srcdir=$srcdir ;;
20099   *) # Relative name.
20100     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20101     ac_top_srcdir=$ac_top_build_prefix$srcdir
20102     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20103 esac
20104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20105
20106
20107   case $ac_mode in
20108   :F)
20109   #
20110   # CONFIG_FILE
20111   #
20112
20113   case $INSTALL in
20114   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20115   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20116   esac
20117   ac_MKDIR_P=$MKDIR_P
20118   case $MKDIR_P in
20119   [\\/$]* | ?:[\\/]* ) ;;
20120   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20121   esac
20122 _ACEOF
20123
20124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20125 # If the template does not know about datarootdir, expand it.
20126 # FIXME: This hack should be removed a few years after 2.60.
20127 ac_datarootdir_hack=; ac_datarootdir_seen=
20128 ac_sed_dataroot='
20129 /datarootdir/ {
20130   p
20131   q
20132 }
20133 /@datadir@/p
20134 /@docdir@/p
20135 /@infodir@/p
20136 /@localedir@/p
20137 /@mandir@/p'
20138 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20139 *datarootdir*) ac_datarootdir_seen=yes;;
20140 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20141   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20142 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20143 _ACEOF
20144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20145   ac_datarootdir_hack='
20146   s&@datadir@&$datadir&g
20147   s&@docdir@&$docdir&g
20148   s&@infodir@&$infodir&g
20149   s&@localedir@&$localedir&g
20150   s&@mandir@&$mandir&g
20151   s&\\\${datarootdir}&$datarootdir&g' ;;
20152 esac
20153 _ACEOF
20154
20155 # Neutralize VPATH when `$srcdir' = `.'.
20156 # Shell code in configure.ac might set extrasub.
20157 # FIXME: do we really want to maintain this feature?
20158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20159 ac_sed_extra="$ac_vpsub
20160 $extrasub
20161 _ACEOF
20162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20163 :t
20164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20165 s|@configure_input@|$ac_sed_conf_input|;t t
20166 s&@top_builddir@&$ac_top_builddir_sub&;t t
20167 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20168 s&@srcdir@&$ac_srcdir&;t t
20169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20170 s&@top_srcdir@&$ac_top_srcdir&;t t
20171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20172 s&@builddir@&$ac_builddir&;t t
20173 s&@abs_builddir@&$ac_abs_builddir&;t t
20174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20175 s&@INSTALL@&$ac_INSTALL&;t t
20176 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20177 $ac_datarootdir_hack
20178 "
20179 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20180   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20181
20182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20183   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20184   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20185       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20186   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20187 which seems to be undefined.  Please make sure it is defined" >&5
20188 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20189 which seems to be undefined.  Please make sure it is defined" >&2;}
20190
20191   rm -f "$ac_tmp/stdin"
20192   case $ac_file in
20193   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20194   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20195   esac \
20196   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20197  ;;
20198   :H)
20199   #
20200   # CONFIG_HEADER
20201   #
20202   if test x"$ac_file" != x-; then
20203     {
20204       $as_echo "/* $configure_input  */" \
20205       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20206     } >"$ac_tmp/config.h" \
20207       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20208     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20209       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20210 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20211     else
20212       rm -f "$ac_file"
20213       mv "$ac_tmp/config.h" "$ac_file" \
20214         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20215     fi
20216   else
20217     $as_echo "/* $configure_input  */" \
20218       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20219       || as_fn_error $? "could not create -" "$LINENO" 5
20220   fi
20221 # Compute "$ac_file"'s index in $config_headers.
20222 _am_arg="$ac_file"
20223 _am_stamp_count=1
20224 for _am_header in $config_headers :; do
20225   case $_am_header in
20226     $_am_arg | $_am_arg:* )
20227       break ;;
20228     * )
20229       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20230   esac
20231 done
20232 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20233 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20234          X"$_am_arg" : 'X\(//\)[^/]' \| \
20235          X"$_am_arg" : 'X\(//\)$' \| \
20236          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20237 $as_echo X"$_am_arg" |
20238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20239             s//\1/
20240             q
20241           }
20242           /^X\(\/\/\)[^/].*/{
20243             s//\1/
20244             q
20245           }
20246           /^X\(\/\/\)$/{
20247             s//\1/
20248             q
20249           }
20250           /^X\(\/\).*/{
20251             s//\1/
20252             q
20253           }
20254           s/.*/./; q'`/stamp-h$_am_stamp_count
20255  ;;
20256
20257   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20258 $as_echo "$as_me: executing $ac_file commands" >&6;}
20259  ;;
20260   esac
20261
20262
20263   case $ac_file$ac_mode in
20264     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20265   # Older Autoconf quotes --file arguments for eval, but not when files
20266   # are listed without --file.  Let's play safe and only enable the eval
20267   # if we detect the quoting.
20268   case $CONFIG_FILES in
20269   *\'*) eval set x "$CONFIG_FILES" ;;
20270   *)   set x $CONFIG_FILES ;;
20271   esac
20272   shift
20273   for mf
20274   do
20275     # Strip MF so we end up with the name of the file.
20276     mf=`echo "$mf" | sed -e 's/:.*$//'`
20277     # Check whether this is an Automake generated Makefile or not.
20278     # We used to match only the files named 'Makefile.in', but
20279     # some people rename them; so instead we look at the file content.
20280     # Grep'ing the first line is not enough: some people post-process
20281     # each Makefile.in and add a new line on top of each file to say so.
20282     # Grep'ing the whole file is not good either: AIX grep has a line
20283     # limit of 2048, but all sed's we know have understand at least 4000.
20284     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20285       dirpart=`$as_dirname -- "$mf" ||
20286 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20287          X"$mf" : 'X\(//\)[^/]' \| \
20288          X"$mf" : 'X\(//\)$' \| \
20289          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20290 $as_echo X"$mf" |
20291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20292             s//\1/
20293             q
20294           }
20295           /^X\(\/\/\)[^/].*/{
20296             s//\1/
20297             q
20298           }
20299           /^X\(\/\/\)$/{
20300             s//\1/
20301             q
20302           }
20303           /^X\(\/\).*/{
20304             s//\1/
20305             q
20306           }
20307           s/.*/./; q'`
20308     else
20309       continue
20310     fi
20311     # Extract the definition of DEPDIR, am__include, and am__quote
20312     # from the Makefile without running 'make'.
20313     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20314     test -z "$DEPDIR" && continue
20315     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20316     test -z "$am__include" && continue
20317     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20318     # Find all dependency output files, they are included files with
20319     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20320     # simplest approach to changing $(DEPDIR) to its actual value in the
20321     # expansion.
20322     for file in `sed -n "
20323       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20324          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20325       # Make sure the directory exists.
20326       test -f "$dirpart/$file" && continue
20327       fdir=`$as_dirname -- "$file" ||
20328 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20329          X"$file" : 'X\(//\)[^/]' \| \
20330          X"$file" : 'X\(//\)$' \| \
20331          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20332 $as_echo X"$file" |
20333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20334             s//\1/
20335             q
20336           }
20337           /^X\(\/\/\)[^/].*/{
20338             s//\1/
20339             q
20340           }
20341           /^X\(\/\/\)$/{
20342             s//\1/
20343             q
20344           }
20345           /^X\(\/\).*/{
20346             s//\1/
20347             q
20348           }
20349           s/.*/./; q'`
20350       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20351       # echo "creating $dirpart/$file"
20352       echo '# dummy' > "$dirpart/$file"
20353     done
20354   done
20355 }
20356  ;;
20357     "libtool":C)
20358
20359     # See if we are running on zsh, and set the options that allow our
20360     # commands through without removal of \ escapes.
20361     if test -n "${ZSH_VERSION+set}"; then
20362       setopt NO_GLOB_SUBST
20363     fi
20364
20365     cfgfile=${ofile}T
20366     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20367     $RM "$cfgfile"
20368
20369     cat <<_LT_EOF >> "$cfgfile"
20370 #! $SHELL
20371 # Generated automatically by $as_me ($PACKAGE) $VERSION
20372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20373 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20374
20375 # Provide generalized library-building support services.
20376 # Written by Gordon Matzigkeit, 1996
20377
20378 # Copyright (C) 2014 Free Software Foundation, Inc.
20379 # This is free software; see the source for copying conditions.  There is NO
20380 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20381
20382 # GNU Libtool is free software; you can redistribute it and/or modify
20383 # it under the terms of the GNU General Public License as published by
20384 # the Free Software Foundation; either version 2 of of the License, or
20385 # (at your option) any later version.
20386 #
20387 # As a special exception to the GNU General Public License, if you
20388 # distribute this file as part of a program or library that is built
20389 # using GNU Libtool, you may include this file under the  same
20390 # distribution terms that you use for the rest of that program.
20391 #
20392 # GNU Libtool is distributed in the hope that it will be useful, but
20393 # WITHOUT ANY WARRANTY; without even the implied warranty of
20394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20395 # GNU General Public License for more details.
20396 #
20397 # You should have received a copy of the GNU General Public License
20398 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20399
20400
20401 # The names of the tagged configurations supported by this script.
20402 available_tags='CXX '
20403
20404 # Configured defaults for sys_lib_dlsearch_path munging.
20405 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20406
20407 # ### BEGIN LIBTOOL CONFIG
20408
20409 # Which release of libtool.m4 was used?
20410 macro_version=$macro_version
20411 macro_revision=$macro_revision
20412
20413 # Assembler program.
20414 AS=$lt_AS
20415
20416 # DLL creation program.
20417 DLLTOOL=$lt_DLLTOOL
20418
20419 # Object dumper program.
20420 OBJDUMP=$lt_OBJDUMP
20421
20422 # Whether or not to build shared libraries.
20423 build_libtool_libs=$enable_shared
20424
20425 # Whether or not to build static libraries.
20426 build_old_libs=$enable_static
20427
20428 # What type of objects to build.
20429 pic_mode=$pic_mode
20430
20431 # Whether or not to optimize for fast installation.
20432 fast_install=$enable_fast_install
20433
20434 # Shared archive member basename,for filename based shared library versioning on AIX.
20435 shared_archive_member_spec=$shared_archive_member_spec
20436
20437 # Shell to use when invoking shell scripts.
20438 SHELL=$lt_SHELL
20439
20440 # An echo program that protects backslashes.
20441 ECHO=$lt_ECHO
20442
20443 # The PATH separator for the build system.
20444 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20445
20446 # The host system.
20447 host_alias=$host_alias
20448 host=$host
20449 host_os=$host_os
20450
20451 # The build system.
20452 build_alias=$build_alias
20453 build=$build
20454 build_os=$build_os
20455
20456 # A sed program that does not truncate output.
20457 SED=$lt_SED
20458
20459 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20460 Xsed="\$SED -e 1s/^X//"
20461
20462 # A grep program that handles long lines.
20463 GREP=$lt_GREP
20464
20465 # An ERE matcher.
20466 EGREP=$lt_EGREP
20467
20468 # A literal string matcher.
20469 FGREP=$lt_FGREP
20470
20471 # A BSD- or MS-compatible name lister.
20472 NM=$lt_NM
20473
20474 # Whether we need soft or hard links.
20475 LN_S=$lt_LN_S
20476
20477 # What is the maximum length of a command?
20478 max_cmd_len=$max_cmd_len
20479
20480 # Object file suffix (normally "o").
20481 objext=$ac_objext
20482
20483 # Executable file suffix (normally "").
20484 exeext=$exeext
20485
20486 # whether the shell understands "unset".
20487 lt_unset=$lt_unset
20488
20489 # turn spaces into newlines.
20490 SP2NL=$lt_lt_SP2NL
20491
20492 # turn newlines into spaces.
20493 NL2SP=$lt_lt_NL2SP
20494
20495 # convert \$build file names to \$host format.
20496 to_host_file_cmd=$lt_cv_to_host_file_cmd
20497
20498 # convert \$build files to toolchain format.
20499 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20500
20501 # Method to check whether dependent libraries are shared objects.
20502 deplibs_check_method=$lt_deplibs_check_method
20503
20504 # Command to use when deplibs_check_method = "file_magic".
20505 file_magic_cmd=$lt_file_magic_cmd
20506
20507 # How to find potential files when deplibs_check_method = "file_magic".
20508 file_magic_glob=$lt_file_magic_glob
20509
20510 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20511 want_nocaseglob=$lt_want_nocaseglob
20512
20513 # Command to associate shared and link libraries.
20514 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20515
20516 # The archiver.
20517 AR=$lt_AR
20518
20519 # Flags to create an archive.
20520 AR_FLAGS=$lt_AR_FLAGS
20521
20522 # How to feed a file listing to the archiver.
20523 archiver_list_spec=$lt_archiver_list_spec
20524
20525 # A symbol stripping program.
20526 STRIP=$lt_STRIP
20527
20528 # Commands used to install an old-style archive.
20529 RANLIB=$lt_RANLIB
20530 old_postinstall_cmds=$lt_old_postinstall_cmds
20531 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20532
20533 # Whether to use a lock for old archive extraction.
20534 lock_old_archive_extraction=$lock_old_archive_extraction
20535
20536 # A C compiler.
20537 LTCC=$lt_CC
20538
20539 # LTCC compiler flags.
20540 LTCFLAGS=$lt_CFLAGS
20541
20542 # Take the output of nm and produce a listing of raw symbols and C names.
20543 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20544
20545 # Transform the output of nm in a proper C declaration.
20546 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20547
20548 # Transform the output of nm into a list of symbols to manually relocate.
20549 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20550
20551 # Transform the output of nm in a C name address pair.
20552 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20553
20554 # Transform the output of nm in a C name address pair when lib prefix is needed.
20555 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20556
20557 # The name lister interface.
20558 nm_interface=$lt_lt_cv_nm_interface
20559
20560 # Specify filename containing input files for \$NM.
20561 nm_file_list_spec=$lt_nm_file_list_spec
20562
20563 # The root where to search for dependent libraries,and where our libraries should be installed.
20564 lt_sysroot=$lt_sysroot
20565
20566 # Command to truncate a binary pipe.
20567 lt_truncate_bin=$lt_lt_cv_truncate_bin
20568
20569 # The name of the directory that contains temporary libtool files.
20570 objdir=$objdir
20571
20572 # Used to examine libraries when file_magic_cmd begins with "file".
20573 MAGIC_CMD=$MAGIC_CMD
20574
20575 # Must we lock files when doing compilation?
20576 need_locks=$lt_need_locks
20577
20578 # Manifest tool.
20579 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20580
20581 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20582 DSYMUTIL=$lt_DSYMUTIL
20583
20584 # Tool to change global to local symbols on Mac OS X.
20585 NMEDIT=$lt_NMEDIT
20586
20587 # Tool to manipulate fat objects and archives on Mac OS X.
20588 LIPO=$lt_LIPO
20589
20590 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20591 OTOOL=$lt_OTOOL
20592
20593 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20594 OTOOL64=$lt_OTOOL64
20595
20596 # Old archive suffix (normally "a").
20597 libext=$libext
20598
20599 # Shared library suffix (normally ".so").
20600 shrext_cmds=$lt_shrext_cmds
20601
20602 # The commands to extract the exported symbol list from a shared archive.
20603 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20604
20605 # Variables whose values should be saved in libtool wrapper scripts and
20606 # restored at link time.
20607 variables_saved_for_relink=$lt_variables_saved_for_relink
20608
20609 # Do we need the "lib" prefix for modules?
20610 need_lib_prefix=$need_lib_prefix
20611
20612 # Do we need a version for libraries?
20613 need_version=$need_version
20614
20615 # Library versioning type.
20616 version_type=$version_type
20617
20618 # Shared library runtime path variable.
20619 runpath_var=$runpath_var
20620
20621 # Shared library path variable.
20622 shlibpath_var=$shlibpath_var
20623
20624 # Is shlibpath searched before the hard-coded library search path?
20625 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20626
20627 # Format of library name prefix.
20628 libname_spec=$lt_libname_spec
20629
20630 # List of archive names.  First name is the real one, the rest are links.
20631 # The last name is the one that the linker finds with -lNAME
20632 library_names_spec=$lt_library_names_spec
20633
20634 # The coded name of the library, if different from the real name.
20635 soname_spec=$lt_soname_spec
20636
20637 # Permission mode override for installation of shared libraries.
20638 install_override_mode=$lt_install_override_mode
20639
20640 # Command to use after installation of a shared archive.
20641 postinstall_cmds=$lt_postinstall_cmds
20642
20643 # Command to use after uninstallation of a shared archive.
20644 postuninstall_cmds=$lt_postuninstall_cmds
20645
20646 # Commands used to finish a libtool library installation in a directory.
20647 finish_cmds=$lt_finish_cmds
20648
20649 # As "finish_cmds", except a single script fragment to be evaled but
20650 # not shown.
20651 finish_eval=$lt_finish_eval
20652
20653 # Whether we should hardcode library paths into libraries.
20654 hardcode_into_libs=$hardcode_into_libs
20655
20656 # Compile-time system search path for libraries.
20657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20658
20659 # Detected run-time system search path for libraries.
20660 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20661
20662 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20663 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20664
20665 # Whether dlopen is supported.
20666 dlopen_support=$enable_dlopen
20667
20668 # Whether dlopen of programs is supported.
20669 dlopen_self=$enable_dlopen_self
20670
20671 # Whether dlopen of statically linked programs is supported.
20672 dlopen_self_static=$enable_dlopen_self_static
20673
20674 # Commands to strip libraries.
20675 old_striplib=$lt_old_striplib
20676 striplib=$lt_striplib
20677
20678
20679 # The linker used to build libraries.
20680 LD=$lt_LD
20681
20682 # How to create reloadable object files.
20683 reload_flag=$lt_reload_flag
20684 reload_cmds=$lt_reload_cmds
20685
20686 # Commands used to build an old-style archive.
20687 old_archive_cmds=$lt_old_archive_cmds
20688
20689 # A language specific compiler.
20690 CC=$lt_compiler
20691
20692 # Is the compiler the GNU compiler?
20693 with_gcc=$GCC
20694
20695 # Compiler flag to turn off builtin functions.
20696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20697
20698 # Additional compiler flags for building library objects.
20699 pic_flag=$lt_lt_prog_compiler_pic
20700
20701 # How to pass a linker flag through the compiler.
20702 wl=$lt_lt_prog_compiler_wl
20703
20704 # Compiler flag to prevent dynamic linking.
20705 link_static_flag=$lt_lt_prog_compiler_static
20706
20707 # Does compiler simultaneously support -c and -o options?
20708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20709
20710 # Whether or not to add -lc for building shared libraries.
20711 build_libtool_need_lc=$archive_cmds_need_lc
20712
20713 # Whether or not to disallow shared libs when runtime libs are static.
20714 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20715
20716 # Compiler flag to allow reflexive dlopens.
20717 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20718
20719 # Compiler flag to generate shared objects directly from archives.
20720 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20721
20722 # Whether the compiler copes with passing no objects directly.
20723 compiler_needs_object=$lt_compiler_needs_object
20724
20725 # Create an old-style archive from a shared archive.
20726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20727
20728 # Create a temporary old-style archive to link instead of a shared archive.
20729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20730
20731 # Commands used to build a shared archive.
20732 archive_cmds=$lt_archive_cmds
20733 archive_expsym_cmds=$lt_archive_expsym_cmds
20734
20735 # Commands used to build a loadable module if different from building
20736 # a shared archive.
20737 module_cmds=$lt_module_cmds
20738 module_expsym_cmds=$lt_module_expsym_cmds
20739
20740 # Whether we are building with GNU ld or not.
20741 with_gnu_ld=$lt_with_gnu_ld
20742
20743 # Flag that allows shared libraries with undefined symbols to be built.
20744 allow_undefined_flag=$lt_allow_undefined_flag
20745
20746 # Flag that enforces no undefined symbols.
20747 no_undefined_flag=$lt_no_undefined_flag
20748
20749 # Flag to hardcode \$libdir into a binary during linking.
20750 # This must work even if \$libdir does not exist
20751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20752
20753 # Whether we need a single "-rpath" flag with a separated argument.
20754 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20755
20756 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20757 # DIR into the resulting binary.
20758 hardcode_direct=$hardcode_direct
20759
20760 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20761 # DIR into the resulting binary and the resulting library dependency is
20762 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20763 # library is relocated.
20764 hardcode_direct_absolute=$hardcode_direct_absolute
20765
20766 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20767 # into the resulting binary.
20768 hardcode_minus_L=$hardcode_minus_L
20769
20770 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20771 # into the resulting binary.
20772 hardcode_shlibpath_var=$hardcode_shlibpath_var
20773
20774 # Set to "yes" if building a shared library automatically hardcodes DIR
20775 # into the library and all subsequent libraries and executables linked
20776 # against it.
20777 hardcode_automatic=$hardcode_automatic
20778
20779 # Set to yes if linker adds runtime paths of dependent libraries
20780 # to runtime path list.
20781 inherit_rpath=$inherit_rpath
20782
20783 # Whether libtool must link a program against all its dependency libraries.
20784 link_all_deplibs=$link_all_deplibs
20785
20786 # Set to "yes" if exported symbols are required.
20787 always_export_symbols=$always_export_symbols
20788
20789 # The commands to list exported symbols.
20790 export_symbols_cmds=$lt_export_symbols_cmds
20791
20792 # Symbols that should not be listed in the preloaded symbols.
20793 exclude_expsyms=$lt_exclude_expsyms
20794
20795 # Symbols that must always be exported.
20796 include_expsyms=$lt_include_expsyms
20797
20798 # Commands necessary for linking programs (against libraries) with templates.
20799 prelink_cmds=$lt_prelink_cmds
20800
20801 # Commands necessary for finishing linking programs.
20802 postlink_cmds=$lt_postlink_cmds
20803
20804 # Specify filename containing input files.
20805 file_list_spec=$lt_file_list_spec
20806
20807 # How to hardcode a shared library path into an executable.
20808 hardcode_action=$hardcode_action
20809
20810 # The directories searched by this compiler when creating a shared library.
20811 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20812
20813 # Dependencies to place before and after the objects being linked to
20814 # create a shared library.
20815 predep_objects=$lt_predep_objects
20816 postdep_objects=$lt_postdep_objects
20817 predeps=$lt_predeps
20818 postdeps=$lt_postdeps
20819
20820 # The library search path used internally by the compiler when linking
20821 # a shared library.
20822 compiler_lib_search_path=$lt_compiler_lib_search_path
20823
20824 # ### END LIBTOOL CONFIG
20825
20826 _LT_EOF
20827
20828     cat <<'_LT_EOF' >> "$cfgfile"
20829
20830 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20831
20832 # func_munge_path_list VARIABLE PATH
20833 # -----------------------------------
20834 # VARIABLE is name of variable containing _space_ separated list of
20835 # directories to be munged by the contents of PATH, which is string
20836 # having a format:
20837 # "DIR[:DIR]:"
20838 #       string "DIR[ DIR]" will be prepended to VARIABLE
20839 # ":DIR[:DIR]"
20840 #       string "DIR[ DIR]" will be appended to VARIABLE
20841 # "DIRP[:DIRP]::[DIRA:]DIRA"
20842 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20843 #       "DIRA[ DIRA]" will be appended to VARIABLE
20844 # "DIR[:DIR]"
20845 #       VARIABLE will be replaced by "DIR[ DIR]"
20846 func_munge_path_list ()
20847 {
20848     case x$2 in
20849     x)
20850         ;;
20851     *:)
20852         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20853         ;;
20854     x:*)
20855         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20856         ;;
20857     *::*)
20858         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20859         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20860         ;;
20861     *)
20862         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20863         ;;
20864     esac
20865 }
20866
20867
20868 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20869 func_cc_basename ()
20870 {
20871     for cc_temp in $*""; do
20872       case $cc_temp in
20873         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20874         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20875         \-*) ;;
20876         *) break;;
20877       esac
20878     done
20879     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20880 }
20881
20882
20883 # ### END FUNCTIONS SHARED WITH CONFIGURE
20884
20885 _LT_EOF
20886
20887   case $host_os in
20888   aix3*)
20889     cat <<\_LT_EOF >> "$cfgfile"
20890 # AIX sometimes has problems with the GCC collect2 program.  For some
20891 # reason, if we set the COLLECT_NAMES environment variable, the problems
20892 # vanish in a puff of smoke.
20893 if test set != "${COLLECT_NAMES+set}"; then
20894   COLLECT_NAMES=
20895   export COLLECT_NAMES
20896 fi
20897 _LT_EOF
20898     ;;
20899   esac
20900
20901
20902 ltmain=$ac_aux_dir/ltmain.sh
20903
20904
20905   # We use sed instead of cat because bash on DJGPP gets confused if
20906   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20907   # text mode, it properly converts lines to CR/LF.  This bash problem
20908   # is reportedly fixed, but why not run on old versions too?
20909   sed '$q' "$ltmain" >> "$cfgfile" \
20910      || (rm -f "$cfgfile"; exit 1)
20911
20912    mv -f "$cfgfile" "$ofile" ||
20913     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20914   chmod +x "$ofile"
20915
20916
20917     cat <<_LT_EOF >> "$ofile"
20918
20919 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20920
20921 # The linker used to build libraries.
20922 LD=$lt_LD_CXX
20923
20924 # How to create reloadable object files.
20925 reload_flag=$lt_reload_flag_CXX
20926 reload_cmds=$lt_reload_cmds_CXX
20927
20928 # Commands used to build an old-style archive.
20929 old_archive_cmds=$lt_old_archive_cmds_CXX
20930
20931 # A language specific compiler.
20932 CC=$lt_compiler_CXX
20933
20934 # Is the compiler the GNU compiler?
20935 with_gcc=$GCC_CXX
20936
20937 # Compiler flag to turn off builtin functions.
20938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20939
20940 # Additional compiler flags for building library objects.
20941 pic_flag=$lt_lt_prog_compiler_pic_CXX
20942
20943 # How to pass a linker flag through the compiler.
20944 wl=$lt_lt_prog_compiler_wl_CXX
20945
20946 # Compiler flag to prevent dynamic linking.
20947 link_static_flag=$lt_lt_prog_compiler_static_CXX
20948
20949 # Does compiler simultaneously support -c and -o options?
20950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20951
20952 # Whether or not to add -lc for building shared libraries.
20953 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20954
20955 # Whether or not to disallow shared libs when runtime libs are static.
20956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20957
20958 # Compiler flag to allow reflexive dlopens.
20959 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20960
20961 # Compiler flag to generate shared objects directly from archives.
20962 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20963
20964 # Whether the compiler copes with passing no objects directly.
20965 compiler_needs_object=$lt_compiler_needs_object_CXX
20966
20967 # Create an old-style archive from a shared archive.
20968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20969
20970 # Create a temporary old-style archive to link instead of a shared archive.
20971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20972
20973 # Commands used to build a shared archive.
20974 archive_cmds=$lt_archive_cmds_CXX
20975 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20976
20977 # Commands used to build a loadable module if different from building
20978 # a shared archive.
20979 module_cmds=$lt_module_cmds_CXX
20980 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20981
20982 # Whether we are building with GNU ld or not.
20983 with_gnu_ld=$lt_with_gnu_ld_CXX
20984
20985 # Flag that allows shared libraries with undefined symbols to be built.
20986 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20987
20988 # Flag that enforces no undefined symbols.
20989 no_undefined_flag=$lt_no_undefined_flag_CXX
20990
20991 # Flag to hardcode \$libdir into a binary during linking.
20992 # This must work even if \$libdir does not exist
20993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20994
20995 # Whether we need a single "-rpath" flag with a separated argument.
20996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20997
20998 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20999 # DIR into the resulting binary.
21000 hardcode_direct=$hardcode_direct_CXX
21001
21002 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21003 # DIR into the resulting binary and the resulting library dependency is
21004 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21005 # library is relocated.
21006 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21007
21008 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21009 # into the resulting binary.
21010 hardcode_minus_L=$hardcode_minus_L_CXX
21011
21012 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21013 # into the resulting binary.
21014 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21015
21016 # Set to "yes" if building a shared library automatically hardcodes DIR
21017 # into the library and all subsequent libraries and executables linked
21018 # against it.
21019 hardcode_automatic=$hardcode_automatic_CXX
21020
21021 # Set to yes if linker adds runtime paths of dependent libraries
21022 # to runtime path list.
21023 inherit_rpath=$inherit_rpath_CXX
21024
21025 # Whether libtool must link a program against all its dependency libraries.
21026 link_all_deplibs=$link_all_deplibs_CXX
21027
21028 # Set to "yes" if exported symbols are required.
21029 always_export_symbols=$always_export_symbols_CXX
21030
21031 # The commands to list exported symbols.
21032 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21033
21034 # Symbols that should not be listed in the preloaded symbols.
21035 exclude_expsyms=$lt_exclude_expsyms_CXX
21036
21037 # Symbols that must always be exported.
21038 include_expsyms=$lt_include_expsyms_CXX
21039
21040 # Commands necessary for linking programs (against libraries) with templates.
21041 prelink_cmds=$lt_prelink_cmds_CXX
21042
21043 # Commands necessary for finishing linking programs.
21044 postlink_cmds=$lt_postlink_cmds_CXX
21045
21046 # Specify filename containing input files.
21047 file_list_spec=$lt_file_list_spec_CXX
21048
21049 # How to hardcode a shared library path into an executable.
21050 hardcode_action=$hardcode_action_CXX
21051
21052 # The directories searched by this compiler when creating a shared library.
21053 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21054
21055 # Dependencies to place before and after the objects being linked to
21056 # create a shared library.
21057 predep_objects=$lt_predep_objects_CXX
21058 postdep_objects=$lt_postdep_objects_CXX
21059 predeps=$lt_predeps_CXX
21060 postdeps=$lt_postdeps_CXX
21061
21062 # The library search path used internally by the compiler when linking
21063 # a shared library.
21064 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21065
21066 # ### END LIBTOOL TAG CONFIG: CXX
21067 _LT_EOF
21068
21069  ;;
21070
21071   esac
21072 done # for ac_tag
21073
21074
21075 as_fn_exit 0
21076 _ACEOF
21077 ac_clean_files=$ac_clean_files_save
21078
21079 test $ac_write_fail = 0 ||
21080   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21081
21082
21083 # configure is writing to config.log, and then calls config.status.
21084 # config.status does its own redirection, appending to config.log.
21085 # Unfortunately, on DOS this fails, as config.log is still kept open
21086 # by configure, so config.status won't be able to write to it; its
21087 # output is simply discarded.  So we exec the FD to /dev/null,
21088 # effectively closing config.log, so it can be properly (re)opened and
21089 # appended to by config.status.  When coming back to configure, we
21090 # need to make the FD available again.
21091 if test "$no_create" != yes; then
21092   ac_cs_success=:
21093   ac_config_status_args=
21094   test "$silent" = yes &&
21095     ac_config_status_args="$ac_config_status_args --quiet"
21096   exec 5>/dev/null
21097   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21098   exec 5>>config.log
21099   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21100   # would make configure fail if this is the last instruction.
21101   $ac_cs_success || as_fn_exit 1
21102 fi
21103 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21104   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21105 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21106 fi
21107