]> andersk Git - test.git/blob - configure
Use 2048-bit RSA keys for auto-generated certificates.
[test.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for shellinabox 2.10.
4 #
5 # Report bugs to <markus@shellinabox.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: markus@shellinabox.com about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='shellinabox'
572 PACKAGE_TARNAME='shellinabox'
573 PACKAGE_VERSION='2.10'
574 PACKAGE_STRING='shellinabox 2.10'
575 PACKAGE_BUGREPORT='markus@shellinabox.com'
576 PACKAGE_URL=''
577
578 ac_c_werror_flag=
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 LIBTOOL_DEPS
620 CPP
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
626 MANIFEST_TOOL
627 RANLIB
628 ac_ct_AR
629 AR
630 DLLTOOL
631 OBJDUMP
632 LN_S
633 NM
634 ac_ct_DUMPBIN
635 DUMPBIN
636 LD
637 FGREP
638 EGREP
639 GREP
640 SED
641 host_os
642 host_vendor
643 host_cpu
644 host
645 build_os
646 build_vendor
647 build_cpu
648 build
649 LIBTOOL
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 AMDEPBACKSLASH
654 AMDEP_FALSE
655 AMDEP_TRUE
656 am__quote
657 am__include
658 DEPDIR
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 am__untar
667 am__tar
668 AMTAR
669 am__leading_dot
670 SET_MAKE
671 AWK
672 mkdir_p
673 MKDIR_P
674 INSTALL_STRIP_PROGRAM
675 STRIP
676 install_sh
677 MAKEINFO
678 AUTOHEADER
679 AUTOMAKE
680 AUTOCONF
681 ACLOCAL
682 VERSION
683 PACKAGE
684 CYGPATH_W
685 am__isrc
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 VCS_REVISION
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_dependency_tracking
732 enable_shared
733 enable_static
734 with_pic
735 enable_fast_install
736 with_gnu_ld
737 with_sysroot
738 enable_libtool_lock
739 enable_login
740 enable_ssl
741 enable_pam
742 enable_runtime_loading
743 '
744       ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP'
753
754
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 ac_unrecognized_opts=
759 ac_unrecognized_sep=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
762 cache_file=/dev/null
763 exec_prefix=NONE
764 no_create=
765 no_recursion=
766 prefix=NONE
767 program_prefix=NONE
768 program_suffix=NONE
769 program_transform_name=s,x,x,
770 silent=
771 site=
772 srcdir=
773 verbose=
774 x_includes=NONE
775 x_libraries=NONE
776
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
795 htmldir='${docdir}'
796 dvidir='${docdir}'
797 pdfdir='${docdir}'
798 psdir='${docdir}'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
802
803 ac_prev=
804 ac_dashdash=
805 for ac_option
806 do
807   # If the previous option needs an argument, assign it.
808   if test -n "$ac_prev"; then
809     eval $ac_prev=\$ac_option
810     ac_prev=
811     continue
812   fi
813
814   case $ac_option in
815   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816   *=)   ac_optarg= ;;
817   *)    ac_optarg=yes ;;
818   esac
819
820   # Accept the important Cygnus configure options, so we can diagnose typos.
821
822   case $ac_dashdash$ac_option in
823   --)
824     ac_dashdash=yes ;;
825
826   -bindir | --bindir | --bindi | --bind | --bin | --bi)
827     ac_prev=bindir ;;
828   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829     bindir=$ac_optarg ;;
830
831   -build | --build | --buil | --bui | --bu)
832     ac_prev=build_alias ;;
833   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834     build_alias=$ac_optarg ;;
835
836   -cache-file | --cache-file | --cache-fil | --cache-fi \
837   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838     ac_prev=cache_file ;;
839   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841     cache_file=$ac_optarg ;;
842
843   --config-cache | -C)
844     cache_file=config.cache ;;
845
846   -datadir | --datadir | --datadi | --datad)
847     ac_prev=datadir ;;
848   -datadir=* | --datadir=* | --datadi=* | --datad=*)
849     datadir=$ac_optarg ;;
850
851   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852   | --dataroo | --dataro | --datar)
853     ac_prev=datarootdir ;;
854   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856     datarootdir=$ac_optarg ;;
857
858   -disable-* | --disable-*)
859     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860     # Reject names that are not valid shell variable names.
861     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862       as_fn_error $? "invalid feature name: $ac_useropt"
863     ac_useropt_orig=$ac_useropt
864     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865     case $ac_user_opts in
866       *"
867 "enable_$ac_useropt"
868 "*) ;;
869       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870          ac_unrecognized_sep=', ';;
871     esac
872     eval enable_$ac_useropt=no ;;
873
874   -docdir | --docdir | --docdi | --doc | --do)
875     ac_prev=docdir ;;
876   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877     docdir=$ac_optarg ;;
878
879   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880     ac_prev=dvidir ;;
881   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882     dvidir=$ac_optarg ;;
883
884   -enable-* | --enable-*)
885     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886     # Reject names that are not valid shell variable names.
887     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888       as_fn_error $? "invalid feature name: $ac_useropt"
889     ac_useropt_orig=$ac_useropt
890     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891     case $ac_user_opts in
892       *"
893 "enable_$ac_useropt"
894 "*) ;;
895       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896          ac_unrecognized_sep=', ';;
897     esac
898     eval enable_$ac_useropt=\$ac_optarg ;;
899
900   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902   | --exec | --exe | --ex)
903     ac_prev=exec_prefix ;;
904   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906   | --exec=* | --exe=* | --ex=*)
907     exec_prefix=$ac_optarg ;;
908
909   -gas | --gas | --ga | --g)
910     # Obsolete; use --with-gas.
911     with_gas=yes ;;
912
913   -help | --help | --hel | --he | -h)
914     ac_init_help=long ;;
915   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916     ac_init_help=recursive ;;
917   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918     ac_init_help=short ;;
919
920   -host | --host | --hos | --ho)
921     ac_prev=host_alias ;;
922   -host=* | --host=* | --hos=* | --ho=*)
923     host_alias=$ac_optarg ;;
924
925   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926     ac_prev=htmldir ;;
927   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928   | --ht=*)
929     htmldir=$ac_optarg ;;
930
931   -includedir | --includedir | --includedi | --included | --include \
932   | --includ | --inclu | --incl | --inc)
933     ac_prev=includedir ;;
934   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935   | --includ=* | --inclu=* | --incl=* | --inc=*)
936     includedir=$ac_optarg ;;
937
938   -infodir | --infodir | --infodi | --infod | --info | --inf)
939     ac_prev=infodir ;;
940   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941     infodir=$ac_optarg ;;
942
943   -libdir | --libdir | --libdi | --libd)
944     ac_prev=libdir ;;
945   -libdir=* | --libdir=* | --libdi=* | --libd=*)
946     libdir=$ac_optarg ;;
947
948   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949   | --libexe | --libex | --libe)
950     ac_prev=libexecdir ;;
951   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952   | --libexe=* | --libex=* | --libe=*)
953     libexecdir=$ac_optarg ;;
954
955   -localedir | --localedir | --localedi | --localed | --locale)
956     ac_prev=localedir ;;
957   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958     localedir=$ac_optarg ;;
959
960   -localstatedir | --localstatedir | --localstatedi | --localstated \
961   | --localstate | --localstat | --localsta | --localst | --locals)
962     ac_prev=localstatedir ;;
963   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965     localstatedir=$ac_optarg ;;
966
967   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968     ac_prev=mandir ;;
969   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970     mandir=$ac_optarg ;;
971
972   -nfp | --nfp | --nf)
973     # Obsolete; use --without-fp.
974     with_fp=no ;;
975
976   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977   | --no-cr | --no-c | -n)
978     no_create=yes ;;
979
980   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982     no_recursion=yes ;;
983
984   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986   | --oldin | --oldi | --old | --ol | --o)
987     ac_prev=oldincludedir ;;
988   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991     oldincludedir=$ac_optarg ;;
992
993   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994     ac_prev=prefix ;;
995   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996     prefix=$ac_optarg ;;
997
998   -program-prefix | --program-prefix | --program-prefi | --program-pref \
999   | --program-pre | --program-pr | --program-p)
1000     ac_prev=program_prefix ;;
1001   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003     program_prefix=$ac_optarg ;;
1004
1005   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006   | --program-suf | --program-su | --program-s)
1007     ac_prev=program_suffix ;;
1008   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010     program_suffix=$ac_optarg ;;
1011
1012   -program-transform-name | --program-transform-name \
1013   | --program-transform-nam | --program-transform-na \
1014   | --program-transform-n | --program-transform- \
1015   | --program-transform | --program-transfor \
1016   | --program-transfo | --program-transf \
1017   | --program-trans | --program-tran \
1018   | --progr-tra | --program-tr | --program-t)
1019     ac_prev=program_transform_name ;;
1020   -program-transform-name=* | --program-transform-name=* \
1021   | --program-transform-nam=* | --program-transform-na=* \
1022   | --program-transform-n=* | --program-transform-=* \
1023   | --program-transform=* | --program-transfor=* \
1024   | --program-transfo=* | --program-transf=* \
1025   | --program-trans=* | --program-tran=* \
1026   | --progr-tra=* | --program-tr=* | --program-t=*)
1027     program_transform_name=$ac_optarg ;;
1028
1029   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030     ac_prev=pdfdir ;;
1031   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032     pdfdir=$ac_optarg ;;
1033
1034   -psdir | --psdir | --psdi | --psd | --ps)
1035     ac_prev=psdir ;;
1036   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037     psdir=$ac_optarg ;;
1038
1039   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040   | -silent | --silent | --silen | --sile | --sil)
1041     silent=yes ;;
1042
1043   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044     ac_prev=sbindir ;;
1045   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046   | --sbi=* | --sb=*)
1047     sbindir=$ac_optarg ;;
1048
1049   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051   | --sharedst | --shareds | --shared | --share | --shar \
1052   | --sha | --sh)
1053     ac_prev=sharedstatedir ;;
1054   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057   | --sha=* | --sh=*)
1058     sharedstatedir=$ac_optarg ;;
1059
1060   -site | --site | --sit)
1061     ac_prev=site ;;
1062   -site=* | --site=* | --sit=*)
1063     site=$ac_optarg ;;
1064
1065   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066     ac_prev=srcdir ;;
1067   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068     srcdir=$ac_optarg ;;
1069
1070   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071   | --syscon | --sysco | --sysc | --sys | --sy)
1072     ac_prev=sysconfdir ;;
1073   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075     sysconfdir=$ac_optarg ;;
1076
1077   -target | --target | --targe | --targ | --tar | --ta | --t)
1078     ac_prev=target_alias ;;
1079   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080     target_alias=$ac_optarg ;;
1081
1082   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083     verbose=yes ;;
1084
1085   -version | --version | --versio | --versi | --vers | -V)
1086     ac_init_version=: ;;
1087
1088   -with-* | --with-*)
1089     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092       as_fn_error $? "invalid package name: $ac_useropt"
1093     ac_useropt_orig=$ac_useropt
1094     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095     case $ac_user_opts in
1096       *"
1097 "with_$ac_useropt"
1098 "*) ;;
1099       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100          ac_unrecognized_sep=', ';;
1101     esac
1102     eval with_$ac_useropt=\$ac_optarg ;;
1103
1104   -without-* | --without-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       as_fn_error $? "invalid package name: $ac_useropt"
1109     ac_useropt_orig=$ac_useropt
1110     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111     case $ac_user_opts in
1112       *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116          ac_unrecognized_sep=', ';;
1117     esac
1118     eval with_$ac_useropt=no ;;
1119
1120   --x)
1121     # Obsolete; use --with-x.
1122     with_x=yes ;;
1123
1124   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125   | --x-incl | --x-inc | --x-in | --x-i)
1126     ac_prev=x_includes ;;
1127   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129     x_includes=$ac_optarg ;;
1130
1131   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133     ac_prev=x_libraries ;;
1134   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136     x_libraries=$ac_optarg ;;
1137
1138   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1140     ;;
1141
1142   *=*)
1143     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144     # Reject names that are not valid shell variable names.
1145     case $ac_envvar in #(
1146       '' | [0-9]* | *[!_$as_cr_alnum]* )
1147       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1148     esac
1149     eval $ac_envvar=\$ac_optarg
1150     export $ac_envvar ;;
1151
1152   *)
1153     # FIXME: should be removed in autoconf 3.0.
1154     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1158     ;;
1159
1160   esac
1161 done
1162
1163 if test -n "$ac_prev"; then
1164   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165   as_fn_error $? "missing argument to $ac_option"
1166 fi
1167
1168 if test -n "$ac_unrecognized_opts"; then
1169   case $enable_option_checking in
1170     no) ;;
1171     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173   esac
1174 fi
1175
1176 # Check all directory arguments for consistency.
1177 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178                 datadir sysconfdir sharedstatedir localstatedir includedir \
1179                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180                 libdir localedir mandir
1181 do
1182   eval ac_val=\$$ac_var
1183   # Remove trailing slashes.
1184   case $ac_val in
1185     */ )
1186       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187       eval $ac_var=\$ac_val;;
1188   esac
1189   # Be sure to have absolute directory names.
1190   case $ac_val in
1191     [\\/$]* | ?:[\\/]* )  continue;;
1192     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193   esac
1194   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1195 done
1196
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1200 build=$build_alias
1201 host=$host_alias
1202 target=$target_alias
1203
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206   if test "x$build_alias" = x; then
1207     cross_compiling=maybe
1208     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1209     If a cross compiler is detected then cross compile mode will be used" >&2
1210   elif test "x$build_alias" != "x$host_alias"; then
1211     cross_compiling=yes
1212   fi
1213 fi
1214
1215 ac_tool_prefix=
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218 test "$silent" = yes && exec 6>/dev/null
1219
1220
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224   as_fn_error $? "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226   as_fn_error $? "pwd does not report name of working directory"
1227
1228
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231   ac_srcdir_defaulted=yes
1232   # Try the directory containing this script, then the parent directory.
1233   ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235          X"$as_myself" : 'X\(//\)[^/]' \| \
1236          X"$as_myself" : 'X\(//\)$' \| \
1237          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240             s//\1/
1241             q
1242           }
1243           /^X\(\/\/\)[^/].*/{
1244             s//\1/
1245             q
1246           }
1247           /^X\(\/\/\)$/{
1248             s//\1/
1249             q
1250           }
1251           /^X\(\/\).*/{
1252             s//\1/
1253             q
1254           }
1255           s/.*/./; q'`
1256   srcdir=$ac_confdir
1257   if test ! -r "$srcdir/$ac_unique_file"; then
1258     srcdir=..
1259   fi
1260 else
1261   ac_srcdir_defaulted=no
1262 fi
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266 fi
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270         pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273   srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283   eval ac_env_${ac_var}_value=\$${ac_var}
1284   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292   # Omit some internal or obsolete options to make the list less imposing.
1293   # This message is too long to be a string in the A/UX 3.1 sh.
1294   cat <<_ACEOF
1295 \`configure' configures shellinabox 2.10 to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE.  See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305   -h, --help              display this help and exit
1306       --help=short        display options specific to this package
1307       --help=recursive    display the short help of all the included packages
1308   -V, --version           display version information and exit
1309   -q, --quiet, --silent   do not print \`checking ...' messages
1310       --cache-file=FILE   cache test results in FILE [disabled]
1311   -C, --config-cache      alias for \`--cache-file=config.cache'
1312   -n, --no-create         do not create output files
1313       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316   --prefix=PREFIX         install architecture-independent files in PREFIX
1317                           [$ac_default_prefix]
1318   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1319                           [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329   --bindir=DIR            user executables [EPREFIX/bin]
1330   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1331   --libexecdir=DIR        program executables [EPREFIX/libexec]
1332   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1333   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1334   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1335   --libdir=DIR            object code libraries [EPREFIX/lib]
1336   --includedir=DIR        C header files [PREFIX/include]
1337   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1338   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1339   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1340   --infodir=DIR           info documentation [DATAROOTDIR/info]
1341   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1342   --mandir=DIR            man documentation [DATAROOTDIR/man]
1343   --docdir=DIR            documentation root [DATAROOTDIR/doc/shellinabox]
1344   --htmldir=DIR           html documentation [DOCDIR]
1345   --dvidir=DIR            dvi documentation [DOCDIR]
1346   --pdfdir=DIR            pdf documentation [DOCDIR]
1347   --psdir=DIR             ps documentation [DOCDIR]
1348 _ACEOF
1349
1350   cat <<\_ACEOF
1351
1352 Program names:
1353   --program-prefix=PREFIX            prepend PREFIX to installed program names
1354   --program-suffix=SUFFIX            append SUFFIX to installed program names
1355   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1356
1357 System types:
1358   --build=BUILD     configure for building on BUILD [guessed]
1359   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1360 _ACEOF
1361 fi
1362
1363 if test -n "$ac_init_help"; then
1364   case $ac_init_help in
1365      short | recursive ) echo "Configuration of shellinabox 2.10:";;
1366    esac
1367   cat <<\_ACEOF
1368
1369 Optional Features:
1370   --disable-option-checking  ignore unrecognized --enable/--with options
1371   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1372   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1373   --disable-dependency-tracking  speeds up one-time build
1374   --enable-dependency-tracking   do not reject slow dependency extractors
1375   --enable-shared[=PKGS]  build shared libraries [default=yes]
1376   --enable-static[=PKGS]  build static libraries [default=yes]
1377   --enable-fast-install[=PKGS]
1378                           optimize for fast installation [default=yes]
1379   --disable-libtool-lock  avoid locking (might break parallel builds)
1380   --disable-login           on some systems (e.g. Fedora), calling /bin/login
1381                             does not work well. If you know that your system
1382                             suffers from this problem, set this option to
1383                             remove support for the LOGIN keyword in the
1384                             service description.
1385   --disable-ssl             if available at built-time, support for SSL
1386                             connections will be enabled. It can still be
1387                             disabled at run-time, either on the daemon's
1388                             command line or if the operating system does not
1389                             have the OpenSSL libraries available.
1390   --disable-pam             PAM support is necessary in order to authenticate
1391                             users for running programs other than their default
1392                             login shell.
1393   --disable-runtime-loading ShellInABox will try to load the OpenSSL, and PAM
1394                             libraries at run-time, if it has been compiled with
1395                             support for these libraries, and if the operating
1396                             system supports dynamic loading of libraries. This
1397                             allows you to install the same binary on different
1398                             systems independent of whether they have OpenSSL
1399                             and PAM enabled.  If you would rather directly link
1400                             these libraries into the binary, thus making them a
1401                             hard dependency, then disable runtime-loading.
1402
1403 Optional Packages:
1404   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1405   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1406   --with-pic              try to use only PIC/non-PIC objects [default=use
1407                           both]
1408   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1409   --with-sysroot=DIR Search for dependent libraries within DIR
1410                         (or the compiler's sysroot if not specified).
1411
1412 Some influential environment variables:
1413   CC          C compiler command
1414   CFLAGS      C compiler flags
1415   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1416               nonstandard directory <lib dir>
1417   LIBS        libraries to pass to the linker, e.g. -l<library>
1418   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419               you have headers in a nonstandard directory <include dir>
1420   CPP         C preprocessor
1421
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1424
1425 Report bugs to <markus@shellinabox.com>.
1426 _ACEOF
1427 ac_status=$?
1428 fi
1429
1430 if test "$ac_init_help" = "recursive"; then
1431   # If there are subdirs, report their specific --help.
1432   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433     test -d "$ac_dir" ||
1434       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435       continue
1436     ac_builddir=.
1437
1438 case "$ac_dir" in
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *)
1441   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442   # A ".." for each directory in $ac_dir_suffix.
1443   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444   case $ac_top_builddir_sub in
1445   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447   esac ;;
1448 esac
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1453
1454 case $srcdir in
1455   .)  # We are building in place.
1456     ac_srcdir=.
1457     ac_top_srcdir=$ac_top_builddir_sub
1458     ac_abs_top_srcdir=$ac_pwd ;;
1459   [\\/]* | ?:[\\/]* )  # Absolute name.
1460     ac_srcdir=$srcdir$ac_dir_suffix;
1461     ac_top_srcdir=$srcdir
1462     ac_abs_top_srcdir=$srcdir ;;
1463   *) # Relative name.
1464     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465     ac_top_srcdir=$ac_top_build_prefix$srcdir
1466     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 esac
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470     cd "$ac_dir" || { ac_status=$?; continue; }
1471     # Check for guested configure.
1472     if test -f "$ac_srcdir/configure.gnu"; then
1473       echo &&
1474       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475     elif test -f "$ac_srcdir/configure"; then
1476       echo &&
1477       $SHELL "$ac_srcdir/configure" --help=recursive
1478     else
1479       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480     fi || ac_status=$?
1481     cd "$ac_pwd" || { ac_status=$?; break; }
1482   done
1483 fi
1484
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1487   cat <<\_ACEOF
1488 shellinabox configure 2.10
1489 generated by GNU Autoconf 2.68
1490
1491 Copyright (C) 2010 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1494 _ACEOF
1495   exit
1496 fi
1497
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1501
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1506 {
1507   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508   rm -f conftest.$ac_objext
1509   if { { ac_try="$ac_compile"
1510 case "(($ac_try" in
1511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512   *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516   (eval "$ac_compile") 2>conftest.err
1517   ac_status=$?
1518   if test -s conftest.err; then
1519     grep -v '^ *+' conftest.err >conftest.er1
1520     cat conftest.er1 >&5
1521     mv -f conftest.er1 conftest.err
1522   fi
1523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524   test $ac_status = 0; } && {
1525          test -z "$ac_c_werror_flag" ||
1526          test ! -s conftest.err
1527        } && test -s conftest.$ac_objext; then :
1528   ac_retval=0
1529 else
1530   $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1532
1533         ac_retval=1
1534 fi
1535   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536   as_fn_set_status $ac_retval
1537
1538 } # ac_fn_c_try_compile
1539
1540 # ac_fn_c_try_link LINENO
1541 # -----------------------
1542 # Try to link conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_link ()
1544 {
1545   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546   rm -f conftest.$ac_objext conftest$ac_exeext
1547   if { { ac_try="$ac_link"
1548 case "(($ac_try" in
1549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550   *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554   (eval "$ac_link") 2>conftest.err
1555   ac_status=$?
1556   if test -s conftest.err; then
1557     grep -v '^ *+' conftest.err >conftest.er1
1558     cat conftest.er1 >&5
1559     mv -f conftest.er1 conftest.err
1560   fi
1561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562   test $ac_status = 0; } && {
1563          test -z "$ac_c_werror_flag" ||
1564          test ! -s conftest.err
1565        } && test -s conftest$ac_exeext && {
1566          test "$cross_compiling" = yes ||
1567          $as_test_x conftest$ac_exeext
1568        }; then :
1569   ac_retval=0
1570 else
1571   $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574         ac_retval=1
1575 fi
1576   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1577   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1578   # interfere with the next link command; also delete a directory that is
1579   # left behind by Apple's compiler.  We do this before executing the actions.
1580   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1581   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582   as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_link
1585
1586 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1587 # -------------------------------------------------------
1588 # Tests whether HEADER exists and can be compiled using the include files in
1589 # INCLUDES, setting the cache variable VAR accordingly.
1590 ac_fn_c_check_header_compile ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594 $as_echo_n "checking for $2... " >&6; }
1595 if eval \${$3+:} false; then :
1596   $as_echo_n "(cached) " >&6
1597 else
1598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h.  */
1600 $4
1601 #include <$2>
1602 _ACEOF
1603 if ac_fn_c_try_compile "$LINENO"; then :
1604   eval "$3=yes"
1605 else
1606   eval "$3=no"
1607 fi
1608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609 fi
1610 eval ac_res=\$$3
1611                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1613   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614
1615 } # ac_fn_c_check_header_compile
1616
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_cpp ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 case "(($ac_try" in
1625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626   *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631   ac_status=$?
1632   if test -s conftest.err; then
1633     grep -v '^ *+' conftest.err >conftest.er1
1634     cat conftest.er1 >&5
1635     mv -f conftest.er1 conftest.err
1636   fi
1637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638   test $ac_status = 0; } > conftest.i && {
1639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640          test ! -s conftest.err
1641        }; then :
1642   ac_retval=0
1643 else
1644   $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647     ac_retval=1
1648 fi
1649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650   as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_cpp
1653
1654 # ac_fn_c_try_run LINENO
1655 # ----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657 # that executables *can* be run.
1658 ac_fn_c_try_run ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_link") 2>&5
1669   ac_status=$?
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672   { { case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_try") 2>&5
1679   ac_status=$?
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; }; }; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: program exited with status $ac_status" >&5
1685        $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688        ac_retval=$ac_status
1689 fi
1690   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692   as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_run
1695
1696 # ac_fn_c_check_func LINENO FUNC VAR
1697 # ----------------------------------
1698 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1699 ac_fn_c_check_func ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705   $as_echo_n "(cached) " >&6
1706 else
1707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h.  */
1709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1711 #define $2 innocuous_$2
1712
1713 /* System header to define __stub macros and hopefully few prototypes,
1714     which can conflict with char $2 (); below.
1715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1716     <limits.h> exists even on freestanding compilers.  */
1717
1718 #ifdef __STDC__
1719 # include <limits.h>
1720 #else
1721 # include <assert.h>
1722 #endif
1723
1724 #undef $2
1725
1726 /* Override any GCC internal prototype to avoid an error.
1727    Use char because int might match the return type of a GCC
1728    builtin and then its argument prototype would still apply.  */
1729 #ifdef __cplusplus
1730 extern "C"
1731 #endif
1732 char $2 ();
1733 /* The GNU C library defines this for functions which it implements
1734     to always fail with ENOSYS.  Some functions are actually named
1735     something starting with __ and the normal name is an alias.  */
1736 #if defined __stub_$2 || defined __stub___$2
1737 choke me
1738 #endif
1739
1740 int
1741 main ()
1742 {
1743 return $2 ();
1744   ;
1745   return 0;
1746 }
1747 _ACEOF
1748 if ac_fn_c_try_link "$LINENO"; then :
1749   eval "$3=yes"
1750 else
1751   eval "$3=no"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext \
1754     conftest$ac_exeext conftest.$ac_ext
1755 fi
1756 eval ac_res=\$$3
1757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761 } # ac_fn_c_check_func
1762
1763 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766 # the include files in INCLUDES and setting the cache variable VAR
1767 # accordingly.
1768 ac_fn_c_check_header_mongrel ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   if eval \${$3+:} false; then :
1772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775   $as_echo_n "(cached) " >&6
1776 fi
1777 eval ac_res=\$$3
1778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 else
1781   # Is the header compilable?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783 $as_echo_n "checking $2 usability... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h.  */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790   ac_header_compiler=yes
1791 else
1792   ac_header_compiler=no
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796 $as_echo "$ac_header_compiler" >&6; }
1797
1798 # Is the header present?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800 $as_echo_n "checking $2 presence... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h.  */
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_cpp "$LINENO"; then :
1806   ac_header_preproc=yes
1807 else
1808   ac_header_preproc=no
1809 fi
1810 rm -f conftest.err conftest.i conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812 $as_echo "$ac_header_preproc" >&6; }
1813
1814 # So?  What about this header?
1815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816   yes:no: )
1817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821     ;;
1822   no:yes:* )
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1826 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1830 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ( $as_echo "## ------------------------------------- ##
1834 ## Report this to markus@shellinabox.com ##
1835 ## ------------------------------------- ##"
1836      ) | sed "s/^/$as_me: WARNING:     /" >&2
1837     ;;
1838 esac
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 else
1844   eval "$3=\$ac_header_compiler"
1845 fi
1846 eval ac_res=\$$3
1847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 fi
1850   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852 } # ac_fn_c_check_header_mongrel
1853 cat >config.log <<_ACEOF
1854 This file contains any messages produced by compilers while
1855 running configure, to aid debugging if configure makes a mistake.
1856
1857 It was created by shellinabox $as_me 2.10, which was
1858 generated by GNU Autoconf 2.68.  Invocation command line was
1859
1860   $ $0 $@
1861
1862 _ACEOF
1863 exec 5>>config.log
1864 {
1865 cat <<_ASUNAME
1866 ## --------- ##
1867 ## Platform. ##
1868 ## --------- ##
1869
1870 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1871 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1872 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1873 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1874 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1875
1876 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1877 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1878
1879 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1880 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1881 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1882 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1883 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1884 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1885 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1886
1887 _ASUNAME
1888
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894     $as_echo "PATH: $as_dir"
1895   done
1896 IFS=$as_save_IFS
1897
1898 } >&5
1899
1900 cat >&5 <<_ACEOF
1901
1902
1903 ## ----------- ##
1904 ## Core tests. ##
1905 ## ----------- ##
1906
1907 _ACEOF
1908
1909
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_configure_args=
1916 ac_configure_args0=
1917 ac_configure_args1=
1918 ac_must_keep_next=false
1919 for ac_pass in 1 2
1920 do
1921   for ac_arg
1922   do
1923     case $ac_arg in
1924     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926     | -silent | --silent | --silen | --sile | --sil)
1927       continue ;;
1928     *\'*)
1929       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1930     esac
1931     case $ac_pass in
1932     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1933     2)
1934       as_fn_append ac_configure_args1 " '$ac_arg'"
1935       if test $ac_must_keep_next = true; then
1936         ac_must_keep_next=false # Got value, back to normal.
1937       else
1938         case $ac_arg in
1939           *=* | --config-cache | -C | -disable-* | --disable-* \
1940           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942           | -with-* | --with-* | -without-* | --without-* | --x)
1943             case "$ac_configure_args0 " in
1944               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1945             esac
1946             ;;
1947           -* ) ac_must_keep_next=true ;;
1948         esac
1949       fi
1950       as_fn_append ac_configure_args " '$ac_arg'"
1951       ;;
1952     esac
1953   done
1954 done
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1957
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log.  We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1964   # Save into config.log some information that might help in debugging.
1965   {
1966     echo
1967
1968     $as_echo "## ---------------- ##
1969 ## Cache variables. ##
1970 ## ---------------- ##"
1971     echo
1972     # The following way of writing the cache mishandles newlines in values,
1973 (
1974   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975     eval ac_val=\$$ac_var
1976     case $ac_val in #(
1977     *${as_nl}*)
1978       case $ac_var in #(
1979       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1981       esac
1982       case $ac_var in #(
1983       _ | IFS | as_nl) ;; #(
1984       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985       *) { eval $ac_var=; unset $ac_var;} ;;
1986       esac ;;
1987     esac
1988   done
1989   (set) 2>&1 |
1990     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991     *${as_nl}ac_space=\ *)
1992       sed -n \
1993         "s/'\''/'\''\\\\'\'''\''/g;
1994           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995       ;; #(
1996     *)
1997       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998       ;;
1999     esac |
2000     sort
2001 )
2002     echo
2003
2004     $as_echo "## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##"
2007     echo
2008     for ac_var in $ac_subst_vars
2009     do
2010       eval ac_val=\$$ac_var
2011       case $ac_val in
2012       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013       esac
2014       $as_echo "$ac_var='\''$ac_val'\''"
2015     done | sort
2016     echo
2017
2018     if test -n "$ac_subst_files"; then
2019       $as_echo "## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##"
2022       echo
2023       for ac_var in $ac_subst_files
2024       do
2025         eval ac_val=\$$ac_var
2026         case $ac_val in
2027         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028         esac
2029         $as_echo "$ac_var='\''$ac_val'\''"
2030       done | sort
2031       echo
2032     fi
2033
2034     if test -s confdefs.h; then
2035       $as_echo "## ----------- ##
2036 ## confdefs.h. ##
2037 ## ----------- ##"
2038       echo
2039       cat confdefs.h
2040       echo
2041     fi
2042     test "$ac_signal" != 0 &&
2043       $as_echo "$as_me: caught signal $ac_signal"
2044     $as_echo "$as_me: exit $exit_status"
2045   } >&5
2046   rm -f core *.core core.conftest.* &&
2047     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048     exit $exit_status
2049 ' 0
2050 for ac_signal in 1 2 13 15; do
2051   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2052 done
2053 ac_signal=0
2054
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2057
2058 $as_echo "/* confdefs.h */" > confdefs.h
2059
2060 # Predefined preprocessor variables.
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_NAME "$PACKAGE_NAME"
2064 _ACEOF
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2068 _ACEOF
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_URL "$PACKAGE_URL"
2084 _ACEOF
2085
2086
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2089 ac_site_file1=NONE
2090 ac_site_file2=NONE
2091 if test -n "$CONFIG_SITE"; then
2092   # We do not want a PATH search for config.site.
2093   case $CONFIG_SITE in #((
2094     -*)  ac_site_file1=./$CONFIG_SITE;;
2095     */*) ac_site_file1=$CONFIG_SITE;;
2096     *)   ac_site_file1=./$CONFIG_SITE;;
2097   esac
2098 elif test "x$prefix" != xNONE; then
2099   ac_site_file1=$prefix/share/config.site
2100   ac_site_file2=$prefix/etc/config.site
2101 else
2102   ac_site_file1=$ac_default_prefix/share/config.site
2103   ac_site_file2=$ac_default_prefix/etc/config.site
2104 fi
2105 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2106 do
2107   test "x$ac_site_file" = xNONE && continue
2108   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2109     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111     sed 's/^/| /' "$ac_site_file" >&5
2112     . "$ac_site_file" \
2113       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 as_fn_error $? "failed to load site script $ac_site_file
2116 See \`config.log' for more details" "$LINENO" 5; }
2117   fi
2118 done
2119
2120 if test -r "$cache_file"; then
2121   # Some versions of bash will fail to source /dev/null (special files
2122   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2123   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2124     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 $as_echo "$as_me: loading cache $cache_file" >&6;}
2126     case $cache_file in
2127       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128       *)                      . "./$cache_file";;
2129     esac
2130   fi
2131 else
2132   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 $as_echo "$as_me: creating cache $cache_file" >&6;}
2134   >$cache_file
2135 fi
2136
2137 # Check that the precious variables saved in the cache have kept the same
2138 # value.
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142   eval ac_new_set=\$ac_env_${ac_var}_set
2143   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144   eval ac_new_val=\$ac_env_${ac_var}_value
2145   case $ac_old_set,$ac_new_set in
2146     set,)
2147       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149       ac_cache_corrupted=: ;;
2150     ,set)
2151       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153       ac_cache_corrupted=: ;;
2154     ,);;
2155     *)
2156       if test "x$ac_old_val" != "x$ac_new_val"; then
2157         # differences in whitespace do not lead to failure.
2158         ac_old_val_w=`echo x $ac_old_val`
2159         ac_new_val_w=`echo x $ac_new_val`
2160         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2162 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163           ac_cache_corrupted=:
2164         else
2165           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167           eval $ac_var=\$ac_old_val
2168         fi
2169         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2170 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2171         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2172 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2173       fi;;
2174   esac
2175   # Pass precious variables to config.status.
2176   if test "$ac_new_set" = set; then
2177     case $ac_new_val in
2178     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179     *) ac_arg=$ac_var=$ac_new_val ;;
2180     esac
2181     case " $ac_configure_args " in
2182       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2183       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2184     esac
2185   fi
2186 done
2187 if $ac_cache_corrupted; then
2188   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2191 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2193 fi
2194 ## -------------------- ##
2195 ## Main body of script. ##
2196 ## -------------------- ##
2197
2198 ac_ext=c
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203
2204
2205 VCS_REVISION=239
2206
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define VCS_REVISION "${VCS_REVISION}"
2210 _ACEOF
2211
2212
2213 CFLAGS="${CFLAGS:--Os}"
2214 am__api_version='1.11'
2215
2216 ac_aux_dir=
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218   if test -f "$ac_dir/install-sh"; then
2219     ac_aux_dir=$ac_dir
2220     ac_install_sh="$ac_aux_dir/install-sh -c"
2221     break
2222   elif test -f "$ac_dir/install.sh"; then
2223     ac_aux_dir=$ac_dir
2224     ac_install_sh="$ac_aux_dir/install.sh -c"
2225     break
2226   elif test -f "$ac_dir/shtool"; then
2227     ac_aux_dir=$ac_dir
2228     ac_install_sh="$ac_aux_dir/shtool install -c"
2229     break
2230   fi
2231 done
2232 if test -z "$ac_aux_dir"; then
2233   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2234 fi
2235
2236 # These three variables are undocumented and unsupported,
2237 # and are intended to be withdrawn in a future Autoconf release.
2238 # They can cause serious problems if a builder's source tree is in a directory
2239 # whose full name contains unusual characters.
2240 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2241 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2242 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2243
2244
2245 # Find a good install program.  We prefer a C program (faster),
2246 # so one script is as good as another.  But avoid the broken or
2247 # incompatible versions:
2248 # SysV /etc/install, /usr/sbin/install
2249 # SunOS /usr/etc/install
2250 # IRIX /sbin/install
2251 # AIX /bin/install
2252 # AmigaOS /C/install, which installs bootblocks on floppy discs
2253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256 # OS/2's system install, which has a completely different semantic
2257 # ./install, which can be erroneously created by make from ./install.sh.
2258 # Reject install programs that cannot install multiple files.
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2261 if test -z "$INSTALL"; then
2262 if ${ac_cv_path_install+:} false; then :
2263   $as_echo_n "(cached) " >&6
2264 else
2265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270     # Account for people who put trailing slashes in PATH elements.
2271 case $as_dir/ in #((
2272   ./ | .// | /[cC]/* | \
2273   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2275   /usr/ucb/* ) ;;
2276   *)
2277     # OSF1 and SCO ODT 3.0 have their own names for install.
2278     # Don't use installbsd from OSF since it installs stuff as root
2279     # by default.
2280     for ac_prog in ginstall scoinst install; do
2281       for ac_exec_ext in '' $ac_executable_extensions; do
2282         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2283           if test $ac_prog = install &&
2284             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285             # AIX install.  It has an incompatible calling convention.
2286             :
2287           elif test $ac_prog = install &&
2288             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289             # program-specific install script used by HP pwplus--don't use.
2290             :
2291           else
2292             rm -rf conftest.one conftest.two conftest.dir
2293             echo one > conftest.one
2294             echo two > conftest.two
2295             mkdir conftest.dir
2296             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297               test -s conftest.one && test -s conftest.two &&
2298               test -s conftest.dir/conftest.one &&
2299               test -s conftest.dir/conftest.two
2300             then
2301               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302               break 3
2303             fi
2304           fi
2305         fi
2306       done
2307     done
2308     ;;
2309 esac
2310
2311   done
2312 IFS=$as_save_IFS
2313
2314 rm -rf conftest.one conftest.two conftest.dir
2315
2316 fi
2317   if test "${ac_cv_path_install+set}" = set; then
2318     INSTALL=$ac_cv_path_install
2319   else
2320     # As a last resort, use the slow shell script.  Don't cache a
2321     # value for INSTALL within a source directory, because that will
2322     # break other packages using the cache if that directory is
2323     # removed, or if the value is a relative name.
2324     INSTALL=$ac_install_sh
2325   fi
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2328 $as_echo "$INSTALL" >&6; }
2329
2330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331 # It thinks the first close brace ends the variable substitution.
2332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333
2334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335
2336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2339 $as_echo_n "checking whether build environment is sane... " >&6; }
2340 # Just in case
2341 sleep 1
2342 echo timestamp > conftest.file
2343 # Reject unsafe characters in $srcdir or the absolute working directory
2344 # name.  Accept space and tab only in the latter.
2345 am_lf='
2346 '
2347 case `pwd` in
2348   *[\\\"\#\$\&\'\`$am_lf]*)
2349     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2350 esac
2351 case $srcdir in
2352   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2353     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2354 esac
2355
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments.  Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2360 # directory).
2361 if (
2362    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2363    if test "$*" = "X"; then
2364       # -L didn't work.
2365       set X `ls -t "$srcdir/configure" conftest.file`
2366    fi
2367    rm -f conftest.file
2368    if test "$*" != "X $srcdir/configure conftest.file" \
2369       && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371       # If neither matched, then we have a broken ls.  This can happen
2372       # if, for instance, CONFIG_SHELL is bash and it inherits a
2373       # broken ls alias from the environment.  This has actually
2374       # happened.  Such a system could not be considered "sane".
2375       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2376 alias in your environment" "$LINENO" 5
2377    fi
2378
2379    test "$2" = conftest.file
2380    )
2381 then
2382    # Ok.
2383    :
2384 else
2385    as_fn_error $? "newly created file is older than distributed files!
2386 Check your system clock" "$LINENO" 5
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2389 $as_echo "yes" >&6; }
2390 test "$program_prefix" != NONE &&
2391   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2392 # Use a double $ so make ignores it.
2393 test "$program_suffix" != NONE &&
2394   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2395 # Double any \ or $.
2396 # By default was `s,x,x', remove it if useless.
2397 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2398 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2399
2400 # expand $ac_aux_dir to an absolute path
2401 am_aux_dir=`cd $ac_aux_dir && pwd`
2402
2403 if test x"${MISSING+set}" != xset; then
2404   case $am_aux_dir in
2405   *\ * | *\     *)
2406     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2407   *)
2408     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2409   esac
2410 fi
2411 # Use eval to expand $SHELL
2412 if eval "$MISSING --run true"; then
2413   am_missing_run="$MISSING --run "
2414 else
2415   am_missing_run=
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2417 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2418 fi
2419
2420 if test x"${install_sh}" != xset; then
2421   case $am_aux_dir in
2422   *\ * | *\     *)
2423     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2424   *)
2425     install_sh="\${SHELL} $am_aux_dir/install-sh"
2426   esac
2427 fi
2428
2429 # Installed binaries are usually stripped using `strip' when the user
2430 # run `make install-strip'.  However `strip' might not be the right
2431 # tool to use in cross-compilation environments, therefore Automake
2432 # will honor the `STRIP' environment variable to overrule this program.
2433 if test "$cross_compiling" != no; then
2434   if test -n "$ac_tool_prefix"; then
2435   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}strip; ac_word=$2
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438 $as_echo_n "checking for $ac_word... " >&6; }
2439 if ${ac_cv_prog_STRIP+:} false; then :
2440   $as_echo_n "(cached) " >&6
2441 else
2442   if test -n "$STRIP"; then
2443   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450     for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457   done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 STRIP=$ac_cv_prog_STRIP
2463 if test -n "$STRIP"; then
2464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2465 $as_echo "$STRIP" >&6; }
2466 else
2467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468 $as_echo "no" >&6; }
2469 fi
2470
2471
2472 fi
2473 if test -z "$ac_cv_prog_STRIP"; then
2474   ac_ct_STRIP=$STRIP
2475   # Extract the first word of "strip", so it can be a program name with args.
2476 set dummy strip; ac_word=$2
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2480   $as_echo_n "(cached) " >&6
2481 else
2482   if test -n "$ac_ct_STRIP"; then
2483   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490     for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_ac_ct_STRIP="strip"
2493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497   done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503 if test -n "$ac_ct_STRIP"; then
2504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2505 $as_echo "$ac_ct_STRIP" >&6; }
2506 else
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2509 fi
2510
2511   if test "x$ac_ct_STRIP" = x; then
2512     STRIP=":"
2513   else
2514     case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2518 ac_tool_warned=yes ;;
2519 esac
2520     STRIP=$ac_ct_STRIP
2521   fi
2522 else
2523   STRIP="$ac_cv_prog_STRIP"
2524 fi
2525
2526 fi
2527 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2528
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2530 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2531 if test -z "$MKDIR_P"; then
2532   if ${ac_cv_path_mkdir+:} false; then :
2533   $as_echo_n "(cached) " >&6
2534 else
2535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540     for ac_prog in mkdir gmkdir; do
2541          for ac_exec_ext in '' $ac_executable_extensions; do
2542            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2543            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2544              'mkdir (GNU coreutils) '* | \
2545              'mkdir (coreutils) '* | \
2546              'mkdir (fileutils) '4.1*)
2547                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2548                break 3;;
2549            esac
2550          done
2551        done
2552   done
2553 IFS=$as_save_IFS
2554
2555 fi
2556
2557   test -d ./--version && rmdir ./--version
2558   if test "${ac_cv_path_mkdir+set}" = set; then
2559     MKDIR_P="$ac_cv_path_mkdir -p"
2560   else
2561     # As a last resort, use the slow shell script.  Don't cache a
2562     # value for MKDIR_P within a source directory, because that will
2563     # break other packages using the cache if that directory is
2564     # removed, or if the value is a relative name.
2565     MKDIR_P="$ac_install_sh -d"
2566   fi
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2569 $as_echo "$MKDIR_P" >&6; }
2570
2571 mkdir_p="$MKDIR_P"
2572 case $mkdir_p in
2573   [\\/$]* | ?:[\\/]*) ;;
2574   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2575 esac
2576
2577 for ac_prog in gawk mawk nawk awk
2578 do
2579   # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_AWK+:} false; then :
2584   $as_echo_n "(cached) " >&6
2585 else
2586   if test -n "$AWK"; then
2587   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594     for ac_exec_ext in '' $ac_executable_extensions; do
2595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596     ac_cv_prog_AWK="$ac_prog"
2597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601   done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 AWK=$ac_cv_prog_AWK
2607 if test -n "$AWK"; then
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2609 $as_echo "$AWK" >&6; }
2610 else
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2613 fi
2614
2615
2616   test -n "$AWK" && break
2617 done
2618
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2620 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2621 set x ${MAKE-make}
2622 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2623 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   cat >conftest.make <<\_ACEOF
2627 SHELL = /bin/sh
2628 all:
2629         @echo '@@@%%%=$(MAKE)=@@@%%%'
2630 _ACEOF
2631 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2633   *@@@%%%=?*=@@@%%%*)
2634     eval ac_cv_prog_make_${ac_make}_set=yes;;
2635   *)
2636     eval ac_cv_prog_make_${ac_make}_set=no;;
2637 esac
2638 rm -f conftest.make
2639 fi
2640 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2642 $as_echo "yes" >&6; }
2643   SET_MAKE=
2644 else
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647   SET_MAKE="MAKE=${MAKE-make}"
2648 fi
2649
2650 rm -rf .tst 2>/dev/null
2651 mkdir .tst 2>/dev/null
2652 if test -d .tst; then
2653   am__leading_dot=.
2654 else
2655   am__leading_dot=_
2656 fi
2657 rmdir .tst 2>/dev/null
2658
2659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2660   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2661   # is not polluted with repeated "-I."
2662   am__isrc=' -I$(srcdir)'
2663   # test to see if srcdir already configured
2664   if test -f $srcdir/config.status; then
2665     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2666   fi
2667 fi
2668
2669 # test whether we have cygpath
2670 if test -z "$CYGPATH_W"; then
2671   if (cygpath --version) >/dev/null 2>/dev/null; then
2672     CYGPATH_W='cygpath -w'
2673   else
2674     CYGPATH_W=echo
2675   fi
2676 fi
2677
2678
2679 # Define the identity of the package.
2680  PACKAGE='shellinabox'
2681  VERSION='2.10'
2682
2683
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE "$PACKAGE"
2686 _ACEOF
2687
2688
2689 cat >>confdefs.h <<_ACEOF
2690 #define VERSION "$VERSION"
2691 _ACEOF
2692
2693 # Some tools Automake needs.
2694
2695 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2696
2697
2698 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2699
2700
2701 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2702
2703
2704 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2705
2706
2707 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2708
2709 # We need awk for the "check" target.  The system "awk" is bad on
2710 # some platforms.
2711 # Always define AMTAR for backward compatibility.
2712
2713 AMTAR=${AMTAR-"${am_missing_run}tar"}
2714
2715 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2716
2717
2718
2719
2720
2721 ac_config_headers="$ac_config_headers config.h"
2722
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_CC+:} false; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   if test -n "$CC"; then
2737   ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742   IFS=$as_save_IFS
2743   test -z "$as_dir" && as_dir=.
2744     for ac_exec_ext in '' $ac_executable_extensions; do
2745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748     break 2
2749   fi
2750 done
2751   done
2752 IFS=$as_save_IFS
2753
2754 fi
2755 fi
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2760 else
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766 fi
2767 if test -z "$ac_cv_prog_CC"; then
2768   ac_ct_CC=$CC
2769   # Extract the first word of "gcc", so it can be a program name with args.
2770 set dummy gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2774   $as_echo_n "(cached) " >&6
2775 else
2776   if test -n "$ac_ct_CC"; then
2777   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784     for ac_exec_ext in '' $ac_executable_extensions; do
2785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786     ac_cv_prog_ac_ct_CC="gcc"
2787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788     break 2
2789   fi
2790 done
2791   done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799 $as_echo "$ac_ct_CC" >&6; }
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805   if test "x$ac_ct_CC" = x; then
2806     CC=""
2807   else
2808     case $cross_compiling:$ac_tool_warned in
2809 yes:)
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2812 ac_tool_warned=yes ;;
2813 esac
2814     CC=$ac_ct_CC
2815   fi
2816 else
2817   CC="$ac_cv_prog_CC"
2818 fi
2819
2820 if test -z "$CC"; then
2821           if test -n "$ac_tool_prefix"; then
2822     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}cc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_CC+:} false; then :
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test -n "$CC"; then
2830   ac_cv_prog_CC="$CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837     for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_CC="${ac_tool_prefix}cc"
2840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844   done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2853 else
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859   fi
2860 fi
2861 if test -z "$CC"; then
2862   # Extract the first word of "cc", so it can be a program name with args.
2863 set dummy cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_CC+:} false; then :
2867   $as_echo_n "(cached) " >&6
2868 else
2869   if test -n "$CC"; then
2870   ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872   ac_prog_rejected=no
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878     for ac_exec_ext in '' $ac_executable_extensions; do
2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2881        ac_prog_rejected=yes
2882        continue
2883      fi
2884     ac_cv_prog_CC="cc"
2885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889   done
2890 IFS=$as_save_IFS
2891
2892 if test $ac_prog_rejected = yes; then
2893   # We found a bogon in the path, so make sure we never use it.
2894   set dummy $ac_cv_prog_CC
2895   shift
2896   if test $# != 0; then
2897     # We chose a different compiler from the bogus one.
2898     # However, it has the same basename, so the bogon will be chosen
2899     # first if we set CC to just the basename; use the full file name.
2900     shift
2901     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2902   fi
2903 fi
2904 fi
2905 fi
2906 CC=$ac_cv_prog_CC
2907 if test -n "$CC"; then
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2910 else
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915
2916 fi
2917 if test -z "$CC"; then
2918   if test -n "$ac_tool_prefix"; then
2919   for ac_prog in cl.exe
2920   do
2921     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926   $as_echo_n "(cached) " >&6
2927 else
2928   if test -n "$CC"; then
2929   ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936     for ac_exec_ext in '' $ac_executable_extensions; do
2937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940     break 2
2941   fi
2942 done
2943   done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958     test -n "$CC" && break
2959   done
2960 fi
2961 if test -z "$CC"; then
2962   ac_ct_CC=$CC
2963   for ac_prog in cl.exe
2964 do
2965   # Extract the first word of "$ac_prog", so it can be a program name with args.
2966 set dummy $ac_prog; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2970   $as_echo_n "(cached) " >&6
2971 else
2972   if test -n "$ac_ct_CC"; then
2973   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980     for ac_exec_ext in '' $ac_executable_extensions; do
2981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982     ac_cv_prog_ac_ct_CC="$ac_prog"
2983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984     break 2
2985   fi
2986 done
2987   done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2996 else
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002   test -n "$ac_ct_CC" && break
3003 done
3004
3005   if test "x$ac_ct_CC" = x; then
3006     CC=""
3007   else
3008     case $cross_compiling:$ac_tool_warned in
3009 yes:)
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3013 esac
3014     CC=$ac_ct_CC
3015   fi
3016 fi
3017
3018 fi
3019
3020
3021 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 as_fn_error $? "no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details" "$LINENO" 5; }
3025
3026 # Provide some information about the compiler.
3027 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3028 set X $ac_compile
3029 ac_compiler=$2
3030 for ac_option in --version -v -V -qversion; do
3031   { { ac_try="$ac_compiler $ac_option >&5"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3039   ac_status=$?
3040   if test -s conftest.err; then
3041     sed '10a\
3042 ... rest of stderr output deleted ...
3043          10q' conftest.err >conftest.er1
3044     cat conftest.er1 >&5
3045   fi
3046   rm -f conftest.er1 conftest.err
3047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048   test $ac_status = 0; }
3049 done
3050
3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h.  */
3053
3054 int
3055 main ()
3056 {
3057
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 ac_clean_files_save=$ac_clean_files
3063 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3064 # Try to create an executable without -o first, disregard a.out.
3065 # It will help us diagnose broken compilers, and finding out an intuition
3066 # of exeext.
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3068 $as_echo_n "checking whether the C compiler works... " >&6; }
3069 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3070
3071 # The possible output files:
3072 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3073
3074 ac_rmfiles=
3075 for ac_file in $ac_files
3076 do
3077   case $ac_file in
3078     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3080   esac
3081 done
3082 rm -f $ac_rmfiles
3083
3084 if { { ac_try="$ac_link_default"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091   (eval "$ac_link_default") 2>&5
3092   ac_status=$?
3093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094   test $ac_status = 0; }; then :
3095   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3096 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3097 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3098 # so that the user can short-circuit this test for compilers unknown to
3099 # Autoconf.
3100 for ac_file in $ac_files ''
3101 do
3102   test -f "$ac_file" || continue
3103   case $ac_file in
3104     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3105         ;;
3106     [ab].out )
3107         # We found the default executable, but exeext='' is most
3108         # certainly right.
3109         break;;
3110     *.* )
3111         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3112         then :; else
3113            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114         fi
3115         # We set ac_cv_exeext here because the later test for it is not
3116         # safe: cross compilers may not add the suffix if given an `-o'
3117         # argument, so we may need to know it at that point already.
3118         # Even if this section looks crufty: it has the advantage of
3119         # actually working.
3120         break;;
3121     * )
3122         break;;
3123   esac
3124 done
3125 test "$ac_cv_exeext" = no && ac_cv_exeext=
3126
3127 else
3128   ac_file=''
3129 fi
3130 if test -z "$ac_file"; then :
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 $as_echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error 77 "C compiler cannot create executables
3139 See \`config.log' for more details" "$LINENO" 5; }
3140 else
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 $as_echo "yes" >&6; }
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3145 $as_echo_n "checking for C compiler default output file name... " >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3147 $as_echo "$ac_file" >&6; }
3148 ac_exeext=$ac_cv_exeext
3149
3150 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3151 ac_clean_files=$ac_clean_files_save
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3153 $as_echo_n "checking for suffix of executables... " >&6; }
3154 if { { ac_try="$ac_link"
3155 case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161   (eval "$ac_link") 2>&5
3162   ac_status=$?
3163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164   test $ac_status = 0; }; then :
3165   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3166 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3167 # work properly (i.e., refer to `conftest.exe'), while it won't with
3168 # `rm'.
3169 for ac_file in conftest.exe conftest conftest.*; do
3170   test -f "$ac_file" || continue
3171   case $ac_file in
3172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3173     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174           break;;
3175     * ) break;;
3176   esac
3177 done
3178 else
3179   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3182 See \`config.log' for more details" "$LINENO" 5; }
3183 fi
3184 rm -f conftest conftest$ac_cv_exeext
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3186 $as_echo "$ac_cv_exeext" >&6; }
3187
3188 rm -f conftest.$ac_ext
3189 EXEEXT=$ac_cv_exeext
3190 ac_exeext=$EXEEXT
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h.  */
3193 #include <stdio.h>
3194 int
3195 main ()
3196 {
3197 FILE *f = fopen ("conftest.out", "w");
3198  return ferror (f) || fclose (f) != 0;
3199
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 ac_clean_files="$ac_clean_files conftest.out"
3205 # Check that the compiler produces executables we can run.  If not, either
3206 # the compiler is broken, or we cross compile.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3208 $as_echo_n "checking whether we are cross compiling... " >&6; }
3209 if test "$cross_compiling" != yes; then
3210   { { ac_try="$ac_link"
3211 case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217   (eval "$ac_link") 2>&5
3218   ac_status=$?
3219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220   test $ac_status = 0; }
3221   if { ac_try='./conftest$ac_cv_exeext'
3222   { { case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228   (eval "$ac_try") 2>&5
3229   ac_status=$?
3230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231   test $ac_status = 0; }; }; then
3232     cross_compiling=no
3233   else
3234     if test "$cross_compiling" = maybe; then
3235         cross_compiling=yes
3236     else
3237         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot run C compiled programs.
3240 If you meant to cross compile, use \`--host'.
3241 See \`config.log' for more details" "$LINENO" 5; }
3242     fi
3243   fi
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3246 $as_echo "$cross_compiling" >&6; }
3247
3248 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3249 ac_clean_files=$ac_clean_files_save
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3251 $as_echo_n "checking for suffix of object files... " >&6; }
3252 if ${ac_cv_objext+:} false; then :
3253   $as_echo_n "(cached) " >&6
3254 else
3255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h.  */
3257
3258 int
3259 main ()
3260 {
3261
3262   ;
3263   return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.o conftest.obj
3267 if { { ac_try="$ac_compile"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274   (eval "$ac_compile") 2>&5
3275   ac_status=$?
3276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277   test $ac_status = 0; }; then :
3278   for ac_file in conftest.o conftest.obj conftest.*; do
3279   test -f "$ac_file" || continue;
3280   case $ac_file in
3281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3282     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3283        break;;
3284   esac
3285 done
3286 else
3287   $as_echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error $? "cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details" "$LINENO" 5; }
3294 fi
3295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3298 $as_echo "$ac_cv_objext" >&6; }
3299 OBJEXT=$ac_cv_objext
3300 ac_objext=$OBJEXT
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3303 if ${ac_cv_c_compiler_gnu+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h.  */
3308
3309 int
3310 main ()
3311 {
3312 #ifndef __GNUC__
3313        choke me
3314 #endif
3315
3316   ;
3317   return 0;
3318 }
3319 _ACEOF
3320 if ac_fn_c_try_compile "$LINENO"; then :
3321   ac_compiler_gnu=yes
3322 else
3323   ac_compiler_gnu=no
3324 fi
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3327
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3331 if test $ac_compiler_gnu = yes; then
3332   GCC=yes
3333 else
3334   GCC=
3335 fi
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3340 if ${ac_cv_prog_cc_g+:} false; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   ac_save_c_werror_flag=$ac_c_werror_flag
3344    ac_c_werror_flag=yes
3345    ac_cv_prog_cc_g=no
3346    CFLAGS="-g"
3347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h.  */
3349
3350 int
3351 main ()
3352 {
3353
3354   ;
3355   return 0;
3356 }
3357 _ACEOF
3358 if ac_fn_c_try_compile "$LINENO"; then :
3359   ac_cv_prog_cc_g=yes
3360 else
3361   CFLAGS=""
3362       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h.  */
3364
3365 int
3366 main ()
3367 {
3368
3369   ;
3370   return 0;
3371 }
3372 _ACEOF
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374
3375 else
3376   ac_c_werror_flag=$ac_save_c_werror_flag
3377          CFLAGS="-g"
3378          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h.  */
3380
3381 int
3382 main ()
3383 {
3384
3385   ;
3386   return 0;
3387 }
3388 _ACEOF
3389 if ac_fn_c_try_compile "$LINENO"; then :
3390   ac_cv_prog_cc_g=yes
3391 fi
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 fi
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 fi
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397    ac_c_werror_flag=$ac_save_c_werror_flag
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3400 $as_echo "$ac_cv_prog_cc_g" >&6; }
3401 if test "$ac_test_CFLAGS" = set; then
3402   CFLAGS=$ac_save_CFLAGS
3403 elif test $ac_cv_prog_cc_g = yes; then
3404   if test "$GCC" = yes; then
3405     CFLAGS="-g -O2"
3406   else
3407     CFLAGS="-g"
3408   fi
3409 else
3410   if test "$GCC" = yes; then
3411     CFLAGS="-O2"
3412   else
3413     CFLAGS=
3414   fi
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3418 if ${ac_cv_prog_cc_c89+:} false; then :
3419   $as_echo_n "(cached) " >&6
3420 else
3421   ac_cv_prog_cc_c89=no
3422 ac_save_CC=$CC
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h.  */
3425 #include <stdarg.h>
3426 #include <stdio.h>
3427 #include <sys/types.h>
3428 #include <sys/stat.h>
3429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3430 struct buf { int x; };
3431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3432 static char *e (p, i)
3433      char **p;
3434      int i;
3435 {
3436   return p[i];
3437 }
3438 static char *f (char * (*g) (char **, int), char **p, ...)
3439 {
3440   char *s;
3441   va_list v;
3442   va_start (v,p);
3443   s = g (p, va_arg (v,int));
3444   va_end (v);
3445   return s;
3446 }
3447
3448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3449    function prototypes and stuff, but not '\xHH' hex character constants.
3450    These don't provoke an error unfortunately, instead are silently treated
3451    as 'x'.  The following induces an error, until -std is added to get
3452    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3453    array size at least.  It's necessary to write '\x00'==0 to get something
3454    that's true only with -std.  */
3455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456
3457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3458    inside strings and character constants.  */
3459 #define FOO(x) 'x'
3460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461
3462 int test (int i, double x);
3463 struct s1 {int (*f) (int a);};
3464 struct s2 {int (*f) (double a);};
3465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3466 int argc;
3467 char **argv;
3468 int
3469 main ()
3470 {
3471 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3477         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 do
3479   CC="$ac_save_CC $ac_arg"
3480   if ac_fn_c_try_compile "$LINENO"; then :
3481   ac_cv_prog_cc_c89=$ac_arg
3482 fi
3483 rm -f core conftest.err conftest.$ac_objext
3484   test "x$ac_cv_prog_cc_c89" != "xno" && break
3485 done
3486 rm -f conftest.$ac_ext
3487 CC=$ac_save_CC
3488
3489 fi
3490 # AC_CACHE_VAL
3491 case "x$ac_cv_prog_cc_c89" in
3492   x)
3493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3494 $as_echo "none needed" >&6; } ;;
3495   xno)
3496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3497 $as_echo "unsupported" >&6; } ;;
3498   *)
3499     CC="$CC $ac_cv_prog_cc_c89"
3500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3502 esac
3503 if test "x$ac_cv_prog_cc_c89" != xno; then :
3504
3505 fi
3506
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 DEPDIR="${am__leading_dot}deps"
3513
3514 ac_config_commands="$ac_config_commands depfiles"
3515
3516
3517 am_make=${MAKE-make}
3518 cat > confinc << 'END'
3519 am__doit:
3520         @echo this is the am__doit target
3521 .PHONY: am__doit
3522 END
3523 # If we don't find an include directive, just comment out the code.
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3525 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3526 am__include="#"
3527 am__quote=
3528 _am_result=none
3529 # First try GNU make style include.
3530 echo "include confinc" > confmf
3531 # Ignore all kinds of additional output from `make'.
3532 case `$am_make -s -f confmf 2> /dev/null` in #(
3533 *the\ am__doit\ target*)
3534   am__include=include
3535   am__quote=
3536   _am_result=GNU
3537   ;;
3538 esac
3539 # Now try BSD make style include.
3540 if test "$am__include" = "#"; then
3541    echo '.include "confinc"' > confmf
3542    case `$am_make -s -f confmf 2> /dev/null` in #(
3543    *the\ am__doit\ target*)
3544      am__include=.include
3545      am__quote="\""
3546      _am_result=BSD
3547      ;;
3548    esac
3549 fi
3550
3551
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3553 $as_echo "$_am_result" >&6; }
3554 rm -f confinc confmf
3555
3556 # Check whether --enable-dependency-tracking was given.
3557 if test "${enable_dependency_tracking+set}" = set; then :
3558   enableval=$enable_dependency_tracking;
3559 fi
3560
3561 if test "x$enable_dependency_tracking" != xno; then
3562   am_depcomp="$ac_aux_dir/depcomp"
3563   AMDEPBACKSLASH='\'
3564 fi
3565  if test "x$enable_dependency_tracking" != xno; then
3566   AMDEP_TRUE=
3567   AMDEP_FALSE='#'
3568 else
3569   AMDEP_TRUE='#'
3570   AMDEP_FALSE=
3571 fi
3572
3573
3574
3575 depcc="$CC"   am_compiler_list=
3576
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3578 $as_echo_n "checking dependency style of $depcc... " >&6; }
3579 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3583   # We make a subdir and do the tests there.  Otherwise we can end up
3584   # making bogus files that we don't know about and never remove.  For
3585   # instance it was reported that on HP-UX the gcc test will end up
3586   # making a dummy file named `D' -- because `-MD' means `put the output
3587   # in D'.
3588   mkdir conftest.dir
3589   # Copy depcomp to subdir because otherwise we won't find it if we're
3590   # using a relative directory.
3591   cp "$am_depcomp" conftest.dir
3592   cd conftest.dir
3593   # We will build objects and dependencies in a subdirectory because
3594   # it helps to detect inapplicable dependency modes.  For instance
3595   # both Tru64's cc and ICC support -MD to output dependencies as a
3596   # side effect of compilation, but ICC will put the dependencies in
3597   # the current directory while Tru64 will put them in the object
3598   # directory.
3599   mkdir sub
3600
3601   am_cv_CC_dependencies_compiler_type=none
3602   if test "$am_compiler_list" = ""; then
3603      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3604   fi
3605   am__universal=false
3606   case " $depcc " in #(
3607      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3608      esac
3609
3610   for depmode in $am_compiler_list; do
3611     # Setup a source with many dependencies, because some compilers
3612     # like to wrap large dependency lists on column 80 (with \), and
3613     # we should not choose a depcomp mode which is confused by this.
3614     #
3615     # We need to recreate these files for each test, as the compiler may
3616     # overwrite some of them when testing with obscure command lines.
3617     # This happens at least with the AIX C compiler.
3618     : > sub/conftest.c
3619     for i in 1 2 3 4 5 6; do
3620       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3621       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3622       # Solaris 8's {/usr,}/bin/sh.
3623       touch sub/conftst$i.h
3624     done
3625     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3626
3627     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3628     # mode.  It turns out that the SunPro C++ compiler does not properly
3629     # handle `-M -o', and we need to detect this.  Also, some Intel
3630     # versions had trouble with output in subdirs
3631     am__obj=sub/conftest.${OBJEXT-o}
3632     am__minus_obj="-o $am__obj"
3633     case $depmode in
3634     gcc)
3635       # This depmode causes a compiler race in universal mode.
3636       test "$am__universal" = false || continue
3637       ;;
3638     nosideeffect)
3639       # after this tag, mechanisms are not by side-effect, so they'll
3640       # only be used when explicitly requested
3641       if test "x$enable_dependency_tracking" = xyes; then
3642         continue
3643       else
3644         break
3645       fi
3646       ;;
3647     msvisualcpp | msvcmsys)
3648       # This compiler won't grok `-c -o', but also, the minuso test has
3649       # not run yet.  These depmodes are late enough in the game, and
3650       # so weak that their functioning should not be impacted.
3651       am__obj=conftest.${OBJEXT-o}
3652       am__minus_obj=
3653       ;;
3654     none) break ;;
3655     esac
3656     if depmode=$depmode \
3657        source=sub/conftest.c object=$am__obj \
3658        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3659        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3660          >/dev/null 2>conftest.err &&
3661        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3662        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3663        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3664        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3665       # icc doesn't choke on unknown options, it will just issue warnings
3666       # or remarks (even with -Werror).  So we grep stderr for any message
3667       # that says an option was ignored or not supported.
3668       # When given -MP, icc 7.0 and 7.1 complain thusly:
3669       #   icc: Command line warning: ignoring option '-M'; no argument required
3670       # The diagnosis changed in icc 8.0:
3671       #   icc: Command line remark: option '-MP' not supported
3672       if (grep 'ignoring option' conftest.err ||
3673           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3674         am_cv_CC_dependencies_compiler_type=$depmode
3675         break
3676       fi
3677     fi
3678   done
3679
3680   cd ..
3681   rm -rf conftest.dir
3682 else
3683   am_cv_CC_dependencies_compiler_type=none
3684 fi
3685
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3688 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3689 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3690
3691  if
3692   test "x$enable_dependency_tracking" != xno \
3693   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3694   am__fastdepCC_TRUE=
3695   am__fastdepCC_FALSE='#'
3696 else
3697   am__fastdepCC_TRUE='#'
3698   am__fastdepCC_FALSE=
3699 fi
3700
3701
3702
3703 ac_c_werror_flag=yes
3704
3705 case `pwd` in
3706   *\ * | *\     *)
3707     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3709 esac
3710
3711
3712
3713 macro_version='2.4'
3714 macro_revision='1.3293'
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728 ltmain="$ac_aux_dir/ltmain.sh"
3729
3730 # Make sure we can run config.sub.
3731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3732   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3733
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3735 $as_echo_n "checking build system type... " >&6; }
3736 if ${ac_cv_build+:} false; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   ac_build_alias=$build_alias
3740 test "x$ac_build_alias" = x &&
3741   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3742 test "x$ac_build_alias" = x &&
3743   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3744 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3745   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3746
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3749 $as_echo "$ac_cv_build" >&6; }
3750 case $ac_cv_build in
3751 *-*-*) ;;
3752 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3753 esac
3754 build=$ac_cv_build
3755 ac_save_IFS=$IFS; IFS='-'
3756 set x $ac_cv_build
3757 shift
3758 build_cpu=$1
3759 build_vendor=$2
3760 shift; shift
3761 # Remember, the first character of IFS is used to create $*,
3762 # except with old shells:
3763 build_os=$*
3764 IFS=$ac_save_IFS
3765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3766
3767
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3769 $as_echo_n "checking host system type... " >&6; }
3770 if ${ac_cv_host+:} false; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   if test "x$host_alias" = x; then
3774   ac_cv_host=$ac_cv_build
3775 else
3776   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3777     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3778 fi
3779
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3782 $as_echo "$ac_cv_host" >&6; }
3783 case $ac_cv_host in
3784 *-*-*) ;;
3785 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3786 esac
3787 host=$ac_cv_host
3788 ac_save_IFS=$IFS; IFS='-'
3789 set x $ac_cv_host
3790 shift
3791 host_cpu=$1
3792 host_vendor=$2
3793 shift; shift
3794 # Remember, the first character of IFS is used to create $*,
3795 # except with old shells:
3796 host_os=$*
3797 IFS=$ac_save_IFS
3798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3799
3800
3801 # Backslashify metacharacters that are still active within
3802 # double-quoted strings.
3803 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3804
3805 # Same as above, but do not quote variable references.
3806 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3807
3808 # Sed substitution to delay expansion of an escaped shell variable in a
3809 # double_quote_subst'ed string.
3810 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3811
3812 # Sed substitution to delay expansion of an escaped single quote.
3813 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3814
3815 # Sed substitution to avoid accidental globbing in evaled expressions
3816 no_glob_subst='s/\*/\\\*/g'
3817
3818 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3819 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3820 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3821
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3823 $as_echo_n "checking how to print strings... " >&6; }
3824 # Test print first, because it will be a builtin if present.
3825 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3826    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3827   ECHO='print -r --'
3828 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3829   ECHO='printf %s\n'
3830 else
3831   # Use this function as a fallback that always works.
3832   func_fallback_echo ()
3833   {
3834     eval 'cat <<_LTECHO_EOF
3835 $1
3836 _LTECHO_EOF'
3837   }
3838   ECHO='func_fallback_echo'
3839 fi
3840
3841 # func_echo_all arg...
3842 # Invoke $ECHO with all args, space-separated.
3843 func_echo_all ()
3844 {
3845     $ECHO ""
3846 }
3847
3848 case "$ECHO" in
3849   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3850 $as_echo "printf" >&6; } ;;
3851   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3852 $as_echo "print -r" >&6; } ;;
3853   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3854 $as_echo "cat" >&6; } ;;
3855 esac
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3871 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3872 if ${ac_cv_path_SED+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3876      for ac_i in 1 2 3 4 5 6 7; do
3877        ac_script="$ac_script$as_nl$ac_script"
3878      done
3879      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3880      { ac_script=; unset ac_script;}
3881      if test -z "$SED"; then
3882   ac_path_SED_found=false
3883   # Loop through the user's path and test for each of PROGNAME-LIST
3884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887   IFS=$as_save_IFS
3888   test -z "$as_dir" && as_dir=.
3889     for ac_prog in sed gsed; do
3890     for ac_exec_ext in '' $ac_executable_extensions; do
3891       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3892       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3893 # Check for GNU ac_path_SED and select it if it is found.
3894   # Check for GNU $ac_path_SED
3895 case `"$ac_path_SED" --version 2>&1` in
3896 *GNU*)
3897   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3898 *)
3899   ac_count=0
3900   $as_echo_n 0123456789 >"conftest.in"
3901   while :
3902   do
3903     cat "conftest.in" "conftest.in" >"conftest.tmp"
3904     mv "conftest.tmp" "conftest.in"
3905     cp "conftest.in" "conftest.nl"
3906     $as_echo '' >> "conftest.nl"
3907     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3908     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3909     as_fn_arith $ac_count + 1 && ac_count=$as_val
3910     if test $ac_count -gt ${ac_path_SED_max-0}; then
3911       # Best one so far, save it but keep looking for a better one
3912       ac_cv_path_SED="$ac_path_SED"
3913       ac_path_SED_max=$ac_count
3914     fi
3915     # 10*(2^10) chars as input seems more than enough
3916     test $ac_count -gt 10 && break
3917   done
3918   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3919 esac
3920
3921       $ac_path_SED_found && break 3
3922     done
3923   done
3924   done
3925 IFS=$as_save_IFS
3926   if test -z "$ac_cv_path_SED"; then
3927     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3928   fi
3929 else
3930   ac_cv_path_SED=$SED
3931 fi
3932
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3935 $as_echo "$ac_cv_path_SED" >&6; }
3936  SED="$ac_cv_path_SED"
3937   rm -f conftest.sed
3938
3939 test -z "$SED" && SED=sed
3940 Xsed="$SED -e 1s/^X//"
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3953 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3954 if ${ac_cv_path_GREP+:} false; then :
3955   $as_echo_n "(cached) " >&6
3956 else
3957   if test -z "$GREP"; then
3958   ac_path_GREP_found=false
3959   # Loop through the user's path and test for each of PROGNAME-LIST
3960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962 do
3963   IFS=$as_save_IFS
3964   test -z "$as_dir" && as_dir=.
3965     for ac_prog in grep ggrep; do
3966     for ac_exec_ext in '' $ac_executable_extensions; do
3967       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3968       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3969 # Check for GNU ac_path_GREP and select it if it is found.
3970   # Check for GNU $ac_path_GREP
3971 case `"$ac_path_GREP" --version 2>&1` in
3972 *GNU*)
3973   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3974 *)
3975   ac_count=0
3976   $as_echo_n 0123456789 >"conftest.in"
3977   while :
3978   do
3979     cat "conftest.in" "conftest.in" >"conftest.tmp"
3980     mv "conftest.tmp" "conftest.in"
3981     cp "conftest.in" "conftest.nl"
3982     $as_echo 'GREP' >> "conftest.nl"
3983     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985     as_fn_arith $ac_count + 1 && ac_count=$as_val
3986     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3987       # Best one so far, save it but keep looking for a better one
3988       ac_cv_path_GREP="$ac_path_GREP"
3989       ac_path_GREP_max=$ac_count
3990     fi
3991     # 10*(2^10) chars as input seems more than enough
3992     test $ac_count -gt 10 && break
3993   done
3994   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995 esac
3996
3997       $ac_path_GREP_found && break 3
3998     done
3999   done
4000   done
4001 IFS=$as_save_IFS
4002   if test -z "$ac_cv_path_GREP"; then
4003     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4004   fi
4005 else
4006   ac_cv_path_GREP=$GREP
4007 fi
4008
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4011 $as_echo "$ac_cv_path_GREP" >&6; }
4012  GREP="$ac_cv_path_GREP"
4013
4014
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4016 $as_echo_n "checking for egrep... " >&6; }
4017 if ${ac_cv_path_EGREP+:} false; then :
4018   $as_echo_n "(cached) " >&6
4019 else
4020   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4021    then ac_cv_path_EGREP="$GREP -E"
4022    else
4023      if test -z "$EGREP"; then
4024   ac_path_EGREP_found=false
4025   # Loop through the user's path and test for each of PROGNAME-LIST
4026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031     for ac_prog in egrep; do
4032     for ac_exec_ext in '' $ac_executable_extensions; do
4033       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4034       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4035 # Check for GNU ac_path_EGREP and select it if it is found.
4036   # Check for GNU $ac_path_EGREP
4037 case `"$ac_path_EGREP" --version 2>&1` in
4038 *GNU*)
4039   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4040 *)
4041   ac_count=0
4042   $as_echo_n 0123456789 >"conftest.in"
4043   while :
4044   do
4045     cat "conftest.in" "conftest.in" >"conftest.tmp"
4046     mv "conftest.tmp" "conftest.in"
4047     cp "conftest.in" "conftest.nl"
4048     $as_echo 'EGREP' >> "conftest.nl"
4049     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051     as_fn_arith $ac_count + 1 && ac_count=$as_val
4052     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4053       # Best one so far, save it but keep looking for a better one
4054       ac_cv_path_EGREP="$ac_path_EGREP"
4055       ac_path_EGREP_max=$ac_count
4056     fi
4057     # 10*(2^10) chars as input seems more than enough
4058     test $ac_count -gt 10 && break
4059   done
4060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063       $ac_path_EGREP_found && break 3
4064     done
4065   done
4066   done
4067 IFS=$as_save_IFS
4068   if test -z "$ac_cv_path_EGREP"; then
4069     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4070   fi
4071 else
4072   ac_cv_path_EGREP=$EGREP
4073 fi
4074
4075    fi
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4078 $as_echo "$ac_cv_path_EGREP" >&6; }
4079  EGREP="$ac_cv_path_EGREP"
4080
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4083 $as_echo_n "checking for fgrep... " >&6; }
4084 if ${ac_cv_path_FGREP+:} false; then :
4085   $as_echo_n "(cached) " >&6
4086 else
4087   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4088    then ac_cv_path_FGREP="$GREP -F"
4089    else
4090      if test -z "$FGREP"; then
4091   ac_path_FGREP_found=false
4092   # Loop through the user's path and test for each of PROGNAME-LIST
4093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098     for ac_prog in fgrep; do
4099     for ac_exec_ext in '' $ac_executable_extensions; do
4100       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4101       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4102 # Check for GNU ac_path_FGREP and select it if it is found.
4103   # Check for GNU $ac_path_FGREP
4104 case `"$ac_path_FGREP" --version 2>&1` in
4105 *GNU*)
4106   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4107 *)
4108   ac_count=0
4109   $as_echo_n 0123456789 >"conftest.in"
4110   while :
4111   do
4112     cat "conftest.in" "conftest.in" >"conftest.tmp"
4113     mv "conftest.tmp" "conftest.in"
4114     cp "conftest.in" "conftest.nl"
4115     $as_echo 'FGREP' >> "conftest.nl"
4116     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118     as_fn_arith $ac_count + 1 && ac_count=$as_val
4119     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4120       # Best one so far, save it but keep looking for a better one
4121       ac_cv_path_FGREP="$ac_path_FGREP"
4122       ac_path_FGREP_max=$ac_count
4123     fi
4124     # 10*(2^10) chars as input seems more than enough
4125     test $ac_count -gt 10 && break
4126   done
4127   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128 esac
4129
4130       $ac_path_FGREP_found && break 3
4131     done
4132   done
4133   done
4134 IFS=$as_save_IFS
4135   if test -z "$ac_cv_path_FGREP"; then
4136     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4137   fi
4138 else
4139   ac_cv_path_FGREP=$FGREP
4140 fi
4141
4142    fi
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4145 $as_echo "$ac_cv_path_FGREP" >&6; }
4146  FGREP="$ac_cv_path_FGREP"
4147
4148
4149 test -z "$GREP" && GREP=grep
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169 # Check whether --with-gnu-ld was given.
4170 if test "${with_gnu_ld+set}" = set; then :
4171   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4172 else
4173   with_gnu_ld=no
4174 fi
4175
4176 ac_prog=ld
4177 if test "$GCC" = yes; then
4178   # Check if gcc -print-prog-name=ld gives a path.
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4180 $as_echo_n "checking for ld used by $CC... " >&6; }
4181   case $host in
4182   *-*-mingw*)
4183     # gcc leaves a trailing carriage return which upsets mingw
4184     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4185   *)
4186     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4187   esac
4188   case $ac_prog in
4189     # Accept absolute paths.
4190     [\\/]* | ?:[\\/]*)
4191       re_direlt='/[^/][^/]*/\.\./'
4192       # Canonicalize the pathname of ld
4193       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4194       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4195         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4196       done
4197       test -z "$LD" && LD="$ac_prog"
4198       ;;
4199   "")
4200     # If it fails, then pretend we aren't using GCC.
4201     ac_prog=ld
4202     ;;
4203   *)
4204     # If it is relative, then search for the first ld in PATH.
4205     with_gnu_ld=unknown
4206     ;;
4207   esac
4208 elif test "$with_gnu_ld" = yes; then
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4210 $as_echo_n "checking for GNU ld... " >&6; }
4211 else
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4213 $as_echo_n "checking for non-GNU ld... " >&6; }
4214 fi
4215 if ${lt_cv_path_LD+:} false; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   if test -z "$LD"; then
4219   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4220   for ac_dir in $PATH; do
4221     IFS="$lt_save_ifs"
4222     test -z "$ac_dir" && ac_dir=.
4223     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4224       lt_cv_path_LD="$ac_dir/$ac_prog"
4225       # Check to see if the program is GNU ld.  I'd rather use --version,
4226       # but apparently some variants of GNU ld only accept -v.
4227       # Break only if it was the GNU/non-GNU ld that we prefer.
4228       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4229       *GNU* | *'with BFD'*)
4230         test "$with_gnu_ld" != no && break
4231         ;;
4232       *)
4233         test "$with_gnu_ld" != yes && break
4234         ;;
4235       esac
4236     fi
4237   done
4238   IFS="$lt_save_ifs"
4239 else
4240   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4241 fi
4242 fi
4243
4244 LD="$lt_cv_path_LD"
4245 if test -n "$LD"; then
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4247 $as_echo "$LD" >&6; }
4248 else
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4251 fi
4252 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4254 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4255 if ${lt_cv_prog_gnu_ld+:} false; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4259 case `$LD -v 2>&1 </dev/null` in
4260 *GNU* | *'with BFD'*)
4261   lt_cv_prog_gnu_ld=yes
4262   ;;
4263 *)
4264   lt_cv_prog_gnu_ld=no
4265   ;;
4266 esac
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4269 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4270 with_gnu_ld=$lt_cv_prog_gnu_ld
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4281 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4282 if ${lt_cv_path_NM+:} false; then :
4283   $as_echo_n "(cached) " >&6
4284 else
4285   if test -n "$NM"; then
4286   # Let the user override the test.
4287   lt_cv_path_NM="$NM"
4288 else
4289   lt_nm_to_check="${ac_tool_prefix}nm"
4290   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4291     lt_nm_to_check="$lt_nm_to_check nm"
4292   fi
4293   for lt_tmp_nm in $lt_nm_to_check; do
4294     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4296       IFS="$lt_save_ifs"
4297       test -z "$ac_dir" && ac_dir=.
4298       tmp_nm="$ac_dir/$lt_tmp_nm"
4299       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4300         # Check to see if the nm accepts a BSD-compat flag.
4301         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4302         #   nm: unknown option "B" ignored
4303         # Tru64's nm complains that /dev/null is an invalid object file
4304         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4305         */dev/null* | *'Invalid file or object type'*)
4306           lt_cv_path_NM="$tmp_nm -B"
4307           break
4308           ;;
4309         *)
4310           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4311           */dev/null*)
4312             lt_cv_path_NM="$tmp_nm -p"
4313             break
4314             ;;
4315           *)
4316             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4317             continue # so that we can try to find one that supports BSD flags
4318             ;;
4319           esac
4320           ;;
4321         esac
4322       fi
4323     done
4324     IFS="$lt_save_ifs"
4325   done
4326   : ${lt_cv_path_NM=no}
4327 fi
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4330 $as_echo "$lt_cv_path_NM" >&6; }
4331 if test "$lt_cv_path_NM" != "no"; then
4332   NM="$lt_cv_path_NM"
4333 else
4334   # Didn't find any BSD compatible name lister, look for dumpbin.
4335   if test -n "$DUMPBIN"; then :
4336     # Let the user override the test.
4337   else
4338     if test -n "$ac_tool_prefix"; then
4339   for ac_prog in dumpbin "link -dump"
4340   do
4341     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if ${ac_cv_prog_DUMPBIN+:} false; then :
4346   $as_echo_n "(cached) " >&6
4347 else
4348   if test -n "$DUMPBIN"; then
4349   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356     for ac_exec_ext in '' $ac_executable_extensions; do
4357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363   done
4364 IFS=$as_save_IFS
4365
4366 fi
4367 fi
4368 DUMPBIN=$ac_cv_prog_DUMPBIN
4369 if test -n "$DUMPBIN"; then
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4371 $as_echo "$DUMPBIN" >&6; }
4372 else
4373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4375 fi
4376
4377
4378     test -n "$DUMPBIN" && break
4379   done
4380 fi
4381 if test -z "$DUMPBIN"; then
4382   ac_ct_DUMPBIN=$DUMPBIN
4383   for ac_prog in dumpbin "link -dump"
4384 do
4385   # Extract the first word of "$ac_prog", so it can be a program name with args.
4386 set dummy $ac_prog; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   if test -n "$ac_ct_DUMPBIN"; then
4393   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400     for ac_exec_ext in '' $ac_executable_extensions; do
4401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404     break 2
4405   fi
4406 done
4407   done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4413 if test -n "$ac_ct_DUMPBIN"; then
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4415 $as_echo "$ac_ct_DUMPBIN" >&6; }
4416 else
4417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420
4421
4422   test -n "$ac_ct_DUMPBIN" && break
4423 done
4424
4425   if test "x$ac_ct_DUMPBIN" = x; then
4426     DUMPBIN=":"
4427   else
4428     case $cross_compiling:$ac_tool_warned in
4429 yes:)
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432 ac_tool_warned=yes ;;
4433 esac
4434     DUMPBIN=$ac_ct_DUMPBIN
4435   fi
4436 fi
4437
4438     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4439     *COFF*)
4440       DUMPBIN="$DUMPBIN -symbols"
4441       ;;
4442     *)
4443       DUMPBIN=:
4444       ;;
4445     esac
4446   fi
4447
4448   if test "$DUMPBIN" != ":"; then
4449     NM="$DUMPBIN"
4450   fi
4451 fi
4452 test -z "$NM" && NM=nm
4453
4454
4455
4456
4457
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4460 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4461 if ${lt_cv_nm_interface+:} false; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464   lt_cv_nm_interface="BSD nm"
4465   echo "int some_variable = 0;" > conftest.$ac_ext
4466   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4467   (eval "$ac_compile" 2>conftest.err)
4468   cat conftest.err >&5
4469   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4470   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4471   cat conftest.err >&5
4472   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4473   cat conftest.out >&5
4474   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4475     lt_cv_nm_interface="MS dumpbin"
4476   fi
4477   rm -f conftest*
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4480 $as_echo "$lt_cv_nm_interface" >&6; }
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4483 $as_echo_n "checking whether ln -s works... " >&6; }
4484 LN_S=$as_ln_s
4485 if test "$LN_S" = "ln -s"; then
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4487 $as_echo "yes" >&6; }
4488 else
4489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4490 $as_echo "no, using $LN_S" >&6; }
4491 fi
4492
4493 # find the maximum length of command line arguments
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4495 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4496 if ${lt_cv_sys_max_cmd_len+:} false; then :
4497   $as_echo_n "(cached) " >&6
4498 else
4499     i=0
4500   teststring="ABCD"
4501
4502   case $build_os in
4503   msdosdjgpp*)
4504     # On DJGPP, this test can blow up pretty badly due to problems in libc
4505     # (any single argument exceeding 2000 bytes causes a buffer overrun
4506     # during glob expansion).  Even if it were fixed, the result of this
4507     # check would be larger than it should be.
4508     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4509     ;;
4510
4511   gnu*)
4512     # Under GNU Hurd, this test is not required because there is
4513     # no limit to the length of command line arguments.
4514     # Libtool will interpret -1 as no limit whatsoever
4515     lt_cv_sys_max_cmd_len=-1;
4516     ;;
4517
4518   cygwin* | mingw* | cegcc*)
4519     # On Win9x/ME, this test blows up -- it succeeds, but takes
4520     # about 5 minutes as the teststring grows exponentially.
4521     # Worse, since 9x/ME are not pre-emptively multitasking,
4522     # you end up with a "frozen" computer, even though with patience
4523     # the test eventually succeeds (with a max line length of 256k).
4524     # Instead, let's just punt: use the minimum linelength reported by
4525     # all of the supported platforms: 8192 (on NT/2K/XP).
4526     lt_cv_sys_max_cmd_len=8192;
4527     ;;
4528
4529   mint*)
4530     # On MiNT this can take a long time and run out of memory.
4531     lt_cv_sys_max_cmd_len=8192;
4532     ;;
4533
4534   amigaos*)
4535     # On AmigaOS with pdksh, this test takes hours, literally.
4536     # So we just punt and use a minimum line length of 8192.
4537     lt_cv_sys_max_cmd_len=8192;
4538     ;;
4539
4540   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4541     # This has been around since 386BSD, at least.  Likely further.
4542     if test -x /sbin/sysctl; then
4543       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4544     elif test -x /usr/sbin/sysctl; then
4545       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4546     else
4547       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4548     fi
4549     # And add a safety zone
4550     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4551     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4552     ;;
4553
4554   interix*)
4555     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4556     lt_cv_sys_max_cmd_len=196608
4557     ;;
4558
4559   osf*)
4560     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4561     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4562     # nice to cause kernel panics so lets avoid the loop below.
4563     # First set a reasonable default.
4564     lt_cv_sys_max_cmd_len=16384
4565     #
4566     if test -x /sbin/sysconfig; then
4567       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4568         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4569       esac
4570     fi
4571     ;;
4572   sco3.2v5*)
4573     lt_cv_sys_max_cmd_len=102400
4574     ;;
4575   sysv5* | sco5v6* | sysv4.2uw2*)
4576     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4577     if test -n "$kargmax"; then
4578       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4579     else
4580       lt_cv_sys_max_cmd_len=32768
4581     fi
4582     ;;
4583   *)
4584     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4585     if test -n "$lt_cv_sys_max_cmd_len"; then
4586       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4587       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4588     else
4589       # Make teststring a little bigger before we do anything with it.
4590       # a 1K string should be a reasonable start.
4591       for i in 1 2 3 4 5 6 7 8 ; do
4592         teststring=$teststring$teststring
4593       done
4594       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4595       # If test is not a shell built-in, we'll probably end up computing a
4596       # maximum length that is only half of the actual maximum length, but
4597       # we can't tell.
4598       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4599                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4600               test $i != 17 # 1/2 MB should be enough
4601       do
4602         i=`expr $i + 1`
4603         teststring=$teststring$teststring
4604       done
4605       # Only check the string length outside the loop.
4606       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4607       teststring=
4608       # Add a significant safety factor because C++ compilers can tack on
4609       # massive amounts of additional arguments before passing them to the
4610       # linker.  It appears as though 1/2 is a usable value.
4611       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4612     fi
4613     ;;
4614   esac
4615
4616 fi
4617
4618 if test -n $lt_cv_sys_max_cmd_len ; then
4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4620 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4621 else
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4623 $as_echo "none" >&6; }
4624 fi
4625 max_cmd_len=$lt_cv_sys_max_cmd_len
4626
4627
4628
4629
4630
4631
4632 : ${CP="cp -f"}
4633 : ${MV="mv -f"}
4634 : ${RM="rm -f"}
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4637 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4638 # Try some XSI features
4639 xsi_shell=no
4640 ( _lt_dummy="a/b/c"
4641   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4642       = c,a/b,b/c, \
4643     && eval 'test $(( 1 + 1 )) -eq 2 \
4644     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4645   && xsi_shell=yes
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4647 $as_echo "$xsi_shell" >&6; }
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4651 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4652 lt_shell_append=no
4653 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4654     >/dev/null 2>&1 \
4655   && lt_shell_append=yes
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4657 $as_echo "$lt_shell_append" >&6; }
4658
4659
4660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4661   lt_unset=unset
4662 else
4663   lt_unset=false
4664 fi
4665
4666
4667
4668
4669
4670 # test EBCDIC or ASCII
4671 case `echo X|tr X '\101'` in
4672  A) # ASCII based system
4673     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4674   lt_SP2NL='tr \040 \012'
4675   lt_NL2SP='tr \015\012 \040\040'
4676   ;;
4677  *) # EBCDIC based system
4678   lt_SP2NL='tr \100 \n'
4679   lt_NL2SP='tr \r\n \100\100'
4680   ;;
4681 esac
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4692 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4693 if ${lt_cv_to_host_file_cmd+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   case $host in
4697   *-*-mingw* )
4698     case $build in
4699       *-*-mingw* ) # actually msys
4700         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4701         ;;
4702       *-*-cygwin* )
4703         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4704         ;;
4705       * ) # otherwise, assume *nix
4706         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4707         ;;
4708     esac
4709     ;;
4710   *-*-cygwin* )
4711     case $build in
4712       *-*-mingw* ) # actually msys
4713         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4714         ;;
4715       *-*-cygwin* )
4716         lt_cv_to_host_file_cmd=func_convert_file_noop
4717         ;;
4718       * ) # otherwise, assume *nix
4719         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4720         ;;
4721     esac
4722     ;;
4723   * ) # unhandled hosts (and "normal" native builds)
4724     lt_cv_to_host_file_cmd=func_convert_file_noop
4725     ;;
4726 esac
4727
4728 fi
4729
4730 to_host_file_cmd=$lt_cv_to_host_file_cmd
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4732 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4733
4734
4735
4736
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4739 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4740 if ${lt_cv_to_tool_file_cmd+:} false; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   #assume ordinary cross tools, or native build.
4744 lt_cv_to_tool_file_cmd=func_convert_file_noop
4745 case $host in
4746   *-*-mingw* )
4747     case $build in
4748       *-*-mingw* ) # actually msys
4749         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4750         ;;
4751     esac
4752     ;;
4753 esac
4754
4755 fi
4756
4757 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4759 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4760
4761
4762
4763
4764
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4766 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4767 if ${lt_cv_ld_reload_flag+:} false; then :
4768   $as_echo_n "(cached) " >&6
4769 else
4770   lt_cv_ld_reload_flag='-r'
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4773 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4774 reload_flag=$lt_cv_ld_reload_flag
4775 case $reload_flag in
4776 "" | " "*) ;;
4777 *) reload_flag=" $reload_flag" ;;
4778 esac
4779 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4780 case $host_os in
4781   cygwin* | mingw* | pw32* | cegcc*)
4782     if test "$GCC" != yes; then
4783       reload_cmds=false
4784     fi
4785     ;;
4786   darwin*)
4787     if test "$GCC" = yes; then
4788       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4789     else
4790       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4791     fi
4792     ;;
4793 esac
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803 if test -n "$ac_tool_prefix"; then
4804   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4805 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_OBJDUMP+:} false; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   if test -n "$OBJDUMP"; then
4812   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819     for ac_exec_ext in '' $ac_executable_extensions; do
4820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826   done
4827 IFS=$as_save_IFS
4828
4829 fi
4830 fi
4831 OBJDUMP=$ac_cv_prog_OBJDUMP
4832 if test -n "$OBJDUMP"; then
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4834 $as_echo "$OBJDUMP" >&6; }
4835 else
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4838 fi
4839
4840
4841 fi
4842 if test -z "$ac_cv_prog_OBJDUMP"; then
4843   ac_ct_OBJDUMP=$OBJDUMP
4844   # Extract the first word of "objdump", so it can be a program name with args.
4845 set dummy objdump; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4849   $as_echo_n "(cached) " >&6
4850 else
4851   if test -n "$ac_ct_OBJDUMP"; then
4852   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857   IFS=$as_save_IFS
4858   test -z "$as_dir" && as_dir=.
4859     for ac_exec_ext in '' $ac_executable_extensions; do
4860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863     break 2
4864   fi
4865 done
4866   done
4867 IFS=$as_save_IFS
4868
4869 fi
4870 fi
4871 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4872 if test -n "$ac_ct_OBJDUMP"; then
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4874 $as_echo "$ac_ct_OBJDUMP" >&6; }
4875 else
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4878 fi
4879
4880   if test "x$ac_ct_OBJDUMP" = x; then
4881     OBJDUMP="false"
4882   else
4883     case $cross_compiling:$ac_tool_warned in
4884 yes:)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4887 ac_tool_warned=yes ;;
4888 esac
4889     OBJDUMP=$ac_ct_OBJDUMP
4890   fi
4891 else
4892   OBJDUMP="$ac_cv_prog_OBJDUMP"
4893 fi
4894
4895 test -z "$OBJDUMP" && OBJDUMP=objdump
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4906 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4907 if ${lt_cv_deplibs_check_method+:} false; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   lt_cv_file_magic_cmd='$MAGIC_CMD'
4911 lt_cv_file_magic_test_file=
4912 lt_cv_deplibs_check_method='unknown'
4913 # Need to set the preceding variable on all platforms that support
4914 # interlibrary dependencies.
4915 # 'none' -- dependencies not supported.
4916 # `unknown' -- same as none, but documents that we really don't know.
4917 # 'pass_all' -- all dependencies passed with no checks.
4918 # 'test_compile' -- check by making test program.
4919 # 'file_magic [[regex]]' -- check by looking for files in library path
4920 # which responds to the $file_magic_cmd with a given extended regex.
4921 # If you have `file' or equivalent on your system and you're not sure
4922 # whether `pass_all' will *always* work, you probably want this one.
4923
4924 case $host_os in
4925 aix[4-9]*)
4926   lt_cv_deplibs_check_method=pass_all
4927   ;;
4928
4929 beos*)
4930   lt_cv_deplibs_check_method=pass_all
4931   ;;
4932
4933 bsdi[45]*)
4934   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4935   lt_cv_file_magic_cmd='/usr/bin/file -L'
4936   lt_cv_file_magic_test_file=/shlib/libc.so
4937   ;;
4938
4939 cygwin*)
4940   # func_win32_libid is a shell function defined in ltmain.sh
4941   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4942   lt_cv_file_magic_cmd='func_win32_libid'
4943   ;;
4944
4945 mingw* | pw32*)
4946   # Base MSYS/MinGW do not provide the 'file' command needed by
4947   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4948   # unless we find 'file', for example because we are cross-compiling.
4949   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4950   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4951     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4952     lt_cv_file_magic_cmd='func_win32_libid'
4953   else
4954     # Keep this pattern in sync with the one in func_win32_libid.
4955     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4956     lt_cv_file_magic_cmd='$OBJDUMP -f'
4957   fi
4958   ;;
4959
4960 cegcc*)
4961   # use the weaker test based on 'objdump'. See mingw*.
4962   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4963   lt_cv_file_magic_cmd='$OBJDUMP -f'
4964   ;;
4965
4966 darwin* | rhapsody*)
4967   lt_cv_deplibs_check_method=pass_all
4968   ;;
4969
4970 freebsd* | dragonfly*)
4971   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4972     case $host_cpu in
4973     i*86 )
4974       # Not sure whether the presence of OpenBSD here was a mistake.
4975       # Let's accept both of them until this is cleared up.
4976       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4977       lt_cv_file_magic_cmd=/usr/bin/file
4978       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4979       ;;
4980     esac
4981   else
4982     lt_cv_deplibs_check_method=pass_all
4983   fi
4984   ;;
4985
4986 gnu*)
4987   lt_cv_deplibs_check_method=pass_all
4988   ;;
4989
4990 haiku*)
4991   lt_cv_deplibs_check_method=pass_all
4992   ;;
4993
4994 hpux10.20* | hpux11*)
4995   lt_cv_file_magic_cmd=/usr/bin/file
4996   case $host_cpu in
4997   ia64*)
4998     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4999     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5000     ;;
5001   hppa*64*)
5002     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]'
5003     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5004     ;;
5005   *)
5006     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5007     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5008     ;;
5009   esac
5010   ;;
5011
5012 interix[3-9]*)
5013   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5014   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5015   ;;
5016
5017 irix5* | irix6* | nonstopux*)
5018   case $LD in
5019   *-32|*"-32 ") libmagic=32-bit;;
5020   *-n32|*"-n32 ") libmagic=N32;;
5021   *-64|*"-64 ") libmagic=64-bit;;
5022   *) libmagic=never-match;;
5023   esac
5024   lt_cv_deplibs_check_method=pass_all
5025   ;;
5026
5027 # This must be Linux ELF.
5028 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5029   lt_cv_deplibs_check_method=pass_all
5030   ;;
5031
5032 netbsd* | netbsdelf*-gnu)
5033   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5034     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5035   else
5036     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5037   fi
5038   ;;
5039
5040 newos6*)
5041   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5042   lt_cv_file_magic_cmd=/usr/bin/file
5043   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5044   ;;
5045
5046 *nto* | *qnx*)
5047   lt_cv_deplibs_check_method=pass_all
5048   ;;
5049
5050 openbsd*)
5051   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5052     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5053   else
5054     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5055   fi
5056   ;;
5057
5058 osf3* | osf4* | osf5*)
5059   lt_cv_deplibs_check_method=pass_all
5060   ;;
5061
5062 rdos*)
5063   lt_cv_deplibs_check_method=pass_all
5064   ;;
5065
5066 solaris*)
5067   lt_cv_deplibs_check_method=pass_all
5068   ;;
5069
5070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5071   lt_cv_deplibs_check_method=pass_all
5072   ;;
5073
5074 sysv4 | sysv4.3*)
5075   case $host_vendor in
5076   motorola)
5077     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]'
5078     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5079     ;;
5080   ncr)
5081     lt_cv_deplibs_check_method=pass_all
5082     ;;
5083   sequent)
5084     lt_cv_file_magic_cmd='/bin/file'
5085     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5086     ;;
5087   sni)
5088     lt_cv_file_magic_cmd='/bin/file'
5089     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5090     lt_cv_file_magic_test_file=/lib/libc.so
5091     ;;
5092   siemens)
5093     lt_cv_deplibs_check_method=pass_all
5094     ;;
5095   pc)
5096     lt_cv_deplibs_check_method=pass_all
5097     ;;
5098   esac
5099   ;;
5100
5101 tpf*)
5102   lt_cv_deplibs_check_method=pass_all
5103   ;;
5104 esac
5105
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5108 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5109
5110 file_magic_glob=
5111 want_nocaseglob=no
5112 if test "$build" = "$host"; then
5113   case $host_os in
5114   mingw* | pw32*)
5115     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5116       want_nocaseglob=yes
5117     else
5118       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5119     fi
5120     ;;
5121   esac
5122 fi
5123
5124 file_magic_cmd=$lt_cv_file_magic_cmd
5125 deplibs_check_method=$lt_cv_deplibs_check_method
5126 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 if test -n "$ac_tool_prefix"; then
5150   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_DLLTOOL+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   if test -n "$DLLTOOL"; then
5158   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165     for ac_exec_ext in '' $ac_executable_extensions; do
5166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172   done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 DLLTOOL=$ac_cv_prog_DLLTOOL
5178 if test -n "$DLLTOOL"; then
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5180 $as_echo "$DLLTOOL" >&6; }
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187 fi
5188 if test -z "$ac_cv_prog_DLLTOOL"; then
5189   ac_ct_DLLTOOL=$DLLTOOL
5190   # Extract the first word of "dlltool", so it can be a program name with args.
5191 set dummy dlltool; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5195   $as_echo_n "(cached) " >&6
5196 else
5197   if test -n "$ac_ct_DLLTOOL"; then
5198   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203   IFS=$as_save_IFS
5204   test -z "$as_dir" && as_dir=.
5205     for ac_exec_ext in '' $ac_executable_extensions; do
5206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209     break 2
5210   fi
5211 done
5212   done
5213 IFS=$as_save_IFS
5214
5215 fi
5216 fi
5217 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5218 if test -n "$ac_ct_DLLTOOL"; then
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5220 $as_echo "$ac_ct_DLLTOOL" >&6; }
5221 else
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5224 fi
5225
5226   if test "x$ac_ct_DLLTOOL" = x; then
5227     DLLTOOL="false"
5228   else
5229     case $cross_compiling:$ac_tool_warned in
5230 yes:)
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233 ac_tool_warned=yes ;;
5234 esac
5235     DLLTOOL=$ac_ct_DLLTOOL
5236   fi
5237 else
5238   DLLTOOL="$ac_cv_prog_DLLTOOL"
5239 fi
5240
5241 test -z "$DLLTOOL" && DLLTOOL=dlltool
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5253 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5254 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   lt_cv_sharedlib_from_linklib_cmd='unknown'
5258
5259 case $host_os in
5260 cygwin* | mingw* | pw32* | cegcc*)
5261   # two different shell functions defined in ltmain.sh
5262   # decide which to use based on capabilities of $DLLTOOL
5263   case `$DLLTOOL --help 2>&1` in
5264   *--identify-strict*)
5265     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5266     ;;
5267   *)
5268     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5269     ;;
5270   esac
5271   ;;
5272 *)
5273   # fallback: assume linklib IS sharedlib
5274   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5275   ;;
5276 esac
5277
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5280 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5281 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5282 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5283
5284
5285
5286
5287
5288
5289
5290
5291 if test -n "$ac_tool_prefix"; then
5292   for ac_prog in ar
5293   do
5294     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_AR+:} false; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   if test -n "$AR"; then
5302   ac_cv_prog_AR="$AR" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307   IFS=$as_save_IFS
5308   test -z "$as_dir" && as_dir=.
5309     for ac_exec_ext in '' $ac_executable_extensions; do
5310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313     break 2
5314   fi
5315 done
5316   done
5317 IFS=$as_save_IFS
5318
5319 fi
5320 fi
5321 AR=$ac_cv_prog_AR
5322 if test -n "$AR"; then
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5324 $as_echo "$AR" >&6; }
5325 else
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329
5330
5331     test -n "$AR" && break
5332   done
5333 fi
5334 if test -z "$AR"; then
5335   ac_ct_AR=$AR
5336   for ac_prog in ar
5337 do
5338   # Extract the first word of "$ac_prog", so it can be a program name with args.
5339 set dummy $ac_prog; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   if test -n "$ac_ct_AR"; then
5346   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353     for ac_exec_ext in '' $ac_executable_extensions; do
5354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355     ac_cv_prog_ac_ct_AR="$ac_prog"
5356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360   done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5366 if test -n "$ac_ct_AR"; then
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5368 $as_echo "$ac_ct_AR" >&6; }
5369 else
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373
5374
5375   test -n "$ac_ct_AR" && break
5376 done
5377
5378   if test "x$ac_ct_AR" = x; then
5379     AR="false"
5380   else
5381     case $cross_compiling:$ac_tool_warned in
5382 yes:)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385 ac_tool_warned=yes ;;
5386 esac
5387     AR=$ac_ct_AR
5388   fi
5389 fi
5390
5391 : ${AR=ar}
5392 : ${AR_FLAGS=cru}
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5405 $as_echo_n "checking for archiver @FILE support... " >&6; }
5406 if ${lt_cv_ar_at_file+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   lt_cv_ar_at_file=no
5410    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h.  */
5412
5413 int
5414 main ()
5415 {
5416
5417   ;
5418   return 0;
5419 }
5420 _ACEOF
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422   echo conftest.$ac_objext > conftest.lst
5423       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5424       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5425   (eval $lt_ar_try) 2>&5
5426   ac_status=$?
5427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428   test $ac_status = 0; }
5429       if test "$ac_status" -eq 0; then
5430         # Ensure the archiver fails upon bogus file names.
5431         rm -f conftest.$ac_objext libconftest.a
5432         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5433   (eval $lt_ar_try) 2>&5
5434   ac_status=$?
5435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436   test $ac_status = 0; }
5437         if test "$ac_status" -ne 0; then
5438           lt_cv_ar_at_file=@
5439         fi
5440       fi
5441       rm -f conftest.* libconftest.a
5442
5443 fi
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5448 $as_echo "$lt_cv_ar_at_file" >&6; }
5449
5450 if test "x$lt_cv_ar_at_file" = xno; then
5451   archiver_list_spec=
5452 else
5453   archiver_list_spec=$lt_cv_ar_at_file
5454 fi
5455
5456
5457
5458
5459
5460
5461
5462 if test -n "$ac_tool_prefix"; then
5463   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}strip; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_STRIP+:} false; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   if test -n "$STRIP"; then
5471   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478     for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485   done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 STRIP=$ac_cv_prog_STRIP
5491 if test -n "$STRIP"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5493 $as_echo "$STRIP" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498
5499
5500 fi
5501 if test -z "$ac_cv_prog_STRIP"; then
5502   ac_ct_STRIP=$STRIP
5503   # Extract the first word of "strip", so it can be a program name with args.
5504 set dummy strip; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   if test -n "$ac_ct_STRIP"; then
5511   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518     for ac_exec_ext in '' $ac_executable_extensions; do
5519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520     ac_cv_prog_ac_ct_STRIP="strip"
5521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525   done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5531 if test -n "$ac_ct_STRIP"; then
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5533 $as_echo "$ac_ct_STRIP" >&6; }
5534 else
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539   if test "x$ac_ct_STRIP" = x; then
5540     STRIP=":"
5541   else
5542     case $cross_compiling:$ac_tool_warned in
5543 yes:)
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546 ac_tool_warned=yes ;;
5547 esac
5548     STRIP=$ac_ct_STRIP
5549   fi
5550 else
5551   STRIP="$ac_cv_prog_STRIP"
5552 fi
5553
5554 test -z "$STRIP" && STRIP=:
5555
5556
5557
5558
5559
5560
5561 if test -n "$ac_tool_prefix"; then
5562   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_RANLIB+:} false; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569   if test -n "$RANLIB"; then
5570   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577     for ac_exec_ext in '' $ac_executable_extensions; do
5578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584   done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 RANLIB=$ac_cv_prog_RANLIB
5590 if test -n "$RANLIB"; then
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5592 $as_echo "$RANLIB" >&6; }
5593 else
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598
5599 fi
5600 if test -z "$ac_cv_prog_RANLIB"; then
5601   ac_ct_RANLIB=$RANLIB
5602   # Extract the first word of "ranlib", so it can be a program name with args.
5603 set dummy ranlib; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   if test -n "$ac_ct_RANLIB"; then
5610   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617     for ac_exec_ext in '' $ac_executable_extensions; do
5618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619     ac_cv_prog_ac_ct_RANLIB="ranlib"
5620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624   done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5630 if test -n "$ac_ct_RANLIB"; then
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5632 $as_echo "$ac_ct_RANLIB" >&6; }
5633 else
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5636 fi
5637
5638   if test "x$ac_ct_RANLIB" = x; then
5639     RANLIB=":"
5640   else
5641     case $cross_compiling:$ac_tool_warned in
5642 yes:)
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5646 esac
5647     RANLIB=$ac_ct_RANLIB
5648   fi
5649 else
5650   RANLIB="$ac_cv_prog_RANLIB"
5651 fi
5652
5653 test -z "$RANLIB" && RANLIB=:
5654
5655
5656
5657
5658
5659
5660 # Determine commands to create old-style static archives.
5661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5662 old_postinstall_cmds='chmod 644 $oldlib'
5663 old_postuninstall_cmds=
5664
5665 if test -n "$RANLIB"; then
5666   case $host_os in
5667   openbsd*)
5668     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5669     ;;
5670   *)
5671     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5672     ;;
5673   esac
5674   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5675 fi
5676
5677 case $host_os in
5678   darwin*)
5679     lock_old_archive_extraction=yes ;;
5680   *)
5681     lock_old_archive_extraction=no ;;
5682 esac
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722 # If no C compiler was specified, use CC.
5723 LTCC=${LTCC-"$CC"}
5724
5725 # If no C compiler flags were specified, use CFLAGS.
5726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5727
5728 # Allow CC to be a program name with arguments.
5729 compiler=$CC
5730
5731
5732 # Check for command to grab the raw symbol name followed by C symbol from nm.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5734 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5735 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738
5739 # These are sane defaults that work on at least a few old systems.
5740 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5741
5742 # Character class describing NM global symbol codes.
5743 symcode='[BCDEGRST]'
5744
5745 # Regexp to match symbols that can be accessed directly from C.
5746 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5747
5748 # Define system-specific variables.
5749 case $host_os in
5750 aix*)
5751   symcode='[BCDT]'
5752   ;;
5753 cygwin* | mingw* | pw32* | cegcc*)
5754   symcode='[ABCDGISTW]'
5755   ;;
5756 hpux*)
5757   if test "$host_cpu" = ia64; then
5758     symcode='[ABCDEGRST]'
5759   fi
5760   ;;
5761 irix* | nonstopux*)
5762   symcode='[BCDEGRST]'
5763   ;;
5764 osf*)
5765   symcode='[BCDEGQRST]'
5766   ;;
5767 solaris*)
5768   symcode='[BDRT]'
5769   ;;
5770 sco3.2v5*)
5771   symcode='[DT]'
5772   ;;
5773 sysv4.2uw2*)
5774   symcode='[DT]'
5775   ;;
5776 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5777   symcode='[ABDT]'
5778   ;;
5779 sysv4)
5780   symcode='[DFNSTU]'
5781   ;;
5782 esac
5783
5784 # If we're using GNU nm, then use its standard symbol codes.
5785 case `$NM -V 2>&1` in
5786 *GNU* | *'with BFD'*)
5787   symcode='[ABCDGIRSTW]' ;;
5788 esac
5789
5790 # Transform an extracted symbol line into a proper C declaration.
5791 # Some systems (esp. on ia64) link data and code symbols differently,
5792 # so use this general approach.
5793 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5794
5795 # Transform an extracted symbol line into symbol name and symbol address
5796 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5797 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5798
5799 # Handle CRLF in mingw tool chain
5800 opt_cr=
5801 case $build_os in
5802 mingw*)
5803   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5804   ;;
5805 esac
5806
5807 # Try without a prefix underscore, then with it.
5808 for ac_symprfx in "" "_"; do
5809
5810   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5811   symxfrm="\\1 $ac_symprfx\\2 \\2"
5812
5813   # Write the raw and C identifiers.
5814   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5815     # Fake it for dumpbin and say T for any non-static function
5816     # and D for any global variable.
5817     # Also find C++ and __fastcall symbols from MSVC++,
5818     # which start with @ or ?.
5819     lt_cv_sys_global_symbol_pipe="$AWK '"\
5820 "     {last_section=section; section=\$ 3};"\
5821 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5822 "     \$ 0!~/External *\|/{next};"\
5823 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5824 "     {if(hide[section]) next};"\
5825 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5826 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5827 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5828 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5829 "     ' prfx=^$ac_symprfx"
5830   else
5831     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5832   fi
5833   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5834
5835   # Check to see that the pipe works correctly.
5836   pipe_works=no
5837
5838   rm -f conftest*
5839   cat > conftest.$ac_ext <<_LT_EOF
5840 #ifdef __cplusplus
5841 extern "C" {
5842 #endif
5843 char nm_test_var;
5844 void nm_test_func(void);
5845 void nm_test_func(void){}
5846 #ifdef __cplusplus
5847 }
5848 #endif
5849 int main(){nm_test_var='a';nm_test_func();return(0);}
5850 _LT_EOF
5851
5852   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5853   (eval $ac_compile) 2>&5
5854   ac_status=$?
5855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5856   test $ac_status = 0; }; then
5857     # Now try to grab the symbols.
5858     nlist=conftest.nm
5859     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5860   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5861   ac_status=$?
5862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863   test $ac_status = 0; } && test -s "$nlist"; then
5864       # Try sorting and uniquifying the output.
5865       if sort "$nlist" | uniq > "$nlist"T; then
5866         mv -f "$nlist"T "$nlist"
5867       else
5868         rm -f "$nlist"T
5869       fi
5870
5871       # Make sure that we snagged all the symbols we need.
5872       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5873         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5874           cat <<_LT_EOF > conftest.$ac_ext
5875 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5876 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5877 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5878    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5879 # define LT_DLSYM_CONST
5880 #elif defined(__osf__)
5881 /* This system does not cope well with relocations in const data.  */
5882 # define LT_DLSYM_CONST
5883 #else
5884 # define LT_DLSYM_CONST const
5885 #endif
5886
5887 #ifdef __cplusplus
5888 extern "C" {
5889 #endif
5890
5891 _LT_EOF
5892           # Now generate the symbol file.
5893           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5894
5895           cat <<_LT_EOF >> conftest.$ac_ext
5896
5897 /* The mapping between symbol names and symbols.  */
5898 LT_DLSYM_CONST struct {
5899   const char *name;
5900   void       *address;
5901 }
5902 lt__PROGRAM__LTX_preloaded_symbols[] =
5903 {
5904   { "@PROGRAM@", (void *) 0 },
5905 _LT_EOF
5906           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5907           cat <<\_LT_EOF >> conftest.$ac_ext
5908   {0, (void *) 0}
5909 };
5910
5911 /* This works around a problem in FreeBSD linker */
5912 #ifdef FREEBSD_WORKAROUND
5913 static const void *lt_preloaded_setup() {
5914   return lt__PROGRAM__LTX_preloaded_symbols;
5915 }
5916 #endif
5917
5918 #ifdef __cplusplus
5919 }
5920 #endif
5921 _LT_EOF
5922           # Now try linking the two files.
5923           mv conftest.$ac_objext conftstm.$ac_objext
5924           lt_globsym_save_LIBS=$LIBS
5925           lt_globsym_save_CFLAGS=$CFLAGS
5926           LIBS="conftstm.$ac_objext"
5927           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5928           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5929   (eval $ac_link) 2>&5
5930   ac_status=$?
5931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5932   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5933             pipe_works=yes
5934           fi
5935           LIBS=$lt_globsym_save_LIBS
5936           CFLAGS=$lt_globsym_save_CFLAGS
5937         else
5938           echo "cannot find nm_test_func in $nlist" >&5
5939         fi
5940       else
5941         echo "cannot find nm_test_var in $nlist" >&5
5942       fi
5943     else
5944       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5945     fi
5946   else
5947     echo "$progname: failed program was:" >&5
5948     cat conftest.$ac_ext >&5
5949   fi
5950   rm -rf conftest* conftst*
5951
5952   # Do not use the global_symbol_pipe unless it works.
5953   if test "$pipe_works" = yes; then
5954     break
5955   else
5956     lt_cv_sys_global_symbol_pipe=
5957   fi
5958 done
5959
5960 fi
5961
5962 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5963   lt_cv_sys_global_symbol_to_cdecl=
5964 fi
5965 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5967 $as_echo "failed" >&6; }
5968 else
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5970 $as_echo "ok" >&6; }
5971 fi
5972
5973 # Response file support.
5974 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5975   nm_file_list_spec='@'
5976 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5977   nm_file_list_spec='@'
5978 fi
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6007 $as_echo_n "checking for sysroot... " >&6; }
6008
6009 # Check whether --with-sysroot was given.
6010 if test "${with_sysroot+set}" = set; then :
6011   withval=$with_sysroot;
6012 else
6013   with_sysroot=no
6014 fi
6015
6016
6017 lt_sysroot=
6018 case ${with_sysroot} in #(
6019  yes)
6020    if test "$GCC" = yes; then
6021      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6022    fi
6023    ;; #(
6024  /*)
6025    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6026    ;; #(
6027  no|'')
6028    ;; #(
6029  *)
6030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6031 $as_echo "${with_sysroot}" >&6; }
6032    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6033    ;;
6034 esac
6035
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6037 $as_echo "${lt_sysroot:-no}" >&6; }
6038
6039
6040
6041
6042
6043 # Check whether --enable-libtool-lock was given.
6044 if test "${enable_libtool_lock+set}" = set; then :
6045   enableval=$enable_libtool_lock;
6046 fi
6047
6048 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6049
6050 # Some flags need to be propagated to the compiler or linker for good
6051 # libtool support.
6052 case $host in
6053 ia64-*-hpux*)
6054   # Find out which ABI we are using.
6055   echo 'int i;' > conftest.$ac_ext
6056   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6057   (eval $ac_compile) 2>&5
6058   ac_status=$?
6059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060   test $ac_status = 0; }; then
6061     case `/usr/bin/file conftest.$ac_objext` in
6062       *ELF-32*)
6063         HPUX_IA64_MODE="32"
6064         ;;
6065       *ELF-64*)
6066         HPUX_IA64_MODE="64"
6067         ;;
6068     esac
6069   fi
6070   rm -rf conftest*
6071   ;;
6072 *-*-irix6*)
6073   # Find out which ABI we are using.
6074   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6075   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6076   (eval $ac_compile) 2>&5
6077   ac_status=$?
6078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079   test $ac_status = 0; }; then
6080     if test "$lt_cv_prog_gnu_ld" = yes; then
6081       case `/usr/bin/file conftest.$ac_objext` in
6082         *32-bit*)
6083           LD="${LD-ld} -melf32bsmip"
6084           ;;
6085         *N32*)
6086           LD="${LD-ld} -melf32bmipn32"
6087           ;;
6088         *64-bit*)
6089           LD="${LD-ld} -melf64bmip"
6090         ;;
6091       esac
6092     else
6093       case `/usr/bin/file conftest.$ac_objext` in
6094         *32-bit*)
6095           LD="${LD-ld} -32"
6096           ;;
6097         *N32*)
6098           LD="${LD-ld} -n32"
6099           ;;
6100         *64-bit*)
6101           LD="${LD-ld} -64"
6102           ;;
6103       esac
6104     fi
6105   fi
6106   rm -rf conftest*
6107   ;;
6108
6109 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6110 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6111   # Find out which ABI we are using.
6112   echo 'int i;' > conftest.$ac_ext
6113   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6114   (eval $ac_compile) 2>&5
6115   ac_status=$?
6116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117   test $ac_status = 0; }; then
6118     case `/usr/bin/file conftest.o` in
6119       *32-bit*)
6120         case $host in
6121           x86_64-*kfreebsd*-gnu)
6122             LD="${LD-ld} -m elf_i386_fbsd"
6123             ;;
6124           x86_64-*linux*)
6125             LD="${LD-ld} -m elf_i386"
6126             ;;
6127           ppc64-*linux*|powerpc64-*linux*)
6128             LD="${LD-ld} -m elf32ppclinux"
6129             ;;
6130           s390x-*linux*)
6131             LD="${LD-ld} -m elf_s390"
6132             ;;
6133           sparc64-*linux*)
6134             LD="${LD-ld} -m elf32_sparc"
6135             ;;
6136         esac
6137         ;;
6138       *64-bit*)
6139         case $host in
6140           x86_64-*kfreebsd*-gnu)
6141             LD="${LD-ld} -m elf_x86_64_fbsd"
6142             ;;
6143           x86_64-*linux*)
6144             LD="${LD-ld} -m elf_x86_64"
6145             ;;
6146           ppc*-*linux*|powerpc*-*linux*)
6147             LD="${LD-ld} -m elf64ppc"
6148             ;;
6149           s390*-*linux*|s390*-*tpf*)
6150             LD="${LD-ld} -m elf64_s390"
6151             ;;
6152           sparc*-*linux*)
6153             LD="${LD-ld} -m elf64_sparc"
6154             ;;
6155         esac
6156         ;;
6157     esac
6158   fi
6159   rm -rf conftest*
6160   ;;
6161
6162 *-*-sco3.2v5*)
6163   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6164   SAVE_CFLAGS="$CFLAGS"
6165   CFLAGS="$CFLAGS -belf"
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6167 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6168 if ${lt_cv_cc_needs_belf+:} false; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   ac_ext=c
6172 ac_cpp='$CPP $CPPFLAGS'
6173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176
6177      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h.  */
6179
6180 int
6181 main ()
6182 {
6183
6184   ;
6185   return 0;
6186 }
6187 _ACEOF
6188 if ac_fn_c_try_link "$LINENO"; then :
6189   lt_cv_cc_needs_belf=yes
6190 else
6191   lt_cv_cc_needs_belf=no
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext \
6194     conftest$ac_exeext conftest.$ac_ext
6195      ac_ext=c
6196 ac_cpp='$CPP $CPPFLAGS'
6197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6203 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6204   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6205     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6206     CFLAGS="$SAVE_CFLAGS"
6207   fi
6208   ;;
6209 sparc*-*solaris*)
6210   # Find out which ABI we are using.
6211   echo 'int i;' > conftest.$ac_ext
6212   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6213   (eval $ac_compile) 2>&5
6214   ac_status=$?
6215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216   test $ac_status = 0; }; then
6217     case `/usr/bin/file conftest.o` in
6218     *64-bit*)
6219       case $lt_cv_prog_gnu_ld in
6220       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6221       *)
6222         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6223           LD="${LD-ld} -64"
6224         fi
6225         ;;
6226       esac
6227       ;;
6228     esac
6229   fi
6230   rm -rf conftest*
6231   ;;
6232 esac
6233
6234 need_locks="$enable_libtool_lock"
6235
6236 if test -n "$ac_tool_prefix"; then
6237   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}mt; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6242   $as_echo_n "(cached) " >&6
6243 else
6244   if test -n "$MANIFEST_TOOL"; then
6245   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252     for ac_exec_ext in '' $ac_executable_extensions; do
6253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259   done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6265 if test -n "$MANIFEST_TOOL"; then
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6267 $as_echo "$MANIFEST_TOOL" >&6; }
6268 else
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273
6274 fi
6275 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6276   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6277   # Extract the first word of "mt", so it can be a program name with args.
6278 set dummy mt; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6282   $as_echo_n "(cached) " >&6
6283 else
6284   if test -n "$ac_ct_MANIFEST_TOOL"; then
6285   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292     for ac_exec_ext in '' $ac_executable_extensions; do
6293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299   done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6305 if test -n "$ac_ct_MANIFEST_TOOL"; then
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6307 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6308 else
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6314     MANIFEST_TOOL=":"
6315   else
6316     case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6323   fi
6324 else
6325   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6326 fi
6327
6328 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6330 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6331 if ${lt_cv_path_mainfest_tool+:} false; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   lt_cv_path_mainfest_tool=no
6335   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6336   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6337   cat conftest.err >&5
6338   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6339     lt_cv_path_mainfest_tool=yes
6340   fi
6341   rm -f conftest*
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6344 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6345 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6346   MANIFEST_TOOL=:
6347 fi
6348
6349
6350
6351
6352
6353
6354   case $host_os in
6355     rhapsody* | darwin*)
6356     if test -n "$ac_tool_prefix"; then
6357   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6362   $as_echo_n "(cached) " >&6
6363 else
6364   if test -n "$DSYMUTIL"; then
6365   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372     for ac_exec_ext in '' $ac_executable_extensions; do
6373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379   done
6380 IFS=$as_save_IFS
6381
6382 fi
6383 fi
6384 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6385 if test -n "$DSYMUTIL"; then
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6387 $as_echo "$DSYMUTIL" >&6; }
6388 else
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6391 fi
6392
6393
6394 fi
6395 if test -z "$ac_cv_prog_DSYMUTIL"; then
6396   ac_ct_DSYMUTIL=$DSYMUTIL
6397   # Extract the first word of "dsymutil", so it can be a program name with args.
6398 set dummy dsymutil; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$ac_ct_DSYMUTIL"; then
6405   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6425 if test -n "$ac_ct_DSYMUTIL"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6427 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433   if test "x$ac_ct_DSYMUTIL" = x; then
6434     DSYMUTIL=":"
6435   else
6436     case $cross_compiling:$ac_tool_warned in
6437 yes:)
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442     DSYMUTIL=$ac_ct_DSYMUTIL
6443   fi
6444 else
6445   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6446 fi
6447
6448     if test -n "$ac_tool_prefix"; then
6449   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_NMEDIT+:} false; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   if test -n "$NMEDIT"; then
6457   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464     for ac_exec_ext in '' $ac_executable_extensions; do
6465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471   done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 NMEDIT=$ac_cv_prog_NMEDIT
6477 if test -n "$NMEDIT"; then
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6479 $as_echo "$NMEDIT" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 fi
6487 if test -z "$ac_cv_prog_NMEDIT"; then
6488   ac_ct_NMEDIT=$NMEDIT
6489   # Extract the first word of "nmedit", so it can be a program name with args.
6490 set dummy nmedit; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   if test -n "$ac_ct_NMEDIT"; then
6497   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502   IFS=$as_save_IFS
6503   test -z "$as_dir" && as_dir=.
6504     for ac_exec_ext in '' $ac_executable_extensions; do
6505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508     break 2
6509   fi
6510 done
6511   done
6512 IFS=$as_save_IFS
6513
6514 fi
6515 fi
6516 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6517 if test -n "$ac_ct_NMEDIT"; then
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6519 $as_echo "$ac_ct_NMEDIT" >&6; }
6520 else
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 fi
6524
6525   if test "x$ac_ct_NMEDIT" = x; then
6526     NMEDIT=":"
6527   else
6528     case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534     NMEDIT=$ac_ct_NMEDIT
6535   fi
6536 else
6537   NMEDIT="$ac_cv_prog_NMEDIT"
6538 fi
6539
6540     if test -n "$ac_tool_prefix"; then
6541   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_LIPO+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   if test -n "$LIPO"; then
6549   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556     for ac_exec_ext in '' $ac_executable_extensions; do
6557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563   done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 LIPO=$ac_cv_prog_LIPO
6569 if test -n "$LIPO"; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6571 $as_echo "$LIPO" >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577
6578 fi
6579 if test -z "$ac_cv_prog_LIPO"; then
6580   ac_ct_LIPO=$LIPO
6581   # Extract the first word of "lipo", so it can be a program name with args.
6582 set dummy lipo; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   if test -n "$ac_ct_LIPO"; then
6589   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598     ac_cv_prog_ac_ct_LIPO="lipo"
6599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603   done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6609 if test -n "$ac_ct_LIPO"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6611 $as_echo "$ac_ct_LIPO" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617   if test "x$ac_ct_LIPO" = x; then
6618     LIPO=":"
6619   else
6620     case $cross_compiling:$ac_tool_warned in
6621 yes:)
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6625 esac
6626     LIPO=$ac_ct_LIPO
6627   fi
6628 else
6629   LIPO="$ac_cv_prog_LIPO"
6630 fi
6631
6632     if test -n "$ac_tool_prefix"; then
6633   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}otool; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_OTOOL+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   if test -n "$OTOOL"; then
6641   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648     for ac_exec_ext in '' $ac_executable_extensions; do
6649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655   done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 OTOOL=$ac_cv_prog_OTOOL
6661 if test -n "$OTOOL"; then
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6663 $as_echo "$OTOOL" >&6; }
6664 else
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_OTOOL"; then
6672   ac_ct_OTOOL=$OTOOL
6673   # Extract the first word of "otool", so it can be a program name with args.
6674 set dummy otool; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   if test -n "$ac_ct_OTOOL"; then
6681   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688     for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_prog_ac_ct_OTOOL="otool"
6691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695   done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6701 if test -n "$ac_ct_OTOOL"; then
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6703 $as_echo "$ac_ct_OTOOL" >&6; }
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709   if test "x$ac_ct_OTOOL" = x; then
6710     OTOOL=":"
6711   else
6712     case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718     OTOOL=$ac_ct_OTOOL
6719   fi
6720 else
6721   OTOOL="$ac_cv_prog_OTOOL"
6722 fi
6723
6724     if test -n "$ac_tool_prefix"; then
6725   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_OTOOL64+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   if test -n "$OTOOL64"; then
6733   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740     for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747   done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 OTOOL64=$ac_cv_prog_OTOOL64
6753 if test -n "$OTOOL64"; then
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6755 $as_echo "$OTOOL64" >&6; }
6756 else
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_OTOOL64"; then
6764   ac_ct_OTOOL64=$OTOOL64
6765   # Extract the first word of "otool64", so it can be a program name with args.
6766 set dummy otool64; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6770   $as_echo_n "(cached) " >&6
6771 else
6772   if test -n "$ac_ct_OTOOL64"; then
6773   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778   IFS=$as_save_IFS
6779   test -z "$as_dir" && as_dir=.
6780     for ac_exec_ext in '' $ac_executable_extensions; do
6781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782     ac_cv_prog_ac_ct_OTOOL64="otool64"
6783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785   fi
6786 done
6787   done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6793 if test -n "$ac_ct_OTOOL64"; then
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6795 $as_echo "$ac_ct_OTOOL64" >&6; }
6796 else
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801   if test "x$ac_ct_OTOOL64" = x; then
6802     OTOOL64=":"
6803   else
6804     case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810     OTOOL64=$ac_ct_OTOOL64
6811   fi
6812 else
6813   OTOOL64="$ac_cv_prog_OTOOL64"
6814 fi
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6843 $as_echo_n "checking for -single_module linker flag... " >&6; }
6844 if ${lt_cv_apple_cc_single_mod+:} false; then :
6845   $as_echo_n "(cached) " >&6
6846 else
6847   lt_cv_apple_cc_single_mod=no
6848       if test -z "${LT_MULTI_MODULE}"; then
6849         # By default we will add the -single_module flag. You can override
6850         # by either setting the environment variable LT_MULTI_MODULE
6851         # non-empty at configure time, or by adding -multi_module to the
6852         # link flags.
6853         rm -rf libconftest.dylib*
6854         echo "int foo(void){return 1;}" > conftest.c
6855         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6856 -dynamiclib -Wl,-single_module conftest.c" >&5
6857         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6858           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6859         _lt_result=$?
6860         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6861           lt_cv_apple_cc_single_mod=yes
6862         else
6863           cat conftest.err >&5
6864         fi
6865         rm -rf libconftest.dylib*
6866         rm -f conftest.*
6867       fi
6868 fi
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6870 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6872 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6873 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876   lt_cv_ld_exported_symbols_list=no
6877       save_LDFLAGS=$LDFLAGS
6878       echo "_main" > conftest.sym
6879       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6880       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h.  */
6882
6883 int
6884 main ()
6885 {
6886
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 if ac_fn_c_try_link "$LINENO"; then :
6892   lt_cv_ld_exported_symbols_list=yes
6893 else
6894   lt_cv_ld_exported_symbols_list=no
6895 fi
6896 rm -f core conftest.err conftest.$ac_objext \
6897     conftest$ac_exeext conftest.$ac_ext
6898         LDFLAGS="$save_LDFLAGS"
6899
6900 fi
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6902 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6904 $as_echo_n "checking for -force_load linker flag... " >&6; }
6905 if ${lt_cv_ld_force_load+:} false; then :
6906   $as_echo_n "(cached) " >&6
6907 else
6908   lt_cv_ld_force_load=no
6909       cat > conftest.c << _LT_EOF
6910 int forced_loaded() { return 2;}
6911 _LT_EOF
6912       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6913       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6914       echo "$AR cru libconftest.a conftest.o" >&5
6915       $AR cru libconftest.a conftest.o 2>&5
6916       echo "$RANLIB libconftest.a" >&5
6917       $RANLIB libconftest.a 2>&5
6918       cat > conftest.c << _LT_EOF
6919 int main() { return 0;}
6920 _LT_EOF
6921       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6922       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6923       _lt_result=$?
6924       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6925         lt_cv_ld_force_load=yes
6926       else
6927         cat conftest.err >&5
6928       fi
6929         rm -f conftest.err libconftest.a conftest conftest.c
6930         rm -rf conftest.dSYM
6931
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6934 $as_echo "$lt_cv_ld_force_load" >&6; }
6935     case $host_os in
6936     rhapsody* | darwin1.[012])
6937       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6938     darwin1.*)
6939       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6940     darwin*) # darwin 5.x on
6941       # if running on 10.5 or later, the deployment target defaults
6942       # to the OS version, if on x86, and 10.4, the deployment
6943       # target defaults to 10.4. Don't you love it?
6944       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6945         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6946           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6947         10.[012]*)
6948           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6949         10.*)
6950           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6951       esac
6952     ;;
6953   esac
6954     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6955       _lt_dar_single_mod='$single_module'
6956     fi
6957     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6958       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6959     else
6960       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6961     fi
6962     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6963       _lt_dsymutil='~$DSYMUTIL $lib || :'
6964     else
6965       _lt_dsymutil=
6966     fi
6967     ;;
6968   esac
6969
6970 ac_ext=c
6971 ac_cpp='$CPP $CPPFLAGS'
6972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6977 # On Suns, sometimes $CPP names a directory.
6978 if test -n "$CPP" && test -d "$CPP"; then
6979   CPP=
6980 fi
6981 if test -z "$CPP"; then
6982   if ${ac_cv_prog_CPP+:} false; then :
6983   $as_echo_n "(cached) " >&6
6984 else
6985       # Double quotes because CPP needs to be expanded
6986     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6987     do
6988       ac_preproc_ok=false
6989 for ac_c_preproc_warn_flag in '' yes
6990 do
6991   # Use a header file that comes with gcc, so configuring glibc
6992   # with a fresh cross-compiler works.
6993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994   # <limits.h> exists even on freestanding compilers.
6995   # On the NeXT, cc -E runs the code through the compiler's parser,
6996   # not just through cpp. "Syntax error" is here to catch this case.
6997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h.  */
6999 #ifdef __STDC__
7000 # include <limits.h>
7001 #else
7002 # include <assert.h>
7003 #endif
7004                      Syntax error
7005 _ACEOF
7006 if ac_fn_c_try_cpp "$LINENO"; then :
7007
7008 else
7009   # Broken: fails on valid input.
7010 continue
7011 fi
7012 rm -f conftest.err conftest.i conftest.$ac_ext
7013
7014   # OK, works on sane cases.  Now check whether nonexistent headers
7015   # can be detected and how.
7016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018 #include <ac_nonexistent.h>
7019 _ACEOF
7020 if ac_fn_c_try_cpp "$LINENO"; then :
7021   # Broken: success on invalid input.
7022 continue
7023 else
7024   # Passes both tests.
7025 ac_preproc_ok=:
7026 break
7027 fi
7028 rm -f conftest.err conftest.i conftest.$ac_ext
7029
7030 done
7031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7032 rm -f conftest.i conftest.err conftest.$ac_ext
7033 if $ac_preproc_ok; then :
7034   break
7035 fi
7036
7037     done
7038     ac_cv_prog_CPP=$CPP
7039
7040 fi
7041   CPP=$ac_cv_prog_CPP
7042 else
7043   ac_cv_prog_CPP=$CPP
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7046 $as_echo "$CPP" >&6; }
7047 ac_preproc_ok=false
7048 for ac_c_preproc_warn_flag in '' yes
7049 do
7050   # Use a header file that comes with gcc, so configuring glibc
7051   # with a fresh cross-compiler works.
7052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7053   # <limits.h> exists even on freestanding compilers.
7054   # On the NeXT, cc -E runs the code through the compiler's parser,
7055   # not just through cpp. "Syntax error" is here to catch this case.
7056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h.  */
7058 #ifdef __STDC__
7059 # include <limits.h>
7060 #else
7061 # include <assert.h>
7062 #endif
7063                      Syntax error
7064 _ACEOF
7065 if ac_fn_c_try_cpp "$LINENO"; then :
7066
7067 else
7068   # Broken: fails on valid input.
7069 continue
7070 fi
7071 rm -f conftest.err conftest.i conftest.$ac_ext
7072
7073   # OK, works on sane cases.  Now check whether nonexistent headers
7074   # can be detected and how.
7075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h.  */
7077 #include <ac_nonexistent.h>
7078 _ACEOF
7079 if ac_fn_c_try_cpp "$LINENO"; then :
7080   # Broken: success on invalid input.
7081 continue
7082 else
7083   # Passes both tests.
7084 ac_preproc_ok=:
7085 break
7086 fi
7087 rm -f conftest.err conftest.i conftest.$ac_ext
7088
7089 done
7090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7091 rm -f conftest.i conftest.err conftest.$ac_ext
7092 if $ac_preproc_ok; then :
7093
7094 else
7095   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7097 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7098 See \`config.log' for more details" "$LINENO" 5; }
7099 fi
7100
7101 ac_ext=c
7102 ac_cpp='$CPP $CPPFLAGS'
7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7106
7107
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7109 $as_echo_n "checking for ANSI C header files... " >&6; }
7110 if ${ac_cv_header_stdc+:} false; then :
7111   $as_echo_n "(cached) " >&6
7112 else
7113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h.  */
7115 #include <stdlib.h>
7116 #include <stdarg.h>
7117 #include <string.h>
7118 #include <float.h>
7119
7120 int
7121 main ()
7122 {
7123
7124   ;
7125   return 0;
7126 }
7127 _ACEOF
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129   ac_cv_header_stdc=yes
7130 else
7131   ac_cv_header_stdc=no
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134
7135 if test $ac_cv_header_stdc = yes; then
7136   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h.  */
7139 #include <string.h>
7140
7141 _ACEOF
7142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7143   $EGREP "memchr" >/dev/null 2>&1; then :
7144
7145 else
7146   ac_cv_header_stdc=no
7147 fi
7148 rm -f conftest*
7149
7150 fi
7151
7152 if test $ac_cv_header_stdc = yes; then
7153   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h.  */
7156 #include <stdlib.h>
7157
7158 _ACEOF
7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160   $EGREP "free" >/dev/null 2>&1; then :
7161
7162 else
7163   ac_cv_header_stdc=no
7164 fi
7165 rm -f conftest*
7166
7167 fi
7168
7169 if test $ac_cv_header_stdc = yes; then
7170   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7171   if test "$cross_compiling" = yes; then :
7172   :
7173 else
7174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h.  */
7176 #include <ctype.h>
7177 #include <stdlib.h>
7178 #if ((' ' & 0x0FF) == 0x020)
7179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7181 #else
7182 # define ISLOWER(c) \
7183                    (('a' <= (c) && (c) <= 'i') \
7184                      || ('j' <= (c) && (c) <= 'r') \
7185                      || ('s' <= (c) && (c) <= 'z'))
7186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7187 #endif
7188
7189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7190 int
7191 main ()
7192 {
7193   int i;
7194   for (i = 0; i < 256; i++)
7195     if (XOR (islower (i), ISLOWER (i))
7196         || toupper (i) != TOUPPER (i))
7197       return 2;
7198   return 0;
7199 }
7200 _ACEOF
7201 if ac_fn_c_try_run "$LINENO"; then :
7202
7203 else
7204   ac_cv_header_stdc=no
7205 fi
7206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7207   conftest.$ac_objext conftest.beam conftest.$ac_ext
7208 fi
7209
7210 fi
7211 fi
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7213 $as_echo "$ac_cv_header_stdc" >&6; }
7214 if test $ac_cv_header_stdc = yes; then
7215
7216 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7217
7218 fi
7219
7220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7222                   inttypes.h stdint.h unistd.h
7223 do :
7224   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7225 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7226 "
7227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7228   cat >>confdefs.h <<_ACEOF
7229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7230 _ACEOF
7231
7232 fi
7233
7234 done
7235
7236
7237 for ac_header in dlfcn.h
7238 do :
7239   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7240 "
7241 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7242   cat >>confdefs.h <<_ACEOF
7243 #define HAVE_DLFCN_H 1
7244 _ACEOF
7245
7246 fi
7247
7248 done
7249
7250
7251
7252
7253
7254 # Set options
7255
7256
7257
7258         enable_dlopen=no
7259
7260
7261   enable_win32_dll=no
7262
7263
7264             # Check whether --enable-shared was given.
7265 if test "${enable_shared+set}" = set; then :
7266   enableval=$enable_shared; p=${PACKAGE-default}
7267     case $enableval in
7268     yes) enable_shared=yes ;;
7269     no) enable_shared=no ;;
7270     *)
7271       enable_shared=no
7272       # Look at the argument we got.  We use all the common list separators.
7273       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7274       for pkg in $enableval; do
7275         IFS="$lt_save_ifs"
7276         if test "X$pkg" = "X$p"; then
7277           enable_shared=yes
7278         fi
7279       done
7280       IFS="$lt_save_ifs"
7281       ;;
7282     esac
7283 else
7284   enable_shared=yes
7285 fi
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295   # Check whether --enable-static was given.
7296 if test "${enable_static+set}" = set; then :
7297   enableval=$enable_static; p=${PACKAGE-default}
7298     case $enableval in
7299     yes) enable_static=yes ;;
7300     no) enable_static=no ;;
7301     *)
7302      enable_static=no
7303       # Look at the argument we got.  We use all the common list separators.
7304       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7305       for pkg in $enableval; do
7306         IFS="$lt_save_ifs"
7307         if test "X$pkg" = "X$p"; then
7308           enable_static=yes
7309         fi
7310       done
7311       IFS="$lt_save_ifs"
7312       ;;
7313     esac
7314 else
7315   enable_static=yes
7316 fi
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327 # Check whether --with-pic was given.
7328 if test "${with_pic+set}" = set; then :
7329   withval=$with_pic; pic_mode="$withval"
7330 else
7331   pic_mode=default
7332 fi
7333
7334
7335 test -z "$pic_mode" && pic_mode=default
7336
7337
7338
7339
7340
7341
7342
7343   # Check whether --enable-fast-install was given.
7344 if test "${enable_fast_install+set}" = set; then :
7345   enableval=$enable_fast_install; p=${PACKAGE-default}
7346     case $enableval in
7347     yes) enable_fast_install=yes ;;
7348     no) enable_fast_install=no ;;
7349     *)
7350       enable_fast_install=no
7351       # Look at the argument we got.  We use all the common list separators.
7352       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7353       for pkg in $enableval; do
7354         IFS="$lt_save_ifs"
7355         if test "X$pkg" = "X$p"; then
7356           enable_fast_install=yes
7357         fi
7358       done
7359       IFS="$lt_save_ifs"
7360       ;;
7361     esac
7362 else
7363   enable_fast_install=yes
7364 fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376 # This can be used to rebuild libtool when needed
7377 LIBTOOL_DEPS="$ltmain"
7378
7379 # Always use our own libtool.
7380 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407 test -z "$LN_S" && LN_S="ln -s"
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422 if test -n "${ZSH_VERSION+set}" ; then
7423    setopt NO_GLOB_SUBST
7424 fi
7425
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7427 $as_echo_n "checking for objdir... " >&6; }
7428 if ${lt_cv_objdir+:} false; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   rm -f .libs 2>/dev/null
7432 mkdir .libs 2>/dev/null
7433 if test -d .libs; then
7434   lt_cv_objdir=.libs
7435 else
7436   # MS-DOS does not allow filenames that begin with a dot.
7437   lt_cv_objdir=_libs
7438 fi
7439 rmdir .libs 2>/dev/null
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7442 $as_echo "$lt_cv_objdir" >&6; }
7443 objdir=$lt_cv_objdir
7444
7445
7446
7447
7448
7449 cat >>confdefs.h <<_ACEOF
7450 #define LT_OBJDIR "$lt_cv_objdir/"
7451 _ACEOF
7452
7453
7454
7455
7456 case $host_os in
7457 aix3*)
7458   # AIX sometimes has problems with the GCC collect2 program.  For some
7459   # reason, if we set the COLLECT_NAMES environment variable, the problems
7460   # vanish in a puff of smoke.
7461   if test "X${COLLECT_NAMES+set}" != Xset; then
7462     COLLECT_NAMES=
7463     export COLLECT_NAMES
7464   fi
7465   ;;
7466 esac
7467
7468 # Global variables:
7469 ofile=libtool
7470 can_build_shared=yes
7471
7472 # All known linkers require a `.a' archive for static linking (except MSVC,
7473 # which needs '.lib').
7474 libext=a
7475
7476 with_gnu_ld="$lt_cv_prog_gnu_ld"
7477
7478 old_CC="$CC"
7479 old_CFLAGS="$CFLAGS"
7480
7481 # Set sane defaults for various variables
7482 test -z "$CC" && CC=cc
7483 test -z "$LTCC" && LTCC=$CC
7484 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7485 test -z "$LD" && LD=ld
7486 test -z "$ac_objext" && ac_objext=o
7487
7488 for cc_temp in $compiler""; do
7489   case $cc_temp in
7490     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7491     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7492     \-*) ;;
7493     *) break;;
7494   esac
7495 done
7496 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7497
7498
7499 # Only perform the check for file, if the check method requires it
7500 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7501 case $deplibs_check_method in
7502 file_magic*)
7503   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7505 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7506 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   case $MAGIC_CMD in
7510 [\\/*] |  ?:[\\/]*)
7511   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7512   ;;
7513 *)
7514   lt_save_MAGIC_CMD="$MAGIC_CMD"
7515   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7516   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7517   for ac_dir in $ac_dummy; do
7518     IFS="$lt_save_ifs"
7519     test -z "$ac_dir" && ac_dir=.
7520     if test -f $ac_dir/${ac_tool_prefix}file; then
7521       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7522       if test -n "$file_magic_test_file"; then
7523         case $deplibs_check_method in
7524         "file_magic "*)
7525           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7526           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7527           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7528             $EGREP "$file_magic_regex" > /dev/null; then
7529             :
7530           else
7531             cat <<_LT_EOF 1>&2
7532
7533 *** Warning: the command libtool uses to detect shared libraries,
7534 *** $file_magic_cmd, produces output that libtool cannot recognize.
7535 *** The result is that libtool may fail to recognize shared libraries
7536 *** as such.  This will affect the creation of libtool libraries that
7537 *** depend on shared libraries, but programs linked with such libtool
7538 *** libraries will work regardless of this problem.  Nevertheless, you
7539 *** may want to report the problem to your system manager and/or to
7540 *** bug-libtool@gnu.org
7541
7542 _LT_EOF
7543           fi ;;
7544         esac
7545       fi
7546       break
7547     fi
7548   done
7549   IFS="$lt_save_ifs"
7550   MAGIC_CMD="$lt_save_MAGIC_CMD"
7551   ;;
7552 esac
7553 fi
7554
7555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7556 if test -n "$MAGIC_CMD"; then
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7558 $as_echo "$MAGIC_CMD" >&6; }
7559 else
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7562 fi
7563
7564
7565
7566
7567
7568 if test -z "$lt_cv_path_MAGIC_CMD"; then
7569   if test -n "$ac_tool_prefix"; then
7570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7571 $as_echo_n "checking for file... " >&6; }
7572 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   case $MAGIC_CMD in
7576 [\\/*] |  ?:[\\/]*)
7577   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7578   ;;
7579 *)
7580   lt_save_MAGIC_CMD="$MAGIC_CMD"
7581   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7582   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7583   for ac_dir in $ac_dummy; do
7584     IFS="$lt_save_ifs"
7585     test -z "$ac_dir" && ac_dir=.
7586     if test -f $ac_dir/file; then
7587       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7588       if test -n "$file_magic_test_file"; then
7589         case $deplibs_check_method in
7590         "file_magic "*)
7591           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7592           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7593           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7594             $EGREP "$file_magic_regex" > /dev/null; then
7595             :
7596           else
7597             cat <<_LT_EOF 1>&2
7598
7599 *** Warning: the command libtool uses to detect shared libraries,
7600 *** $file_magic_cmd, produces output that libtool cannot recognize.
7601 *** The result is that libtool may fail to recognize shared libraries
7602 *** as such.  This will affect the creation of libtool libraries that
7603 *** depend on shared libraries, but programs linked with such libtool
7604 *** libraries will work regardless of this problem.  Nevertheless, you
7605 *** may want to report the problem to your system manager and/or to
7606 *** bug-libtool@gnu.org
7607
7608 _LT_EOF
7609           fi ;;
7610         esac
7611       fi
7612       break
7613     fi
7614   done
7615   IFS="$lt_save_ifs"
7616   MAGIC_CMD="$lt_save_MAGIC_CMD"
7617   ;;
7618 esac
7619 fi
7620
7621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7622 if test -n "$MAGIC_CMD"; then
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7624 $as_echo "$MAGIC_CMD" >&6; }
7625 else
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7628 fi
7629
7630
7631   else
7632     MAGIC_CMD=:
7633   fi
7634 fi
7635
7636   fi
7637   ;;
7638 esac
7639
7640 # Use C for the default configuration in the libtool script
7641
7642 lt_save_CC="$CC"
7643 ac_ext=c
7644 ac_cpp='$CPP $CPPFLAGS'
7645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7648
7649
7650 # Source file extension for C test sources.
7651 ac_ext=c
7652
7653 # Object file extension for compiled C test sources.
7654 objext=o
7655 objext=$objext
7656
7657 # Code to be used in simple compile tests
7658 lt_simple_compile_test_code="int some_variable = 0;"
7659
7660 # Code to be used in simple link tests
7661 lt_simple_link_test_code='int main(){return(0);}'
7662
7663
7664
7665
7666
7667
7668
7669 # If no C compiler was specified, use CC.
7670 LTCC=${LTCC-"$CC"}
7671
7672 # If no C compiler flags were specified, use CFLAGS.
7673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7674
7675 # Allow CC to be a program name with arguments.
7676 compiler=$CC
7677
7678 # Save the default compiler, since it gets overwritten when the other
7679 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7680 compiler_DEFAULT=$CC
7681
7682 # save warnings/boilerplate of simple test code
7683 ac_outfile=conftest.$ac_objext
7684 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7686 _lt_compiler_boilerplate=`cat conftest.err`
7687 $RM conftest*
7688
7689 ac_outfile=conftest.$ac_objext
7690 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7692 _lt_linker_boilerplate=`cat conftest.err`
7693 $RM -r conftest*
7694
7695
7696 if test -n "$compiler"; then
7697
7698 lt_prog_compiler_no_builtin_flag=
7699
7700 if test "$GCC" = yes; then
7701   case $cc_basename in
7702   nvcc*)
7703     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7704   *)
7705     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7706   esac
7707
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7709 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7710 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713   lt_cv_prog_compiler_rtti_exceptions=no
7714    ac_outfile=conftest.$ac_objext
7715    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7716    lt_compiler_flag="-fno-rtti -fno-exceptions"
7717    # Insert the option either (1) after the last *FLAGS variable, or
7718    # (2) before a word containing "conftest.", or (3) at the end.
7719    # Note that $ac_compile itself does not contain backslashes and begins
7720    # with a dollar sign (not a hyphen), so the echo should work correctly.
7721    # The option is referenced via a variable to avoid confusing sed.
7722    lt_compile=`echo "$ac_compile" | $SED \
7723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7725    -e 's:$: $lt_compiler_flag:'`
7726    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7727    (eval "$lt_compile" 2>conftest.err)
7728    ac_status=$?
7729    cat conftest.err >&5
7730    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731    if (exit $ac_status) && test -s "$ac_outfile"; then
7732      # The compiler can only warn and ignore the option if not recognized
7733      # So say no if there are warnings other than the usual output.
7734      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7735      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7736      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7737        lt_cv_prog_compiler_rtti_exceptions=yes
7738      fi
7739    fi
7740    $RM conftest*
7741
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7744 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7745
7746 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7747     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7748 else
7749     :
7750 fi
7751
7752 fi
7753
7754
7755
7756
7757
7758
7759   lt_prog_compiler_wl=
7760 lt_prog_compiler_pic=
7761 lt_prog_compiler_static=
7762
7763
7764   if test "$GCC" = yes; then
7765     lt_prog_compiler_wl='-Wl,'
7766     lt_prog_compiler_static='-static'
7767
7768     case $host_os in
7769       aix*)
7770       # All AIX code is PIC.
7771       if test "$host_cpu" = ia64; then
7772         # AIX 5 now supports IA64 processor
7773         lt_prog_compiler_static='-Bstatic'
7774       fi
7775       ;;
7776
7777     amigaos*)
7778       case $host_cpu in
7779       powerpc)
7780             # see comment about AmigaOS4 .so support
7781             lt_prog_compiler_pic='-fPIC'
7782         ;;
7783       m68k)
7784             # FIXME: we need at least 68020 code to build shared libraries, but
7785             # adding the `-m68020' flag to GCC prevents building anything better,
7786             # like `-m68040'.
7787             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7788         ;;
7789       esac
7790       ;;
7791
7792     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7793       # PIC is the default for these OSes.
7794       ;;
7795
7796     mingw* | cygwin* | pw32* | os2* | cegcc*)
7797       # This hack is so that the source file can tell whether it is being
7798       # built for inclusion in a dll (and should export symbols for example).
7799       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7800       # (--disable-auto-import) libraries
7801       lt_prog_compiler_pic='-DDLL_EXPORT'
7802       ;;
7803
7804     darwin* | rhapsody*)
7805       # PIC is the default on this platform
7806       # Common symbols not allowed in MH_DYLIB files
7807       lt_prog_compiler_pic='-fno-common'
7808       ;;
7809
7810     haiku*)
7811       # PIC is the default for Haiku.
7812       # The "-static" flag exists, but is broken.
7813       lt_prog_compiler_static=
7814       ;;
7815
7816     hpux*)
7817       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7818       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7819       # sets the default TLS model and affects inlining.
7820       case $host_cpu in
7821       hppa*64*)
7822         # +Z the default
7823         ;;
7824       *)
7825         lt_prog_compiler_pic='-fPIC'
7826         ;;
7827       esac
7828       ;;
7829
7830     interix[3-9]*)
7831       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7832       # Instead, we relocate shared libraries at runtime.
7833       ;;
7834
7835     msdosdjgpp*)
7836       # Just because we use GCC doesn't mean we suddenly get shared libraries
7837       # on systems that don't support them.
7838       lt_prog_compiler_can_build_shared=no
7839       enable_shared=no
7840       ;;
7841
7842     *nto* | *qnx*)
7843       # QNX uses GNU C++, but need to define -shared option too, otherwise
7844       # it will coredump.
7845       lt_prog_compiler_pic='-fPIC -shared'
7846       ;;
7847
7848     sysv4*MP*)
7849       if test -d /usr/nec; then
7850         lt_prog_compiler_pic=-Kconform_pic
7851       fi
7852       ;;
7853
7854     *)
7855       lt_prog_compiler_pic='-fPIC'
7856       ;;
7857     esac
7858
7859     case $cc_basename in
7860     nvcc*) # Cuda Compiler Driver 2.2
7861       lt_prog_compiler_wl='-Xlinker '
7862       lt_prog_compiler_pic='-Xcompiler -fPIC'
7863       ;;
7864     esac
7865   else
7866     # PORTME Check for flag to pass linker flags through the system compiler.
7867     case $host_os in
7868     aix*)
7869       lt_prog_compiler_wl='-Wl,'
7870       if test "$host_cpu" = ia64; then
7871         # AIX 5 now supports IA64 processor
7872         lt_prog_compiler_static='-Bstatic'
7873       else
7874         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7875       fi
7876       ;;
7877
7878     mingw* | cygwin* | pw32* | os2* | cegcc*)
7879       # This hack is so that the source file can tell whether it is being
7880       # built for inclusion in a dll (and should export symbols for example).
7881       lt_prog_compiler_pic='-DDLL_EXPORT'
7882       ;;
7883
7884     hpux9* | hpux10* | hpux11*)
7885       lt_prog_compiler_wl='-Wl,'
7886       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7887       # not for PA HP-UX.
7888       case $host_cpu in
7889       hppa*64*|ia64*)
7890         # +Z the default
7891         ;;
7892       *)
7893         lt_prog_compiler_pic='+Z'
7894         ;;
7895       esac
7896       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7897       lt_prog_compiler_static='${wl}-a ${wl}archive'
7898       ;;
7899
7900     irix5* | irix6* | nonstopux*)
7901       lt_prog_compiler_wl='-Wl,'
7902       # PIC (with -KPIC) is the default.
7903       lt_prog_compiler_static='-non_shared'
7904       ;;
7905
7906     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7907       case $cc_basename in
7908       # old Intel for x86_64 which still supported -KPIC.
7909       ecc*)
7910         lt_prog_compiler_wl='-Wl,'
7911         lt_prog_compiler_pic='-KPIC'
7912         lt_prog_compiler_static='-static'
7913         ;;
7914       # icc used to be incompatible with GCC.
7915       # ICC 10 doesn't accept -KPIC any more.
7916       icc* | ifort*)
7917         lt_prog_compiler_wl='-Wl,'
7918         lt_prog_compiler_pic='-fPIC'
7919         lt_prog_compiler_static='-static'
7920         ;;
7921       # Lahey Fortran 8.1.
7922       lf95*)
7923         lt_prog_compiler_wl='-Wl,'
7924         lt_prog_compiler_pic='--shared'
7925         lt_prog_compiler_static='--static'
7926         ;;
7927       nagfor*)
7928         # NAG Fortran compiler
7929         lt_prog_compiler_wl='-Wl,-Wl,,'
7930         lt_prog_compiler_pic='-PIC'
7931         lt_prog_compiler_static='-Bstatic'
7932         ;;
7933       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7934         # Portland Group compilers (*not* the Pentium gcc compiler,
7935         # which looks to be a dead project)
7936         lt_prog_compiler_wl='-Wl,'
7937         lt_prog_compiler_pic='-fpic'
7938         lt_prog_compiler_static='-Bstatic'
7939         ;;
7940       ccc*)
7941         lt_prog_compiler_wl='-Wl,'
7942         # All Alpha code is PIC.
7943         lt_prog_compiler_static='-non_shared'
7944         ;;
7945       xl* | bgxl* | bgf* | mpixl*)
7946         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7947         lt_prog_compiler_wl='-Wl,'
7948         lt_prog_compiler_pic='-qpic'
7949         lt_prog_compiler_static='-qstaticlink'
7950         ;;
7951       *)
7952         case `$CC -V 2>&1 | sed 5q` in
7953         *Sun\ F* | *Sun*Fortran*)
7954           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7955           lt_prog_compiler_pic='-KPIC'
7956           lt_prog_compiler_static='-Bstatic'
7957           lt_prog_compiler_wl=''
7958           ;;
7959         *Sun\ C*)
7960           # Sun C 5.9
7961           lt_prog_compiler_pic='-KPIC'
7962           lt_prog_compiler_static='-Bstatic'
7963           lt_prog_compiler_wl='-Wl,'
7964           ;;
7965         esac
7966         ;;
7967       esac
7968       ;;
7969
7970     newsos6)
7971       lt_prog_compiler_pic='-KPIC'
7972       lt_prog_compiler_static='-Bstatic'
7973       ;;
7974
7975     *nto* | *qnx*)
7976       # QNX uses GNU C++, but need to define -shared option too, otherwise
7977       # it will coredump.
7978       lt_prog_compiler_pic='-fPIC -shared'
7979       ;;
7980
7981     osf3* | osf4* | osf5*)
7982       lt_prog_compiler_wl='-Wl,'
7983       # All OSF/1 code is PIC.
7984       lt_prog_compiler_static='-non_shared'
7985       ;;
7986
7987     rdos*)
7988       lt_prog_compiler_static='-non_shared'
7989       ;;
7990
7991     solaris*)
7992       lt_prog_compiler_pic='-KPIC'
7993       lt_prog_compiler_static='-Bstatic'
7994       case $cc_basename in
7995       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7996         lt_prog_compiler_wl='-Qoption ld ';;
7997       *)
7998         lt_prog_compiler_wl='-Wl,';;
7999       esac
8000       ;;
8001
8002     sunos4*)
8003       lt_prog_compiler_wl='-Qoption ld '
8004       lt_prog_compiler_pic='-PIC'
8005       lt_prog_compiler_static='-Bstatic'
8006       ;;
8007
8008     sysv4 | sysv4.2uw2* | sysv4.3*)
8009       lt_prog_compiler_wl='-Wl,'
8010       lt_prog_compiler_pic='-KPIC'
8011       lt_prog_compiler_static='-Bstatic'
8012       ;;
8013
8014     sysv4*MP*)
8015       if test -d /usr/nec ;then
8016         lt_prog_compiler_pic='-Kconform_pic'
8017         lt_prog_compiler_static='-Bstatic'
8018       fi
8019       ;;
8020
8021     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8022       lt_prog_compiler_wl='-Wl,'
8023       lt_prog_compiler_pic='-KPIC'
8024       lt_prog_compiler_static='-Bstatic'
8025       ;;
8026
8027     unicos*)
8028       lt_prog_compiler_wl='-Wl,'
8029       lt_prog_compiler_can_build_shared=no
8030       ;;
8031
8032     uts4*)
8033       lt_prog_compiler_pic='-pic'
8034       lt_prog_compiler_static='-Bstatic'
8035       ;;
8036
8037     *)
8038       lt_prog_compiler_can_build_shared=no
8039       ;;
8040     esac
8041   fi
8042
8043 case $host_os in
8044   # For platforms which do not support PIC, -DPIC is meaningless:
8045   *djgpp*)
8046     lt_prog_compiler_pic=
8047     ;;
8048   *)
8049     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8050     ;;
8051 esac
8052
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8054 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8055 if ${lt_cv_prog_compiler_pic+:} false; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8061 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8062 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8063
8064 #
8065 # Check to make sure the PIC flag actually works.
8066 #
8067 if test -n "$lt_prog_compiler_pic"; then
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8069 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8070 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8071   $as_echo_n "(cached) " >&6
8072 else
8073   lt_cv_prog_compiler_pic_works=no
8074    ac_outfile=conftest.$ac_objext
8075    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8076    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8077    # Insert the option either (1) after the last *FLAGS variable, or
8078    # (2) before a word containing "conftest.", or (3) at the end.
8079    # Note that $ac_compile itself does not contain backslashes and begins
8080    # with a dollar sign (not a hyphen), so the echo should work correctly.
8081    # The option is referenced via a variable to avoid confusing sed.
8082    lt_compile=`echo "$ac_compile" | $SED \
8083    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8085    -e 's:$: $lt_compiler_flag:'`
8086    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8087    (eval "$lt_compile" 2>conftest.err)
8088    ac_status=$?
8089    cat conftest.err >&5
8090    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091    if (exit $ac_status) && test -s "$ac_outfile"; then
8092      # The compiler can only warn and ignore the option if not recognized
8093      # So say no if there are warnings other than the usual output.
8094      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8095      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8096      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8097        lt_cv_prog_compiler_pic_works=yes
8098      fi
8099    fi
8100    $RM conftest*
8101
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8104 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8105
8106 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8107     case $lt_prog_compiler_pic in
8108      "" | " "*) ;;
8109      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8110      esac
8111 else
8112     lt_prog_compiler_pic=
8113      lt_prog_compiler_can_build_shared=no
8114 fi
8115
8116 fi
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128 #
8129 # Check to make sure the static flag actually works.
8130 #
8131 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8134 if ${lt_cv_prog_compiler_static_works+:} false; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   lt_cv_prog_compiler_static_works=no
8138    save_LDFLAGS="$LDFLAGS"
8139    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8140    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8141    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8142      # The linker can only warn and ignore the option if not recognized
8143      # So say no if there are warnings
8144      if test -s conftest.err; then
8145        # Append any errors to the config.log.
8146        cat conftest.err 1>&5
8147        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8148        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8149        if diff conftest.exp conftest.er2 >/dev/null; then
8150          lt_cv_prog_compiler_static_works=yes
8151        fi
8152      else
8153        lt_cv_prog_compiler_static_works=yes
8154      fi
8155    fi
8156    $RM -r conftest*
8157    LDFLAGS="$save_LDFLAGS"
8158
8159 fi
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8161 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8162
8163 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8164     :
8165 else
8166     lt_prog_compiler_static=
8167 fi
8168
8169
8170
8171
8172
8173
8174
8175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8176 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8177 if ${lt_cv_prog_compiler_c_o+:} false; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   lt_cv_prog_compiler_c_o=no
8181    $RM -r conftest 2>/dev/null
8182    mkdir conftest
8183    cd conftest
8184    mkdir out
8185    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8186
8187    lt_compiler_flag="-o out/conftest2.$ac_objext"
8188    # Insert the option either (1) after the last *FLAGS variable, or
8189    # (2) before a word containing "conftest.", or (3) at the end.
8190    # Note that $ac_compile itself does not contain backslashes and begins
8191    # with a dollar sign (not a hyphen), so the echo should work correctly.
8192    lt_compile=`echo "$ac_compile" | $SED \
8193    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8195    -e 's:$: $lt_compiler_flag:'`
8196    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8197    (eval "$lt_compile" 2>out/conftest.err)
8198    ac_status=$?
8199    cat out/conftest.err >&5
8200    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8202    then
8203      # The compiler can only warn and ignore the option if not recognized
8204      # So say no if there are warnings
8205      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8206      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8207      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8208        lt_cv_prog_compiler_c_o=yes
8209      fi
8210    fi
8211    chmod u+w . 2>&5
8212    $RM conftest*
8213    # SGI C++ compiler will create directory out/ii_files/ for
8214    # template instantiation
8215    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8216    $RM out/* && rmdir out
8217    cd ..
8218    $RM -r conftest
8219    $RM conftest*
8220
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8223 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8224
8225
8226
8227
8228
8229
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8232 if ${lt_cv_prog_compiler_c_o+:} false; then :
8233   $as_echo_n "(cached) " >&6
8234 else
8235   lt_cv_prog_compiler_c_o=no
8236    $RM -r conftest 2>/dev/null
8237    mkdir conftest
8238    cd conftest
8239    mkdir out
8240    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8241
8242    lt_compiler_flag="-o out/conftest2.$ac_objext"
8243    # Insert the option either (1) after the last *FLAGS variable, or
8244    # (2) before a word containing "conftest.", or (3) at the end.
8245    # Note that $ac_compile itself does not contain backslashes and begins
8246    # with a dollar sign (not a hyphen), so the echo should work correctly.
8247    lt_compile=`echo "$ac_compile" | $SED \
8248    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250    -e 's:$: $lt_compiler_flag:'`
8251    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8252    (eval "$lt_compile" 2>out/conftest.err)
8253    ac_status=$?
8254    cat out/conftest.err >&5
8255    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8257    then
8258      # The compiler can only warn and ignore the option if not recognized
8259      # So say no if there are warnings
8260      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8261      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8262      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8263        lt_cv_prog_compiler_c_o=yes
8264      fi
8265    fi
8266    chmod u+w . 2>&5
8267    $RM conftest*
8268    # SGI C++ compiler will create directory out/ii_files/ for
8269    # template instantiation
8270    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8271    $RM out/* && rmdir out
8272    cd ..
8273    $RM -r conftest
8274    $RM conftest*
8275
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8279
8280
8281
8282
8283 hard_links="nottested"
8284 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8285   # do not overwrite the value of need_locks provided by the user
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8287 $as_echo_n "checking if we can lock with hard links... " >&6; }
8288   hard_links=yes
8289   $RM conftest*
8290   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291   touch conftest.a
8292   ln conftest.a conftest.b 2>&5 || hard_links=no
8293   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8295 $as_echo "$hard_links" >&6; }
8296   if test "$hard_links" = no; then
8297     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8298 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8299     need_locks=warn
8300   fi
8301 else
8302   need_locks=no
8303 fi
8304
8305
8306
8307
8308
8309
8310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8311 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8312
8313   runpath_var=
8314   allow_undefined_flag=
8315   always_export_symbols=no
8316   archive_cmds=
8317   archive_expsym_cmds=
8318   compiler_needs_object=no
8319   enable_shared_with_static_runtimes=no
8320   export_dynamic_flag_spec=
8321   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8322   hardcode_automatic=no
8323   hardcode_direct=no
8324   hardcode_direct_absolute=no
8325   hardcode_libdir_flag_spec=
8326   hardcode_libdir_flag_spec_ld=
8327   hardcode_libdir_separator=
8328   hardcode_minus_L=no
8329   hardcode_shlibpath_var=unsupported
8330   inherit_rpath=no
8331   link_all_deplibs=unknown
8332   module_cmds=
8333   module_expsym_cmds=
8334   old_archive_from_new_cmds=
8335   old_archive_from_expsyms_cmds=
8336   thread_safe_flag_spec=
8337   whole_archive_flag_spec=
8338   # include_expsyms should be a list of space-separated symbols to be *always*
8339   # included in the symbol list
8340   include_expsyms=
8341   # exclude_expsyms can be an extended regexp of symbols to exclude
8342   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8343   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8344   # as well as any symbol that contains `d'.
8345   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8346   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8347   # platforms (ab)use it in PIC code, but their linkers get confused if
8348   # the symbol is explicitly referenced.  Since portable code cannot
8349   # rely on this symbol name, it's probably fine to never include it in
8350   # preloaded symbol tables.
8351   # Exclude shared library initialization/finalization symbols.
8352   extract_expsyms_cmds=
8353
8354   case $host_os in
8355   cygwin* | mingw* | pw32* | cegcc*)
8356     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8357     # When not using gcc, we currently assume that we are using
8358     # Microsoft Visual C++.
8359     if test "$GCC" != yes; then
8360       with_gnu_ld=no
8361     fi
8362     ;;
8363   interix*)
8364     # we just hope/assume this is gcc and not c89 (= MSVC++)
8365     with_gnu_ld=yes
8366     ;;
8367   openbsd*)
8368     with_gnu_ld=no
8369     ;;
8370   linux* | k*bsd*-gnu | gnu*)
8371     link_all_deplibs=no
8372     ;;
8373   esac
8374
8375   ld_shlibs=yes
8376
8377   # On some targets, GNU ld is compatible enough with the native linker
8378   # that we're better off using the native interface for both.
8379   lt_use_gnu_ld_interface=no
8380   if test "$with_gnu_ld" = yes; then
8381     case $host_os in
8382       aix*)
8383         # The AIX port of GNU ld has always aspired to compatibility
8384         # with the native linker.  However, as the warning in the GNU ld
8385         # block says, versions before 2.19.5* couldn't really create working
8386         # shared libraries, regardless of the interface used.
8387         case `$LD -v 2>&1` in
8388           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8389           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8390           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8391           *)
8392             lt_use_gnu_ld_interface=yes
8393             ;;
8394         esac
8395         ;;
8396       *)
8397         lt_use_gnu_ld_interface=yes
8398         ;;
8399     esac
8400   fi
8401
8402   if test "$lt_use_gnu_ld_interface" = yes; then
8403     # If archive_cmds runs LD, not CC, wlarc should be empty
8404     wlarc='${wl}'
8405
8406     # Set some defaults for GNU ld with shared library support. These
8407     # are reset later if shared libraries are not supported. Putting them
8408     # here allows them to be overridden if necessary.
8409     runpath_var=LD_RUN_PATH
8410     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8411     export_dynamic_flag_spec='${wl}--export-dynamic'
8412     # ancient GNU ld didn't support --whole-archive et. al.
8413     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8414       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8415     else
8416       whole_archive_flag_spec=
8417     fi
8418     supports_anon_versioning=no
8419     case `$LD -v 2>&1` in
8420       *GNU\ gold*) supports_anon_versioning=yes ;;
8421       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8422       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8423       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8424       *\ 2.11.*) ;; # other 2.11 versions
8425       *) supports_anon_versioning=yes ;;
8426     esac
8427
8428     # See if GNU ld supports shared libraries.
8429     case $host_os in
8430     aix[3-9]*)
8431       # On AIX/PPC, the GNU linker is very broken
8432       if test "$host_cpu" != ia64; then
8433         ld_shlibs=no
8434         cat <<_LT_EOF 1>&2
8435
8436 *** Warning: the GNU linker, at least up to release 2.19, is reported
8437 *** to be unable to reliably create shared libraries on AIX.
8438 *** Therefore, libtool is disabling shared libraries support.  If you
8439 *** really care for shared libraries, you may want to install binutils
8440 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8441 *** You will then need to restart the configuration process.
8442
8443 _LT_EOF
8444       fi
8445       ;;
8446
8447     amigaos*)
8448       case $host_cpu in
8449       powerpc)
8450             # see comment about AmigaOS4 .so support
8451             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452             archive_expsym_cmds=''
8453         ;;
8454       m68k)
8455             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)'
8456             hardcode_libdir_flag_spec='-L$libdir'
8457             hardcode_minus_L=yes
8458         ;;
8459       esac
8460       ;;
8461
8462     beos*)
8463       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8464         allow_undefined_flag=unsupported
8465         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8466         # support --undefined.  This deserves some investigation.  FIXME
8467         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468       else
8469         ld_shlibs=no
8470       fi
8471       ;;
8472
8473     cygwin* | mingw* | pw32* | cegcc*)
8474       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8475       # as there is no search path for DLLs.
8476       hardcode_libdir_flag_spec='-L$libdir'
8477       export_dynamic_flag_spec='${wl}--export-all-symbols'
8478       allow_undefined_flag=unsupported
8479       always_export_symbols=no
8480       enable_shared_with_static_runtimes=yes
8481       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'
8482       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8483
8484       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8485         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8486         # If the export-symbols file already is a .def file (1st line
8487         # is EXPORTS), use it as is; otherwise, prepend...
8488         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8489           cp $export_symbols $output_objdir/$soname.def;
8490         else
8491           echo EXPORTS > $output_objdir/$soname.def;
8492           cat $export_symbols >> $output_objdir/$soname.def;
8493         fi~
8494         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8495       else
8496         ld_shlibs=no
8497       fi
8498       ;;
8499
8500     haiku*)
8501       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502       link_all_deplibs=yes
8503       ;;
8504
8505     interix[3-9]*)
8506       hardcode_direct=no
8507       hardcode_shlibpath_var=no
8508       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8509       export_dynamic_flag_spec='${wl}-E'
8510       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8511       # Instead, shared libraries are loaded at an image base (0x10000000 by
8512       # default) and relocated if they conflict, which is a slow very memory
8513       # consuming and fragmenting process.  To avoid this, we pick a random,
8514       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8515       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8516       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8517       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'
8518       ;;
8519
8520     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8521       tmp_diet=no
8522       if test "$host_os" = linux-dietlibc; then
8523         case $cc_basename in
8524           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8525         esac
8526       fi
8527       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8528          && test "$tmp_diet" = no
8529       then
8530         tmp_addflag=' $pic_flag'
8531         tmp_sharedflag='-shared'
8532         case $cc_basename,$host_cpu in
8533         pgcc*)                          # Portland Group C compiler
8534           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'
8535           tmp_addflag=' $pic_flag'
8536           ;;
8537         pgf77* | pgf90* | pgf95* | pgfortran*)
8538                                         # Portland Group f77 and f90 compilers
8539           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'
8540           tmp_addflag=' $pic_flag -Mnomain' ;;
8541         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8542           tmp_addflag=' -i_dynamic' ;;
8543         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8544           tmp_addflag=' -i_dynamic -nofor_main' ;;
8545         ifc* | ifort*)                  # Intel Fortran compiler
8546           tmp_addflag=' -nofor_main' ;;
8547         lf95*)                          # Lahey Fortran 8.1
8548           whole_archive_flag_spec=
8549           tmp_sharedflag='--shared' ;;
8550         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8551           tmp_sharedflag='-qmkshrobj'
8552           tmp_addflag= ;;
8553         nvcc*)  # Cuda Compiler Driver 2.2
8554           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'
8555           compiler_needs_object=yes
8556           ;;
8557         esac
8558         case `$CC -V 2>&1 | sed 5q` in
8559         *Sun\ C*)                       # Sun C 5.9
8560           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'
8561           compiler_needs_object=yes
8562           tmp_sharedflag='-G' ;;
8563         *Sun\ F*)                       # Sun Fortran 8.3
8564           tmp_sharedflag='-G' ;;
8565         esac
8566         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567
8568         if test "x$supports_anon_versioning" = xyes; then
8569           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8570             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8571             echo "local: *; };" >> $output_objdir/$libname.ver~
8572             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8573         fi
8574
8575         case $cc_basename in
8576         xlf* | bgf* | bgxlf* | mpixlf*)
8577           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8578           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8579           hardcode_libdir_flag_spec=
8580           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8581           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8582           if test "x$supports_anon_versioning" = xyes; then
8583             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8584               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8585               echo "local: *; };" >> $output_objdir/$libname.ver~
8586               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8587           fi
8588           ;;
8589         esac
8590       else
8591         ld_shlibs=no
8592       fi
8593       ;;
8594
8595     netbsd* | netbsdelf*-gnu)
8596       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8597         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8598         wlarc=
8599       else
8600         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8602       fi
8603       ;;
8604
8605     solaris*)
8606       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8607         ld_shlibs=no
8608         cat <<_LT_EOF 1>&2
8609
8610 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8611 *** create shared libraries on Solaris systems.  Therefore, libtool
8612 *** is disabling shared libraries support.  We urge you to upgrade GNU
8613 *** binutils to release 2.9.1 or newer.  Another option is to modify
8614 *** your PATH or compiler configuration so that the native linker is
8615 *** used, and then restart.
8616
8617 _LT_EOF
8618       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8619         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8620         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8621       else
8622         ld_shlibs=no
8623       fi
8624       ;;
8625
8626     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8627       case `$LD -v 2>&1` in
8628         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8629         ld_shlibs=no
8630         cat <<_LT_EOF 1>&2
8631
8632 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8633 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8634 *** is disabling shared libraries support.  We urge you to upgrade GNU
8635 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8636 *** your PATH or compiler configuration so that the native linker is
8637 *** used, and then restart.
8638
8639 _LT_EOF
8640         ;;
8641         *)
8642           # For security reasons, it is highly recommended that you always
8643           # use absolute paths for naming shared libraries, and exclude the
8644           # DT_RUNPATH tag from executables and libraries.  But doing so
8645           # requires that you compile everything twice, which is a pain.
8646           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8647             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8650           else
8651             ld_shlibs=no
8652           fi
8653         ;;
8654       esac
8655       ;;
8656
8657     sunos4*)
8658       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8659       wlarc=
8660       hardcode_direct=yes
8661       hardcode_shlibpath_var=no
8662       ;;
8663
8664     *)
8665       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8666         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8668       else
8669         ld_shlibs=no
8670       fi
8671       ;;
8672     esac
8673
8674     if test "$ld_shlibs" = no; then
8675       runpath_var=
8676       hardcode_libdir_flag_spec=
8677       export_dynamic_flag_spec=
8678       whole_archive_flag_spec=
8679     fi
8680   else
8681     # PORTME fill in a description of your system's linker (not GNU ld)
8682     case $host_os in
8683     aix3*)
8684       allow_undefined_flag=unsupported
8685       always_export_symbols=yes
8686       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'
8687       # Note: this linker hardcodes the directories in LIBPATH if there
8688       # are no directories specified by -L.
8689       hardcode_minus_L=yes
8690       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8691         # Neither direct hardcoding nor static linking is supported with a
8692         # broken collect2.
8693         hardcode_direct=unsupported
8694       fi
8695       ;;
8696
8697     aix[4-9]*)
8698       if test "$host_cpu" = ia64; then
8699         # On IA64, the linker does run time linking by default, so we don't
8700         # have to do anything special.
8701         aix_use_runtimelinking=no
8702         exp_sym_flag='-Bexport'
8703         no_entry_flag=""
8704       else
8705         # If we're using GNU nm, then we don't want the "-C" option.
8706         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8707         # Also, AIX nm treats weak defined symbols like other global
8708         # defined symbols, whereas GNU nm marks them as "W".
8709         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8710           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8711         else
8712           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8713         fi
8714         aix_use_runtimelinking=no
8715
8716         # Test if we are trying to use run time linking or normal
8717         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8718         # need to do runtime linking.
8719         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8720           for ld_flag in $LDFLAGS; do
8721           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8722             aix_use_runtimelinking=yes
8723             break
8724           fi
8725           done
8726           ;;
8727         esac
8728
8729         exp_sym_flag='-bexport'
8730         no_entry_flag='-bnoentry'
8731       fi
8732
8733       # When large executables or shared objects are built, AIX ld can
8734       # have problems creating the table of contents.  If linking a library
8735       # or program results in "error TOC overflow" add -mminimal-toc to
8736       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8737       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8738
8739       archive_cmds=''
8740       hardcode_direct=yes
8741       hardcode_direct_absolute=yes
8742       hardcode_libdir_separator=':'
8743       link_all_deplibs=yes
8744       file_list_spec='${wl}-f,'
8745
8746       if test "$GCC" = yes; then
8747         case $host_os in aix4.[012]|aix4.[012].*)
8748         # We only want to do this on AIX 4.2 and lower, the check
8749         # below for broken collect2 doesn't work under 4.3+
8750           collect2name=`${CC} -print-prog-name=collect2`
8751           if test -f "$collect2name" &&
8752            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8753           then
8754           # We have reworked collect2
8755           :
8756           else
8757           # We have old collect2
8758           hardcode_direct=unsupported
8759           # It fails to find uninstalled libraries when the uninstalled
8760           # path is not listed in the libpath.  Setting hardcode_minus_L
8761           # to unsupported forces relinking
8762           hardcode_minus_L=yes
8763           hardcode_libdir_flag_spec='-L$libdir'
8764           hardcode_libdir_separator=
8765           fi
8766           ;;
8767         esac
8768         shared_flag='-shared'
8769         if test "$aix_use_runtimelinking" = yes; then
8770           shared_flag="$shared_flag "'${wl}-G'
8771         fi
8772         link_all_deplibs=no
8773       else
8774         # not using gcc
8775         if test "$host_cpu" = ia64; then
8776         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8777         # chokes on -Wl,-G. The following line is correct:
8778           shared_flag='-G'
8779         else
8780           if test "$aix_use_runtimelinking" = yes; then
8781             shared_flag='${wl}-G'
8782           else
8783             shared_flag='${wl}-bM:SRE'
8784           fi
8785         fi
8786       fi
8787
8788       export_dynamic_flag_spec='${wl}-bexpall'
8789       # It seems that -bexpall does not export symbols beginning with
8790       # underscore (_), so it is better to generate a list of symbols to export.
8791       always_export_symbols=yes
8792       if test "$aix_use_runtimelinking" = yes; then
8793         # Warning - without using the other runtime loading flags (-brtl),
8794         # -berok will link without error, but may produce a broken library.
8795         allow_undefined_flag='-berok'
8796         # Determine the default libpath from the value encoded in an
8797         # empty executable.
8798         if test "${lt_cv_aix_libpath+set}" = set; then
8799   aix_libpath=$lt_cv_aix_libpath
8800 else
8801   if ${lt_cv_aix_libpath_+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806
8807 int
8808 main ()
8809 {
8810
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816
8817   lt_aix_libpath_sed='
8818       /Import File Strings/,/^$/ {
8819           /^0/ {
8820               s/^0  *\([^ ]*\) *$/\1/
8821               p
8822           }
8823       }'
8824   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8825   # Check for a 64-bit object if we didn't find anything.
8826   if test -z "$lt_cv_aix_libpath_"; then
8827     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828   fi
8829 fi
8830 rm -f core conftest.err conftest.$ac_objext \
8831     conftest$ac_exeext conftest.$ac_ext
8832   if test -z "$lt_cv_aix_libpath_"; then
8833     lt_cv_aix_libpath_="/usr/lib:/lib"
8834   fi
8835
8836 fi
8837
8838   aix_libpath=$lt_cv_aix_libpath_
8839 fi
8840
8841         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8843       else
8844         if test "$host_cpu" = ia64; then
8845           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8846           allow_undefined_flag="-z nodefs"
8847           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"
8848         else
8849          # Determine the default libpath from the value encoded in an
8850          # empty executable.
8851          if test "${lt_cv_aix_libpath+set}" = set; then
8852   aix_libpath=$lt_cv_aix_libpath
8853 else
8854   if ${lt_cv_aix_libpath_+:} false; then :
8855   $as_echo_n "(cached) " >&6
8856 else
8857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h.  */
8859
8860 int
8861 main ()
8862 {
8863
8864   ;
8865   return 0;
8866 }
8867 _ACEOF
8868 if ac_fn_c_try_link "$LINENO"; then :
8869
8870   lt_aix_libpath_sed='
8871       /Import File Strings/,/^$/ {
8872           /^0/ {
8873               s/^0  *\([^ ]*\) *$/\1/
8874               p
8875           }
8876       }'
8877   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8878   # Check for a 64-bit object if we didn't find anything.
8879   if test -z "$lt_cv_aix_libpath_"; then
8880     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8881   fi
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext \
8884     conftest$ac_exeext conftest.$ac_ext
8885   if test -z "$lt_cv_aix_libpath_"; then
8886     lt_cv_aix_libpath_="/usr/lib:/lib"
8887   fi
8888
8889 fi
8890
8891   aix_libpath=$lt_cv_aix_libpath_
8892 fi
8893
8894          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8895           # Warning - without using the other run time loading flags,
8896           # -berok will link without error, but may produce a broken library.
8897           no_undefined_flag=' ${wl}-bernotok'
8898           allow_undefined_flag=' ${wl}-berok'
8899           if test "$with_gnu_ld" = yes; then
8900             # We only use this code for GNU lds that support --whole-archive.
8901             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8902           else
8903             # Exported symbols can be pulled into shared objects from archives
8904             whole_archive_flag_spec='$convenience'
8905           fi
8906           archive_cmds_need_lc=yes
8907           # This is similar to how AIX traditionally builds its shared libraries.
8908           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8909         fi
8910       fi
8911       ;;
8912
8913     amigaos*)
8914       case $host_cpu in
8915       powerpc)
8916             # see comment about AmigaOS4 .so support
8917             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918             archive_expsym_cmds=''
8919         ;;
8920       m68k)
8921             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)'
8922             hardcode_libdir_flag_spec='-L$libdir'
8923             hardcode_minus_L=yes
8924         ;;
8925       esac
8926       ;;
8927
8928     bsdi[45]*)
8929       export_dynamic_flag_spec=-rdynamic
8930       ;;
8931
8932     cygwin* | mingw* | pw32* | cegcc*)
8933       # When not using gcc, we currently assume that we are using
8934       # Microsoft Visual C++.
8935       # hardcode_libdir_flag_spec is actually meaningless, as there is
8936       # no search path for DLLs.
8937       case $cc_basename in
8938       cl*)
8939         # Native MSVC
8940         hardcode_libdir_flag_spec=' '
8941         allow_undefined_flag=unsupported
8942         always_export_symbols=yes
8943         file_list_spec='@'
8944         # Tell ltmain to make .lib files, not .a files.
8945         libext=lib
8946         # Tell ltmain to make .dll files, not .so files.
8947         shrext_cmds=".dll"
8948         # FIXME: Setting linknames here is a bad hack.
8949         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8950         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8951             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8952           else
8953             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8954           fi~
8955           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8956           linknames='
8957         # The linker will not automatically build a static lib if we build a DLL.
8958         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8959         enable_shared_with_static_runtimes=yes
8960         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8961         # Don't use ranlib
8962         old_postinstall_cmds='chmod 644 $oldlib'
8963         postlink_cmds='lt_outputfile="@OUTPUT@"~
8964           lt_tool_outputfile="@TOOL_OUTPUT@"~
8965           case $lt_outputfile in
8966             *.exe|*.EXE) ;;
8967             *)
8968               lt_outputfile="$lt_outputfile.exe"
8969               lt_tool_outputfile="$lt_tool_outputfile.exe"
8970               ;;
8971           esac~
8972           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8973             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8974             $RM "$lt_outputfile.manifest";
8975           fi'
8976         ;;
8977       *)
8978         # Assume MSVC wrapper
8979         hardcode_libdir_flag_spec=' '
8980         allow_undefined_flag=unsupported
8981         # Tell ltmain to make .lib files, not .a files.
8982         libext=lib
8983         # Tell ltmain to make .dll files, not .so files.
8984         shrext_cmds=".dll"
8985         # FIXME: Setting linknames here is a bad hack.
8986         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8987         # The linker will automatically build a .lib file if we build a DLL.
8988         old_archive_from_new_cmds='true'
8989         # FIXME: Should let the user specify the lib program.
8990         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8991         enable_shared_with_static_runtimes=yes
8992         ;;
8993       esac
8994       ;;
8995
8996     darwin* | rhapsody*)
8997
8998
8999   archive_cmds_need_lc=no
9000   hardcode_direct=no
9001   hardcode_automatic=yes
9002   hardcode_shlibpath_var=unsupported
9003   if test "$lt_cv_ld_force_load" = "yes"; then
9004     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\"`'
9005   else
9006     whole_archive_flag_spec=''
9007   fi
9008   link_all_deplibs=yes
9009   allow_undefined_flag="$_lt_dar_allow_undefined"
9010   case $cc_basename in
9011      ifort*) _lt_dar_can_shared=yes ;;
9012      *) _lt_dar_can_shared=$GCC ;;
9013   esac
9014   if test "$_lt_dar_can_shared" = "yes"; then
9015     output_verbose_link_cmd=func_echo_all
9016     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9017     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9018     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}"
9019     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}"
9020
9021   else
9022   ld_shlibs=no
9023   fi
9024
9025       ;;
9026
9027     dgux*)
9028       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029       hardcode_libdir_flag_spec='-L$libdir'
9030       hardcode_shlibpath_var=no
9031       ;;
9032
9033     freebsd1*)
9034       ld_shlibs=no
9035       ;;
9036
9037     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9038     # support.  Future versions do this automatically, but an explicit c++rt0.o
9039     # does not break anything, and helps significantly (at the cost of a little
9040     # extra space).
9041     freebsd2.2*)
9042       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9043       hardcode_libdir_flag_spec='-R$libdir'
9044       hardcode_direct=yes
9045       hardcode_shlibpath_var=no
9046       ;;
9047
9048     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9049     freebsd2*)
9050       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9051       hardcode_direct=yes
9052       hardcode_minus_L=yes
9053       hardcode_shlibpath_var=no
9054       ;;
9055
9056     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9057     freebsd* | dragonfly*)
9058       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9059       hardcode_libdir_flag_spec='-R$libdir'
9060       hardcode_direct=yes
9061       hardcode_shlibpath_var=no
9062       ;;
9063
9064     hpux9*)
9065       if test "$GCC" = yes; then
9066         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9067       else
9068         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9069       fi
9070       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9071       hardcode_libdir_separator=:
9072       hardcode_direct=yes
9073
9074       # hardcode_minus_L: Not really in the search PATH,
9075       # but as the default location of the library.
9076       hardcode_minus_L=yes
9077       export_dynamic_flag_spec='${wl}-E'
9078       ;;
9079
9080     hpux10*)
9081       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9082         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9083       else
9084         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9085       fi
9086       if test "$with_gnu_ld" = no; then
9087         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9088         hardcode_libdir_flag_spec_ld='+b $libdir'
9089         hardcode_libdir_separator=:
9090         hardcode_direct=yes
9091         hardcode_direct_absolute=yes
9092         export_dynamic_flag_spec='${wl}-E'
9093         # hardcode_minus_L: Not really in the search PATH,
9094         # but as the default location of the library.
9095         hardcode_minus_L=yes
9096       fi
9097       ;;
9098
9099     hpux11*)
9100       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9101         case $host_cpu in
9102         hppa*64*)
9103           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9104           ;;
9105         ia64*)
9106           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9107           ;;
9108         *)
9109           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9110           ;;
9111         esac
9112       else
9113         case $host_cpu in
9114         hppa*64*)
9115           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9116           ;;
9117         ia64*)
9118           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9119           ;;
9120         *)
9121
9122           # Older versions of the 11.00 compiler do not understand -b yet
9123           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9124           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9125 $as_echo_n "checking if $CC understands -b... " >&6; }
9126 if ${lt_cv_prog_compiler__b+:} false; then :
9127   $as_echo_n "(cached) " >&6
9128 else
9129   lt_cv_prog_compiler__b=no
9130    save_LDFLAGS="$LDFLAGS"
9131    LDFLAGS="$LDFLAGS -b"
9132    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9133    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9134      # The linker can only warn and ignore the option if not recognized
9135      # So say no if there are warnings
9136      if test -s conftest.err; then
9137        # Append any errors to the config.log.
9138        cat conftest.err 1>&5
9139        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9140        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9141        if diff conftest.exp conftest.er2 >/dev/null; then
9142          lt_cv_prog_compiler__b=yes
9143        fi
9144      else
9145        lt_cv_prog_compiler__b=yes
9146      fi
9147    fi
9148    $RM -r conftest*
9149    LDFLAGS="$save_LDFLAGS"
9150
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9153 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9154
9155 if test x"$lt_cv_prog_compiler__b" = xyes; then
9156     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9157 else
9158     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9159 fi
9160
9161           ;;
9162         esac
9163       fi
9164       if test "$with_gnu_ld" = no; then
9165         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166         hardcode_libdir_separator=:
9167
9168         case $host_cpu in
9169         hppa*64*|ia64*)
9170           hardcode_direct=no
9171           hardcode_shlibpath_var=no
9172           ;;
9173         *)
9174           hardcode_direct=yes
9175           hardcode_direct_absolute=yes
9176           export_dynamic_flag_spec='${wl}-E'
9177
9178           # hardcode_minus_L: Not really in the search PATH,
9179           # but as the default location of the library.
9180           hardcode_minus_L=yes
9181           ;;
9182         esac
9183       fi
9184       ;;
9185
9186     irix5* | irix6* | nonstopux*)
9187       if test "$GCC" = yes; then
9188         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'
9189         # Try to use the -exported_symbol ld option, if it does not
9190         # work, assume that -exports_file does not work either and
9191         # implicitly export all symbols.
9192         # This should be the same for all languages, so no per-tag cache variable.
9193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9194 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9195 if ${lt_cv_irix_exported_symbol+:} false; then :
9196   $as_echo_n "(cached) " >&6
9197 else
9198   save_LDFLAGS="$LDFLAGS"
9199            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9200            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h.  */
9202 int foo (void) { return 0; }
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205   lt_cv_irix_exported_symbol=yes
9206 else
9207   lt_cv_irix_exported_symbol=no
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext \
9210     conftest$ac_exeext conftest.$ac_ext
9211            LDFLAGS="$save_LDFLAGS"
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9214 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9215         if test "$lt_cv_irix_exported_symbol" = yes; then
9216           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'
9217         fi
9218       else
9219         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'
9220         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'
9221       fi
9222       archive_cmds_need_lc='no'
9223       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9224       hardcode_libdir_separator=:
9225       inherit_rpath=yes
9226       link_all_deplibs=yes
9227       ;;
9228
9229     netbsd* | netbsdelf*-gnu)
9230       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9231         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9232       else
9233         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9234       fi
9235       hardcode_libdir_flag_spec='-R$libdir'
9236       hardcode_direct=yes
9237       hardcode_shlibpath_var=no
9238       ;;
9239
9240     newsos6)
9241       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9242       hardcode_direct=yes
9243       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244       hardcode_libdir_separator=:
9245       hardcode_shlibpath_var=no
9246       ;;
9247
9248     *nto* | *qnx*)
9249       ;;
9250
9251     openbsd*)
9252       if test -f /usr/libexec/ld.so; then
9253         hardcode_direct=yes
9254         hardcode_shlibpath_var=no
9255         hardcode_direct_absolute=yes
9256         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9257           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9259           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260           export_dynamic_flag_spec='${wl}-E'
9261         else
9262           case $host_os in
9263            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9264              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265              hardcode_libdir_flag_spec='-R$libdir'
9266              ;;
9267            *)
9268              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270              ;;
9271           esac
9272         fi
9273       else
9274         ld_shlibs=no
9275       fi
9276       ;;
9277
9278     os2*)
9279       hardcode_libdir_flag_spec='-L$libdir'
9280       hardcode_minus_L=yes
9281       allow_undefined_flag=unsupported
9282       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9283       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9284       ;;
9285
9286     osf3*)
9287       if test "$GCC" = yes; then
9288         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289         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'
9290       else
9291         allow_undefined_flag=' -expect_unresolved \*'
9292         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'
9293       fi
9294       archive_cmds_need_lc='no'
9295       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296       hardcode_libdir_separator=:
9297       ;;
9298
9299     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9300       if test "$GCC" = yes; then
9301         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9302         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'
9303         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304       else
9305         allow_undefined_flag=' -expect_unresolved \*'
9306         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'
9307         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~
9308         $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'
9309
9310         # Both c and cxx compiler support -rpath directly
9311         hardcode_libdir_flag_spec='-rpath $libdir'
9312       fi
9313       archive_cmds_need_lc='no'
9314       hardcode_libdir_separator=:
9315       ;;
9316
9317     solaris*)
9318       no_undefined_flag=' -z defs'
9319       if test "$GCC" = yes; then
9320         wlarc='${wl}'
9321         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9322         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323           $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'
9324       else
9325         case `$CC -V 2>&1` in
9326         *"Compilers 5.0"*)
9327           wlarc=''
9328           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9330           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9331           ;;
9332         *)
9333           wlarc='${wl}'
9334           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9335           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9336           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9337           ;;
9338         esac
9339       fi
9340       hardcode_libdir_flag_spec='-R$libdir'
9341       hardcode_shlibpath_var=no
9342       case $host_os in
9343       solaris2.[0-5] | solaris2.[0-5].*) ;;
9344       *)
9345         # The compiler driver will combine and reorder linker options,
9346         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9347         # but is careful enough not to reorder.
9348         # Supported since Solaris 2.6 (maybe 2.5.1?)
9349         if test "$GCC" = yes; then
9350           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9351         else
9352           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9353         fi
9354         ;;
9355       esac
9356       link_all_deplibs=yes
9357       ;;
9358
9359     sunos4*)
9360       if test "x$host_vendor" = xsequent; then
9361         # Use $CC to link under sequent, because it throws in some extra .o
9362         # files that make .init and .fini sections work.
9363         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9364       else
9365         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9366       fi
9367       hardcode_libdir_flag_spec='-L$libdir'
9368       hardcode_direct=yes
9369       hardcode_minus_L=yes
9370       hardcode_shlibpath_var=no
9371       ;;
9372
9373     sysv4)
9374       case $host_vendor in
9375         sni)
9376           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377           hardcode_direct=yes # is this really true???
9378         ;;
9379         siemens)
9380           ## LD is ld it makes a PLAMLIB
9381           ## CC just makes a GrossModule.
9382           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9383           reload_cmds='$CC -r -o $output$reload_objs'
9384           hardcode_direct=no
9385         ;;
9386         motorola)
9387           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9389         ;;
9390       esac
9391       runpath_var='LD_RUN_PATH'
9392       hardcode_shlibpath_var=no
9393       ;;
9394
9395     sysv4.3*)
9396       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397       hardcode_shlibpath_var=no
9398       export_dynamic_flag_spec='-Bexport'
9399       ;;
9400
9401     sysv4*MP*)
9402       if test -d /usr/nec; then
9403         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9404         hardcode_shlibpath_var=no
9405         runpath_var=LD_RUN_PATH
9406         hardcode_runpath_var=yes
9407         ld_shlibs=yes
9408       fi
9409       ;;
9410
9411     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9412       no_undefined_flag='${wl}-z,text'
9413       archive_cmds_need_lc=no
9414       hardcode_shlibpath_var=no
9415       runpath_var='LD_RUN_PATH'
9416
9417       if test "$GCC" = yes; then
9418         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420       else
9421         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423       fi
9424       ;;
9425
9426     sysv5* | sco3.2v5* | sco5v6*)
9427       # Note: We can NOT use -z defs as we might desire, because we do not
9428       # link with -lc, and that would cause any symbols used from libc to
9429       # always be unresolved, which means just about no library would
9430       # ever link correctly.  If we're not using GNU ld we use -z text
9431       # though, which does catch some bad symbols but isn't as heavy-handed
9432       # as -z defs.
9433       no_undefined_flag='${wl}-z,text'
9434       allow_undefined_flag='${wl}-z,nodefs'
9435       archive_cmds_need_lc=no
9436       hardcode_shlibpath_var=no
9437       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9438       hardcode_libdir_separator=':'
9439       link_all_deplibs=yes
9440       export_dynamic_flag_spec='${wl}-Bexport'
9441       runpath_var='LD_RUN_PATH'
9442
9443       if test "$GCC" = yes; then
9444         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9446       else
9447         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9449       fi
9450       ;;
9451
9452     uts4*)
9453       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454       hardcode_libdir_flag_spec='-L$libdir'
9455       hardcode_shlibpath_var=no
9456       ;;
9457
9458     *)
9459       ld_shlibs=no
9460       ;;
9461     esac
9462
9463     if test x$host_vendor = xsni; then
9464       case $host in
9465       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9466         export_dynamic_flag_spec='${wl}-Blargedynsym'
9467         ;;
9468       esac
9469     fi
9470   fi
9471
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9473 $as_echo "$ld_shlibs" >&6; }
9474 test "$ld_shlibs" = no && can_build_shared=no
9475
9476 with_gnu_ld=$with_gnu_ld
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492 #
9493 # Do we need to explicitly link libc?
9494 #
9495 case "x$archive_cmds_need_lc" in
9496 x|xyes)
9497   # Assume -lc should be added
9498   archive_cmds_need_lc=yes
9499
9500   if test "$enable_shared" = yes && test "$GCC" = yes; then
9501     case $archive_cmds in
9502     *'~'*)
9503       # FIXME: we may have to deal with multi-command sequences.
9504       ;;
9505     '$CC '*)
9506       # Test whether the compiler implicitly links with -lc since on some
9507       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9508       # to ld, don't add -lc before -lgcc.
9509       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9510 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9511 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9512   $as_echo_n "(cached) " >&6
9513 else
9514   $RM conftest*
9515         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9516
9517         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9518   (eval $ac_compile) 2>&5
9519   ac_status=$?
9520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521   test $ac_status = 0; } 2>conftest.err; then
9522           soname=conftest
9523           lib=conftest
9524           libobjs=conftest.$ac_objext
9525           deplibs=
9526           wl=$lt_prog_compiler_wl
9527           pic_flag=$lt_prog_compiler_pic
9528           compiler_flags=-v
9529           linker_flags=-v
9530           verstring=
9531           output_objdir=.
9532           libname=conftest
9533           lt_save_allow_undefined_flag=$allow_undefined_flag
9534           allow_undefined_flag=
9535           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9536   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9537   ac_status=$?
9538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9539   test $ac_status = 0; }
9540           then
9541             lt_cv_archive_cmds_need_lc=no
9542           else
9543             lt_cv_archive_cmds_need_lc=yes
9544           fi
9545           allow_undefined_flag=$lt_save_allow_undefined_flag
9546         else
9547           cat conftest.err 1>&5
9548         fi
9549         $RM conftest*
9550
9551 fi
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9553 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9554       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9555       ;;
9556     esac
9557   fi
9558   ;;
9559 esac
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9718 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9719
9720 if test "$GCC" = yes; then
9721   case $host_os in
9722     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9723     *) lt_awk_arg="/^libraries:/" ;;
9724   esac
9725   case $host_os in
9726     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9727     *) lt_sed_strip_eq="s,=/,/,g" ;;
9728   esac
9729   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9730   case $lt_search_path_spec in
9731   *\;*)
9732     # if the path contains ";" then we assume it to be the separator
9733     # otherwise default to the standard path separator (i.e. ":") - it is
9734     # assumed that no part of a normal pathname contains ";" but that should
9735     # okay in the real world where ";" in dirpaths is itself problematic.
9736     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9737     ;;
9738   *)
9739     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9740     ;;
9741   esac
9742   # Ok, now we have the path, separated by spaces, we can step through it
9743   # and add multilib dir if necessary.
9744   lt_tmp_lt_search_path_spec=
9745   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9746   for lt_sys_path in $lt_search_path_spec; do
9747     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9748       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9749     else
9750       test -d "$lt_sys_path" && \
9751         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9752     fi
9753   done
9754   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9755 BEGIN {RS=" "; FS="/|\n";} {
9756   lt_foo="";
9757   lt_count=0;
9758   for (lt_i = NF; lt_i > 0; lt_i--) {
9759     if ($lt_i != "" && $lt_i != ".") {
9760       if ($lt_i == "..") {
9761         lt_count++;
9762       } else {
9763         if (lt_count == 0) {
9764           lt_foo="/" $lt_i lt_foo;
9765         } else {
9766           lt_count--;
9767         }
9768       }
9769     }
9770   }
9771   if (lt_foo != "") { lt_freq[lt_foo]++; }
9772   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9773 }'`
9774   # AWK program above erroneously prepends '/' to C:/dos/paths
9775   # for these hosts.
9776   case $host_os in
9777     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9778       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9779   esac
9780   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9781 else
9782   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9783 fi
9784 library_names_spec=
9785 libname_spec='lib$name'
9786 soname_spec=
9787 shrext_cmds=".so"
9788 postinstall_cmds=
9789 postuninstall_cmds=
9790 finish_cmds=
9791 finish_eval=
9792 shlibpath_var=
9793 shlibpath_overrides_runpath=unknown
9794 version_type=none
9795 dynamic_linker="$host_os ld.so"
9796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9797 need_lib_prefix=unknown
9798 hardcode_into_libs=no
9799
9800 # when you set need_version to no, make sure it does not cause -set_version
9801 # flags to be left without arguments
9802 need_version=unknown
9803
9804 case $host_os in
9805 aix3*)
9806   version_type=linux
9807   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9808   shlibpath_var=LIBPATH
9809
9810   # AIX 3 has no versioning support, so we append a major version to the name.
9811   soname_spec='${libname}${release}${shared_ext}$major'
9812   ;;
9813
9814 aix[4-9]*)
9815   version_type=linux
9816   need_lib_prefix=no
9817   need_version=no
9818   hardcode_into_libs=yes
9819   if test "$host_cpu" = ia64; then
9820     # AIX 5 supports IA64
9821     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9822     shlibpath_var=LD_LIBRARY_PATH
9823   else
9824     # With GCC up to 2.95.x, collect2 would create an import file
9825     # for dependence libraries.  The import file would start with
9826     # the line `#! .'.  This would cause the generated library to
9827     # depend on `.', always an invalid library.  This was fixed in
9828     # development snapshots of GCC prior to 3.0.
9829     case $host_os in
9830       aix4 | aix4.[01] | aix4.[01].*)
9831       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9832            echo ' yes '
9833            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9834         :
9835       else
9836         can_build_shared=no
9837       fi
9838       ;;
9839     esac
9840     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9841     # soname into executable. Probably we can add versioning support to
9842     # collect2, so additional links can be useful in future.
9843     if test "$aix_use_runtimelinking" = yes; then
9844       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9845       # instead of lib<name>.a to let people know that these are not
9846       # typical AIX shared libraries.
9847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848     else
9849       # We preserve .a as extension for shared libraries through AIX4.2
9850       # and later when we are not doing run time linking.
9851       library_names_spec='${libname}${release}.a $libname.a'
9852       soname_spec='${libname}${release}${shared_ext}$major'
9853     fi
9854     shlibpath_var=LIBPATH
9855   fi
9856   ;;
9857
9858 amigaos*)
9859   case $host_cpu in
9860   powerpc)
9861     # Since July 2007 AmigaOS4 officially supports .so libraries.
9862     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864     ;;
9865   m68k)
9866     library_names_spec='$libname.ixlibrary $libname.a'
9867     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9868     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9869     ;;
9870   esac
9871   ;;
9872
9873 beos*)
9874   library_names_spec='${libname}${shared_ext}'
9875   dynamic_linker="$host_os ld.so"
9876   shlibpath_var=LIBRARY_PATH
9877   ;;
9878
9879 bsdi[45]*)
9880   version_type=linux
9881   need_version=no
9882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883   soname_spec='${libname}${release}${shared_ext}$major'
9884   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9885   shlibpath_var=LD_LIBRARY_PATH
9886   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9887   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9888   # the default ld.so.conf also contains /usr/contrib/lib and
9889   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9890   # libtool to hard-code these into programs
9891   ;;
9892
9893 cygwin* | mingw* | pw32* | cegcc*)
9894   version_type=windows
9895   shrext_cmds=".dll"
9896   need_version=no
9897   need_lib_prefix=no
9898
9899   case $GCC,$cc_basename in
9900   yes,*)
9901     # gcc
9902     library_names_spec='$libname.dll.a'
9903     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9904     postinstall_cmds='base_file=`basename \${file}`~
9905       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9906       dldir=$destdir/`dirname \$dlpath`~
9907       test -d \$dldir || mkdir -p \$dldir~
9908       $install_prog $dir/$dlname \$dldir/$dlname~
9909       chmod a+x \$dldir/$dlname~
9910       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9911         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9912       fi'
9913     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9914       dlpath=$dir/\$dldll~
9915        $RM \$dlpath'
9916     shlibpath_overrides_runpath=yes
9917
9918     case $host_os in
9919     cygwin*)
9920       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9921       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9922
9923       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9924       ;;
9925     mingw* | cegcc*)
9926       # MinGW DLLs use traditional 'lib' prefix
9927       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928       ;;
9929     pw32*)
9930       # pw32 DLLs use 'pw' prefix rather than 'lib'
9931       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9932       ;;
9933     esac
9934     dynamic_linker='Win32 ld.exe'
9935     ;;
9936
9937   *,cl*)
9938     # Native MSVC
9939     libname_spec='$name'
9940     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9941     library_names_spec='${libname}.dll.lib'
9942
9943     case $build_os in
9944     mingw*)
9945       sys_lib_search_path_spec=
9946       lt_save_ifs=$IFS
9947       IFS=';'
9948       for lt_path in $LIB
9949       do
9950         IFS=$lt_save_ifs
9951         # Let DOS variable expansion print the short 8.3 style file name.
9952         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9953         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9954       done
9955       IFS=$lt_save_ifs
9956       # Convert to MSYS style.
9957       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9958       ;;
9959     cygwin*)
9960       # Convert to unix form, then to dos form, then back to unix form
9961       # but this time dos style (no spaces!) so that the unix form looks
9962       # like /cygdrive/c/PROGRA~1:/cygdr...
9963       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9964       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9965       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9966       ;;
9967     *)
9968       sys_lib_search_path_spec="$LIB"
9969       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9970         # It is most probably a Windows format PATH.
9971         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9972       else
9973         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9974       fi
9975       # FIXME: find the short name or the path components, as spaces are
9976       # common. (e.g. "Program Files" -> "PROGRA~1")
9977       ;;
9978     esac
9979
9980     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9981     postinstall_cmds='base_file=`basename \${file}`~
9982       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9983       dldir=$destdir/`dirname \$dlpath`~
9984       test -d \$dldir || mkdir -p \$dldir~
9985       $install_prog $dir/$dlname \$dldir/$dlname'
9986     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9987       dlpath=$dir/\$dldll~
9988        $RM \$dlpath'
9989     shlibpath_overrides_runpath=yes
9990     dynamic_linker='Win32 link.exe'
9991     ;;
9992
9993   *)
9994     # Assume MSVC wrapper
9995     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9996     dynamic_linker='Win32 ld.exe'
9997     ;;
9998   esac
9999   # FIXME: first we should search . and the directory the executable is in
10000   shlibpath_var=PATH
10001   ;;
10002
10003 darwin* | rhapsody*)
10004   dynamic_linker="$host_os dyld"
10005   version_type=darwin
10006   need_lib_prefix=no
10007   need_version=no
10008   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10009   soname_spec='${libname}${release}${major}$shared_ext'
10010   shlibpath_overrides_runpath=yes
10011   shlibpath_var=DYLD_LIBRARY_PATH
10012   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10013
10014   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10015   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10016   ;;
10017
10018 dgux*)
10019   version_type=linux
10020   need_lib_prefix=no
10021   need_version=no
10022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10023   soname_spec='${libname}${release}${shared_ext}$major'
10024   shlibpath_var=LD_LIBRARY_PATH
10025   ;;
10026
10027 freebsd1*)
10028   dynamic_linker=no
10029   ;;
10030
10031 freebsd* | dragonfly*)
10032   # DragonFly does not have aout.  When/if they implement a new
10033   # versioning mechanism, adjust this.
10034   if test -x /usr/bin/objformat; then
10035     objformat=`/usr/bin/objformat`
10036   else
10037     case $host_os in
10038     freebsd[123]*) objformat=aout ;;
10039     *) objformat=elf ;;
10040     esac
10041   fi
10042   version_type=freebsd-$objformat
10043   case $version_type in
10044     freebsd-elf*)
10045       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10046       need_version=no
10047       need_lib_prefix=no
10048       ;;
10049     freebsd-*)
10050       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10051       need_version=yes
10052       ;;
10053   esac
10054   shlibpath_var=LD_LIBRARY_PATH
10055   case $host_os in
10056   freebsd2*)
10057     shlibpath_overrides_runpath=yes
10058     ;;
10059   freebsd3.[01]* | freebsdelf3.[01]*)
10060     shlibpath_overrides_runpath=yes
10061     hardcode_into_libs=yes
10062     ;;
10063   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10064   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10065     shlibpath_overrides_runpath=no
10066     hardcode_into_libs=yes
10067     ;;
10068   *) # from 4.6 on, and DragonFly
10069     shlibpath_overrides_runpath=yes
10070     hardcode_into_libs=yes
10071     ;;
10072   esac
10073   ;;
10074
10075 gnu*)
10076   version_type=linux
10077   need_lib_prefix=no
10078   need_version=no
10079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080   soname_spec='${libname}${release}${shared_ext}$major'
10081   shlibpath_var=LD_LIBRARY_PATH
10082   shlibpath_overrides_runpath=no
10083   hardcode_into_libs=yes
10084   ;;
10085
10086 haiku*)
10087   version_type=linux
10088   need_lib_prefix=no
10089   need_version=no
10090   dynamic_linker="$host_os runtime_loader"
10091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10092   soname_spec='${libname}${release}${shared_ext}$major'
10093   shlibpath_var=LIBRARY_PATH
10094   shlibpath_overrides_runpath=yes
10095   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10096   hardcode_into_libs=yes
10097   ;;
10098
10099 hpux9* | hpux10* | hpux11*)
10100   # Give a soname corresponding to the major version so that dld.sl refuses to
10101   # link against other versions.
10102   version_type=sunos
10103   need_lib_prefix=no
10104   need_version=no
10105   case $host_cpu in
10106   ia64*)
10107     shrext_cmds='.so'
10108     hardcode_into_libs=yes
10109     dynamic_linker="$host_os dld.so"
10110     shlibpath_var=LD_LIBRARY_PATH
10111     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113     soname_spec='${libname}${release}${shared_ext}$major'
10114     if test "X$HPUX_IA64_MODE" = X32; then
10115       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10116     else
10117       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10118     fi
10119     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10120     ;;
10121   hppa*64*)
10122     shrext_cmds='.sl'
10123     hardcode_into_libs=yes
10124     dynamic_linker="$host_os dld.sl"
10125     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128     soname_spec='${libname}${release}${shared_ext}$major'
10129     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10130     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10131     ;;
10132   *)
10133     shrext_cmds='.sl'
10134     dynamic_linker="$host_os dld.sl"
10135     shlibpath_var=SHLIB_PATH
10136     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138     soname_spec='${libname}${release}${shared_ext}$major'
10139     ;;
10140   esac
10141   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10142   postinstall_cmds='chmod 555 $lib'
10143   # or fails outright, so override atomically:
10144   install_override_mode=555
10145   ;;
10146
10147 interix[3-9]*)
10148   version_type=linux
10149   need_lib_prefix=no
10150   need_version=no
10151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10152   soname_spec='${libname}${release}${shared_ext}$major'
10153   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10154   shlibpath_var=LD_LIBRARY_PATH
10155   shlibpath_overrides_runpath=no
10156   hardcode_into_libs=yes
10157   ;;
10158
10159 irix5* | irix6* | nonstopux*)
10160   case $host_os in
10161     nonstopux*) version_type=nonstopux ;;
10162     *)
10163         if test "$lt_cv_prog_gnu_ld" = yes; then
10164                 version_type=linux
10165         else
10166                 version_type=irix
10167         fi ;;
10168   esac
10169   need_lib_prefix=no
10170   need_version=no
10171   soname_spec='${libname}${release}${shared_ext}$major'
10172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10173   case $host_os in
10174   irix5* | nonstopux*)
10175     libsuff= shlibsuff=
10176     ;;
10177   *)
10178     case $LD in # libtool.m4 will add one of these switches to LD
10179     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10180       libsuff= shlibsuff= libmagic=32-bit;;
10181     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10182       libsuff=32 shlibsuff=N32 libmagic=N32;;
10183     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10184       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10185     *) libsuff= shlibsuff= libmagic=never-match;;
10186     esac
10187     ;;
10188   esac
10189   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10190   shlibpath_overrides_runpath=no
10191   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10192   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10193   hardcode_into_libs=yes
10194   ;;
10195
10196 # No shared lib support for Linux oldld, aout, or coff.
10197 linux*oldld* | linux*aout* | linux*coff*)
10198   dynamic_linker=no
10199   ;;
10200
10201 # This must be Linux ELF.
10202 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10203   version_type=linux
10204   need_lib_prefix=no
10205   need_version=no
10206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207   soname_spec='${libname}${release}${shared_ext}$major'
10208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10209   shlibpath_var=LD_LIBRARY_PATH
10210   shlibpath_overrides_runpath=no
10211
10212   # Some binutils ld are patched to set DT_RUNPATH
10213   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   lt_cv_shlibpath_overrides_runpath=no
10217     save_LDFLAGS=$LDFLAGS
10218     save_libdir=$libdir
10219     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10220          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h.  */
10223
10224 int
10225 main ()
10226 {
10227
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10234   lt_cv_shlibpath_overrides_runpath=yes
10235 fi
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext \
10238     conftest$ac_exeext conftest.$ac_ext
10239     LDFLAGS=$save_LDFLAGS
10240     libdir=$save_libdir
10241
10242 fi
10243
10244   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10245
10246   # This implies no fast_install, which is unacceptable.
10247   # Some rework will be needed to allow for fast_install
10248   # before this can be enabled.
10249   hardcode_into_libs=yes
10250
10251   # Append ld.so.conf contents to the search path
10252   if test -f /etc/ld.so.conf; then
10253     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' ' '`
10254     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10255   fi
10256
10257   # We used to test for /lib/ld.so.1 and disable shared libraries on
10258   # powerpc, because MkLinux only supported shared libraries with the
10259   # GNU dynamic linker.  Since this was broken with cross compilers,
10260   # most powerpc-linux boxes support dynamic linking these days and
10261   # people can always --disable-shared, the test was removed, and we
10262   # assume the GNU/Linux dynamic linker is in use.
10263   dynamic_linker='GNU/Linux ld.so'
10264   ;;
10265
10266 netbsdelf*-gnu)
10267   version_type=linux
10268   need_lib_prefix=no
10269   need_version=no
10270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10271   soname_spec='${libname}${release}${shared_ext}$major'
10272   shlibpath_var=LD_LIBRARY_PATH
10273   shlibpath_overrides_runpath=no
10274   hardcode_into_libs=yes
10275   dynamic_linker='NetBSD ld.elf_so'
10276   ;;
10277
10278 netbsd*)
10279   version_type=sunos
10280   need_lib_prefix=no
10281   need_version=no
10282   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10285     dynamic_linker='NetBSD (a.out) ld.so'
10286   else
10287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288     soname_spec='${libname}${release}${shared_ext}$major'
10289     dynamic_linker='NetBSD ld.elf_so'
10290   fi
10291   shlibpath_var=LD_LIBRARY_PATH
10292   shlibpath_overrides_runpath=yes
10293   hardcode_into_libs=yes
10294   ;;
10295
10296 newsos6)
10297   version_type=linux
10298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299   shlibpath_var=LD_LIBRARY_PATH
10300   shlibpath_overrides_runpath=yes
10301   ;;
10302
10303 *nto* | *qnx*)
10304   version_type=qnx
10305   need_lib_prefix=no
10306   need_version=no
10307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308   soname_spec='${libname}${release}${shared_ext}$major'
10309   shlibpath_var=LD_LIBRARY_PATH
10310   shlibpath_overrides_runpath=no
10311   hardcode_into_libs=yes
10312   dynamic_linker='ldqnx.so'
10313   ;;
10314
10315 openbsd*)
10316   version_type=sunos
10317   sys_lib_dlsearch_path_spec="/usr/lib"
10318   need_lib_prefix=no
10319   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10320   case $host_os in
10321     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10322     *)                          need_version=no  ;;
10323   esac
10324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10326   shlibpath_var=LD_LIBRARY_PATH
10327   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10328     case $host_os in
10329       openbsd2.[89] | openbsd2.[89].*)
10330         shlibpath_overrides_runpath=no
10331         ;;
10332       *)
10333         shlibpath_overrides_runpath=yes
10334         ;;
10335       esac
10336   else
10337     shlibpath_overrides_runpath=yes
10338   fi
10339   ;;
10340
10341 os2*)
10342   libname_spec='$name'
10343   shrext_cmds=".dll"
10344   need_lib_prefix=no
10345   library_names_spec='$libname${shared_ext} $libname.a'
10346   dynamic_linker='OS/2 ld.exe'
10347   shlibpath_var=LIBPATH
10348   ;;
10349
10350 osf3* | osf4* | osf5*)
10351   version_type=osf
10352   need_lib_prefix=no
10353   need_version=no
10354   soname_spec='${libname}${release}${shared_ext}$major'
10355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356   shlibpath_var=LD_LIBRARY_PATH
10357   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10358   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10359   ;;
10360
10361 rdos*)
10362   dynamic_linker=no
10363   ;;
10364
10365 solaris*)
10366   version_type=linux
10367   need_lib_prefix=no
10368   need_version=no
10369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370   soname_spec='${libname}${release}${shared_ext}$major'
10371   shlibpath_var=LD_LIBRARY_PATH
10372   shlibpath_overrides_runpath=yes
10373   hardcode_into_libs=yes
10374   # ldd complains unless libraries are executable
10375   postinstall_cmds='chmod +x $lib'
10376   ;;
10377
10378 sunos4*)
10379   version_type=sunos
10380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10381   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10382   shlibpath_var=LD_LIBRARY_PATH
10383   shlibpath_overrides_runpath=yes
10384   if test "$with_gnu_ld" = yes; then
10385     need_lib_prefix=no
10386   fi
10387   need_version=yes
10388   ;;
10389
10390 sysv4 | sysv4.3*)
10391   version_type=linux
10392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393   soname_spec='${libname}${release}${shared_ext}$major'
10394   shlibpath_var=LD_LIBRARY_PATH
10395   case $host_vendor in
10396     sni)
10397       shlibpath_overrides_runpath=no
10398       need_lib_prefix=no
10399       runpath_var=LD_RUN_PATH
10400       ;;
10401     siemens)
10402       need_lib_prefix=no
10403       ;;
10404     motorola)
10405       need_lib_prefix=no
10406       need_version=no
10407       shlibpath_overrides_runpath=no
10408       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10409       ;;
10410   esac
10411   ;;
10412
10413 sysv4*MP*)
10414   if test -d /usr/nec ;then
10415     version_type=linux
10416     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10417     soname_spec='$libname${shared_ext}.$major'
10418     shlibpath_var=LD_LIBRARY_PATH
10419   fi
10420   ;;
10421
10422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10423   version_type=freebsd-elf
10424   need_lib_prefix=no
10425   need_version=no
10426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10427   soname_spec='${libname}${release}${shared_ext}$major'
10428   shlibpath_var=LD_LIBRARY_PATH
10429   shlibpath_overrides_runpath=yes
10430   hardcode_into_libs=yes
10431   if test "$with_gnu_ld" = yes; then
10432     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10433   else
10434     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10435     case $host_os in
10436       sco3.2v5*)
10437         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10438         ;;
10439     esac
10440   fi
10441   sys_lib_dlsearch_path_spec='/usr/lib'
10442   ;;
10443
10444 tpf*)
10445   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10446   version_type=linux
10447   need_lib_prefix=no
10448   need_version=no
10449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450   shlibpath_var=LD_LIBRARY_PATH
10451   shlibpath_overrides_runpath=no
10452   hardcode_into_libs=yes
10453   ;;
10454
10455 uts4*)
10456   version_type=linux
10457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458   soname_spec='${libname}${release}${shared_ext}$major'
10459   shlibpath_var=LD_LIBRARY_PATH
10460   ;;
10461
10462 *)
10463   dynamic_linker=no
10464   ;;
10465 esac
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10467 $as_echo "$dynamic_linker" >&6; }
10468 test "$dynamic_linker" = no && can_build_shared=no
10469
10470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10471 if test "$GCC" = yes; then
10472   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10473 fi
10474
10475 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10476   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10477 fi
10478 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10479   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10480 fi
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10574 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10575 hardcode_action=
10576 if test -n "$hardcode_libdir_flag_spec" ||
10577    test -n "$runpath_var" ||
10578    test "X$hardcode_automatic" = "Xyes" ; then
10579
10580   # We can hardcode non-existent directories.
10581   if test "$hardcode_direct" != no &&
10582      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10583      # have to relink, otherwise we might link with an installed library
10584      # when we should be linking with a yet-to-be-installed one
10585      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10586      test "$hardcode_minus_L" != no; then
10587     # Linking always hardcodes the temporary library directory.
10588     hardcode_action=relink
10589   else
10590     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10591     hardcode_action=immediate
10592   fi
10593 else
10594   # We cannot hardcode anything, or else we can only hardcode existing
10595   # directories.
10596   hardcode_action=unsupported
10597 fi
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10599 $as_echo "$hardcode_action" >&6; }
10600
10601 if test "$hardcode_action" = relink ||
10602    test "$inherit_rpath" = yes; then
10603   # Fast installation is not supported
10604   enable_fast_install=no
10605 elif test "$shlibpath_overrides_runpath" = yes ||
10606      test "$enable_shared" = no; then
10607   # Fast installation is not necessary
10608   enable_fast_install=needless
10609 fi
10610
10611
10612
10613
10614
10615
10616   if test "x$enable_dlopen" != xyes; then
10617   enable_dlopen=unknown
10618   enable_dlopen_self=unknown
10619   enable_dlopen_self_static=unknown
10620 else
10621   lt_cv_dlopen=no
10622   lt_cv_dlopen_libs=
10623
10624   case $host_os in
10625   beos*)
10626     lt_cv_dlopen="load_add_on"
10627     lt_cv_dlopen_libs=
10628     lt_cv_dlopen_self=yes
10629     ;;
10630
10631   mingw* | pw32* | cegcc*)
10632     lt_cv_dlopen="LoadLibrary"
10633     lt_cv_dlopen_libs=
10634     ;;
10635
10636   cygwin*)
10637     lt_cv_dlopen="dlopen"
10638     lt_cv_dlopen_libs=
10639     ;;
10640
10641   darwin*)
10642   # if libdl is installed we need to link against it
10643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10644 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10645 if ${ac_cv_lib_dl_dlopen+:} false; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-ldl  $LIBS"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h.  */
10652
10653 /* Override any GCC internal prototype to avoid an error.
10654    Use char because int might match the return type of a GCC
10655    builtin and then its argument prototype would still apply.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char dlopen ();
10660 int
10661 main ()
10662 {
10663 return dlopen ();
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669   ac_cv_lib_dl_dlopen=yes
10670 else
10671   ac_cv_lib_dl_dlopen=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext \
10674     conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10679 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10680   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10681 else
10682
10683     lt_cv_dlopen="dyld"
10684     lt_cv_dlopen_libs=
10685     lt_cv_dlopen_self=yes
10686
10687 fi
10688
10689     ;;
10690
10691   *)
10692     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10693 if test "x$ac_cv_func_shl_load" = xyes; then :
10694   lt_cv_dlopen="shl_load"
10695 else
10696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10697 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10698 if ${ac_cv_lib_dld_shl_load+:} false; then :
10699   $as_echo_n "(cached) " >&6
10700 else
10701   ac_check_lib_save_LIBS=$LIBS
10702 LIBS="-ldld  $LIBS"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h.  */
10705
10706 /* Override any GCC internal prototype to avoid an error.
10707    Use char because int might match the return type of a GCC
10708    builtin and then its argument prototype would still apply.  */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 char shl_load ();
10713 int
10714 main ()
10715 {
10716 return shl_load ();
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722   ac_cv_lib_dld_shl_load=yes
10723 else
10724   ac_cv_lib_dld_shl_load=no
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext \
10727     conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10729 fi
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10731 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10732 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10733   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10734 else
10735   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10736 if test "x$ac_cv_func_dlopen" = xyes; then :
10737   lt_cv_dlopen="dlopen"
10738 else
10739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10741 if ${ac_cv_lib_dl_dlopen+:} false; then :
10742   $as_echo_n "(cached) " >&6
10743 else
10744   ac_check_lib_save_LIBS=$LIBS
10745 LIBS="-ldl  $LIBS"
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h.  */
10748
10749 /* Override any GCC internal prototype to avoid an error.
10750    Use char because int might match the return type of a GCC
10751    builtin and then its argument prototype would still apply.  */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 char dlopen ();
10756 int
10757 main ()
10758 {
10759 return dlopen ();
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"; then :
10765   ac_cv_lib_dl_dlopen=yes
10766 else
10767   ac_cv_lib_dl_dlopen=no
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext \
10770     conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10772 fi
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10775 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10776   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10777 else
10778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10779 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10780 if ${ac_cv_lib_svld_dlopen+:} false; then :
10781   $as_echo_n "(cached) " >&6
10782 else
10783   ac_check_lib_save_LIBS=$LIBS
10784 LIBS="-lsvld  $LIBS"
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h.  */
10787
10788 /* Override any GCC internal prototype to avoid an error.
10789    Use char because int might match the return type of a GCC
10790    builtin and then its argument prototype would still apply.  */
10791 #ifdef __cplusplus
10792 extern "C"
10793 #endif
10794 char dlopen ();
10795 int
10796 main ()
10797 {
10798 return dlopen ();
10799   ;
10800   return 0;
10801 }
10802 _ACEOF
10803 if ac_fn_c_try_link "$LINENO"; then :
10804   ac_cv_lib_svld_dlopen=yes
10805 else
10806   ac_cv_lib_svld_dlopen=no
10807 fi
10808 rm -f core conftest.err conftest.$ac_objext \
10809     conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10811 fi
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10813 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10814 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10815   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10816 else
10817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10818 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10819 if ${ac_cv_lib_dld_dld_link+:} false; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-ldld  $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h.  */
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828    Use char because int might match the return type of a GCC
10829    builtin and then its argument prototype would still apply.  */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char dld_link ();
10834 int
10835 main ()
10836 {
10837 return dld_link ();
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843   ac_cv_lib_dld_dld_link=yes
10844 else
10845   ac_cv_lib_dld_dld_link=no
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext \
10848     conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10852 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10853 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10854   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10855 fi
10856
10857
10858 fi
10859
10860
10861 fi
10862
10863
10864 fi
10865
10866
10867 fi
10868
10869
10870 fi
10871
10872     ;;
10873   esac
10874
10875   if test "x$lt_cv_dlopen" != xno; then
10876     enable_dlopen=yes
10877   else
10878     enable_dlopen=no
10879   fi
10880
10881   case $lt_cv_dlopen in
10882   dlopen)
10883     save_CPPFLAGS="$CPPFLAGS"
10884     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10885
10886     save_LDFLAGS="$LDFLAGS"
10887     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10888
10889     save_LIBS="$LIBS"
10890     LIBS="$lt_cv_dlopen_libs $LIBS"
10891
10892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10893 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10894 if ${lt_cv_dlopen_self+:} false; then :
10895   $as_echo_n "(cached) " >&6
10896 else
10897           if test "$cross_compiling" = yes; then :
10898   lt_cv_dlopen_self=cross
10899 else
10900   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10901   lt_status=$lt_dlunknown
10902   cat > conftest.$ac_ext <<_LT_EOF
10903 #line $LINENO "configure"
10904 #include "confdefs.h"
10905
10906 #if HAVE_DLFCN_H
10907 #include <dlfcn.h>
10908 #endif
10909
10910 #include <stdio.h>
10911
10912 #ifdef RTLD_GLOBAL
10913 #  define LT_DLGLOBAL           RTLD_GLOBAL
10914 #else
10915 #  ifdef DL_GLOBAL
10916 #    define LT_DLGLOBAL         DL_GLOBAL
10917 #  else
10918 #    define LT_DLGLOBAL         0
10919 #  endif
10920 #endif
10921
10922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10923    find out it does not work in some platform. */
10924 #ifndef LT_DLLAZY_OR_NOW
10925 #  ifdef RTLD_LAZY
10926 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10927 #  else
10928 #    ifdef DL_LAZY
10929 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10930 #    else
10931 #      ifdef RTLD_NOW
10932 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10933 #      else
10934 #        ifdef DL_NOW
10935 #          define LT_DLLAZY_OR_NOW      DL_NOW
10936 #        else
10937 #          define LT_DLLAZY_OR_NOW      0
10938 #        endif
10939 #      endif
10940 #    endif
10941 #  endif
10942 #endif
10943
10944 /* When -fvisbility=hidden is used, assume the code has been annotated
10945    correspondingly for the symbols needed.  */
10946 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10947 int fnord () __attribute__((visibility("default")));
10948 #endif
10949
10950 int fnord () { return 42; }
10951 int main ()
10952 {
10953   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954   int status = $lt_dlunknown;
10955
10956   if (self)
10957     {
10958       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10959       else
10960         {
10961           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10962           else puts (dlerror ());
10963         }
10964       /* dlclose (self); */
10965     }
10966   else
10967     puts (dlerror ());
10968
10969   return status;
10970 }
10971 _LT_EOF
10972   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10973   (eval $ac_link) 2>&5
10974   ac_status=$?
10975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10976   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10977     (./conftest; exit; ) >&5 2>/dev/null
10978     lt_status=$?
10979     case x$lt_status in
10980       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10981       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10982       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10983     esac
10984   else :
10985     # compilation failed
10986     lt_cv_dlopen_self=no
10987   fi
10988 fi
10989 rm -fr conftest*
10990
10991
10992 fi
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10994 $as_echo "$lt_cv_dlopen_self" >&6; }
10995
10996     if test "x$lt_cv_dlopen_self" = xyes; then
10997       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10998       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10999 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11000 if ${lt_cv_dlopen_self_static+:} false; then :
11001   $as_echo_n "(cached) " >&6
11002 else
11003           if test "$cross_compiling" = yes; then :
11004   lt_cv_dlopen_self_static=cross
11005 else
11006   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007   lt_status=$lt_dlunknown
11008   cat > conftest.$ac_ext <<_LT_EOF
11009 #line $LINENO "configure"
11010 #include "confdefs.h"
11011
11012 #if HAVE_DLFCN_H
11013 #include <dlfcn.h>
11014 #endif
11015
11016 #include <stdio.h>
11017
11018 #ifdef RTLD_GLOBAL
11019 #  define LT_DLGLOBAL           RTLD_GLOBAL
11020 #else
11021 #  ifdef DL_GLOBAL
11022 #    define LT_DLGLOBAL         DL_GLOBAL
11023 #  else
11024 #    define LT_DLGLOBAL         0
11025 #  endif
11026 #endif
11027
11028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029    find out it does not work in some platform. */
11030 #ifndef LT_DLLAZY_OR_NOW
11031 #  ifdef RTLD_LAZY
11032 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11033 #  else
11034 #    ifdef DL_LAZY
11035 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11036 #    else
11037 #      ifdef RTLD_NOW
11038 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11039 #      else
11040 #        ifdef DL_NOW
11041 #          define LT_DLLAZY_OR_NOW      DL_NOW
11042 #        else
11043 #          define LT_DLLAZY_OR_NOW      0
11044 #        endif
11045 #      endif
11046 #    endif
11047 #  endif
11048 #endif
11049
11050 /* When -fvisbility=hidden is used, assume the code has been annotated
11051    correspondingly for the symbols needed.  */
11052 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11053 int fnord () __attribute__((visibility("default")));
11054 #endif
11055
11056 int fnord () { return 42; }
11057 int main ()
11058 {
11059   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11060   int status = $lt_dlunknown;
11061
11062   if (self)
11063     {
11064       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11065       else
11066         {
11067           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11068           else puts (dlerror ());
11069         }
11070       /* dlclose (self); */
11071     }
11072   else
11073     puts (dlerror ());
11074
11075   return status;
11076 }
11077 _LT_EOF
11078   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11079   (eval $ac_link) 2>&5
11080   ac_status=$?
11081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11083     (./conftest; exit; ) >&5 2>/dev/null
11084     lt_status=$?
11085     case x$lt_status in
11086       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11087       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11088       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11089     esac
11090   else :
11091     # compilation failed
11092     lt_cv_dlopen_self_static=no
11093   fi
11094 fi
11095 rm -fr conftest*
11096
11097
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11100 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11101     fi
11102
11103     CPPFLAGS="$save_CPPFLAGS"
11104     LDFLAGS="$save_LDFLAGS"
11105     LIBS="$save_LIBS"
11106     ;;
11107   esac
11108
11109   case $lt_cv_dlopen_self in
11110   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11111   *) enable_dlopen_self=unknown ;;
11112   esac
11113
11114   case $lt_cv_dlopen_self_static in
11115   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11116   *) enable_dlopen_self_static=unknown ;;
11117   esac
11118 fi
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136 striplib=
11137 old_striplib=
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11139 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11140 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11141   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11142   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; }
11145 else
11146 # FIXME - insert some real tests, host_os isn't really good enough
11147   case $host_os in
11148   darwin*)
11149     if test -n "$STRIP" ; then
11150       striplib="$STRIP -x"
11151       old_striplib="$STRIP -S"
11152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153 $as_echo "yes" >&6; }
11154     else
11155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157     fi
11158     ;;
11159   *)
11160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11162     ;;
11163   esac
11164 fi
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177   # Report which library types will actually be built
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11179 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11181 $as_echo "$can_build_shared" >&6; }
11182
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11184 $as_echo_n "checking whether to build shared libraries... " >&6; }
11185   test "$can_build_shared" = "no" && enable_shared=no
11186
11187   # On AIX, shared libraries and static libraries use the same namespace, and
11188   # are all built from PIC.
11189   case $host_os in
11190   aix3*)
11191     test "$enable_shared" = yes && enable_static=no
11192     if test -n "$RANLIB"; then
11193       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11194       postinstall_cmds='$RANLIB $lib'
11195     fi
11196     ;;
11197
11198   aix[4-9]*)
11199     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11200       test "$enable_shared" = yes && enable_static=no
11201     fi
11202     ;;
11203   esac
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11205 $as_echo "$enable_shared" >&6; }
11206
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11208 $as_echo_n "checking whether to build static libraries... " >&6; }
11209   # Make sure either enable_shared or enable_static is yes.
11210   test "$enable_shared" = yes || enable_static=yes
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11212 $as_echo "$enable_static" >&6; }
11213
11214
11215
11216
11217 fi
11218 ac_ext=c
11219 ac_cpp='$CPP $CPPFLAGS'
11220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11223
11224 CC="$lt_save_CC"
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238         ac_config_commands="$ac_config_commands libtool"
11239
11240
11241
11242
11243 # Only expand once:
11244
11245
11246
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11248 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11249 if ${ac_cv_c_const+:} false; then :
11250   $as_echo_n "(cached) " >&6
11251 else
11252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h.  */
11254
11255 int
11256 main ()
11257 {
11258 /* FIXME: Include the comments suggested by Paul. */
11259 #ifndef __cplusplus
11260   /* Ultrix mips cc rejects this.  */
11261   typedef int charset[2];
11262   const charset cs;
11263   /* SunOS 4.1.1 cc rejects this.  */
11264   char const *const *pcpcc;
11265   char **ppc;
11266   /* NEC SVR4.0.2 mips cc rejects this.  */
11267   struct point {int x, y;};
11268   static struct point const zero = {0,0};
11269   /* AIX XL C 1.02.0.0 rejects this.
11270      It does not let you subtract one const X* pointer from another in
11271      an arm of an if-expression whose if-part is not a constant
11272      expression */
11273   const char *g = "string";
11274   pcpcc = &g + (g ? g-g : 0);
11275   /* HPUX 7.0 cc rejects these. */
11276   ++pcpcc;
11277   ppc = (char**) pcpcc;
11278   pcpcc = (char const *const *) ppc;
11279   { /* SCO 3.2v4 cc rejects this.  */
11280     char *t;
11281     char const *s = 0 ? (char *) 0 : (char const *) 0;
11282
11283     *t++ = 0;
11284     if (s) return 0;
11285   }
11286   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11287     int x[] = {25, 17};
11288     const int *foo = &x[0];
11289     ++foo;
11290   }
11291   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11292     typedef const int *iptr;
11293     iptr p = 0;
11294     ++p;
11295   }
11296   { /* AIX XL C 1.02.0.0 rejects this saying
11297        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11298     struct s { int j; const int *ap[3]; };
11299     struct s *b; b->j = 5;
11300   }
11301   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11302     const int foo = 10;
11303     if (!foo) return 0;
11304   }
11305   return !cs[0] && !zero.x;
11306 #endif
11307
11308   ;
11309   return 0;
11310 }
11311 _ACEOF
11312 if ac_fn_c_try_compile "$LINENO"; then :
11313   ac_cv_c_const=yes
11314 else
11315   ac_cv_c_const=no
11316 fi
11317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318 fi
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11320 $as_echo "$ac_cv_c_const" >&6; }
11321 if test $ac_cv_c_const = no; then
11322
11323 $as_echo "#define const /**/" >>confdefs.h
11324
11325 fi
11326
11327 if test $ac_cv_c_compiler_gnu = yes; then
11328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11329 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11330 if ${ac_cv_prog_gcc_traditional+:} false; then :
11331   $as_echo_n "(cached) " >&6
11332 else
11333     ac_pattern="Autoconf.*'x'"
11334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h.  */
11336 #include <sgtty.h>
11337 Autoconf TIOCGETP
11338 _ACEOF
11339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11340   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11341   ac_cv_prog_gcc_traditional=yes
11342 else
11343   ac_cv_prog_gcc_traditional=no
11344 fi
11345 rm -f conftest*
11346
11347
11348   if test $ac_cv_prog_gcc_traditional = no; then
11349     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h.  */
11351 #include <termio.h>
11352 Autoconf TCGETA
11353 _ACEOF
11354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11355   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11356   ac_cv_prog_gcc_traditional=yes
11357 fi
11358 rm -f conftest*
11359
11360   fi
11361 fi
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11363 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11364   if test $ac_cv_prog_gcc_traditional = yes; then
11365     CC="$CC -traditional"
11366   fi
11367 fi
11368
11369
11370 for ac_header in libutil.h pthread.h pty.h strings.h sys/prctl.h sys/uio.h  \
11371                   util.h utmp.h utmpx.h
11372 do :
11373   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11376   cat >>confdefs.h <<_ACEOF
11377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11378 _ACEOF
11379
11380 fi
11381
11382 done
11383
11384
11385 for ac_func in login_tty
11386 do :
11387   ac_fn_c_check_func "$LINENO" "login_tty" "ac_cv_func_login_tty"
11388 if test "x$ac_cv_func_login_tty" = xyes; then :
11389   cat >>confdefs.h <<_ACEOF
11390 #define HAVE_LOGIN_TTY 1
11391 _ACEOF
11392
11393 else
11394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login_tty in -lutil" >&5
11395 $as_echo_n "checking for login_tty in -lutil... " >&6; }
11396 if ${ac_cv_lib_util_login_tty+:} false; then :
11397   $as_echo_n "(cached) " >&6
11398 else
11399   ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-lutil  $LIBS"
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h.  */
11403
11404 /* Override any GCC internal prototype to avoid an error.
11405    Use char because int might match the return type of a GCC
11406    builtin and then its argument prototype would still apply.  */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 char login_tty ();
11411 int
11412 main ()
11413 {
11414 return login_tty ();
11415   ;
11416   return 0;
11417 }
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11420   ac_cv_lib_util_login_tty=yes
11421 else
11422   ac_cv_lib_util_login_tty=no
11423 fi
11424 rm -f core conftest.err conftest.$ac_objext \
11425     conftest$ac_exeext conftest.$ac_ext
11426 LIBS=$ac_check_lib_save_LIBS
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_login_tty" >&5
11429 $as_echo "$ac_cv_lib_util_login_tty" >&6; }
11430 if test "x$ac_cv_lib_util_login_tty" = xyes; then :
11431   LIBS="-lutil $LIBS"
11432                  $as_echo "#define HAVE_LOGIN_TTY 1" >>confdefs.h
11433
11434 fi
11435
11436 fi
11437 done
11438
11439
11440 for ac_func in strlcat
11441 do :
11442   ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11443 if test "x$ac_cv_func_strlcat" = xyes; then :
11444   cat >>confdefs.h <<_ACEOF
11445 #define HAVE_STRLCAT 1
11446 _ACEOF
11447
11448 fi
11449 done
11450
11451
11452 for ac_func in getgrgid_r getgrnam_r gethostbyname_r getpwnam_r getpwuid_r  \
11453                 openpty strcasestr getresuid getresgid setresuid setresgid
11454 do :
11455   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11456 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11457 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11458   cat >>confdefs.h <<_ACEOF
11459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11460 _ACEOF
11461
11462 fi
11463 done
11464
11465
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h.  */
11468 #ifndef _XOPEN_SOURCE
11469              #define _XOPEN_SOURCE
11470              #endif
11471              #ifndef _GNU_SOURCE
11472              #define _GNU_SOURCE
11473              #endif
11474              #include <stdlib.h>
11475 int
11476 main ()
11477 {
11478 char buf[10]; ptsname_r(0, buf, sizeof(buf));
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484
11485 $as_echo "#define HAVE_PTSNAME_R 1" >>confdefs.h
11486
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext \
11489     conftest$ac_exeext conftest.$ac_ext
11490
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h.  */
11493 #include <pthread.h>
11494              #include <signal.h>
11495 int
11496 main ()
11497 {
11498 sigset_t s; int n; sigwait(&s, &n);
11499   ;
11500   return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"; then :
11504
11505 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
11506
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext \
11509     conftest$ac_exeext conftest.$ac_ext
11510
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h.  */
11513 #include <math.h>
11514 int
11515 main ()
11516 {
11517 if (isnan(0.0)) return 1;
11518   ;
11519   return 0;
11520 }
11521 _ACEOF
11522 if ac_fn_c_try_link "$LINENO"; then :
11523
11524 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
11525
11526 fi
11527 rm -f core conftest.err conftest.$ac_objext \
11528     conftest$ac_exeext conftest.$ac_ext
11529
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h.  */
11532 #include <utmp.h>
11533 int
11534 main ()
11535 {
11536 updwtmp(0, 0);
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542
11543 $as_echo "#define HAVE_UPDWTMP 1" >>confdefs.h
11544
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547     conftest$ac_exeext conftest.$ac_ext
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h.  */
11550 #include <utmpx.h>
11551 int
11552 main ()
11553 {
11554 updwtmpx(0, 0);
11555   ;
11556   return 0;
11557 }
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"; then :
11560
11561 $as_echo "#define HAVE_UPDWTMPX 1" >>confdefs.h
11562
11563 fi
11564 rm -f core conftest.err conftest.$ac_objext \
11565     conftest$ac_exeext conftest.$ac_ext
11566
11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h.  */
11569 void x(void) { };
11570              void y(void) __attribute__((alias("x")));
11571 int
11572 main ()
11573 {
11574 y();
11575   ;
11576   return 0;
11577 }
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"; then :
11580
11581 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
11582
11583 fi
11584 rm -f core conftest.err conftest.$ac_objext \
11585     conftest$ac_exeext conftest.$ac_ext
11586
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h.  */
11589 void x(int i __attribute__((unused))) __attribute__((unused));
11590 int
11591 main ()
11592 {
11593
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 if ac_fn_c_try_link "$LINENO"; then :
11599
11600 $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
11601
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext \
11604     conftest$ac_exeext conftest.$ac_ext
11605
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h.  */
11608 #define _BSD_SOURCE
11609              #include <grp.h>
11610              #include <unistd.h>
11611 int
11612 main ()
11613 {
11614 int (*f)(const char *, int, int *, int *) = getgrouplist;
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620
11621 $as_echo "#define HAVE_GETGROUPLIST_TAKES_INTS 1" >>confdefs.h
11622
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625     conftest$ac_exeext conftest.$ac_ext
11626
11627 # Check whether --enable-login was given.
11628 if test "${enable_login+set}" = set; then :
11629   enableval=$enable_login;
11630 fi
11631
11632 if test "x$enable_login" != xno; then
11633
11634 $as_echo "#define HAVE_BIN_LOGIN 1" >>confdefs.h
11635
11636 fi
11637
11638 # Check whether --enable-ssl was given.
11639 if test "${enable_ssl+set}" = set; then :
11640   enableval=$enable_ssl;
11641 fi
11642
11643
11644 # Check whether --enable-pam was given.
11645 if test "${enable_pam+set}" = set; then :
11646   enableval=$enable_pam;
11647 fi
11648
11649
11650 # Check whether --enable-runtime-loading was given.
11651 if test "${enable_runtime_loading+set}" = set; then :
11652   enableval=$enable_runtime_loading;
11653 fi
11654
11655
11656 if test "x$enable_ssl" != xno; then
11657   for ac_header in openssl/bio.h openssl/err.h openssl/ssl.h
11658 do :
11659   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11660 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11661 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11662   cat >>confdefs.h <<_ACEOF
11663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11664 _ACEOF
11665
11666 fi
11667
11668 done
11669
11670 fi
11671
11672 if test "x$enable_pam" != xno; then
11673   for ac_header in security/pam_appl.h security/pam_client.h                 \
11674                     security/pam_misc.h
11675 do :
11676   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11677 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11678 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11679   cat >>confdefs.h <<_ACEOF
11680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11681 _ACEOF
11682
11683 fi
11684
11685 done
11686
11687 fi
11688
11689 if test "x$enable_runtime_loading" != xno; then
11690   for ac_func in dlopen
11691 do :
11692   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11693 if test "x$ac_cv_func_dlopen" = xyes; then :
11694   cat >>confdefs.h <<_ACEOF
11695 #define HAVE_DLOPEN 1
11696 _ACEOF
11697
11698 else
11699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11700 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11701 if ${ac_cv_lib_dl_dlopen+:} false; then :
11702   $as_echo_n "(cached) " >&6
11703 else
11704   ac_check_lib_save_LIBS=$LIBS
11705 LIBS="-ldl  $LIBS"
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h.  */
11708
11709 /* Override any GCC internal prototype to avoid an error.
11710    Use char because int might match the return type of a GCC
11711    builtin and then its argument prototype would still apply.  */
11712 #ifdef __cplusplus
11713 extern "C"
11714 #endif
11715 char dlopen ();
11716 int
11717 main ()
11718 {
11719 return dlopen ();
11720   ;
11721   return 0;
11722 }
11723 _ACEOF
11724 if ac_fn_c_try_link "$LINENO"; then :
11725   ac_cv_lib_dl_dlopen=yes
11726 else
11727   ac_cv_lib_dl_dlopen=no
11728 fi
11729 rm -f core conftest.err conftest.$ac_objext \
11730     conftest$ac_exeext conftest.$ac_ext
11731 LIBS=$ac_check_lib_save_LIBS
11732 fi
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11734 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11735 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11736   LIBS="-ldl $LIBS"
11737                                 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
11738
11739 else
11740   enable_runtime_loading=no
11741 fi
11742
11743 fi
11744 done
11745
11746 fi
11747
11748 if test "x$enable_runtime_loading" == xno; then
11749     if test "x$enable_ssl" != xno; then
11750     ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
11751 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
11752   ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
11753 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
11754   ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
11755 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
11756   LIBS="-lssl -lcrypto $LIBS"
11757 fi
11758
11759
11760 fi
11761
11762
11763 fi
11764
11765
11766   fi
11767
11768     if test "x$enable_pam" != xno; then
11769     ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
11770 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
11771   LIBS="-lpam $LIBS"
11772 fi
11773
11774
11775     ac_fn_c_check_header_mongrel "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "$ac_includes_default"
11776 if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
11777   LIBS="-lpam_misc $LIBS"
11778 fi
11779
11780
11781   fi
11782 fi
11783
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
11785 $as_echo_n "checking for deflate in -lz... " >&6; }
11786 if ${ac_cv_lib_z_deflate+:} false; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   ac_check_lib_save_LIBS=$LIBS
11790 LIBS="-lz  $LIBS"
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h.  */
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795    Use char because int might match the return type of a GCC
11796    builtin and then its argument prototype would still apply.  */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char deflate ();
11801 int
11802 main ()
11803 {
11804 return deflate ();
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 if ac_fn_c_try_link "$LINENO"; then :
11810   ac_cv_lib_z_deflate=yes
11811 else
11812   ac_cv_lib_z_deflate=no
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext \
11815     conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
11819 $as_echo "$ac_cv_lib_z_deflate" >&6; }
11820 if test "x$ac_cv_lib_z_deflate" = xyes; then :
11821
11822   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11823 if test "x$ac_cv_header_zlib_h" = xyes; then :
11824   LIBS="-lz $LIBS"
11825
11826 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11827
11828
11829 fi
11830
11831
11832 fi
11833
11834
11835 ac_config_files="$ac_config_files Makefile"
11836
11837 cat >confcache <<\_ACEOF
11838 # This file is a shell script that caches the results of configure
11839 # tests run on this system so they can be shared between configure
11840 # scripts and configure runs, see configure's option --config-cache.
11841 # It is not useful on other systems.  If it contains results you don't
11842 # want to keep, you may remove or edit it.
11843 #
11844 # config.status only pays attention to the cache file if you give it
11845 # the --recheck option to rerun configure.
11846 #
11847 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11848 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11849 # following values.
11850
11851 _ACEOF
11852
11853 # The following way of writing the cache mishandles newlines in values,
11854 # but we know of no workaround that is simple, portable, and efficient.
11855 # So, we kill variables containing newlines.
11856 # Ultrix sh set writes to stderr and can't be redirected directly,
11857 # and sets the high bit in the cache file unless we assign to the vars.
11858 (
11859   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11860     eval ac_val=\$$ac_var
11861     case $ac_val in #(
11862     *${as_nl}*)
11863       case $ac_var in #(
11864       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11866       esac
11867       case $ac_var in #(
11868       _ | IFS | as_nl) ;; #(
11869       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11870       *) { eval $ac_var=; unset $ac_var;} ;;
11871       esac ;;
11872     esac
11873   done
11874
11875   (set) 2>&1 |
11876     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11877     *${as_nl}ac_space=\ *)
11878       # `set' does not quote correctly, so add quotes: double-quote
11879       # substitution turns \\\\ into \\, and sed turns \\ into \.
11880       sed -n \
11881         "s/'/'\\\\''/g;
11882           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11883       ;; #(
11884     *)
11885       # `set' quotes correctly as required by POSIX, so do not add quotes.
11886       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11887       ;;
11888     esac |
11889     sort
11890 ) |
11891   sed '
11892      /^ac_cv_env_/b end
11893      t clear
11894      :clear
11895      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11896      t end
11897      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11898      :end' >>confcache
11899 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11900   if test -w "$cache_file"; then
11901     if test "x$cache_file" != "x/dev/null"; then
11902       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11903 $as_echo "$as_me: updating cache $cache_file" >&6;}
11904       if test ! -f "$cache_file" || test -h "$cache_file"; then
11905         cat confcache >"$cache_file"
11906       else
11907         case $cache_file in #(
11908         */* | ?:*)
11909           mv -f confcache "$cache_file"$$ &&
11910           mv -f "$cache_file"$$ "$cache_file" ;; #(
11911         *)
11912           mv -f confcache "$cache_file" ;;
11913         esac
11914       fi
11915     fi
11916   else
11917     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11918 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11919   fi
11920 fi
11921 rm -f confcache
11922
11923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11924 # Let make expand exec_prefix.
11925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11926
11927 DEFS=-DHAVE_CONFIG_H
11928
11929 ac_libobjs=
11930 ac_ltlibobjs=
11931 U=
11932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11933   # 1. Remove the extension, and $U if already installed.
11934   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11935   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11936   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11937   #    will be set to the directory where LIBOBJS objects are built.
11938   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11939   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11940 done
11941 LIBOBJS=$ac_libobjs
11942
11943 LTLIBOBJS=$ac_ltlibobjs
11944
11945
11946  if test -n "$EXEEXT"; then
11947   am__EXEEXT_TRUE=
11948   am__EXEEXT_FALSE='#'
11949 else
11950   am__EXEEXT_TRUE='#'
11951   am__EXEEXT_FALSE=
11952 fi
11953
11954 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11955   as_fn_error $? "conditional \"AMDEP\" was never defined.
11956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11957 fi
11958 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11959   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11961 fi
11962
11963 : "${CONFIG_STATUS=./config.status}"
11964 ac_write_fail=0
11965 ac_clean_files_save=$ac_clean_files
11966 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11968 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11969 as_write_fail=0
11970 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11971 #! $SHELL
11972 # Generated by $as_me.
11973 # Run this file to recreate the current configuration.
11974 # Compiler output produced by configure, useful for debugging
11975 # configure, is in config.log if it exists.
11976
11977 debug=false
11978 ac_cs_recheck=false
11979 ac_cs_silent=false
11980
11981 SHELL=\${CONFIG_SHELL-$SHELL}
11982 export SHELL
11983 _ASEOF
11984 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11985 ## -------------------- ##
11986 ## M4sh Initialization. ##
11987 ## -------------------- ##
11988
11989 # Be more Bourne compatible
11990 DUALCASE=1; export DUALCASE # for MKS sh
11991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11992   emulate sh
11993   NULLCMD=:
11994   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11995   # is contrary to our usage.  Disable this feature.
11996   alias -g '${1+"$@"}'='"$@"'
11997   setopt NO_GLOB_SUBST
11998 else
11999   case `(set -o) 2>/dev/null` in #(
12000   *posix*) :
12001     set -o posix ;; #(
12002   *) :
12003      ;;
12004 esac
12005 fi
12006
12007
12008 as_nl='
12009 '
12010 export as_nl
12011 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12012 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12015 # Prefer a ksh shell builtin over an external printf program on Solaris,
12016 # but without wasting forks for bash or zsh.
12017 if test -z "$BASH_VERSION$ZSH_VERSION" \
12018     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12019   as_echo='print -r --'
12020   as_echo_n='print -rn --'
12021 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12022   as_echo='printf %s\n'
12023   as_echo_n='printf %s'
12024 else
12025   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12026     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12027     as_echo_n='/usr/ucb/echo -n'
12028   else
12029     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12030     as_echo_n_body='eval
12031       arg=$1;
12032       case $arg in #(
12033       *"$as_nl"*)
12034         expr "X$arg" : "X\\(.*\\)$as_nl";
12035         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12036       esac;
12037       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12038     '
12039     export as_echo_n_body
12040     as_echo_n='sh -c $as_echo_n_body as_echo'
12041   fi
12042   export as_echo_body
12043   as_echo='sh -c $as_echo_body as_echo'
12044 fi
12045
12046 # The user is always right.
12047 if test "${PATH_SEPARATOR+set}" != set; then
12048   PATH_SEPARATOR=:
12049   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12050     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12051       PATH_SEPARATOR=';'
12052   }
12053 fi
12054
12055
12056 # IFS
12057 # We need space, tab and new line, in precisely that order.  Quoting is
12058 # there to prevent editors from complaining about space-tab.
12059 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12060 # splitting by setting IFS to empty value.)
12061 IFS=" ""        $as_nl"
12062
12063 # Find who we are.  Look in the path if we contain no directory separator.
12064 as_myself=
12065 case $0 in #((
12066   *[\\/]* ) as_myself=$0 ;;
12067   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070   IFS=$as_save_IFS
12071   test -z "$as_dir" && as_dir=.
12072     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12073   done
12074 IFS=$as_save_IFS
12075
12076      ;;
12077 esac
12078 # We did not find ourselves, most probably we were run as `sh COMMAND'
12079 # in which case we are not to be found in the path.
12080 if test "x$as_myself" = x; then
12081   as_myself=$0
12082 fi
12083 if test ! -f "$as_myself"; then
12084   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12085   exit 1
12086 fi
12087
12088 # Unset variables that we do not need and which cause bugs (e.g. in
12089 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12090 # suppresses any "Segmentation fault" message there.  '((' could
12091 # trigger a bug in pdksh 5.2.14.
12092 for as_var in BASH_ENV ENV MAIL MAILPATH
12093 do eval test x\${$as_var+set} = xset \
12094   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12095 done
12096 PS1='$ '
12097 PS2='> '
12098 PS4='+ '
12099
12100 # NLS nuisances.
12101 LC_ALL=C
12102 export LC_ALL
12103 LANGUAGE=C
12104 export LANGUAGE
12105
12106 # CDPATH.
12107 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12108
12109
12110 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12111 # ----------------------------------------
12112 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12113 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12114 # script with STATUS, using 1 if that was 0.
12115 as_fn_error ()
12116 {
12117   as_status=$1; test $as_status -eq 0 && as_status=1
12118   if test "$4"; then
12119     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12120     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12121   fi
12122   $as_echo "$as_me: error: $2" >&2
12123   as_fn_exit $as_status
12124 } # as_fn_error
12125
12126
12127 # as_fn_set_status STATUS
12128 # -----------------------
12129 # Set $? to STATUS, without forking.
12130 as_fn_set_status ()
12131 {
12132   return $1
12133 } # as_fn_set_status
12134
12135 # as_fn_exit STATUS
12136 # -----------------
12137 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12138 as_fn_exit ()
12139 {
12140   set +e
12141   as_fn_set_status $1
12142   exit $1
12143 } # as_fn_exit
12144
12145 # as_fn_unset VAR
12146 # ---------------
12147 # Portably unset VAR.
12148 as_fn_unset ()
12149 {
12150   { eval $1=; unset $1;}
12151 }
12152 as_unset=as_fn_unset
12153 # as_fn_append VAR VALUE
12154 # ----------------------
12155 # Append the text in VALUE to the end of the definition contained in VAR. Take
12156 # advantage of any shell optimizations that allow amortized linear growth over
12157 # repeated appends, instead of the typical quadratic growth present in naive
12158 # implementations.
12159 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12160   eval 'as_fn_append ()
12161   {
12162     eval $1+=\$2
12163   }'
12164 else
12165   as_fn_append ()
12166   {
12167     eval $1=\$$1\$2
12168   }
12169 fi # as_fn_append
12170
12171 # as_fn_arith ARG...
12172 # ------------------
12173 # Perform arithmetic evaluation on the ARGs, and store the result in the
12174 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12175 # must be portable across $(()) and expr.
12176 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12177   eval 'as_fn_arith ()
12178   {
12179     as_val=$(( $* ))
12180   }'
12181 else
12182   as_fn_arith ()
12183   {
12184     as_val=`expr "$@" || test $? -eq 1`
12185   }
12186 fi # as_fn_arith
12187
12188
12189 if expr a : '\(a\)' >/dev/null 2>&1 &&
12190    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12191   as_expr=expr
12192 else
12193   as_expr=false
12194 fi
12195
12196 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12197   as_basename=basename
12198 else
12199   as_basename=false
12200 fi
12201
12202 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12203   as_dirname=dirname
12204 else
12205   as_dirname=false
12206 fi
12207
12208 as_me=`$as_basename -- "$0" ||
12209 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12210          X"$0" : 'X\(//\)$' \| \
12211          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12212 $as_echo X/"$0" |
12213     sed '/^.*\/\([^/][^/]*\)\/*$/{
12214             s//\1/
12215             q
12216           }
12217           /^X\/\(\/\/\)$/{
12218             s//\1/
12219             q
12220           }
12221           /^X\/\(\/\).*/{
12222             s//\1/
12223             q
12224           }
12225           s/.*/./; q'`
12226
12227 # Avoid depending upon Character Ranges.
12228 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12229 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12230 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12231 as_cr_digits='0123456789'
12232 as_cr_alnum=$as_cr_Letters$as_cr_digits
12233
12234 ECHO_C= ECHO_N= ECHO_T=
12235 case `echo -n x` in #(((((
12236 -n*)
12237   case `echo 'xy\c'` in
12238   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12239   xy)  ECHO_C='\c';;
12240   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12241        ECHO_T=' ';;
12242   esac;;
12243 *)
12244   ECHO_N='-n';;
12245 esac
12246
12247 rm -f conf$$ conf$$.exe conf$$.file
12248 if test -d conf$$.dir; then
12249   rm -f conf$$.dir/conf$$.file
12250 else
12251   rm -f conf$$.dir
12252   mkdir conf$$.dir 2>/dev/null
12253 fi
12254 if (echo >conf$$.file) 2>/dev/null; then
12255   if ln -s conf$$.file conf$$ 2>/dev/null; then
12256     as_ln_s='ln -s'
12257     # ... but there are two gotchas:
12258     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12259     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12260     # In both cases, we have to default to `cp -p'.
12261     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12262       as_ln_s='cp -p'
12263   elif ln conf$$.file conf$$ 2>/dev/null; then
12264     as_ln_s=ln
12265   else
12266     as_ln_s='cp -p'
12267   fi
12268 else
12269   as_ln_s='cp -p'
12270 fi
12271 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12272 rmdir conf$$.dir 2>/dev/null
12273
12274
12275 # as_fn_mkdir_p
12276 # -------------
12277 # Create "$as_dir" as a directory, including parents if necessary.
12278 as_fn_mkdir_p ()
12279 {
12280
12281   case $as_dir in #(
12282   -*) as_dir=./$as_dir;;
12283   esac
12284   test -d "$as_dir" || eval $as_mkdir_p || {
12285     as_dirs=
12286     while :; do
12287       case $as_dir in #(
12288       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12289       *) as_qdir=$as_dir;;
12290       esac
12291       as_dirs="'$as_qdir' $as_dirs"
12292       as_dir=`$as_dirname -- "$as_dir" ||
12293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12294          X"$as_dir" : 'X\(//\)[^/]' \| \
12295          X"$as_dir" : 'X\(//\)$' \| \
12296          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12297 $as_echo X"$as_dir" |
12298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12299             s//\1/
12300             q
12301           }
12302           /^X\(\/\/\)[^/].*/{
12303             s//\1/
12304             q
12305           }
12306           /^X\(\/\/\)$/{
12307             s//\1/
12308             q
12309           }
12310           /^X\(\/\).*/{
12311             s//\1/
12312             q
12313           }
12314           s/.*/./; q'`
12315       test -d "$as_dir" && break
12316     done
12317     test -z "$as_dirs" || eval "mkdir $as_dirs"
12318   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12319
12320
12321 } # as_fn_mkdir_p
12322 if mkdir -p . 2>/dev/null; then
12323   as_mkdir_p='mkdir -p "$as_dir"'
12324 else
12325   test -d ./-p && rmdir ./-p
12326   as_mkdir_p=false
12327 fi
12328
12329 if test -x / >/dev/null 2>&1; then
12330   as_test_x='test -x'
12331 else
12332   if ls -dL / >/dev/null 2>&1; then
12333     as_ls_L_option=L
12334   else
12335     as_ls_L_option=
12336   fi
12337   as_test_x='
12338     eval sh -c '\''
12339       if test -d "$1"; then
12340         test -d "$1/.";
12341       else
12342         case $1 in #(
12343         -*)set "./$1";;
12344         esac;
12345         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12346         ???[sx]*):;;*)false;;esac;fi
12347     '\'' sh
12348   '
12349 fi
12350 as_executable_p=$as_test_x
12351
12352 # Sed expression to map a string onto a valid CPP name.
12353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12354
12355 # Sed expression to map a string onto a valid variable name.
12356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12357
12358
12359 exec 6>&1
12360 ## ----------------------------------- ##
12361 ## Main body of $CONFIG_STATUS script. ##
12362 ## ----------------------------------- ##
12363 _ASEOF
12364 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12365
12366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12367 # Save the log message, to keep $0 and so on meaningful, and to
12368 # report actual input values of CONFIG_FILES etc. instead of their
12369 # values after options handling.
12370 ac_log="
12371 This file was extended by shellinabox $as_me 2.10, which was
12372 generated by GNU Autoconf 2.68.  Invocation command line was
12373
12374   CONFIG_FILES    = $CONFIG_FILES
12375   CONFIG_HEADERS  = $CONFIG_HEADERS
12376   CONFIG_LINKS    = $CONFIG_LINKS
12377   CONFIG_COMMANDS = $CONFIG_COMMANDS
12378   $ $0 $@
12379
12380 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12381 "
12382
12383 _ACEOF
12384
12385 case $ac_config_files in *"
12386 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12387 esac
12388
12389 case $ac_config_headers in *"
12390 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12391 esac
12392
12393
12394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12395 # Files that config.status was made for.
12396 config_files="$ac_config_files"
12397 config_headers="$ac_config_headers"
12398 config_commands="$ac_config_commands"
12399
12400 _ACEOF
12401
12402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12403 ac_cs_usage="\
12404 \`$as_me' instantiates files and other configuration actions
12405 from templates according to the current configuration.  Unless the files
12406 and actions are specified as TAGs, all are instantiated by default.
12407
12408 Usage: $0 [OPTION]... [TAG]...
12409
12410   -h, --help       print this help, then exit
12411   -V, --version    print version number and configuration settings, then exit
12412       --config     print configuration, then exit
12413   -q, --quiet, --silent
12414                    do not print progress messages
12415   -d, --debug      don't remove temporary files
12416       --recheck    update $as_me by reconfiguring in the same conditions
12417       --file=FILE[:TEMPLATE]
12418                    instantiate the configuration file FILE
12419       --header=FILE[:TEMPLATE]
12420                    instantiate the configuration header FILE
12421
12422 Configuration files:
12423 $config_files
12424
12425 Configuration headers:
12426 $config_headers
12427
12428 Configuration commands:
12429 $config_commands
12430
12431 Report bugs to <markus@shellinabox.com>."
12432
12433 _ACEOF
12434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12435 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12436 ac_cs_version="\\
12437 shellinabox config.status 2.10
12438 configured by $0, generated by GNU Autoconf 2.68,
12439   with options \\"\$ac_cs_config\\"
12440
12441 Copyright (C) 2010 Free Software Foundation, Inc.
12442 This config.status script is free software; the Free Software Foundation
12443 gives unlimited permission to copy, distribute and modify it."
12444
12445 ac_pwd='$ac_pwd'
12446 srcdir='$srcdir'
12447 INSTALL='$INSTALL'
12448 MKDIR_P='$MKDIR_P'
12449 AWK='$AWK'
12450 test -n "\$AWK" || AWK=awk
12451 _ACEOF
12452
12453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12454 # The default lists apply if the user does not specify any file.
12455 ac_need_defaults=:
12456 while test $# != 0
12457 do
12458   case $1 in
12459   --*=?*)
12460     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12461     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12462     ac_shift=:
12463     ;;
12464   --*=)
12465     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12466     ac_optarg=
12467     ac_shift=:
12468     ;;
12469   *)
12470     ac_option=$1
12471     ac_optarg=$2
12472     ac_shift=shift
12473     ;;
12474   esac
12475
12476   case $ac_option in
12477   # Handling of the options.
12478   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12479     ac_cs_recheck=: ;;
12480   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12481     $as_echo "$ac_cs_version"; exit ;;
12482   --config | --confi | --conf | --con | --co | --c )
12483     $as_echo "$ac_cs_config"; exit ;;
12484   --debug | --debu | --deb | --de | --d | -d )
12485     debug=: ;;
12486   --file | --fil | --fi | --f )
12487     $ac_shift
12488     case $ac_optarg in
12489     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12490     '') as_fn_error $? "missing file argument" ;;
12491     esac
12492     as_fn_append CONFIG_FILES " '$ac_optarg'"
12493     ac_need_defaults=false;;
12494   --header | --heade | --head | --hea )
12495     $ac_shift
12496     case $ac_optarg in
12497     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12498     esac
12499     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12500     ac_need_defaults=false;;
12501   --he | --h)
12502     # Conflict between --help and --header
12503     as_fn_error $? "ambiguous option: \`$1'
12504 Try \`$0 --help' for more information.";;
12505   --help | --hel | -h )
12506     $as_echo "$ac_cs_usage"; exit ;;
12507   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12508   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12509     ac_cs_silent=: ;;
12510
12511   # This is an error.
12512   -*) as_fn_error $? "unrecognized option: \`$1'
12513 Try \`$0 --help' for more information." ;;
12514
12515   *) as_fn_append ac_config_targets " $1"
12516      ac_need_defaults=false ;;
12517
12518   esac
12519   shift
12520 done
12521
12522 ac_configure_extra_args=
12523
12524 if $ac_cs_silent; then
12525   exec 6>/dev/null
12526   ac_configure_extra_args="$ac_configure_extra_args --silent"
12527 fi
12528
12529 _ACEOF
12530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12531 if \$ac_cs_recheck; then
12532   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12533   shift
12534   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12535   CONFIG_SHELL='$SHELL'
12536   export CONFIG_SHELL
12537   exec "\$@"
12538 fi
12539
12540 _ACEOF
12541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12542 exec 5>>config.log
12543 {
12544   echo
12545   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12546 ## Running $as_me. ##
12547 _ASBOX
12548   $as_echo "$ac_log"
12549 } >&5
12550
12551 _ACEOF
12552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12553 #
12554 # INIT-COMMANDS
12555 #
12556 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12557
12558
12559 # The HP-UX ksh and POSIX shell print the target directory to stdout
12560 # if CDPATH is set.
12561 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12562
12563 sed_quote_subst='$sed_quote_subst'
12564 double_quote_subst='$double_quote_subst'
12565 delay_variable_subst='$delay_variable_subst'
12566 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12567 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12568 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12569 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12570 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12571 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12572 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12573 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12574 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12575 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12576 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12577 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12578 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12579 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12580 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12581 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12582 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12583 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12584 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12585 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12586 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12587 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12588 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12589 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12590 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12591 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12592 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12593 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12594 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12595 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12596 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12597 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12598 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12599 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12600 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12601 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12602 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12603 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12604 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12605 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12606 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12607 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12608 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12609 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12610 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12611 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12612 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12613 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12614 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12615 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12616 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12617 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12618 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12619 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12620 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12621 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"`'
12622 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12623 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12624 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12625 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12626 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12627 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12628 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12629 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12630 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12631 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12632 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12633 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12634 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12635 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12636 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12637 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12638 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12639 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12640 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12641 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12642 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12643 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12644 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12645 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12646 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12647 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12648 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12649 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12650 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12651 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12652 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12653 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12654 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12655 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12656 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12657 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12658 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12659 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12660 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12661 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12662 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12663 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12664 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12665 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12666 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12667 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12668 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12669 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12670 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12671 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12672 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12673 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12674 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12675 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12676 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12677 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12678 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12679 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12680 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12681 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12682 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12683 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12684 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12685 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12686 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12687 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12688 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12689 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12690 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12691 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12692 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12693 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12694 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12695 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12696
12697 LTCC='$LTCC'
12698 LTCFLAGS='$LTCFLAGS'
12699 compiler='$compiler_DEFAULT'
12700
12701 # A function that is used when there is no print builtin or printf.
12702 func_fallback_echo ()
12703 {
12704   eval 'cat <<_LTECHO_EOF
12705 \$1
12706 _LTECHO_EOF'
12707 }
12708
12709 # Quote evaled strings.
12710 for var in SHELL \
12711 ECHO \
12712 SED \
12713 GREP \
12714 EGREP \
12715 FGREP \
12716 LD \
12717 NM \
12718 LN_S \
12719 lt_SP2NL \
12720 lt_NL2SP \
12721 reload_flag \
12722 OBJDUMP \
12723 deplibs_check_method \
12724 file_magic_cmd \
12725 file_magic_glob \
12726 want_nocaseglob \
12727 DLLTOOL \
12728 sharedlib_from_linklib_cmd \
12729 AR \
12730 AR_FLAGS \
12731 archiver_list_spec \
12732 STRIP \
12733 RANLIB \
12734 CC \
12735 CFLAGS \
12736 compiler \
12737 lt_cv_sys_global_symbol_pipe \
12738 lt_cv_sys_global_symbol_to_cdecl \
12739 lt_cv_sys_global_symbol_to_c_name_address \
12740 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12741 nm_file_list_spec \
12742 lt_prog_compiler_no_builtin_flag \
12743 lt_prog_compiler_pic \
12744 lt_prog_compiler_wl \
12745 lt_prog_compiler_static \
12746 lt_cv_prog_compiler_c_o \
12747 need_locks \
12748 MANIFEST_TOOL \
12749 DSYMUTIL \
12750 NMEDIT \
12751 LIPO \
12752 OTOOL \
12753 OTOOL64 \
12754 shrext_cmds \
12755 export_dynamic_flag_spec \
12756 whole_archive_flag_spec \
12757 compiler_needs_object \
12758 with_gnu_ld \
12759 allow_undefined_flag \
12760 no_undefined_flag \
12761 hardcode_libdir_flag_spec \
12762 hardcode_libdir_flag_spec_ld \
12763 hardcode_libdir_separator \
12764 exclude_expsyms \
12765 include_expsyms \
12766 file_list_spec \
12767 variables_saved_for_relink \
12768 libname_spec \
12769 library_names_spec \
12770 soname_spec \
12771 install_override_mode \
12772 finish_eval \
12773 old_striplib \
12774 striplib; do
12775     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12776     *[\\\\\\\`\\"\\\$]*)
12777       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12778       ;;
12779     *)
12780       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12781       ;;
12782     esac
12783 done
12784
12785 # Double-quote double-evaled strings.
12786 for var in reload_cmds \
12787 old_postinstall_cmds \
12788 old_postuninstall_cmds \
12789 old_archive_cmds \
12790 extract_expsyms_cmds \
12791 old_archive_from_new_cmds \
12792 old_archive_from_expsyms_cmds \
12793 archive_cmds \
12794 archive_expsym_cmds \
12795 module_cmds \
12796 module_expsym_cmds \
12797 export_symbols_cmds \
12798 prelink_cmds \
12799 postlink_cmds \
12800 postinstall_cmds \
12801 postuninstall_cmds \
12802 finish_cmds \
12803 sys_lib_search_path_spec \
12804 sys_lib_dlsearch_path_spec; do
12805     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12806     *[\\\\\\\`\\"\\\$]*)
12807       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12808       ;;
12809     *)
12810       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12811       ;;
12812     esac
12813 done
12814
12815 ac_aux_dir='$ac_aux_dir'
12816 xsi_shell='$xsi_shell'
12817 lt_shell_append='$lt_shell_append'
12818
12819 # See if we are running on zsh, and set the options which allow our
12820 # commands through without removal of \ escapes INIT.
12821 if test -n "\${ZSH_VERSION+set}" ; then
12822    setopt NO_GLOB_SUBST
12823 fi
12824
12825
12826     PACKAGE='$PACKAGE'
12827     VERSION='$VERSION'
12828     TIMESTAMP='$TIMESTAMP'
12829     RM='$RM'
12830     ofile='$ofile'
12831
12832
12833
12834
12835 _ACEOF
12836
12837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12838
12839 # Handling of arguments.
12840 for ac_config_target in $ac_config_targets
12841 do
12842   case $ac_config_target in
12843     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12844     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12845     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12846     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12847
12848   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12849   esac
12850 done
12851
12852
12853 # If the user did not use the arguments to specify the items to instantiate,
12854 # then the envvar interface is used.  Set only those that are not.
12855 # We use the long form for the default assignment because of an extremely
12856 # bizarre bug on SunOS 4.1.3.
12857 if $ac_need_defaults; then
12858   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12859   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12860   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12861 fi
12862
12863 # Have a temporary directory for convenience.  Make it in the build tree
12864 # simply because there is no reason against having it here, and in addition,
12865 # creating and moving files from /tmp can sometimes cause problems.
12866 # Hook for its removal unless debugging.
12867 # Note that there is a small window in which the directory will not be cleaned:
12868 # after its creation but before its name has been assigned to `$tmp'.
12869 $debug ||
12870 {
12871   tmp= ac_tmp=
12872   trap 'exit_status=$?
12873   : "${ac_tmp:=$tmp}"
12874   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12875 ' 0
12876   trap 'as_fn_exit 1' 1 2 13 15
12877 }
12878 # Create a (secure) tmp directory for tmp files.
12879
12880 {
12881   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12882   test -d "$tmp"
12883 }  ||
12884 {
12885   tmp=./conf$$-$RANDOM
12886   (umask 077 && mkdir "$tmp")
12887 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12888 ac_tmp=$tmp
12889
12890 # Set up the scripts for CONFIG_FILES section.
12891 # No need to generate them if there are no CONFIG_FILES.
12892 # This happens for instance with `./config.status config.h'.
12893 if test -n "$CONFIG_FILES"; then
12894
12895
12896 ac_cr=`echo X | tr X '\015'`
12897 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12898 # But we know of no other shell where ac_cr would be empty at this
12899 # point, so we can use a bashism as a fallback.
12900 if test "x$ac_cr" = x; then
12901   eval ac_cr=\$\'\\r\'
12902 fi
12903 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12904 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12905   ac_cs_awk_cr='\\r'
12906 else
12907   ac_cs_awk_cr=$ac_cr
12908 fi
12909
12910 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12911 _ACEOF
12912
12913
12914 {
12915   echo "cat >conf$$subs.awk <<_ACEOF" &&
12916   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12917   echo "_ACEOF"
12918 } >conf$$subs.sh ||
12919   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12920 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12921 ac_delim='%!_!# '
12922 for ac_last_try in false false false false false :; do
12923   . ./conf$$subs.sh ||
12924     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12925
12926   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12927   if test $ac_delim_n = $ac_delim_num; then
12928     break
12929   elif $ac_last_try; then
12930     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12931   else
12932     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12933   fi
12934 done
12935 rm -f conf$$subs.sh
12936
12937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12938 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12939 _ACEOF
12940 sed -n '
12941 h
12942 s/^/S["/; s/!.*/"]=/
12943 p
12944 g
12945 s/^[^!]*!//
12946 :repl
12947 t repl
12948 s/'"$ac_delim"'$//
12949 t delim
12950 :nl
12951 h
12952 s/\(.\{148\}\)..*/\1/
12953 t more1
12954 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12955 p
12956 n
12957 b repl
12958 :more1
12959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12960 p
12961 g
12962 s/.\{148\}//
12963 t nl
12964 :delim
12965 h
12966 s/\(.\{148\}\)..*/\1/
12967 t more2
12968 s/["\\]/\\&/g; s/^/"/; s/$/"/
12969 p
12970 b
12971 :more2
12972 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12973 p
12974 g
12975 s/.\{148\}//
12976 t delim
12977 ' <conf$$subs.awk | sed '
12978 /^[^""]/{
12979   N
12980   s/\n//
12981 }
12982 ' >>$CONFIG_STATUS || ac_write_fail=1
12983 rm -f conf$$subs.awk
12984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12985 _ACAWK
12986 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12987   for (key in S) S_is_set[key] = 1
12988   FS = "\a"
12989
12990 }
12991 {
12992   line = $ 0
12993   nfields = split(line, field, "@")
12994   substed = 0
12995   len = length(field[1])
12996   for (i = 2; i < nfields; i++) {
12997     key = field[i]
12998     keylen = length(key)
12999     if (S_is_set[key]) {
13000       value = S[key]
13001       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13002       len += length(value) + length(field[++i])
13003       substed = 1
13004     } else
13005       len += 1 + keylen
13006   }
13007
13008   print line
13009 }
13010
13011 _ACAWK
13012 _ACEOF
13013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13014 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13015   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13016 else
13017   cat
13018 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13019   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13020 _ACEOF
13021
13022 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13023 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13024 # trailing colons and then remove the whole line if VPATH becomes empty
13025 # (actually we leave an empty line to preserve line numbers).
13026 if test "x$srcdir" = x.; then
13027   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13028 h
13029 s///
13030 s/^/:/
13031 s/[      ]*$/:/
13032 s/:\$(srcdir):/:/g
13033 s/:\${srcdir}:/:/g
13034 s/:@srcdir@:/:/g
13035 s/^:*//
13036 s/:*$//
13037 x
13038 s/\(=[   ]*\).*/\1/
13039 G
13040 s/\n//
13041 s/^[^=]*=[       ]*$//
13042 }'
13043 fi
13044
13045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13046 fi # test -n "$CONFIG_FILES"
13047
13048 # Set up the scripts for CONFIG_HEADERS section.
13049 # No need to generate them if there are no CONFIG_HEADERS.
13050 # This happens for instance with `./config.status Makefile'.
13051 if test -n "$CONFIG_HEADERS"; then
13052 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13053 BEGIN {
13054 _ACEOF
13055
13056 # Transform confdefs.h into an awk script `defines.awk', embedded as
13057 # here-document in config.status, that substitutes the proper values into
13058 # config.h.in to produce config.h.
13059
13060 # Create a delimiter string that does not exist in confdefs.h, to ease
13061 # handling of long lines.
13062 ac_delim='%!_!# '
13063 for ac_last_try in false false :; do
13064   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13065   if test -z "$ac_tt"; then
13066     break
13067   elif $ac_last_try; then
13068     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13069   else
13070     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13071   fi
13072 done
13073
13074 # For the awk script, D is an array of macro values keyed by name,
13075 # likewise P contains macro parameters if any.  Preserve backslash
13076 # newline sequences.
13077
13078 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13079 sed -n '
13080 s/.\{148\}/&'"$ac_delim"'/g
13081 t rset
13082 :rset
13083 s/^[     ]*#[    ]*define[       ][      ]*/ /
13084 t def
13085 d
13086 :def
13087 s/\\$//
13088 t bsnl
13089 s/["\\]/\\&/g
13090 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13091 D["\1"]=" \3"/p
13092 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13093 d
13094 :bsnl
13095 s/["\\]/\\&/g
13096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13097 D["\1"]=" \3\\\\\\n"\\/p
13098 t cont
13099 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13100 t cont
13101 d
13102 :cont
13103 n
13104 s/.\{148\}/&'"$ac_delim"'/g
13105 t clear
13106 :clear
13107 s/\\$//
13108 t bsnlc
13109 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13110 d
13111 :bsnlc
13112 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13113 b cont
13114 ' <confdefs.h | sed '
13115 s/'"$ac_delim"'/"\\\
13116 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13117
13118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13119   for (key in D) D_is_set[key] = 1
13120   FS = "\a"
13121 }
13122 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13123   line = \$ 0
13124   split(line, arg, " ")
13125   if (arg[1] == "#") {
13126     defundef = arg[2]
13127     mac1 = arg[3]
13128   } else {
13129     defundef = substr(arg[1], 2)
13130     mac1 = arg[2]
13131   }
13132   split(mac1, mac2, "(") #)
13133   macro = mac2[1]
13134   prefix = substr(line, 1, index(line, defundef) - 1)
13135   if (D_is_set[macro]) {
13136     # Preserve the white space surrounding the "#".
13137     print prefix "define", macro P[macro] D[macro]
13138     next
13139   } else {
13140     # Replace #undef with comments.  This is necessary, for example,
13141     # in the case of _POSIX_SOURCE, which is predefined and required
13142     # on some systems where configure will not decide to define it.
13143     if (defundef == "undef") {
13144       print "/*", prefix defundef, macro, "*/"
13145       next
13146     }
13147   }
13148 }
13149 { print }
13150 _ACAWK
13151 _ACEOF
13152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13153   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13154 fi # test -n "$CONFIG_HEADERS"
13155
13156
13157 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13158 shift
13159 for ac_tag
13160 do
13161   case $ac_tag in
13162   :[FHLC]) ac_mode=$ac_tag; continue;;
13163   esac
13164   case $ac_mode$ac_tag in
13165   :[FHL]*:*);;
13166   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13167   :[FH]-) ac_tag=-:-;;
13168   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13169   esac
13170   ac_save_IFS=$IFS
13171   IFS=:
13172   set x $ac_tag
13173   IFS=$ac_save_IFS
13174   shift
13175   ac_file=$1
13176   shift
13177
13178   case $ac_mode in
13179   :L) ac_source=$1;;
13180   :[FH])
13181     ac_file_inputs=
13182     for ac_f
13183     do
13184       case $ac_f in
13185       -) ac_f="$ac_tmp/stdin";;
13186       *) # Look for the file first in the build tree, then in the source tree
13187          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13188          # because $ac_f cannot contain `:'.
13189          test -f "$ac_f" ||
13190            case $ac_f in
13191            [\\/$]*) false;;
13192            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13193            esac ||
13194            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13195       esac
13196       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13197       as_fn_append ac_file_inputs " '$ac_f'"
13198     done
13199
13200     # Let's still pretend it is `configure' which instantiates (i.e., don't
13201     # use $as_me), people would be surprised to read:
13202     #    /* config.h.  Generated by config.status.  */
13203     configure_input='Generated from '`
13204           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13205         `' by configure.'
13206     if test x"$ac_file" != x-; then
13207       configure_input="$ac_file.  $configure_input"
13208       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13209 $as_echo "$as_me: creating $ac_file" >&6;}
13210     fi
13211     # Neutralize special characters interpreted by sed in replacement strings.
13212     case $configure_input in #(
13213     *\&* | *\|* | *\\* )
13214        ac_sed_conf_input=`$as_echo "$configure_input" |
13215        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13216     *) ac_sed_conf_input=$configure_input;;
13217     esac
13218
13219     case $ac_tag in
13220     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13221       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13222     esac
13223     ;;
13224   esac
13225
13226   ac_dir=`$as_dirname -- "$ac_file" ||
13227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13228          X"$ac_file" : 'X\(//\)[^/]' \| \
13229          X"$ac_file" : 'X\(//\)$' \| \
13230          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13231 $as_echo X"$ac_file" |
13232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13233             s//\1/
13234             q
13235           }
13236           /^X\(\/\/\)[^/].*/{
13237             s//\1/
13238             q
13239           }
13240           /^X\(\/\/\)$/{
13241             s//\1/
13242             q
13243           }
13244           /^X\(\/\).*/{
13245             s//\1/
13246             q
13247           }
13248           s/.*/./; q'`
13249   as_dir="$ac_dir"; as_fn_mkdir_p
13250   ac_builddir=.
13251
13252 case "$ac_dir" in
13253 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13254 *)
13255   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13256   # A ".." for each directory in $ac_dir_suffix.
13257   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13258   case $ac_top_builddir_sub in
13259   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13260   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13261   esac ;;
13262 esac
13263 ac_abs_top_builddir=$ac_pwd
13264 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13265 # for backward compatibility:
13266 ac_top_builddir=$ac_top_build_prefix
13267
13268 case $srcdir in
13269   .)  # We are building in place.
13270     ac_srcdir=.
13271     ac_top_srcdir=$ac_top_builddir_sub
13272     ac_abs_top_srcdir=$ac_pwd ;;
13273   [\\/]* | ?:[\\/]* )  # Absolute name.
13274     ac_srcdir=$srcdir$ac_dir_suffix;
13275     ac_top_srcdir=$srcdir
13276     ac_abs_top_srcdir=$srcdir ;;
13277   *) # Relative name.
13278     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13279     ac_top_srcdir=$ac_top_build_prefix$srcdir
13280     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13281 esac
13282 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13283
13284
13285   case $ac_mode in
13286   :F)
13287   #
13288   # CONFIG_FILE
13289   #
13290
13291   case $INSTALL in
13292   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13293   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13294   esac
13295   ac_MKDIR_P=$MKDIR_P
13296   case $MKDIR_P in
13297   [\\/$]* | ?:[\\/]* ) ;;
13298   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13299   esac
13300 _ACEOF
13301
13302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13303 # If the template does not know about datarootdir, expand it.
13304 # FIXME: This hack should be removed a few years after 2.60.
13305 ac_datarootdir_hack=; ac_datarootdir_seen=
13306 ac_sed_dataroot='
13307 /datarootdir/ {
13308   p
13309   q
13310 }
13311 /@datadir@/p
13312 /@docdir@/p
13313 /@infodir@/p
13314 /@localedir@/p
13315 /@mandir@/p'
13316 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13317 *datarootdir*) ac_datarootdir_seen=yes;;
13318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13319   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13320 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13321 _ACEOF
13322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13323   ac_datarootdir_hack='
13324   s&@datadir@&$datadir&g
13325   s&@docdir@&$docdir&g
13326   s&@infodir@&$infodir&g
13327   s&@localedir@&$localedir&g
13328   s&@mandir@&$mandir&g
13329   s&\\\${datarootdir}&$datarootdir&g' ;;
13330 esac
13331 _ACEOF
13332
13333 # Neutralize VPATH when `$srcdir' = `.'.
13334 # Shell code in configure.ac might set extrasub.
13335 # FIXME: do we really want to maintain this feature?
13336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13337 ac_sed_extra="$ac_vpsub
13338 $extrasub
13339 _ACEOF
13340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341 :t
13342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13343 s|@configure_input@|$ac_sed_conf_input|;t t
13344 s&@top_builddir@&$ac_top_builddir_sub&;t t
13345 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13346 s&@srcdir@&$ac_srcdir&;t t
13347 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13348 s&@top_srcdir@&$ac_top_srcdir&;t t
13349 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13350 s&@builddir@&$ac_builddir&;t t
13351 s&@abs_builddir@&$ac_abs_builddir&;t t
13352 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13353 s&@INSTALL@&$ac_INSTALL&;t t
13354 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13355 $ac_datarootdir_hack
13356 "
13357 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13358   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13359
13360 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13361   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13362   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13363       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13364   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13365 which seems to be undefined.  Please make sure it is defined" >&5
13366 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13367 which seems to be undefined.  Please make sure it is defined" >&2;}
13368
13369   rm -f "$ac_tmp/stdin"
13370   case $ac_file in
13371   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13372   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13373   esac \
13374   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13375  ;;
13376   :H)
13377   #
13378   # CONFIG_HEADER
13379   #
13380   if test x"$ac_file" != x-; then
13381     {
13382       $as_echo "/* $configure_input  */" \
13383       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13384     } >"$ac_tmp/config.h" \
13385       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13386     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13387       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13388 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13389     else
13390       rm -f "$ac_file"
13391       mv "$ac_tmp/config.h" "$ac_file" \
13392         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13393     fi
13394   else
13395     $as_echo "/* $configure_input  */" \
13396       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13397       || as_fn_error $? "could not create -" "$LINENO" 5
13398   fi
13399 # Compute "$ac_file"'s index in $config_headers.
13400 _am_arg="$ac_file"
13401 _am_stamp_count=1
13402 for _am_header in $config_headers :; do
13403   case $_am_header in
13404     $_am_arg | $_am_arg:* )
13405       break ;;
13406     * )
13407       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13408   esac
13409 done
13410 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13411 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13412          X"$_am_arg" : 'X\(//\)[^/]' \| \
13413          X"$_am_arg" : 'X\(//\)$' \| \
13414          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13415 $as_echo X"$_am_arg" |
13416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13417             s//\1/
13418             q
13419           }
13420           /^X\(\/\/\)[^/].*/{
13421             s//\1/
13422             q
13423           }
13424           /^X\(\/\/\)$/{
13425             s//\1/
13426             q
13427           }
13428           /^X\(\/\).*/{
13429             s//\1/
13430             q
13431           }
13432           s/.*/./; q'`/stamp-h$_am_stamp_count
13433  ;;
13434
13435   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13436 $as_echo "$as_me: executing $ac_file commands" >&6;}
13437  ;;
13438   esac
13439
13440
13441   case $ac_file$ac_mode in
13442     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13443   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13444   # are listed without --file.  Let's play safe and only enable the eval
13445   # if we detect the quoting.
13446   case $CONFIG_FILES in
13447   *\'*) eval set x "$CONFIG_FILES" ;;
13448   *)   set x $CONFIG_FILES ;;
13449   esac
13450   shift
13451   for mf
13452   do
13453     # Strip MF so we end up with the name of the file.
13454     mf=`echo "$mf" | sed -e 's/:.*$//'`
13455     # Check whether this is an Automake generated Makefile or not.
13456     # We used to match only the files named `Makefile.in', but
13457     # some people rename them; so instead we look at the file content.
13458     # Grep'ing the first line is not enough: some people post-process
13459     # each Makefile.in and add a new line on top of each file to say so.
13460     # Grep'ing the whole file is not good either: AIX grep has a line
13461     # limit of 2048, but all sed's we know have understand at least 4000.
13462     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13463       dirpart=`$as_dirname -- "$mf" ||
13464 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13465          X"$mf" : 'X\(//\)[^/]' \| \
13466          X"$mf" : 'X\(//\)$' \| \
13467          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13468 $as_echo X"$mf" |
13469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13470             s//\1/
13471             q
13472           }
13473           /^X\(\/\/\)[^/].*/{
13474             s//\1/
13475             q
13476           }
13477           /^X\(\/\/\)$/{
13478             s//\1/
13479             q
13480           }
13481           /^X\(\/\).*/{
13482             s//\1/
13483             q
13484           }
13485           s/.*/./; q'`
13486     else
13487       continue
13488     fi
13489     # Extract the definition of DEPDIR, am__include, and am__quote
13490     # from the Makefile without running `make'.
13491     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13492     test -z "$DEPDIR" && continue
13493     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13494     test -z "am__include" && continue
13495     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13496     # When using ansi2knr, U may be empty or an underscore; expand it
13497     U=`sed -n 's/^U = //p' < "$mf"`
13498     # Find all dependency output files, they are included files with
13499     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13500     # simplest approach to changing $(DEPDIR) to its actual value in the
13501     # expansion.
13502     for file in `sed -n "
13503       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13504          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13505       # Make sure the directory exists.
13506       test -f "$dirpart/$file" && continue
13507       fdir=`$as_dirname -- "$file" ||
13508 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13509          X"$file" : 'X\(//\)[^/]' \| \
13510          X"$file" : 'X\(//\)$' \| \
13511          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13512 $as_echo X"$file" |
13513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13514             s//\1/
13515             q
13516           }
13517           /^X\(\/\/\)[^/].*/{
13518             s//\1/
13519             q
13520           }
13521           /^X\(\/\/\)$/{
13522             s//\1/
13523             q
13524           }
13525           /^X\(\/\).*/{
13526             s//\1/
13527             q
13528           }
13529           s/.*/./; q'`
13530       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13531       # echo "creating $dirpart/$file"
13532       echo '# dummy' > "$dirpart/$file"
13533     done
13534   done
13535 }
13536  ;;
13537     "libtool":C)
13538
13539     # See if we are running on zsh, and set the options which allow our
13540     # commands through without removal of \ escapes.
13541     if test -n "${ZSH_VERSION+set}" ; then
13542       setopt NO_GLOB_SUBST
13543     fi
13544
13545     cfgfile="${ofile}T"
13546     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13547     $RM "$cfgfile"
13548
13549     cat <<_LT_EOF >> "$cfgfile"
13550 #! $SHELL
13551
13552 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13553 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13554 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13555 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13556 #
13557 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13558 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13559 #                 Inc.
13560 #   Written by Gordon Matzigkeit, 1996
13561 #
13562 #   This file is part of GNU Libtool.
13563 #
13564 # GNU Libtool is free software; you can redistribute it and/or
13565 # modify it under the terms of the GNU General Public License as
13566 # published by the Free Software Foundation; either version 2 of
13567 # the License, or (at your option) any later version.
13568 #
13569 # As a special exception to the GNU General Public License,
13570 # if you distribute this file as part of a program or library that
13571 # is built using GNU Libtool, you may include this file under the
13572 # same distribution terms that you use for the rest of that program.
13573 #
13574 # GNU Libtool is distributed in the hope that it will be useful,
13575 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13576 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13577 # GNU General Public License for more details.
13578 #
13579 # You should have received a copy of the GNU General Public License
13580 # along with GNU Libtool; see the file COPYING.  If not, a copy
13581 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13582 # obtained by writing to the Free Software Foundation, Inc.,
13583 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13584
13585
13586 # The names of the tagged configurations supported by this script.
13587 available_tags=""
13588
13589 # ### BEGIN LIBTOOL CONFIG
13590
13591 # Which release of libtool.m4 was used?
13592 macro_version=$macro_version
13593 macro_revision=$macro_revision
13594
13595 # Whether or not to build shared libraries.
13596 build_libtool_libs=$enable_shared
13597
13598 # Whether or not to build static libraries.
13599 build_old_libs=$enable_static
13600
13601 # What type of objects to build.
13602 pic_mode=$pic_mode
13603
13604 # Whether or not to optimize for fast installation.
13605 fast_install=$enable_fast_install
13606
13607 # Shell to use when invoking shell scripts.
13608 SHELL=$lt_SHELL
13609
13610 # An echo program that protects backslashes.
13611 ECHO=$lt_ECHO
13612
13613 # The host system.
13614 host_alias=$host_alias
13615 host=$host
13616 host_os=$host_os
13617
13618 # The build system.
13619 build_alias=$build_alias
13620 build=$build
13621 build_os=$build_os
13622
13623 # A sed program that does not truncate output.
13624 SED=$lt_SED
13625
13626 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13627 Xsed="\$SED -e 1s/^X//"
13628
13629 # A grep program that handles long lines.
13630 GREP=$lt_GREP
13631
13632 # An ERE matcher.
13633 EGREP=$lt_EGREP
13634
13635 # A literal string matcher.
13636 FGREP=$lt_FGREP
13637
13638 # A BSD- or MS-compatible name lister.
13639 NM=$lt_NM
13640
13641 # Whether we need soft or hard links.
13642 LN_S=$lt_LN_S
13643
13644 # What is the maximum length of a command?
13645 max_cmd_len=$max_cmd_len
13646
13647 # Object file suffix (normally "o").
13648 objext=$ac_objext
13649
13650 # Executable file suffix (normally "").
13651 exeext=$exeext
13652
13653 # whether the shell understands "unset".
13654 lt_unset=$lt_unset
13655
13656 # turn spaces into newlines.
13657 SP2NL=$lt_lt_SP2NL
13658
13659 # turn newlines into spaces.
13660 NL2SP=$lt_lt_NL2SP
13661
13662 # convert \$build file names to \$host format.
13663 to_host_file_cmd=$lt_cv_to_host_file_cmd
13664
13665 # convert \$build files to toolchain format.
13666 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13667
13668 # An object symbol dumper.
13669 OBJDUMP=$lt_OBJDUMP
13670
13671 # Method to check whether dependent libraries are shared objects.
13672 deplibs_check_method=$lt_deplibs_check_method
13673
13674 # Command to use when deplibs_check_method = "file_magic".
13675 file_magic_cmd=$lt_file_magic_cmd
13676
13677 # How to find potential files when deplibs_check_method = "file_magic".
13678 file_magic_glob=$lt_file_magic_glob
13679
13680 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13681 want_nocaseglob=$lt_want_nocaseglob
13682
13683 # DLL creation program.
13684 DLLTOOL=$lt_DLLTOOL
13685
13686 # Command to associate shared and link libraries.
13687 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13688
13689 # The archiver.
13690 AR=$lt_AR
13691
13692 # Flags to create an archive.
13693 AR_FLAGS=$lt_AR_FLAGS
13694
13695 # How to feed a file listing to the archiver.
13696 archiver_list_spec=$lt_archiver_list_spec
13697
13698 # A symbol stripping program.
13699 STRIP=$lt_STRIP
13700
13701 # Commands used to install an old-style archive.
13702 RANLIB=$lt_RANLIB
13703 old_postinstall_cmds=$lt_old_postinstall_cmds
13704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13705
13706 # Whether to use a lock for old archive extraction.
13707 lock_old_archive_extraction=$lock_old_archive_extraction
13708
13709 # A C compiler.
13710 LTCC=$lt_CC
13711
13712 # LTCC compiler flags.
13713 LTCFLAGS=$lt_CFLAGS
13714
13715 # Take the output of nm and produce a listing of raw symbols and C names.
13716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13717
13718 # Transform the output of nm in a proper C declaration.
13719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13720
13721 # Transform the output of nm in a C name address pair.
13722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13723
13724 # Transform the output of nm in a C name address pair when lib prefix is needed.
13725 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13726
13727 # Specify filename containing input files for \$NM.
13728 nm_file_list_spec=$lt_nm_file_list_spec
13729
13730 # The root where to search for dependent libraries,and in which our libraries should be installed.
13731 lt_sysroot=$lt_sysroot
13732
13733 # The name of the directory that contains temporary libtool files.
13734 objdir=$objdir
13735
13736 # Used to examine libraries when file_magic_cmd begins with "file".
13737 MAGIC_CMD=$MAGIC_CMD
13738
13739 # Must we lock files when doing compilation?
13740 need_locks=$lt_need_locks
13741
13742 # Manifest tool.
13743 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13744
13745 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13746 DSYMUTIL=$lt_DSYMUTIL
13747
13748 # Tool to change global to local symbols on Mac OS X.
13749 NMEDIT=$lt_NMEDIT
13750
13751 # Tool to manipulate fat objects and archives on Mac OS X.
13752 LIPO=$lt_LIPO
13753
13754 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13755 OTOOL=$lt_OTOOL
13756
13757 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13758 OTOOL64=$lt_OTOOL64
13759
13760 # Old archive suffix (normally "a").
13761 libext=$libext
13762
13763 # Shared library suffix (normally ".so").
13764 shrext_cmds=$lt_shrext_cmds
13765
13766 # The commands to extract the exported symbol list from a shared archive.
13767 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13768
13769 # Variables whose values should be saved in libtool wrapper scripts and
13770 # restored at link time.
13771 variables_saved_for_relink=$lt_variables_saved_for_relink
13772
13773 # Do we need the "lib" prefix for modules?
13774 need_lib_prefix=$need_lib_prefix
13775
13776 # Do we need a version for libraries?
13777 need_version=$need_version
13778
13779 # Library versioning type.
13780 version_type=$version_type
13781
13782 # Shared library runtime path variable.
13783 runpath_var=$runpath_var
13784
13785 # Shared library path variable.
13786 shlibpath_var=$shlibpath_var
13787
13788 # Is shlibpath searched before the hard-coded library search path?
13789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13790
13791 # Format of library name prefix.
13792 libname_spec=$lt_libname_spec
13793
13794 # List of archive names.  First name is the real one, the rest are links.
13795 # The last name is the one that the linker finds with -lNAME
13796 library_names_spec=$lt_library_names_spec
13797
13798 # The coded name of the library, if different from the real name.
13799 soname_spec=$lt_soname_spec
13800
13801 # Permission mode override for installation of shared libraries.
13802 install_override_mode=$lt_install_override_mode
13803
13804 # Command to use after installation of a shared archive.
13805 postinstall_cmds=$lt_postinstall_cmds
13806
13807 # Command to use after uninstallation of a shared archive.
13808 postuninstall_cmds=$lt_postuninstall_cmds
13809
13810 # Commands used to finish a libtool library installation in a directory.
13811 finish_cmds=$lt_finish_cmds
13812
13813 # As "finish_cmds", except a single script fragment to be evaled but
13814 # not shown.
13815 finish_eval=$lt_finish_eval
13816
13817 # Whether we should hardcode library paths into libraries.
13818 hardcode_into_libs=$hardcode_into_libs
13819
13820 # Compile-time system search path for libraries.
13821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13822
13823 # Run-time system search path for libraries.
13824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13825
13826 # Whether dlopen is supported.
13827 dlopen_support=$enable_dlopen
13828
13829 # Whether dlopen of programs is supported.
13830 dlopen_self=$enable_dlopen_self
13831
13832 # Whether dlopen of statically linked programs is supported.
13833 dlopen_self_static=$enable_dlopen_self_static
13834
13835 # Commands to strip libraries.
13836 old_striplib=$lt_old_striplib
13837 striplib=$lt_striplib
13838
13839
13840 # The linker used to build libraries.
13841 LD=$lt_LD
13842
13843 # How to create reloadable object files.
13844 reload_flag=$lt_reload_flag
13845 reload_cmds=$lt_reload_cmds
13846
13847 # Commands used to build an old-style archive.
13848 old_archive_cmds=$lt_old_archive_cmds
13849
13850 # A language specific compiler.
13851 CC=$lt_compiler
13852
13853 # Is the compiler the GNU compiler?
13854 with_gcc=$GCC
13855
13856 # Compiler flag to turn off builtin functions.
13857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13858
13859 # Additional compiler flags for building library objects.
13860 pic_flag=$lt_lt_prog_compiler_pic
13861
13862 # How to pass a linker flag through the compiler.
13863 wl=$lt_lt_prog_compiler_wl
13864
13865 # Compiler flag to prevent dynamic linking.
13866 link_static_flag=$lt_lt_prog_compiler_static
13867
13868 # Does compiler simultaneously support -c and -o options?
13869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13870
13871 # Whether or not to add -lc for building shared libraries.
13872 build_libtool_need_lc=$archive_cmds_need_lc
13873
13874 # Whether or not to disallow shared libs when runtime libs are static.
13875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13876
13877 # Compiler flag to allow reflexive dlopens.
13878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13879
13880 # Compiler flag to generate shared objects directly from archives.
13881 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13882
13883 # Whether the compiler copes with passing no objects directly.
13884 compiler_needs_object=$lt_compiler_needs_object
13885
13886 # Create an old-style archive from a shared archive.
13887 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13888
13889 # Create a temporary old-style archive to link instead of a shared archive.
13890 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13891
13892 # Commands used to build a shared archive.
13893 archive_cmds=$lt_archive_cmds
13894 archive_expsym_cmds=$lt_archive_expsym_cmds
13895
13896 # Commands used to build a loadable module if different from building
13897 # a shared archive.
13898 module_cmds=$lt_module_cmds
13899 module_expsym_cmds=$lt_module_expsym_cmds
13900
13901 # Whether we are building with GNU ld or not.
13902 with_gnu_ld=$lt_with_gnu_ld
13903
13904 # Flag that allows shared libraries with undefined symbols to be built.
13905 allow_undefined_flag=$lt_allow_undefined_flag
13906
13907 # Flag that enforces no undefined symbols.
13908 no_undefined_flag=$lt_no_undefined_flag
13909
13910 # Flag to hardcode \$libdir into a binary during linking.
13911 # This must work even if \$libdir does not exist
13912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13913
13914 # If ld is used when linking, flag to hardcode \$libdir into a binary
13915 # during linking.  This must work even if \$libdir does not exist.
13916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13917
13918 # Whether we need a single "-rpath" flag with a separated argument.
13919 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13920
13921 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13922 # DIR into the resulting binary.
13923 hardcode_direct=$hardcode_direct
13924
13925 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13926 # DIR into the resulting binary and the resulting library dependency is
13927 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13928 # library is relocated.
13929 hardcode_direct_absolute=$hardcode_direct_absolute
13930
13931 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13932 # into the resulting binary.
13933 hardcode_minus_L=$hardcode_minus_L
13934
13935 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13936 # into the resulting binary.
13937 hardcode_shlibpath_var=$hardcode_shlibpath_var
13938
13939 # Set to "yes" if building a shared library automatically hardcodes DIR
13940 # into the library and all subsequent libraries and executables linked
13941 # against it.
13942 hardcode_automatic=$hardcode_automatic
13943
13944 # Set to yes if linker adds runtime paths of dependent libraries
13945 # to runtime path list.
13946 inherit_rpath=$inherit_rpath
13947
13948 # Whether libtool must link a program against all its dependency libraries.
13949 link_all_deplibs=$link_all_deplibs
13950
13951 # Set to "yes" if exported symbols are required.
13952 always_export_symbols=$always_export_symbols
13953
13954 # The commands to list exported symbols.
13955 export_symbols_cmds=$lt_export_symbols_cmds
13956
13957 # Symbols that should not be listed in the preloaded symbols.
13958 exclude_expsyms=$lt_exclude_expsyms
13959
13960 # Symbols that must always be exported.
13961 include_expsyms=$lt_include_expsyms
13962
13963 # Commands necessary for linking programs (against libraries) with templates.
13964 prelink_cmds=$lt_prelink_cmds
13965
13966 # Commands necessary for finishing linking programs.
13967 postlink_cmds=$lt_postlink_cmds
13968
13969 # Specify filename containing input files.
13970 file_list_spec=$lt_file_list_spec
13971
13972 # How to hardcode a shared library path into an executable.
13973 hardcode_action=$hardcode_action
13974
13975 # ### END LIBTOOL CONFIG
13976
13977 _LT_EOF
13978
13979   case $host_os in
13980   aix3*)
13981     cat <<\_LT_EOF >> "$cfgfile"
13982 # AIX sometimes has problems with the GCC collect2 program.  For some
13983 # reason, if we set the COLLECT_NAMES environment variable, the problems
13984 # vanish in a puff of smoke.
13985 if test "X${COLLECT_NAMES+set}" != Xset; then
13986   COLLECT_NAMES=
13987   export COLLECT_NAMES
13988 fi
13989 _LT_EOF
13990     ;;
13991   esac
13992
13993
13994 ltmain="$ac_aux_dir/ltmain.sh"
13995
13996
13997   # We use sed instead of cat because bash on DJGPP gets confused if
13998   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13999   # text mode, it properly converts lines to CR/LF.  This bash problem
14000   # is reportedly fixed, but why not run on old versions too?
14001   sed '$q' "$ltmain" >> "$cfgfile" \
14002      || (rm -f "$cfgfile"; exit 1)
14003
14004   if test x"$xsi_shell" = xyes; then
14005   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14006 func_dirname ()\
14007 {\
14008 \    case ${1} in\
14009 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14010 \      *  ) func_dirname_result="${3}" ;;\
14011 \    esac\
14012 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14013   && mv -f "$cfgfile.tmp" "$cfgfile" \
14014     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14015 test 0 -eq $? || _lt_function_replace_fail=:
14016
14017
14018   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14019 func_basename ()\
14020 {\
14021 \    func_basename_result="${1##*/}"\
14022 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14023   && mv -f "$cfgfile.tmp" "$cfgfile" \
14024     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14025 test 0 -eq $? || _lt_function_replace_fail=:
14026
14027
14028   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14029 func_dirname_and_basename ()\
14030 {\
14031 \    case ${1} in\
14032 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14033 \      *  ) func_dirname_result="${3}" ;;\
14034 \    esac\
14035 \    func_basename_result="${1##*/}"\
14036 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14037   && mv -f "$cfgfile.tmp" "$cfgfile" \
14038     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14039 test 0 -eq $? || _lt_function_replace_fail=:
14040
14041
14042   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14043 func_stripname ()\
14044 {\
14045 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14046 \    # positional parameters, so assign one to ordinary parameter first.\
14047 \    func_stripname_result=${3}\
14048 \    func_stripname_result=${func_stripname_result#"${1}"}\
14049 \    func_stripname_result=${func_stripname_result%"${2}"}\
14050 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14051   && mv -f "$cfgfile.tmp" "$cfgfile" \
14052     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14053 test 0 -eq $? || _lt_function_replace_fail=:
14054
14055
14056   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14057 func_split_long_opt ()\
14058 {\
14059 \    func_split_long_opt_name=${1%%=*}\
14060 \    func_split_long_opt_arg=${1#*=}\
14061 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14062   && mv -f "$cfgfile.tmp" "$cfgfile" \
14063     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14064 test 0 -eq $? || _lt_function_replace_fail=:
14065
14066
14067   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14068 func_split_short_opt ()\
14069 {\
14070 \    func_split_short_opt_arg=${1#??}\
14071 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14072 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14073   && mv -f "$cfgfile.tmp" "$cfgfile" \
14074     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14075 test 0 -eq $? || _lt_function_replace_fail=:
14076
14077
14078   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14079 func_lo2o ()\
14080 {\
14081 \    case ${1} in\
14082 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14083 \      *)    func_lo2o_result=${1} ;;\
14084 \    esac\
14085 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14086   && mv -f "$cfgfile.tmp" "$cfgfile" \
14087     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14088 test 0 -eq $? || _lt_function_replace_fail=:
14089
14090
14091   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14092 func_xform ()\
14093 {\
14094     func_xform_result=${1%.*}.lo\
14095 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14096   && mv -f "$cfgfile.tmp" "$cfgfile" \
14097     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14098 test 0 -eq $? || _lt_function_replace_fail=:
14099
14100
14101   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14102 func_arith ()\
14103 {\
14104     func_arith_result=$(( $* ))\
14105 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14106   && mv -f "$cfgfile.tmp" "$cfgfile" \
14107     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14108 test 0 -eq $? || _lt_function_replace_fail=:
14109
14110
14111   sed -e '/^func_len ()$/,/^} # func_len /c\
14112 func_len ()\
14113 {\
14114     func_len_result=${#1}\
14115 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14116   && mv -f "$cfgfile.tmp" "$cfgfile" \
14117     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14118 test 0 -eq $? || _lt_function_replace_fail=:
14119
14120 fi
14121
14122 if test x"$lt_shell_append" = xyes; then
14123   sed -e '/^func_append ()$/,/^} # func_append /c\
14124 func_append ()\
14125 {\
14126     eval "${1}+=\\${2}"\
14127 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14128   && mv -f "$cfgfile.tmp" "$cfgfile" \
14129     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14130 test 0 -eq $? || _lt_function_replace_fail=:
14131
14132
14133   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14134 func_append_quoted ()\
14135 {\
14136 \    func_quote_for_eval "${2}"\
14137 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14138 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14139   && mv -f "$cfgfile.tmp" "$cfgfile" \
14140     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14141 test 0 -eq $? || _lt_function_replace_fail=:
14142
14143
14144   # Save a `func_append' function call where possible by direct use of '+='
14145   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14146     && mv -f "$cfgfile.tmp" "$cfgfile" \
14147       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14148   test 0 -eq $? || _lt_function_replace_fail=:
14149 else
14150   # Save a `func_append' function call even when '+=' is not available
14151   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14152     && mv -f "$cfgfile.tmp" "$cfgfile" \
14153       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14154   test 0 -eq $? || _lt_function_replace_fail=:
14155 fi
14156
14157 if test x"$_lt_function_replace_fail" = x":"; then
14158   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14159 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14160 fi
14161
14162
14163    mv -f "$cfgfile" "$ofile" ||
14164     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14165   chmod +x "$ofile"
14166
14167  ;;
14168
14169   esac
14170 done # for ac_tag
14171
14172
14173 as_fn_exit 0
14174 _ACEOF
14175 ac_clean_files=$ac_clean_files_save
14176
14177 test $ac_write_fail = 0 ||
14178   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14179
14180
14181 # configure is writing to config.log, and then calls config.status.
14182 # config.status does its own redirection, appending to config.log.
14183 # Unfortunately, on DOS this fails, as config.log is still kept open
14184 # by configure, so config.status won't be able to write to it; its
14185 # output is simply discarded.  So we exec the FD to /dev/null,
14186 # effectively closing config.log, so it can be properly (re)opened and
14187 # appended to by config.status.  When coming back to configure, we
14188 # need to make the FD available again.
14189 if test "$no_create" != yes; then
14190   ac_cs_success=:
14191   ac_config_status_args=
14192   test "$silent" = yes &&
14193     ac_config_status_args="$ac_config_status_args --quiet"
14194   exec 5>/dev/null
14195   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14196   exec 5>>config.log
14197   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14198   # would make configure fail if this is the last instruction.
14199   $ac_cs_success || as_fn_exit 1
14200 fi
14201 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14202   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14203 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14204 fi
14205
This page took 2.392236 seconds and 5 git commands to generate.