]> andersk Git - test.git/blob - configure
1626dd109edc3887312095dac960794f819c541b
[test.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for shellinabox 2.10.
4 #
5 # Report bugs to <markus@shellinabox.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: markus@shellinabox.com about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
236   fi
237   exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255   { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264   return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272   set +e
273   as_fn_set_status $1
274   exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283   case $as_dir in #(
284   -*) as_dir=./$as_dir;;
285   esac
286   test -d "$as_dir" || eval $as_mkdir_p || {
287     as_dirs=
288     while :; do
289       case $as_dir in #(
290       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291       *) as_qdir=$as_dir;;
292       esac
293       as_dirs="'$as_qdir' $as_dirs"
294       as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296          X"$as_dir" : 'X\(//\)[^/]' \| \
297          X"$as_dir" : 'X\(//\)$' \| \
298          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)[^/].*/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\).*/{
313             s//\1/
314             q
315           }
316           s/.*/./; q'`
317       test -d "$as_dir" && break
318     done
319     test -z "$as_dirs" || eval "mkdir $as_dirs"
320   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331   eval 'as_fn_append ()
332   {
333     eval $1+=\$2
334   }'
335 else
336   as_fn_append ()
337   {
338     eval $1=\$$1\$2
339   }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348   eval 'as_fn_arith ()
349   {
350     as_val=$(( $* ))
351   }'
352 else
353   as_fn_arith ()
354   {
355     as_val=`expr "$@" || test $? -eq 1`
356   }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367   as_status=$?; test $as_status -eq 0 && as_status=1
368   if test "$3"; then
369     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371   fi
372   $as_echo "$as_me: error: $1" >&2
373   as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
378   as_expr=expr
379 else
380   as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384   as_basename=basename
385 else
386   as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390   as_dirname=dirname
391 else
392   as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397          X"$0" : 'X\(//\)$' \| \
398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400     sed '/^.*\/\([^/][^/]*\)\/*$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\/\)$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\).*/{
409             s//\1/
410             q
411           }
412           s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422   as_lineno_1=$LINENO as_lineno_1a=$LINENO
423   as_lineno_2=$LINENO as_lineno_2a=$LINENO
424   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427   sed -n '
428     p
429     /[$]LINENO/=
430   ' <$as_myself |
431     sed '
432       s/[$]LINENO.*/&-/
433       t lineno
434       b
435       :lineno
436       N
437       :loop
438       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439       t loop
440       s/-\n.*//
441     ' >$as_me.lineno &&
442   chmod +x "$as_me.lineno" ||
443     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445   # Don't try to exec as it changes $[0], causing all sort of problems
446   # (the dirname of $[0] is not the place where we might find the
447   # original and so on.  Autoconf is especially sensitive to this).
448   . "./$as_me.lineno"
449   # Exit status is that of the last command.
450   exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456   case `echo 'xy\c'` in
457   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458   xy)  ECHO_C='\c';;
459   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460        ECHO_T=' ';;
461   esac;;
462 *)
463   ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468   rm -f conf$$.dir/conf$$.file
469 else
470   rm -f conf$$.dir
471   mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474   if ln -s conf$$.file conf$$ 2>/dev/null; then
475     as_ln_s='ln -s'
476     # ... but there are two gotchas:
477     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479     # In both cases, we have to default to `cp -p'.
480     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481       as_ln_s='cp -p'
482   elif ln conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s=ln
484   else
485     as_ln_s='cp -p'
486   fi
487 else
488   as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494   as_mkdir_p='mkdir -p "$as_dir"'
495 else
496   test -d ./-p && rmdir ./-p
497   as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501   as_test_x='test -x'
502 else
503   if ls -dL / >/dev/null 2>&1; then
504     as_ls_L_option=L
505   else
506     as_ls_L_option=
507   fi
508   as_test_x='
509     eval sh -c '\''
510       if test -d "$1"; then
511         test -d "$1/.";
512       else
513         case $1 in #(
514         -*)set "./$1";;
515         esac;
516         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517         ???[sx]*):;;*)false;;esac;fi
518     '\'' sh
519   '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
533
534 case X$lt_ECHO in
535 X*--fallback-echo)
536   # Remove one level of quotation (which was required for Make).
537   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538   ;;
539 esac
540
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543   # Discard the --no-reexec flag, and continue.
544   shift
545 elif test "X$1" = X--fallback-echo; then
546   # Avoid inline document here, it may be left over
547   :
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549   # Yippee, $ECHO works!
550   :
551 else
552   # Restart under the correct shell.
553   exec $SHELL "$0" --no-reexec ${1+"$@"}
554 fi
555
556 if test "X$1" = X--fallback-echo; then
557   # used as fallback echo
558   shift
559   cat <<_LT_EOF
560 $*
561 _LT_EOF
562   exit 0
563 fi
564
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569 if test -z "$lt_ECHO"; then
570   if test "X${echo_test_string+set}" != Xset; then
571     # find a string as large as possible, as long as the shell can cope with it
572     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576       then
577         break
578       fi
579     done
580   fi
581
582   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584      test "X$echo_testing_string" = "X$echo_test_string"; then
585     :
586   else
587     # The Solaris, AIX, and Digital Unix default echo programs unquote
588     # backslashes.  This makes it impossible to quote backslashes using
589     #   echo "$something" | sed 's/\\/\\\\/g'
590     #
591     # So, first we look for a working echo in the user's PATH.
592
593     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594     for dir in $PATH /usr/ucb; do
595       IFS="$lt_save_ifs"
596       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599          test "X$echo_testing_string" = "X$echo_test_string"; then
600         ECHO="$dir/echo"
601         break
602       fi
603     done
604     IFS="$lt_save_ifs"
605
606     if test "X$ECHO" = Xecho; then
607       # We didn't find a better echo, so look for alternatives.
608       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610          test "X$echo_testing_string" = "X$echo_test_string"; then
611         # This shell has a builtin print -r that does the trick.
612         ECHO='print -r'
613       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614            test "X$CONFIG_SHELL" != X/bin/ksh; then
615         # If we have ksh, try running configure again with it.
616         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617         export ORIGINAL_CONFIG_SHELL
618         CONFIG_SHELL=/bin/ksh
619         export CONFIG_SHELL
620         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621       else
622         # Try using printf.
623         ECHO='printf %s\n'
624         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626            test "X$echo_testing_string" = "X$echo_test_string"; then
627           # Cool, printf works
628           :
629         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630              test "X$echo_testing_string" = 'X\t' &&
631              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632              test "X$echo_testing_string" = "X$echo_test_string"; then
633           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634           export CONFIG_SHELL
635           SHELL="$CONFIG_SHELL"
636           export SHELL
637           ECHO="$CONFIG_SHELL $0 --fallback-echo"
638         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639              test "X$echo_testing_string" = 'X\t' &&
640              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641              test "X$echo_testing_string" = "X$echo_test_string"; then
642           ECHO="$CONFIG_SHELL $0 --fallback-echo"
643         else
644           # maybe with a smaller string...
645           prev=:
646
647           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649             then
650               break
651             fi
652             prev="$cmd"
653           done
654
655           if test "$prev" != 'sed 50q "$0"'; then
656             echo_test_string=`eval $prev`
657             export echo_test_string
658             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659           else
660             # Oops.  We lost completely, so just stick with echo.
661             ECHO=echo
662           fi
663         fi
664       fi
665     fi
666   fi
667 fi
668
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 fi
675
676
677
678
679 exec 7<&0 </dev/null 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='shellinabox'
700 PACKAGE_TARNAME='shellinabox'
701 PACKAGE_VERSION='2.10'
702 PACKAGE_STRING='shellinabox 2.10'
703 PACKAGE_BUGREPORT='markus@shellinabox.com'
704 PACKAGE_URL=''
705
706 ac_c_werror_flag=
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 LIBTOOL_DEPS
748 CPP
749 OTOOL64
750 OTOOL
751 LIPO
752 NMEDIT
753 DSYMUTIL
754 lt_ECHO
755 RANLIB
756 AR
757 OBJDUMP
758 LN_S
759 NM
760 ac_ct_DUMPBIN
761 DUMPBIN
762 LD
763 FGREP
764 EGREP
765 GREP
766 SED
767 host_os
768 host_vendor
769 host_cpu
770 host
771 build_os
772 build_vendor
773 build_cpu
774 build
775 LIBTOOL
776 am__fastdepCC_FALSE
777 am__fastdepCC_TRUE
778 CCDEPMODE
779 AMDEPBACKSLASH
780 AMDEP_FALSE
781 AMDEP_TRUE
782 am__quote
783 am__include
784 DEPDIR
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
791 CC
792 am__untar
793 am__tar
794 AMTAR
795 am__leading_dot
796 SET_MAKE
797 AWK
798 mkdir_p
799 MKDIR_P
800 INSTALL_STRIP_PROGRAM
801 STRIP
802 install_sh
803 MAKEINFO
804 AUTOHEADER
805 AUTOMAKE
806 AUTOCONF
807 ACLOCAL
808 VERSION
809 PACKAGE
810 CYGPATH_W
811 am__isrc
812 INSTALL_DATA
813 INSTALL_SCRIPT
814 INSTALL_PROGRAM
815 VCS_REVISION
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files=''
855 ac_user_opts='
856 enable_option_checking
857 enable_dependency_tracking
858 enable_shared
859 enable_static
860 with_pic
861 enable_fast_install
862 with_gnu_ld
863 enable_libtool_lock
864 enable_login
865 enable_ssl
866 enable_pam
867 enable_runtime_loading
868 '
869       ac_precious_vars='build_alias
870 host_alias
871 target_alias
872 CC
873 CFLAGS
874 LDFLAGS
875 LIBS
876 CPPFLAGS
877 CPP'
878
879
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
901
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
927
928 ac_prev=
929 ac_dashdash=
930 for ac_option
931 do
932   # If the previous option needs an argument, assign it.
933   if test -n "$ac_prev"; then
934     eval $ac_prev=\$ac_option
935     ac_prev=
936     continue
937   fi
938
939   case $ac_option in
940   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941   *)    ac_optarg=yes ;;
942   esac
943
944   # Accept the important Cygnus configure options, so we can diagnose typos.
945
946   case $ac_dashdash$ac_option in
947   --)
948     ac_dashdash=yes ;;
949
950   -bindir | --bindir | --bindi | --bind | --bin | --bi)
951     ac_prev=bindir ;;
952   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953     bindir=$ac_optarg ;;
954
955   -build | --build | --buil | --bui | --bu)
956     ac_prev=build_alias ;;
957   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958     build_alias=$ac_optarg ;;
959
960   -cache-file | --cache-file | --cache-fil | --cache-fi \
961   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962     ac_prev=cache_file ;;
963   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965     cache_file=$ac_optarg ;;
966
967   --config-cache | -C)
968     cache_file=config.cache ;;
969
970   -datadir | --datadir | --datadi | --datad)
971     ac_prev=datadir ;;
972   -datadir=* | --datadir=* | --datadi=* | --datad=*)
973     datadir=$ac_optarg ;;
974
975   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976   | --dataroo | --dataro | --datar)
977     ac_prev=datarootdir ;;
978   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980     datarootdir=$ac_optarg ;;
981
982   -disable-* | --disable-*)
983     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984     # Reject names that are not valid shell variable names.
985     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986       as_fn_error "invalid feature name: $ac_useropt"
987     ac_useropt_orig=$ac_useropt
988     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989     case $ac_user_opts in
990       *"
991 "enable_$ac_useropt"
992 "*) ;;
993       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994          ac_unrecognized_sep=', ';;
995     esac
996     eval enable_$ac_useropt=no ;;
997
998   -docdir | --docdir | --docdi | --doc | --do)
999     ac_prev=docdir ;;
1000   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001     docdir=$ac_optarg ;;
1002
1003   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004     ac_prev=dvidir ;;
1005   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006     dvidir=$ac_optarg ;;
1007
1008   -enable-* | --enable-*)
1009     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010     # Reject names that are not valid shell variable names.
1011     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012       as_fn_error "invalid feature name: $ac_useropt"
1013     ac_useropt_orig=$ac_useropt
1014     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015     case $ac_user_opts in
1016       *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020          ac_unrecognized_sep=', ';;
1021     esac
1022     eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026   | --exec | --exe | --ex)
1027     ac_prev=exec_prefix ;;
1028   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030   | --exec=* | --exe=* | --ex=*)
1031     exec_prefix=$ac_optarg ;;
1032
1033   -gas | --gas | --ga | --g)
1034     # Obsolete; use --with-gas.
1035     with_gas=yes ;;
1036
1037   -help | --help | --hel | --he | -h)
1038     ac_init_help=long ;;
1039   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040     ac_init_help=recursive ;;
1041   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042     ac_init_help=short ;;
1043
1044   -host | --host | --hos | --ho)
1045     ac_prev=host_alias ;;
1046   -host=* | --host=* | --hos=* | --ho=*)
1047     host_alias=$ac_optarg ;;
1048
1049   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050     ac_prev=htmldir ;;
1051   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052   | --ht=*)
1053     htmldir=$ac_optarg ;;
1054
1055   -includedir | --includedir | --includedi | --included | --include \
1056   | --includ | --inclu | --incl | --inc)
1057     ac_prev=includedir ;;
1058   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059   | --includ=* | --inclu=* | --incl=* | --inc=*)
1060     includedir=$ac_optarg ;;
1061
1062   -infodir | --infodir | --infodi | --infod | --info | --inf)
1063     ac_prev=infodir ;;
1064   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065     infodir=$ac_optarg ;;
1066
1067   -libdir | --libdir | --libdi | --libd)
1068     ac_prev=libdir ;;
1069   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070     libdir=$ac_optarg ;;
1071
1072   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073   | --libexe | --libex | --libe)
1074     ac_prev=libexecdir ;;
1075   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076   | --libexe=* | --libex=* | --libe=*)
1077     libexecdir=$ac_optarg ;;
1078
1079   -localedir | --localedir | --localedi | --localed | --locale)
1080     ac_prev=localedir ;;
1081   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082     localedir=$ac_optarg ;;
1083
1084   -localstatedir | --localstatedir | --localstatedi | --localstated \
1085   | --localstate | --localstat | --localsta | --localst | --locals)
1086     ac_prev=localstatedir ;;
1087   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089     localstatedir=$ac_optarg ;;
1090
1091   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092     ac_prev=mandir ;;
1093   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094     mandir=$ac_optarg ;;
1095
1096   -nfp | --nfp | --nf)
1097     # Obsolete; use --without-fp.
1098     with_fp=no ;;
1099
1100   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101   | --no-cr | --no-c | -n)
1102     no_create=yes ;;
1103
1104   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106     no_recursion=yes ;;
1107
1108   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110   | --oldin | --oldi | --old | --ol | --o)
1111     ac_prev=oldincludedir ;;
1112   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115     oldincludedir=$ac_optarg ;;
1116
1117   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118     ac_prev=prefix ;;
1119   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120     prefix=$ac_optarg ;;
1121
1122   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123   | --program-pre | --program-pr | --program-p)
1124     ac_prev=program_prefix ;;
1125   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127     program_prefix=$ac_optarg ;;
1128
1129   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130   | --program-suf | --program-su | --program-s)
1131     ac_prev=program_suffix ;;
1132   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134     program_suffix=$ac_optarg ;;
1135
1136   -program-transform-name | --program-transform-name \
1137   | --program-transform-nam | --program-transform-na \
1138   | --program-transform-n | --program-transform- \
1139   | --program-transform | --program-transfor \
1140   | --program-transfo | --program-transf \
1141   | --program-trans | --program-tran \
1142   | --progr-tra | --program-tr | --program-t)
1143     ac_prev=program_transform_name ;;
1144   -program-transform-name=* | --program-transform-name=* \
1145   | --program-transform-nam=* | --program-transform-na=* \
1146   | --program-transform-n=* | --program-transform-=* \
1147   | --program-transform=* | --program-transfor=* \
1148   | --program-transfo=* | --program-transf=* \
1149   | --program-trans=* | --program-tran=* \
1150   | --progr-tra=* | --program-tr=* | --program-t=*)
1151     program_transform_name=$ac_optarg ;;
1152
1153   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154     ac_prev=pdfdir ;;
1155   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156     pdfdir=$ac_optarg ;;
1157
1158   -psdir | --psdir | --psdi | --psd | --ps)
1159     ac_prev=psdir ;;
1160   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161     psdir=$ac_optarg ;;
1162
1163   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164   | -silent | --silent | --silen | --sile | --sil)
1165     silent=yes ;;
1166
1167   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168     ac_prev=sbindir ;;
1169   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170   | --sbi=* | --sb=*)
1171     sbindir=$ac_optarg ;;
1172
1173   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175   | --sharedst | --shareds | --shared | --share | --shar \
1176   | --sha | --sh)
1177     ac_prev=sharedstatedir ;;
1178   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181   | --sha=* | --sh=*)
1182     sharedstatedir=$ac_optarg ;;
1183
1184   -site | --site | --sit)
1185     ac_prev=site ;;
1186   -site=* | --site=* | --sit=*)
1187     site=$ac_optarg ;;
1188
1189   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190     ac_prev=srcdir ;;
1191   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192     srcdir=$ac_optarg ;;
1193
1194   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195   | --syscon | --sysco | --sysc | --sys | --sy)
1196     ac_prev=sysconfdir ;;
1197   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199     sysconfdir=$ac_optarg ;;
1200
1201   -target | --target | --targe | --targ | --tar | --ta | --t)
1202     ac_prev=target_alias ;;
1203   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204     target_alias=$ac_optarg ;;
1205
1206   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207     verbose=yes ;;
1208
1209   -version | --version | --versio | --versi | --vers | -V)
1210     ac_init_version=: ;;
1211
1212   -with-* | --with-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error "invalid package name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval with_$ac_useropt=\$ac_optarg ;;
1227
1228   -without-* | --without-*)
1229     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232       as_fn_error "invalid package name: $ac_useropt"
1233     ac_useropt_orig=$ac_useropt
1234     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235     case $ac_user_opts in
1236       *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240          ac_unrecognized_sep=', ';;
1241     esac
1242     eval with_$ac_useropt=no ;;
1243
1244   --x)
1245     # Obsolete; use --with-x.
1246     with_x=yes ;;
1247
1248   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249   | --x-incl | --x-inc | --x-in | --x-i)
1250     ac_prev=x_includes ;;
1251   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253     x_includes=$ac_optarg ;;
1254
1255   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257     ac_prev=x_libraries ;;
1258   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260     x_libraries=$ac_optarg ;;
1261
1262   -*) as_fn_error "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information."
1264     ;;
1265
1266   *=*)
1267     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268     # Reject names that are not valid shell variable names.
1269     case $ac_envvar in #(
1270       '' | [0-9]* | *[!_$as_cr_alnum]* )
1271       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1272     esac
1273     eval $ac_envvar=\$ac_optarg
1274     export $ac_envvar ;;
1275
1276   *)
1277     # FIXME: should be removed in autoconf 3.0.
1278     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282     ;;
1283
1284   esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289   as_fn_error "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293   case $enable_option_checking in
1294     no) ;;
1295     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1296     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297   esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302                 datadir sysconfdir sharedstatedir localstatedir includedir \
1303                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304                 libdir localedir mandir
1305 do
1306   eval ac_val=\$$ac_var
1307   # Remove trailing slashes.
1308   case $ac_val in
1309     */ )
1310       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311       eval $ac_var=\$ac_val;;
1312   esac
1313   # Be sure to have absolute directory names.
1314   case $ac_val in
1315     [\\/$]* | ?:[\\/]* )  continue;;
1316     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317   esac
1318   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330   if test "x$build_alias" = x; then
1331     cross_compiling=maybe
1332     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333     If a cross compiler is detected then cross compile mode will be used." >&2
1334   elif test "x$build_alias" != "x$host_alias"; then
1335     cross_compiling=yes
1336   fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348   as_fn_error "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350   as_fn_error "pwd does not report name of working directory"
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355   ac_srcdir_defaulted=yes
1356   # Try the directory containing this script, then the parent directory.
1357   ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359          X"$as_myself" : 'X\(//\)[^/]' \| \
1360          X"$as_myself" : 'X\(//\)$' \| \
1361          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)[^/].*/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\/\)$/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\).*/{
1376             s//\1/
1377             q
1378           }
1379           s/.*/./; q'`
1380   srcdir=$ac_confdir
1381   if test ! -r "$srcdir/$ac_unique_file"; then
1382     srcdir=..
1383   fi
1384 else
1385   ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1394         pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397   srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407   eval ac_env_${ac_var}_value=\$${ac_var}
1408   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416   # Omit some internal or obsolete options to make the list less imposing.
1417   # This message is too long to be a string in the A/UX 3.1 sh.
1418   cat <<_ACEOF
1419 \`configure' configures shellinabox 2.10 to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE.  See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429   -h, --help              display this help and exit
1430       --help=short        display options specific to this package
1431       --help=recursive    display the short help of all the included packages
1432   -V, --version           display version information and exit
1433   -q, --quiet, --silent   do not print \`checking...' messages
1434       --cache-file=FILE   cache test results in FILE [disabled]
1435   -C, --config-cache      alias for \`--cache-file=config.cache'
1436   -n, --no-create         do not create output files
1437       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440   --prefix=PREFIX         install architecture-independent files in PREFIX
1441                           [$ac_default_prefix]
1442   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1443                           [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453   --bindir=DIR            user executables [EPREFIX/bin]
1454   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1455   --libexecdir=DIR        program executables [EPREFIX/libexec]
1456   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1457   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1458   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1459   --libdir=DIR            object code libraries [EPREFIX/lib]
1460   --includedir=DIR        C header files [PREFIX/include]
1461   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1462   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1463   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1464   --infodir=DIR           info documentation [DATAROOTDIR/info]
1465   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1466   --mandir=DIR            man documentation [DATAROOTDIR/man]
1467   --docdir=DIR            documentation root [DATAROOTDIR/doc/shellinabox]
1468   --htmldir=DIR           html documentation [DOCDIR]
1469   --dvidir=DIR            dvi documentation [DOCDIR]
1470   --pdfdir=DIR            pdf documentation [DOCDIR]
1471   --psdir=DIR             ps documentation [DOCDIR]
1472 _ACEOF
1473
1474   cat <<\_ACEOF
1475
1476 Program names:
1477   --program-prefix=PREFIX            prepend PREFIX to installed program names
1478   --program-suffix=SUFFIX            append SUFFIX to installed program names
1479   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1480
1481 System types:
1482   --build=BUILD     configure for building on BUILD [guessed]
1483   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488   case $ac_init_help in
1489      short | recursive ) echo "Configuration of shellinabox 2.10:";;
1490    esac
1491   cat <<\_ACEOF
1492
1493 Optional Features:
1494   --disable-option-checking  ignore unrecognized --enable/--with options
1495   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497   --disable-dependency-tracking  speeds up one-time build
1498   --enable-dependency-tracking   do not reject slow dependency extractors
1499   --enable-shared[=PKGS]  build shared libraries [default=yes]
1500   --enable-static[=PKGS]  build static libraries [default=yes]
1501   --enable-fast-install[=PKGS]
1502                           optimize for fast installation [default=yes]
1503   --disable-libtool-lock  avoid locking (might break parallel builds)
1504   --disable-login           on some systems (e.g. Fedora), calling /bin/login
1505                             does not work well. If you know that your system
1506                             suffers from this problem, set this option to
1507                             remove support for the LOGIN keyword in the
1508                             service description.
1509   --disable-ssl             if available at built-time, support for SSL
1510                             connections will be enabled. It can still be
1511                             disabled at run-time, either on the daemon's
1512                             command line or if the operating system does not
1513                             have the OpenSSL libraries available.
1514   --disable-pam             PAM support is necessary in order to authenticate
1515                             users for running programs other than their default
1516                             login shell.
1517   --disable-runtime-loading ShellInABox will try to load the OpenSSL, and PAM
1518                             libraries at run-time, if it has been compiled with
1519                             support for these libraries, and if the operating
1520                             system supports dynamic loading of libraries. This
1521                             allows you to install the same binary on different
1522                             systems independent of whether they have OpenSSL
1523                             and PAM enabled.  If you would rather directly link
1524                             these libraries into the binary, thus making them a
1525                             hard dependency, then disable runtime-loading.
1526
1527 Optional Packages:
1528   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1529   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1530   --with-pic              try to use only PIC/non-PIC objects [default=use
1531                           both]
1532   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1533
1534 Some influential environment variables:
1535   CC          C compiler command
1536   CFLAGS      C compiler flags
1537   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1538               nonstandard directory <lib dir>
1539   LIBS        libraries to pass to the linker, e.g. -l<library>
1540   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1541               you have headers in a nonstandard directory <include dir>
1542   CPP         C preprocessor
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to <markus@shellinabox.com>.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553   # If there are subdirs, report their specific --help.
1554   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555     test -d "$ac_dir" ||
1556       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557       continue
1558     ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564   # A ".." for each directory in $ac_dir_suffix.
1565   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566   case $ac_top_builddir_sub in
1567   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569   esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577   .)  # We are building in place.
1578     ac_srcdir=.
1579     ac_top_srcdir=$ac_top_builddir_sub
1580     ac_abs_top_srcdir=$ac_pwd ;;
1581   [\\/]* | ?:[\\/]* )  # Absolute name.
1582     ac_srcdir=$srcdir$ac_dir_suffix;
1583     ac_top_srcdir=$srcdir
1584     ac_abs_top_srcdir=$srcdir ;;
1585   *) # Relative name.
1586     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587     ac_top_srcdir=$ac_top_build_prefix$srcdir
1588     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592     cd "$ac_dir" || { ac_status=$?; continue; }
1593     # Check for guested configure.
1594     if test -f "$ac_srcdir/configure.gnu"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597     elif test -f "$ac_srcdir/configure"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure" --help=recursive
1600     else
1601       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602     fi || ac_status=$?
1603     cd "$ac_pwd" || { ac_status=$?; break; }
1604   done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609   cat <<\_ACEOF
1610 shellinabox configure 2.10
1611 generated by GNU Autoconf 2.64
1612
1613 Copyright (C) 2009 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617   exit
1618 fi
1619
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   rm -f conftest.$ac_objext
1631   if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_compile") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } && {
1647          test -z "$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        } && test -s conftest.$ac_objext; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655         ac_retval=1
1656 fi
1657   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658   return $ac_retval
1659
1660 } # ac_fn_c_try_compile
1661
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_link ()
1666 {
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   rm -f conftest.$ac_objext conftest$ac_exeext
1669   if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672   *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676   (eval "$ac_link") 2>conftest.err
1677   ac_status=$?
1678   if test -s conftest.err; then
1679     grep -v '^ *+' conftest.err >conftest.er1
1680     cat conftest.er1 >&5
1681     mv -f conftest.er1 conftest.err
1682   fi
1683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684   test $ac_status = 0; } && {
1685          test -z "$ac_c_werror_flag" ||
1686          test ! -s conftest.err
1687        } && test -s conftest$ac_exeext && {
1688          test "$cross_compiling" = yes ||
1689          $as_test_x conftest$ac_exeext
1690        }; then :
1691   ac_retval=0
1692 else
1693   $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696         ac_retval=1
1697 fi
1698   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700   # interfere with the next link command; also delete a directory that is
1701   # left behind by Apple's compiler.  We do this before executing the actions.
1702   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704   return $ac_retval
1705
1706 } # ac_fn_c_try_link
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1718   $as_echo_n "(cached) " >&6
1719 else
1720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h.  */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726   eval "$3=yes"
1727 else
1728   eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
1737 } # ac_fn_c_check_header_compile
1738
1739 # ac_fn_c_try_cpp LINENO
1740 # ----------------------
1741 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_cpp ()
1743 {
1744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745   if { { ac_try="$ac_cpp conftest.$ac_ext"
1746 case "(($ac_try" in
1747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748   *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753   ac_status=$?
1754   if test -s conftest.err; then
1755     grep -v '^ *+' conftest.err >conftest.er1
1756     cat conftest.er1 >&5
1757     mv -f conftest.er1 conftest.err
1758   fi
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; } >/dev/null && {
1761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762          test ! -s conftest.err
1763        }; then :
1764   ac_retval=0
1765 else
1766   $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769     ac_retval=1
1770 fi
1771   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772   return $ac_retval
1773
1774 } # ac_fn_c_try_cpp
1775
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1780 ac_fn_c_try_run ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786   *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790   (eval "$ac_link") 2>&5
1791   ac_status=$?
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794   { { case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_try") 2>&5
1801   ac_status=$?
1802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803   test $ac_status = 0; }; }; then :
1804   ac_retval=0
1805 else
1806   $as_echo "$as_me: program exited with status $ac_status" >&5
1807        $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810        ac_retval=$ac_status
1811 fi
1812   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814   return $ac_retval
1815
1816 } # ac_fn_c_try_run
1817
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827   $as_echo_n "(cached) " >&6
1828 else
1829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h.  */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1833 #define $2 innocuous_$2
1834
1835 /* System header to define __stub macros and hopefully few prototypes,
1836     which can conflict with char $2 (); below.
1837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838     <limits.h> exists even on freestanding compilers.  */
1839
1840 #ifdef __STDC__
1841 # include <limits.h>
1842 #else
1843 # include <assert.h>
1844 #endif
1845
1846 #undef $2
1847
1848 /* Override any GCC internal prototype to avoid an error.
1849    Use char because int might match the return type of a GCC
1850    builtin and then its argument prototype would still apply.  */
1851 #ifdef __cplusplus
1852 extern "C"
1853 #endif
1854 char $2 ();
1855 /* The GNU C library defines this for functions which it implements
1856     to always fail with ENOSYS.  Some functions are actually named
1857     something starting with __ and the normal name is an alias.  */
1858 #if defined __stub_$2 || defined __stub___$2
1859 choke me
1860 #endif
1861
1862 int
1863 main ()
1864 {
1865 return $2 ();
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_link "$LINENO"; then :
1871   eval "$3=yes"
1872 else
1873   eval "$3=no"
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext \
1876     conftest$ac_exeext conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882
1883 } # ac_fn_c_check_func
1884
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1889 # accordingly.
1890 ac_fn_c_check_header_mongrel ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897   $as_echo_n "(cached) " >&6
1898 fi
1899 eval ac_res=\$$3
1900                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 else
1903   # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h.  */
1908 $4
1909 #include <$2>
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912   ac_header_compiler=yes
1913 else
1914   ac_header_compiler=no
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1919
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_cpp "$LINENO"; then :
1928   ac_header_preproc=yes
1929 else
1930   ac_header_preproc=no
1931 fi
1932 rm -f conftest.err conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1935
1936 # So?  What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938   yes:no: )
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943     ;;
1944   no:yes:* )
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ( cat <<\_ASBOX
1956 ## ------------------------------------- ##
1957 ## Report this to markus@shellinabox.com ##
1958 ## ------------------------------------- ##
1959 _ASBOX
1960      ) | sed "s/^/$as_me: WARNING:     /" >&2
1961     ;;
1962 esac
1963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966   $as_echo_n "(cached) " >&6
1967 else
1968   eval "$3=\$ac_header_compiler"
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 fi
1974   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975
1976 } # ac_fn_c_check_header_mongrel
1977 cat >config.log <<_ACEOF
1978 This file contains any messages produced by compilers while
1979 running configure, to aid debugging if configure makes a mistake.
1980
1981 It was created by shellinabox $as_me 2.10, which was
1982 generated by GNU Autoconf 2.64.  Invocation command line was
1983
1984   $ $0 $@
1985
1986 _ACEOF
1987 exec 5>>config.log
1988 {
1989 cat <<_ASUNAME
1990 ## --------- ##
1991 ## Platform. ##
1992 ## --------- ##
1993
1994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1999
2000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2001 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2002
2003 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2004 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2006 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2007 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2008 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2009 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2010
2011 _ASUNAME
2012
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018     $as_echo "PATH: $as_dir"
2019   done
2020 IFS=$as_save_IFS
2021
2022 } >&5
2023
2024 cat >&5 <<_ACEOF
2025
2026
2027 ## ----------- ##
2028 ## Core tests. ##
2029 ## ----------- ##
2030
2031 _ACEOF
2032
2033
2034 # Keep a trace of the command line.
2035 # Strip out --no-create and --no-recursion so they do not pile up.
2036 # Strip out --silent because we don't want to record it for future runs.
2037 # Also quote any args containing shell meta-characters.
2038 # Make two passes to allow for proper duplicate-argument suppression.
2039 ac_configure_args=
2040 ac_configure_args0=
2041 ac_configure_args1=
2042 ac_must_keep_next=false
2043 for ac_pass in 1 2
2044 do
2045   for ac_arg
2046   do
2047     case $ac_arg in
2048     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2049     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050     | -silent | --silent | --silen | --sile | --sil)
2051       continue ;;
2052     *\'*)
2053       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2054     esac
2055     case $ac_pass in
2056     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2057     2)
2058       as_fn_append ac_configure_args1 " '$ac_arg'"
2059       if test $ac_must_keep_next = true; then
2060         ac_must_keep_next=false # Got value, back to normal.
2061       else
2062         case $ac_arg in
2063           *=* | --config-cache | -C | -disable-* | --disable-* \
2064           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2065           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2066           | -with-* | --with-* | -without-* | --without-* | --x)
2067             case "$ac_configure_args0 " in
2068               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2069             esac
2070             ;;
2071           -* ) ac_must_keep_next=true ;;
2072         esac
2073       fi
2074       as_fn_append ac_configure_args " '$ac_arg'"
2075       ;;
2076     esac
2077   done
2078 done
2079 { ac_configure_args0=; unset ac_configure_args0;}
2080 { ac_configure_args1=; unset ac_configure_args1;}
2081
2082 # When interrupted or exit'd, cleanup temporary files, and complete
2083 # config.log.  We remove comments because anyway the quotes in there
2084 # would cause problems or look ugly.
2085 # WARNING: Use '\'' to represent an apostrophe within the trap.
2086 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2087 trap 'exit_status=$?
2088   # Save into config.log some information that might help in debugging.
2089   {
2090     echo
2091
2092     cat <<\_ASBOX
2093 ## ---------------- ##
2094 ## Cache variables. ##
2095 ## ---------------- ##
2096 _ASBOX
2097     echo
2098     # The following way of writing the cache mishandles newlines in values,
2099 (
2100   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2101     eval ac_val=\$$ac_var
2102     case $ac_val in #(
2103     *${as_nl}*)
2104       case $ac_var in #(
2105       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2106 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2107       esac
2108       case $ac_var in #(
2109       _ | IFS | as_nl) ;; #(
2110       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2111       *) { eval $ac_var=; unset $ac_var;} ;;
2112       esac ;;
2113     esac
2114   done
2115   (set) 2>&1 |
2116     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2117     *${as_nl}ac_space=\ *)
2118       sed -n \
2119         "s/'\''/'\''\\\\'\'''\''/g;
2120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2121       ;; #(
2122     *)
2123       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2124       ;;
2125     esac |
2126     sort
2127 )
2128     echo
2129
2130     cat <<\_ASBOX
2131 ## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##
2134 _ASBOX
2135     echo
2136     for ac_var in $ac_subst_vars
2137     do
2138       eval ac_val=\$$ac_var
2139       case $ac_val in
2140       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141       esac
2142       $as_echo "$ac_var='\''$ac_val'\''"
2143     done | sort
2144     echo
2145
2146     if test -n "$ac_subst_files"; then
2147       cat <<\_ASBOX
2148 ## ------------------- ##
2149 ## File substitutions. ##
2150 ## ------------------- ##
2151 _ASBOX
2152       echo
2153       for ac_var in $ac_subst_files
2154       do
2155         eval ac_val=\$$ac_var
2156         case $ac_val in
2157         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158         esac
2159         $as_echo "$ac_var='\''$ac_val'\''"
2160       done | sort
2161       echo
2162     fi
2163
2164     if test -s confdefs.h; then
2165       cat <<\_ASBOX
2166 ## ----------- ##
2167 ## confdefs.h. ##
2168 ## ----------- ##
2169 _ASBOX
2170       echo
2171       cat confdefs.h
2172       echo
2173     fi
2174     test "$ac_signal" != 0 &&
2175       $as_echo "$as_me: caught signal $ac_signal"
2176     $as_echo "$as_me: exit $exit_status"
2177   } >&5
2178   rm -f core *.core core.conftest.* &&
2179     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2180     exit $exit_status
2181 ' 0
2182 for ac_signal in 1 2 13 15; do
2183   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2184 done
2185 ac_signal=0
2186
2187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2188 rm -f -r conftest* confdefs.h
2189
2190 $as_echo "/* confdefs.h */" > confdefs.h
2191
2192 # Predefined preprocessor variables.
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_NAME "$PACKAGE_NAME"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_STRING "$PACKAGE_STRING"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_URL "$PACKAGE_URL"
2216 _ACEOF
2217
2218
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2221 ac_site_file1=NONE
2222 ac_site_file2=NONE
2223 if test -n "$CONFIG_SITE"; then
2224   ac_site_file1=$CONFIG_SITE
2225 elif test "x$prefix" != xNONE; then
2226   ac_site_file1=$prefix/share/config.site
2227   ac_site_file2=$prefix/etc/config.site
2228 else
2229   ac_site_file1=$ac_default_prefix/share/config.site
2230   ac_site_file2=$ac_default_prefix/etc/config.site
2231 fi
2232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2233 do
2234   test "x$ac_site_file" = xNONE && continue
2235   if test -r "$ac_site_file"; then
2236     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238     sed 's/^/| /' "$ac_site_file" >&5
2239     . "$ac_site_file"
2240   fi
2241 done
2242
2243 if test -r "$cache_file"; then
2244   # Some versions of bash will fail to source /dev/null (special
2245   # files actually), so we avoid doing that.
2246   if test -f "$cache_file"; then
2247     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2248 $as_echo "$as_me: loading cache $cache_file" >&6;}
2249     case $cache_file in
2250       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2251       *)                      . "./$cache_file";;
2252     esac
2253   fi
2254 else
2255   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2256 $as_echo "$as_me: creating cache $cache_file" >&6;}
2257   >$cache_file
2258 fi
2259
2260 # Check that the precious variables saved in the cache have kept the same
2261 # value.
2262 ac_cache_corrupted=false
2263 for ac_var in $ac_precious_vars; do
2264   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2265   eval ac_new_set=\$ac_env_${ac_var}_set
2266   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2267   eval ac_new_val=\$ac_env_${ac_var}_value
2268   case $ac_old_set,$ac_new_set in
2269     set,)
2270       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2272       ac_cache_corrupted=: ;;
2273     ,set)
2274       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2276       ac_cache_corrupted=: ;;
2277     ,);;
2278     *)
2279       if test "x$ac_old_val" != "x$ac_new_val"; then
2280         # differences in whitespace do not lead to failure.
2281         ac_old_val_w=`echo x $ac_old_val`
2282         ac_new_val_w=`echo x $ac_new_val`
2283         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2284           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2285 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2286           ac_cache_corrupted=:
2287         else
2288           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2289 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2290           eval $ac_var=\$ac_old_val
2291         fi
2292         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2293 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2294         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2295 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2296       fi;;
2297   esac
2298   # Pass precious variables to config.status.
2299   if test "$ac_new_set" = set; then
2300     case $ac_new_val in
2301     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2302     *) ac_arg=$ac_var=$ac_new_val ;;
2303     esac
2304     case " $ac_configure_args " in
2305       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2306       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2307     esac
2308   fi
2309 done
2310 if $ac_cache_corrupted; then
2311   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2314 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2315   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2316 fi
2317 ## -------------------- ##
2318 ## Main body of script. ##
2319 ## -------------------- ##
2320
2321 ac_ext=c
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326
2327
2328 VCS_REVISION=200
2329
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define VCS_REVISION "${VCS_REVISION}"
2333 _ACEOF
2334
2335
2336 CFLAGS="${CFLAGS:--Os}"
2337 am__api_version='1.11'
2338
2339 ac_aux_dir=
2340 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2341   for ac_t in install-sh install.sh shtool; do
2342     if test -f "$ac_dir/$ac_t"; then
2343       ac_aux_dir=$ac_dir
2344       ac_install_sh="$ac_aux_dir/$ac_t -c"
2345       break 2
2346     fi
2347   done
2348 done
2349 if test -z "$ac_aux_dir"; then
2350   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351 fi
2352
2353 # These three variables are undocumented and unsupported,
2354 # and are intended to be withdrawn in a future Autoconf release.
2355 # They can cause serious problems if a builder's source tree is in a directory
2356 # whose full name contains unusual characters.
2357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2359 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2360
2361
2362 # Find a good install program.  We prefer a C program (faster),
2363 # so one script is as good as another.  But avoid the broken or
2364 # incompatible versions:
2365 # SysV /etc/install, /usr/sbin/install
2366 # SunOS /usr/etc/install
2367 # IRIX /sbin/install
2368 # AIX /bin/install
2369 # AmigaOS /C/install, which installs bootblocks on floppy discs
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # OS/2's system install, which has a completely different semantic
2374 # ./install, which can be erroneously created by make from ./install.sh.
2375 # Reject install programs that cannot install multiple files.
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2378 if test -z "$INSTALL"; then
2379 if test "${ac_cv_path_install+set}" = set; then :
2380   $as_echo_n "(cached) " >&6
2381 else
2382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385   IFS=$as_save_IFS
2386   test -z "$as_dir" && as_dir=.
2387     # Account for people who put trailing slashes in PATH elements.
2388 case $as_dir/ in #((
2389   ./ | .// | /[cC]/* | \
2390   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2392   /usr/ucb/* ) ;;
2393   *)
2394     # OSF1 and SCO ODT 3.0 have their own names for install.
2395     # Don't use installbsd from OSF since it installs stuff as root
2396     # by default.
2397     for ac_prog in ginstall scoinst install; do
2398       for ac_exec_ext in '' $ac_executable_extensions; do
2399         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2400           if test $ac_prog = install &&
2401             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402             # AIX install.  It has an incompatible calling convention.
2403             :
2404           elif test $ac_prog = install &&
2405             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406             # program-specific install script used by HP pwplus--don't use.
2407             :
2408           else
2409             rm -rf conftest.one conftest.two conftest.dir
2410             echo one > conftest.one
2411             echo two > conftest.two
2412             mkdir conftest.dir
2413             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414               test -s conftest.one && test -s conftest.two &&
2415               test -s conftest.dir/conftest.one &&
2416               test -s conftest.dir/conftest.two
2417             then
2418               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419               break 3
2420             fi
2421           fi
2422         fi
2423       done
2424     done
2425     ;;
2426 esac
2427
2428   done
2429 IFS=$as_save_IFS
2430
2431 rm -rf conftest.one conftest.two conftest.dir
2432
2433 fi
2434   if test "${ac_cv_path_install+set}" = set; then
2435     INSTALL=$ac_cv_path_install
2436   else
2437     # As a last resort, use the slow shell script.  Don't cache a
2438     # value for INSTALL within a source directory, because that will
2439     # break other packages using the cache if that directory is
2440     # removed, or if the value is a relative name.
2441     INSTALL=$ac_install_sh
2442   fi
2443 fi
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445 $as_echo "$INSTALL" >&6; }
2446
2447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448 # It thinks the first close brace ends the variable substitution.
2449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2450
2451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2452
2453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2454
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2456 $as_echo_n "checking whether build environment is sane... " >&6; }
2457 # Just in case
2458 sleep 1
2459 echo timestamp > conftest.file
2460 # Reject unsafe characters in $srcdir or the absolute working directory
2461 # name.  Accept space and tab only in the latter.
2462 am_lf='
2463 '
2464 case `pwd` in
2465   *[\\\"\#\$\&\'\`$am_lf]*)
2466     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2467 esac
2468 case $srcdir in
2469   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2470     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2471 esac
2472
2473 # Do `set' in a subshell so we don't clobber the current shell's
2474 # arguments.  Must try -L first in case configure is actually a
2475 # symlink; some systems play weird games with the mod time of symlinks
2476 # (eg FreeBSD returns the mod time of the symlink's containing
2477 # directory).
2478 if (
2479    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2480    if test "$*" = "X"; then
2481       # -L didn't work.
2482       set X `ls -t "$srcdir/configure" conftest.file`
2483    fi
2484    rm -f conftest.file
2485    if test "$*" != "X $srcdir/configure conftest.file" \
2486       && test "$*" != "X conftest.file $srcdir/configure"; then
2487
2488       # If neither matched, then we have a broken ls.  This can happen
2489       # if, for instance, CONFIG_SHELL is bash and it inherits a
2490       # broken ls alias from the environment.  This has actually
2491       # happened.  Such a system could not be considered "sane".
2492       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2493 alias in your environment" "$LINENO" 5
2494    fi
2495
2496    test "$2" = conftest.file
2497    )
2498 then
2499    # Ok.
2500    :
2501 else
2502    as_fn_error "newly created file is older than distributed files!
2503 Check your system clock" "$LINENO" 5
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2506 $as_echo "yes" >&6; }
2507 test "$program_prefix" != NONE &&
2508   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2509 # Use a double $ so make ignores it.
2510 test "$program_suffix" != NONE &&
2511   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2512 # Double any \ or $.
2513 # By default was `s,x,x', remove it if useless.
2514 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2515 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2516
2517 # expand $ac_aux_dir to an absolute path
2518 am_aux_dir=`cd $ac_aux_dir && pwd`
2519
2520 if test x"${MISSING+set}" != xset; then
2521   case $am_aux_dir in
2522   *\ * | *\     *)
2523     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2524   *)
2525     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2526   esac
2527 fi
2528 # Use eval to expand $SHELL
2529 if eval "$MISSING --run true"; then
2530   am_missing_run="$MISSING --run "
2531 else
2532   am_missing_run=
2533   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2534 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2535 fi
2536
2537 if test x"${install_sh}" != xset; then
2538   case $am_aux_dir in
2539   *\ * | *\     *)
2540     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2541   *)
2542     install_sh="\${SHELL} $am_aux_dir/install-sh"
2543   esac
2544 fi
2545
2546 # Installed binaries are usually stripped using `strip' when the user
2547 # run `make install-strip'.  However `strip' might not be the right
2548 # tool to use in cross-compilation environments, therefore Automake
2549 # will honor the `STRIP' environment variable to overrule this program.
2550 if test "$cross_compiling" != no; then
2551   if test -n "$ac_tool_prefix"; then
2552   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}strip; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if test "${ac_cv_prog_STRIP+set}" = set; then :
2557   $as_echo_n "(cached) " >&6
2558 else
2559   if test -n "$STRIP"; then
2560   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567     for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574   done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 STRIP=$ac_cv_prog_STRIP
2580 if test -n "$STRIP"; then
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2582 $as_echo "$STRIP" >&6; }
2583 else
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 fi
2590 if test -z "$ac_cv_prog_STRIP"; then
2591   ac_ct_STRIP=$STRIP
2592   # Extract the first word of "strip", so it can be a program name with args.
2593 set dummy strip; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2597   $as_echo_n "(cached) " >&6
2598 else
2599   if test -n "$ac_ct_STRIP"; then
2600   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607     for ac_exec_ext in '' $ac_executable_extensions; do
2608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609     ac_cv_prog_ac_ct_STRIP="strip"
2610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611     break 2
2612   fi
2613 done
2614   done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2620 if test -n "$ac_ct_STRIP"; then
2621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2622 $as_echo "$ac_ct_STRIP" >&6; }
2623 else
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 fi
2627
2628   if test "x$ac_ct_STRIP" = x; then
2629     STRIP=":"
2630   else
2631     case $cross_compiling:$ac_tool_warned in
2632 yes:)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635 ac_tool_warned=yes ;;
2636 esac
2637     STRIP=$ac_ct_STRIP
2638   fi
2639 else
2640   STRIP="$ac_cv_prog_STRIP"
2641 fi
2642
2643 fi
2644 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2647 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2648 if test -z "$MKDIR_P"; then
2649   if test "${ac_cv_path_mkdir+set}" = set; then :
2650   $as_echo_n "(cached) " >&6
2651 else
2652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2654 do
2655   IFS=$as_save_IFS
2656   test -z "$as_dir" && as_dir=.
2657     for ac_prog in mkdir gmkdir; do
2658          for ac_exec_ext in '' $ac_executable_extensions; do
2659            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2660            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2661              'mkdir (GNU coreutils) '* | \
2662              'mkdir (coreutils) '* | \
2663              'mkdir (fileutils) '4.1*)
2664                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2665                break 3;;
2666            esac
2667          done
2668        done
2669   done
2670 IFS=$as_save_IFS
2671
2672 fi
2673
2674   if test "${ac_cv_path_mkdir+set}" = set; then
2675     MKDIR_P="$ac_cv_path_mkdir -p"
2676   else
2677     # As a last resort, use the slow shell script.  Don't cache a
2678     # value for MKDIR_P within a source directory, because that will
2679     # break other packages using the cache if that directory is
2680     # removed, or if the value is a relative name.
2681     test -d ./--version && rmdir ./--version
2682     MKDIR_P="$ac_install_sh -d"
2683   fi
2684 fi
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2686 $as_echo "$MKDIR_P" >&6; }
2687
2688 mkdir_p="$MKDIR_P"
2689 case $mkdir_p in
2690   [\\/$]* | ?:[\\/]*) ;;
2691   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2692 esac
2693
2694 for ac_prog in gawk mawk nawk awk
2695 do
2696   # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_AWK+set}" = set; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$AWK"; then
2704   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711     for ac_exec_ext in '' $ac_executable_extensions; do
2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713     ac_cv_prog_AWK="$ac_prog"
2714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718   done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 AWK=$ac_cv_prog_AWK
2724 if test -n "$AWK"; then
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2726 $as_echo "$AWK" >&6; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733   test -n "$AWK" && break
2734 done
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2737 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2738 set x ${MAKE-make}
2739 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2740 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   cat >conftest.make <<\_ACEOF
2744 SHELL = /bin/sh
2745 all:
2746         @echo '@@@%%%=$(MAKE)=@@@%%%'
2747 _ACEOF
2748 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2749 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2750   *@@@%%%=?*=@@@%%%*)
2751     eval ac_cv_prog_make_${ac_make}_set=yes;;
2752   *)
2753     eval ac_cv_prog_make_${ac_make}_set=no;;
2754 esac
2755 rm -f conftest.make
2756 fi
2757 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759 $as_echo "yes" >&6; }
2760   SET_MAKE=
2761 else
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764   SET_MAKE="MAKE=${MAKE-make}"
2765 fi
2766
2767 rm -rf .tst 2>/dev/null
2768 mkdir .tst 2>/dev/null
2769 if test -d .tst; then
2770   am__leading_dot=.
2771 else
2772   am__leading_dot=_
2773 fi
2774 rmdir .tst 2>/dev/null
2775
2776 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2777   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2778   # is not polluted with repeated "-I."
2779   am__isrc=' -I$(srcdir)'
2780   # test to see if srcdir already configured
2781   if test -f $srcdir/config.status; then
2782     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2783   fi
2784 fi
2785
2786 # test whether we have cygpath
2787 if test -z "$CYGPATH_W"; then
2788   if (cygpath --version) >/dev/null 2>/dev/null; then
2789     CYGPATH_W='cygpath -w'
2790   else
2791     CYGPATH_W=echo
2792   fi
2793 fi
2794
2795
2796 # Define the identity of the package.
2797  PACKAGE='shellinabox'
2798  VERSION='2.10'
2799
2800
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE "$PACKAGE"
2803 _ACEOF
2804
2805
2806 cat >>confdefs.h <<_ACEOF
2807 #define VERSION "$VERSION"
2808 _ACEOF
2809
2810 # Some tools Automake needs.
2811
2812 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2813
2814
2815 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2816
2817
2818 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2819
2820
2821 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2822
2823
2824 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2825
2826 # We need awk for the "check" target.  The system "awk" is bad on
2827 # some platforms.
2828 # Always define AMTAR for backward compatibility.
2829
2830 AMTAR=${AMTAR-"${am_missing_run}tar"}
2831
2832 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2833
2834
2835
2836
2837
2838 ac_config_headers="$ac_config_headers config.h"
2839
2840 ac_ext=c
2841 ac_cpp='$CPP $CPPFLAGS'
2842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845 if test -n "$ac_tool_prefix"; then
2846   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then :
2851   $as_echo_n "(cached) " >&6
2852 else
2853   if test -n "$CC"; then
2854   ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859   IFS=$as_save_IFS
2860   test -z "$as_dir" && as_dir=.
2861     for ac_exec_ext in '' $ac_executable_extensions; do
2862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865     break 2
2866   fi
2867 done
2868   done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2877 else
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 if test -z "$ac_cv_prog_CC"; then
2885   ac_ct_CC=$CC
2886   # Extract the first word of "gcc", so it can be a program name with args.
2887 set dummy gcc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   if test -n "$ac_ct_CC"; then
2894   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901     for ac_exec_ext in '' $ac_executable_extensions; do
2902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903     ac_cv_prog_ac_ct_CC="gcc"
2904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905     break 2
2906   fi
2907 done
2908   done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2914 if test -n "$ac_ct_CC"; then
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2916 $as_echo "$ac_ct_CC" >&6; }
2917 else
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922   if test "x$ac_ct_CC" = x; then
2923     CC=""
2924   else
2925     case $cross_compiling:$ac_tool_warned in
2926 yes:)
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2930 esac
2931     CC=$ac_ct_CC
2932   fi
2933 else
2934   CC="$ac_cv_prog_CC"
2935 fi
2936
2937 if test -z "$CC"; then
2938           if test -n "$ac_tool_prefix"; then
2939     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}cc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then :
2944   $as_echo_n "(cached) " >&6
2945 else
2946   if test -n "$CC"; then
2947   ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954     for ac_exec_ext in '' $ac_executable_extensions; do
2955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956     ac_cv_prog_CC="${ac_tool_prefix}cc"
2957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961   done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976   fi
2977 fi
2978 if test -z "$CC"; then
2979   # Extract the first word of "cc", so it can be a program name with args.
2980 set dummy cc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then :
2984   $as_echo_n "(cached) " >&6
2985 else
2986   if test -n "$CC"; then
2987   ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989   ac_prog_rejected=no
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995     for ac_exec_ext in '' $ac_executable_extensions; do
2996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2998        ac_prog_rejected=yes
2999        continue
3000      fi
3001     ac_cv_prog_CC="cc"
3002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003     break 2
3004   fi
3005 done
3006   done
3007 IFS=$as_save_IFS
3008
3009 if test $ac_prog_rejected = yes; then
3010   # We found a bogon in the path, so make sure we never use it.
3011   set dummy $ac_cv_prog_CC
3012   shift
3013   if test $# != 0; then
3014     # We chose a different compiler from the bogus one.
3015     # However, it has the same basename, so the bogon will be chosen
3016     # first if we set CC to just the basename; use the full file name.
3017     shift
3018     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3019   fi
3020 fi
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032
3033 fi
3034 if test -z "$CC"; then
3035   if test -n "$ac_tool_prefix"; then
3036   for ac_prog in cl.exe
3037   do
3038     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if test "${ac_cv_prog_CC+set}" = set; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   if test -n "$CC"; then
3046   ac_cv_prog_CC="$CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051   IFS=$as_save_IFS
3052   test -z "$as_dir" && as_dir=.
3053     for ac_exec_ext in '' $ac_executable_extensions; do
3054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057     break 2
3058   fi
3059 done
3060   done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075     test -n "$CC" && break
3076   done
3077 fi
3078 if test -z "$CC"; then
3079   ac_ct_CC=$CC
3080   for ac_prog in cl.exe
3081 do
3082   # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy $ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3087   $as_echo_n "(cached) " >&6
3088 else
3089   if test -n "$ac_ct_CC"; then
3090   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   test -z "$as_dir" && as_dir=.
3097     for ac_exec_ext in '' $ac_executable_extensions; do
3098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099     ac_cv_prog_ac_ct_CC="$ac_prog"
3100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104   done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3110 if test -n "$ac_ct_CC"; then
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3112 $as_echo "$ac_ct_CC" >&6; }
3113 else
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119   test -n "$ac_ct_CC" && break
3120 done
3121
3122   if test "x$ac_ct_CC" = x; then
3123     CC=""
3124   else
3125     case $cross_compiling:$ac_tool_warned in
3126 yes:)
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned=yes ;;
3130 esac
3131     CC=$ac_ct_CC
3132   fi
3133 fi
3134
3135 fi
3136
3137
3138 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error "no acceptable C compiler found in \$PATH
3141 See \`config.log' for more details." "$LINENO" 5; }
3142
3143 # Provide some information about the compiler.
3144 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3145 set X $ac_compile
3146 ac_compiler=$2
3147 for ac_option in --version -v -V -qversion; do
3148   { { ac_try="$ac_compiler $ac_option >&5"
3149 case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3156   ac_status=$?
3157   if test -s conftest.err; then
3158     sed '10a\
3159 ... rest of stderr output deleted ...
3160          10q' conftest.err >conftest.er1
3161     cat conftest.er1 >&5
3162     rm -f conftest.er1 conftest.err
3163   fi
3164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165   test $ac_status = 0; }
3166 done
3167
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h.  */
3170 #include <stdio.h>
3171 int
3172 main ()
3173 {
3174 FILE *f = fopen ("conftest.out", "w");
3175  return ferror (f) || fclose (f) != 0;
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3185 # of exeext.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3187 $as_echo_n "checking for C compiler default output file name... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192
3193 ac_rmfiles=
3194 for ac_file in $ac_files
3195 do
3196   case $ac_file in
3197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199   esac
3200 done
3201 rm -f $ac_rmfiles
3202
3203 if { { ac_try="$ac_link_default"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210   (eval "$ac_link_default") 2>&5
3211   ac_status=$?
3212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213   test $ac_status = 0; }; then :
3214   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3218 # Autoconf.
3219 for ac_file in $ac_files ''
3220 do
3221   test -f "$ac_file" || continue
3222   case $ac_file in
3223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3224         ;;
3225     [ab].out )
3226         # We found the default executable, but exeext='' is most
3227         # certainly right.
3228         break;;
3229     *.* )
3230         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3231         then :; else
3232            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233         fi
3234         # We set ac_cv_exeext here because the later test for it is not
3235         # safe: cross compilers may not add the suffix if given an `-o'
3236         # argument, so we may need to know it at that point already.
3237         # Even if this section looks crufty: it has the advantage of
3238         # actually working.
3239         break;;
3240     * )
3241         break;;
3242   esac
3243 done
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3245
3246 else
3247   ac_file=''
3248 fi
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3250 $as_echo "$ac_file" >&6; }
3251 if test -z "$ac_file"; then :
3252   $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 { as_fn_set_status 77
3258 as_fn_error "C compiler cannot create executables
3259 See \`config.log' for more details." "$LINENO" 5; }; }
3260 fi
3261 ac_exeext=$ac_cv_exeext
3262
3263 # Check that the compiler produces executables we can run.  If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 # If not cross compiling, check that we can run a simple program.
3268 if test "$cross_compiling" != yes; then
3269   if { ac_try='./$ac_file'
3270   { { case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276   (eval "$ac_try") 2>&5
3277   ac_status=$?
3278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279   test $ac_status = 0; }; }; then
3280     cross_compiling=no
3281   else
3282     if test "$cross_compiling" = maybe; then
3283         cross_compiling=yes
3284     else
3285         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error "cannot run C compiled programs.
3288 If you meant to cross compile, use \`--host'.
3289 See \`config.log' for more details." "$LINENO" 5; }
3290     fi
3291   fi
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3295
3296 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3297 ac_clean_files=$ac_clean_files_save
3298 # Check that the compiler produces executables we can run.  If not, either
3299 # the compiler is broken, or we cross compile.
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3301 $as_echo_n "checking whether we are cross compiling... " >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3303 $as_echo "$cross_compiling" >&6; }
3304
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306 $as_echo_n "checking for suffix of executables... " >&6; }
3307 if { { ac_try="$ac_link"
3308 case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314   (eval "$ac_link") 2>&5
3315   ac_status=$?
3316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317   test $ac_status = 0; }; then :
3318   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3320 # work properly (i.e., refer to `conftest.exe'), while it won't with
3321 # `rm'.
3322 for ac_file in conftest.exe conftest conftest.*; do
3323   test -f "$ac_file" || continue
3324   case $ac_file in
3325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327           break;;
3328     * ) break;;
3329   esac
3330 done
3331 else
3332   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error "cannot compute suffix of executables: cannot compile and link
3335 See \`config.log' for more details." "$LINENO" 5; }
3336 fi
3337 rm -f conftest$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339 $as_echo "$ac_cv_exeext" >&6; }
3340
3341 rm -f conftest.$ac_ext
3342 EXEEXT=$ac_cv_exeext
3343 ac_exeext=$EXEEXT
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3345 $as_echo_n "checking for suffix of object files... " >&6; }
3346 if test "${ac_cv_objext+set}" = set; then :
3347   $as_echo_n "(cached) " >&6
3348 else
3349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h.  */
3351
3352 int
3353 main ()
3354 {
3355
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.o conftest.obj
3361 if { { ac_try="$ac_compile"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368   (eval "$ac_compile") 2>&5
3369   ac_status=$?
3370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371   test $ac_status = 0; }; then :
3372   for ac_file in conftest.o conftest.obj conftest.*; do
3373   test -f "$ac_file" || continue;
3374   case $ac_file in
3375     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3376     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377        break;;
3378   esac
3379 done
3380 else
3381   $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." "$LINENO" 5; }
3388 fi
3389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392 $as_echo "$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3394 ac_objext=$OBJEXT
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3396 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3397 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3398   $as_echo_n "(cached) " >&6
3399 else
3400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h.  */
3402
3403 int
3404 main ()
3405 {
3406 #ifndef __GNUC__
3407        choke me
3408 #endif
3409
3410   ;
3411   return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415   ac_compiler_gnu=yes
3416 else
3417   ac_compiler_gnu=no
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425 if test $ac_compiler_gnu = yes; then
3426   GCC=yes
3427 else
3428   GCC=
3429 fi
3430 ac_test_CFLAGS=${CFLAGS+set}
3431 ac_save_CFLAGS=$CFLAGS
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3434 if test "${ac_cv_prog_cc_g+set}" = set; then :
3435   $as_echo_n "(cached) " >&6
3436 else
3437   ac_save_c_werror_flag=$ac_c_werror_flag
3438    ac_c_werror_flag=yes
3439    ac_cv_prog_cc_g=no
3440    CFLAGS="-g"
3441    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h.  */
3443
3444 int
3445 main ()
3446 {
3447
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453   ac_cv_prog_cc_g=yes
3454 else
3455   CFLAGS=""
3456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h.  */
3458
3459 int
3460 main ()
3461 {
3462
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468
3469 else
3470   ac_c_werror_flag=$ac_save_c_werror_flag
3471          CFLAGS="-g"
3472          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484   ac_cv_prog_cc_g=yes
3485 fi
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491    ac_c_werror_flag=$ac_save_c_werror_flag
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3494 $as_echo "$ac_cv_prog_cc_g" >&6; }
3495 if test "$ac_test_CFLAGS" = set; then
3496   CFLAGS=$ac_save_CFLAGS
3497 elif test $ac_cv_prog_cc_g = yes; then
3498   if test "$GCC" = yes; then
3499     CFLAGS="-g -O2"
3500   else
3501     CFLAGS="-g"
3502   fi
3503 else
3504   if test "$GCC" = yes; then
3505     CFLAGS="-O2"
3506   else
3507     CFLAGS=
3508   fi
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3511 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3512 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3513   $as_echo_n "(cached) " >&6
3514 else
3515   ac_cv_prog_cc_c89=no
3516 ac_save_CC=$CC
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519 #include <stdarg.h>
3520 #include <stdio.h>
3521 #include <sys/types.h>
3522 #include <sys/stat.h>
3523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3524 struct buf { int x; };
3525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526 static char *e (p, i)
3527      char **p;
3528      int i;
3529 {
3530   return p[i];
3531 }
3532 static char *f (char * (*g) (char **, int), char **p, ...)
3533 {
3534   char *s;
3535   va_list v;
3536   va_start (v,p);
3537   s = g (p, va_arg (v,int));
3538   va_end (v);
3539   return s;
3540 }
3541
3542 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3543    function prototypes and stuff, but not '\xHH' hex character constants.
3544    These don't provoke an error unfortunately, instead are silently treated
3545    as 'x'.  The following induces an error, until -std is added to get
3546    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3547    array size at least.  It's necessary to write '\x00'==0 to get something
3548    that's true only with -std.  */
3549 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550
3551 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3552    inside strings and character constants.  */
3553 #define FOO(x) 'x'
3554 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3555
3556 int test (int i, double x);
3557 struct s1 {int (*f) (int a);};
3558 struct s2 {int (*f) (double a);};
3559 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560 int argc;
3561 char **argv;
3562 int
3563 main ()
3564 {
3565 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3571         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3572 do
3573   CC="$ac_save_CC $ac_arg"
3574   if ac_fn_c_try_compile "$LINENO"; then :
3575   ac_cv_prog_cc_c89=$ac_arg
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext
3578   test "x$ac_cv_prog_cc_c89" != "xno" && break
3579 done
3580 rm -f conftest.$ac_ext
3581 CC=$ac_save_CC
3582
3583 fi
3584 # AC_CACHE_VAL
3585 case "x$ac_cv_prog_cc_c89" in
3586   x)
3587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588 $as_echo "none needed" >&6; } ;;
3589   xno)
3590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591 $as_echo "unsupported" >&6; } ;;
3592   *)
3593     CC="$CC $ac_cv_prog_cc_c89"
3594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3595 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3596 esac
3597 if test "x$ac_cv_prog_cc_c89" != xno; then :
3598
3599 fi
3600
3601 ac_ext=c
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 DEPDIR="${am__leading_dot}deps"
3607
3608 ac_config_commands="$ac_config_commands depfiles"
3609
3610
3611 am_make=${MAKE-make}
3612 cat > confinc << 'END'
3613 am__doit:
3614         @echo this is the am__doit target
3615 .PHONY: am__doit
3616 END
3617 # If we don't find an include directive, just comment out the code.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3619 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3620 am__include="#"
3621 am__quote=
3622 _am_result=none
3623 # First try GNU make style include.
3624 echo "include confinc" > confmf
3625 # Ignore all kinds of additional output from `make'.
3626 case `$am_make -s -f confmf 2> /dev/null` in #(
3627 *the\ am__doit\ target*)
3628   am__include=include
3629   am__quote=
3630   _am_result=GNU
3631   ;;
3632 esac
3633 # Now try BSD make style include.
3634 if test "$am__include" = "#"; then
3635    echo '.include "confinc"' > confmf
3636    case `$am_make -s -f confmf 2> /dev/null` in #(
3637    *the\ am__doit\ target*)
3638      am__include=.include
3639      am__quote="\""
3640      _am_result=BSD
3641      ;;
3642    esac
3643 fi
3644
3645
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3647 $as_echo "$_am_result" >&6; }
3648 rm -f confinc confmf
3649
3650 # Check whether --enable-dependency-tracking was given.
3651 if test "${enable_dependency_tracking+set}" = set; then :
3652   enableval=$enable_dependency_tracking;
3653 fi
3654
3655 if test "x$enable_dependency_tracking" != xno; then
3656   am_depcomp="$ac_aux_dir/depcomp"
3657   AMDEPBACKSLASH='\'
3658 fi
3659  if test "x$enable_dependency_tracking" != xno; then
3660   AMDEP_TRUE=
3661   AMDEP_FALSE='#'
3662 else
3663   AMDEP_TRUE='#'
3664   AMDEP_FALSE=
3665 fi
3666
3667
3668
3669 depcc="$CC"   am_compiler_list=
3670
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3672 $as_echo_n "checking dependency style of $depcc... " >&6; }
3673 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3677   # We make a subdir and do the tests there.  Otherwise we can end up
3678   # making bogus files that we don't know about and never remove.  For
3679   # instance it was reported that on HP-UX the gcc test will end up
3680   # making a dummy file named `D' -- because `-MD' means `put the output
3681   # in D'.
3682   mkdir conftest.dir
3683   # Copy depcomp to subdir because otherwise we won't find it if we're
3684   # using a relative directory.
3685   cp "$am_depcomp" conftest.dir
3686   cd conftest.dir
3687   # We will build objects and dependencies in a subdirectory because
3688   # it helps to detect inapplicable dependency modes.  For instance
3689   # both Tru64's cc and ICC support -MD to output dependencies as a
3690   # side effect of compilation, but ICC will put the dependencies in
3691   # the current directory while Tru64 will put them in the object
3692   # directory.
3693   mkdir sub
3694
3695   am_cv_CC_dependencies_compiler_type=none
3696   if test "$am_compiler_list" = ""; then
3697      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3698   fi
3699   am__universal=false
3700   case " $depcc " in #(
3701      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3702      esac
3703
3704   for depmode in $am_compiler_list; do
3705     # Setup a source with many dependencies, because some compilers
3706     # like to wrap large dependency lists on column 80 (with \), and
3707     # we should not choose a depcomp mode which is confused by this.
3708     #
3709     # We need to recreate these files for each test, as the compiler may
3710     # overwrite some of them when testing with obscure command lines.
3711     # This happens at least with the AIX C compiler.
3712     : > sub/conftest.c
3713     for i in 1 2 3 4 5 6; do
3714       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3715       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3716       # Solaris 8's {/usr,}/bin/sh.
3717       touch sub/conftst$i.h
3718     done
3719     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3720
3721     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3722     # mode.  It turns out that the SunPro C++ compiler does not properly
3723     # handle `-M -o', and we need to detect this.  Also, some Intel
3724     # versions had trouble with output in subdirs
3725     am__obj=sub/conftest.${OBJEXT-o}
3726     am__minus_obj="-o $am__obj"
3727     case $depmode in
3728     gcc)
3729       # This depmode causes a compiler race in universal mode.
3730       test "$am__universal" = false || continue
3731       ;;
3732     nosideeffect)
3733       # after this tag, mechanisms are not by side-effect, so they'll
3734       # only be used when explicitly requested
3735       if test "x$enable_dependency_tracking" = xyes; then
3736         continue
3737       else
3738         break
3739       fi
3740       ;;
3741     msvisualcpp | msvcmsys)
3742       # This compiler won't grok `-c -o', but also, the minuso test has
3743       # not run yet.  These depmodes are late enough in the game, and
3744       # so weak that their functioning should not be impacted.
3745       am__obj=conftest.${OBJEXT-o}
3746       am__minus_obj=
3747       ;;
3748     none) break ;;
3749     esac
3750     if depmode=$depmode \
3751        source=sub/conftest.c object=$am__obj \
3752        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3753        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3754          >/dev/null 2>conftest.err &&
3755        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3756        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3757        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3758        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3759       # icc doesn't choke on unknown options, it will just issue warnings
3760       # or remarks (even with -Werror).  So we grep stderr for any message
3761       # that says an option was ignored or not supported.
3762       # When given -MP, icc 7.0 and 7.1 complain thusly:
3763       #   icc: Command line warning: ignoring option '-M'; no argument required
3764       # The diagnosis changed in icc 8.0:
3765       #   icc: Command line remark: option '-MP' not supported
3766       if (grep 'ignoring option' conftest.err ||
3767           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3768         am_cv_CC_dependencies_compiler_type=$depmode
3769         break
3770       fi
3771     fi
3772   done
3773
3774   cd ..
3775   rm -rf conftest.dir
3776 else
3777   am_cv_CC_dependencies_compiler_type=none
3778 fi
3779
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3782 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3783 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3784
3785  if
3786   test "x$enable_dependency_tracking" != xno \
3787   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3788   am__fastdepCC_TRUE=
3789   am__fastdepCC_FALSE='#'
3790 else
3791   am__fastdepCC_TRUE='#'
3792   am__fastdepCC_FALSE=
3793 fi
3794
3795
3796
3797 ac_c_werror_flag=yes
3798
3799 case `pwd` in
3800   *\ * | *\     *)
3801     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3802 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3803 esac
3804
3805
3806
3807 macro_version='2.2.6'
3808 macro_revision='1.3012'
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822 ltmain="$ac_aux_dir/ltmain.sh"
3823
3824 # Make sure we can run config.sub.
3825 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3826   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3827
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3829 $as_echo_n "checking build system type... " >&6; }
3830 if test "${ac_cv_build+set}" = set; then :
3831   $as_echo_n "(cached) " >&6
3832 else
3833   ac_build_alias=$build_alias
3834 test "x$ac_build_alias" = x &&
3835   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3836 test "x$ac_build_alias" = x &&
3837   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3838 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3839   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3840
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3843 $as_echo "$ac_cv_build" >&6; }
3844 case $ac_cv_build in
3845 *-*-*) ;;
3846 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3847 esac
3848 build=$ac_cv_build
3849 ac_save_IFS=$IFS; IFS='-'
3850 set x $ac_cv_build
3851 shift
3852 build_cpu=$1
3853 build_vendor=$2
3854 shift; shift
3855 # Remember, the first character of IFS is used to create $*,
3856 # except with old shells:
3857 build_os=$*
3858 IFS=$ac_save_IFS
3859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3860
3861
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3863 $as_echo_n "checking host system type... " >&6; }
3864 if test "${ac_cv_host+set}" = set; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   if test "x$host_alias" = x; then
3868   ac_cv_host=$ac_cv_build
3869 else
3870   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3871     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3872 fi
3873
3874 fi
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3876 $as_echo "$ac_cv_host" >&6; }
3877 case $ac_cv_host in
3878 *-*-*) ;;
3879 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3880 esac
3881 host=$ac_cv_host
3882 ac_save_IFS=$IFS; IFS='-'
3883 set x $ac_cv_host
3884 shift
3885 host_cpu=$1
3886 host_vendor=$2
3887 shift; shift
3888 # Remember, the first character of IFS is used to create $*,
3889 # except with old shells:
3890 host_os=$*
3891 IFS=$ac_save_IFS
3892 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3893
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3896 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3897 if test "${ac_cv_path_SED+set}" = set; then :
3898   $as_echo_n "(cached) " >&6
3899 else
3900             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3901      for ac_i in 1 2 3 4 5 6 7; do
3902        ac_script="$ac_script$as_nl$ac_script"
3903      done
3904      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3905      { ac_script=; unset ac_script;}
3906      if test -z "$SED"; then
3907   ac_path_SED_found=false
3908   # Loop through the user's path and test for each of PROGNAME-LIST
3909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914     for ac_prog in sed gsed; do
3915     for ac_exec_ext in '' $ac_executable_extensions; do
3916       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3917       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3918 # Check for GNU ac_path_SED and select it if it is found.
3919   # Check for GNU $ac_path_SED
3920 case `"$ac_path_SED" --version 2>&1` in
3921 *GNU*)
3922   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3923 *)
3924   ac_count=0
3925   $as_echo_n 0123456789 >"conftest.in"
3926   while :
3927   do
3928     cat "conftest.in" "conftest.in" >"conftest.tmp"
3929     mv "conftest.tmp" "conftest.in"
3930     cp "conftest.in" "conftest.nl"
3931     $as_echo '' >> "conftest.nl"
3932     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934     as_fn_arith $ac_count + 1 && ac_count=$as_val
3935     if test $ac_count -gt ${ac_path_SED_max-0}; then
3936       # Best one so far, save it but keep looking for a better one
3937       ac_cv_path_SED="$ac_path_SED"
3938       ac_path_SED_max=$ac_count
3939     fi
3940     # 10*(2^10) chars as input seems more than enough
3941     test $ac_count -gt 10 && break
3942   done
3943   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944 esac
3945
3946       $ac_path_SED_found && break 3
3947     done
3948   done
3949   done
3950 IFS=$as_save_IFS
3951   if test -z "$ac_cv_path_SED"; then
3952     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3953   fi
3954 else
3955   ac_cv_path_SED=$SED
3956 fi
3957
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3960 $as_echo "$ac_cv_path_SED" >&6; }
3961  SED="$ac_cv_path_SED"
3962   rm -f conftest.sed
3963
3964 test -z "$SED" && SED=sed
3965 Xsed="$SED -e 1s/^X//"
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3979 if test "${ac_cv_path_GREP+set}" = set; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   if test -z "$GREP"; then
3983   ac_path_GREP_found=false
3984   # Loop through the user's path and test for each of PROGNAME-LIST
3985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990     for ac_prog in grep ggrep; do
3991     for ac_exec_ext in '' $ac_executable_extensions; do
3992       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994 # Check for GNU ac_path_GREP and select it if it is found.
3995   # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3997 *GNU*)
3998   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3999 *)
4000   ac_count=0
4001   $as_echo_n 0123456789 >"conftest.in"
4002   while :
4003   do
4004     cat "conftest.in" "conftest.in" >"conftest.tmp"
4005     mv "conftest.tmp" "conftest.in"
4006     cp "conftest.in" "conftest.nl"
4007     $as_echo 'GREP' >> "conftest.nl"
4008     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010     as_fn_arith $ac_count + 1 && ac_count=$as_val
4011     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012       # Best one so far, save it but keep looking for a better one
4013       ac_cv_path_GREP="$ac_path_GREP"
4014       ac_path_GREP_max=$ac_count
4015     fi
4016     # 10*(2^10) chars as input seems more than enough
4017     test $ac_count -gt 10 && break
4018   done
4019   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4021
4022       $ac_path_GREP_found && break 3
4023     done
4024   done
4025   done
4026 IFS=$as_save_IFS
4027   if test -z "$ac_cv_path_GREP"; then
4028     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4029   fi
4030 else
4031   ac_cv_path_GREP=$GREP
4032 fi
4033
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4036 $as_echo "$ac_cv_path_GREP" >&6; }
4037  GREP="$ac_cv_path_GREP"
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4041 $as_echo_n "checking for egrep... " >&6; }
4042 if test "${ac_cv_path_EGREP+set}" = set; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046    then ac_cv_path_EGREP="$GREP -E"
4047    else
4048      if test -z "$EGREP"; then
4049   ac_path_EGREP_found=false
4050   # Loop through the user's path and test for each of PROGNAME-LIST
4051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056     for ac_prog in egrep; do
4057     for ac_exec_ext in '' $ac_executable_extensions; do
4058       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4059       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4060 # Check for GNU ac_path_EGREP and select it if it is found.
4061   # Check for GNU $ac_path_EGREP
4062 case `"$ac_path_EGREP" --version 2>&1` in
4063 *GNU*)
4064   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4065 *)
4066   ac_count=0
4067   $as_echo_n 0123456789 >"conftest.in"
4068   while :
4069   do
4070     cat "conftest.in" "conftest.in" >"conftest.tmp"
4071     mv "conftest.tmp" "conftest.in"
4072     cp "conftest.in" "conftest.nl"
4073     $as_echo 'EGREP' >> "conftest.nl"
4074     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076     as_fn_arith $ac_count + 1 && ac_count=$as_val
4077     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4078       # Best one so far, save it but keep looking for a better one
4079       ac_cv_path_EGREP="$ac_path_EGREP"
4080       ac_path_EGREP_max=$ac_count
4081     fi
4082     # 10*(2^10) chars as input seems more than enough
4083     test $ac_count -gt 10 && break
4084   done
4085   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4086 esac
4087
4088       $ac_path_EGREP_found && break 3
4089     done
4090   done
4091   done
4092 IFS=$as_save_IFS
4093   if test -z "$ac_cv_path_EGREP"; then
4094     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4095   fi
4096 else
4097   ac_cv_path_EGREP=$EGREP
4098 fi
4099
4100    fi
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4103 $as_echo "$ac_cv_path_EGREP" >&6; }
4104  EGREP="$ac_cv_path_EGREP"
4105
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4108 $as_echo_n "checking for fgrep... " >&6; }
4109 if test "${ac_cv_path_FGREP+set}" = set; then :
4110   $as_echo_n "(cached) " >&6
4111 else
4112   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4113    then ac_cv_path_FGREP="$GREP -F"
4114    else
4115      if test -z "$FGREP"; then
4116   ac_path_FGREP_found=false
4117   # Loop through the user's path and test for each of PROGNAME-LIST
4118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120 do
4121   IFS=$as_save_IFS
4122   test -z "$as_dir" && as_dir=.
4123     for ac_prog in fgrep; do
4124     for ac_exec_ext in '' $ac_executable_extensions; do
4125       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4126       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4127 # Check for GNU ac_path_FGREP and select it if it is found.
4128   # Check for GNU $ac_path_FGREP
4129 case `"$ac_path_FGREP" --version 2>&1` in
4130 *GNU*)
4131   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4132 *)
4133   ac_count=0
4134   $as_echo_n 0123456789 >"conftest.in"
4135   while :
4136   do
4137     cat "conftest.in" "conftest.in" >"conftest.tmp"
4138     mv "conftest.tmp" "conftest.in"
4139     cp "conftest.in" "conftest.nl"
4140     $as_echo 'FGREP' >> "conftest.nl"
4141     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143     as_fn_arith $ac_count + 1 && ac_count=$as_val
4144     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4145       # Best one so far, save it but keep looking for a better one
4146       ac_cv_path_FGREP="$ac_path_FGREP"
4147       ac_path_FGREP_max=$ac_count
4148     fi
4149     # 10*(2^10) chars as input seems more than enough
4150     test $ac_count -gt 10 && break
4151   done
4152   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153 esac
4154
4155       $ac_path_FGREP_found && break 3
4156     done
4157   done
4158   done
4159 IFS=$as_save_IFS
4160   if test -z "$ac_cv_path_FGREP"; then
4161     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162   fi
4163 else
4164   ac_cv_path_FGREP=$FGREP
4165 fi
4166
4167    fi
4168 fi
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4170 $as_echo "$ac_cv_path_FGREP" >&6; }
4171  FGREP="$ac_cv_path_FGREP"
4172
4173
4174 test -z "$GREP" && GREP=grep
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194 # Check whether --with-gnu-ld was given.
4195 if test "${with_gnu_ld+set}" = set; then :
4196   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4197 else
4198   with_gnu_ld=no
4199 fi
4200
4201 ac_prog=ld
4202 if test "$GCC" = yes; then
4203   # Check if gcc -print-prog-name=ld gives a path.
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4205 $as_echo_n "checking for ld used by $CC... " >&6; }
4206   case $host in
4207   *-*-mingw*)
4208     # gcc leaves a trailing carriage return which upsets mingw
4209     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4210   *)
4211     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4212   esac
4213   case $ac_prog in
4214     # Accept absolute paths.
4215     [\\/]* | ?:[\\/]*)
4216       re_direlt='/[^/][^/]*/\.\./'
4217       # Canonicalize the pathname of ld
4218       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4219       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4220         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4221       done
4222       test -z "$LD" && LD="$ac_prog"
4223       ;;
4224   "")
4225     # If it fails, then pretend we aren't using GCC.
4226     ac_prog=ld
4227     ;;
4228   *)
4229     # If it is relative, then search for the first ld in PATH.
4230     with_gnu_ld=unknown
4231     ;;
4232   esac
4233 elif test "$with_gnu_ld" = yes; then
4234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4235 $as_echo_n "checking for GNU ld... " >&6; }
4236 else
4237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4238 $as_echo_n "checking for non-GNU ld... " >&6; }
4239 fi
4240 if test "${lt_cv_path_LD+set}" = set; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   if test -z "$LD"; then
4244   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4245   for ac_dir in $PATH; do
4246     IFS="$lt_save_ifs"
4247     test -z "$ac_dir" && ac_dir=.
4248     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4249       lt_cv_path_LD="$ac_dir/$ac_prog"
4250       # Check to see if the program is GNU ld.  I'd rather use --version,
4251       # but apparently some variants of GNU ld only accept -v.
4252       # Break only if it was the GNU/non-GNU ld that we prefer.
4253       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4254       *GNU* | *'with BFD'*)
4255         test "$with_gnu_ld" != no && break
4256         ;;
4257       *)
4258         test "$with_gnu_ld" != yes && break
4259         ;;
4260       esac
4261     fi
4262   done
4263   IFS="$lt_save_ifs"
4264 else
4265   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4266 fi
4267 fi
4268
4269 LD="$lt_cv_path_LD"
4270 if test -n "$LD"; then
4271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4272 $as_echo "$LD" >&6; }
4273 else
4274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4279 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4280 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4284 case `$LD -v 2>&1 </dev/null` in
4285 *GNU* | *'with BFD'*)
4286   lt_cv_prog_gnu_ld=yes
4287   ;;
4288 *)
4289   lt_cv_prog_gnu_ld=no
4290   ;;
4291 esac
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4294 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4295 with_gnu_ld=$lt_cv_prog_gnu_ld
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4306 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4307 if test "${lt_cv_path_NM+set}" = set; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   if test -n "$NM"; then
4311   # Let the user override the test.
4312   lt_cv_path_NM="$NM"
4313 else
4314   lt_nm_to_check="${ac_tool_prefix}nm"
4315   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4316     lt_nm_to_check="$lt_nm_to_check nm"
4317   fi
4318   for lt_tmp_nm in $lt_nm_to_check; do
4319     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4320     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4321       IFS="$lt_save_ifs"
4322       test -z "$ac_dir" && ac_dir=.
4323       tmp_nm="$ac_dir/$lt_tmp_nm"
4324       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4325         # Check to see if the nm accepts a BSD-compat flag.
4326         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4327         #   nm: unknown option "B" ignored
4328         # Tru64's nm complains that /dev/null is an invalid object file
4329         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4330         */dev/null* | *'Invalid file or object type'*)
4331           lt_cv_path_NM="$tmp_nm -B"
4332           break
4333           ;;
4334         *)
4335           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4336           */dev/null*)
4337             lt_cv_path_NM="$tmp_nm -p"
4338             break
4339             ;;
4340           *)
4341             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4342             continue # so that we can try to find one that supports BSD flags
4343             ;;
4344           esac
4345           ;;
4346         esac
4347       fi
4348     done
4349     IFS="$lt_save_ifs"
4350   done
4351   : ${lt_cv_path_NM=no}
4352 fi
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4355 $as_echo "$lt_cv_path_NM" >&6; }
4356 if test "$lt_cv_path_NM" != "no"; then
4357   NM="$lt_cv_path_NM"
4358 else
4359   # Didn't find any BSD compatible name lister, look for dumpbin.
4360   if test -n "$ac_tool_prefix"; then
4361   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4362   do
4363     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4368   $as_echo_n "(cached) " >&6
4369 else
4370   if test -n "$DUMPBIN"; then
4371   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378     for ac_exec_ext in '' $ac_executable_extensions; do
4379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385   done
4386 IFS=$as_save_IFS
4387
4388 fi
4389 fi
4390 DUMPBIN=$ac_cv_prog_DUMPBIN
4391 if test -n "$DUMPBIN"; then
4392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4393 $as_echo "$DUMPBIN" >&6; }
4394 else
4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4397 fi
4398
4399
4400     test -n "$DUMPBIN" && break
4401   done
4402 fi
4403 if test -z "$DUMPBIN"; then
4404   ac_ct_DUMPBIN=$DUMPBIN
4405   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4406 do
4407   # Extract the first word of "$ac_prog", so it can be a program name with args.
4408 set dummy $ac_prog; ac_word=$2
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 $as_echo_n "checking for $ac_word... " >&6; }
4411 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4412   $as_echo_n "(cached) " >&6
4413 else
4414   if test -n "$ac_ct_DUMPBIN"; then
4415   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422     for ac_exec_ext in '' $ac_executable_extensions; do
4423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429   done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4435 if test -n "$ac_ct_DUMPBIN"; then
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4437 $as_echo "$ac_ct_DUMPBIN" >&6; }
4438 else
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442
4443
4444   test -n "$ac_ct_DUMPBIN" && break
4445 done
4446
4447   if test "x$ac_ct_DUMPBIN" = x; then
4448     DUMPBIN=":"
4449   else
4450     case $cross_compiling:$ac_tool_warned in
4451 yes:)
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4454 ac_tool_warned=yes ;;
4455 esac
4456     DUMPBIN=$ac_ct_DUMPBIN
4457   fi
4458 fi
4459
4460
4461   if test "$DUMPBIN" != ":"; then
4462     NM="$DUMPBIN"
4463   fi
4464 fi
4465 test -z "$NM" && NM=nm
4466
4467
4468
4469
4470
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4473 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4474 if test "${lt_cv_nm_interface+set}" = set; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   lt_cv_nm_interface="BSD nm"
4478   echo "int some_variable = 0;" > conftest.$ac_ext
4479   (eval echo "\"\$as_me:4479: $ac_compile\"" >&5)
4480   (eval "$ac_compile" 2>conftest.err)
4481   cat conftest.err >&5
4482   (eval echo "\"\$as_me:4482: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4483   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4484   cat conftest.err >&5
4485   (eval echo "\"\$as_me:4485: output\"" >&5)
4486   cat conftest.out >&5
4487   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4488     lt_cv_nm_interface="MS dumpbin"
4489   fi
4490   rm -f conftest*
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4493 $as_echo "$lt_cv_nm_interface" >&6; }
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4496 $as_echo_n "checking whether ln -s works... " >&6; }
4497 LN_S=$as_ln_s
4498 if test "$LN_S" = "ln -s"; then
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4500 $as_echo "yes" >&6; }
4501 else
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4503 $as_echo "no, using $LN_S" >&6; }
4504 fi
4505
4506 # find the maximum length of command line arguments
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4508 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4509 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512     i=0
4513   teststring="ABCD"
4514
4515   case $build_os in
4516   msdosdjgpp*)
4517     # On DJGPP, this test can blow up pretty badly due to problems in libc
4518     # (any single argument exceeding 2000 bytes causes a buffer overrun
4519     # during glob expansion).  Even if it were fixed, the result of this
4520     # check would be larger than it should be.
4521     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4522     ;;
4523
4524   gnu*)
4525     # Under GNU Hurd, this test is not required because there is
4526     # no limit to the length of command line arguments.
4527     # Libtool will interpret -1 as no limit whatsoever
4528     lt_cv_sys_max_cmd_len=-1;
4529     ;;
4530
4531   cygwin* | mingw* | cegcc*)
4532     # On Win9x/ME, this test blows up -- it succeeds, but takes
4533     # about 5 minutes as the teststring grows exponentially.
4534     # Worse, since 9x/ME are not pre-emptively multitasking,
4535     # you end up with a "frozen" computer, even though with patience
4536     # the test eventually succeeds (with a max line length of 256k).
4537     # Instead, let's just punt: use the minimum linelength reported by
4538     # all of the supported platforms: 8192 (on NT/2K/XP).
4539     lt_cv_sys_max_cmd_len=8192;
4540     ;;
4541
4542   amigaos*)
4543     # On AmigaOS with pdksh, this test takes hours, literally.
4544     # So we just punt and use a minimum line length of 8192.
4545     lt_cv_sys_max_cmd_len=8192;
4546     ;;
4547
4548   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4549     # This has been around since 386BSD, at least.  Likely further.
4550     if test -x /sbin/sysctl; then
4551       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4552     elif test -x /usr/sbin/sysctl; then
4553       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4554     else
4555       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4556     fi
4557     # And add a safety zone
4558     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4559     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4560     ;;
4561
4562   interix*)
4563     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4564     lt_cv_sys_max_cmd_len=196608
4565     ;;
4566
4567   osf*)
4568     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4569     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4570     # nice to cause kernel panics so lets avoid the loop below.
4571     # First set a reasonable default.
4572     lt_cv_sys_max_cmd_len=16384
4573     #
4574     if test -x /sbin/sysconfig; then
4575       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4576         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4577       esac
4578     fi
4579     ;;
4580   sco3.2v5*)
4581     lt_cv_sys_max_cmd_len=102400
4582     ;;
4583   sysv5* | sco5v6* | sysv4.2uw2*)
4584     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4585     if test -n "$kargmax"; then
4586       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4587     else
4588       lt_cv_sys_max_cmd_len=32768
4589     fi
4590     ;;
4591   *)
4592     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4593     if test -n "$lt_cv_sys_max_cmd_len"; then
4594       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4596     else
4597       # Make teststring a little bigger before we do anything with it.
4598       # a 1K string should be a reasonable start.
4599       for i in 1 2 3 4 5 6 7 8 ; do
4600         teststring=$teststring$teststring
4601       done
4602       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4603       # If test is not a shell built-in, we'll probably end up computing a
4604       # maximum length that is only half of the actual maximum length, but
4605       # we can't tell.
4606       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4607                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4608               test $i != 17 # 1/2 MB should be enough
4609       do
4610         i=`expr $i + 1`
4611         teststring=$teststring$teststring
4612       done
4613       # Only check the string length outside the loop.
4614       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4615       teststring=
4616       # Add a significant safety factor because C++ compilers can tack on
4617       # massive amounts of additional arguments before passing them to the
4618       # linker.  It appears as though 1/2 is a usable value.
4619       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4620     fi
4621     ;;
4622   esac
4623
4624 fi
4625
4626 if test -n $lt_cv_sys_max_cmd_len ; then
4627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4629 else
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4631 $as_echo "none" >&6; }
4632 fi
4633 max_cmd_len=$lt_cv_sys_max_cmd_len
4634
4635
4636
4637
4638
4639
4640 : ${CP="cp -f"}
4641 : ${MV="mv -f"}
4642 : ${RM="rm -f"}
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4645 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4646 # Try some XSI features
4647 xsi_shell=no
4648 ( _lt_dummy="a/b/c"
4649   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4650       = c,a/b,, \
4651     && eval 'test $(( 1 + 1 )) -eq 2 \
4652     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4653   && xsi_shell=yes
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4655 $as_echo "$xsi_shell" >&6; }
4656
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4659 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4660 lt_shell_append=no
4661 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4662     >/dev/null 2>&1 \
4663   && lt_shell_append=yes
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4665 $as_echo "$lt_shell_append" >&6; }
4666
4667
4668 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4669   lt_unset=unset
4670 else
4671   lt_unset=false
4672 fi
4673
4674
4675
4676
4677
4678 # test EBCDIC or ASCII
4679 case `echo X|tr X '\101'` in
4680  A) # ASCII based system
4681     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4682   lt_SP2NL='tr \040 \012'
4683   lt_NL2SP='tr \015\012 \040\040'
4684   ;;
4685  *) # EBCDIC based system
4686   lt_SP2NL='tr \100 \n'
4687   lt_NL2SP='tr \r\n \100\100'
4688   ;;
4689 esac
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4700 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4701 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   lt_cv_ld_reload_flag='-r'
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4707 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4708 reload_flag=$lt_cv_ld_reload_flag
4709 case $reload_flag in
4710 "" | " "*) ;;
4711 *) reload_flag=" $reload_flag" ;;
4712 esac
4713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4714 case $host_os in
4715   darwin*)
4716     if test "$GCC" = yes; then
4717       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4718     else
4719       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4720     fi
4721     ;;
4722 esac
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732 if test -n "$ac_tool_prefix"; then
4733   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4734 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   if test -n "$OBJDUMP"; then
4741   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748     for ac_exec_ext in '' $ac_executable_extensions; do
4749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755   done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
4760 OBJDUMP=$ac_cv_prog_OBJDUMP
4761 if test -n "$OBJDUMP"; then
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4763 $as_echo "$OBJDUMP" >&6; }
4764 else
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769
4770 fi
4771 if test -z "$ac_cv_prog_OBJDUMP"; then
4772   ac_ct_OBJDUMP=$OBJDUMP
4773   # Extract the first word of "objdump", so it can be a program name with args.
4774 set dummy objdump; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4778   $as_echo_n "(cached) " >&6
4779 else
4780   if test -n "$ac_ct_OBJDUMP"; then
4781   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788     for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795   done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4801 if test -n "$ac_ct_OBJDUMP"; then
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4803 $as_echo "$ac_ct_OBJDUMP" >&6; }
4804 else
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809   if test "x$ac_ct_OBJDUMP" = x; then
4810     OBJDUMP="false"
4811   else
4812     case $cross_compiling:$ac_tool_warned in
4813 yes:)
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4816 ac_tool_warned=yes ;;
4817 esac
4818     OBJDUMP=$ac_ct_OBJDUMP
4819   fi
4820 else
4821   OBJDUMP="$ac_cv_prog_OBJDUMP"
4822 fi
4823
4824 test -z "$OBJDUMP" && OBJDUMP=objdump
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4835 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4836 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839   lt_cv_file_magic_cmd='$MAGIC_CMD'
4840 lt_cv_file_magic_test_file=
4841 lt_cv_deplibs_check_method='unknown'
4842 # Need to set the preceding variable on all platforms that support
4843 # interlibrary dependencies.
4844 # 'none' -- dependencies not supported.
4845 # `unknown' -- same as none, but documents that we really don't know.
4846 # 'pass_all' -- all dependencies passed with no checks.
4847 # 'test_compile' -- check by making test program.
4848 # 'file_magic [[regex]]' -- check by looking for files in library path
4849 # which responds to the $file_magic_cmd with a given extended regex.
4850 # If you have `file' or equivalent on your system and you're not sure
4851 # whether `pass_all' will *always* work, you probably want this one.
4852
4853 case $host_os in
4854 aix[4-9]*)
4855   lt_cv_deplibs_check_method=pass_all
4856   ;;
4857
4858 beos*)
4859   lt_cv_deplibs_check_method=pass_all
4860   ;;
4861
4862 bsdi[45]*)
4863   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4864   lt_cv_file_magic_cmd='/usr/bin/file -L'
4865   lt_cv_file_magic_test_file=/shlib/libc.so
4866   ;;
4867
4868 cygwin*)
4869   # func_win32_libid is a shell function defined in ltmain.sh
4870   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4871   lt_cv_file_magic_cmd='func_win32_libid'
4872   ;;
4873
4874 mingw* | pw32*)
4875   # Base MSYS/MinGW do not provide the 'file' command needed by
4876   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4877   # unless we find 'file', for example because we are cross-compiling.
4878   if ( file / ) >/dev/null 2>&1; then
4879     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4880     lt_cv_file_magic_cmd='func_win32_libid'
4881   else
4882     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4883     lt_cv_file_magic_cmd='$OBJDUMP -f'
4884   fi
4885   ;;
4886
4887 cegcc)
4888   # use the weaker test based on 'objdump'. See mingw*.
4889   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4890   lt_cv_file_magic_cmd='$OBJDUMP -f'
4891   ;;
4892
4893 darwin* | rhapsody*)
4894   lt_cv_deplibs_check_method=pass_all
4895   ;;
4896
4897 freebsd* | dragonfly*)
4898   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4899     case $host_cpu in
4900     i*86 )
4901       # Not sure whether the presence of OpenBSD here was a mistake.
4902       # Let's accept both of them until this is cleared up.
4903       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4904       lt_cv_file_magic_cmd=/usr/bin/file
4905       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4906       ;;
4907     esac
4908   else
4909     lt_cv_deplibs_check_method=pass_all
4910   fi
4911   ;;
4912
4913 gnu*)
4914   lt_cv_deplibs_check_method=pass_all
4915   ;;
4916
4917 hpux10.20* | hpux11*)
4918   lt_cv_file_magic_cmd=/usr/bin/file
4919   case $host_cpu in
4920   ia64*)
4921     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4922     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4923     ;;
4924   hppa*64*)
4925     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4926     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4927     ;;
4928   *)
4929     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4930     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4931     ;;
4932   esac
4933   ;;
4934
4935 interix[3-9]*)
4936   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4937   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4938   ;;
4939
4940 irix5* | irix6* | nonstopux*)
4941   case $LD in
4942   *-32|*"-32 ") libmagic=32-bit;;
4943   *-n32|*"-n32 ") libmagic=N32;;
4944   *-64|*"-64 ") libmagic=64-bit;;
4945   *) libmagic=never-match;;
4946   esac
4947   lt_cv_deplibs_check_method=pass_all
4948   ;;
4949
4950 # This must be Linux ELF.
4951 linux* | k*bsd*-gnu)
4952   lt_cv_deplibs_check_method=pass_all
4953   ;;
4954
4955 netbsd* | netbsdelf*-gnu)
4956   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4957     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4958   else
4959     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4960   fi
4961   ;;
4962
4963 newos6*)
4964   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4965   lt_cv_file_magic_cmd=/usr/bin/file
4966   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4967   ;;
4968
4969 *nto* | *qnx*)
4970   lt_cv_deplibs_check_method=pass_all
4971   ;;
4972
4973 openbsd*)
4974   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4975     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4976   else
4977     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4978   fi
4979   ;;
4980
4981 osf3* | osf4* | osf5*)
4982   lt_cv_deplibs_check_method=pass_all
4983   ;;
4984
4985 rdos*)
4986   lt_cv_deplibs_check_method=pass_all
4987   ;;
4988
4989 solaris*)
4990   lt_cv_deplibs_check_method=pass_all
4991   ;;
4992
4993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4994   lt_cv_deplibs_check_method=pass_all
4995   ;;
4996
4997 sysv4 | sysv4.3*)
4998   case $host_vendor in
4999   motorola)
5000     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]'
5001     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5002     ;;
5003   ncr)
5004     lt_cv_deplibs_check_method=pass_all
5005     ;;
5006   sequent)
5007     lt_cv_file_magic_cmd='/bin/file'
5008     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5009     ;;
5010   sni)
5011     lt_cv_file_magic_cmd='/bin/file'
5012     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5013     lt_cv_file_magic_test_file=/lib/libc.so
5014     ;;
5015   siemens)
5016     lt_cv_deplibs_check_method=pass_all
5017     ;;
5018   pc)
5019     lt_cv_deplibs_check_method=pass_all
5020     ;;
5021   esac
5022   ;;
5023
5024 tpf*)
5025   lt_cv_deplibs_check_method=pass_all
5026   ;;
5027 esac
5028
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5031 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5032 file_magic_cmd=$lt_cv_file_magic_cmd
5033 deplibs_check_method=$lt_cv_deplibs_check_method
5034 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047 if test -n "$ac_tool_prefix"; then
5048   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5049 set dummy ${ac_tool_prefix}ar; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if test "${ac_cv_prog_AR+set}" = set; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   if test -n "$AR"; then
5056   ac_cv_prog_AR="$AR" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061   IFS=$as_save_IFS
5062   test -z "$as_dir" && as_dir=.
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065     ac_cv_prog_AR="${ac_tool_prefix}ar"
5066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067     break 2
5068   fi
5069 done
5070   done
5071 IFS=$as_save_IFS
5072
5073 fi
5074 fi
5075 AR=$ac_cv_prog_AR
5076 if test -n "$AR"; then
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5078 $as_echo "$AR" >&6; }
5079 else
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083
5084
5085 fi
5086 if test -z "$ac_cv_prog_AR"; then
5087   ac_ct_AR=$AR
5088   # Extract the first word of "ar", so it can be a program name with args.
5089 set dummy ar; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   if test -n "$ac_ct_AR"; then
5096   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   test -z "$as_dir" && as_dir=.
5103     for ac_exec_ext in '' $ac_executable_extensions; do
5104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105     ac_cv_prog_ac_ct_AR="ar"
5106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108   fi
5109 done
5110   done
5111 IFS=$as_save_IFS
5112
5113 fi
5114 fi
5115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5116 if test -n "$ac_ct_AR"; then
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5118 $as_echo "$ac_ct_AR" >&6; }
5119 else
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123
5124   if test "x$ac_ct_AR" = x; then
5125     AR="false"
5126   else
5127     case $cross_compiling:$ac_tool_warned in
5128 yes:)
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5132 esac
5133     AR=$ac_ct_AR
5134   fi
5135 else
5136   AR="$ac_cv_prog_AR"
5137 fi
5138
5139 test -z "$AR" && AR=ar
5140 test -z "$AR_FLAGS" && AR_FLAGS=cru
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 if test -n "$ac_tool_prefix"; then
5153   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}strip; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if test "${ac_cv_prog_STRIP+set}" = set; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   if test -n "$STRIP"; then
5161   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168     for ac_exec_ext in '' $ac_executable_extensions; do
5169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175   done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 STRIP=$ac_cv_prog_STRIP
5181 if test -n "$STRIP"; then
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5183 $as_echo "$STRIP" >&6; }
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189
5190 fi
5191 if test -z "$ac_cv_prog_STRIP"; then
5192   ac_ct_STRIP=$STRIP
5193   # Extract the first word of "strip", so it can be a program name with args.
5194 set dummy strip; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   if test -n "$ac_ct_STRIP"; then
5201   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210     ac_cv_prog_ac_ct_STRIP="strip"
5211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215   done
5216 IFS=$as_save_IFS
5217
5218 fi
5219 fi
5220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5221 if test -n "$ac_ct_STRIP"; then
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5223 $as_echo "$ac_ct_STRIP" >&6; }
5224 else
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229   if test "x$ac_ct_STRIP" = x; then
5230     STRIP=":"
5231   else
5232     case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5237 esac
5238     STRIP=$ac_ct_STRIP
5239   fi
5240 else
5241   STRIP="$ac_cv_prog_STRIP"
5242 fi
5243
5244 test -z "$STRIP" && STRIP=:
5245
5246
5247
5248
5249
5250
5251 if test -n "$ac_tool_prefix"; then
5252   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   if test -n "$RANLIB"; then
5260   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265   IFS=$as_save_IFS
5266   test -z "$as_dir" && as_dir=.
5267     for ac_exec_ext in '' $ac_executable_extensions; do
5268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271     break 2
5272   fi
5273 done
5274   done
5275 IFS=$as_save_IFS
5276
5277 fi
5278 fi
5279 RANLIB=$ac_cv_prog_RANLIB
5280 if test -n "$RANLIB"; then
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5282 $as_echo "$RANLIB" >&6; }
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287
5288
5289 fi
5290 if test -z "$ac_cv_prog_RANLIB"; then
5291   ac_ct_RANLIB=$RANLIB
5292   # Extract the first word of "ranlib", so it can be a program name with args.
5293 set dummy ranlib; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   if test -n "$ac_ct_RANLIB"; then
5300   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305   IFS=$as_save_IFS
5306   test -z "$as_dir" && as_dir=.
5307     for ac_exec_ext in '' $ac_executable_extensions; do
5308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309     ac_cv_prog_ac_ct_RANLIB="ranlib"
5310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311     break 2
5312   fi
5313 done
5314   done
5315 IFS=$as_save_IFS
5316
5317 fi
5318 fi
5319 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5320 if test -n "$ac_ct_RANLIB"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5322 $as_echo "$ac_ct_RANLIB" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328   if test "x$ac_ct_RANLIB" = x; then
5329     RANLIB=":"
5330   else
5331     case $cross_compiling:$ac_tool_warned in
5332 yes:)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335 ac_tool_warned=yes ;;
5336 esac
5337     RANLIB=$ac_ct_RANLIB
5338   fi
5339 else
5340   RANLIB="$ac_cv_prog_RANLIB"
5341 fi
5342
5343 test -z "$RANLIB" && RANLIB=:
5344
5345
5346
5347
5348
5349
5350 # Determine commands to create old-style static archives.
5351 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5352 old_postinstall_cmds='chmod 644 $oldlib'
5353 old_postuninstall_cmds=
5354
5355 if test -n "$RANLIB"; then
5356   case $host_os in
5357   openbsd*)
5358     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5359     ;;
5360   *)
5361     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5362     ;;
5363   esac
5364   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5365 fi
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 # If no C compiler was specified, use CC.
5401 LTCC=${LTCC-"$CC"}
5402
5403 # If no C compiler flags were specified, use CFLAGS.
5404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5405
5406 # Allow CC to be a program name with arguments.
5407 compiler=$CC
5408
5409
5410 # Check for command to grab the raw symbol name followed by C symbol from nm.
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5412 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5413 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416
5417 # These are sane defaults that work on at least a few old systems.
5418 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5419
5420 # Character class describing NM global symbol codes.
5421 symcode='[BCDEGRST]'
5422
5423 # Regexp to match symbols that can be accessed directly from C.
5424 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5425
5426 # Define system-specific variables.
5427 case $host_os in
5428 aix*)
5429   symcode='[BCDT]'
5430   ;;
5431 cygwin* | mingw* | pw32* | cegcc*)
5432   symcode='[ABCDGISTW]'
5433   ;;
5434 hpux*)
5435   if test "$host_cpu" = ia64; then
5436     symcode='[ABCDEGRST]'
5437   fi
5438   ;;
5439 irix* | nonstopux*)
5440   symcode='[BCDEGRST]'
5441   ;;
5442 osf*)
5443   symcode='[BCDEGQRST]'
5444   ;;
5445 solaris*)
5446   symcode='[BDRT]'
5447   ;;
5448 sco3.2v5*)
5449   symcode='[DT]'
5450   ;;
5451 sysv4.2uw2*)
5452   symcode='[DT]'
5453   ;;
5454 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5455   symcode='[ABDT]'
5456   ;;
5457 sysv4)
5458   symcode='[DFNSTU]'
5459   ;;
5460 esac
5461
5462 # If we're using GNU nm, then use its standard symbol codes.
5463 case `$NM -V 2>&1` in
5464 *GNU* | *'with BFD'*)
5465   symcode='[ABCDGIRSTW]' ;;
5466 esac
5467
5468 # Transform an extracted symbol line into a proper C declaration.
5469 # Some systems (esp. on ia64) link data and code symbols differently,
5470 # so use this general approach.
5471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5472
5473 # Transform an extracted symbol line into symbol name and symbol address
5474 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5475 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'"
5476
5477 # Handle CRLF in mingw tool chain
5478 opt_cr=
5479 case $build_os in
5480 mingw*)
5481   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5482   ;;
5483 esac
5484
5485 # Try without a prefix underscore, then with it.
5486 for ac_symprfx in "" "_"; do
5487
5488   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5489   symxfrm="\\1 $ac_symprfx\\2 \\2"
5490
5491   # Write the raw and C identifiers.
5492   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5493     # Fake it for dumpbin and say T for any non-static function
5494     # and D for any global variable.
5495     # Also find C++ and __fastcall symbols from MSVC++,
5496     # which start with @ or ?.
5497     lt_cv_sys_global_symbol_pipe="$AWK '"\
5498 "     {last_section=section; section=\$ 3};"\
5499 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5500 "     \$ 0!~/External *\|/{next};"\
5501 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5502 "     {if(hide[section]) next};"\
5503 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5504 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5505 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5506 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5507 "     ' prfx=^$ac_symprfx"
5508   else
5509     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5510   fi
5511
5512   # Check to see that the pipe works correctly.
5513   pipe_works=no
5514
5515   rm -f conftest*
5516   cat > conftest.$ac_ext <<_LT_EOF
5517 #ifdef __cplusplus
5518 extern "C" {
5519 #endif
5520 char nm_test_var;
5521 void nm_test_func(void);
5522 void nm_test_func(void){}
5523 #ifdef __cplusplus
5524 }
5525 #endif
5526 int main(){nm_test_var='a';nm_test_func();return(0);}
5527 _LT_EOF
5528
5529   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5530   (eval $ac_compile) 2>&5
5531   ac_status=$?
5532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5533   test $ac_status = 0; }; then
5534     # Now try to grab the symbols.
5535     nlist=conftest.nm
5536     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5537   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5538   ac_status=$?
5539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5540   test $ac_status = 0; } && test -s "$nlist"; then
5541       # Try sorting and uniquifying the output.
5542       if sort "$nlist" | uniq > "$nlist"T; then
5543         mv -f "$nlist"T "$nlist"
5544       else
5545         rm -f "$nlist"T
5546       fi
5547
5548       # Make sure that we snagged all the symbols we need.
5549       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5550         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5551           cat <<_LT_EOF > conftest.$ac_ext
5552 #ifdef __cplusplus
5553 extern "C" {
5554 #endif
5555
5556 _LT_EOF
5557           # Now generate the symbol file.
5558           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5559
5560           cat <<_LT_EOF >> conftest.$ac_ext
5561
5562 /* The mapping between symbol names and symbols.  */
5563 const struct {
5564   const char *name;
5565   void       *address;
5566 }
5567 lt__PROGRAM__LTX_preloaded_symbols[] =
5568 {
5569   { "@PROGRAM@", (void *) 0 },
5570 _LT_EOF
5571           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5572           cat <<\_LT_EOF >> conftest.$ac_ext
5573   {0, (void *) 0}
5574 };
5575
5576 /* This works around a problem in FreeBSD linker */
5577 #ifdef FREEBSD_WORKAROUND
5578 static const void *lt_preloaded_setup() {
5579   return lt__PROGRAM__LTX_preloaded_symbols;
5580 }
5581 #endif
5582
5583 #ifdef __cplusplus
5584 }
5585 #endif
5586 _LT_EOF
5587           # Now try linking the two files.
5588           mv conftest.$ac_objext conftstm.$ac_objext
5589           lt_save_LIBS="$LIBS"
5590           lt_save_CFLAGS="$CFLAGS"
5591           LIBS="conftstm.$ac_objext"
5592           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5593           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5594   (eval $ac_link) 2>&5
5595   ac_status=$?
5596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5597   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5598             pipe_works=yes
5599           fi
5600           LIBS="$lt_save_LIBS"
5601           CFLAGS="$lt_save_CFLAGS"
5602         else
5603           echo "cannot find nm_test_func in $nlist" >&5
5604         fi
5605       else
5606         echo "cannot find nm_test_var in $nlist" >&5
5607       fi
5608     else
5609       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5610     fi
5611   else
5612     echo "$progname: failed program was:" >&5
5613     cat conftest.$ac_ext >&5
5614   fi
5615   rm -rf conftest* conftst*
5616
5617   # Do not use the global_symbol_pipe unless it works.
5618   if test "$pipe_works" = yes; then
5619     break
5620   else
5621     lt_cv_sys_global_symbol_pipe=
5622   fi
5623 done
5624
5625 fi
5626
5627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5628   lt_cv_sys_global_symbol_to_cdecl=
5629 fi
5630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5632 $as_echo "failed" >&6; }
5633 else
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5635 $as_echo "ok" >&6; }
5636 fi
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660 # Check whether --enable-libtool-lock was given.
5661 if test "${enable_libtool_lock+set}" = set; then :
5662   enableval=$enable_libtool_lock;
5663 fi
5664
5665 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5666
5667 # Some flags need to be propagated to the compiler or linker for good
5668 # libtool support.
5669 case $host in
5670 ia64-*-hpux*)
5671   # Find out which ABI we are using.
5672   echo 'int i;' > conftest.$ac_ext
5673   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5674   (eval $ac_compile) 2>&5
5675   ac_status=$?
5676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677   test $ac_status = 0; }; then
5678     case `/usr/bin/file conftest.$ac_objext` in
5679       *ELF-32*)
5680         HPUX_IA64_MODE="32"
5681         ;;
5682       *ELF-64*)
5683         HPUX_IA64_MODE="64"
5684         ;;
5685     esac
5686   fi
5687   rm -rf conftest*
5688   ;;
5689 *-*-irix6*)
5690   # Find out which ABI we are using.
5691   echo '#line 5691 "configure"' > conftest.$ac_ext
5692   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5693   (eval $ac_compile) 2>&5
5694   ac_status=$?
5695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696   test $ac_status = 0; }; then
5697     if test "$lt_cv_prog_gnu_ld" = yes; then
5698       case `/usr/bin/file conftest.$ac_objext` in
5699         *32-bit*)
5700           LD="${LD-ld} -melf32bsmip"
5701           ;;
5702         *N32*)
5703           LD="${LD-ld} -melf32bmipn32"
5704           ;;
5705         *64-bit*)
5706           LD="${LD-ld} -melf64bmip"
5707         ;;
5708       esac
5709     else
5710       case `/usr/bin/file conftest.$ac_objext` in
5711         *32-bit*)
5712           LD="${LD-ld} -32"
5713           ;;
5714         *N32*)
5715           LD="${LD-ld} -n32"
5716           ;;
5717         *64-bit*)
5718           LD="${LD-ld} -64"
5719           ;;
5720       esac
5721     fi
5722   fi
5723   rm -rf conftest*
5724   ;;
5725
5726 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5727 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5728   # Find out which ABI we are using.
5729   echo 'int i;' > conftest.$ac_ext
5730   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5731   (eval $ac_compile) 2>&5
5732   ac_status=$?
5733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5734   test $ac_status = 0; }; then
5735     case `/usr/bin/file conftest.o` in
5736       *32-bit*)
5737         case $host in
5738           x86_64-*kfreebsd*-gnu)
5739             LD="${LD-ld} -m elf_i386_fbsd"
5740             ;;
5741           x86_64-*linux*)
5742             LD="${LD-ld} -m elf_i386"
5743             ;;
5744           ppc64-*linux*|powerpc64-*linux*)
5745             LD="${LD-ld} -m elf32ppclinux"
5746             ;;
5747           s390x-*linux*)
5748             LD="${LD-ld} -m elf_s390"
5749             ;;
5750           sparc64-*linux*)
5751             LD="${LD-ld} -m elf32_sparc"
5752             ;;
5753         esac
5754         ;;
5755       *64-bit*)
5756         case $host in
5757           x86_64-*kfreebsd*-gnu)
5758             LD="${LD-ld} -m elf_x86_64_fbsd"
5759             ;;
5760           x86_64-*linux*)
5761             LD="${LD-ld} -m elf_x86_64"
5762             ;;
5763           ppc*-*linux*|powerpc*-*linux*)
5764             LD="${LD-ld} -m elf64ppc"
5765             ;;
5766           s390*-*linux*|s390*-*tpf*)
5767             LD="${LD-ld} -m elf64_s390"
5768             ;;
5769           sparc*-*linux*)
5770             LD="${LD-ld} -m elf64_sparc"
5771             ;;
5772         esac
5773         ;;
5774     esac
5775   fi
5776   rm -rf conftest*
5777   ;;
5778
5779 *-*-sco3.2v5*)
5780   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5781   SAVE_CFLAGS="$CFLAGS"
5782   CFLAGS="$CFLAGS -belf"
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5784 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5785 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   ac_ext=c
5789 ac_cpp='$CPP $CPPFLAGS'
5790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793
5794      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h.  */
5796
5797 int
5798 main ()
5799 {
5800
5801   ;
5802   return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_c_try_link "$LINENO"; then :
5806   lt_cv_cc_needs_belf=yes
5807 else
5808   lt_cv_cc_needs_belf=no
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext \
5811     conftest$ac_exeext conftest.$ac_ext
5812      ac_ext=c
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5820 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5821   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5822     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5823     CFLAGS="$SAVE_CFLAGS"
5824   fi
5825   ;;
5826 sparc*-*solaris*)
5827   # Find out which ABI we are using.
5828   echo 'int i;' > conftest.$ac_ext
5829   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5830   (eval $ac_compile) 2>&5
5831   ac_status=$?
5832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5833   test $ac_status = 0; }; then
5834     case `/usr/bin/file conftest.o` in
5835     *64-bit*)
5836       case $lt_cv_prog_gnu_ld in
5837       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5838       *)
5839         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5840           LD="${LD-ld} -64"
5841         fi
5842         ;;
5843       esac
5844       ;;
5845     esac
5846   fi
5847   rm -rf conftest*
5848   ;;
5849 esac
5850
5851 need_locks="$enable_libtool_lock"
5852
5853
5854   case $host_os in
5855     rhapsody* | darwin*)
5856     if test -n "$ac_tool_prefix"; then
5857   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   if test -n "$DSYMUTIL"; then
5865   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870   IFS=$as_save_IFS
5871   test -z "$as_dir" && as_dir=.
5872     for ac_exec_ext in '' $ac_executable_extensions; do
5873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876     break 2
5877   fi
5878 done
5879   done
5880 IFS=$as_save_IFS
5881
5882 fi
5883 fi
5884 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5885 if test -n "$DSYMUTIL"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5887 $as_echo "$DSYMUTIL" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893
5894 fi
5895 if test -z "$ac_cv_prog_DSYMUTIL"; then
5896   ac_ct_DSYMUTIL=$DSYMUTIL
5897   # Extract the first word of "dsymutil", so it can be a program name with args.
5898 set dummy dsymutil; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5902   $as_echo_n "(cached) " >&6
5903 else
5904   if test -n "$ac_ct_DSYMUTIL"; then
5905   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912     for ac_exec_ext in '' $ac_executable_extensions; do
5913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916     break 2
5917   fi
5918 done
5919   done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5925 if test -n "$ac_ct_DSYMUTIL"; then
5926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5927 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5928 else
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933   if test "x$ac_ct_DSYMUTIL" = x; then
5934     DSYMUTIL=":"
5935   else
5936     case $cross_compiling:$ac_tool_warned in
5937 yes:)
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5941 esac
5942     DSYMUTIL=$ac_ct_DSYMUTIL
5943   fi
5944 else
5945   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5946 fi
5947
5948     if test -n "$ac_tool_prefix"; then
5949   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   if test -n "$NMEDIT"; then
5957   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964     for ac_exec_ext in '' $ac_executable_extensions; do
5965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968     break 2
5969   fi
5970 done
5971   done
5972 IFS=$as_save_IFS
5973
5974 fi
5975 fi
5976 NMEDIT=$ac_cv_prog_NMEDIT
5977 if test -n "$NMEDIT"; then
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5979 $as_echo "$NMEDIT" >&6; }
5980 else
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5983 fi
5984
5985
5986 fi
5987 if test -z "$ac_cv_prog_NMEDIT"; then
5988   ac_ct_NMEDIT=$NMEDIT
5989   # Extract the first word of "nmedit", so it can be a program name with args.
5990 set dummy nmedit; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   if test -n "$ac_ct_NMEDIT"; then
5997   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002   IFS=$as_save_IFS
6003   test -z "$as_dir" && as_dir=.
6004     for ac_exec_ext in '' $ac_executable_extensions; do
6005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008     break 2
6009   fi
6010 done
6011   done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6017 if test -n "$ac_ct_NMEDIT"; then
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6019 $as_echo "$ac_ct_NMEDIT" >&6; }
6020 else
6021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6023 fi
6024
6025   if test "x$ac_ct_NMEDIT" = x; then
6026     NMEDIT=":"
6027   else
6028     case $cross_compiling:$ac_tool_warned in
6029 yes:)
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6032 ac_tool_warned=yes ;;
6033 esac
6034     NMEDIT=$ac_ct_NMEDIT
6035   fi
6036 else
6037   NMEDIT="$ac_cv_prog_NMEDIT"
6038 fi
6039
6040     if test -n "$ac_tool_prefix"; then
6041   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if test "${ac_cv_prog_LIPO+set}" = set; then :
6046   $as_echo_n "(cached) " >&6
6047 else
6048   if test -n "$LIPO"; then
6049   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054   IFS=$as_save_IFS
6055   test -z "$as_dir" && as_dir=.
6056     for ac_exec_ext in '' $ac_executable_extensions; do
6057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060     break 2
6061   fi
6062 done
6063   done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 LIPO=$ac_cv_prog_LIPO
6069 if test -n "$LIPO"; then
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6071 $as_echo "$LIPO" >&6; }
6072 else
6073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077
6078 fi
6079 if test -z "$ac_cv_prog_LIPO"; then
6080   ac_ct_LIPO=$LIPO
6081   # Extract the first word of "lipo", so it can be a program name with args.
6082 set dummy lipo; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   if test -n "$ac_ct_LIPO"; then
6089   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096     for ac_exec_ext in '' $ac_executable_extensions; do
6097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098     ac_cv_prog_ac_ct_LIPO="lipo"
6099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103   done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6109 if test -n "$ac_ct_LIPO"; then
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6111 $as_echo "$ac_ct_LIPO" >&6; }
6112 else
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115 fi
6116
6117   if test "x$ac_ct_LIPO" = x; then
6118     LIPO=":"
6119   else
6120     case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126     LIPO=$ac_ct_LIPO
6127   fi
6128 else
6129   LIPO="$ac_cv_prog_LIPO"
6130 fi
6131
6132     if test -n "$ac_tool_prefix"; then
6133   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6134 set dummy ${ac_tool_prefix}otool; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   if test -n "$OTOOL"; then
6141   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148     for ac_exec_ext in '' $ac_executable_extensions; do
6149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155   done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 OTOOL=$ac_cv_prog_OTOOL
6161 if test -n "$OTOOL"; then
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6163 $as_echo "$OTOOL" >&6; }
6164 else
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6167 fi
6168
6169
6170 fi
6171 if test -z "$ac_cv_prog_OTOOL"; then
6172   ac_ct_OTOOL=$OTOOL
6173   # Extract the first word of "otool", so it can be a program name with args.
6174 set dummy otool; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   if test -n "$ac_ct_OTOOL"; then
6181   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190     ac_cv_prog_ac_ct_OTOOL="otool"
6191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195   done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6201 if test -n "$ac_ct_OTOOL"; then
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6203 $as_echo "$ac_ct_OTOOL" >&6; }
6204 else
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208
6209   if test "x$ac_ct_OTOOL" = x; then
6210     OTOOL=":"
6211   else
6212     case $cross_compiling:$ac_tool_warned in
6213 yes:)
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218     OTOOL=$ac_ct_OTOOL
6219   fi
6220 else
6221   OTOOL="$ac_cv_prog_OTOOL"
6222 fi
6223
6224     if test -n "$ac_tool_prefix"; then
6225   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6226 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   if test -n "$OTOOL64"; then
6233   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238   IFS=$as_save_IFS
6239   test -z "$as_dir" && as_dir=.
6240     for ac_exec_ext in '' $ac_executable_extensions; do
6241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244     break 2
6245   fi
6246 done
6247   done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 OTOOL64=$ac_cv_prog_OTOOL64
6253 if test -n "$OTOOL64"; then
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6255 $as_echo "$OTOOL64" >&6; }
6256 else
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261
6262 fi
6263 if test -z "$ac_cv_prog_OTOOL64"; then
6264   ac_ct_OTOOL64=$OTOOL64
6265   # Extract the first word of "otool64", so it can be a program name with args.
6266 set dummy otool64; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6270   $as_echo_n "(cached) " >&6
6271 else
6272   if test -n "$ac_ct_OTOOL64"; then
6273   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280     for ac_exec_ext in '' $ac_executable_extensions; do
6281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282     ac_cv_prog_ac_ct_OTOOL64="otool64"
6283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284     break 2
6285   fi
6286 done
6287   done
6288 IFS=$as_save_IFS
6289
6290 fi
6291 fi
6292 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6293 if test -n "$ac_ct_OTOOL64"; then
6294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6295 $as_echo "$ac_ct_OTOOL64" >&6; }
6296 else
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299 fi
6300
6301   if test "x$ac_ct_OTOOL64" = x; then
6302     OTOOL64=":"
6303   else
6304     case $cross_compiling:$ac_tool_warned in
6305 yes:)
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6308 ac_tool_warned=yes ;;
6309 esac
6310     OTOOL64=$ac_ct_OTOOL64
6311   fi
6312 else
6313   OTOOL64="$ac_cv_prog_OTOOL64"
6314 fi
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6343 $as_echo_n "checking for -single_module linker flag... " >&6; }
6344 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   lt_cv_apple_cc_single_mod=no
6348       if test -z "${LT_MULTI_MODULE}"; then
6349         # By default we will add the -single_module flag. You can override
6350         # by either setting the environment variable LT_MULTI_MODULE
6351         # non-empty at configure time, or by adding -multi_module to the
6352         # link flags.
6353         rm -rf libconftest.dylib*
6354         echo "int foo(void){return 1;}" > conftest.c
6355         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6356 -dynamiclib -Wl,-single_module conftest.c" >&5
6357         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6358           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6359         _lt_result=$?
6360         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6361           lt_cv_apple_cc_single_mod=yes
6362         else
6363           cat conftest.err >&5
6364         fi
6365         rm -rf libconftest.dylib*
6366         rm -f conftest.*
6367       fi
6368 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6370 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6372 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6373 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6374   $as_echo_n "(cached) " >&6
6375 else
6376   lt_cv_ld_exported_symbols_list=no
6377       save_LDFLAGS=$LDFLAGS
6378       echo "_main" > conftest.sym
6379       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6380       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h.  */
6382
6383 int
6384 main ()
6385 {
6386
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 if ac_fn_c_try_link "$LINENO"; then :
6392   lt_cv_ld_exported_symbols_list=yes
6393 else
6394   lt_cv_ld_exported_symbols_list=no
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext \
6397     conftest$ac_exeext conftest.$ac_ext
6398         LDFLAGS="$save_LDFLAGS"
6399
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6402 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6403     case $host_os in
6404     rhapsody* | darwin1.[012])
6405       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6406     darwin1.*)
6407       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6408     darwin*) # darwin 5.x on
6409       # if running on 10.5 or later, the deployment target defaults
6410       # to the OS version, if on x86, and 10.4, the deployment
6411       # target defaults to 10.4. Don't you love it?
6412       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6413         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6414           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6415         10.[012]*)
6416           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6417         10.*)
6418           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6419       esac
6420     ;;
6421   esac
6422     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6423       _lt_dar_single_mod='$single_module'
6424     fi
6425     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6426       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6427     else
6428       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6429     fi
6430     if test "$DSYMUTIL" != ":"; then
6431       _lt_dsymutil='~$DSYMUTIL $lib || :'
6432     else
6433       _lt_dsymutil=
6434     fi
6435     ;;
6436   esac
6437
6438 ac_ext=c
6439 ac_cpp='$CPP $CPPFLAGS'
6440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6445 # On Suns, sometimes $CPP names a directory.
6446 if test -n "$CPP" && test -d "$CPP"; then
6447   CPP=
6448 fi
6449 if test -z "$CPP"; then
6450   if test "${ac_cv_prog_CPP+set}" = set; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453       # Double quotes because CPP needs to be expanded
6454     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6455     do
6456       ac_preproc_ok=false
6457 for ac_c_preproc_warn_flag in '' yes
6458 do
6459   # Use a header file that comes with gcc, so configuring glibc
6460   # with a fresh cross-compiler works.
6461   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6462   # <limits.h> exists even on freestanding compilers.
6463   # On the NeXT, cc -E runs the code through the compiler's parser,
6464   # not just through cpp. "Syntax error" is here to catch this case.
6465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h.  */
6467 #ifdef __STDC__
6468 # include <limits.h>
6469 #else
6470 # include <assert.h>
6471 #endif
6472                      Syntax error
6473 _ACEOF
6474 if ac_fn_c_try_cpp "$LINENO"; then :
6475
6476 else
6477   # Broken: fails on valid input.
6478 continue
6479 fi
6480 rm -f conftest.err conftest.$ac_ext
6481
6482   # OK, works on sane cases.  Now check whether nonexistent headers
6483   # can be detected and how.
6484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h.  */
6486 #include <ac_nonexistent.h>
6487 _ACEOF
6488 if ac_fn_c_try_cpp "$LINENO"; then :
6489   # Broken: success on invalid input.
6490 continue
6491 else
6492   # Passes both tests.
6493 ac_preproc_ok=:
6494 break
6495 fi
6496 rm -f conftest.err conftest.$ac_ext
6497
6498 done
6499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6500 rm -f conftest.err conftest.$ac_ext
6501 if $ac_preproc_ok; then :
6502   break
6503 fi
6504
6505     done
6506     ac_cv_prog_CPP=$CPP
6507
6508 fi
6509   CPP=$ac_cv_prog_CPP
6510 else
6511   ac_cv_prog_CPP=$CPP
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6514 $as_echo "$CPP" >&6; }
6515 ac_preproc_ok=false
6516 for ac_c_preproc_warn_flag in '' yes
6517 do
6518   # Use a header file that comes with gcc, so configuring glibc
6519   # with a fresh cross-compiler works.
6520   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6521   # <limits.h> exists even on freestanding compilers.
6522   # On the NeXT, cc -E runs the code through the compiler's parser,
6523   # not just through cpp. "Syntax error" is here to catch this case.
6524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h.  */
6526 #ifdef __STDC__
6527 # include <limits.h>
6528 #else
6529 # include <assert.h>
6530 #endif
6531                      Syntax error
6532 _ACEOF
6533 if ac_fn_c_try_cpp "$LINENO"; then :
6534
6535 else
6536   # Broken: fails on valid input.
6537 continue
6538 fi
6539 rm -f conftest.err conftest.$ac_ext
6540
6541   # OK, works on sane cases.  Now check whether nonexistent headers
6542   # can be detected and how.
6543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h.  */
6545 #include <ac_nonexistent.h>
6546 _ACEOF
6547 if ac_fn_c_try_cpp "$LINENO"; then :
6548   # Broken: success on invalid input.
6549 continue
6550 else
6551   # Passes both tests.
6552 ac_preproc_ok=:
6553 break
6554 fi
6555 rm -f conftest.err conftest.$ac_ext
6556
6557 done
6558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6559 rm -f conftest.err conftest.$ac_ext
6560 if $ac_preproc_ok; then :
6561
6562 else
6563   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6565 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6566 See \`config.log' for more details." "$LINENO" 5; }
6567 fi
6568
6569 ac_ext=c
6570 ac_cpp='$CPP $CPPFLAGS'
6571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6574
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6577 $as_echo_n "checking for ANSI C header files... " >&6; }
6578 if test "${ac_cv_header_stdc+set}" = set; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h.  */
6583 #include <stdlib.h>
6584 #include <stdarg.h>
6585 #include <string.h>
6586 #include <float.h>
6587
6588 int
6589 main ()
6590 {
6591
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597   ac_cv_header_stdc=yes
6598 else
6599   ac_cv_header_stdc=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602
6603 if test $ac_cv_header_stdc = yes; then
6604   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h.  */
6607 #include <string.h>
6608
6609 _ACEOF
6610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6611   $EGREP "memchr" >/dev/null 2>&1; then :
6612
6613 else
6614   ac_cv_header_stdc=no
6615 fi
6616 rm -f conftest*
6617
6618 fi
6619
6620 if test $ac_cv_header_stdc = yes; then
6621   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h.  */
6624 #include <stdlib.h>
6625
6626 _ACEOF
6627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6628   $EGREP "free" >/dev/null 2>&1; then :
6629
6630 else
6631   ac_cv_header_stdc=no
6632 fi
6633 rm -f conftest*
6634
6635 fi
6636
6637 if test $ac_cv_header_stdc = yes; then
6638   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6639   if test "$cross_compiling" = yes; then :
6640   :
6641 else
6642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h.  */
6644 #include <ctype.h>
6645 #include <stdlib.h>
6646 #if ((' ' & 0x0FF) == 0x020)
6647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6649 #else
6650 # define ISLOWER(c) \
6651                    (('a' <= (c) && (c) <= 'i') \
6652                      || ('j' <= (c) && (c) <= 'r') \
6653                      || ('s' <= (c) && (c) <= 'z'))
6654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6655 #endif
6656
6657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6658 int
6659 main ()
6660 {
6661   int i;
6662   for (i = 0; i < 256; i++)
6663     if (XOR (islower (i), ISLOWER (i))
6664         || toupper (i) != TOUPPER (i))
6665       return 2;
6666   return 0;
6667 }
6668 _ACEOF
6669 if ac_fn_c_try_run "$LINENO"; then :
6670
6671 else
6672   ac_cv_header_stdc=no
6673 fi
6674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6675   conftest.$ac_objext conftest.beam conftest.$ac_ext
6676 fi
6677
6678 fi
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6681 $as_echo "$ac_cv_header_stdc" >&6; }
6682 if test $ac_cv_header_stdc = yes; then
6683
6684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6685
6686 fi
6687
6688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6690                   inttypes.h stdint.h unistd.h
6691 do :
6692   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6694 "
6695 eval as_val=\$$as_ac_Header
6696    if test "x$as_val" = x""yes; then :
6697   cat >>confdefs.h <<_ACEOF
6698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6699 _ACEOF
6700
6701 fi
6702
6703 done
6704
6705
6706 for ac_header in dlfcn.h
6707 do :
6708   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6709 "
6710 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6711   cat >>confdefs.h <<_ACEOF
6712 #define HAVE_DLFCN_H 1
6713 _ACEOF
6714
6715 fi
6716
6717 done
6718
6719
6720
6721 # Set options
6722
6723
6724
6725         enable_dlopen=no
6726
6727
6728   enable_win32_dll=no
6729
6730
6731             # Check whether --enable-shared was given.
6732 if test "${enable_shared+set}" = set; then :
6733   enableval=$enable_shared; p=${PACKAGE-default}
6734     case $enableval in
6735     yes) enable_shared=yes ;;
6736     no) enable_shared=no ;;
6737     *)
6738       enable_shared=no
6739       # Look at the argument we got.  We use all the common list separators.
6740       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6741       for pkg in $enableval; do
6742         IFS="$lt_save_ifs"
6743         if test "X$pkg" = "X$p"; then
6744           enable_shared=yes
6745         fi
6746       done
6747       IFS="$lt_save_ifs"
6748       ;;
6749     esac
6750 else
6751   enable_shared=yes
6752 fi
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762   # Check whether --enable-static was given.
6763 if test "${enable_static+set}" = set; then :
6764   enableval=$enable_static; p=${PACKAGE-default}
6765     case $enableval in
6766     yes) enable_static=yes ;;
6767     no) enable_static=no ;;
6768     *)
6769      enable_static=no
6770       # Look at the argument we got.  We use all the common list separators.
6771       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6772       for pkg in $enableval; do
6773         IFS="$lt_save_ifs"
6774         if test "X$pkg" = "X$p"; then
6775           enable_static=yes
6776         fi
6777       done
6778       IFS="$lt_save_ifs"
6779       ;;
6780     esac
6781 else
6782   enable_static=yes
6783 fi
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794 # Check whether --with-pic was given.
6795 if test "${with_pic+set}" = set; then :
6796   withval=$with_pic; pic_mode="$withval"
6797 else
6798   pic_mode=default
6799 fi
6800
6801
6802 test -z "$pic_mode" && pic_mode=default
6803
6804
6805
6806
6807
6808
6809
6810   # Check whether --enable-fast-install was given.
6811 if test "${enable_fast_install+set}" = set; then :
6812   enableval=$enable_fast_install; p=${PACKAGE-default}
6813     case $enableval in
6814     yes) enable_fast_install=yes ;;
6815     no) enable_fast_install=no ;;
6816     *)
6817       enable_fast_install=no
6818       # Look at the argument we got.  We use all the common list separators.
6819       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6820       for pkg in $enableval; do
6821         IFS="$lt_save_ifs"
6822         if test "X$pkg" = "X$p"; then
6823           enable_fast_install=yes
6824         fi
6825       done
6826       IFS="$lt_save_ifs"
6827       ;;
6828     esac
6829 else
6830   enable_fast_install=yes
6831 fi
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843 # This can be used to rebuild libtool when needed
6844 LIBTOOL_DEPS="$ltmain"
6845
6846 # Always use our own libtool.
6847 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 test -z "$LN_S" && LN_S="ln -s"
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888 if test -n "${ZSH_VERSION+set}" ; then
6889    setopt NO_GLOB_SUBST
6890 fi
6891
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6893 $as_echo_n "checking for objdir... " >&6; }
6894 if test "${lt_cv_objdir+set}" = set; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   rm -f .libs 2>/dev/null
6898 mkdir .libs 2>/dev/null
6899 if test -d .libs; then
6900   lt_cv_objdir=.libs
6901 else
6902   # MS-DOS does not allow filenames that begin with a dot.
6903   lt_cv_objdir=_libs
6904 fi
6905 rmdir .libs 2>/dev/null
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6908 $as_echo "$lt_cv_objdir" >&6; }
6909 objdir=$lt_cv_objdir
6910
6911
6912
6913
6914
6915 cat >>confdefs.h <<_ACEOF
6916 #define LT_OBJDIR "$lt_cv_objdir/"
6917 _ACEOF
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 case $host_os in
6936 aix3*)
6937   # AIX sometimes has problems with the GCC collect2 program.  For some
6938   # reason, if we set the COLLECT_NAMES environment variable, the problems
6939   # vanish in a puff of smoke.
6940   if test "X${COLLECT_NAMES+set}" != Xset; then
6941     COLLECT_NAMES=
6942     export COLLECT_NAMES
6943   fi
6944   ;;
6945 esac
6946
6947 # Sed substitution that helps us do robust quoting.  It backslashifies
6948 # metacharacters that are still active within double-quoted strings.
6949 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6950
6951 # Same as above, but do not quote variable references.
6952 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6953
6954 # Sed substitution to delay expansion of an escaped shell variable in a
6955 # double_quote_subst'ed string.
6956 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6957
6958 # Sed substitution to delay expansion of an escaped single quote.
6959 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6960
6961 # Sed substitution to avoid accidental globbing in evaled expressions
6962 no_glob_subst='s/\*/\\\*/g'
6963
6964 # Global variables:
6965 ofile=libtool
6966 can_build_shared=yes
6967
6968 # All known linkers require a `.a' archive for static linking (except MSVC,
6969 # which needs '.lib').
6970 libext=a
6971
6972 with_gnu_ld="$lt_cv_prog_gnu_ld"
6973
6974 old_CC="$CC"
6975 old_CFLAGS="$CFLAGS"
6976
6977 # Set sane defaults for various variables
6978 test -z "$CC" && CC=cc
6979 test -z "$LTCC" && LTCC=$CC
6980 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6981 test -z "$LD" && LD=ld
6982 test -z "$ac_objext" && ac_objext=o
6983
6984 for cc_temp in $compiler""; do
6985   case $cc_temp in
6986     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6987     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6988     \-*) ;;
6989     *) break;;
6990   esac
6991 done
6992 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6993
6994
6995 # Only perform the check for file, if the check method requires it
6996 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6997 case $deplibs_check_method in
6998 file_magic*)
6999   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7001 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7002 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   case $MAGIC_CMD in
7006 [\\/*] |  ?:[\\/]*)
7007   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7008   ;;
7009 *)
7010   lt_save_MAGIC_CMD="$MAGIC_CMD"
7011   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7012   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7013   for ac_dir in $ac_dummy; do
7014     IFS="$lt_save_ifs"
7015     test -z "$ac_dir" && ac_dir=.
7016     if test -f $ac_dir/${ac_tool_prefix}file; then
7017       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7018       if test -n "$file_magic_test_file"; then
7019         case $deplibs_check_method in
7020         "file_magic "*)
7021           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7022           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7023           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7024             $EGREP "$file_magic_regex" > /dev/null; then
7025             :
7026           else
7027             cat <<_LT_EOF 1>&2
7028
7029 *** Warning: the command libtool uses to detect shared libraries,
7030 *** $file_magic_cmd, produces output that libtool cannot recognize.
7031 *** The result is that libtool may fail to recognize shared libraries
7032 *** as such.  This will affect the creation of libtool libraries that
7033 *** depend on shared libraries, but programs linked with such libtool
7034 *** libraries will work regardless of this problem.  Nevertheless, you
7035 *** may want to report the problem to your system manager and/or to
7036 *** bug-libtool@gnu.org
7037
7038 _LT_EOF
7039           fi ;;
7040         esac
7041       fi
7042       break
7043     fi
7044   done
7045   IFS="$lt_save_ifs"
7046   MAGIC_CMD="$lt_save_MAGIC_CMD"
7047   ;;
7048 esac
7049 fi
7050
7051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052 if test -n "$MAGIC_CMD"; then
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7054 $as_echo "$MAGIC_CMD" >&6; }
7055 else
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060
7061
7062
7063
7064 if test -z "$lt_cv_path_MAGIC_CMD"; then
7065   if test -n "$ac_tool_prefix"; then
7066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7067 $as_echo_n "checking for file... " >&6; }
7068 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   case $MAGIC_CMD in
7072 [\\/*] |  ?:[\\/]*)
7073   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7074   ;;
7075 *)
7076   lt_save_MAGIC_CMD="$MAGIC_CMD"
7077   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7078   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7079   for ac_dir in $ac_dummy; do
7080     IFS="$lt_save_ifs"
7081     test -z "$ac_dir" && ac_dir=.
7082     if test -f $ac_dir/file; then
7083       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7084       if test -n "$file_magic_test_file"; then
7085         case $deplibs_check_method in
7086         "file_magic "*)
7087           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7088           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7089           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7090             $EGREP "$file_magic_regex" > /dev/null; then
7091             :
7092           else
7093             cat <<_LT_EOF 1>&2
7094
7095 *** Warning: the command libtool uses to detect shared libraries,
7096 *** $file_magic_cmd, produces output that libtool cannot recognize.
7097 *** The result is that libtool may fail to recognize shared libraries
7098 *** as such.  This will affect the creation of libtool libraries that
7099 *** depend on shared libraries, but programs linked with such libtool
7100 *** libraries will work regardless of this problem.  Nevertheless, you
7101 *** may want to report the problem to your system manager and/or to
7102 *** bug-libtool@gnu.org
7103
7104 _LT_EOF
7105           fi ;;
7106         esac
7107       fi
7108       break
7109     fi
7110   done
7111   IFS="$lt_save_ifs"
7112   MAGIC_CMD="$lt_save_MAGIC_CMD"
7113   ;;
7114 esac
7115 fi
7116
7117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7118 if test -n "$MAGIC_CMD"; then
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7120 $as_echo "$MAGIC_CMD" >&6; }
7121 else
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125
7126
7127   else
7128     MAGIC_CMD=:
7129   fi
7130 fi
7131
7132   fi
7133   ;;
7134 esac
7135
7136 # Use C for the default configuration in the libtool script
7137
7138 lt_save_CC="$CC"
7139 ac_ext=c
7140 ac_cpp='$CPP $CPPFLAGS'
7141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7144
7145
7146 # Source file extension for C test sources.
7147 ac_ext=c
7148
7149 # Object file extension for compiled C test sources.
7150 objext=o
7151 objext=$objext
7152
7153 # Code to be used in simple compile tests
7154 lt_simple_compile_test_code="int some_variable = 0;"
7155
7156 # Code to be used in simple link tests
7157 lt_simple_link_test_code='int main(){return(0);}'
7158
7159
7160
7161
7162
7163
7164
7165 # If no C compiler was specified, use CC.
7166 LTCC=${LTCC-"$CC"}
7167
7168 # If no C compiler flags were specified, use CFLAGS.
7169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7170
7171 # Allow CC to be a program name with arguments.
7172 compiler=$CC
7173
7174 # Save the default compiler, since it gets overwritten when the other
7175 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7176 compiler_DEFAULT=$CC
7177
7178 # save warnings/boilerplate of simple test code
7179 ac_outfile=conftest.$ac_objext
7180 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7181 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7182 _lt_compiler_boilerplate=`cat conftest.err`
7183 $RM conftest*
7184
7185 ac_outfile=conftest.$ac_objext
7186 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7187 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7188 _lt_linker_boilerplate=`cat conftest.err`
7189 $RM -r conftest*
7190
7191
7192 if test -n "$compiler"; then
7193
7194 lt_prog_compiler_no_builtin_flag=
7195
7196 if test "$GCC" = yes; then
7197   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7198
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7200 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7201 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   lt_cv_prog_compiler_rtti_exceptions=no
7205    ac_outfile=conftest.$ac_objext
7206    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7207    lt_compiler_flag="-fno-rtti -fno-exceptions"
7208    # Insert the option either (1) after the last *FLAGS variable, or
7209    # (2) before a word containing "conftest.", or (3) at the end.
7210    # Note that $ac_compile itself does not contain backslashes and begins
7211    # with a dollar sign (not a hyphen), so the echo should work correctly.
7212    # The option is referenced via a variable to avoid confusing sed.
7213    lt_compile=`echo "$ac_compile" | $SED \
7214    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7215    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7216    -e 's:$: $lt_compiler_flag:'`
7217    (eval echo "\"\$as_me:7217: $lt_compile\"" >&5)
7218    (eval "$lt_compile" 2>conftest.err)
7219    ac_status=$?
7220    cat conftest.err >&5
7221    echo "$as_me:7221: \$? = $ac_status" >&5
7222    if (exit $ac_status) && test -s "$ac_outfile"; then
7223      # The compiler can only warn and ignore the option if not recognized
7224      # So say no if there are warnings other than the usual output.
7225      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7226      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7227      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7228        lt_cv_prog_compiler_rtti_exceptions=yes
7229      fi
7230    fi
7231    $RM conftest*
7232
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7235 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7236
7237 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7238     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7239 else
7240     :
7241 fi
7242
7243 fi
7244
7245
7246
7247
7248
7249
7250   lt_prog_compiler_wl=
7251 lt_prog_compiler_pic=
7252 lt_prog_compiler_static=
7253
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7255 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7256
7257   if test "$GCC" = yes; then
7258     lt_prog_compiler_wl='-Wl,'
7259     lt_prog_compiler_static='-static'
7260
7261     case $host_os in
7262       aix*)
7263       # All AIX code is PIC.
7264       if test "$host_cpu" = ia64; then
7265         # AIX 5 now supports IA64 processor
7266         lt_prog_compiler_static='-Bstatic'
7267       fi
7268       ;;
7269
7270     amigaos*)
7271       case $host_cpu in
7272       powerpc)
7273             # see comment about AmigaOS4 .so support
7274             lt_prog_compiler_pic='-fPIC'
7275         ;;
7276       m68k)
7277             # FIXME: we need at least 68020 code to build shared libraries, but
7278             # adding the `-m68020' flag to GCC prevents building anything better,
7279             # like `-m68040'.
7280             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7281         ;;
7282       esac
7283       ;;
7284
7285     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7286       # PIC is the default for these OSes.
7287       ;;
7288
7289     mingw* | cygwin* | pw32* | os2* | cegcc*)
7290       # This hack is so that the source file can tell whether it is being
7291       # built for inclusion in a dll (and should export symbols for example).
7292       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7293       # (--disable-auto-import) libraries
7294       lt_prog_compiler_pic='-DDLL_EXPORT'
7295       ;;
7296
7297     darwin* | rhapsody*)
7298       # PIC is the default on this platform
7299       # Common symbols not allowed in MH_DYLIB files
7300       lt_prog_compiler_pic='-fno-common'
7301       ;;
7302
7303     hpux*)
7304       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7305       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7306       # sets the default TLS model and affects inlining.
7307       case $host_cpu in
7308       hppa*64*)
7309         # +Z the default
7310         ;;
7311       *)
7312         lt_prog_compiler_pic='-fPIC'
7313         ;;
7314       esac
7315       ;;
7316
7317     interix[3-9]*)
7318       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7319       # Instead, we relocate shared libraries at runtime.
7320       ;;
7321
7322     msdosdjgpp*)
7323       # Just because we use GCC doesn't mean we suddenly get shared libraries
7324       # on systems that don't support them.
7325       lt_prog_compiler_can_build_shared=no
7326       enable_shared=no
7327       ;;
7328
7329     *nto* | *qnx*)
7330       # QNX uses GNU C++, but need to define -shared option too, otherwise
7331       # it will coredump.
7332       lt_prog_compiler_pic='-fPIC -shared'
7333       ;;
7334
7335     sysv4*MP*)
7336       if test -d /usr/nec; then
7337         lt_prog_compiler_pic=-Kconform_pic
7338       fi
7339       ;;
7340
7341     *)
7342       lt_prog_compiler_pic='-fPIC'
7343       ;;
7344     esac
7345   else
7346     # PORTME Check for flag to pass linker flags through the system compiler.
7347     case $host_os in
7348     aix*)
7349       lt_prog_compiler_wl='-Wl,'
7350       if test "$host_cpu" = ia64; then
7351         # AIX 5 now supports IA64 processor
7352         lt_prog_compiler_static='-Bstatic'
7353       else
7354         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7355       fi
7356       ;;
7357
7358     mingw* | cygwin* | pw32* | os2* | cegcc*)
7359       # This hack is so that the source file can tell whether it is being
7360       # built for inclusion in a dll (and should export symbols for example).
7361       lt_prog_compiler_pic='-DDLL_EXPORT'
7362       ;;
7363
7364     hpux9* | hpux10* | hpux11*)
7365       lt_prog_compiler_wl='-Wl,'
7366       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7367       # not for PA HP-UX.
7368       case $host_cpu in
7369       hppa*64*|ia64*)
7370         # +Z the default
7371         ;;
7372       *)
7373         lt_prog_compiler_pic='+Z'
7374         ;;
7375       esac
7376       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7377       lt_prog_compiler_static='${wl}-a ${wl}archive'
7378       ;;
7379
7380     irix5* | irix6* | nonstopux*)
7381       lt_prog_compiler_wl='-Wl,'
7382       # PIC (with -KPIC) is the default.
7383       lt_prog_compiler_static='-non_shared'
7384       ;;
7385
7386     linux* | k*bsd*-gnu)
7387       case $cc_basename in
7388       # old Intel for x86_64 which still supported -KPIC.
7389       ecc*)
7390         lt_prog_compiler_wl='-Wl,'
7391         lt_prog_compiler_pic='-KPIC'
7392         lt_prog_compiler_static='-static'
7393         ;;
7394       # icc used to be incompatible with GCC.
7395       # ICC 10 doesn't accept -KPIC any more.
7396       icc* | ifort*)
7397         lt_prog_compiler_wl='-Wl,'
7398         lt_prog_compiler_pic='-fPIC'
7399         lt_prog_compiler_static='-static'
7400         ;;
7401       # Lahey Fortran 8.1.
7402       lf95*)
7403         lt_prog_compiler_wl='-Wl,'
7404         lt_prog_compiler_pic='--shared'
7405         lt_prog_compiler_static='--static'
7406         ;;
7407       pgcc* | pgf77* | pgf90* | pgf95*)
7408         # Portland Group compilers (*not* the Pentium gcc compiler,
7409         # which looks to be a dead project)
7410         lt_prog_compiler_wl='-Wl,'
7411         lt_prog_compiler_pic='-fpic'
7412         lt_prog_compiler_static='-Bstatic'
7413         ;;
7414       ccc*)
7415         lt_prog_compiler_wl='-Wl,'
7416         # All Alpha code is PIC.
7417         lt_prog_compiler_static='-non_shared'
7418         ;;
7419       xl*)
7420         # IBM XL C 8.0/Fortran 10.1 on PPC
7421         lt_prog_compiler_wl='-Wl,'
7422         lt_prog_compiler_pic='-qpic'
7423         lt_prog_compiler_static='-qstaticlink'
7424         ;;
7425       *)
7426         case `$CC -V 2>&1 | sed 5q` in
7427         *Sun\ C*)
7428           # Sun C 5.9
7429           lt_prog_compiler_pic='-KPIC'
7430           lt_prog_compiler_static='-Bstatic'
7431           lt_prog_compiler_wl='-Wl,'
7432           ;;
7433         *Sun\ F*)
7434           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7435           lt_prog_compiler_pic='-KPIC'
7436           lt_prog_compiler_static='-Bstatic'
7437           lt_prog_compiler_wl=''
7438           ;;
7439         esac
7440         ;;
7441       esac
7442       ;;
7443
7444     newsos6)
7445       lt_prog_compiler_pic='-KPIC'
7446       lt_prog_compiler_static='-Bstatic'
7447       ;;
7448
7449     *nto* | *qnx*)
7450       # QNX uses GNU C++, but need to define -shared option too, otherwise
7451       # it will coredump.
7452       lt_prog_compiler_pic='-fPIC -shared'
7453       ;;
7454
7455     osf3* | osf4* | osf5*)
7456       lt_prog_compiler_wl='-Wl,'
7457       # All OSF/1 code is PIC.
7458       lt_prog_compiler_static='-non_shared'
7459       ;;
7460
7461     rdos*)
7462       lt_prog_compiler_static='-non_shared'
7463       ;;
7464
7465     solaris*)
7466       lt_prog_compiler_pic='-KPIC'
7467       lt_prog_compiler_static='-Bstatic'
7468       case $cc_basename in
7469       f77* | f90* | f95*)
7470         lt_prog_compiler_wl='-Qoption ld ';;
7471       *)
7472         lt_prog_compiler_wl='-Wl,';;
7473       esac
7474       ;;
7475
7476     sunos4*)
7477       lt_prog_compiler_wl='-Qoption ld '
7478       lt_prog_compiler_pic='-PIC'
7479       lt_prog_compiler_static='-Bstatic'
7480       ;;
7481
7482     sysv4 | sysv4.2uw2* | sysv4.3*)
7483       lt_prog_compiler_wl='-Wl,'
7484       lt_prog_compiler_pic='-KPIC'
7485       lt_prog_compiler_static='-Bstatic'
7486       ;;
7487
7488     sysv4*MP*)
7489       if test -d /usr/nec ;then
7490         lt_prog_compiler_pic='-Kconform_pic'
7491         lt_prog_compiler_static='-Bstatic'
7492       fi
7493       ;;
7494
7495     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7496       lt_prog_compiler_wl='-Wl,'
7497       lt_prog_compiler_pic='-KPIC'
7498       lt_prog_compiler_static='-Bstatic'
7499       ;;
7500
7501     unicos*)
7502       lt_prog_compiler_wl='-Wl,'
7503       lt_prog_compiler_can_build_shared=no
7504       ;;
7505
7506     uts4*)
7507       lt_prog_compiler_pic='-pic'
7508       lt_prog_compiler_static='-Bstatic'
7509       ;;
7510
7511     *)
7512       lt_prog_compiler_can_build_shared=no
7513       ;;
7514     esac
7515   fi
7516
7517 case $host_os in
7518   # For platforms which do not support PIC, -DPIC is meaningless:
7519   *djgpp*)
7520     lt_prog_compiler_pic=
7521     ;;
7522   *)
7523     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7524     ;;
7525 esac
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7527 $as_echo "$lt_prog_compiler_pic" >&6; }
7528
7529
7530
7531
7532
7533
7534 #
7535 # Check to make sure the PIC flag actually works.
7536 #
7537 if test -n "$lt_prog_compiler_pic"; then
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7539 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7540 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543   lt_cv_prog_compiler_pic_works=no
7544    ac_outfile=conftest.$ac_objext
7545    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7546    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7547    # Insert the option either (1) after the last *FLAGS variable, or
7548    # (2) before a word containing "conftest.", or (3) at the end.
7549    # Note that $ac_compile itself does not contain backslashes and begins
7550    # with a dollar sign (not a hyphen), so the echo should work correctly.
7551    # The option is referenced via a variable to avoid confusing sed.
7552    lt_compile=`echo "$ac_compile" | $SED \
7553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7555    -e 's:$: $lt_compiler_flag:'`
7556    (eval echo "\"\$as_me:7556: $lt_compile\"" >&5)
7557    (eval "$lt_compile" 2>conftest.err)
7558    ac_status=$?
7559    cat conftest.err >&5
7560    echo "$as_me:7560: \$? = $ac_status" >&5
7561    if (exit $ac_status) && test -s "$ac_outfile"; then
7562      # The compiler can only warn and ignore the option if not recognized
7563      # So say no if there are warnings other than the usual output.
7564      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7565      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7566      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7567        lt_cv_prog_compiler_pic_works=yes
7568      fi
7569    fi
7570    $RM conftest*
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7574 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7575
7576 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7577     case $lt_prog_compiler_pic in
7578      "" | " "*) ;;
7579      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7580      esac
7581 else
7582     lt_prog_compiler_pic=
7583      lt_prog_compiler_can_build_shared=no
7584 fi
7585
7586 fi
7587
7588
7589
7590
7591
7592
7593 #
7594 # Check to make sure the static flag actually works.
7595 #
7596 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7598 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7599 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   lt_cv_prog_compiler_static_works=no
7603    save_LDFLAGS="$LDFLAGS"
7604    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7605    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7606    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7607      # The linker can only warn and ignore the option if not recognized
7608      # So say no if there are warnings
7609      if test -s conftest.err; then
7610        # Append any errors to the config.log.
7611        cat conftest.err 1>&5
7612        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7613        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7614        if diff conftest.exp conftest.er2 >/dev/null; then
7615          lt_cv_prog_compiler_static_works=yes
7616        fi
7617      else
7618        lt_cv_prog_compiler_static_works=yes
7619      fi
7620    fi
7621    $RM -r conftest*
7622    LDFLAGS="$save_LDFLAGS"
7623
7624 fi
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7626 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7627
7628 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7629     :
7630 else
7631     lt_prog_compiler_static=
7632 fi
7633
7634
7635
7636
7637
7638
7639
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7641 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7642 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   lt_cv_prog_compiler_c_o=no
7646    $RM -r conftest 2>/dev/null
7647    mkdir conftest
7648    cd conftest
7649    mkdir out
7650    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7651
7652    lt_compiler_flag="-o out/conftest2.$ac_objext"
7653    # Insert the option either (1) after the last *FLAGS variable, or
7654    # (2) before a word containing "conftest.", or (3) at the end.
7655    # Note that $ac_compile itself does not contain backslashes and begins
7656    # with a dollar sign (not a hyphen), so the echo should work correctly.
7657    lt_compile=`echo "$ac_compile" | $SED \
7658    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7659    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7660    -e 's:$: $lt_compiler_flag:'`
7661    (eval echo "\"\$as_me:7661: $lt_compile\"" >&5)
7662    (eval "$lt_compile" 2>out/conftest.err)
7663    ac_status=$?
7664    cat out/conftest.err >&5
7665    echo "$as_me:7665: \$? = $ac_status" >&5
7666    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7667    then
7668      # The compiler can only warn and ignore the option if not recognized
7669      # So say no if there are warnings
7670      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7671      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7672      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7673        lt_cv_prog_compiler_c_o=yes
7674      fi
7675    fi
7676    chmod u+w . 2>&5
7677    $RM conftest*
7678    # SGI C++ compiler will create directory out/ii_files/ for
7679    # template instantiation
7680    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7681    $RM out/* && rmdir out
7682    cd ..
7683    $RM -r conftest
7684    $RM conftest*
7685
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7688 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7689
7690
7691
7692
7693
7694
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7696 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7697 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7698   $as_echo_n "(cached) " >&6
7699 else
7700   lt_cv_prog_compiler_c_o=no
7701    $RM -r conftest 2>/dev/null
7702    mkdir conftest
7703    cd conftest
7704    mkdir out
7705    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7706
7707    lt_compiler_flag="-o out/conftest2.$ac_objext"
7708    # Insert the option either (1) after the last *FLAGS variable, or
7709    # (2) before a word containing "conftest.", or (3) at the end.
7710    # Note that $ac_compile itself does not contain backslashes and begins
7711    # with a dollar sign (not a hyphen), so the echo should work correctly.
7712    lt_compile=`echo "$ac_compile" | $SED \
7713    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7714    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7715    -e 's:$: $lt_compiler_flag:'`
7716    (eval echo "\"\$as_me:7716: $lt_compile\"" >&5)
7717    (eval "$lt_compile" 2>out/conftest.err)
7718    ac_status=$?
7719    cat out/conftest.err >&5
7720    echo "$as_me:7720: \$? = $ac_status" >&5
7721    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7722    then
7723      # The compiler can only warn and ignore the option if not recognized
7724      # So say no if there are warnings
7725      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7726      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7727      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7728        lt_cv_prog_compiler_c_o=yes
7729      fi
7730    fi
7731    chmod u+w . 2>&5
7732    $RM conftest*
7733    # SGI C++ compiler will create directory out/ii_files/ for
7734    # template instantiation
7735    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7736    $RM out/* && rmdir out
7737    cd ..
7738    $RM -r conftest
7739    $RM conftest*
7740
7741 fi
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7743 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7744
7745
7746
7747
7748 hard_links="nottested"
7749 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7750   # do not overwrite the value of need_locks provided by the user
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7752 $as_echo_n "checking if we can lock with hard links... " >&6; }
7753   hard_links=yes
7754   $RM conftest*
7755   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7756   touch conftest.a
7757   ln conftest.a conftest.b 2>&5 || hard_links=no
7758   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7760 $as_echo "$hard_links" >&6; }
7761   if test "$hard_links" = no; then
7762     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7763 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7764     need_locks=warn
7765   fi
7766 else
7767   need_locks=no
7768 fi
7769
7770
7771
7772
7773
7774
7775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7776 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7777
7778   runpath_var=
7779   allow_undefined_flag=
7780   always_export_symbols=no
7781   archive_cmds=
7782   archive_expsym_cmds=
7783   compiler_needs_object=no
7784   enable_shared_with_static_runtimes=no
7785   export_dynamic_flag_spec=
7786   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7787   hardcode_automatic=no
7788   hardcode_direct=no
7789   hardcode_direct_absolute=no
7790   hardcode_libdir_flag_spec=
7791   hardcode_libdir_flag_spec_ld=
7792   hardcode_libdir_separator=
7793   hardcode_minus_L=no
7794   hardcode_shlibpath_var=unsupported
7795   inherit_rpath=no
7796   link_all_deplibs=unknown
7797   module_cmds=
7798   module_expsym_cmds=
7799   old_archive_from_new_cmds=
7800   old_archive_from_expsyms_cmds=
7801   thread_safe_flag_spec=
7802   whole_archive_flag_spec=
7803   # include_expsyms should be a list of space-separated symbols to be *always*
7804   # included in the symbol list
7805   include_expsyms=
7806   # exclude_expsyms can be an extended regexp of symbols to exclude
7807   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7808   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7809   # as well as any symbol that contains `d'.
7810   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7811   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7812   # platforms (ab)use it in PIC code, but their linkers get confused if
7813   # the symbol is explicitly referenced.  Since portable code cannot
7814   # rely on this symbol name, it's probably fine to never include it in
7815   # preloaded symbol tables.
7816   # Exclude shared library initialization/finalization symbols.
7817   extract_expsyms_cmds=
7818
7819   case $host_os in
7820   cygwin* | mingw* | pw32* | cegcc*)
7821     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7822     # When not using gcc, we currently assume that we are using
7823     # Microsoft Visual C++.
7824     if test "$GCC" != yes; then
7825       with_gnu_ld=no
7826     fi
7827     ;;
7828   interix*)
7829     # we just hope/assume this is gcc and not c89 (= MSVC++)
7830     with_gnu_ld=yes
7831     ;;
7832   openbsd*)
7833     with_gnu_ld=no
7834     ;;
7835   linux* | k*bsd*-gnu)
7836     link_all_deplibs=no
7837     ;;
7838   esac
7839
7840   ld_shlibs=yes
7841   if test "$with_gnu_ld" = yes; then
7842     # If archive_cmds runs LD, not CC, wlarc should be empty
7843     wlarc='${wl}'
7844
7845     # Set some defaults for GNU ld with shared library support. These
7846     # are reset later if shared libraries are not supported. Putting them
7847     # here allows them to be overridden if necessary.
7848     runpath_var=LD_RUN_PATH
7849     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7850     export_dynamic_flag_spec='${wl}--export-dynamic'
7851     # ancient GNU ld didn't support --whole-archive et. al.
7852     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7853       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7854     else
7855       whole_archive_flag_spec=
7856     fi
7857     supports_anon_versioning=no
7858     case `$LD -v 2>&1` in
7859       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7860       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7861       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7862       *\ 2.11.*) ;; # other 2.11 versions
7863       *) supports_anon_versioning=yes ;;
7864     esac
7865
7866     # See if GNU ld supports shared libraries.
7867     case $host_os in
7868     aix[3-9]*)
7869       # On AIX/PPC, the GNU linker is very broken
7870       if test "$host_cpu" != ia64; then
7871         ld_shlibs=no
7872         cat <<_LT_EOF 1>&2
7873
7874 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7875 *** to be unable to reliably create shared libraries on AIX.
7876 *** Therefore, libtool is disabling shared libraries support.  If you
7877 *** really care for shared libraries, you may want to modify your PATH
7878 *** so that a non-GNU linker is found, and then restart.
7879
7880 _LT_EOF
7881       fi
7882       ;;
7883
7884     amigaos*)
7885       case $host_cpu in
7886       powerpc)
7887             # see comment about AmigaOS4 .so support
7888             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7889             archive_expsym_cmds=''
7890         ;;
7891       m68k)
7892             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)'
7893             hardcode_libdir_flag_spec='-L$libdir'
7894             hardcode_minus_L=yes
7895         ;;
7896       esac
7897       ;;
7898
7899     beos*)
7900       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7901         allow_undefined_flag=unsupported
7902         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7903         # support --undefined.  This deserves some investigation.  FIXME
7904         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7905       else
7906         ld_shlibs=no
7907       fi
7908       ;;
7909
7910     cygwin* | mingw* | pw32* | cegcc*)
7911       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7912       # as there is no search path for DLLs.
7913       hardcode_libdir_flag_spec='-L$libdir'
7914       allow_undefined_flag=unsupported
7915       always_export_symbols=no
7916       enable_shared_with_static_runtimes=yes
7917       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7918
7919       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7920         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7921         # If the export-symbols file already is a .def file (1st line
7922         # is EXPORTS), use it as is; otherwise, prepend...
7923         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7924           cp $export_symbols $output_objdir/$soname.def;
7925         else
7926           echo EXPORTS > $output_objdir/$soname.def;
7927           cat $export_symbols >> $output_objdir/$soname.def;
7928         fi~
7929         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7930       else
7931         ld_shlibs=no
7932       fi
7933       ;;
7934
7935     interix[3-9]*)
7936       hardcode_direct=no
7937       hardcode_shlibpath_var=no
7938       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7939       export_dynamic_flag_spec='${wl}-E'
7940       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7941       # Instead, shared libraries are loaded at an image base (0x10000000 by
7942       # default) and relocated if they conflict, which is a slow very memory
7943       # consuming and fragmenting process.  To avoid this, we pick a random,
7944       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7945       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7946       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7947       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'
7948       ;;
7949
7950     gnu* | linux* | tpf* | k*bsd*-gnu)
7951       tmp_diet=no
7952       if test "$host_os" = linux-dietlibc; then
7953         case $cc_basename in
7954           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7955         esac
7956       fi
7957       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7958          && test "$tmp_diet" = no
7959       then
7960         tmp_addflag=
7961         tmp_sharedflag='-shared'
7962         case $cc_basename,$host_cpu in
7963         pgcc*)                          # Portland Group C compiler
7964           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7965           tmp_addflag=' $pic_flag'
7966           ;;
7967         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7968           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7969           tmp_addflag=' $pic_flag -Mnomain' ;;
7970         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7971           tmp_addflag=' -i_dynamic' ;;
7972         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7973           tmp_addflag=' -i_dynamic -nofor_main' ;;
7974         ifc* | ifort*)                  # Intel Fortran compiler
7975           tmp_addflag=' -nofor_main' ;;
7976         lf95*)                          # Lahey Fortran 8.1
7977           whole_archive_flag_spec=
7978           tmp_sharedflag='--shared' ;;
7979         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7980           tmp_sharedflag='-qmkshrobj'
7981           tmp_addflag= ;;
7982         esac
7983         case `$CC -V 2>&1 | sed 5q` in
7984         *Sun\ C*)                       # Sun C 5.9
7985           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7986           compiler_needs_object=yes
7987           tmp_sharedflag='-G' ;;
7988         *Sun\ F*)                       # Sun Fortran 8.3
7989           tmp_sharedflag='-G' ;;
7990         esac
7991         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992
7993         if test "x$supports_anon_versioning" = xyes; then
7994           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7995             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7996             echo "local: *; };" >> $output_objdir/$libname.ver~
7997             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7998         fi
7999
8000         case $cc_basename in
8001         xlf*)
8002           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8003           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8004           hardcode_libdir_flag_spec=
8005           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8006           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8007           if test "x$supports_anon_versioning" = xyes; then
8008             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8009               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8010               echo "local: *; };" >> $output_objdir/$libname.ver~
8011               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8012           fi
8013           ;;
8014         esac
8015       else
8016         ld_shlibs=no
8017       fi
8018       ;;
8019
8020     netbsd* | netbsdelf*-gnu)
8021       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8022         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8023         wlarc=
8024       else
8025         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8026         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8027       fi
8028       ;;
8029
8030     solaris*)
8031       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8032         ld_shlibs=no
8033         cat <<_LT_EOF 1>&2
8034
8035 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8036 *** create shared libraries on Solaris systems.  Therefore, libtool
8037 *** is disabling shared libraries support.  We urge you to upgrade GNU
8038 *** binutils to release 2.9.1 or newer.  Another option is to modify
8039 *** your PATH or compiler configuration so that the native linker is
8040 *** used, and then restart.
8041
8042 _LT_EOF
8043       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8044         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8045         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8046       else
8047         ld_shlibs=no
8048       fi
8049       ;;
8050
8051     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8052       case `$LD -v 2>&1` in
8053         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8054         ld_shlibs=no
8055         cat <<_LT_EOF 1>&2
8056
8057 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8058 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8059 *** is disabling shared libraries support.  We urge you to upgrade GNU
8060 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8061 *** your PATH or compiler configuration so that the native linker is
8062 *** used, and then restart.
8063
8064 _LT_EOF
8065         ;;
8066         *)
8067           # For security reasons, it is highly recommended that you always
8068           # use absolute paths for naming shared libraries, and exclude the
8069           # DT_RUNPATH tag from executables and libraries.  But doing so
8070           # requires that you compile everything twice, which is a pain.
8071           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8072             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8073             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8075           else
8076             ld_shlibs=no
8077           fi
8078         ;;
8079       esac
8080       ;;
8081
8082     sunos4*)
8083       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8084       wlarc=
8085       hardcode_direct=yes
8086       hardcode_shlibpath_var=no
8087       ;;
8088
8089     *)
8090       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8091         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8093       else
8094         ld_shlibs=no
8095       fi
8096       ;;
8097     esac
8098
8099     if test "$ld_shlibs" = no; then
8100       runpath_var=
8101       hardcode_libdir_flag_spec=
8102       export_dynamic_flag_spec=
8103       whole_archive_flag_spec=
8104     fi
8105   else
8106     # PORTME fill in a description of your system's linker (not GNU ld)
8107     case $host_os in
8108     aix3*)
8109       allow_undefined_flag=unsupported
8110       always_export_symbols=yes
8111       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'
8112       # Note: this linker hardcodes the directories in LIBPATH if there
8113       # are no directories specified by -L.
8114       hardcode_minus_L=yes
8115       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8116         # Neither direct hardcoding nor static linking is supported with a
8117         # broken collect2.
8118         hardcode_direct=unsupported
8119       fi
8120       ;;
8121
8122     aix[4-9]*)
8123       if test "$host_cpu" = ia64; then
8124         # On IA64, the linker does run time linking by default, so we don't
8125         # have to do anything special.
8126         aix_use_runtimelinking=no
8127         exp_sym_flag='-Bexport'
8128         no_entry_flag=""
8129       else
8130         # If we're using GNU nm, then we don't want the "-C" option.
8131         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8132         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8133           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8134         else
8135           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'
8136         fi
8137         aix_use_runtimelinking=no
8138
8139         # Test if we are trying to use run time linking or normal
8140         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8141         # need to do runtime linking.
8142         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8143           for ld_flag in $LDFLAGS; do
8144           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8145             aix_use_runtimelinking=yes
8146             break
8147           fi
8148           done
8149           ;;
8150         esac
8151
8152         exp_sym_flag='-bexport'
8153         no_entry_flag='-bnoentry'
8154       fi
8155
8156       # When large executables or shared objects are built, AIX ld can
8157       # have problems creating the table of contents.  If linking a library
8158       # or program results in "error TOC overflow" add -mminimal-toc to
8159       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8160       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8161
8162       archive_cmds=''
8163       hardcode_direct=yes
8164       hardcode_direct_absolute=yes
8165       hardcode_libdir_separator=':'
8166       link_all_deplibs=yes
8167       file_list_spec='${wl}-f,'
8168
8169       if test "$GCC" = yes; then
8170         case $host_os in aix4.[012]|aix4.[012].*)
8171         # We only want to do this on AIX 4.2 and lower, the check
8172         # below for broken collect2 doesn't work under 4.3+
8173           collect2name=`${CC} -print-prog-name=collect2`
8174           if test -f "$collect2name" &&
8175            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8176           then
8177           # We have reworked collect2
8178           :
8179           else
8180           # We have old collect2
8181           hardcode_direct=unsupported
8182           # It fails to find uninstalled libraries when the uninstalled
8183           # path is not listed in the libpath.  Setting hardcode_minus_L
8184           # to unsupported forces relinking
8185           hardcode_minus_L=yes
8186           hardcode_libdir_flag_spec='-L$libdir'
8187           hardcode_libdir_separator=
8188           fi
8189           ;;
8190         esac
8191         shared_flag='-shared'
8192         if test "$aix_use_runtimelinking" = yes; then
8193           shared_flag="$shared_flag "'${wl}-G'
8194         fi
8195         link_all_deplibs=no
8196       else
8197         # not using gcc
8198         if test "$host_cpu" = ia64; then
8199         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8200         # chokes on -Wl,-G. The following line is correct:
8201           shared_flag='-G'
8202         else
8203           if test "$aix_use_runtimelinking" = yes; then
8204             shared_flag='${wl}-G'
8205           else
8206             shared_flag='${wl}-bM:SRE'
8207           fi
8208         fi
8209       fi
8210
8211       export_dynamic_flag_spec='${wl}-bexpall'
8212       # It seems that -bexpall does not export symbols beginning with
8213       # underscore (_), so it is better to generate a list of symbols to export.
8214       always_export_symbols=yes
8215       if test "$aix_use_runtimelinking" = yes; then
8216         # Warning - without using the other runtime loading flags (-brtl),
8217         # -berok will link without error, but may produce a broken library.
8218         allow_undefined_flag='-berok'
8219         # Determine the default libpath from the value encoded in an
8220         # empty executable.
8221         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h.  */
8223
8224 int
8225 main ()
8226 {
8227
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233
8234 lt_aix_libpath_sed='
8235     /Import File Strings/,/^$/ {
8236         /^0/ {
8237             s/^0  *\(.*\)$/\1/
8238             p
8239         }
8240     }'
8241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8242 # Check for a 64-bit object if we didn't find anything.
8243 if test -z "$aix_libpath"; then
8244   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8245 fi
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248     conftest$ac_exeext conftest.$ac_ext
8249 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8250
8251         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8252         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8253       else
8254         if test "$host_cpu" = ia64; then
8255           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8256           allow_undefined_flag="-z nodefs"
8257           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"
8258         else
8259          # Determine the default libpath from the value encoded in an
8260          # empty executable.
8261          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h.  */
8263
8264 int
8265 main ()
8266 {
8267
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_link "$LINENO"; then :
8273
8274 lt_aix_libpath_sed='
8275     /Import File Strings/,/^$/ {
8276         /^0/ {
8277             s/^0  *\(.*\)$/\1/
8278             p
8279         }
8280     }'
8281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8282 # Check for a 64-bit object if we didn't find anything.
8283 if test -z "$aix_libpath"; then
8284   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8285 fi
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288     conftest$ac_exeext conftest.$ac_ext
8289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8290
8291          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8292           # Warning - without using the other run time loading flags,
8293           # -berok will link without error, but may produce a broken library.
8294           no_undefined_flag=' ${wl}-bernotok'
8295           allow_undefined_flag=' ${wl}-berok'
8296           # Exported symbols can be pulled into shared objects from archives
8297           whole_archive_flag_spec='$convenience'
8298           archive_cmds_need_lc=yes
8299           # This is similar to how AIX traditionally builds its shared libraries.
8300           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'
8301         fi
8302       fi
8303       ;;
8304
8305     amigaos*)
8306       case $host_cpu in
8307       powerpc)
8308             # see comment about AmigaOS4 .so support
8309             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310             archive_expsym_cmds=''
8311         ;;
8312       m68k)
8313             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)'
8314             hardcode_libdir_flag_spec='-L$libdir'
8315             hardcode_minus_L=yes
8316         ;;
8317       esac
8318       ;;
8319
8320     bsdi[45]*)
8321       export_dynamic_flag_spec=-rdynamic
8322       ;;
8323
8324     cygwin* | mingw* | pw32* | cegcc*)
8325       # When not using gcc, we currently assume that we are using
8326       # Microsoft Visual C++.
8327       # hardcode_libdir_flag_spec is actually meaningless, as there is
8328       # no search path for DLLs.
8329       hardcode_libdir_flag_spec=' '
8330       allow_undefined_flag=unsupported
8331       # Tell ltmain to make .lib files, not .a files.
8332       libext=lib
8333       # Tell ltmain to make .dll files, not .so files.
8334       shrext_cmds=".dll"
8335       # FIXME: Setting linknames here is a bad hack.
8336       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8337       # The linker will automatically build a .lib file if we build a DLL.
8338       old_archive_from_new_cmds='true'
8339       # FIXME: Should let the user specify the lib program.
8340       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8341       fix_srcfile_path='`cygpath -w "$srcfile"`'
8342       enable_shared_with_static_runtimes=yes
8343       ;;
8344
8345     darwin* | rhapsody*)
8346
8347
8348   archive_cmds_need_lc=no
8349   hardcode_direct=no
8350   hardcode_automatic=yes
8351   hardcode_shlibpath_var=unsupported
8352   whole_archive_flag_spec=''
8353   link_all_deplibs=yes
8354   allow_undefined_flag="$_lt_dar_allow_undefined"
8355   case $cc_basename in
8356      ifort*) _lt_dar_can_shared=yes ;;
8357      *) _lt_dar_can_shared=$GCC ;;
8358   esac
8359   if test "$_lt_dar_can_shared" = "yes"; then
8360     output_verbose_link_cmd=echo
8361     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8362     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8363     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}"
8364     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}"
8365
8366   else
8367   ld_shlibs=no
8368   fi
8369
8370       ;;
8371
8372     dgux*)
8373       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8374       hardcode_libdir_flag_spec='-L$libdir'
8375       hardcode_shlibpath_var=no
8376       ;;
8377
8378     freebsd1*)
8379       ld_shlibs=no
8380       ;;
8381
8382     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8383     # support.  Future versions do this automatically, but an explicit c++rt0.o
8384     # does not break anything, and helps significantly (at the cost of a little
8385     # extra space).
8386     freebsd2.2*)
8387       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8388       hardcode_libdir_flag_spec='-R$libdir'
8389       hardcode_direct=yes
8390       hardcode_shlibpath_var=no
8391       ;;
8392
8393     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8394     freebsd2*)
8395       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8396       hardcode_direct=yes
8397       hardcode_minus_L=yes
8398       hardcode_shlibpath_var=no
8399       ;;
8400
8401     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8402     freebsd* | dragonfly*)
8403       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8404       hardcode_libdir_flag_spec='-R$libdir'
8405       hardcode_direct=yes
8406       hardcode_shlibpath_var=no
8407       ;;
8408
8409     hpux9*)
8410       if test "$GCC" = yes; then
8411         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8412       else
8413         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'
8414       fi
8415       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8416       hardcode_libdir_separator=:
8417       hardcode_direct=yes
8418
8419       # hardcode_minus_L: Not really in the search PATH,
8420       # but as the default location of the library.
8421       hardcode_minus_L=yes
8422       export_dynamic_flag_spec='${wl}-E'
8423       ;;
8424
8425     hpux10*)
8426       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8427         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8428       else
8429         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8430       fi
8431       if test "$with_gnu_ld" = no; then
8432         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8433         hardcode_libdir_flag_spec_ld='+b $libdir'
8434         hardcode_libdir_separator=:
8435         hardcode_direct=yes
8436         hardcode_direct_absolute=yes
8437         export_dynamic_flag_spec='${wl}-E'
8438         # hardcode_minus_L: Not really in the search PATH,
8439         # but as the default location of the library.
8440         hardcode_minus_L=yes
8441       fi
8442       ;;
8443
8444     hpux11*)
8445       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8446         case $host_cpu in
8447         hppa*64*)
8448           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449           ;;
8450         ia64*)
8451           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8452           ;;
8453         *)
8454           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8455           ;;
8456         esac
8457       else
8458         case $host_cpu in
8459         hppa*64*)
8460           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461           ;;
8462         ia64*)
8463           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8464           ;;
8465         *)
8466           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8467           ;;
8468         esac
8469       fi
8470       if test "$with_gnu_ld" = no; then
8471         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8472         hardcode_libdir_separator=:
8473
8474         case $host_cpu in
8475         hppa*64*|ia64*)
8476           hardcode_direct=no
8477           hardcode_shlibpath_var=no
8478           ;;
8479         *)
8480           hardcode_direct=yes
8481           hardcode_direct_absolute=yes
8482           export_dynamic_flag_spec='${wl}-E'
8483
8484           # hardcode_minus_L: Not really in the search PATH,
8485           # but as the default location of the library.
8486           hardcode_minus_L=yes
8487           ;;
8488         esac
8489       fi
8490       ;;
8491
8492     irix5* | irix6* | nonstopux*)
8493       if test "$GCC" = yes; then
8494         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8495         # Try to use the -exported_symbol ld option, if it does not
8496         # work, assume that -exports_file does not work either and
8497         # implicitly export all symbols.
8498         save_LDFLAGS="$LDFLAGS"
8499         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8500         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h.  */
8502 int foo(void) {}
8503 _ACEOF
8504 if ac_fn_c_try_link "$LINENO"; then :
8505   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8506
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext \
8509     conftest$ac_exeext conftest.$ac_ext
8510         LDFLAGS="$save_LDFLAGS"
8511       else
8512         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8513         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8514       fi
8515       archive_cmds_need_lc='no'
8516       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8517       hardcode_libdir_separator=:
8518       inherit_rpath=yes
8519       link_all_deplibs=yes
8520       ;;
8521
8522     netbsd* | netbsdelf*-gnu)
8523       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8524         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8525       else
8526         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8527       fi
8528       hardcode_libdir_flag_spec='-R$libdir'
8529       hardcode_direct=yes
8530       hardcode_shlibpath_var=no
8531       ;;
8532
8533     newsos6)
8534       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535       hardcode_direct=yes
8536       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8537       hardcode_libdir_separator=:
8538       hardcode_shlibpath_var=no
8539       ;;
8540
8541     *nto* | *qnx*)
8542       ;;
8543
8544     openbsd*)
8545       if test -f /usr/libexec/ld.so; then
8546         hardcode_direct=yes
8547         hardcode_shlibpath_var=no
8548         hardcode_direct_absolute=yes
8549         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8550           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8551           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8552           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8553           export_dynamic_flag_spec='${wl}-E'
8554         else
8555           case $host_os in
8556            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8557              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8558              hardcode_libdir_flag_spec='-R$libdir'
8559              ;;
8560            *)
8561              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8562              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8563              ;;
8564           esac
8565         fi
8566       else
8567         ld_shlibs=no
8568       fi
8569       ;;
8570
8571     os2*)
8572       hardcode_libdir_flag_spec='-L$libdir'
8573       hardcode_minus_L=yes
8574       allow_undefined_flag=unsupported
8575       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'
8576       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8577       ;;
8578
8579     osf3*)
8580       if test "$GCC" = yes; then
8581         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8582         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8583       else
8584         allow_undefined_flag=' -expect_unresolved \*'
8585         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8586       fi
8587       archive_cmds_need_lc='no'
8588       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8589       hardcode_libdir_separator=:
8590       ;;
8591
8592     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8593       if test "$GCC" = yes; then
8594         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8595         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8596         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8597       else
8598         allow_undefined_flag=' -expect_unresolved \*'
8599         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8600         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~
8601         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8602
8603         # Both c and cxx compiler support -rpath directly
8604         hardcode_libdir_flag_spec='-rpath $libdir'
8605       fi
8606       archive_cmds_need_lc='no'
8607       hardcode_libdir_separator=:
8608       ;;
8609
8610     solaris*)
8611       no_undefined_flag=' -z defs'
8612       if test "$GCC" = yes; then
8613         wlarc='${wl}'
8614         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8615         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8616           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8617       else
8618         case `$CC -V 2>&1` in
8619         *"Compilers 5.0"*)
8620           wlarc=''
8621           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8622           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8623           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8624           ;;
8625         *)
8626           wlarc='${wl}'
8627           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8628           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8629           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8630           ;;
8631         esac
8632       fi
8633       hardcode_libdir_flag_spec='-R$libdir'
8634       hardcode_shlibpath_var=no
8635       case $host_os in
8636       solaris2.[0-5] | solaris2.[0-5].*) ;;
8637       *)
8638         # The compiler driver will combine and reorder linker options,
8639         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8640         # but is careful enough not to reorder.
8641         # Supported since Solaris 2.6 (maybe 2.5.1?)
8642         if test "$GCC" = yes; then
8643           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8644         else
8645           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8646         fi
8647         ;;
8648       esac
8649       link_all_deplibs=yes
8650       ;;
8651
8652     sunos4*)
8653       if test "x$host_vendor" = xsequent; then
8654         # Use $CC to link under sequent, because it throws in some extra .o
8655         # files that make .init and .fini sections work.
8656         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8657       else
8658         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8659       fi
8660       hardcode_libdir_flag_spec='-L$libdir'
8661       hardcode_direct=yes
8662       hardcode_minus_L=yes
8663       hardcode_shlibpath_var=no
8664       ;;
8665
8666     sysv4)
8667       case $host_vendor in
8668         sni)
8669           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670           hardcode_direct=yes # is this really true???
8671         ;;
8672         siemens)
8673           ## LD is ld it makes a PLAMLIB
8674           ## CC just makes a GrossModule.
8675           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8676           reload_cmds='$CC -r -o $output$reload_objs'
8677           hardcode_direct=no
8678         ;;
8679         motorola)
8680           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8681           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8682         ;;
8683       esac
8684       runpath_var='LD_RUN_PATH'
8685       hardcode_shlibpath_var=no
8686       ;;
8687
8688     sysv4.3*)
8689       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8690       hardcode_shlibpath_var=no
8691       export_dynamic_flag_spec='-Bexport'
8692       ;;
8693
8694     sysv4*MP*)
8695       if test -d /usr/nec; then
8696         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8697         hardcode_shlibpath_var=no
8698         runpath_var=LD_RUN_PATH
8699         hardcode_runpath_var=yes
8700         ld_shlibs=yes
8701       fi
8702       ;;
8703
8704     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8705       no_undefined_flag='${wl}-z,text'
8706       archive_cmds_need_lc=no
8707       hardcode_shlibpath_var=no
8708       runpath_var='LD_RUN_PATH'
8709
8710       if test "$GCC" = yes; then
8711         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8712         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8713       else
8714         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8715         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8716       fi
8717       ;;
8718
8719     sysv5* | sco3.2v5* | sco5v6*)
8720       # Note: We can NOT use -z defs as we might desire, because we do not
8721       # link with -lc, and that would cause any symbols used from libc to
8722       # always be unresolved, which means just about no library would
8723       # ever link correctly.  If we're not using GNU ld we use -z text
8724       # though, which does catch some bad symbols but isn't as heavy-handed
8725       # as -z defs.
8726       no_undefined_flag='${wl}-z,text'
8727       allow_undefined_flag='${wl}-z,nodefs'
8728       archive_cmds_need_lc=no
8729       hardcode_shlibpath_var=no
8730       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8731       hardcode_libdir_separator=':'
8732       link_all_deplibs=yes
8733       export_dynamic_flag_spec='${wl}-Bexport'
8734       runpath_var='LD_RUN_PATH'
8735
8736       if test "$GCC" = yes; then
8737         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8738         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8739       else
8740         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8741         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8742       fi
8743       ;;
8744
8745     uts4*)
8746       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8747       hardcode_libdir_flag_spec='-L$libdir'
8748       hardcode_shlibpath_var=no
8749       ;;
8750
8751     *)
8752       ld_shlibs=no
8753       ;;
8754     esac
8755
8756     if test x$host_vendor = xsni; then
8757       case $host in
8758       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8759         export_dynamic_flag_spec='${wl}-Blargedynsym'
8760         ;;
8761       esac
8762     fi
8763   fi
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8766 $as_echo "$ld_shlibs" >&6; }
8767 test "$ld_shlibs" = no && can_build_shared=no
8768
8769 with_gnu_ld=$with_gnu_ld
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785 #
8786 # Do we need to explicitly link libc?
8787 #
8788 case "x$archive_cmds_need_lc" in
8789 x|xyes)
8790   # Assume -lc should be added
8791   archive_cmds_need_lc=yes
8792
8793   if test "$enable_shared" = yes && test "$GCC" = yes; then
8794     case $archive_cmds in
8795     *'~'*)
8796       # FIXME: we may have to deal with multi-command sequences.
8797       ;;
8798     '$CC '*)
8799       # Test whether the compiler implicitly links with -lc since on some
8800       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8801       # to ld, don't add -lc before -lgcc.
8802       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8803 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8804       $RM conftest*
8805       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8806
8807       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8808   (eval $ac_compile) 2>&5
8809   ac_status=$?
8810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8811   test $ac_status = 0; } 2>conftest.err; then
8812         soname=conftest
8813         lib=conftest
8814         libobjs=conftest.$ac_objext
8815         deplibs=
8816         wl=$lt_prog_compiler_wl
8817         pic_flag=$lt_prog_compiler_pic
8818         compiler_flags=-v
8819         linker_flags=-v
8820         verstring=
8821         output_objdir=.
8822         libname=conftest
8823         lt_save_allow_undefined_flag=$allow_undefined_flag
8824         allow_undefined_flag=
8825         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8826   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8827   ac_status=$?
8828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8829   test $ac_status = 0; }
8830         then
8831           archive_cmds_need_lc=no
8832         else
8833           archive_cmds_need_lc=yes
8834         fi
8835         allow_undefined_flag=$lt_save_allow_undefined_flag
8836       else
8837         cat conftest.err 1>&5
8838       fi
8839       $RM conftest*
8840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8841 $as_echo "$archive_cmds_need_lc" >&6; }
8842       ;;
8843     esac
8844   fi
8845   ;;
8846 esac
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9005 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9006
9007 if test "$GCC" = yes; then
9008   case $host_os in
9009     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9010     *) lt_awk_arg="/^libraries:/" ;;
9011   esac
9012   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9013   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9014     # if the path contains ";" then we assume it to be the separator
9015     # otherwise default to the standard path separator (i.e. ":") - it is
9016     # assumed that no part of a normal pathname contains ";" but that should
9017     # okay in the real world where ";" in dirpaths is itself problematic.
9018     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9019   else
9020     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9021   fi
9022   # Ok, now we have the path, separated by spaces, we can step through it
9023   # and add multilib dir if necessary.
9024   lt_tmp_lt_search_path_spec=
9025   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9026   for lt_sys_path in $lt_search_path_spec; do
9027     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9028       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9029     else
9030       test -d "$lt_sys_path" && \
9031         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9032     fi
9033   done
9034   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9035 BEGIN {RS=" "; FS="/|\n";} {
9036   lt_foo="";
9037   lt_count=0;
9038   for (lt_i = NF; lt_i > 0; lt_i--) {
9039     if ($lt_i != "" && $lt_i != ".") {
9040       if ($lt_i == "..") {
9041         lt_count++;
9042       } else {
9043         if (lt_count == 0) {
9044           lt_foo="/" $lt_i lt_foo;
9045         } else {
9046           lt_count--;
9047         }
9048       }
9049     }
9050   }
9051   if (lt_foo != "") { lt_freq[lt_foo]++; }
9052   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9053 }'`
9054   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9055 else
9056   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9057 fi
9058 library_names_spec=
9059 libname_spec='lib$name'
9060 soname_spec=
9061 shrext_cmds=".so"
9062 postinstall_cmds=
9063 postuninstall_cmds=
9064 finish_cmds=
9065 finish_eval=
9066 shlibpath_var=
9067 shlibpath_overrides_runpath=unknown
9068 version_type=none
9069 dynamic_linker="$host_os ld.so"
9070 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9071 need_lib_prefix=unknown
9072 hardcode_into_libs=no
9073
9074 # when you set need_version to no, make sure it does not cause -set_version
9075 # flags to be left without arguments
9076 need_version=unknown
9077
9078 case $host_os in
9079 aix3*)
9080   version_type=linux
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9082   shlibpath_var=LIBPATH
9083
9084   # AIX 3 has no versioning support, so we append a major version to the name.
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   ;;
9087
9088 aix[4-9]*)
9089   version_type=linux
9090   need_lib_prefix=no
9091   need_version=no
9092   hardcode_into_libs=yes
9093   if test "$host_cpu" = ia64; then
9094     # AIX 5 supports IA64
9095     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9096     shlibpath_var=LD_LIBRARY_PATH
9097   else
9098     # With GCC up to 2.95.x, collect2 would create an import file
9099     # for dependence libraries.  The import file would start with
9100     # the line `#! .'.  This would cause the generated library to
9101     # depend on `.', always an invalid library.  This was fixed in
9102     # development snapshots of GCC prior to 3.0.
9103     case $host_os in
9104       aix4 | aix4.[01] | aix4.[01].*)
9105       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9106            echo ' yes '
9107            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9108         :
9109       else
9110         can_build_shared=no
9111       fi
9112       ;;
9113     esac
9114     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9115     # soname into executable. Probably we can add versioning support to
9116     # collect2, so additional links can be useful in future.
9117     if test "$aix_use_runtimelinking" = yes; then
9118       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9119       # instead of lib<name>.a to let people know that these are not
9120       # typical AIX shared libraries.
9121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122     else
9123       # We preserve .a as extension for shared libraries through AIX4.2
9124       # and later when we are not doing run time linking.
9125       library_names_spec='${libname}${release}.a $libname.a'
9126       soname_spec='${libname}${release}${shared_ext}$major'
9127     fi
9128     shlibpath_var=LIBPATH
9129   fi
9130   ;;
9131
9132 amigaos*)
9133   case $host_cpu in
9134   powerpc)
9135     # Since July 2007 AmigaOS4 officially supports .so libraries.
9136     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138     ;;
9139   m68k)
9140     library_names_spec='$libname.ixlibrary $libname.a'
9141     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9142     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9143     ;;
9144   esac
9145   ;;
9146
9147 beos*)
9148   library_names_spec='${libname}${shared_ext}'
9149   dynamic_linker="$host_os ld.so"
9150   shlibpath_var=LIBRARY_PATH
9151   ;;
9152
9153 bsdi[45]*)
9154   version_type=linux
9155   need_version=no
9156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157   soname_spec='${libname}${release}${shared_ext}$major'
9158   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9159   shlibpath_var=LD_LIBRARY_PATH
9160   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9161   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9162   # the default ld.so.conf also contains /usr/contrib/lib and
9163   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9164   # libtool to hard-code these into programs
9165   ;;
9166
9167 cygwin* | mingw* | pw32* | cegcc*)
9168   version_type=windows
9169   shrext_cmds=".dll"
9170   need_version=no
9171   need_lib_prefix=no
9172
9173   case $GCC,$host_os in
9174   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9175     library_names_spec='$libname.dll.a'
9176     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9177     postinstall_cmds='base_file=`basename \${file}`~
9178       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9179       dldir=$destdir/`dirname \$dlpath`~
9180       test -d \$dldir || mkdir -p \$dldir~
9181       $install_prog $dir/$dlname \$dldir/$dlname~
9182       chmod a+x \$dldir/$dlname~
9183       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9184         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9185       fi'
9186     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9187       dlpath=$dir/\$dldll~
9188        $RM \$dlpath'
9189     shlibpath_overrides_runpath=yes
9190
9191     case $host_os in
9192     cygwin*)
9193       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9194       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9195       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9196       ;;
9197     mingw* | cegcc*)
9198       # MinGW DLLs use traditional 'lib' prefix
9199       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9200       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9201       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9202         # It is most probably a Windows format PATH printed by
9203         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9204         # path with ; separators, and with drive letters. We can handle the
9205         # drive letters (cygwin fileutils understands them), so leave them,
9206         # especially as we might pass files found there to a mingw objdump,
9207         # which wouldn't understand a cygwinified path. Ahh.
9208         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9209       else
9210         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9211       fi
9212       ;;
9213     pw32*)
9214       # pw32 DLLs use 'pw' prefix rather than 'lib'
9215       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9216       ;;
9217     esac
9218     ;;
9219
9220   *)
9221     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9222     ;;
9223   esac
9224   dynamic_linker='Win32 ld.exe'
9225   # FIXME: first we should search . and the directory the executable is in
9226   shlibpath_var=PATH
9227   ;;
9228
9229 darwin* | rhapsody*)
9230   dynamic_linker="$host_os dyld"
9231   version_type=darwin
9232   need_lib_prefix=no
9233   need_version=no
9234   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9235   soname_spec='${libname}${release}${major}$shared_ext'
9236   shlibpath_overrides_runpath=yes
9237   shlibpath_var=DYLD_LIBRARY_PATH
9238   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9239
9240   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9241   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9242   ;;
9243
9244 dgux*)
9245   version_type=linux
9246   need_lib_prefix=no
9247   need_version=no
9248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9249   soname_spec='${libname}${release}${shared_ext}$major'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   ;;
9252
9253 freebsd1*)
9254   dynamic_linker=no
9255   ;;
9256
9257 freebsd* | dragonfly*)
9258   # DragonFly does not have aout.  When/if they implement a new
9259   # versioning mechanism, adjust this.
9260   if test -x /usr/bin/objformat; then
9261     objformat=`/usr/bin/objformat`
9262   else
9263     case $host_os in
9264     freebsd[123]*) objformat=aout ;;
9265     *) objformat=elf ;;
9266     esac
9267   fi
9268   version_type=freebsd-$objformat
9269   case $version_type in
9270     freebsd-elf*)
9271       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9272       need_version=no
9273       need_lib_prefix=no
9274       ;;
9275     freebsd-*)
9276       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9277       need_version=yes
9278       ;;
9279   esac
9280   shlibpath_var=LD_LIBRARY_PATH
9281   case $host_os in
9282   freebsd2*)
9283     shlibpath_overrides_runpath=yes
9284     ;;
9285   freebsd3.[01]* | freebsdelf3.[01]*)
9286     shlibpath_overrides_runpath=yes
9287     hardcode_into_libs=yes
9288     ;;
9289   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9290   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9291     shlibpath_overrides_runpath=no
9292     hardcode_into_libs=yes
9293     ;;
9294   *) # from 4.6 on, and DragonFly
9295     shlibpath_overrides_runpath=yes
9296     hardcode_into_libs=yes
9297     ;;
9298   esac
9299   ;;
9300
9301 gnu*)
9302   version_type=linux
9303   need_lib_prefix=no
9304   need_version=no
9305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9306   soname_spec='${libname}${release}${shared_ext}$major'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   hardcode_into_libs=yes
9309   ;;
9310
9311 hpux9* | hpux10* | hpux11*)
9312   # Give a soname corresponding to the major version so that dld.sl refuses to
9313   # link against other versions.
9314   version_type=sunos
9315   need_lib_prefix=no
9316   need_version=no
9317   case $host_cpu in
9318   ia64*)
9319     shrext_cmds='.so'
9320     hardcode_into_libs=yes
9321     dynamic_linker="$host_os dld.so"
9322     shlibpath_var=LD_LIBRARY_PATH
9323     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325     soname_spec='${libname}${release}${shared_ext}$major'
9326     if test "X$HPUX_IA64_MODE" = X32; then
9327       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9328     else
9329       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9330     fi
9331     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9332     ;;
9333   hppa*64*)
9334     shrext_cmds='.sl'
9335     hardcode_into_libs=yes
9336     dynamic_linker="$host_os dld.sl"
9337     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9338     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340     soname_spec='${libname}${release}${shared_ext}$major'
9341     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9343     ;;
9344   *)
9345     shrext_cmds='.sl'
9346     dynamic_linker="$host_os dld.sl"
9347     shlibpath_var=SHLIB_PATH
9348     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350     soname_spec='${libname}${release}${shared_ext}$major'
9351     ;;
9352   esac
9353   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9354   postinstall_cmds='chmod 555 $lib'
9355   ;;
9356
9357 interix[3-9]*)
9358   version_type=linux
9359   need_lib_prefix=no
9360   need_version=no
9361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362   soname_spec='${libname}${release}${shared_ext}$major'
9363   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9364   shlibpath_var=LD_LIBRARY_PATH
9365   shlibpath_overrides_runpath=no
9366   hardcode_into_libs=yes
9367   ;;
9368
9369 irix5* | irix6* | nonstopux*)
9370   case $host_os in
9371     nonstopux*) version_type=nonstopux ;;
9372     *)
9373         if test "$lt_cv_prog_gnu_ld" = yes; then
9374                 version_type=linux
9375         else
9376                 version_type=irix
9377         fi ;;
9378   esac
9379   need_lib_prefix=no
9380   need_version=no
9381   soname_spec='${libname}${release}${shared_ext}$major'
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9383   case $host_os in
9384   irix5* | nonstopux*)
9385     libsuff= shlibsuff=
9386     ;;
9387   *)
9388     case $LD in # libtool.m4 will add one of these switches to LD
9389     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390       libsuff= shlibsuff= libmagic=32-bit;;
9391     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392       libsuff=32 shlibsuff=N32 libmagic=N32;;
9393     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395     *) libsuff= shlibsuff= libmagic=never-match;;
9396     esac
9397     ;;
9398   esac
9399   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400   shlibpath_overrides_runpath=no
9401   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403   hardcode_into_libs=yes
9404   ;;
9405
9406 # No shared lib support for Linux oldld, aout, or coff.
9407 linux*oldld* | linux*aout* | linux*coff*)
9408   dynamic_linker=no
9409   ;;
9410
9411 # This must be Linux ELF.
9412 linux* | k*bsd*-gnu)
9413   version_type=linux
9414   need_lib_prefix=no
9415   need_version=no
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419   shlibpath_var=LD_LIBRARY_PATH
9420   shlibpath_overrides_runpath=no
9421   # Some binutils ld are patched to set DT_RUNPATH
9422   save_LDFLAGS=$LDFLAGS
9423   save_libdir=$libdir
9424   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9425        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h.  */
9428
9429 int
9430 main ()
9431 {
9432
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 if ac_fn_c_try_link "$LINENO"; then :
9438   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9439   shlibpath_overrides_runpath=yes
9440 fi
9441 fi
9442 rm -f core conftest.err conftest.$ac_objext \
9443     conftest$ac_exeext conftest.$ac_ext
9444   LDFLAGS=$save_LDFLAGS
9445   libdir=$save_libdir
9446
9447   # This implies no fast_install, which is unacceptable.
9448   # Some rework will be needed to allow for fast_install
9449   # before this can be enabled.
9450   hardcode_into_libs=yes
9451
9452   # Append ld.so.conf contents to the search path
9453   if test -f /etc/ld.so.conf; then
9454     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;/^$/d' | tr '\n' ' '`
9455     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9456   fi
9457
9458   # We used to test for /lib/ld.so.1 and disable shared libraries on
9459   # powerpc, because MkLinux only supported shared libraries with the
9460   # GNU dynamic linker.  Since this was broken with cross compilers,
9461   # most powerpc-linux boxes support dynamic linking these days and
9462   # people can always --disable-shared, the test was removed, and we
9463   # assume the GNU/Linux dynamic linker is in use.
9464   dynamic_linker='GNU/Linux ld.so'
9465   ;;
9466
9467 netbsdelf*-gnu)
9468   version_type=linux
9469   need_lib_prefix=no
9470   need_version=no
9471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9472   soname_spec='${libname}${release}${shared_ext}$major'
9473   shlibpath_var=LD_LIBRARY_PATH
9474   shlibpath_overrides_runpath=no
9475   hardcode_into_libs=yes
9476   dynamic_linker='NetBSD ld.elf_so'
9477   ;;
9478
9479 netbsd*)
9480   version_type=sunos
9481   need_lib_prefix=no
9482   need_version=no
9483   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9485     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9486     dynamic_linker='NetBSD (a.out) ld.so'
9487   else
9488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9489     soname_spec='${libname}${release}${shared_ext}$major'
9490     dynamic_linker='NetBSD ld.elf_so'
9491   fi
9492   shlibpath_var=LD_LIBRARY_PATH
9493   shlibpath_overrides_runpath=yes
9494   hardcode_into_libs=yes
9495   ;;
9496
9497 newsos6)
9498   version_type=linux
9499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500   shlibpath_var=LD_LIBRARY_PATH
9501   shlibpath_overrides_runpath=yes
9502   ;;
9503
9504 *nto* | *qnx*)
9505   version_type=qnx
9506   need_lib_prefix=no
9507   need_version=no
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509   soname_spec='${libname}${release}${shared_ext}$major'
9510   shlibpath_var=LD_LIBRARY_PATH
9511   shlibpath_overrides_runpath=no
9512   hardcode_into_libs=yes
9513   dynamic_linker='ldqnx.so'
9514   ;;
9515
9516 openbsd*)
9517   version_type=sunos
9518   sys_lib_dlsearch_path_spec="/usr/lib"
9519   need_lib_prefix=no
9520   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9521   case $host_os in
9522     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9523     *)                          need_version=no  ;;
9524   esac
9525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9526   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9527   shlibpath_var=LD_LIBRARY_PATH
9528   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9529     case $host_os in
9530       openbsd2.[89] | openbsd2.[89].*)
9531         shlibpath_overrides_runpath=no
9532         ;;
9533       *)
9534         shlibpath_overrides_runpath=yes
9535         ;;
9536       esac
9537   else
9538     shlibpath_overrides_runpath=yes
9539   fi
9540   ;;
9541
9542 os2*)
9543   libname_spec='$name'
9544   shrext_cmds=".dll"
9545   need_lib_prefix=no
9546   library_names_spec='$libname${shared_ext} $libname.a'
9547   dynamic_linker='OS/2 ld.exe'
9548   shlibpath_var=LIBPATH
9549   ;;
9550
9551 osf3* | osf4* | osf5*)
9552   version_type=osf
9553   need_lib_prefix=no
9554   need_version=no
9555   soname_spec='${libname}${release}${shared_ext}$major'
9556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557   shlibpath_var=LD_LIBRARY_PATH
9558   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9559   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9560   ;;
9561
9562 rdos*)
9563   dynamic_linker=no
9564   ;;
9565
9566 solaris*)
9567   version_type=linux
9568   need_lib_prefix=no
9569   need_version=no
9570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571   soname_spec='${libname}${release}${shared_ext}$major'
9572   shlibpath_var=LD_LIBRARY_PATH
9573   shlibpath_overrides_runpath=yes
9574   hardcode_into_libs=yes
9575   # ldd complains unless libraries are executable
9576   postinstall_cmds='chmod +x $lib'
9577   ;;
9578
9579 sunos4*)
9580   version_type=sunos
9581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9582   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9583   shlibpath_var=LD_LIBRARY_PATH
9584   shlibpath_overrides_runpath=yes
9585   if test "$with_gnu_ld" = yes; then
9586     need_lib_prefix=no
9587   fi
9588   need_version=yes
9589   ;;
9590
9591 sysv4 | sysv4.3*)
9592   version_type=linux
9593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594   soname_spec='${libname}${release}${shared_ext}$major'
9595   shlibpath_var=LD_LIBRARY_PATH
9596   case $host_vendor in
9597     sni)
9598       shlibpath_overrides_runpath=no
9599       need_lib_prefix=no
9600       runpath_var=LD_RUN_PATH
9601       ;;
9602     siemens)
9603       need_lib_prefix=no
9604       ;;
9605     motorola)
9606       need_lib_prefix=no
9607       need_version=no
9608       shlibpath_overrides_runpath=no
9609       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9610       ;;
9611   esac
9612   ;;
9613
9614 sysv4*MP*)
9615   if test -d /usr/nec ;then
9616     version_type=linux
9617     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9618     soname_spec='$libname${shared_ext}.$major'
9619     shlibpath_var=LD_LIBRARY_PATH
9620   fi
9621   ;;
9622
9623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9624   version_type=freebsd-elf
9625   need_lib_prefix=no
9626   need_version=no
9627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9628   soname_spec='${libname}${release}${shared_ext}$major'
9629   shlibpath_var=LD_LIBRARY_PATH
9630   shlibpath_overrides_runpath=yes
9631   hardcode_into_libs=yes
9632   if test "$with_gnu_ld" = yes; then
9633     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9634   else
9635     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9636     case $host_os in
9637       sco3.2v5*)
9638         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9639         ;;
9640     esac
9641   fi
9642   sys_lib_dlsearch_path_spec='/usr/lib'
9643   ;;
9644
9645 tpf*)
9646   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9647   version_type=linux
9648   need_lib_prefix=no
9649   need_version=no
9650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651   shlibpath_var=LD_LIBRARY_PATH
9652   shlibpath_overrides_runpath=no
9653   hardcode_into_libs=yes
9654   ;;
9655
9656 uts4*)
9657   version_type=linux
9658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659   soname_spec='${libname}${release}${shared_ext}$major'
9660   shlibpath_var=LD_LIBRARY_PATH
9661   ;;
9662
9663 *)
9664   dynamic_linker=no
9665   ;;
9666 esac
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9668 $as_echo "$dynamic_linker" >&6; }
9669 test "$dynamic_linker" = no && can_build_shared=no
9670
9671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9672 if test "$GCC" = yes; then
9673   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9674 fi
9675
9676 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9677   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9678 fi
9679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9680   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9681 fi
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
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9770 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9771 hardcode_action=
9772 if test -n "$hardcode_libdir_flag_spec" ||
9773    test -n "$runpath_var" ||
9774    test "X$hardcode_automatic" = "Xyes" ; then
9775
9776   # We can hardcode non-existent directories.
9777   if test "$hardcode_direct" != no &&
9778      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9779      # have to relink, otherwise we might link with an installed library
9780      # when we should be linking with a yet-to-be-installed one
9781      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9782      test "$hardcode_minus_L" != no; then
9783     # Linking always hardcodes the temporary library directory.
9784     hardcode_action=relink
9785   else
9786     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9787     hardcode_action=immediate
9788   fi
9789 else
9790   # We cannot hardcode anything, or else we can only hardcode existing
9791   # directories.
9792   hardcode_action=unsupported
9793 fi
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9795 $as_echo "$hardcode_action" >&6; }
9796
9797 if test "$hardcode_action" = relink ||
9798    test "$inherit_rpath" = yes; then
9799   # Fast installation is not supported
9800   enable_fast_install=no
9801 elif test "$shlibpath_overrides_runpath" = yes ||
9802      test "$enable_shared" = no; then
9803   # Fast installation is not necessary
9804   enable_fast_install=needless
9805 fi
9806
9807
9808
9809
9810
9811
9812   if test "x$enable_dlopen" != xyes; then
9813   enable_dlopen=unknown
9814   enable_dlopen_self=unknown
9815   enable_dlopen_self_static=unknown
9816 else
9817   lt_cv_dlopen=no
9818   lt_cv_dlopen_libs=
9819
9820   case $host_os in
9821   beos*)
9822     lt_cv_dlopen="load_add_on"
9823     lt_cv_dlopen_libs=
9824     lt_cv_dlopen_self=yes
9825     ;;
9826
9827   mingw* | pw32* | cegcc*)
9828     lt_cv_dlopen="LoadLibrary"
9829     lt_cv_dlopen_libs=
9830     ;;
9831
9832   cygwin*)
9833     lt_cv_dlopen="dlopen"
9834     lt_cv_dlopen_libs=
9835     ;;
9836
9837   darwin*)
9838   # if libdl is installed we need to link against it
9839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9840 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9841 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9842   $as_echo_n "(cached) " >&6
9843 else
9844   ac_check_lib_save_LIBS=$LIBS
9845 LIBS="-ldl  $LIBS"
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h.  */
9848
9849 /* Override any GCC internal prototype to avoid an error.
9850    Use char because int might match the return type of a GCC
9851    builtin and then its argument prototype would still apply.  */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 char dlopen ();
9856 int
9857 main ()
9858 {
9859 return dlopen ();
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 if ac_fn_c_try_link "$LINENO"; then :
9865   ac_cv_lib_dl_dlopen=yes
9866 else
9867   ac_cv_lib_dl_dlopen=no
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext \
9870     conftest$ac_exeext conftest.$ac_ext
9871 LIBS=$ac_check_lib_save_LIBS
9872 fi
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9874 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9875 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9876   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9877 else
9878
9879     lt_cv_dlopen="dyld"
9880     lt_cv_dlopen_libs=
9881     lt_cv_dlopen_self=yes
9882
9883 fi
9884
9885     ;;
9886
9887   *)
9888     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9889 if test "x$ac_cv_func_shl_load" = x""yes; then :
9890   lt_cv_dlopen="shl_load"
9891 else
9892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9893 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9894 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   ac_check_lib_save_LIBS=$LIBS
9898 LIBS="-ldld  $LIBS"
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h.  */
9901
9902 /* Override any GCC internal prototype to avoid an error.
9903    Use char because int might match the return type of a GCC
9904    builtin and then its argument prototype would still apply.  */
9905 #ifdef __cplusplus
9906 extern "C"
9907 #endif
9908 char shl_load ();
9909 int
9910 main ()
9911 {
9912 return shl_load ();
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_link "$LINENO"; then :
9918   ac_cv_lib_dld_shl_load=yes
9919 else
9920   ac_cv_lib_dld_shl_load=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext \
9923     conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9925 fi
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9927 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9928 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9929   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9930 else
9931   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9932 if test "x$ac_cv_func_dlopen" = x""yes; then :
9933   lt_cv_dlopen="dlopen"
9934 else
9935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9938   $as_echo_n "(cached) " >&6
9939 else
9940   ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-ldl  $LIBS"
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h.  */
9944
9945 /* Override any GCC internal prototype to avoid an error.
9946    Use char because int might match the return type of a GCC
9947    builtin and then its argument prototype would still apply.  */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 char dlopen ();
9952 int
9953 main ()
9954 {
9955 return dlopen ();
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 if ac_fn_c_try_link "$LINENO"; then :
9961   ac_cv_lib_dl_dlopen=yes
9962 else
9963   ac_cv_lib_dl_dlopen=no
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext \
9966     conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9968 fi
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9971 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9972   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9973 else
9974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9975 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9976 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9977   $as_echo_n "(cached) " >&6
9978 else
9979   ac_check_lib_save_LIBS=$LIBS
9980 LIBS="-lsvld  $LIBS"
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h.  */
9983
9984 /* Override any GCC internal prototype to avoid an error.
9985    Use char because int might match the return type of a GCC
9986    builtin and then its argument prototype would still apply.  */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 char dlopen ();
9991 int
9992 main ()
9993 {
9994 return dlopen ();
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 if ac_fn_c_try_link "$LINENO"; then :
10000   ac_cv_lib_svld_dlopen=yes
10001 else
10002   ac_cv_lib_svld_dlopen=no
10003 fi
10004 rm -f core conftest.err conftest.$ac_objext \
10005     conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10007 fi
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10009 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10010 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10011   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10012 else
10013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10014 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10015 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10016   $as_echo_n "(cached) " >&6
10017 else
10018   ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-ldld  $LIBS"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h.  */
10022
10023 /* Override any GCC internal prototype to avoid an error.
10024    Use char because int might match the return type of a GCC
10025    builtin and then its argument prototype would still apply.  */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 char dld_link ();
10030 int
10031 main ()
10032 {
10033 return dld_link ();
10034   ;
10035   return 0;
10036 }
10037 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then :
10039   ac_cv_lib_dld_dld_link=yes
10040 else
10041   ac_cv_lib_dld_dld_link=no
10042 fi
10043 rm -f core conftest.err conftest.$ac_objext \
10044     conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10046 fi
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10048 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10049 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10050   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10051 fi
10052
10053
10054 fi
10055
10056
10057 fi
10058
10059
10060 fi
10061
10062
10063 fi
10064
10065
10066 fi
10067
10068     ;;
10069   esac
10070
10071   if test "x$lt_cv_dlopen" != xno; then
10072     enable_dlopen=yes
10073   else
10074     enable_dlopen=no
10075   fi
10076
10077   case $lt_cv_dlopen in
10078   dlopen)
10079     save_CPPFLAGS="$CPPFLAGS"
10080     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10081
10082     save_LDFLAGS="$LDFLAGS"
10083     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10084
10085     save_LIBS="$LIBS"
10086     LIBS="$lt_cv_dlopen_libs $LIBS"
10087
10088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10089 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10090 if test "${lt_cv_dlopen_self+set}" = set; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093           if test "$cross_compiling" = yes; then :
10094   lt_cv_dlopen_self=cross
10095 else
10096   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10097   lt_status=$lt_dlunknown
10098   cat > conftest.$ac_ext <<_LT_EOF
10099 #line 10099 "configure"
10100 #include "confdefs.h"
10101
10102 #if HAVE_DLFCN_H
10103 #include <dlfcn.h>
10104 #endif
10105
10106 #include <stdio.h>
10107
10108 #ifdef RTLD_GLOBAL
10109 #  define LT_DLGLOBAL           RTLD_GLOBAL
10110 #else
10111 #  ifdef DL_GLOBAL
10112 #    define LT_DLGLOBAL         DL_GLOBAL
10113 #  else
10114 #    define LT_DLGLOBAL         0
10115 #  endif
10116 #endif
10117
10118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10119    find out it does not work in some platform. */
10120 #ifndef LT_DLLAZY_OR_NOW
10121 #  ifdef RTLD_LAZY
10122 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10123 #  else
10124 #    ifdef DL_LAZY
10125 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10126 #    else
10127 #      ifdef RTLD_NOW
10128 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10129 #      else
10130 #        ifdef DL_NOW
10131 #          define LT_DLLAZY_OR_NOW      DL_NOW
10132 #        else
10133 #          define LT_DLLAZY_OR_NOW      0
10134 #        endif
10135 #      endif
10136 #    endif
10137 #  endif
10138 #endif
10139
10140 void fnord() { int i=42;}
10141 int main ()
10142 {
10143   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10144   int status = $lt_dlunknown;
10145
10146   if (self)
10147     {
10148       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10149       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10150       /* dlclose (self); */
10151     }
10152   else
10153     puts (dlerror ());
10154
10155   return status;
10156 }
10157 _LT_EOF
10158   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10159   (eval $ac_link) 2>&5
10160   ac_status=$?
10161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10162   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10163     (./conftest; exit; ) >&5 2>/dev/null
10164     lt_status=$?
10165     case x$lt_status in
10166       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10167       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10168       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10169     esac
10170   else :
10171     # compilation failed
10172     lt_cv_dlopen_self=no
10173   fi
10174 fi
10175 rm -fr conftest*
10176
10177
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10180 $as_echo "$lt_cv_dlopen_self" >&6; }
10181
10182     if test "x$lt_cv_dlopen_self" = xyes; then
10183       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10184       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10185 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10186 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10187   $as_echo_n "(cached) " >&6
10188 else
10189           if test "$cross_compiling" = yes; then :
10190   lt_cv_dlopen_self_static=cross
10191 else
10192   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10193   lt_status=$lt_dlunknown
10194   cat > conftest.$ac_ext <<_LT_EOF
10195 #line 10195 "configure"
10196 #include "confdefs.h"
10197
10198 #if HAVE_DLFCN_H
10199 #include <dlfcn.h>
10200 #endif
10201
10202 #include <stdio.h>
10203
10204 #ifdef RTLD_GLOBAL
10205 #  define LT_DLGLOBAL           RTLD_GLOBAL
10206 #else
10207 #  ifdef DL_GLOBAL
10208 #    define LT_DLGLOBAL         DL_GLOBAL
10209 #  else
10210 #    define LT_DLGLOBAL         0
10211 #  endif
10212 #endif
10213
10214 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10215    find out it does not work in some platform. */
10216 #ifndef LT_DLLAZY_OR_NOW
10217 #  ifdef RTLD_LAZY
10218 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10219 #  else
10220 #    ifdef DL_LAZY
10221 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10222 #    else
10223 #      ifdef RTLD_NOW
10224 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10225 #      else
10226 #        ifdef DL_NOW
10227 #          define LT_DLLAZY_OR_NOW      DL_NOW
10228 #        else
10229 #          define LT_DLLAZY_OR_NOW      0
10230 #        endif
10231 #      endif
10232 #    endif
10233 #  endif
10234 #endif
10235
10236 void fnord() { int i=42;}
10237 int main ()
10238 {
10239   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10240   int status = $lt_dlunknown;
10241
10242   if (self)
10243     {
10244       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10245       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10246       /* dlclose (self); */
10247     }
10248   else
10249     puts (dlerror ());
10250
10251   return status;
10252 }
10253 _LT_EOF
10254   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10255   (eval $ac_link) 2>&5
10256   ac_status=$?
10257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10258   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10259     (./conftest; exit; ) >&5 2>/dev/null
10260     lt_status=$?
10261     case x$lt_status in
10262       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10263       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10264       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10265     esac
10266   else :
10267     # compilation failed
10268     lt_cv_dlopen_self_static=no
10269   fi
10270 fi
10271 rm -fr conftest*
10272
10273
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10276 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10277     fi
10278
10279     CPPFLAGS="$save_CPPFLAGS"
10280     LDFLAGS="$save_LDFLAGS"
10281     LIBS="$save_LIBS"
10282     ;;
10283   esac
10284
10285   case $lt_cv_dlopen_self in
10286   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10287   *) enable_dlopen_self=unknown ;;
10288   esac
10289
10290   case $lt_cv_dlopen_self_static in
10291   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10292   *) enable_dlopen_self_static=unknown ;;
10293   esac
10294 fi
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312 striplib=
10313 old_striplib=
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10315 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10316 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10317   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10318   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10320 $as_echo "yes" >&6; }
10321 else
10322 # FIXME - insert some real tests, host_os isn't really good enough
10323   case $host_os in
10324   darwin*)
10325     if test -n "$STRIP" ; then
10326       striplib="$STRIP -x"
10327       old_striplib="$STRIP -S"
10328       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10329 $as_echo "yes" >&6; }
10330     else
10331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10333     fi
10334     ;;
10335   *)
10336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10338     ;;
10339   esac
10340 fi
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353   # Report which library types will actually be built
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10355 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10357 $as_echo "$can_build_shared" >&6; }
10358
10359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10360 $as_echo_n "checking whether to build shared libraries... " >&6; }
10361   test "$can_build_shared" = "no" && enable_shared=no
10362
10363   # On AIX, shared libraries and static libraries use the same namespace, and
10364   # are all built from PIC.
10365   case $host_os in
10366   aix3*)
10367     test "$enable_shared" = yes && enable_static=no
10368     if test -n "$RANLIB"; then
10369       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10370       postinstall_cmds='$RANLIB $lib'
10371     fi
10372     ;;
10373
10374   aix[4-9]*)
10375     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10376       test "$enable_shared" = yes && enable_static=no
10377     fi
10378     ;;
10379   esac
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10381 $as_echo "$enable_shared" >&6; }
10382
10383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10384 $as_echo_n "checking whether to build static libraries... " >&6; }
10385   # Make sure either enable_shared or enable_static is yes.
10386   test "$enable_shared" = yes || enable_static=yes
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10388 $as_echo "$enable_static" >&6; }
10389
10390
10391
10392
10393 fi
10394 ac_ext=c
10395 ac_cpp='$CPP $CPPFLAGS'
10396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10399
10400 CC="$lt_save_CC"
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414         ac_config_commands="$ac_config_commands libtool"
10415
10416
10417
10418
10419 # Only expand once:
10420
10421
10422
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10424 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10425 if test "${ac_cv_c_const+set}" = set; then :
10426   $as_echo_n "(cached) " >&6
10427 else
10428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h.  */
10430
10431 int
10432 main ()
10433 {
10434 /* FIXME: Include the comments suggested by Paul. */
10435 #ifndef __cplusplus
10436   /* Ultrix mips cc rejects this.  */
10437   typedef int charset[2];
10438   const charset cs;
10439   /* SunOS 4.1.1 cc rejects this.  */
10440   char const *const *pcpcc;
10441   char **ppc;
10442   /* NEC SVR4.0.2 mips cc rejects this.  */
10443   struct point {int x, y;};
10444   static struct point const zero = {0,0};
10445   /* AIX XL C 1.02.0.0 rejects this.
10446      It does not let you subtract one const X* pointer from another in
10447      an arm of an if-expression whose if-part is not a constant
10448      expression */
10449   const char *g = "string";
10450   pcpcc = &g + (g ? g-g : 0);
10451   /* HPUX 7.0 cc rejects these. */
10452   ++pcpcc;
10453   ppc = (char**) pcpcc;
10454   pcpcc = (char const *const *) ppc;
10455   { /* SCO 3.2v4 cc rejects this.  */
10456     char *t;
10457     char const *s = 0 ? (char *) 0 : (char const *) 0;
10458
10459     *t++ = 0;
10460     if (s) return 0;
10461   }
10462   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10463     int x[] = {25, 17};
10464     const int *foo = &x[0];
10465     ++foo;
10466   }
10467   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10468     typedef const int *iptr;
10469     iptr p = 0;
10470     ++p;
10471   }
10472   { /* AIX XL C 1.02.0.0 rejects this saying
10473        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10474     struct s { int j; const int *ap[3]; };
10475     struct s *b; b->j = 5;
10476   }
10477   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10478     const int foo = 10;
10479     if (!foo) return 0;
10480   }
10481   return !cs[0] && !zero.x;
10482 #endif
10483
10484   ;
10485   return 0;
10486 }
10487 _ACEOF
10488 if ac_fn_c_try_compile "$LINENO"; then :
10489   ac_cv_c_const=yes
10490 else
10491   ac_cv_c_const=no
10492 fi
10493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 fi
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10496 $as_echo "$ac_cv_c_const" >&6; }
10497 if test $ac_cv_c_const = no; then
10498
10499 $as_echo "#define const /**/" >>confdefs.h
10500
10501 fi
10502
10503 if test $ac_cv_c_compiler_gnu = yes; then
10504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10505 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10506 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10507   $as_echo_n "(cached) " >&6
10508 else
10509     ac_pattern="Autoconf.*'x'"
10510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h.  */
10512 #include <sgtty.h>
10513 Autoconf TIOCGETP
10514 _ACEOF
10515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10516   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10517   ac_cv_prog_gcc_traditional=yes
10518 else
10519   ac_cv_prog_gcc_traditional=no
10520 fi
10521 rm -f conftest*
10522
10523
10524   if test $ac_cv_prog_gcc_traditional = no; then
10525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h.  */
10527 #include <termio.h>
10528 Autoconf TCGETA
10529 _ACEOF
10530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10531   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10532   ac_cv_prog_gcc_traditional=yes
10533 fi
10534 rm -f conftest*
10535
10536   fi
10537 fi
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10539 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10540   if test $ac_cv_prog_gcc_traditional = yes; then
10541     CC="$CC -traditional"
10542   fi
10543 fi
10544
10545
10546 for ac_header in libutil.h pthread.h pty.h strings.h sys/prctl.h sys/uio.h  \
10547                   util.h utmp.h utmpx.h
10548 do :
10549   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10550 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10551 eval as_val=\$$as_ac_Header
10552    if test "x$as_val" = x""yes; then :
10553   cat >>confdefs.h <<_ACEOF
10554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10555 _ACEOF
10556
10557 fi
10558
10559 done
10560
10561
10562 for ac_func in login_tty
10563 do :
10564   ac_fn_c_check_func "$LINENO" "login_tty" "ac_cv_func_login_tty"
10565 if test "x$ac_cv_func_login_tty" = x""yes; then :
10566   cat >>confdefs.h <<_ACEOF
10567 #define HAVE_LOGIN_TTY 1
10568 _ACEOF
10569
10570 else
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login_tty in -lutil" >&5
10572 $as_echo_n "checking for login_tty in -lutil... " >&6; }
10573 if test "${ac_cv_lib_util_login_tty+set}" = set; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   ac_check_lib_save_LIBS=$LIBS
10577 LIBS="-lutil  $LIBS"
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h.  */
10580
10581 /* Override any GCC internal prototype to avoid an error.
10582    Use char because int might match the return type of a GCC
10583    builtin and then its argument prototype would still apply.  */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 char login_tty ();
10588 int
10589 main ()
10590 {
10591 return login_tty ();
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 if ac_fn_c_try_link "$LINENO"; then :
10597   ac_cv_lib_util_login_tty=yes
10598 else
10599   ac_cv_lib_util_login_tty=no
10600 fi
10601 rm -f core conftest.err conftest.$ac_objext \
10602     conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_lib_save_LIBS
10604 fi
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_login_tty" >&5
10606 $as_echo "$ac_cv_lib_util_login_tty" >&6; }
10607 if test "x$ac_cv_lib_util_login_tty" = x""yes; then :
10608   LIBS="-lutil $LIBS"
10609                  $as_echo "#define HAVE_LOGIN_TTY 1" >>confdefs.h
10610
10611 fi
10612
10613 fi
10614 done
10615
10616
10617 for ac_func in strlcat
10618 do :
10619   ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
10620 if test "x$ac_cv_func_strlcat" = x""yes; then :
10621   cat >>confdefs.h <<_ACEOF
10622 #define HAVE_STRLCAT 1
10623 _ACEOF
10624
10625 fi
10626 done
10627
10628
10629 for ac_func in getgrgid_r getgrnam_r getpwnam_r getpwuid_r openpty          \
10630                 strcasestr
10631 do :
10632   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10634 eval as_val=\$$as_ac_var
10635    if test "x$as_val" = x""yes; then :
10636   cat >>confdefs.h <<_ACEOF
10637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10638 _ACEOF
10639
10640 fi
10641 done
10642
10643
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h.  */
10646 #ifndef _XOPEN_SOURCE
10647              #define _XOPEN_SOURCE
10648              #endif
10649              #ifndef _GNU_SOURCE
10650              #define _GNU_SOURCE
10651              #endif
10652              #include <stdlib.h>
10653 int
10654 main ()
10655 {
10656 char buf[10]; ptsname_r(0, buf, sizeof(buf));
10657   ;
10658   return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662
10663 $as_echo "#define HAVE_PTSNAME_R 1" >>confdefs.h
10664
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext \
10667     conftest$ac_exeext conftest.$ac_ext
10668
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h.  */
10671 #include <pthread.h>
10672              #include <signal.h>
10673 int
10674 main ()
10675 {
10676 sigset_t s; int n; sigwait(&s, &n);
10677   ;
10678   return 0;
10679 }
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682
10683 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
10684
10685 fi
10686 rm -f core conftest.err conftest.$ac_objext \
10687     conftest$ac_exeext conftest.$ac_ext
10688
10689 # Check whether --enable-login was given.
10690 if test "${enable_login+set}" = set; then :
10691   enableval=$enable_login;
10692 fi
10693
10694 if test "x$enable_login" != xno; then
10695
10696 $as_echo "#define HAVE_BIN_LOGIN 1" >>confdefs.h
10697
10698 fi
10699
10700 # Check whether --enable-ssl was given.
10701 if test "${enable_ssl+set}" = set; then :
10702   enableval=$enable_ssl;
10703 fi
10704
10705
10706 # Check whether --enable-pam was given.
10707 if test "${enable_pam+set}" = set; then :
10708   enableval=$enable_pam;
10709 fi
10710
10711
10712 # Check whether --enable-runtime-loading was given.
10713 if test "${enable_runtime_loading+set}" = set; then :
10714   enableval=$enable_runtime_loading;
10715 fi
10716
10717
10718 if test "x$enable_ssl" != xno; then
10719   for ac_header in openssl/bio.h openssl/err.h openssl/ssl.h
10720 do :
10721   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10722 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10723 eval as_val=\$$as_ac_Header
10724    if test "x$as_val" = x""yes; then :
10725   cat >>confdefs.h <<_ACEOF
10726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10727 _ACEOF
10728
10729 fi
10730
10731 done
10732
10733 fi
10734
10735 if test "x$enable_pam" != xno; then
10736   for ac_header in security/pam_appl.h security/pam_client.h                 \
10737                     security/pam_misc.h
10738 do :
10739   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10740 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10741 eval as_val=\$$as_ac_Header
10742    if test "x$as_val" = x""yes; then :
10743   cat >>confdefs.h <<_ACEOF
10744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10745 _ACEOF
10746
10747 fi
10748
10749 done
10750
10751 fi
10752
10753 if test "x$enable_runtime_loading" != xno; then
10754   for ac_func in dlopen
10755 do :
10756   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10757 if test "x$ac_cv_func_dlopen" = x""yes; then :
10758   cat >>confdefs.h <<_ACEOF
10759 #define HAVE_DLOPEN 1
10760 _ACEOF
10761
10762 else
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10764 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768   ac_check_lib_save_LIBS=$LIBS
10769 LIBS="-ldl  $LIBS"
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h.  */
10772
10773 /* Override any GCC internal prototype to avoid an error.
10774    Use char because int might match the return type of a GCC
10775    builtin and then its argument prototype would still apply.  */
10776 #ifdef __cplusplus
10777 extern "C"
10778 #endif
10779 char dlopen ();
10780 int
10781 main ()
10782 {
10783 return dlopen ();
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 if ac_fn_c_try_link "$LINENO"; then :
10789   ac_cv_lib_dl_dlopen=yes
10790 else
10791   ac_cv_lib_dl_dlopen=no
10792 fi
10793 rm -f core conftest.err conftest.$ac_objext \
10794     conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10796 fi
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10798 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10799 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10800   LIBS="-ldl $LIBS"
10801                                 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
10802
10803 else
10804   enable_runtime_loading=no
10805 fi
10806
10807 fi
10808 done
10809
10810 fi
10811
10812 if test "x$enable_runtime_loading" == xno; then
10813     if test "x$enable_ssl" != xno; then
10814     ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
10815 if test "x$ac_cv_header_openssl_bio_h" = x""yes; then :
10816   ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
10817 if test "x$ac_cv_header_openssl_err_h" = x""yes; then :
10818   ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
10819 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
10820   LIBS="-lssl -lcrypto $LIBS"
10821 fi
10822
10823
10824 fi
10825
10826
10827 fi
10828
10829
10830   fi
10831
10832     if test "x$enable_pam" != xno; then
10833     ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
10834 if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
10835   LIBS="-lpam $LIBS"
10836 fi
10837
10838
10839     ac_fn_c_check_header_mongrel "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "$ac_includes_default"
10840 if test "x$ac_cv_header_security_pam_misc_h" = x""yes; then :
10841   LIBS="-lpam_misc $LIBS"
10842 fi
10843
10844
10845   fi
10846 fi
10847
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
10849 $as_echo_n "checking for deflate in -lz... " >&6; }
10850 if test "${ac_cv_lib_z_deflate+set}" = set; then :
10851   $as_echo_n "(cached) " >&6
10852 else
10853   ac_check_lib_save_LIBS=$LIBS
10854 LIBS="-lz  $LIBS"
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h.  */
10857
10858 /* Override any GCC internal prototype to avoid an error.
10859    Use char because int might match the return type of a GCC
10860    builtin and then its argument prototype would still apply.  */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 char deflate ();
10865 int
10866 main ()
10867 {
10868 return deflate ();
10869   ;
10870   return 0;
10871 }
10872 _ACEOF
10873 if ac_fn_c_try_link "$LINENO"; then :
10874   ac_cv_lib_z_deflate=yes
10875 else
10876   ac_cv_lib_z_deflate=no
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext \
10879     conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_lib_save_LIBS
10881 fi
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
10883 $as_echo "$ac_cv_lib_z_deflate" >&6; }
10884 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
10885
10886   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10887 if test "x$ac_cv_header_zlib_h" = x""yes; then :
10888   LIBS="-lz $LIBS"
10889
10890 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10891
10892
10893 fi
10894
10895
10896 fi
10897
10898
10899 ac_config_files="$ac_config_files Makefile"
10900
10901 cat >confcache <<\_ACEOF
10902 # This file is a shell script that caches the results of configure
10903 # tests run on this system so they can be shared between configure
10904 # scripts and configure runs, see configure's option --config-cache.
10905 # It is not useful on other systems.  If it contains results you don't
10906 # want to keep, you may remove or edit it.
10907 #
10908 # config.status only pays attention to the cache file if you give it
10909 # the --recheck option to rerun configure.
10910 #
10911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10913 # following values.
10914
10915 _ACEOF
10916
10917 # The following way of writing the cache mishandles newlines in values,
10918 # but we know of no workaround that is simple, portable, and efficient.
10919 # So, we kill variables containing newlines.
10920 # Ultrix sh set writes to stderr and can't be redirected directly,
10921 # and sets the high bit in the cache file unless we assign to the vars.
10922 (
10923   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10924     eval ac_val=\$$ac_var
10925     case $ac_val in #(
10926     *${as_nl}*)
10927       case $ac_var in #(
10928       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10930       esac
10931       case $ac_var in #(
10932       _ | IFS | as_nl) ;; #(
10933       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10934       *) { eval $ac_var=; unset $ac_var;} ;;
10935       esac ;;
10936     esac
10937   done
10938
10939   (set) 2>&1 |
10940     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10941     *${as_nl}ac_space=\ *)
10942       # `set' does not quote correctly, so add quotes: double-quote
10943       # substitution turns \\\\ into \\, and sed turns \\ into \.
10944       sed -n \
10945         "s/'/'\\\\''/g;
10946           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10947       ;; #(
10948     *)
10949       # `set' quotes correctly as required by POSIX, so do not add quotes.
10950       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10951       ;;
10952     esac |
10953     sort
10954 ) |
10955   sed '
10956      /^ac_cv_env_/b end
10957      t clear
10958      :clear
10959      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10960      t end
10961      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10962      :end' >>confcache
10963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10964   if test -w "$cache_file"; then
10965     test "x$cache_file" != "x/dev/null" &&
10966       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10967 $as_echo "$as_me: updating cache $cache_file" >&6;}
10968     cat confcache >$cache_file
10969   else
10970     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10971 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10972   fi
10973 fi
10974 rm -f confcache
10975
10976 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10977 # Let make expand exec_prefix.
10978 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10979
10980 DEFS=-DHAVE_CONFIG_H
10981
10982 ac_libobjs=
10983 ac_ltlibobjs=
10984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10985   # 1. Remove the extension, and $U if already installed.
10986   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10987   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10988   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10989   #    will be set to the directory where LIBOBJS objects are built.
10990   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10991   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10992 done
10993 LIBOBJS=$ac_libobjs
10994
10995 LTLIBOBJS=$ac_ltlibobjs
10996
10997
10998  if test -n "$EXEEXT"; then
10999   am__EXEEXT_TRUE=
11000   am__EXEEXT_FALSE='#'
11001 else
11002   am__EXEEXT_TRUE='#'
11003   am__EXEEXT_FALSE=
11004 fi
11005
11006 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11007   as_fn_error "conditional \"AMDEP\" was never defined.
11008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11009 fi
11010 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11011   as_fn_error "conditional \"am__fastdepCC\" was never defined.
11012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11013 fi
11014
11015 : ${CONFIG_STATUS=./config.status}
11016 ac_write_fail=0
11017 ac_clean_files_save=$ac_clean_files
11018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11020 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11021 as_write_fail=0
11022 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11023 #! $SHELL
11024 # Generated by $as_me.
11025 # Run this file to recreate the current configuration.
11026 # Compiler output produced by configure, useful for debugging
11027 # configure, is in config.log if it exists.
11028
11029 debug=false
11030 ac_cs_recheck=false
11031 ac_cs_silent=false
11032
11033 SHELL=\${CONFIG_SHELL-$SHELL}
11034 export SHELL
11035 _ASEOF
11036 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11037 ## -------------------- ##
11038 ## M4sh Initialization. ##
11039 ## -------------------- ##
11040
11041 # Be more Bourne compatible
11042 DUALCASE=1; export DUALCASE # for MKS sh
11043 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11044   emulate sh
11045   NULLCMD=:
11046   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11047   # is contrary to our usage.  Disable this feature.
11048   alias -g '${1+"$@"}'='"$@"'
11049   setopt NO_GLOB_SUBST
11050 else
11051   case `(set -o) 2>/dev/null` in #(
11052   *posix*) :
11053     set -o posix ;; #(
11054   *) :
11055      ;;
11056 esac
11057 fi
11058
11059
11060 as_nl='
11061 '
11062 export as_nl
11063 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11064 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11066 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11067 # Prefer a ksh shell builtin over an external printf program on Solaris,
11068 # but without wasting forks for bash or zsh.
11069 if test -z "$BASH_VERSION$ZSH_VERSION" \
11070     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11071   as_echo='print -r --'
11072   as_echo_n='print -rn --'
11073 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11074   as_echo='printf %s\n'
11075   as_echo_n='printf %s'
11076 else
11077   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11078     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11079     as_echo_n='/usr/ucb/echo -n'
11080   else
11081     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11082     as_echo_n_body='eval
11083       arg=$1;
11084       case $arg in #(
11085       *"$as_nl"*)
11086         expr "X$arg" : "X\\(.*\\)$as_nl";
11087         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11088       esac;
11089       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11090     '
11091     export as_echo_n_body
11092     as_echo_n='sh -c $as_echo_n_body as_echo'
11093   fi
11094   export as_echo_body
11095   as_echo='sh -c $as_echo_body as_echo'
11096 fi
11097
11098 # The user is always right.
11099 if test "${PATH_SEPARATOR+set}" != set; then
11100   PATH_SEPARATOR=:
11101   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11102     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11103       PATH_SEPARATOR=';'
11104   }
11105 fi
11106
11107
11108 # IFS
11109 # We need space, tab and new line, in precisely that order.  Quoting is
11110 # there to prevent editors from complaining about space-tab.
11111 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11112 # splitting by setting IFS to empty value.)
11113 IFS=" ""        $as_nl"
11114
11115 # Find who we are.  Look in the path if we contain no directory separator.
11116 case $0 in #((
11117   *[\\/]* ) as_myself=$0 ;;
11118   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11120 do
11121   IFS=$as_save_IFS
11122   test -z "$as_dir" && as_dir=.
11123     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11124   done
11125 IFS=$as_save_IFS
11126
11127      ;;
11128 esac
11129 # We did not find ourselves, most probably we were run as `sh COMMAND'
11130 # in which case we are not to be found in the path.
11131 if test "x$as_myself" = x; then
11132   as_myself=$0
11133 fi
11134 if test ! -f "$as_myself"; then
11135   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11136   exit 1
11137 fi
11138
11139 # Unset variables that we do not need and which cause bugs (e.g. in
11140 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11141 # suppresses any "Segmentation fault" message there.  '((' could
11142 # trigger a bug in pdksh 5.2.14.
11143 for as_var in BASH_ENV ENV MAIL MAILPATH
11144 do eval test x\${$as_var+set} = xset \
11145   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11146 done
11147 PS1='$ '
11148 PS2='> '
11149 PS4='+ '
11150
11151 # NLS nuisances.
11152 LC_ALL=C
11153 export LC_ALL
11154 LANGUAGE=C
11155 export LANGUAGE
11156
11157 # CDPATH.
11158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11159
11160
11161 # as_fn_error ERROR [LINENO LOG_FD]
11162 # ---------------------------------
11163 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11164 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11165 # script with status $?, using 1 if that was 0.
11166 as_fn_error ()
11167 {
11168   as_status=$?; test $as_status -eq 0 && as_status=1
11169   if test "$3"; then
11170     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11171     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11172   fi
11173   $as_echo "$as_me: error: $1" >&2
11174   as_fn_exit $as_status
11175 } # as_fn_error
11176
11177
11178 # as_fn_set_status STATUS
11179 # -----------------------
11180 # Set $? to STATUS, without forking.
11181 as_fn_set_status ()
11182 {
11183   return $1
11184 } # as_fn_set_status
11185
11186 # as_fn_exit STATUS
11187 # -----------------
11188 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11189 as_fn_exit ()
11190 {
11191   set +e
11192   as_fn_set_status $1
11193   exit $1
11194 } # as_fn_exit
11195
11196 # as_fn_unset VAR
11197 # ---------------
11198 # Portably unset VAR.
11199 as_fn_unset ()
11200 {
11201   { eval $1=; unset $1;}
11202 }
11203 as_unset=as_fn_unset
11204 # as_fn_append VAR VALUE
11205 # ----------------------
11206 # Append the text in VALUE to the end of the definition contained in VAR. Take
11207 # advantage of any shell optimizations that allow amortized linear growth over
11208 # repeated appends, instead of the typical quadratic growth present in naive
11209 # implementations.
11210 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11211   eval 'as_fn_append ()
11212   {
11213     eval $1+=\$2
11214   }'
11215 else
11216   as_fn_append ()
11217   {
11218     eval $1=\$$1\$2
11219   }
11220 fi # as_fn_append
11221
11222 # as_fn_arith ARG...
11223 # ------------------
11224 # Perform arithmetic evaluation on the ARGs, and store the result in the
11225 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11226 # must be portable across $(()) and expr.
11227 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11228   eval 'as_fn_arith ()
11229   {
11230     as_val=$(( $* ))
11231   }'
11232 else
11233   as_fn_arith ()
11234   {
11235     as_val=`expr "$@" || test $? -eq 1`
11236   }
11237 fi # as_fn_arith
11238
11239
11240 if expr a : '\(a\)' >/dev/null 2>&1 &&
11241    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11242   as_expr=expr
11243 else
11244   as_expr=false
11245 fi
11246
11247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11248   as_basename=basename
11249 else
11250   as_basename=false
11251 fi
11252
11253 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11254   as_dirname=dirname
11255 else
11256   as_dirname=false
11257 fi
11258
11259 as_me=`$as_basename -- "$0" ||
11260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11261          X"$0" : 'X\(//\)$' \| \
11262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11263 $as_echo X/"$0" |
11264     sed '/^.*\/\([^/][^/]*\)\/*$/{
11265             s//\1/
11266             q
11267           }
11268           /^X\/\(\/\/\)$/{
11269             s//\1/
11270             q
11271           }
11272           /^X\/\(\/\).*/{
11273             s//\1/
11274             q
11275           }
11276           s/.*/./; q'`
11277
11278 # Avoid depending upon Character Ranges.
11279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11282 as_cr_digits='0123456789'
11283 as_cr_alnum=$as_cr_Letters$as_cr_digits
11284
11285 ECHO_C= ECHO_N= ECHO_T=
11286 case `echo -n x` in #(((((
11287 -n*)
11288   case `echo 'xy\c'` in
11289   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11290   xy)  ECHO_C='\c';;
11291   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11292        ECHO_T=' ';;
11293   esac;;
11294 *)
11295   ECHO_N='-n';;
11296 esac
11297
11298 rm -f conf$$ conf$$.exe conf$$.file
11299 if test -d conf$$.dir; then
11300   rm -f conf$$.dir/conf$$.file
11301 else
11302   rm -f conf$$.dir
11303   mkdir conf$$.dir 2>/dev/null
11304 fi
11305 if (echo >conf$$.file) 2>/dev/null; then
11306   if ln -s conf$$.file conf$$ 2>/dev/null; then
11307     as_ln_s='ln -s'
11308     # ... but there are two gotchas:
11309     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11310     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11311     # In both cases, we have to default to `cp -p'.
11312     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11313       as_ln_s='cp -p'
11314   elif ln conf$$.file conf$$ 2>/dev/null; then
11315     as_ln_s=ln
11316   else
11317     as_ln_s='cp -p'
11318   fi
11319 else
11320   as_ln_s='cp -p'
11321 fi
11322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11323 rmdir conf$$.dir 2>/dev/null
11324
11325
11326 # as_fn_mkdir_p
11327 # -------------
11328 # Create "$as_dir" as a directory, including parents if necessary.
11329 as_fn_mkdir_p ()
11330 {
11331
11332   case $as_dir in #(
11333   -*) as_dir=./$as_dir;;
11334   esac
11335   test -d "$as_dir" || eval $as_mkdir_p || {
11336     as_dirs=
11337     while :; do
11338       case $as_dir in #(
11339       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11340       *) as_qdir=$as_dir;;
11341       esac
11342       as_dirs="'$as_qdir' $as_dirs"
11343       as_dir=`$as_dirname -- "$as_dir" ||
11344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11345          X"$as_dir" : 'X\(//\)[^/]' \| \
11346          X"$as_dir" : 'X\(//\)$' \| \
11347          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11348 $as_echo X"$as_dir" |
11349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11350             s//\1/
11351             q
11352           }
11353           /^X\(\/\/\)[^/].*/{
11354             s//\1/
11355             q
11356           }
11357           /^X\(\/\/\)$/{
11358             s//\1/
11359             q
11360           }
11361           /^X\(\/\).*/{
11362             s//\1/
11363             q
11364           }
11365           s/.*/./; q'`
11366       test -d "$as_dir" && break
11367     done
11368     test -z "$as_dirs" || eval "mkdir $as_dirs"
11369   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11370
11371
11372 } # as_fn_mkdir_p
11373 if mkdir -p . 2>/dev/null; then
11374   as_mkdir_p='mkdir -p "$as_dir"'
11375 else
11376   test -d ./-p && rmdir ./-p
11377   as_mkdir_p=false
11378 fi
11379
11380 if test -x / >/dev/null 2>&1; then
11381   as_test_x='test -x'
11382 else
11383   if ls -dL / >/dev/null 2>&1; then
11384     as_ls_L_option=L
11385   else
11386     as_ls_L_option=
11387   fi
11388   as_test_x='
11389     eval sh -c '\''
11390       if test -d "$1"; then
11391         test -d "$1/.";
11392       else
11393         case $1 in #(
11394         -*)set "./$1";;
11395         esac;
11396         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11397         ???[sx]*):;;*)false;;esac;fi
11398     '\'' sh
11399   '
11400 fi
11401 as_executable_p=$as_test_x
11402
11403 # Sed expression to map a string onto a valid CPP name.
11404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11405
11406 # Sed expression to map a string onto a valid variable name.
11407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11408
11409
11410 exec 6>&1
11411 ## ----------------------------------- ##
11412 ## Main body of $CONFIG_STATUS script. ##
11413 ## ----------------------------------- ##
11414 _ASEOF
11415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11416
11417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11418 # Save the log message, to keep $0 and so on meaningful, and to
11419 # report actual input values of CONFIG_FILES etc. instead of their
11420 # values after options handling.
11421 ac_log="
11422 This file was extended by shellinabox $as_me 2.10, which was
11423 generated by GNU Autoconf 2.64.  Invocation command line was
11424
11425   CONFIG_FILES    = $CONFIG_FILES
11426   CONFIG_HEADERS  = $CONFIG_HEADERS
11427   CONFIG_LINKS    = $CONFIG_LINKS
11428   CONFIG_COMMANDS = $CONFIG_COMMANDS
11429   $ $0 $@
11430
11431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11432 "
11433
11434 _ACEOF
11435
11436 case $ac_config_files in *"
11437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11438 esac
11439
11440 case $ac_config_headers in *"
11441 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11442 esac
11443
11444
11445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11446 # Files that config.status was made for.
11447 config_files="$ac_config_files"
11448 config_headers="$ac_config_headers"
11449 config_commands="$ac_config_commands"
11450
11451 _ACEOF
11452
11453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11454 ac_cs_usage="\
11455 \`$as_me' instantiates files and other configuration actions
11456 from templates according to the current configuration.  Unless the files
11457 and actions are specified as TAGs, all are instantiated by default.
11458
11459 Usage: $0 [OPTION]... [TAG]...
11460
11461   -h, --help       print this help, then exit
11462   -V, --version    print version number and configuration settings, then exit
11463   -q, --quiet, --silent
11464                    do not print progress messages
11465   -d, --debug      don't remove temporary files
11466       --recheck    update $as_me by reconfiguring in the same conditions
11467       --file=FILE[:TEMPLATE]
11468                    instantiate the configuration file FILE
11469       --header=FILE[:TEMPLATE]
11470                    instantiate the configuration header FILE
11471
11472 Configuration files:
11473 $config_files
11474
11475 Configuration headers:
11476 $config_headers
11477
11478 Configuration commands:
11479 $config_commands
11480
11481 Report bugs to <markus@shellinabox.com>."
11482
11483 _ACEOF
11484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11485 ac_cs_version="\\
11486 shellinabox config.status 2.10
11487 configured by $0, generated by GNU Autoconf 2.64,
11488   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11489
11490 Copyright (C) 2009 Free Software Foundation, Inc.
11491 This config.status script is free software; the Free Software Foundation
11492 gives unlimited permission to copy, distribute and modify it."
11493
11494 ac_pwd='$ac_pwd'
11495 srcdir='$srcdir'
11496 INSTALL='$INSTALL'
11497 MKDIR_P='$MKDIR_P'
11498 AWK='$AWK'
11499 test -n "\$AWK" || AWK=awk
11500 _ACEOF
11501
11502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11503 # The default lists apply if the user does not specify any file.
11504 ac_need_defaults=:
11505 while test $# != 0
11506 do
11507   case $1 in
11508   --*=*)
11509     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11510     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11511     ac_shift=:
11512     ;;
11513   *)
11514     ac_option=$1
11515     ac_optarg=$2
11516     ac_shift=shift
11517     ;;
11518   esac
11519
11520   case $ac_option in
11521   # Handling of the options.
11522   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11523     ac_cs_recheck=: ;;
11524   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11525     $as_echo "$ac_cs_version"; exit ;;
11526   --debug | --debu | --deb | --de | --d | -d )
11527     debug=: ;;
11528   --file | --fil | --fi | --f )
11529     $ac_shift
11530     case $ac_optarg in
11531     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11532     esac
11533     as_fn_append CONFIG_FILES " '$ac_optarg'"
11534     ac_need_defaults=false;;
11535   --header | --heade | --head | --hea )
11536     $ac_shift
11537     case $ac_optarg in
11538     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11539     esac
11540     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11541     ac_need_defaults=false;;
11542   --he | --h)
11543     # Conflict between --help and --header
11544     as_fn_error "ambiguous option: \`$1'
11545 Try \`$0 --help' for more information.";;
11546   --help | --hel | -h )
11547     $as_echo "$ac_cs_usage"; exit ;;
11548   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11549   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11550     ac_cs_silent=: ;;
11551
11552   # This is an error.
11553   -*) as_fn_error "unrecognized option: \`$1'
11554 Try \`$0 --help' for more information." ;;
11555
11556   *) as_fn_append ac_config_targets " $1"
11557      ac_need_defaults=false ;;
11558
11559   esac
11560   shift
11561 done
11562
11563 ac_configure_extra_args=
11564
11565 if $ac_cs_silent; then
11566   exec 6>/dev/null
11567   ac_configure_extra_args="$ac_configure_extra_args --silent"
11568 fi
11569
11570 _ACEOF
11571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11572 if \$ac_cs_recheck; then
11573   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11574   shift
11575   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11576   CONFIG_SHELL='$SHELL'
11577   export CONFIG_SHELL
11578   exec "\$@"
11579 fi
11580
11581 _ACEOF
11582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11583 exec 5>>config.log
11584 {
11585   echo
11586   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11587 ## Running $as_me. ##
11588 _ASBOX
11589   $as_echo "$ac_log"
11590 } >&5
11591
11592 _ACEOF
11593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11594 #
11595 # INIT-COMMANDS
11596 #
11597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11598
11599
11600 # The HP-UX ksh and POSIX shell print the target directory to stdout
11601 # if CDPATH is set.
11602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11603
11604 sed_quote_subst='$sed_quote_subst'
11605 double_quote_subst='$double_quote_subst'
11606 delay_variable_subst='$delay_variable_subst'
11607 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11608 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11609 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11610 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11611 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11612 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11613 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11614 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11615 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11616 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11617 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11618 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11619 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11620 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11621 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11622 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11623 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11624 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11625 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11626 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11627 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11628 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11629 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11630 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11631 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11632 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11633 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11634 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11635 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11636 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11637 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11638 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11639 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11640 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11641 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11642 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11643 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11644 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11645 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11646 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11647 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11648 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11649 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11650 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11651 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11653 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11654 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11655 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11656 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11657 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11658 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11659 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11660 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11661 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11662 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11663 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11664 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11665 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11666 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11667 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11668 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11669 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11670 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11671 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11672 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11673 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11674 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11675 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11676 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11677 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11678 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11679 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11680 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11681 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11682 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11683 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11684 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11685 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11686 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11687 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11688 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11689 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11690 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11691 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11692 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11693 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11694 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11695 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11696 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11697 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11698 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11699 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11700 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11701 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11702 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11703 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11704 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11705 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11706 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11707 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11708 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11709 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11710 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11711 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11712 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11713 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11714 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11715 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11716 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11717 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11718 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11719 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11720 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11721 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11722 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11723 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11724 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11725
11726 LTCC='$LTCC'
11727 LTCFLAGS='$LTCFLAGS'
11728 compiler='$compiler_DEFAULT'
11729
11730 # Quote evaled strings.
11731 for var in SED \
11732 GREP \
11733 EGREP \
11734 FGREP \
11735 LD \
11736 NM \
11737 LN_S \
11738 lt_SP2NL \
11739 lt_NL2SP \
11740 reload_flag \
11741 OBJDUMP \
11742 deplibs_check_method \
11743 file_magic_cmd \
11744 AR \
11745 AR_FLAGS \
11746 STRIP \
11747 RANLIB \
11748 CC \
11749 CFLAGS \
11750 compiler \
11751 lt_cv_sys_global_symbol_pipe \
11752 lt_cv_sys_global_symbol_to_cdecl \
11753 lt_cv_sys_global_symbol_to_c_name_address \
11754 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11755 SHELL \
11756 ECHO \
11757 lt_prog_compiler_no_builtin_flag \
11758 lt_prog_compiler_wl \
11759 lt_prog_compiler_pic \
11760 lt_prog_compiler_static \
11761 lt_cv_prog_compiler_c_o \
11762 need_locks \
11763 DSYMUTIL \
11764 NMEDIT \
11765 LIPO \
11766 OTOOL \
11767 OTOOL64 \
11768 shrext_cmds \
11769 export_dynamic_flag_spec \
11770 whole_archive_flag_spec \
11771 compiler_needs_object \
11772 with_gnu_ld \
11773 allow_undefined_flag \
11774 no_undefined_flag \
11775 hardcode_libdir_flag_spec \
11776 hardcode_libdir_flag_spec_ld \
11777 hardcode_libdir_separator \
11778 fix_srcfile_path \
11779 exclude_expsyms \
11780 include_expsyms \
11781 file_list_spec \
11782 variables_saved_for_relink \
11783 libname_spec \
11784 library_names_spec \
11785 soname_spec \
11786 finish_eval \
11787 old_striplib \
11788 striplib; do
11789     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11790     *[\\\\\\\`\\"\\\$]*)
11791       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11792       ;;
11793     *)
11794       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11795       ;;
11796     esac
11797 done
11798
11799 # Double-quote double-evaled strings.
11800 for var in reload_cmds \
11801 old_postinstall_cmds \
11802 old_postuninstall_cmds \
11803 old_archive_cmds \
11804 extract_expsyms_cmds \
11805 old_archive_from_new_cmds \
11806 old_archive_from_expsyms_cmds \
11807 archive_cmds \
11808 archive_expsym_cmds \
11809 module_cmds \
11810 module_expsym_cmds \
11811 export_symbols_cmds \
11812 prelink_cmds \
11813 postinstall_cmds \
11814 postuninstall_cmds \
11815 finish_cmds \
11816 sys_lib_search_path_spec \
11817 sys_lib_dlsearch_path_spec; do
11818     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11819     *[\\\\\\\`\\"\\\$]*)
11820       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11821       ;;
11822     *)
11823       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11824       ;;
11825     esac
11826 done
11827
11828 # Fix-up fallback echo if it was mangled by the above quoting rules.
11829 case \$lt_ECHO in
11830 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11831   ;;
11832 esac
11833
11834 ac_aux_dir='$ac_aux_dir'
11835 xsi_shell='$xsi_shell'
11836 lt_shell_append='$lt_shell_append'
11837
11838 # See if we are running on zsh, and set the options which allow our
11839 # commands through without removal of \ escapes INIT.
11840 if test -n "\${ZSH_VERSION+set}" ; then
11841    setopt NO_GLOB_SUBST
11842 fi
11843
11844
11845     PACKAGE='$PACKAGE'
11846     VERSION='$VERSION'
11847     TIMESTAMP='$TIMESTAMP'
11848     RM='$RM'
11849     ofile='$ofile'
11850
11851
11852
11853
11854 _ACEOF
11855
11856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11857
11858 # Handling of arguments.
11859 for ac_config_target in $ac_config_targets
11860 do
11861   case $ac_config_target in
11862     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11863     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11864     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11865     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11866
11867   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11868   esac
11869 done
11870
11871
11872 # If the user did not use the arguments to specify the items to instantiate,
11873 # then the envvar interface is used.  Set only those that are not.
11874 # We use the long form for the default assignment because of an extremely
11875 # bizarre bug on SunOS 4.1.3.
11876 if $ac_need_defaults; then
11877   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11878   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11879   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11880 fi
11881
11882 # Have a temporary directory for convenience.  Make it in the build tree
11883 # simply because there is no reason against having it here, and in addition,
11884 # creating and moving files from /tmp can sometimes cause problems.
11885 # Hook for its removal unless debugging.
11886 # Note that there is a small window in which the directory will not be cleaned:
11887 # after its creation but before its name has been assigned to `$tmp'.
11888 $debug ||
11889 {
11890   tmp=
11891   trap 'exit_status=$?
11892   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11893 ' 0
11894   trap 'as_fn_exit 1' 1 2 13 15
11895 }
11896 # Create a (secure) tmp directory for tmp files.
11897
11898 {
11899   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11900   test -n "$tmp" && test -d "$tmp"
11901 }  ||
11902 {
11903   tmp=./conf$$-$RANDOM
11904   (umask 077 && mkdir "$tmp")
11905 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11906
11907 # Set up the scripts for CONFIG_FILES section.
11908 # No need to generate them if there are no CONFIG_FILES.
11909 # This happens for instance with `./config.status config.h'.
11910 if test -n "$CONFIG_FILES"; then
11911
11912
11913 ac_cr=`echo X | tr X '\015'`
11914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11915 # But we know of no other shell where ac_cr would be empty at this
11916 # point, so we can use a bashism as a fallback.
11917 if test "x$ac_cr" = x; then
11918   eval ac_cr=\$\'\\r\'
11919 fi
11920 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11922   ac_cs_awk_cr='\r'
11923 else
11924   ac_cs_awk_cr=$ac_cr
11925 fi
11926
11927 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11928 _ACEOF
11929
11930
11931 {
11932   echo "cat >conf$$subs.awk <<_ACEOF" &&
11933   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11934   echo "_ACEOF"
11935 } >conf$$subs.sh ||
11936   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11938 ac_delim='%!_!# '
11939 for ac_last_try in false false false false false :; do
11940   . ./conf$$subs.sh ||
11941     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11942
11943   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11944   if test $ac_delim_n = $ac_delim_num; then
11945     break
11946   elif $ac_last_try; then
11947     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11948   else
11949     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11950   fi
11951 done
11952 rm -f conf$$subs.sh
11953
11954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11955 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11956 _ACEOF
11957 sed -n '
11958 h
11959 s/^/S["/; s/!.*/"]=/
11960 p
11961 g
11962 s/^[^!]*!//
11963 :repl
11964 t repl
11965 s/'"$ac_delim"'$//
11966 t delim
11967 :nl
11968 h
11969 s/\(.\{148\}\).*/\1/
11970 t more1
11971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11972 p
11973 n
11974 b repl
11975 :more1
11976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11977 p
11978 g
11979 s/.\{148\}//
11980 t nl
11981 :delim
11982 h
11983 s/\(.\{148\}\).*/\1/
11984 t more2
11985 s/["\\]/\\&/g; s/^/"/; s/$/"/
11986 p
11987 b
11988 :more2
11989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11990 p
11991 g
11992 s/.\{148\}//
11993 t delim
11994 ' <conf$$subs.awk | sed '
11995 /^[^""]/{
11996   N
11997   s/\n//
11998 }
11999 ' >>$CONFIG_STATUS || ac_write_fail=1
12000 rm -f conf$$subs.awk
12001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12002 _ACAWK
12003 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12004   for (key in S) S_is_set[key] = 1
12005   FS = "\a"
12006
12007 }
12008 {
12009   line = $ 0
12010   nfields = split(line, field, "@")
12011   substed = 0
12012   len = length(field[1])
12013   for (i = 2; i < nfields; i++) {
12014     key = field[i]
12015     keylen = length(key)
12016     if (S_is_set[key]) {
12017       value = S[key]
12018       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12019       len += length(value) + length(field[++i])
12020       substed = 1
12021     } else
12022       len += 1 + keylen
12023   }
12024
12025   print line
12026 }
12027
12028 _ACAWK
12029 _ACEOF
12030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12032   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12033 else
12034   cat
12035 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12036   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12037 _ACEOF
12038
12039 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12040 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12041 # trailing colons and then remove the whole line if VPATH becomes empty
12042 # (actually we leave an empty line to preserve line numbers).
12043 if test "x$srcdir" = x.; then
12044   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12045 s/:*\$(srcdir):*/:/
12046 s/:*\${srcdir}:*/:/
12047 s/:*@srcdir@:*/:/
12048 s/^\([^=]*=[     ]*\):*/\1/
12049 s/:*$//
12050 s/^[^=]*=[       ]*$//
12051 }'
12052 fi
12053
12054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12055 fi # test -n "$CONFIG_FILES"
12056
12057 # Set up the scripts for CONFIG_HEADERS section.
12058 # No need to generate them if there are no CONFIG_HEADERS.
12059 # This happens for instance with `./config.status Makefile'.
12060 if test -n "$CONFIG_HEADERS"; then
12061 cat >"$tmp/defines.awk" <<\_ACAWK ||
12062 BEGIN {
12063 _ACEOF
12064
12065 # Transform confdefs.h into an awk script `defines.awk', embedded as
12066 # here-document in config.status, that substitutes the proper values into
12067 # config.h.in to produce config.h.
12068
12069 # Create a delimiter string that does not exist in confdefs.h, to ease
12070 # handling of long lines.
12071 ac_delim='%!_!# '
12072 for ac_last_try in false false :; do
12073   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12074   if test -z "$ac_t"; then
12075     break
12076   elif $ac_last_try; then
12077     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12078   else
12079     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12080   fi
12081 done
12082
12083 # For the awk script, D is an array of macro values keyed by name,
12084 # likewise P contains macro parameters if any.  Preserve backslash
12085 # newline sequences.
12086
12087 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12088 sed -n '
12089 s/.\{148\}/&'"$ac_delim"'/g
12090 t rset
12091 :rset
12092 s/^[     ]*#[    ]*define[       ][      ]*/ /
12093 t def
12094 d
12095 :def
12096 s/\\$//
12097 t bsnl
12098 s/["\\]/\\&/g
12099 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12100 D["\1"]=" \3"/p
12101 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12102 d
12103 :bsnl
12104 s/["\\]/\\&/g
12105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12106 D["\1"]=" \3\\\\\\n"\\/p
12107 t cont
12108 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12109 t cont
12110 d
12111 :cont
12112 n
12113 s/.\{148\}/&'"$ac_delim"'/g
12114 t clear
12115 :clear
12116 s/\\$//
12117 t bsnlc
12118 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12119 d
12120 :bsnlc
12121 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12122 b cont
12123 ' <confdefs.h | sed '
12124 s/'"$ac_delim"'/"\\\
12125 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12126
12127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12128   for (key in D) D_is_set[key] = 1
12129   FS = "\a"
12130 }
12131 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12132   line = \$ 0
12133   split(line, arg, " ")
12134   if (arg[1] == "#") {
12135     defundef = arg[2]
12136     mac1 = arg[3]
12137   } else {
12138     defundef = substr(arg[1], 2)
12139     mac1 = arg[2]
12140   }
12141   split(mac1, mac2, "(") #)
12142   macro = mac2[1]
12143   prefix = substr(line, 1, index(line, defundef) - 1)
12144   if (D_is_set[macro]) {
12145     # Preserve the white space surrounding the "#".
12146     print prefix "define", macro P[macro] D[macro]
12147     next
12148   } else {
12149     # Replace #undef with comments.  This is necessary, for example,
12150     # in the case of _POSIX_SOURCE, which is predefined and required
12151     # on some systems where configure will not decide to define it.
12152     if (defundef == "undef") {
12153       print "/*", prefix defundef, macro, "*/"
12154       next
12155     }
12156   }
12157 }
12158 { print }
12159 _ACAWK
12160 _ACEOF
12161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12162   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12163 fi # test -n "$CONFIG_HEADERS"
12164
12165
12166 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12167 shift
12168 for ac_tag
12169 do
12170   case $ac_tag in
12171   :[FHLC]) ac_mode=$ac_tag; continue;;
12172   esac
12173   case $ac_mode$ac_tag in
12174   :[FHL]*:*);;
12175   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12176   :[FH]-) ac_tag=-:-;;
12177   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12178   esac
12179   ac_save_IFS=$IFS
12180   IFS=:
12181   set x $ac_tag
12182   IFS=$ac_save_IFS
12183   shift
12184   ac_file=$1
12185   shift
12186
12187   case $ac_mode in
12188   :L) ac_source=$1;;
12189   :[FH])
12190     ac_file_inputs=
12191     for ac_f
12192     do
12193       case $ac_f in
12194       -) ac_f="$tmp/stdin";;
12195       *) # Look for the file first in the build tree, then in the source tree
12196          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12197          # because $ac_f cannot contain `:'.
12198          test -f "$ac_f" ||
12199            case $ac_f in
12200            [\\/$]*) false;;
12201            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12202            esac ||
12203            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12204       esac
12205       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12206       as_fn_append ac_file_inputs " '$ac_f'"
12207     done
12208
12209     # Let's still pretend it is `configure' which instantiates (i.e., don't
12210     # use $as_me), people would be surprised to read:
12211     #    /* config.h.  Generated by config.status.  */
12212     configure_input='Generated from '`
12213           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12214         `' by configure.'
12215     if test x"$ac_file" != x-; then
12216       configure_input="$ac_file.  $configure_input"
12217       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12218 $as_echo "$as_me: creating $ac_file" >&6;}
12219     fi
12220     # Neutralize special characters interpreted by sed in replacement strings.
12221     case $configure_input in #(
12222     *\&* | *\|* | *\\* )
12223        ac_sed_conf_input=`$as_echo "$configure_input" |
12224        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12225     *) ac_sed_conf_input=$configure_input;;
12226     esac
12227
12228     case $ac_tag in
12229     *:-:* | *:-) cat >"$tmp/stdin" \
12230       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12231     esac
12232     ;;
12233   esac
12234
12235   ac_dir=`$as_dirname -- "$ac_file" ||
12236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12237          X"$ac_file" : 'X\(//\)[^/]' \| \
12238          X"$ac_file" : 'X\(//\)$' \| \
12239          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12240 $as_echo X"$ac_file" |
12241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12242             s//\1/
12243             q
12244           }
12245           /^X\(\/\/\)[^/].*/{
12246             s//\1/
12247             q
12248           }
12249           /^X\(\/\/\)$/{
12250             s//\1/
12251             q
12252           }
12253           /^X\(\/\).*/{
12254             s//\1/
12255             q
12256           }
12257           s/.*/./; q'`
12258   as_dir="$ac_dir"; as_fn_mkdir_p
12259   ac_builddir=.
12260
12261 case "$ac_dir" in
12262 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12263 *)
12264   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12265   # A ".." for each directory in $ac_dir_suffix.
12266   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12267   case $ac_top_builddir_sub in
12268   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12269   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12270   esac ;;
12271 esac
12272 ac_abs_top_builddir=$ac_pwd
12273 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12274 # for backward compatibility:
12275 ac_top_builddir=$ac_top_build_prefix
12276
12277 case $srcdir in
12278   .)  # We are building in place.
12279     ac_srcdir=.
12280     ac_top_srcdir=$ac_top_builddir_sub
12281     ac_abs_top_srcdir=$ac_pwd ;;
12282   [\\/]* | ?:[\\/]* )  # Absolute name.
12283     ac_srcdir=$srcdir$ac_dir_suffix;
12284     ac_top_srcdir=$srcdir
12285     ac_abs_top_srcdir=$srcdir ;;
12286   *) # Relative name.
12287     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12288     ac_top_srcdir=$ac_top_build_prefix$srcdir
12289     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12290 esac
12291 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12292
12293
12294   case $ac_mode in
12295   :F)
12296   #
12297   # CONFIG_FILE
12298   #
12299
12300   case $INSTALL in
12301   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12302   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12303   esac
12304   ac_MKDIR_P=$MKDIR_P
12305   case $MKDIR_P in
12306   [\\/$]* | ?:[\\/]* ) ;;
12307   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12308   esac
12309 _ACEOF
12310
12311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12312 # If the template does not know about datarootdir, expand it.
12313 # FIXME: This hack should be removed a few years after 2.60.
12314 ac_datarootdir_hack=; ac_datarootdir_seen=
12315 ac_sed_dataroot='
12316 /datarootdir/ {
12317   p
12318   q
12319 }
12320 /@datadir@/p
12321 /@docdir@/p
12322 /@infodir@/p
12323 /@localedir@/p
12324 /@mandir@/p'
12325 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12326 *datarootdir*) ac_datarootdir_seen=yes;;
12327 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12328   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12329 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12330 _ACEOF
12331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12332   ac_datarootdir_hack='
12333   s&@datadir@&$datadir&g
12334   s&@docdir@&$docdir&g
12335   s&@infodir@&$infodir&g
12336   s&@localedir@&$localedir&g
12337   s&@mandir@&$mandir&g
12338   s&\\\${datarootdir}&$datarootdir&g' ;;
12339 esac
12340 _ACEOF
12341
12342 # Neutralize VPATH when `$srcdir' = `.'.
12343 # Shell code in configure.ac might set extrasub.
12344 # FIXME: do we really want to maintain this feature?
12345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12346 ac_sed_extra="$ac_vpsub
12347 $extrasub
12348 _ACEOF
12349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12350 :t
12351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12352 s|@configure_input@|$ac_sed_conf_input|;t t
12353 s&@top_builddir@&$ac_top_builddir_sub&;t t
12354 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12355 s&@srcdir@&$ac_srcdir&;t t
12356 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12357 s&@top_srcdir@&$ac_top_srcdir&;t t
12358 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12359 s&@builddir@&$ac_builddir&;t t
12360 s&@abs_builddir@&$ac_abs_builddir&;t t
12361 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12362 s&@INSTALL@&$ac_INSTALL&;t t
12363 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12364 $ac_datarootdir_hack
12365 "
12366 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12367   || as_fn_error "could not create $ac_file" "$LINENO" 5
12368
12369 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12370   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12371   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12373 which seems to be undefined.  Please make sure it is defined." >&5
12374 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12375 which seems to be undefined.  Please make sure it is defined." >&2;}
12376
12377   rm -f "$tmp/stdin"
12378   case $ac_file in
12379   -) cat "$tmp/out" && rm -f "$tmp/out";;
12380   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12381   esac \
12382   || as_fn_error "could not create $ac_file" "$LINENO" 5
12383  ;;
12384   :H)
12385   #
12386   # CONFIG_HEADER
12387   #
12388   if test x"$ac_file" != x-; then
12389     {
12390       $as_echo "/* $configure_input  */" \
12391       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12392     } >"$tmp/config.h" \
12393       || as_fn_error "could not create $ac_file" "$LINENO" 5
12394     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12395       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12396 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12397     else
12398       rm -f "$ac_file"
12399       mv "$tmp/config.h" "$ac_file" \
12400         || as_fn_error "could not create $ac_file" "$LINENO" 5
12401     fi
12402   else
12403     $as_echo "/* $configure_input  */" \
12404       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12405       || as_fn_error "could not create -" "$LINENO" 5
12406   fi
12407 # Compute "$ac_file"'s index in $config_headers.
12408 _am_arg="$ac_file"
12409 _am_stamp_count=1
12410 for _am_header in $config_headers :; do
12411   case $_am_header in
12412     $_am_arg | $_am_arg:* )
12413       break ;;
12414     * )
12415       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12416   esac
12417 done
12418 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12419 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12420          X"$_am_arg" : 'X\(//\)[^/]' \| \
12421          X"$_am_arg" : 'X\(//\)$' \| \
12422          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12423 $as_echo X"$_am_arg" |
12424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12425             s//\1/
12426             q
12427           }
12428           /^X\(\/\/\)[^/].*/{
12429             s//\1/
12430             q
12431           }
12432           /^X\(\/\/\)$/{
12433             s//\1/
12434             q
12435           }
12436           /^X\(\/\).*/{
12437             s//\1/
12438             q
12439           }
12440           s/.*/./; q'`/stamp-h$_am_stamp_count
12441  ;;
12442
12443   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12444 $as_echo "$as_me: executing $ac_file commands" >&6;}
12445  ;;
12446   esac
12447
12448
12449   case $ac_file$ac_mode in
12450     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12451   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12452   # are listed without --file.  Let's play safe and only enable the eval
12453   # if we detect the quoting.
12454   case $CONFIG_FILES in
12455   *\'*) eval set x "$CONFIG_FILES" ;;
12456   *)   set x $CONFIG_FILES ;;
12457   esac
12458   shift
12459   for mf
12460   do
12461     # Strip MF so we end up with the name of the file.
12462     mf=`echo "$mf" | sed -e 's/:.*$//'`
12463     # Check whether this is an Automake generated Makefile or not.
12464     # We used to match only the files named `Makefile.in', but
12465     # some people rename them; so instead we look at the file content.
12466     # Grep'ing the first line is not enough: some people post-process
12467     # each Makefile.in and add a new line on top of each file to say so.
12468     # Grep'ing the whole file is not good either: AIX grep has a line
12469     # limit of 2048, but all sed's we know have understand at least 4000.
12470     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12471       dirpart=`$as_dirname -- "$mf" ||
12472 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12473          X"$mf" : 'X\(//\)[^/]' \| \
12474          X"$mf" : 'X\(//\)$' \| \
12475          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12476 $as_echo X"$mf" |
12477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12478             s//\1/
12479             q
12480           }
12481           /^X\(\/\/\)[^/].*/{
12482             s//\1/
12483             q
12484           }
12485           /^X\(\/\/\)$/{
12486             s//\1/
12487             q
12488           }
12489           /^X\(\/\).*/{
12490             s//\1/
12491             q
12492           }
12493           s/.*/./; q'`
12494     else
12495       continue
12496     fi
12497     # Extract the definition of DEPDIR, am__include, and am__quote
12498     # from the Makefile without running `make'.
12499     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12500     test -z "$DEPDIR" && continue
12501     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12502     test -z "am__include" && continue
12503     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12504     # When using ansi2knr, U may be empty or an underscore; expand it
12505     U=`sed -n 's/^U = //p' < "$mf"`
12506     # Find all dependency output files, they are included files with
12507     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12508     # simplest approach to changing $(DEPDIR) to its actual value in the
12509     # expansion.
12510     for file in `sed -n "
12511       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12512          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12513       # Make sure the directory exists.
12514       test -f "$dirpart/$file" && continue
12515       fdir=`$as_dirname -- "$file" ||
12516 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12517          X"$file" : 'X\(//\)[^/]' \| \
12518          X"$file" : 'X\(//\)$' \| \
12519          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12520 $as_echo X"$file" |
12521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12522             s//\1/
12523             q
12524           }
12525           /^X\(\/\/\)[^/].*/{
12526             s//\1/
12527             q
12528           }
12529           /^X\(\/\/\)$/{
12530             s//\1/
12531             q
12532           }
12533           /^X\(\/\).*/{
12534             s//\1/
12535             q
12536           }
12537           s/.*/./; q'`
12538       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12539       # echo "creating $dirpart/$file"
12540       echo '# dummy' > "$dirpart/$file"
12541     done
12542   done
12543 }
12544  ;;
12545     "libtool":C)
12546
12547     # See if we are running on zsh, and set the options which allow our
12548     # commands through without removal of \ escapes.
12549     if test -n "${ZSH_VERSION+set}" ; then
12550       setopt NO_GLOB_SUBST
12551     fi
12552
12553     cfgfile="${ofile}T"
12554     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12555     $RM "$cfgfile"
12556
12557     cat <<_LT_EOF >> "$cfgfile"
12558 #! $SHELL
12559
12560 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12561 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12562 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12564 #
12565 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12566 #                 2006, 2007, 2008 Free Software Foundation, Inc.
12567 #   Written by Gordon Matzigkeit, 1996
12568 #
12569 #   This file is part of GNU Libtool.
12570 #
12571 # GNU Libtool is free software; you can redistribute it and/or
12572 # modify it under the terms of the GNU General Public License as
12573 # published by the Free Software Foundation; either version 2 of
12574 # the License, or (at your option) any later version.
12575 #
12576 # As a special exception to the GNU General Public License,
12577 # if you distribute this file as part of a program or library that
12578 # is built using GNU Libtool, you may include this file under the
12579 # same distribution terms that you use for the rest of that program.
12580 #
12581 # GNU Libtool is distributed in the hope that it will be useful,
12582 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12583 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12584 # GNU General Public License for more details.
12585 #
12586 # You should have received a copy of the GNU General Public License
12587 # along with GNU Libtool; see the file COPYING.  If not, a copy
12588 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12589 # obtained by writing to the Free Software Foundation, Inc.,
12590 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12591
12592
12593 # The names of the tagged configurations supported by this script.
12594 available_tags=""
12595
12596 # ### BEGIN LIBTOOL CONFIG
12597
12598 # Which release of libtool.m4 was used?
12599 macro_version=$macro_version
12600 macro_revision=$macro_revision
12601
12602 # Whether or not to build shared libraries.
12603 build_libtool_libs=$enable_shared
12604
12605 # Whether or not to build static libraries.
12606 build_old_libs=$enable_static
12607
12608 # What type of objects to build.
12609 pic_mode=$pic_mode
12610
12611 # Whether or not to optimize for fast installation.
12612 fast_install=$enable_fast_install
12613
12614 # The host system.
12615 host_alias=$host_alias
12616 host=$host
12617 host_os=$host_os
12618
12619 # The build system.
12620 build_alias=$build_alias
12621 build=$build
12622 build_os=$build_os
12623
12624 # A sed program that does not truncate output.
12625 SED=$lt_SED
12626
12627 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12628 Xsed="\$SED -e 1s/^X//"
12629
12630 # A grep program that handles long lines.
12631 GREP=$lt_GREP
12632
12633 # An ERE matcher.
12634 EGREP=$lt_EGREP
12635
12636 # A literal string matcher.
12637 FGREP=$lt_FGREP
12638
12639 # A BSD- or MS-compatible name lister.
12640 NM=$lt_NM
12641
12642 # Whether we need soft or hard links.
12643 LN_S=$lt_LN_S
12644
12645 # What is the maximum length of a command?
12646 max_cmd_len=$max_cmd_len
12647
12648 # Object file suffix (normally "o").
12649 objext=$ac_objext
12650
12651 # Executable file suffix (normally "").
12652 exeext=$exeext
12653
12654 # whether the shell understands "unset".
12655 lt_unset=$lt_unset
12656
12657 # turn spaces into newlines.
12658 SP2NL=$lt_lt_SP2NL
12659
12660 # turn newlines into spaces.
12661 NL2SP=$lt_lt_NL2SP
12662
12663 # How to create reloadable object files.
12664 reload_flag=$lt_reload_flag
12665 reload_cmds=$lt_reload_cmds
12666
12667 # An object symbol dumper.
12668 OBJDUMP=$lt_OBJDUMP
12669
12670 # Method to check whether dependent libraries are shared objects.
12671 deplibs_check_method=$lt_deplibs_check_method
12672
12673 # Command to use when deplibs_check_method == "file_magic".
12674 file_magic_cmd=$lt_file_magic_cmd
12675
12676 # The archiver.
12677 AR=$lt_AR
12678 AR_FLAGS=$lt_AR_FLAGS
12679
12680 # A symbol stripping program.
12681 STRIP=$lt_STRIP
12682
12683 # Commands used to install an old-style archive.
12684 RANLIB=$lt_RANLIB
12685 old_postinstall_cmds=$lt_old_postinstall_cmds
12686 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12687
12688 # A C compiler.
12689 LTCC=$lt_CC
12690
12691 # LTCC compiler flags.
12692 LTCFLAGS=$lt_CFLAGS
12693
12694 # Take the output of nm and produce a listing of raw symbols and C names.
12695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12696
12697 # Transform the output of nm in a proper C declaration.
12698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12699
12700 # Transform the output of nm in a C name address pair.
12701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12702
12703 # Transform the output of nm in a C name address pair when lib prefix is needed.
12704 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12705
12706 # The name of the directory that contains temporary libtool files.
12707 objdir=$objdir
12708
12709 # Shell to use when invoking shell scripts.
12710 SHELL=$lt_SHELL
12711
12712 # An echo program that does not interpret backslashes.
12713 ECHO=$lt_ECHO
12714
12715 # Used to examine libraries when file_magic_cmd begins with "file".
12716 MAGIC_CMD=$MAGIC_CMD
12717
12718 # Must we lock files when doing compilation?
12719 need_locks=$lt_need_locks
12720
12721 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12722 DSYMUTIL=$lt_DSYMUTIL
12723
12724 # Tool to change global to local symbols on Mac OS X.
12725 NMEDIT=$lt_NMEDIT
12726
12727 # Tool to manipulate fat objects and archives on Mac OS X.
12728 LIPO=$lt_LIPO
12729
12730 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12731 OTOOL=$lt_OTOOL
12732
12733 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12734 OTOOL64=$lt_OTOOL64
12735
12736 # Old archive suffix (normally "a").
12737 libext=$libext
12738
12739 # Shared library suffix (normally ".so").
12740 shrext_cmds=$lt_shrext_cmds
12741
12742 # The commands to extract the exported symbol list from a shared archive.
12743 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12744
12745 # Variables whose values should be saved in libtool wrapper scripts and
12746 # restored at link time.
12747 variables_saved_for_relink=$lt_variables_saved_for_relink
12748
12749 # Do we need the "lib" prefix for modules?
12750 need_lib_prefix=$need_lib_prefix
12751
12752 # Do we need a version for libraries?
12753 need_version=$need_version
12754
12755 # Library versioning type.
12756 version_type=$version_type
12757
12758 # Shared library runtime path variable.
12759 runpath_var=$runpath_var
12760
12761 # Shared library path variable.
12762 shlibpath_var=$shlibpath_var
12763
12764 # Is shlibpath searched before the hard-coded library search path?
12765 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12766
12767 # Format of library name prefix.
12768 libname_spec=$lt_libname_spec
12769
12770 # List of archive names.  First name is the real one, the rest are links.
12771 # The last name is the one that the linker finds with -lNAME
12772 library_names_spec=$lt_library_names_spec
12773
12774 # The coded name of the library, if different from the real name.
12775 soname_spec=$lt_soname_spec
12776
12777 # Command to use after installation of a shared archive.
12778 postinstall_cmds=$lt_postinstall_cmds
12779
12780 # Command to use after uninstallation of a shared archive.
12781 postuninstall_cmds=$lt_postuninstall_cmds
12782
12783 # Commands used to finish a libtool library installation in a directory.
12784 finish_cmds=$lt_finish_cmds
12785
12786 # As "finish_cmds", except a single script fragment to be evaled but
12787 # not shown.
12788 finish_eval=$lt_finish_eval
12789
12790 # Whether we should hardcode library paths into libraries.
12791 hardcode_into_libs=$hardcode_into_libs
12792
12793 # Compile-time system search path for libraries.
12794 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12795
12796 # Run-time system search path for libraries.
12797 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12798
12799 # Whether dlopen is supported.
12800 dlopen_support=$enable_dlopen
12801
12802 # Whether dlopen of programs is supported.
12803 dlopen_self=$enable_dlopen_self
12804
12805 # Whether dlopen of statically linked programs is supported.
12806 dlopen_self_static=$enable_dlopen_self_static
12807
12808 # Commands to strip libraries.
12809 old_striplib=$lt_old_striplib
12810 striplib=$lt_striplib
12811
12812
12813 # The linker used to build libraries.
12814 LD=$lt_LD
12815
12816 # Commands used to build an old-style archive.
12817 old_archive_cmds=$lt_old_archive_cmds
12818
12819 # A language specific compiler.
12820 CC=$lt_compiler
12821
12822 # Is the compiler the GNU compiler?
12823 with_gcc=$GCC
12824
12825 # Compiler flag to turn off builtin functions.
12826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12827
12828 # How to pass a linker flag through the compiler.
12829 wl=$lt_lt_prog_compiler_wl
12830
12831 # Additional compiler flags for building library objects.
12832 pic_flag=$lt_lt_prog_compiler_pic
12833
12834 # Compiler flag to prevent dynamic linking.
12835 link_static_flag=$lt_lt_prog_compiler_static
12836
12837 # Does compiler simultaneously support -c and -o options?
12838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12839
12840 # Whether or not to add -lc for building shared libraries.
12841 build_libtool_need_lc=$archive_cmds_need_lc
12842
12843 # Whether or not to disallow shared libs when runtime libs are static.
12844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12845
12846 # Compiler flag to allow reflexive dlopens.
12847 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12848
12849 # Compiler flag to generate shared objects directly from archives.
12850 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12851
12852 # Whether the compiler copes with passing no objects directly.
12853 compiler_needs_object=$lt_compiler_needs_object
12854
12855 # Create an old-style archive from a shared archive.
12856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12857
12858 # Create a temporary old-style archive to link instead of a shared archive.
12859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12860
12861 # Commands used to build a shared archive.
12862 archive_cmds=$lt_archive_cmds
12863 archive_expsym_cmds=$lt_archive_expsym_cmds
12864
12865 # Commands used to build a loadable module if different from building
12866 # a shared archive.
12867 module_cmds=$lt_module_cmds
12868 module_expsym_cmds=$lt_module_expsym_cmds
12869
12870 # Whether we are building with GNU ld or not.
12871 with_gnu_ld=$lt_with_gnu_ld
12872
12873 # Flag that allows shared libraries with undefined symbols to be built.
12874 allow_undefined_flag=$lt_allow_undefined_flag
12875
12876 # Flag that enforces no undefined symbols.
12877 no_undefined_flag=$lt_no_undefined_flag
12878
12879 # Flag to hardcode \$libdir into a binary during linking.
12880 # This must work even if \$libdir does not exist
12881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12882
12883 # If ld is used when linking, flag to hardcode \$libdir into a binary
12884 # during linking.  This must work even if \$libdir does not exist.
12885 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12886
12887 # Whether we need a single "-rpath" flag with a separated argument.
12888 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12889
12890 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12891 # DIR into the resulting binary.
12892 hardcode_direct=$hardcode_direct
12893
12894 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12895 # DIR into the resulting binary and the resulting library dependency is
12896 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12897 # library is relocated.
12898 hardcode_direct_absolute=$hardcode_direct_absolute
12899
12900 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12901 # into the resulting binary.
12902 hardcode_minus_L=$hardcode_minus_L
12903
12904 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12905 # into the resulting binary.
12906 hardcode_shlibpath_var=$hardcode_shlibpath_var
12907
12908 # Set to "yes" if building a shared library automatically hardcodes DIR
12909 # into the library and all subsequent libraries and executables linked
12910 # against it.
12911 hardcode_automatic=$hardcode_automatic
12912
12913 # Set to yes if linker adds runtime paths of dependent libraries
12914 # to runtime path list.
12915 inherit_rpath=$inherit_rpath
12916
12917 # Whether libtool must link a program against all its dependency libraries.
12918 link_all_deplibs=$link_all_deplibs
12919
12920 # Fix the shell variable \$srcfile for the compiler.
12921 fix_srcfile_path=$lt_fix_srcfile_path
12922
12923 # Set to "yes" if exported symbols are required.
12924 always_export_symbols=$always_export_symbols
12925
12926 # The commands to list exported symbols.
12927 export_symbols_cmds=$lt_export_symbols_cmds
12928
12929 # Symbols that should not be listed in the preloaded symbols.
12930 exclude_expsyms=$lt_exclude_expsyms
12931
12932 # Symbols that must always be exported.
12933 include_expsyms=$lt_include_expsyms
12934
12935 # Commands necessary for linking programs (against libraries) with templates.
12936 prelink_cmds=$lt_prelink_cmds
12937
12938 # Specify filename containing input files.
12939 file_list_spec=$lt_file_list_spec
12940
12941 # How to hardcode a shared library path into an executable.
12942 hardcode_action=$hardcode_action
12943
12944 # ### END LIBTOOL CONFIG
12945
12946 _LT_EOF
12947
12948   case $host_os in
12949   aix3*)
12950     cat <<\_LT_EOF >> "$cfgfile"
12951 # AIX sometimes has problems with the GCC collect2 program.  For some
12952 # reason, if we set the COLLECT_NAMES environment variable, the problems
12953 # vanish in a puff of smoke.
12954 if test "X${COLLECT_NAMES+set}" != Xset; then
12955   COLLECT_NAMES=
12956   export COLLECT_NAMES
12957 fi
12958 _LT_EOF
12959     ;;
12960   esac
12961
12962
12963 ltmain="$ac_aux_dir/ltmain.sh"
12964
12965
12966   # We use sed instead of cat because bash on DJGPP gets confused if
12967   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12968   # text mode, it properly converts lines to CR/LF.  This bash problem
12969   # is reportedly fixed, but why not run on old versions too?
12970   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12971     || (rm -f "$cfgfile"; exit 1)
12972
12973   case $xsi_shell in
12974   yes)
12975     cat << \_LT_EOF >> "$cfgfile"
12976
12977 # func_dirname file append nondir_replacement
12978 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12979 # otherwise set result to NONDIR_REPLACEMENT.
12980 func_dirname ()
12981 {
12982   case ${1} in
12983     */*) func_dirname_result="${1%/*}${2}" ;;
12984     *  ) func_dirname_result="${3}" ;;
12985   esac
12986 }
12987
12988 # func_basename file
12989 func_basename ()
12990 {
12991   func_basename_result="${1##*/}"
12992 }
12993
12994 # func_dirname_and_basename file append nondir_replacement
12995 # perform func_basename and func_dirname in a single function
12996 # call:
12997 #   dirname:  Compute the dirname of FILE.  If nonempty,
12998 #             add APPEND to the result, otherwise set result
12999 #             to NONDIR_REPLACEMENT.
13000 #             value returned in "$func_dirname_result"
13001 #   basename: Compute filename of FILE.
13002 #             value retuned in "$func_basename_result"
13003 # Implementation must be kept synchronized with func_dirname
13004 # and func_basename. For efficiency, we do not delegate to
13005 # those functions but instead duplicate the functionality here.
13006 func_dirname_and_basename ()
13007 {
13008   case ${1} in
13009     */*) func_dirname_result="${1%/*}${2}" ;;
13010     *  ) func_dirname_result="${3}" ;;
13011   esac
13012   func_basename_result="${1##*/}"
13013 }
13014
13015 # func_stripname prefix suffix name
13016 # strip PREFIX and SUFFIX off of NAME.
13017 # PREFIX and SUFFIX must not contain globbing or regex special
13018 # characters, hashes, percent signs, but SUFFIX may contain a leading
13019 # dot (in which case that matches only a dot).
13020 func_stripname ()
13021 {
13022   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13023   # positional parameters, so assign one to ordinary parameter first.
13024   func_stripname_result=${3}
13025   func_stripname_result=${func_stripname_result#"${1}"}
13026   func_stripname_result=${func_stripname_result%"${2}"}
13027 }
13028
13029 # func_opt_split
13030 func_opt_split ()
13031 {
13032   func_opt_split_opt=${1%%=*}
13033   func_opt_split_arg=${1#*=}
13034 }
13035
13036 # func_lo2o object
13037 func_lo2o ()
13038 {
13039   case ${1} in
13040     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13041     *)    func_lo2o_result=${1} ;;
13042   esac
13043 }
13044
13045 # func_xform libobj-or-source
13046 func_xform ()
13047 {
13048   func_xform_result=${1%.*}.lo
13049 }
13050
13051 # func_arith arithmetic-term...
13052 func_arith ()
13053 {
13054   func_arith_result=$(( $* ))
13055 }
13056
13057 # func_len string
13058 # STRING may not start with a hyphen.
13059 func_len ()
13060 {
13061   func_len_result=${#1}
13062 }
13063
13064 _LT_EOF
13065     ;;
13066   *) # Bourne compatible functions.
13067     cat << \_LT_EOF >> "$cfgfile"
13068
13069 # func_dirname file append nondir_replacement
13070 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13071 # otherwise set result to NONDIR_REPLACEMENT.
13072 func_dirname ()
13073 {
13074   # Extract subdirectory from the argument.
13075   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13076   if test "X$func_dirname_result" = "X${1}"; then
13077     func_dirname_result="${3}"
13078   else
13079     func_dirname_result="$func_dirname_result${2}"
13080   fi
13081 }
13082
13083 # func_basename file
13084 func_basename ()
13085 {
13086   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13087 }
13088
13089
13090 # func_stripname prefix suffix name
13091 # strip PREFIX and SUFFIX off of NAME.
13092 # PREFIX and SUFFIX must not contain globbing or regex special
13093 # characters, hashes, percent signs, but SUFFIX may contain a leading
13094 # dot (in which case that matches only a dot).
13095 # func_strip_suffix prefix name
13096 func_stripname ()
13097 {
13098   case ${2} in
13099     .*) func_stripname_result=`$ECHO "X${3}" \
13100            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13101     *)  func_stripname_result=`$ECHO "X${3}" \
13102            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13103   esac
13104 }
13105
13106 # sed scripts:
13107 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13108 my_sed_long_arg='1s/^-[^=]*=//'
13109
13110 # func_opt_split
13111 func_opt_split ()
13112 {
13113   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13114   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13115 }
13116
13117 # func_lo2o object
13118 func_lo2o ()
13119 {
13120   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13121 }
13122
13123 # func_xform libobj-or-source
13124 func_xform ()
13125 {
13126   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13127 }
13128
13129 # func_arith arithmetic-term...
13130 func_arith ()
13131 {
13132   func_arith_result=`expr "$@"`
13133 }
13134
13135 # func_len string
13136 # STRING may not start with a hyphen.
13137 func_len ()
13138 {
13139   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13140 }
13141
13142 _LT_EOF
13143 esac
13144
13145 case $lt_shell_append in
13146   yes)
13147     cat << \_LT_EOF >> "$cfgfile"
13148
13149 # func_append var value
13150 # Append VALUE to the end of shell variable VAR.
13151 func_append ()
13152 {
13153   eval "$1+=\$2"
13154 }
13155 _LT_EOF
13156     ;;
13157   *)
13158     cat << \_LT_EOF >> "$cfgfile"
13159
13160 # func_append var value
13161 # Append VALUE to the end of shell variable VAR.
13162 func_append ()
13163 {
13164   eval "$1=\$$1\$2"
13165 }
13166
13167 _LT_EOF
13168     ;;
13169   esac
13170
13171
13172   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13173     || (rm -f "$cfgfile"; exit 1)
13174
13175   mv -f "$cfgfile" "$ofile" ||
13176     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13177   chmod +x "$ofile"
13178
13179  ;;
13180
13181   esac
13182 done # for ac_tag
13183
13184
13185 as_fn_exit 0
13186 _ACEOF
13187 ac_clean_files=$ac_clean_files_save
13188
13189 test $ac_write_fail = 0 ||
13190   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13191
13192
13193 # configure is writing to config.log, and then calls config.status.
13194 # config.status does its own redirection, appending to config.log.
13195 # Unfortunately, on DOS this fails, as config.log is still kept open
13196 # by configure, so config.status won't be able to write to it; its
13197 # output is simply discarded.  So we exec the FD to /dev/null,
13198 # effectively closing config.log, so it can be properly (re)opened and
13199 # appended to by config.status.  When coming back to configure, we
13200 # need to make the FD available again.
13201 if test "$no_create" != yes; then
13202   ac_cs_success=:
13203   ac_config_status_args=
13204   test "$silent" = yes &&
13205     ac_config_status_args="$ac_config_status_args --quiet"
13206   exec 5>/dev/null
13207   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13208   exec 5>>config.log
13209   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13210   # would make configure fail if this is the last instruction.
13211   $ac_cs_success || as_fn_exit $?
13212 fi
13213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13214   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13215 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13216 fi
13217
This page took 1.036789 seconds and 3 git commands to generate.