Imported Upstream version 0.19.8.1
[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 runstatedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_dependency_tracking
796 enable_shared
797 enable_static
798 with_pic
799 enable_fast_install
800 with_aix_soname
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 '
805       ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
813 CXX
814 CXXFLAGS
815 CCC
816 CPP
817 LT_SYS_LIBRARY_PATH
818 CXXCPP'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 runstatedir='${localstatedir}/run'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874   # If the previous option needs an argument, assign it.
875   if test -n "$ac_prev"; then
876     eval $ac_prev=\$ac_option
877     ac_prev=
878     continue
879   fi
880
881   case $ac_option in
882   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883   *=)   ac_optarg= ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   # Accept the important Cygnus configure options, so we can diagnose typos.
888
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
892
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
897
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
902
903   -cache-file | --cache-file | --cache-fil | --cache-fi \
904   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905     ac_prev=cache_file ;;
906   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908     cache_file=$ac_optarg ;;
909
910   --config-cache | -C)
911     cache_file=config.cache ;;
912
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
917
918   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919   | --dataroo | --dataro | --datar)
920     ac_prev=datarootdir ;;
921   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923     datarootdir=$ac_optarg ;;
924
925   -disable-* | --disable-*)
926     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929       as_fn_error $? "invalid feature name: $ac_useropt"
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933       *"
934 "enable_$ac_useropt"
935 "*) ;;
936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937          ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=no ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
951   -enable-* | --enable-*)
952     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955       as_fn_error $? "invalid feature name: $ac_useropt"
956     ac_useropt_orig=$ac_useropt
957     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958     case $ac_user_opts in
959       *"
960 "enable_$ac_useropt"
961 "*) ;;
962       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963          ac_unrecognized_sep=', ';;
964     esac
965     eval enable_$ac_useropt=\$ac_optarg ;;
966
967   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969   | --exec | --exe | --ex)
970     ac_prev=exec_prefix ;;
971   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973   | --exec=* | --exe=* | --ex=*)
974     exec_prefix=$ac_optarg ;;
975
976   -gas | --gas | --ga | --g)
977     # Obsolete; use --with-gas.
978     with_gas=yes ;;
979
980   -help | --help | --hel | --he | -h)
981     ac_init_help=long ;;
982   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983     ac_init_help=recursive ;;
984   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985     ac_init_help=short ;;
986
987   -host | --host | --hos | --ho)
988     ac_prev=host_alias ;;
989   -host=* | --host=* | --hos=* | --ho=*)
990     host_alias=$ac_optarg ;;
991
992   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993     ac_prev=htmldir ;;
994   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995   | --ht=*)
996     htmldir=$ac_optarg ;;
997
998   -includedir | --includedir | --includedi | --included | --include \
999   | --includ | --inclu | --incl | --inc)
1000     ac_prev=includedir ;;
1001   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002   | --includ=* | --inclu=* | --incl=* | --inc=*)
1003     includedir=$ac_optarg ;;
1004
1005   -infodir | --infodir | --infodi | --infod | --info | --inf)
1006     ac_prev=infodir ;;
1007   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008     infodir=$ac_optarg ;;
1009
1010   -libdir | --libdir | --libdi | --libd)
1011     ac_prev=libdir ;;
1012   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013     libdir=$ac_optarg ;;
1014
1015   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016   | --libexe | --libex | --libe)
1017     ac_prev=libexecdir ;;
1018   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019   | --libexe=* | --libex=* | --libe=*)
1020     libexecdir=$ac_optarg ;;
1021
1022   -localedir | --localedir | --localedi | --localed | --locale)
1023     ac_prev=localedir ;;
1024   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025     localedir=$ac_optarg ;;
1026
1027   -localstatedir | --localstatedir | --localstatedi | --localstated \
1028   | --localstate | --localstat | --localsta | --localst | --locals)
1029     ac_prev=localstatedir ;;
1030   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032     localstatedir=$ac_optarg ;;
1033
1034   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035     ac_prev=mandir ;;
1036   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037     mandir=$ac_optarg ;;
1038
1039   -nfp | --nfp | --nf)
1040     # Obsolete; use --without-fp.
1041     with_fp=no ;;
1042
1043   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044   | --no-cr | --no-c | -n)
1045     no_create=yes ;;
1046
1047   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049     no_recursion=yes ;;
1050
1051   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053   | --oldin | --oldi | --old | --ol | --o)
1054     ac_prev=oldincludedir ;;
1055   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058     oldincludedir=$ac_optarg ;;
1059
1060   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061     ac_prev=prefix ;;
1062   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063     prefix=$ac_optarg ;;
1064
1065   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066   | --program-pre | --program-pr | --program-p)
1067     ac_prev=program_prefix ;;
1068   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070     program_prefix=$ac_optarg ;;
1071
1072   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073   | --program-suf | --program-su | --program-s)
1074     ac_prev=program_suffix ;;
1075   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077     program_suffix=$ac_optarg ;;
1078
1079   -program-transform-name | --program-transform-name \
1080   | --program-transform-nam | --program-transform-na \
1081   | --program-transform-n | --program-transform- \
1082   | --program-transform | --program-transfor \
1083   | --program-transfo | --program-transf \
1084   | --program-trans | --program-tran \
1085   | --progr-tra | --program-tr | --program-t)
1086     ac_prev=program_transform_name ;;
1087   -program-transform-name=* | --program-transform-name=* \
1088   | --program-transform-nam=* | --program-transform-na=* \
1089   | --program-transform-n=* | --program-transform-=* \
1090   | --program-transform=* | --program-transfor=* \
1091   | --program-transfo=* | --program-transf=* \
1092   | --program-trans=* | --program-tran=* \
1093   | --progr-tra=* | --program-tr=* | --program-t=*)
1094     program_transform_name=$ac_optarg ;;
1095
1096   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097     ac_prev=pdfdir ;;
1098   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099     pdfdir=$ac_optarg ;;
1100
1101   -psdir | --psdir | --psdi | --psd | --ps)
1102     ac_prev=psdir ;;
1103   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104     psdir=$ac_optarg ;;
1105
1106   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107   | -silent | --silent | --silen | --sile | --sil)
1108     silent=yes ;;
1109
1110   -runstatedir | --runstatedir | --runstatedi | --runstated \
1111   | --runstate | --runstat | --runsta | --runst | --runs \
1112   | --run | --ru | --r)
1113     ac_prev=runstatedir ;;
1114   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1115   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1116   | --run=* | --ru=* | --r=*)
1117     runstatedir=$ac_optarg ;;
1118
1119   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120     ac_prev=sbindir ;;
1121   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122   | --sbi=* | --sb=*)
1123     sbindir=$ac_optarg ;;
1124
1125   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127   | --sharedst | --shareds | --shared | --share | --shar \
1128   | --sha | --sh)
1129     ac_prev=sharedstatedir ;;
1130   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133   | --sha=* | --sh=*)
1134     sharedstatedir=$ac_optarg ;;
1135
1136   -site | --site | --sit)
1137     ac_prev=site ;;
1138   -site=* | --site=* | --sit=*)
1139     site=$ac_optarg ;;
1140
1141   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142     ac_prev=srcdir ;;
1143   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144     srcdir=$ac_optarg ;;
1145
1146   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147   | --syscon | --sysco | --sysc | --sys | --sy)
1148     ac_prev=sysconfdir ;;
1149   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151     sysconfdir=$ac_optarg ;;
1152
1153   -target | --target | --targe | --targ | --tar | --ta | --t)
1154     ac_prev=target_alias ;;
1155   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156     target_alias=$ac_optarg ;;
1157
1158   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159     verbose=yes ;;
1160
1161   -version | --version | --versio | --versi | --vers | -V)
1162     ac_init_version=: ;;
1163
1164   -with-* | --with-*)
1165     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168       as_fn_error $? "invalid package name: $ac_useropt"
1169     ac_useropt_orig=$ac_useropt
1170     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171     case $ac_user_opts in
1172       *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176          ac_unrecognized_sep=', ';;
1177     esac
1178     eval with_$ac_useropt=\$ac_optarg ;;
1179
1180   -without-* | --without-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error $? "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=no ;;
1195
1196   --x)
1197     # Obsolete; use --with-x.
1198     with_x=yes ;;
1199
1200   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201   | --x-incl | --x-inc | --x-in | --x-i)
1202     ac_prev=x_includes ;;
1203   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205     x_includes=$ac_optarg ;;
1206
1207   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209     ac_prev=x_libraries ;;
1210   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212     x_libraries=$ac_optarg ;;
1213
1214   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1216     ;;
1217
1218   *=*)
1219     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220     # Reject names that are not valid shell variable names.
1221     case $ac_envvar in #(
1222       '' | [0-9]* | *[!_$as_cr_alnum]* )
1223       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224     esac
1225     eval $ac_envvar=\$ac_optarg
1226     export $ac_envvar ;;
1227
1228   *)
1229     # FIXME: should be removed in autoconf 3.0.
1230     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234     ;;
1235
1236   esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241   as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245   case $enable_option_checking in
1246     no) ;;
1247     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249   esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254                 datadir sysconfdir sharedstatedir localstatedir includedir \
1255                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256                 libdir localedir mandir runstatedir
1257 do
1258   eval ac_val=\$$ac_var
1259   # Remove trailing slashes.
1260   case $ac_val in
1261     */ )
1262       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263       eval $ac_var=\$ac_val;;
1264   esac
1265   # Be sure to have absolute directory names.
1266   case $ac_val in
1267     [\\/$]* | ?:[\\/]* )  continue;;
1268     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269   esac
1270   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282   if test "x$build_alias" = x; then
1283     cross_compiling=maybe
1284   elif test "x$build_alias" != "x$host_alias"; then
1285     cross_compiling=yes
1286   fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298   as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300   as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305   ac_srcdir_defaulted=yes
1306   # Try the directory containing this script, then the parent directory.
1307   ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309          X"$as_myself" : 'X\(//\)[^/]' \| \
1310          X"$as_myself" : 'X\(//\)$' \| \
1311          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\/\)[^/].*/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\).*/{
1326             s//\1/
1327             q
1328           }
1329           s/.*/./; q'`
1330   srcdir=$ac_confdir
1331   if test ! -r "$srcdir/$ac_unique_file"; then
1332     srcdir=..
1333   fi
1334 else
1335   ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344         pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347   srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357   eval ac_env_${ac_var}_value=\$${ac_var}
1358   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366   # Omit some internal or obsolete options to make the list less imposing.
1367   # This message is too long to be a string in the A/UX 3.1 sh.
1368   cat <<_ACEOF
1369 \`configure' configures libasprintf 1.0 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE.  See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379   -h, --help              display this help and exit
1380       --help=short        display options specific to this package
1381       --help=recursive    display the short help of all the included packages
1382   -V, --version           display version information and exit
1383   -q, --quiet, --silent   do not print \`checking ...' messages
1384       --cache-file=FILE   cache test results in FILE [disabled]
1385   -C, --config-cache      alias for \`--cache-file=config.cache'
1386   -n, --no-create         do not create output files
1387       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390   --prefix=PREFIX         install architecture-independent files in PREFIX
1391                           [$ac_default_prefix]
1392   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1393                           [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403   --bindir=DIR            user executables [EPREFIX/bin]
1404   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1405   --libexecdir=DIR        program executables [EPREFIX/libexec]
1406   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1407   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1408   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1409   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1410   --libdir=DIR            object code libraries [EPREFIX/lib]
1411   --includedir=DIR        C header files [PREFIX/include]
1412   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1413   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1414   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1415   --infodir=DIR           info documentation [DATAROOTDIR/info]
1416   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1417   --mandir=DIR            man documentation [DATAROOTDIR/man]
1418   --docdir=DIR            documentation root [DATAROOTDIR/doc/libasprintf]
1419   --htmldir=DIR           html documentation [DOCDIR]
1420   --dvidir=DIR            dvi documentation [DOCDIR]
1421   --pdfdir=DIR            pdf documentation [DOCDIR]
1422   --psdir=DIR             ps documentation [DOCDIR]
1423 _ACEOF
1424
1425   cat <<\_ACEOF
1426
1427 Program names:
1428   --program-prefix=PREFIX            prepend PREFIX to installed program names
1429   --program-suffix=SUFFIX            append SUFFIX to installed program names
1430   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1431
1432 System types:
1433   --build=BUILD     configure for building on BUILD [guessed]
1434   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1435 _ACEOF
1436 fi
1437
1438 if test -n "$ac_init_help"; then
1439   case $ac_init_help in
1440      short | recursive ) echo "Configuration of libasprintf 1.0:";;
1441    esac
1442   cat <<\_ACEOF
1443
1444 Optional Features:
1445   --disable-option-checking  ignore unrecognized --enable/--with options
1446   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1447   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1448   --enable-silent-rules   less verbose build output (undo: "make V=1")
1449   --disable-silent-rules  verbose build output (undo: "make V=0")
1450   --enable-dependency-tracking
1451                           do not reject slow dependency extractors
1452   --disable-dependency-tracking
1453                           speeds up one-time build
1454   --enable-shared[=PKGS]  build shared libraries [default=yes]
1455   --enable-static[=PKGS]  build static libraries [default=yes]
1456   --enable-fast-install[=PKGS]
1457                           optimize for fast installation [default=yes]
1458   --disable-libtool-lock  avoid locking (might break parallel builds)
1459
1460 Optional Packages:
1461   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1462   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1463   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1464                           both]
1465   --with-aix-soname=aix|svr4|both
1466                           shared library versioning (aka "SONAME") variant to
1467                           provide on AIX, [default=aix].
1468   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1469   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1470                           compiler's sysroot if not specified).
1471
1472 Some influential environment variables:
1473   CC          C compiler command
1474   CFLAGS      C compiler flags
1475   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476               nonstandard directory <lib dir>
1477   LIBS        libraries to pass to the linker, e.g. -l<library>
1478   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479               you have headers in a nonstandard directory <include dir>
1480   CXX         C++ compiler command
1481   CXXFLAGS    C++ compiler flags
1482   CPP         C preprocessor
1483   LT_SYS_LIBRARY_PATH
1484               User-defined run-time library search path.
1485   CXXCPP      C++ preprocessor
1486
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1489
1490 Report bugs to the package provider.
1491 _ACEOF
1492 ac_status=$?
1493 fi
1494
1495 if test "$ac_init_help" = "recursive"; then
1496   # If there are subdirs, report their specific --help.
1497   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498     test -d "$ac_dir" ||
1499       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500       continue
1501     ac_builddir=.
1502
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *)
1506   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507   # A ".." for each directory in $ac_dir_suffix.
1508   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509   case $ac_top_builddir_sub in
1510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512   esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1518
1519 case $srcdir in
1520   .)  # We are building in place.
1521     ac_srcdir=.
1522     ac_top_srcdir=$ac_top_builddir_sub
1523     ac_abs_top_srcdir=$ac_pwd ;;
1524   [\\/]* | ?:[\\/]* )  # Absolute name.
1525     ac_srcdir=$srcdir$ac_dir_suffix;
1526     ac_top_srcdir=$srcdir
1527     ac_abs_top_srcdir=$srcdir ;;
1528   *) # Relative name.
1529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530     ac_top_srcdir=$ac_top_build_prefix$srcdir
1531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535     cd "$ac_dir" || { ac_status=$?; continue; }
1536     # Check for guested configure.
1537     if test -f "$ac_srcdir/configure.gnu"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540     elif test -f "$ac_srcdir/configure"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure" --help=recursive
1543     else
1544       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545     fi || ac_status=$?
1546     cd "$ac_pwd" || { ac_status=$?; break; }
1547   done
1548 fi
1549
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552   cat <<\_ACEOF
1553 libasprintf configure 1.0
1554 generated by GNU Autoconf 2.69
1555
1556 Copyright (C) 2012 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1559 _ACEOF
1560   exit
1561 fi
1562
1563 ## ------------------------ ##
1564 ## Autoconf initialization. ##
1565 ## ------------------------ ##
1566
1567 # ac_fn_c_try_compile LINENO
1568 # --------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_compile ()
1571 {
1572   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573   rm -f conftest.$ac_objext
1574   if { { ac_try="$ac_compile"
1575 case "(($ac_try" in
1576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577   *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581   (eval "$ac_compile") 2>conftest.err
1582   ac_status=$?
1583   if test -s conftest.err; then
1584     grep -v '^ *+' conftest.err >conftest.er1
1585     cat conftest.er1 >&5
1586     mv -f conftest.er1 conftest.err
1587   fi
1588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589   test $ac_status = 0; } && {
1590          test -z "$ac_c_werror_flag" ||
1591          test ! -s conftest.err
1592        } && test -s conftest.$ac_objext; then :
1593   ac_retval=0
1594 else
1595   $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598         ac_retval=1
1599 fi
1600   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601   as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_compile
1604
1605 # ac_fn_cxx_try_compile LINENO
1606 # ----------------------------
1607 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_cxx_try_compile ()
1609 {
1610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611   rm -f conftest.$ac_objext
1612   if { { ac_try="$ac_compile"
1613 case "(($ac_try" in
1614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615   *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619   (eval "$ac_compile") 2>conftest.err
1620   ac_status=$?
1621   if test -s conftest.err; then
1622     grep -v '^ *+' conftest.err >conftest.er1
1623     cat conftest.er1 >&5
1624     mv -f conftest.er1 conftest.err
1625   fi
1626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627   test $ac_status = 0; } && {
1628          test -z "$ac_cxx_werror_flag" ||
1629          test ! -s conftest.err
1630        } && test -s conftest.$ac_objext; then :
1631   ac_retval=0
1632 else
1633   $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636         ac_retval=1
1637 fi
1638   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639   as_fn_set_status $ac_retval
1640
1641 } # ac_fn_cxx_try_compile
1642
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_cpp ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } > conftest.i && {
1665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666          test ! -s conftest.err
1667        }; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673     ac_retval=1
1674 fi
1675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_cpp
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   rm -f conftest.$ac_objext conftest$ac_exeext
1687   if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_link") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && {
1703          test -z "$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        } && test -s conftest$ac_exeext && {
1706          test "$cross_compiling" = yes ||
1707          test -x conftest$ac_exeext
1708        }; then :
1709   ac_retval=0
1710 else
1711   $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714         ac_retval=1
1715 fi
1716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718   # interfere with the next link command; also delete a directory that is
1719   # left behind by Apple's compiler.  We do this before executing the actions.
1720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722   as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736   $as_echo_n "(cached) " >&6
1737 else
1738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h.  */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744   eval "$3=yes"
1745 else
1746   eval "$3=no"
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 fi
1750 eval ac_res=\$$3
1751                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755 } # ac_fn_c_check_header_compile
1756
1757 # ac_fn_c_try_run LINENO
1758 # ----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760 # that executables *can* be run.
1761 ac_fn_c_try_run ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_link") 2>&5
1772   ac_status=$?
1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775   { { case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_try") 2>&5
1782   ac_status=$?
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; }; }; then :
1785   ac_retval=0
1786 else
1787   $as_echo "$as_me: program exited with status $ac_status" >&5
1788        $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791        ac_retval=$ac_status
1792 fi
1793   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795   as_fn_set_status $ac_retval
1796
1797 } # ac_fn_c_try_run
1798
1799 # ac_fn_c_check_func LINENO FUNC VAR
1800 # ----------------------------------
1801 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1802 ac_fn_c_check_func ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808   $as_echo_n "(cached) " >&6
1809 else
1810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h.  */
1812 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1814 #define $2 innocuous_$2
1815
1816 /* System header to define __stub macros and hopefully few prototypes,
1817     which can conflict with char $2 (); below.
1818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819     <limits.h> exists even on freestanding compilers.  */
1820
1821 #ifdef __STDC__
1822 # include <limits.h>
1823 #else
1824 # include <assert.h>
1825 #endif
1826
1827 #undef $2
1828
1829 /* Override any GCC internal prototype to avoid an error.
1830    Use char because int might match the return type of a GCC
1831    builtin and then its argument prototype would still apply.  */
1832 #ifdef __cplusplus
1833 extern "C"
1834 #endif
1835 char $2 ();
1836 /* The GNU C library defines this for functions which it implements
1837     to always fail with ENOSYS.  Some functions are actually named
1838     something starting with __ and the normal name is an alias.  */
1839 #if defined __stub_$2 || defined __stub___$2
1840 choke me
1841 #endif
1842
1843 int
1844 main ()
1845 {
1846 return $2 ();
1847   ;
1848   return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_link "$LINENO"; then :
1852   eval "$3=yes"
1853 else
1854   eval "$3=no"
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext \
1857     conftest$ac_exeext conftest.$ac_ext
1858 fi
1859 eval ac_res=\$$3
1860                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864 } # ac_fn_c_check_func
1865
1866 # ac_fn_cxx_try_cpp LINENO
1867 # ------------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_cxx_try_cpp ()
1870 {
1871   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872   if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 case "(($ac_try" in
1874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875   *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880   ac_status=$?
1881   if test -s conftest.err; then
1882     grep -v '^ *+' conftest.err >conftest.er1
1883     cat conftest.er1 >&5
1884     mv -f conftest.er1 conftest.err
1885   fi
1886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887   test $ac_status = 0; } > conftest.i && {
1888          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1889          test ! -s conftest.err
1890        }; then :
1891   ac_retval=0
1892 else
1893   $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896     ac_retval=1
1897 fi
1898   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899   as_fn_set_status $ac_retval
1900
1901 } # ac_fn_cxx_try_cpp
1902
1903 # ac_fn_cxx_try_link LINENO
1904 # -------------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_cxx_try_link ()
1907 {
1908   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909   rm -f conftest.$ac_objext conftest$ac_exeext
1910   if { { ac_try="$ac_link"
1911 case "(($ac_try" in
1912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913   *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917   (eval "$ac_link") 2>conftest.err
1918   ac_status=$?
1919   if test -s conftest.err; then
1920     grep -v '^ *+' conftest.err >conftest.er1
1921     cat conftest.er1 >&5
1922     mv -f conftest.er1 conftest.err
1923   fi
1924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925   test $ac_status = 0; } && {
1926          test -z "$ac_cxx_werror_flag" ||
1927          test ! -s conftest.err
1928        } && test -s conftest$ac_exeext && {
1929          test "$cross_compiling" = yes ||
1930          test -x conftest$ac_exeext
1931        }; then :
1932   ac_retval=0
1933 else
1934   $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936
1937         ac_retval=1
1938 fi
1939   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1940   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1941   # interfere with the next link command; also delete a directory that is
1942   # left behind by Apple's compiler.  We do this before executing the actions.
1943   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945   as_fn_set_status $ac_retval
1946
1947 } # ac_fn_cxx_try_link
1948
1949 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_c_check_header_mongrel ()
1955 {
1956   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957   if eval \${$3+:} false; then :
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961   $as_echo_n "(cached) " >&6
1962 fi
1963 eval ac_res=\$$3
1964                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967   # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 $4
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976   ac_header_compiler=yes
1977 else
1978   ac_header_compiler=no
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1983
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992   ac_header_preproc=yes
1993 else
1994   ac_header_preproc=no
1995 fi
1996 rm -f conftest.err conftest.i conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
1999
2000 # So?  What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2002   yes:no: )
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes:* )
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019     ;;
2020 esac
2021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024   $as_echo_n "(cached) " >&6
2025 else
2026   eval "$3=\$ac_header_compiler"
2027 fi
2028 eval ac_res=\$$3
2029                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 fi
2032   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033
2034 } # ac_fn_c_check_header_mongrel
2035
2036 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2037 # -------------------------------------------
2038 # Tests whether TYPE exists after having included INCLUDES, setting cache
2039 # variable VAR accordingly.
2040 ac_fn_c_check_type ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046   $as_echo_n "(cached) " >&6
2047 else
2048   eval "$3=no"
2049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h.  */
2051 $4
2052 int
2053 main ()
2054 {
2055 if (sizeof ($2))
2056          return 0;
2057   ;
2058   return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 $4
2065 int
2066 main ()
2067 {
2068 if (sizeof (($2)))
2069             return 0;
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075
2076 else
2077   eval "$3=yes"
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 fi
2083 eval ac_res=\$$3
2084                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087
2088 } # ac_fn_c_check_type
2089
2090 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2091 # --------------------------------------------
2092 # Tries to find the compile-time value of EXPR in a program that includes
2093 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2094 # computed
2095 ac_fn_c_compute_int ()
2096 {
2097   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098   if test "$cross_compiling" = yes; then
2099     # Depending upon the size, compute the lo and hi bounds.
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 $4
2103 int
2104 main ()
2105 {
2106 static int test_array [1 - 2 * !(($2) >= 0)];
2107 test_array [0] = 0;
2108 return test_array [0];
2109
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115   ac_lo=0 ac_mid=0
2116   while :; do
2117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h.  */
2119 $4
2120 int
2121 main ()
2122 {
2123 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2124 test_array [0] = 0;
2125 return test_array [0];
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132   ac_hi=$ac_mid; break
2133 else
2134   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2135                         if test $ac_lo -le $ac_mid; then
2136                           ac_lo= ac_hi=
2137                           break
2138                         fi
2139                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142   done
2143 else
2144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 $4
2147 int
2148 main ()
2149 {
2150 static int test_array [1 - 2 * !(($2) < 0)];
2151 test_array [0] = 0;
2152 return test_array [0];
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159   ac_hi=-1 ac_mid=-1
2160   while :; do
2161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 int
2165 main ()
2166 {
2167 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2168 test_array [0] = 0;
2169 return test_array [0];
2170
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176   ac_lo=$ac_mid; break
2177 else
2178   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2179                         if test $ac_mid -le $ac_hi; then
2180                           ac_lo= ac_hi=
2181                           break
2182                         fi
2183                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186   done
2187 else
2188   ac_lo= ac_hi=
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 # Binary search between lo and hi bounds.
2194 while test "x$ac_lo" != "x$ac_hi"; do
2195   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 int
2200 main ()
2201 {
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211   ac_hi=$ac_mid
2212 else
2213   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 done
2217 case $ac_lo in #((
2218 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2219 '') ac_retval=1 ;;
2220 esac
2221   else
2222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h.  */
2224 $4
2225 static long int longval () { return $2; }
2226 static unsigned long int ulongval () { return $2; }
2227 #include <stdio.h>
2228 #include <stdlib.h>
2229 int
2230 main ()
2231 {
2232
2233   FILE *f = fopen ("conftest.val", "w");
2234   if (! f)
2235     return 1;
2236   if (($2) < 0)
2237     {
2238       long int i = longval ();
2239       if (i != ($2))
2240         return 1;
2241       fprintf (f, "%ld", i);
2242     }
2243   else
2244     {
2245       unsigned long int i = ulongval ();
2246       if (i != ($2))
2247         return 1;
2248       fprintf (f, "%lu", i);
2249     }
2250   /* Do not output a trailing newline, as this causes \r\n confusion
2251      on some platforms.  */
2252   return ferror (f) || fclose (f) != 0;
2253
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_run "$LINENO"; then :
2259   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2260 else
2261   ac_retval=1
2262 fi
2263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2264   conftest.$ac_objext conftest.beam conftest.$ac_ext
2265 rm -f conftest.val
2266
2267   fi
2268   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269   as_fn_set_status $ac_retval
2270
2271 } # ac_fn_c_compute_int
2272
2273 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2274 # ---------------------------------------------
2275 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2276 # accordingly.
2277 ac_fn_c_check_decl ()
2278 {
2279   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280   as_decl_name=`echo $2|sed 's/ *(.*//'`
2281   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2283 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2284 if eval \${$3+:} false; then :
2285   $as_echo_n "(cached) " >&6
2286 else
2287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $4
2290 int
2291 main ()
2292 {
2293 #ifndef $as_decl_name
2294 #ifdef __cplusplus
2295   (void) $as_decl_use;
2296 #else
2297   (void) $as_decl_name;
2298 #endif
2299 #endif
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306   eval "$3=yes"
2307 else
2308   eval "$3=no"
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 eval ac_res=\$$3
2313                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316
2317 } # ac_fn_c_check_decl
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2321
2322 It was created by libasprintf $as_me 1.0, which was
2323 generated by GNU Autoconf 2.69.  Invocation command line was
2324
2325   $ $0 $@
2326
2327 _ACEOF
2328 exec 5>>config.log
2329 {
2330 cat <<_ASUNAME
2331 ## --------- ##
2332 ## Platform. ##
2333 ## --------- ##
2334
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2340
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2343
2344 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2345 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2348 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2349 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2350 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2351
2352 _ASUNAME
2353
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359     $as_echo "PATH: $as_dir"
2360   done
2361 IFS=$as_save_IFS
2362
2363 } >&5
2364
2365 cat >&5 <<_ACEOF
2366
2367
2368 ## ----------- ##
2369 ## Core tests. ##
2370 ## ----------- ##
2371
2372 _ACEOF
2373
2374
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2380 ac_configure_args=
2381 ac_configure_args0=
2382 ac_configure_args1=
2383 ac_must_keep_next=false
2384 for ac_pass in 1 2
2385 do
2386   for ac_arg
2387   do
2388     case $ac_arg in
2389     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391     | -silent | --silent | --silen | --sile | --sil)
2392       continue ;;
2393     *\'*)
2394       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395     esac
2396     case $ac_pass in
2397     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2398     2)
2399       as_fn_append ac_configure_args1 " '$ac_arg'"
2400       if test $ac_must_keep_next = true; then
2401         ac_must_keep_next=false # Got value, back to normal.
2402       else
2403         case $ac_arg in
2404           *=* | --config-cache | -C | -disable-* | --disable-* \
2405           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407           | -with-* | --with-* | -without-* | --without-* | --x)
2408             case "$ac_configure_args0 " in
2409               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410             esac
2411             ;;
2412           -* ) ac_must_keep_next=true ;;
2413         esac
2414       fi
2415       as_fn_append ac_configure_args " '$ac_arg'"
2416       ;;
2417     esac
2418   done
2419 done
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2422
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log.  We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429   # Save into config.log some information that might help in debugging.
2430   {
2431     echo
2432
2433     $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2436     echo
2437     # The following way of writing the cache mishandles newlines in values,
2438 (
2439   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440     eval ac_val=\$$ac_var
2441     case $ac_val in #(
2442     *${as_nl}*)
2443       case $ac_var in #(
2444       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446       esac
2447       case $ac_var in #(
2448       _ | IFS | as_nl) ;; #(
2449       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450       *) { eval $ac_var=; unset $ac_var;} ;;
2451       esac ;;
2452     esac
2453   done
2454   (set) 2>&1 |
2455     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456     *${as_nl}ac_space=\ *)
2457       sed -n \
2458         "s/'\''/'\''\\\\'\'''\''/g;
2459           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460       ;; #(
2461     *)
2462       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2463       ;;
2464     esac |
2465     sort
2466 )
2467     echo
2468
2469     $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2472     echo
2473     for ac_var in $ac_subst_vars
2474     do
2475       eval ac_val=\$$ac_var
2476       case $ac_val in
2477       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478       esac
2479       $as_echo "$ac_var='\''$ac_val'\''"
2480     done | sort
2481     echo
2482
2483     if test -n "$ac_subst_files"; then
2484       $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2487       echo
2488       for ac_var in $ac_subst_files
2489       do
2490         eval ac_val=\$$ac_var
2491         case $ac_val in
2492         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493         esac
2494         $as_echo "$ac_var='\''$ac_val'\''"
2495       done | sort
2496       echo
2497     fi
2498
2499     if test -s confdefs.h; then
2500       $as_echo "## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##"
2503       echo
2504       cat confdefs.h
2505       echo
2506     fi
2507     test "$ac_signal" != 0 &&
2508       $as_echo "$as_me: caught signal $ac_signal"
2509     $as_echo "$as_me: exit $exit_status"
2510   } >&5
2511   rm -f core *.core core.conftest.* &&
2512     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513     exit $exit_status
2514 ' 0
2515 for ac_signal in 1 2 13 15; do
2516   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 done
2518 ac_signal=0
2519
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2522
2523 $as_echo "/* confdefs.h */" > confdefs.h
2524
2525 # Predefined preprocessor variables.
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 _ACEOF
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 _ACEOF
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 _ACEOF
2546
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2549 _ACEOF
2550
2551
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2554 ac_site_file1=NONE
2555 ac_site_file2=NONE
2556 if test -n "$CONFIG_SITE"; then
2557   # We do not want a PATH search for config.site.
2558   case $CONFIG_SITE in #((
2559     -*)  ac_site_file1=./$CONFIG_SITE;;
2560     */*) ac_site_file1=$CONFIG_SITE;;
2561     *)   ac_site_file1=./$CONFIG_SITE;;
2562   esac
2563 elif test "x$prefix" != xNONE; then
2564   ac_site_file1=$prefix/share/config.site
2565   ac_site_file2=$prefix/etc/config.site
2566 else
2567   ac_site_file1=$ac_default_prefix/share/config.site
2568   ac_site_file2=$ac_default_prefix/etc/config.site
2569 fi
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2571 do
2572   test "x$ac_site_file" = xNONE && continue
2573   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576     sed 's/^/| /' "$ac_site_file" >&5
2577     . "$ac_site_file" \
2578       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2582   fi
2583 done
2584
2585 if test -r "$cache_file"; then
2586   # Some versions of bash will fail to source /dev/null (special files
2587   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2588   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2591     case $cache_file in
2592       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593       *)                      . "./$cache_file";;
2594     esac
2595   fi
2596 else
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599   >$cache_file
2600 fi
2601
2602 gl_header_list="$gl_header_list stdlib.h"
2603 gl_header_list="$gl_header_list string.h"
2604 # Check that the precious variables saved in the cache have kept the same
2605 # value.
2606 ac_cache_corrupted=false
2607 for ac_var in $ac_precious_vars; do
2608   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2609   eval ac_new_set=\$ac_env_${ac_var}_set
2610   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2611   eval ac_new_val=\$ac_env_${ac_var}_value
2612   case $ac_old_set,$ac_new_set in
2613     set,)
2614       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2616       ac_cache_corrupted=: ;;
2617     ,set)
2618       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2619 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2620       ac_cache_corrupted=: ;;
2621     ,);;
2622     *)
2623       if test "x$ac_old_val" != "x$ac_new_val"; then
2624         # differences in whitespace do not lead to failure.
2625         ac_old_val_w=`echo x $ac_old_val`
2626         ac_new_val_w=`echo x $ac_new_val`
2627         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2628           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2629 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2630           ac_cache_corrupted=:
2631         else
2632           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2633 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2634           eval $ac_var=\$ac_old_val
2635         fi
2636         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2637 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2638         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2639 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2640       fi;;
2641   esac
2642   # Pass precious variables to config.status.
2643   if test "$ac_new_set" = set; then
2644     case $ac_new_val in
2645     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2646     *) ac_arg=$ac_var=$ac_new_val ;;
2647     esac
2648     case " $ac_configure_args " in
2649       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2650       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2651     esac
2652   fi
2653 done
2654 if $ac_cache_corrupted; then
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2658 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2659   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2660 fi
2661 ## -------------------- ##
2662 ## Main body of script. ##
2663 ## -------------------- ##
2664
2665 ac_ext=c
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670
2671
2672
2673 ac_aux_dir=
2674 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2675   if test -f "$ac_dir/install-sh"; then
2676     ac_aux_dir=$ac_dir
2677     ac_install_sh="$ac_aux_dir/install-sh -c"
2678     break
2679   elif test -f "$ac_dir/install.sh"; then
2680     ac_aux_dir=$ac_dir
2681     ac_install_sh="$ac_aux_dir/install.sh -c"
2682     break
2683   elif test -f "$ac_dir/shtool"; then
2684     ac_aux_dir=$ac_dir
2685     ac_install_sh="$ac_aux_dir/shtool install -c"
2686     break
2687   fi
2688 done
2689 if test -z "$ac_aux_dir"; then
2690   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2691 fi
2692
2693 # These three variables are undocumented and unsupported,
2694 # and are intended to be withdrawn in a future Autoconf release.
2695 # They can cause serious problems if a builder's source tree is in a directory
2696 # whose full name contains unusual characters.
2697 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2698 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2699 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2700
2701
2702 am__api_version='1.15'
2703
2704 # Find a good install program.  We prefer a C program (faster),
2705 # so one script is as good as another.  But avoid the broken or
2706 # incompatible versions:
2707 # SysV /etc/install, /usr/sbin/install
2708 # SunOS /usr/etc/install
2709 # IRIX /sbin/install
2710 # AIX /bin/install
2711 # AmigaOS /C/install, which installs bootblocks on floppy discs
2712 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2713 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2714 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2715 # OS/2's system install, which has a completely different semantic
2716 # ./install, which can be erroneously created by make from ./install.sh.
2717 # Reject install programs that cannot install multiple files.
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2719 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2720 if test -z "$INSTALL"; then
2721 if ${ac_cv_path_install+:} false; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727   IFS=$as_save_IFS
2728   test -z "$as_dir" && as_dir=.
2729     # Account for people who put trailing slashes in PATH elements.
2730 case $as_dir/ in #((
2731   ./ | .// | /[cC]/* | \
2732   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2733   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2734   /usr/ucb/* ) ;;
2735   *)
2736     # OSF1 and SCO ODT 3.0 have their own names for install.
2737     # Don't use installbsd from OSF since it installs stuff as root
2738     # by default.
2739     for ac_prog in ginstall scoinst install; do
2740       for ac_exec_ext in '' $ac_executable_extensions; do
2741         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2742           if test $ac_prog = install &&
2743             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2744             # AIX install.  It has an incompatible calling convention.
2745             :
2746           elif test $ac_prog = install &&
2747             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2748             # program-specific install script used by HP pwplus--don't use.
2749             :
2750           else
2751             rm -rf conftest.one conftest.two conftest.dir
2752             echo one > conftest.one
2753             echo two > conftest.two
2754             mkdir conftest.dir
2755             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2756               test -s conftest.one && test -s conftest.two &&
2757               test -s conftest.dir/conftest.one &&
2758               test -s conftest.dir/conftest.two
2759             then
2760               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2761               break 3
2762             fi
2763           fi
2764         fi
2765       done
2766     done
2767     ;;
2768 esac
2769
2770   done
2771 IFS=$as_save_IFS
2772
2773 rm -rf conftest.one conftest.two conftest.dir
2774
2775 fi
2776   if test "${ac_cv_path_install+set}" = set; then
2777     INSTALL=$ac_cv_path_install
2778   else
2779     # As a last resort, use the slow shell script.  Don't cache a
2780     # value for INSTALL within a source directory, because that will
2781     # break other packages using the cache if that directory is
2782     # removed, or if the value is a relative name.
2783     INSTALL=$ac_install_sh
2784   fi
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2787 $as_echo "$INSTALL" >&6; }
2788
2789 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2790 # It thinks the first close brace ends the variable substitution.
2791 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2792
2793 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2794
2795 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2796
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2798 $as_echo_n "checking whether build environment is sane... " >&6; }
2799 # Reject unsafe characters in $srcdir or the absolute working directory
2800 # name.  Accept space and tab only in the latter.
2801 am_lf='
2802 '
2803 case `pwd` in
2804   *[\\\"\#\$\&\'\`$am_lf]*)
2805     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2806 esac
2807 case $srcdir in
2808   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2809     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2810 esac
2811
2812 # Do 'set' in a subshell so we don't clobber the current shell's
2813 # arguments.  Must try -L first in case configure is actually a
2814 # symlink; some systems play weird games with the mod time of symlinks
2815 # (eg FreeBSD returns the mod time of the symlink's containing
2816 # directory).
2817 if (
2818    am_has_slept=no
2819    for am_try in 1 2; do
2820      echo "timestamp, slept: $am_has_slept" > conftest.file
2821      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2822      if test "$*" = "X"; then
2823         # -L didn't work.
2824         set X `ls -t "$srcdir/configure" conftest.file`
2825      fi
2826      if test "$*" != "X $srcdir/configure conftest.file" \
2827         && test "$*" != "X conftest.file $srcdir/configure"; then
2828
2829         # If neither matched, then we have a broken ls.  This can happen
2830         # if, for instance, CONFIG_SHELL is bash and it inherits a
2831         # broken ls alias from the environment.  This has actually
2832         # happened.  Such a system could not be considered "sane".
2833         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2834   alias in your environment" "$LINENO" 5
2835      fi
2836      if test "$2" = conftest.file || test $am_try -eq 2; then
2837        break
2838      fi
2839      # Just in case.
2840      sleep 1
2841      am_has_slept=yes
2842    done
2843    test "$2" = conftest.file
2844    )
2845 then
2846    # Ok.
2847    :
2848 else
2849    as_fn_error $? "newly created file is older than distributed files!
2850 Check your system clock" "$LINENO" 5
2851 fi
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 $as_echo "yes" >&6; }
2854 # If we didn't sleep, we still need to ensure time stamps of config.status and
2855 # generated files are strictly newer.
2856 am_sleep_pid=
2857 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2858   ( sleep 1 ) &
2859   am_sleep_pid=$!
2860 fi
2861
2862 rm -f conftest.file
2863
2864 test "$program_prefix" != NONE &&
2865   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2866 # Use a double $ so make ignores it.
2867 test "$program_suffix" != NONE &&
2868   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2869 # Double any \ or $.
2870 # By default was `s,x,x', remove it if useless.
2871 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2872 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2873
2874 # Expand $ac_aux_dir to an absolute path.
2875 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2876
2877 if test x"${MISSING+set}" != xset; then
2878   case $am_aux_dir in
2879   *\ * | *\     *)
2880     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2881   *)
2882     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2883   esac
2884 fi
2885 # Use eval to expand $SHELL
2886 if eval "$MISSING --is-lightweight"; then
2887   am_missing_run="$MISSING "
2888 else
2889   am_missing_run=
2890   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2891 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2892 fi
2893
2894 if test x"${install_sh+set}" != xset; then
2895   case $am_aux_dir in
2896   *\ * | *\     *)
2897     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2898   *)
2899     install_sh="\${SHELL} $am_aux_dir/install-sh"
2900   esac
2901 fi
2902
2903 # Installed binaries are usually stripped using 'strip' when the user
2904 # run "make install-strip".  However 'strip' might not be the right
2905 # tool to use in cross-compilation environments, therefore Automake
2906 # will honor the 'STRIP' environment variable to overrule this program.
2907 if test "$cross_compiling" != no; then
2908   if test -n "$ac_tool_prefix"; then
2909   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}strip; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_STRIP+:} false; then :
2914   $as_echo_n "(cached) " >&6
2915 else
2916   if test -n "$STRIP"; then
2917   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924     for ac_exec_ext in '' $ac_executable_extensions; do
2925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931   done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 STRIP=$ac_cv_prog_STRIP
2937 if test -n "$STRIP"; then
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2939 $as_echo "$STRIP" >&6; }
2940 else
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 fi
2947 if test -z "$ac_cv_prog_STRIP"; then
2948   ac_ct_STRIP=$STRIP
2949   # Extract the first word of "strip", so it can be a program name with args.
2950 set dummy strip; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2954   $as_echo_n "(cached) " >&6
2955 else
2956   if test -n "$ac_ct_STRIP"; then
2957   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962   IFS=$as_save_IFS
2963   test -z "$as_dir" && as_dir=.
2964     for ac_exec_ext in '' $ac_executable_extensions; do
2965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966     ac_cv_prog_ac_ct_STRIP="strip"
2967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968     break 2
2969   fi
2970 done
2971   done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2977 if test -n "$ac_ct_STRIP"; then
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2979 $as_echo "$ac_ct_STRIP" >&6; }
2980 else
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985   if test "x$ac_ct_STRIP" = x; then
2986     STRIP=":"
2987   else
2988     case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
2993 esac
2994     STRIP=$ac_ct_STRIP
2995   fi
2996 else
2997   STRIP="$ac_cv_prog_STRIP"
2998 fi
2999
3000 fi
3001 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3004 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3005 if test -z "$MKDIR_P"; then
3006   if ${ac_cv_path_mkdir+:} false; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3011 do
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014     for ac_prog in mkdir gmkdir; do
3015          for ac_exec_ext in '' $ac_executable_extensions; do
3016            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3017            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3018              'mkdir (GNU coreutils) '* | \
3019              'mkdir (coreutils) '* | \
3020              'mkdir (fileutils) '4.1*)
3021                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3022                break 3;;
3023            esac
3024          done
3025        done
3026   done
3027 IFS=$as_save_IFS
3028
3029 fi
3030
3031   test -d ./--version && rmdir ./--version
3032   if test "${ac_cv_path_mkdir+set}" = set; then
3033     MKDIR_P="$ac_cv_path_mkdir -p"
3034   else
3035     # As a last resort, use the slow shell script.  Don't cache a
3036     # value for MKDIR_P within a source directory, because that will
3037     # break other packages using the cache if that directory is
3038     # removed, or if the value is a relative name.
3039     MKDIR_P="$ac_install_sh -d"
3040   fi
3041 fi
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3043 $as_echo "$MKDIR_P" >&6; }
3044
3045 for ac_prog in gawk mawk nawk awk
3046 do
3047   # Extract the first word of "$ac_prog", so it can be a program name with args.
3048 set dummy $ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_AWK+:} false; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   if test -n "$AWK"; then
3055   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     for ac_exec_ext in '' $ac_executable_extensions; do
3063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064     ac_cv_prog_AWK="$ac_prog"
3065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069   done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 AWK=$ac_cv_prog_AWK
3075 if test -n "$AWK"; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3077 $as_echo "$AWK" >&6; }
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084   test -n "$AWK" && break
3085 done
3086
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3088 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3089 set x ${MAKE-make}
3090 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3091 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   cat >conftest.make <<\_ACEOF
3095 SHELL = /bin/sh
3096 all:
3097         @echo '@@@%%%=$(MAKE)=@@@%%%'
3098 _ACEOF
3099 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3100 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3101   *@@@%%%=?*=@@@%%%*)
3102     eval ac_cv_prog_make_${ac_make}_set=yes;;
3103   *)
3104     eval ac_cv_prog_make_${ac_make}_set=no;;
3105 esac
3106 rm -f conftest.make
3107 fi
3108 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3111   SET_MAKE=
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115   SET_MAKE="MAKE=${MAKE-make}"
3116 fi
3117
3118 rm -rf .tst 2>/dev/null
3119 mkdir .tst 2>/dev/null
3120 if test -d .tst; then
3121   am__leading_dot=.
3122 else
3123   am__leading_dot=_
3124 fi
3125 rmdir .tst 2>/dev/null
3126
3127 # Check whether --enable-silent-rules was given.
3128 if test "${enable_silent_rules+set}" = set; then :
3129   enableval=$enable_silent_rules;
3130 fi
3131
3132 case $enable_silent_rules in # (((
3133   yes) AM_DEFAULT_VERBOSITY=0;;
3134    no) AM_DEFAULT_VERBOSITY=1;;
3135     *) AM_DEFAULT_VERBOSITY=1;;
3136 esac
3137 am_make=${MAKE-make}
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3139 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3140 if ${am_cv_make_support_nested_variables+:} false; then :
3141   $as_echo_n "(cached) " >&6
3142 else
3143   if $as_echo 'TRUE=$(BAR$(V))
3144 BAR0=false
3145 BAR1=true
3146 V=1
3147 am__doit:
3148         @$(TRUE)
3149 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3150   am_cv_make_support_nested_variables=yes
3151 else
3152   am_cv_make_support_nested_variables=no
3153 fi
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3156 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3157 if test $am_cv_make_support_nested_variables = yes; then
3158     AM_V='$(V)'
3159   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3160 else
3161   AM_V=$AM_DEFAULT_VERBOSITY
3162   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3163 fi
3164 AM_BACKSLASH='\'
3165
3166 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3167   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3168   # is not polluted with repeated "-I."
3169   am__isrc=' -I$(srcdir)'
3170   # test to see if srcdir already configured
3171   if test -f $srcdir/config.status; then
3172     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3173   fi
3174 fi
3175
3176 # test whether we have cygpath
3177 if test -z "$CYGPATH_W"; then
3178   if (cygpath --version) >/dev/null 2>/dev/null; then
3179     CYGPATH_W='cygpath -w'
3180   else
3181     CYGPATH_W=echo
3182   fi
3183 fi
3184
3185
3186 # Define the identity of the package.
3187  PACKAGE='libasprintf'
3188  VERSION='1.0'
3189
3190
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE "$PACKAGE"
3193 _ACEOF
3194
3195
3196 cat >>confdefs.h <<_ACEOF
3197 #define VERSION "$VERSION"
3198 _ACEOF
3199
3200 # Some tools Automake needs.
3201
3202 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3203
3204
3205 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3206
3207
3208 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3209
3210
3211 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3212
3213
3214 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3215
3216 # For better backward compatibility.  To be removed once Automake 1.9.x
3217 # dies out for good.  For more background, see:
3218 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3219 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3220 mkdir_p='$(MKDIR_P)'
3221
3222 # We need awk for the "check" target (and possibly the TAP driver).  The
3223 # system "awk" is bad on some platforms.
3224 # Always define AMTAR for backward compatibility.  Yes, it's still used
3225 # in the wild :-(  We should find a proper way to deprecate it ...
3226 AMTAR='$${TAR-tar}'
3227
3228
3229 # We'll loop over all known methods to create a tar archive until one works.
3230 _am_tools='gnutar  pax cpio none'
3231
3232 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3233
3234
3235
3236
3237
3238
3239 # POSIX will say in a future version that running "rm -f" with no argument
3240 # is OK; and we want to be able to make that assumption in our Makefile
3241 # recipes.  So use an aggressive probe to check that the usage we want is
3242 # actually supported "in the wild" to an acceptable degree.
3243 # See automake bug#10828.
3244 # To make any issue more visible, cause the running configure to be aborted
3245 # by default if the 'rm' program in use doesn't match our expectations; the
3246 # user can still override this though.
3247 if rm -f && rm -fr && rm -rf; then : OK; else
3248   cat >&2 <<'END'
3249 Oops!
3250
3251 Your 'rm' program seems unable to run without file operands specified
3252 on the command line, even when the '-f' option is present.  This is contrary
3253 to the behaviour of most rm programs out there, and not conforming with
3254 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3255
3256 Please tell bug-automake@gnu.org about your system, including the value
3257 of your $PATH and any error possibly output before this message.  This
3258 can help us improve future automake versions.
3259
3260 END
3261   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3262     echo 'Configuration will proceed anyway, since you have set the' >&2
3263     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3264     echo >&2
3265   else
3266     cat >&2 <<'END'
3267 Aborting the configuration process, to ensure you take notice of the issue.
3268
3269 You can download and install GNU coreutils to get an 'rm' implementation
3270 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3271
3272 If you want to complete the configuration process using your problematic
3273 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3274 to "yes", and re-run configure.
3275
3276 END
3277     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3278   fi
3279 fi
3280
3281 ac_config_headers="$ac_config_headers config.h"
3282
3283
3284 ac_ext=c
3285 ac_cpp='$CPP $CPPFLAGS'
3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289 if test -n "$ac_tool_prefix"; then
3290   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_CC+:} false; then :
3295   $as_echo_n "(cached) " >&6
3296 else
3297   if test -n "$CC"; then
3298   ac_cv_prog_CC="$CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305     for ac_exec_ext in '' $ac_executable_extensions; do
3306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309     break 2
3310   fi
3311 done
3312   done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 fi
3328 if test -z "$ac_cv_prog_CC"; then
3329   ac_ct_CC=$CC
3330   # Extract the first word of "gcc", so it can be a program name with args.
3331 set dummy gcc; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   if test -n "$ac_ct_CC"; then
3338   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345     for ac_exec_ext in '' $ac_executable_extensions; do
3346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347     ac_cv_prog_ac_ct_CC="gcc"
3348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352   done
3353 IFS=$as_save_IFS
3354
3355 fi
3356 fi
3357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358 if test -n "$ac_ct_CC"; then
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3360 $as_echo "$ac_ct_CC" >&6; }
3361 else
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366   if test "x$ac_ct_CC" = x; then
3367     CC=""
3368   else
3369     case $cross_compiling:$ac_tool_warned in
3370 yes:)
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373 ac_tool_warned=yes ;;
3374 esac
3375     CC=$ac_ct_CC
3376   fi
3377 else
3378   CC="$ac_cv_prog_CC"
3379 fi
3380
3381 if test -z "$CC"; then
3382           if test -n "$ac_tool_prefix"; then
3383     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3384 set dummy ${ac_tool_prefix}cc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_CC+:} false; then :
3388   $as_echo_n "(cached) " >&6
3389 else
3390   if test -n "$CC"; then
3391   ac_cv_prog_CC="$CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396   IFS=$as_save_IFS
3397   test -z "$as_dir" && as_dir=.
3398     for ac_exec_ext in '' $ac_executable_extensions; do
3399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400     ac_cv_prog_CC="${ac_tool_prefix}cc"
3401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402     break 2
3403   fi
3404 done
3405   done
3406 IFS=$as_save_IFS
3407
3408 fi
3409 fi
3410 CC=$ac_cv_prog_CC
3411 if test -n "$CC"; then
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413 $as_echo "$CC" >&6; }
3414 else
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419
3420   fi
3421 fi
3422 if test -z "$CC"; then
3423   # Extract the first word of "cc", so it can be a program name with args.
3424 set dummy cc; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_prog_CC+:} false; then :
3428   $as_echo_n "(cached) " >&6
3429 else
3430   if test -n "$CC"; then
3431   ac_cv_prog_CC="$CC" # Let the user override the test.
3432 else
3433   ac_prog_rejected=no
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437   IFS=$as_save_IFS
3438   test -z "$as_dir" && as_dir=.
3439     for ac_exec_ext in '' $ac_executable_extensions; do
3440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3442        ac_prog_rejected=yes
3443        continue
3444      fi
3445     ac_cv_prog_CC="cc"
3446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447     break 2
3448   fi
3449 done
3450   done
3451 IFS=$as_save_IFS
3452
3453 if test $ac_prog_rejected = yes; then
3454   # We found a bogon in the path, so make sure we never use it.
3455   set dummy $ac_cv_prog_CC
3456   shift
3457   if test $# != 0; then
3458     # We chose a different compiler from the bogus one.
3459     # However, it has the same basename, so the bogon will be chosen
3460     # first if we set CC to just the basename; use the full file name.
3461     shift
3462     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3463   fi
3464 fi
3465 fi
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3471 else
3472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 fi
3475
3476
3477 fi
3478 if test -z "$CC"; then
3479   if test -n "$ac_tool_prefix"; then
3480   for ac_prog in cl.exe
3481   do
3482     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_CC+:} false; then :
3487   $as_echo_n "(cached) " >&6
3488 else
3489   if test -n "$CC"; then
3490   ac_cv_prog_CC="$CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495   IFS=$as_save_IFS
3496   test -z "$as_dir" && as_dir=.
3497     for ac_exec_ext in '' $ac_executable_extensions; do
3498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501     break 2
3502   fi
3503 done
3504   done
3505 IFS=$as_save_IFS
3506
3507 fi
3508 fi
3509 CC=$ac_cv_prog_CC
3510 if test -n "$CC"; then
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 $as_echo "$CC" >&6; }
3513 else
3514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3516 fi
3517
3518
3519     test -n "$CC" && break
3520   done
3521 fi
3522 if test -z "$CC"; then
3523   ac_ct_CC=$CC
3524   for ac_prog in cl.exe
3525 do
3526   # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   if test -n "$ac_ct_CC"; then
3534   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541     for ac_exec_ext in '' $ac_executable_extensions; do
3542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543     ac_cv_prog_ac_ct_CC="$ac_prog"
3544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548   done
3549 IFS=$as_save_IFS
3550
3551 fi
3552 fi
3553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554 if test -n "$ac_ct_CC"; then
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556 $as_echo "$ac_ct_CC" >&6; }
3557 else
3558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 fi
3561
3562
3563   test -n "$ac_ct_CC" && break
3564 done
3565
3566   if test "x$ac_ct_CC" = x; then
3567     CC=""
3568   else
3569     case $cross_compiling:$ac_tool_warned in
3570 yes:)
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3574 esac
3575     CC=$ac_ct_CC
3576   fi
3577 fi
3578
3579 fi
3580
3581
3582 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "no acceptable C compiler found in \$PATH
3585 See \`config.log' for more details" "$LINENO" 5; }
3586
3587 # Provide some information about the compiler.
3588 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3589 set X $ac_compile
3590 ac_compiler=$2
3591 for ac_option in --version -v -V -qversion; do
3592   { { ac_try="$ac_compiler $ac_option >&5"
3593 case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3600   ac_status=$?
3601   if test -s conftest.err; then
3602     sed '10a\
3603 ... rest of stderr output deleted ...
3604          10q' conftest.err >conftest.er1
3605     cat conftest.er1 >&5
3606   fi
3607   rm -f conftest.er1 conftest.err
3608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609   test $ac_status = 0; }
3610 done
3611
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h.  */
3614
3615 int
3616 main ()
3617 {
3618
3619   ;
3620   return 0;
3621 }
3622 _ACEOF
3623 ac_clean_files_save=$ac_clean_files
3624 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3625 # Try to create an executable without -o first, disregard a.out.
3626 # It will help us diagnose broken compilers, and finding out an intuition
3627 # of exeext.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3629 $as_echo_n "checking whether the C compiler works... " >&6; }
3630 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3631
3632 # The possible output files:
3633 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3634
3635 ac_rmfiles=
3636 for ac_file in $ac_files
3637 do
3638   case $ac_file in
3639     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3641   esac
3642 done
3643 rm -f $ac_rmfiles
3644
3645 if { { ac_try="$ac_link_default"
3646 case "(($ac_try" in
3647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648   *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652   (eval "$ac_link_default") 2>&5
3653   ac_status=$?
3654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655   test $ac_status = 0; }; then :
3656   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3657 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3658 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3659 # so that the user can short-circuit this test for compilers unknown to
3660 # Autoconf.
3661 for ac_file in $ac_files ''
3662 do
3663   test -f "$ac_file" || continue
3664   case $ac_file in
3665     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3666         ;;
3667     [ab].out )
3668         # We found the default executable, but exeext='' is most
3669         # certainly right.
3670         break;;
3671     *.* )
3672         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3673         then :; else
3674            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3675         fi
3676         # We set ac_cv_exeext here because the later test for it is not
3677         # safe: cross compilers may not add the suffix if given an `-o'
3678         # argument, so we may need to know it at that point already.
3679         # Even if this section looks crufty: it has the advantage of
3680         # actually working.
3681         break;;
3682     * )
3683         break;;
3684   esac
3685 done
3686 test "$ac_cv_exeext" = no && ac_cv_exeext=
3687
3688 else
3689   ac_file=''
3690 fi
3691 if test -z "$ac_file"; then :
3692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 as_fn_error 77 "C compiler cannot create executables
3700 See \`config.log' for more details" "$LINENO" 5; }
3701 else
3702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3706 $as_echo_n "checking for C compiler default output file name... " >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3708 $as_echo "$ac_file" >&6; }
3709 ac_exeext=$ac_cv_exeext
3710
3711 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3712 ac_clean_files=$ac_clean_files_save
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3714 $as_echo_n "checking for suffix of executables... " >&6; }
3715 if { { ac_try="$ac_link"
3716 case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722   (eval "$ac_link") 2>&5
3723   ac_status=$?
3724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725   test $ac_status = 0; }; then :
3726   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3727 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3728 # work properly (i.e., refer to `conftest.exe'), while it won't with
3729 # `rm'.
3730 for ac_file in conftest.exe conftest conftest.*; do
3731   test -f "$ac_file" || continue
3732   case $ac_file in
3733     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3734     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3735           break;;
3736     * ) break;;
3737   esac
3738 done
3739 else
3740   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3743 See \`config.log' for more details" "$LINENO" 5; }
3744 fi
3745 rm -f conftest conftest$ac_cv_exeext
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3747 $as_echo "$ac_cv_exeext" >&6; }
3748
3749 rm -f conftest.$ac_ext
3750 EXEEXT=$ac_cv_exeext
3751 ac_exeext=$EXEEXT
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h.  */
3754 #include <stdio.h>
3755 int
3756 main ()
3757 {
3758 FILE *f = fopen ("conftest.out", "w");
3759  return ferror (f) || fclose (f) != 0;
3760
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 ac_clean_files="$ac_clean_files conftest.out"
3766 # Check that the compiler produces executables we can run.  If not, either
3767 # the compiler is broken, or we cross compile.
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3769 $as_echo_n "checking whether we are cross compiling... " >&6; }
3770 if test "$cross_compiling" != yes; then
3771   { { ac_try="$ac_link"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778   (eval "$ac_link") 2>&5
3779   ac_status=$?
3780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781   test $ac_status = 0; }
3782   if { ac_try='./conftest$ac_cv_exeext'
3783   { { case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789   (eval "$ac_try") 2>&5
3790   ac_status=$?
3791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792   test $ac_status = 0; }; }; then
3793     cross_compiling=no
3794   else
3795     if test "$cross_compiling" = maybe; then
3796         cross_compiling=yes
3797     else
3798         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error $? "cannot run C compiled programs.
3801 If you meant to cross compile, use \`--host'.
3802 See \`config.log' for more details" "$LINENO" 5; }
3803     fi
3804   fi
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3807 $as_echo "$cross_compiling" >&6; }
3808
3809 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3810 ac_clean_files=$ac_clean_files_save
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3812 $as_echo_n "checking for suffix of object files... " >&6; }
3813 if ${ac_cv_objext+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818
3819 int
3820 main ()
3821 {
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 rm -f conftest.o conftest.obj
3828 if { { ac_try="$ac_compile"
3829 case "(($ac_try" in
3830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831   *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835   (eval "$ac_compile") 2>&5
3836   ac_status=$?
3837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838   test $ac_status = 0; }; then :
3839   for ac_file in conftest.o conftest.obj conftest.*; do
3840   test -f "$ac_file" || continue;
3841   case $ac_file in
3842     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3843     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3844        break;;
3845   esac
3846 done
3847 else
3848   $as_echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error $? "cannot compute suffix of object files: cannot compile
3854 See \`config.log' for more details" "$LINENO" 5; }
3855 fi
3856 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3859 $as_echo "$ac_cv_objext" >&6; }
3860 OBJEXT=$ac_cv_objext
3861 ac_objext=$OBJEXT
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3863 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3864 if ${ac_cv_c_compiler_gnu+:} false; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h.  */
3869
3870 int
3871 main ()
3872 {
3873 #ifndef __GNUC__
3874        choke me
3875 #endif
3876
3877   ;
3878   return 0;
3879 }
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882   ac_compiler_gnu=yes
3883 else
3884   ac_compiler_gnu=no
3885 fi
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3888
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3891 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3892 if test $ac_compiler_gnu = yes; then
3893   GCC=yes
3894 else
3895   GCC=
3896 fi
3897 ac_test_CFLAGS=${CFLAGS+set}
3898 ac_save_CFLAGS=$CFLAGS
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3900 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3901 if ${ac_cv_prog_cc_g+:} false; then :
3902   $as_echo_n "(cached) " >&6
3903 else
3904   ac_save_c_werror_flag=$ac_c_werror_flag
3905    ac_c_werror_flag=yes
3906    ac_cv_prog_cc_g=no
3907    CFLAGS="-g"
3908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920   ac_cv_prog_cc_g=yes
3921 else
3922   CFLAGS=""
3923       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h.  */
3925
3926 int
3927 main ()
3928 {
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 if ac_fn_c_try_compile "$LINENO"; then :
3935
3936 else
3937   ac_c_werror_flag=$ac_save_c_werror_flag
3938          CFLAGS="-g"
3939          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h.  */
3941
3942 int
3943 main ()
3944 {
3945
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 if ac_fn_c_try_compile "$LINENO"; then :
3951   ac_cv_prog_cc_g=yes
3952 fi
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 fi
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958    ac_c_werror_flag=$ac_save_c_werror_flag
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3961 $as_echo "$ac_cv_prog_cc_g" >&6; }
3962 if test "$ac_test_CFLAGS" = set; then
3963   CFLAGS=$ac_save_CFLAGS
3964 elif test $ac_cv_prog_cc_g = yes; then
3965   if test "$GCC" = yes; then
3966     CFLAGS="-g -O2"
3967   else
3968     CFLAGS="-g"
3969   fi
3970 else
3971   if test "$GCC" = yes; then
3972     CFLAGS="-O2"
3973   else
3974     CFLAGS=
3975   fi
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3978 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3979 if ${ac_cv_prog_cc_c89+:} false; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   ac_cv_prog_cc_c89=no
3983 ac_save_CC=$CC
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h.  */
3986 #include <stdarg.h>
3987 #include <stdio.h>
3988 struct stat;
3989 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3990 struct buf { int x; };
3991 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3992 static char *e (p, i)
3993      char **p;
3994      int i;
3995 {
3996   return p[i];
3997 }
3998 static char *f (char * (*g) (char **, int), char **p, ...)
3999 {
4000   char *s;
4001   va_list v;
4002   va_start (v,p);
4003   s = g (p, va_arg (v,int));
4004   va_end (v);
4005   return s;
4006 }
4007
4008 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4009    function prototypes and stuff, but not '\xHH' hex character constants.
4010    These don't provoke an error unfortunately, instead are silently treated
4011    as 'x'.  The following induces an error, until -std is added to get
4012    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4013    array size at least.  It's necessary to write '\x00'==0 to get something
4014    that's true only with -std.  */
4015 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4016
4017 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4018    inside strings and character constants.  */
4019 #define FOO(x) 'x'
4020 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4021
4022 int test (int i, double x);
4023 struct s1 {int (*f) (int a);};
4024 struct s2 {int (*f) (double a);};
4025 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4026 int argc;
4027 char **argv;
4028 int
4029 main ()
4030 {
4031 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4037         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4038 do
4039   CC="$ac_save_CC $ac_arg"
4040   if ac_fn_c_try_compile "$LINENO"; then :
4041   ac_cv_prog_cc_c89=$ac_arg
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext
4044   test "x$ac_cv_prog_cc_c89" != "xno" && break
4045 done
4046 rm -f conftest.$ac_ext
4047 CC=$ac_save_CC
4048
4049 fi
4050 # AC_CACHE_VAL
4051 case "x$ac_cv_prog_cc_c89" in
4052   x)
4053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4054 $as_echo "none needed" >&6; } ;;
4055   xno)
4056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4057 $as_echo "unsupported" >&6; } ;;
4058   *)
4059     CC="$CC $ac_cv_prog_cc_c89"
4060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4061 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4062 esac
4063 if test "x$ac_cv_prog_cc_c89" != xno; then :
4064
4065 fi
4066
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072
4073 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4079 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4080 if ${am_cv_prog_cc_c_o+:} false; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h.  */
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094   # Make sure it works both with $CC and with simple cc.
4095   # Following AC_PROG_CC_C_O, we do the test twice because some
4096   # compilers refuse to overwrite an existing .o file with -o,
4097   # though they will create one.
4098   am_cv_prog_cc_c_o=yes
4099   for am_i in 1 2; do
4100     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4101    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4102    ac_status=$?
4103    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104    (exit $ac_status); } \
4105          && test -f conftest2.$ac_objext; then
4106       : OK
4107     else
4108       am_cv_prog_cc_c_o=no
4109       break
4110     fi
4111   done
4112   rm -f core conftest*
4113   unset am_i
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4116 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4117 if test "$am_cv_prog_cc_c_o" != yes; then
4118    # Losing compiler, so override with the script.
4119    # FIXME: It is wrong to rewrite CC.
4120    # But if we don't then we get into trouble of one sort or another.
4121    # A longer-term fix would be to have automake use am__CC in this case,
4122    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4123    CC="$am_aux_dir/compile $CC"
4124 fi
4125 ac_ext=c
4126 ac_cpp='$CPP $CPPFLAGS'
4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131 DEPDIR="${am__leading_dot}deps"
4132
4133 ac_config_commands="$ac_config_commands depfiles"
4134
4135
4136 am_make=${MAKE-make}
4137 cat > confinc << 'END'
4138 am__doit:
4139         @echo this is the am__doit target
4140 .PHONY: am__doit
4141 END
4142 # If we don't find an include directive, just comment out the code.
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4144 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4145 am__include="#"
4146 am__quote=
4147 _am_result=none
4148 # First try GNU make style include.
4149 echo "include confinc" > confmf
4150 # Ignore all kinds of additional output from 'make'.
4151 case `$am_make -s -f confmf 2> /dev/null` in #(
4152 *the\ am__doit\ target*)
4153   am__include=include
4154   am__quote=
4155   _am_result=GNU
4156   ;;
4157 esac
4158 # Now try BSD make style include.
4159 if test "$am__include" = "#"; then
4160    echo '.include "confinc"' > confmf
4161    case `$am_make -s -f confmf 2> /dev/null` in #(
4162    *the\ am__doit\ target*)
4163      am__include=.include
4164      am__quote="\""
4165      _am_result=BSD
4166      ;;
4167    esac
4168 fi
4169
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4172 $as_echo "$_am_result" >&6; }
4173 rm -f confinc confmf
4174
4175 # Check whether --enable-dependency-tracking was given.
4176 if test "${enable_dependency_tracking+set}" = set; then :
4177   enableval=$enable_dependency_tracking;
4178 fi
4179
4180 if test "x$enable_dependency_tracking" != xno; then
4181   am_depcomp="$ac_aux_dir/depcomp"
4182   AMDEPBACKSLASH='\'
4183   am__nodep='_no'
4184 fi
4185  if test "x$enable_dependency_tracking" != xno; then
4186   AMDEP_TRUE=
4187   AMDEP_FALSE='#'
4188 else
4189   AMDEP_TRUE='#'
4190   AMDEP_FALSE=
4191 fi
4192
4193
4194
4195 depcc="$CC"   am_compiler_list=
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4198 $as_echo_n "checking dependency style of $depcc... " >&6; }
4199 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4200   $as_echo_n "(cached) " >&6
4201 else
4202   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4203   # We make a subdir and do the tests there.  Otherwise we can end up
4204   # making bogus files that we don't know about and never remove.  For
4205   # instance it was reported that on HP-UX the gcc test will end up
4206   # making a dummy file named 'D' -- because '-MD' means "put the output
4207   # in D".
4208   rm -rf conftest.dir
4209   mkdir conftest.dir
4210   # Copy depcomp to subdir because otherwise we won't find it if we're
4211   # using a relative directory.
4212   cp "$am_depcomp" conftest.dir
4213   cd conftest.dir
4214   # We will build objects and dependencies in a subdirectory because
4215   # it helps to detect inapplicable dependency modes.  For instance
4216   # both Tru64's cc and ICC support -MD to output dependencies as a
4217   # side effect of compilation, but ICC will put the dependencies in
4218   # the current directory while Tru64 will put them in the object
4219   # directory.
4220   mkdir sub
4221
4222   am_cv_CC_dependencies_compiler_type=none
4223   if test "$am_compiler_list" = ""; then
4224      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4225   fi
4226   am__universal=false
4227   case " $depcc " in #(
4228      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4229      esac
4230
4231   for depmode in $am_compiler_list; do
4232     # Setup a source with many dependencies, because some compilers
4233     # like to wrap large dependency lists on column 80 (with \), and
4234     # we should not choose a depcomp mode which is confused by this.
4235     #
4236     # We need to recreate these files for each test, as the compiler may
4237     # overwrite some of them when testing with obscure command lines.
4238     # This happens at least with the AIX C compiler.
4239     : > sub/conftest.c
4240     for i in 1 2 3 4 5 6; do
4241       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4242       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4243       # Solaris 10 /bin/sh.
4244       echo '/* dummy */' > sub/conftst$i.h
4245     done
4246     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4247
4248     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4249     # mode.  It turns out that the SunPro C++ compiler does not properly
4250     # handle '-M -o', and we need to detect this.  Also, some Intel
4251     # versions had trouble with output in subdirs.
4252     am__obj=sub/conftest.${OBJEXT-o}
4253     am__minus_obj="-o $am__obj"
4254     case $depmode in
4255     gcc)
4256       # This depmode causes a compiler race in universal mode.
4257       test "$am__universal" = false || continue
4258       ;;
4259     nosideeffect)
4260       # After this tag, mechanisms are not by side-effect, so they'll
4261       # only be used when explicitly requested.
4262       if test "x$enable_dependency_tracking" = xyes; then
4263         continue
4264       else
4265         break
4266       fi
4267       ;;
4268     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4269       # This compiler won't grok '-c -o', but also, the minuso test has
4270       # not run yet.  These depmodes are late enough in the game, and
4271       # so weak that their functioning should not be impacted.
4272       am__obj=conftest.${OBJEXT-o}
4273       am__minus_obj=
4274       ;;
4275     none) break ;;
4276     esac
4277     if depmode=$depmode \
4278        source=sub/conftest.c object=$am__obj \
4279        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4280        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4281          >/dev/null 2>conftest.err &&
4282        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4283        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4284        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4285        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4286       # icc doesn't choke on unknown options, it will just issue warnings
4287       # or remarks (even with -Werror).  So we grep stderr for any message
4288       # that says an option was ignored or not supported.
4289       # When given -MP, icc 7.0 and 7.1 complain thusly:
4290       #   icc: Command line warning: ignoring option '-M'; no argument required
4291       # The diagnosis changed in icc 8.0:
4292       #   icc: Command line remark: option '-MP' not supported
4293       if (grep 'ignoring option' conftest.err ||
4294           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4295         am_cv_CC_dependencies_compiler_type=$depmode
4296         break
4297       fi
4298     fi
4299   done
4300
4301   cd ..
4302   rm -rf conftest.dir
4303 else
4304   am_cv_CC_dependencies_compiler_type=none
4305 fi
4306
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4309 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4310 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4311
4312  if
4313   test "x$enable_dependency_tracking" != xno \
4314   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4315   am__fastdepCC_TRUE=
4316   am__fastdepCC_FALSE='#'
4317 else
4318   am__fastdepCC_TRUE='#'
4319   am__fastdepCC_FALSE=
4320 fi
4321
4322
4323 ac_ext=cpp
4324 ac_cpp='$CXXCPP $CPPFLAGS'
4325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4328 if test -z "$CXX"; then
4329   if test -n "$CCC"; then
4330     CXX=$CCC
4331   else
4332     if test -n "$ac_tool_prefix"; then
4333   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4334   do
4335     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CXX+:} false; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   if test -n "$CXX"; then
4343   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350     for ac_exec_ext in '' $ac_executable_extensions; do
4351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354     break 2
4355   fi
4356 done
4357   done
4358 IFS=$as_save_IFS
4359
4360 fi
4361 fi
4362 CXX=$ac_cv_prog_CXX
4363 if test -n "$CXX"; then
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4365 $as_echo "$CXX" >&6; }
4366 else
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369 fi
4370
4371
4372     test -n "$CXX" && break
4373   done
4374 fi
4375 if test -z "$CXX"; then
4376   ac_ct_CXX=$CXX
4377   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4378 do
4379   # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy $ac_prog; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386   if test -n "$ac_ct_CXX"; then
4387   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394     for ac_exec_ext in '' $ac_executable_extensions; do
4395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396     ac_cv_prog_ac_ct_CXX="$ac_prog"
4397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398     break 2
4399   fi
4400 done
4401   done
4402 IFS=$as_save_IFS
4403
4404 fi
4405 fi
4406 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4407 if test -n "$ac_ct_CXX"; then
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4409 $as_echo "$ac_ct_CXX" >&6; }
4410 else
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4414
4415
4416   test -n "$ac_ct_CXX" && break
4417 done
4418
4419   if test "x$ac_ct_CXX" = x; then
4420     CXX="g++"
4421   else
4422     case $cross_compiling:$ac_tool_warned in
4423 yes:)
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4426 ac_tool_warned=yes ;;
4427 esac
4428     CXX=$ac_ct_CXX
4429   fi
4430 fi
4431
4432   fi
4433 fi
4434 # Provide some information about the compiler.
4435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4436 set X $ac_compile
4437 ac_compiler=$2
4438 for ac_option in --version -v -V -qversion; do
4439   { { ac_try="$ac_compiler $ac_option >&5"
4440 case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4447   ac_status=$?
4448   if test -s conftest.err; then
4449     sed '10a\
4450 ... rest of stderr output deleted ...
4451          10q' conftest.err >conftest.er1
4452     cat conftest.er1 >&5
4453   fi
4454   rm -f conftest.er1 conftest.err
4455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456   test $ac_status = 0; }
4457 done
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4460 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4461 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h.  */
4466
4467 int
4468 main ()
4469 {
4470 #ifndef __GNUC__
4471        choke me
4472 #endif
4473
4474   ;
4475   return 0;
4476 }
4477 _ACEOF
4478 if ac_fn_cxx_try_compile "$LINENO"; then :
4479   ac_compiler_gnu=yes
4480 else
4481   ac_compiler_gnu=no
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4485
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4488 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4489 if test $ac_compiler_gnu = yes; then
4490   GXX=yes
4491 else
4492   GXX=
4493 fi
4494 ac_test_CXXFLAGS=${CXXFLAGS+set}
4495 ac_save_CXXFLAGS=$CXXFLAGS
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4497 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4498 if ${ac_cv_prog_cxx_g+:} false; then :
4499   $as_echo_n "(cached) " >&6
4500 else
4501   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4502    ac_cxx_werror_flag=yes
4503    ac_cv_prog_cxx_g=no
4504    CXXFLAGS="-g"
4505    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507
4508 int
4509 main ()
4510 {
4511
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 if ac_fn_cxx_try_compile "$LINENO"; then :
4517   ac_cv_prog_cxx_g=yes
4518 else
4519   CXXFLAGS=""
4520       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h.  */
4522
4523 int
4524 main ()
4525 {
4526
4527   ;
4528   return 0;
4529 }
4530 _ACEOF
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4532
4533 else
4534   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4535          CXXFLAGS="-g"
4536          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h.  */
4538
4539 int
4540 main ()
4541 {
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 if ac_fn_cxx_try_compile "$LINENO"; then :
4548   ac_cv_prog_cxx_g=yes
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 fi
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4558 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4559 if test "$ac_test_CXXFLAGS" = set; then
4560   CXXFLAGS=$ac_save_CXXFLAGS
4561 elif test $ac_cv_prog_cxx_g = yes; then
4562   if test "$GXX" = yes; then
4563     CXXFLAGS="-g -O2"
4564   else
4565     CXXFLAGS="-g"
4566   fi
4567 else
4568   if test "$GXX" = yes; then
4569     CXXFLAGS="-O2"
4570   else
4571     CXXFLAGS=
4572   fi
4573 fi
4574 ac_ext=c
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579
4580 depcc="$CXX"  am_compiler_list=
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4583 $as_echo_n "checking dependency style of $depcc... " >&6; }
4584 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4585   $as_echo_n "(cached) " >&6
4586 else
4587   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4588   # We make a subdir and do the tests there.  Otherwise we can end up
4589   # making bogus files that we don't know about and never remove.  For
4590   # instance it was reported that on HP-UX the gcc test will end up
4591   # making a dummy file named 'D' -- because '-MD' means "put the output
4592   # in D".
4593   rm -rf conftest.dir
4594   mkdir conftest.dir
4595   # Copy depcomp to subdir because otherwise we won't find it if we're
4596   # using a relative directory.
4597   cp "$am_depcomp" conftest.dir
4598   cd conftest.dir
4599   # We will build objects and dependencies in a subdirectory because
4600   # it helps to detect inapplicable dependency modes.  For instance
4601   # both Tru64's cc and ICC support -MD to output dependencies as a
4602   # side effect of compilation, but ICC will put the dependencies in
4603   # the current directory while Tru64 will put them in the object
4604   # directory.
4605   mkdir sub
4606
4607   am_cv_CXX_dependencies_compiler_type=none
4608   if test "$am_compiler_list" = ""; then
4609      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4610   fi
4611   am__universal=false
4612   case " $depcc " in #(
4613      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4614      esac
4615
4616   for depmode in $am_compiler_list; do
4617     # Setup a source with many dependencies, because some compilers
4618     # like to wrap large dependency lists on column 80 (with \), and
4619     # we should not choose a depcomp mode which is confused by this.
4620     #
4621     # We need to recreate these files for each test, as the compiler may
4622     # overwrite some of them when testing with obscure command lines.
4623     # This happens at least with the AIX C compiler.
4624     : > sub/conftest.c
4625     for i in 1 2 3 4 5 6; do
4626       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4627       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4628       # Solaris 10 /bin/sh.
4629       echo '/* dummy */' > sub/conftst$i.h
4630     done
4631     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4632
4633     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4634     # mode.  It turns out that the SunPro C++ compiler does not properly
4635     # handle '-M -o', and we need to detect this.  Also, some Intel
4636     # versions had trouble with output in subdirs.
4637     am__obj=sub/conftest.${OBJEXT-o}
4638     am__minus_obj="-o $am__obj"
4639     case $depmode in
4640     gcc)
4641       # This depmode causes a compiler race in universal mode.
4642       test "$am__universal" = false || continue
4643       ;;
4644     nosideeffect)
4645       # After this tag, mechanisms are not by side-effect, so they'll
4646       # only be used when explicitly requested.
4647       if test "x$enable_dependency_tracking" = xyes; then
4648         continue
4649       else
4650         break
4651       fi
4652       ;;
4653     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4654       # This compiler won't grok '-c -o', but also, the minuso test has
4655       # not run yet.  These depmodes are late enough in the game, and
4656       # so weak that their functioning should not be impacted.
4657       am__obj=conftest.${OBJEXT-o}
4658       am__minus_obj=
4659       ;;
4660     none) break ;;
4661     esac
4662     if depmode=$depmode \
4663        source=sub/conftest.c object=$am__obj \
4664        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4665        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4666          >/dev/null 2>conftest.err &&
4667        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4668        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4669        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4670        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4671       # icc doesn't choke on unknown options, it will just issue warnings
4672       # or remarks (even with -Werror).  So we grep stderr for any message
4673       # that says an option was ignored or not supported.
4674       # When given -MP, icc 7.0 and 7.1 complain thusly:
4675       #   icc: Command line warning: ignoring option '-M'; no argument required
4676       # The diagnosis changed in icc 8.0:
4677       #   icc: Command line remark: option '-MP' not supported
4678       if (grep 'ignoring option' conftest.err ||
4679           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4680         am_cv_CXX_dependencies_compiler_type=$depmode
4681         break
4682       fi
4683     fi
4684   done
4685
4686   cd ..
4687   rm -rf conftest.dir
4688 else
4689   am_cv_CXX_dependencies_compiler_type=none
4690 fi
4691
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4694 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4695 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4696
4697  if
4698   test "x$enable_dependency_tracking" != xno \
4699   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4700   am__fastdepCXX_TRUE=
4701   am__fastdepCXX_FALSE='#'
4702 else
4703   am__fastdepCXX_TRUE='#'
4704   am__fastdepCXX_FALSE=
4705 fi
4706
4707
4708
4709
4710 # Make sure we can run config.sub.
4711 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4712   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4715 $as_echo_n "checking build system type... " >&6; }
4716 if ${ac_cv_build+:} false; then :
4717   $as_echo_n "(cached) " >&6
4718 else
4719   ac_build_alias=$build_alias
4720 test "x$ac_build_alias" = x &&
4721   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4722 test "x$ac_build_alias" = x &&
4723   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4724 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4725   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4726
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4729 $as_echo "$ac_cv_build" >&6; }
4730 case $ac_cv_build in
4731 *-*-*) ;;
4732 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4733 esac
4734 build=$ac_cv_build
4735 ac_save_IFS=$IFS; IFS='-'
4736 set x $ac_cv_build
4737 shift
4738 build_cpu=$1
4739 build_vendor=$2
4740 shift; shift
4741 # Remember, the first character of IFS is used to create $*,
4742 # except with old shells:
4743 build_os=$*
4744 IFS=$ac_save_IFS
4745 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4746
4747
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4749 $as_echo_n "checking host system type... " >&6; }
4750 if ${ac_cv_host+:} false; then :
4751   $as_echo_n "(cached) " >&6
4752 else
4753   if test "x$host_alias" = x; then
4754   ac_cv_host=$ac_cv_build
4755 else
4756   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4757     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4758 fi
4759
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4762 $as_echo "$ac_cv_host" >&6; }
4763 case $ac_cv_host in
4764 *-*-*) ;;
4765 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4766 esac
4767 host=$ac_cv_host
4768 ac_save_IFS=$IFS; IFS='-'
4769 set x $ac_cv_host
4770 shift
4771 host_cpu=$1
4772 host_vendor=$2
4773 shift; shift
4774 # Remember, the first character of IFS is used to create $*,
4775 # except with old shells:
4776 host_os=$*
4777 IFS=$ac_save_IFS
4778 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4779
4780
4781
4782
4783
4784
4785
4786 ac_ext=c
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4793 # On Suns, sometimes $CPP names a directory.
4794 if test -n "$CPP" && test -d "$CPP"; then
4795   CPP=
4796 fi
4797 if test -z "$CPP"; then
4798   if ${ac_cv_prog_CPP+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801       # Double quotes because CPP needs to be expanded
4802     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4803     do
4804       ac_preproc_ok=false
4805 for ac_c_preproc_warn_flag in '' yes
4806 do
4807   # Use a header file that comes with gcc, so configuring glibc
4808   # with a fresh cross-compiler works.
4809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4810   # <limits.h> exists even on freestanding compilers.
4811   # On the NeXT, cc -E runs the code through the compiler's parser,
4812   # not just through cpp. "Syntax error" is here to catch this case.
4813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h.  */
4815 #ifdef __STDC__
4816 # include <limits.h>
4817 #else
4818 # include <assert.h>
4819 #endif
4820                      Syntax error
4821 _ACEOF
4822 if ac_fn_c_try_cpp "$LINENO"; then :
4823
4824 else
4825   # Broken: fails on valid input.
4826 continue
4827 fi
4828 rm -f conftest.err conftest.i conftest.$ac_ext
4829
4830   # OK, works on sane cases.  Now check whether nonexistent headers
4831   # can be detected and how.
4832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h.  */
4834 #include <ac_nonexistent.h>
4835 _ACEOF
4836 if ac_fn_c_try_cpp "$LINENO"; then :
4837   # Broken: success on invalid input.
4838 continue
4839 else
4840   # Passes both tests.
4841 ac_preproc_ok=:
4842 break
4843 fi
4844 rm -f conftest.err conftest.i conftest.$ac_ext
4845
4846 done
4847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848 rm -f conftest.i conftest.err conftest.$ac_ext
4849 if $ac_preproc_ok; then :
4850   break
4851 fi
4852
4853     done
4854     ac_cv_prog_CPP=$CPP
4855
4856 fi
4857   CPP=$ac_cv_prog_CPP
4858 else
4859   ac_cv_prog_CPP=$CPP
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4862 $as_echo "$CPP" >&6; }
4863 ac_preproc_ok=false
4864 for ac_c_preproc_warn_flag in '' yes
4865 do
4866   # Use a header file that comes with gcc, so configuring glibc
4867   # with a fresh cross-compiler works.
4868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869   # <limits.h> exists even on freestanding compilers.
4870   # On the NeXT, cc -E runs the code through the compiler's parser,
4871   # not just through cpp. "Syntax error" is here to catch this case.
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879                      Syntax error
4880 _ACEOF
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4882
4883 else
4884   # Broken: fails on valid input.
4885 continue
4886 fi
4887 rm -f conftest.err conftest.i conftest.$ac_ext
4888
4889   # OK, works on sane cases.  Now check whether nonexistent headers
4890   # can be detected and how.
4891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h.  */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896   # Broken: success on invalid input.
4897 continue
4898 else
4899   # Passes both tests.
4900 ac_preproc_ok=:
4901 break
4902 fi
4903 rm -f conftest.err conftest.i conftest.$ac_ext
4904
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.i conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4909
4910 else
4911   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4913 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details" "$LINENO" 5; }
4915 fi
4916
4917 ac_ext=c
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4925 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4926 if ${ac_cv_path_GREP+:} false; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   if test -z "$GREP"; then
4930   ac_path_GREP_found=false
4931   # Loop through the user's path and test for each of PROGNAME-LIST
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937     for ac_prog in grep ggrep; do
4938     for ac_exec_ext in '' $ac_executable_extensions; do
4939       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4940       as_fn_executable_p "$ac_path_GREP" || continue
4941 # Check for GNU ac_path_GREP and select it if it is found.
4942   # Check for GNU $ac_path_GREP
4943 case `"$ac_path_GREP" --version 2>&1` in
4944 *GNU*)
4945   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4946 *)
4947   ac_count=0
4948   $as_echo_n 0123456789 >"conftest.in"
4949   while :
4950   do
4951     cat "conftest.in" "conftest.in" >"conftest.tmp"
4952     mv "conftest.tmp" "conftest.in"
4953     cp "conftest.in" "conftest.nl"
4954     $as_echo 'GREP' >> "conftest.nl"
4955     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4956     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4957     as_fn_arith $ac_count + 1 && ac_count=$as_val
4958     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4959       # Best one so far, save it but keep looking for a better one
4960       ac_cv_path_GREP="$ac_path_GREP"
4961       ac_path_GREP_max=$ac_count
4962     fi
4963     # 10*(2^10) chars as input seems more than enough
4964     test $ac_count -gt 10 && break
4965   done
4966   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4967 esac
4968
4969       $ac_path_GREP_found && break 3
4970     done
4971   done
4972   done
4973 IFS=$as_save_IFS
4974   if test -z "$ac_cv_path_GREP"; then
4975     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4976   fi
4977 else
4978   ac_cv_path_GREP=$GREP
4979 fi
4980
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4983 $as_echo "$ac_cv_path_GREP" >&6; }
4984  GREP="$ac_cv_path_GREP"
4985
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4988 $as_echo_n "checking for egrep... " >&6; }
4989 if ${ac_cv_path_EGREP+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4993    then ac_cv_path_EGREP="$GREP -E"
4994    else
4995      if test -z "$EGREP"; then
4996   ac_path_EGREP_found=false
4997   # Loop through the user's path and test for each of PROGNAME-LIST
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003     for ac_prog in egrep; do
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5006       as_fn_executable_p "$ac_path_EGREP" || continue
5007 # Check for GNU ac_path_EGREP and select it if it is found.
5008   # Check for GNU $ac_path_EGREP
5009 case `"$ac_path_EGREP" --version 2>&1` in
5010 *GNU*)
5011   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5012 *)
5013   ac_count=0
5014   $as_echo_n 0123456789 >"conftest.in"
5015   while :
5016   do
5017     cat "conftest.in" "conftest.in" >"conftest.tmp"
5018     mv "conftest.tmp" "conftest.in"
5019     cp "conftest.in" "conftest.nl"
5020     $as_echo 'EGREP' >> "conftest.nl"
5021     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023     as_fn_arith $ac_count + 1 && ac_count=$as_val
5024     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5025       # Best one so far, save it but keep looking for a better one
5026       ac_cv_path_EGREP="$ac_path_EGREP"
5027       ac_path_EGREP_max=$ac_count
5028     fi
5029     # 10*(2^10) chars as input seems more than enough
5030     test $ac_count -gt 10 && break
5031   done
5032   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 esac
5034
5035       $ac_path_EGREP_found && break 3
5036     done
5037   done
5038   done
5039 IFS=$as_save_IFS
5040   if test -z "$ac_cv_path_EGREP"; then
5041     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5042   fi
5043 else
5044   ac_cv_path_EGREP=$EGREP
5045 fi
5046
5047    fi
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5050 $as_echo "$ac_cv_path_EGREP" >&6; }
5051  EGREP="$ac_cv_path_EGREP"
5052
5053
5054
5055
5056
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5058 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5059 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5060   $as_echo_n "(cached) " >&6
5061 else
5062
5063       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h.  */
5065
5066 #ifdef __ACK__
5067 Amsterdam
5068 #endif
5069
5070 _ACEOF
5071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5072   $EGREP "Amsterdam" >/dev/null 2>&1; then :
5073   gl_cv_c_amsterdam_compiler=yes
5074 else
5075   gl_cv_c_amsterdam_compiler=no
5076 fi
5077 rm -f conftest*
5078
5079
5080 fi
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5082 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5083
5084       if test $gl_cv_c_amsterdam_compiler = yes; then
5085     if test -z "$AR"; then
5086       AR='cc -c.a'
5087     fi
5088     if test -z "$ARFLAGS"; then
5089       ARFLAGS='-o'
5090     fi
5091   else
5092                                         if test -n "$ac_tool_prefix"; then
5093   for ac_prog in ar lib "link -lib"
5094   do
5095     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_AR+:} false; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102   if test -n "$AR"; then
5103   ac_cv_prog_AR="$AR" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108   IFS=$as_save_IFS
5109   test -z "$as_dir" && as_dir=.
5110     for ac_exec_ext in '' $ac_executable_extensions; do
5111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114     break 2
5115   fi
5116 done
5117   done
5118 IFS=$as_save_IFS
5119
5120 fi
5121 fi
5122 AR=$ac_cv_prog_AR
5123 if test -n "$AR"; then
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5125 $as_echo "$AR" >&6; }
5126 else
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130
5131
5132     test -n "$AR" && break
5133   done
5134 fi
5135 if test -z "$AR"; then
5136   ac_ct_AR=$AR
5137   for ac_prog in ar lib "link -lib"
5138 do
5139   # Extract the first word of "$ac_prog", so it can be a program name with args.
5140 set dummy $ac_prog; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   if test -n "$ac_ct_AR"; then
5147   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152   IFS=$as_save_IFS
5153   test -z "$as_dir" && as_dir=.
5154     for ac_exec_ext in '' $ac_executable_extensions; do
5155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156     ac_cv_prog_ac_ct_AR="$ac_prog"
5157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158     break 2
5159   fi
5160 done
5161   done
5162 IFS=$as_save_IFS
5163
5164 fi
5165 fi
5166 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5167 if test -n "$ac_ct_AR"; then
5168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5169 $as_echo "$ac_ct_AR" >&6; }
5170 else
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175
5176   test -n "$ac_ct_AR" && break
5177 done
5178
5179   if test "x$ac_ct_AR" = x; then
5180     AR="false"
5181   else
5182     case $cross_compiling:$ac_tool_warned in
5183 yes:)
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5186 ac_tool_warned=yes ;;
5187 esac
5188     AR=$ac_ct_AR
5189   fi
5190 fi
5191
5192 : ${AR=ar}
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5195 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5196 if ${am_cv_ar_interface+:} false; then :
5197   $as_echo_n "(cached) " >&6
5198 else
5199   ac_ext=c
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204
5205    am_cv_ar_interface=ar
5206    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h.  */
5208 int some_variable = 0;
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5212       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5213   (eval $am_ar_try) 2>&5
5214   ac_status=$?
5215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216   test $ac_status = 0; }
5217       if test "$ac_status" -eq 0; then
5218         am_cv_ar_interface=ar
5219       else
5220         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5221         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5222   (eval $am_ar_try) 2>&5
5223   ac_status=$?
5224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225   test $ac_status = 0; }
5226         if test "$ac_status" -eq 0; then
5227           am_cv_ar_interface=lib
5228         else
5229           am_cv_ar_interface=unknown
5230         fi
5231       fi
5232       rm -f conftest.lib libconftest.a
5233
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236    ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5244 $as_echo "$am_cv_ar_interface" >&6; }
5245
5246 case $am_cv_ar_interface in
5247 ar)
5248   ;;
5249 lib)
5250   # Microsoft lib, so override with the ar-lib wrapper script.
5251   # FIXME: It is wrong to rewrite AR.
5252   # But if we don't then we get into trouble of one sort or another.
5253   # A longer-term fix would be to have automake use am__AR in this case,
5254   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5255   # similar.
5256   AR="$am_aux_dir/ar-lib $AR"
5257   ;;
5258 unknown)
5259   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5260   ;;
5261 esac
5262
5263   fi
5264
5265         if test -n "$ac_tool_prefix"; then
5266   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5267 set dummy ${ac_tool_prefix}ar; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_AR+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   if test -n "$AR"; then
5274   ac_cv_prog_AR="$AR" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281     for ac_exec_ext in '' $ac_executable_extensions; do
5282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283     ac_cv_prog_AR="${ac_tool_prefix}ar"
5284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285     break 2
5286   fi
5287 done
5288   done
5289 IFS=$as_save_IFS
5290
5291 fi
5292 fi
5293 AR=$ac_cv_prog_AR
5294 if test -n "$AR"; then
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5296 $as_echo "$AR" >&6; }
5297 else
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300 fi
5301
5302
5303 fi
5304 if test -z "$ac_cv_prog_AR"; then
5305   ac_ct_AR=$AR
5306   # Extract the first word of "ar", so it can be a program name with args.
5307 set dummy ar; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   if test -n "$ac_ct_AR"; then
5314   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319   IFS=$as_save_IFS
5320   test -z "$as_dir" && as_dir=.
5321     for ac_exec_ext in '' $ac_executable_extensions; do
5322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323     ac_cv_prog_ac_ct_AR="ar"
5324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325     break 2
5326   fi
5327 done
5328   done
5329 IFS=$as_save_IFS
5330
5331 fi
5332 fi
5333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5334 if test -n "$ac_ct_AR"; then
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5336 $as_echo "$ac_ct_AR" >&6; }
5337 else
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342   if test "x$ac_ct_AR" = x; then
5343     AR="ar"
5344   else
5345     case $cross_compiling:$ac_tool_warned in
5346 yes:)
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5349 ac_tool_warned=yes ;;
5350 esac
5351     AR=$ac_ct_AR
5352   fi
5353 else
5354   AR="$ac_cv_prog_AR"
5355 fi
5356
5357   if test -z "$ARFLAGS"; then
5358     ARFLAGS='cr'
5359   fi
5360
5361
5362
5363   if test -z "$RANLIB"; then
5364     if test $gl_cv_c_amsterdam_compiler = yes; then
5365       RANLIB=':'
5366     else
5367             if test -n "$ac_tool_prefix"; then
5368   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_RANLIB+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   if test -n "$RANLIB"; then
5376   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383     for ac_exec_ext in '' $ac_executable_extensions; do
5384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390   done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 RANLIB=$ac_cv_prog_RANLIB
5396 if test -n "$RANLIB"; then
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5398 $as_echo "$RANLIB" >&6; }
5399 else
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405 fi
5406 if test -z "$ac_cv_prog_RANLIB"; then
5407   ac_ct_RANLIB=$RANLIB
5408   # Extract the first word of "ranlib", so it can be a program name with args.
5409 set dummy ranlib; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   if test -n "$ac_ct_RANLIB"; then
5416   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423     for ac_exec_ext in '' $ac_executable_extensions; do
5424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425     ac_cv_prog_ac_ct_RANLIB="ranlib"
5426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430   done
5431 IFS=$as_save_IFS
5432
5433 fi
5434 fi
5435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5436 if test -n "$ac_ct_RANLIB"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5438 $as_echo "$ac_ct_RANLIB" >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443
5444   if test "x$ac_ct_RANLIB" = x; then
5445     RANLIB=":"
5446   else
5447     case $cross_compiling:$ac_tool_warned in
5448 yes:)
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5451 ac_tool_warned=yes ;;
5452 esac
5453     RANLIB=$ac_ct_RANLIB
5454   fi
5455 else
5456   RANLIB="$ac_cv_prog_RANLIB"
5457 fi
5458
5459     fi
5460   fi
5461
5462
5463
5464
5465   # Pre-early section.
5466
5467
5468   # Code from module absolute-header:
5469   # Code from module alloca:
5470   # Code from module alloca-opt:
5471   # Code from module errno:
5472   # Code from module extern-inline:
5473   # Code from module include_next:
5474   # Code from module size_max:
5475   # Code from module verify:
5476   # Code from module xsize:
5477
5478
5479
5480
5481   case "$host_os" in
5482     mingw* | cygwin*)
5483       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
5484 $as_echo_n "checking for auto-import of symbols... " >&6; }
5485       if ${gl_cv_ld_autoimport+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488
5489         gl_save_LDFLAGS="$LDFLAGS"
5490         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5491         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h.  */
5493
5494 int
5495 main ()
5496 {
5497
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 if ac_fn_c_try_link "$LINENO"; then :
5503   gl_cv_ld_autoimport=yes
5504 else
5505   gl_cv_ld_autoimport=no
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext \
5508     conftest$ac_exeext conftest.$ac_ext
5509         LDFLAGS="$gl_save_LDFLAGS"
5510 fi
5511
5512       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
5513 $as_echo "$gl_cv_ld_autoimport" >&6; }
5514       if test $gl_cv_ld_autoimport = yes; then
5515         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5516       fi
5517       ;;
5518   esac
5519
5520 case `pwd` in
5521   *\ * | *\     *)
5522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5523 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5524 esac
5525
5526
5527
5528 macro_version='2.4.6'
5529 macro_revision='2.4.6'
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 ltmain=$ac_aux_dir/ltmain.sh
5544
5545 # Backslashify metacharacters that are still active within
5546 # double-quoted strings.
5547 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5548
5549 # Same as above, but do not quote variable references.
5550 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5551
5552 # Sed substitution to delay expansion of an escaped shell variable in a
5553 # double_quote_subst'ed string.
5554 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5555
5556 # Sed substitution to delay expansion of an escaped single quote.
5557 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5558
5559 # Sed substitution to avoid accidental globbing in evaled expressions
5560 no_glob_subst='s/\*/\\\*/g'
5561
5562 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5563 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5564 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5567 $as_echo_n "checking how to print strings... " >&6; }
5568 # Test print first, because it will be a builtin if present.
5569 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5570    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5571   ECHO='print -r --'
5572 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5573   ECHO='printf %s\n'
5574 else
5575   # Use this function as a fallback that always works.
5576   func_fallback_echo ()
5577   {
5578     eval 'cat <<_LTECHO_EOF
5579 $1
5580 _LTECHO_EOF'
5581   }
5582   ECHO='func_fallback_echo'
5583 fi
5584
5585 # func_echo_all arg...
5586 # Invoke $ECHO with all args, space-separated.
5587 func_echo_all ()
5588 {
5589     $ECHO ""
5590 }
5591
5592 case $ECHO in
5593   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5594 $as_echo "printf" >&6; } ;;
5595   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5596 $as_echo "print -r" >&6; } ;;
5597   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5598 $as_echo "cat" >&6; } ;;
5599 esac
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5615 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5616 if ${ac_cv_path_SED+:} false; then :
5617   $as_echo_n "(cached) " >&6
5618 else
5619             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5620      for ac_i in 1 2 3 4 5 6 7; do
5621        ac_script="$ac_script$as_nl$ac_script"
5622      done
5623      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5624      { ac_script=; unset ac_script;}
5625      if test -z "$SED"; then
5626   ac_path_SED_found=false
5627   # Loop through the user's path and test for each of PROGNAME-LIST
5628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633     for ac_prog in sed gsed; do
5634     for ac_exec_ext in '' $ac_executable_extensions; do
5635       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5636       as_fn_executable_p "$ac_path_SED" || continue
5637 # Check for GNU ac_path_SED and select it if it is found.
5638   # Check for GNU $ac_path_SED
5639 case `"$ac_path_SED" --version 2>&1` in
5640 *GNU*)
5641   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5642 *)
5643   ac_count=0
5644   $as_echo_n 0123456789 >"conftest.in"
5645   while :
5646   do
5647     cat "conftest.in" "conftest.in" >"conftest.tmp"
5648     mv "conftest.tmp" "conftest.in"
5649     cp "conftest.in" "conftest.nl"
5650     $as_echo '' >> "conftest.nl"
5651     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5652     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5653     as_fn_arith $ac_count + 1 && ac_count=$as_val
5654     if test $ac_count -gt ${ac_path_SED_max-0}; then
5655       # Best one so far, save it but keep looking for a better one
5656       ac_cv_path_SED="$ac_path_SED"
5657       ac_path_SED_max=$ac_count
5658     fi
5659     # 10*(2^10) chars as input seems more than enough
5660     test $ac_count -gt 10 && break
5661   done
5662   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5663 esac
5664
5665       $ac_path_SED_found && break 3
5666     done
5667   done
5668   done
5669 IFS=$as_save_IFS
5670   if test -z "$ac_cv_path_SED"; then
5671     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5672   fi
5673 else
5674   ac_cv_path_SED=$SED
5675 fi
5676
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5679 $as_echo "$ac_cv_path_SED" >&6; }
5680  SED="$ac_cv_path_SED"
5681   rm -f conftest.sed
5682
5683 test -z "$SED" && SED=sed
5684 Xsed="$SED -e 1s/^X//"
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5697 $as_echo_n "checking for fgrep... " >&6; }
5698 if ${ac_cv_path_FGREP+:} false; then :
5699   $as_echo_n "(cached) " >&6
5700 else
5701   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5702    then ac_cv_path_FGREP="$GREP -F"
5703    else
5704      if test -z "$FGREP"; then
5705   ac_path_FGREP_found=false
5706   # Loop through the user's path and test for each of PROGNAME-LIST
5707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     for ac_prog in fgrep; do
5713     for ac_exec_ext in '' $ac_executable_extensions; do
5714       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5715       as_fn_executable_p "$ac_path_FGREP" || continue
5716 # Check for GNU ac_path_FGREP and select it if it is found.
5717   # Check for GNU $ac_path_FGREP
5718 case `"$ac_path_FGREP" --version 2>&1` in
5719 *GNU*)
5720   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5721 *)
5722   ac_count=0
5723   $as_echo_n 0123456789 >"conftest.in"
5724   while :
5725   do
5726     cat "conftest.in" "conftest.in" >"conftest.tmp"
5727     mv "conftest.tmp" "conftest.in"
5728     cp "conftest.in" "conftest.nl"
5729     $as_echo 'FGREP' >> "conftest.nl"
5730     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5732     as_fn_arith $ac_count + 1 && ac_count=$as_val
5733     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5734       # Best one so far, save it but keep looking for a better one
5735       ac_cv_path_FGREP="$ac_path_FGREP"
5736       ac_path_FGREP_max=$ac_count
5737     fi
5738     # 10*(2^10) chars as input seems more than enough
5739     test $ac_count -gt 10 && break
5740   done
5741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5742 esac
5743
5744       $ac_path_FGREP_found && break 3
5745     done
5746   done
5747   done
5748 IFS=$as_save_IFS
5749   if test -z "$ac_cv_path_FGREP"; then
5750     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5751   fi
5752 else
5753   ac_cv_path_FGREP=$FGREP
5754 fi
5755
5756    fi
5757 fi
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5759 $as_echo "$ac_cv_path_FGREP" >&6; }
5760  FGREP="$ac_cv_path_FGREP"
5761
5762
5763 test -z "$GREP" && GREP=grep
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783 # Check whether --with-gnu-ld was given.
5784 if test "${with_gnu_ld+set}" = set; then :
5785   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5786 else
5787   with_gnu_ld=no
5788 fi
5789
5790 ac_prog=ld
5791 if test yes = "$GCC"; then
5792   # Check if gcc -print-prog-name=ld gives a path.
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5794 $as_echo_n "checking for ld used by $CC... " >&6; }
5795   case $host in
5796   *-*-mingw*)
5797     # gcc leaves a trailing carriage return, which upsets mingw
5798     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5799   *)
5800     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5801   esac
5802   case $ac_prog in
5803     # Accept absolute paths.
5804     [\\/]* | ?:[\\/]*)
5805       re_direlt='/[^/][^/]*/\.\./'
5806       # Canonicalize the pathname of ld
5807       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5808       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5809         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5810       done
5811       test -z "$LD" && LD=$ac_prog
5812       ;;
5813   "")
5814     # If it fails, then pretend we aren't using GCC.
5815     ac_prog=ld
5816     ;;
5817   *)
5818     # If it is relative, then search for the first ld in PATH.
5819     with_gnu_ld=unknown
5820     ;;
5821   esac
5822 elif test yes = "$with_gnu_ld"; then
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5824 $as_echo_n "checking for GNU ld... " >&6; }
5825 else
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5827 $as_echo_n "checking for non-GNU ld... " >&6; }
5828 fi
5829 if ${lt_cv_path_LD+:} false; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   if test -z "$LD"; then
5833   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5834   for ac_dir in $PATH; do
5835     IFS=$lt_save_ifs
5836     test -z "$ac_dir" && ac_dir=.
5837     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5838       lt_cv_path_LD=$ac_dir/$ac_prog
5839       # Check to see if the program is GNU ld.  I'd rather use --version,
5840       # but apparently some variants of GNU ld only accept -v.
5841       # Break only if it was the GNU/non-GNU ld that we prefer.
5842       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5843       *GNU* | *'with BFD'*)
5844         test no != "$with_gnu_ld" && break
5845         ;;
5846       *)
5847         test yes != "$with_gnu_ld" && break
5848         ;;
5849       esac
5850     fi
5851   done
5852   IFS=$lt_save_ifs
5853 else
5854   lt_cv_path_LD=$LD # Let the user override the test with a path.
5855 fi
5856 fi
5857
5858 LD=$lt_cv_path_LD
5859 if test -n "$LD"; then
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5861 $as_echo "$LD" >&6; }
5862 else
5863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5865 fi
5866 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5868 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5869 if ${lt_cv_prog_gnu_ld+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5873 case `$LD -v 2>&1 </dev/null` in
5874 *GNU* | *'with BFD'*)
5875   lt_cv_prog_gnu_ld=yes
5876   ;;
5877 *)
5878   lt_cv_prog_gnu_ld=no
5879   ;;
5880 esac
5881 fi
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5883 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5884 with_gnu_ld=$lt_cv_prog_gnu_ld
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5895 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5896 if ${lt_cv_path_NM+:} false; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899   if test -n "$NM"; then
5900   # Let the user override the test.
5901   lt_cv_path_NM=$NM
5902 else
5903   lt_nm_to_check=${ac_tool_prefix}nm
5904   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5905     lt_nm_to_check="$lt_nm_to_check nm"
5906   fi
5907   for lt_tmp_nm in $lt_nm_to_check; do
5908     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5909     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5910       IFS=$lt_save_ifs
5911       test -z "$ac_dir" && ac_dir=.
5912       tmp_nm=$ac_dir/$lt_tmp_nm
5913       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5914         # Check to see if the nm accepts a BSD-compat flag.
5915         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5916         #   nm: unknown option "B" ignored
5917         # Tru64's nm complains that /dev/null is an invalid object file
5918         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5919         case $build_os in
5920         mingw*) lt_bad_file=conftest.nm/nofile ;;
5921         *) lt_bad_file=/dev/null ;;
5922         esac
5923         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5924         *$lt_bad_file* | *'Invalid file or object type'*)
5925           lt_cv_path_NM="$tmp_nm -B"
5926           break 2
5927           ;;
5928         *)
5929           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5930           */dev/null*)
5931             lt_cv_path_NM="$tmp_nm -p"
5932             break 2
5933             ;;
5934           *)
5935             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5936             continue # so that we can try to find one that supports BSD flags
5937             ;;
5938           esac
5939           ;;
5940         esac
5941       fi
5942     done
5943     IFS=$lt_save_ifs
5944   done
5945   : ${lt_cv_path_NM=no}
5946 fi
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5949 $as_echo "$lt_cv_path_NM" >&6; }
5950 if test no != "$lt_cv_path_NM"; then
5951   NM=$lt_cv_path_NM
5952 else
5953   # Didn't find any BSD compatible name lister, look for dumpbin.
5954   if test -n "$DUMPBIN"; then :
5955     # Let the user override the test.
5956   else
5957     if test -n "$ac_tool_prefix"; then
5958   for ac_prog in dumpbin "link -dump"
5959   do
5960     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if ${ac_cv_prog_DUMPBIN+:} false; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -n "$DUMPBIN"; then
5968   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975     for ac_exec_ext in '' $ac_executable_extensions; do
5976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982   done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 DUMPBIN=$ac_cv_prog_DUMPBIN
5988 if test -n "$DUMPBIN"; then
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5990 $as_echo "$DUMPBIN" >&6; }
5991 else
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996
5997     test -n "$DUMPBIN" && break
5998   done
5999 fi
6000 if test -z "$DUMPBIN"; then
6001   ac_ct_DUMPBIN=$DUMPBIN
6002   for ac_prog in dumpbin "link -dump"
6003 do
6004   # Extract the first word of "$ac_prog", so it can be a program name with args.
6005 set dummy $ac_prog; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6009   $as_echo_n "(cached) " >&6
6010 else
6011   if test -n "$ac_ct_DUMPBIN"; then
6012   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6013 else
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6016 do
6017   IFS=$as_save_IFS
6018   test -z "$as_dir" && as_dir=.
6019     for ac_exec_ext in '' $ac_executable_extensions; do
6020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023     break 2
6024   fi
6025 done
6026   done
6027 IFS=$as_save_IFS
6028
6029 fi
6030 fi
6031 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6032 if test -n "$ac_ct_DUMPBIN"; then
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6034 $as_echo "$ac_ct_DUMPBIN" >&6; }
6035 else
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 fi
6039
6040
6041   test -n "$ac_ct_DUMPBIN" && break
6042 done
6043
6044   if test "x$ac_ct_DUMPBIN" = x; then
6045     DUMPBIN=":"
6046   else
6047     case $cross_compiling:$ac_tool_warned in
6048 yes:)
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053     DUMPBIN=$ac_ct_DUMPBIN
6054   fi
6055 fi
6056
6057     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6058     *COFF*)
6059       DUMPBIN="$DUMPBIN -symbols -headers"
6060       ;;
6061     *)
6062       DUMPBIN=:
6063       ;;
6064     esac
6065   fi
6066
6067   if test : != "$DUMPBIN"; then
6068     NM=$DUMPBIN
6069   fi
6070 fi
6071 test -z "$NM" && NM=nm
6072
6073
6074
6075
6076
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6079 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6080 if ${lt_cv_nm_interface+:} false; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   lt_cv_nm_interface="BSD nm"
6084   echo "int some_variable = 0;" > conftest.$ac_ext
6085   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6086   (eval "$ac_compile" 2>conftest.err)
6087   cat conftest.err >&5
6088   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6089   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6090   cat conftest.err >&5
6091   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6092   cat conftest.out >&5
6093   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6094     lt_cv_nm_interface="MS dumpbin"
6095   fi
6096   rm -f conftest*
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6099 $as_echo "$lt_cv_nm_interface" >&6; }
6100
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6102 $as_echo_n "checking whether ln -s works... " >&6; }
6103 LN_S=$as_ln_s
6104 if test "$LN_S" = "ln -s"; then
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6106 $as_echo "yes" >&6; }
6107 else
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6109 $as_echo "no, using $LN_S" >&6; }
6110 fi
6111
6112 # find the maximum length of command line arguments
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6114 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6115 if ${lt_cv_sys_max_cmd_len+:} false; then :
6116   $as_echo_n "(cached) " >&6
6117 else
6118     i=0
6119   teststring=ABCD
6120
6121   case $build_os in
6122   msdosdjgpp*)
6123     # On DJGPP, this test can blow up pretty badly due to problems in libc
6124     # (any single argument exceeding 2000 bytes causes a buffer overrun
6125     # during glob expansion).  Even if it were fixed, the result of this
6126     # check would be larger than it should be.
6127     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6128     ;;
6129
6130   gnu*)
6131     # Under GNU Hurd, this test is not required because there is
6132     # no limit to the length of command line arguments.
6133     # Libtool will interpret -1 as no limit whatsoever
6134     lt_cv_sys_max_cmd_len=-1;
6135     ;;
6136
6137   cygwin* | mingw* | cegcc*)
6138     # On Win9x/ME, this test blows up -- it succeeds, but takes
6139     # about 5 minutes as the teststring grows exponentially.
6140     # Worse, since 9x/ME are not pre-emptively multitasking,
6141     # you end up with a "frozen" computer, even though with patience
6142     # the test eventually succeeds (with a max line length of 256k).
6143     # Instead, let's just punt: use the minimum linelength reported by
6144     # all of the supported platforms: 8192 (on NT/2K/XP).
6145     lt_cv_sys_max_cmd_len=8192;
6146     ;;
6147
6148   mint*)
6149     # On MiNT this can take a long time and run out of memory.
6150     lt_cv_sys_max_cmd_len=8192;
6151     ;;
6152
6153   amigaos*)
6154     # On AmigaOS with pdksh, this test takes hours, literally.
6155     # So we just punt and use a minimum line length of 8192.
6156     lt_cv_sys_max_cmd_len=8192;
6157     ;;
6158
6159   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6160     # This has been around since 386BSD, at least.  Likely further.
6161     if test -x /sbin/sysctl; then
6162       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6163     elif test -x /usr/sbin/sysctl; then
6164       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6165     else
6166       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6167     fi
6168     # And add a safety zone
6169     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6170     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6171     ;;
6172
6173   interix*)
6174     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6175     lt_cv_sys_max_cmd_len=196608
6176     ;;
6177
6178   os2*)
6179     # The test takes a long time on OS/2.
6180     lt_cv_sys_max_cmd_len=8192
6181     ;;
6182
6183   osf*)
6184     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6185     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6186     # nice to cause kernel panics so lets avoid the loop below.
6187     # First set a reasonable default.
6188     lt_cv_sys_max_cmd_len=16384
6189     #
6190     if test -x /sbin/sysconfig; then
6191       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6192         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6193       esac
6194     fi
6195     ;;
6196   sco3.2v5*)
6197     lt_cv_sys_max_cmd_len=102400
6198     ;;
6199   sysv5* | sco5v6* | sysv4.2uw2*)
6200     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6201     if test -n "$kargmax"; then
6202       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6203     else
6204       lt_cv_sys_max_cmd_len=32768
6205     fi
6206     ;;
6207   *)
6208     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6209     if test -n "$lt_cv_sys_max_cmd_len" && \
6210        test undefined != "$lt_cv_sys_max_cmd_len"; then
6211       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6212       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6213     else
6214       # Make teststring a little bigger before we do anything with it.
6215       # a 1K string should be a reasonable start.
6216       for i in 1 2 3 4 5 6 7 8; do
6217         teststring=$teststring$teststring
6218       done
6219       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6220       # If test is not a shell built-in, we'll probably end up computing a
6221       # maximum length that is only half of the actual maximum length, but
6222       # we can't tell.
6223       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6224                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6225               test 17 != "$i" # 1/2 MB should be enough
6226       do
6227         i=`expr $i + 1`
6228         teststring=$teststring$teststring
6229       done
6230       # Only check the string length outside the loop.
6231       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6232       teststring=
6233       # Add a significant safety factor because C++ compilers can tack on
6234       # massive amounts of additional arguments before passing them to the
6235       # linker.  It appears as though 1/2 is a usable value.
6236       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6237     fi
6238     ;;
6239   esac
6240
6241 fi
6242
6243 if test -n "$lt_cv_sys_max_cmd_len"; then
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6245 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6246 else
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6248 $as_echo "none" >&6; }
6249 fi
6250 max_cmd_len=$lt_cv_sys_max_cmd_len
6251
6252
6253
6254
6255
6256
6257 : ${CP="cp -f"}
6258 : ${MV="mv -f"}
6259 : ${RM="rm -f"}
6260
6261 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6262   lt_unset=unset
6263 else
6264   lt_unset=false
6265 fi
6266
6267
6268
6269
6270
6271 # test EBCDIC or ASCII
6272 case `echo X|tr X '\101'` in
6273  A) # ASCII based system
6274     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6275   lt_SP2NL='tr \040 \012'
6276   lt_NL2SP='tr \015\012 \040\040'
6277   ;;
6278  *) # EBCDIC based system
6279   lt_SP2NL='tr \100 \n'
6280   lt_NL2SP='tr \r\n \100\100'
6281   ;;
6282 esac
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6293 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6294 if ${lt_cv_to_host_file_cmd+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   case $host in
6298   *-*-mingw* )
6299     case $build in
6300       *-*-mingw* ) # actually msys
6301         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6302         ;;
6303       *-*-cygwin* )
6304         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6305         ;;
6306       * ) # otherwise, assume *nix
6307         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6308         ;;
6309     esac
6310     ;;
6311   *-*-cygwin* )
6312     case $build in
6313       *-*-mingw* ) # actually msys
6314         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6315         ;;
6316       *-*-cygwin* )
6317         lt_cv_to_host_file_cmd=func_convert_file_noop
6318         ;;
6319       * ) # otherwise, assume *nix
6320         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6321         ;;
6322     esac
6323     ;;
6324   * ) # unhandled hosts (and "normal" native builds)
6325     lt_cv_to_host_file_cmd=func_convert_file_noop
6326     ;;
6327 esac
6328
6329 fi
6330
6331 to_host_file_cmd=$lt_cv_to_host_file_cmd
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6333 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6334
6335
6336
6337
6338
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6340 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6341 if ${lt_cv_to_tool_file_cmd+:} false; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   #assume ordinary cross tools, or native build.
6345 lt_cv_to_tool_file_cmd=func_convert_file_noop
6346 case $host in
6347   *-*-mingw* )
6348     case $build in
6349       *-*-mingw* ) # actually msys
6350         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6351         ;;
6352     esac
6353     ;;
6354 esac
6355
6356 fi
6357
6358 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6360 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6361
6362
6363
6364
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6367 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6368 if ${lt_cv_ld_reload_flag+:} false; then :
6369   $as_echo_n "(cached) " >&6
6370 else
6371   lt_cv_ld_reload_flag='-r'
6372 fi
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6374 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6375 reload_flag=$lt_cv_ld_reload_flag
6376 case $reload_flag in
6377 "" | " "*) ;;
6378 *) reload_flag=" $reload_flag" ;;
6379 esac
6380 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6381 case $host_os in
6382   cygwin* | mingw* | pw32* | cegcc*)
6383     if test yes != "$GCC"; then
6384       reload_cmds=false
6385     fi
6386     ;;
6387   darwin*)
6388     if test yes = "$GCC"; then
6389       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6390     else
6391       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6392     fi
6393     ;;
6394 esac
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404 if test -n "$ac_tool_prefix"; then
6405   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_OBJDUMP+:} false; then :
6410   $as_echo_n "(cached) " >&6
6411 else
6412   if test -n "$OBJDUMP"; then
6413   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418   IFS=$as_save_IFS
6419   test -z "$as_dir" && as_dir=.
6420     for ac_exec_ext in '' $ac_executable_extensions; do
6421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424     break 2
6425   fi
6426 done
6427   done
6428 IFS=$as_save_IFS
6429
6430 fi
6431 fi
6432 OBJDUMP=$ac_cv_prog_OBJDUMP
6433 if test -n "$OBJDUMP"; then
6434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6435 $as_echo "$OBJDUMP" >&6; }
6436 else
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440
6441
6442 fi
6443 if test -z "$ac_cv_prog_OBJDUMP"; then
6444   ac_ct_OBJDUMP=$OBJDUMP
6445   # Extract the first word of "objdump", so it can be a program name with args.
6446 set dummy objdump; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6450   $as_echo_n "(cached) " >&6
6451 else
6452   if test -n "$ac_ct_OBJDUMP"; then
6453   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467   done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6473 if test -n "$ac_ct_OBJDUMP"; then
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6475 $as_echo "$ac_ct_OBJDUMP" >&6; }
6476 else
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481   if test "x$ac_ct_OBJDUMP" = x; then
6482     OBJDUMP="false"
6483   else
6484     case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490     OBJDUMP=$ac_ct_OBJDUMP
6491   fi
6492 else
6493   OBJDUMP="$ac_cv_prog_OBJDUMP"
6494 fi
6495
6496 test -z "$OBJDUMP" && OBJDUMP=objdump
6497
6498
6499
6500
6501
6502
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6504 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6505 if ${lt_cv_deplibs_check_method+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508   lt_cv_file_magic_cmd='$MAGIC_CMD'
6509 lt_cv_file_magic_test_file=
6510 lt_cv_deplibs_check_method='unknown'
6511 # Need to set the preceding variable on all platforms that support
6512 # interlibrary dependencies.
6513 # 'none' -- dependencies not supported.
6514 # 'unknown' -- same as none, but documents that we really don't know.
6515 # 'pass_all' -- all dependencies passed with no checks.
6516 # 'test_compile' -- check by making test program.
6517 # 'file_magic [[regex]]' -- check by looking for files in library path
6518 # that responds to the $file_magic_cmd with a given extended regex.
6519 # If you have 'file' or equivalent on your system and you're not sure
6520 # whether 'pass_all' will *always* work, you probably want this one.
6521
6522 case $host_os in
6523 aix[4-9]*)
6524   lt_cv_deplibs_check_method=pass_all
6525   ;;
6526
6527 beos*)
6528   lt_cv_deplibs_check_method=pass_all
6529   ;;
6530
6531 bsdi[45]*)
6532   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6533   lt_cv_file_magic_cmd='/usr/bin/file -L'
6534   lt_cv_file_magic_test_file=/shlib/libc.so
6535   ;;
6536
6537 cygwin*)
6538   # func_win32_libid is a shell function defined in ltmain.sh
6539   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6540   lt_cv_file_magic_cmd='func_win32_libid'
6541   ;;
6542
6543 mingw* | pw32*)
6544   # Base MSYS/MinGW do not provide the 'file' command needed by
6545   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6546   # unless we find 'file', for example because we are cross-compiling.
6547   if ( file / ) >/dev/null 2>&1; then
6548     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6549     lt_cv_file_magic_cmd='func_win32_libid'
6550   else
6551     # Keep this pattern in sync with the one in func_win32_libid.
6552     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6553     lt_cv_file_magic_cmd='$OBJDUMP -f'
6554   fi
6555   ;;
6556
6557 cegcc*)
6558   # use the weaker test based on 'objdump'. See mingw*.
6559   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6560   lt_cv_file_magic_cmd='$OBJDUMP -f'
6561   ;;
6562
6563 darwin* | rhapsody*)
6564   lt_cv_deplibs_check_method=pass_all
6565   ;;
6566
6567 freebsd* | dragonfly*)
6568   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6569     case $host_cpu in
6570     i*86 )
6571       # Not sure whether the presence of OpenBSD here was a mistake.
6572       # Let's accept both of them until this is cleared up.
6573       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6574       lt_cv_file_magic_cmd=/usr/bin/file
6575       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6576       ;;
6577     esac
6578   else
6579     lt_cv_deplibs_check_method=pass_all
6580   fi
6581   ;;
6582
6583 haiku*)
6584   lt_cv_deplibs_check_method=pass_all
6585   ;;
6586
6587 hpux10.20* | hpux11*)
6588   lt_cv_file_magic_cmd=/usr/bin/file
6589   case $host_cpu in
6590   ia64*)
6591     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6592     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6593     ;;
6594   hppa*64*)
6595     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]'
6596     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6597     ;;
6598   *)
6599     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6600     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6601     ;;
6602   esac
6603   ;;
6604
6605 interix[3-9]*)
6606   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6607   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6608   ;;
6609
6610 irix5* | irix6* | nonstopux*)
6611   case $LD in
6612   *-32|*"-32 ") libmagic=32-bit;;
6613   *-n32|*"-n32 ") libmagic=N32;;
6614   *-64|*"-64 ") libmagic=64-bit;;
6615   *) libmagic=never-match;;
6616   esac
6617   lt_cv_deplibs_check_method=pass_all
6618   ;;
6619
6620 # This must be glibc/ELF.
6621 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6622   lt_cv_deplibs_check_method=pass_all
6623   ;;
6624
6625 netbsd*)
6626   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6627     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6628   else
6629     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6630   fi
6631   ;;
6632
6633 newos6*)
6634   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6635   lt_cv_file_magic_cmd=/usr/bin/file
6636   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6637   ;;
6638
6639 *nto* | *qnx*)
6640   lt_cv_deplibs_check_method=pass_all
6641   ;;
6642
6643 openbsd* | bitrig*)
6644   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6646   else
6647     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6648   fi
6649   ;;
6650
6651 osf3* | osf4* | osf5*)
6652   lt_cv_deplibs_check_method=pass_all
6653   ;;
6654
6655 rdos*)
6656   lt_cv_deplibs_check_method=pass_all
6657   ;;
6658
6659 solaris*)
6660   lt_cv_deplibs_check_method=pass_all
6661   ;;
6662
6663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6664   lt_cv_deplibs_check_method=pass_all
6665   ;;
6666
6667 sysv4 | sysv4.3*)
6668   case $host_vendor in
6669   motorola)
6670     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]'
6671     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6672     ;;
6673   ncr)
6674     lt_cv_deplibs_check_method=pass_all
6675     ;;
6676   sequent)
6677     lt_cv_file_magic_cmd='/bin/file'
6678     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6679     ;;
6680   sni)
6681     lt_cv_file_magic_cmd='/bin/file'
6682     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6683     lt_cv_file_magic_test_file=/lib/libc.so
6684     ;;
6685   siemens)
6686     lt_cv_deplibs_check_method=pass_all
6687     ;;
6688   pc)
6689     lt_cv_deplibs_check_method=pass_all
6690     ;;
6691   esac
6692   ;;
6693
6694 tpf*)
6695   lt_cv_deplibs_check_method=pass_all
6696   ;;
6697 os2*)
6698   lt_cv_deplibs_check_method=pass_all
6699   ;;
6700 esac
6701
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6704 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6705
6706 file_magic_glob=
6707 want_nocaseglob=no
6708 if test "$build" = "$host"; then
6709   case $host_os in
6710   mingw* | pw32*)
6711     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6712       want_nocaseglob=yes
6713     else
6714       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6715     fi
6716     ;;
6717   esac
6718 fi
6719
6720 file_magic_cmd=$lt_cv_file_magic_cmd
6721 deplibs_check_method=$lt_cv_deplibs_check_method
6722 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745 if test -n "$ac_tool_prefix"; then
6746   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_DLLTOOL+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   if test -n "$DLLTOOL"; then
6754   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 DLLTOOL=$ac_cv_prog_DLLTOOL
6774 if test -n "$DLLTOOL"; then
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6776 $as_echo "$DLLTOOL" >&6; }
6777 else
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782
6783 fi
6784 if test -z "$ac_cv_prog_DLLTOOL"; then
6785   ac_ct_DLLTOOL=$DLLTOOL
6786   # Extract the first word of "dlltool", so it can be a program name with args.
6787 set dummy dlltool; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   if test -n "$ac_ct_DLLTOOL"; then
6794   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801     for ac_exec_ext in '' $ac_executable_extensions; do
6802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808   done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6814 if test -n "$ac_ct_DLLTOOL"; then
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6816 $as_echo "$ac_ct_DLLTOOL" >&6; }
6817 else
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6820 fi
6821
6822   if test "x$ac_ct_DLLTOOL" = x; then
6823     DLLTOOL="false"
6824   else
6825     case $cross_compiling:$ac_tool_warned in
6826 yes:)
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829 ac_tool_warned=yes ;;
6830 esac
6831     DLLTOOL=$ac_ct_DLLTOOL
6832   fi
6833 else
6834   DLLTOOL="$ac_cv_prog_DLLTOOL"
6835 fi
6836
6837 test -z "$DLLTOOL" && DLLTOOL=dlltool
6838
6839
6840
6841
6842
6843
6844
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6846 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6847 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6848   $as_echo_n "(cached) " >&6
6849 else
6850   lt_cv_sharedlib_from_linklib_cmd='unknown'
6851
6852 case $host_os in
6853 cygwin* | mingw* | pw32* | cegcc*)
6854   # two different shell functions defined in ltmain.sh;
6855   # decide which one to use based on capabilities of $DLLTOOL
6856   case `$DLLTOOL --help 2>&1` in
6857   *--identify-strict*)
6858     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6859     ;;
6860   *)
6861     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6862     ;;
6863   esac
6864   ;;
6865 *)
6866   # fallback: assume linklib IS sharedlib
6867   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6868   ;;
6869 esac
6870
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6873 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6874 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6875 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6876
6877
6878
6879
6880
6881
6882
6883 if test -n "$ac_tool_prefix"; then
6884   for ac_prog in ar
6885   do
6886     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_AR+:} false; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   if test -n "$AR"; then
6894   ac_cv_prog_AR="$AR" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901     for ac_exec_ext in '' $ac_executable_extensions; do
6902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908   done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 AR=$ac_cv_prog_AR
6914 if test -n "$AR"; then
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6916 $as_echo "$AR" >&6; }
6917 else
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922
6923     test -n "$AR" && break
6924   done
6925 fi
6926 if test -z "$AR"; then
6927   ac_ct_AR=$AR
6928   for ac_prog in ar
6929 do
6930   # Extract the first word of "$ac_prog", so it can be a program name with args.
6931 set dummy $ac_prog; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   if test -n "$ac_ct_AR"; then
6938   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945     for ac_exec_ext in '' $ac_executable_extensions; do
6946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947     ac_cv_prog_ac_ct_AR="$ac_prog"
6948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952   done
6953 IFS=$as_save_IFS
6954
6955 fi
6956 fi
6957 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6958 if test -n "$ac_ct_AR"; then
6959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6960 $as_echo "$ac_ct_AR" >&6; }
6961 else
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6964 fi
6965
6966
6967   test -n "$ac_ct_AR" && break
6968 done
6969
6970   if test "x$ac_ct_AR" = x; then
6971     AR="false"
6972   else
6973     case $cross_compiling:$ac_tool_warned in
6974 yes:)
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977 ac_tool_warned=yes ;;
6978 esac
6979     AR=$ac_ct_AR
6980   fi
6981 fi
6982
6983 : ${AR=ar}
6984 : ${AR_FLAGS=cru}
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6997 $as_echo_n "checking for archiver @FILE support... " >&6; }
6998 if ${lt_cv_ar_at_file+:} false; then :
6999   $as_echo_n "(cached) " >&6
7000 else
7001   lt_cv_ar_at_file=no
7002    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h.  */
7004
7005 int
7006 main ()
7007 {
7008
7009   ;
7010   return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_compile "$LINENO"; then :
7014   echo conftest.$ac_objext > conftest.lst
7015       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7016       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7017   (eval $lt_ar_try) 2>&5
7018   ac_status=$?
7019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7020   test $ac_status = 0; }
7021       if test 0 -eq "$ac_status"; then
7022         # Ensure the archiver fails upon bogus file names.
7023         rm -f conftest.$ac_objext libconftest.a
7024         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7025   (eval $lt_ar_try) 2>&5
7026   ac_status=$?
7027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028   test $ac_status = 0; }
7029         if test 0 -ne "$ac_status"; then
7030           lt_cv_ar_at_file=@
7031         fi
7032       fi
7033       rm -f conftest.* libconftest.a
7034
7035 fi
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037
7038 fi
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7040 $as_echo "$lt_cv_ar_at_file" >&6; }
7041
7042 if test no = "$lt_cv_ar_at_file"; then
7043   archiver_list_spec=
7044 else
7045   archiver_list_spec=$lt_cv_ar_at_file
7046 fi
7047
7048
7049
7050
7051
7052
7053
7054 if test -n "$ac_tool_prefix"; then
7055   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7056 set dummy ${ac_tool_prefix}strip; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if ${ac_cv_prog_STRIP+:} false; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   if test -n "$STRIP"; then
7063   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070     for ac_exec_ext in '' $ac_executable_extensions; do
7071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077   done
7078 IFS=$as_save_IFS
7079
7080 fi
7081 fi
7082 STRIP=$ac_cv_prog_STRIP
7083 if test -n "$STRIP"; then
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7085 $as_echo "$STRIP" >&6; }
7086 else
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090
7091
7092 fi
7093 if test -z "$ac_cv_prog_STRIP"; then
7094   ac_ct_STRIP=$STRIP
7095   # Extract the first word of "strip", so it can be a program name with args.
7096 set dummy strip; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   if test -n "$ac_ct_STRIP"; then
7103   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110     for ac_exec_ext in '' $ac_executable_extensions; do
7111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112     ac_cv_prog_ac_ct_STRIP="strip"
7113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117   done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7123 if test -n "$ac_ct_STRIP"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7125 $as_echo "$ac_ct_STRIP" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131   if test "x$ac_ct_STRIP" = x; then
7132     STRIP=":"
7133   else
7134     case $cross_compiling:$ac_tool_warned in
7135 yes:)
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned=yes ;;
7139 esac
7140     STRIP=$ac_ct_STRIP
7141   fi
7142 else
7143   STRIP="$ac_cv_prog_STRIP"
7144 fi
7145
7146 test -z "$STRIP" && STRIP=:
7147
7148
7149
7150
7151
7152
7153 if test -n "$ac_tool_prefix"; then
7154   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_RANLIB+:} false; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   if test -n "$RANLIB"; then
7162   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169     for ac_exec_ext in '' $ac_executable_extensions; do
7170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176   done
7177 IFS=$as_save_IFS
7178
7179 fi
7180 fi
7181 RANLIB=$ac_cv_prog_RANLIB
7182 if test -n "$RANLIB"; then
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7184 $as_echo "$RANLIB" >&6; }
7185 else
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189
7190
7191 fi
7192 if test -z "$ac_cv_prog_RANLIB"; then
7193   ac_ct_RANLIB=$RANLIB
7194   # Extract the first word of "ranlib", so it can be a program name with args.
7195 set dummy ranlib; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7199   $as_echo_n "(cached) " >&6
7200 else
7201   if test -n "$ac_ct_RANLIB"; then
7202   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207   IFS=$as_save_IFS
7208   test -z "$as_dir" && as_dir=.
7209     for ac_exec_ext in '' $ac_executable_extensions; do
7210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211     ac_cv_prog_ac_ct_RANLIB="ranlib"
7212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213     break 2
7214   fi
7215 done
7216   done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7222 if test -n "$ac_ct_RANLIB"; then
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7224 $as_echo "$ac_ct_RANLIB" >&6; }
7225 else
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7228 fi
7229
7230   if test "x$ac_ct_RANLIB" = x; then
7231     RANLIB=":"
7232   else
7233     case $cross_compiling:$ac_tool_warned in
7234 yes:)
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7237 ac_tool_warned=yes ;;
7238 esac
7239     RANLIB=$ac_ct_RANLIB
7240   fi
7241 else
7242   RANLIB="$ac_cv_prog_RANLIB"
7243 fi
7244
7245 test -z "$RANLIB" && RANLIB=:
7246
7247
7248
7249
7250
7251
7252 # Determine commands to create old-style static archives.
7253 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7254 old_postinstall_cmds='chmod 644 $oldlib'
7255 old_postuninstall_cmds=
7256
7257 if test -n "$RANLIB"; then
7258   case $host_os in
7259   bitrig* | openbsd*)
7260     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7261     ;;
7262   *)
7263     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7264     ;;
7265   esac
7266   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7267 fi
7268
7269 case $host_os in
7270   darwin*)
7271     lock_old_archive_extraction=yes ;;
7272   *)
7273     lock_old_archive_extraction=no ;;
7274 esac
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
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314 # If no C compiler was specified, use CC.
7315 LTCC=${LTCC-"$CC"}
7316
7317 # If no C compiler flags were specified, use CFLAGS.
7318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7319
7320 # Allow CC to be a program name with arguments.
7321 compiler=$CC
7322
7323
7324 # Check for command to grab the raw symbol name followed by C symbol from nm.
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7326 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7327 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7328   $as_echo_n "(cached) " >&6
7329 else
7330
7331 # These are sane defaults that work on at least a few old systems.
7332 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7333
7334 # Character class describing NM global symbol codes.
7335 symcode='[BCDEGRST]'
7336
7337 # Regexp to match symbols that can be accessed directly from C.
7338 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7339
7340 # Define system-specific variables.
7341 case $host_os in
7342 aix*)
7343   symcode='[BCDT]'
7344   ;;
7345 cygwin* | mingw* | pw32* | cegcc*)
7346   symcode='[ABCDGISTW]'
7347   ;;
7348 hpux*)
7349   if test ia64 = "$host_cpu"; then
7350     symcode='[ABCDEGRST]'
7351   fi
7352   ;;
7353 irix* | nonstopux*)
7354   symcode='[BCDEGRST]'
7355   ;;
7356 osf*)
7357   symcode='[BCDEGQRST]'
7358   ;;
7359 solaris*)
7360   symcode='[BDRT]'
7361   ;;
7362 sco3.2v5*)
7363   symcode='[DT]'
7364   ;;
7365 sysv4.2uw2*)
7366   symcode='[DT]'
7367   ;;
7368 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7369   symcode='[ABDT]'
7370   ;;
7371 sysv4)
7372   symcode='[DFNSTU]'
7373   ;;
7374 esac
7375
7376 # If we're using GNU nm, then use its standard symbol codes.
7377 case `$NM -V 2>&1` in
7378 *GNU* | *'with BFD'*)
7379   symcode='[ABCDGIRSTW]' ;;
7380 esac
7381
7382 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7383   # Gets list of data symbols to import.
7384   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7385   # Adjust the below global symbol transforms to fixup imported variables.
7386   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7387   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7388   lt_c_name_lib_hook="\
7389   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7390   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7391 else
7392   # Disable hooks by default.
7393   lt_cv_sys_global_symbol_to_import=
7394   lt_cdecl_hook=
7395   lt_c_name_hook=
7396   lt_c_name_lib_hook=
7397 fi
7398
7399 # Transform an extracted symbol line into a proper C declaration.
7400 # Some systems (esp. on ia64) link data and code symbols differently,
7401 # so use this general approach.
7402 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7403 $lt_cdecl_hook\
7404 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7405 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7406
7407 # Transform an extracted symbol line into symbol name and symbol address
7408 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7409 $lt_c_name_hook\
7410 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7411 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7412
7413 # Transform an extracted symbol line into symbol name with lib prefix and
7414 # symbol address.
7415 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7416 $lt_c_name_lib_hook\
7417 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7418 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7419 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7420
7421 # Handle CRLF in mingw tool chain
7422 opt_cr=
7423 case $build_os in
7424 mingw*)
7425   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7426   ;;
7427 esac
7428
7429 # Try without a prefix underscore, then with it.
7430 for ac_symprfx in "" "_"; do
7431
7432   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7433   symxfrm="\\1 $ac_symprfx\\2 \\2"
7434
7435   # Write the raw and C identifiers.
7436   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7437     # Fake it for dumpbin and say T for any non-static function,
7438     # D for any global variable and I for any imported variable.
7439     # Also find C++ and __fastcall symbols from MSVC++,
7440     # which start with @ or ?.
7441     lt_cv_sys_global_symbol_pipe="$AWK '"\
7442 "     {last_section=section; section=\$ 3};"\
7443 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7444 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7445 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7446 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7447 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7448 "     \$ 0!~/External *\|/{next};"\
7449 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7450 "     {if(hide[section]) next};"\
7451 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7452 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7453 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7454 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7455 "     ' prfx=^$ac_symprfx"
7456   else
7457     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7458   fi
7459   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7460
7461   # Check to see that the pipe works correctly.
7462   pipe_works=no
7463
7464   rm -f conftest*
7465   cat > conftest.$ac_ext <<_LT_EOF
7466 #ifdef __cplusplus
7467 extern "C" {
7468 #endif
7469 char nm_test_var;
7470 void nm_test_func(void);
7471 void nm_test_func(void){}
7472 #ifdef __cplusplus
7473 }
7474 #endif
7475 int main(){nm_test_var='a';nm_test_func();return(0);}
7476 _LT_EOF
7477
7478   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7479   (eval $ac_compile) 2>&5
7480   ac_status=$?
7481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482   test $ac_status = 0; }; then
7483     # Now try to grab the symbols.
7484     nlist=conftest.nm
7485     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7486   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7487   ac_status=$?
7488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7489   test $ac_status = 0; } && test -s "$nlist"; then
7490       # Try sorting and uniquifying the output.
7491       if sort "$nlist" | uniq > "$nlist"T; then
7492         mv -f "$nlist"T "$nlist"
7493       else
7494         rm -f "$nlist"T
7495       fi
7496
7497       # Make sure that we snagged all the symbols we need.
7498       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7499         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7500           cat <<_LT_EOF > conftest.$ac_ext
7501 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7502 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7503 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7504    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7505 # define LT_DLSYM_CONST
7506 #elif defined __osf__
7507 /* This system does not cope well with relocations in const data.  */
7508 # define LT_DLSYM_CONST
7509 #else
7510 # define LT_DLSYM_CONST const
7511 #endif
7512
7513 #ifdef __cplusplus
7514 extern "C" {
7515 #endif
7516
7517 _LT_EOF
7518           # Now generate the symbol file.
7519           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7520
7521           cat <<_LT_EOF >> conftest.$ac_ext
7522
7523 /* The mapping between symbol names and symbols.  */
7524 LT_DLSYM_CONST struct {
7525   const char *name;
7526   void       *address;
7527 }
7528 lt__PROGRAM__LTX_preloaded_symbols[] =
7529 {
7530   { "@PROGRAM@", (void *) 0 },
7531 _LT_EOF
7532           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7533           cat <<\_LT_EOF >> conftest.$ac_ext
7534   {0, (void *) 0}
7535 };
7536
7537 /* This works around a problem in FreeBSD linker */
7538 #ifdef FREEBSD_WORKAROUND
7539 static const void *lt_preloaded_setup() {
7540   return lt__PROGRAM__LTX_preloaded_symbols;
7541 }
7542 #endif
7543
7544 #ifdef __cplusplus
7545 }
7546 #endif
7547 _LT_EOF
7548           # Now try linking the two files.
7549           mv conftest.$ac_objext conftstm.$ac_objext
7550           lt_globsym_save_LIBS=$LIBS
7551           lt_globsym_save_CFLAGS=$CFLAGS
7552           LIBS=conftstm.$ac_objext
7553           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7554           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7555   (eval $ac_link) 2>&5
7556   ac_status=$?
7557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7558   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7559             pipe_works=yes
7560           fi
7561           LIBS=$lt_globsym_save_LIBS
7562           CFLAGS=$lt_globsym_save_CFLAGS
7563         else
7564           echo "cannot find nm_test_func in $nlist" >&5
7565         fi
7566       else
7567         echo "cannot find nm_test_var in $nlist" >&5
7568       fi
7569     else
7570       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7571     fi
7572   else
7573     echo "$progname: failed program was:" >&5
7574     cat conftest.$ac_ext >&5
7575   fi
7576   rm -rf conftest* conftst*
7577
7578   # Do not use the global_symbol_pipe unless it works.
7579   if test yes = "$pipe_works"; then
7580     break
7581   else
7582     lt_cv_sys_global_symbol_pipe=
7583   fi
7584 done
7585
7586 fi
7587
7588 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7589   lt_cv_sys_global_symbol_to_cdecl=
7590 fi
7591 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7593 $as_echo "failed" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7596 $as_echo "ok" >&6; }
7597 fi
7598
7599 # Response file support.
7600 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7601   nm_file_list_spec='@'
7602 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7603   nm_file_list_spec='@'
7604 fi
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
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7643 $as_echo_n "checking for sysroot... " >&6; }
7644
7645 # Check whether --with-sysroot was given.
7646 if test "${with_sysroot+set}" = set; then :
7647   withval=$with_sysroot;
7648 else
7649   with_sysroot=no
7650 fi
7651
7652
7653 lt_sysroot=
7654 case $with_sysroot in #(
7655  yes)
7656    if test yes = "$GCC"; then
7657      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7658    fi
7659    ;; #(
7660  /*)
7661    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7662    ;; #(
7663  no|'')
7664    ;; #(
7665  *)
7666    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7667 $as_echo "$with_sysroot" >&6; }
7668    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7669    ;;
7670 esac
7671
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7673 $as_echo "${lt_sysroot:-no}" >&6; }
7674
7675
7676
7677
7678
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7680 $as_echo_n "checking for a working dd... " >&6; }
7681 if ${ac_cv_path_lt_DD+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   printf 0123456789abcdef0123456789abcdef >conftest.i
7685 cat conftest.i conftest.i >conftest2.i
7686 : ${lt_DD:=$DD}
7687 if test -z "$lt_DD"; then
7688   ac_path_lt_DD_found=false
7689   # Loop through the user's path and test for each of PROGNAME-LIST
7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695     for ac_prog in dd; do
7696     for ac_exec_ext in '' $ac_executable_extensions; do
7697       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7698       as_fn_executable_p "$ac_path_lt_DD" || continue
7699 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7700   cmp -s conftest.i conftest.out \
7701   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7702 fi
7703       $ac_path_lt_DD_found && break 3
7704     done
7705   done
7706   done
7707 IFS=$as_save_IFS
7708   if test -z "$ac_cv_path_lt_DD"; then
7709     :
7710   fi
7711 else
7712   ac_cv_path_lt_DD=$lt_DD
7713 fi
7714
7715 rm -f conftest.i conftest2.i conftest.out
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7718 $as_echo "$ac_cv_path_lt_DD" >&6; }
7719
7720
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7722 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7723 if ${lt_cv_truncate_bin+:} false; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   printf 0123456789abcdef0123456789abcdef >conftest.i
7727 cat conftest.i conftest.i >conftest2.i
7728 lt_cv_truncate_bin=
7729 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7730   cmp -s conftest.i conftest.out \
7731   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7732 fi
7733 rm -f conftest.i conftest2.i conftest.out
7734 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7737 $as_echo "$lt_cv_truncate_bin" >&6; }
7738
7739
7740
7741
7742
7743
7744
7745 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7746 func_cc_basename ()
7747 {
7748     for cc_temp in $*""; do
7749       case $cc_temp in
7750         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7751         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7752         \-*) ;;
7753         *) break;;
7754       esac
7755     done
7756     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7757 }
7758
7759 # Check whether --enable-libtool-lock was given.
7760 if test "${enable_libtool_lock+set}" = set; then :
7761   enableval=$enable_libtool_lock;
7762 fi
7763
7764 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7765
7766 # Some flags need to be propagated to the compiler or linker for good
7767 # libtool support.
7768 case $host in
7769 ia64-*-hpux*)
7770   # Find out what ABI is being produced by ac_compile, and set mode
7771   # options accordingly.
7772   echo 'int i;' > conftest.$ac_ext
7773   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7774   (eval $ac_compile) 2>&5
7775   ac_status=$?
7776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777   test $ac_status = 0; }; then
7778     case `/usr/bin/file conftest.$ac_objext` in
7779       *ELF-32*)
7780         HPUX_IA64_MODE=32
7781         ;;
7782       *ELF-64*)
7783         HPUX_IA64_MODE=64
7784         ;;
7785     esac
7786   fi
7787   rm -rf conftest*
7788   ;;
7789 *-*-irix6*)
7790   # Find out what ABI is being produced by ac_compile, and set linker
7791   # options accordingly.
7792   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7793   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7794   (eval $ac_compile) 2>&5
7795   ac_status=$?
7796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797   test $ac_status = 0; }; then
7798     if test yes = "$lt_cv_prog_gnu_ld"; then
7799       case `/usr/bin/file conftest.$ac_objext` in
7800         *32-bit*)
7801           LD="${LD-ld} -melf32bsmip"
7802           ;;
7803         *N32*)
7804           LD="${LD-ld} -melf32bmipn32"
7805           ;;
7806         *64-bit*)
7807           LD="${LD-ld} -melf64bmip"
7808         ;;
7809       esac
7810     else
7811       case `/usr/bin/file conftest.$ac_objext` in
7812         *32-bit*)
7813           LD="${LD-ld} -32"
7814           ;;
7815         *N32*)
7816           LD="${LD-ld} -n32"
7817           ;;
7818         *64-bit*)
7819           LD="${LD-ld} -64"
7820           ;;
7821       esac
7822     fi
7823   fi
7824   rm -rf conftest*
7825   ;;
7826
7827 mips64*-*linux*)
7828   # Find out what ABI is being produced by ac_compile, and set linker
7829   # options accordingly.
7830   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7831   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7832   (eval $ac_compile) 2>&5
7833   ac_status=$?
7834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835   test $ac_status = 0; }; then
7836     emul=elf
7837     case `/usr/bin/file conftest.$ac_objext` in
7838       *32-bit*)
7839         emul="${emul}32"
7840         ;;
7841       *64-bit*)
7842         emul="${emul}64"
7843         ;;
7844     esac
7845     case `/usr/bin/file conftest.$ac_objext` in
7846       *MSB*)
7847         emul="${emul}btsmip"
7848         ;;
7849       *LSB*)
7850         emul="${emul}ltsmip"
7851         ;;
7852     esac
7853     case `/usr/bin/file conftest.$ac_objext` in
7854       *N32*)
7855         emul="${emul}n32"
7856         ;;
7857     esac
7858     LD="${LD-ld} -m $emul"
7859   fi
7860   rm -rf conftest*
7861   ;;
7862
7863 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7864 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7865   # Find out what ABI is being produced by ac_compile, and set linker
7866   # options accordingly.  Note that the listed cases only cover the
7867   # situations where additional linker options are needed (such as when
7868   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7869   # vice versa); the common cases where no linker options are needed do
7870   # not appear in the list.
7871   echo 'int i;' > conftest.$ac_ext
7872   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7873   (eval $ac_compile) 2>&5
7874   ac_status=$?
7875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876   test $ac_status = 0; }; then
7877     case `/usr/bin/file conftest.o` in
7878       *32-bit*)
7879         case $host in
7880           x86_64-*kfreebsd*-gnu)
7881             LD="${LD-ld} -m elf_i386_fbsd"
7882             ;;
7883           x86_64-*linux*)
7884             case `/usr/bin/file conftest.o` in
7885               *x86-64*)
7886                 LD="${LD-ld} -m elf32_x86_64"
7887                 ;;
7888               *)
7889                 LD="${LD-ld} -m elf_i386"
7890                 ;;
7891             esac
7892             ;;
7893           powerpc64le-*linux*)
7894             LD="${LD-ld} -m elf32lppclinux"
7895             ;;
7896           powerpc64-*linux*)
7897             LD="${LD-ld} -m elf32ppclinux"
7898             ;;
7899           s390x-*linux*)
7900             LD="${LD-ld} -m elf_s390"
7901             ;;
7902           sparc64-*linux*)
7903             LD="${LD-ld} -m elf32_sparc"
7904             ;;
7905         esac
7906         ;;
7907       *64-bit*)
7908         case $host in
7909           x86_64-*kfreebsd*-gnu)
7910             LD="${LD-ld} -m elf_x86_64_fbsd"
7911             ;;
7912           x86_64-*linux*)
7913             LD="${LD-ld} -m elf_x86_64"
7914             ;;
7915           powerpcle-*linux*)
7916             LD="${LD-ld} -m elf64lppc"
7917             ;;
7918           powerpc-*linux*)
7919             LD="${LD-ld} -m elf64ppc"
7920             ;;
7921           s390*-*linux*|s390*-*tpf*)
7922             LD="${LD-ld} -m elf64_s390"
7923             ;;
7924           sparc*-*linux*)
7925             LD="${LD-ld} -m elf64_sparc"
7926             ;;
7927         esac
7928         ;;
7929     esac
7930   fi
7931   rm -rf conftest*
7932   ;;
7933
7934 *-*-sco3.2v5*)
7935   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7936   SAVE_CFLAGS=$CFLAGS
7937   CFLAGS="$CFLAGS -belf"
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7939 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7940 if ${lt_cv_cc_needs_belf+:} false; then :
7941   $as_echo_n "(cached) " >&6
7942 else
7943   ac_ext=c
7944 ac_cpp='$CPP $CPPFLAGS'
7945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948
7949      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h.  */
7951
7952 int
7953 main ()
7954 {
7955
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 if ac_fn_c_try_link "$LINENO"; then :
7961   lt_cv_cc_needs_belf=yes
7962 else
7963   lt_cv_cc_needs_belf=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext \
7966     conftest$ac_exeext conftest.$ac_ext
7967      ac_ext=c
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972
7973 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7975 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7976   if test yes != "$lt_cv_cc_needs_belf"; then
7977     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7978     CFLAGS=$SAVE_CFLAGS
7979   fi
7980   ;;
7981 *-*solaris*)
7982   # Find out what ABI is being produced by ac_compile, and set linker
7983   # options accordingly.
7984   echo 'int i;' > conftest.$ac_ext
7985   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7986   (eval $ac_compile) 2>&5
7987   ac_status=$?
7988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989   test $ac_status = 0; }; then
7990     case `/usr/bin/file conftest.o` in
7991     *64-bit*)
7992       case $lt_cv_prog_gnu_ld in
7993       yes*)
7994         case $host in
7995         i?86-*-solaris*|x86_64-*-solaris*)
7996           LD="${LD-ld} -m elf_x86_64"
7997           ;;
7998         sparc*-*-solaris*)
7999           LD="${LD-ld} -m elf64_sparc"
8000           ;;
8001         esac
8002         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8003         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8004           LD=${LD-ld}_sol2
8005         fi
8006         ;;
8007       *)
8008         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8009           LD="${LD-ld} -64"
8010         fi
8011         ;;
8012       esac
8013       ;;
8014     esac
8015   fi
8016   rm -rf conftest*
8017   ;;
8018 esac
8019
8020 need_locks=$enable_libtool_lock
8021
8022 if test -n "$ac_tool_prefix"; then
8023   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}mt; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030   if test -n "$MANIFEST_TOOL"; then
8031   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036   IFS=$as_save_IFS
8037   test -z "$as_dir" && as_dir=.
8038     for ac_exec_ext in '' $ac_executable_extensions; do
8039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042     break 2
8043   fi
8044 done
8045   done
8046 IFS=$as_save_IFS
8047
8048 fi
8049 fi
8050 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8051 if test -n "$MANIFEST_TOOL"; then
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8053 $as_echo "$MANIFEST_TOOL" >&6; }
8054 else
8055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 fi
8058
8059
8060 fi
8061 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8062   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8063   # Extract the first word of "mt", so it can be a program name with args.
8064 set dummy mt; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   if test -n "$ac_ct_MANIFEST_TOOL"; then
8071   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076   IFS=$as_save_IFS
8077   test -z "$as_dir" && as_dir=.
8078     for ac_exec_ext in '' $ac_executable_extensions; do
8079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082     break 2
8083   fi
8084 done
8085   done
8086 IFS=$as_save_IFS
8087
8088 fi
8089 fi
8090 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8091 if test -n "$ac_ct_MANIFEST_TOOL"; then
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8093 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8094 else
8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097 fi
8098
8099   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8100     MANIFEST_TOOL=":"
8101   else
8102     case $cross_compiling:$ac_tool_warned in
8103 yes:)
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106 ac_tool_warned=yes ;;
8107 esac
8108     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8109   fi
8110 else
8111   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8112 fi
8113
8114 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8116 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8117 if ${lt_cv_path_mainfest_tool+:} false; then :
8118   $as_echo_n "(cached) " >&6
8119 else
8120   lt_cv_path_mainfest_tool=no
8121   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8122   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8123   cat conftest.err >&5
8124   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8125     lt_cv_path_mainfest_tool=yes
8126   fi
8127   rm -f conftest*
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8130 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8131 if test yes != "$lt_cv_path_mainfest_tool"; then
8132   MANIFEST_TOOL=:
8133 fi
8134
8135
8136
8137
8138
8139
8140   case $host_os in
8141     rhapsody* | darwin*)
8142     if test -n "$ac_tool_prefix"; then
8143   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8144 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 $as_echo_n "checking for $ac_word... " >&6; }
8147 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8148   $as_echo_n "(cached) " >&6
8149 else
8150   if test -n "$DSYMUTIL"; then
8151   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8152 else
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156   IFS=$as_save_IFS
8157   test -z "$as_dir" && as_dir=.
8158     for ac_exec_ext in '' $ac_executable_extensions; do
8159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162     break 2
8163   fi
8164 done
8165   done
8166 IFS=$as_save_IFS
8167
8168 fi
8169 fi
8170 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8171 if test -n "$DSYMUTIL"; then
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8173 $as_echo "$DSYMUTIL" >&6; }
8174 else
8175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8177 fi
8178
8179
8180 fi
8181 if test -z "$ac_cv_prog_DSYMUTIL"; then
8182   ac_ct_DSYMUTIL=$DSYMUTIL
8183   # Extract the first word of "dsymutil", so it can be a program name with args.
8184 set dummy dsymutil; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   if test -n "$ac_ct_DSYMUTIL"; then
8191   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198     for ac_exec_ext in '' $ac_executable_extensions; do
8199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205   done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8211 if test -n "$ac_ct_DSYMUTIL"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8213 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218
8219   if test "x$ac_ct_DSYMUTIL" = x; then
8220     DSYMUTIL=":"
8221   else
8222     case $cross_compiling:$ac_tool_warned in
8223 yes:)
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8226 ac_tool_warned=yes ;;
8227 esac
8228     DSYMUTIL=$ac_ct_DSYMUTIL
8229   fi
8230 else
8231   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8232 fi
8233
8234     if test -n "$ac_tool_prefix"; then
8235   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8236 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if ${ac_cv_prog_NMEDIT+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242   if test -n "$NMEDIT"; then
8243   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8244 else
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 for as_dir in $PATH
8247 do
8248   IFS=$as_save_IFS
8249   test -z "$as_dir" && as_dir=.
8250     for ac_exec_ext in '' $ac_executable_extensions; do
8251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254     break 2
8255   fi
8256 done
8257   done
8258 IFS=$as_save_IFS
8259
8260 fi
8261 fi
8262 NMEDIT=$ac_cv_prog_NMEDIT
8263 if test -n "$NMEDIT"; then
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8265 $as_echo "$NMEDIT" >&6; }
8266 else
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270
8271
8272 fi
8273 if test -z "$ac_cv_prog_NMEDIT"; then
8274   ac_ct_NMEDIT=$NMEDIT
8275   # Extract the first word of "nmedit", so it can be a program name with args.
8276 set dummy nmedit; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8280   $as_echo_n "(cached) " >&6
8281 else
8282   if test -n "$ac_ct_NMEDIT"; then
8283   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8287 do
8288   IFS=$as_save_IFS
8289   test -z "$as_dir" && as_dir=.
8290     for ac_exec_ext in '' $ac_executable_extensions; do
8291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294     break 2
8295   fi
8296 done
8297   done
8298 IFS=$as_save_IFS
8299
8300 fi
8301 fi
8302 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8303 if test -n "$ac_ct_NMEDIT"; then
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8305 $as_echo "$ac_ct_NMEDIT" >&6; }
8306 else
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8309 fi
8310
8311   if test "x$ac_ct_NMEDIT" = x; then
8312     NMEDIT=":"
8313   else
8314     case $cross_compiling:$ac_tool_warned in
8315 yes:)
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8318 ac_tool_warned=yes ;;
8319 esac
8320     NMEDIT=$ac_ct_NMEDIT
8321   fi
8322 else
8323   NMEDIT="$ac_cv_prog_NMEDIT"
8324 fi
8325
8326     if test -n "$ac_tool_prefix"; then
8327   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8328 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330 $as_echo_n "checking for $ac_word... " >&6; }
8331 if ${ac_cv_prog_LIPO+:} false; then :
8332   $as_echo_n "(cached) " >&6
8333 else
8334   if test -n "$LIPO"; then
8335   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8336 else
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340   IFS=$as_save_IFS
8341   test -z "$as_dir" && as_dir=.
8342     for ac_exec_ext in '' $ac_executable_extensions; do
8343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8344     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8346     break 2
8347   fi
8348 done
8349   done
8350 IFS=$as_save_IFS
8351
8352 fi
8353 fi
8354 LIPO=$ac_cv_prog_LIPO
8355 if test -n "$LIPO"; then
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8357 $as_echo "$LIPO" >&6; }
8358 else
8359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8361 fi
8362
8363
8364 fi
8365 if test -z "$ac_cv_prog_LIPO"; then
8366   ac_ct_LIPO=$LIPO
8367   # Extract the first word of "lipo", so it can be a program name with args.
8368 set dummy lipo; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   if test -n "$ac_ct_LIPO"; then
8375   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380   IFS=$as_save_IFS
8381   test -z "$as_dir" && as_dir=.
8382     for ac_exec_ext in '' $ac_executable_extensions; do
8383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8384     ac_cv_prog_ac_ct_LIPO="lipo"
8385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386     break 2
8387   fi
8388 done
8389   done
8390 IFS=$as_save_IFS
8391
8392 fi
8393 fi
8394 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8395 if test -n "$ac_ct_LIPO"; then
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8397 $as_echo "$ac_ct_LIPO" >&6; }
8398 else
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8401 fi
8402
8403   if test "x$ac_ct_LIPO" = x; then
8404     LIPO=":"
8405   else
8406     case $cross_compiling:$ac_tool_warned in
8407 yes:)
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8410 ac_tool_warned=yes ;;
8411 esac
8412     LIPO=$ac_ct_LIPO
8413   fi
8414 else
8415   LIPO="$ac_cv_prog_LIPO"
8416 fi
8417
8418     if test -n "$ac_tool_prefix"; then
8419   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8420 set dummy ${ac_tool_prefix}otool; ac_word=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if ${ac_cv_prog_OTOOL+:} false; then :
8424   $as_echo_n "(cached) " >&6
8425 else
8426   if test -n "$OTOOL"; then
8427   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432   IFS=$as_save_IFS
8433   test -z "$as_dir" && as_dir=.
8434     for ac_exec_ext in '' $ac_executable_extensions; do
8435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438     break 2
8439   fi
8440 done
8441   done
8442 IFS=$as_save_IFS
8443
8444 fi
8445 fi
8446 OTOOL=$ac_cv_prog_OTOOL
8447 if test -n "$OTOOL"; then
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8449 $as_echo "$OTOOL" >&6; }
8450 else
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8453 fi
8454
8455
8456 fi
8457 if test -z "$ac_cv_prog_OTOOL"; then
8458   ac_ct_OTOOL=$OTOOL
8459   # Extract the first word of "otool", so it can be a program name with args.
8460 set dummy otool; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   if test -n "$ac_ct_OTOOL"; then
8467   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8471 do
8472   IFS=$as_save_IFS
8473   test -z "$as_dir" && as_dir=.
8474     for ac_exec_ext in '' $ac_executable_extensions; do
8475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476     ac_cv_prog_ac_ct_OTOOL="otool"
8477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478     break 2
8479   fi
8480 done
8481   done
8482 IFS=$as_save_IFS
8483
8484 fi
8485 fi
8486 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8487 if test -n "$ac_ct_OTOOL"; then
8488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8489 $as_echo "$ac_ct_OTOOL" >&6; }
8490 else
8491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8493 fi
8494
8495   if test "x$ac_ct_OTOOL" = x; then
8496     OTOOL=":"
8497   else
8498     case $cross_compiling:$ac_tool_warned in
8499 yes:)
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8502 ac_tool_warned=yes ;;
8503 esac
8504     OTOOL=$ac_ct_OTOOL
8505   fi
8506 else
8507   OTOOL="$ac_cv_prog_OTOOL"
8508 fi
8509
8510     if test -n "$ac_tool_prefix"; then
8511   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8512 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 $as_echo_n "checking for $ac_word... " >&6; }
8515 if ${ac_cv_prog_OTOOL64+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   if test -n "$OTOOL64"; then
8519   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524   IFS=$as_save_IFS
8525   test -z "$as_dir" && as_dir=.
8526     for ac_exec_ext in '' $ac_executable_extensions; do
8527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530     break 2
8531   fi
8532 done
8533   done
8534 IFS=$as_save_IFS
8535
8536 fi
8537 fi
8538 OTOOL64=$ac_cv_prog_OTOOL64
8539 if test -n "$OTOOL64"; then
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8541 $as_echo "$OTOOL64" >&6; }
8542 else
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546
8547
8548 fi
8549 if test -z "$ac_cv_prog_OTOOL64"; then
8550   ac_ct_OTOOL64=$OTOOL64
8551   # Extract the first word of "otool64", so it can be a program name with args.
8552 set dummy otool64; ac_word=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8556   $as_echo_n "(cached) " >&6
8557 else
8558   if test -n "$ac_ct_OTOOL64"; then
8559   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8560 else
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8563 do
8564   IFS=$as_save_IFS
8565   test -z "$as_dir" && as_dir=.
8566     for ac_exec_ext in '' $ac_executable_extensions; do
8567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568     ac_cv_prog_ac_ct_OTOOL64="otool64"
8569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570     break 2
8571   fi
8572 done
8573   done
8574 IFS=$as_save_IFS
8575
8576 fi
8577 fi
8578 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8579 if test -n "$ac_ct_OTOOL64"; then
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8581 $as_echo "$ac_ct_OTOOL64" >&6; }
8582 else
8583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8585 fi
8586
8587   if test "x$ac_ct_OTOOL64" = x; then
8588     OTOOL64=":"
8589   else
8590     case $cross_compiling:$ac_tool_warned in
8591 yes:)
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8594 ac_tool_warned=yes ;;
8595 esac
8596     OTOOL64=$ac_ct_OTOOL64
8597   fi
8598 else
8599   OTOOL64="$ac_cv_prog_OTOOL64"
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8629 $as_echo_n "checking for -single_module linker flag... " >&6; }
8630 if ${lt_cv_apple_cc_single_mod+:} false; then :
8631   $as_echo_n "(cached) " >&6
8632 else
8633   lt_cv_apple_cc_single_mod=no
8634       if test -z "$LT_MULTI_MODULE"; then
8635         # By default we will add the -single_module flag. You can override
8636         # by either setting the environment variable LT_MULTI_MODULE
8637         # non-empty at configure time, or by adding -multi_module to the
8638         # link flags.
8639         rm -rf libconftest.dylib*
8640         echo "int foo(void){return 1;}" > conftest.c
8641         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8642 -dynamiclib -Wl,-single_module conftest.c" >&5
8643         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8644           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8645         _lt_result=$?
8646         # If there is a non-empty error log, and "single_module"
8647         # appears in it, assume the flag caused a linker warning
8648         if test -s conftest.err && $GREP single_module conftest.err; then
8649           cat conftest.err >&5
8650         # Otherwise, if the output was created with a 0 exit code from
8651         # the compiler, it worked.
8652         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8653           lt_cv_apple_cc_single_mod=yes
8654         else
8655           cat conftest.err >&5
8656         fi
8657         rm -rf libconftest.dylib*
8658         rm -f conftest.*
8659       fi
8660 fi
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8662 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8663
8664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8665 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8666 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8667   $as_echo_n "(cached) " >&6
8668 else
8669   lt_cv_ld_exported_symbols_list=no
8670       save_LDFLAGS=$LDFLAGS
8671       echo "_main" > conftest.sym
8672       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8673       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h.  */
8675
8676 int
8677 main ()
8678 {
8679
8680   ;
8681   return 0;
8682 }
8683 _ACEOF
8684 if ac_fn_c_try_link "$LINENO"; then :
8685   lt_cv_ld_exported_symbols_list=yes
8686 else
8687   lt_cv_ld_exported_symbols_list=no
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext \
8690     conftest$ac_exeext conftest.$ac_ext
8691         LDFLAGS=$save_LDFLAGS
8692
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8695 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8696
8697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8698 $as_echo_n "checking for -force_load linker flag... " >&6; }
8699 if ${lt_cv_ld_force_load+:} false; then :
8700   $as_echo_n "(cached) " >&6
8701 else
8702   lt_cv_ld_force_load=no
8703       cat > conftest.c << _LT_EOF
8704 int forced_loaded() { return 2;}
8705 _LT_EOF
8706       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8707       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8708       echo "$AR cru libconftest.a conftest.o" >&5
8709       $AR cru libconftest.a conftest.o 2>&5
8710       echo "$RANLIB libconftest.a" >&5
8711       $RANLIB libconftest.a 2>&5
8712       cat > conftest.c << _LT_EOF
8713 int main() { return 0;}
8714 _LT_EOF
8715       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8716       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8717       _lt_result=$?
8718       if test -s conftest.err && $GREP force_load conftest.err; then
8719         cat conftest.err >&5
8720       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8721         lt_cv_ld_force_load=yes
8722       else
8723         cat conftest.err >&5
8724       fi
8725         rm -f conftest.err libconftest.a conftest conftest.c
8726         rm -rf conftest.dSYM
8727
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8730 $as_echo "$lt_cv_ld_force_load" >&6; }
8731     case $host_os in
8732     rhapsody* | darwin1.[012])
8733       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8734     darwin1.*)
8735       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8736     darwin*) # darwin 5.x on
8737       # if running on 10.5 or later, the deployment target defaults
8738       # to the OS version, if on x86, and 10.4, the deployment
8739       # target defaults to 10.4. Don't you love it?
8740       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8741         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8742           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8743         10.[012][,.]*)
8744           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8745         10.*)
8746           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8747       esac
8748     ;;
8749   esac
8750     if test yes = "$lt_cv_apple_cc_single_mod"; then
8751       _lt_dar_single_mod='$single_module'
8752     fi
8753     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8754       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8755     else
8756       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8757     fi
8758     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8759       _lt_dsymutil='~$DSYMUTIL $lib || :'
8760     else
8761       _lt_dsymutil=
8762     fi
8763     ;;
8764   esac
8765
8766 # func_munge_path_list VARIABLE PATH
8767 # -----------------------------------
8768 # VARIABLE is name of variable containing _space_ separated list of
8769 # directories to be munged by the contents of PATH, which is string
8770 # having a format:
8771 # "DIR[:DIR]:"
8772 #       string "DIR[ DIR]" will be prepended to VARIABLE
8773 # ":DIR[:DIR]"
8774 #       string "DIR[ DIR]" will be appended to VARIABLE
8775 # "DIRP[:DIRP]::[DIRA:]DIRA"
8776 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8777 #       "DIRA[ DIRA]" will be appended to VARIABLE
8778 # "DIR[:DIR]"
8779 #       VARIABLE will be replaced by "DIR[ DIR]"
8780 func_munge_path_list ()
8781 {
8782     case x$2 in
8783     x)
8784         ;;
8785     *:)
8786         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8787         ;;
8788     x:*)
8789         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8790         ;;
8791     *::*)
8792         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8793         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8794         ;;
8795     *)
8796         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8797         ;;
8798     esac
8799 }
8800
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8802 $as_echo_n "checking for ANSI C header files... " >&6; }
8803 if ${ac_cv_header_stdc+:} false; then :
8804   $as_echo_n "(cached) " >&6
8805 else
8806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h.  */
8808 #include <stdlib.h>
8809 #include <stdarg.h>
8810 #include <string.h>
8811 #include <float.h>
8812
8813 int
8814 main ()
8815 {
8816
8817   ;
8818   return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_compile "$LINENO"; then :
8822   ac_cv_header_stdc=yes
8823 else
8824   ac_cv_header_stdc=no
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827
8828 if test $ac_cv_header_stdc = yes; then
8829   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h.  */
8832 #include <string.h>
8833
8834 _ACEOF
8835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8836   $EGREP "memchr" >/dev/null 2>&1; then :
8837
8838 else
8839   ac_cv_header_stdc=no
8840 fi
8841 rm -f conftest*
8842
8843 fi
8844
8845 if test $ac_cv_header_stdc = yes; then
8846   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h.  */
8849 #include <stdlib.h>
8850
8851 _ACEOF
8852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8853   $EGREP "free" >/dev/null 2>&1; then :
8854
8855 else
8856   ac_cv_header_stdc=no
8857 fi
8858 rm -f conftest*
8859
8860 fi
8861
8862 if test $ac_cv_header_stdc = yes; then
8863   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8864   if test "$cross_compiling" = yes; then :
8865   :
8866 else
8867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h.  */
8869 #include <ctype.h>
8870 #include <stdlib.h>
8871 #if ((' ' & 0x0FF) == 0x020)
8872 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8873 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8874 #else
8875 # define ISLOWER(c) \
8876                    (('a' <= (c) && (c) <= 'i') \
8877                      || ('j' <= (c) && (c) <= 'r') \
8878                      || ('s' <= (c) && (c) <= 'z'))
8879 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8880 #endif
8881
8882 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8883 int
8884 main ()
8885 {
8886   int i;
8887   for (i = 0; i < 256; i++)
8888     if (XOR (islower (i), ISLOWER (i))
8889         || toupper (i) != TOUPPER (i))
8890       return 2;
8891   return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_run "$LINENO"; then :
8895
8896 else
8897   ac_cv_header_stdc=no
8898 fi
8899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8900   conftest.$ac_objext conftest.beam conftest.$ac_ext
8901 fi
8902
8903 fi
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8906 $as_echo "$ac_cv_header_stdc" >&6; }
8907 if test $ac_cv_header_stdc = yes; then
8908
8909 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8910
8911 fi
8912
8913 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8915                   inttypes.h stdint.h unistd.h
8916 do :
8917   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8919 "
8920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8921   cat >>confdefs.h <<_ACEOF
8922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8923 _ACEOF
8924
8925 fi
8926
8927 done
8928
8929
8930 for ac_header in dlfcn.h
8931 do :
8932   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8933 "
8934 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8935   cat >>confdefs.h <<_ACEOF
8936 #define HAVE_DLFCN_H 1
8937 _ACEOF
8938
8939 fi
8940
8941 done
8942
8943
8944
8945
8946 func_stripname_cnf ()
8947 {
8948   case $2 in
8949   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8950   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8951   esac
8952 } # func_stripname_cnf
8953
8954
8955
8956
8957
8958 # Set options
8959 enable_win32_dll=yes
8960
8961 case $host in
8962 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8963   if test -n "$ac_tool_prefix"; then
8964   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8965 set dummy ${ac_tool_prefix}as; ac_word=$2
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 $as_echo_n "checking for $ac_word... " >&6; }
8968 if ${ac_cv_prog_AS+:} false; then :
8969   $as_echo_n "(cached) " >&6
8970 else
8971   if test -n "$AS"; then
8972   ac_cv_prog_AS="$AS" # Let the user override the test.
8973 else
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8976 do
8977   IFS=$as_save_IFS
8978   test -z "$as_dir" && as_dir=.
8979     for ac_exec_ext in '' $ac_executable_extensions; do
8980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981     ac_cv_prog_AS="${ac_tool_prefix}as"
8982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983     break 2
8984   fi
8985 done
8986   done
8987 IFS=$as_save_IFS
8988
8989 fi
8990 fi
8991 AS=$ac_cv_prog_AS
8992 if test -n "$AS"; then
8993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8994 $as_echo "$AS" >&6; }
8995 else
8996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
8998 fi
8999
9000
9001 fi
9002 if test -z "$ac_cv_prog_AS"; then
9003   ac_ct_AS=$AS
9004   # Extract the first word of "as", so it can be a program name with args.
9005 set dummy as; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   if test -n "$ac_ct_AS"; then
9012   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9013 else
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 for as_dir in $PATH
9016 do
9017   IFS=$as_save_IFS
9018   test -z "$as_dir" && as_dir=.
9019     for ac_exec_ext in '' $ac_executable_extensions; do
9020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021     ac_cv_prog_ac_ct_AS="as"
9022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023     break 2
9024   fi
9025 done
9026   done
9027 IFS=$as_save_IFS
9028
9029 fi
9030 fi
9031 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9032 if test -n "$ac_ct_AS"; then
9033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9034 $as_echo "$ac_ct_AS" >&6; }
9035 else
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9038 fi
9039
9040   if test "x$ac_ct_AS" = x; then
9041     AS="false"
9042   else
9043     case $cross_compiling:$ac_tool_warned in
9044 yes:)
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9047 ac_tool_warned=yes ;;
9048 esac
9049     AS=$ac_ct_AS
9050   fi
9051 else
9052   AS="$ac_cv_prog_AS"
9053 fi
9054
9055   if test -n "$ac_tool_prefix"; then
9056   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9057 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if ${ac_cv_prog_DLLTOOL+:} false; then :
9061   $as_echo_n "(cached) " >&6
9062 else
9063   if test -n "$DLLTOOL"; then
9064   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9065 else
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 for as_dir in $PATH
9068 do
9069   IFS=$as_save_IFS
9070   test -z "$as_dir" && as_dir=.
9071     for ac_exec_ext in '' $ac_executable_extensions; do
9072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9073     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075     break 2
9076   fi
9077 done
9078   done
9079 IFS=$as_save_IFS
9080
9081 fi
9082 fi
9083 DLLTOOL=$ac_cv_prog_DLLTOOL
9084 if test -n "$DLLTOOL"; then
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9086 $as_echo "$DLLTOOL" >&6; }
9087 else
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9090 fi
9091
9092
9093 fi
9094 if test -z "$ac_cv_prog_DLLTOOL"; then
9095   ac_ct_DLLTOOL=$DLLTOOL
9096   # Extract the first word of "dlltool", so it can be a program name with args.
9097 set dummy dlltool; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9101   $as_echo_n "(cached) " >&6
9102 else
9103   if test -n "$ac_ct_DLLTOOL"; then
9104   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9108 do
9109   IFS=$as_save_IFS
9110   test -z "$as_dir" && as_dir=.
9111     for ac_exec_ext in '' $ac_executable_extensions; do
9112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115     break 2
9116   fi
9117 done
9118   done
9119 IFS=$as_save_IFS
9120
9121 fi
9122 fi
9123 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9124 if test -n "$ac_ct_DLLTOOL"; then
9125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9126 $as_echo "$ac_ct_DLLTOOL" >&6; }
9127 else
9128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9130 fi
9131
9132   if test "x$ac_ct_DLLTOOL" = x; then
9133     DLLTOOL="false"
9134   else
9135     case $cross_compiling:$ac_tool_warned in
9136 yes:)
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9139 ac_tool_warned=yes ;;
9140 esac
9141     DLLTOOL=$ac_ct_DLLTOOL
9142   fi
9143 else
9144   DLLTOOL="$ac_cv_prog_DLLTOOL"
9145 fi
9146
9147   if test -n "$ac_tool_prefix"; then
9148   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9149 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if ${ac_cv_prog_OBJDUMP+:} false; then :
9153   $as_echo_n "(cached) " >&6
9154 else
9155   if test -n "$OBJDUMP"; then
9156   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9160 do
9161   IFS=$as_save_IFS
9162   test -z "$as_dir" && as_dir=.
9163     for ac_exec_ext in '' $ac_executable_extensions; do
9164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9165     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167     break 2
9168   fi
9169 done
9170   done
9171 IFS=$as_save_IFS
9172
9173 fi
9174 fi
9175 OBJDUMP=$ac_cv_prog_OBJDUMP
9176 if test -n "$OBJDUMP"; then
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9178 $as_echo "$OBJDUMP" >&6; }
9179 else
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 fi
9183
9184
9185 fi
9186 if test -z "$ac_cv_prog_OBJDUMP"; then
9187   ac_ct_OBJDUMP=$OBJDUMP
9188   # Extract the first word of "objdump", so it can be a program name with args.
9189 set dummy objdump; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9193   $as_echo_n "(cached) " >&6
9194 else
9195   if test -n "$ac_ct_OBJDUMP"; then
9196   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9197 else
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $PATH
9200 do
9201   IFS=$as_save_IFS
9202   test -z "$as_dir" && as_dir=.
9203     for ac_exec_ext in '' $ac_executable_extensions; do
9204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9205     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207     break 2
9208   fi
9209 done
9210   done
9211 IFS=$as_save_IFS
9212
9213 fi
9214 fi
9215 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9216 if test -n "$ac_ct_OBJDUMP"; then
9217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9218 $as_echo "$ac_ct_OBJDUMP" >&6; }
9219 else
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9222 fi
9223
9224   if test "x$ac_ct_OBJDUMP" = x; then
9225     OBJDUMP="false"
9226   else
9227     case $cross_compiling:$ac_tool_warned in
9228 yes:)
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231 ac_tool_warned=yes ;;
9232 esac
9233     OBJDUMP=$ac_ct_OBJDUMP
9234   fi
9235 else
9236   OBJDUMP="$ac_cv_prog_OBJDUMP"
9237 fi
9238
9239   ;;
9240 esac
9241
9242 test -z "$AS" && AS=as
9243
9244
9245
9246
9247
9248 test -z "$DLLTOOL" && DLLTOOL=dlltool
9249
9250
9251
9252
9253
9254 test -z "$OBJDUMP" && OBJDUMP=objdump
9255
9256
9257
9258
9259
9260
9261
9262         enable_dlopen=no
9263
9264
9265
9266             # Check whether --enable-shared was given.
9267 if test "${enable_shared+set}" = set; then :
9268   enableval=$enable_shared; p=${PACKAGE-default}
9269     case $enableval in
9270     yes) enable_shared=yes ;;
9271     no) enable_shared=no ;;
9272     *)
9273       enable_shared=no
9274       # Look at the argument we got.  We use all the common list separators.
9275       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9276       for pkg in $enableval; do
9277         IFS=$lt_save_ifs
9278         if test "X$pkg" = "X$p"; then
9279           enable_shared=yes
9280         fi
9281       done
9282       IFS=$lt_save_ifs
9283       ;;
9284     esac
9285 else
9286   enable_shared=yes
9287 fi
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297   # Check whether --enable-static was given.
9298 if test "${enable_static+set}" = set; then :
9299   enableval=$enable_static; p=${PACKAGE-default}
9300     case $enableval in
9301     yes) enable_static=yes ;;
9302     no) enable_static=no ;;
9303     *)
9304      enable_static=no
9305       # Look at the argument we got.  We use all the common list separators.
9306       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9307       for pkg in $enableval; do
9308         IFS=$lt_save_ifs
9309         if test "X$pkg" = "X$p"; then
9310           enable_static=yes
9311         fi
9312       done
9313       IFS=$lt_save_ifs
9314       ;;
9315     esac
9316 else
9317   enable_static=yes
9318 fi
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 # Check whether --with-pic was given.
9330 if test "${with_pic+set}" = set; then :
9331   withval=$with_pic; lt_p=${PACKAGE-default}
9332     case $withval in
9333     yes|no) pic_mode=$withval ;;
9334     *)
9335       pic_mode=default
9336       # Look at the argument we got.  We use all the common list separators.
9337       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9338       for lt_pkg in $withval; do
9339         IFS=$lt_save_ifs
9340         if test "X$lt_pkg" = "X$lt_p"; then
9341           pic_mode=yes
9342         fi
9343       done
9344       IFS=$lt_save_ifs
9345       ;;
9346     esac
9347 else
9348   pic_mode=default
9349 fi
9350
9351
9352
9353
9354
9355
9356
9357
9358   # Check whether --enable-fast-install was given.
9359 if test "${enable_fast_install+set}" = set; then :
9360   enableval=$enable_fast_install; p=${PACKAGE-default}
9361     case $enableval in
9362     yes) enable_fast_install=yes ;;
9363     no) enable_fast_install=no ;;
9364     *)
9365       enable_fast_install=no
9366       # Look at the argument we got.  We use all the common list separators.
9367       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9368       for pkg in $enableval; do
9369         IFS=$lt_save_ifs
9370         if test "X$pkg" = "X$p"; then
9371           enable_fast_install=yes
9372         fi
9373       done
9374       IFS=$lt_save_ifs
9375       ;;
9376     esac
9377 else
9378   enable_fast_install=yes
9379 fi
9380
9381
9382
9383
9384
9385
9386
9387
9388   shared_archive_member_spec=
9389 case $host,$enable_shared in
9390 power*-*-aix[5-9]*,yes)
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9392 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9393
9394 # Check whether --with-aix-soname was given.
9395 if test "${with_aix_soname+set}" = set; then :
9396   withval=$with_aix_soname; case $withval in
9397     aix|svr4|both)
9398       ;;
9399     *)
9400       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9401       ;;
9402     esac
9403     lt_cv_with_aix_soname=$with_aix_soname
9404 else
9405   if ${lt_cv_with_aix_soname+:} false; then :
9406   $as_echo_n "(cached) " >&6
9407 else
9408   lt_cv_with_aix_soname=aix
9409 fi
9410
9411     with_aix_soname=$lt_cv_with_aix_soname
9412 fi
9413
9414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9415 $as_echo "$with_aix_soname" >&6; }
9416   if test aix != "$with_aix_soname"; then
9417     # For the AIX way of multilib, we name the shared archive member
9418     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9419     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9420     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9421     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9422     if test 64 = "${OBJECT_MODE-32}"; then
9423       shared_archive_member_spec=shr_64
9424     else
9425       shared_archive_member_spec=shr
9426     fi
9427   fi
9428   ;;
9429 *)
9430   with_aix_soname=aix
9431   ;;
9432 esac
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443 # This can be used to rebuild libtool when needed
9444 LIBTOOL_DEPS=$ltmain
9445
9446 # Always use our own libtool.
9447 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478 test -z "$LN_S" && LN_S="ln -s"
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493 if test -n "${ZSH_VERSION+set}"; then
9494    setopt NO_GLOB_SUBST
9495 fi
9496
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9498 $as_echo_n "checking for objdir... " >&6; }
9499 if ${lt_cv_objdir+:} false; then :
9500   $as_echo_n "(cached) " >&6
9501 else
9502   rm -f .libs 2>/dev/null
9503 mkdir .libs 2>/dev/null
9504 if test -d .libs; then
9505   lt_cv_objdir=.libs
9506 else
9507   # MS-DOS does not allow filenames that begin with a dot.
9508   lt_cv_objdir=_libs
9509 fi
9510 rmdir .libs 2>/dev/null
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9513 $as_echo "$lt_cv_objdir" >&6; }
9514 objdir=$lt_cv_objdir
9515
9516
9517
9518
9519
9520 cat >>confdefs.h <<_ACEOF
9521 #define LT_OBJDIR "$lt_cv_objdir/"
9522 _ACEOF
9523
9524
9525
9526
9527 case $host_os in
9528 aix3*)
9529   # AIX sometimes has problems with the GCC collect2 program.  For some
9530   # reason, if we set the COLLECT_NAMES environment variable, the problems
9531   # vanish in a puff of smoke.
9532   if test set != "${COLLECT_NAMES+set}"; then
9533     COLLECT_NAMES=
9534     export COLLECT_NAMES
9535   fi
9536   ;;
9537 esac
9538
9539 # Global variables:
9540 ofile=libtool
9541 can_build_shared=yes
9542
9543 # All known linkers require a '.a' archive for static linking (except MSVC,
9544 # which needs '.lib').
9545 libext=a
9546
9547 with_gnu_ld=$lt_cv_prog_gnu_ld
9548
9549 old_CC=$CC
9550 old_CFLAGS=$CFLAGS
9551
9552 # Set sane defaults for various variables
9553 test -z "$CC" && CC=cc
9554 test -z "$LTCC" && LTCC=$CC
9555 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9556 test -z "$LD" && LD=ld
9557 test -z "$ac_objext" && ac_objext=o
9558
9559 func_cc_basename $compiler
9560 cc_basename=$func_cc_basename_result
9561
9562
9563 # Only perform the check for file, if the check method requires it
9564 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9565 case $deplibs_check_method in
9566 file_magic*)
9567   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9569 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9570 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9571   $as_echo_n "(cached) " >&6
9572 else
9573   case $MAGIC_CMD in
9574 [\\/*] |  ?:[\\/]*)
9575   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9576   ;;
9577 *)
9578   lt_save_MAGIC_CMD=$MAGIC_CMD
9579   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9580   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9581   for ac_dir in $ac_dummy; do
9582     IFS=$lt_save_ifs
9583     test -z "$ac_dir" && ac_dir=.
9584     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9585       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9586       if test -n "$file_magic_test_file"; then
9587         case $deplibs_check_method in
9588         "file_magic "*)
9589           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9590           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9591           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9592             $EGREP "$file_magic_regex" > /dev/null; then
9593             :
9594           else
9595             cat <<_LT_EOF 1>&2
9596
9597 *** Warning: the command libtool uses to detect shared libraries,
9598 *** $file_magic_cmd, produces output that libtool cannot recognize.
9599 *** The result is that libtool may fail to recognize shared libraries
9600 *** as such.  This will affect the creation of libtool libraries that
9601 *** depend on shared libraries, but programs linked with such libtool
9602 *** libraries will work regardless of this problem.  Nevertheless, you
9603 *** may want to report the problem to your system manager and/or to
9604 *** bug-libtool@gnu.org
9605
9606 _LT_EOF
9607           fi ;;
9608         esac
9609       fi
9610       break
9611     fi
9612   done
9613   IFS=$lt_save_ifs
9614   MAGIC_CMD=$lt_save_MAGIC_CMD
9615   ;;
9616 esac
9617 fi
9618
9619 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9620 if test -n "$MAGIC_CMD"; then
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9622 $as_echo "$MAGIC_CMD" >&6; }
9623 else
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9626 fi
9627
9628
9629
9630
9631
9632 if test -z "$lt_cv_path_MAGIC_CMD"; then
9633   if test -n "$ac_tool_prefix"; then
9634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9635 $as_echo_n "checking for file... " >&6; }
9636 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9637   $as_echo_n "(cached) " >&6
9638 else
9639   case $MAGIC_CMD in
9640 [\\/*] |  ?:[\\/]*)
9641   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9642   ;;
9643 *)
9644   lt_save_MAGIC_CMD=$MAGIC_CMD
9645   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9646   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9647   for ac_dir in $ac_dummy; do
9648     IFS=$lt_save_ifs
9649     test -z "$ac_dir" && ac_dir=.
9650     if test -f "$ac_dir/file"; then
9651       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9652       if test -n "$file_magic_test_file"; then
9653         case $deplibs_check_method in
9654         "file_magic "*)
9655           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9656           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9657           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9658             $EGREP "$file_magic_regex" > /dev/null; then
9659             :
9660           else
9661             cat <<_LT_EOF 1>&2
9662
9663 *** Warning: the command libtool uses to detect shared libraries,
9664 *** $file_magic_cmd, produces output that libtool cannot recognize.
9665 *** The result is that libtool may fail to recognize shared libraries
9666 *** as such.  This will affect the creation of libtool libraries that
9667 *** depend on shared libraries, but programs linked with such libtool
9668 *** libraries will work regardless of this problem.  Nevertheless, you
9669 *** may want to report the problem to your system manager and/or to
9670 *** bug-libtool@gnu.org
9671
9672 _LT_EOF
9673           fi ;;
9674         esac
9675       fi
9676       break
9677     fi
9678   done
9679   IFS=$lt_save_ifs
9680   MAGIC_CMD=$lt_save_MAGIC_CMD
9681   ;;
9682 esac
9683 fi
9684
9685 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9686 if test -n "$MAGIC_CMD"; then
9687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9688 $as_echo "$MAGIC_CMD" >&6; }
9689 else
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9692 fi
9693
9694
9695   else
9696     MAGIC_CMD=:
9697   fi
9698 fi
9699
9700   fi
9701   ;;
9702 esac
9703
9704 # Use C for the default configuration in the libtool script
9705
9706 lt_save_CC=$CC
9707 ac_ext=c
9708 ac_cpp='$CPP $CPPFLAGS'
9709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9712
9713
9714 # Source file extension for C test sources.
9715 ac_ext=c
9716
9717 # Object file extension for compiled C test sources.
9718 objext=o
9719 objext=$objext
9720
9721 # Code to be used in simple compile tests
9722 lt_simple_compile_test_code="int some_variable = 0;"
9723
9724 # Code to be used in simple link tests
9725 lt_simple_link_test_code='int main(){return(0);}'
9726
9727
9728
9729
9730
9731
9732
9733 # If no C compiler was specified, use CC.
9734 LTCC=${LTCC-"$CC"}
9735
9736 # If no C compiler flags were specified, use CFLAGS.
9737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9738
9739 # Allow CC to be a program name with arguments.
9740 compiler=$CC
9741
9742 # Save the default compiler, since it gets overwritten when the other
9743 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9744 compiler_DEFAULT=$CC
9745
9746 # save warnings/boilerplate of simple test code
9747 ac_outfile=conftest.$ac_objext
9748 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9750 _lt_compiler_boilerplate=`cat conftest.err`
9751 $RM conftest*
9752
9753 ac_outfile=conftest.$ac_objext
9754 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9756 _lt_linker_boilerplate=`cat conftest.err`
9757 $RM -r conftest*
9758
9759
9760 ## CAVEAT EMPTOR:
9761 ## There is no encapsulation within the following macros, do not change
9762 ## the running order or otherwise move them around unless you know exactly
9763 ## what you are doing...
9764 if test -n "$compiler"; then
9765
9766 lt_prog_compiler_no_builtin_flag=
9767
9768 if test yes = "$GCC"; then
9769   case $cc_basename in
9770   nvcc*)
9771     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9772   *)
9773     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9774   esac
9775
9776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9777 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9778 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9779   $as_echo_n "(cached) " >&6
9780 else
9781   lt_cv_prog_compiler_rtti_exceptions=no
9782    ac_outfile=conftest.$ac_objext
9783    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9784    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9785    # Insert the option either (1) after the last *FLAGS variable, or
9786    # (2) before a word containing "conftest.", or (3) at the end.
9787    # Note that $ac_compile itself does not contain backslashes and begins
9788    # with a dollar sign (not a hyphen), so the echo should work correctly.
9789    # The option is referenced via a variable to avoid confusing sed.
9790    lt_compile=`echo "$ac_compile" | $SED \
9791    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9792    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9793    -e 's:$: $lt_compiler_flag:'`
9794    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9795    (eval "$lt_compile" 2>conftest.err)
9796    ac_status=$?
9797    cat conftest.err >&5
9798    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799    if (exit $ac_status) && test -s "$ac_outfile"; then
9800      # The compiler can only warn and ignore the option if not recognized
9801      # So say no if there are warnings other than the usual output.
9802      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9803      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9804      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9805        lt_cv_prog_compiler_rtti_exceptions=yes
9806      fi
9807    fi
9808    $RM conftest*
9809
9810 fi
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9812 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9813
9814 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9815     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9816 else
9817     :
9818 fi
9819
9820 fi
9821
9822
9823
9824
9825
9826
9827   lt_prog_compiler_wl=
9828 lt_prog_compiler_pic=
9829 lt_prog_compiler_static=
9830
9831
9832   if test yes = "$GCC"; then
9833     lt_prog_compiler_wl='-Wl,'
9834     lt_prog_compiler_static='-static'
9835
9836     case $host_os in
9837       aix*)
9838       # All AIX code is PIC.
9839       if test ia64 = "$host_cpu"; then
9840         # AIX 5 now supports IA64 processor
9841         lt_prog_compiler_static='-Bstatic'
9842       fi
9843       lt_prog_compiler_pic='-fPIC'
9844       ;;
9845
9846     amigaos*)
9847       case $host_cpu in
9848       powerpc)
9849             # see comment about AmigaOS4 .so support
9850             lt_prog_compiler_pic='-fPIC'
9851         ;;
9852       m68k)
9853             # FIXME: we need at least 68020 code to build shared libraries, but
9854             # adding the '-m68020' flag to GCC prevents building anything better,
9855             # like '-m68040'.
9856             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9857         ;;
9858       esac
9859       ;;
9860
9861     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9862       # PIC is the default for these OSes.
9863       ;;
9864
9865     mingw* | cygwin* | pw32* | os2* | cegcc*)
9866       # This hack is so that the source file can tell whether it is being
9867       # built for inclusion in a dll (and should export symbols for example).
9868       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9869       # (--disable-auto-import) libraries
9870       lt_prog_compiler_pic='-DDLL_EXPORT'
9871       case $host_os in
9872       os2*)
9873         lt_prog_compiler_static='$wl-static'
9874         ;;
9875       esac
9876       ;;
9877
9878     darwin* | rhapsody*)
9879       # PIC is the default on this platform
9880       # Common symbols not allowed in MH_DYLIB files
9881       lt_prog_compiler_pic='-fno-common'
9882       ;;
9883
9884     haiku*)
9885       # PIC is the default for Haiku.
9886       # The "-static" flag exists, but is broken.
9887       lt_prog_compiler_static=
9888       ;;
9889
9890     hpux*)
9891       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9892       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9893       # sets the default TLS model and affects inlining.
9894       case $host_cpu in
9895       hppa*64*)
9896         # +Z the default
9897         ;;
9898       *)
9899         lt_prog_compiler_pic='-fPIC'
9900         ;;
9901       esac
9902       ;;
9903
9904     interix[3-9]*)
9905       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9906       # Instead, we relocate shared libraries at runtime.
9907       ;;
9908
9909     msdosdjgpp*)
9910       # Just because we use GCC doesn't mean we suddenly get shared libraries
9911       # on systems that don't support them.
9912       lt_prog_compiler_can_build_shared=no
9913       enable_shared=no
9914       ;;
9915
9916     *nto* | *qnx*)
9917       # QNX uses GNU C++, but need to define -shared option too, otherwise
9918       # it will coredump.
9919       lt_prog_compiler_pic='-fPIC -shared'
9920       ;;
9921
9922     sysv4*MP*)
9923       if test -d /usr/nec; then
9924         lt_prog_compiler_pic=-Kconform_pic
9925       fi
9926       ;;
9927
9928     *)
9929       lt_prog_compiler_pic='-fPIC'
9930       ;;
9931     esac
9932
9933     case $cc_basename in
9934     nvcc*) # Cuda Compiler Driver 2.2
9935       lt_prog_compiler_wl='-Xlinker '
9936       if test -n "$lt_prog_compiler_pic"; then
9937         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9938       fi
9939       ;;
9940     esac
9941   else
9942     # PORTME Check for flag to pass linker flags through the system compiler.
9943     case $host_os in
9944     aix*)
9945       lt_prog_compiler_wl='-Wl,'
9946       if test ia64 = "$host_cpu"; then
9947         # AIX 5 now supports IA64 processor
9948         lt_prog_compiler_static='-Bstatic'
9949       else
9950         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9951       fi
9952       ;;
9953
9954     darwin* | rhapsody*)
9955       # PIC is the default on this platform
9956       # Common symbols not allowed in MH_DYLIB files
9957       lt_prog_compiler_pic='-fno-common'
9958       case $cc_basename in
9959       nagfor*)
9960         # NAG Fortran compiler
9961         lt_prog_compiler_wl='-Wl,-Wl,,'
9962         lt_prog_compiler_pic='-PIC'
9963         lt_prog_compiler_static='-Bstatic'
9964         ;;
9965       esac
9966       ;;
9967
9968     mingw* | cygwin* | pw32* | os2* | cegcc*)
9969       # This hack is so that the source file can tell whether it is being
9970       # built for inclusion in a dll (and should export symbols for example).
9971       lt_prog_compiler_pic='-DDLL_EXPORT'
9972       case $host_os in
9973       os2*)
9974         lt_prog_compiler_static='$wl-static'
9975         ;;
9976       esac
9977       ;;
9978
9979     hpux9* | hpux10* | hpux11*)
9980       lt_prog_compiler_wl='-Wl,'
9981       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9982       # not for PA HP-UX.
9983       case $host_cpu in
9984       hppa*64*|ia64*)
9985         # +Z the default
9986         ;;
9987       *)
9988         lt_prog_compiler_pic='+Z'
9989         ;;
9990       esac
9991       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9992       lt_prog_compiler_static='$wl-a ${wl}archive'
9993       ;;
9994
9995     irix5* | irix6* | nonstopux*)
9996       lt_prog_compiler_wl='-Wl,'
9997       # PIC (with -KPIC) is the default.
9998       lt_prog_compiler_static='-non_shared'
9999       ;;
10000
10001     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10002       case $cc_basename in
10003       # old Intel for x86_64, which still supported -KPIC.
10004       ecc*)
10005         lt_prog_compiler_wl='-Wl,'
10006         lt_prog_compiler_pic='-KPIC'
10007         lt_prog_compiler_static='-static'
10008         ;;
10009       # icc used to be incompatible with GCC.
10010       # ICC 10 doesn't accept -KPIC any more.
10011       icc* | ifort*)
10012         lt_prog_compiler_wl='-Wl,'
10013         lt_prog_compiler_pic='-fPIC'
10014         lt_prog_compiler_static='-static'
10015         ;;
10016       # Lahey Fortran 8.1.
10017       lf95*)
10018         lt_prog_compiler_wl='-Wl,'
10019         lt_prog_compiler_pic='--shared'
10020         lt_prog_compiler_static='--static'
10021         ;;
10022       nagfor*)
10023         # NAG Fortran compiler
10024         lt_prog_compiler_wl='-Wl,-Wl,,'
10025         lt_prog_compiler_pic='-PIC'
10026         lt_prog_compiler_static='-Bstatic'
10027         ;;
10028       tcc*)
10029         # Fabrice Bellard et al's Tiny C Compiler
10030         lt_prog_compiler_wl='-Wl,'
10031         lt_prog_compiler_pic='-fPIC'
10032         lt_prog_compiler_static='-static'
10033         ;;
10034       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10035         # Portland Group compilers (*not* the Pentium gcc compiler,
10036         # which looks to be a dead project)
10037         lt_prog_compiler_wl='-Wl,'
10038         lt_prog_compiler_pic='-fpic'
10039         lt_prog_compiler_static='-Bstatic'
10040         ;;
10041       ccc*)
10042         lt_prog_compiler_wl='-Wl,'
10043         # All Alpha code is PIC.
10044         lt_prog_compiler_static='-non_shared'
10045         ;;
10046       xl* | bgxl* | bgf* | mpixl*)
10047         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10048         lt_prog_compiler_wl='-Wl,'
10049         lt_prog_compiler_pic='-qpic'
10050         lt_prog_compiler_static='-qstaticlink'
10051         ;;
10052       *)
10053         case `$CC -V 2>&1 | sed 5q` in
10054         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10055           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10056           lt_prog_compiler_pic='-KPIC'
10057           lt_prog_compiler_static='-Bstatic'
10058           lt_prog_compiler_wl=''
10059           ;;
10060         *Sun\ F* | *Sun*Fortran*)
10061           lt_prog_compiler_pic='-KPIC'
10062           lt_prog_compiler_static='-Bstatic'
10063           lt_prog_compiler_wl='-Qoption ld '
10064           ;;
10065         *Sun\ C*)
10066           # Sun C 5.9
10067           lt_prog_compiler_pic='-KPIC'
10068           lt_prog_compiler_static='-Bstatic'
10069           lt_prog_compiler_wl='-Wl,'
10070           ;;
10071         *Intel*\ [CF]*Compiler*)
10072           lt_prog_compiler_wl='-Wl,'
10073           lt_prog_compiler_pic='-fPIC'
10074           lt_prog_compiler_static='-static'
10075           ;;
10076         *Portland\ Group*)
10077           lt_prog_compiler_wl='-Wl,'
10078           lt_prog_compiler_pic='-fpic'
10079           lt_prog_compiler_static='-Bstatic'
10080           ;;
10081         esac
10082         ;;
10083       esac
10084       ;;
10085
10086     newsos6)
10087       lt_prog_compiler_pic='-KPIC'
10088       lt_prog_compiler_static='-Bstatic'
10089       ;;
10090
10091     *nto* | *qnx*)
10092       # QNX uses GNU C++, but need to define -shared option too, otherwise
10093       # it will coredump.
10094       lt_prog_compiler_pic='-fPIC -shared'
10095       ;;
10096
10097     osf3* | osf4* | osf5*)
10098       lt_prog_compiler_wl='-Wl,'
10099       # All OSF/1 code is PIC.
10100       lt_prog_compiler_static='-non_shared'
10101       ;;
10102
10103     rdos*)
10104       lt_prog_compiler_static='-non_shared'
10105       ;;
10106
10107     solaris*)
10108       lt_prog_compiler_pic='-KPIC'
10109       lt_prog_compiler_static='-Bstatic'
10110       case $cc_basename in
10111       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10112         lt_prog_compiler_wl='-Qoption ld ';;
10113       *)
10114         lt_prog_compiler_wl='-Wl,';;
10115       esac
10116       ;;
10117
10118     sunos4*)
10119       lt_prog_compiler_wl='-Qoption ld '
10120       lt_prog_compiler_pic='-PIC'
10121       lt_prog_compiler_static='-Bstatic'
10122       ;;
10123
10124     sysv4 | sysv4.2uw2* | sysv4.3*)
10125       lt_prog_compiler_wl='-Wl,'
10126       lt_prog_compiler_pic='-KPIC'
10127       lt_prog_compiler_static='-Bstatic'
10128       ;;
10129
10130     sysv4*MP*)
10131       if test -d /usr/nec; then
10132         lt_prog_compiler_pic='-Kconform_pic'
10133         lt_prog_compiler_static='-Bstatic'
10134       fi
10135       ;;
10136
10137     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10138       lt_prog_compiler_wl='-Wl,'
10139       lt_prog_compiler_pic='-KPIC'
10140       lt_prog_compiler_static='-Bstatic'
10141       ;;
10142
10143     unicos*)
10144       lt_prog_compiler_wl='-Wl,'
10145       lt_prog_compiler_can_build_shared=no
10146       ;;
10147
10148     uts4*)
10149       lt_prog_compiler_pic='-pic'
10150       lt_prog_compiler_static='-Bstatic'
10151       ;;
10152
10153     *)
10154       lt_prog_compiler_can_build_shared=no
10155       ;;
10156     esac
10157   fi
10158
10159 case $host_os in
10160   # For platforms that do not support PIC, -DPIC is meaningless:
10161   *djgpp*)
10162     lt_prog_compiler_pic=
10163     ;;
10164   *)
10165     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10166     ;;
10167 esac
10168
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10170 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10171 if ${lt_cv_prog_compiler_pic+:} false; then :
10172   $as_echo_n "(cached) " >&6
10173 else
10174   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10175 fi
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10177 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10178 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10179
10180 #
10181 # Check to make sure the PIC flag actually works.
10182 #
10183 if test -n "$lt_prog_compiler_pic"; then
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10185 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10186 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10187   $as_echo_n "(cached) " >&6
10188 else
10189   lt_cv_prog_compiler_pic_works=no
10190    ac_outfile=conftest.$ac_objext
10191    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10192    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10193    # Insert the option either (1) after the last *FLAGS variable, or
10194    # (2) before a word containing "conftest.", or (3) at the end.
10195    # Note that $ac_compile itself does not contain backslashes and begins
10196    # with a dollar sign (not a hyphen), so the echo should work correctly.
10197    # The option is referenced via a variable to avoid confusing sed.
10198    lt_compile=`echo "$ac_compile" | $SED \
10199    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10200    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10201    -e 's:$: $lt_compiler_flag:'`
10202    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10203    (eval "$lt_compile" 2>conftest.err)
10204    ac_status=$?
10205    cat conftest.err >&5
10206    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207    if (exit $ac_status) && test -s "$ac_outfile"; then
10208      # The compiler can only warn and ignore the option if not recognized
10209      # So say no if there are warnings other than the usual output.
10210      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10211      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10212      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10213        lt_cv_prog_compiler_pic_works=yes
10214      fi
10215    fi
10216    $RM conftest*
10217
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10220 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10221
10222 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10223     case $lt_prog_compiler_pic in
10224      "" | " "*) ;;
10225      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10226      esac
10227 else
10228     lt_prog_compiler_pic=
10229      lt_prog_compiler_can_build_shared=no
10230 fi
10231
10232 fi
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244 #
10245 # Check to make sure the static flag actually works.
10246 #
10247 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10250 if ${lt_cv_prog_compiler_static_works+:} false; then :
10251   $as_echo_n "(cached) " >&6
10252 else
10253   lt_cv_prog_compiler_static_works=no
10254    save_LDFLAGS=$LDFLAGS
10255    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10256    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10257    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10258      # The linker can only warn and ignore the option if not recognized
10259      # So say no if there are warnings
10260      if test -s conftest.err; then
10261        # Append any errors to the config.log.
10262        cat conftest.err 1>&5
10263        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10264        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10265        if diff conftest.exp conftest.er2 >/dev/null; then
10266          lt_cv_prog_compiler_static_works=yes
10267        fi
10268      else
10269        lt_cv_prog_compiler_static_works=yes
10270      fi
10271    fi
10272    $RM -r conftest*
10273    LDFLAGS=$save_LDFLAGS
10274
10275 fi
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10277 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10278
10279 if test yes = "$lt_cv_prog_compiler_static_works"; then
10280     :
10281 else
10282     lt_prog_compiler_static=
10283 fi
10284
10285
10286
10287
10288
10289
10290
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10293 if ${lt_cv_prog_compiler_c_o+:} false; then :
10294   $as_echo_n "(cached) " >&6
10295 else
10296   lt_cv_prog_compiler_c_o=no
10297    $RM -r conftest 2>/dev/null
10298    mkdir conftest
10299    cd conftest
10300    mkdir out
10301    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10302
10303    lt_compiler_flag="-o out/conftest2.$ac_objext"
10304    # Insert the option either (1) after the last *FLAGS variable, or
10305    # (2) before a word containing "conftest.", or (3) at the end.
10306    # Note that $ac_compile itself does not contain backslashes and begins
10307    # with a dollar sign (not a hyphen), so the echo should work correctly.
10308    lt_compile=`echo "$ac_compile" | $SED \
10309    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10311    -e 's:$: $lt_compiler_flag:'`
10312    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10313    (eval "$lt_compile" 2>out/conftest.err)
10314    ac_status=$?
10315    cat out/conftest.err >&5
10316    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10318    then
10319      # The compiler can only warn and ignore the option if not recognized
10320      # So say no if there are warnings
10321      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10322      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10323      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10324        lt_cv_prog_compiler_c_o=yes
10325      fi
10326    fi
10327    chmod u+w . 2>&5
10328    $RM conftest*
10329    # SGI C++ compiler will create directory out/ii_files/ for
10330    # template instantiation
10331    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10332    $RM out/* && rmdir out
10333    cd ..
10334    $RM -r conftest
10335    $RM conftest*
10336
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10339 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10340
10341
10342
10343
10344
10345
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10347 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10348 if ${lt_cv_prog_compiler_c_o+:} false; then :
10349   $as_echo_n "(cached) " >&6
10350 else
10351   lt_cv_prog_compiler_c_o=no
10352    $RM -r conftest 2>/dev/null
10353    mkdir conftest
10354    cd conftest
10355    mkdir out
10356    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10357
10358    lt_compiler_flag="-o out/conftest2.$ac_objext"
10359    # Insert the option either (1) after the last *FLAGS variable, or
10360    # (2) before a word containing "conftest.", or (3) at the end.
10361    # Note that $ac_compile itself does not contain backslashes and begins
10362    # with a dollar sign (not a hyphen), so the echo should work correctly.
10363    lt_compile=`echo "$ac_compile" | $SED \
10364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10366    -e 's:$: $lt_compiler_flag:'`
10367    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10368    (eval "$lt_compile" 2>out/conftest.err)
10369    ac_status=$?
10370    cat out/conftest.err >&5
10371    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10373    then
10374      # The compiler can only warn and ignore the option if not recognized
10375      # So say no if there are warnings
10376      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10377      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10378      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10379        lt_cv_prog_compiler_c_o=yes
10380      fi
10381    fi
10382    chmod u+w . 2>&5
10383    $RM conftest*
10384    # SGI C++ compiler will create directory out/ii_files/ for
10385    # template instantiation
10386    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10387    $RM out/* && rmdir out
10388    cd ..
10389    $RM -r conftest
10390    $RM conftest*
10391
10392 fi
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10394 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10395
10396
10397
10398
10399 hard_links=nottested
10400 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10401   # do not overwrite the value of need_locks provided by the user
10402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10403 $as_echo_n "checking if we can lock with hard links... " >&6; }
10404   hard_links=yes
10405   $RM conftest*
10406   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10407   touch conftest.a
10408   ln conftest.a conftest.b 2>&5 || hard_links=no
10409   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10411 $as_echo "$hard_links" >&6; }
10412   if test no = "$hard_links"; then
10413     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10414 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10415     need_locks=warn
10416   fi
10417 else
10418   need_locks=no
10419 fi
10420
10421
10422
10423
10424
10425
10426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10427 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10428
10429   runpath_var=
10430   allow_undefined_flag=
10431   always_export_symbols=no
10432   archive_cmds=
10433   archive_expsym_cmds=
10434   compiler_needs_object=no
10435   enable_shared_with_static_runtimes=no
10436   export_dynamic_flag_spec=
10437   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10438   hardcode_automatic=no
10439   hardcode_direct=no
10440   hardcode_direct_absolute=no
10441   hardcode_libdir_flag_spec=
10442   hardcode_libdir_separator=
10443   hardcode_minus_L=no
10444   hardcode_shlibpath_var=unsupported
10445   inherit_rpath=no
10446   link_all_deplibs=unknown
10447   module_cmds=
10448   module_expsym_cmds=
10449   old_archive_from_new_cmds=
10450   old_archive_from_expsyms_cmds=
10451   thread_safe_flag_spec=
10452   whole_archive_flag_spec=
10453   # include_expsyms should be a list of space-separated symbols to be *always*
10454   # included in the symbol list
10455   include_expsyms=
10456   # exclude_expsyms can be an extended regexp of symbols to exclude
10457   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10458   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10459   # as well as any symbol that contains 'd'.
10460   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10461   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10462   # platforms (ab)use it in PIC code, but their linkers get confused if
10463   # the symbol is explicitly referenced.  Since portable code cannot
10464   # rely on this symbol name, it's probably fine to never include it in
10465   # preloaded symbol tables.
10466   # Exclude shared library initialization/finalization symbols.
10467   extract_expsyms_cmds=
10468
10469   case $host_os in
10470   cygwin* | mingw* | pw32* | cegcc*)
10471     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10472     # When not using gcc, we currently assume that we are using
10473     # Microsoft Visual C++.
10474     if test yes != "$GCC"; then
10475       with_gnu_ld=no
10476     fi
10477     ;;
10478   interix*)
10479     # we just hope/assume this is gcc and not c89 (= MSVC++)
10480     with_gnu_ld=yes
10481     ;;
10482   openbsd* | bitrig*)
10483     with_gnu_ld=no
10484     ;;
10485   esac
10486
10487   ld_shlibs=yes
10488
10489   # On some targets, GNU ld is compatible enough with the native linker
10490   # that we're better off using the native interface for both.
10491   lt_use_gnu_ld_interface=no
10492   if test yes = "$with_gnu_ld"; then
10493     case $host_os in
10494       aix*)
10495         # The AIX port of GNU ld has always aspired to compatibility
10496         # with the native linker.  However, as the warning in the GNU ld
10497         # block says, versions before 2.19.5* couldn't really create working
10498         # shared libraries, regardless of the interface used.
10499         case `$LD -v 2>&1` in
10500           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10501           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10502           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10503           *)
10504             lt_use_gnu_ld_interface=yes
10505             ;;
10506         esac
10507         ;;
10508       *)
10509         lt_use_gnu_ld_interface=yes
10510         ;;
10511     esac
10512   fi
10513
10514   if test yes = "$lt_use_gnu_ld_interface"; then
10515     # If archive_cmds runs LD, not CC, wlarc should be empty
10516     wlarc='$wl'
10517
10518     # Set some defaults for GNU ld with shared library support. These
10519     # are reset later if shared libraries are not supported. Putting them
10520     # here allows them to be overridden if necessary.
10521     runpath_var=LD_RUN_PATH
10522     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10523     export_dynamic_flag_spec='$wl--export-dynamic'
10524     # ancient GNU ld didn't support --whole-archive et. al.
10525     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10526       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10527     else
10528       whole_archive_flag_spec=
10529     fi
10530     supports_anon_versioning=no
10531     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10532       *GNU\ gold*) supports_anon_versioning=yes ;;
10533       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10534       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10535       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10536       *\ 2.11.*) ;; # other 2.11 versions
10537       *) supports_anon_versioning=yes ;;
10538     esac
10539
10540     # See if GNU ld supports shared libraries.
10541     case $host_os in
10542     aix[3-9]*)
10543       # On AIX/PPC, the GNU linker is very broken
10544       if test ia64 != "$host_cpu"; then
10545         ld_shlibs=no
10546         cat <<_LT_EOF 1>&2
10547
10548 *** Warning: the GNU linker, at least up to release 2.19, is reported
10549 *** to be unable to reliably create shared libraries on AIX.
10550 *** Therefore, libtool is disabling shared libraries support.  If you
10551 *** really care for shared libraries, you may want to install binutils
10552 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10553 *** You will then need to restart the configuration process.
10554
10555 _LT_EOF
10556       fi
10557       ;;
10558
10559     amigaos*)
10560       case $host_cpu in
10561       powerpc)
10562             # see comment about AmigaOS4 .so support
10563             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564             archive_expsym_cmds=''
10565         ;;
10566       m68k)
10567             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)'
10568             hardcode_libdir_flag_spec='-L$libdir'
10569             hardcode_minus_L=yes
10570         ;;
10571       esac
10572       ;;
10573
10574     beos*)
10575       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10576         allow_undefined_flag=unsupported
10577         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10578         # support --undefined.  This deserves some investigation.  FIXME
10579         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10580       else
10581         ld_shlibs=no
10582       fi
10583       ;;
10584
10585     cygwin* | mingw* | pw32* | cegcc*)
10586       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10587       # as there is no search path for DLLs.
10588       hardcode_libdir_flag_spec='-L$libdir'
10589       export_dynamic_flag_spec='$wl--export-all-symbols'
10590       allow_undefined_flag=unsupported
10591       always_export_symbols=no
10592       enable_shared_with_static_runtimes=yes
10593       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'
10594       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10595
10596       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10597         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10598         # If the export-symbols file already is a .def file, use it as
10599         # is; otherwise, prepend EXPORTS...
10600         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10601           cp $export_symbols $output_objdir/$soname.def;
10602         else
10603           echo EXPORTS > $output_objdir/$soname.def;
10604           cat $export_symbols >> $output_objdir/$soname.def;
10605         fi~
10606         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10607       else
10608         ld_shlibs=no
10609       fi
10610       ;;
10611
10612     haiku*)
10613       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10614       link_all_deplibs=yes
10615       ;;
10616
10617     os2*)
10618       hardcode_libdir_flag_spec='-L$libdir'
10619       hardcode_minus_L=yes
10620       allow_undefined_flag=unsupported
10621       shrext_cmds=.dll
10622       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10623         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10624         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10625         $ECHO EXPORTS >> $output_objdir/$libname.def~
10626         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $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       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10630         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10631         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10632         $ECHO EXPORTS >> $output_objdir/$libname.def~
10633         prefix_cmds="$SED"~
10634         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10635           prefix_cmds="$prefix_cmds -e 1d";
10636         fi~
10637         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10638         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10639         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10640         emximp -o $lib $output_objdir/$libname.def'
10641       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10642       enable_shared_with_static_runtimes=yes
10643       ;;
10644
10645     interix[3-9]*)
10646       hardcode_direct=no
10647       hardcode_shlibpath_var=no
10648       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10649       export_dynamic_flag_spec='$wl-E'
10650       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10651       # Instead, shared libraries are loaded at an image base (0x10000000 by
10652       # default) and relocated if they conflict, which is a slow very memory
10653       # consuming and fragmenting process.  To avoid this, we pick a random,
10654       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10655       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10656       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10657       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'
10658       ;;
10659
10660     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10661       tmp_diet=no
10662       if test linux-dietlibc = "$host_os"; then
10663         case $cc_basename in
10664           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10665         esac
10666       fi
10667       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10668          && test no = "$tmp_diet"
10669       then
10670         tmp_addflag=' $pic_flag'
10671         tmp_sharedflag='-shared'
10672         case $cc_basename,$host_cpu in
10673         pgcc*)                          # Portland Group C compiler
10674           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'
10675           tmp_addflag=' $pic_flag'
10676           ;;
10677         pgf77* | pgf90* | pgf95* | pgfortran*)
10678                                         # Portland Group f77 and f90 compilers
10679           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'
10680           tmp_addflag=' $pic_flag -Mnomain' ;;
10681         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10682           tmp_addflag=' -i_dynamic' ;;
10683         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10684           tmp_addflag=' -i_dynamic -nofor_main' ;;
10685         ifc* | ifort*)                  # Intel Fortran compiler
10686           tmp_addflag=' -nofor_main' ;;
10687         lf95*)                          # Lahey Fortran 8.1
10688           whole_archive_flag_spec=
10689           tmp_sharedflag='--shared' ;;
10690         nagfor*)                        # NAGFOR 5.3
10691           tmp_sharedflag='-Wl,-shared' ;;
10692         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10693           tmp_sharedflag='-qmkshrobj'
10694           tmp_addflag= ;;
10695         nvcc*)  # Cuda Compiler Driver 2.2
10696           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'
10697           compiler_needs_object=yes
10698           ;;
10699         esac
10700         case `$CC -V 2>&1 | sed 5q` in
10701         *Sun\ C*)                       # Sun C 5.9
10702           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'
10703           compiler_needs_object=yes
10704           tmp_sharedflag='-G' ;;
10705         *Sun\ F*)                       # Sun Fortran 8.3
10706           tmp_sharedflag='-G' ;;
10707         esac
10708         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10709
10710         if test yes = "$supports_anon_versioning"; then
10711           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10712             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10713             echo "local: *; };" >> $output_objdir/$libname.ver~
10714             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10715         fi
10716
10717         case $cc_basename in
10718         tcc*)
10719           export_dynamic_flag_spec='-rdynamic'
10720           ;;
10721         xlf* | bgf* | bgxlf* | mpixlf*)
10722           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10723           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10724           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10725           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10726           if test yes = "$supports_anon_versioning"; then
10727             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10728               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10729               echo "local: *; };" >> $output_objdir/$libname.ver~
10730               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10731           fi
10732           ;;
10733         esac
10734       else
10735         ld_shlibs=no
10736       fi
10737       ;;
10738
10739     netbsd*)
10740       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10741         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10742         wlarc=
10743       else
10744         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10745         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10746       fi
10747       ;;
10748
10749     solaris*)
10750       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10751         ld_shlibs=no
10752         cat <<_LT_EOF 1>&2
10753
10754 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10755 *** create shared libraries on Solaris systems.  Therefore, libtool
10756 *** is disabling shared libraries support.  We urge you to upgrade GNU
10757 *** binutils to release 2.9.1 or newer.  Another option is to modify
10758 *** your PATH or compiler configuration so that the native linker is
10759 *** used, and then restart.
10760
10761 _LT_EOF
10762       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10763         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10764         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10765       else
10766         ld_shlibs=no
10767       fi
10768       ;;
10769
10770     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10771       case `$LD -v 2>&1` in
10772         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10773         ld_shlibs=no
10774         cat <<_LT_EOF 1>&2
10775
10776 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10777 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10778 *** is disabling shared libraries support.  We urge you to upgrade GNU
10779 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10780 *** your PATH or compiler configuration so that the native linker is
10781 *** used, and then restart.
10782
10783 _LT_EOF
10784         ;;
10785         *)
10786           # For security reasons, it is highly recommended that you always
10787           # use absolute paths for naming shared libraries, and exclude the
10788           # DT_RUNPATH tag from executables and libraries.  But doing so
10789           # requires that you compile everything twice, which is a pain.
10790           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10791             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10792             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10793             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10794           else
10795             ld_shlibs=no
10796           fi
10797         ;;
10798       esac
10799       ;;
10800
10801     sunos4*)
10802       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10803       wlarc=
10804       hardcode_direct=yes
10805       hardcode_shlibpath_var=no
10806       ;;
10807
10808     *)
10809       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10810         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10811         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10812       else
10813         ld_shlibs=no
10814       fi
10815       ;;
10816     esac
10817
10818     if test no = "$ld_shlibs"; then
10819       runpath_var=
10820       hardcode_libdir_flag_spec=
10821       export_dynamic_flag_spec=
10822       whole_archive_flag_spec=
10823     fi
10824   else
10825     # PORTME fill in a description of your system's linker (not GNU ld)
10826     case $host_os in
10827     aix3*)
10828       allow_undefined_flag=unsupported
10829       always_export_symbols=yes
10830       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'
10831       # Note: this linker hardcodes the directories in LIBPATH if there
10832       # are no directories specified by -L.
10833       hardcode_minus_L=yes
10834       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10835         # Neither direct hardcoding nor static linking is supported with a
10836         # broken collect2.
10837         hardcode_direct=unsupported
10838       fi
10839       ;;
10840
10841     aix[4-9]*)
10842       if test ia64 = "$host_cpu"; then
10843         # On IA64, the linker does run time linking by default, so we don't
10844         # have to do anything special.
10845         aix_use_runtimelinking=no
10846         exp_sym_flag='-Bexport'
10847         no_entry_flag=
10848       else
10849         # If we're using GNU nm, then we don't want the "-C" option.
10850         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10851         # Without the "-l" option, or with the "-B" option, AIX nm treats
10852         # weak defined symbols like other global defined symbols, whereas
10853         # GNU nm marks them as "W".
10854         # While the 'weak' keyword is ignored in the Export File, we need
10855         # it in the Import File for the 'aix-soname' feature, so we have
10856         # to replace the "-B" option with "-P" for AIX nm.
10857         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10858           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'
10859         else
10860           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'
10861         fi
10862         aix_use_runtimelinking=no
10863
10864         # Test if we are trying to use run time linking or normal
10865         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10866         # have runtime linking enabled, and use it for executables.
10867         # For shared libraries, we enable/disable runtime linking
10868         # depending on the kind of the shared library created -
10869         # when "with_aix_soname,aix_use_runtimelinking" is:
10870         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10871         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10872         #            lib.a           static archive
10873         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10874         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10875         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10876         #            lib.a(lib.so.V) shared, rtl:no
10877         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10878         #            lib.a           static archive
10879         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10880           for ld_flag in $LDFLAGS; do
10881           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10882             aix_use_runtimelinking=yes
10883             break
10884           fi
10885           done
10886           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10887             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10888             # so we don't have lib.a shared libs to link our executables.
10889             # We have to force runtime linking in this case.
10890             aix_use_runtimelinking=yes
10891             LDFLAGS="$LDFLAGS -Wl,-brtl"
10892           fi
10893           ;;
10894         esac
10895
10896         exp_sym_flag='-bexport'
10897         no_entry_flag='-bnoentry'
10898       fi
10899
10900       # When large executables or shared objects are built, AIX ld can
10901       # have problems creating the table of contents.  If linking a library
10902       # or program results in "error TOC overflow" add -mminimal-toc to
10903       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10904       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10905
10906       archive_cmds=''
10907       hardcode_direct=yes
10908       hardcode_direct_absolute=yes
10909       hardcode_libdir_separator=':'
10910       link_all_deplibs=yes
10911       file_list_spec='$wl-f,'
10912       case $with_aix_soname,$aix_use_runtimelinking in
10913       aix,*) ;; # traditional, no import file
10914       svr4,* | *,yes) # use import file
10915         # The Import File defines what to hardcode.
10916         hardcode_direct=no
10917         hardcode_direct_absolute=no
10918         ;;
10919       esac
10920
10921       if test yes = "$GCC"; then
10922         case $host_os in aix4.[012]|aix4.[012].*)
10923         # We only want to do this on AIX 4.2 and lower, the check
10924         # below for broken collect2 doesn't work under 4.3+
10925           collect2name=`$CC -print-prog-name=collect2`
10926           if test -f "$collect2name" &&
10927            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10928           then
10929           # We have reworked collect2
10930           :
10931           else
10932           # We have old collect2
10933           hardcode_direct=unsupported
10934           # It fails to find uninstalled libraries when the uninstalled
10935           # path is not listed in the libpath.  Setting hardcode_minus_L
10936           # to unsupported forces relinking
10937           hardcode_minus_L=yes
10938           hardcode_libdir_flag_spec='-L$libdir'
10939           hardcode_libdir_separator=
10940           fi
10941           ;;
10942         esac
10943         shared_flag='-shared'
10944         if test yes = "$aix_use_runtimelinking"; then
10945           shared_flag="$shared_flag "'$wl-G'
10946         fi
10947         # Need to ensure runtime linking is disabled for the traditional
10948         # shared library, or the linker may eventually find shared libraries
10949         # /with/ Import File - we do not want to mix them.
10950         shared_flag_aix='-shared'
10951         shared_flag_svr4='-shared $wl-G'
10952       else
10953         # not using gcc
10954         if test ia64 = "$host_cpu"; then
10955         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10956         # chokes on -Wl,-G. The following line is correct:
10957           shared_flag='-G'
10958         else
10959           if test yes = "$aix_use_runtimelinking"; then
10960             shared_flag='$wl-G'
10961           else
10962             shared_flag='$wl-bM:SRE'
10963           fi
10964           shared_flag_aix='$wl-bM:SRE'
10965           shared_flag_svr4='$wl-G'
10966         fi
10967       fi
10968
10969       export_dynamic_flag_spec='$wl-bexpall'
10970       # It seems that -bexpall does not export symbols beginning with
10971       # underscore (_), so it is better to generate a list of symbols to export.
10972       always_export_symbols=yes
10973       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10974         # Warning - without using the other runtime loading flags (-brtl),
10975         # -berok will link without error, but may produce a broken library.
10976         allow_undefined_flag='-berok'
10977         # Determine the default libpath from the value encoded in an
10978         # empty executable.
10979         if test set = "${lt_cv_aix_libpath+set}"; then
10980   aix_libpath=$lt_cv_aix_libpath
10981 else
10982   if ${lt_cv_aix_libpath_+:} false; then :
10983   $as_echo_n "(cached) " >&6
10984 else
10985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h.  */
10987
10988 int
10989 main ()
10990 {
10991
10992   ;
10993   return 0;
10994 }
10995 _ACEOF
10996 if ac_fn_c_try_link "$LINENO"; then :
10997
10998   lt_aix_libpath_sed='
10999       /Import File Strings/,/^$/ {
11000           /^0/ {
11001               s/^0  *\([^ ]*\) *$/\1/
11002               p
11003           }
11004       }'
11005   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11006   # Check for a 64-bit object if we didn't find anything.
11007   if test -z "$lt_cv_aix_libpath_"; then
11008     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11009   fi
11010 fi
11011 rm -f core conftest.err conftest.$ac_objext \
11012     conftest$ac_exeext conftest.$ac_ext
11013   if test -z "$lt_cv_aix_libpath_"; then
11014     lt_cv_aix_libpath_=/usr/lib:/lib
11015   fi
11016
11017 fi
11018
11019   aix_libpath=$lt_cv_aix_libpath_
11020 fi
11021
11022         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11023         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
11024       else
11025         if test ia64 = "$host_cpu"; then
11026           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11027           allow_undefined_flag="-z nodefs"
11028           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"
11029         else
11030          # Determine the default libpath from the value encoded in an
11031          # empty executable.
11032          if test set = "${lt_cv_aix_libpath+set}"; then
11033   aix_libpath=$lt_cv_aix_libpath
11034 else
11035   if ${lt_cv_aix_libpath_+:} false; then :
11036   $as_echo_n "(cached) " >&6
11037 else
11038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h.  */
11040
11041 int
11042 main ()
11043 {
11044
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050
11051   lt_aix_libpath_sed='
11052       /Import File Strings/,/^$/ {
11053           /^0/ {
11054               s/^0  *\([^ ]*\) *$/\1/
11055               p
11056           }
11057       }'
11058   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11059   # Check for a 64-bit object if we didn't find anything.
11060   if test -z "$lt_cv_aix_libpath_"; then
11061     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11062   fi
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext \
11065     conftest$ac_exeext conftest.$ac_ext
11066   if test -z "$lt_cv_aix_libpath_"; then
11067     lt_cv_aix_libpath_=/usr/lib:/lib
11068   fi
11069
11070 fi
11071
11072   aix_libpath=$lt_cv_aix_libpath_
11073 fi
11074
11075          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11076           # Warning - without using the other run time loading flags,
11077           # -berok will link without error, but may produce a broken library.
11078           no_undefined_flag=' $wl-bernotok'
11079           allow_undefined_flag=' $wl-berok'
11080           if test yes = "$with_gnu_ld"; then
11081             # We only use this code for GNU lds that support --whole-archive.
11082             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11083           else
11084             # Exported symbols can be pulled into shared objects from archives
11085             whole_archive_flag_spec='$convenience'
11086           fi
11087           archive_cmds_need_lc=yes
11088           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11089           # -brtl affects multiple linker settings, -berok does not and is overridden later
11090           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11091           if test svr4 != "$with_aix_soname"; then
11092             # This is similar to how AIX traditionally builds its shared libraries.
11093             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'
11094           fi
11095           if test aix != "$with_aix_soname"; then
11096             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'
11097           else
11098             # used by -dlpreopen to get the symbols
11099             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11100           fi
11101           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11102         fi
11103       fi
11104       ;;
11105
11106     amigaos*)
11107       case $host_cpu in
11108       powerpc)
11109             # see comment about AmigaOS4 .so support
11110             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11111             archive_expsym_cmds=''
11112         ;;
11113       m68k)
11114             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)'
11115             hardcode_libdir_flag_spec='-L$libdir'
11116             hardcode_minus_L=yes
11117         ;;
11118       esac
11119       ;;
11120
11121     bsdi[45]*)
11122       export_dynamic_flag_spec=-rdynamic
11123       ;;
11124
11125     cygwin* | mingw* | pw32* | cegcc*)
11126       # When not using gcc, we currently assume that we are using
11127       # Microsoft Visual C++.
11128       # hardcode_libdir_flag_spec is actually meaningless, as there is
11129       # no search path for DLLs.
11130       case $cc_basename in
11131       cl*)
11132         # Native MSVC
11133         hardcode_libdir_flag_spec=' '
11134         allow_undefined_flag=unsupported
11135         always_export_symbols=yes
11136         file_list_spec='@'
11137         # Tell ltmain to make .lib files, not .a files.
11138         libext=lib
11139         # Tell ltmain to make .dll files, not .so files.
11140         shrext_cmds=.dll
11141         # FIXME: Setting linknames here is a bad hack.
11142         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11143         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11144             cp "$export_symbols" "$output_objdir/$soname.def";
11145             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11146           else
11147             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11148           fi~
11149           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11150           linknames='
11151         # The linker will not automatically build a static lib if we build a DLL.
11152         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11153         enable_shared_with_static_runtimes=yes
11154         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11155         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11156         # Don't use ranlib
11157         old_postinstall_cmds='chmod 644 $oldlib'
11158         postlink_cmds='lt_outputfile="@OUTPUT@"~
11159           lt_tool_outputfile="@TOOL_OUTPUT@"~
11160           case $lt_outputfile in
11161             *.exe|*.EXE) ;;
11162             *)
11163               lt_outputfile=$lt_outputfile.exe
11164               lt_tool_outputfile=$lt_tool_outputfile.exe
11165               ;;
11166           esac~
11167           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11168             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11169             $RM "$lt_outputfile.manifest";
11170           fi'
11171         ;;
11172       *)
11173         # Assume MSVC wrapper
11174         hardcode_libdir_flag_spec=' '
11175         allow_undefined_flag=unsupported
11176         # Tell ltmain to make .lib files, not .a files.
11177         libext=lib
11178         # Tell ltmain to make .dll files, not .so files.
11179         shrext_cmds=.dll
11180         # FIXME: Setting linknames here is a bad hack.
11181         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11182         # The linker will automatically build a .lib file if we build a DLL.
11183         old_archive_from_new_cmds='true'
11184         # FIXME: Should let the user specify the lib program.
11185         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11186         enable_shared_with_static_runtimes=yes
11187         ;;
11188       esac
11189       ;;
11190
11191     darwin* | rhapsody*)
11192
11193
11194   archive_cmds_need_lc=no
11195   hardcode_direct=no
11196   hardcode_automatic=yes
11197   hardcode_shlibpath_var=unsupported
11198   if test yes = "$lt_cv_ld_force_load"; then
11199     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\"`'
11200
11201   else
11202     whole_archive_flag_spec=''
11203   fi
11204   link_all_deplibs=yes
11205   allow_undefined_flag=$_lt_dar_allow_undefined
11206   case $cc_basename in
11207      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11208      *) _lt_dar_can_shared=$GCC ;;
11209   esac
11210   if test yes = "$_lt_dar_can_shared"; then
11211     output_verbose_link_cmd=func_echo_all
11212     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11213     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11214     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"
11215     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"
11216
11217   else
11218   ld_shlibs=no
11219   fi
11220
11221       ;;
11222
11223     dgux*)
11224       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11225       hardcode_libdir_flag_spec='-L$libdir'
11226       hardcode_shlibpath_var=no
11227       ;;
11228
11229     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11230     # support.  Future versions do this automatically, but an explicit c++rt0.o
11231     # does not break anything, and helps significantly (at the cost of a little
11232     # extra space).
11233     freebsd2.2*)
11234       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11235       hardcode_libdir_flag_spec='-R$libdir'
11236       hardcode_direct=yes
11237       hardcode_shlibpath_var=no
11238       ;;
11239
11240     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11241     freebsd2.*)
11242       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11243       hardcode_direct=yes
11244       hardcode_minus_L=yes
11245       hardcode_shlibpath_var=no
11246       ;;
11247
11248     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11249     freebsd* | dragonfly*)
11250       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11251       hardcode_libdir_flag_spec='-R$libdir'
11252       hardcode_direct=yes
11253       hardcode_shlibpath_var=no
11254       ;;
11255
11256     hpux9*)
11257       if test yes = "$GCC"; then
11258         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'
11259       else
11260         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'
11261       fi
11262       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11263       hardcode_libdir_separator=:
11264       hardcode_direct=yes
11265
11266       # hardcode_minus_L: Not really in the search PATH,
11267       # but as the default location of the library.
11268       hardcode_minus_L=yes
11269       export_dynamic_flag_spec='$wl-E'
11270       ;;
11271
11272     hpux10*)
11273       if test yes,no = "$GCC,$with_gnu_ld"; then
11274         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11275       else
11276         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11277       fi
11278       if test no = "$with_gnu_ld"; then
11279         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11280         hardcode_libdir_separator=:
11281         hardcode_direct=yes
11282         hardcode_direct_absolute=yes
11283         export_dynamic_flag_spec='$wl-E'
11284         # hardcode_minus_L: Not really in the search PATH,
11285         # but as the default location of the library.
11286         hardcode_minus_L=yes
11287       fi
11288       ;;
11289
11290     hpux11*)
11291       if test yes,no = "$GCC,$with_gnu_ld"; then
11292         case $host_cpu in
11293         hppa*64*)
11294           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11295           ;;
11296         ia64*)
11297           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11298           ;;
11299         *)
11300           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11301           ;;
11302         esac
11303       else
11304         case $host_cpu in
11305         hppa*64*)
11306           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11307           ;;
11308         ia64*)
11309           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11310           ;;
11311         *)
11312
11313           # Older versions of the 11.00 compiler do not understand -b yet
11314           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11315           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11316 $as_echo_n "checking if $CC understands -b... " >&6; }
11317 if ${lt_cv_prog_compiler__b+:} false; then :
11318   $as_echo_n "(cached) " >&6
11319 else
11320   lt_cv_prog_compiler__b=no
11321    save_LDFLAGS=$LDFLAGS
11322    LDFLAGS="$LDFLAGS -b"
11323    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11324    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11325      # The linker can only warn and ignore the option if not recognized
11326      # So say no if there are warnings
11327      if test -s conftest.err; then
11328        # Append any errors to the config.log.
11329        cat conftest.err 1>&5
11330        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11331        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11332        if diff conftest.exp conftest.er2 >/dev/null; then
11333          lt_cv_prog_compiler__b=yes
11334        fi
11335      else
11336        lt_cv_prog_compiler__b=yes
11337      fi
11338    fi
11339    $RM -r conftest*
11340    LDFLAGS=$save_LDFLAGS
11341
11342 fi
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11344 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11345
11346 if test yes = "$lt_cv_prog_compiler__b"; then
11347     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11348 else
11349     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11350 fi
11351
11352           ;;
11353         esac
11354       fi
11355       if test no = "$with_gnu_ld"; then
11356         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11357         hardcode_libdir_separator=:
11358
11359         case $host_cpu in
11360         hppa*64*|ia64*)
11361           hardcode_direct=no
11362           hardcode_shlibpath_var=no
11363           ;;
11364         *)
11365           hardcode_direct=yes
11366           hardcode_direct_absolute=yes
11367           export_dynamic_flag_spec='$wl-E'
11368
11369           # hardcode_minus_L: Not really in the search PATH,
11370           # but as the default location of the library.
11371           hardcode_minus_L=yes
11372           ;;
11373         esac
11374       fi
11375       ;;
11376
11377     irix5* | irix6* | nonstopux*)
11378       if test yes = "$GCC"; then
11379         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'
11380         # Try to use the -exported_symbol ld option, if it does not
11381         # work, assume that -exports_file does not work either and
11382         # implicitly export all symbols.
11383         # This should be the same for all languages, so no per-tag cache variable.
11384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11385 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11386 if ${lt_cv_irix_exported_symbol+:} false; then :
11387   $as_echo_n "(cached) " >&6
11388 else
11389   save_LDFLAGS=$LDFLAGS
11390            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11391            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h.  */
11393 int foo (void) { return 0; }
11394 _ACEOF
11395 if ac_fn_c_try_link "$LINENO"; then :
11396   lt_cv_irix_exported_symbol=yes
11397 else
11398   lt_cv_irix_exported_symbol=no
11399 fi
11400 rm -f core conftest.err conftest.$ac_objext \
11401     conftest$ac_exeext conftest.$ac_ext
11402            LDFLAGS=$save_LDFLAGS
11403 fi
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11405 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11406         if test yes = "$lt_cv_irix_exported_symbol"; then
11407           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'
11408         fi
11409       else
11410         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'
11411         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'
11412       fi
11413       archive_cmds_need_lc='no'
11414       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11415       hardcode_libdir_separator=:
11416       inherit_rpath=yes
11417       link_all_deplibs=yes
11418       ;;
11419
11420     linux*)
11421       case $cc_basename in
11422       tcc*)
11423         # Fabrice Bellard et al's Tiny C Compiler
11424         ld_shlibs=yes
11425         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11426         ;;
11427       esac
11428       ;;
11429
11430     netbsd*)
11431       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11432         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11433       else
11434         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11435       fi
11436       hardcode_libdir_flag_spec='-R$libdir'
11437       hardcode_direct=yes
11438       hardcode_shlibpath_var=no
11439       ;;
11440
11441     newsos6)
11442       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11443       hardcode_direct=yes
11444       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11445       hardcode_libdir_separator=:
11446       hardcode_shlibpath_var=no
11447       ;;
11448
11449     *nto* | *qnx*)
11450       ;;
11451
11452     openbsd* | bitrig*)
11453       if test -f /usr/libexec/ld.so; then
11454         hardcode_direct=yes
11455         hardcode_shlibpath_var=no
11456         hardcode_direct_absolute=yes
11457         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11458           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11459           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11460           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11461           export_dynamic_flag_spec='$wl-E'
11462         else
11463           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11464           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11465         fi
11466       else
11467         ld_shlibs=no
11468       fi
11469       ;;
11470
11471     os2*)
11472       hardcode_libdir_flag_spec='-L$libdir'
11473       hardcode_minus_L=yes
11474       allow_undefined_flag=unsupported
11475       shrext_cmds=.dll
11476       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11477         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11478         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11479         $ECHO EXPORTS >> $output_objdir/$libname.def~
11480         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $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       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11484         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11485         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11486         $ECHO EXPORTS >> $output_objdir/$libname.def~
11487         prefix_cmds="$SED"~
11488         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11489           prefix_cmds="$prefix_cmds -e 1d";
11490         fi~
11491         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11492         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11493         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11494         emximp -o $lib $output_objdir/$libname.def'
11495       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11496       enable_shared_with_static_runtimes=yes
11497       ;;
11498
11499     osf3*)
11500       if test yes = "$GCC"; then
11501         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11502         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'
11503       else
11504         allow_undefined_flag=' -expect_unresolved \*'
11505         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'
11506       fi
11507       archive_cmds_need_lc='no'
11508       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11509       hardcode_libdir_separator=:
11510       ;;
11511
11512     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11513       if test yes = "$GCC"; then
11514         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11515         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'
11516         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11517       else
11518         allow_undefined_flag=' -expect_unresolved \*'
11519         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'
11520         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~
11521           $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'
11522
11523         # Both c and cxx compiler support -rpath directly
11524         hardcode_libdir_flag_spec='-rpath $libdir'
11525       fi
11526       archive_cmds_need_lc='no'
11527       hardcode_libdir_separator=:
11528       ;;
11529
11530     solaris*)
11531       no_undefined_flag=' -z defs'
11532       if test yes = "$GCC"; then
11533         wlarc='$wl'
11534         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11535         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11536           $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'
11537       else
11538         case `$CC -V 2>&1` in
11539         *"Compilers 5.0"*)
11540           wlarc=''
11541           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11542           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11543             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11544           ;;
11545         *)
11546           wlarc='$wl'
11547           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11548           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11549             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11550           ;;
11551         esac
11552       fi
11553       hardcode_libdir_flag_spec='-R$libdir'
11554       hardcode_shlibpath_var=no
11555       case $host_os in
11556       solaris2.[0-5] | solaris2.[0-5].*) ;;
11557       *)
11558         # The compiler driver will combine and reorder linker options,
11559         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11560         # but is careful enough not to reorder.
11561         # Supported since Solaris 2.6 (maybe 2.5.1?)
11562         if test yes = "$GCC"; then
11563           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11564         else
11565           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11566         fi
11567         ;;
11568       esac
11569       link_all_deplibs=yes
11570       ;;
11571
11572     sunos4*)
11573       if test sequent = "$host_vendor"; then
11574         # Use $CC to link under sequent, because it throws in some extra .o
11575         # files that make .init and .fini sections work.
11576         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11577       else
11578         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11579       fi
11580       hardcode_libdir_flag_spec='-L$libdir'
11581       hardcode_direct=yes
11582       hardcode_minus_L=yes
11583       hardcode_shlibpath_var=no
11584       ;;
11585
11586     sysv4)
11587       case $host_vendor in
11588         sni)
11589           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11590           hardcode_direct=yes # is this really true???
11591         ;;
11592         siemens)
11593           ## LD is ld it makes a PLAMLIB
11594           ## CC just makes a GrossModule.
11595           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11596           reload_cmds='$CC -r -o $output$reload_objs'
11597           hardcode_direct=no
11598         ;;
11599         motorola)
11600           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11601           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11602         ;;
11603       esac
11604       runpath_var='LD_RUN_PATH'
11605       hardcode_shlibpath_var=no
11606       ;;
11607
11608     sysv4.3*)
11609       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11610       hardcode_shlibpath_var=no
11611       export_dynamic_flag_spec='-Bexport'
11612       ;;
11613
11614     sysv4*MP*)
11615       if test -d /usr/nec; then
11616         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11617         hardcode_shlibpath_var=no
11618         runpath_var=LD_RUN_PATH
11619         hardcode_runpath_var=yes
11620         ld_shlibs=yes
11621       fi
11622       ;;
11623
11624     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11625       no_undefined_flag='$wl-z,text'
11626       archive_cmds_need_lc=no
11627       hardcode_shlibpath_var=no
11628       runpath_var='LD_RUN_PATH'
11629
11630       if test yes = "$GCC"; then
11631         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11632         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11633       else
11634         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11635         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11636       fi
11637       ;;
11638
11639     sysv5* | sco3.2v5* | sco5v6*)
11640       # Note: We CANNOT use -z defs as we might desire, because we do not
11641       # link with -lc, and that would cause any symbols used from libc to
11642       # always be unresolved, which means just about no library would
11643       # ever link correctly.  If we're not using GNU ld we use -z text
11644       # though, which does catch some bad symbols but isn't as heavy-handed
11645       # as -z defs.
11646       no_undefined_flag='$wl-z,text'
11647       allow_undefined_flag='$wl-z,nodefs'
11648       archive_cmds_need_lc=no
11649       hardcode_shlibpath_var=no
11650       hardcode_libdir_flag_spec='$wl-R,$libdir'
11651       hardcode_libdir_separator=':'
11652       link_all_deplibs=yes
11653       export_dynamic_flag_spec='$wl-Bexport'
11654       runpath_var='LD_RUN_PATH'
11655
11656       if test yes = "$GCC"; then
11657         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11658         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11659       else
11660         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11661         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11662       fi
11663       ;;
11664
11665     uts4*)
11666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11667       hardcode_libdir_flag_spec='-L$libdir'
11668       hardcode_shlibpath_var=no
11669       ;;
11670
11671     *)
11672       ld_shlibs=no
11673       ;;
11674     esac
11675
11676     if test sni = "$host_vendor"; then
11677       case $host in
11678       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11679         export_dynamic_flag_spec='$wl-Blargedynsym'
11680         ;;
11681       esac
11682     fi
11683   fi
11684
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11686 $as_echo "$ld_shlibs" >&6; }
11687 test no = "$ld_shlibs" && can_build_shared=no
11688
11689 with_gnu_ld=$with_gnu_ld
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705 #
11706 # Do we need to explicitly link libc?
11707 #
11708 case "x$archive_cmds_need_lc" in
11709 x|xyes)
11710   # Assume -lc should be added
11711   archive_cmds_need_lc=yes
11712
11713   if test yes,yes = "$GCC,$enable_shared"; then
11714     case $archive_cmds in
11715     *'~'*)
11716       # FIXME: we may have to deal with multi-command sequences.
11717       ;;
11718     '$CC '*)
11719       # Test whether the compiler implicitly links with -lc since on some
11720       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11721       # to ld, don't add -lc before -lgcc.
11722       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11723 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11724 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11725   $as_echo_n "(cached) " >&6
11726 else
11727   $RM conftest*
11728         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11729
11730         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11731   (eval $ac_compile) 2>&5
11732   ac_status=$?
11733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734   test $ac_status = 0; } 2>conftest.err; then
11735           soname=conftest
11736           lib=conftest
11737           libobjs=conftest.$ac_objext
11738           deplibs=
11739           wl=$lt_prog_compiler_wl
11740           pic_flag=$lt_prog_compiler_pic
11741           compiler_flags=-v
11742           linker_flags=-v
11743           verstring=
11744           output_objdir=.
11745           libname=conftest
11746           lt_save_allow_undefined_flag=$allow_undefined_flag
11747           allow_undefined_flag=
11748           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11749   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11750   ac_status=$?
11751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11752   test $ac_status = 0; }
11753           then
11754             lt_cv_archive_cmds_need_lc=no
11755           else
11756             lt_cv_archive_cmds_need_lc=yes
11757           fi
11758           allow_undefined_flag=$lt_save_allow_undefined_flag
11759         else
11760           cat conftest.err 1>&5
11761         fi
11762         $RM conftest*
11763
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11766 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11767       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11768       ;;
11769     esac
11770   fi
11771   ;;
11772 esac
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
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11926 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11927
11928 if test yes = "$GCC"; then
11929   case $host_os in
11930     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11931     *) lt_awk_arg='/^libraries:/' ;;
11932   esac
11933   case $host_os in
11934     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11935     *) lt_sed_strip_eq='s|=/|/|g' ;;
11936   esac
11937   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11938   case $lt_search_path_spec in
11939   *\;*)
11940     # if the path contains ";" then we assume it to be the separator
11941     # otherwise default to the standard path separator (i.e. ":") - it is
11942     # assumed that no part of a normal pathname contains ";" but that should
11943     # okay in the real world where ";" in dirpaths is itself problematic.
11944     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11945     ;;
11946   *)
11947     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11948     ;;
11949   esac
11950   # Ok, now we have the path, separated by spaces, we can step through it
11951   # and add multilib dir if necessary...
11952   lt_tmp_lt_search_path_spec=
11953   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11954   # ...but if some path component already ends with the multilib dir we assume
11955   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11956   case "$lt_multi_os_dir; $lt_search_path_spec " in
11957   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11958     lt_multi_os_dir=
11959     ;;
11960   esac
11961   for lt_sys_path in $lt_search_path_spec; do
11962     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11963       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11964     elif test -n "$lt_multi_os_dir"; then
11965       test -d "$lt_sys_path" && \
11966         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11967     fi
11968   done
11969   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11970 BEGIN {RS = " "; FS = "/|\n";} {
11971   lt_foo = "";
11972   lt_count = 0;
11973   for (lt_i = NF; lt_i > 0; lt_i--) {
11974     if ($lt_i != "" && $lt_i != ".") {
11975       if ($lt_i == "..") {
11976         lt_count++;
11977       } else {
11978         if (lt_count == 0) {
11979           lt_foo = "/" $lt_i lt_foo;
11980         } else {
11981           lt_count--;
11982         }
11983       }
11984     }
11985   }
11986   if (lt_foo != "") { lt_freq[lt_foo]++; }
11987   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11988 }'`
11989   # AWK program above erroneously prepends '/' to C:/dos/paths
11990   # for these hosts.
11991   case $host_os in
11992     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11993       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11994   esac
11995   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11996 else
11997   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11998 fi
11999 library_names_spec=
12000 libname_spec='lib$name'
12001 soname_spec=
12002 shrext_cmds=.so
12003 postinstall_cmds=
12004 postuninstall_cmds=
12005 finish_cmds=
12006 finish_eval=
12007 shlibpath_var=
12008 shlibpath_overrides_runpath=unknown
12009 version_type=none
12010 dynamic_linker="$host_os ld.so"
12011 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12012 need_lib_prefix=unknown
12013 hardcode_into_libs=no
12014
12015 # when you set need_version to no, make sure it does not cause -set_version
12016 # flags to be left without arguments
12017 need_version=unknown
12018
12019
12020
12021 case $host_os in
12022 aix3*)
12023   version_type=linux # correct to gnu/linux during the next big refactor
12024   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12025   shlibpath_var=LIBPATH
12026
12027   # AIX 3 has no versioning support, so we append a major version to the name.
12028   soname_spec='$libname$release$shared_ext$major'
12029   ;;
12030
12031 aix[4-9]*)
12032   version_type=linux # correct to gnu/linux during the next big refactor
12033   need_lib_prefix=no
12034   need_version=no
12035   hardcode_into_libs=yes
12036   if test ia64 = "$host_cpu"; then
12037     # AIX 5 supports IA64
12038     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12039     shlibpath_var=LD_LIBRARY_PATH
12040   else
12041     # With GCC up to 2.95.x, collect2 would create an import file
12042     # for dependence libraries.  The import file would start with
12043     # the line '#! .'.  This would cause the generated library to
12044     # depend on '.', always an invalid library.  This was fixed in
12045     # development snapshots of GCC prior to 3.0.
12046     case $host_os in
12047       aix4 | aix4.[01] | aix4.[01].*)
12048       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12049            echo ' yes '
12050            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12051         :
12052       else
12053         can_build_shared=no
12054       fi
12055       ;;
12056     esac
12057     # Using Import Files as archive members, it is possible to support
12058     # filename-based versioning of shared library archives on AIX. While
12059     # this would work for both with and without runtime linking, it will
12060     # prevent static linking of such archives. So we do filename-based
12061     # shared library versioning with .so extension only, which is used
12062     # when both runtime linking and shared linking is enabled.
12063     # Unfortunately, runtime linking may impact performance, so we do
12064     # not want this to be the default eventually. Also, we use the
12065     # versioned .so libs for executables only if there is the -brtl
12066     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12067     # To allow for filename-based versioning support, we need to create
12068     # libNAME.so.V as an archive file, containing:
12069     # *) an Import File, referring to the versioned filename of the
12070     #    archive as well as the shared archive member, telling the
12071     #    bitwidth (32 or 64) of that shared object, and providing the
12072     #    list of exported symbols of that shared object, eventually
12073     #    decorated with the 'weak' keyword
12074     # *) the shared object with the F_LOADONLY flag set, to really avoid
12075     #    it being seen by the linker.
12076     # At run time we better use the real file rather than another symlink,
12077     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12078
12079     case $with_aix_soname,$aix_use_runtimelinking in
12080     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12081     # soname into executable. Probably we can add versioning support to
12082     # collect2, so additional links can be useful in future.
12083     aix,yes) # traditional libtool
12084       dynamic_linker='AIX unversionable lib.so'
12085       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12086       # instead of lib<name>.a to let people know that these are not
12087       # typical AIX shared libraries.
12088       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12089       ;;
12090     aix,no) # traditional AIX only
12091       dynamic_linker='AIX lib.a(lib.so.V)'
12092       # We preserve .a as extension for shared libraries through AIX4.2
12093       # and later when we are not doing run time linking.
12094       library_names_spec='$libname$release.a $libname.a'
12095       soname_spec='$libname$release$shared_ext$major'
12096       ;;
12097     svr4,*) # full svr4 only
12098       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12099       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12100       # We do not specify a path in Import Files, so LIBPATH fires.
12101       shlibpath_overrides_runpath=yes
12102       ;;
12103     *,yes) # both, prefer svr4
12104       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12105       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12106       # unpreferred sharedlib libNAME.a needs extra handling
12107       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"'
12108       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"'
12109       # We do not specify a path in Import Files, so LIBPATH fires.
12110       shlibpath_overrides_runpath=yes
12111       ;;
12112     *,no) # both, prefer aix
12113       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12114       library_names_spec='$libname$release.a $libname.a'
12115       soname_spec='$libname$release$shared_ext$major'
12116       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12117       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)'
12118       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"'
12119       ;;
12120     esac
12121     shlibpath_var=LIBPATH
12122   fi
12123   ;;
12124
12125 amigaos*)
12126   case $host_cpu in
12127   powerpc)
12128     # Since July 2007 AmigaOS4 officially supports .so libraries.
12129     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12130     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12131     ;;
12132   m68k)
12133     library_names_spec='$libname.ixlibrary $libname.a'
12134     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12135     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'
12136     ;;
12137   esac
12138   ;;
12139
12140 beos*)
12141   library_names_spec='$libname$shared_ext'
12142   dynamic_linker="$host_os ld.so"
12143   shlibpath_var=LIBRARY_PATH
12144   ;;
12145
12146 bsdi[45]*)
12147   version_type=linux # correct to gnu/linux during the next big refactor
12148   need_version=no
12149   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12150   soname_spec='$libname$release$shared_ext$major'
12151   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12152   shlibpath_var=LD_LIBRARY_PATH
12153   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12154   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12155   # the default ld.so.conf also contains /usr/contrib/lib and
12156   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12157   # libtool to hard-code these into programs
12158   ;;
12159
12160 cygwin* | mingw* | pw32* | cegcc*)
12161   version_type=windows
12162   shrext_cmds=.dll
12163   need_version=no
12164   need_lib_prefix=no
12165
12166   case $GCC,$cc_basename in
12167   yes,*)
12168     # gcc
12169     library_names_spec='$libname.dll.a'
12170     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12171     postinstall_cmds='base_file=`basename \$file`~
12172       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12173       dldir=$destdir/`dirname \$dlpath`~
12174       test -d \$dldir || mkdir -p \$dldir~
12175       $install_prog $dir/$dlname \$dldir/$dlname~
12176       chmod a+x \$dldir/$dlname~
12177       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12178         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12179       fi'
12180     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12181       dlpath=$dir/\$dldll~
12182        $RM \$dlpath'
12183     shlibpath_overrides_runpath=yes
12184
12185     case $host_os in
12186     cygwin*)
12187       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12188       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12189
12190       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12191       ;;
12192     mingw* | cegcc*)
12193       # MinGW DLLs use traditional 'lib' prefix
12194       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12195       ;;
12196     pw32*)
12197       # pw32 DLLs use 'pw' prefix rather than 'lib'
12198       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12199       ;;
12200     esac
12201     dynamic_linker='Win32 ld.exe'
12202     ;;
12203
12204   *,cl*)
12205     # Native MSVC
12206     libname_spec='$name'
12207     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12208     library_names_spec='$libname.dll.lib'
12209
12210     case $build_os in
12211     mingw*)
12212       sys_lib_search_path_spec=
12213       lt_save_ifs=$IFS
12214       IFS=';'
12215       for lt_path in $LIB
12216       do
12217         IFS=$lt_save_ifs
12218         # Let DOS variable expansion print the short 8.3 style file name.
12219         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12220         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12221       done
12222       IFS=$lt_save_ifs
12223       # Convert to MSYS style.
12224       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12225       ;;
12226     cygwin*)
12227       # Convert to unix form, then to dos form, then back to unix form
12228       # but this time dos style (no spaces!) so that the unix form looks
12229       # like /cygdrive/c/PROGRA~1:/cygdr...
12230       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12231       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12232       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12233       ;;
12234     *)
12235       sys_lib_search_path_spec=$LIB
12236       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12237         # It is most probably a Windows format PATH.
12238         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12239       else
12240         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12241       fi
12242       # FIXME: find the short name or the path components, as spaces are
12243       # common. (e.g. "Program Files" -> "PROGRA~1")
12244       ;;
12245     esac
12246
12247     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12248     postinstall_cmds='base_file=`basename \$file`~
12249       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12250       dldir=$destdir/`dirname \$dlpath`~
12251       test -d \$dldir || mkdir -p \$dldir~
12252       $install_prog $dir/$dlname \$dldir/$dlname'
12253     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12254       dlpath=$dir/\$dldll~
12255        $RM \$dlpath'
12256     shlibpath_overrides_runpath=yes
12257     dynamic_linker='Win32 link.exe'
12258     ;;
12259
12260   *)
12261     # Assume MSVC wrapper
12262     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12263     dynamic_linker='Win32 ld.exe'
12264     ;;
12265   esac
12266   # FIXME: first we should search . and the directory the executable is in
12267   shlibpath_var=PATH
12268   ;;
12269
12270 darwin* | rhapsody*)
12271   dynamic_linker="$host_os dyld"
12272   version_type=darwin
12273   need_lib_prefix=no
12274   need_version=no
12275   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12276   soname_spec='$libname$release$major$shared_ext'
12277   shlibpath_overrides_runpath=yes
12278   shlibpath_var=DYLD_LIBRARY_PATH
12279   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12280
12281   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12282   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12283   ;;
12284
12285 dgux*)
12286   version_type=linux # correct to gnu/linux during the next big refactor
12287   need_lib_prefix=no
12288   need_version=no
12289   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12290   soname_spec='$libname$release$shared_ext$major'
12291   shlibpath_var=LD_LIBRARY_PATH
12292   ;;
12293
12294 freebsd* | dragonfly*)
12295   # DragonFly does not have aout.  When/if they implement a new
12296   # versioning mechanism, adjust this.
12297   if test -x /usr/bin/objformat; then
12298     objformat=`/usr/bin/objformat`
12299   else
12300     case $host_os in
12301     freebsd[23].*) objformat=aout ;;
12302     *) objformat=elf ;;
12303     esac
12304   fi
12305   version_type=freebsd-$objformat
12306   case $version_type in
12307     freebsd-elf*)
12308       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12309       soname_spec='$libname$release$shared_ext$major'
12310       need_version=no
12311       need_lib_prefix=no
12312       ;;
12313     freebsd-*)
12314       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12315       need_version=yes
12316       ;;
12317   esac
12318   shlibpath_var=LD_LIBRARY_PATH
12319   case $host_os in
12320   freebsd2.*)
12321     shlibpath_overrides_runpath=yes
12322     ;;
12323   freebsd3.[01]* | freebsdelf3.[01]*)
12324     shlibpath_overrides_runpath=yes
12325     hardcode_into_libs=yes
12326     ;;
12327   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12328   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12329     shlibpath_overrides_runpath=no
12330     hardcode_into_libs=yes
12331     ;;
12332   *) # from 4.6 on, and DragonFly
12333     shlibpath_overrides_runpath=yes
12334     hardcode_into_libs=yes
12335     ;;
12336   esac
12337   ;;
12338
12339 haiku*)
12340   version_type=linux # correct to gnu/linux during the next big refactor
12341   need_lib_prefix=no
12342   need_version=no
12343   dynamic_linker="$host_os runtime_loader"
12344   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12345   soname_spec='$libname$release$shared_ext$major'
12346   shlibpath_var=LIBRARY_PATH
12347   shlibpath_overrides_runpath=no
12348   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12349   hardcode_into_libs=yes
12350   ;;
12351
12352 hpux9* | hpux10* | hpux11*)
12353   # Give a soname corresponding to the major version so that dld.sl refuses to
12354   # link against other versions.
12355   version_type=sunos
12356   need_lib_prefix=no
12357   need_version=no
12358   case $host_cpu in
12359   ia64*)
12360     shrext_cmds='.so'
12361     hardcode_into_libs=yes
12362     dynamic_linker="$host_os dld.so"
12363     shlibpath_var=LD_LIBRARY_PATH
12364     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12365     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12366     soname_spec='$libname$release$shared_ext$major'
12367     if test 32 = "$HPUX_IA64_MODE"; then
12368       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12369       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12370     else
12371       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12372       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12373     fi
12374     ;;
12375   hppa*64*)
12376     shrext_cmds='.sl'
12377     hardcode_into_libs=yes
12378     dynamic_linker="$host_os dld.sl"
12379     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12381     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12382     soname_spec='$libname$release$shared_ext$major'
12383     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12385     ;;
12386   *)
12387     shrext_cmds='.sl'
12388     dynamic_linker="$host_os dld.sl"
12389     shlibpath_var=SHLIB_PATH
12390     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12391     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12392     soname_spec='$libname$release$shared_ext$major'
12393     ;;
12394   esac
12395   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12396   postinstall_cmds='chmod 555 $lib'
12397   # or fails outright, so override atomically:
12398   install_override_mode=555
12399   ;;
12400
12401 interix[3-9]*)
12402   version_type=linux # correct to gnu/linux during the next big refactor
12403   need_lib_prefix=no
12404   need_version=no
12405   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12406   soname_spec='$libname$release$shared_ext$major'
12407   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12408   shlibpath_var=LD_LIBRARY_PATH
12409   shlibpath_overrides_runpath=no
12410   hardcode_into_libs=yes
12411   ;;
12412
12413 irix5* | irix6* | nonstopux*)
12414   case $host_os in
12415     nonstopux*) version_type=nonstopux ;;
12416     *)
12417         if test yes = "$lt_cv_prog_gnu_ld"; then
12418                 version_type=linux # correct to gnu/linux during the next big refactor
12419         else
12420                 version_type=irix
12421         fi ;;
12422   esac
12423   need_lib_prefix=no
12424   need_version=no
12425   soname_spec='$libname$release$shared_ext$major'
12426   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12427   case $host_os in
12428   irix5* | nonstopux*)
12429     libsuff= shlibsuff=
12430     ;;
12431   *)
12432     case $LD in # libtool.m4 will add one of these switches to LD
12433     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12434       libsuff= shlibsuff= libmagic=32-bit;;
12435     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12436       libsuff=32 shlibsuff=N32 libmagic=N32;;
12437     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12438       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12439     *) libsuff= shlibsuff= libmagic=never-match;;
12440     esac
12441     ;;
12442   esac
12443   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12444   shlibpath_overrides_runpath=no
12445   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12446   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12447   hardcode_into_libs=yes
12448   ;;
12449
12450 # No shared lib support for Linux oldld, aout, or coff.
12451 linux*oldld* | linux*aout* | linux*coff*)
12452   dynamic_linker=no
12453   ;;
12454
12455 linux*android*)
12456   version_type=none # Android doesn't support versioned libraries.
12457   need_lib_prefix=no
12458   need_version=no
12459   library_names_spec='$libname$release$shared_ext'
12460   soname_spec='$libname$release$shared_ext'
12461   finish_cmds=
12462   shlibpath_var=LD_LIBRARY_PATH
12463   shlibpath_overrides_runpath=yes
12464
12465   # This implies no fast_install, which is unacceptable.
12466   # Some rework will be needed to allow for fast_install
12467   # before this can be enabled.
12468   hardcode_into_libs=yes
12469
12470   dynamic_linker='Android linker'
12471   # Don't embed -rpath directories since the linker doesn't support them.
12472   hardcode_libdir_flag_spec='-L$libdir'
12473   ;;
12474
12475 # This must be glibc/ELF.
12476 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12477   version_type=linux # correct to gnu/linux during the next big refactor
12478   need_lib_prefix=no
12479   need_version=no
12480   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481   soname_spec='$libname$release$shared_ext$major'
12482   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12483   shlibpath_var=LD_LIBRARY_PATH
12484   shlibpath_overrides_runpath=no
12485
12486   # Some binutils ld are patched to set DT_RUNPATH
12487   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12488   $as_echo_n "(cached) " >&6
12489 else
12490   lt_cv_shlibpath_overrides_runpath=no
12491     save_LDFLAGS=$LDFLAGS
12492     save_libdir=$libdir
12493     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12494          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12495     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h.  */
12497
12498 int
12499 main ()
12500 {
12501
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 if ac_fn_c_try_link "$LINENO"; then :
12507   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12508   lt_cv_shlibpath_overrides_runpath=yes
12509 fi
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext \
12512     conftest$ac_exeext conftest.$ac_ext
12513     LDFLAGS=$save_LDFLAGS
12514     libdir=$save_libdir
12515
12516 fi
12517
12518   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12519
12520   # This implies no fast_install, which is unacceptable.
12521   # Some rework will be needed to allow for fast_install
12522   # before this can be enabled.
12523   hardcode_into_libs=yes
12524
12525   # Ideally, we could use ldconfig to report *all* directores which are
12526   # searched for libraries, however this is still not possible.  Aside from not
12527   # being certain /sbin/ldconfig is available, command
12528   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12529   # even though it is searched at run-time.  Try to do the best guess by
12530   # appending ld.so.conf contents (and includes) to the search path.
12531   if test -f /etc/ld.so.conf; then
12532     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' ' '`
12533     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12534   fi
12535
12536   # We used to test for /lib/ld.so.1 and disable shared libraries on
12537   # powerpc, because MkLinux only supported shared libraries with the
12538   # GNU dynamic linker.  Since this was broken with cross compilers,
12539   # most powerpc-linux boxes support dynamic linking these days and
12540   # people can always --disable-shared, the test was removed, and we
12541   # assume the GNU/Linux dynamic linker is in use.
12542   dynamic_linker='GNU/Linux ld.so'
12543   ;;
12544
12545 netbsd*)
12546   version_type=sunos
12547   need_lib_prefix=no
12548   need_version=no
12549   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12550     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12551     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12552     dynamic_linker='NetBSD (a.out) ld.so'
12553   else
12554     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12555     soname_spec='$libname$release$shared_ext$major'
12556     dynamic_linker='NetBSD ld.elf_so'
12557   fi
12558   shlibpath_var=LD_LIBRARY_PATH
12559   shlibpath_overrides_runpath=yes
12560   hardcode_into_libs=yes
12561   ;;
12562
12563 newsos6)
12564   version_type=linux # correct to gnu/linux during the next big refactor
12565   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12566   shlibpath_var=LD_LIBRARY_PATH
12567   shlibpath_overrides_runpath=yes
12568   ;;
12569
12570 *nto* | *qnx*)
12571   version_type=qnx
12572   need_lib_prefix=no
12573   need_version=no
12574   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12575   soname_spec='$libname$release$shared_ext$major'
12576   shlibpath_var=LD_LIBRARY_PATH
12577   shlibpath_overrides_runpath=no
12578   hardcode_into_libs=yes
12579   dynamic_linker='ldqnx.so'
12580   ;;
12581
12582 openbsd* | bitrig*)
12583   version_type=sunos
12584   sys_lib_dlsearch_path_spec=/usr/lib
12585   need_lib_prefix=no
12586   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12587     need_version=no
12588   else
12589     need_version=yes
12590   fi
12591   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12592   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12593   shlibpath_var=LD_LIBRARY_PATH
12594   shlibpath_overrides_runpath=yes
12595   ;;
12596
12597 os2*)
12598   libname_spec='$name'
12599   version_type=windows
12600   shrext_cmds=.dll
12601   need_version=no
12602   need_lib_prefix=no
12603   # OS/2 can only load a DLL with a base name of 8 characters or less.
12604   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12605     v=$($ECHO $release$versuffix | tr -d .-);
12606     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12607     $ECHO $n$v`$shared_ext'
12608   library_names_spec='${libname}_dll.$libext'
12609   dynamic_linker='OS/2 ld.exe'
12610   shlibpath_var=BEGINLIBPATH
12611   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12612   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12613   postinstall_cmds='base_file=`basename \$file`~
12614     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12615     dldir=$destdir/`dirname \$dlpath`~
12616     test -d \$dldir || mkdir -p \$dldir~
12617     $install_prog $dir/$dlname \$dldir/$dlname~
12618     chmod a+x \$dldir/$dlname~
12619     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12620       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12621     fi'
12622   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12623     dlpath=$dir/\$dldll~
12624     $RM \$dlpath'
12625   ;;
12626
12627 osf3* | osf4* | osf5*)
12628   version_type=osf
12629   need_lib_prefix=no
12630   need_version=no
12631   soname_spec='$libname$release$shared_ext$major'
12632   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12633   shlibpath_var=LD_LIBRARY_PATH
12634   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12635   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12636   ;;
12637
12638 rdos*)
12639   dynamic_linker=no
12640   ;;
12641
12642 solaris*)
12643   version_type=linux # correct to gnu/linux during the next big refactor
12644   need_lib_prefix=no
12645   need_version=no
12646   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647   soname_spec='$libname$release$shared_ext$major'
12648   shlibpath_var=LD_LIBRARY_PATH
12649   shlibpath_overrides_runpath=yes
12650   hardcode_into_libs=yes
12651   # ldd complains unless libraries are executable
12652   postinstall_cmds='chmod +x $lib'
12653   ;;
12654
12655 sunos4*)
12656   version_type=sunos
12657   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12658   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12659   shlibpath_var=LD_LIBRARY_PATH
12660   shlibpath_overrides_runpath=yes
12661   if test yes = "$with_gnu_ld"; then
12662     need_lib_prefix=no
12663   fi
12664   need_version=yes
12665   ;;
12666
12667 sysv4 | sysv4.3*)
12668   version_type=linux # correct to gnu/linux during the next big refactor
12669   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12670   soname_spec='$libname$release$shared_ext$major'
12671   shlibpath_var=LD_LIBRARY_PATH
12672   case $host_vendor in
12673     sni)
12674       shlibpath_overrides_runpath=no
12675       need_lib_prefix=no
12676       runpath_var=LD_RUN_PATH
12677       ;;
12678     siemens)
12679       need_lib_prefix=no
12680       ;;
12681     motorola)
12682       need_lib_prefix=no
12683       need_version=no
12684       shlibpath_overrides_runpath=no
12685       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12686       ;;
12687   esac
12688   ;;
12689
12690 sysv4*MP*)
12691   if test -d /usr/nec; then
12692     version_type=linux # correct to gnu/linux during the next big refactor
12693     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12694     soname_spec='$libname$shared_ext.$major'
12695     shlibpath_var=LD_LIBRARY_PATH
12696   fi
12697   ;;
12698
12699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12700   version_type=sco
12701   need_lib_prefix=no
12702   need_version=no
12703   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12704   soname_spec='$libname$release$shared_ext$major'
12705   shlibpath_var=LD_LIBRARY_PATH
12706   shlibpath_overrides_runpath=yes
12707   hardcode_into_libs=yes
12708   if test yes = "$with_gnu_ld"; then
12709     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12710   else
12711     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12712     case $host_os in
12713       sco3.2v5*)
12714         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12715         ;;
12716     esac
12717   fi
12718   sys_lib_dlsearch_path_spec='/usr/lib'
12719   ;;
12720
12721 tpf*)
12722   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12723   version_type=linux # correct to gnu/linux during the next big refactor
12724   need_lib_prefix=no
12725   need_version=no
12726   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12727   shlibpath_var=LD_LIBRARY_PATH
12728   shlibpath_overrides_runpath=no
12729   hardcode_into_libs=yes
12730   ;;
12731
12732 uts4*)
12733   version_type=linux # correct to gnu/linux during the next big refactor
12734   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12735   soname_spec='$libname$release$shared_ext$major'
12736   shlibpath_var=LD_LIBRARY_PATH
12737   ;;
12738
12739 *)
12740   dynamic_linker=no
12741   ;;
12742 esac
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12744 $as_echo "$dynamic_linker" >&6; }
12745 test no = "$dynamic_linker" && can_build_shared=no
12746
12747 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12748 if test yes = "$GCC"; then
12749   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12750 fi
12751
12752 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12753   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12754 fi
12755
12756 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12757   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12758 fi
12759
12760 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12761 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12762
12763 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12764 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12765
12766 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12767 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12866 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12867 hardcode_action=
12868 if test -n "$hardcode_libdir_flag_spec" ||
12869    test -n "$runpath_var" ||
12870    test yes = "$hardcode_automatic"; then
12871
12872   # We can hardcode non-existent directories.
12873   if test no != "$hardcode_direct" &&
12874      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12875      # have to relink, otherwise we might link with an installed library
12876      # when we should be linking with a yet-to-be-installed one
12877      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12878      test no != "$hardcode_minus_L"; then
12879     # Linking always hardcodes the temporary library directory.
12880     hardcode_action=relink
12881   else
12882     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12883     hardcode_action=immediate
12884   fi
12885 else
12886   # We cannot hardcode anything, or else we can only hardcode existing
12887   # directories.
12888   hardcode_action=unsupported
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12891 $as_echo "$hardcode_action" >&6; }
12892
12893 if test relink = "$hardcode_action" ||
12894    test yes = "$inherit_rpath"; then
12895   # Fast installation is not supported
12896   enable_fast_install=no
12897 elif test yes = "$shlibpath_overrides_runpath" ||
12898      test no = "$enable_shared"; then
12899   # Fast installation is not necessary
12900   enable_fast_install=needless
12901 fi
12902
12903
12904
12905
12906
12907
12908   if test yes != "$enable_dlopen"; then
12909   enable_dlopen=unknown
12910   enable_dlopen_self=unknown
12911   enable_dlopen_self_static=unknown
12912 else
12913   lt_cv_dlopen=no
12914   lt_cv_dlopen_libs=
12915
12916   case $host_os in
12917   beos*)
12918     lt_cv_dlopen=load_add_on
12919     lt_cv_dlopen_libs=
12920     lt_cv_dlopen_self=yes
12921     ;;
12922
12923   mingw* | pw32* | cegcc*)
12924     lt_cv_dlopen=LoadLibrary
12925     lt_cv_dlopen_libs=
12926     ;;
12927
12928   cygwin*)
12929     lt_cv_dlopen=dlopen
12930     lt_cv_dlopen_libs=
12931     ;;
12932
12933   darwin*)
12934     # if libdl is installed we need to link against it
12935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12937 if ${ac_cv_lib_dl_dlopen+:} false; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940   ac_check_lib_save_LIBS=$LIBS
12941 LIBS="-ldl  $LIBS"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h.  */
12944
12945 /* Override any GCC internal prototype to avoid an error.
12946    Use char because int might match the return type of a GCC
12947    builtin and then its argument prototype would still apply.  */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 char dlopen ();
12952 int
12953 main ()
12954 {
12955 return dlopen ();
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_link "$LINENO"; then :
12961   ac_cv_lib_dl_dlopen=yes
12962 else
12963   ac_cv_lib_dl_dlopen=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext \
12966     conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12968 fi
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12971 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12972   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12973 else
12974
12975     lt_cv_dlopen=dyld
12976     lt_cv_dlopen_libs=
12977     lt_cv_dlopen_self=yes
12978
12979 fi
12980
12981     ;;
12982
12983   tpf*)
12984     # Don't try to run any link tests for TPF.  We know it's impossible
12985     # because TPF is a cross-compiler, and we know how we open DSOs.
12986     lt_cv_dlopen=dlopen
12987     lt_cv_dlopen_libs=
12988     lt_cv_dlopen_self=no
12989     ;;
12990
12991   *)
12992     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12993 if test "x$ac_cv_func_shl_load" = xyes; then :
12994   lt_cv_dlopen=shl_load
12995 else
12996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12997 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12998 if ${ac_cv_lib_dld_shl_load+:} false; then :
12999   $as_echo_n "(cached) " >&6
13000 else
13001   ac_check_lib_save_LIBS=$LIBS
13002 LIBS="-ldld  $LIBS"
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h.  */
13005
13006 /* Override any GCC internal prototype to avoid an error.
13007    Use char because int might match the return type of a GCC
13008    builtin and then its argument prototype would still apply.  */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 char shl_load ();
13013 int
13014 main ()
13015 {
13016 return shl_load ();
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 if ac_fn_c_try_link "$LINENO"; then :
13022   ac_cv_lib_dld_shl_load=yes
13023 else
13024   ac_cv_lib_dld_shl_load=no
13025 fi
13026 rm -f core conftest.err conftest.$ac_objext \
13027     conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_lib_save_LIBS
13029 fi
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13031 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13032 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13033   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13034 else
13035   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13036 if test "x$ac_cv_func_dlopen" = xyes; then :
13037   lt_cv_dlopen=dlopen
13038 else
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13040 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13041 if ${ac_cv_lib_dl_dlopen+:} false; then :
13042   $as_echo_n "(cached) " >&6
13043 else
13044   ac_check_lib_save_LIBS=$LIBS
13045 LIBS="-ldl  $LIBS"
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h.  */
13048
13049 /* Override any GCC internal prototype to avoid an error.
13050    Use char because int might match the return type of a GCC
13051    builtin and then its argument prototype would still apply.  */
13052 #ifdef __cplusplus
13053 extern "C"
13054 #endif
13055 char dlopen ();
13056 int
13057 main ()
13058 {
13059 return dlopen ();
13060   ;
13061   return 0;
13062 }
13063 _ACEOF
13064 if ac_fn_c_try_link "$LINENO"; then :
13065   ac_cv_lib_dl_dlopen=yes
13066 else
13067   ac_cv_lib_dl_dlopen=no
13068 fi
13069 rm -f core conftest.err conftest.$ac_objext \
13070     conftest$ac_exeext conftest.$ac_ext
13071 LIBS=$ac_check_lib_save_LIBS
13072 fi
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13074 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13075 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13076   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13077 else
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13079 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13080 if ${ac_cv_lib_svld_dlopen+:} false; then :
13081   $as_echo_n "(cached) " >&6
13082 else
13083   ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lsvld  $LIBS"
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h.  */
13087
13088 /* Override any GCC internal prototype to avoid an error.
13089    Use char because int might match the return type of a GCC
13090    builtin and then its argument prototype would still apply.  */
13091 #ifdef __cplusplus
13092 extern "C"
13093 #endif
13094 char dlopen ();
13095 int
13096 main ()
13097 {
13098 return dlopen ();
13099   ;
13100   return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_c_try_link "$LINENO"; then :
13104   ac_cv_lib_svld_dlopen=yes
13105 else
13106   ac_cv_lib_svld_dlopen=no
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext \
13109     conftest$ac_exeext conftest.$ac_ext
13110 LIBS=$ac_check_lib_save_LIBS
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13113 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13114 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13115   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13116 else
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13118 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13119 if ${ac_cv_lib_dld_dld_link+:} false; then :
13120   $as_echo_n "(cached) " >&6
13121 else
13122   ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-ldld  $LIBS"
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h.  */
13126
13127 /* Override any GCC internal prototype to avoid an error.
13128    Use char because int might match the return type of a GCC
13129    builtin and then its argument prototype would still apply.  */
13130 #ifdef __cplusplus
13131 extern "C"
13132 #endif
13133 char dld_link ();
13134 int
13135 main ()
13136 {
13137 return dld_link ();
13138   ;
13139   return 0;
13140 }
13141 _ACEOF
13142 if ac_fn_c_try_link "$LINENO"; then :
13143   ac_cv_lib_dld_dld_link=yes
13144 else
13145   ac_cv_lib_dld_dld_link=no
13146 fi
13147 rm -f core conftest.err conftest.$ac_objext \
13148     conftest$ac_exeext conftest.$ac_ext
13149 LIBS=$ac_check_lib_save_LIBS
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13152 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13153 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13154   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13155 fi
13156
13157
13158 fi
13159
13160
13161 fi
13162
13163
13164 fi
13165
13166
13167 fi
13168
13169
13170 fi
13171
13172     ;;
13173   esac
13174
13175   if test no = "$lt_cv_dlopen"; then
13176     enable_dlopen=no
13177   else
13178     enable_dlopen=yes
13179   fi
13180
13181   case $lt_cv_dlopen in
13182   dlopen)
13183     save_CPPFLAGS=$CPPFLAGS
13184     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13185
13186     save_LDFLAGS=$LDFLAGS
13187     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13188
13189     save_LIBS=$LIBS
13190     LIBS="$lt_cv_dlopen_libs $LIBS"
13191
13192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13193 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13194 if ${lt_cv_dlopen_self+:} false; then :
13195   $as_echo_n "(cached) " >&6
13196 else
13197           if test yes = "$cross_compiling"; then :
13198   lt_cv_dlopen_self=cross
13199 else
13200   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13201   lt_status=$lt_dlunknown
13202   cat > conftest.$ac_ext <<_LT_EOF
13203 #line $LINENO "configure"
13204 #include "confdefs.h"
13205
13206 #if HAVE_DLFCN_H
13207 #include <dlfcn.h>
13208 #endif
13209
13210 #include <stdio.h>
13211
13212 #ifdef RTLD_GLOBAL
13213 #  define LT_DLGLOBAL           RTLD_GLOBAL
13214 #else
13215 #  ifdef DL_GLOBAL
13216 #    define LT_DLGLOBAL         DL_GLOBAL
13217 #  else
13218 #    define LT_DLGLOBAL         0
13219 #  endif
13220 #endif
13221
13222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13223    find out it does not work in some platform. */
13224 #ifndef LT_DLLAZY_OR_NOW
13225 #  ifdef RTLD_LAZY
13226 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13227 #  else
13228 #    ifdef DL_LAZY
13229 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13230 #    else
13231 #      ifdef RTLD_NOW
13232 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13233 #      else
13234 #        ifdef DL_NOW
13235 #          define LT_DLLAZY_OR_NOW      DL_NOW
13236 #        else
13237 #          define LT_DLLAZY_OR_NOW      0
13238 #        endif
13239 #      endif
13240 #    endif
13241 #  endif
13242 #endif
13243
13244 /* When -fvisibility=hidden is used, assume the code has been annotated
13245    correspondingly for the symbols needed.  */
13246 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13247 int fnord () __attribute__((visibility("default")));
13248 #endif
13249
13250 int fnord () { return 42; }
13251 int main ()
13252 {
13253   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13254   int status = $lt_dlunknown;
13255
13256   if (self)
13257     {
13258       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13259       else
13260         {
13261           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13262           else puts (dlerror ());
13263         }
13264       /* dlclose (self); */
13265     }
13266   else
13267     puts (dlerror ());
13268
13269   return status;
13270 }
13271 _LT_EOF
13272   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13273   (eval $ac_link) 2>&5
13274   ac_status=$?
13275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13276   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13277     (./conftest; exit; ) >&5 2>/dev/null
13278     lt_status=$?
13279     case x$lt_status in
13280       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13281       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13282       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13283     esac
13284   else :
13285     # compilation failed
13286     lt_cv_dlopen_self=no
13287   fi
13288 fi
13289 rm -fr conftest*
13290
13291
13292 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13294 $as_echo "$lt_cv_dlopen_self" >&6; }
13295
13296     if test yes = "$lt_cv_dlopen_self"; then
13297       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13298       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13299 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13300 if ${lt_cv_dlopen_self_static+:} false; then :
13301   $as_echo_n "(cached) " >&6
13302 else
13303           if test yes = "$cross_compiling"; then :
13304   lt_cv_dlopen_self_static=cross
13305 else
13306   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13307   lt_status=$lt_dlunknown
13308   cat > conftest.$ac_ext <<_LT_EOF
13309 #line $LINENO "configure"
13310 #include "confdefs.h"
13311
13312 #if HAVE_DLFCN_H
13313 #include <dlfcn.h>
13314 #endif
13315
13316 #include <stdio.h>
13317
13318 #ifdef RTLD_GLOBAL
13319 #  define LT_DLGLOBAL           RTLD_GLOBAL
13320 #else
13321 #  ifdef DL_GLOBAL
13322 #    define LT_DLGLOBAL         DL_GLOBAL
13323 #  else
13324 #    define LT_DLGLOBAL         0
13325 #  endif
13326 #endif
13327
13328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13329    find out it does not work in some platform. */
13330 #ifndef LT_DLLAZY_OR_NOW
13331 #  ifdef RTLD_LAZY
13332 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13333 #  else
13334 #    ifdef DL_LAZY
13335 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13336 #    else
13337 #      ifdef RTLD_NOW
13338 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13339 #      else
13340 #        ifdef DL_NOW
13341 #          define LT_DLLAZY_OR_NOW      DL_NOW
13342 #        else
13343 #          define LT_DLLAZY_OR_NOW      0
13344 #        endif
13345 #      endif
13346 #    endif
13347 #  endif
13348 #endif
13349
13350 /* When -fvisibility=hidden is used, assume the code has been annotated
13351    correspondingly for the symbols needed.  */
13352 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13353 int fnord () __attribute__((visibility("default")));
13354 #endif
13355
13356 int fnord () { return 42; }
13357 int main ()
13358 {
13359   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13360   int status = $lt_dlunknown;
13361
13362   if (self)
13363     {
13364       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13365       else
13366         {
13367           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13368           else puts (dlerror ());
13369         }
13370       /* dlclose (self); */
13371     }
13372   else
13373     puts (dlerror ());
13374
13375   return status;
13376 }
13377 _LT_EOF
13378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13379   (eval $ac_link) 2>&5
13380   ac_status=$?
13381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13382   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13383     (./conftest; exit; ) >&5 2>/dev/null
13384     lt_status=$?
13385     case x$lt_status in
13386       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13387       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13388       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13389     esac
13390   else :
13391     # compilation failed
13392     lt_cv_dlopen_self_static=no
13393   fi
13394 fi
13395 rm -fr conftest*
13396
13397
13398 fi
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13400 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13401     fi
13402
13403     CPPFLAGS=$save_CPPFLAGS
13404     LDFLAGS=$save_LDFLAGS
13405     LIBS=$save_LIBS
13406     ;;
13407   esac
13408
13409   case $lt_cv_dlopen_self in
13410   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13411   *) enable_dlopen_self=unknown ;;
13412   esac
13413
13414   case $lt_cv_dlopen_self_static in
13415   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13416   *) enable_dlopen_self_static=unknown ;;
13417   esac
13418 fi
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436 striplib=
13437 old_striplib=
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13439 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13440 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13441   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13442   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13444 $as_echo "yes" >&6; }
13445 else
13446 # FIXME - insert some real tests, host_os isn't really good enough
13447   case $host_os in
13448   darwin*)
13449     if test -n "$STRIP"; then
13450       striplib="$STRIP -x"
13451       old_striplib="$STRIP -S"
13452       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453 $as_echo "yes" >&6; }
13454     else
13455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457     fi
13458     ;;
13459   *)
13460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13462     ;;
13463   esac
13464 fi
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477   # Report what library types will actually be built
13478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13479 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13481 $as_echo "$can_build_shared" >&6; }
13482
13483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13484 $as_echo_n "checking whether to build shared libraries... " >&6; }
13485   test no = "$can_build_shared" && enable_shared=no
13486
13487   # On AIX, shared libraries and static libraries use the same namespace, and
13488   # are all built from PIC.
13489   case $host_os in
13490   aix3*)
13491     test yes = "$enable_shared" && enable_static=no
13492     if test -n "$RANLIB"; then
13493       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13494       postinstall_cmds='$RANLIB $lib'
13495     fi
13496     ;;
13497
13498   aix[4-9]*)
13499     if test ia64 != "$host_cpu"; then
13500       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13501       yes,aix,yes) ;;                   # shared object as lib.so file only
13502       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13503       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13504       esac
13505     fi
13506     ;;
13507   esac
13508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13509 $as_echo "$enable_shared" >&6; }
13510
13511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13512 $as_echo_n "checking whether to build static libraries... " >&6; }
13513   # Make sure either enable_shared or enable_static is yes.
13514   test yes = "$enable_shared" || enable_static=yes
13515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13516 $as_echo "$enable_static" >&6; }
13517
13518
13519
13520
13521 fi
13522 ac_ext=c
13523 ac_cpp='$CPP $CPPFLAGS'
13524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13527
13528 CC=$lt_save_CC
13529
13530       if test -n "$CXX" && ( test no != "$CXX" &&
13531     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13532     (test g++ != "$CXX"))); then
13533   ac_ext=cpp
13534 ac_cpp='$CXXCPP $CPPFLAGS'
13535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13539 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13540 if test -z "$CXXCPP"; then
13541   if ${ac_cv_prog_CXXCPP+:} false; then :
13542   $as_echo_n "(cached) " >&6
13543 else
13544       # Double quotes because CXXCPP needs to be expanded
13545     for CXXCPP in "$CXX -E" "/lib/cpp"
13546     do
13547       ac_preproc_ok=false
13548 for ac_cxx_preproc_warn_flag in '' yes
13549 do
13550   # Use a header file that comes with gcc, so configuring glibc
13551   # with a fresh cross-compiler works.
13552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13553   # <limits.h> exists even on freestanding compilers.
13554   # On the NeXT, cc -E runs the code through the compiler's parser,
13555   # not just through cpp. "Syntax error" is here to catch this case.
13556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h.  */
13558 #ifdef __STDC__
13559 # include <limits.h>
13560 #else
13561 # include <assert.h>
13562 #endif
13563                      Syntax error
13564 _ACEOF
13565 if ac_fn_cxx_try_cpp "$LINENO"; then :
13566
13567 else
13568   # Broken: fails on valid input.
13569 continue
13570 fi
13571 rm -f conftest.err conftest.i conftest.$ac_ext
13572
13573   # OK, works on sane cases.  Now check whether nonexistent headers
13574   # can be detected and how.
13575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h.  */
13577 #include <ac_nonexistent.h>
13578 _ACEOF
13579 if ac_fn_cxx_try_cpp "$LINENO"; then :
13580   # Broken: success on invalid input.
13581 continue
13582 else
13583   # Passes both tests.
13584 ac_preproc_ok=:
13585 break
13586 fi
13587 rm -f conftest.err conftest.i conftest.$ac_ext
13588
13589 done
13590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13591 rm -f conftest.i conftest.err conftest.$ac_ext
13592 if $ac_preproc_ok; then :
13593   break
13594 fi
13595
13596     done
13597     ac_cv_prog_CXXCPP=$CXXCPP
13598
13599 fi
13600   CXXCPP=$ac_cv_prog_CXXCPP
13601 else
13602   ac_cv_prog_CXXCPP=$CXXCPP
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13605 $as_echo "$CXXCPP" >&6; }
13606 ac_preproc_ok=false
13607 for ac_cxx_preproc_warn_flag in '' yes
13608 do
13609   # Use a header file that comes with gcc, so configuring glibc
13610   # with a fresh cross-compiler works.
13611   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13612   # <limits.h> exists even on freestanding compilers.
13613   # On the NeXT, cc -E runs the code through the compiler's parser,
13614   # not just through cpp. "Syntax error" is here to catch this case.
13615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h.  */
13617 #ifdef __STDC__
13618 # include <limits.h>
13619 #else
13620 # include <assert.h>
13621 #endif
13622                      Syntax error
13623 _ACEOF
13624 if ac_fn_cxx_try_cpp "$LINENO"; then :
13625
13626 else
13627   # Broken: fails on valid input.
13628 continue
13629 fi
13630 rm -f conftest.err conftest.i conftest.$ac_ext
13631
13632   # OK, works on sane cases.  Now check whether nonexistent headers
13633   # can be detected and how.
13634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h.  */
13636 #include <ac_nonexistent.h>
13637 _ACEOF
13638 if ac_fn_cxx_try_cpp "$LINENO"; then :
13639   # Broken: success on invalid input.
13640 continue
13641 else
13642   # Passes both tests.
13643 ac_preproc_ok=:
13644 break
13645 fi
13646 rm -f conftest.err conftest.i conftest.$ac_ext
13647
13648 done
13649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13650 rm -f conftest.i conftest.err conftest.$ac_ext
13651 if $ac_preproc_ok; then :
13652
13653 else
13654   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13656 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13657 See \`config.log' for more details" "$LINENO" 5; }
13658 fi
13659
13660 ac_ext=c
13661 ac_cpp='$CPP $CPPFLAGS'
13662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13665
13666 else
13667   _lt_caught_CXX_error=yes
13668 fi
13669
13670 ac_ext=cpp
13671 ac_cpp='$CXXCPP $CPPFLAGS'
13672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13675
13676 archive_cmds_need_lc_CXX=no
13677 allow_undefined_flag_CXX=
13678 always_export_symbols_CXX=no
13679 archive_expsym_cmds_CXX=
13680 compiler_needs_object_CXX=no
13681 export_dynamic_flag_spec_CXX=
13682 hardcode_direct_CXX=no
13683 hardcode_direct_absolute_CXX=no
13684 hardcode_libdir_flag_spec_CXX=
13685 hardcode_libdir_separator_CXX=
13686 hardcode_minus_L_CXX=no
13687 hardcode_shlibpath_var_CXX=unsupported
13688 hardcode_automatic_CXX=no
13689 inherit_rpath_CXX=no
13690 module_cmds_CXX=
13691 module_expsym_cmds_CXX=
13692 link_all_deplibs_CXX=unknown
13693 old_archive_cmds_CXX=$old_archive_cmds
13694 reload_flag_CXX=$reload_flag
13695 reload_cmds_CXX=$reload_cmds
13696 no_undefined_flag_CXX=
13697 whole_archive_flag_spec_CXX=
13698 enable_shared_with_static_runtimes_CXX=no
13699
13700 # Source file extension for C++ test sources.
13701 ac_ext=cpp
13702
13703 # Object file extension for compiled C++ test sources.
13704 objext=o
13705 objext_CXX=$objext
13706
13707 # No sense in running all these tests if we already determined that
13708 # the CXX compiler isn't working.  Some variables (like enable_shared)
13709 # are currently assumed to apply to all compilers on this platform,
13710 # and will be corrupted by setting them based on a non-working compiler.
13711 if test yes != "$_lt_caught_CXX_error"; then
13712   # Code to be used in simple compile tests
13713   lt_simple_compile_test_code="int some_variable = 0;"
13714
13715   # Code to be used in simple link tests
13716   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13717
13718   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13719
13720
13721
13722
13723
13724
13725 # If no C compiler was specified, use CC.
13726 LTCC=${LTCC-"$CC"}
13727
13728 # If no C compiler flags were specified, use CFLAGS.
13729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13730
13731 # Allow CC to be a program name with arguments.
13732 compiler=$CC
13733
13734
13735   # save warnings/boilerplate of simple test code
13736   ac_outfile=conftest.$ac_objext
13737 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13738 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13739 _lt_compiler_boilerplate=`cat conftest.err`
13740 $RM conftest*
13741
13742   ac_outfile=conftest.$ac_objext
13743 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13744 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13745 _lt_linker_boilerplate=`cat conftest.err`
13746 $RM -r conftest*
13747
13748
13749   # Allow CC to be a program name with arguments.
13750   lt_save_CC=$CC
13751   lt_save_CFLAGS=$CFLAGS
13752   lt_save_LD=$LD
13753   lt_save_GCC=$GCC
13754   GCC=$GXX
13755   lt_save_with_gnu_ld=$with_gnu_ld
13756   lt_save_path_LD=$lt_cv_path_LD
13757   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13758     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13759   else
13760     $as_unset lt_cv_prog_gnu_ld
13761   fi
13762   if test -n "${lt_cv_path_LDCXX+set}"; then
13763     lt_cv_path_LD=$lt_cv_path_LDCXX
13764   else
13765     $as_unset lt_cv_path_LD
13766   fi
13767   test -z "${LDCXX+set}" || LD=$LDCXX
13768   CC=${CXX-"c++"}
13769   CFLAGS=$CXXFLAGS
13770   compiler=$CC
13771   compiler_CXX=$CC
13772   func_cc_basename $compiler
13773 cc_basename=$func_cc_basename_result
13774
13775
13776   if test -n "$compiler"; then
13777     # We don't want -fno-exception when compiling C++ code, so set the
13778     # no_builtin_flag separately
13779     if test yes = "$GXX"; then
13780       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13781     else
13782       lt_prog_compiler_no_builtin_flag_CXX=
13783     fi
13784
13785     if test yes = "$GXX"; then
13786       # Set up default GNU C++ configuration
13787
13788
13789
13790 # Check whether --with-gnu-ld was given.
13791 if test "${with_gnu_ld+set}" = set; then :
13792   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13793 else
13794   with_gnu_ld=no
13795 fi
13796
13797 ac_prog=ld
13798 if test yes = "$GCC"; then
13799   # Check if gcc -print-prog-name=ld gives a path.
13800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13801 $as_echo_n "checking for ld used by $CC... " >&6; }
13802   case $host in
13803   *-*-mingw*)
13804     # gcc leaves a trailing carriage return, which upsets mingw
13805     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13806   *)
13807     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13808   esac
13809   case $ac_prog in
13810     # Accept absolute paths.
13811     [\\/]* | ?:[\\/]*)
13812       re_direlt='/[^/][^/]*/\.\./'
13813       # Canonicalize the pathname of ld
13814       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13815       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13816         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13817       done
13818       test -z "$LD" && LD=$ac_prog
13819       ;;
13820   "")
13821     # If it fails, then pretend we aren't using GCC.
13822     ac_prog=ld
13823     ;;
13824   *)
13825     # If it is relative, then search for the first ld in PATH.
13826     with_gnu_ld=unknown
13827     ;;
13828   esac
13829 elif test yes = "$with_gnu_ld"; then
13830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13831 $as_echo_n "checking for GNU ld... " >&6; }
13832 else
13833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13834 $as_echo_n "checking for non-GNU ld... " >&6; }
13835 fi
13836 if ${lt_cv_path_LD+:} false; then :
13837   $as_echo_n "(cached) " >&6
13838 else
13839   if test -z "$LD"; then
13840   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13841   for ac_dir in $PATH; do
13842     IFS=$lt_save_ifs
13843     test -z "$ac_dir" && ac_dir=.
13844     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13845       lt_cv_path_LD=$ac_dir/$ac_prog
13846       # Check to see if the program is GNU ld.  I'd rather use --version,
13847       # but apparently some variants of GNU ld only accept -v.
13848       # Break only if it was the GNU/non-GNU ld that we prefer.
13849       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13850       *GNU* | *'with BFD'*)
13851         test no != "$with_gnu_ld" && break
13852         ;;
13853       *)
13854         test yes != "$with_gnu_ld" && break
13855         ;;
13856       esac
13857     fi
13858   done
13859   IFS=$lt_save_ifs
13860 else
13861   lt_cv_path_LD=$LD # Let the user override the test with a path.
13862 fi
13863 fi
13864
13865 LD=$lt_cv_path_LD
13866 if test -n "$LD"; then
13867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13868 $as_echo "$LD" >&6; }
13869 else
13870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13872 fi
13873 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13875 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13876 if ${lt_cv_prog_gnu_ld+:} false; then :
13877   $as_echo_n "(cached) " >&6
13878 else
13879   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13880 case `$LD -v 2>&1 </dev/null` in
13881 *GNU* | *'with BFD'*)
13882   lt_cv_prog_gnu_ld=yes
13883   ;;
13884 *)
13885   lt_cv_prog_gnu_ld=no
13886   ;;
13887 esac
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13890 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13891 with_gnu_ld=$lt_cv_prog_gnu_ld
13892
13893
13894
13895
13896
13897
13898
13899       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13900       # archiving commands below assume that GNU ld is being used.
13901       if test yes = "$with_gnu_ld"; then
13902         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13903         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'
13904
13905         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13906         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13907
13908         # If archive_cmds runs LD, not CC, wlarc should be empty
13909         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13910         #     investigate it a little bit more. (MM)
13911         wlarc='$wl'
13912
13913         # ancient GNU ld didn't support --whole-archive et. al.
13914         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13915           $GREP 'no-whole-archive' > /dev/null; then
13916           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13917         else
13918           whole_archive_flag_spec_CXX=
13919         fi
13920       else
13921         with_gnu_ld=no
13922         wlarc=
13923
13924         # A generic and very simple default shared library creation
13925         # command for GNU C++ for the case where it uses the native
13926         # linker, instead of GNU ld.  If possible, this setting should
13927         # overridden to take advantage of the native linker features on
13928         # the platform it is being used on.
13929         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13930       fi
13931
13932       # Commands to make compiler produce verbose output that lists
13933       # what "hidden" libraries, object files and flags are used when
13934       # linking a shared library.
13935       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13936
13937     else
13938       GXX=no
13939       with_gnu_ld=no
13940       wlarc=
13941     fi
13942
13943     # PORTME: fill in a description of your system's C++ link characteristics
13944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13945 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13946     ld_shlibs_CXX=yes
13947     case $host_os in
13948       aix3*)
13949         # FIXME: insert proper C++ library support
13950         ld_shlibs_CXX=no
13951         ;;
13952       aix[4-9]*)
13953         if test ia64 = "$host_cpu"; then
13954           # On IA64, the linker does run time linking by default, so we don't
13955           # have to do anything special.
13956           aix_use_runtimelinking=no
13957           exp_sym_flag='-Bexport'
13958           no_entry_flag=
13959         else
13960           aix_use_runtimelinking=no
13961
13962           # Test if we are trying to use run time linking or normal
13963           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13964           # have runtime linking enabled, and use it for executables.
13965           # For shared libraries, we enable/disable runtime linking
13966           # depending on the kind of the shared library created -
13967           # when "with_aix_soname,aix_use_runtimelinking" is:
13968           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13969           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13970           #            lib.a           static archive
13971           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13972           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13973           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13974           #            lib.a(lib.so.V) shared, rtl:no
13975           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13976           #            lib.a           static archive
13977           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13978             for ld_flag in $LDFLAGS; do
13979               case $ld_flag in
13980               *-brtl*)
13981                 aix_use_runtimelinking=yes
13982                 break
13983                 ;;
13984               esac
13985             done
13986             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13987               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13988               # so we don't have lib.a shared libs to link our executables.
13989               # We have to force runtime linking in this case.
13990               aix_use_runtimelinking=yes
13991               LDFLAGS="$LDFLAGS -Wl,-brtl"
13992             fi
13993             ;;
13994           esac
13995
13996           exp_sym_flag='-bexport'
13997           no_entry_flag='-bnoentry'
13998         fi
13999
14000         # When large executables or shared objects are built, AIX ld can
14001         # have problems creating the table of contents.  If linking a library
14002         # or program results in "error TOC overflow" add -mminimal-toc to
14003         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14004         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14005
14006         archive_cmds_CXX=''
14007         hardcode_direct_CXX=yes
14008         hardcode_direct_absolute_CXX=yes
14009         hardcode_libdir_separator_CXX=':'
14010         link_all_deplibs_CXX=yes
14011         file_list_spec_CXX='$wl-f,'
14012         case $with_aix_soname,$aix_use_runtimelinking in
14013         aix,*) ;;       # no import file
14014         svr4,* | *,yes) # use import file
14015           # The Import File defines what to hardcode.
14016           hardcode_direct_CXX=no
14017           hardcode_direct_absolute_CXX=no
14018           ;;
14019         esac
14020
14021         if test yes = "$GXX"; then
14022           case $host_os in aix4.[012]|aix4.[012].*)
14023           # We only want to do this on AIX 4.2 and lower, the check
14024           # below for broken collect2 doesn't work under 4.3+
14025           collect2name=`$CC -print-prog-name=collect2`
14026           if test -f "$collect2name" &&
14027              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14028           then
14029             # We have reworked collect2
14030             :
14031           else
14032             # We have old collect2
14033             hardcode_direct_CXX=unsupported
14034             # It fails to find uninstalled libraries when the uninstalled
14035             # path is not listed in the libpath.  Setting hardcode_minus_L
14036             # to unsupported forces relinking
14037             hardcode_minus_L_CXX=yes
14038             hardcode_libdir_flag_spec_CXX='-L$libdir'
14039             hardcode_libdir_separator_CXX=
14040           fi
14041           esac
14042           shared_flag='-shared'
14043           if test yes = "$aix_use_runtimelinking"; then
14044             shared_flag=$shared_flag' $wl-G'
14045           fi
14046           # Need to ensure runtime linking is disabled for the traditional
14047           # shared library, or the linker may eventually find shared libraries
14048           # /with/ Import File - we do not want to mix them.
14049           shared_flag_aix='-shared'
14050           shared_flag_svr4='-shared $wl-G'
14051         else
14052           # not using gcc
14053           if test ia64 = "$host_cpu"; then
14054           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14055           # chokes on -Wl,-G. The following line is correct:
14056           shared_flag='-G'
14057           else
14058             if test yes = "$aix_use_runtimelinking"; then
14059               shared_flag='$wl-G'
14060             else
14061               shared_flag='$wl-bM:SRE'
14062             fi
14063             shared_flag_aix='$wl-bM:SRE'
14064             shared_flag_svr4='$wl-G'
14065           fi
14066         fi
14067
14068         export_dynamic_flag_spec_CXX='$wl-bexpall'
14069         # It seems that -bexpall does not export symbols beginning with
14070         # underscore (_), so it is better to generate a list of symbols to
14071         # export.
14072         always_export_symbols_CXX=yes
14073         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14074           # Warning - without using the other runtime loading flags (-brtl),
14075           # -berok will link without error, but may produce a broken library.
14076           # The "-G" linker flag allows undefined symbols.
14077           no_undefined_flag_CXX='-bernotok'
14078           # Determine the default libpath from the value encoded in an empty
14079           # executable.
14080           if test set = "${lt_cv_aix_libpath+set}"; then
14081   aix_libpath=$lt_cv_aix_libpath
14082 else
14083   if ${lt_cv_aix_libpath__CXX+:} false; then :
14084   $as_echo_n "(cached) " >&6
14085 else
14086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h.  */
14088
14089 int
14090 main ()
14091 {
14092
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 if ac_fn_cxx_try_link "$LINENO"; then :
14098
14099   lt_aix_libpath_sed='
14100       /Import File Strings/,/^$/ {
14101           /^0/ {
14102               s/^0  *\([^ ]*\) *$/\1/
14103               p
14104           }
14105       }'
14106   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14107   # Check for a 64-bit object if we didn't find anything.
14108   if test -z "$lt_cv_aix_libpath__CXX"; then
14109     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14110   fi
14111 fi
14112 rm -f core conftest.err conftest.$ac_objext \
14113     conftest$ac_exeext conftest.$ac_ext
14114   if test -z "$lt_cv_aix_libpath__CXX"; then
14115     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14116   fi
14117
14118 fi
14119
14120   aix_libpath=$lt_cv_aix_libpath__CXX
14121 fi
14122
14123           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14124
14125           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
14126         else
14127           if test ia64 = "$host_cpu"; then
14128             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14129             allow_undefined_flag_CXX="-z nodefs"
14130             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"
14131           else
14132             # Determine the default libpath from the value encoded in an
14133             # empty executable.
14134             if test set = "${lt_cv_aix_libpath+set}"; then
14135   aix_libpath=$lt_cv_aix_libpath
14136 else
14137   if ${lt_cv_aix_libpath__CXX+:} false; then :
14138   $as_echo_n "(cached) " >&6
14139 else
14140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h.  */
14142
14143 int
14144 main ()
14145 {
14146
14147   ;
14148   return 0;
14149 }
14150 _ACEOF
14151 if ac_fn_cxx_try_link "$LINENO"; then :
14152
14153   lt_aix_libpath_sed='
14154       /Import File Strings/,/^$/ {
14155           /^0/ {
14156               s/^0  *\([^ ]*\) *$/\1/
14157               p
14158           }
14159       }'
14160   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14161   # Check for a 64-bit object if we didn't find anything.
14162   if test -z "$lt_cv_aix_libpath__CXX"; then
14163     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14164   fi
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext \
14167     conftest$ac_exeext conftest.$ac_ext
14168   if test -z "$lt_cv_aix_libpath__CXX"; then
14169     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14170   fi
14171
14172 fi
14173
14174   aix_libpath=$lt_cv_aix_libpath__CXX
14175 fi
14176
14177             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14178             # Warning - without using the other run time loading flags,
14179             # -berok will link without error, but may produce a broken library.
14180             no_undefined_flag_CXX=' $wl-bernotok'
14181             allow_undefined_flag_CXX=' $wl-berok'
14182             if test yes = "$with_gnu_ld"; then
14183               # We only use this code for GNU lds that support --whole-archive.
14184               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14185             else
14186               # Exported symbols can be pulled into shared objects from archives
14187               whole_archive_flag_spec_CXX='$convenience'
14188             fi
14189             archive_cmds_need_lc_CXX=yes
14190             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14191             # -brtl affects multiple linker settings, -berok does not and is overridden later
14192             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14193             if test svr4 != "$with_aix_soname"; then
14194               # This is similar to how AIX traditionally builds its shared
14195               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14196               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'
14197             fi
14198             if test aix != "$with_aix_soname"; then
14199               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'
14200             else
14201               # used by -dlpreopen to get the symbols
14202               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14203             fi
14204             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14205           fi
14206         fi
14207         ;;
14208
14209       beos*)
14210         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14211           allow_undefined_flag_CXX=unsupported
14212           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14213           # support --undefined.  This deserves some investigation.  FIXME
14214           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14215         else
14216           ld_shlibs_CXX=no
14217         fi
14218         ;;
14219
14220       chorus*)
14221         case $cc_basename in
14222           *)
14223           # FIXME: insert proper C++ library support
14224           ld_shlibs_CXX=no
14225           ;;
14226         esac
14227         ;;
14228
14229       cygwin* | mingw* | pw32* | cegcc*)
14230         case $GXX,$cc_basename in
14231         ,cl* | no,cl*)
14232           # Native MSVC
14233           # hardcode_libdir_flag_spec is actually meaningless, as there is
14234           # no search path for DLLs.
14235           hardcode_libdir_flag_spec_CXX=' '
14236           allow_undefined_flag_CXX=unsupported
14237           always_export_symbols_CXX=yes
14238           file_list_spec_CXX='@'
14239           # Tell ltmain to make .lib files, not .a files.
14240           libext=lib
14241           # Tell ltmain to make .dll files, not .so files.
14242           shrext_cmds=.dll
14243           # FIXME: Setting linknames here is a bad hack.
14244           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14245           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14246               cp "$export_symbols" "$output_objdir/$soname.def";
14247               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14248             else
14249               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14250             fi~
14251             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14252             linknames='
14253           # The linker will not automatically build a static lib if we build a DLL.
14254           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14255           enable_shared_with_static_runtimes_CXX=yes
14256           # Don't use ranlib
14257           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14258           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14259             lt_tool_outputfile="@TOOL_OUTPUT@"~
14260             case $lt_outputfile in
14261               *.exe|*.EXE) ;;
14262               *)
14263                 lt_outputfile=$lt_outputfile.exe
14264                 lt_tool_outputfile=$lt_tool_outputfile.exe
14265                 ;;
14266             esac~
14267             func_to_tool_file "$lt_outputfile"~
14268             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14269               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14270               $RM "$lt_outputfile.manifest";
14271             fi'
14272           ;;
14273         *)
14274           # g++
14275           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14276           # as there is no search path for DLLs.
14277           hardcode_libdir_flag_spec_CXX='-L$libdir'
14278           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14279           allow_undefined_flag_CXX=unsupported
14280           always_export_symbols_CXX=no
14281           enable_shared_with_static_runtimes_CXX=yes
14282
14283           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14284             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'
14285             # If the export-symbols file already is a .def file, use it as
14286             # is; otherwise, prepend EXPORTS...
14287             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14288               cp $export_symbols $output_objdir/$soname.def;
14289             else
14290               echo EXPORTS > $output_objdir/$soname.def;
14291               cat $export_symbols >> $output_objdir/$soname.def;
14292             fi~
14293             $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'
14294           else
14295             ld_shlibs_CXX=no
14296           fi
14297           ;;
14298         esac
14299         ;;
14300       darwin* | rhapsody*)
14301
14302
14303   archive_cmds_need_lc_CXX=no
14304   hardcode_direct_CXX=no
14305   hardcode_automatic_CXX=yes
14306   hardcode_shlibpath_var_CXX=unsupported
14307   if test yes = "$lt_cv_ld_force_load"; then
14308     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\"`'
14309
14310   else
14311     whole_archive_flag_spec_CXX=''
14312   fi
14313   link_all_deplibs_CXX=yes
14314   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14315   case $cc_basename in
14316      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14317      *) _lt_dar_can_shared=$GCC ;;
14318   esac
14319   if test yes = "$_lt_dar_can_shared"; then
14320     output_verbose_link_cmd=func_echo_all
14321     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"
14322     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14323     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"
14324     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"
14325        if test yes != "$lt_cv_apple_cc_single_mod"; then
14326       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"
14327       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"
14328     fi
14329
14330   else
14331   ld_shlibs_CXX=no
14332   fi
14333
14334         ;;
14335
14336       os2*)
14337         hardcode_libdir_flag_spec_CXX='-L$libdir'
14338         hardcode_minus_L_CXX=yes
14339         allow_undefined_flag_CXX=unsupported
14340         shrext_cmds=.dll
14341         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14342           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14343           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14344           $ECHO EXPORTS >> $output_objdir/$libname.def~
14345           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $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         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14349           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14350           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14351           $ECHO EXPORTS >> $output_objdir/$libname.def~
14352           prefix_cmds="$SED"~
14353           if test EXPORTS = "`$SED 1q $export_symbols`"; then
14354             prefix_cmds="$prefix_cmds -e 1d";
14355           fi~
14356           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14357           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14358           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14359           emximp -o $lib $output_objdir/$libname.def'
14360         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14361         enable_shared_with_static_runtimes_CXX=yes
14362         ;;
14363
14364       dgux*)
14365         case $cc_basename in
14366           ec++*)
14367             # FIXME: insert proper C++ library support
14368             ld_shlibs_CXX=no
14369             ;;
14370           ghcx*)
14371             # Green Hills C++ Compiler
14372             # FIXME: insert proper C++ library support
14373             ld_shlibs_CXX=no
14374             ;;
14375           *)
14376             # FIXME: insert proper C++ library support
14377             ld_shlibs_CXX=no
14378             ;;
14379         esac
14380         ;;
14381
14382       freebsd2.*)
14383         # C++ shared libraries reported to be fairly broken before
14384         # switch to ELF
14385         ld_shlibs_CXX=no
14386         ;;
14387
14388       freebsd-elf*)
14389         archive_cmds_need_lc_CXX=no
14390         ;;
14391
14392       freebsd* | dragonfly*)
14393         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14394         # conventions
14395         ld_shlibs_CXX=yes
14396         ;;
14397
14398       haiku*)
14399         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14400         link_all_deplibs_CXX=yes
14401         ;;
14402
14403       hpux9*)
14404         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14405         hardcode_libdir_separator_CXX=:
14406         export_dynamic_flag_spec_CXX='$wl-E'
14407         hardcode_direct_CXX=yes
14408         hardcode_minus_L_CXX=yes # Not in the search PATH,
14409                                              # but as the default
14410                                              # location of the library.
14411
14412         case $cc_basename in
14413           CC*)
14414             # FIXME: insert proper C++ library support
14415             ld_shlibs_CXX=no
14416             ;;
14417           aCC*)
14418             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'
14419             # Commands to make compiler produce verbose output that lists
14420             # what "hidden" libraries, object files and flags are used when
14421             # linking a shared library.
14422             #
14423             # There doesn't appear to be a way to prevent this compiler from
14424             # explicitly linking system object files so we need to strip them
14425             # from the output so that they don't get included in the library
14426             # dependencies.
14427             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"'
14428             ;;
14429           *)
14430             if test yes = "$GXX"; then
14431               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'
14432             else
14433               # FIXME: insert proper C++ library support
14434               ld_shlibs_CXX=no
14435             fi
14436             ;;
14437         esac
14438         ;;
14439
14440       hpux10*|hpux11*)
14441         if test no = "$with_gnu_ld"; then
14442           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14443           hardcode_libdir_separator_CXX=:
14444
14445           case $host_cpu in
14446             hppa*64*|ia64*)
14447               ;;
14448             *)
14449               export_dynamic_flag_spec_CXX='$wl-E'
14450               ;;
14451           esac
14452         fi
14453         case $host_cpu in
14454           hppa*64*|ia64*)
14455             hardcode_direct_CXX=no
14456             hardcode_shlibpath_var_CXX=no
14457             ;;
14458           *)
14459             hardcode_direct_CXX=yes
14460             hardcode_direct_absolute_CXX=yes
14461             hardcode_minus_L_CXX=yes # Not in the search PATH,
14462                                                  # but as the default
14463                                                  # location of the library.
14464             ;;
14465         esac
14466
14467         case $cc_basename in
14468           CC*)
14469             # FIXME: insert proper C++ library support
14470             ld_shlibs_CXX=no
14471             ;;
14472           aCC*)
14473             case $host_cpu in
14474               hppa*64*)
14475                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14476                 ;;
14477               ia64*)
14478                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14479                 ;;
14480               *)
14481                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14482                 ;;
14483             esac
14484             # Commands to make compiler produce verbose output that lists
14485             # what "hidden" libraries, object files and flags are used when
14486             # linking a shared library.
14487             #
14488             # There doesn't appear to be a way to prevent this compiler from
14489             # explicitly linking system object files so we need to strip them
14490             # from the output so that they don't get included in the library
14491             # dependencies.
14492             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"'
14493             ;;
14494           *)
14495             if test yes = "$GXX"; then
14496               if test no = "$with_gnu_ld"; then
14497                 case $host_cpu in
14498                   hppa*64*)
14499                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14500                     ;;
14501                   ia64*)
14502                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14503                     ;;
14504                   *)
14505                     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'
14506                     ;;
14507                 esac
14508               fi
14509             else
14510               # FIXME: insert proper C++ library support
14511               ld_shlibs_CXX=no
14512             fi
14513             ;;
14514         esac
14515         ;;
14516
14517       interix[3-9]*)
14518         hardcode_direct_CXX=no
14519         hardcode_shlibpath_var_CXX=no
14520         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14521         export_dynamic_flag_spec_CXX='$wl-E'
14522         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14523         # Instead, shared libraries are loaded at an image base (0x10000000 by
14524         # default) and relocated if they conflict, which is a slow very memory
14525         # consuming and fragmenting process.  To avoid this, we pick a random,
14526         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14527         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14528         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'
14529         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'
14530         ;;
14531       irix5* | irix6*)
14532         case $cc_basename in
14533           CC*)
14534             # SGI C++
14535             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'
14536
14537             # Archives containing C++ object files must be created using
14538             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14539             # necessary to make sure instantiated templates are included
14540             # in the archive.
14541             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14542             ;;
14543           *)
14544             if test yes = "$GXX"; then
14545               if test no = "$with_gnu_ld"; then
14546                 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'
14547               else
14548                 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'
14549               fi
14550             fi
14551             link_all_deplibs_CXX=yes
14552             ;;
14553         esac
14554         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14555         hardcode_libdir_separator_CXX=:
14556         inherit_rpath_CXX=yes
14557         ;;
14558
14559       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14560         case $cc_basename in
14561           KCC*)
14562             # Kuck and Associates, Inc. (KAI) C++ Compiler
14563
14564             # KCC will only create a shared library if the output file
14565             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14566             # to its proper name (with version) after linking.
14567             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'
14568             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'
14569             # Commands to make compiler produce verbose output that lists
14570             # what "hidden" libraries, object files and flags are used when
14571             # linking a shared library.
14572             #
14573             # There doesn't appear to be a way to prevent this compiler from
14574             # explicitly linking system object files so we need to strip them
14575             # from the output so that they don't get included in the library
14576             # dependencies.
14577             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"'
14578
14579             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14580             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14581
14582             # Archives containing C++ object files must be created using
14583             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14584             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14585             ;;
14586           icpc* | ecpc* )
14587             # Intel C++
14588             with_gnu_ld=yes
14589             # version 8.0 and above of icpc choke on multiply defined symbols
14590             # if we add $predep_objects and $postdep_objects, however 7.1 and
14591             # earlier do not add the objects themselves.
14592             case `$CC -V 2>&1` in
14593               *"Version 7."*)
14594                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14595                 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'
14596                 ;;
14597               *)  # Version 8.0 or newer
14598                 tmp_idyn=
14599                 case $host_cpu in
14600                   ia64*) tmp_idyn=' -i_dynamic';;
14601                 esac
14602                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14603                 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'
14604                 ;;
14605             esac
14606             archive_cmds_need_lc_CXX=no
14607             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14608             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14609             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14610             ;;
14611           pgCC* | pgcpp*)
14612             # Portland Group C++ compiler
14613             case `$CC -V` in
14614             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14615               prelink_cmds_CXX='tpldir=Template.dir~
14616                rm -rf $tpldir~
14617                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14618                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14619               old_archive_cmds_CXX='tpldir=Template.dir~
14620                 rm -rf $tpldir~
14621                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14622                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14623                 $RANLIB $oldlib'
14624               archive_cmds_CXX='tpldir=Template.dir~
14625                 rm -rf $tpldir~
14626                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14627                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14628               archive_expsym_cmds_CXX='tpldir=Template.dir~
14629                 rm -rf $tpldir~
14630                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14631                 $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'
14632               ;;
14633             *) # Version 6 and above use weak symbols
14634               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14635               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'
14636               ;;
14637             esac
14638
14639             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14640             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14641             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'
14642             ;;
14643           cxx*)
14644             # Compaq C++
14645             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14646             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'
14647
14648             runpath_var=LD_RUN_PATH
14649             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14650             hardcode_libdir_separator_CXX=:
14651
14652             # Commands to make compiler produce verbose output that lists
14653             # what "hidden" libraries, object files and flags are used when
14654             # linking a shared library.
14655             #
14656             # There doesn't appear to be a way to prevent this compiler from
14657             # explicitly linking system object files so we need to strip them
14658             # from the output so that they don't get included in the library
14659             # dependencies.
14660             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'
14661             ;;
14662           xl* | mpixl* | bgxl*)
14663             # IBM XL 8.0 on PPC, with GNU ld
14664             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14665             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14666             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14667             if test yes = "$supports_anon_versioning"; then
14668               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14669                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14670                 echo "local: *; };" >> $output_objdir/$libname.ver~
14671                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14672             fi
14673             ;;
14674           *)
14675             case `$CC -V 2>&1 | sed 5q` in
14676             *Sun\ C*)
14677               # Sun C++ 5.9
14678               no_undefined_flag_CXX=' -zdefs'
14679               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14680               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'
14681               hardcode_libdir_flag_spec_CXX='-R$libdir'
14682               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'
14683               compiler_needs_object_CXX=yes
14684
14685               # Not sure whether something based on
14686               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14687               # would be better.
14688               output_verbose_link_cmd='func_echo_all'
14689
14690               # Archives containing C++ object files must be created using
14691               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14692               # necessary to make sure instantiated templates are included
14693               # in the archive.
14694               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14695               ;;
14696             esac
14697             ;;
14698         esac
14699         ;;
14700
14701       lynxos*)
14702         # FIXME: insert proper C++ library support
14703         ld_shlibs_CXX=no
14704         ;;
14705
14706       m88k*)
14707         # FIXME: insert proper C++ library support
14708         ld_shlibs_CXX=no
14709         ;;
14710
14711       mvs*)
14712         case $cc_basename in
14713           cxx*)
14714             # FIXME: insert proper C++ library support
14715             ld_shlibs_CXX=no
14716             ;;
14717           *)
14718             # FIXME: insert proper C++ library support
14719             ld_shlibs_CXX=no
14720             ;;
14721         esac
14722         ;;
14723
14724       netbsd*)
14725         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14726           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14727           wlarc=
14728           hardcode_libdir_flag_spec_CXX='-R$libdir'
14729           hardcode_direct_CXX=yes
14730           hardcode_shlibpath_var_CXX=no
14731         fi
14732         # Workaround some broken pre-1.5 toolchains
14733         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14734         ;;
14735
14736       *nto* | *qnx*)
14737         ld_shlibs_CXX=yes
14738         ;;
14739
14740       openbsd* | bitrig*)
14741         if test -f /usr/libexec/ld.so; then
14742           hardcode_direct_CXX=yes
14743           hardcode_shlibpath_var_CXX=no
14744           hardcode_direct_absolute_CXX=yes
14745           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14746           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14747           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14748             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14749             export_dynamic_flag_spec_CXX='$wl-E'
14750             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14751           fi
14752           output_verbose_link_cmd=func_echo_all
14753         else
14754           ld_shlibs_CXX=no
14755         fi
14756         ;;
14757
14758       osf3* | osf4* | osf5*)
14759         case $cc_basename in
14760           KCC*)
14761             # Kuck and Associates, Inc. (KAI) C++ Compiler
14762
14763             # KCC will only create a shared library if the output file
14764             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14765             # to its proper name (with version) after linking.
14766             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'
14767
14768             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14769             hardcode_libdir_separator_CXX=:
14770
14771             # Archives containing C++ object files must be created using
14772             # the KAI C++ compiler.
14773             case $host in
14774               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14775               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14776             esac
14777             ;;
14778           RCC*)
14779             # Rational C++ 2.4.1
14780             # FIXME: insert proper C++ library support
14781             ld_shlibs_CXX=no
14782             ;;
14783           cxx*)
14784             case $host in
14785               osf3*)
14786                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14787                 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'
14788                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14789                 ;;
14790               *)
14791                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14792                 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'
14793                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14794                   echo "-hidden">> $lib.exp~
14795                   $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~
14796                   $RM $lib.exp'
14797                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14798                 ;;
14799             esac
14800
14801             hardcode_libdir_separator_CXX=:
14802
14803             # Commands to make compiler produce verbose output that lists
14804             # what "hidden" libraries, object files and flags are used when
14805             # linking a shared library.
14806             #
14807             # There doesn't appear to be a way to prevent this compiler from
14808             # explicitly linking system object files so we need to strip them
14809             # from the output so that they don't get included in the library
14810             # dependencies.
14811             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"'
14812             ;;
14813           *)
14814             if test yes,no = "$GXX,$with_gnu_ld"; then
14815               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14816               case $host in
14817                 osf3*)
14818                   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'
14819                   ;;
14820                 *)
14821                   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'
14822                   ;;
14823               esac
14824
14825               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14826               hardcode_libdir_separator_CXX=:
14827
14828               # Commands to make compiler produce verbose output that lists
14829               # what "hidden" libraries, object files and flags are used when
14830               # linking a shared library.
14831               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14832
14833             else
14834               # FIXME: insert proper C++ library support
14835               ld_shlibs_CXX=no
14836             fi
14837             ;;
14838         esac
14839         ;;
14840
14841       psos*)
14842         # FIXME: insert proper C++ library support
14843         ld_shlibs_CXX=no
14844         ;;
14845
14846       sunos4*)
14847         case $cc_basename in
14848           CC*)
14849             # Sun C++ 4.x
14850             # FIXME: insert proper C++ library support
14851             ld_shlibs_CXX=no
14852             ;;
14853           lcc*)
14854             # Lucid
14855             # FIXME: insert proper C++ library support
14856             ld_shlibs_CXX=no
14857             ;;
14858           *)
14859             # FIXME: insert proper C++ library support
14860             ld_shlibs_CXX=no
14861             ;;
14862         esac
14863         ;;
14864
14865       solaris*)
14866         case $cc_basename in
14867           CC* | sunCC*)
14868             # Sun C++ 4.2, 5.x and Centerline C++
14869             archive_cmds_need_lc_CXX=yes
14870             no_undefined_flag_CXX=' -zdefs'
14871             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14872             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14873               $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'
14874
14875             hardcode_libdir_flag_spec_CXX='-R$libdir'
14876             hardcode_shlibpath_var_CXX=no
14877             case $host_os in
14878               solaris2.[0-5] | solaris2.[0-5].*) ;;
14879               *)
14880                 # The compiler driver will combine and reorder linker options,
14881                 # but understands '-z linker_flag'.
14882                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14883                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14884                 ;;
14885             esac
14886             link_all_deplibs_CXX=yes
14887
14888             output_verbose_link_cmd='func_echo_all'
14889
14890             # Archives containing C++ object files must be created using
14891             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14892             # necessary to make sure instantiated templates are included
14893             # in the archive.
14894             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14895             ;;
14896           gcx*)
14897             # Green Hills C++ Compiler
14898             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14899
14900             # The C++ compiler must be used to create the archive.
14901             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14902             ;;
14903           *)
14904             # GNU C++ compiler with Solaris linker
14905             if test yes,no = "$GXX,$with_gnu_ld"; then
14906               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14907               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14908                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14909                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14910                   $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'
14911
14912                 # Commands to make compiler produce verbose output that lists
14913                 # what "hidden" libraries, object files and flags are used when
14914                 # linking a shared library.
14915                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14916               else
14917                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14918                 # platform.
14919                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14920                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14921                   $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'
14922
14923                 # Commands to make compiler produce verbose output that lists
14924                 # what "hidden" libraries, object files and flags are used when
14925                 # linking a shared library.
14926                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14927               fi
14928
14929               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14930               case $host_os in
14931                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14932                 *)
14933                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14934                   ;;
14935               esac
14936             fi
14937             ;;
14938         esac
14939         ;;
14940
14941     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14942       no_undefined_flag_CXX='$wl-z,text'
14943       archive_cmds_need_lc_CXX=no
14944       hardcode_shlibpath_var_CXX=no
14945       runpath_var='LD_RUN_PATH'
14946
14947       case $cc_basename in
14948         CC*)
14949           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14950           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14951           ;;
14952         *)
14953           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14954           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14955           ;;
14956       esac
14957       ;;
14958
14959       sysv5* | sco3.2v5* | sco5v6*)
14960         # Note: We CANNOT use -z defs as we might desire, because we do not
14961         # link with -lc, and that would cause any symbols used from libc to
14962         # always be unresolved, which means just about no library would
14963         # ever link correctly.  If we're not using GNU ld we use -z text
14964         # though, which does catch some bad symbols but isn't as heavy-handed
14965         # as -z defs.
14966         no_undefined_flag_CXX='$wl-z,text'
14967         allow_undefined_flag_CXX='$wl-z,nodefs'
14968         archive_cmds_need_lc_CXX=no
14969         hardcode_shlibpath_var_CXX=no
14970         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14971         hardcode_libdir_separator_CXX=':'
14972         link_all_deplibs_CXX=yes
14973         export_dynamic_flag_spec_CXX='$wl-Bexport'
14974         runpath_var='LD_RUN_PATH'
14975
14976         case $cc_basename in
14977           CC*)
14978             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14980             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14981               '"$old_archive_cmds_CXX"
14982             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14983               '"$reload_cmds_CXX"
14984             ;;
14985           *)
14986             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14987             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988             ;;
14989         esac
14990       ;;
14991
14992       tandem*)
14993         case $cc_basename in
14994           NCC*)
14995             # NonStop-UX NCC 3.20
14996             # FIXME: insert proper C++ library support
14997             ld_shlibs_CXX=no
14998             ;;
14999           *)
15000             # FIXME: insert proper C++ library support
15001             ld_shlibs_CXX=no
15002             ;;
15003         esac
15004         ;;
15005
15006       vxworks*)
15007         # FIXME: insert proper C++ library support
15008         ld_shlibs_CXX=no
15009         ;;
15010
15011       *)
15012         # FIXME: insert proper C++ library support
15013         ld_shlibs_CXX=no
15014         ;;
15015     esac
15016
15017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15018 $as_echo "$ld_shlibs_CXX" >&6; }
15019     test no = "$ld_shlibs_CXX" && can_build_shared=no
15020
15021     GCC_CXX=$GXX
15022     LD_CXX=$LD
15023
15024     ## CAVEAT EMPTOR:
15025     ## There is no encapsulation within the following macros, do not change
15026     ## the running order or otherwise move them around unless you know exactly
15027     ## what you are doing...
15028     # Dependencies to place before and after the object being linked:
15029 predep_objects_CXX=
15030 postdep_objects_CXX=
15031 predeps_CXX=
15032 postdeps_CXX=
15033 compiler_lib_search_path_CXX=
15034
15035 cat > conftest.$ac_ext <<_LT_EOF
15036 class Foo
15037 {
15038 public:
15039   Foo (void) { a = 0; }
15040 private:
15041   int a;
15042 };
15043 _LT_EOF
15044
15045
15046 _lt_libdeps_save_CFLAGS=$CFLAGS
15047 case "$CC $CFLAGS " in #(
15048 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15049 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15050 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15051 esac
15052
15053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15054   (eval $ac_compile) 2>&5
15055   ac_status=$?
15056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15057   test $ac_status = 0; }; then
15058   # Parse the compiler output and extract the necessary
15059   # objects, libraries and library flags.
15060
15061   # Sentinel used to keep track of whether or not we are before
15062   # the conftest object file.
15063   pre_test_object_deps_done=no
15064
15065   for p in `eval "$output_verbose_link_cmd"`; do
15066     case $prev$p in
15067
15068     -L* | -R* | -l*)
15069        # Some compilers place space between "-{L,R}" and the path.
15070        # Remove the space.
15071        if test x-L = "$p" ||
15072           test x-R = "$p"; then
15073          prev=$p
15074          continue
15075        fi
15076
15077        # Expand the sysroot to ease extracting the directories later.
15078        if test -z "$prev"; then
15079          case $p in
15080          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15081          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15082          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15083          esac
15084        fi
15085        case $p in
15086        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15087        esac
15088        if test no = "$pre_test_object_deps_done"; then
15089          case $prev in
15090          -L | -R)
15091            # Internal compiler library paths should come after those
15092            # provided the user.  The postdeps already come after the
15093            # user supplied libs so there is no need to process them.
15094            if test -z "$compiler_lib_search_path_CXX"; then
15095              compiler_lib_search_path_CXX=$prev$p
15096            else
15097              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15098            fi
15099            ;;
15100          # The "-l" case would never come before the object being
15101          # linked, so don't bother handling this case.
15102          esac
15103        else
15104          if test -z "$postdeps_CXX"; then
15105            postdeps_CXX=$prev$p
15106          else
15107            postdeps_CXX="${postdeps_CXX} $prev$p"
15108          fi
15109        fi
15110        prev=
15111        ;;
15112
15113     *.lto.$objext) ;; # Ignore GCC LTO objects
15114     *.$objext)
15115        # This assumes that the test object file only shows up
15116        # once in the compiler output.
15117        if test "$p" = "conftest.$objext"; then
15118          pre_test_object_deps_done=yes
15119          continue
15120        fi
15121
15122        if test no = "$pre_test_object_deps_done"; then
15123          if test -z "$predep_objects_CXX"; then
15124            predep_objects_CXX=$p
15125          else
15126            predep_objects_CXX="$predep_objects_CXX $p"
15127          fi
15128        else
15129          if test -z "$postdep_objects_CXX"; then
15130            postdep_objects_CXX=$p
15131          else
15132            postdep_objects_CXX="$postdep_objects_CXX $p"
15133          fi
15134        fi
15135        ;;
15136
15137     *) ;; # Ignore the rest.
15138
15139     esac
15140   done
15141
15142   # Clean up.
15143   rm -f a.out a.exe
15144 else
15145   echo "libtool.m4: error: problem compiling CXX test program"
15146 fi
15147
15148 $RM -f confest.$objext
15149 CFLAGS=$_lt_libdeps_save_CFLAGS
15150
15151 # PORTME: override above test on systems where it is broken
15152 case $host_os in
15153 interix[3-9]*)
15154   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15155   # hack all around it, let's just trust "g++" to DTRT.
15156   predep_objects_CXX=
15157   postdep_objects_CXX=
15158   postdeps_CXX=
15159   ;;
15160 esac
15161
15162
15163 case " $postdeps_CXX " in
15164 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15165 esac
15166  compiler_lib_search_dirs_CXX=
15167 if test -n "${compiler_lib_search_path_CXX}"; then
15168  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15169 fi
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201     lt_prog_compiler_wl_CXX=
15202 lt_prog_compiler_pic_CXX=
15203 lt_prog_compiler_static_CXX=
15204
15205
15206   # C++ specific cases for pic, static, wl, etc.
15207   if test yes = "$GXX"; then
15208     lt_prog_compiler_wl_CXX='-Wl,'
15209     lt_prog_compiler_static_CXX='-static'
15210
15211     case $host_os in
15212     aix*)
15213       # All AIX code is PIC.
15214       if test ia64 = "$host_cpu"; then
15215         # AIX 5 now supports IA64 processor
15216         lt_prog_compiler_static_CXX='-Bstatic'
15217       fi
15218       lt_prog_compiler_pic_CXX='-fPIC'
15219       ;;
15220
15221     amigaos*)
15222       case $host_cpu in
15223       powerpc)
15224             # see comment about AmigaOS4 .so support
15225             lt_prog_compiler_pic_CXX='-fPIC'
15226         ;;
15227       m68k)
15228             # FIXME: we need at least 68020 code to build shared libraries, but
15229             # adding the '-m68020' flag to GCC prevents building anything better,
15230             # like '-m68040'.
15231             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15232         ;;
15233       esac
15234       ;;
15235
15236     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15237       # PIC is the default for these OSes.
15238       ;;
15239     mingw* | cygwin* | os2* | pw32* | cegcc*)
15240       # This hack is so that the source file can tell whether it is being
15241       # built for inclusion in a dll (and should export symbols for example).
15242       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15243       # (--disable-auto-import) libraries
15244       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15245       case $host_os in
15246       os2*)
15247         lt_prog_compiler_static_CXX='$wl-static'
15248         ;;
15249       esac
15250       ;;
15251     darwin* | rhapsody*)
15252       # PIC is the default on this platform
15253       # Common symbols not allowed in MH_DYLIB files
15254       lt_prog_compiler_pic_CXX='-fno-common'
15255       ;;
15256     *djgpp*)
15257       # DJGPP does not support shared libraries at all
15258       lt_prog_compiler_pic_CXX=
15259       ;;
15260     haiku*)
15261       # PIC is the default for Haiku.
15262       # The "-static" flag exists, but is broken.
15263       lt_prog_compiler_static_CXX=
15264       ;;
15265     interix[3-9]*)
15266       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15267       # Instead, we relocate shared libraries at runtime.
15268       ;;
15269     sysv4*MP*)
15270       if test -d /usr/nec; then
15271         lt_prog_compiler_pic_CXX=-Kconform_pic
15272       fi
15273       ;;
15274     hpux*)
15275       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15276       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15277       # sets the default TLS model and affects inlining.
15278       case $host_cpu in
15279       hppa*64*)
15280         ;;
15281       *)
15282         lt_prog_compiler_pic_CXX='-fPIC'
15283         ;;
15284       esac
15285       ;;
15286     *qnx* | *nto*)
15287       # QNX uses GNU C++, but need to define -shared option too, otherwise
15288       # it will coredump.
15289       lt_prog_compiler_pic_CXX='-fPIC -shared'
15290       ;;
15291     *)
15292       lt_prog_compiler_pic_CXX='-fPIC'
15293       ;;
15294     esac
15295   else
15296     case $host_os in
15297       aix[4-9]*)
15298         # All AIX code is PIC.
15299         if test ia64 = "$host_cpu"; then
15300           # AIX 5 now supports IA64 processor
15301           lt_prog_compiler_static_CXX='-Bstatic'
15302         else
15303           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15304         fi
15305         ;;
15306       chorus*)
15307         case $cc_basename in
15308         cxch68*)
15309           # Green Hills C++ Compiler
15310           # _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"
15311           ;;
15312         esac
15313         ;;
15314       mingw* | cygwin* | os2* | pw32* | cegcc*)
15315         # This hack is so that the source file can tell whether it is being
15316         # built for inclusion in a dll (and should export symbols for example).
15317         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15318         ;;
15319       dgux*)
15320         case $cc_basename in
15321           ec++*)
15322             lt_prog_compiler_pic_CXX='-KPIC'
15323             ;;
15324           ghcx*)
15325             # Green Hills C++ Compiler
15326             lt_prog_compiler_pic_CXX='-pic'
15327             ;;
15328           *)
15329             ;;
15330         esac
15331         ;;
15332       freebsd* | dragonfly*)
15333         # FreeBSD uses GNU C++
15334         ;;
15335       hpux9* | hpux10* | hpux11*)
15336         case $cc_basename in
15337           CC*)
15338             lt_prog_compiler_wl_CXX='-Wl,'
15339             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15340             if test ia64 != "$host_cpu"; then
15341               lt_prog_compiler_pic_CXX='+Z'
15342             fi
15343             ;;
15344           aCC*)
15345             lt_prog_compiler_wl_CXX='-Wl,'
15346             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15347             case $host_cpu in
15348             hppa*64*|ia64*)
15349               # +Z the default
15350               ;;
15351             *)
15352               lt_prog_compiler_pic_CXX='+Z'
15353               ;;
15354             esac
15355             ;;
15356           *)
15357             ;;
15358         esac
15359         ;;
15360       interix*)
15361         # This is c89, which is MS Visual C++ (no shared libs)
15362         # Anyone wants to do a port?
15363         ;;
15364       irix5* | irix6* | nonstopux*)
15365         case $cc_basename in
15366           CC*)
15367             lt_prog_compiler_wl_CXX='-Wl,'
15368             lt_prog_compiler_static_CXX='-non_shared'
15369             # CC pic flag -KPIC is the default.
15370             ;;
15371           *)
15372             ;;
15373         esac
15374         ;;
15375       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15376         case $cc_basename in
15377           KCC*)
15378             # KAI C++ Compiler
15379             lt_prog_compiler_wl_CXX='--backend -Wl,'
15380             lt_prog_compiler_pic_CXX='-fPIC'
15381             ;;
15382           ecpc* )
15383             # old Intel C++ for x86_64, which still supported -KPIC.
15384             lt_prog_compiler_wl_CXX='-Wl,'
15385             lt_prog_compiler_pic_CXX='-KPIC'
15386             lt_prog_compiler_static_CXX='-static'
15387             ;;
15388           icpc* )
15389             # Intel C++, used to be incompatible with GCC.
15390             # ICC 10 doesn't accept -KPIC any more.
15391             lt_prog_compiler_wl_CXX='-Wl,'
15392             lt_prog_compiler_pic_CXX='-fPIC'
15393             lt_prog_compiler_static_CXX='-static'
15394             ;;
15395           pgCC* | pgcpp*)
15396             # Portland Group C++ compiler
15397             lt_prog_compiler_wl_CXX='-Wl,'
15398             lt_prog_compiler_pic_CXX='-fpic'
15399             lt_prog_compiler_static_CXX='-Bstatic'
15400             ;;
15401           cxx*)
15402             # Compaq C++
15403             # Make sure the PIC flag is empty.  It appears that all Alpha
15404             # Linux and Compaq Tru64 Unix objects are PIC.
15405             lt_prog_compiler_pic_CXX=
15406             lt_prog_compiler_static_CXX='-non_shared'
15407             ;;
15408           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15409             # IBM XL 8.0, 9.0 on PPC and BlueGene
15410             lt_prog_compiler_wl_CXX='-Wl,'
15411             lt_prog_compiler_pic_CXX='-qpic'
15412             lt_prog_compiler_static_CXX='-qstaticlink'
15413             ;;
15414           *)
15415             case `$CC -V 2>&1 | sed 5q` in
15416             *Sun\ C*)
15417               # Sun C++ 5.9
15418               lt_prog_compiler_pic_CXX='-KPIC'
15419               lt_prog_compiler_static_CXX='-Bstatic'
15420               lt_prog_compiler_wl_CXX='-Qoption ld '
15421               ;;
15422             esac
15423             ;;
15424         esac
15425         ;;
15426       lynxos*)
15427         ;;
15428       m88k*)
15429         ;;
15430       mvs*)
15431         case $cc_basename in
15432           cxx*)
15433             lt_prog_compiler_pic_CXX='-W c,exportall'
15434             ;;
15435           *)
15436             ;;
15437         esac
15438         ;;
15439       netbsd*)
15440         ;;
15441       *qnx* | *nto*)
15442         # QNX uses GNU C++, but need to define -shared option too, otherwise
15443         # it will coredump.
15444         lt_prog_compiler_pic_CXX='-fPIC -shared'
15445         ;;
15446       osf3* | osf4* | osf5*)
15447         case $cc_basename in
15448           KCC*)
15449             lt_prog_compiler_wl_CXX='--backend -Wl,'
15450             ;;
15451           RCC*)
15452             # Rational C++ 2.4.1
15453             lt_prog_compiler_pic_CXX='-pic'
15454             ;;
15455           cxx*)
15456             # Digital/Compaq C++
15457             lt_prog_compiler_wl_CXX='-Wl,'
15458             # Make sure the PIC flag is empty.  It appears that all Alpha
15459             # Linux and Compaq Tru64 Unix objects are PIC.
15460             lt_prog_compiler_pic_CXX=
15461             lt_prog_compiler_static_CXX='-non_shared'
15462             ;;
15463           *)
15464             ;;
15465         esac
15466         ;;
15467       psos*)
15468         ;;
15469       solaris*)
15470         case $cc_basename in
15471           CC* | sunCC*)
15472             # Sun C++ 4.2, 5.x and Centerline C++
15473             lt_prog_compiler_pic_CXX='-KPIC'
15474             lt_prog_compiler_static_CXX='-Bstatic'
15475             lt_prog_compiler_wl_CXX='-Qoption ld '
15476             ;;
15477           gcx*)
15478             # Green Hills C++ Compiler
15479             lt_prog_compiler_pic_CXX='-PIC'
15480             ;;
15481           *)
15482             ;;
15483         esac
15484         ;;
15485       sunos4*)
15486         case $cc_basename in
15487           CC*)
15488             # Sun C++ 4.x
15489             lt_prog_compiler_pic_CXX='-pic'
15490             lt_prog_compiler_static_CXX='-Bstatic'
15491             ;;
15492           lcc*)
15493             # Lucid
15494             lt_prog_compiler_pic_CXX='-pic'
15495             ;;
15496           *)
15497             ;;
15498         esac
15499         ;;
15500       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15501         case $cc_basename in
15502           CC*)
15503             lt_prog_compiler_wl_CXX='-Wl,'
15504             lt_prog_compiler_pic_CXX='-KPIC'
15505             lt_prog_compiler_static_CXX='-Bstatic'
15506             ;;
15507         esac
15508         ;;
15509       tandem*)
15510         case $cc_basename in
15511           NCC*)
15512             # NonStop-UX NCC 3.20
15513             lt_prog_compiler_pic_CXX='-KPIC'
15514             ;;
15515           *)
15516             ;;
15517         esac
15518         ;;
15519       vxworks*)
15520         ;;
15521       *)
15522         lt_prog_compiler_can_build_shared_CXX=no
15523         ;;
15524     esac
15525   fi
15526
15527 case $host_os in
15528   # For platforms that do not support PIC, -DPIC is meaningless:
15529   *djgpp*)
15530     lt_prog_compiler_pic_CXX=
15531     ;;
15532   *)
15533     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15534     ;;
15535 esac
15536
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15538 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15539 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15540   $as_echo_n "(cached) " >&6
15541 else
15542   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15543 fi
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15545 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15546 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15547
15548 #
15549 # Check to make sure the PIC flag actually works.
15550 #
15551 if test -n "$lt_prog_compiler_pic_CXX"; then
15552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15553 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15554 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15555   $as_echo_n "(cached) " >&6
15556 else
15557   lt_cv_prog_compiler_pic_works_CXX=no
15558    ac_outfile=conftest.$ac_objext
15559    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15560    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15561    # Insert the option either (1) after the last *FLAGS variable, or
15562    # (2) before a word containing "conftest.", or (3) at the end.
15563    # Note that $ac_compile itself does not contain backslashes and begins
15564    # with a dollar sign (not a hyphen), so the echo should work correctly.
15565    # The option is referenced via a variable to avoid confusing sed.
15566    lt_compile=`echo "$ac_compile" | $SED \
15567    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15568    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15569    -e 's:$: $lt_compiler_flag:'`
15570    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15571    (eval "$lt_compile" 2>conftest.err)
15572    ac_status=$?
15573    cat conftest.err >&5
15574    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575    if (exit $ac_status) && test -s "$ac_outfile"; then
15576      # The compiler can only warn and ignore the option if not recognized
15577      # So say no if there are warnings other than the usual output.
15578      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15579      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15580      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15581        lt_cv_prog_compiler_pic_works_CXX=yes
15582      fi
15583    fi
15584    $RM conftest*
15585
15586 fi
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15588 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15589
15590 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15591     case $lt_prog_compiler_pic_CXX in
15592      "" | " "*) ;;
15593      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15594      esac
15595 else
15596     lt_prog_compiler_pic_CXX=
15597      lt_prog_compiler_can_build_shared_CXX=no
15598 fi
15599
15600 fi
15601
15602
15603
15604
15605
15606 #
15607 # Check to make sure the static flag actually works.
15608 #
15609 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15611 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15612 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15613   $as_echo_n "(cached) " >&6
15614 else
15615   lt_cv_prog_compiler_static_works_CXX=no
15616    save_LDFLAGS=$LDFLAGS
15617    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15618    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15619    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15620      # The linker can only warn and ignore the option if not recognized
15621      # So say no if there are warnings
15622      if test -s conftest.err; then
15623        # Append any errors to the config.log.
15624        cat conftest.err 1>&5
15625        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15626        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15627        if diff conftest.exp conftest.er2 >/dev/null; then
15628          lt_cv_prog_compiler_static_works_CXX=yes
15629        fi
15630      else
15631        lt_cv_prog_compiler_static_works_CXX=yes
15632      fi
15633    fi
15634    $RM -r conftest*
15635    LDFLAGS=$save_LDFLAGS
15636
15637 fi
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15639 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15640
15641 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15642     :
15643 else
15644     lt_prog_compiler_static_CXX=
15645 fi
15646
15647
15648
15649
15650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15651 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15652 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15653   $as_echo_n "(cached) " >&6
15654 else
15655   lt_cv_prog_compiler_c_o_CXX=no
15656    $RM -r conftest 2>/dev/null
15657    mkdir conftest
15658    cd conftest
15659    mkdir out
15660    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15661
15662    lt_compiler_flag="-o out/conftest2.$ac_objext"
15663    # Insert the option either (1) after the last *FLAGS variable, or
15664    # (2) before a word containing "conftest.", or (3) at the end.
15665    # Note that $ac_compile itself does not contain backslashes and begins
15666    # with a dollar sign (not a hyphen), so the echo should work correctly.
15667    lt_compile=`echo "$ac_compile" | $SED \
15668    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15669    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15670    -e 's:$: $lt_compiler_flag:'`
15671    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15672    (eval "$lt_compile" 2>out/conftest.err)
15673    ac_status=$?
15674    cat out/conftest.err >&5
15675    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15677    then
15678      # The compiler can only warn and ignore the option if not recognized
15679      # So say no if there are warnings
15680      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15681      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15682      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15683        lt_cv_prog_compiler_c_o_CXX=yes
15684      fi
15685    fi
15686    chmod u+w . 2>&5
15687    $RM conftest*
15688    # SGI C++ compiler will create directory out/ii_files/ for
15689    # template instantiation
15690    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15691    $RM out/* && rmdir out
15692    cd ..
15693    $RM -r conftest
15694    $RM conftest*
15695
15696 fi
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15698 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15699
15700
15701
15702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15703 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15704 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15705   $as_echo_n "(cached) " >&6
15706 else
15707   lt_cv_prog_compiler_c_o_CXX=no
15708    $RM -r conftest 2>/dev/null
15709    mkdir conftest
15710    cd conftest
15711    mkdir out
15712    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15713
15714    lt_compiler_flag="-o out/conftest2.$ac_objext"
15715    # Insert the option either (1) after the last *FLAGS variable, or
15716    # (2) before a word containing "conftest.", or (3) at the end.
15717    # Note that $ac_compile itself does not contain backslashes and begins
15718    # with a dollar sign (not a hyphen), so the echo should work correctly.
15719    lt_compile=`echo "$ac_compile" | $SED \
15720    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15722    -e 's:$: $lt_compiler_flag:'`
15723    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15724    (eval "$lt_compile" 2>out/conftest.err)
15725    ac_status=$?
15726    cat out/conftest.err >&5
15727    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15729    then
15730      # The compiler can only warn and ignore the option if not recognized
15731      # So say no if there are warnings
15732      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15733      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15734      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15735        lt_cv_prog_compiler_c_o_CXX=yes
15736      fi
15737    fi
15738    chmod u+w . 2>&5
15739    $RM conftest*
15740    # SGI C++ compiler will create directory out/ii_files/ for
15741    # template instantiation
15742    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15743    $RM out/* && rmdir out
15744    cd ..
15745    $RM -r conftest
15746    $RM conftest*
15747
15748 fi
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15750 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15751
15752
15753
15754
15755 hard_links=nottested
15756 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15757   # do not overwrite the value of need_locks provided by the user
15758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15759 $as_echo_n "checking if we can lock with hard links... " >&6; }
15760   hard_links=yes
15761   $RM conftest*
15762   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15763   touch conftest.a
15764   ln conftest.a conftest.b 2>&5 || hard_links=no
15765   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15767 $as_echo "$hard_links" >&6; }
15768   if test no = "$hard_links"; then
15769     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15770 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15771     need_locks=warn
15772   fi
15773 else
15774   need_locks=no
15775 fi
15776
15777
15778
15779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15780 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15781
15782   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15783   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15784   case $host_os in
15785   aix[4-9]*)
15786     # If we're using GNU nm, then we don't want the "-C" option.
15787     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15788     # Without the "-l" option, or with the "-B" option, AIX nm treats
15789     # weak defined symbols like other global defined symbols, whereas
15790     # GNU nm marks them as "W".
15791     # While the 'weak' keyword is ignored in the Export File, we need
15792     # it in the Import File for the 'aix-soname' feature, so we have
15793     # to replace the "-B" option with "-P" for AIX nm.
15794     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15795       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'
15796     else
15797       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'
15798     fi
15799     ;;
15800   pw32*)
15801     export_symbols_cmds_CXX=$ltdll_cmds
15802     ;;
15803   cygwin* | mingw* | cegcc*)
15804     case $cc_basename in
15805     cl*)
15806       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15807       ;;
15808     *)
15809       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'
15810       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15811       ;;
15812     esac
15813     ;;
15814   *)
15815     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15816     ;;
15817   esac
15818
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15820 $as_echo "$ld_shlibs_CXX" >&6; }
15821 test no = "$ld_shlibs_CXX" && can_build_shared=no
15822
15823 with_gnu_ld_CXX=$with_gnu_ld
15824
15825
15826
15827
15828
15829
15830 #
15831 # Do we need to explicitly link libc?
15832 #
15833 case "x$archive_cmds_need_lc_CXX" in
15834 x|xyes)
15835   # Assume -lc should be added
15836   archive_cmds_need_lc_CXX=yes
15837
15838   if test yes,yes = "$GCC,$enable_shared"; then
15839     case $archive_cmds_CXX in
15840     *'~'*)
15841       # FIXME: we may have to deal with multi-command sequences.
15842       ;;
15843     '$CC '*)
15844       # Test whether the compiler implicitly links with -lc since on some
15845       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15846       # to ld, don't add -lc before -lgcc.
15847       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15848 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15849 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15850   $as_echo_n "(cached) " >&6
15851 else
15852   $RM conftest*
15853         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15854
15855         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15856   (eval $ac_compile) 2>&5
15857   ac_status=$?
15858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859   test $ac_status = 0; } 2>conftest.err; then
15860           soname=conftest
15861           lib=conftest
15862           libobjs=conftest.$ac_objext
15863           deplibs=
15864           wl=$lt_prog_compiler_wl_CXX
15865           pic_flag=$lt_prog_compiler_pic_CXX
15866           compiler_flags=-v
15867           linker_flags=-v
15868           verstring=
15869           output_objdir=.
15870           libname=conftest
15871           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15872           allow_undefined_flag_CXX=
15873           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15874   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15875   ac_status=$?
15876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15877   test $ac_status = 0; }
15878           then
15879             lt_cv_archive_cmds_need_lc_CXX=no
15880           else
15881             lt_cv_archive_cmds_need_lc_CXX=yes
15882           fi
15883           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15884         else
15885           cat conftest.err 1>&5
15886         fi
15887         $RM conftest*
15888
15889 fi
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15891 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15892       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15893       ;;
15894     esac
15895   fi
15896   ;;
15897 esac
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
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15961 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15962
15963 library_names_spec=
15964 libname_spec='lib$name'
15965 soname_spec=
15966 shrext_cmds=.so
15967 postinstall_cmds=
15968 postuninstall_cmds=
15969 finish_cmds=
15970 finish_eval=
15971 shlibpath_var=
15972 shlibpath_overrides_runpath=unknown
15973 version_type=none
15974 dynamic_linker="$host_os ld.so"
15975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15976 need_lib_prefix=unknown
15977 hardcode_into_libs=no
15978
15979 # when you set need_version to no, make sure it does not cause -set_version
15980 # flags to be left without arguments
15981 need_version=unknown
15982
15983
15984
15985 case $host_os in
15986 aix3*)
15987   version_type=linux # correct to gnu/linux during the next big refactor
15988   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15989   shlibpath_var=LIBPATH
15990
15991   # AIX 3 has no versioning support, so we append a major version to the name.
15992   soname_spec='$libname$release$shared_ext$major'
15993   ;;
15994
15995 aix[4-9]*)
15996   version_type=linux # correct to gnu/linux during the next big refactor
15997   need_lib_prefix=no
15998   need_version=no
15999   hardcode_into_libs=yes
16000   if test ia64 = "$host_cpu"; then
16001     # AIX 5 supports IA64
16002     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16003     shlibpath_var=LD_LIBRARY_PATH
16004   else
16005     # With GCC up to 2.95.x, collect2 would create an import file
16006     # for dependence libraries.  The import file would start with
16007     # the line '#! .'.  This would cause the generated library to
16008     # depend on '.', always an invalid library.  This was fixed in
16009     # development snapshots of GCC prior to 3.0.
16010     case $host_os in
16011       aix4 | aix4.[01] | aix4.[01].*)
16012       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16013            echo ' yes '
16014            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16015         :
16016       else
16017         can_build_shared=no
16018       fi
16019       ;;
16020     esac
16021     # Using Import Files as archive members, it is possible to support
16022     # filename-based versioning of shared library archives on AIX. While
16023     # this would work for both with and without runtime linking, it will
16024     # prevent static linking of such archives. So we do filename-based
16025     # shared library versioning with .so extension only, which is used
16026     # when both runtime linking and shared linking is enabled.
16027     # Unfortunately, runtime linking may impact performance, so we do
16028     # not want this to be the default eventually. Also, we use the
16029     # versioned .so libs for executables only if there is the -brtl
16030     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16031     # To allow for filename-based versioning support, we need to create
16032     # libNAME.so.V as an archive file, containing:
16033     # *) an Import File, referring to the versioned filename of the
16034     #    archive as well as the shared archive member, telling the
16035     #    bitwidth (32 or 64) of that shared object, and providing the
16036     #    list of exported symbols of that shared object, eventually
16037     #    decorated with the 'weak' keyword
16038     # *) the shared object with the F_LOADONLY flag set, to really avoid
16039     #    it being seen by the linker.
16040     # At run time we better use the real file rather than another symlink,
16041     # but for link time we create the symlink libNAME.so -> libNAME.so.V
16042
16043     case $with_aix_soname,$aix_use_runtimelinking in
16044     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16045     # soname into executable. Probably we can add versioning support to
16046     # collect2, so additional links can be useful in future.
16047     aix,yes) # traditional libtool
16048       dynamic_linker='AIX unversionable lib.so'
16049       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16050       # instead of lib<name>.a to let people know that these are not
16051       # typical AIX shared libraries.
16052       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16053       ;;
16054     aix,no) # traditional AIX only
16055       dynamic_linker='AIX lib.a(lib.so.V)'
16056       # We preserve .a as extension for shared libraries through AIX4.2
16057       # and later when we are not doing run time linking.
16058       library_names_spec='$libname$release.a $libname.a'
16059       soname_spec='$libname$release$shared_ext$major'
16060       ;;
16061     svr4,*) # full svr4 only
16062       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16063       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16064       # We do not specify a path in Import Files, so LIBPATH fires.
16065       shlibpath_overrides_runpath=yes
16066       ;;
16067     *,yes) # both, prefer svr4
16068       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16069       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16070       # unpreferred sharedlib libNAME.a needs extra handling
16071       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"'
16072       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"'
16073       # We do not specify a path in Import Files, so LIBPATH fires.
16074       shlibpath_overrides_runpath=yes
16075       ;;
16076     *,no) # both, prefer aix
16077       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16078       library_names_spec='$libname$release.a $libname.a'
16079       soname_spec='$libname$release$shared_ext$major'
16080       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16081       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)'
16082       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"'
16083       ;;
16084     esac
16085     shlibpath_var=LIBPATH
16086   fi
16087   ;;
16088
16089 amigaos*)
16090   case $host_cpu in
16091   powerpc)
16092     # Since July 2007 AmigaOS4 officially supports .so libraries.
16093     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16094     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16095     ;;
16096   m68k)
16097     library_names_spec='$libname.ixlibrary $libname.a'
16098     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16099     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'
16100     ;;
16101   esac
16102   ;;
16103
16104 beos*)
16105   library_names_spec='$libname$shared_ext'
16106   dynamic_linker="$host_os ld.so"
16107   shlibpath_var=LIBRARY_PATH
16108   ;;
16109
16110 bsdi[45]*)
16111   version_type=linux # correct to gnu/linux during the next big refactor
16112   need_version=no
16113   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16114   soname_spec='$libname$release$shared_ext$major'
16115   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16116   shlibpath_var=LD_LIBRARY_PATH
16117   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16118   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16119   # the default ld.so.conf also contains /usr/contrib/lib and
16120   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16121   # libtool to hard-code these into programs
16122   ;;
16123
16124 cygwin* | mingw* | pw32* | cegcc*)
16125   version_type=windows
16126   shrext_cmds=.dll
16127   need_version=no
16128   need_lib_prefix=no
16129
16130   case $GCC,$cc_basename in
16131   yes,*)
16132     # gcc
16133     library_names_spec='$libname.dll.a'
16134     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16135     postinstall_cmds='base_file=`basename \$file`~
16136       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16137       dldir=$destdir/`dirname \$dlpath`~
16138       test -d \$dldir || mkdir -p \$dldir~
16139       $install_prog $dir/$dlname \$dldir/$dlname~
16140       chmod a+x \$dldir/$dlname~
16141       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16142         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16143       fi'
16144     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16145       dlpath=$dir/\$dldll~
16146        $RM \$dlpath'
16147     shlibpath_overrides_runpath=yes
16148
16149     case $host_os in
16150     cygwin*)
16151       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16152       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16153
16154       ;;
16155     mingw* | cegcc*)
16156       # MinGW DLLs use traditional 'lib' prefix
16157       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16158       ;;
16159     pw32*)
16160       # pw32 DLLs use 'pw' prefix rather than 'lib'
16161       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16162       ;;
16163     esac
16164     dynamic_linker='Win32 ld.exe'
16165     ;;
16166
16167   *,cl*)
16168     # Native MSVC
16169     libname_spec='$name'
16170     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16171     library_names_spec='$libname.dll.lib'
16172
16173     case $build_os in
16174     mingw*)
16175       sys_lib_search_path_spec=
16176       lt_save_ifs=$IFS
16177       IFS=';'
16178       for lt_path in $LIB
16179       do
16180         IFS=$lt_save_ifs
16181         # Let DOS variable expansion print the short 8.3 style file name.
16182         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16183         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16184       done
16185       IFS=$lt_save_ifs
16186       # Convert to MSYS style.
16187       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16188       ;;
16189     cygwin*)
16190       # Convert to unix form, then to dos form, then back to unix form
16191       # but this time dos style (no spaces!) so that the unix form looks
16192       # like /cygdrive/c/PROGRA~1:/cygdr...
16193       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16194       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16195       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16196       ;;
16197     *)
16198       sys_lib_search_path_spec=$LIB
16199       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16200         # It is most probably a Windows format PATH.
16201         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16202       else
16203         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16204       fi
16205       # FIXME: find the short name or the path components, as spaces are
16206       # common. (e.g. "Program Files" -> "PROGRA~1")
16207       ;;
16208     esac
16209
16210     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16211     postinstall_cmds='base_file=`basename \$file`~
16212       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16213       dldir=$destdir/`dirname \$dlpath`~
16214       test -d \$dldir || mkdir -p \$dldir~
16215       $install_prog $dir/$dlname \$dldir/$dlname'
16216     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16217       dlpath=$dir/\$dldll~
16218        $RM \$dlpath'
16219     shlibpath_overrides_runpath=yes
16220     dynamic_linker='Win32 link.exe'
16221     ;;
16222
16223   *)
16224     # Assume MSVC wrapper
16225     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16226     dynamic_linker='Win32 ld.exe'
16227     ;;
16228   esac
16229   # FIXME: first we should search . and the directory the executable is in
16230   shlibpath_var=PATH
16231   ;;
16232
16233 darwin* | rhapsody*)
16234   dynamic_linker="$host_os dyld"
16235   version_type=darwin
16236   need_lib_prefix=no
16237   need_version=no
16238   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16239   soname_spec='$libname$release$major$shared_ext'
16240   shlibpath_overrides_runpath=yes
16241   shlibpath_var=DYLD_LIBRARY_PATH
16242   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16243
16244   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16245   ;;
16246
16247 dgux*)
16248   version_type=linux # correct to gnu/linux during the next big refactor
16249   need_lib_prefix=no
16250   need_version=no
16251   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16252   soname_spec='$libname$release$shared_ext$major'
16253   shlibpath_var=LD_LIBRARY_PATH
16254   ;;
16255
16256 freebsd* | dragonfly*)
16257   # DragonFly does not have aout.  When/if they implement a new
16258   # versioning mechanism, adjust this.
16259   if test -x /usr/bin/objformat; then
16260     objformat=`/usr/bin/objformat`
16261   else
16262     case $host_os in
16263     freebsd[23].*) objformat=aout ;;
16264     *) objformat=elf ;;
16265     esac
16266   fi
16267   version_type=freebsd-$objformat
16268   case $version_type in
16269     freebsd-elf*)
16270       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16271       soname_spec='$libname$release$shared_ext$major'
16272       need_version=no
16273       need_lib_prefix=no
16274       ;;
16275     freebsd-*)
16276       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16277       need_version=yes
16278       ;;
16279   esac
16280   shlibpath_var=LD_LIBRARY_PATH
16281   case $host_os in
16282   freebsd2.*)
16283     shlibpath_overrides_runpath=yes
16284     ;;
16285   freebsd3.[01]* | freebsdelf3.[01]*)
16286     shlibpath_overrides_runpath=yes
16287     hardcode_into_libs=yes
16288     ;;
16289   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16290   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16291     shlibpath_overrides_runpath=no
16292     hardcode_into_libs=yes
16293     ;;
16294   *) # from 4.6 on, and DragonFly
16295     shlibpath_overrides_runpath=yes
16296     hardcode_into_libs=yes
16297     ;;
16298   esac
16299   ;;
16300
16301 haiku*)
16302   version_type=linux # correct to gnu/linux during the next big refactor
16303   need_lib_prefix=no
16304   need_version=no
16305   dynamic_linker="$host_os runtime_loader"
16306   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16307   soname_spec='$libname$release$shared_ext$major'
16308   shlibpath_var=LIBRARY_PATH
16309   shlibpath_overrides_runpath=no
16310   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16311   hardcode_into_libs=yes
16312   ;;
16313
16314 hpux9* | hpux10* | hpux11*)
16315   # Give a soname corresponding to the major version so that dld.sl refuses to
16316   # link against other versions.
16317   version_type=sunos
16318   need_lib_prefix=no
16319   need_version=no
16320   case $host_cpu in
16321   ia64*)
16322     shrext_cmds='.so'
16323     hardcode_into_libs=yes
16324     dynamic_linker="$host_os dld.so"
16325     shlibpath_var=LD_LIBRARY_PATH
16326     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16327     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16328     soname_spec='$libname$release$shared_ext$major'
16329     if test 32 = "$HPUX_IA64_MODE"; then
16330       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16331       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16332     else
16333       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16334       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16335     fi
16336     ;;
16337   hppa*64*)
16338     shrext_cmds='.sl'
16339     hardcode_into_libs=yes
16340     dynamic_linker="$host_os dld.sl"
16341     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16342     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16343     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16344     soname_spec='$libname$release$shared_ext$major'
16345     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16346     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16347     ;;
16348   *)
16349     shrext_cmds='.sl'
16350     dynamic_linker="$host_os dld.sl"
16351     shlibpath_var=SHLIB_PATH
16352     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16353     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16354     soname_spec='$libname$release$shared_ext$major'
16355     ;;
16356   esac
16357   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16358   postinstall_cmds='chmod 555 $lib'
16359   # or fails outright, so override atomically:
16360   install_override_mode=555
16361   ;;
16362
16363 interix[3-9]*)
16364   version_type=linux # correct to gnu/linux during the next big refactor
16365   need_lib_prefix=no
16366   need_version=no
16367   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16368   soname_spec='$libname$release$shared_ext$major'
16369   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16370   shlibpath_var=LD_LIBRARY_PATH
16371   shlibpath_overrides_runpath=no
16372   hardcode_into_libs=yes
16373   ;;
16374
16375 irix5* | irix6* | nonstopux*)
16376   case $host_os in
16377     nonstopux*) version_type=nonstopux ;;
16378     *)
16379         if test yes = "$lt_cv_prog_gnu_ld"; then
16380                 version_type=linux # correct to gnu/linux during the next big refactor
16381         else
16382                 version_type=irix
16383         fi ;;
16384   esac
16385   need_lib_prefix=no
16386   need_version=no
16387   soname_spec='$libname$release$shared_ext$major'
16388   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16389   case $host_os in
16390   irix5* | nonstopux*)
16391     libsuff= shlibsuff=
16392     ;;
16393   *)
16394     case $LD in # libtool.m4 will add one of these switches to LD
16395     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16396       libsuff= shlibsuff= libmagic=32-bit;;
16397     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16398       libsuff=32 shlibsuff=N32 libmagic=N32;;
16399     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16400       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16401     *) libsuff= shlibsuff= libmagic=never-match;;
16402     esac
16403     ;;
16404   esac
16405   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16406   shlibpath_overrides_runpath=no
16407   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16408   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16409   hardcode_into_libs=yes
16410   ;;
16411
16412 # No shared lib support for Linux oldld, aout, or coff.
16413 linux*oldld* | linux*aout* | linux*coff*)
16414   dynamic_linker=no
16415   ;;
16416
16417 linux*android*)
16418   version_type=none # Android doesn't support versioned libraries.
16419   need_lib_prefix=no
16420   need_version=no
16421   library_names_spec='$libname$release$shared_ext'
16422   soname_spec='$libname$release$shared_ext'
16423   finish_cmds=
16424   shlibpath_var=LD_LIBRARY_PATH
16425   shlibpath_overrides_runpath=yes
16426
16427   # This implies no fast_install, which is unacceptable.
16428   # Some rework will be needed to allow for fast_install
16429   # before this can be enabled.
16430   hardcode_into_libs=yes
16431
16432   dynamic_linker='Android linker'
16433   # Don't embed -rpath directories since the linker doesn't support them.
16434   hardcode_libdir_flag_spec_CXX='-L$libdir'
16435   ;;
16436
16437 # This must be glibc/ELF.
16438 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16439   version_type=linux # correct to gnu/linux during the next big refactor
16440   need_lib_prefix=no
16441   need_version=no
16442   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16443   soname_spec='$libname$release$shared_ext$major'
16444   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16445   shlibpath_var=LD_LIBRARY_PATH
16446   shlibpath_overrides_runpath=no
16447
16448   # Some binutils ld are patched to set DT_RUNPATH
16449   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16450   $as_echo_n "(cached) " >&6
16451 else
16452   lt_cv_shlibpath_overrides_runpath=no
16453     save_LDFLAGS=$LDFLAGS
16454     save_libdir=$libdir
16455     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16456          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h.  */
16459
16460 int
16461 main ()
16462 {
16463
16464   ;
16465   return 0;
16466 }
16467 _ACEOF
16468 if ac_fn_cxx_try_link "$LINENO"; then :
16469   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16470   lt_cv_shlibpath_overrides_runpath=yes
16471 fi
16472 fi
16473 rm -f core conftest.err conftest.$ac_objext \
16474     conftest$ac_exeext conftest.$ac_ext
16475     LDFLAGS=$save_LDFLAGS
16476     libdir=$save_libdir
16477
16478 fi
16479
16480   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16481
16482   # This implies no fast_install, which is unacceptable.
16483   # Some rework will be needed to allow for fast_install
16484   # before this can be enabled.
16485   hardcode_into_libs=yes
16486
16487   # Ideally, we could use ldconfig to report *all* directores which are
16488   # searched for libraries, however this is still not possible.  Aside from not
16489   # being certain /sbin/ldconfig is available, command
16490   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16491   # even though it is searched at run-time.  Try to do the best guess by
16492   # appending ld.so.conf contents (and includes) to the search path.
16493   if test -f /etc/ld.so.conf; then
16494     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' ' '`
16495     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16496   fi
16497
16498   # We used to test for /lib/ld.so.1 and disable shared libraries on
16499   # powerpc, because MkLinux only supported shared libraries with the
16500   # GNU dynamic linker.  Since this was broken with cross compilers,
16501   # most powerpc-linux boxes support dynamic linking these days and
16502   # people can always --disable-shared, the test was removed, and we
16503   # assume the GNU/Linux dynamic linker is in use.
16504   dynamic_linker='GNU/Linux ld.so'
16505   ;;
16506
16507 netbsd*)
16508   version_type=sunos
16509   need_lib_prefix=no
16510   need_version=no
16511   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16512     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16513     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16514     dynamic_linker='NetBSD (a.out) ld.so'
16515   else
16516     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16517     soname_spec='$libname$release$shared_ext$major'
16518     dynamic_linker='NetBSD ld.elf_so'
16519   fi
16520   shlibpath_var=LD_LIBRARY_PATH
16521   shlibpath_overrides_runpath=yes
16522   hardcode_into_libs=yes
16523   ;;
16524
16525 newsos6)
16526   version_type=linux # correct to gnu/linux during the next big refactor
16527   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16528   shlibpath_var=LD_LIBRARY_PATH
16529   shlibpath_overrides_runpath=yes
16530   ;;
16531
16532 *nto* | *qnx*)
16533   version_type=qnx
16534   need_lib_prefix=no
16535   need_version=no
16536   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16537   soname_spec='$libname$release$shared_ext$major'
16538   shlibpath_var=LD_LIBRARY_PATH
16539   shlibpath_overrides_runpath=no
16540   hardcode_into_libs=yes
16541   dynamic_linker='ldqnx.so'
16542   ;;
16543
16544 openbsd* | bitrig*)
16545   version_type=sunos
16546   sys_lib_dlsearch_path_spec=/usr/lib
16547   need_lib_prefix=no
16548   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16549     need_version=no
16550   else
16551     need_version=yes
16552   fi
16553   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16554   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16555   shlibpath_var=LD_LIBRARY_PATH
16556   shlibpath_overrides_runpath=yes
16557   ;;
16558
16559 os2*)
16560   libname_spec='$name'
16561   version_type=windows
16562   shrext_cmds=.dll
16563   need_version=no
16564   need_lib_prefix=no
16565   # OS/2 can only load a DLL with a base name of 8 characters or less.
16566   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16567     v=$($ECHO $release$versuffix | tr -d .-);
16568     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16569     $ECHO $n$v`$shared_ext'
16570   library_names_spec='${libname}_dll.$libext'
16571   dynamic_linker='OS/2 ld.exe'
16572   shlibpath_var=BEGINLIBPATH
16573   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16574   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16575   postinstall_cmds='base_file=`basename \$file`~
16576     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16577     dldir=$destdir/`dirname \$dlpath`~
16578     test -d \$dldir || mkdir -p \$dldir~
16579     $install_prog $dir/$dlname \$dldir/$dlname~
16580     chmod a+x \$dldir/$dlname~
16581     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16582       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16583     fi'
16584   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16585     dlpath=$dir/\$dldll~
16586     $RM \$dlpath'
16587   ;;
16588
16589 osf3* | osf4* | osf5*)
16590   version_type=osf
16591   need_lib_prefix=no
16592   need_version=no
16593   soname_spec='$libname$release$shared_ext$major'
16594   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16595   shlibpath_var=LD_LIBRARY_PATH
16596   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16597   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16598   ;;
16599
16600 rdos*)
16601   dynamic_linker=no
16602   ;;
16603
16604 solaris*)
16605   version_type=linux # correct to gnu/linux during the next big refactor
16606   need_lib_prefix=no
16607   need_version=no
16608   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16609   soname_spec='$libname$release$shared_ext$major'
16610   shlibpath_var=LD_LIBRARY_PATH
16611   shlibpath_overrides_runpath=yes
16612   hardcode_into_libs=yes
16613   # ldd complains unless libraries are executable
16614   postinstall_cmds='chmod +x $lib'
16615   ;;
16616
16617 sunos4*)
16618   version_type=sunos
16619   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16620   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16621   shlibpath_var=LD_LIBRARY_PATH
16622   shlibpath_overrides_runpath=yes
16623   if test yes = "$with_gnu_ld"; then
16624     need_lib_prefix=no
16625   fi
16626   need_version=yes
16627   ;;
16628
16629 sysv4 | sysv4.3*)
16630   version_type=linux # correct to gnu/linux during the next big refactor
16631   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16632   soname_spec='$libname$release$shared_ext$major'
16633   shlibpath_var=LD_LIBRARY_PATH
16634   case $host_vendor in
16635     sni)
16636       shlibpath_overrides_runpath=no
16637       need_lib_prefix=no
16638       runpath_var=LD_RUN_PATH
16639       ;;
16640     siemens)
16641       need_lib_prefix=no
16642       ;;
16643     motorola)
16644       need_lib_prefix=no
16645       need_version=no
16646       shlibpath_overrides_runpath=no
16647       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16648       ;;
16649   esac
16650   ;;
16651
16652 sysv4*MP*)
16653   if test -d /usr/nec; then
16654     version_type=linux # correct to gnu/linux during the next big refactor
16655     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16656     soname_spec='$libname$shared_ext.$major'
16657     shlibpath_var=LD_LIBRARY_PATH
16658   fi
16659   ;;
16660
16661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16662   version_type=sco
16663   need_lib_prefix=no
16664   need_version=no
16665   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16666   soname_spec='$libname$release$shared_ext$major'
16667   shlibpath_var=LD_LIBRARY_PATH
16668   shlibpath_overrides_runpath=yes
16669   hardcode_into_libs=yes
16670   if test yes = "$with_gnu_ld"; then
16671     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16672   else
16673     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16674     case $host_os in
16675       sco3.2v5*)
16676         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16677         ;;
16678     esac
16679   fi
16680   sys_lib_dlsearch_path_spec='/usr/lib'
16681   ;;
16682
16683 tpf*)
16684   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16685   version_type=linux # correct to gnu/linux during the next big refactor
16686   need_lib_prefix=no
16687   need_version=no
16688   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   shlibpath_overrides_runpath=no
16691   hardcode_into_libs=yes
16692   ;;
16693
16694 uts4*)
16695   version_type=linux # correct to gnu/linux during the next big refactor
16696   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16697   soname_spec='$libname$release$shared_ext$major'
16698   shlibpath_var=LD_LIBRARY_PATH
16699   ;;
16700
16701 *)
16702   dynamic_linker=no
16703   ;;
16704 esac
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16706 $as_echo "$dynamic_linker" >&6; }
16707 test no = "$dynamic_linker" && can_build_shared=no
16708
16709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16710 if test yes = "$GCC"; then
16711   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16712 fi
16713
16714 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16715   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16716 fi
16717
16718 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16719   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16720 fi
16721
16722 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16723 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16724
16725 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16726 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16727
16728 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16729 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16771 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16772 hardcode_action_CXX=
16773 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16774    test -n "$runpath_var_CXX" ||
16775    test yes = "$hardcode_automatic_CXX"; then
16776
16777   # We can hardcode non-existent directories.
16778   if test no != "$hardcode_direct_CXX" &&
16779      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16780      # have to relink, otherwise we might link with an installed library
16781      # when we should be linking with a yet-to-be-installed one
16782      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16783      test no != "$hardcode_minus_L_CXX"; then
16784     # Linking always hardcodes the temporary library directory.
16785     hardcode_action_CXX=relink
16786   else
16787     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16788     hardcode_action_CXX=immediate
16789   fi
16790 else
16791   # We cannot hardcode anything, or else we can only hardcode existing
16792   # directories.
16793   hardcode_action_CXX=unsupported
16794 fi
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16796 $as_echo "$hardcode_action_CXX" >&6; }
16797
16798 if test relink = "$hardcode_action_CXX" ||
16799    test yes = "$inherit_rpath_CXX"; then
16800   # Fast installation is not supported
16801   enable_fast_install=no
16802 elif test yes = "$shlibpath_overrides_runpath" ||
16803      test no = "$enable_shared"; then
16804   # Fast installation is not necessary
16805   enable_fast_install=needless
16806 fi
16807
16808
16809
16810
16811
16812
16813
16814   fi # test -n "$compiler"
16815
16816   CC=$lt_save_CC
16817   CFLAGS=$lt_save_CFLAGS
16818   LDCXX=$LD
16819   LD=$lt_save_LD
16820   GCC=$lt_save_GCC
16821   with_gnu_ld=$lt_save_with_gnu_ld
16822   lt_cv_path_LDCXX=$lt_cv_path_LD
16823   lt_cv_path_LD=$lt_save_path_LD
16824   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16825   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16826 fi # test yes != "$_lt_caught_CXX_error"
16827
16828 ac_ext=c
16829 ac_cpp='$CPP $CPPFLAGS'
16830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848         ac_config_commands="$ac_config_commands libtool"
16849
16850
16851
16852
16853 # Only expand once:
16854
16855
16856 case "$host_os" in
16857   # On Cygwin, without -no-undefined, a warning is emitted and only a static
16858   # library is built.
16859   beos* | mingw* | cygwin* | os2*) LTNOUNDEF='-no-undefined' ;;
16860   *) LTNOUNDEF='' ;;
16861 esac
16862
16863
16864
16865 for ac_header in features.h
16866 do :
16867   ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
16868 if test "x$ac_cv_header_features_h" = xyes; then :
16869   cat >>confdefs.h <<_ACEOF
16870 #define HAVE_FEATURES_H 1
16871 _ACEOF
16872
16873 fi
16874
16875 done
16876
16877
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16879 $as_echo_n "checking for inline... " >&6; }
16880 if ${ac_cv_c_inline+:} false; then :
16881   $as_echo_n "(cached) " >&6
16882 else
16883   ac_cv_c_inline=no
16884 for ac_kw in inline __inline__ __inline; do
16885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h.  */
16887 #ifndef __cplusplus
16888 typedef int foo_t;
16889 static $ac_kw foo_t static_foo () {return 0; }
16890 $ac_kw foo_t foo () {return 0; }
16891 #endif
16892
16893 _ACEOF
16894 if ac_fn_c_try_compile "$LINENO"; then :
16895   ac_cv_c_inline=$ac_kw
16896 fi
16897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16898   test "$ac_cv_c_inline" != no && break
16899 done
16900
16901 fi
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16903 $as_echo "$ac_cv_c_inline" >&6; }
16904
16905 case $ac_cv_c_inline in
16906   inline | yes) ;;
16907   *)
16908     case $ac_cv_c_inline in
16909       no) ac_val=;;
16910       *) ac_val=$ac_cv_c_inline;;
16911     esac
16912     cat >>confdefs.h <<_ACEOF
16913 #ifndef __cplusplus
16914 #define inline $ac_val
16915 #endif
16916 _ACEOF
16917     ;;
16918 esac
16919
16920 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16921 if test "x$ac_cv_type_size_t" = xyes; then :
16922
16923 else
16924
16925 cat >>confdefs.h <<_ACEOF
16926 #define size_t unsigned int
16927 _ACEOF
16928
16929 fi
16930
16931
16932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16933 $as_echo_n "checking for unsigned long long int... " >&6; }
16934 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16935   $as_echo_n "(cached) " >&6
16936 else
16937   ac_cv_type_unsigned_long_long_int=yes
16938      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16939        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h.  */
16941
16942   /* For now, do not test the preprocessor; as of 2007 there are too many
16943          implementations with broken preprocessors.  Perhaps this can
16944          be revisited in 2012.  In the meantime, code should not expect
16945          #if to work with literals wider than 32 bits.  */
16946       /* Test literals.  */
16947       long long int ll = 9223372036854775807ll;
16948       long long int nll = -9223372036854775807LL;
16949       unsigned long long int ull = 18446744073709551615ULL;
16950       /* Test constant expressions.   */
16951       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16952                      ? 1 : -1)];
16953       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16954                      ? 1 : -1)];
16955       int i = 63;
16956 int
16957 main ()
16958 {
16959 /* Test availability of runtime routines for shift and division.  */
16960       long long int llmax = 9223372036854775807ll;
16961       unsigned long long int ullmax = 18446744073709551615ull;
16962       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16963               | (llmax / ll) | (llmax % ll)
16964               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16965               | (ullmax / ull) | (ullmax % ull));
16966   ;
16967   return 0;
16968 }
16969
16970 _ACEOF
16971 if ac_fn_c_try_link "$LINENO"; then :
16972
16973 else
16974   ac_cv_type_unsigned_long_long_int=no
16975 fi
16976 rm -f core conftest.err conftest.$ac_objext \
16977     conftest$ac_exeext conftest.$ac_ext
16978      fi
16979 fi
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16981 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16982   if test $ac_cv_type_unsigned_long_long_int = yes; then
16983
16984 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16985
16986   fi
16987
16988
16989
16990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16991 $as_echo_n "checking for long long int... " >&6; }
16992 if ${ac_cv_type_long_long_int+:} false; then :
16993   $as_echo_n "(cached) " >&6
16994 else
16995   ac_cv_type_long_long_int=yes
16996       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16997         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16998         if test $ac_cv_type_long_long_int = yes; then
16999                                         if test "$cross_compiling" = yes; then :
17000   :
17001 else
17002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h.  */
17004 #include <limits.h>
17005                  #ifndef LLONG_MAX
17006                  # define HALF \
17007                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17008                  # define LLONG_MAX (HALF - 1 + HALF)
17009                  #endif
17010 int
17011 main ()
17012 {
17013 long long int n = 1;
17014                  int i;
17015                  for (i = 0; ; i++)
17016                    {
17017                      long long int m = n << i;
17018                      if (m >> i != n)
17019                        return 1;
17020                      if (LLONG_MAX / 2 < m)
17021                        break;
17022                    }
17023                  return 0;
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_run "$LINENO"; then :
17029
17030 else
17031   ac_cv_type_long_long_int=no
17032 fi
17033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17034   conftest.$ac_objext conftest.beam conftest.$ac_ext
17035 fi
17036
17037         fi
17038       fi
17039 fi
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17041 $as_echo "$ac_cv_type_long_long_int" >&6; }
17042   if test $ac_cv_type_long_long_int = yes; then
17043
17044 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17045
17046   fi
17047
17048
17049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17050 $as_echo_n "checking for wchar_t... " >&6; }
17051 if ${gt_cv_c_wchar_t+:} false; then :
17052   $as_echo_n "(cached) " >&6
17053 else
17054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h.  */
17056 #include <stddef.h>
17057             wchar_t foo = (wchar_t)'\0';
17058 int
17059 main ()
17060 {
17061
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 if ac_fn_c_try_compile "$LINENO"; then :
17067   gt_cv_c_wchar_t=yes
17068 else
17069   gt_cv_c_wchar_t=no
17070 fi
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072 fi
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17074 $as_echo "$gt_cv_c_wchar_t" >&6; }
17075   if test $gt_cv_c_wchar_t = yes; then
17076
17077 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17078
17079   fi
17080
17081
17082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17083 $as_echo_n "checking for wint_t... " >&6; }
17084 if ${gt_cv_c_wint_t+:} false; then :
17085   $as_echo_n "(cached) " >&6
17086 else
17087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h.  */
17089
17090 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17091    <wchar.h>.
17092    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17093    before <wchar.h>.  */
17094 #include <stddef.h>
17095 #include <stdio.h>
17096 #include <time.h>
17097 #include <wchar.h>
17098             wint_t foo = (wchar_t)'\0';
17099 int
17100 main ()
17101 {
17102
17103   ;
17104   return 0;
17105 }
17106 _ACEOF
17107 if ac_fn_c_try_compile "$LINENO"; then :
17108   gt_cv_c_wint_t=yes
17109 else
17110   gt_cv_c_wint_t=no
17111 fi
17112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113 fi
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17115 $as_echo "$gt_cv_c_wint_t" >&6; }
17116   if test $gt_cv_c_wint_t = yes; then
17117
17118 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
17119
17120   fi
17121
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17123 $as_echo_n "checking for mbstate_t... " >&6; }
17124 if ${ac_cv_type_mbstate_t+:} false; then :
17125   $as_echo_n "(cached) " >&6
17126 else
17127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h.  */
17129 $ac_includes_default
17130 #           include <wchar.h>
17131 int
17132 main ()
17133 {
17134 mbstate_t x; return sizeof x;
17135   ;
17136   return 0;
17137 }
17138 _ACEOF
17139 if ac_fn_c_try_compile "$LINENO"; then :
17140   ac_cv_type_mbstate_t=yes
17141 else
17142   ac_cv_type_mbstate_t=no
17143 fi
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145 fi
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17147 $as_echo "$ac_cv_type_mbstate_t" >&6; }
17148    if test $ac_cv_type_mbstate_t = yes; then
17149
17150 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17151
17152    else
17153
17154 $as_echo "#define mbstate_t int" >>confdefs.h
17155
17156    fi
17157 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17158 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17159
17160 else
17161
17162 $as_echo "#define ptrdiff_t long" >>confdefs.h
17163
17164
17165 fi
17166
17167
17168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
17169 $as_echo_n "checking for inttypes.h... " >&6; }
17170 if ${gl_cv_header_inttypes_h+:} false; then :
17171   $as_echo_n "(cached) " >&6
17172 else
17173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h.  */
17175
17176 #include <sys/types.h>
17177 #include <inttypes.h>
17178
17179 int
17180 main ()
17181 {
17182 uintmax_t i = (uintmax_t) -1; return !i;
17183   ;
17184   return 0;
17185 }
17186 _ACEOF
17187 if ac_fn_c_try_compile "$LINENO"; then :
17188   gl_cv_header_inttypes_h=yes
17189 else
17190   gl_cv_header_inttypes_h=no
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193 fi
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
17195 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17196   if test $gl_cv_header_inttypes_h = yes; then
17197
17198 cat >>confdefs.h <<_ACEOF
17199 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17200 _ACEOF
17201
17202   fi
17203
17204
17205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
17206 $as_echo_n "checking for stdint.h... " >&6; }
17207 if ${gl_cv_header_stdint_h+:} false; then :
17208   $as_echo_n "(cached) " >&6
17209 else
17210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h.  */
17212 #include <sys/types.h>
17213             #include <stdint.h>
17214 int
17215 main ()
17216 {
17217 uintmax_t i = (uintmax_t) -1; return !i;
17218   ;
17219   return 0;
17220 }
17221 _ACEOF
17222 if ac_fn_c_try_compile "$LINENO"; then :
17223   gl_cv_header_stdint_h=yes
17224 else
17225   gl_cv_header_stdint_h=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228 fi
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
17230 $as_echo "$gl_cv_header_stdint_h" >&6; }
17231   if test $gl_cv_header_stdint_h = yes; then
17232
17233 cat >>confdefs.h <<_ACEOF
17234 #define HAVE_STDINT_H_WITH_UINTMAX 1
17235 _ACEOF
17236
17237   fi
17238
17239
17240
17241
17242   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
17243
17244     test $ac_cv_type_long_long_int = yes \
17245       && ac_type='long long' \
17246       || ac_type='long'
17247
17248 cat >>confdefs.h <<_ACEOF
17249 #define intmax_t $ac_type
17250 _ACEOF
17251
17252   else
17253
17254 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17255
17256   fi
17257
17258
17259   for ac_header in stdint.h
17260 do :
17261   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17262 if test "x$ac_cv_header_stdint_h" = xyes; then :
17263   cat >>confdefs.h <<_ACEOF
17264 #define HAVE_STDINT_H 1
17265 _ACEOF
17266
17267 fi
17268
17269 done
17270
17271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
17272 $as_echo_n "checking for SIZE_MAX... " >&6; }
17273 if ${gl_cv_size_max+:} false; then :
17274   $as_echo_n "(cached) " >&6
17275 else
17276
17277     gl_cv_size_max=
17278     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h.  */
17280
17281 #include <limits.h>
17282 #if HAVE_STDINT_H
17283 #include <stdint.h>
17284 #endif
17285 #ifdef SIZE_MAX
17286 Found it
17287 #endif
17288
17289 _ACEOF
17290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17291   $EGREP "Found it" >/dev/null 2>&1; then :
17292   gl_cv_size_max=yes
17293 fi
17294 rm -f conftest*
17295
17296     if test -z "$gl_cv_size_max"; then
17297                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
17298 #include <limits.h>"; then :
17299
17300 else
17301   size_t_bits_minus_1=
17302 fi
17303
17304       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
17305
17306 else
17307   fits_in_uint=
17308 fi
17309
17310       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
17311         if test $fits_in_uint = 1; then
17312                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h.  */
17314 #include <stddef.h>
17315                  extern size_t foo;
17316                  extern unsigned long foo;
17317
17318 int
17319 main ()
17320 {
17321
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 if ac_fn_c_try_compile "$LINENO"; then :
17327   fits_in_uint=0
17328 fi
17329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17330         fi
17331                                 if test $fits_in_uint = 1; then
17332           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17333         else
17334           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17335         fi
17336       else
17337                 gl_cv_size_max='((size_t)~(size_t)0)'
17338       fi
17339     fi
17340
17341 fi
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
17343 $as_echo "$gl_cv_size_max" >&6; }
17344   if test "$gl_cv_size_max" != yes; then
17345
17346 cat >>confdefs.h <<_ACEOF
17347 #define SIZE_MAX $gl_cv_size_max
17348 _ACEOF
17349
17350   fi
17351
17352
17353
17354
17355   for ac_header in stdint.h
17356 do :
17357   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17358 if test "x$ac_cv_header_stdint_h" = xyes; then :
17359   cat >>confdefs.h <<_ACEOF
17360 #define HAVE_STDINT_H 1
17361 _ACEOF
17362
17363 fi
17364
17365 done
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375           LIBC_FATAL_STDERR_=1
17376   export LIBC_FATAL_STDERR_
17377
17378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17379 # for constant arguments.  Useless!
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17381 $as_echo_n "checking for working alloca.h... " >&6; }
17382 if ${ac_cv_working_alloca_h+:} false; then :
17383   $as_echo_n "(cached) " >&6
17384 else
17385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h.  */
17387 #include <alloca.h>
17388 int
17389 main ()
17390 {
17391 char *p = (char *) alloca (2 * sizeof (int));
17392                           if (p) return 0;
17393   ;
17394   return 0;
17395 }
17396 _ACEOF
17397 if ac_fn_c_try_link "$LINENO"; then :
17398   ac_cv_working_alloca_h=yes
17399 else
17400   ac_cv_working_alloca_h=no
17401 fi
17402 rm -f core conftest.err conftest.$ac_objext \
17403     conftest$ac_exeext conftest.$ac_ext
17404 fi
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17406 $as_echo "$ac_cv_working_alloca_h" >&6; }
17407 if test $ac_cv_working_alloca_h = yes; then
17408
17409 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17410
17411 fi
17412
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17414 $as_echo_n "checking for alloca... " >&6; }
17415 if ${ac_cv_func_alloca_works+:} false; then :
17416   $as_echo_n "(cached) " >&6
17417 else
17418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h.  */
17420 #ifdef __GNUC__
17421 # define alloca __builtin_alloca
17422 #else
17423 # ifdef _MSC_VER
17424 #  include <malloc.h>
17425 #  define alloca _alloca
17426 # else
17427 #  ifdef HAVE_ALLOCA_H
17428 #   include <alloca.h>
17429 #  else
17430 #   ifdef _AIX
17431  #pragma alloca
17432 #   else
17433 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17434 void *alloca (size_t);
17435 #    endif
17436 #   endif
17437 #  endif
17438 # endif
17439 #endif
17440
17441 int
17442 main ()
17443 {
17444 char *p = (char *) alloca (1);
17445                                     if (p) return 0;
17446   ;
17447   return 0;
17448 }
17449 _ACEOF
17450 if ac_fn_c_try_link "$LINENO"; then :
17451   ac_cv_func_alloca_works=yes
17452 else
17453   ac_cv_func_alloca_works=no
17454 fi
17455 rm -f core conftest.err conftest.$ac_objext \
17456     conftest$ac_exeext conftest.$ac_ext
17457 fi
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17459 $as_echo "$ac_cv_func_alloca_works" >&6; }
17460
17461 if test $ac_cv_func_alloca_works = yes; then
17462
17463 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17464
17465 else
17466   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17467 # that cause trouble.  Some versions do not even contain alloca or
17468 # contain a buggy version.  If you still want to use their alloca,
17469 # use ar to extract alloca.o from them instead of compiling alloca.c.
17470
17471
17472
17473
17474
17475 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17476
17477 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17478
17479
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17481 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17482 if ${ac_cv_os_cray+:} false; then :
17483   $as_echo_n "(cached) " >&6
17484 else
17485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h.  */
17487 #if defined CRAY && ! defined CRAY2
17488 webecray
17489 #else
17490 wenotbecray
17491 #endif
17492
17493 _ACEOF
17494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17495   $EGREP "webecray" >/dev/null 2>&1; then :
17496   ac_cv_os_cray=yes
17497 else
17498   ac_cv_os_cray=no
17499 fi
17500 rm -f conftest*
17501
17502 fi
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17504 $as_echo "$ac_cv_os_cray" >&6; }
17505 if test $ac_cv_os_cray = yes; then
17506   for ac_func in _getb67 GETB67 getb67; do
17507     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17509 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17510
17511 cat >>confdefs.h <<_ACEOF
17512 #define CRAY_STACKSEG_END $ac_func
17513 _ACEOF
17514
17515     break
17516 fi
17517
17518   done
17519 fi
17520
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17522 $as_echo_n "checking stack direction for C alloca... " >&6; }
17523 if ${ac_cv_c_stack_direction+:} false; then :
17524   $as_echo_n "(cached) " >&6
17525 else
17526   if test "$cross_compiling" = yes; then :
17527   ac_cv_c_stack_direction=0
17528 else
17529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h.  */
17531 $ac_includes_default
17532 int
17533 find_stack_direction (int *addr, int depth)
17534 {
17535   int dir, dummy = 0;
17536   if (! addr)
17537     addr = &dummy;
17538   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17539   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17540   return dir + dummy;
17541 }
17542
17543 int
17544 main (int argc, char **argv)
17545 {
17546   return find_stack_direction (0, argc + !argv + 20) < 0;
17547 }
17548 _ACEOF
17549 if ac_fn_c_try_run "$LINENO"; then :
17550   ac_cv_c_stack_direction=1
17551 else
17552   ac_cv_c_stack_direction=-1
17553 fi
17554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17555   conftest.$ac_objext conftest.beam conftest.$ac_ext
17556 fi
17557
17558 fi
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17560 $as_echo "$ac_cv_c_stack_direction" >&6; }
17561 cat >>confdefs.h <<_ACEOF
17562 #define STACK_DIRECTION $ac_cv_c_stack_direction
17563 _ACEOF
17564
17565
17566 fi
17567
17568
17569
17570
17571
17572   for ac_header in $gl_header_list
17573 do :
17574   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17575 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17577   cat >>confdefs.h <<_ACEOF
17578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17579 _ACEOF
17580
17581 fi
17582
17583 done
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17597 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17598 if ${gl_cv_have_include_next+:} false; then :
17599   $as_echo_n "(cached) " >&6
17600 else
17601   rm -rf conftestd1a conftestd1b conftestd2
17602      mkdir conftestd1a conftestd1b conftestd2
17603                                                   cat <<EOF > conftestd1a/conftest.h
17604 #define DEFINED_IN_CONFTESTD1
17605 #include_next <conftest.h>
17606 #ifdef DEFINED_IN_CONFTESTD2
17607 int foo;
17608 #else
17609 #error "include_next doesn't work"
17610 #endif
17611 EOF
17612      cat <<EOF > conftestd1b/conftest.h
17613 #define DEFINED_IN_CONFTESTD1
17614 #include <stdio.h>
17615 #include_next <conftest.h>
17616 #ifdef DEFINED_IN_CONFTESTD2
17617 int foo;
17618 #else
17619 #error "include_next doesn't work"
17620 #endif
17621 EOF
17622      cat <<EOF > conftestd2/conftest.h
17623 #ifndef DEFINED_IN_CONFTESTD1
17624 #error "include_next test doesn't work"
17625 #endif
17626 #define DEFINED_IN_CONFTESTD2
17627 EOF
17628      gl_save_CPPFLAGS="$CPPFLAGS"
17629      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17630      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h.  */
17632 #include <conftest.h>
17633 _ACEOF
17634 if ac_fn_c_try_compile "$LINENO"; then :
17635   gl_cv_have_include_next=yes
17636 else
17637   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17638         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h.  */
17640 #include <conftest.h>
17641 _ACEOF
17642 if ac_fn_c_try_compile "$LINENO"; then :
17643   gl_cv_have_include_next=buggy
17644 else
17645   gl_cv_have_include_next=no
17646 fi
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648
17649 fi
17650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17651      CPPFLAGS="$gl_save_CPPFLAGS"
17652      rm -rf conftestd1a conftestd1b conftestd2
17653
17654 fi
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17656 $as_echo "$gl_cv_have_include_next" >&6; }
17657   PRAGMA_SYSTEM_HEADER=
17658   if test $gl_cv_have_include_next = yes; then
17659     INCLUDE_NEXT=include_next
17660     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17661     if test -n "$GCC"; then
17662       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17663     fi
17664   else
17665     if test $gl_cv_have_include_next = buggy; then
17666       INCLUDE_NEXT=include
17667       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17668     else
17669       INCLUDE_NEXT=include
17670       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17671     fi
17672   fi
17673
17674
17675
17676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17677 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17678 if ${gl_cv_pragma_columns+:} false; then :
17679   $as_echo_n "(cached) " >&6
17680 else
17681        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682 /* end confdefs.h.  */
17683
17684 #ifdef __TANDEM
17685 choke me
17686 #endif
17687
17688 _ACEOF
17689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17690   $EGREP "choke me" >/dev/null 2>&1; then :
17691   gl_cv_pragma_columns=yes
17692 else
17693   gl_cv_pragma_columns=no
17694 fi
17695 rm -f conftest*
17696
17697
17698 fi
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17700 $as_echo "$gl_cv_pragma_columns" >&6; }
17701   if test $gl_cv_pragma_columns = yes; then
17702     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17703   else
17704     PRAGMA_COLUMNS=
17705   fi
17706
17707
17708
17709
17710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
17711 $as_echo_n "checking for complete errno.h... " >&6; }
17712 if ${gl_cv_header_errno_h_complete+:} false; then :
17713   $as_echo_n "(cached) " >&6
17714 else
17715
17716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h.  */
17718
17719 #include <errno.h>
17720 #if !defined ETXTBSY
17721 booboo
17722 #endif
17723 #if !defined ENOMSG
17724 booboo
17725 #endif
17726 #if !defined EIDRM
17727 booboo
17728 #endif
17729 #if !defined ENOLINK
17730 booboo
17731 #endif
17732 #if !defined EPROTO
17733 booboo
17734 #endif
17735 #if !defined EMULTIHOP
17736 booboo
17737 #endif
17738 #if !defined EBADMSG
17739 booboo
17740 #endif
17741 #if !defined EOVERFLOW
17742 booboo
17743 #endif
17744 #if !defined ENOTSUP
17745 booboo
17746 #endif
17747 #if !defined ENETRESET
17748 booboo
17749 #endif
17750 #if !defined ECONNABORTED
17751 booboo
17752 #endif
17753 #if !defined ESTALE
17754 booboo
17755 #endif
17756 #if !defined EDQUOT
17757 booboo
17758 #endif
17759 #if !defined ECANCELED
17760 booboo
17761 #endif
17762 #if !defined EOWNERDEAD
17763 booboo
17764 #endif
17765 #if !defined ENOTRECOVERABLE
17766 booboo
17767 #endif
17768 #if !defined EILSEQ
17769 booboo
17770 #endif
17771
17772 _ACEOF
17773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17774   $EGREP "booboo" >/dev/null 2>&1; then :
17775   gl_cv_header_errno_h_complete=no
17776 else
17777   gl_cv_header_errno_h_complete=yes
17778 fi
17779 rm -f conftest*
17780
17781
17782 fi
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
17784 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
17785   if test $gl_cv_header_errno_h_complete = yes; then
17786     ERRNO_H=''
17787   else
17788
17789
17790
17791
17792
17793
17794
17795
17796      if test $gl_cv_have_include_next = yes; then
17797        gl_cv_next_errno_h='<'errno.h'>'
17798      else
17799        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
17800 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
17801 if ${gl_cv_next_errno_h+:} false; then :
17802   $as_echo_n "(cached) " >&6
17803 else
17804
17805
17806
17807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h.  */
17809 #include <errno.h>
17810 _ACEOF
17811                 case "$host_os" in
17812     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17813     *)    gl_absname_cpp="$ac_cpp" ;;
17814   esac
17815
17816   case "$host_os" in
17817     mingw*)
17818                                           gl_dirsep_regex='[/\\]'
17819       ;;
17820     *)
17821       gl_dirsep_regex='\/'
17822       ;;
17823   esac
17824       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17825   gl_header_literal_regex=`echo 'errno.h' \
17826                            | sed -e "$gl_make_literal_regex_sed"`
17827   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17828       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17829       s|^/[^/]|//&|
17830       p
17831       q
17832     }'
17833
17834         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17835   sed -n "$gl_absolute_header_sed"`
17836
17837            gl_header=$gl_cv_absolute_errno_h
17838            gl_cv_next_errno_h='"'$gl_header'"'
17839
17840
17841 fi
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
17843 $as_echo "$gl_cv_next_errno_h" >&6; }
17844      fi
17845      NEXT_ERRNO_H=$gl_cv_next_errno_h
17846
17847      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17848        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17849        gl_next_as_first_directive='<'errno.h'>'
17850      else
17851        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17852        gl_next_as_first_directive=$gl_cv_next_errno_h
17853      fi
17854      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
17855
17856
17857
17858
17859     ERRNO_H='errno.h'
17860   fi
17861
17862    if test -n "$ERRNO_H"; then
17863   GL_GENERATE_ERRNO_H_TRUE=
17864   GL_GENERATE_ERRNO_H_FALSE='#'
17865 else
17866   GL_GENERATE_ERRNO_H_TRUE='#'
17867   GL_GENERATE_ERRNO_H_FALSE=
17868 fi
17869
17870
17871   if test -n "$ERRNO_H"; then
17872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
17873 $as_echo_n "checking for EMULTIHOP value... " >&6; }
17874 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
17875   $as_echo_n "(cached) " >&6
17876 else
17877
17878       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879 /* end confdefs.h.  */
17880
17881 #include <errno.h>
17882 #ifdef EMULTIHOP
17883 yes
17884 #endif
17885
17886 _ACEOF
17887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17888   $EGREP "yes" >/dev/null 2>&1; then :
17889   gl_cv_header_errno_h_EMULTIHOP=yes
17890 else
17891   gl_cv_header_errno_h_EMULTIHOP=no
17892 fi
17893 rm -f conftest*
17894
17895       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
17896         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h.  */
17898
17899 #define _XOPEN_SOURCE_EXTENDED 1
17900 #include <errno.h>
17901 #ifdef EMULTIHOP
17902 yes
17903 #endif
17904
17905 _ACEOF
17906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17907   $EGREP "yes" >/dev/null 2>&1; then :
17908   gl_cv_header_errno_h_EMULTIHOP=hidden
17909 fi
17910 rm -f conftest*
17911
17912         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
17913                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
17914 #define _XOPEN_SOURCE_EXTENDED 1
17915 #include <errno.h>
17916 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
17917 #include <stdio.h>
17918 #include <stdlib.h>
17919 "; then :
17920
17921 fi
17922
17923         fi
17924       fi
17925
17926 fi
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
17928 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
17929     case $gl_cv_header_errno_h_EMULTIHOP in
17930       yes | no)
17931         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
17932         ;;
17933       *)
17934         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
17935         ;;
17936     esac
17937
17938
17939   fi
17940
17941
17942   if test -n "$ERRNO_H"; then
17943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
17944 $as_echo_n "checking for ENOLINK value... " >&6; }
17945 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
17946   $as_echo_n "(cached) " >&6
17947 else
17948
17949       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h.  */
17951
17952 #include <errno.h>
17953 #ifdef ENOLINK
17954 yes
17955 #endif
17956
17957 _ACEOF
17958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17959   $EGREP "yes" >/dev/null 2>&1; then :
17960   gl_cv_header_errno_h_ENOLINK=yes
17961 else
17962   gl_cv_header_errno_h_ENOLINK=no
17963 fi
17964 rm -f conftest*
17965
17966       if test $gl_cv_header_errno_h_ENOLINK = no; then
17967         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h.  */
17969
17970 #define _XOPEN_SOURCE_EXTENDED 1
17971 #include <errno.h>
17972 #ifdef ENOLINK
17973 yes
17974 #endif
17975
17976 _ACEOF
17977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17978   $EGREP "yes" >/dev/null 2>&1; then :
17979   gl_cv_header_errno_h_ENOLINK=hidden
17980 fi
17981 rm -f conftest*
17982
17983         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
17984                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
17985 #define _XOPEN_SOURCE_EXTENDED 1
17986 #include <errno.h>
17987 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
17988 #include <stdio.h>
17989 #include <stdlib.h>
17990 "; then :
17991
17992 fi
17993
17994         fi
17995       fi
17996
17997 fi
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17999 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18000     case $gl_cv_header_errno_h_ENOLINK in
18001       yes | no)
18002         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18003         ;;
18004       *)
18005         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18006         ;;
18007     esac
18008
18009
18010   fi
18011
18012
18013   if test -n "$ERRNO_H"; then
18014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18015 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18016 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
18017   $as_echo_n "(cached) " >&6
18018 else
18019
18020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h.  */
18022
18023 #include <errno.h>
18024 #ifdef EOVERFLOW
18025 yes
18026 #endif
18027
18028 _ACEOF
18029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18030   $EGREP "yes" >/dev/null 2>&1; then :
18031   gl_cv_header_errno_h_EOVERFLOW=yes
18032 else
18033   gl_cv_header_errno_h_EOVERFLOW=no
18034 fi
18035 rm -f conftest*
18036
18037       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18038         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h.  */
18040
18041 #define _XOPEN_SOURCE_EXTENDED 1
18042 #include <errno.h>
18043 #ifdef EOVERFLOW
18044 yes
18045 #endif
18046
18047 _ACEOF
18048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18049   $EGREP "yes" >/dev/null 2>&1; then :
18050   gl_cv_header_errno_h_EOVERFLOW=hidden
18051 fi
18052 rm -f conftest*
18053
18054         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18055                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
18056 #define _XOPEN_SOURCE_EXTENDED 1
18057 #include <errno.h>
18058 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
18059 #include <stdio.h>
18060 #include <stdlib.h>
18061 "; then :
18062
18063 fi
18064
18065         fi
18066       fi
18067
18068 fi
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18070 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18071     case $gl_cv_header_errno_h_EOVERFLOW in
18072       yes | no)
18073         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18074         ;;
18075       *)
18076         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18077         ;;
18078     esac
18079
18080
18081   fi
18082
18083
18084
18085
18086
18087
18088    if true; then
18089   GL_COND_LIBTOOL_TRUE=
18090   GL_COND_LIBTOOL_FALSE='#'
18091 else
18092   GL_COND_LIBTOOL_TRUE='#'
18093   GL_COND_LIBTOOL_FALSE=
18094 fi
18095
18096   gl_cond_libtool=true
18097   gl_m4_base='gnulib-m4'
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107   gl_source_base='.'
18108 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
18109
18110
18111
18112
18113
18114
18115   if test $ac_cv_func_alloca_works = no; then
18116
18117
18118   :
18119
18120
18121
18122
18123
18124
18125
18126
18127   :
18128
18129   fi
18130
18131   # Define an additional variable used in the Makefile substitution.
18132
18133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h.  */
18135
18136 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
18137   Need own alloca
18138 #endif
18139
18140 _ACEOF
18141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18142   $EGREP "Need own alloca" >/dev/null 2>&1; then :
18143   ALLOCA_H=alloca.h
18144 else
18145   ALLOCA_H=
18146 fi
18147 rm -f conftest*
18148
18149
18150    if test -n "$ALLOCA_H"; then
18151   GL_GENERATE_ALLOCA_H_TRUE=
18152   GL_GENERATE_ALLOCA_H_FALSE='#'
18153 else
18154   GL_GENERATE_ALLOCA_H_TRUE='#'
18155   GL_GENERATE_ALLOCA_H_FALSE=
18156 fi
18157
18158
18159
18160
18161
18162   for ac_header in stdint.h
18163 do :
18164   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18165 if test "x$ac_cv_header_stdint_h" = xyes; then :
18166   cat >>confdefs.h <<_ACEOF
18167 #define HAVE_STDINT_H 1
18168 _ACEOF
18169
18170 fi
18171
18172 done
18173
18174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18175 $as_echo_n "checking for SIZE_MAX... " >&6; }
18176 if ${gl_cv_size_max+:} false; then :
18177   $as_echo_n "(cached) " >&6
18178 else
18179
18180     gl_cv_size_max=
18181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h.  */
18183
18184 #include <limits.h>
18185 #if HAVE_STDINT_H
18186 #include <stdint.h>
18187 #endif
18188 #ifdef SIZE_MAX
18189 Found it
18190 #endif
18191
18192 _ACEOF
18193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18194   $EGREP "Found it" >/dev/null 2>&1; then :
18195   gl_cv_size_max=yes
18196 fi
18197 rm -f conftest*
18198
18199     if test -z "$gl_cv_size_max"; then
18200                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
18201 #include <limits.h>"; then :
18202
18203 else
18204   size_t_bits_minus_1=
18205 fi
18206
18207       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
18208
18209 else
18210   fits_in_uint=
18211 fi
18212
18213       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18214         if test $fits_in_uint = 1; then
18215                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h.  */
18217 #include <stddef.h>
18218                  extern size_t foo;
18219                  extern unsigned long foo;
18220
18221 int
18222 main ()
18223 {
18224
18225   ;
18226   return 0;
18227 }
18228 _ACEOF
18229 if ac_fn_c_try_compile "$LINENO"; then :
18230   fits_in_uint=0
18231 fi
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233         fi
18234                                 if test $fits_in_uint = 1; then
18235           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18236         else
18237           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18238         fi
18239       else
18240                 gl_cv_size_max='((size_t)~(size_t)0)'
18241       fi
18242     fi
18243
18244 fi
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18246 $as_echo "$gl_cv_size_max" >&6; }
18247   if test "$gl_cv_size_max" != yes; then
18248
18249 cat >>confdefs.h <<_ACEOF
18250 #define SIZE_MAX $gl_cv_size_max
18251 _ACEOF
18252
18253   fi
18254
18255
18256
18257
18258   for ac_header in stdint.h
18259 do :
18260   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18261 if test "x$ac_cv_header_stdint_h" = xyes; then :
18262   cat >>confdefs.h <<_ACEOF
18263 #define HAVE_STDINT_H 1
18264 _ACEOF
18265
18266 fi
18267
18268 done
18269
18270
18271   # End of code from modules
18272
18273
18274
18275
18276
18277
18278
18279   gltests_libdeps=
18280   gltests_ltlibdeps=
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290   gl_source_base='tests'
18291   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
18292
18293   gl_module_indicator_condition=$gltests_WITNESS
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304 for ac_func in snprintf vasprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18305 do :
18306   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18309   cat >>confdefs.h <<_ACEOF
18310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18311 _ACEOF
18312
18313 fi
18314 done
18315
18316 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
18317 "
18318 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
18319   ac_have_decl=1
18320 else
18321   ac_have_decl=0
18322 fi
18323
18324 cat >>confdefs.h <<_ACEOF
18325 #define HAVE_DECL__SNPRINTF $ac_have_decl
18326 _ACEOF
18327
18328
18329
18330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18331 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18332 if ${gt_cv_func_printf_posix+:} false; then :
18333   $as_echo_n "(cached) " >&6
18334 else
18335
18336       if test "$cross_compiling" = yes; then :
18337
18338           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h.  */
18340
18341 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18342   notposix
18343 #endif
18344
18345 _ACEOF
18346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18347   $EGREP "notposix" >/dev/null 2>&1; then :
18348   gt_cv_func_printf_posix="guessing no"
18349 else
18350   gt_cv_func_printf_posix="guessing yes"
18351 fi
18352 rm -f conftest*
18353
18354
18355 else
18356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h.  */
18358
18359 #include <stdio.h>
18360 #include <string.h>
18361 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18362    dollar expansion (possibly an autoconf bug).  */
18363 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18364 static char buf[100];
18365 int main ()
18366 {
18367   sprintf (buf, format, 33, 55);
18368   return (strcmp (buf, "55 33") != 0);
18369 }
18370 _ACEOF
18371 if ac_fn_c_try_run "$LINENO"; then :
18372   gt_cv_func_printf_posix=yes
18373 else
18374   gt_cv_func_printf_posix=no
18375 fi
18376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18377   conftest.$ac_objext conftest.beam conftest.$ac_ext
18378 fi
18379
18380
18381 fi
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18383 $as_echo "$gt_cv_func_printf_posix" >&6; }
18384   case $gt_cv_func_printf_posix in
18385     *yes)
18386
18387 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18388
18389       ;;
18390   esac
18391
18392
18393 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
18394 # Extract the first word of "dvips", so it can be a program name with args.
18395 set dummy dvips; ac_word=$2
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18397 $as_echo_n "checking for $ac_word... " >&6; }
18398 if ${ac_cv_path_DVIPS+:} false; then :
18399   $as_echo_n "(cached) " >&6
18400 else
18401   case $DVIPS in
18402   [\\/]* | ?:[\\/]*)
18403   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
18404   ;;
18405   *)
18406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18407 for as_dir in $PATH
18408 do
18409   IFS=$as_save_IFS
18410   test -z "$as_dir" && as_dir=.
18411     for ac_exec_ext in '' $ac_executable_extensions; do
18412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18413     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
18414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18415     break 2
18416   fi
18417 done
18418   done
18419 IFS=$as_save_IFS
18420
18421   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
18422   ;;
18423 esac
18424 fi
18425 DVIPS=$ac_cv_path_DVIPS
18426 if test -n "$DVIPS"; then
18427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
18428 $as_echo "$DVIPS" >&6; }
18429 else
18430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18431 $as_echo "no" >&6; }
18432 fi
18433
18434
18435 # Extract the first word of "texi2pdf", so it can be a program name with args.
18436 set dummy texi2pdf; ac_word=$2
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18438 $as_echo_n "checking for $ac_word... " >&6; }
18439 if ${ac_cv_path_TEXI2PDF+:} false; then :
18440   $as_echo_n "(cached) " >&6
18441 else
18442   case $TEXI2PDF in
18443   [\\/]* | ?:[\\/]*)
18444   ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
18445   ;;
18446   *)
18447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18448 for as_dir in $PATH
18449 do
18450   IFS=$as_save_IFS
18451   test -z "$as_dir" && as_dir=.
18452     for ac_exec_ext in '' $ac_executable_extensions; do
18453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18454     ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
18455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18456     break 2
18457   fi
18458 done
18459   done
18460 IFS=$as_save_IFS
18461
18462   test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
18463   ;;
18464 esac
18465 fi
18466 TEXI2PDF=$ac_cv_path_TEXI2PDF
18467 if test -n "$TEXI2PDF"; then
18468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
18469 $as_echo "$TEXI2PDF" >&6; }
18470 else
18471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18472 $as_echo "no" >&6; }
18473 fi
18474
18475
18476 # Extract the first word of "perl", so it can be a program name with args.
18477 set dummy perl; ac_word=$2
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18479 $as_echo_n "checking for $ac_word... " >&6; }
18480 if ${ac_cv_path_PERL+:} false; then :
18481   $as_echo_n "(cached) " >&6
18482 else
18483   case $PERL in
18484   [\\/]* | ?:[\\/]*)
18485   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18486   ;;
18487   *)
18488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 for as_dir in $PATH
18490 do
18491   IFS=$as_save_IFS
18492   test -z "$as_dir" && as_dir=.
18493     for ac_exec_ext in '' $ac_executable_extensions; do
18494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18495     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18497     break 2
18498   fi
18499 done
18500   done
18501 IFS=$as_save_IFS
18502
18503   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
18504   ;;
18505 esac
18506 fi
18507 PERL=$ac_cv_path_PERL
18508 if test -n "$PERL"; then
18509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18510 $as_echo "$PERL" >&6; }
18511 else
18512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18513 $as_echo "no" >&6; }
18514 fi
18515
18516
18517
18518 ac_config_files="$ac_config_files Makefile"
18519
18520
18521 cat >confcache <<\_ACEOF
18522 # This file is a shell script that caches the results of configure
18523 # tests run on this system so they can be shared between configure
18524 # scripts and configure runs, see configure's option --config-cache.
18525 # It is not useful on other systems.  If it contains results you don't
18526 # want to keep, you may remove or edit it.
18527 #
18528 # config.status only pays attention to the cache file if you give it
18529 # the --recheck option to rerun configure.
18530 #
18531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18533 # following values.
18534
18535 _ACEOF
18536
18537 # The following way of writing the cache mishandles newlines in values,
18538 # but we know of no workaround that is simple, portable, and efficient.
18539 # So, we kill variables containing newlines.
18540 # Ultrix sh set writes to stderr and can't be redirected directly,
18541 # and sets the high bit in the cache file unless we assign to the vars.
18542 (
18543   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18544     eval ac_val=\$$ac_var
18545     case $ac_val in #(
18546     *${as_nl}*)
18547       case $ac_var in #(
18548       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18550       esac
18551       case $ac_var in #(
18552       _ | IFS | as_nl) ;; #(
18553       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18554       *) { eval $ac_var=; unset $ac_var;} ;;
18555       esac ;;
18556     esac
18557   done
18558
18559   (set) 2>&1 |
18560     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18561     *${as_nl}ac_space=\ *)
18562       # `set' does not quote correctly, so add quotes: double-quote
18563       # substitution turns \\\\ into \\, and sed turns \\ into \.
18564       sed -n \
18565         "s/'/'\\\\''/g;
18566           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18567       ;; #(
18568     *)
18569       # `set' quotes correctly as required by POSIX, so do not add quotes.
18570       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18571       ;;
18572     esac |
18573     sort
18574 ) |
18575   sed '
18576      /^ac_cv_env_/b end
18577      t clear
18578      :clear
18579      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18580      t end
18581      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18582      :end' >>confcache
18583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18584   if test -w "$cache_file"; then
18585     if test "x$cache_file" != "x/dev/null"; then
18586       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18587 $as_echo "$as_me: updating cache $cache_file" >&6;}
18588       if test ! -f "$cache_file" || test -h "$cache_file"; then
18589         cat confcache >"$cache_file"
18590       else
18591         case $cache_file in #(
18592         */* | ?:*)
18593           mv -f confcache "$cache_file"$$ &&
18594           mv -f "$cache_file"$$ "$cache_file" ;; #(
18595         *)
18596           mv -f confcache "$cache_file" ;;
18597         esac
18598       fi
18599     fi
18600   else
18601     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18603   fi
18604 fi
18605 rm -f confcache
18606
18607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18608 # Let make expand exec_prefix.
18609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18610
18611 DEFS=-DHAVE_CONFIG_H
18612
18613 ac_libobjs=
18614 ac_ltlibobjs=
18615 U=
18616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18617   # 1. Remove the extension, and $U if already installed.
18618   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18619   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18620   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18621   #    will be set to the directory where LIBOBJS objects are built.
18622   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18623   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18624 done
18625 LIBOBJS=$ac_libobjs
18626
18627 LTLIBOBJS=$ac_ltlibobjs
18628
18629
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18631 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18632    if test -n "$am_sleep_pid"; then
18633      # Hide warnings about reused PIDs.
18634      wait $am_sleep_pid 2>/dev/null
18635    fi
18636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18637 $as_echo "done" >&6; }
18638  if test -n "$EXEEXT"; then
18639   am__EXEEXT_TRUE=
18640   am__EXEEXT_FALSE='#'
18641 else
18642   am__EXEEXT_TRUE='#'
18643   am__EXEEXT_FALSE=
18644 fi
18645
18646 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18647   as_fn_error $? "conditional \"AMDEP\" was never defined.
18648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18649 fi
18650 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18651   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18653 fi
18654 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18655   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18657 fi
18658 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18659   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
18660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18661 fi
18662 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18663   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18665 fi
18666 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18667   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18669 fi
18670
18671     gl_libobjs=
18672     gl_ltlibobjs=
18673     if test -n "$gl_LIBOBJS"; then
18674       # Remove the extension.
18675       sed_drop_objext='s/\.o$//;s/\.obj$//'
18676       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18677         gl_libobjs="$gl_libobjs $i.$ac_objext"
18678         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18679       done
18680     fi
18681     gl_LIBOBJS=$gl_libobjs
18682
18683     gl_LTLIBOBJS=$gl_ltlibobjs
18684
18685
18686
18687     gltests_libobjs=
18688     gltests_ltlibobjs=
18689     if test -n "$gltests_LIBOBJS"; then
18690       # Remove the extension.
18691       sed_drop_objext='s/\.o$//;s/\.obj$//'
18692       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18693         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18694         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18695       done
18696     fi
18697     gltests_LIBOBJS=$gltests_libobjs
18698
18699     gltests_LTLIBOBJS=$gltests_ltlibobjs
18700
18701
18702
18703 : "${CONFIG_STATUS=./config.status}"
18704 ac_write_fail=0
18705 ac_clean_files_save=$ac_clean_files
18706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18709 as_write_fail=0
18710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18711 #! $SHELL
18712 # Generated by $as_me.
18713 # Run this file to recreate the current configuration.
18714 # Compiler output produced by configure, useful for debugging
18715 # configure, is in config.log if it exists.
18716
18717 debug=false
18718 ac_cs_recheck=false
18719 ac_cs_silent=false
18720
18721 SHELL=\${CONFIG_SHELL-$SHELL}
18722 export SHELL
18723 _ASEOF
18724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18725 ## -------------------- ##
18726 ## M4sh Initialization. ##
18727 ## -------------------- ##
18728
18729 # Be more Bourne compatible
18730 DUALCASE=1; export DUALCASE # for MKS sh
18731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18732   emulate sh
18733   NULLCMD=:
18734   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18735   # is contrary to our usage.  Disable this feature.
18736   alias -g '${1+"$@"}'='"$@"'
18737   setopt NO_GLOB_SUBST
18738 else
18739   case `(set -o) 2>/dev/null` in #(
18740   *posix*) :
18741     set -o posix ;; #(
18742   *) :
18743      ;;
18744 esac
18745 fi
18746
18747
18748 as_nl='
18749 '
18750 export as_nl
18751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18755 # Prefer a ksh shell builtin over an external printf program on Solaris,
18756 # but without wasting forks for bash or zsh.
18757 if test -z "$BASH_VERSION$ZSH_VERSION" \
18758     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18759   as_echo='print -r --'
18760   as_echo_n='print -rn --'
18761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18762   as_echo='printf %s\n'
18763   as_echo_n='printf %s'
18764 else
18765   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18766     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18767     as_echo_n='/usr/ucb/echo -n'
18768   else
18769     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18770     as_echo_n_body='eval
18771       arg=$1;
18772       case $arg in #(
18773       *"$as_nl"*)
18774         expr "X$arg" : "X\\(.*\\)$as_nl";
18775         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18776       esac;
18777       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18778     '
18779     export as_echo_n_body
18780     as_echo_n='sh -c $as_echo_n_body as_echo'
18781   fi
18782   export as_echo_body
18783   as_echo='sh -c $as_echo_body as_echo'
18784 fi
18785
18786 # The user is always right.
18787 if test "${PATH_SEPARATOR+set}" != set; then
18788   PATH_SEPARATOR=:
18789   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18790     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18791       PATH_SEPARATOR=';'
18792   }
18793 fi
18794
18795
18796 # IFS
18797 # We need space, tab and new line, in precisely that order.  Quoting is
18798 # there to prevent editors from complaining about space-tab.
18799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18800 # splitting by setting IFS to empty value.)
18801 IFS=" ""        $as_nl"
18802
18803 # Find who we are.  Look in the path if we contain no directory separator.
18804 as_myself=
18805 case $0 in #((
18806   *[\\/]* ) as_myself=$0 ;;
18807   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808 for as_dir in $PATH
18809 do
18810   IFS=$as_save_IFS
18811   test -z "$as_dir" && as_dir=.
18812     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18813   done
18814 IFS=$as_save_IFS
18815
18816      ;;
18817 esac
18818 # We did not find ourselves, most probably we were run as `sh COMMAND'
18819 # in which case we are not to be found in the path.
18820 if test "x$as_myself" = x; then
18821   as_myself=$0
18822 fi
18823 if test ! -f "$as_myself"; then
18824   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18825   exit 1
18826 fi
18827
18828 # Unset variables that we do not need and which cause bugs (e.g. in
18829 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18830 # suppresses any "Segmentation fault" message there.  '((' could
18831 # trigger a bug in pdksh 5.2.14.
18832 for as_var in BASH_ENV ENV MAIL MAILPATH
18833 do eval test x\${$as_var+set} = xset \
18834   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18835 done
18836 PS1='$ '
18837 PS2='> '
18838 PS4='+ '
18839
18840 # NLS nuisances.
18841 LC_ALL=C
18842 export LC_ALL
18843 LANGUAGE=C
18844 export LANGUAGE
18845
18846 # CDPATH.
18847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18848
18849
18850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18851 # ----------------------------------------
18852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18854 # script with STATUS, using 1 if that was 0.
18855 as_fn_error ()
18856 {
18857   as_status=$1; test $as_status -eq 0 && as_status=1
18858   if test "$4"; then
18859     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18860     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18861   fi
18862   $as_echo "$as_me: error: $2" >&2
18863   as_fn_exit $as_status
18864 } # as_fn_error
18865
18866
18867 # as_fn_set_status STATUS
18868 # -----------------------
18869 # Set $? to STATUS, without forking.
18870 as_fn_set_status ()
18871 {
18872   return $1
18873 } # as_fn_set_status
18874
18875 # as_fn_exit STATUS
18876 # -----------------
18877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18878 as_fn_exit ()
18879 {
18880   set +e
18881   as_fn_set_status $1
18882   exit $1
18883 } # as_fn_exit
18884
18885 # as_fn_unset VAR
18886 # ---------------
18887 # Portably unset VAR.
18888 as_fn_unset ()
18889 {
18890   { eval $1=; unset $1;}
18891 }
18892 as_unset=as_fn_unset
18893 # as_fn_append VAR VALUE
18894 # ----------------------
18895 # Append the text in VALUE to the end of the definition contained in VAR. Take
18896 # advantage of any shell optimizations that allow amortized linear growth over
18897 # repeated appends, instead of the typical quadratic growth present in naive
18898 # implementations.
18899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18900   eval 'as_fn_append ()
18901   {
18902     eval $1+=\$2
18903   }'
18904 else
18905   as_fn_append ()
18906   {
18907     eval $1=\$$1\$2
18908   }
18909 fi # as_fn_append
18910
18911 # as_fn_arith ARG...
18912 # ------------------
18913 # Perform arithmetic evaluation on the ARGs, and store the result in the
18914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18915 # must be portable across $(()) and expr.
18916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18917   eval 'as_fn_arith ()
18918   {
18919     as_val=$(( $* ))
18920   }'
18921 else
18922   as_fn_arith ()
18923   {
18924     as_val=`expr "$@" || test $? -eq 1`
18925   }
18926 fi # as_fn_arith
18927
18928
18929 if expr a : '\(a\)' >/dev/null 2>&1 &&
18930    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18931   as_expr=expr
18932 else
18933   as_expr=false
18934 fi
18935
18936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18937   as_basename=basename
18938 else
18939   as_basename=false
18940 fi
18941
18942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18943   as_dirname=dirname
18944 else
18945   as_dirname=false
18946 fi
18947
18948 as_me=`$as_basename -- "$0" ||
18949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18950          X"$0" : 'X\(//\)$' \| \
18951          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18952 $as_echo X/"$0" |
18953     sed '/^.*\/\([^/][^/]*\)\/*$/{
18954             s//\1/
18955             q
18956           }
18957           /^X\/\(\/\/\)$/{
18958             s//\1/
18959             q
18960           }
18961           /^X\/\(\/\).*/{
18962             s//\1/
18963             q
18964           }
18965           s/.*/./; q'`
18966
18967 # Avoid depending upon Character Ranges.
18968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18971 as_cr_digits='0123456789'
18972 as_cr_alnum=$as_cr_Letters$as_cr_digits
18973
18974 ECHO_C= ECHO_N= ECHO_T=
18975 case `echo -n x` in #(((((
18976 -n*)
18977   case `echo 'xy\c'` in
18978   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18979   xy)  ECHO_C='\c';;
18980   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18981        ECHO_T=' ';;
18982   esac;;
18983 *)
18984   ECHO_N='-n';;
18985 esac
18986
18987 rm -f conf$$ conf$$.exe conf$$.file
18988 if test -d conf$$.dir; then
18989   rm -f conf$$.dir/conf$$.file
18990 else
18991   rm -f conf$$.dir
18992   mkdir conf$$.dir 2>/dev/null
18993 fi
18994 if (echo >conf$$.file) 2>/dev/null; then
18995   if ln -s conf$$.file conf$$ 2>/dev/null; then
18996     as_ln_s='ln -s'
18997     # ... but there are two gotchas:
18998     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18999     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19000     # In both cases, we have to default to `cp -pR'.
19001     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19002       as_ln_s='cp -pR'
19003   elif ln conf$$.file conf$$ 2>/dev/null; then
19004     as_ln_s=ln
19005   else
19006     as_ln_s='cp -pR'
19007   fi
19008 else
19009   as_ln_s='cp -pR'
19010 fi
19011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19012 rmdir conf$$.dir 2>/dev/null
19013
19014
19015 # as_fn_mkdir_p
19016 # -------------
19017 # Create "$as_dir" as a directory, including parents if necessary.
19018 as_fn_mkdir_p ()
19019 {
19020
19021   case $as_dir in #(
19022   -*) as_dir=./$as_dir;;
19023   esac
19024   test -d "$as_dir" || eval $as_mkdir_p || {
19025     as_dirs=
19026     while :; do
19027       case $as_dir in #(
19028       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19029       *) as_qdir=$as_dir;;
19030       esac
19031       as_dirs="'$as_qdir' $as_dirs"
19032       as_dir=`$as_dirname -- "$as_dir" ||
19033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19034          X"$as_dir" : 'X\(//\)[^/]' \| \
19035          X"$as_dir" : 'X\(//\)$' \| \
19036          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19037 $as_echo X"$as_dir" |
19038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19039             s//\1/
19040             q
19041           }
19042           /^X\(\/\/\)[^/].*/{
19043             s//\1/
19044             q
19045           }
19046           /^X\(\/\/\)$/{
19047             s//\1/
19048             q
19049           }
19050           /^X\(\/\).*/{
19051             s//\1/
19052             q
19053           }
19054           s/.*/./; q'`
19055       test -d "$as_dir" && break
19056     done
19057     test -z "$as_dirs" || eval "mkdir $as_dirs"
19058   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19059
19060
19061 } # as_fn_mkdir_p
19062 if mkdir -p . 2>/dev/null; then
19063   as_mkdir_p='mkdir -p "$as_dir"'
19064 else
19065   test -d ./-p && rmdir ./-p
19066   as_mkdir_p=false
19067 fi
19068
19069
19070 # as_fn_executable_p FILE
19071 # -----------------------
19072 # Test if FILE is an executable regular file.
19073 as_fn_executable_p ()
19074 {
19075   test -f "$1" && test -x "$1"
19076 } # as_fn_executable_p
19077 as_test_x='test -x'
19078 as_executable_p=as_fn_executable_p
19079
19080 # Sed expression to map a string onto a valid CPP name.
19081 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19082
19083 # Sed expression to map a string onto a valid variable name.
19084 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19085
19086
19087 exec 6>&1
19088 ## ----------------------------------- ##
19089 ## Main body of $CONFIG_STATUS script. ##
19090 ## ----------------------------------- ##
19091 _ASEOF
19092 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19093
19094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19095 # Save the log message, to keep $0 and so on meaningful, and to
19096 # report actual input values of CONFIG_FILES etc. instead of their
19097 # values after options handling.
19098 ac_log="
19099 This file was extended by libasprintf $as_me 1.0, which was
19100 generated by GNU Autoconf 2.69.  Invocation command line was
19101
19102   CONFIG_FILES    = $CONFIG_FILES
19103   CONFIG_HEADERS  = $CONFIG_HEADERS
19104   CONFIG_LINKS    = $CONFIG_LINKS
19105   CONFIG_COMMANDS = $CONFIG_COMMANDS
19106   $ $0 $@
19107
19108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19109 "
19110
19111 _ACEOF
19112
19113 case $ac_config_files in *"
19114 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19115 esac
19116
19117 case $ac_config_headers in *"
19118 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19119 esac
19120
19121
19122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19123 # Files that config.status was made for.
19124 config_files="$ac_config_files"
19125 config_headers="$ac_config_headers"
19126 config_commands="$ac_config_commands"
19127
19128 _ACEOF
19129
19130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19131 ac_cs_usage="\
19132 \`$as_me' instantiates files and other configuration actions
19133 from templates according to the current configuration.  Unless the files
19134 and actions are specified as TAGs, all are instantiated by default.
19135
19136 Usage: $0 [OPTION]... [TAG]...
19137
19138   -h, --help       print this help, then exit
19139   -V, --version    print version number and configuration settings, then exit
19140       --config     print configuration, then exit
19141   -q, --quiet, --silent
19142                    do not print progress messages
19143   -d, --debug      don't remove temporary files
19144       --recheck    update $as_me by reconfiguring in the same conditions
19145       --file=FILE[:TEMPLATE]
19146                    instantiate the configuration file FILE
19147       --header=FILE[:TEMPLATE]
19148                    instantiate the configuration header FILE
19149
19150 Configuration files:
19151 $config_files
19152
19153 Configuration headers:
19154 $config_headers
19155
19156 Configuration commands:
19157 $config_commands
19158
19159 Report bugs to the package provider."
19160
19161 _ACEOF
19162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19163 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19164 ac_cs_version="\\
19165 libasprintf config.status 1.0
19166 configured by $0, generated by GNU Autoconf 2.69,
19167   with options \\"\$ac_cs_config\\"
19168
19169 Copyright (C) 2012 Free Software Foundation, Inc.
19170 This config.status script is free software; the Free Software Foundation
19171 gives unlimited permission to copy, distribute and modify it."
19172
19173 ac_pwd='$ac_pwd'
19174 srcdir='$srcdir'
19175 INSTALL='$INSTALL'
19176 MKDIR_P='$MKDIR_P'
19177 AWK='$AWK'
19178 test -n "\$AWK" || AWK=awk
19179 _ACEOF
19180
19181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19182 # The default lists apply if the user does not specify any file.
19183 ac_need_defaults=:
19184 while test $# != 0
19185 do
19186   case $1 in
19187   --*=?*)
19188     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19189     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19190     ac_shift=:
19191     ;;
19192   --*=)
19193     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19194     ac_optarg=
19195     ac_shift=:
19196     ;;
19197   *)
19198     ac_option=$1
19199     ac_optarg=$2
19200     ac_shift=shift
19201     ;;
19202   esac
19203
19204   case $ac_option in
19205   # Handling of the options.
19206   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19207     ac_cs_recheck=: ;;
19208   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19209     $as_echo "$ac_cs_version"; exit ;;
19210   --config | --confi | --conf | --con | --co | --c )
19211     $as_echo "$ac_cs_config"; exit ;;
19212   --debug | --debu | --deb | --de | --d | -d )
19213     debug=: ;;
19214   --file | --fil | --fi | --f )
19215     $ac_shift
19216     case $ac_optarg in
19217     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19218     '') as_fn_error $? "missing file argument" ;;
19219     esac
19220     as_fn_append CONFIG_FILES " '$ac_optarg'"
19221     ac_need_defaults=false;;
19222   --header | --heade | --head | --hea )
19223     $ac_shift
19224     case $ac_optarg in
19225     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19226     esac
19227     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19228     ac_need_defaults=false;;
19229   --he | --h)
19230     # Conflict between --help and --header
19231     as_fn_error $? "ambiguous option: \`$1'
19232 Try \`$0 --help' for more information.";;
19233   --help | --hel | -h )
19234     $as_echo "$ac_cs_usage"; exit ;;
19235   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19236   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19237     ac_cs_silent=: ;;
19238
19239   # This is an error.
19240   -*) as_fn_error $? "unrecognized option: \`$1'
19241 Try \`$0 --help' for more information." ;;
19242
19243   *) as_fn_append ac_config_targets " $1"
19244      ac_need_defaults=false ;;
19245
19246   esac
19247   shift
19248 done
19249
19250 ac_configure_extra_args=
19251
19252 if $ac_cs_silent; then
19253   exec 6>/dev/null
19254   ac_configure_extra_args="$ac_configure_extra_args --silent"
19255 fi
19256
19257 _ACEOF
19258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19259 if \$ac_cs_recheck; then
19260   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19261   shift
19262   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19263   CONFIG_SHELL='$SHELL'
19264   export CONFIG_SHELL
19265   exec "\$@"
19266 fi
19267
19268 _ACEOF
19269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19270 exec 5>>config.log
19271 {
19272   echo
19273   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19274 ## Running $as_me. ##
19275 _ASBOX
19276   $as_echo "$ac_log"
19277 } >&5
19278
19279 _ACEOF
19280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19281 #
19282 # INIT-COMMANDS
19283 #
19284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19285
19286
19287 # The HP-UX ksh and POSIX shell print the target directory to stdout
19288 # if CDPATH is set.
19289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19290
19291 sed_quote_subst='$sed_quote_subst'
19292 double_quote_subst='$double_quote_subst'
19293 delay_variable_subst='$delay_variable_subst'
19294 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19295 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19296 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19297 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19298 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19299 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19300 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19301 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19302 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19303 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19304 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19305 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19306 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19307 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19308 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19309 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19310 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19311 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19312 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19313 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19314 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19315 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19316 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19317 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19318 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19319 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19320 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19321 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19322 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19323 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19324 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19325 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19326 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19327 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19328 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19329 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19330 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19331 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19332 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19333 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19334 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19335 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19336 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19337 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19338 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19339 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19340 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19341 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19342 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19343 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19344 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19345 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19346 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19347 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19348 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19349 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19350 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19351 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19352 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19353 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"`'
19354 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19355 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19356 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19357 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19358 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19359 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19360 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19361 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19362 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19363 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19364 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19365 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19366 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19367 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19368 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19369 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19370 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19371 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19372 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19373 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19374 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19375 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19376 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19377 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19378 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19379 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19380 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19381 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19382 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19383 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19384 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19385 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19386 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19387 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19388 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19389 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19390 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19391 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19392 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19393 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19394 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19395 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19396 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19397 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19398 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19399 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19400 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19401 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19402 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19403 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19404 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19405 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19406 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19407 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19408 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19409 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19410 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19411 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19412 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19413 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19414 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19415 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19416 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19417 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19418 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19419 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19420 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19421 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19422 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19423 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19424 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19425 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19426 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19427 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19428 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19429 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19430 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19431 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19432 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19433 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19434 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19435 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19436 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19437 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19438 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19439 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19440 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19441 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19442 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19443 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19444 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19445 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19446 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19447 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19448 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19449 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19450 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19451 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19452 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19453 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19454 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19455 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19456 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19457 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19458 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19459 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19460 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19461 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19462 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19463 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19464 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19465 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19466 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19467 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19468 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19469 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19470 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19471 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19472 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19473 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19474 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19475 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19476 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19477 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19478 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19479 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19480 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19481 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19482 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19483 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19484
19485 LTCC='$LTCC'
19486 LTCFLAGS='$LTCFLAGS'
19487 compiler='$compiler_DEFAULT'
19488
19489 # A function that is used when there is no print builtin or printf.
19490 func_fallback_echo ()
19491 {
19492   eval 'cat <<_LTECHO_EOF
19493 \$1
19494 _LTECHO_EOF'
19495 }
19496
19497 # Quote evaled strings.
19498 for var in AS \
19499 DLLTOOL \
19500 OBJDUMP \
19501 SHELL \
19502 ECHO \
19503 PATH_SEPARATOR \
19504 SED \
19505 GREP \
19506 EGREP \
19507 FGREP \
19508 LD \
19509 NM \
19510 LN_S \
19511 lt_SP2NL \
19512 lt_NL2SP \
19513 reload_flag \
19514 deplibs_check_method \
19515 file_magic_cmd \
19516 file_magic_glob \
19517 want_nocaseglob \
19518 sharedlib_from_linklib_cmd \
19519 AR \
19520 AR_FLAGS \
19521 archiver_list_spec \
19522 STRIP \
19523 RANLIB \
19524 CC \
19525 CFLAGS \
19526 compiler \
19527 lt_cv_sys_global_symbol_pipe \
19528 lt_cv_sys_global_symbol_to_cdecl \
19529 lt_cv_sys_global_symbol_to_import \
19530 lt_cv_sys_global_symbol_to_c_name_address \
19531 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19532 lt_cv_nm_interface \
19533 nm_file_list_spec \
19534 lt_cv_truncate_bin \
19535 lt_prog_compiler_no_builtin_flag \
19536 lt_prog_compiler_pic \
19537 lt_prog_compiler_wl \
19538 lt_prog_compiler_static \
19539 lt_cv_prog_compiler_c_o \
19540 need_locks \
19541 MANIFEST_TOOL \
19542 DSYMUTIL \
19543 NMEDIT \
19544 LIPO \
19545 OTOOL \
19546 OTOOL64 \
19547 shrext_cmds \
19548 export_dynamic_flag_spec \
19549 whole_archive_flag_spec \
19550 compiler_needs_object \
19551 with_gnu_ld \
19552 allow_undefined_flag \
19553 no_undefined_flag \
19554 hardcode_libdir_flag_spec \
19555 hardcode_libdir_separator \
19556 exclude_expsyms \
19557 include_expsyms \
19558 file_list_spec \
19559 variables_saved_for_relink \
19560 libname_spec \
19561 library_names_spec \
19562 soname_spec \
19563 install_override_mode \
19564 finish_eval \
19565 old_striplib \
19566 striplib \
19567 compiler_lib_search_dirs \
19568 predep_objects \
19569 postdep_objects \
19570 predeps \
19571 postdeps \
19572 compiler_lib_search_path \
19573 LD_CXX \
19574 reload_flag_CXX \
19575 compiler_CXX \
19576 lt_prog_compiler_no_builtin_flag_CXX \
19577 lt_prog_compiler_pic_CXX \
19578 lt_prog_compiler_wl_CXX \
19579 lt_prog_compiler_static_CXX \
19580 lt_cv_prog_compiler_c_o_CXX \
19581 export_dynamic_flag_spec_CXX \
19582 whole_archive_flag_spec_CXX \
19583 compiler_needs_object_CXX \
19584 with_gnu_ld_CXX \
19585 allow_undefined_flag_CXX \
19586 no_undefined_flag_CXX \
19587 hardcode_libdir_flag_spec_CXX \
19588 hardcode_libdir_separator_CXX \
19589 exclude_expsyms_CXX \
19590 include_expsyms_CXX \
19591 file_list_spec_CXX \
19592 compiler_lib_search_dirs_CXX \
19593 predep_objects_CXX \
19594 postdep_objects_CXX \
19595 predeps_CXX \
19596 postdeps_CXX \
19597 compiler_lib_search_path_CXX; do
19598     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19599     *[\\\\\\\`\\"\\\$]*)
19600       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19601       ;;
19602     *)
19603       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19604       ;;
19605     esac
19606 done
19607
19608 # Double-quote double-evaled strings.
19609 for var in reload_cmds \
19610 old_postinstall_cmds \
19611 old_postuninstall_cmds \
19612 old_archive_cmds \
19613 extract_expsyms_cmds \
19614 old_archive_from_new_cmds \
19615 old_archive_from_expsyms_cmds \
19616 archive_cmds \
19617 archive_expsym_cmds \
19618 module_cmds \
19619 module_expsym_cmds \
19620 export_symbols_cmds \
19621 prelink_cmds \
19622 postlink_cmds \
19623 postinstall_cmds \
19624 postuninstall_cmds \
19625 finish_cmds \
19626 sys_lib_search_path_spec \
19627 configure_time_dlsearch_path \
19628 configure_time_lt_sys_library_path \
19629 reload_cmds_CXX \
19630 old_archive_cmds_CXX \
19631 old_archive_from_new_cmds_CXX \
19632 old_archive_from_expsyms_cmds_CXX \
19633 archive_cmds_CXX \
19634 archive_expsym_cmds_CXX \
19635 module_cmds_CXX \
19636 module_expsym_cmds_CXX \
19637 export_symbols_cmds_CXX \
19638 prelink_cmds_CXX \
19639 postlink_cmds_CXX; do
19640     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19641     *[\\\\\\\`\\"\\\$]*)
19642       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19643       ;;
19644     *)
19645       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19646       ;;
19647     esac
19648 done
19649
19650 ac_aux_dir='$ac_aux_dir'
19651
19652 # See if we are running on zsh, and set the options that allow our
19653 # commands through without removal of \ escapes INIT.
19654 if test -n "\${ZSH_VERSION+set}"; then
19655    setopt NO_GLOB_SUBST
19656 fi
19657
19658
19659     PACKAGE='$PACKAGE'
19660     VERSION='$VERSION'
19661     RM='$RM'
19662     ofile='$ofile'
19663
19664
19665
19666
19667
19668
19669 _ACEOF
19670
19671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19672
19673 # Handling of arguments.
19674 for ac_config_target in $ac_config_targets
19675 do
19676   case $ac_config_target in
19677     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19678     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19679     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19680     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19681
19682   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19683   esac
19684 done
19685
19686
19687 # If the user did not use the arguments to specify the items to instantiate,
19688 # then the envvar interface is used.  Set only those that are not.
19689 # We use the long form for the default assignment because of an extremely
19690 # bizarre bug on SunOS 4.1.3.
19691 if $ac_need_defaults; then
19692   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19693   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19694   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19695 fi
19696
19697 # Have a temporary directory for convenience.  Make it in the build tree
19698 # simply because there is no reason against having it here, and in addition,
19699 # creating and moving files from /tmp can sometimes cause problems.
19700 # Hook for its removal unless debugging.
19701 # Note that there is a small window in which the directory will not be cleaned:
19702 # after its creation but before its name has been assigned to `$tmp'.
19703 $debug ||
19704 {
19705   tmp= ac_tmp=
19706   trap 'exit_status=$?
19707   : "${ac_tmp:=$tmp}"
19708   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19709 ' 0
19710   trap 'as_fn_exit 1' 1 2 13 15
19711 }
19712 # Create a (secure) tmp directory for tmp files.
19713
19714 {
19715   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19716   test -d "$tmp"
19717 }  ||
19718 {
19719   tmp=./conf$$-$RANDOM
19720   (umask 077 && mkdir "$tmp")
19721 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19722 ac_tmp=$tmp
19723
19724 # Set up the scripts for CONFIG_FILES section.
19725 # No need to generate them if there are no CONFIG_FILES.
19726 # This happens for instance with `./config.status config.h'.
19727 if test -n "$CONFIG_FILES"; then
19728
19729
19730 ac_cr=`echo X | tr X '\015'`
19731 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19732 # But we know of no other shell where ac_cr would be empty at this
19733 # point, so we can use a bashism as a fallback.
19734 if test "x$ac_cr" = x; then
19735   eval ac_cr=\$\'\\r\'
19736 fi
19737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19739   ac_cs_awk_cr='\\r'
19740 else
19741   ac_cs_awk_cr=$ac_cr
19742 fi
19743
19744 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19745 _ACEOF
19746
19747
19748 {
19749   echo "cat >conf$$subs.awk <<_ACEOF" &&
19750   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19751   echo "_ACEOF"
19752 } >conf$$subs.sh ||
19753   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19754 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19755 ac_delim='%!_!# '
19756 for ac_last_try in false false false false false :; do
19757   . ./conf$$subs.sh ||
19758     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19759
19760   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19761   if test $ac_delim_n = $ac_delim_num; then
19762     break
19763   elif $ac_last_try; then
19764     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19765   else
19766     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19767   fi
19768 done
19769 rm -f conf$$subs.sh
19770
19771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19772 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19773 _ACEOF
19774 sed -n '
19775 h
19776 s/^/S["/; s/!.*/"]=/
19777 p
19778 g
19779 s/^[^!]*!//
19780 :repl
19781 t repl
19782 s/'"$ac_delim"'$//
19783 t delim
19784 :nl
19785 h
19786 s/\(.\{148\}\)..*/\1/
19787 t more1
19788 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19789 p
19790 n
19791 b repl
19792 :more1
19793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19794 p
19795 g
19796 s/.\{148\}//
19797 t nl
19798 :delim
19799 h
19800 s/\(.\{148\}\)..*/\1/
19801 t more2
19802 s/["\\]/\\&/g; s/^/"/; s/$/"/
19803 p
19804 b
19805 :more2
19806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19807 p
19808 g
19809 s/.\{148\}//
19810 t delim
19811 ' <conf$$subs.awk | sed '
19812 /^[^""]/{
19813   N
19814   s/\n//
19815 }
19816 ' >>$CONFIG_STATUS || ac_write_fail=1
19817 rm -f conf$$subs.awk
19818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19819 _ACAWK
19820 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19821   for (key in S) S_is_set[key] = 1
19822   FS = "\a"
19823
19824 }
19825 {
19826   line = $ 0
19827   nfields = split(line, field, "@")
19828   substed = 0
19829   len = length(field[1])
19830   for (i = 2; i < nfields; i++) {
19831     key = field[i]
19832     keylen = length(key)
19833     if (S_is_set[key]) {
19834       value = S[key]
19835       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19836       len += length(value) + length(field[++i])
19837       substed = 1
19838     } else
19839       len += 1 + keylen
19840   }
19841
19842   print line
19843 }
19844
19845 _ACAWK
19846 _ACEOF
19847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19848 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19849   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19850 else
19851   cat
19852 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19853   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19854 _ACEOF
19855
19856 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19857 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19858 # trailing colons and then remove the whole line if VPATH becomes empty
19859 # (actually we leave an empty line to preserve line numbers).
19860 if test "x$srcdir" = x.; then
19861   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19862 h
19863 s///
19864 s/^/:/
19865 s/[      ]*$/:/
19866 s/:\$(srcdir):/:/g
19867 s/:\${srcdir}:/:/g
19868 s/:@srcdir@:/:/g
19869 s/^:*//
19870 s/:*$//
19871 x
19872 s/\(=[   ]*\).*/\1/
19873 G
19874 s/\n//
19875 s/^[^=]*=[       ]*$//
19876 }'
19877 fi
19878
19879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19880 fi # test -n "$CONFIG_FILES"
19881
19882 # Set up the scripts for CONFIG_HEADERS section.
19883 # No need to generate them if there are no CONFIG_HEADERS.
19884 # This happens for instance with `./config.status Makefile'.
19885 if test -n "$CONFIG_HEADERS"; then
19886 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19887 BEGIN {
19888 _ACEOF
19889
19890 # Transform confdefs.h into an awk script `defines.awk', embedded as
19891 # here-document in config.status, that substitutes the proper values into
19892 # config.h.in to produce config.h.
19893
19894 # Create a delimiter string that does not exist in confdefs.h, to ease
19895 # handling of long lines.
19896 ac_delim='%!_!# '
19897 for ac_last_try in false false :; do
19898   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19899   if test -z "$ac_tt"; then
19900     break
19901   elif $ac_last_try; then
19902     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19903   else
19904     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19905   fi
19906 done
19907
19908 # For the awk script, D is an array of macro values keyed by name,
19909 # likewise P contains macro parameters if any.  Preserve backslash
19910 # newline sequences.
19911
19912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19913 sed -n '
19914 s/.\{148\}/&'"$ac_delim"'/g
19915 t rset
19916 :rset
19917 s/^[     ]*#[    ]*define[       ][      ]*/ /
19918 t def
19919 d
19920 :def
19921 s/\\$//
19922 t bsnl
19923 s/["\\]/\\&/g
19924 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19925 D["\1"]=" \3"/p
19926 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19927 d
19928 :bsnl
19929 s/["\\]/\\&/g
19930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19931 D["\1"]=" \3\\\\\\n"\\/p
19932 t cont
19933 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19934 t cont
19935 d
19936 :cont
19937 n
19938 s/.\{148\}/&'"$ac_delim"'/g
19939 t clear
19940 :clear
19941 s/\\$//
19942 t bsnlc
19943 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19944 d
19945 :bsnlc
19946 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19947 b cont
19948 ' <confdefs.h | sed '
19949 s/'"$ac_delim"'/"\\\
19950 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19951
19952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19953   for (key in D) D_is_set[key] = 1
19954   FS = "\a"
19955 }
19956 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19957   line = \$ 0
19958   split(line, arg, " ")
19959   if (arg[1] == "#") {
19960     defundef = arg[2]
19961     mac1 = arg[3]
19962   } else {
19963     defundef = substr(arg[1], 2)
19964     mac1 = arg[2]
19965   }
19966   split(mac1, mac2, "(") #)
19967   macro = mac2[1]
19968   prefix = substr(line, 1, index(line, defundef) - 1)
19969   if (D_is_set[macro]) {
19970     # Preserve the white space surrounding the "#".
19971     print prefix "define", macro P[macro] D[macro]
19972     next
19973   } else {
19974     # Replace #undef with comments.  This is necessary, for example,
19975     # in the case of _POSIX_SOURCE, which is predefined and required
19976     # on some systems where configure will not decide to define it.
19977     if (defundef == "undef") {
19978       print "/*", prefix defundef, macro, "*/"
19979       next
19980     }
19981   }
19982 }
19983 { print }
19984 _ACAWK
19985 _ACEOF
19986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19987   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19988 fi # test -n "$CONFIG_HEADERS"
19989
19990
19991 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19992 shift
19993 for ac_tag
19994 do
19995   case $ac_tag in
19996   :[FHLC]) ac_mode=$ac_tag; continue;;
19997   esac
19998   case $ac_mode$ac_tag in
19999   :[FHL]*:*);;
20000   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20001   :[FH]-) ac_tag=-:-;;
20002   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20003   esac
20004   ac_save_IFS=$IFS
20005   IFS=:
20006   set x $ac_tag
20007   IFS=$ac_save_IFS
20008   shift
20009   ac_file=$1
20010   shift
20011
20012   case $ac_mode in
20013   :L) ac_source=$1;;
20014   :[FH])
20015     ac_file_inputs=
20016     for ac_f
20017     do
20018       case $ac_f in
20019       -) ac_f="$ac_tmp/stdin";;
20020       *) # Look for the file first in the build tree, then in the source tree
20021          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20022          # because $ac_f cannot contain `:'.
20023          test -f "$ac_f" ||
20024            case $ac_f in
20025            [\\/$]*) false;;
20026            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20027            esac ||
20028            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20029       esac
20030       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20031       as_fn_append ac_file_inputs " '$ac_f'"
20032     done
20033
20034     # Let's still pretend it is `configure' which instantiates (i.e., don't
20035     # use $as_me), people would be surprised to read:
20036     #    /* config.h.  Generated by config.status.  */
20037     configure_input='Generated from '`
20038           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20039         `' by configure.'
20040     if test x"$ac_file" != x-; then
20041       configure_input="$ac_file.  $configure_input"
20042       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20043 $as_echo "$as_me: creating $ac_file" >&6;}
20044     fi
20045     # Neutralize special characters interpreted by sed in replacement strings.
20046     case $configure_input in #(
20047     *\&* | *\|* | *\\* )
20048        ac_sed_conf_input=`$as_echo "$configure_input" |
20049        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20050     *) ac_sed_conf_input=$configure_input;;
20051     esac
20052
20053     case $ac_tag in
20054     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20055       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20056     esac
20057     ;;
20058   esac
20059
20060   ac_dir=`$as_dirname -- "$ac_file" ||
20061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20062          X"$ac_file" : 'X\(//\)[^/]' \| \
20063          X"$ac_file" : 'X\(//\)$' \| \
20064          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20065 $as_echo X"$ac_file" |
20066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20067             s//\1/
20068             q
20069           }
20070           /^X\(\/\/\)[^/].*/{
20071             s//\1/
20072             q
20073           }
20074           /^X\(\/\/\)$/{
20075             s//\1/
20076             q
20077           }
20078           /^X\(\/\).*/{
20079             s//\1/
20080             q
20081           }
20082           s/.*/./; q'`
20083   as_dir="$ac_dir"; as_fn_mkdir_p
20084   ac_builddir=.
20085
20086 case "$ac_dir" in
20087 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20088 *)
20089   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20090   # A ".." for each directory in $ac_dir_suffix.
20091   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20092   case $ac_top_builddir_sub in
20093   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20094   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20095   esac ;;
20096 esac
20097 ac_abs_top_builddir=$ac_pwd
20098 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20099 # for backward compatibility:
20100 ac_top_builddir=$ac_top_build_prefix
20101
20102 case $srcdir in
20103   .)  # We are building in place.
20104     ac_srcdir=.
20105     ac_top_srcdir=$ac_top_builddir_sub
20106     ac_abs_top_srcdir=$ac_pwd ;;
20107   [\\/]* | ?:[\\/]* )  # Absolute name.
20108     ac_srcdir=$srcdir$ac_dir_suffix;
20109     ac_top_srcdir=$srcdir
20110     ac_abs_top_srcdir=$srcdir ;;
20111   *) # Relative name.
20112     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20113     ac_top_srcdir=$ac_top_build_prefix$srcdir
20114     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20115 esac
20116 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20117
20118
20119   case $ac_mode in
20120   :F)
20121   #
20122   # CONFIG_FILE
20123   #
20124
20125   case $INSTALL in
20126   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20127   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20128   esac
20129   ac_MKDIR_P=$MKDIR_P
20130   case $MKDIR_P in
20131   [\\/$]* | ?:[\\/]* ) ;;
20132   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20133   esac
20134 _ACEOF
20135
20136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20137 # If the template does not know about datarootdir, expand it.
20138 # FIXME: This hack should be removed a few years after 2.60.
20139 ac_datarootdir_hack=; ac_datarootdir_seen=
20140 ac_sed_dataroot='
20141 /datarootdir/ {
20142   p
20143   q
20144 }
20145 /@datadir@/p
20146 /@docdir@/p
20147 /@infodir@/p
20148 /@localedir@/p
20149 /@mandir@/p'
20150 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20151 *datarootdir*) ac_datarootdir_seen=yes;;
20152 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20153   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20154 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20155 _ACEOF
20156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20157   ac_datarootdir_hack='
20158   s&@datadir@&$datadir&g
20159   s&@docdir@&$docdir&g
20160   s&@infodir@&$infodir&g
20161   s&@localedir@&$localedir&g
20162   s&@mandir@&$mandir&g
20163   s&\\\${datarootdir}&$datarootdir&g' ;;
20164 esac
20165 _ACEOF
20166
20167 # Neutralize VPATH when `$srcdir' = `.'.
20168 # Shell code in configure.ac might set extrasub.
20169 # FIXME: do we really want to maintain this feature?
20170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20171 ac_sed_extra="$ac_vpsub
20172 $extrasub
20173 _ACEOF
20174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20175 :t
20176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20177 s|@configure_input@|$ac_sed_conf_input|;t t
20178 s&@top_builddir@&$ac_top_builddir_sub&;t t
20179 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20180 s&@srcdir@&$ac_srcdir&;t t
20181 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20182 s&@top_srcdir@&$ac_top_srcdir&;t t
20183 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20184 s&@builddir@&$ac_builddir&;t t
20185 s&@abs_builddir@&$ac_abs_builddir&;t t
20186 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20187 s&@INSTALL@&$ac_INSTALL&;t t
20188 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20189 $ac_datarootdir_hack
20190 "
20191 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20192   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20193
20194 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20195   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20196   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20197       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20198   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20199 which seems to be undefined.  Please make sure it is defined" >&5
20200 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20201 which seems to be undefined.  Please make sure it is defined" >&2;}
20202
20203   rm -f "$ac_tmp/stdin"
20204   case $ac_file in
20205   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20206   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20207   esac \
20208   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20209  ;;
20210   :H)
20211   #
20212   # CONFIG_HEADER
20213   #
20214   if test x"$ac_file" != x-; then
20215     {
20216       $as_echo "/* $configure_input  */" \
20217       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20218     } >"$ac_tmp/config.h" \
20219       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20220     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20221       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20222 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20223     else
20224       rm -f "$ac_file"
20225       mv "$ac_tmp/config.h" "$ac_file" \
20226         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20227     fi
20228   else
20229     $as_echo "/* $configure_input  */" \
20230       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20231       || as_fn_error $? "could not create -" "$LINENO" 5
20232   fi
20233 # Compute "$ac_file"'s index in $config_headers.
20234 _am_arg="$ac_file"
20235 _am_stamp_count=1
20236 for _am_header in $config_headers :; do
20237   case $_am_header in
20238     $_am_arg | $_am_arg:* )
20239       break ;;
20240     * )
20241       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20242   esac
20243 done
20244 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20245 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20246          X"$_am_arg" : 'X\(//\)[^/]' \| \
20247          X"$_am_arg" : 'X\(//\)$' \| \
20248          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20249 $as_echo X"$_am_arg" |
20250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20251             s//\1/
20252             q
20253           }
20254           /^X\(\/\/\)[^/].*/{
20255             s//\1/
20256             q
20257           }
20258           /^X\(\/\/\)$/{
20259             s//\1/
20260             q
20261           }
20262           /^X\(\/\).*/{
20263             s//\1/
20264             q
20265           }
20266           s/.*/./; q'`/stamp-h$_am_stamp_count
20267  ;;
20268
20269   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20270 $as_echo "$as_me: executing $ac_file commands" >&6;}
20271  ;;
20272   esac
20273
20274
20275   case $ac_file$ac_mode in
20276     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20277   # Older Autoconf quotes --file arguments for eval, but not when files
20278   # are listed without --file.  Let's play safe and only enable the eval
20279   # if we detect the quoting.
20280   case $CONFIG_FILES in
20281   *\'*) eval set x "$CONFIG_FILES" ;;
20282   *)   set x $CONFIG_FILES ;;
20283   esac
20284   shift
20285   for mf
20286   do
20287     # Strip MF so we end up with the name of the file.
20288     mf=`echo "$mf" | sed -e 's/:.*$//'`
20289     # Check whether this is an Automake generated Makefile or not.
20290     # We used to match only the files named 'Makefile.in', but
20291     # some people rename them; so instead we look at the file content.
20292     # Grep'ing the first line is not enough: some people post-process
20293     # each Makefile.in and add a new line on top of each file to say so.
20294     # Grep'ing the whole file is not good either: AIX grep has a line
20295     # limit of 2048, but all sed's we know have understand at least 4000.
20296     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20297       dirpart=`$as_dirname -- "$mf" ||
20298 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20299          X"$mf" : 'X\(//\)[^/]' \| \
20300          X"$mf" : 'X\(//\)$' \| \
20301          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20302 $as_echo X"$mf" |
20303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20304             s//\1/
20305             q
20306           }
20307           /^X\(\/\/\)[^/].*/{
20308             s//\1/
20309             q
20310           }
20311           /^X\(\/\/\)$/{
20312             s//\1/
20313             q
20314           }
20315           /^X\(\/\).*/{
20316             s//\1/
20317             q
20318           }
20319           s/.*/./; q'`
20320     else
20321       continue
20322     fi
20323     # Extract the definition of DEPDIR, am__include, and am__quote
20324     # from the Makefile without running 'make'.
20325     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20326     test -z "$DEPDIR" && continue
20327     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20328     test -z "$am__include" && continue
20329     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20330     # Find all dependency output files, they are included files with
20331     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20332     # simplest approach to changing $(DEPDIR) to its actual value in the
20333     # expansion.
20334     for file in `sed -n "
20335       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20336          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20337       # Make sure the directory exists.
20338       test -f "$dirpart/$file" && continue
20339       fdir=`$as_dirname -- "$file" ||
20340 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20341          X"$file" : 'X\(//\)[^/]' \| \
20342          X"$file" : 'X\(//\)$' \| \
20343          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20344 $as_echo X"$file" |
20345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20346             s//\1/
20347             q
20348           }
20349           /^X\(\/\/\)[^/].*/{
20350             s//\1/
20351             q
20352           }
20353           /^X\(\/\/\)$/{
20354             s//\1/
20355             q
20356           }
20357           /^X\(\/\).*/{
20358             s//\1/
20359             q
20360           }
20361           s/.*/./; q'`
20362       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20363       # echo "creating $dirpart/$file"
20364       echo '# dummy' > "$dirpart/$file"
20365     done
20366   done
20367 }
20368  ;;
20369     "libtool":C)
20370
20371     # See if we are running on zsh, and set the options that allow our
20372     # commands through without removal of \ escapes.
20373     if test -n "${ZSH_VERSION+set}"; then
20374       setopt NO_GLOB_SUBST
20375     fi
20376
20377     cfgfile=${ofile}T
20378     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20379     $RM "$cfgfile"
20380
20381     cat <<_LT_EOF >> "$cfgfile"
20382 #! $SHELL
20383 # Generated automatically by $as_me ($PACKAGE) $VERSION
20384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20385 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20386
20387 # Provide generalized library-building support services.
20388 # Written by Gordon Matzigkeit, 1996
20389
20390 # Copyright (C) 2014 Free Software Foundation, Inc.
20391 # This is free software; see the source for copying conditions.  There is NO
20392 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20393
20394 # GNU Libtool is free software; you can redistribute it and/or modify
20395 # it under the terms of the GNU General Public License as published by
20396 # the Free Software Foundation; either version 2 of of the License, or
20397 # (at your option) any later version.
20398 #
20399 # As a special exception to the GNU General Public License, if you
20400 # distribute this file as part of a program or library that is built
20401 # using GNU Libtool, you may include this file under the  same
20402 # distribution terms that you use for the rest of that program.
20403 #
20404 # GNU Libtool is distributed in the hope that it will be useful, but
20405 # WITHOUT ANY WARRANTY; without even the implied warranty of
20406 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20407 # GNU General Public License for more details.
20408 #
20409 # You should have received a copy of the GNU General Public License
20410 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20411
20412
20413 # The names of the tagged configurations supported by this script.
20414 available_tags='CXX '
20415
20416 # Configured defaults for sys_lib_dlsearch_path munging.
20417 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20418
20419 # ### BEGIN LIBTOOL CONFIG
20420
20421 # Which release of libtool.m4 was used?
20422 macro_version=$macro_version
20423 macro_revision=$macro_revision
20424
20425 # Assembler program.
20426 AS=$lt_AS
20427
20428 # DLL creation program.
20429 DLLTOOL=$lt_DLLTOOL
20430
20431 # Object dumper program.
20432 OBJDUMP=$lt_OBJDUMP
20433
20434 # Whether or not to build shared libraries.
20435 build_libtool_libs=$enable_shared
20436
20437 # Whether or not to build static libraries.
20438 build_old_libs=$enable_static
20439
20440 # What type of objects to build.
20441 pic_mode=$pic_mode
20442
20443 # Whether or not to optimize for fast installation.
20444 fast_install=$enable_fast_install
20445
20446 # Shared archive member basename,for filename based shared library versioning on AIX.
20447 shared_archive_member_spec=$shared_archive_member_spec
20448
20449 # Shell to use when invoking shell scripts.
20450 SHELL=$lt_SHELL
20451
20452 # An echo program that protects backslashes.
20453 ECHO=$lt_ECHO
20454
20455 # The PATH separator for the build system.
20456 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20457
20458 # The host system.
20459 host_alias=$host_alias
20460 host=$host
20461 host_os=$host_os
20462
20463 # The build system.
20464 build_alias=$build_alias
20465 build=$build
20466 build_os=$build_os
20467
20468 # A sed program that does not truncate output.
20469 SED=$lt_SED
20470
20471 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20472 Xsed="\$SED -e 1s/^X//"
20473
20474 # A grep program that handles long lines.
20475 GREP=$lt_GREP
20476
20477 # An ERE matcher.
20478 EGREP=$lt_EGREP
20479
20480 # A literal string matcher.
20481 FGREP=$lt_FGREP
20482
20483 # A BSD- or MS-compatible name lister.
20484 NM=$lt_NM
20485
20486 # Whether we need soft or hard links.
20487 LN_S=$lt_LN_S
20488
20489 # What is the maximum length of a command?
20490 max_cmd_len=$max_cmd_len
20491
20492 # Object file suffix (normally "o").
20493 objext=$ac_objext
20494
20495 # Executable file suffix (normally "").
20496 exeext=$exeext
20497
20498 # whether the shell understands "unset".
20499 lt_unset=$lt_unset
20500
20501 # turn spaces into newlines.
20502 SP2NL=$lt_lt_SP2NL
20503
20504 # turn newlines into spaces.
20505 NL2SP=$lt_lt_NL2SP
20506
20507 # convert \$build file names to \$host format.
20508 to_host_file_cmd=$lt_cv_to_host_file_cmd
20509
20510 # convert \$build files to toolchain format.
20511 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20512
20513 # Method to check whether dependent libraries are shared objects.
20514 deplibs_check_method=$lt_deplibs_check_method
20515
20516 # Command to use when deplibs_check_method = "file_magic".
20517 file_magic_cmd=$lt_file_magic_cmd
20518
20519 # How to find potential files when deplibs_check_method = "file_magic".
20520 file_magic_glob=$lt_file_magic_glob
20521
20522 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20523 want_nocaseglob=$lt_want_nocaseglob
20524
20525 # Command to associate shared and link libraries.
20526 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20527
20528 # The archiver.
20529 AR=$lt_AR
20530
20531 # Flags to create an archive.
20532 AR_FLAGS=$lt_AR_FLAGS
20533
20534 # How to feed a file listing to the archiver.
20535 archiver_list_spec=$lt_archiver_list_spec
20536
20537 # A symbol stripping program.
20538 STRIP=$lt_STRIP
20539
20540 # Commands used to install an old-style archive.
20541 RANLIB=$lt_RANLIB
20542 old_postinstall_cmds=$lt_old_postinstall_cmds
20543 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20544
20545 # Whether to use a lock for old archive extraction.
20546 lock_old_archive_extraction=$lock_old_archive_extraction
20547
20548 # A C compiler.
20549 LTCC=$lt_CC
20550
20551 # LTCC compiler flags.
20552 LTCFLAGS=$lt_CFLAGS
20553
20554 # Take the output of nm and produce a listing of raw symbols and C names.
20555 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20556
20557 # Transform the output of nm in a proper C declaration.
20558 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20559
20560 # Transform the output of nm into a list of symbols to manually relocate.
20561 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20562
20563 # Transform the output of nm in a C name address pair.
20564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20565
20566 # Transform the output of nm in a C name address pair when lib prefix is needed.
20567 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20568
20569 # The name lister interface.
20570 nm_interface=$lt_lt_cv_nm_interface
20571
20572 # Specify filename containing input files for \$NM.
20573 nm_file_list_spec=$lt_nm_file_list_spec
20574
20575 # The root where to search for dependent libraries,and where our libraries should be installed.
20576 lt_sysroot=$lt_sysroot
20577
20578 # Command to truncate a binary pipe.
20579 lt_truncate_bin=$lt_lt_cv_truncate_bin
20580
20581 # The name of the directory that contains temporary libtool files.
20582 objdir=$objdir
20583
20584 # Used to examine libraries when file_magic_cmd begins with "file".
20585 MAGIC_CMD=$MAGIC_CMD
20586
20587 # Must we lock files when doing compilation?
20588 need_locks=$lt_need_locks
20589
20590 # Manifest tool.
20591 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20592
20593 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20594 DSYMUTIL=$lt_DSYMUTIL
20595
20596 # Tool to change global to local symbols on Mac OS X.
20597 NMEDIT=$lt_NMEDIT
20598
20599 # Tool to manipulate fat objects and archives on Mac OS X.
20600 LIPO=$lt_LIPO
20601
20602 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20603 OTOOL=$lt_OTOOL
20604
20605 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20606 OTOOL64=$lt_OTOOL64
20607
20608 # Old archive suffix (normally "a").
20609 libext=$libext
20610
20611 # Shared library suffix (normally ".so").
20612 shrext_cmds=$lt_shrext_cmds
20613
20614 # The commands to extract the exported symbol list from a shared archive.
20615 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20616
20617 # Variables whose values should be saved in libtool wrapper scripts and
20618 # restored at link time.
20619 variables_saved_for_relink=$lt_variables_saved_for_relink
20620
20621 # Do we need the "lib" prefix for modules?
20622 need_lib_prefix=$need_lib_prefix
20623
20624 # Do we need a version for libraries?
20625 need_version=$need_version
20626
20627 # Library versioning type.
20628 version_type=$version_type
20629
20630 # Shared library runtime path variable.
20631 runpath_var=$runpath_var
20632
20633 # Shared library path variable.
20634 shlibpath_var=$shlibpath_var
20635
20636 # Is shlibpath searched before the hard-coded library search path?
20637 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20638
20639 # Format of library name prefix.
20640 libname_spec=$lt_libname_spec
20641
20642 # List of archive names.  First name is the real one, the rest are links.
20643 # The last name is the one that the linker finds with -lNAME
20644 library_names_spec=$lt_library_names_spec
20645
20646 # The coded name of the library, if different from the real name.
20647 soname_spec=$lt_soname_spec
20648
20649 # Permission mode override for installation of shared libraries.
20650 install_override_mode=$lt_install_override_mode
20651
20652 # Command to use after installation of a shared archive.
20653 postinstall_cmds=$lt_postinstall_cmds
20654
20655 # Command to use after uninstallation of a shared archive.
20656 postuninstall_cmds=$lt_postuninstall_cmds
20657
20658 # Commands used to finish a libtool library installation in a directory.
20659 finish_cmds=$lt_finish_cmds
20660
20661 # As "finish_cmds", except a single script fragment to be evaled but
20662 # not shown.
20663 finish_eval=$lt_finish_eval
20664
20665 # Whether we should hardcode library paths into libraries.
20666 hardcode_into_libs=$hardcode_into_libs
20667
20668 # Compile-time system search path for libraries.
20669 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20670
20671 # Detected run-time system search path for libraries.
20672 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20673
20674 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20675 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20676
20677 # Whether dlopen is supported.
20678 dlopen_support=$enable_dlopen
20679
20680 # Whether dlopen of programs is supported.
20681 dlopen_self=$enable_dlopen_self
20682
20683 # Whether dlopen of statically linked programs is supported.
20684 dlopen_self_static=$enable_dlopen_self_static
20685
20686 # Commands to strip libraries.
20687 old_striplib=$lt_old_striplib
20688 striplib=$lt_striplib
20689
20690
20691 # The linker used to build libraries.
20692 LD=$lt_LD
20693
20694 # How to create reloadable object files.
20695 reload_flag=$lt_reload_flag
20696 reload_cmds=$lt_reload_cmds
20697
20698 # Commands used to build an old-style archive.
20699 old_archive_cmds=$lt_old_archive_cmds
20700
20701 # A language specific compiler.
20702 CC=$lt_compiler
20703
20704 # Is the compiler the GNU compiler?
20705 with_gcc=$GCC
20706
20707 # Compiler flag to turn off builtin functions.
20708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20709
20710 # Additional compiler flags for building library objects.
20711 pic_flag=$lt_lt_prog_compiler_pic
20712
20713 # How to pass a linker flag through the compiler.
20714 wl=$lt_lt_prog_compiler_wl
20715
20716 # Compiler flag to prevent dynamic linking.
20717 link_static_flag=$lt_lt_prog_compiler_static
20718
20719 # Does compiler simultaneously support -c and -o options?
20720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20721
20722 # Whether or not to add -lc for building shared libraries.
20723 build_libtool_need_lc=$archive_cmds_need_lc
20724
20725 # Whether or not to disallow shared libs when runtime libs are static.
20726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20727
20728 # Compiler flag to allow reflexive dlopens.
20729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20730
20731 # Compiler flag to generate shared objects directly from archives.
20732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20733
20734 # Whether the compiler copes with passing no objects directly.
20735 compiler_needs_object=$lt_compiler_needs_object
20736
20737 # Create an old-style archive from a shared archive.
20738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20739
20740 # Create a temporary old-style archive to link instead of a shared archive.
20741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20742
20743 # Commands used to build a shared archive.
20744 archive_cmds=$lt_archive_cmds
20745 archive_expsym_cmds=$lt_archive_expsym_cmds
20746
20747 # Commands used to build a loadable module if different from building
20748 # a shared archive.
20749 module_cmds=$lt_module_cmds
20750 module_expsym_cmds=$lt_module_expsym_cmds
20751
20752 # Whether we are building with GNU ld or not.
20753 with_gnu_ld=$lt_with_gnu_ld
20754
20755 # Flag that allows shared libraries with undefined symbols to be built.
20756 allow_undefined_flag=$lt_allow_undefined_flag
20757
20758 # Flag that enforces no undefined symbols.
20759 no_undefined_flag=$lt_no_undefined_flag
20760
20761 # Flag to hardcode \$libdir into a binary during linking.
20762 # This must work even if \$libdir does not exist
20763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20764
20765 # Whether we need a single "-rpath" flag with a separated argument.
20766 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20767
20768 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20769 # DIR into the resulting binary.
20770 hardcode_direct=$hardcode_direct
20771
20772 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20773 # DIR into the resulting binary and the resulting library dependency is
20774 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20775 # library is relocated.
20776 hardcode_direct_absolute=$hardcode_direct_absolute
20777
20778 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20779 # into the resulting binary.
20780 hardcode_minus_L=$hardcode_minus_L
20781
20782 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20783 # into the resulting binary.
20784 hardcode_shlibpath_var=$hardcode_shlibpath_var
20785
20786 # Set to "yes" if building a shared library automatically hardcodes DIR
20787 # into the library and all subsequent libraries and executables linked
20788 # against it.
20789 hardcode_automatic=$hardcode_automatic
20790
20791 # Set to yes if linker adds runtime paths of dependent libraries
20792 # to runtime path list.
20793 inherit_rpath=$inherit_rpath
20794
20795 # Whether libtool must link a program against all its dependency libraries.
20796 link_all_deplibs=$link_all_deplibs
20797
20798 # Set to "yes" if exported symbols are required.
20799 always_export_symbols=$always_export_symbols
20800
20801 # The commands to list exported symbols.
20802 export_symbols_cmds=$lt_export_symbols_cmds
20803
20804 # Symbols that should not be listed in the preloaded symbols.
20805 exclude_expsyms=$lt_exclude_expsyms
20806
20807 # Symbols that must always be exported.
20808 include_expsyms=$lt_include_expsyms
20809
20810 # Commands necessary for linking programs (against libraries) with templates.
20811 prelink_cmds=$lt_prelink_cmds
20812
20813 # Commands necessary for finishing linking programs.
20814 postlink_cmds=$lt_postlink_cmds
20815
20816 # Specify filename containing input files.
20817 file_list_spec=$lt_file_list_spec
20818
20819 # How to hardcode a shared library path into an executable.
20820 hardcode_action=$hardcode_action
20821
20822 # The directories searched by this compiler when creating a shared library.
20823 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20824
20825 # Dependencies to place before and after the objects being linked to
20826 # create a shared library.
20827 predep_objects=$lt_predep_objects
20828 postdep_objects=$lt_postdep_objects
20829 predeps=$lt_predeps
20830 postdeps=$lt_postdeps
20831
20832 # The library search path used internally by the compiler when linking
20833 # a shared library.
20834 compiler_lib_search_path=$lt_compiler_lib_search_path
20835
20836 # ### END LIBTOOL CONFIG
20837
20838 _LT_EOF
20839
20840     cat <<'_LT_EOF' >> "$cfgfile"
20841
20842 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20843
20844 # func_munge_path_list VARIABLE PATH
20845 # -----------------------------------
20846 # VARIABLE is name of variable containing _space_ separated list of
20847 # directories to be munged by the contents of PATH, which is string
20848 # having a format:
20849 # "DIR[:DIR]:"
20850 #       string "DIR[ DIR]" will be prepended to VARIABLE
20851 # ":DIR[:DIR]"
20852 #       string "DIR[ DIR]" will be appended to VARIABLE
20853 # "DIRP[:DIRP]::[DIRA:]DIRA"
20854 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20855 #       "DIRA[ DIRA]" will be appended to VARIABLE
20856 # "DIR[:DIR]"
20857 #       VARIABLE will be replaced by "DIR[ DIR]"
20858 func_munge_path_list ()
20859 {
20860     case x$2 in
20861     x)
20862         ;;
20863     *:)
20864         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20865         ;;
20866     x:*)
20867         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20868         ;;
20869     *::*)
20870         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20871         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20872         ;;
20873     *)
20874         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20875         ;;
20876     esac
20877 }
20878
20879
20880 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20881 func_cc_basename ()
20882 {
20883     for cc_temp in $*""; do
20884       case $cc_temp in
20885         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20886         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20887         \-*) ;;
20888         *) break;;
20889       esac
20890     done
20891     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20892 }
20893
20894
20895 # ### END FUNCTIONS SHARED WITH CONFIGURE
20896
20897 _LT_EOF
20898
20899   case $host_os in
20900   aix3*)
20901     cat <<\_LT_EOF >> "$cfgfile"
20902 # AIX sometimes has problems with the GCC collect2 program.  For some
20903 # reason, if we set the COLLECT_NAMES environment variable, the problems
20904 # vanish in a puff of smoke.
20905 if test set != "${COLLECT_NAMES+set}"; then
20906   COLLECT_NAMES=
20907   export COLLECT_NAMES
20908 fi
20909 _LT_EOF
20910     ;;
20911   esac
20912
20913
20914 ltmain=$ac_aux_dir/ltmain.sh
20915
20916
20917   # We use sed instead of cat because bash on DJGPP gets confused if
20918   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20919   # text mode, it properly converts lines to CR/LF.  This bash problem
20920   # is reportedly fixed, but why not run on old versions too?
20921   sed '$q' "$ltmain" >> "$cfgfile" \
20922      || (rm -f "$cfgfile"; exit 1)
20923
20924    mv -f "$cfgfile" "$ofile" ||
20925     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20926   chmod +x "$ofile"
20927
20928
20929     cat <<_LT_EOF >> "$ofile"
20930
20931 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20932
20933 # The linker used to build libraries.
20934 LD=$lt_LD_CXX
20935
20936 # How to create reloadable object files.
20937 reload_flag=$lt_reload_flag_CXX
20938 reload_cmds=$lt_reload_cmds_CXX
20939
20940 # Commands used to build an old-style archive.
20941 old_archive_cmds=$lt_old_archive_cmds_CXX
20942
20943 # A language specific compiler.
20944 CC=$lt_compiler_CXX
20945
20946 # Is the compiler the GNU compiler?
20947 with_gcc=$GCC_CXX
20948
20949 # Compiler flag to turn off builtin functions.
20950 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20951
20952 # Additional compiler flags for building library objects.
20953 pic_flag=$lt_lt_prog_compiler_pic_CXX
20954
20955 # How to pass a linker flag through the compiler.
20956 wl=$lt_lt_prog_compiler_wl_CXX
20957
20958 # Compiler flag to prevent dynamic linking.
20959 link_static_flag=$lt_lt_prog_compiler_static_CXX
20960
20961 # Does compiler simultaneously support -c and -o options?
20962 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20963
20964 # Whether or not to add -lc for building shared libraries.
20965 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20966
20967 # Whether or not to disallow shared libs when runtime libs are static.
20968 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20969
20970 # Compiler flag to allow reflexive dlopens.
20971 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20972
20973 # Compiler flag to generate shared objects directly from archives.
20974 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20975
20976 # Whether the compiler copes with passing no objects directly.
20977 compiler_needs_object=$lt_compiler_needs_object_CXX
20978
20979 # Create an old-style archive from a shared archive.
20980 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20981
20982 # Create a temporary old-style archive to link instead of a shared archive.
20983 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20984
20985 # Commands used to build a shared archive.
20986 archive_cmds=$lt_archive_cmds_CXX
20987 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20988
20989 # Commands used to build a loadable module if different from building
20990 # a shared archive.
20991 module_cmds=$lt_module_cmds_CXX
20992 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20993
20994 # Whether we are building with GNU ld or not.
20995 with_gnu_ld=$lt_with_gnu_ld_CXX
20996
20997 # Flag that allows shared libraries with undefined symbols to be built.
20998 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20999
21000 # Flag that enforces no undefined symbols.
21001 no_undefined_flag=$lt_no_undefined_flag_CXX
21002
21003 # Flag to hardcode \$libdir into a binary during linking.
21004 # This must work even if \$libdir does not exist
21005 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21006
21007 # Whether we need a single "-rpath" flag with a separated argument.
21008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21009
21010 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21011 # DIR into the resulting binary.
21012 hardcode_direct=$hardcode_direct_CXX
21013
21014 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21015 # DIR into the resulting binary and the resulting library dependency is
21016 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21017 # library is relocated.
21018 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21019
21020 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21021 # into the resulting binary.
21022 hardcode_minus_L=$hardcode_minus_L_CXX
21023
21024 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21025 # into the resulting binary.
21026 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21027
21028 # Set to "yes" if building a shared library automatically hardcodes DIR
21029 # into the library and all subsequent libraries and executables linked
21030 # against it.
21031 hardcode_automatic=$hardcode_automatic_CXX
21032
21033 # Set to yes if linker adds runtime paths of dependent libraries
21034 # to runtime path list.
21035 inherit_rpath=$inherit_rpath_CXX
21036
21037 # Whether libtool must link a program against all its dependency libraries.
21038 link_all_deplibs=$link_all_deplibs_CXX
21039
21040 # Set to "yes" if exported symbols are required.
21041 always_export_symbols=$always_export_symbols_CXX
21042
21043 # The commands to list exported symbols.
21044 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21045
21046 # Symbols that should not be listed in the preloaded symbols.
21047 exclude_expsyms=$lt_exclude_expsyms_CXX
21048
21049 # Symbols that must always be exported.
21050 include_expsyms=$lt_include_expsyms_CXX
21051
21052 # Commands necessary for linking programs (against libraries) with templates.
21053 prelink_cmds=$lt_prelink_cmds_CXX
21054
21055 # Commands necessary for finishing linking programs.
21056 postlink_cmds=$lt_postlink_cmds_CXX
21057
21058 # Specify filename containing input files.
21059 file_list_spec=$lt_file_list_spec_CXX
21060
21061 # How to hardcode a shared library path into an executable.
21062 hardcode_action=$hardcode_action_CXX
21063
21064 # The directories searched by this compiler when creating a shared library.
21065 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21066
21067 # Dependencies to place before and after the objects being linked to
21068 # create a shared library.
21069 predep_objects=$lt_predep_objects_CXX
21070 postdep_objects=$lt_postdep_objects_CXX
21071 predeps=$lt_predeps_CXX
21072 postdeps=$lt_postdeps_CXX
21073
21074 # The library search path used internally by the compiler when linking
21075 # a shared library.
21076 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21077
21078 # ### END LIBTOOL TAG CONFIG: CXX
21079 _LT_EOF
21080
21081  ;;
21082
21083   esac
21084 done # for ac_tag
21085
21086
21087 as_fn_exit 0
21088 _ACEOF
21089 ac_clean_files=$ac_clean_files_save
21090
21091 test $ac_write_fail = 0 ||
21092   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21093
21094
21095 # configure is writing to config.log, and then calls config.status.
21096 # config.status does its own redirection, appending to config.log.
21097 # Unfortunately, on DOS this fails, as config.log is still kept open
21098 # by configure, so config.status won't be able to write to it; its
21099 # output is simply discarded.  So we exec the FD to /dev/null,
21100 # effectively closing config.log, so it can be properly (re)opened and
21101 # appended to by config.status.  When coming back to configure, we
21102 # need to make the FD available again.
21103 if test "$no_create" != yes; then
21104   ac_cs_success=:
21105   ac_config_status_args=
21106   test "$silent" = yes &&
21107     ac_config_status_args="$ac_config_status_args --quiet"
21108   exec 5>/dev/null
21109   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21110   exec 5>>config.log
21111   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21112   # would make configure fail if this is the last instruction.
21113   $ac_cs_success || as_fn_exit 1
21114 fi
21115 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21117 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21118 fi
21119