]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/file/configure
zfs: merge openzfs/zfs@52bad4f23 (zfs-2.1-release) into stable/13
[FreeBSD/FreeBSD.git] / contrib / file / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for file 5.41.
4 #
5 # Report bugs to <christos@astron.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
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 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: christos@astron.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='file'
592 PACKAGE_TARNAME='file'
593 PACKAGE_VERSION='5.41'
594 PACKAGE_STRING='file 5.41'
595 PACKAGE_BUGREPORT='christos@astron.com'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_header_list=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 IS_CROSS_COMPILE_FALSE
639 IS_CROSS_COMPILE_TRUE
640 LIBOBJS
641 HAVE_VISIBILITY
642 CFLAG_VISIBILITY
643 LT_SYS_LIBRARY_PATH
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 ac_ct_AR
652 AR
653 DLLTOOL
654 OBJDUMP
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 SED
661 LIBTOOL
662 LN_S
663 EGREP
664 GREP
665 CPP
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 WARNINGS
683 FSECT5_FALSE
684 FSECT5_TRUE
685 fsect
686 pkgdatadir
687 MINGW_FALSE
688 MINGW_TRUE
689 MINGW
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL
763 am__quote'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_silent_rules
768 enable_elf
769 enable_elf_core
770 enable_zlib
771 enable_bzlib
772 enable_xzlib
773 enable_libseccomp
774 enable_fsect_man5
775 enable_dependency_tracking
776 enable_static
777 with_pic
778 enable_shared
779 enable_fast_install
780 with_aix_soname
781 with_gnu_ld
782 with_sysroot
783 enable_libtool_lock
784 enable_largefile
785 enable_warnings
786 '
787       ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 CPP
796 LT_SYS_LIBRARY_PATH'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
839 htmldir='${docdir}'
840 dvidir='${docdir}'
841 pdfdir='${docdir}'
842 psdir='${docdir}'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
846
847 ac_prev=
848 ac_dashdash=
849 for ac_option
850 do
851   # If the previous option needs an argument, assign it.
852   if test -n "$ac_prev"; then
853     eval $ac_prev=\$ac_option
854     ac_prev=
855     continue
856   fi
857
858   case $ac_option in
859   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860   *=)   ac_optarg= ;;
861   *)    ac_optarg=yes ;;
862   esac
863
864   # Accept the important Cygnus configure options, so we can diagnose typos.
865
866   case $ac_dashdash$ac_option in
867   --)
868     ac_dashdash=yes ;;
869
870   -bindir | --bindir | --bindi | --bind | --bin | --bi)
871     ac_prev=bindir ;;
872   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873     bindir=$ac_optarg ;;
874
875   -build | --build | --buil | --bui | --bu)
876     ac_prev=build_alias ;;
877   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878     build_alias=$ac_optarg ;;
879
880   -cache-file | --cache-file | --cache-fil | --cache-fi \
881   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882     ac_prev=cache_file ;;
883   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885     cache_file=$ac_optarg ;;
886
887   --config-cache | -C)
888     cache_file=config.cache ;;
889
890   -datadir | --datadir | --datadi | --datad)
891     ac_prev=datadir ;;
892   -datadir=* | --datadir=* | --datadi=* | --datad=*)
893     datadir=$ac_optarg ;;
894
895   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896   | --dataroo | --dataro | --datar)
897     ac_prev=datarootdir ;;
898   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900     datarootdir=$ac_optarg ;;
901
902   -disable-* | --disable-*)
903     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904     # Reject names that are not valid shell variable names.
905     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906       as_fn_error $? "invalid feature name: $ac_useropt"
907     ac_useropt_orig=$ac_useropt
908     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909     case $ac_user_opts in
910       *"
911 "enable_$ac_useropt"
912 "*) ;;
913       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914          ac_unrecognized_sep=', ';;
915     esac
916     eval enable_$ac_useropt=no ;;
917
918   -docdir | --docdir | --docdi | --doc | --do)
919     ac_prev=docdir ;;
920   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921     docdir=$ac_optarg ;;
922
923   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924     ac_prev=dvidir ;;
925   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926     dvidir=$ac_optarg ;;
927
928   -enable-* | --enable-*)
929     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930     # Reject names that are not valid shell variable names.
931     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932       as_fn_error $? "invalid feature name: $ac_useropt"
933     ac_useropt_orig=$ac_useropt
934     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935     case $ac_user_opts in
936       *"
937 "enable_$ac_useropt"
938 "*) ;;
939       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940          ac_unrecognized_sep=', ';;
941     esac
942     eval enable_$ac_useropt=\$ac_optarg ;;
943
944   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946   | --exec | --exe | --ex)
947     ac_prev=exec_prefix ;;
948   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950   | --exec=* | --exe=* | --ex=*)
951     exec_prefix=$ac_optarg ;;
952
953   -gas | --gas | --ga | --g)
954     # Obsolete; use --with-gas.
955     with_gas=yes ;;
956
957   -help | --help | --hel | --he | -h)
958     ac_init_help=long ;;
959   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960     ac_init_help=recursive ;;
961   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962     ac_init_help=short ;;
963
964   -host | --host | --hos | --ho)
965     ac_prev=host_alias ;;
966   -host=* | --host=* | --hos=* | --ho=*)
967     host_alias=$ac_optarg ;;
968
969   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970     ac_prev=htmldir ;;
971   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972   | --ht=*)
973     htmldir=$ac_optarg ;;
974
975   -includedir | --includedir | --includedi | --included | --include \
976   | --includ | --inclu | --incl | --inc)
977     ac_prev=includedir ;;
978   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979   | --includ=* | --inclu=* | --incl=* | --inc=*)
980     includedir=$ac_optarg ;;
981
982   -infodir | --infodir | --infodi | --infod | --info | --inf)
983     ac_prev=infodir ;;
984   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985     infodir=$ac_optarg ;;
986
987   -libdir | --libdir | --libdi | --libd)
988     ac_prev=libdir ;;
989   -libdir=* | --libdir=* | --libdi=* | --libd=*)
990     libdir=$ac_optarg ;;
991
992   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993   | --libexe | --libex | --libe)
994     ac_prev=libexecdir ;;
995   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996   | --libexe=* | --libex=* | --libe=*)
997     libexecdir=$ac_optarg ;;
998
999   -localedir | --localedir | --localedi | --localed | --locale)
1000     ac_prev=localedir ;;
1001   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002     localedir=$ac_optarg ;;
1003
1004   -localstatedir | --localstatedir | --localstatedi | --localstated \
1005   | --localstate | --localstat | --localsta | --localst | --locals)
1006     ac_prev=localstatedir ;;
1007   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009     localstatedir=$ac_optarg ;;
1010
1011   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012     ac_prev=mandir ;;
1013   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014     mandir=$ac_optarg ;;
1015
1016   -nfp | --nfp | --nf)
1017     # Obsolete; use --without-fp.
1018     with_fp=no ;;
1019
1020   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021   | --no-cr | --no-c | -n)
1022     no_create=yes ;;
1023
1024   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026     no_recursion=yes ;;
1027
1028   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030   | --oldin | --oldi | --old | --ol | --o)
1031     ac_prev=oldincludedir ;;
1032   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035     oldincludedir=$ac_optarg ;;
1036
1037   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038     ac_prev=prefix ;;
1039   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040     prefix=$ac_optarg ;;
1041
1042   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043   | --program-pre | --program-pr | --program-p)
1044     ac_prev=program_prefix ;;
1045   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047     program_prefix=$ac_optarg ;;
1048
1049   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050   | --program-suf | --program-su | --program-s)
1051     ac_prev=program_suffix ;;
1052   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054     program_suffix=$ac_optarg ;;
1055
1056   -program-transform-name | --program-transform-name \
1057   | --program-transform-nam | --program-transform-na \
1058   | --program-transform-n | --program-transform- \
1059   | --program-transform | --program-transfor \
1060   | --program-transfo | --program-transf \
1061   | --program-trans | --program-tran \
1062   | --progr-tra | --program-tr | --program-t)
1063     ac_prev=program_transform_name ;;
1064   -program-transform-name=* | --program-transform-name=* \
1065   | --program-transform-nam=* | --program-transform-na=* \
1066   | --program-transform-n=* | --program-transform-=* \
1067   | --program-transform=* | --program-transfor=* \
1068   | --program-transfo=* | --program-transf=* \
1069   | --program-trans=* | --program-tran=* \
1070   | --progr-tra=* | --program-tr=* | --program-t=*)
1071     program_transform_name=$ac_optarg ;;
1072
1073   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074     ac_prev=pdfdir ;;
1075   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076     pdfdir=$ac_optarg ;;
1077
1078   -psdir | --psdir | --psdi | --psd | --ps)
1079     ac_prev=psdir ;;
1080   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081     psdir=$ac_optarg ;;
1082
1083   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084   | -silent | --silent | --silen | --sile | --sil)
1085     silent=yes ;;
1086
1087   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088     ac_prev=sbindir ;;
1089   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090   | --sbi=* | --sb=*)
1091     sbindir=$ac_optarg ;;
1092
1093   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095   | --sharedst | --shareds | --shared | --share | --shar \
1096   | --sha | --sh)
1097     ac_prev=sharedstatedir ;;
1098   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101   | --sha=* | --sh=*)
1102     sharedstatedir=$ac_optarg ;;
1103
1104   -site | --site | --sit)
1105     ac_prev=site ;;
1106   -site=* | --site=* | --sit=*)
1107     site=$ac_optarg ;;
1108
1109   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110     ac_prev=srcdir ;;
1111   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112     srcdir=$ac_optarg ;;
1113
1114   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115   | --syscon | --sysco | --sysc | --sys | --sy)
1116     ac_prev=sysconfdir ;;
1117   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119     sysconfdir=$ac_optarg ;;
1120
1121   -target | --target | --targe | --targ | --tar | --ta | --t)
1122     ac_prev=target_alias ;;
1123   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124     target_alias=$ac_optarg ;;
1125
1126   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127     verbose=yes ;;
1128
1129   -version | --version | --versio | --versi | --vers | -V)
1130     ac_init_version=: ;;
1131
1132   -with-* | --with-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid package name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval with_$ac_useropt=\$ac_optarg ;;
1147
1148   -without-* | --without-*)
1149     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152       as_fn_error $? "invalid package name: $ac_useropt"
1153     ac_useropt_orig=$ac_useropt
1154     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155     case $ac_user_opts in
1156       *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160          ac_unrecognized_sep=', ';;
1161     esac
1162     eval with_$ac_useropt=no ;;
1163
1164   --x)
1165     # Obsolete; use --with-x.
1166     with_x=yes ;;
1167
1168   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169   | --x-incl | --x-inc | --x-in | --x-i)
1170     ac_prev=x_includes ;;
1171   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173     x_includes=$ac_optarg ;;
1174
1175   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177     ac_prev=x_libraries ;;
1178   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180     x_libraries=$ac_optarg ;;
1181
1182   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1184     ;;
1185
1186   *=*)
1187     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188     # Reject names that are not valid shell variable names.
1189     case $ac_envvar in #(
1190       '' | [0-9]* | *[!_$as_cr_alnum]* )
1191       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192     esac
1193     eval $ac_envvar=\$ac_optarg
1194     export $ac_envvar ;;
1195
1196   *)
1197     # FIXME: should be removed in autoconf 3.0.
1198     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202     ;;
1203
1204   esac
1205 done
1206
1207 if test -n "$ac_prev"; then
1208   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209   as_fn_error $? "missing argument to $ac_option"
1210 fi
1211
1212 if test -n "$ac_unrecognized_opts"; then
1213   case $enable_option_checking in
1214     no) ;;
1215     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217   esac
1218 fi
1219
1220 # Check all directory arguments for consistency.
1221 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222                 datadir sysconfdir sharedstatedir localstatedir includedir \
1223                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224                 libdir localedir mandir
1225 do
1226   eval ac_val=\$$ac_var
1227   # Remove trailing slashes.
1228   case $ac_val in
1229     */ )
1230       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231       eval $ac_var=\$ac_val;;
1232   esac
1233   # Be sure to have absolute directory names.
1234   case $ac_val in
1235     [\\/$]* | ?:[\\/]* )  continue;;
1236     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237   esac
1238   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239 done
1240
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1244 build=$build_alias
1245 host=$host_alias
1246 target=$target_alias
1247
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250   if test "x$build_alias" = x; then
1251     cross_compiling=maybe
1252   elif test "x$build_alias" != "x$host_alias"; then
1253     cross_compiling=yes
1254   fi
1255 fi
1256
1257 ac_tool_prefix=
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260 test "$silent" = yes && exec 6>/dev/null
1261
1262
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266   as_fn_error $? "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268   as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273   ac_srcdir_defaulted=yes
1274   # Try the directory containing this script, then the parent directory.
1275   ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277          X"$as_myself" : 'X\(//\)[^/]' \| \
1278          X"$as_myself" : 'X\(//\)$' \| \
1279          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282             s//\1/
1283             q
1284           }
1285           /^X\(\/\/\)[^/].*/{
1286             s//\1/
1287             q
1288           }
1289           /^X\(\/\/\)$/{
1290             s//\1/
1291             q
1292           }
1293           /^X\(\/\).*/{
1294             s//\1/
1295             q
1296           }
1297           s/.*/./; q'`
1298   srcdir=$ac_confdir
1299   if test ! -r "$srcdir/$ac_unique_file"; then
1300     srcdir=..
1301   fi
1302 else
1303   ac_srcdir_defaulted=no
1304 fi
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308 fi
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 ac_abs_confdir=`(
1311         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312         pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315   srcdir=.
1316 fi
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325   eval ac_env_${ac_var}_value=\$${ac_var}
1326   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1329
1330 #
1331 # Report the --help message.
1332 #
1333 if test "$ac_init_help" = "long"; then
1334   # Omit some internal or obsolete options to make the list less imposing.
1335   # This message is too long to be a string in the A/UX 3.1 sh.
1336   cat <<_ACEOF
1337 \`configure' configures file 5.41 to adapt to many kinds of systems.
1338
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE.  See below for descriptions of some of the useful variables.
1343
1344 Defaults for the options are specified in brackets.
1345
1346 Configuration:
1347   -h, --help              display this help and exit
1348       --help=short        display options specific to this package
1349       --help=recursive    display the short help of all the included packages
1350   -V, --version           display version information and exit
1351   -q, --quiet, --silent   do not print \`checking ...' messages
1352       --cache-file=FILE   cache test results in FILE [disabled]
1353   -C, --config-cache      alias for \`--cache-file=config.cache'
1354   -n, --no-create         do not create output files
1355       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1356
1357 Installation directories:
1358   --prefix=PREFIX         install architecture-independent files in PREFIX
1359                           [$ac_default_prefix]
1360   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1361                           [PREFIX]
1362
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1367
1368 For better control, use the options below.
1369
1370 Fine tuning of the installation directories:
1371   --bindir=DIR            user executables [EPREFIX/bin]
1372   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1373   --libexecdir=DIR        program executables [EPREFIX/libexec]
1374   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1375   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1376   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1377   --libdir=DIR            object code libraries [EPREFIX/lib]
1378   --includedir=DIR        C header files [PREFIX/include]
1379   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1380   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1381   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1382   --infodir=DIR           info documentation [DATAROOTDIR/info]
1383   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1384   --mandir=DIR            man documentation [DATAROOTDIR/man]
1385   --docdir=DIR            documentation root [DATAROOTDIR/doc/file]
1386   --htmldir=DIR           html documentation [DOCDIR]
1387   --dvidir=DIR            dvi documentation [DOCDIR]
1388   --pdfdir=DIR            pdf documentation [DOCDIR]
1389   --psdir=DIR             ps documentation [DOCDIR]
1390 _ACEOF
1391
1392   cat <<\_ACEOF
1393
1394 Program names:
1395   --program-prefix=PREFIX            prepend PREFIX to installed program names
1396   --program-suffix=SUFFIX            append SUFFIX to installed program names
1397   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1398
1399 System types:
1400   --build=BUILD     configure for building on BUILD [guessed]
1401   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1402 _ACEOF
1403 fi
1404
1405 if test -n "$ac_init_help"; then
1406   case $ac_init_help in
1407      short | recursive ) echo "Configuration of file 5.41:";;
1408    esac
1409   cat <<\_ACEOF
1410
1411 Optional Features:
1412   --disable-option-checking  ignore unrecognized --enable/--with options
1413   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1414   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1415   --enable-silent-rules   less verbose build output (undo: "make V=1")
1416   --disable-silent-rules  verbose build output (undo: "make V=0")
1417   --disable-elf            disable builtin ELF support
1418   --disable-elf-core       disable ELF core file support
1419   --disable-zlib          disable zlib compression support [default=auto]
1420   --disable-bzlib         disable bz2lib compression support [default=auto]
1421   --disable-xzlib         disable liblzma/xz compression support
1422                           [default=auto]
1423   --disable-libseccomp    disable libseccomp sandboxing [default=auto]
1424   --enable-fsect-man5      enable file formats in man section 5
1425   --enable-dependency-tracking
1426                           do not reject slow dependency extractors
1427   --disable-dependency-tracking
1428                           speeds up one-time build
1429   --enable-static[=PKGS]  build static libraries [default=no]
1430   --enable-shared[=PKGS]  build shared libraries [default=yes]
1431   --enable-fast-install[=PKGS]
1432                           optimize for fast installation [default=yes]
1433   --disable-libtool-lock  avoid locking (might break parallel builds)
1434   --disable-largefile     omit support for large files
1435   --disable-warnings    disable compiler warnings
1436
1437 Optional Packages:
1438   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1439   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1440   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1441                           both]
1442   --with-aix-soname=aix|svr4|both
1443                           shared library versioning (aka "SONAME") variant to
1444                           provide on AIX, [default=aix].
1445   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1446   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1447                           compiler's sysroot if not specified).
1448
1449 Some influential environment variables:
1450   CC          C compiler command
1451   CFLAGS      C compiler flags
1452   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1453               nonstandard directory <lib dir>
1454   LIBS        libraries to pass to the linker, e.g. -l<library>
1455   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456               you have headers in a nonstandard directory <include dir>
1457   CPP         C preprocessor
1458   LT_SYS_LIBRARY_PATH
1459               User-defined run-time library search path.
1460
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1463
1464 Report bugs to <christos@astron.com>.
1465 _ACEOF
1466 ac_status=$?
1467 fi
1468
1469 if test "$ac_init_help" = "recursive"; then
1470   # If there are subdirs, report their specific --help.
1471   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472     test -d "$ac_dir" ||
1473       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474       continue
1475     ac_builddir=.
1476
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *)
1480   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481   # A ".." for each directory in $ac_dir_suffix.
1482   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483   case $ac_top_builddir_sub in
1484   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486   esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1492
1493 case $srcdir in
1494   .)  # We are building in place.
1495     ac_srcdir=.
1496     ac_top_srcdir=$ac_top_builddir_sub
1497     ac_abs_top_srcdir=$ac_pwd ;;
1498   [\\/]* | ?:[\\/]* )  # Absolute name.
1499     ac_srcdir=$srcdir$ac_dir_suffix;
1500     ac_top_srcdir=$srcdir
1501     ac_abs_top_srcdir=$srcdir ;;
1502   *) # Relative name.
1503     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504     ac_top_srcdir=$ac_top_build_prefix$srcdir
1505     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509     cd "$ac_dir" || { ac_status=$?; continue; }
1510     # Check for guested configure.
1511     if test -f "$ac_srcdir/configure.gnu"; then
1512       echo &&
1513       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514     elif test -f "$ac_srcdir/configure"; then
1515       echo &&
1516       $SHELL "$ac_srcdir/configure" --help=recursive
1517     else
1518       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519     fi || ac_status=$?
1520     cd "$ac_pwd" || { ac_status=$?; break; }
1521   done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526   cat <<\_ACEOF
1527 file configure 5.41
1528 generated by GNU Autoconf 2.69
1529
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534   exit
1535 fi
1536
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1540
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1545 {
1546   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547   rm -f conftest.$ac_objext
1548   if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551   *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555   (eval "$ac_compile") 2>conftest.err
1556   ac_status=$?
1557   if test -s conftest.err; then
1558     grep -v '^ *+' conftest.err >conftest.er1
1559     cat conftest.er1 >&5
1560     mv -f conftest.er1 conftest.err
1561   fi
1562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563   test $ac_status = 0; } && {
1564          test -z "$ac_c_werror_flag" ||
1565          test ! -s conftest.err
1566        } && test -s conftest.$ac_objext; then :
1567   ac_retval=0
1568 else
1569   $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572         ac_retval=1
1573 fi
1574   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575   as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_compile
1578
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_cpp ()
1583 {
1584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585   if { { ac_try="$ac_cpp conftest.$ac_ext"
1586 case "(($ac_try" in
1587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588   *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593   ac_status=$?
1594   if test -s conftest.err; then
1595     grep -v '^ *+' conftest.err >conftest.er1
1596     cat conftest.er1 >&5
1597     mv -f conftest.er1 conftest.err
1598   fi
1599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600   test $ac_status = 0; } > conftest.i && {
1601          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602          test ! -s conftest.err
1603        }; then :
1604   ac_retval=0
1605 else
1606   $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609     ac_retval=1
1610 fi
1611   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612   as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_cpp
1615
1616 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619 # the include files in INCLUDES and setting the cache variable VAR
1620 # accordingly.
1621 ac_fn_c_check_header_mongrel ()
1622 {
1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624   if eval \${$3+:} false; then :
1625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if eval \${$3+:} false; then :
1628   $as_echo_n "(cached) " >&6
1629 fi
1630 eval ac_res=\$$3
1631                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1633 else
1634   # Is the header compilable?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636 $as_echo_n "checking $2 usability... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h.  */
1639 $4
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643   ac_header_compiler=yes
1644 else
1645   ac_header_compiler=no
1646 fi
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649 $as_echo "$ac_header_compiler" >&6; }
1650
1651 # Is the header present?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653 $as_echo_n "checking $2 presence... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h.  */
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_cpp "$LINENO"; then :
1659   ac_header_preproc=yes
1660 else
1661   ac_header_preproc=no
1662 fi
1663 rm -f conftest.err conftest.i conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665 $as_echo "$ac_header_preproc" >&6; }
1666
1667 # So?  What about this header?
1668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669   yes:no: )
1670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674     ;;
1675   no:yes:* )
1676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1679 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1683 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ( $as_echo "## ---------------------------------- ##
1687 ## Report this to christos@astron.com ##
1688 ## ---------------------------------- ##"
1689      ) | sed "s/^/$as_me: WARNING:     /" >&2
1690     ;;
1691 esac
1692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695   $as_echo_n "(cached) " >&6
1696 else
1697   eval "$3=\$ac_header_compiler"
1698 fi
1699 eval ac_res=\$$3
1700                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 fi
1703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_check_header_mongrel
1706
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714   if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717   *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721   (eval "$ac_link") 2>&5
1722   ac_status=$?
1723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725   { { case "(($ac_try" in
1726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727   *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731   (eval "$ac_try") 2>&5
1732   ac_status=$?
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; }; }; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: program exited with status $ac_status" >&5
1738        $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741        ac_retval=$ac_status
1742 fi
1743   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745   as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_run
1748
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759   $as_echo_n "(cached) " >&6
1760 else
1761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767   eval "$3=yes"
1768 else
1769   eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_header_compile
1779
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   rm -f conftest.$ac_objext conftest$ac_exeext
1787   if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_link") 2>conftest.err
1795   ac_status=$?
1796   if test -s conftest.err; then
1797     grep -v '^ *+' conftest.err >conftest.er1
1798     cat conftest.er1 >&5
1799     mv -f conftest.er1 conftest.err
1800   fi
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; } && {
1803          test -z "$ac_c_werror_flag" ||
1804          test ! -s conftest.err
1805        } && test -s conftest$ac_exeext && {
1806          test "$cross_compiling" = yes ||
1807          test -x conftest$ac_exeext
1808        }; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814         ac_retval=1
1815 fi
1816   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818   # interfere with the next link command; also delete a directory that is
1819   # left behind by Apple's compiler.  We do this before executing the actions.
1820   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822   as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835   $as_echo_n "(cached) " >&6
1836 else
1837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h.  */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844     which can conflict with char $2 (); below.
1845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846     <limits.h> exists even on freestanding compilers.  */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857    Use char because int might match the return type of a GCC
1858    builtin and then its argument prototype would still apply.  */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864     to always fail with ENOSYS.  Some functions are actually named
1865     something starting with __ and the normal name is an alias.  */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874   ;
1875   return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879   eval "$3=yes"
1880 else
1881   eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884     conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892
1893 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1894 # -------------------------------------------
1895 # Tests whether TYPE exists after having included INCLUDES, setting cache
1896 # variable VAR accordingly.
1897 ac_fn_c_check_type ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903   $as_echo_n "(cached) " >&6
1904 else
1905   eval "$3=no"
1906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h.  */
1908 $4
1909 int
1910 main ()
1911 {
1912 if (sizeof ($2))
1913          return 0;
1914   ;
1915   return 0;
1916 }
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h.  */
1921 $4
1922 int
1923 main ()
1924 {
1925 if (sizeof (($2)))
1926             return 0;
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932
1933 else
1934   eval "$3=yes"
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945 } # ac_fn_c_check_type
1946
1947 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1948 # ----------------------------------------------------
1949 # Tries to find if the field MEMBER exists in type AGGR, after including
1950 # INCLUDES, setting cache variable VAR accordingly.
1951 ac_fn_c_check_member ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1955 $as_echo_n "checking for $2.$3... " >&6; }
1956 if eval \${$4+:} false; then :
1957   $as_echo_n "(cached) " >&6
1958 else
1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 $5
1962 int
1963 main ()
1964 {
1965 static $2 ac_aggr;
1966 if (ac_aggr.$3)
1967 return 0;
1968   ;
1969   return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973   eval "$4=yes"
1974 else
1975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h.  */
1977 $5
1978 int
1979 main ()
1980 {
1981 static $2 ac_aggr;
1982 if (sizeof ac_aggr.$3)
1983 return 0;
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989   eval "$4=yes"
1990 else
1991   eval "$4=no"
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 fi
1997 eval ac_res=\$$4
1998                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002 } # ac_fn_c_check_member
2003
2004 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2005 # ---------------------------------------------
2006 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_decl ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   as_decl_name=`echo $2|sed 's/ *(.*//'`
2012   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2014 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2015 if eval \${$3+:} false; then :
2016   $as_echo_n "(cached) " >&6
2017 else
2018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 $4
2021 int
2022 main ()
2023 {
2024 #ifndef $as_decl_name
2025 #ifdef __cplusplus
2026   (void) $as_decl_use;
2027 #else
2028   (void) $as_decl_name;
2029 #endif
2030 #endif
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037   eval "$3=yes"
2038 else
2039   eval "$3=no"
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 fi
2043 eval ac_res=\$$3
2044                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048 } # ac_fn_c_check_decl
2049
2050 # ac_fn_c_find_uintX_t LINENO BITS VAR
2051 # ------------------------------------
2052 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2053 # accordingly.
2054 ac_fn_c_find_uintX_t ()
2055 {
2056   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2058 $as_echo_n "checking for uint$2_t... " >&6; }
2059 if eval \${$3+:} false; then :
2060   $as_echo_n "(cached) " >&6
2061 else
2062   eval "$3=no"
2063      # Order is important - never check a type that is potentially smaller
2064      # than half of the expected target width.
2065      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2066          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2067        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h.  */
2069 $ac_includes_default
2070 int
2071 main ()
2072 {
2073 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2074 test_array [0] = 0;
2075 return test_array [0];
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082   case $ac_type in #(
2083   uint$2_t) :
2084     eval "$3=yes" ;; #(
2085   *) :
2086     eval "$3=\$ac_type" ;;
2087 esac
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090        if eval test \"x\$"$3"\" = x"no"; then :
2091
2092 else
2093   break
2094 fi
2095      done
2096 fi
2097 eval ac_res=\$$3
2098                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102 } # ac_fn_c_find_uintX_t
2103
2104 # ac_fn_c_find_intX_t LINENO BITS VAR
2105 # -----------------------------------
2106 # Finds a signed integer type with width BITS, setting cache variable VAR
2107 # accordingly.
2108 ac_fn_c_find_intX_t ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2112 $as_echo_n "checking for int$2_t... " >&6; }
2113 if eval \${$3+:} false; then :
2114   $as_echo_n "(cached) " >&6
2115 else
2116   eval "$3=no"
2117      # Order is important - never check a type that is potentially smaller
2118      # than half of the expected target width.
2119      for ac_type in int$2_t 'int' 'long int' \
2120          'long long int' 'short int' 'signed char'; do
2121        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $ac_includes_default
2124              enum { N = $2 / 2 - 1 };
2125 int
2126 main ()
2127 {
2128 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2129 test_array [0] = 0;
2130 return test_array [0];
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 $ac_includes_default
2140                 enum { N = $2 / 2 - 1 };
2141 int
2142 main ()
2143 {
2144 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2145                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2146 test_array [0] = 0;
2147 return test_array [0];
2148
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154
2155 else
2156   case $ac_type in #(
2157   int$2_t) :
2158     eval "$3=yes" ;; #(
2159   *) :
2160     eval "$3=\$ac_type" ;;
2161 esac
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166        if eval test \"x\$"$3"\" = x"no"; then :
2167
2168 else
2169   break
2170 fi
2171      done
2172 fi
2173 eval ac_res=\$$3
2174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178 } # ac_fn_c_find_intX_t
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2182
2183 It was created by file $as_me 5.41, which was
2184 generated by GNU Autoconf 2.69.  Invocation command line was
2185
2186   $ $0 $@
2187
2188 _ACEOF
2189 exec 5>>config.log
2190 {
2191 cat <<_ASUNAME
2192 ## --------- ##
2193 ## Platform. ##
2194 ## --------- ##
2195
2196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201
2202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2204
2205 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2206 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2209 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2210 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2211 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2212
2213 _ASUNAME
2214
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218   IFS=$as_save_IFS
2219   test -z "$as_dir" && as_dir=.
2220     $as_echo "PATH: $as_dir"
2221   done
2222 IFS=$as_save_IFS
2223
2224 } >&5
2225
2226 cat >&5 <<_ACEOF
2227
2228
2229 ## ----------- ##
2230 ## Core tests. ##
2231 ## ----------- ##
2232
2233 _ACEOF
2234
2235
2236 # Keep a trace of the command line.
2237 # Strip out --no-create and --no-recursion so they do not pile up.
2238 # Strip out --silent because we don't want to record it for future runs.
2239 # Also quote any args containing shell meta-characters.
2240 # Make two passes to allow for proper duplicate-argument suppression.
2241 ac_configure_args=
2242 ac_configure_args0=
2243 ac_configure_args1=
2244 ac_must_keep_next=false
2245 for ac_pass in 1 2
2246 do
2247   for ac_arg
2248   do
2249     case $ac_arg in
2250     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252     | -silent | --silent | --silen | --sile | --sil)
2253       continue ;;
2254     *\'*)
2255       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2256     esac
2257     case $ac_pass in
2258     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259     2)
2260       as_fn_append ac_configure_args1 " '$ac_arg'"
2261       if test $ac_must_keep_next = true; then
2262         ac_must_keep_next=false # Got value, back to normal.
2263       else
2264         case $ac_arg in
2265           *=* | --config-cache | -C | -disable-* | --disable-* \
2266           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268           | -with-* | --with-* | -without-* | --without-* | --x)
2269             case "$ac_configure_args0 " in
2270               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2271             esac
2272             ;;
2273           -* ) ac_must_keep_next=true ;;
2274         esac
2275       fi
2276       as_fn_append ac_configure_args " '$ac_arg'"
2277       ;;
2278     esac
2279   done
2280 done
2281 { ac_configure_args0=; unset ac_configure_args0;}
2282 { ac_configure_args1=; unset ac_configure_args1;}
2283
2284 # When interrupted or exit'd, cleanup temporary files, and complete
2285 # config.log.  We remove comments because anyway the quotes in there
2286 # would cause problems or look ugly.
2287 # WARNING: Use '\'' to represent an apostrophe within the trap.
2288 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289 trap 'exit_status=$?
2290   # Save into config.log some information that might help in debugging.
2291   {
2292     echo
2293
2294     $as_echo "## ---------------- ##
2295 ## Cache variables. ##
2296 ## ---------------- ##"
2297     echo
2298     # The following way of writing the cache mishandles newlines in values,
2299 (
2300   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2301     eval ac_val=\$$ac_var
2302     case $ac_val in #(
2303     *${as_nl}*)
2304       case $ac_var in #(
2305       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2307       esac
2308       case $ac_var in #(
2309       _ | IFS | as_nl) ;; #(
2310       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311       *) { eval $ac_var=; unset $ac_var;} ;;
2312       esac ;;
2313     esac
2314   done
2315   (set) 2>&1 |
2316     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2317     *${as_nl}ac_space=\ *)
2318       sed -n \
2319         "s/'\''/'\''\\\\'\'''\''/g;
2320           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2321       ;; #(
2322     *)
2323       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324       ;;
2325     esac |
2326     sort
2327 )
2328     echo
2329
2330     $as_echo "## ----------------- ##
2331 ## Output variables. ##
2332 ## ----------------- ##"
2333     echo
2334     for ac_var in $ac_subst_vars
2335     do
2336       eval ac_val=\$$ac_var
2337       case $ac_val in
2338       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339       esac
2340       $as_echo "$ac_var='\''$ac_val'\''"
2341     done | sort
2342     echo
2343
2344     if test -n "$ac_subst_files"; then
2345       $as_echo "## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##"
2348       echo
2349       for ac_var in $ac_subst_files
2350       do
2351         eval ac_val=\$$ac_var
2352         case $ac_val in
2353         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354         esac
2355         $as_echo "$ac_var='\''$ac_val'\''"
2356       done | sort
2357       echo
2358     fi
2359
2360     if test -s confdefs.h; then
2361       $as_echo "## ----------- ##
2362 ## confdefs.h. ##
2363 ## ----------- ##"
2364       echo
2365       cat confdefs.h
2366       echo
2367     fi
2368     test "$ac_signal" != 0 &&
2369       $as_echo "$as_me: caught signal $ac_signal"
2370     $as_echo "$as_me: exit $exit_status"
2371   } >&5
2372   rm -f core *.core core.conftest.* &&
2373     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2374     exit $exit_status
2375 ' 0
2376 for ac_signal in 1 2 13 15; do
2377   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2378 done
2379 ac_signal=0
2380
2381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2382 rm -f -r conftest* confdefs.h
2383
2384 $as_echo "/* confdefs.h */" > confdefs.h
2385
2386 # Predefined preprocessor variables.
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_NAME "$PACKAGE_NAME"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_STRING "$PACKAGE_STRING"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406 _ACEOF
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_URL "$PACKAGE_URL"
2410 _ACEOF
2411
2412
2413 # Let the site file select an alternate cache file if it wants to.
2414 # Prefer an explicitly selected file to automatically selected ones.
2415 ac_site_file1=NONE
2416 ac_site_file2=NONE
2417 if test -n "$CONFIG_SITE"; then
2418   # We do not want a PATH search for config.site.
2419   case $CONFIG_SITE in #((
2420     -*)  ac_site_file1=./$CONFIG_SITE;;
2421     */*) ac_site_file1=$CONFIG_SITE;;
2422     *)   ac_site_file1=./$CONFIG_SITE;;
2423   esac
2424 elif test "x$prefix" != xNONE; then
2425   ac_site_file1=$prefix/share/config.site
2426   ac_site_file2=$prefix/etc/config.site
2427 else
2428   ac_site_file1=$ac_default_prefix/share/config.site
2429   ac_site_file2=$ac_default_prefix/etc/config.site
2430 fi
2431 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432 do
2433   test "x$ac_site_file" = xNONE && continue
2434   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2435     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437     sed 's/^/| /' "$ac_site_file" >&5
2438     . "$ac_site_file" \
2439       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 as_fn_error $? "failed to load site script $ac_site_file
2442 See \`config.log' for more details" "$LINENO" 5; }
2443   fi
2444 done
2445
2446 if test -r "$cache_file"; then
2447   # Some versions of bash will fail to source /dev/null (special files
2448   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2449   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2450     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451 $as_echo "$as_me: loading cache $cache_file" >&6;}
2452     case $cache_file in
2453       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454       *)                      . "./$cache_file";;
2455     esac
2456   fi
2457 else
2458   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459 $as_echo "$as_me: creating cache $cache_file" >&6;}
2460   >$cache_file
2461 fi
2462
2463 as_fn_append ac_header_list " stdlib.h"
2464 as_fn_append ac_header_list " unistd.h"
2465 as_fn_append ac_header_list " sys/param.h"
2466 # Check that the precious variables saved in the cache have kept the same
2467 # value.
2468 ac_cache_corrupted=false
2469 for ac_var in $ac_precious_vars; do
2470   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2471   eval ac_new_set=\$ac_env_${ac_var}_set
2472   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2473   eval ac_new_val=\$ac_env_${ac_var}_value
2474   case $ac_old_set,$ac_new_set in
2475     set,)
2476       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2478       ac_cache_corrupted=: ;;
2479     ,set)
2480       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2481 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2482       ac_cache_corrupted=: ;;
2483     ,);;
2484     *)
2485       if test "x$ac_old_val" != "x$ac_new_val"; then
2486         # differences in whitespace do not lead to failure.
2487         ac_old_val_w=`echo x $ac_old_val`
2488         ac_new_val_w=`echo x $ac_new_val`
2489         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2490           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2491 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2492           ac_cache_corrupted=:
2493         else
2494           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2495 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2496           eval $ac_var=\$ac_old_val
2497         fi
2498         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2499 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2500         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2501 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2502       fi;;
2503   esac
2504   # Pass precious variables to config.status.
2505   if test "$ac_new_set" = set; then
2506     case $ac_new_val in
2507     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2508     *) ac_arg=$ac_var=$ac_new_val ;;
2509     esac
2510     case " $ac_configure_args " in
2511       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2512       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513     esac
2514   fi
2515 done
2516 if $ac_cache_corrupted; then
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2520 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2521   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2522 fi
2523 ## -------------------- ##
2524 ## Main body of script. ##
2525 ## -------------------- ##
2526
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534 am__api_version='1.16'
2535
2536 ac_aux_dir=
2537 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2538   if test -f "$ac_dir/install-sh"; then
2539     ac_aux_dir=$ac_dir
2540     ac_install_sh="$ac_aux_dir/install-sh -c"
2541     break
2542   elif test -f "$ac_dir/install.sh"; then
2543     ac_aux_dir=$ac_dir
2544     ac_install_sh="$ac_aux_dir/install.sh -c"
2545     break
2546   elif test -f "$ac_dir/shtool"; then
2547     ac_aux_dir=$ac_dir
2548     ac_install_sh="$ac_aux_dir/shtool install -c"
2549     break
2550   fi
2551 done
2552 if test -z "$ac_aux_dir"; then
2553   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2554 fi
2555
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2561 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2562 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2563
2564
2565 # Find a good install program.  We prefer a C program (faster),
2566 # so one script is as good as another.  But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2571 # AIX /bin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # OS/2's system install, which has a completely different semantic
2577 # ./install, which can be erroneously created by make from ./install.sh.
2578 # Reject install programs that cannot install multiple files.
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2581 if test -z "$INSTALL"; then
2582 if ${ac_cv_path_install+:} false; then :
2583   $as_echo_n "(cached) " >&6
2584 else
2585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590     # Account for people who put trailing slashes in PATH elements.
2591 case $as_dir/ in #((
2592   ./ | .// | /[cC]/* | \
2593   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2595   /usr/ucb/* ) ;;
2596   *)
2597     # OSF1 and SCO ODT 3.0 have their own names for install.
2598     # Don't use installbsd from OSF since it installs stuff as root
2599     # by default.
2600     for ac_prog in ginstall scoinst install; do
2601       for ac_exec_ext in '' $ac_executable_extensions; do
2602         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2603           if test $ac_prog = install &&
2604             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605             # AIX install.  It has an incompatible calling convention.
2606             :
2607           elif test $ac_prog = install &&
2608             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609             # program-specific install script used by HP pwplus--don't use.
2610             :
2611           else
2612             rm -rf conftest.one conftest.two conftest.dir
2613             echo one > conftest.one
2614             echo two > conftest.two
2615             mkdir conftest.dir
2616             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617               test -s conftest.one && test -s conftest.two &&
2618               test -s conftest.dir/conftest.one &&
2619               test -s conftest.dir/conftest.two
2620             then
2621               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2622               break 3
2623             fi
2624           fi
2625         fi
2626       done
2627     done
2628     ;;
2629 esac
2630
2631   done
2632 IFS=$as_save_IFS
2633
2634 rm -rf conftest.one conftest.two conftest.dir
2635
2636 fi
2637   if test "${ac_cv_path_install+set}" = set; then
2638     INSTALL=$ac_cv_path_install
2639   else
2640     # As a last resort, use the slow shell script.  Don't cache a
2641     # value for INSTALL within a source directory, because that will
2642     # break other packages using the cache if that directory is
2643     # removed, or if the value is a relative name.
2644     INSTALL=$ac_install_sh
2645   fi
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 $as_echo "$INSTALL" >&6; }
2649
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2653
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2655
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 $as_echo_n "checking whether build environment is sane... " >&6; }
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name.  Accept space and tab only in the latter.
2662 am_lf='
2663 '
2664 case `pwd` in
2665   *[\\\"\#\$\&\'\`$am_lf]*)
2666     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2667 esac
2668 case $srcdir in
2669   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2670     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2671 esac
2672
2673 # Do 'set' in a subshell so we don't clobber the current shell's
2674 # arguments.  Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2677 # directory).
2678 if (
2679    am_has_slept=no
2680    for am_try in 1 2; do
2681      echo "timestamp, slept: $am_has_slept" > conftest.file
2682      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2683      if test "$*" = "X"; then
2684         # -L didn't work.
2685         set X `ls -t "$srcdir/configure" conftest.file`
2686      fi
2687      if test "$*" != "X $srcdir/configure conftest.file" \
2688         && test "$*" != "X conftest.file $srcdir/configure"; then
2689
2690         # If neither matched, then we have a broken ls.  This can happen
2691         # if, for instance, CONFIG_SHELL is bash and it inherits a
2692         # broken ls alias from the environment.  This has actually
2693         # happened.  Such a system could not be considered "sane".
2694         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2695   alias in your environment" "$LINENO" 5
2696      fi
2697      if test "$2" = conftest.file || test $am_try -eq 2; then
2698        break
2699      fi
2700      # Just in case.
2701      sleep 1
2702      am_has_slept=yes
2703    done
2704    test "$2" = conftest.file
2705    )
2706 then
2707    # Ok.
2708    :
2709 else
2710    as_fn_error $? "newly created file is older than distributed files!
2711 Check your system clock" "$LINENO" 5
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 $as_echo "yes" >&6; }
2715 # If we didn't sleep, we still need to ensure time stamps of config.status and
2716 # generated files are strictly newer.
2717 am_sleep_pid=
2718 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2719   ( sleep 1 ) &
2720   am_sleep_pid=$!
2721 fi
2722
2723 rm -f conftest.file
2724
2725 test "$program_prefix" != NONE &&
2726   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2727 # Use a double $ so make ignores it.
2728 test "$program_suffix" != NONE &&
2729   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2730 # Double any \ or $.
2731 # By default was `s,x,x', remove it if useless.
2732 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2733 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2734
2735 # Expand $ac_aux_dir to an absolute path.
2736 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2737
2738 if test x"${MISSING+set}" != xset; then
2739   case $am_aux_dir in
2740   *\ * | *\     *)
2741     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2742   *)
2743     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2744   esac
2745 fi
2746 # Use eval to expand $SHELL
2747 if eval "$MISSING --is-lightweight"; then
2748   am_missing_run="$MISSING "
2749 else
2750   am_missing_run=
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2752 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2753 fi
2754
2755 if test x"${install_sh+set}" != xset; then
2756   case $am_aux_dir in
2757   *\ * | *\     *)
2758     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2759   *)
2760     install_sh="\${SHELL} $am_aux_dir/install-sh"
2761   esac
2762 fi
2763
2764 # Installed binaries are usually stripped using 'strip' when the user
2765 # run "make install-strip".  However 'strip' might not be the right
2766 # tool to use in cross-compilation environments, therefore Automake
2767 # will honor the 'STRIP' environment variable to overrule this program.
2768 if test "$cross_compiling" != no; then
2769   if test -n "$ac_tool_prefix"; then
2770   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2771 set dummy ${ac_tool_prefix}strip; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_STRIP+:} false; then :
2775   $as_echo_n "(cached) " >&6
2776 else
2777   if test -n "$STRIP"; then
2778   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785     for ac_exec_ext in '' $ac_executable_extensions; do
2786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792   done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 STRIP=$ac_cv_prog_STRIP
2798 if test -n "$STRIP"; then
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2800 $as_echo "$STRIP" >&6; }
2801 else
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807 fi
2808 if test -z "$ac_cv_prog_STRIP"; then
2809   ac_ct_STRIP=$STRIP
2810   # Extract the first word of "strip", so it can be a program name with args.
2811 set dummy strip; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2815   $as_echo_n "(cached) " >&6
2816 else
2817   if test -n "$ac_ct_STRIP"; then
2818   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825     for ac_exec_ext in '' $ac_executable_extensions; do
2826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827     ac_cv_prog_ac_ct_STRIP="strip"
2828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832   done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2838 if test -n "$ac_ct_STRIP"; then
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2840 $as_echo "$ac_ct_STRIP" >&6; }
2841 else
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846   if test "x$ac_ct_STRIP" = x; then
2847     STRIP=":"
2848   else
2849     case $cross_compiling:$ac_tool_warned in
2850 yes:)
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853 ac_tool_warned=yes ;;
2854 esac
2855     STRIP=$ac_ct_STRIP
2856   fi
2857 else
2858   STRIP="$ac_cv_prog_STRIP"
2859 fi
2860
2861 fi
2862 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2865 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2866 if test -z "$MKDIR_P"; then
2867   if ${ac_cv_path_mkdir+:} false; then :
2868   $as_echo_n "(cached) " >&6
2869 else
2870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875     for ac_prog in mkdir gmkdir; do
2876          for ac_exec_ext in '' $ac_executable_extensions; do
2877            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2878            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2879              'mkdir (GNU coreutils) '* | \
2880              'mkdir (coreutils) '* | \
2881              'mkdir (fileutils) '4.1*)
2882                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2883                break 3;;
2884            esac
2885          done
2886        done
2887   done
2888 IFS=$as_save_IFS
2889
2890 fi
2891
2892   test -d ./--version && rmdir ./--version
2893   if test "${ac_cv_path_mkdir+set}" = set; then
2894     MKDIR_P="$ac_cv_path_mkdir -p"
2895   else
2896     # As a last resort, use the slow shell script.  Don't cache a
2897     # value for MKDIR_P within a source directory, because that will
2898     # break other packages using the cache if that directory is
2899     # removed, or if the value is a relative name.
2900     MKDIR_P="$ac_install_sh -d"
2901   fi
2902 fi
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2904 $as_echo "$MKDIR_P" >&6; }
2905
2906 for ac_prog in gawk mawk nawk awk
2907 do
2908   # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_AWK+:} false; then :
2913   $as_echo_n "(cached) " >&6
2914 else
2915   if test -n "$AWK"; then
2916   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923     for ac_exec_ext in '' $ac_executable_extensions; do
2924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925     ac_cv_prog_AWK="$ac_prog"
2926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927     break 2
2928   fi
2929 done
2930   done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 AWK=$ac_cv_prog_AWK
2936 if test -n "$AWK"; then
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2938 $as_echo "$AWK" >&6; }
2939 else
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945   test -n "$AWK" && break
2946 done
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2950 set x ${MAKE-make}
2951 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2953   $as_echo_n "(cached) " >&6
2954 else
2955   cat >conftest.make <<\_ACEOF
2956 SHELL = /bin/sh
2957 all:
2958         @echo '@@@%%%=$(MAKE)=@@@%%%'
2959 _ACEOF
2960 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2961 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2962   *@@@%%%=?*=@@@%%%*)
2963     eval ac_cv_prog_make_${ac_make}_set=yes;;
2964   *)
2965     eval ac_cv_prog_make_${ac_make}_set=no;;
2966 esac
2967 rm -f conftest.make
2968 fi
2969 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2972   SET_MAKE=
2973 else
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976   SET_MAKE="MAKE=${MAKE-make}"
2977 fi
2978
2979 rm -rf .tst 2>/dev/null
2980 mkdir .tst 2>/dev/null
2981 if test -d .tst; then
2982   am__leading_dot=.
2983 else
2984   am__leading_dot=_
2985 fi
2986 rmdir .tst 2>/dev/null
2987
2988 # Check whether --enable-silent-rules was given.
2989 if test "${enable_silent_rules+set}" = set; then :
2990   enableval=$enable_silent_rules;
2991 fi
2992
2993 case $enable_silent_rules in # (((
2994   yes) AM_DEFAULT_VERBOSITY=0;;
2995    no) AM_DEFAULT_VERBOSITY=1;;
2996     *) AM_DEFAULT_VERBOSITY=1;;
2997 esac
2998 am_make=${MAKE-make}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3000 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3001 if ${am_cv_make_support_nested_variables+:} false; then :
3002   $as_echo_n "(cached) " >&6
3003 else
3004   if $as_echo 'TRUE=$(BAR$(V))
3005 BAR0=false
3006 BAR1=true
3007 V=1
3008 am__doit:
3009         @$(TRUE)
3010 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3011   am_cv_make_support_nested_variables=yes
3012 else
3013   am_cv_make_support_nested_variables=no
3014 fi
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3017 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3018 if test $am_cv_make_support_nested_variables = yes; then
3019     AM_V='$(V)'
3020   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3021 else
3022   AM_V=$AM_DEFAULT_VERBOSITY
3023   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3024 fi
3025 AM_BACKSLASH='\'
3026
3027 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3028   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3029   # is not polluted with repeated "-I."
3030   am__isrc=' -I$(srcdir)'
3031   # test to see if srcdir already configured
3032   if test -f $srcdir/config.status; then
3033     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3034   fi
3035 fi
3036
3037 # test whether we have cygpath
3038 if test -z "$CYGPATH_W"; then
3039   if (cygpath --version) >/dev/null 2>/dev/null; then
3040     CYGPATH_W='cygpath -w'
3041   else
3042     CYGPATH_W=echo
3043   fi
3044 fi
3045
3046
3047 # Define the identity of the package.
3048  PACKAGE='file'
3049  VERSION='5.41'
3050
3051
3052 cat >>confdefs.h <<_ACEOF
3053 #define PACKAGE "$PACKAGE"
3054 _ACEOF
3055
3056
3057 cat >>confdefs.h <<_ACEOF
3058 #define VERSION "$VERSION"
3059 _ACEOF
3060
3061 # Some tools Automake needs.
3062
3063 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3064
3065
3066 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3067
3068
3069 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3070
3071
3072 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3073
3074
3075 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3076
3077 # For better backward compatibility.  To be removed once Automake 1.9.x
3078 # dies out for good.  For more background, see:
3079 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3080 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3081 mkdir_p='$(MKDIR_P)'
3082
3083 # We need awk for the "check" target (and possibly the TAP driver).  The
3084 # system "awk" is bad on some platforms.
3085 # Always define AMTAR for backward compatibility.  Yes, it's still used
3086 # in the wild :-(  We should find a proper way to deprecate it ...
3087 AMTAR='$${TAR-tar}'
3088
3089
3090 # We'll loop over all known methods to create a tar archive until one works.
3091 _am_tools='gnutar  pax cpio none'
3092
3093 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3094
3095
3096
3097
3098
3099
3100 # POSIX will say in a future version that running "rm -f" with no argument
3101 # is OK; and we want to be able to make that assumption in our Makefile
3102 # recipes.  So use an aggressive probe to check that the usage we want is
3103 # actually supported "in the wild" to an acceptable degree.
3104 # See automake bug#10828.
3105 # To make any issue more visible, cause the running configure to be aborted
3106 # by default if the 'rm' program in use doesn't match our expectations; the
3107 # user can still override this though.
3108 if rm -f && rm -fr && rm -rf; then : OK; else
3109   cat >&2 <<'END'
3110 Oops!
3111
3112 Your 'rm' program seems unable to run without file operands specified
3113 on the command line, even when the '-f' option is present.  This is contrary
3114 to the behaviour of most rm programs out there, and not conforming with
3115 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3116
3117 Please tell bug-automake@gnu.org about your system, including the value
3118 of your $PATH and any error possibly output before this message.  This
3119 can help us improve future automake versions.
3120
3121 END
3122   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3123     echo 'Configuration will proceed anyway, since you have set the' >&2
3124     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3125     echo >&2
3126   else
3127     cat >&2 <<'END'
3128 Aborting the configuration process, to ensure you take notice of the issue.
3129
3130 You can download and install GNU coreutils to get an 'rm' implementation
3131 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3132
3133 If you want to complete the configuration process using your problematic
3134 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3135 to "yes", and re-run configure.
3136
3137 END
3138     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3139   fi
3140 fi
3141
3142 # Check whether --enable-silent-rules was given.
3143 if test "${enable_silent_rules+set}" = set; then :
3144   enableval=$enable_silent_rules;
3145 fi
3146
3147 case $enable_silent_rules in # (((
3148   yes) AM_DEFAULT_VERBOSITY=0;;
3149    no) AM_DEFAULT_VERBOSITY=1;;
3150     *) AM_DEFAULT_VERBOSITY=0;;
3151 esac
3152 am_make=${MAKE-make}
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3154 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3155 if ${am_cv_make_support_nested_variables+:} false; then :
3156   $as_echo_n "(cached) " >&6
3157 else
3158   if $as_echo 'TRUE=$(BAR$(V))
3159 BAR0=false
3160 BAR1=true
3161 V=1
3162 am__doit:
3163         @$(TRUE)
3164 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3165   am_cv_make_support_nested_variables=yes
3166 else
3167   am_cv_make_support_nested_variables=no
3168 fi
3169 fi
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3171 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3172 if test $am_cv_make_support_nested_variables = yes; then
3173     AM_V='$(V)'
3174   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3175 else
3176   AM_V=$AM_DEFAULT_VERBOSITY
3177   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3178 fi
3179 AM_BACKSLASH='\'
3180
3181
3182 ac_config_headers="$ac_config_headers config.h"
3183
3184
3185
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3187 $as_echo_n "checking for builtin ELF support... " >&6; }
3188 # Check whether --enable-elf was given.
3189 if test "${enable_elf+set}" = set; then :
3190   enableval=$enable_elf; if test "${enableval}" = yes; then
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192 $as_echo "yes" >&6; }
3193
3194 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3195
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200 else
3201
3202   # enable by default
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3205
3206 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3207
3208
3209 fi
3210
3211
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3213 $as_echo_n "checking for ELF core file support... " >&6; }
3214 # Check whether --enable-elf-core was given.
3215 if test "${enable_elf_core+set}" = set; then :
3216   enableval=$enable_elf_core; if test "${enableval}" = yes; then
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3218 $as_echo "yes" >&6; }
3219
3220 $as_echo "#define ELFCORE 1" >>confdefs.h
3221
3222 else
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226 else
3227
3228   # enable by default
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230 $as_echo "yes" >&6; }
3231
3232 $as_echo "#define ELFCORE 1" >>confdefs.h
3233
3234
3235 fi
3236
3237
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3239 $as_echo_n "checking for zlib support... " >&6; }
3240 # Check whether --enable-zlib was given.
3241 if test "${enable_zlib+set}" = set; then :
3242   enableval=$enable_zlib;
3243 fi
3244
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3246 $as_echo "$enable_zlib" >&6; }
3247
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
3249 $as_echo_n "checking for bzlib support... " >&6; }
3250 # Check whether --enable-bzlib was given.
3251 if test "${enable_bzlib+set}" = set; then :
3252   enableval=$enable_bzlib;
3253 fi
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
3256 $as_echo "$enable_bzlib" >&6; }
3257
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
3259 $as_echo_n "checking for xzlib support... " >&6; }
3260 # Check whether --enable-xzlib was given.
3261 if test "${enable_xzlib+set}" = set; then :
3262   enableval=$enable_xzlib;
3263 fi
3264
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
3266 $as_echo "$enable_xzlib" >&6; }
3267
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3269 $as_echo_n "checking for libseccomp support... " >&6; }
3270 # Check whether --enable-libseccomp was given.
3271 if test "${enable_libseccomp+set}" = set; then :
3272   enableval=$enable_libseccomp;
3273 fi
3274
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3276 $as_echo "$enable_libseccomp" >&6; }
3277
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3279 $as_echo_n "checking for file formats in man section 5... " >&6; }
3280 # Check whether --enable-fsect-man5 was given.
3281 if test "${enable_fsect_man5+set}" = set; then :
3282   enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3285   fsect=5
3286 else
3287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289   fsect=4
3290 fi
3291 else
3292
3293   # disable by default
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296   fsect=4
3297
3298 fi
3299
3300
3301 # Make sure we can run config.sub.
3302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3303   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3304
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3306 $as_echo_n "checking build system type... " >&6; }
3307 if ${ac_cv_build+:} false; then :
3308   $as_echo_n "(cached) " >&6
3309 else
3310   ac_build_alias=$build_alias
3311 test "x$ac_build_alias" = x &&
3312   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3313 test "x$ac_build_alias" = x &&
3314   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3316   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3317
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3320 $as_echo "$ac_cv_build" >&6; }
3321 case $ac_cv_build in
3322 *-*-*) ;;
3323 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3324 esac
3325 build=$ac_cv_build
3326 ac_save_IFS=$IFS; IFS='-'
3327 set x $ac_cv_build
3328 shift
3329 build_cpu=$1
3330 build_vendor=$2
3331 shift; shift
3332 # Remember, the first character of IFS is used to create $*,
3333 # except with old shells:
3334 build_os=$*
3335 IFS=$ac_save_IFS
3336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3337
3338
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3340 $as_echo_n "checking host system type... " >&6; }
3341 if ${ac_cv_host+:} false; then :
3342   $as_echo_n "(cached) " >&6
3343 else
3344   if test "x$host_alias" = x; then
3345   ac_cv_host=$ac_cv_build
3346 else
3347   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3348     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3349 fi
3350
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3353 $as_echo "$ac_cv_host" >&6; }
3354 case $ac_cv_host in
3355 *-*-*) ;;
3356 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3357 esac
3358 host=$ac_cv_host
3359 ac_save_IFS=$IFS; IFS='-'
3360 set x $ac_cv_host
3361 shift
3362 host_cpu=$1
3363 host_vendor=$2
3364 shift; shift
3365 # Remember, the first character of IFS is used to create $*,
3366 # except with old shells:
3367 host_os=$*
3368 IFS=$ac_save_IFS
3369 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3370
3371
3372 case "$host_os" in
3373    mingw32*)
3374       MINGW=1
3375       ;;
3376    *)
3377       MINGW=0
3378       ;;
3379 esac
3380
3381  if test "$MINGW" = 1; then
3382   MINGW_TRUE=
3383   MINGW_FALSE='#'
3384 else
3385   MINGW_TRUE='#'
3386   MINGW_FALSE=
3387 fi
3388
3389
3390 pkgdatadir='$(datadir)/misc'
3391
3392
3393  if test x$fsect = x5; then
3394   FSECT5_TRUE=
3395   FSECT5_FALSE='#'
3396 else
3397   FSECT5_TRUE='#'
3398   FSECT5_FALSE=
3399 fi
3400
3401
3402
3403
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 if test -n "$ac_tool_prefix"; then
3410   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_CC+:} false; then :
3415   $as_echo_n "(cached) " >&6
3416 else
3417   if test -n "$CC"; then
3418   ac_cv_prog_CC="$CC" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423   IFS=$as_save_IFS
3424   test -z "$as_dir" && as_dir=.
3425     for ac_exec_ext in '' $ac_executable_extensions; do
3426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429     break 2
3430   fi
3431 done
3432   done
3433 IFS=$as_save_IFS
3434
3435 fi
3436 fi
3437 CC=$ac_cv_prog_CC
3438 if test -n "$CC"; then
3439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3441 else
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446
3447 fi
3448 if test -z "$ac_cv_prog_CC"; then
3449   ac_ct_CC=$CC
3450   # Extract the first word of "gcc", so it can be a program name with args.
3451 set dummy gcc; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3455   $as_echo_n "(cached) " >&6
3456 else
3457   if test -n "$ac_ct_CC"; then
3458   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463   IFS=$as_save_IFS
3464   test -z "$as_dir" && as_dir=.
3465     for ac_exec_ext in '' $ac_executable_extensions; do
3466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467     ac_cv_prog_ac_ct_CC="gcc"
3468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469     break 2
3470   fi
3471 done
3472   done
3473 IFS=$as_save_IFS
3474
3475 fi
3476 fi
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480 $as_echo "$ac_ct_CC" >&6; }
3481 else
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484 fi
3485
3486   if test "x$ac_ct_CC" = x; then
3487     CC=""
3488   else
3489     case $cross_compiling:$ac_tool_warned in
3490 yes:)
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3493 ac_tool_warned=yes ;;
3494 esac
3495     CC=$ac_ct_CC
3496   fi
3497 else
3498   CC="$ac_cv_prog_CC"
3499 fi
3500
3501 if test -z "$CC"; then
3502           if test -n "$ac_tool_prefix"; then
3503     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}cc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   if test -n "$CC"; then
3511   ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518     for ac_exec_ext in '' $ac_executable_extensions; do
3519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520     ac_cv_prog_CC="${ac_tool_prefix}cc"
3521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525   done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540   fi
3541 fi
3542 if test -z "$CC"; then
3543   # Extract the first word of "cc", so it can be a program name with args.
3544 set dummy cc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if ${ac_cv_prog_CC+:} false; then :
3548   $as_echo_n "(cached) " >&6
3549 else
3550   if test -n "$CC"; then
3551   ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553   ac_prog_rejected=no
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   test -z "$as_dir" && as_dir=.
3559     for ac_exec_ext in '' $ac_executable_extensions; do
3560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3562        ac_prog_rejected=yes
3563        continue
3564      fi
3565     ac_cv_prog_CC="cc"
3566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570   done
3571 IFS=$as_save_IFS
3572
3573 if test $ac_prog_rejected = yes; then
3574   # We found a bogon in the path, so make sure we never use it.
3575   set dummy $ac_cv_prog_CC
3576   shift
3577   if test $# != 0; then
3578     # We chose a different compiler from the bogus one.
3579     # However, it has the same basename, so the bogon will be chosen
3580     # first if we set CC to just the basename; use the full file name.
3581     shift
3582     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3583   fi
3584 fi
3585 fi
3586 fi
3587 CC=$ac_cv_prog_CC
3588 if test -n "$CC"; then
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590 $as_echo "$CC" >&6; }
3591 else
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3595
3596
3597 fi
3598 if test -z "$CC"; then
3599   if test -n "$ac_tool_prefix"; then
3600   for ac_prog in cl.exe
3601   do
3602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false; then :
3607   $as_echo_n "(cached) " >&6
3608 else
3609   if test -n "$CC"; then
3610   ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615   IFS=$as_save_IFS
3616   test -z "$as_dir" && as_dir=.
3617     for ac_exec_ext in '' $ac_executable_extensions; do
3618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621     break 2
3622   fi
3623 done
3624   done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638
3639     test -n "$CC" && break
3640   done
3641 fi
3642 if test -z "$CC"; then
3643   ac_ct_CC=$CC
3644   for ac_prog in cl.exe
3645 do
3646   # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3651   $as_echo_n "(cached) " >&6
3652 else
3653   if test -n "$ac_ct_CC"; then
3654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661     for ac_exec_ext in '' $ac_executable_extensions; do
3662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663     ac_cv_prog_ac_ct_CC="$ac_prog"
3664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668   done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3676 $as_echo "$ac_ct_CC" >&6; }
3677 else
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683   test -n "$ac_ct_CC" && break
3684 done
3685
3686   if test "x$ac_ct_CC" = x; then
3687     CC=""
3688   else
3689     case $cross_compiling:$ac_tool_warned in
3690 yes:)
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3694 esac
3695     CC=$ac_ct_CC
3696   fi
3697 fi
3698
3699 fi
3700
3701
3702 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "no acceptable C compiler found in \$PATH
3705 See \`config.log' for more details" "$LINENO" 5; }
3706
3707 # Provide some information about the compiler.
3708 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3709 set X $ac_compile
3710 ac_compiler=$2
3711 for ac_option in --version -v -V -qversion; do
3712   { { ac_try="$ac_compiler $ac_option >&5"
3713 case "(($ac_try" in
3714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715   *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 $as_echo "$ac_try_echo"; } >&5
3719   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3720   ac_status=$?
3721   if test -s conftest.err; then
3722     sed '10a\
3723 ... rest of stderr output deleted ...
3724          10q' conftest.err >conftest.er1
3725     cat conftest.er1 >&5
3726   fi
3727   rm -f conftest.er1 conftest.err
3728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729   test $ac_status = 0; }
3730 done
3731
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h.  */
3734
3735 int
3736 main ()
3737 {
3738
3739   ;
3740   return 0;
3741 }
3742 _ACEOF
3743 ac_clean_files_save=$ac_clean_files
3744 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3745 # Try to create an executable without -o first, disregard a.out.
3746 # It will help us diagnose broken compilers, and finding out an intuition
3747 # of exeext.
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3749 $as_echo_n "checking whether the C compiler works... " >&6; }
3750 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3751
3752 # The possible output files:
3753 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3754
3755 ac_rmfiles=
3756 for ac_file in $ac_files
3757 do
3758   case $ac_file in
3759     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3760     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3761   esac
3762 done
3763 rm -f $ac_rmfiles
3764
3765 if { { ac_try="$ac_link_default"
3766 case "(($ac_try" in
3767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768   *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772   (eval "$ac_link_default") 2>&5
3773   ac_status=$?
3774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775   test $ac_status = 0; }; then :
3776   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3777 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3778 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3779 # so that the user can short-circuit this test for compilers unknown to
3780 # Autoconf.
3781 for ac_file in $ac_files ''
3782 do
3783   test -f "$ac_file" || continue
3784   case $ac_file in
3785     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3786         ;;
3787     [ab].out )
3788         # We found the default executable, but exeext='' is most
3789         # certainly right.
3790         break;;
3791     *.* )
3792         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3793         then :; else
3794            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3795         fi
3796         # We set ac_cv_exeext here because the later test for it is not
3797         # safe: cross compilers may not add the suffix if given an `-o'
3798         # argument, so we may need to know it at that point already.
3799         # Even if this section looks crufty: it has the advantage of
3800         # actually working.
3801         break;;
3802     * )
3803         break;;
3804   esac
3805 done
3806 test "$ac_cv_exeext" = no && ac_cv_exeext=
3807
3808 else
3809   ac_file=''
3810 fi
3811 if test -z "$ac_file"; then :
3812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 $as_echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error 77 "C compiler cannot create executables
3820 See \`config.log' for more details" "$LINENO" 5; }
3821 else
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3823 $as_echo "yes" >&6; }
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3826 $as_echo_n "checking for C compiler default output file name... " >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3828 $as_echo "$ac_file" >&6; }
3829 ac_exeext=$ac_cv_exeext
3830
3831 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3832 ac_clean_files=$ac_clean_files_save
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3834 $as_echo_n "checking for suffix of executables... " >&6; }
3835 if { { ac_try="$ac_link"
3836 case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842   (eval "$ac_link") 2>&5
3843   ac_status=$?
3844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845   test $ac_status = 0; }; then :
3846   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3847 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3848 # work properly (i.e., refer to `conftest.exe'), while it won't with
3849 # `rm'.
3850 for ac_file in conftest.exe conftest conftest.*; do
3851   test -f "$ac_file" || continue
3852   case $ac_file in
3853     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3855           break;;
3856     * ) break;;
3857   esac
3858 done
3859 else
3860   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3863 See \`config.log' for more details" "$LINENO" 5; }
3864 fi
3865 rm -f conftest conftest$ac_cv_exeext
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3867 $as_echo "$ac_cv_exeext" >&6; }
3868
3869 rm -f conftest.$ac_ext
3870 EXEEXT=$ac_cv_exeext
3871 ac_exeext=$EXEEXT
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874 #include <stdio.h>
3875 int
3876 main ()
3877 {
3878 FILE *f = fopen ("conftest.out", "w");
3879  return ferror (f) || fclose (f) != 0;
3880
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 ac_clean_files="$ac_clean_files conftest.out"
3886 # Check that the compiler produces executables we can run.  If not, either
3887 # the compiler is broken, or we cross compile.
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3889 $as_echo_n "checking whether we are cross compiling... " >&6; }
3890 if test "$cross_compiling" != yes; then
3891   { { ac_try="$ac_link"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898   (eval "$ac_link") 2>&5
3899   ac_status=$?
3900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901   test $ac_status = 0; }
3902   if { ac_try='./conftest$ac_cv_exeext'
3903   { { case "(($ac_try" in
3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905   *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909   (eval "$ac_try") 2>&5
3910   ac_status=$?
3911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912   test $ac_status = 0; }; }; then
3913     cross_compiling=no
3914   else
3915     if test "$cross_compiling" = maybe; then
3916         cross_compiling=yes
3917     else
3918         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error $? "cannot run C compiled programs.
3921 If you meant to cross compile, use \`--host'.
3922 See \`config.log' for more details" "$LINENO" 5; }
3923     fi
3924   fi
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3927 $as_echo "$cross_compiling" >&6; }
3928
3929 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3930 ac_clean_files=$ac_clean_files_save
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3932 $as_echo_n "checking for suffix of object files... " >&6; }
3933 if ${ac_cv_objext+:} false; then :
3934   $as_echo_n "(cached) " >&6
3935 else
3936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 rm -f conftest.o conftest.obj
3948 if { { ac_try="$ac_compile"
3949 case "(($ac_try" in
3950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951   *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955   (eval "$ac_compile") 2>&5
3956   ac_status=$?
3957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958   test $ac_status = 0; }; then :
3959   for ac_file in conftest.o conftest.obj conftest.*; do
3960   test -f "$ac_file" || continue;
3961   case $ac_file in
3962     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3963     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3964        break;;
3965   esac
3966 done
3967 else
3968   $as_echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error $? "cannot compute suffix of object files: cannot compile
3974 See \`config.log' for more details" "$LINENO" 5; }
3975 fi
3976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3979 $as_echo "$ac_cv_objext" >&6; }
3980 OBJEXT=$ac_cv_objext
3981 ac_objext=$OBJEXT
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3984 if ${ac_cv_c_compiler_gnu+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989
3990 int
3991 main ()
3992 {
3993 #ifndef __GNUC__
3994        choke me
3995 #endif
3996
3997   ;
3998   return 0;
3999 }
4000 _ACEOF
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002   ac_compiler_gnu=yes
4003 else
4004   ac_compiler_gnu=no
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4008
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4012 if test $ac_compiler_gnu = yes; then
4013   GCC=yes
4014 else
4015   GCC=
4016 fi
4017 ac_test_CFLAGS=${CFLAGS+set}
4018 ac_save_CFLAGS=$CFLAGS
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4021 if ${ac_cv_prog_cc_g+:} false; then :
4022   $as_echo_n "(cached) " >&6
4023 else
4024   ac_save_c_werror_flag=$ac_c_werror_flag
4025    ac_c_werror_flag=yes
4026    ac_cv_prog_cc_g=no
4027    CFLAGS="-g"
4028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h.  */
4030
4031 int
4032 main ()
4033 {
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040   ac_cv_prog_cc_g=yes
4041 else
4042   CFLAGS=""
4043       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h.  */
4045
4046 int
4047 main ()
4048 {
4049
4050   ;
4051   return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055
4056 else
4057   ac_c_werror_flag=$ac_save_c_werror_flag
4058          CFLAGS="-g"
4059          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h.  */
4061
4062 int
4063 main ()
4064 {
4065
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 if ac_fn_c_try_compile "$LINENO"; then :
4071   ac_cv_prog_cc_g=yes
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078    ac_c_werror_flag=$ac_save_c_werror_flag
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4081 $as_echo "$ac_cv_prog_cc_g" >&6; }
4082 if test "$ac_test_CFLAGS" = set; then
4083   CFLAGS=$ac_save_CFLAGS
4084 elif test $ac_cv_prog_cc_g = yes; then
4085   if test "$GCC" = yes; then
4086     CFLAGS="-g -O2"
4087   else
4088     CFLAGS="-g"
4089   fi
4090 else
4091   if test "$GCC" = yes; then
4092     CFLAGS="-O2"
4093   else
4094     CFLAGS=
4095   fi
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4098 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4099 if ${ac_cv_prog_cc_c89+:} false; then :
4100   $as_echo_n "(cached) " >&6
4101 else
4102   ac_cv_prog_cc_c89=no
4103 ac_save_CC=$CC
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h.  */
4106 #include <stdarg.h>
4107 #include <stdio.h>
4108 struct stat;
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4113      char **p;
4114      int i;
4115 {
4116   return p[i];
4117 }
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4119 {
4120   char *s;
4121   va_list v;
4122   va_start (v,p);
4123   s = g (p, va_arg (v,int));
4124   va_end (v);
4125   return s;
4126 }
4127
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4129    function prototypes and stuff, but not '\xHH' hex character constants.
4130    These don't provoke an error unfortunately, instead are silently treated
4131    as 'x'.  The following induces an error, until -std is added to get
4132    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4133    array size at least.  It's necessary to write '\x00'==0 to get something
4134    that's true only with -std.  */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4136
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138    inside strings and character constants.  */
4139 #define FOO(x) 'x'
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4141
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4146 int argc;
4147 char **argv;
4148 int
4149 main ()
4150 {
4151 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4152   ;
4153   return 0;
4154 }
4155 _ACEOF
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4158 do
4159   CC="$ac_save_CC $ac_arg"
4160   if ac_fn_c_try_compile "$LINENO"; then :
4161   ac_cv_prog_cc_c89=$ac_arg
4162 fi
4163 rm -f core conftest.err conftest.$ac_objext
4164   test "x$ac_cv_prog_cc_c89" != "xno" && break
4165 done
4166 rm -f conftest.$ac_ext
4167 CC=$ac_save_CC
4168
4169 fi
4170 # AC_CACHE_VAL
4171 case "x$ac_cv_prog_cc_c89" in
4172   x)
4173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4175   xno)
4176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4178   *)
4179     CC="$CC $ac_cv_prog_cc_c89"
4180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4182 esac
4183 if test "x$ac_cv_prog_cc_c89" != xno; then :
4184
4185 fi
4186
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4199 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4200 if ${am_cv_prog_cc_c_o+:} false; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h.  */
4205
4206 int
4207 main ()
4208 {
4209
4210   ;
4211   return 0;
4212 }
4213 _ACEOF
4214   # Make sure it works both with $CC and with simple cc.
4215   # Following AC_PROG_CC_C_O, we do the test twice because some
4216   # compilers refuse to overwrite an existing .o file with -o,
4217   # though they will create one.
4218   am_cv_prog_cc_c_o=yes
4219   for am_i in 1 2; do
4220     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4221    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4222    ac_status=$?
4223    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224    (exit $ac_status); } \
4225          && test -f conftest2.$ac_objext; then
4226       : OK
4227     else
4228       am_cv_prog_cc_c_o=no
4229       break
4230     fi
4231   done
4232   rm -f core conftest*
4233   unset am_i
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4236 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4237 if test "$am_cv_prog_cc_c_o" != yes; then
4238    # Losing compiler, so override with the script.
4239    # FIXME: It is wrong to rewrite CC.
4240    # But if we don't then we get into trouble of one sort or another.
4241    # A longer-term fix would be to have automake use am__CC in this case,
4242    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4243    CC="$am_aux_dir/compile $CC"
4244 fi
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251 DEPDIR="${am__leading_dot}deps"
4252
4253 ac_config_commands="$ac_config_commands depfiles"
4254
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4256 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4257 cat > confinc.mk << 'END'
4258 am__doit:
4259         @echo this is the am__doit target >confinc.out
4260 .PHONY: am__doit
4261 END
4262 am__include="#"
4263 am__quote=
4264 # BSD make does it like this.
4265 echo '.include "confinc.mk" # ignored' > confmf.BSD
4266 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4267 echo 'include confinc.mk # ignored' > confmf.GNU
4268 _am_result=no
4269 for s in GNU BSD; do
4270   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4271    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4272    ac_status=$?
4273    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274    (exit $ac_status); }
4275   case $?:`cat confinc.out 2>/dev/null` in #(
4276   '0:this is the am__doit target') :
4277     case $s in #(
4278   BSD) :
4279     am__include='.include' am__quote='"' ;; #(
4280   *) :
4281     am__include='include' am__quote='' ;;
4282 esac ;; #(
4283   *) :
4284      ;;
4285 esac
4286   if test "$am__include" != "#"; then
4287     _am_result="yes ($s style)"
4288     break
4289   fi
4290 done
4291 rm -f confinc.* confmf.*
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4293 $as_echo "${_am_result}" >&6; }
4294
4295 # Check whether --enable-dependency-tracking was given.
4296 if test "${enable_dependency_tracking+set}" = set; then :
4297   enableval=$enable_dependency_tracking;
4298 fi
4299
4300 if test "x$enable_dependency_tracking" != xno; then
4301   am_depcomp="$ac_aux_dir/depcomp"
4302   AMDEPBACKSLASH='\'
4303   am__nodep='_no'
4304 fi
4305  if test "x$enable_dependency_tracking" != xno; then
4306   AMDEP_TRUE=
4307   AMDEP_FALSE='#'
4308 else
4309   AMDEP_TRUE='#'
4310   AMDEP_FALSE=
4311 fi
4312
4313
4314
4315 depcc="$CC"   am_compiler_list=
4316
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4318 $as_echo_n "checking dependency style of $depcc... " >&6; }
4319 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4323   # We make a subdir and do the tests there.  Otherwise we can end up
4324   # making bogus files that we don't know about and never remove.  For
4325   # instance it was reported that on HP-UX the gcc test will end up
4326   # making a dummy file named 'D' -- because '-MD' means "put the output
4327   # in D".
4328   rm -rf conftest.dir
4329   mkdir conftest.dir
4330   # Copy depcomp to subdir because otherwise we won't find it if we're
4331   # using a relative directory.
4332   cp "$am_depcomp" conftest.dir
4333   cd conftest.dir
4334   # We will build objects and dependencies in a subdirectory because
4335   # it helps to detect inapplicable dependency modes.  For instance
4336   # both Tru64's cc and ICC support -MD to output dependencies as a
4337   # side effect of compilation, but ICC will put the dependencies in
4338   # the current directory while Tru64 will put them in the object
4339   # directory.
4340   mkdir sub
4341
4342   am_cv_CC_dependencies_compiler_type=none
4343   if test "$am_compiler_list" = ""; then
4344      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4345   fi
4346   am__universal=false
4347   case " $depcc " in #(
4348      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4349      esac
4350
4351   for depmode in $am_compiler_list; do
4352     # Setup a source with many dependencies, because some compilers
4353     # like to wrap large dependency lists on column 80 (with \), and
4354     # we should not choose a depcomp mode which is confused by this.
4355     #
4356     # We need to recreate these files for each test, as the compiler may
4357     # overwrite some of them when testing with obscure command lines.
4358     # This happens at least with the AIX C compiler.
4359     : > sub/conftest.c
4360     for i in 1 2 3 4 5 6; do
4361       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4362       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4363       # Solaris 10 /bin/sh.
4364       echo '/* dummy */' > sub/conftst$i.h
4365     done
4366     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4367
4368     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4369     # mode.  It turns out that the SunPro C++ compiler does not properly
4370     # handle '-M -o', and we need to detect this.  Also, some Intel
4371     # versions had trouble with output in subdirs.
4372     am__obj=sub/conftest.${OBJEXT-o}
4373     am__minus_obj="-o $am__obj"
4374     case $depmode in
4375     gcc)
4376       # This depmode causes a compiler race in universal mode.
4377       test "$am__universal" = false || continue
4378       ;;
4379     nosideeffect)
4380       # After this tag, mechanisms are not by side-effect, so they'll
4381       # only be used when explicitly requested.
4382       if test "x$enable_dependency_tracking" = xyes; then
4383         continue
4384       else
4385         break
4386       fi
4387       ;;
4388     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4389       # This compiler won't grok '-c -o', but also, the minuso test has
4390       # not run yet.  These depmodes are late enough in the game, and
4391       # so weak that their functioning should not be impacted.
4392       am__obj=conftest.${OBJEXT-o}
4393       am__minus_obj=
4394       ;;
4395     none) break ;;
4396     esac
4397     if depmode=$depmode \
4398        source=sub/conftest.c object=$am__obj \
4399        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4400        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4401          >/dev/null 2>conftest.err &&
4402        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4403        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4404        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4405        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4406       # icc doesn't choke on unknown options, it will just issue warnings
4407       # or remarks (even with -Werror).  So we grep stderr for any message
4408       # that says an option was ignored or not supported.
4409       # When given -MP, icc 7.0 and 7.1 complain thusly:
4410       #   icc: Command line warning: ignoring option '-M'; no argument required
4411       # The diagnosis changed in icc 8.0:
4412       #   icc: Command line remark: option '-MP' not supported
4413       if (grep 'ignoring option' conftest.err ||
4414           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4415         am_cv_CC_dependencies_compiler_type=$depmode
4416         break
4417       fi
4418     fi
4419   done
4420
4421   cd ..
4422   rm -rf conftest.dir
4423 else
4424   am_cv_CC_dependencies_compiler_type=none
4425 fi
4426
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4429 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4430 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4431
4432  if
4433   test "x$enable_dependency_tracking" != xno \
4434   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4435   am__fastdepCC_TRUE=
4436   am__fastdepCC_FALSE='#'
4437 else
4438   am__fastdepCC_TRUE='#'
4439   am__fastdepCC_FALSE=
4440 fi
4441
4442
4443
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4450 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4451 # On Suns, sometimes $CPP names a directory.
4452 if test -n "$CPP" && test -d "$CPP"; then
4453   CPP=
4454 fi
4455 if test -z "$CPP"; then
4456   if ${ac_cv_prog_CPP+:} false; then :
4457   $as_echo_n "(cached) " >&6
4458 else
4459       # Double quotes because CPP needs to be expanded
4460     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4461     do
4462       ac_preproc_ok=false
4463 for ac_c_preproc_warn_flag in '' yes
4464 do
4465   # Use a header file that comes with gcc, so configuring glibc
4466   # with a fresh cross-compiler works.
4467   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4468   # <limits.h> exists even on freestanding compilers.
4469   # On the NeXT, cc -E runs the code through the compiler's parser,
4470   # not just through cpp. "Syntax error" is here to catch this case.
4471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h.  */
4473 #ifdef __STDC__
4474 # include <limits.h>
4475 #else
4476 # include <assert.h>
4477 #endif
4478                      Syntax error
4479 _ACEOF
4480 if ac_fn_c_try_cpp "$LINENO"; then :
4481
4482 else
4483   # Broken: fails on valid input.
4484 continue
4485 fi
4486 rm -f conftest.err conftest.i conftest.$ac_ext
4487
4488   # OK, works on sane cases.  Now check whether nonexistent headers
4489   # can be detected and how.
4490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h.  */
4492 #include <ac_nonexistent.h>
4493 _ACEOF
4494 if ac_fn_c_try_cpp "$LINENO"; then :
4495   # Broken: success on invalid input.
4496 continue
4497 else
4498   # Passes both tests.
4499 ac_preproc_ok=:
4500 break
4501 fi
4502 rm -f conftest.err conftest.i conftest.$ac_ext
4503
4504 done
4505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4506 rm -f conftest.i conftest.err conftest.$ac_ext
4507 if $ac_preproc_ok; then :
4508   break
4509 fi
4510
4511     done
4512     ac_cv_prog_CPP=$CPP
4513
4514 fi
4515   CPP=$ac_cv_prog_CPP
4516 else
4517   ac_cv_prog_CPP=$CPP
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4520 $as_echo "$CPP" >&6; }
4521 ac_preproc_ok=false
4522 for ac_c_preproc_warn_flag in '' yes
4523 do
4524   # Use a header file that comes with gcc, so configuring glibc
4525   # with a fresh cross-compiler works.
4526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527   # <limits.h> exists even on freestanding compilers.
4528   # On the NeXT, cc -E runs the code through the compiler's parser,
4529   # not just through cpp. "Syntax error" is here to catch this case.
4530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h.  */
4532 #ifdef __STDC__
4533 # include <limits.h>
4534 #else
4535 # include <assert.h>
4536 #endif
4537                      Syntax error
4538 _ACEOF
4539 if ac_fn_c_try_cpp "$LINENO"; then :
4540
4541 else
4542   # Broken: fails on valid input.
4543 continue
4544 fi
4545 rm -f conftest.err conftest.i conftest.$ac_ext
4546
4547   # OK, works on sane cases.  Now check whether nonexistent headers
4548   # can be detected and how.
4549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h.  */
4551 #include <ac_nonexistent.h>
4552 _ACEOF
4553 if ac_fn_c_try_cpp "$LINENO"; then :
4554   # Broken: success on invalid input.
4555 continue
4556 else
4557   # Passes both tests.
4558 ac_preproc_ok=:
4559 break
4560 fi
4561 rm -f conftest.err conftest.i conftest.$ac_ext
4562
4563 done
4564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4565 rm -f conftest.i conftest.err conftest.$ac_ext
4566 if $ac_preproc_ok; then :
4567
4568 else
4569   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4571 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4572 See \`config.log' for more details" "$LINENO" 5; }
4573 fi
4574
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4583 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4584 if ${ac_cv_path_GREP+:} false; then :
4585   $as_echo_n "(cached) " >&6
4586 else
4587   if test -z "$GREP"; then
4588   ac_path_GREP_found=false
4589   # Loop through the user's path and test for each of PROGNAME-LIST
4590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595     for ac_prog in grep ggrep; do
4596     for ac_exec_ext in '' $ac_executable_extensions; do
4597       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4598       as_fn_executable_p "$ac_path_GREP" || continue
4599 # Check for GNU ac_path_GREP and select it if it is found.
4600   # Check for GNU $ac_path_GREP
4601 case `"$ac_path_GREP" --version 2>&1` in
4602 *GNU*)
4603   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4604 *)
4605   ac_count=0
4606   $as_echo_n 0123456789 >"conftest.in"
4607   while :
4608   do
4609     cat "conftest.in" "conftest.in" >"conftest.tmp"
4610     mv "conftest.tmp" "conftest.in"
4611     cp "conftest.in" "conftest.nl"
4612     $as_echo 'GREP' >> "conftest.nl"
4613     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615     as_fn_arith $ac_count + 1 && ac_count=$as_val
4616     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4617       # Best one so far, save it but keep looking for a better one
4618       ac_cv_path_GREP="$ac_path_GREP"
4619       ac_path_GREP_max=$ac_count
4620     fi
4621     # 10*(2^10) chars as input seems more than enough
4622     test $ac_count -gt 10 && break
4623   done
4624   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4626
4627       $ac_path_GREP_found && break 3
4628     done
4629   done
4630   done
4631 IFS=$as_save_IFS
4632   if test -z "$ac_cv_path_GREP"; then
4633     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4634   fi
4635 else
4636   ac_cv_path_GREP=$GREP
4637 fi
4638
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4641 $as_echo "$ac_cv_path_GREP" >&6; }
4642  GREP="$ac_cv_path_GREP"
4643
4644
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4646 $as_echo_n "checking for egrep... " >&6; }
4647 if ${ac_cv_path_EGREP+:} false; then :
4648   $as_echo_n "(cached) " >&6
4649 else
4650   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4651    then ac_cv_path_EGREP="$GREP -E"
4652    else
4653      if test -z "$EGREP"; then
4654   ac_path_EGREP_found=false
4655   # Loop through the user's path and test for each of PROGNAME-LIST
4656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661     for ac_prog in egrep; do
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4664       as_fn_executable_p "$ac_path_EGREP" || continue
4665 # Check for GNU ac_path_EGREP and select it if it is found.
4666   # Check for GNU $ac_path_EGREP
4667 case `"$ac_path_EGREP" --version 2>&1` in
4668 *GNU*)
4669   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4670 *)
4671   ac_count=0
4672   $as_echo_n 0123456789 >"conftest.in"
4673   while :
4674   do
4675     cat "conftest.in" "conftest.in" >"conftest.tmp"
4676     mv "conftest.tmp" "conftest.in"
4677     cp "conftest.in" "conftest.nl"
4678     $as_echo 'EGREP' >> "conftest.nl"
4679     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681     as_fn_arith $ac_count + 1 && ac_count=$as_val
4682     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4683       # Best one so far, save it but keep looking for a better one
4684       ac_cv_path_EGREP="$ac_path_EGREP"
4685       ac_path_EGREP_max=$ac_count
4686     fi
4687     # 10*(2^10) chars as input seems more than enough
4688     test $ac_count -gt 10 && break
4689   done
4690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691 esac
4692
4693       $ac_path_EGREP_found && break 3
4694     done
4695   done
4696   done
4697 IFS=$as_save_IFS
4698   if test -z "$ac_cv_path_EGREP"; then
4699     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4700   fi
4701 else
4702   ac_cv_path_EGREP=$EGREP
4703 fi
4704
4705    fi
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4708 $as_echo "$ac_cv_path_EGREP" >&6; }
4709  EGREP="$ac_cv_path_EGREP"
4710
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4713 $as_echo_n "checking for ANSI C header files... " >&6; }
4714 if ${ac_cv_header_stdc+:} false; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h.  */
4719 #include <stdlib.h>
4720 #include <stdarg.h>
4721 #include <string.h>
4722 #include <float.h>
4723
4724 int
4725 main ()
4726 {
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733   ac_cv_header_stdc=yes
4734 else
4735   ac_cv_header_stdc=no
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738
4739 if test $ac_cv_header_stdc = yes; then
4740   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h.  */
4743 #include <string.h>
4744
4745 _ACEOF
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747   $EGREP "memchr" >/dev/null 2>&1; then :
4748
4749 else
4750   ac_cv_header_stdc=no
4751 fi
4752 rm -f conftest*
4753
4754 fi
4755
4756 if test $ac_cv_header_stdc = yes; then
4757   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h.  */
4760 #include <stdlib.h>
4761
4762 _ACEOF
4763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4764   $EGREP "free" >/dev/null 2>&1; then :
4765
4766 else
4767   ac_cv_header_stdc=no
4768 fi
4769 rm -f conftest*
4770
4771 fi
4772
4773 if test $ac_cv_header_stdc = yes; then
4774   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4775   if test "$cross_compiling" = yes; then :
4776   :
4777 else
4778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h.  */
4780 #include <ctype.h>
4781 #include <stdlib.h>
4782 #if ((' ' & 0x0FF) == 0x020)
4783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4785 #else
4786 # define ISLOWER(c) \
4787                    (('a' <= (c) && (c) <= 'i') \
4788                      || ('j' <= (c) && (c) <= 'r') \
4789                      || ('s' <= (c) && (c) <= 'z'))
4790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4791 #endif
4792
4793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4794 int
4795 main ()
4796 {
4797   int i;
4798   for (i = 0; i < 256; i++)
4799     if (XOR (islower (i), ISLOWER (i))
4800         || toupper (i) != TOUPPER (i))
4801       return 2;
4802   return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_run "$LINENO"; then :
4806
4807 else
4808   ac_cv_header_stdc=no
4809 fi
4810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4811   conftest.$ac_objext conftest.beam conftest.$ac_ext
4812 fi
4813
4814 fi
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4817 $as_echo "$ac_cv_header_stdc" >&6; }
4818 if test $ac_cv_header_stdc = yes; then
4819
4820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4821
4822 fi
4823
4824 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4826                   inttypes.h stdint.h unistd.h
4827 do :
4828   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4829 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4830 "
4831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4832   cat >>confdefs.h <<_ACEOF
4833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4834 _ACEOF
4835
4836 fi
4837
4838 done
4839
4840
4841
4842   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4843 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4844   MINIX=yes
4845 else
4846   MINIX=
4847 fi
4848
4849
4850   if test "$MINIX" = yes; then
4851
4852 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4853
4854
4855 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4856
4857
4858 $as_echo "#define _MINIX 1" >>confdefs.h
4859
4860   fi
4861
4862
4863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4864 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4865 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4866   $as_echo_n "(cached) " >&6
4867 else
4868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h.  */
4870
4871 #         define __EXTENSIONS__ 1
4872           $ac_includes_default
4873 int
4874 main ()
4875 {
4876
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_c_try_compile "$LINENO"; then :
4882   ac_cv_safe_to_define___extensions__=yes
4883 else
4884   ac_cv_safe_to_define___extensions__=no
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4889 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4890   test $ac_cv_safe_to_define___extensions__ = yes &&
4891     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4892
4893   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4894
4895   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4896
4897   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4898
4899   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4900
4901
4902
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4904 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4905 if ${ac_cv_c_bigendian+:} false; then :
4906   $as_echo_n "(cached) " >&6
4907 else
4908   ac_cv_c_bigendian=unknown
4909     # See if we're dealing with a universal compiler.
4910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h.  */
4912 #ifndef __APPLE_CC__
4913                not a universal capable compiler
4914              #endif
4915              typedef int dummy;
4916
4917 _ACEOF
4918 if ac_fn_c_try_compile "$LINENO"; then :
4919
4920         # Check for potential -arch flags.  It is not universal unless
4921         # there are at least two -arch flags with different values.
4922         ac_arch=
4923         ac_prev=
4924         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4925          if test -n "$ac_prev"; then
4926            case $ac_word in
4927              i?86 | x86_64 | ppc | ppc64)
4928                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4929                  ac_arch=$ac_word
4930                else
4931                  ac_cv_c_bigendian=universal
4932                  break
4933                fi
4934                ;;
4935            esac
4936            ac_prev=
4937          elif test "x$ac_word" = "x-arch"; then
4938            ac_prev=arch
4939          fi
4940        done
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943     if test $ac_cv_c_bigendian = unknown; then
4944       # See if sys/param.h defines the BYTE_ORDER macro.
4945       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h.  */
4947 #include <sys/types.h>
4948              #include <sys/param.h>
4949
4950 int
4951 main ()
4952 {
4953 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4954                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4955                      && LITTLE_ENDIAN)
4956               bogus endian macros
4957              #endif
4958
4959   ;
4960   return 0;
4961 }
4962 _ACEOF
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964   # It does; now see whether it defined to BIG_ENDIAN or not.
4965          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h.  */
4967 #include <sys/types.h>
4968                 #include <sys/param.h>
4969
4970 int
4971 main ()
4972 {
4973 #if BYTE_ORDER != BIG_ENDIAN
4974                  not big endian
4975                 #endif
4976
4977   ;
4978   return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982   ac_cv_c_bigendian=yes
4983 else
4984   ac_cv_c_bigendian=no
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989     fi
4990     if test $ac_cv_c_bigendian = unknown; then
4991       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4992       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h.  */
4994 #include <limits.h>
4995
4996 int
4997 main ()
4998 {
4999 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5000               bogus endian macros
5001              #endif
5002
5003   ;
5004   return 0;
5005 }
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008   # It does; now see whether it defined to _BIG_ENDIAN or not.
5009          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h.  */
5011 #include <limits.h>
5012
5013 int
5014 main ()
5015 {
5016 #ifndef _BIG_ENDIAN
5017                  not big endian
5018                 #endif
5019
5020   ;
5021   return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025   ac_cv_c_bigendian=yes
5026 else
5027   ac_cv_c_bigendian=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032     fi
5033     if test $ac_cv_c_bigendian = unknown; then
5034       # Compile a test program.
5035       if test "$cross_compiling" = yes; then :
5036   # Try to guess by grepping values from an object file.
5037          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h.  */
5039 short int ascii_mm[] =
5040                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5041                 short int ascii_ii[] =
5042                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5043                 int use_ascii (int i) {
5044                   return ascii_mm[i] + ascii_ii[i];
5045                 }
5046                 short int ebcdic_ii[] =
5047                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5048                 short int ebcdic_mm[] =
5049                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5050                 int use_ebcdic (int i) {
5051                   return ebcdic_mm[i] + ebcdic_ii[i];
5052                 }
5053                 extern int foo;
5054
5055 int
5056 main ()
5057 {
5058 return use_ascii (foo) == use_ebcdic (foo);
5059   ;
5060   return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5065               ac_cv_c_bigendian=yes
5066             fi
5067             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5068               if test "$ac_cv_c_bigendian" = unknown; then
5069                 ac_cv_c_bigendian=no
5070               else
5071                 # finding both strings is unlikely to happen, but who knows?
5072                 ac_cv_c_bigendian=unknown
5073               fi
5074             fi
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 else
5078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h.  */
5080 $ac_includes_default
5081 int
5082 main ()
5083 {
5084
5085              /* Are we little or big endian?  From Harbison&Steele.  */
5086              union
5087              {
5088                long int l;
5089                char c[sizeof (long int)];
5090              } u;
5091              u.l = 1;
5092              return u.c[sizeof (long int) - 1] == 1;
5093
5094   ;
5095   return 0;
5096 }
5097 _ACEOF
5098 if ac_fn_c_try_run "$LINENO"; then :
5099   ac_cv_c_bigendian=no
5100 else
5101   ac_cv_c_bigendian=yes
5102 fi
5103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5104   conftest.$ac_objext conftest.beam conftest.$ac_ext
5105 fi
5106
5107     fi
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5110 $as_echo "$ac_cv_c_bigendian" >&6; }
5111  case $ac_cv_c_bigendian in #(
5112    yes)
5113      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5114 ;; #(
5115    no)
5116       ;; #(
5117    universal)
5118
5119 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5120
5121      ;; #(
5122    *)
5123      as_fn_error $? "unknown endianness
5124  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5125  esac
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5129 $as_echo_n "checking whether ln -s works... " >&6; }
5130 LN_S=$as_ln_s
5131 if test "$LN_S" = "ln -s"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133 $as_echo "yes" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5136 $as_echo "no, using $LN_S" >&6; }
5137 fi
5138
5139 case `pwd` in
5140   *\ * | *\     *)
5141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5142 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5143 esac
5144
5145
5146
5147 macro_version='2.4.6'
5148 macro_revision='2.4.6'
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 ltmain=$ac_aux_dir/ltmain.sh
5163
5164 # Backslashify metacharacters that are still active within
5165 # double-quoted strings.
5166 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5167
5168 # Same as above, but do not quote variable references.
5169 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5170
5171 # Sed substitution to delay expansion of an escaped shell variable in a
5172 # double_quote_subst'ed string.
5173 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5174
5175 # Sed substitution to delay expansion of an escaped single quote.
5176 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5177
5178 # Sed substitution to avoid accidental globbing in evaled expressions
5179 no_glob_subst='s/\*/\\\*/g'
5180
5181 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5182 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5186 $as_echo_n "checking how to print strings... " >&6; }
5187 # Test print first, because it will be a builtin if present.
5188 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5189    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5190   ECHO='print -r --'
5191 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5192   ECHO='printf %s\n'
5193 else
5194   # Use this function as a fallback that always works.
5195   func_fallback_echo ()
5196   {
5197     eval 'cat <<_LTECHO_EOF
5198 $1
5199 _LTECHO_EOF'
5200   }
5201   ECHO='func_fallback_echo'
5202 fi
5203
5204 # func_echo_all arg...
5205 # Invoke $ECHO with all args, space-separated.
5206 func_echo_all ()
5207 {
5208     $ECHO ""
5209 }
5210
5211 case $ECHO in
5212   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5213 $as_echo "printf" >&6; } ;;
5214   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5215 $as_echo "print -r" >&6; } ;;
5216   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5217 $as_echo "cat" >&6; } ;;
5218 esac
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5234 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5235 if ${ac_cv_path_SED+:} false; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5239      for ac_i in 1 2 3 4 5 6 7; do
5240        ac_script="$ac_script$as_nl$ac_script"
5241      done
5242      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5243      { ac_script=; unset ac_script;}
5244      if test -z "$SED"; then
5245   ac_path_SED_found=false
5246   # Loop through the user's path and test for each of PROGNAME-LIST
5247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252     for ac_prog in sed gsed; do
5253     for ac_exec_ext in '' $ac_executable_extensions; do
5254       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5255       as_fn_executable_p "$ac_path_SED" || continue
5256 # Check for GNU ac_path_SED and select it if it is found.
5257   # Check for GNU $ac_path_SED
5258 case `"$ac_path_SED" --version 2>&1` in
5259 *GNU*)
5260   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5261 *)
5262   ac_count=0
5263   $as_echo_n 0123456789 >"conftest.in"
5264   while :
5265   do
5266     cat "conftest.in" "conftest.in" >"conftest.tmp"
5267     mv "conftest.tmp" "conftest.in"
5268     cp "conftest.in" "conftest.nl"
5269     $as_echo '' >> "conftest.nl"
5270     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5271     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5272     as_fn_arith $ac_count + 1 && ac_count=$as_val
5273     if test $ac_count -gt ${ac_path_SED_max-0}; then
5274       # Best one so far, save it but keep looking for a better one
5275       ac_cv_path_SED="$ac_path_SED"
5276       ac_path_SED_max=$ac_count
5277     fi
5278     # 10*(2^10) chars as input seems more than enough
5279     test $ac_count -gt 10 && break
5280   done
5281   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5282 esac
5283
5284       $ac_path_SED_found && break 3
5285     done
5286   done
5287   done
5288 IFS=$as_save_IFS
5289   if test -z "$ac_cv_path_SED"; then
5290     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5291   fi
5292 else
5293   ac_cv_path_SED=$SED
5294 fi
5295
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5298 $as_echo "$ac_cv_path_SED" >&6; }
5299  SED="$ac_cv_path_SED"
5300   rm -f conftest.sed
5301
5302 test -z "$SED" && SED=sed
5303 Xsed="$SED -e 1s/^X//"
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5316 $as_echo_n "checking for fgrep... " >&6; }
5317 if ${ac_cv_path_FGREP+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5321    then ac_cv_path_FGREP="$GREP -F"
5322    else
5323      if test -z "$FGREP"; then
5324   ac_path_FGREP_found=false
5325   # Loop through the user's path and test for each of PROGNAME-LIST
5326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331     for ac_prog in fgrep; do
5332     for ac_exec_ext in '' $ac_executable_extensions; do
5333       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5334       as_fn_executable_p "$ac_path_FGREP" || continue
5335 # Check for GNU ac_path_FGREP and select it if it is found.
5336   # Check for GNU $ac_path_FGREP
5337 case `"$ac_path_FGREP" --version 2>&1` in
5338 *GNU*)
5339   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5340 *)
5341   ac_count=0
5342   $as_echo_n 0123456789 >"conftest.in"
5343   while :
5344   do
5345     cat "conftest.in" "conftest.in" >"conftest.tmp"
5346     mv "conftest.tmp" "conftest.in"
5347     cp "conftest.in" "conftest.nl"
5348     $as_echo 'FGREP' >> "conftest.nl"
5349     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351     as_fn_arith $ac_count + 1 && ac_count=$as_val
5352     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5353       # Best one so far, save it but keep looking for a better one
5354       ac_cv_path_FGREP="$ac_path_FGREP"
5355       ac_path_FGREP_max=$ac_count
5356     fi
5357     # 10*(2^10) chars as input seems more than enough
5358     test $ac_count -gt 10 && break
5359   done
5360   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5361 esac
5362
5363       $ac_path_FGREP_found && break 3
5364     done
5365   done
5366   done
5367 IFS=$as_save_IFS
5368   if test -z "$ac_cv_path_FGREP"; then
5369     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5370   fi
5371 else
5372   ac_cv_path_FGREP=$FGREP
5373 fi
5374
5375    fi
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5378 $as_echo "$ac_cv_path_FGREP" >&6; }
5379  FGREP="$ac_cv_path_FGREP"
5380
5381
5382 test -z "$GREP" && GREP=grep
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402 # Check whether --with-gnu-ld was given.
5403 if test "${with_gnu_ld+set}" = set; then :
5404   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5405 else
5406   with_gnu_ld=no
5407 fi
5408
5409 ac_prog=ld
5410 if test yes = "$GCC"; then
5411   # Check if gcc -print-prog-name=ld gives a path.
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5413 $as_echo_n "checking for ld used by $CC... " >&6; }
5414   case $host in
5415   *-*-mingw*)
5416     # gcc leaves a trailing carriage return, which upsets mingw
5417     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5418   *)
5419     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5420   esac
5421   case $ac_prog in
5422     # Accept absolute paths.
5423     [\\/]* | ?:[\\/]*)
5424       re_direlt='/[^/][^/]*/\.\./'
5425       # Canonicalize the pathname of ld
5426       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5427       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5428         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5429       done
5430       test -z "$LD" && LD=$ac_prog
5431       ;;
5432   "")
5433     # If it fails, then pretend we aren't using GCC.
5434     ac_prog=ld
5435     ;;
5436   *)
5437     # If it is relative, then search for the first ld in PATH.
5438     with_gnu_ld=unknown
5439     ;;
5440   esac
5441 elif test yes = "$with_gnu_ld"; then
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5443 $as_echo_n "checking for GNU ld... " >&6; }
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5446 $as_echo_n "checking for non-GNU ld... " >&6; }
5447 fi
5448 if ${lt_cv_path_LD+:} false; then :
5449   $as_echo_n "(cached) " >&6
5450 else
5451   if test -z "$LD"; then
5452   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5453   for ac_dir in $PATH; do
5454     IFS=$lt_save_ifs
5455     test -z "$ac_dir" && ac_dir=.
5456     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5457       lt_cv_path_LD=$ac_dir/$ac_prog
5458       # Check to see if the program is GNU ld.  I'd rather use --version,
5459       # but apparently some variants of GNU ld only accept -v.
5460       # Break only if it was the GNU/non-GNU ld that we prefer.
5461       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5462       *GNU* | *'with BFD'*)
5463         test no != "$with_gnu_ld" && break
5464         ;;
5465       *)
5466         test yes != "$with_gnu_ld" && break
5467         ;;
5468       esac
5469     fi
5470   done
5471   IFS=$lt_save_ifs
5472 else
5473   lt_cv_path_LD=$LD # Let the user override the test with a path.
5474 fi
5475 fi
5476
5477 LD=$lt_cv_path_LD
5478 if test -n "$LD"; then
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5480 $as_echo "$LD" >&6; }
5481 else
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5487 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5488 if ${lt_cv_prog_gnu_ld+:} false; then :
5489   $as_echo_n "(cached) " >&6
5490 else
5491   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5492 case `$LD -v 2>&1 </dev/null` in
5493 *GNU* | *'with BFD'*)
5494   lt_cv_prog_gnu_ld=yes
5495   ;;
5496 *)
5497   lt_cv_prog_gnu_ld=no
5498   ;;
5499 esac
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5502 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5503 with_gnu_ld=$lt_cv_prog_gnu_ld
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5514 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5515 if ${lt_cv_path_NM+:} false; then :
5516   $as_echo_n "(cached) " >&6
5517 else
5518   if test -n "$NM"; then
5519   # Let the user override the test.
5520   lt_cv_path_NM=$NM
5521 else
5522   lt_nm_to_check=${ac_tool_prefix}nm
5523   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5524     lt_nm_to_check="$lt_nm_to_check nm"
5525   fi
5526   for lt_tmp_nm in $lt_nm_to_check; do
5527     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5528     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5529       IFS=$lt_save_ifs
5530       test -z "$ac_dir" && ac_dir=.
5531       tmp_nm=$ac_dir/$lt_tmp_nm
5532       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5533         # Check to see if the nm accepts a BSD-compat flag.
5534         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5535         #   nm: unknown option "B" ignored
5536         # Tru64's nm complains that /dev/null is an invalid object file
5537         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5538         case $build_os in
5539         mingw*) lt_bad_file=conftest.nm/nofile ;;
5540         *) lt_bad_file=/dev/null ;;
5541         esac
5542         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5543         *$lt_bad_file* | *'Invalid file or object type'*)
5544           lt_cv_path_NM="$tmp_nm -B"
5545           break 2
5546           ;;
5547         *)
5548           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5549           */dev/null*)
5550             lt_cv_path_NM="$tmp_nm -p"
5551             break 2
5552             ;;
5553           *)
5554             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5555             continue # so that we can try to find one that supports BSD flags
5556             ;;
5557           esac
5558           ;;
5559         esac
5560       fi
5561     done
5562     IFS=$lt_save_ifs
5563   done
5564   : ${lt_cv_path_NM=no}
5565 fi
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5568 $as_echo "$lt_cv_path_NM" >&6; }
5569 if test no != "$lt_cv_path_NM"; then
5570   NM=$lt_cv_path_NM
5571 else
5572   # Didn't find any BSD compatible name lister, look for dumpbin.
5573   if test -n "$DUMPBIN"; then :
5574     # Let the user override the test.
5575   else
5576     if test -n "$ac_tool_prefix"; then
5577   for ac_prog in dumpbin "link -dump"
5578   do
5579     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_DUMPBIN+:} false; then :
5584   $as_echo_n "(cached) " >&6
5585 else
5586   if test -n "$DUMPBIN"; then
5587   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594     for ac_exec_ext in '' $ac_executable_extensions; do
5595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601   done
5602 IFS=$as_save_IFS
5603
5604 fi
5605 fi
5606 DUMPBIN=$ac_cv_prog_DUMPBIN
5607 if test -n "$DUMPBIN"; then
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5609 $as_echo "$DUMPBIN" >&6; }
5610 else
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614
5615
5616     test -n "$DUMPBIN" && break
5617   done
5618 fi
5619 if test -z "$DUMPBIN"; then
5620   ac_ct_DUMPBIN=$DUMPBIN
5621   for ac_prog in dumpbin "link -dump"
5622 do
5623   # Extract the first word of "$ac_prog", so it can be a program name with args.
5624 set dummy $ac_prog; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   if test -n "$ac_ct_DUMPBIN"; then
5631   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638     for ac_exec_ext in '' $ac_executable_extensions; do
5639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645   done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5651 if test -n "$ac_ct_DUMPBIN"; then
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5653 $as_echo "$ac_ct_DUMPBIN" >&6; }
5654 else
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658
5659
5660   test -n "$ac_ct_DUMPBIN" && break
5661 done
5662
5663   if test "x$ac_ct_DUMPBIN" = x; then
5664     DUMPBIN=":"
5665   else
5666     case $cross_compiling:$ac_tool_warned in
5667 yes:)
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670 ac_tool_warned=yes ;;
5671 esac
5672     DUMPBIN=$ac_ct_DUMPBIN
5673   fi
5674 fi
5675
5676     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5677     *COFF*)
5678       DUMPBIN="$DUMPBIN -symbols -headers"
5679       ;;
5680     *)
5681       DUMPBIN=:
5682       ;;
5683     esac
5684   fi
5685
5686   if test : != "$DUMPBIN"; then
5687     NM=$DUMPBIN
5688   fi
5689 fi
5690 test -z "$NM" && NM=nm
5691
5692
5693
5694
5695
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5698 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5699 if ${lt_cv_nm_interface+:} false; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   lt_cv_nm_interface="BSD nm"
5703   echo "int some_variable = 0;" > conftest.$ac_ext
5704   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5705   (eval "$ac_compile" 2>conftest.err)
5706   cat conftest.err >&5
5707   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5708   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5709   cat conftest.err >&5
5710   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5711   cat conftest.out >&5
5712   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5713     lt_cv_nm_interface="MS dumpbin"
5714   fi
5715   rm -f conftest*
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5718 $as_echo "$lt_cv_nm_interface" >&6; }
5719
5720 # find the maximum length of command line arguments
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5722 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5723 if ${lt_cv_sys_max_cmd_len+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726     i=0
5727   teststring=ABCD
5728
5729   case $build_os in
5730   msdosdjgpp*)
5731     # On DJGPP, this test can blow up pretty badly due to problems in libc
5732     # (any single argument exceeding 2000 bytes causes a buffer overrun
5733     # during glob expansion).  Even if it were fixed, the result of this
5734     # check would be larger than it should be.
5735     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5736     ;;
5737
5738   gnu*)
5739     # Under GNU Hurd, this test is not required because there is
5740     # no limit to the length of command line arguments.
5741     # Libtool will interpret -1 as no limit whatsoever
5742     lt_cv_sys_max_cmd_len=-1;
5743     ;;
5744
5745   cygwin* | mingw* | cegcc*)
5746     # On Win9x/ME, this test blows up -- it succeeds, but takes
5747     # about 5 minutes as the teststring grows exponentially.
5748     # Worse, since 9x/ME are not pre-emptively multitasking,
5749     # you end up with a "frozen" computer, even though with patience
5750     # the test eventually succeeds (with a max line length of 256k).
5751     # Instead, let's just punt: use the minimum linelength reported by
5752     # all of the supported platforms: 8192 (on NT/2K/XP).
5753     lt_cv_sys_max_cmd_len=8192;
5754     ;;
5755
5756   mint*)
5757     # On MiNT this can take a long time and run out of memory.
5758     lt_cv_sys_max_cmd_len=8192;
5759     ;;
5760
5761   amigaos*)
5762     # On AmigaOS with pdksh, this test takes hours, literally.
5763     # So we just punt and use a minimum line length of 8192.
5764     lt_cv_sys_max_cmd_len=8192;
5765     ;;
5766
5767   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5768     # This has been around since 386BSD, at least.  Likely further.
5769     if test -x /sbin/sysctl; then
5770       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5771     elif test -x /usr/sbin/sysctl; then
5772       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5773     else
5774       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5775     fi
5776     # And add a safety zone
5777     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5778     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5779     ;;
5780
5781   interix*)
5782     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5783     lt_cv_sys_max_cmd_len=196608
5784     ;;
5785
5786   os2*)
5787     # The test takes a long time on OS/2.
5788     lt_cv_sys_max_cmd_len=8192
5789     ;;
5790
5791   osf*)
5792     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5793     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5794     # nice to cause kernel panics so lets avoid the loop below.
5795     # First set a reasonable default.
5796     lt_cv_sys_max_cmd_len=16384
5797     #
5798     if test -x /sbin/sysconfig; then
5799       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5800         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5801       esac
5802     fi
5803     ;;
5804   sco3.2v5*)
5805     lt_cv_sys_max_cmd_len=102400
5806     ;;
5807   sysv5* | sco5v6* | sysv4.2uw2*)
5808     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5809     if test -n "$kargmax"; then
5810       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5811     else
5812       lt_cv_sys_max_cmd_len=32768
5813     fi
5814     ;;
5815   *)
5816     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5817     if test -n "$lt_cv_sys_max_cmd_len" && \
5818        test undefined != "$lt_cv_sys_max_cmd_len"; then
5819       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5820       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5821     else
5822       # Make teststring a little bigger before we do anything with it.
5823       # a 1K string should be a reasonable start.
5824       for i in 1 2 3 4 5 6 7 8; do
5825         teststring=$teststring$teststring
5826       done
5827       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5828       # If test is not a shell built-in, we'll probably end up computing a
5829       # maximum length that is only half of the actual maximum length, but
5830       # we can't tell.
5831       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5832                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5833               test 17 != "$i" # 1/2 MB should be enough
5834       do
5835         i=`expr $i + 1`
5836         teststring=$teststring$teststring
5837       done
5838       # Only check the string length outside the loop.
5839       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5840       teststring=
5841       # Add a significant safety factor because C++ compilers can tack on
5842       # massive amounts of additional arguments before passing them to the
5843       # linker.  It appears as though 1/2 is a usable value.
5844       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5845     fi
5846     ;;
5847   esac
5848
5849 fi
5850
5851 if test -n "$lt_cv_sys_max_cmd_len"; then
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5853 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5854 else
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5856 $as_echo "none" >&6; }
5857 fi
5858 max_cmd_len=$lt_cv_sys_max_cmd_len
5859
5860
5861
5862
5863
5864
5865 : ${CP="cp -f"}
5866 : ${MV="mv -f"}
5867 : ${RM="rm -f"}
5868
5869 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5870   lt_unset=unset
5871 else
5872   lt_unset=false
5873 fi
5874
5875
5876
5877
5878
5879 # test EBCDIC or ASCII
5880 case `echo X|tr X '\101'` in
5881  A) # ASCII based system
5882     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5883   lt_SP2NL='tr \040 \012'
5884   lt_NL2SP='tr \015\012 \040\040'
5885   ;;
5886  *) # EBCDIC based system
5887   lt_SP2NL='tr \100 \n'
5888   lt_NL2SP='tr \r\n \100\100'
5889   ;;
5890 esac
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5901 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5902 if ${lt_cv_to_host_file_cmd+:} false; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   case $host in
5906   *-*-mingw* )
5907     case $build in
5908       *-*-mingw* ) # actually msys
5909         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5910         ;;
5911       *-*-cygwin* )
5912         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5913         ;;
5914       * ) # otherwise, assume *nix
5915         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5916         ;;
5917     esac
5918     ;;
5919   *-*-cygwin* )
5920     case $build in
5921       *-*-mingw* ) # actually msys
5922         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5923         ;;
5924       *-*-cygwin* )
5925         lt_cv_to_host_file_cmd=func_convert_file_noop
5926         ;;
5927       * ) # otherwise, assume *nix
5928         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5929         ;;
5930     esac
5931     ;;
5932   * ) # unhandled hosts (and "normal" native builds)
5933     lt_cv_to_host_file_cmd=func_convert_file_noop
5934     ;;
5935 esac
5936
5937 fi
5938
5939 to_host_file_cmd=$lt_cv_to_host_file_cmd
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5941 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5942
5943
5944
5945
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5948 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5949 if ${lt_cv_to_tool_file_cmd+:} false; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   #assume ordinary cross tools, or native build.
5953 lt_cv_to_tool_file_cmd=func_convert_file_noop
5954 case $host in
5955   *-*-mingw* )
5956     case $build in
5957       *-*-mingw* ) # actually msys
5958         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5959         ;;
5960     esac
5961     ;;
5962 esac
5963
5964 fi
5965
5966 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5968 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5969
5970
5971
5972
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5975 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5976 if ${lt_cv_ld_reload_flag+:} false; then :
5977   $as_echo_n "(cached) " >&6
5978 else
5979   lt_cv_ld_reload_flag='-r'
5980 fi
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5982 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5983 reload_flag=$lt_cv_ld_reload_flag
5984 case $reload_flag in
5985 "" | " "*) ;;
5986 *) reload_flag=" $reload_flag" ;;
5987 esac
5988 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5989 case $host_os in
5990   cygwin* | mingw* | pw32* | cegcc*)
5991     if test yes != "$GCC"; then
5992       reload_cmds=false
5993     fi
5994     ;;
5995   darwin*)
5996     if test yes = "$GCC"; then
5997       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5998     else
5999       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6000     fi
6001     ;;
6002 esac
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 if test -n "$ac_tool_prefix"; then
6013   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_OBJDUMP+:} false; then :
6018   $as_echo_n "(cached) " >&6
6019 else
6020   if test -n "$OBJDUMP"; then
6021   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026   IFS=$as_save_IFS
6027   test -z "$as_dir" && as_dir=.
6028     for ac_exec_ext in '' $ac_executable_extensions; do
6029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032     break 2
6033   fi
6034 done
6035   done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 OBJDUMP=$ac_cv_prog_OBJDUMP
6041 if test -n "$OBJDUMP"; then
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6043 $as_echo "$OBJDUMP" >&6; }
6044 else
6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049
6050 fi
6051 if test -z "$ac_cv_prog_OBJDUMP"; then
6052   ac_ct_OBJDUMP=$OBJDUMP
6053   # Extract the first word of "objdump", so it can be a program name with args.
6054 set dummy objdump; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6058   $as_echo_n "(cached) " >&6
6059 else
6060   if test -n "$ac_ct_OBJDUMP"; then
6061   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068     for ac_exec_ext in '' $ac_executable_extensions; do
6069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075   done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6081 if test -n "$ac_ct_OBJDUMP"; then
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6083 $as_echo "$ac_ct_OBJDUMP" >&6; }
6084 else
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089   if test "x$ac_ct_OBJDUMP" = x; then
6090     OBJDUMP="false"
6091   else
6092     case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098     OBJDUMP=$ac_ct_OBJDUMP
6099   fi
6100 else
6101   OBJDUMP="$ac_cv_prog_OBJDUMP"
6102 fi
6103
6104 test -z "$OBJDUMP" && OBJDUMP=objdump
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6115 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6116 if ${lt_cv_deplibs_check_method+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   lt_cv_file_magic_cmd='$MAGIC_CMD'
6120 lt_cv_file_magic_test_file=
6121 lt_cv_deplibs_check_method='unknown'
6122 # Need to set the preceding variable on all platforms that support
6123 # interlibrary dependencies.
6124 # 'none' -- dependencies not supported.
6125 # 'unknown' -- same as none, but documents that we really don't know.
6126 # 'pass_all' -- all dependencies passed with no checks.
6127 # 'test_compile' -- check by making test program.
6128 # 'file_magic [[regex]]' -- check by looking for files in library path
6129 # that responds to the $file_magic_cmd with a given extended regex.
6130 # If you have 'file' or equivalent on your system and you're not sure
6131 # whether 'pass_all' will *always* work, you probably want this one.
6132
6133 case $host_os in
6134 aix[4-9]*)
6135   lt_cv_deplibs_check_method=pass_all
6136   ;;
6137
6138 beos*)
6139   lt_cv_deplibs_check_method=pass_all
6140   ;;
6141
6142 bsdi[45]*)
6143   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6144   lt_cv_file_magic_cmd='/usr/bin/file -L'
6145   lt_cv_file_magic_test_file=/shlib/libc.so
6146   ;;
6147
6148 cygwin*)
6149   # func_win32_libid is a shell function defined in ltmain.sh
6150   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6151   lt_cv_file_magic_cmd='func_win32_libid'
6152   ;;
6153
6154 mingw* | pw32*)
6155   # Base MSYS/MinGW do not provide the 'file' command needed by
6156   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6157   # unless we find 'file', for example because we are cross-compiling.
6158   if ( file / ) >/dev/null 2>&1; then
6159     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6160     lt_cv_file_magic_cmd='func_win32_libid'
6161   else
6162     # Keep this pattern in sync with the one in func_win32_libid.
6163     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6164     lt_cv_file_magic_cmd='$OBJDUMP -f'
6165   fi
6166   ;;
6167
6168 cegcc*)
6169   # use the weaker test based on 'objdump'. See mingw*.
6170   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6171   lt_cv_file_magic_cmd='$OBJDUMP -f'
6172   ;;
6173
6174 darwin* | rhapsody*)
6175   lt_cv_deplibs_check_method=pass_all
6176   ;;
6177
6178 freebsd* | dragonfly*)
6179   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6180     case $host_cpu in
6181     i*86 )
6182       # Not sure whether the presence of OpenBSD here was a mistake.
6183       # Let's accept both of them until this is cleared up.
6184       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6185       lt_cv_file_magic_cmd=/usr/bin/file
6186       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6187       ;;
6188     esac
6189   else
6190     lt_cv_deplibs_check_method=pass_all
6191   fi
6192   ;;
6193
6194 haiku*)
6195   lt_cv_deplibs_check_method=pass_all
6196   ;;
6197
6198 hpux10.20* | hpux11*)
6199   lt_cv_file_magic_cmd=/usr/bin/file
6200   case $host_cpu in
6201   ia64*)
6202     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6203     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6204     ;;
6205   hppa*64*)
6206     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6207     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6208     ;;
6209   *)
6210     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6211     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6212     ;;
6213   esac
6214   ;;
6215
6216 interix[3-9]*)
6217   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6218   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6219   ;;
6220
6221 irix5* | irix6* | nonstopux*)
6222   case $LD in
6223   *-32|*"-32 ") libmagic=32-bit;;
6224   *-n32|*"-n32 ") libmagic=N32;;
6225   *-64|*"-64 ") libmagic=64-bit;;
6226   *) libmagic=never-match;;
6227   esac
6228   lt_cv_deplibs_check_method=pass_all
6229   ;;
6230
6231 # This must be glibc/ELF.
6232 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6233   lt_cv_deplibs_check_method=pass_all
6234   ;;
6235
6236 netbsd*)
6237   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6238     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6239   else
6240     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6241   fi
6242   ;;
6243
6244 newos6*)
6245   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6246   lt_cv_file_magic_cmd=/usr/bin/file
6247   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6248   ;;
6249
6250 *nto* | *qnx*)
6251   lt_cv_deplibs_check_method=pass_all
6252   ;;
6253
6254 openbsd* | bitrig*)
6255   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6256     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6257   else
6258     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6259   fi
6260   ;;
6261
6262 osf3* | osf4* | osf5*)
6263   lt_cv_deplibs_check_method=pass_all
6264   ;;
6265
6266 rdos*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269
6270 solaris*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6275   lt_cv_deplibs_check_method=pass_all
6276   ;;
6277
6278 sysv4 | sysv4.3*)
6279   case $host_vendor in
6280   motorola)
6281     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]'
6282     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6283     ;;
6284   ncr)
6285     lt_cv_deplibs_check_method=pass_all
6286     ;;
6287   sequent)
6288     lt_cv_file_magic_cmd='/bin/file'
6289     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6290     ;;
6291   sni)
6292     lt_cv_file_magic_cmd='/bin/file'
6293     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6294     lt_cv_file_magic_test_file=/lib/libc.so
6295     ;;
6296   siemens)
6297     lt_cv_deplibs_check_method=pass_all
6298     ;;
6299   pc)
6300     lt_cv_deplibs_check_method=pass_all
6301     ;;
6302   esac
6303   ;;
6304
6305 tpf*)
6306   lt_cv_deplibs_check_method=pass_all
6307   ;;
6308 os2*)
6309   lt_cv_deplibs_check_method=pass_all
6310   ;;
6311 esac
6312
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6315 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6316
6317 file_magic_glob=
6318 want_nocaseglob=no
6319 if test "$build" = "$host"; then
6320   case $host_os in
6321   mingw* | pw32*)
6322     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6323       want_nocaseglob=yes
6324     else
6325       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6326     fi
6327     ;;
6328   esac
6329 fi
6330
6331 file_magic_cmd=$lt_cv_file_magic_cmd
6332 deplibs_check_method=$lt_cv_deplibs_check_method
6333 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356 if test -n "$ac_tool_prefix"; then
6357   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if ${ac_cv_prog_DLLTOOL+:} false; then :
6362   $as_echo_n "(cached) " >&6
6363 else
6364   if test -n "$DLLTOOL"; then
6365   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372     for ac_exec_ext in '' $ac_executable_extensions; do
6373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379   done
6380 IFS=$as_save_IFS
6381
6382 fi
6383 fi
6384 DLLTOOL=$ac_cv_prog_DLLTOOL
6385 if test -n "$DLLTOOL"; then
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6387 $as_echo "$DLLTOOL" >&6; }
6388 else
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6391 fi
6392
6393
6394 fi
6395 if test -z "$ac_cv_prog_DLLTOOL"; then
6396   ac_ct_DLLTOOL=$DLLTOOL
6397   # Extract the first word of "dlltool", so it can be a program name with args.
6398 set dummy dlltool; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$ac_ct_DLLTOOL"; then
6405   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6425 if test -n "$ac_ct_DLLTOOL"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6427 $as_echo "$ac_ct_DLLTOOL" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433   if test "x$ac_ct_DLLTOOL" = x; then
6434     DLLTOOL="false"
6435   else
6436     case $cross_compiling:$ac_tool_warned in
6437 yes:)
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442     DLLTOOL=$ac_ct_DLLTOOL
6443   fi
6444 else
6445   DLLTOOL="$ac_cv_prog_DLLTOOL"
6446 fi
6447
6448 test -z "$DLLTOOL" && DLLTOOL=dlltool
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6460 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6461 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   lt_cv_sharedlib_from_linklib_cmd='unknown'
6465
6466 case $host_os in
6467 cygwin* | mingw* | pw32* | cegcc*)
6468   # two different shell functions defined in ltmain.sh;
6469   # decide which one to use based on capabilities of $DLLTOOL
6470   case `$DLLTOOL --help 2>&1` in
6471   *--identify-strict*)
6472     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6473     ;;
6474   *)
6475     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6476     ;;
6477   esac
6478   ;;
6479 *)
6480   # fallback: assume linklib IS sharedlib
6481   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6482   ;;
6483 esac
6484
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6487 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6488 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6489 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6490
6491
6492
6493
6494
6495
6496
6497 if test -n "$ac_tool_prefix"; then
6498   for ac_prog in ar
6499   do
6500     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_AR+:} false; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   if test -n "$AR"; then
6508   ac_cv_prog_AR="$AR" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513   IFS=$as_save_IFS
6514   test -z "$as_dir" && as_dir=.
6515     for ac_exec_ext in '' $ac_executable_extensions; do
6516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519     break 2
6520   fi
6521 done
6522   done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 AR=$ac_cv_prog_AR
6528 if test -n "$AR"; then
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6530 $as_echo "$AR" >&6; }
6531 else
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536
6537     test -n "$AR" && break
6538   done
6539 fi
6540 if test -z "$AR"; then
6541   ac_ct_AR=$AR
6542   for ac_prog in ar
6543 do
6544   # Extract the first word of "$ac_prog", so it can be a program name with args.
6545 set dummy $ac_prog; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   if test -n "$ac_ct_AR"; then
6552   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559     for ac_exec_ext in '' $ac_executable_extensions; do
6560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561     ac_cv_prog_ac_ct_AR="$ac_prog"
6562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566   done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6572 if test -n "$ac_ct_AR"; then
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6574 $as_echo "$ac_ct_AR" >&6; }
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579
6580
6581   test -n "$ac_ct_AR" && break
6582 done
6583
6584   if test "x$ac_ct_AR" = x; then
6585     AR="false"
6586   else
6587     case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6592 esac
6593     AR=$ac_ct_AR
6594   fi
6595 fi
6596
6597 : ${AR=ar}
6598 : ${AR_FLAGS=cru}
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6611 $as_echo_n "checking for archiver @FILE support... " >&6; }
6612 if ${lt_cv_ar_at_file+:} false; then :
6613   $as_echo_n "(cached) " >&6
6614 else
6615   lt_cv_ar_at_file=no
6616    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h.  */
6618
6619 int
6620 main ()
6621 {
6622
6623   ;
6624   return 0;
6625 }
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628   echo conftest.$ac_objext > conftest.lst
6629       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6630       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6631   (eval $lt_ar_try) 2>&5
6632   ac_status=$?
6633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634   test $ac_status = 0; }
6635       if test 0 -eq "$ac_status"; then
6636         # Ensure the archiver fails upon bogus file names.
6637         rm -f conftest.$ac_objext libconftest.a
6638         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6639   (eval $lt_ar_try) 2>&5
6640   ac_status=$?
6641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642   test $ac_status = 0; }
6643         if test 0 -ne "$ac_status"; then
6644           lt_cv_ar_at_file=@
6645         fi
6646       fi
6647       rm -f conftest.* libconftest.a
6648
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6651
6652 fi
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6654 $as_echo "$lt_cv_ar_at_file" >&6; }
6655
6656 if test no = "$lt_cv_ar_at_file"; then
6657   archiver_list_spec=
6658 else
6659   archiver_list_spec=$lt_cv_ar_at_file
6660 fi
6661
6662
6663
6664
6665
6666
6667
6668 if test -n "$ac_tool_prefix"; then
6669   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}strip; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_STRIP+:} false; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   if test -n "$STRIP"; then
6677   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684     for ac_exec_ext in '' $ac_executable_extensions; do
6685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691   done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 STRIP=$ac_cv_prog_STRIP
6697 if test -n "$STRIP"; then
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6699 $as_echo "$STRIP" >&6; }
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705
6706 fi
6707 if test -z "$ac_cv_prog_STRIP"; then
6708   ac_ct_STRIP=$STRIP
6709   # Extract the first word of "strip", so it can be a program name with args.
6710 set dummy strip; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   if test -n "$ac_ct_STRIP"; then
6717   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724     for ac_exec_ext in '' $ac_executable_extensions; do
6725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726     ac_cv_prog_ac_ct_STRIP="strip"
6727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731   done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6737 if test -n "$ac_ct_STRIP"; then
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6739 $as_echo "$ac_ct_STRIP" >&6; }
6740 else
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6743 fi
6744
6745   if test "x$ac_ct_STRIP" = x; then
6746     STRIP=":"
6747   else
6748     case $cross_compiling:$ac_tool_warned in
6749 yes:)
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752 ac_tool_warned=yes ;;
6753 esac
6754     STRIP=$ac_ct_STRIP
6755   fi
6756 else
6757   STRIP="$ac_cv_prog_STRIP"
6758 fi
6759
6760 test -z "$STRIP" && STRIP=:
6761
6762
6763
6764
6765
6766
6767 if test -n "$ac_tool_prefix"; then
6768   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_RANLIB+:} false; then :
6773   $as_echo_n "(cached) " >&6
6774 else
6775   if test -n "$RANLIB"; then
6776   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783     for ac_exec_ext in '' $ac_executable_extensions; do
6784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790   done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 RANLIB=$ac_cv_prog_RANLIB
6796 if test -n "$RANLIB"; then
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6798 $as_echo "$RANLIB" >&6; }
6799 else
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804
6805 fi
6806 if test -z "$ac_cv_prog_RANLIB"; then
6807   ac_ct_RANLIB=$RANLIB
6808   # Extract the first word of "ranlib", so it can be a program name with args.
6809 set dummy ranlib; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   if test -n "$ac_ct_RANLIB"; then
6816   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825     ac_cv_prog_ac_ct_RANLIB="ranlib"
6826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6836 if test -n "$ac_ct_RANLIB"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6838 $as_echo "$ac_ct_RANLIB" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844   if test "x$ac_ct_RANLIB" = x; then
6845     RANLIB=":"
6846   else
6847     case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853     RANLIB=$ac_ct_RANLIB
6854   fi
6855 else
6856   RANLIB="$ac_cv_prog_RANLIB"
6857 fi
6858
6859 test -z "$RANLIB" && RANLIB=:
6860
6861
6862
6863
6864
6865
6866 # Determine commands to create old-style static archives.
6867 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6868 old_postinstall_cmds='chmod 644 $oldlib'
6869 old_postuninstall_cmds=
6870
6871 if test -n "$RANLIB"; then
6872   case $host_os in
6873   bitrig* | openbsd*)
6874     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6875     ;;
6876   *)
6877     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6878     ;;
6879   esac
6880   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6881 fi
6882
6883 case $host_os in
6884   darwin*)
6885     lock_old_archive_extraction=yes ;;
6886   *)
6887     lock_old_archive_extraction=no ;;
6888 esac
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928 # If no C compiler was specified, use CC.
6929 LTCC=${LTCC-"$CC"}
6930
6931 # If no C compiler flags were specified, use CFLAGS.
6932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6933
6934 # Allow CC to be a program name with arguments.
6935 compiler=$CC
6936
6937
6938 # Check for command to grab the raw symbol name followed by C symbol from nm.
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6940 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6941 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944
6945 # These are sane defaults that work on at least a few old systems.
6946 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6947
6948 # Character class describing NM global symbol codes.
6949 symcode='[BCDEGRST]'
6950
6951 # Regexp to match symbols that can be accessed directly from C.
6952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6953
6954 # Define system-specific variables.
6955 case $host_os in
6956 aix*)
6957   symcode='[BCDT]'
6958   ;;
6959 cygwin* | mingw* | pw32* | cegcc*)
6960   symcode='[ABCDGISTW]'
6961   ;;
6962 hpux*)
6963   if test ia64 = "$host_cpu"; then
6964     symcode='[ABCDEGRST]'
6965   fi
6966   ;;
6967 irix* | nonstopux*)
6968   symcode='[BCDEGRST]'
6969   ;;
6970 osf*)
6971   symcode='[BCDEGQRST]'
6972   ;;
6973 solaris*)
6974   symcode='[BDRT]'
6975   ;;
6976 sco3.2v5*)
6977   symcode='[DT]'
6978   ;;
6979 sysv4.2uw2*)
6980   symcode='[DT]'
6981   ;;
6982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6983   symcode='[ABDT]'
6984   ;;
6985 sysv4)
6986   symcode='[DFNSTU]'
6987   ;;
6988 esac
6989
6990 # If we're using GNU nm, then use its standard symbol codes.
6991 case `$NM -V 2>&1` in
6992 *GNU* | *'with BFD'*)
6993   symcode='[ABCDGIRSTW]' ;;
6994 esac
6995
6996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6997   # Gets list of data symbols to import.
6998   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6999   # Adjust the below global symbol transforms to fixup imported variables.
7000   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7001   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7002   lt_c_name_lib_hook="\
7003   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7004   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7005 else
7006   # Disable hooks by default.
7007   lt_cv_sys_global_symbol_to_import=
7008   lt_cdecl_hook=
7009   lt_c_name_hook=
7010   lt_c_name_lib_hook=
7011 fi
7012
7013 # Transform an extracted symbol line into a proper C declaration.
7014 # Some systems (esp. on ia64) link data and code symbols differently,
7015 # so use this general approach.
7016 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7017 $lt_cdecl_hook\
7018 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7019 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7020
7021 # Transform an extracted symbol line into symbol name and symbol address
7022 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7023 $lt_c_name_hook\
7024 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7025 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7026
7027 # Transform an extracted symbol line into symbol name with lib prefix and
7028 # symbol address.
7029 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7030 $lt_c_name_lib_hook\
7031 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7032 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7033 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7034
7035 # Handle CRLF in mingw tool chain
7036 opt_cr=
7037 case $build_os in
7038 mingw*)
7039   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7040   ;;
7041 esac
7042
7043 # Try without a prefix underscore, then with it.
7044 for ac_symprfx in "" "_"; do
7045
7046   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7047   symxfrm="\\1 $ac_symprfx\\2 \\2"
7048
7049   # Write the raw and C identifiers.
7050   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7051     # Fake it for dumpbin and say T for any non-static function,
7052     # D for any global variable and I for any imported variable.
7053     # Also find C++ and __fastcall symbols from MSVC++,
7054     # which start with @ or ?.
7055     lt_cv_sys_global_symbol_pipe="$AWK '"\
7056 "     {last_section=section; section=\$ 3};"\
7057 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7058 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7059 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7060 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7061 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7062 "     \$ 0!~/External *\|/{next};"\
7063 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7064 "     {if(hide[section]) next};"\
7065 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7066 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7067 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7068 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7069 "     ' prfx=^$ac_symprfx"
7070   else
7071     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7072   fi
7073   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7074
7075   # Check to see that the pipe works correctly.
7076   pipe_works=no
7077
7078   rm -f conftest*
7079   cat > conftest.$ac_ext <<_LT_EOF
7080 #ifdef __cplusplus
7081 extern "C" {
7082 #endif
7083 char nm_test_var;
7084 void nm_test_func(void);
7085 void nm_test_func(void){}
7086 #ifdef __cplusplus
7087 }
7088 #endif
7089 int main(){nm_test_var='a';nm_test_func();return(0);}
7090 _LT_EOF
7091
7092   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7093   (eval $ac_compile) 2>&5
7094   ac_status=$?
7095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7096   test $ac_status = 0; }; then
7097     # Now try to grab the symbols.
7098     nlist=conftest.nm
7099     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7100   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7101   ac_status=$?
7102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7103   test $ac_status = 0; } && test -s "$nlist"; then
7104       # Try sorting and uniquifying the output.
7105       if sort "$nlist" | uniq > "$nlist"T; then
7106         mv -f "$nlist"T "$nlist"
7107       else
7108         rm -f "$nlist"T
7109       fi
7110
7111       # Make sure that we snagged all the symbols we need.
7112       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7113         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7114           cat <<_LT_EOF > conftest.$ac_ext
7115 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7116 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7117 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7118    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7119 # define LT_DLSYM_CONST
7120 #elif defined __osf__
7121 /* This system does not cope well with relocations in const data.  */
7122 # define LT_DLSYM_CONST
7123 #else
7124 # define LT_DLSYM_CONST const
7125 #endif
7126
7127 #ifdef __cplusplus
7128 extern "C" {
7129 #endif
7130
7131 _LT_EOF
7132           # Now generate the symbol file.
7133           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7134
7135           cat <<_LT_EOF >> conftest.$ac_ext
7136
7137 /* The mapping between symbol names and symbols.  */
7138 LT_DLSYM_CONST struct {
7139   const char *name;
7140   void       *address;
7141 }
7142 lt__PROGRAM__LTX_preloaded_symbols[] =
7143 {
7144   { "@PROGRAM@", (void *) 0 },
7145 _LT_EOF
7146           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7147           cat <<\_LT_EOF >> conftest.$ac_ext
7148   {0, (void *) 0}
7149 };
7150
7151 /* This works around a problem in FreeBSD linker */
7152 #ifdef FREEBSD_WORKAROUND
7153 static const void *lt_preloaded_setup() {
7154   return lt__PROGRAM__LTX_preloaded_symbols;
7155 }
7156 #endif
7157
7158 #ifdef __cplusplus
7159 }
7160 #endif
7161 _LT_EOF
7162           # Now try linking the two files.
7163           mv conftest.$ac_objext conftstm.$ac_objext
7164           lt_globsym_save_LIBS=$LIBS
7165           lt_globsym_save_CFLAGS=$CFLAGS
7166           LIBS=conftstm.$ac_objext
7167           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7168           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7169   (eval $ac_link) 2>&5
7170   ac_status=$?
7171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7173             pipe_works=yes
7174           fi
7175           LIBS=$lt_globsym_save_LIBS
7176           CFLAGS=$lt_globsym_save_CFLAGS
7177         else
7178           echo "cannot find nm_test_func in $nlist" >&5
7179         fi
7180       else
7181         echo "cannot find nm_test_var in $nlist" >&5
7182       fi
7183     else
7184       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7185     fi
7186   else
7187     echo "$progname: failed program was:" >&5
7188     cat conftest.$ac_ext >&5
7189   fi
7190   rm -rf conftest* conftst*
7191
7192   # Do not use the global_symbol_pipe unless it works.
7193   if test yes = "$pipe_works"; then
7194     break
7195   else
7196     lt_cv_sys_global_symbol_pipe=
7197   fi
7198 done
7199
7200 fi
7201
7202 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7203   lt_cv_sys_global_symbol_to_cdecl=
7204 fi
7205 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7207 $as_echo "failed" >&6; }
7208 else
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7210 $as_echo "ok" >&6; }
7211 fi
7212
7213 # Response file support.
7214 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7215   nm_file_list_spec='@'
7216 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7217   nm_file_list_spec='@'
7218 fi
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7257 $as_echo_n "checking for sysroot... " >&6; }
7258
7259 # Check whether --with-sysroot was given.
7260 if test "${with_sysroot+set}" = set; then :
7261   withval=$with_sysroot;
7262 else
7263   with_sysroot=no
7264 fi
7265
7266
7267 lt_sysroot=
7268 case $with_sysroot in #(
7269  yes)
7270    if test yes = "$GCC"; then
7271      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7272    fi
7273    ;; #(
7274  /*)
7275    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7276    ;; #(
7277  no|'')
7278    ;; #(
7279  *)
7280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7281 $as_echo "$with_sysroot" >&6; }
7282    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7283    ;;
7284 esac
7285
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7287 $as_echo "${lt_sysroot:-no}" >&6; }
7288
7289
7290
7291
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7294 $as_echo_n "checking for a working dd... " >&6; }
7295 if ${ac_cv_path_lt_DD+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   printf 0123456789abcdef0123456789abcdef >conftest.i
7299 cat conftest.i conftest.i >conftest2.i
7300 : ${lt_DD:=$DD}
7301 if test -z "$lt_DD"; then
7302   ac_path_lt_DD_found=false
7303   # Loop through the user's path and test for each of PROGNAME-LIST
7304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_prog in dd; do
7310     for ac_exec_ext in '' $ac_executable_extensions; do
7311       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7312       as_fn_executable_p "$ac_path_lt_DD" || continue
7313 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7314   cmp -s conftest.i conftest.out \
7315   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7316 fi
7317       $ac_path_lt_DD_found && break 3
7318     done
7319   done
7320   done
7321 IFS=$as_save_IFS
7322   if test -z "$ac_cv_path_lt_DD"; then
7323     :
7324   fi
7325 else
7326   ac_cv_path_lt_DD=$lt_DD
7327 fi
7328
7329 rm -f conftest.i conftest2.i conftest.out
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7332 $as_echo "$ac_cv_path_lt_DD" >&6; }
7333
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7336 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7337 if ${lt_cv_truncate_bin+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   printf 0123456789abcdef0123456789abcdef >conftest.i
7341 cat conftest.i conftest.i >conftest2.i
7342 lt_cv_truncate_bin=
7343 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7344   cmp -s conftest.i conftest.out \
7345   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7346 fi
7347 rm -f conftest.i conftest2.i conftest.out
7348 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7349 fi
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7351 $as_echo "$lt_cv_truncate_bin" >&6; }
7352
7353
7354
7355
7356
7357
7358
7359 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7360 func_cc_basename ()
7361 {
7362     for cc_temp in $*""; do
7363       case $cc_temp in
7364         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7365         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7366         \-*) ;;
7367         *) break;;
7368       esac
7369     done
7370     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7371 }
7372
7373 # Check whether --enable-libtool-lock was given.
7374 if test "${enable_libtool_lock+set}" = set; then :
7375   enableval=$enable_libtool_lock;
7376 fi
7377
7378 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7379
7380 # Some flags need to be propagated to the compiler or linker for good
7381 # libtool support.
7382 case $host in
7383 ia64-*-hpux*)
7384   # Find out what ABI is being produced by ac_compile, and set mode
7385   # options accordingly.
7386   echo 'int i;' > conftest.$ac_ext
7387   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388   (eval $ac_compile) 2>&5
7389   ac_status=$?
7390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391   test $ac_status = 0; }; then
7392     case `/usr/bin/file conftest.$ac_objext` in
7393       *ELF-32*)
7394         HPUX_IA64_MODE=32
7395         ;;
7396       *ELF-64*)
7397         HPUX_IA64_MODE=64
7398         ;;
7399     esac
7400   fi
7401   rm -rf conftest*
7402   ;;
7403 *-*-irix6*)
7404   # Find out what ABI is being produced by ac_compile, and set linker
7405   # options accordingly.
7406   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7407   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7408   (eval $ac_compile) 2>&5
7409   ac_status=$?
7410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411   test $ac_status = 0; }; then
7412     if test yes = "$lt_cv_prog_gnu_ld"; then
7413       case `/usr/bin/file conftest.$ac_objext` in
7414         *32-bit*)
7415           LD="${LD-ld} -melf32bsmip"
7416           ;;
7417         *N32*)
7418           LD="${LD-ld} -melf32bmipn32"
7419           ;;
7420         *64-bit*)
7421           LD="${LD-ld} -melf64bmip"
7422         ;;
7423       esac
7424     else
7425       case `/usr/bin/file conftest.$ac_objext` in
7426         *32-bit*)
7427           LD="${LD-ld} -32"
7428           ;;
7429         *N32*)
7430           LD="${LD-ld} -n32"
7431           ;;
7432         *64-bit*)
7433           LD="${LD-ld} -64"
7434           ;;
7435       esac
7436     fi
7437   fi
7438   rm -rf conftest*
7439   ;;
7440
7441 mips64*-*linux*)
7442   # Find out what ABI is being produced by ac_compile, and set linker
7443   # options accordingly.
7444   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7445   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446   (eval $ac_compile) 2>&5
7447   ac_status=$?
7448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449   test $ac_status = 0; }; then
7450     emul=elf
7451     case `/usr/bin/file conftest.$ac_objext` in
7452       *32-bit*)
7453         emul="${emul}32"
7454         ;;
7455       *64-bit*)
7456         emul="${emul}64"
7457         ;;
7458     esac
7459     case `/usr/bin/file conftest.$ac_objext` in
7460       *MSB*)
7461         emul="${emul}btsmip"
7462         ;;
7463       *LSB*)
7464         emul="${emul}ltsmip"
7465         ;;
7466     esac
7467     case `/usr/bin/file conftest.$ac_objext` in
7468       *N32*)
7469         emul="${emul}n32"
7470         ;;
7471     esac
7472     LD="${LD-ld} -m $emul"
7473   fi
7474   rm -rf conftest*
7475   ;;
7476
7477 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7478 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7479   # Find out what ABI is being produced by ac_compile, and set linker
7480   # options accordingly.  Note that the listed cases only cover the
7481   # situations where additional linker options are needed (such as when
7482   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7483   # vice versa); the common cases where no linker options are needed do
7484   # not appear in the list.
7485   echo 'int i;' > conftest.$ac_ext
7486   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7487   (eval $ac_compile) 2>&5
7488   ac_status=$?
7489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490   test $ac_status = 0; }; then
7491     case `/usr/bin/file conftest.o` in
7492       *32-bit*)
7493         case $host in
7494           x86_64-*kfreebsd*-gnu)
7495             LD="${LD-ld} -m elf_i386_fbsd"
7496             ;;
7497           x86_64-*linux*)
7498             case `/usr/bin/file conftest.o` in
7499               *x86-64*)
7500                 LD="${LD-ld} -m elf32_x86_64"
7501                 ;;
7502               *)
7503                 LD="${LD-ld} -m elf_i386"
7504                 ;;
7505             esac
7506             ;;
7507           powerpc64le-*linux*)
7508             LD="${LD-ld} -m elf32lppclinux"
7509             ;;
7510           powerpc64-*linux*)
7511             LD="${LD-ld} -m elf32ppclinux"
7512             ;;
7513           s390x-*linux*)
7514             LD="${LD-ld} -m elf_s390"
7515             ;;
7516           sparc64-*linux*)
7517             LD="${LD-ld} -m elf32_sparc"
7518             ;;
7519         esac
7520         ;;
7521       *64-bit*)
7522         case $host in
7523           x86_64-*kfreebsd*-gnu)
7524             LD="${LD-ld} -m elf_x86_64_fbsd"
7525             ;;
7526           x86_64-*linux*)
7527             LD="${LD-ld} -m elf_x86_64"
7528             ;;
7529           powerpcle-*linux*)
7530             LD="${LD-ld} -m elf64lppc"
7531             ;;
7532           powerpc-*linux*)
7533             LD="${LD-ld} -m elf64ppc"
7534             ;;
7535           s390*-*linux*|s390*-*tpf*)
7536             LD="${LD-ld} -m elf64_s390"
7537             ;;
7538           sparc*-*linux*)
7539             LD="${LD-ld} -m elf64_sparc"
7540             ;;
7541         esac
7542         ;;
7543     esac
7544   fi
7545   rm -rf conftest*
7546   ;;
7547
7548 *-*-sco3.2v5*)
7549   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7550   SAVE_CFLAGS=$CFLAGS
7551   CFLAGS="$CFLAGS -belf"
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7553 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7554 if ${lt_cv_cc_needs_belf+:} false; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   ac_ext=c
7558 ac_cpp='$CPP $CPPFLAGS'
7559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7562
7563      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h.  */
7565
7566 int
7567 main ()
7568 {
7569
7570   ;
7571   return 0;
7572 }
7573 _ACEOF
7574 if ac_fn_c_try_link "$LINENO"; then :
7575   lt_cv_cc_needs_belf=yes
7576 else
7577   lt_cv_cc_needs_belf=no
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext \
7580     conftest$ac_exeext conftest.$ac_ext
7581      ac_ext=c
7582 ac_cpp='$CPP $CPPFLAGS'
7583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7586
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7589 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7590   if test yes != "$lt_cv_cc_needs_belf"; then
7591     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7592     CFLAGS=$SAVE_CFLAGS
7593   fi
7594   ;;
7595 *-*solaris*)
7596   # Find out what ABI is being produced by ac_compile, and set linker
7597   # options accordingly.
7598   echo 'int i;' > conftest.$ac_ext
7599   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7600   (eval $ac_compile) 2>&5
7601   ac_status=$?
7602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603   test $ac_status = 0; }; then
7604     case `/usr/bin/file conftest.o` in
7605     *64-bit*)
7606       case $lt_cv_prog_gnu_ld in
7607       yes*)
7608         case $host in
7609         i?86-*-solaris*|x86_64-*-solaris*)
7610           LD="${LD-ld} -m elf_x86_64"
7611           ;;
7612         sparc*-*-solaris*)
7613           LD="${LD-ld} -m elf64_sparc"
7614           ;;
7615         esac
7616         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7617         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7618           LD=${LD-ld}_sol2
7619         fi
7620         ;;
7621       *)
7622         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7623           LD="${LD-ld} -64"
7624         fi
7625         ;;
7626       esac
7627       ;;
7628     esac
7629   fi
7630   rm -rf conftest*
7631   ;;
7632 esac
7633
7634 need_locks=$enable_libtool_lock
7635
7636 if test -n "$ac_tool_prefix"; then
7637   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}mt; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   if test -n "$MANIFEST_TOOL"; then
7645   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652     for ac_exec_ext in '' $ac_executable_extensions; do
7653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659   done
7660 IFS=$as_save_IFS
7661
7662 fi
7663 fi
7664 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7665 if test -n "$MANIFEST_TOOL"; then
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7667 $as_echo "$MANIFEST_TOOL" >&6; }
7668 else
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 fi
7672
7673
7674 fi
7675 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7676   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7677   # Extract the first word of "mt", so it can be a program name with args.
7678 set dummy mt; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$ac_ct_MANIFEST_TOOL"; then
7685   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692     for ac_exec_ext in '' $ac_executable_extensions; do
7693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699   done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7705 if test -n "$ac_ct_MANIFEST_TOOL"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7707 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7714     MANIFEST_TOOL=":"
7715   else
7716     case $cross_compiling:$ac_tool_warned in
7717 yes:)
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720 ac_tool_warned=yes ;;
7721 esac
7722     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7723   fi
7724 else
7725   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7726 fi
7727
7728 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7730 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7731 if ${lt_cv_path_mainfest_tool+:} false; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   lt_cv_path_mainfest_tool=no
7735   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7736   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7737   cat conftest.err >&5
7738   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7739     lt_cv_path_mainfest_tool=yes
7740   fi
7741   rm -f conftest*
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7744 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7745 if test yes != "$lt_cv_path_mainfest_tool"; then
7746   MANIFEST_TOOL=:
7747 fi
7748
7749
7750
7751
7752
7753
7754   case $host_os in
7755     rhapsody* | darwin*)
7756     if test -n "$ac_tool_prefix"; then
7757   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7762   $as_echo_n "(cached) " >&6
7763 else
7764   if test -n "$DSYMUTIL"; then
7765   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770   IFS=$as_save_IFS
7771   test -z "$as_dir" && as_dir=.
7772     for ac_exec_ext in '' $ac_executable_extensions; do
7773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776     break 2
7777   fi
7778 done
7779   done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7785 if test -n "$DSYMUTIL"; then
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7787 $as_echo "$DSYMUTIL" >&6; }
7788 else
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 fi
7795 if test -z "$ac_cv_prog_DSYMUTIL"; then
7796   ac_ct_DSYMUTIL=$DSYMUTIL
7797   # Extract the first word of "dsymutil", so it can be a program name with args.
7798 set dummy dsymutil; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   if test -n "$ac_ct_DSYMUTIL"; then
7805   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810   IFS=$as_save_IFS
7811   test -z "$as_dir" && as_dir=.
7812     for ac_exec_ext in '' $ac_executable_extensions; do
7813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816     break 2
7817   fi
7818 done
7819   done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7825 if test -n "$ac_ct_DSYMUTIL"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7827 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833   if test "x$ac_ct_DSYMUTIL" = x; then
7834     DSYMUTIL=":"
7835   else
7836     case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842     DSYMUTIL=$ac_ct_DSYMUTIL
7843   fi
7844 else
7845   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7846 fi
7847
7848     if test -n "$ac_tool_prefix"; then
7849   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7850 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_NMEDIT+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   if test -n "$NMEDIT"; then
7857   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864     for ac_exec_ext in '' $ac_executable_extensions; do
7865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871   done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 NMEDIT=$ac_cv_prog_NMEDIT
7877 if test -n "$NMEDIT"; then
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7879 $as_echo "$NMEDIT" >&6; }
7880 else
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886 fi
7887 if test -z "$ac_cv_prog_NMEDIT"; then
7888   ac_ct_NMEDIT=$NMEDIT
7889   # Extract the first word of "nmedit", so it can be a program name with args.
7890 set dummy nmedit; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   if test -n "$ac_ct_NMEDIT"; then
7897   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902   IFS=$as_save_IFS
7903   test -z "$as_dir" && as_dir=.
7904     for ac_exec_ext in '' $ac_executable_extensions; do
7905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908     break 2
7909   fi
7910 done
7911   done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7917 if test -n "$ac_ct_NMEDIT"; then
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7919 $as_echo "$ac_ct_NMEDIT" >&6; }
7920 else
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925   if test "x$ac_ct_NMEDIT" = x; then
7926     NMEDIT=":"
7927   else
7928     case $cross_compiling:$ac_tool_warned in
7929 yes:)
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7933 esac
7934     NMEDIT=$ac_ct_NMEDIT
7935   fi
7936 else
7937   NMEDIT="$ac_cv_prog_NMEDIT"
7938 fi
7939
7940     if test -n "$ac_tool_prefix"; then
7941   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7942 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_LIPO+:} false; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   if test -n "$LIPO"; then
7949   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954   IFS=$as_save_IFS
7955   test -z "$as_dir" && as_dir=.
7956     for ac_exec_ext in '' $ac_executable_extensions; do
7957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960     break 2
7961   fi
7962 done
7963   done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 LIPO=$ac_cv_prog_LIPO
7969 if test -n "$LIPO"; then
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7971 $as_echo "$LIPO" >&6; }
7972 else
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977
7978 fi
7979 if test -z "$ac_cv_prog_LIPO"; then
7980   ac_ct_LIPO=$LIPO
7981   # Extract the first word of "lipo", so it can be a program name with args.
7982 set dummy lipo; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988   if test -n "$ac_ct_LIPO"; then
7989   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994   IFS=$as_save_IFS
7995   test -z "$as_dir" && as_dir=.
7996     for ac_exec_ext in '' $ac_executable_extensions; do
7997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998     ac_cv_prog_ac_ct_LIPO="lipo"
7999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000     break 2
8001   fi
8002 done
8003   done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8009 if test -n "$ac_ct_LIPO"; then
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8011 $as_echo "$ac_ct_LIPO" >&6; }
8012 else
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017   if test "x$ac_ct_LIPO" = x; then
8018     LIPO=":"
8019   else
8020     case $cross_compiling:$ac_tool_warned in
8021 yes:)
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8024 ac_tool_warned=yes ;;
8025 esac
8026     LIPO=$ac_ct_LIPO
8027   fi
8028 else
8029   LIPO="$ac_cv_prog_LIPO"
8030 fi
8031
8032     if test -n "$ac_tool_prefix"; then
8033   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8034 set dummy ${ac_tool_prefix}otool; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_OTOOL+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   if test -n "$OTOOL"; then
8041   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046   IFS=$as_save_IFS
8047   test -z "$as_dir" && as_dir=.
8048     for ac_exec_ext in '' $ac_executable_extensions; do
8049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052     break 2
8053   fi
8054 done
8055   done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 OTOOL=$ac_cv_prog_OTOOL
8061 if test -n "$OTOOL"; then
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8063 $as_echo "$OTOOL" >&6; }
8064 else
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069
8070 fi
8071 if test -z "$ac_cv_prog_OTOOL"; then
8072   ac_ct_OTOOL=$OTOOL
8073   # Extract the first word of "otool", so it can be a program name with args.
8074 set dummy otool; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   if test -n "$ac_ct_OTOOL"; then
8081   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088     for ac_exec_ext in '' $ac_executable_extensions; do
8089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090     ac_cv_prog_ac_ct_OTOOL="otool"
8091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095   done
8096 IFS=$as_save_IFS
8097
8098 fi
8099 fi
8100 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8101 if test -n "$ac_ct_OTOOL"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8103 $as_echo "$ac_ct_OTOOL" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109   if test "x$ac_ct_OTOOL" = x; then
8110     OTOOL=":"
8111   else
8112     case $cross_compiling:$ac_tool_warned in
8113 yes:)
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8116 ac_tool_warned=yes ;;
8117 esac
8118     OTOOL=$ac_ct_OTOOL
8119   fi
8120 else
8121   OTOOL="$ac_cv_prog_OTOOL"
8122 fi
8123
8124     if test -n "$ac_tool_prefix"; then
8125   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8126 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_OTOOL64+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   if test -n "$OTOOL64"; then
8133   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140     for ac_exec_ext in '' $ac_executable_extensions; do
8141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147   done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 OTOOL64=$ac_cv_prog_OTOOL64
8153 if test -n "$OTOOL64"; then
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8155 $as_echo "$OTOOL64" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161
8162 fi
8163 if test -z "$ac_cv_prog_OTOOL64"; then
8164   ac_ct_OTOOL64=$OTOOL64
8165   # Extract the first word of "otool64", so it can be a program name with args.
8166 set dummy otool64; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172   if test -n "$ac_ct_OTOOL64"; then
8173   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180     for ac_exec_ext in '' $ac_executable_extensions; do
8181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182     ac_cv_prog_ac_ct_OTOOL64="otool64"
8183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187   done
8188 IFS=$as_save_IFS
8189
8190 fi
8191 fi
8192 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8193 if test -n "$ac_ct_OTOOL64"; then
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8195 $as_echo "$ac_ct_OTOOL64" >&6; }
8196 else
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201   if test "x$ac_ct_OTOOL64" = x; then
8202     OTOOL64=":"
8203   else
8204     case $cross_compiling:$ac_tool_warned in
8205 yes:)
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8208 ac_tool_warned=yes ;;
8209 esac
8210     OTOOL64=$ac_ct_OTOOL64
8211   fi
8212 else
8213   OTOOL64="$ac_cv_prog_OTOOL64"
8214 fi
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8243 $as_echo_n "checking for -single_module linker flag... " >&6; }
8244 if ${lt_cv_apple_cc_single_mod+:} false; then :
8245   $as_echo_n "(cached) " >&6
8246 else
8247   lt_cv_apple_cc_single_mod=no
8248       if test -z "$LT_MULTI_MODULE"; then
8249         # By default we will add the -single_module flag. You can override
8250         # by either setting the environment variable LT_MULTI_MODULE
8251         # non-empty at configure time, or by adding -multi_module to the
8252         # link flags.
8253         rm -rf libconftest.dylib*
8254         echo "int foo(void){return 1;}" > conftest.c
8255         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8256 -dynamiclib -Wl,-single_module conftest.c" >&5
8257         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8258           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8259         _lt_result=$?
8260         # If there is a non-empty error log, and "single_module"
8261         # appears in it, assume the flag caused a linker warning
8262         if test -s conftest.err && $GREP single_module conftest.err; then
8263           cat conftest.err >&5
8264         # Otherwise, if the output was created with a 0 exit code from
8265         # the compiler, it worked.
8266         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8267           lt_cv_apple_cc_single_mod=yes
8268         else
8269           cat conftest.err >&5
8270         fi
8271         rm -rf libconftest.dylib*
8272         rm -f conftest.*
8273       fi
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8276 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8277
8278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8279 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8280 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8281   $as_echo_n "(cached) " >&6
8282 else
8283   lt_cv_ld_exported_symbols_list=no
8284       save_LDFLAGS=$LDFLAGS
8285       echo "_main" > conftest.sym
8286       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8287       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h.  */
8289
8290 int
8291 main ()
8292 {
8293
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 if ac_fn_c_try_link "$LINENO"; then :
8299   lt_cv_ld_exported_symbols_list=yes
8300 else
8301   lt_cv_ld_exported_symbols_list=no
8302 fi
8303 rm -f core conftest.err conftest.$ac_objext \
8304     conftest$ac_exeext conftest.$ac_ext
8305         LDFLAGS=$save_LDFLAGS
8306
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8309 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8310
8311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8312 $as_echo_n "checking for -force_load linker flag... " >&6; }
8313 if ${lt_cv_ld_force_load+:} false; then :
8314   $as_echo_n "(cached) " >&6
8315 else
8316   lt_cv_ld_force_load=no
8317       cat > conftest.c << _LT_EOF
8318 int forced_loaded() { return 2;}
8319 _LT_EOF
8320       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8321       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8322       echo "$AR cru libconftest.a conftest.o" >&5
8323       $AR cru libconftest.a conftest.o 2>&5
8324       echo "$RANLIB libconftest.a" >&5
8325       $RANLIB libconftest.a 2>&5
8326       cat > conftest.c << _LT_EOF
8327 int main() { return 0;}
8328 _LT_EOF
8329       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8330       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8331       _lt_result=$?
8332       if test -s conftest.err && $GREP force_load conftest.err; then
8333         cat conftest.err >&5
8334       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8335         lt_cv_ld_force_load=yes
8336       else
8337         cat conftest.err >&5
8338       fi
8339         rm -f conftest.err libconftest.a conftest conftest.c
8340         rm -rf conftest.dSYM
8341
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8344 $as_echo "$lt_cv_ld_force_load" >&6; }
8345     case $host_os in
8346     rhapsody* | darwin1.[012])
8347       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8348     darwin1.*)
8349       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8350     darwin*) # darwin 5.x on
8351       # if running on 10.5 or later, the deployment target defaults
8352       # to the OS version, if on x86, and 10.4, the deployment
8353       # target defaults to 10.4. Don't you love it?
8354       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8355         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8356           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8357         10.[012][,.]*)
8358           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8359         10.*)
8360           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8361       esac
8362     ;;
8363   esac
8364     if test yes = "$lt_cv_apple_cc_single_mod"; then
8365       _lt_dar_single_mod='$single_module'
8366     fi
8367     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8368       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8369     else
8370       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8371     fi
8372     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8373       _lt_dsymutil='~$DSYMUTIL $lib || :'
8374     else
8375       _lt_dsymutil=
8376     fi
8377     ;;
8378   esac
8379
8380 # func_munge_path_list VARIABLE PATH
8381 # -----------------------------------
8382 # VARIABLE is name of variable containing _space_ separated list of
8383 # directories to be munged by the contents of PATH, which is string
8384 # having a format:
8385 # "DIR[:DIR]:"
8386 #       string "DIR[ DIR]" will be prepended to VARIABLE
8387 # ":DIR[:DIR]"
8388 #       string "DIR[ DIR]" will be appended to VARIABLE
8389 # "DIRP[:DIRP]::[DIRA:]DIRA"
8390 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8391 #       "DIRA[ DIRA]" will be appended to VARIABLE
8392 # "DIR[:DIR]"
8393 #       VARIABLE will be replaced by "DIR[ DIR]"
8394 func_munge_path_list ()
8395 {
8396     case x$2 in
8397     x)
8398         ;;
8399     *:)
8400         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8401         ;;
8402     x:*)
8403         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8404         ;;
8405     *::*)
8406         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8407         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8408         ;;
8409     *)
8410         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8411         ;;
8412     esac
8413 }
8414
8415 for ac_header in dlfcn.h
8416 do :
8417   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8418 "
8419 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8420   cat >>confdefs.h <<_ACEOF
8421 #define HAVE_DLFCN_H 1
8422 _ACEOF
8423
8424 fi
8425
8426 done
8427
8428
8429
8430
8431
8432 # Set options
8433 # Check whether --enable-static was given.
8434 if test "${enable_static+set}" = set; then :
8435   enableval=$enable_static; p=${PACKAGE-default}
8436     case $enableval in
8437     yes) enable_static=yes ;;
8438     no) enable_static=no ;;
8439     *)
8440      enable_static=no
8441       # Look at the argument we got.  We use all the common list separators.
8442       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8443       for pkg in $enableval; do
8444         IFS=$lt_save_ifs
8445         if test "X$pkg" = "X$p"; then
8446           enable_static=yes
8447         fi
8448       done
8449       IFS=$lt_save_ifs
8450       ;;
8451     esac
8452 else
8453   enable_static=no
8454 fi
8455
8456
8457
8458
8459
8460
8461
8462
8463 # Check whether --with-pic was given.
8464 if test "${with_pic+set}" = set; then :
8465   withval=$with_pic; lt_p=${PACKAGE-default}
8466     case $withval in
8467     yes|no) pic_mode=$withval ;;
8468     *)
8469       pic_mode=default
8470       # Look at the argument we got.  We use all the common list separators.
8471       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8472       for lt_pkg in $withval; do
8473         IFS=$lt_save_ifs
8474         if test "X$lt_pkg" = "X$lt_p"; then
8475           pic_mode=yes
8476         fi
8477       done
8478       IFS=$lt_save_ifs
8479       ;;
8480     esac
8481 else
8482   pic_mode=yes
8483 fi
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493         enable_dlopen=no
8494
8495
8496   enable_win32_dll=no
8497
8498
8499             # Check whether --enable-shared was given.
8500 if test "${enable_shared+set}" = set; then :
8501   enableval=$enable_shared; p=${PACKAGE-default}
8502     case $enableval in
8503     yes) enable_shared=yes ;;
8504     no) enable_shared=no ;;
8505     *)
8506       enable_shared=no
8507       # Look at the argument we got.  We use all the common list separators.
8508       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8509       for pkg in $enableval; do
8510         IFS=$lt_save_ifs
8511         if test "X$pkg" = "X$p"; then
8512           enable_shared=yes
8513         fi
8514       done
8515       IFS=$lt_save_ifs
8516       ;;
8517     esac
8518 else
8519   enable_shared=yes
8520 fi
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532   # Check whether --enable-fast-install was given.
8533 if test "${enable_fast_install+set}" = set; then :
8534   enableval=$enable_fast_install; p=${PACKAGE-default}
8535     case $enableval in
8536     yes) enable_fast_install=yes ;;
8537     no) enable_fast_install=no ;;
8538     *)
8539       enable_fast_install=no
8540       # Look at the argument we got.  We use all the common list separators.
8541       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8542       for pkg in $enableval; do
8543         IFS=$lt_save_ifs
8544         if test "X$pkg" = "X$p"; then
8545           enable_fast_install=yes
8546         fi
8547       done
8548       IFS=$lt_save_ifs
8549       ;;
8550     esac
8551 else
8552   enable_fast_install=yes
8553 fi
8554
8555
8556
8557
8558
8559
8560
8561
8562   shared_archive_member_spec=
8563 case $host,$enable_shared in
8564 power*-*-aix[5-9]*,yes)
8565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8566 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8567
8568 # Check whether --with-aix-soname was given.
8569 if test "${with_aix_soname+set}" = set; then :
8570   withval=$with_aix_soname; case $withval in
8571     aix|svr4|both)
8572       ;;
8573     *)
8574       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8575       ;;
8576     esac
8577     lt_cv_with_aix_soname=$with_aix_soname
8578 else
8579   if ${lt_cv_with_aix_soname+:} false; then :
8580   $as_echo_n "(cached) " >&6
8581 else
8582   lt_cv_with_aix_soname=aix
8583 fi
8584
8585     with_aix_soname=$lt_cv_with_aix_soname
8586 fi
8587
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8589 $as_echo "$with_aix_soname" >&6; }
8590   if test aix != "$with_aix_soname"; then
8591     # For the AIX way of multilib, we name the shared archive member
8592     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8593     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8594     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8595     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8596     if test 64 = "${OBJECT_MODE-32}"; then
8597       shared_archive_member_spec=shr_64
8598     else
8599       shared_archive_member_spec=shr
8600     fi
8601   fi
8602   ;;
8603 *)
8604   with_aix_soname=aix
8605   ;;
8606 esac
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 # This can be used to rebuild libtool when needed
8618 LIBTOOL_DEPS=$ltmain
8619
8620 # Always use our own libtool.
8621 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652 test -z "$LN_S" && LN_S="ln -s"
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667 if test -n "${ZSH_VERSION+set}"; then
8668    setopt NO_GLOB_SUBST
8669 fi
8670
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8672 $as_echo_n "checking for objdir... " >&6; }
8673 if ${lt_cv_objdir+:} false; then :
8674   $as_echo_n "(cached) " >&6
8675 else
8676   rm -f .libs 2>/dev/null
8677 mkdir .libs 2>/dev/null
8678 if test -d .libs; then
8679   lt_cv_objdir=.libs
8680 else
8681   # MS-DOS does not allow filenames that begin with a dot.
8682   lt_cv_objdir=_libs
8683 fi
8684 rmdir .libs 2>/dev/null
8685 fi
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8687 $as_echo "$lt_cv_objdir" >&6; }
8688 objdir=$lt_cv_objdir
8689
8690
8691
8692
8693
8694 cat >>confdefs.h <<_ACEOF
8695 #define LT_OBJDIR "$lt_cv_objdir/"
8696 _ACEOF
8697
8698
8699
8700
8701 case $host_os in
8702 aix3*)
8703   # AIX sometimes has problems with the GCC collect2 program.  For some
8704   # reason, if we set the COLLECT_NAMES environment variable, the problems
8705   # vanish in a puff of smoke.
8706   if test set != "${COLLECT_NAMES+set}"; then
8707     COLLECT_NAMES=
8708     export COLLECT_NAMES
8709   fi
8710   ;;
8711 esac
8712
8713 # Global variables:
8714 ofile=libtool
8715 can_build_shared=yes
8716
8717 # All known linkers require a '.a' archive for static linking (except MSVC,
8718 # which needs '.lib').
8719 libext=a
8720
8721 with_gnu_ld=$lt_cv_prog_gnu_ld
8722
8723 old_CC=$CC
8724 old_CFLAGS=$CFLAGS
8725
8726 # Set sane defaults for various variables
8727 test -z "$CC" && CC=cc
8728 test -z "$LTCC" && LTCC=$CC
8729 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8730 test -z "$LD" && LD=ld
8731 test -z "$ac_objext" && ac_objext=o
8732
8733 func_cc_basename $compiler
8734 cc_basename=$func_cc_basename_result
8735
8736
8737 # Only perform the check for file, if the check method requires it
8738 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8739 case $deplibs_check_method in
8740 file_magic*)
8741   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8743 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8744 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   case $MAGIC_CMD in
8748 [\\/*] |  ?:[\\/]*)
8749   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8750   ;;
8751 *)
8752   lt_save_MAGIC_CMD=$MAGIC_CMD
8753   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8754   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8755   for ac_dir in $ac_dummy; do
8756     IFS=$lt_save_ifs
8757     test -z "$ac_dir" && ac_dir=.
8758     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8759       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8760       if test -n "$file_magic_test_file"; then
8761         case $deplibs_check_method in
8762         "file_magic "*)
8763           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8764           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8765           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8766             $EGREP "$file_magic_regex" > /dev/null; then
8767             :
8768           else
8769             cat <<_LT_EOF 1>&2
8770
8771 *** Warning: the command libtool uses to detect shared libraries,
8772 *** $file_magic_cmd, produces output that libtool cannot recognize.
8773 *** The result is that libtool may fail to recognize shared libraries
8774 *** as such.  This will affect the creation of libtool libraries that
8775 *** depend on shared libraries, but programs linked with such libtool
8776 *** libraries will work regardless of this problem.  Nevertheless, you
8777 *** may want to report the problem to your system manager and/or to
8778 *** bug-libtool@gnu.org
8779
8780 _LT_EOF
8781           fi ;;
8782         esac
8783       fi
8784       break
8785     fi
8786   done
8787   IFS=$lt_save_ifs
8788   MAGIC_CMD=$lt_save_MAGIC_CMD
8789   ;;
8790 esac
8791 fi
8792
8793 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8794 if test -n "$MAGIC_CMD"; then
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8796 $as_echo "$MAGIC_CMD" >&6; }
8797 else
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802
8803
8804
8805
8806 if test -z "$lt_cv_path_MAGIC_CMD"; then
8807   if test -n "$ac_tool_prefix"; then
8808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8809 $as_echo_n "checking for file... " >&6; }
8810 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8811   $as_echo_n "(cached) " >&6
8812 else
8813   case $MAGIC_CMD in
8814 [\\/*] |  ?:[\\/]*)
8815   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8816   ;;
8817 *)
8818   lt_save_MAGIC_CMD=$MAGIC_CMD
8819   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8820   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8821   for ac_dir in $ac_dummy; do
8822     IFS=$lt_save_ifs
8823     test -z "$ac_dir" && ac_dir=.
8824     if test -f "$ac_dir/file"; then
8825       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8826       if test -n "$file_magic_test_file"; then
8827         case $deplibs_check_method in
8828         "file_magic "*)
8829           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8830           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8831           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8832             $EGREP "$file_magic_regex" > /dev/null; then
8833             :
8834           else
8835             cat <<_LT_EOF 1>&2
8836
8837 *** Warning: the command libtool uses to detect shared libraries,
8838 *** $file_magic_cmd, produces output that libtool cannot recognize.
8839 *** The result is that libtool may fail to recognize shared libraries
8840 *** as such.  This will affect the creation of libtool libraries that
8841 *** depend on shared libraries, but programs linked with such libtool
8842 *** libraries will work regardless of this problem.  Nevertheless, you
8843 *** may want to report the problem to your system manager and/or to
8844 *** bug-libtool@gnu.org
8845
8846 _LT_EOF
8847           fi ;;
8848         esac
8849       fi
8850       break
8851     fi
8852   done
8853   IFS=$lt_save_ifs
8854   MAGIC_CMD=$lt_save_MAGIC_CMD
8855   ;;
8856 esac
8857 fi
8858
8859 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8860 if test -n "$MAGIC_CMD"; then
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8862 $as_echo "$MAGIC_CMD" >&6; }
8863 else
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868
8869   else
8870     MAGIC_CMD=:
8871   fi
8872 fi
8873
8874   fi
8875   ;;
8876 esac
8877
8878 # Use C for the default configuration in the libtool script
8879
8880 lt_save_CC=$CC
8881 ac_ext=c
8882 ac_cpp='$CPP $CPPFLAGS'
8883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8886
8887
8888 # Source file extension for C test sources.
8889 ac_ext=c
8890
8891 # Object file extension for compiled C test sources.
8892 objext=o
8893 objext=$objext
8894
8895 # Code to be used in simple compile tests
8896 lt_simple_compile_test_code="int some_variable = 0;"
8897
8898 # Code to be used in simple link tests
8899 lt_simple_link_test_code='int main(){return(0);}'
8900
8901
8902
8903
8904
8905
8906
8907 # If no C compiler was specified, use CC.
8908 LTCC=${LTCC-"$CC"}
8909
8910 # If no C compiler flags were specified, use CFLAGS.
8911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8912
8913 # Allow CC to be a program name with arguments.
8914 compiler=$CC
8915
8916 # Save the default compiler, since it gets overwritten when the other
8917 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8918 compiler_DEFAULT=$CC
8919
8920 # save warnings/boilerplate of simple test code
8921 ac_outfile=conftest.$ac_objext
8922 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8924 _lt_compiler_boilerplate=`cat conftest.err`
8925 $RM conftest*
8926
8927 ac_outfile=conftest.$ac_objext
8928 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8930 _lt_linker_boilerplate=`cat conftest.err`
8931 $RM -r conftest*
8932
8933
8934 ## CAVEAT EMPTOR:
8935 ## There is no encapsulation within the following macros, do not change
8936 ## the running order or otherwise move them around unless you know exactly
8937 ## what you are doing...
8938 if test -n "$compiler"; then
8939
8940 lt_prog_compiler_no_builtin_flag=
8941
8942 if test yes = "$GCC"; then
8943   case $cc_basename in
8944   nvcc*)
8945     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8946   *)
8947     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8948   esac
8949
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8951 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8952 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8953   $as_echo_n "(cached) " >&6
8954 else
8955   lt_cv_prog_compiler_rtti_exceptions=no
8956    ac_outfile=conftest.$ac_objext
8957    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8958    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8959    # Insert the option either (1) after the last *FLAGS variable, or
8960    # (2) before a word containing "conftest.", or (3) at the end.
8961    # Note that $ac_compile itself does not contain backslashes and begins
8962    # with a dollar sign (not a hyphen), so the echo should work correctly.
8963    # The option is referenced via a variable to avoid confusing sed.
8964    lt_compile=`echo "$ac_compile" | $SED \
8965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8967    -e 's:$: $lt_compiler_flag:'`
8968    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8969    (eval "$lt_compile" 2>conftest.err)
8970    ac_status=$?
8971    cat conftest.err >&5
8972    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973    if (exit $ac_status) && test -s "$ac_outfile"; then
8974      # The compiler can only warn and ignore the option if not recognized
8975      # So say no if there are warnings other than the usual output.
8976      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8977      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8978      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8979        lt_cv_prog_compiler_rtti_exceptions=yes
8980      fi
8981    fi
8982    $RM conftest*
8983
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8986 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8987
8988 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8989     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8990 else
8991     :
8992 fi
8993
8994 fi
8995
8996
8997
8998
8999
9000
9001   lt_prog_compiler_wl=
9002 lt_prog_compiler_pic=
9003 lt_prog_compiler_static=
9004
9005
9006   if test yes = "$GCC"; then
9007     lt_prog_compiler_wl='-Wl,'
9008     lt_prog_compiler_static='-static'
9009
9010     case $host_os in
9011       aix*)
9012       # All AIX code is PIC.
9013       if test ia64 = "$host_cpu"; then
9014         # AIX 5 now supports IA64 processor
9015         lt_prog_compiler_static='-Bstatic'
9016       fi
9017       lt_prog_compiler_pic='-fPIC'
9018       ;;
9019
9020     amigaos*)
9021       case $host_cpu in
9022       powerpc)
9023             # see comment about AmigaOS4 .so support
9024             lt_prog_compiler_pic='-fPIC'
9025         ;;
9026       m68k)
9027             # FIXME: we need at least 68020 code to build shared libraries, but
9028             # adding the '-m68020' flag to GCC prevents building anything better,
9029             # like '-m68040'.
9030             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9031         ;;
9032       esac
9033       ;;
9034
9035     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9036       # PIC is the default for these OSes.
9037       ;;
9038
9039     mingw* | cygwin* | pw32* | os2* | cegcc*)
9040       # This hack is so that the source file can tell whether it is being
9041       # built for inclusion in a dll (and should export symbols for example).
9042       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9043       # (--disable-auto-import) libraries
9044       lt_prog_compiler_pic='-DDLL_EXPORT'
9045       case $host_os in
9046       os2*)
9047         lt_prog_compiler_static='$wl-static'
9048         ;;
9049       esac
9050       ;;
9051
9052     darwin* | rhapsody*)
9053       # PIC is the default on this platform
9054       # Common symbols not allowed in MH_DYLIB files
9055       lt_prog_compiler_pic='-fno-common'
9056       ;;
9057
9058     haiku*)
9059       # PIC is the default for Haiku.
9060       # The "-static" flag exists, but is broken.
9061       lt_prog_compiler_static=
9062       ;;
9063
9064     hpux*)
9065       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9066       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9067       # sets the default TLS model and affects inlining.
9068       case $host_cpu in
9069       hppa*64*)
9070         # +Z the default
9071         ;;
9072       *)
9073         lt_prog_compiler_pic='-fPIC'
9074         ;;
9075       esac
9076       ;;
9077
9078     interix[3-9]*)
9079       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9080       # Instead, we relocate shared libraries at runtime.
9081       ;;
9082
9083     msdosdjgpp*)
9084       # Just because we use GCC doesn't mean we suddenly get shared libraries
9085       # on systems that don't support them.
9086       lt_prog_compiler_can_build_shared=no
9087       enable_shared=no
9088       ;;
9089
9090     *nto* | *qnx*)
9091       # QNX uses GNU C++, but need to define -shared option too, otherwise
9092       # it will coredump.
9093       lt_prog_compiler_pic='-fPIC -shared'
9094       ;;
9095
9096     sysv4*MP*)
9097       if test -d /usr/nec; then
9098         lt_prog_compiler_pic=-Kconform_pic
9099       fi
9100       ;;
9101
9102     *)
9103       lt_prog_compiler_pic='-fPIC'
9104       ;;
9105     esac
9106
9107     case $cc_basename in
9108     nvcc*) # Cuda Compiler Driver 2.2
9109       lt_prog_compiler_wl='-Xlinker '
9110       if test -n "$lt_prog_compiler_pic"; then
9111         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9112       fi
9113       ;;
9114     esac
9115   else
9116     # PORTME Check for flag to pass linker flags through the system compiler.
9117     case $host_os in
9118     aix*)
9119       lt_prog_compiler_wl='-Wl,'
9120       if test ia64 = "$host_cpu"; then
9121         # AIX 5 now supports IA64 processor
9122         lt_prog_compiler_static='-Bstatic'
9123       else
9124         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9125       fi
9126       ;;
9127
9128     darwin* | rhapsody*)
9129       # PIC is the default on this platform
9130       # Common symbols not allowed in MH_DYLIB files
9131       lt_prog_compiler_pic='-fno-common'
9132       case $cc_basename in
9133       nagfor*)
9134         # NAG Fortran compiler
9135         lt_prog_compiler_wl='-Wl,-Wl,,'
9136         lt_prog_compiler_pic='-PIC'
9137         lt_prog_compiler_static='-Bstatic'
9138         ;;
9139       esac
9140       ;;
9141
9142     mingw* | cygwin* | pw32* | os2* | cegcc*)
9143       # This hack is so that the source file can tell whether it is being
9144       # built for inclusion in a dll (and should export symbols for example).
9145       lt_prog_compiler_pic='-DDLL_EXPORT'
9146       case $host_os in
9147       os2*)
9148         lt_prog_compiler_static='$wl-static'
9149         ;;
9150       esac
9151       ;;
9152
9153     hpux9* | hpux10* | hpux11*)
9154       lt_prog_compiler_wl='-Wl,'
9155       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9156       # not for PA HP-UX.
9157       case $host_cpu in
9158       hppa*64*|ia64*)
9159         # +Z the default
9160         ;;
9161       *)
9162         lt_prog_compiler_pic='+Z'
9163         ;;
9164       esac
9165       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9166       lt_prog_compiler_static='$wl-a ${wl}archive'
9167       ;;
9168
9169     irix5* | irix6* | nonstopux*)
9170       lt_prog_compiler_wl='-Wl,'
9171       # PIC (with -KPIC) is the default.
9172       lt_prog_compiler_static='-non_shared'
9173       ;;
9174
9175     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9176       case $cc_basename in
9177       # old Intel for x86_64, which still supported -KPIC.
9178       ecc*)
9179         lt_prog_compiler_wl='-Wl,'
9180         lt_prog_compiler_pic='-KPIC'
9181         lt_prog_compiler_static='-static'
9182         ;;
9183       # icc used to be incompatible with GCC.
9184       # ICC 10 doesn't accept -KPIC any more.
9185       icc* | ifort*)
9186         lt_prog_compiler_wl='-Wl,'
9187         lt_prog_compiler_pic='-fPIC'
9188         lt_prog_compiler_static='-static'
9189         ;;
9190       # Lahey Fortran 8.1.
9191       lf95*)
9192         lt_prog_compiler_wl='-Wl,'
9193         lt_prog_compiler_pic='--shared'
9194         lt_prog_compiler_static='--static'
9195         ;;
9196       nagfor*)
9197         # NAG Fortran compiler
9198         lt_prog_compiler_wl='-Wl,-Wl,,'
9199         lt_prog_compiler_pic='-PIC'
9200         lt_prog_compiler_static='-Bstatic'
9201         ;;
9202       tcc*)
9203         # Fabrice Bellard et al's Tiny C Compiler
9204         lt_prog_compiler_wl='-Wl,'
9205         lt_prog_compiler_pic='-fPIC'
9206         lt_prog_compiler_static='-static'
9207         ;;
9208       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9209         # Portland Group compilers (*not* the Pentium gcc compiler,
9210         # which looks to be a dead project)
9211         lt_prog_compiler_wl='-Wl,'
9212         lt_prog_compiler_pic='-fpic'
9213         lt_prog_compiler_static='-Bstatic'
9214         ;;
9215       ccc*)
9216         lt_prog_compiler_wl='-Wl,'
9217         # All Alpha code is PIC.
9218         lt_prog_compiler_static='-non_shared'
9219         ;;
9220       xl* | bgxl* | bgf* | mpixl*)
9221         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9222         lt_prog_compiler_wl='-Wl,'
9223         lt_prog_compiler_pic='-qpic'
9224         lt_prog_compiler_static='-qstaticlink'
9225         ;;
9226       *)
9227         case `$CC -V 2>&1 | sed 5q` in
9228         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9229           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9230           lt_prog_compiler_pic='-KPIC'
9231           lt_prog_compiler_static='-Bstatic'
9232           lt_prog_compiler_wl=''
9233           ;;
9234         *Sun\ F* | *Sun*Fortran*)
9235           lt_prog_compiler_pic='-KPIC'
9236           lt_prog_compiler_static='-Bstatic'
9237           lt_prog_compiler_wl='-Qoption ld '
9238           ;;
9239         *Sun\ C*)
9240           # Sun C 5.9
9241           lt_prog_compiler_pic='-KPIC'
9242           lt_prog_compiler_static='-Bstatic'
9243           lt_prog_compiler_wl='-Wl,'
9244           ;;
9245         *Intel*\ [CF]*Compiler*)
9246           lt_prog_compiler_wl='-Wl,'
9247           lt_prog_compiler_pic='-fPIC'
9248           lt_prog_compiler_static='-static'
9249           ;;
9250         *Portland\ Group*)
9251           lt_prog_compiler_wl='-Wl,'
9252           lt_prog_compiler_pic='-fpic'
9253           lt_prog_compiler_static='-Bstatic'
9254           ;;
9255         esac
9256         ;;
9257       esac
9258       ;;
9259
9260     newsos6)
9261       lt_prog_compiler_pic='-KPIC'
9262       lt_prog_compiler_static='-Bstatic'
9263       ;;
9264
9265     *nto* | *qnx*)
9266       # QNX uses GNU C++, but need to define -shared option too, otherwise
9267       # it will coredump.
9268       lt_prog_compiler_pic='-fPIC -shared'
9269       ;;
9270
9271     osf3* | osf4* | osf5*)
9272       lt_prog_compiler_wl='-Wl,'
9273       # All OSF/1 code is PIC.
9274       lt_prog_compiler_static='-non_shared'
9275       ;;
9276
9277     rdos*)
9278       lt_prog_compiler_static='-non_shared'
9279       ;;
9280
9281     solaris*)
9282       lt_prog_compiler_pic='-KPIC'
9283       lt_prog_compiler_static='-Bstatic'
9284       case $cc_basename in
9285       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9286         lt_prog_compiler_wl='-Qoption ld ';;
9287       *)
9288         lt_prog_compiler_wl='-Wl,';;
9289       esac
9290       ;;
9291
9292     sunos4*)
9293       lt_prog_compiler_wl='-Qoption ld '
9294       lt_prog_compiler_pic='-PIC'
9295       lt_prog_compiler_static='-Bstatic'
9296       ;;
9297
9298     sysv4 | sysv4.2uw2* | sysv4.3*)
9299       lt_prog_compiler_wl='-Wl,'
9300       lt_prog_compiler_pic='-KPIC'
9301       lt_prog_compiler_static='-Bstatic'
9302       ;;
9303
9304     sysv4*MP*)
9305       if test -d /usr/nec; then
9306         lt_prog_compiler_pic='-Kconform_pic'
9307         lt_prog_compiler_static='-Bstatic'
9308       fi
9309       ;;
9310
9311     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9312       lt_prog_compiler_wl='-Wl,'
9313       lt_prog_compiler_pic='-KPIC'
9314       lt_prog_compiler_static='-Bstatic'
9315       ;;
9316
9317     unicos*)
9318       lt_prog_compiler_wl='-Wl,'
9319       lt_prog_compiler_can_build_shared=no
9320       ;;
9321
9322     uts4*)
9323       lt_prog_compiler_pic='-pic'
9324       lt_prog_compiler_static='-Bstatic'
9325       ;;
9326
9327     *)
9328       lt_prog_compiler_can_build_shared=no
9329       ;;
9330     esac
9331   fi
9332
9333 case $host_os in
9334   # For platforms that do not support PIC, -DPIC is meaningless:
9335   *djgpp*)
9336     lt_prog_compiler_pic=
9337     ;;
9338   *)
9339     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9340     ;;
9341 esac
9342
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9344 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9345 if ${lt_cv_prog_compiler_pic+:} false; then :
9346   $as_echo_n "(cached) " >&6
9347 else
9348   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9351 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9352 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9353
9354 #
9355 # Check to make sure the PIC flag actually works.
9356 #
9357 if test -n "$lt_prog_compiler_pic"; then
9358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9359 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9360 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9361   $as_echo_n "(cached) " >&6
9362 else
9363   lt_cv_prog_compiler_pic_works=no
9364    ac_outfile=conftest.$ac_objext
9365    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9367    # Insert the option either (1) after the last *FLAGS variable, or
9368    # (2) before a word containing "conftest.", or (3) at the end.
9369    # Note that $ac_compile itself does not contain backslashes and begins
9370    # with a dollar sign (not a hyphen), so the echo should work correctly.
9371    # The option is referenced via a variable to avoid confusing sed.
9372    lt_compile=`echo "$ac_compile" | $SED \
9373    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375    -e 's:$: $lt_compiler_flag:'`
9376    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9377    (eval "$lt_compile" 2>conftest.err)
9378    ac_status=$?
9379    cat conftest.err >&5
9380    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381    if (exit $ac_status) && test -s "$ac_outfile"; then
9382      # The compiler can only warn and ignore the option if not recognized
9383      # So say no if there are warnings other than the usual output.
9384      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9385      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9387        lt_cv_prog_compiler_pic_works=yes
9388      fi
9389    fi
9390    $RM conftest*
9391
9392 fi
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9394 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9395
9396 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9397     case $lt_prog_compiler_pic in
9398      "" | " "*) ;;
9399      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9400      esac
9401 else
9402     lt_prog_compiler_pic=
9403      lt_prog_compiler_can_build_shared=no
9404 fi
9405
9406 fi
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418 #
9419 # Check to make sure the static flag actually works.
9420 #
9421 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9423 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9424 if ${lt_cv_prog_compiler_static_works+:} false; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   lt_cv_prog_compiler_static_works=no
9428    save_LDFLAGS=$LDFLAGS
9429    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9430    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9431    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9432      # The linker can only warn and ignore the option if not recognized
9433      # So say no if there are warnings
9434      if test -s conftest.err; then
9435        # Append any errors to the config.log.
9436        cat conftest.err 1>&5
9437        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9438        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9439        if diff conftest.exp conftest.er2 >/dev/null; then
9440          lt_cv_prog_compiler_static_works=yes
9441        fi
9442      else
9443        lt_cv_prog_compiler_static_works=yes
9444      fi
9445    fi
9446    $RM -r conftest*
9447    LDFLAGS=$save_LDFLAGS
9448
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9451 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9452
9453 if test yes = "$lt_cv_prog_compiler_static_works"; then
9454     :
9455 else
9456     lt_prog_compiler_static=
9457 fi
9458
9459
9460
9461
9462
9463
9464
9465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9467 if ${lt_cv_prog_compiler_c_o+:} false; then :
9468   $as_echo_n "(cached) " >&6
9469 else
9470   lt_cv_prog_compiler_c_o=no
9471    $RM -r conftest 2>/dev/null
9472    mkdir conftest
9473    cd conftest
9474    mkdir out
9475    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9476
9477    lt_compiler_flag="-o out/conftest2.$ac_objext"
9478    # Insert the option either (1) after the last *FLAGS variable, or
9479    # (2) before a word containing "conftest.", or (3) at the end.
9480    # Note that $ac_compile itself does not contain backslashes and begins
9481    # with a dollar sign (not a hyphen), so the echo should work correctly.
9482    lt_compile=`echo "$ac_compile" | $SED \
9483    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9485    -e 's:$: $lt_compiler_flag:'`
9486    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9487    (eval "$lt_compile" 2>out/conftest.err)
9488    ac_status=$?
9489    cat out/conftest.err >&5
9490    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9492    then
9493      # The compiler can only warn and ignore the option if not recognized
9494      # So say no if there are warnings
9495      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9496      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9497      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9498        lt_cv_prog_compiler_c_o=yes
9499      fi
9500    fi
9501    chmod u+w . 2>&5
9502    $RM conftest*
9503    # SGI C++ compiler will create directory out/ii_files/ for
9504    # template instantiation
9505    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9506    $RM out/* && rmdir out
9507    cd ..
9508    $RM -r conftest
9509    $RM conftest*
9510
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9514
9515
9516
9517
9518
9519
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9522 if ${lt_cv_prog_compiler_c_o+:} false; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525   lt_cv_prog_compiler_c_o=no
9526    $RM -r conftest 2>/dev/null
9527    mkdir conftest
9528    cd conftest
9529    mkdir out
9530    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531
9532    lt_compiler_flag="-o out/conftest2.$ac_objext"
9533    # Insert the option either (1) after the last *FLAGS variable, or
9534    # (2) before a word containing "conftest.", or (3) at the end.
9535    # Note that $ac_compile itself does not contain backslashes and begins
9536    # with a dollar sign (not a hyphen), so the echo should work correctly.
9537    lt_compile=`echo "$ac_compile" | $SED \
9538    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540    -e 's:$: $lt_compiler_flag:'`
9541    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9542    (eval "$lt_compile" 2>out/conftest.err)
9543    ac_status=$?
9544    cat out/conftest.err >&5
9545    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9547    then
9548      # The compiler can only warn and ignore the option if not recognized
9549      # So say no if there are warnings
9550      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9551      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9552      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9553        lt_cv_prog_compiler_c_o=yes
9554      fi
9555    fi
9556    chmod u+w . 2>&5
9557    $RM conftest*
9558    # SGI C++ compiler will create directory out/ii_files/ for
9559    # template instantiation
9560    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9561    $RM out/* && rmdir out
9562    cd ..
9563    $RM -r conftest
9564    $RM conftest*
9565
9566 fi
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9568 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9569
9570
9571
9572
9573 hard_links=nottested
9574 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9575   # do not overwrite the value of need_locks provided by the user
9576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9577 $as_echo_n "checking if we can lock with hard links... " >&6; }
9578   hard_links=yes
9579   $RM conftest*
9580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9581   touch conftest.a
9582   ln conftest.a conftest.b 2>&5 || hard_links=no
9583   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9585 $as_echo "$hard_links" >&6; }
9586   if test no = "$hard_links"; then
9587     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9588 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9589     need_locks=warn
9590   fi
9591 else
9592   need_locks=no
9593 fi
9594
9595
9596
9597
9598
9599
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9601 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9602
9603   runpath_var=
9604   allow_undefined_flag=
9605   always_export_symbols=no
9606   archive_cmds=
9607   archive_expsym_cmds=
9608   compiler_needs_object=no
9609   enable_shared_with_static_runtimes=no
9610   export_dynamic_flag_spec=
9611   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9612   hardcode_automatic=no
9613   hardcode_direct=no
9614   hardcode_direct_absolute=no
9615   hardcode_libdir_flag_spec=
9616   hardcode_libdir_separator=
9617   hardcode_minus_L=no
9618   hardcode_shlibpath_var=unsupported
9619   inherit_rpath=no
9620   link_all_deplibs=unknown
9621   module_cmds=
9622   module_expsym_cmds=
9623   old_archive_from_new_cmds=
9624   old_archive_from_expsyms_cmds=
9625   thread_safe_flag_spec=
9626   whole_archive_flag_spec=
9627   # include_expsyms should be a list of space-separated symbols to be *always*
9628   # included in the symbol list
9629   include_expsyms=
9630   # exclude_expsyms can be an extended regexp of symbols to exclude
9631   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9632   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9633   # as well as any symbol that contains 'd'.
9634   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9635   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9636   # platforms (ab)use it in PIC code, but their linkers get confused if
9637   # the symbol is explicitly referenced.  Since portable code cannot
9638   # rely on this symbol name, it's probably fine to never include it in
9639   # preloaded symbol tables.
9640   # Exclude shared library initialization/finalization symbols.
9641   extract_expsyms_cmds=
9642
9643   case $host_os in
9644   cygwin* | mingw* | pw32* | cegcc*)
9645     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9646     # When not using gcc, we currently assume that we are using
9647     # Microsoft Visual C++.
9648     if test yes != "$GCC"; then
9649       with_gnu_ld=no
9650     fi
9651     ;;
9652   interix*)
9653     # we just hope/assume this is gcc and not c89 (= MSVC++)
9654     with_gnu_ld=yes
9655     ;;
9656   openbsd* | bitrig*)
9657     with_gnu_ld=no
9658     ;;
9659   esac
9660
9661   ld_shlibs=yes
9662
9663   # On some targets, GNU ld is compatible enough with the native linker
9664   # that we're better off using the native interface for both.
9665   lt_use_gnu_ld_interface=no
9666   if test yes = "$with_gnu_ld"; then
9667     case $host_os in
9668       aix*)
9669         # The AIX port of GNU ld has always aspired to compatibility
9670         # with the native linker.  However, as the warning in the GNU ld
9671         # block says, versions before 2.19.5* couldn't really create working
9672         # shared libraries, regardless of the interface used.
9673         case `$LD -v 2>&1` in
9674           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9675           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9676           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9677           *)
9678             lt_use_gnu_ld_interface=yes
9679             ;;
9680         esac
9681         ;;
9682       *)
9683         lt_use_gnu_ld_interface=yes
9684         ;;
9685     esac
9686   fi
9687
9688   if test yes = "$lt_use_gnu_ld_interface"; then
9689     # If archive_cmds runs LD, not CC, wlarc should be empty
9690     wlarc='$wl'
9691
9692     # Set some defaults for GNU ld with shared library support. These
9693     # are reset later if shared libraries are not supported. Putting them
9694     # here allows them to be overridden if necessary.
9695     runpath_var=LD_RUN_PATH
9696     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9697     export_dynamic_flag_spec='$wl--export-dynamic'
9698     # ancient GNU ld didn't support --whole-archive et. al.
9699     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9700       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9701     else
9702       whole_archive_flag_spec=
9703     fi
9704     supports_anon_versioning=no
9705     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9706       *GNU\ gold*) supports_anon_versioning=yes ;;
9707       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9708       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9709       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9710       *\ 2.11.*) ;; # other 2.11 versions
9711       *) supports_anon_versioning=yes ;;
9712     esac
9713
9714     # See if GNU ld supports shared libraries.
9715     case $host_os in
9716     aix[3-9]*)
9717       # On AIX/PPC, the GNU linker is very broken
9718       if test ia64 != "$host_cpu"; then
9719         ld_shlibs=no
9720         cat <<_LT_EOF 1>&2
9721
9722 *** Warning: the GNU linker, at least up to release 2.19, is reported
9723 *** to be unable to reliably create shared libraries on AIX.
9724 *** Therefore, libtool is disabling shared libraries support.  If you
9725 *** really care for shared libraries, you may want to install binutils
9726 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9727 *** You will then need to restart the configuration process.
9728
9729 _LT_EOF
9730       fi
9731       ;;
9732
9733     amigaos*)
9734       case $host_cpu in
9735       powerpc)
9736             # see comment about AmigaOS4 .so support
9737             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9738             archive_expsym_cmds=''
9739         ;;
9740       m68k)
9741             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)'
9742             hardcode_libdir_flag_spec='-L$libdir'
9743             hardcode_minus_L=yes
9744         ;;
9745       esac
9746       ;;
9747
9748     beos*)
9749       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9750         allow_undefined_flag=unsupported
9751         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9752         # support --undefined.  This deserves some investigation.  FIXME
9753         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9754       else
9755         ld_shlibs=no
9756       fi
9757       ;;
9758
9759     cygwin* | mingw* | pw32* | cegcc*)
9760       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9761       # as there is no search path for DLLs.
9762       hardcode_libdir_flag_spec='-L$libdir'
9763       export_dynamic_flag_spec='$wl--export-all-symbols'
9764       allow_undefined_flag=unsupported
9765       always_export_symbols=no
9766       enable_shared_with_static_runtimes=yes
9767       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9768       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9769
9770       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9771         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9772         # If the export-symbols file already is a .def file, use it as
9773         # is; otherwise, prepend EXPORTS...
9774         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9775           cp $export_symbols $output_objdir/$soname.def;
9776         else
9777           echo EXPORTS > $output_objdir/$soname.def;
9778           cat $export_symbols >> $output_objdir/$soname.def;
9779         fi~
9780         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9781       else
9782         ld_shlibs=no
9783       fi
9784       ;;
9785
9786     haiku*)
9787       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9788       link_all_deplibs=yes
9789       ;;
9790
9791     os2*)
9792       hardcode_libdir_flag_spec='-L$libdir'
9793       hardcode_minus_L=yes
9794       allow_undefined_flag=unsupported
9795       shrext_cmds=.dll
9796       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9797         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9798         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9799         $ECHO EXPORTS >> $output_objdir/$libname.def~
9800         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9801         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9802         emximp -o $lib $output_objdir/$libname.def'
9803       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9804         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9805         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9806         $ECHO EXPORTS >> $output_objdir/$libname.def~
9807         prefix_cmds="$SED"~
9808         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9809           prefix_cmds="$prefix_cmds -e 1d";
9810         fi~
9811         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9812         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9813         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9814         emximp -o $lib $output_objdir/$libname.def'
9815       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9816       enable_shared_with_static_runtimes=yes
9817       ;;
9818
9819     interix[3-9]*)
9820       hardcode_direct=no
9821       hardcode_shlibpath_var=no
9822       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9823       export_dynamic_flag_spec='$wl-E'
9824       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9825       # Instead, shared libraries are loaded at an image base (0x10000000 by
9826       # default) and relocated if they conflict, which is a slow very memory
9827       # consuming and fragmenting process.  To avoid this, we pick a random,
9828       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9829       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9830       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9831       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'
9832       ;;
9833
9834     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9835       tmp_diet=no
9836       if test linux-dietlibc = "$host_os"; then
9837         case $cc_basename in
9838           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9839         esac
9840       fi
9841       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9842          && test no = "$tmp_diet"
9843       then
9844         tmp_addflag=' $pic_flag'
9845         tmp_sharedflag='-shared'
9846         case $cc_basename,$host_cpu in
9847         pgcc*)                          # Portland Group C compiler
9848           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9849           tmp_addflag=' $pic_flag'
9850           ;;
9851         pgf77* | pgf90* | pgf95* | pgfortran*)
9852                                         # Portland Group f77 and f90 compilers
9853           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9854           tmp_addflag=' $pic_flag -Mnomain' ;;
9855         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9856           tmp_addflag=' -i_dynamic' ;;
9857         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9858           tmp_addflag=' -i_dynamic -nofor_main' ;;
9859         ifc* | ifort*)                  # Intel Fortran compiler
9860           tmp_addflag=' -nofor_main' ;;
9861         lf95*)                          # Lahey Fortran 8.1
9862           whole_archive_flag_spec=
9863           tmp_sharedflag='--shared' ;;
9864         nagfor*)                        # NAGFOR 5.3
9865           tmp_sharedflag='-Wl,-shared' ;;
9866         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9867           tmp_sharedflag='-qmkshrobj'
9868           tmp_addflag= ;;
9869         nvcc*)  # Cuda Compiler Driver 2.2
9870           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9871           compiler_needs_object=yes
9872           ;;
9873         esac
9874         case `$CC -V 2>&1 | sed 5q` in
9875         *Sun\ C*)                       # Sun C 5.9
9876           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9877           compiler_needs_object=yes
9878           tmp_sharedflag='-G' ;;
9879         *Sun\ F*)                       # Sun Fortran 8.3
9880           tmp_sharedflag='-G' ;;
9881         esac
9882         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9883
9884         if test yes = "$supports_anon_versioning"; then
9885           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9886             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9887             echo "local: *; };" >> $output_objdir/$libname.ver~
9888             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9889         fi
9890
9891         case $cc_basename in
9892         tcc*)
9893           export_dynamic_flag_spec='-rdynamic'
9894           ;;
9895         xlf* | bgf* | bgxlf* | mpixlf*)
9896           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9897           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9898           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9899           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9900           if test yes = "$supports_anon_versioning"; then
9901             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9902               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9903               echo "local: *; };" >> $output_objdir/$libname.ver~
9904               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9905           fi
9906           ;;
9907         esac
9908       else
9909         ld_shlibs=no
9910       fi
9911       ;;
9912
9913     netbsd*)
9914       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9915         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9916         wlarc=
9917       else
9918         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9920       fi
9921       ;;
9922
9923     solaris*)
9924       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9925         ld_shlibs=no
9926         cat <<_LT_EOF 1>&2
9927
9928 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9929 *** create shared libraries on Solaris systems.  Therefore, libtool
9930 *** is disabling shared libraries support.  We urge you to upgrade GNU
9931 *** binutils to release 2.9.1 or newer.  Another option is to modify
9932 *** your PATH or compiler configuration so that the native linker is
9933 *** used, and then restart.
9934
9935 _LT_EOF
9936       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9937         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9938         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9939       else
9940         ld_shlibs=no
9941       fi
9942       ;;
9943
9944     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9945       case `$LD -v 2>&1` in
9946         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9947         ld_shlibs=no
9948         cat <<_LT_EOF 1>&2
9949
9950 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9951 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9952 *** is disabling shared libraries support.  We urge you to upgrade GNU
9953 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9954 *** your PATH or compiler configuration so that the native linker is
9955 *** used, and then restart.
9956
9957 _LT_EOF
9958         ;;
9959         *)
9960           # For security reasons, it is highly recommended that you always
9961           # use absolute paths for naming shared libraries, and exclude the
9962           # DT_RUNPATH tag from executables and libraries.  But doing so
9963           # requires that you compile everything twice, which is a pain.
9964           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9965             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9966             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9967             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9968           else
9969             ld_shlibs=no
9970           fi
9971         ;;
9972       esac
9973       ;;
9974
9975     sunos4*)
9976       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9977       wlarc=
9978       hardcode_direct=yes
9979       hardcode_shlibpath_var=no
9980       ;;
9981
9982     *)
9983       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9984         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9985         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9986       else
9987         ld_shlibs=no
9988       fi
9989       ;;
9990     esac
9991
9992     if test no = "$ld_shlibs"; then
9993       runpath_var=
9994       hardcode_libdir_flag_spec=
9995       export_dynamic_flag_spec=
9996       whole_archive_flag_spec=
9997     fi
9998   else
9999     # PORTME fill in a description of your system's linker (not GNU ld)
10000     case $host_os in
10001     aix3*)
10002       allow_undefined_flag=unsupported
10003       always_export_symbols=yes
10004       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'
10005       # Note: this linker hardcodes the directories in LIBPATH if there
10006       # are no directories specified by -L.
10007       hardcode_minus_L=yes
10008       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10009         # Neither direct hardcoding nor static linking is supported with a
10010         # broken collect2.
10011         hardcode_direct=unsupported
10012       fi
10013       ;;
10014
10015     aix[4-9]*)
10016       if test ia64 = "$host_cpu"; then
10017         # On IA64, the linker does run time linking by default, so we don't
10018         # have to do anything special.
10019         aix_use_runtimelinking=no
10020         exp_sym_flag='-Bexport'
10021         no_entry_flag=
10022       else
10023         # If we're using GNU nm, then we don't want the "-C" option.
10024         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10025         # Without the "-l" option, or with the "-B" option, AIX nm treats
10026         # weak defined symbols like other global defined symbols, whereas
10027         # GNU nm marks them as "W".
10028         # While the 'weak' keyword is ignored in the Export File, we need
10029         # it in the Import File for the 'aix-soname' feature, so we have
10030         # to replace the "-B" option with "-P" for AIX nm.
10031         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10032           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10033         else
10034           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10035         fi
10036         aix_use_runtimelinking=no
10037
10038         # Test if we are trying to use run time linking or normal
10039         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10040         # have runtime linking enabled, and use it for executables.
10041         # For shared libraries, we enable/disable runtime linking
10042         # depending on the kind of the shared library created -
10043         # when "with_aix_soname,aix_use_runtimelinking" is:
10044         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10045         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10046         #            lib.a           static archive
10047         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10048         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10049         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10050         #            lib.a(lib.so.V) shared, rtl:no
10051         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10052         #            lib.a           static archive
10053         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10054           for ld_flag in $LDFLAGS; do
10055           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10056             aix_use_runtimelinking=yes
10057             break
10058           fi
10059           done
10060           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10061             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10062             # so we don't have lib.a shared libs to link our executables.
10063             # We have to force runtime linking in this case.
10064             aix_use_runtimelinking=yes
10065             LDFLAGS="$LDFLAGS -Wl,-brtl"
10066           fi
10067           ;;
10068         esac
10069
10070         exp_sym_flag='-bexport'
10071         no_entry_flag='-bnoentry'
10072       fi
10073
10074       # When large executables or shared objects are built, AIX ld can
10075       # have problems creating the table of contents.  If linking a library
10076       # or program results in "error TOC overflow" add -mminimal-toc to
10077       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10078       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10079
10080       archive_cmds=''
10081       hardcode_direct=yes
10082       hardcode_direct_absolute=yes
10083       hardcode_libdir_separator=':'
10084       link_all_deplibs=yes
10085       file_list_spec='$wl-f,'
10086       case $with_aix_soname,$aix_use_runtimelinking in
10087       aix,*) ;; # traditional, no import file
10088       svr4,* | *,yes) # use import file
10089         # The Import File defines what to hardcode.
10090         hardcode_direct=no
10091         hardcode_direct_absolute=no
10092         ;;
10093       esac
10094
10095       if test yes = "$GCC"; then
10096         case $host_os in aix4.[012]|aix4.[012].*)
10097         # We only want to do this on AIX 4.2 and lower, the check
10098         # below for broken collect2 doesn't work under 4.3+
10099           collect2name=`$CC -print-prog-name=collect2`
10100           if test -f "$collect2name" &&
10101            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10102           then
10103           # We have reworked collect2
10104           :
10105           else
10106           # We have old collect2
10107           hardcode_direct=unsupported
10108           # It fails to find uninstalled libraries when the uninstalled
10109           # path is not listed in the libpath.  Setting hardcode_minus_L
10110           # to unsupported forces relinking
10111           hardcode_minus_L=yes
10112           hardcode_libdir_flag_spec='-L$libdir'
10113           hardcode_libdir_separator=
10114           fi
10115           ;;
10116         esac
10117         shared_flag='-shared'
10118         if test yes = "$aix_use_runtimelinking"; then
10119           shared_flag="$shared_flag "'$wl-G'
10120         fi
10121         # Need to ensure runtime linking is disabled for the traditional
10122         # shared library, or the linker may eventually find shared libraries
10123         # /with/ Import File - we do not want to mix them.
10124         shared_flag_aix='-shared'
10125         shared_flag_svr4='-shared $wl-G'
10126       else
10127         # not using gcc
10128         if test ia64 = "$host_cpu"; then
10129         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10130         # chokes on -Wl,-G. The following line is correct:
10131           shared_flag='-G'
10132         else
10133           if test yes = "$aix_use_runtimelinking"; then
10134             shared_flag='$wl-G'
10135           else
10136             shared_flag='$wl-bM:SRE'
10137           fi
10138           shared_flag_aix='$wl-bM:SRE'
10139           shared_flag_svr4='$wl-G'
10140         fi
10141       fi
10142
10143       export_dynamic_flag_spec='$wl-bexpall'
10144       # It seems that -bexpall does not export symbols beginning with
10145       # underscore (_), so it is better to generate a list of symbols to export.
10146       always_export_symbols=yes
10147       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10148         # Warning - without using the other runtime loading flags (-brtl),
10149         # -berok will link without error, but may produce a broken library.
10150         allow_undefined_flag='-berok'
10151         # Determine the default libpath from the value encoded in an
10152         # empty executable.
10153         if test set = "${lt_cv_aix_libpath+set}"; then
10154   aix_libpath=$lt_cv_aix_libpath
10155 else
10156   if ${lt_cv_aix_libpath_+:} false; then :
10157   $as_echo_n "(cached) " >&6
10158 else
10159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h.  */
10161
10162 int
10163 main ()
10164 {
10165
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171
10172   lt_aix_libpath_sed='
10173       /Import File Strings/,/^$/ {
10174           /^0/ {
10175               s/^0  *\([^ ]*\) *$/\1/
10176               p
10177           }
10178       }'
10179   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10180   # Check for a 64-bit object if we didn't find anything.
10181   if test -z "$lt_cv_aix_libpath_"; then
10182     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10183   fi
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext \
10186     conftest$ac_exeext conftest.$ac_ext
10187   if test -z "$lt_cv_aix_libpath_"; then
10188     lt_cv_aix_libpath_=/usr/lib:/lib
10189   fi
10190
10191 fi
10192
10193   aix_libpath=$lt_cv_aix_libpath_
10194 fi
10195
10196         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10197         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10198       else
10199         if test ia64 = "$host_cpu"; then
10200           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10201           allow_undefined_flag="-z nodefs"
10202           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"
10203         else
10204          # Determine the default libpath from the value encoded in an
10205          # empty executable.
10206          if test set = "${lt_cv_aix_libpath+set}"; then
10207   aix_libpath=$lt_cv_aix_libpath
10208 else
10209   if ${lt_cv_aix_libpath_+:} false; then :
10210   $as_echo_n "(cached) " >&6
10211 else
10212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h.  */
10214
10215 int
10216 main ()
10217 {
10218
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"; then :
10224
10225   lt_aix_libpath_sed='
10226       /Import File Strings/,/^$/ {
10227           /^0/ {
10228               s/^0  *\([^ ]*\) *$/\1/
10229               p
10230           }
10231       }'
10232   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10233   # Check for a 64-bit object if we didn't find anything.
10234   if test -z "$lt_cv_aix_libpath_"; then
10235     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10236   fi
10237 fi
10238 rm -f core conftest.err conftest.$ac_objext \
10239     conftest$ac_exeext conftest.$ac_ext
10240   if test -z "$lt_cv_aix_libpath_"; then
10241     lt_cv_aix_libpath_=/usr/lib:/lib
10242   fi
10243
10244 fi
10245
10246   aix_libpath=$lt_cv_aix_libpath_
10247 fi
10248
10249          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10250           # Warning - without using the other run time loading flags,
10251           # -berok will link without error, but may produce a broken library.
10252           no_undefined_flag=' $wl-bernotok'
10253           allow_undefined_flag=' $wl-berok'
10254           if test yes = "$with_gnu_ld"; then
10255             # We only use this code for GNU lds that support --whole-archive.
10256             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10257           else
10258             # Exported symbols can be pulled into shared objects from archives
10259             whole_archive_flag_spec='$convenience'
10260           fi
10261           archive_cmds_need_lc=yes
10262           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10263           # -brtl affects multiple linker settings, -berok does not and is overridden later
10264           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10265           if test svr4 != "$with_aix_soname"; then
10266             # This is similar to how AIX traditionally builds its shared libraries.
10267             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10268           fi
10269           if test aix != "$with_aix_soname"; then
10270             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10271           else
10272             # used by -dlpreopen to get the symbols
10273             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10274           fi
10275           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10276         fi
10277       fi
10278       ;;
10279
10280     amigaos*)
10281       case $host_cpu in
10282       powerpc)
10283             # see comment about AmigaOS4 .so support
10284             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10285             archive_expsym_cmds=''
10286         ;;
10287       m68k)
10288             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)'
10289             hardcode_libdir_flag_spec='-L$libdir'
10290             hardcode_minus_L=yes
10291         ;;
10292       esac
10293       ;;
10294
10295     bsdi[45]*)
10296       export_dynamic_flag_spec=-rdynamic
10297       ;;
10298
10299     cygwin* | mingw* | pw32* | cegcc*)
10300       # When not using gcc, we currently assume that we are using
10301       # Microsoft Visual C++.
10302       # hardcode_libdir_flag_spec is actually meaningless, as there is
10303       # no search path for DLLs.
10304       case $cc_basename in
10305       cl*)
10306         # Native MSVC
10307         hardcode_libdir_flag_spec=' '
10308         allow_undefined_flag=unsupported
10309         always_export_symbols=yes
10310         file_list_spec='@'
10311         # Tell ltmain to make .lib files, not .a files.
10312         libext=lib
10313         # Tell ltmain to make .dll files, not .so files.
10314         shrext_cmds=.dll
10315         # FIXME: Setting linknames here is a bad hack.
10316         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10317         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10318             cp "$export_symbols" "$output_objdir/$soname.def";
10319             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10320           else
10321             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10322           fi~
10323           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10324           linknames='
10325         # The linker will not automatically build a static lib if we build a DLL.
10326         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10327         enable_shared_with_static_runtimes=yes
10328         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10329         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10330         # Don't use ranlib
10331         old_postinstall_cmds='chmod 644 $oldlib'
10332         postlink_cmds='lt_outputfile="@OUTPUT@"~
10333           lt_tool_outputfile="@TOOL_OUTPUT@"~
10334           case $lt_outputfile in
10335             *.exe|*.EXE) ;;
10336             *)
10337               lt_outputfile=$lt_outputfile.exe
10338               lt_tool_outputfile=$lt_tool_outputfile.exe
10339               ;;
10340           esac~
10341           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10342             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10343             $RM "$lt_outputfile.manifest";
10344           fi'
10345         ;;
10346       *)
10347         # Assume MSVC wrapper
10348         hardcode_libdir_flag_spec=' '
10349         allow_undefined_flag=unsupported
10350         # Tell ltmain to make .lib files, not .a files.
10351         libext=lib
10352         # Tell ltmain to make .dll files, not .so files.
10353         shrext_cmds=.dll
10354         # FIXME: Setting linknames here is a bad hack.
10355         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10356         # The linker will automatically build a .lib file if we build a DLL.
10357         old_archive_from_new_cmds='true'
10358         # FIXME: Should let the user specify the lib program.
10359         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10360         enable_shared_with_static_runtimes=yes
10361         ;;
10362       esac
10363       ;;
10364
10365     darwin* | rhapsody*)
10366
10367
10368   archive_cmds_need_lc=no
10369   hardcode_direct=no
10370   hardcode_automatic=yes
10371   hardcode_shlibpath_var=unsupported
10372   if test yes = "$lt_cv_ld_force_load"; then
10373     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10374
10375   else
10376     whole_archive_flag_spec=''
10377   fi
10378   link_all_deplibs=yes
10379   allow_undefined_flag=$_lt_dar_allow_undefined
10380   case $cc_basename in
10381      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10382      *) _lt_dar_can_shared=$GCC ;;
10383   esac
10384   if test yes = "$_lt_dar_can_shared"; then
10385     output_verbose_link_cmd=func_echo_all
10386     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10387     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10388     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"
10389     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"
10390
10391   else
10392   ld_shlibs=no
10393   fi
10394
10395       ;;
10396
10397     dgux*)
10398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399       hardcode_libdir_flag_spec='-L$libdir'
10400       hardcode_shlibpath_var=no
10401       ;;
10402
10403     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10404     # support.  Future versions do this automatically, but an explicit c++rt0.o
10405     # does not break anything, and helps significantly (at the cost of a little
10406     # extra space).
10407     freebsd2.2*)
10408       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10409       hardcode_libdir_flag_spec='-R$libdir'
10410       hardcode_direct=yes
10411       hardcode_shlibpath_var=no
10412       ;;
10413
10414     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10415     freebsd2.*)
10416       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10417       hardcode_direct=yes
10418       hardcode_minus_L=yes
10419       hardcode_shlibpath_var=no
10420       ;;
10421
10422     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10423     freebsd* | dragonfly*)
10424       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10425       hardcode_libdir_flag_spec='-R$libdir'
10426       hardcode_direct=yes
10427       hardcode_shlibpath_var=no
10428       ;;
10429
10430     hpux9*)
10431       if test yes = "$GCC"; then
10432         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10433       else
10434         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10435       fi
10436       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10437       hardcode_libdir_separator=:
10438       hardcode_direct=yes
10439
10440       # hardcode_minus_L: Not really in the search PATH,
10441       # but as the default location of the library.
10442       hardcode_minus_L=yes
10443       export_dynamic_flag_spec='$wl-E'
10444       ;;
10445
10446     hpux10*)
10447       if test yes,no = "$GCC,$with_gnu_ld"; then
10448         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10449       else
10450         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10451       fi
10452       if test no = "$with_gnu_ld"; then
10453         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10454         hardcode_libdir_separator=:
10455         hardcode_direct=yes
10456         hardcode_direct_absolute=yes
10457         export_dynamic_flag_spec='$wl-E'
10458         # hardcode_minus_L: Not really in the search PATH,
10459         # but as the default location of the library.
10460         hardcode_minus_L=yes
10461       fi
10462       ;;
10463
10464     hpux11*)
10465       if test yes,no = "$GCC,$with_gnu_ld"; then
10466         case $host_cpu in
10467         hppa*64*)
10468           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10469           ;;
10470         ia64*)
10471           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10472           ;;
10473         *)
10474           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10475           ;;
10476         esac
10477       else
10478         case $host_cpu in
10479         hppa*64*)
10480           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10481           ;;
10482         ia64*)
10483           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10484           ;;
10485         *)
10486
10487           # Older versions of the 11.00 compiler do not understand -b yet
10488           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10489           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10490 $as_echo_n "checking if $CC understands -b... " >&6; }
10491 if ${lt_cv_prog_compiler__b+:} false; then :
10492   $as_echo_n "(cached) " >&6
10493 else
10494   lt_cv_prog_compiler__b=no
10495    save_LDFLAGS=$LDFLAGS
10496    LDFLAGS="$LDFLAGS -b"
10497    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10498    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10499      # The linker can only warn and ignore the option if not recognized
10500      # So say no if there are warnings
10501      if test -s conftest.err; then
10502        # Append any errors to the config.log.
10503        cat conftest.err 1>&5
10504        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10505        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10506        if diff conftest.exp conftest.er2 >/dev/null; then
10507          lt_cv_prog_compiler__b=yes
10508        fi
10509      else
10510        lt_cv_prog_compiler__b=yes
10511      fi
10512    fi
10513    $RM -r conftest*
10514    LDFLAGS=$save_LDFLAGS
10515
10516 fi
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10518 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10519
10520 if test yes = "$lt_cv_prog_compiler__b"; then
10521     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10522 else
10523     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10524 fi
10525
10526           ;;
10527         esac
10528       fi
10529       if test no = "$with_gnu_ld"; then
10530         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10531         hardcode_libdir_separator=:
10532
10533         case $host_cpu in
10534         hppa*64*|ia64*)
10535           hardcode_direct=no
10536           hardcode_shlibpath_var=no
10537           ;;
10538         *)
10539           hardcode_direct=yes
10540           hardcode_direct_absolute=yes
10541           export_dynamic_flag_spec='$wl-E'
10542
10543           # hardcode_minus_L: Not really in the search PATH,
10544           # but as the default location of the library.
10545           hardcode_minus_L=yes
10546           ;;
10547         esac
10548       fi
10549       ;;
10550
10551     irix5* | irix6* | nonstopux*)
10552       if test yes = "$GCC"; then
10553         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10554         # Try to use the -exported_symbol ld option, if it does not
10555         # work, assume that -exports_file does not work either and
10556         # implicitly export all symbols.
10557         # This should be the same for all languages, so no per-tag cache variable.
10558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10559 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10560 if ${lt_cv_irix_exported_symbol+:} false; then :
10561   $as_echo_n "(cached) " >&6
10562 else
10563   save_LDFLAGS=$LDFLAGS
10564            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10565            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h.  */
10567 int foo (void) { return 0; }
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570   lt_cv_irix_exported_symbol=yes
10571 else
10572   lt_cv_irix_exported_symbol=no
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext \
10575     conftest$ac_exeext conftest.$ac_ext
10576            LDFLAGS=$save_LDFLAGS
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10579 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10580         if test yes = "$lt_cv_irix_exported_symbol"; then
10581           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10582         fi
10583       else
10584         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10585         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10586       fi
10587       archive_cmds_need_lc='no'
10588       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10589       hardcode_libdir_separator=:
10590       inherit_rpath=yes
10591       link_all_deplibs=yes
10592       ;;
10593
10594     linux*)
10595       case $cc_basename in
10596       tcc*)
10597         # Fabrice Bellard et al's Tiny C Compiler
10598         ld_shlibs=yes
10599         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10600         ;;
10601       esac
10602       ;;
10603
10604     netbsd*)
10605       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10606         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10607       else
10608         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10609       fi
10610       hardcode_libdir_flag_spec='-R$libdir'
10611       hardcode_direct=yes
10612       hardcode_shlibpath_var=no
10613       ;;
10614
10615     newsos6)
10616       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10617       hardcode_direct=yes
10618       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10619       hardcode_libdir_separator=:
10620       hardcode_shlibpath_var=no
10621       ;;
10622
10623     *nto* | *qnx*)
10624       ;;
10625
10626     openbsd* | bitrig*)
10627       if test -f /usr/libexec/ld.so; then
10628         hardcode_direct=yes
10629         hardcode_shlibpath_var=no
10630         hardcode_direct_absolute=yes
10631         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10632           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10633           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10634           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10635           export_dynamic_flag_spec='$wl-E'
10636         else
10637           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10638           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10639         fi
10640       else
10641         ld_shlibs=no
10642       fi
10643       ;;
10644
10645     os2*)
10646       hardcode_libdir_flag_spec='-L$libdir'
10647       hardcode_minus_L=yes
10648       allow_undefined_flag=unsupported
10649       shrext_cmds=.dll
10650       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10651         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10652         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10653         $ECHO EXPORTS >> $output_objdir/$libname.def~
10654         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10655         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10656         emximp -o $lib $output_objdir/$libname.def'
10657       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10658         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10659         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10660         $ECHO EXPORTS >> $output_objdir/$libname.def~
10661         prefix_cmds="$SED"~
10662         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10663           prefix_cmds="$prefix_cmds -e 1d";
10664         fi~
10665         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10666         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10667         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10668         emximp -o $lib $output_objdir/$libname.def'
10669       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10670       enable_shared_with_static_runtimes=yes
10671       ;;
10672
10673     osf3*)
10674       if test yes = "$GCC"; then
10675         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10676         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10677       else
10678         allow_undefined_flag=' -expect_unresolved \*'
10679         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10680       fi
10681       archive_cmds_need_lc='no'
10682       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10683       hardcode_libdir_separator=:
10684       ;;
10685
10686     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10687       if test yes = "$GCC"; then
10688         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10689         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10690         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10691       else
10692         allow_undefined_flag=' -expect_unresolved \*'
10693         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10694         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~
10695           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10696
10697         # Both c and cxx compiler support -rpath directly
10698         hardcode_libdir_flag_spec='-rpath $libdir'
10699       fi
10700       archive_cmds_need_lc='no'
10701       hardcode_libdir_separator=:
10702       ;;
10703
10704     solaris*)
10705       no_undefined_flag=' -z defs'
10706       if test yes = "$GCC"; then
10707         wlarc='$wl'
10708         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10709         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10710           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10711       else
10712         case `$CC -V 2>&1` in
10713         *"Compilers 5.0"*)
10714           wlarc=''
10715           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10717             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10718           ;;
10719         *)
10720           wlarc='$wl'
10721           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10722           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10723             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10724           ;;
10725         esac
10726       fi
10727       hardcode_libdir_flag_spec='-R$libdir'
10728       hardcode_shlibpath_var=no
10729       case $host_os in
10730       solaris2.[0-5] | solaris2.[0-5].*) ;;
10731       *)
10732         # The compiler driver will combine and reorder linker options,
10733         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10734         # but is careful enough not to reorder.
10735         # Supported since Solaris 2.6 (maybe 2.5.1?)
10736         if test yes = "$GCC"; then
10737           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10738         else
10739           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10740         fi
10741         ;;
10742       esac
10743       link_all_deplibs=yes
10744       ;;
10745
10746     sunos4*)
10747       if test sequent = "$host_vendor"; then
10748         # Use $CC to link under sequent, because it throws in some extra .o
10749         # files that make .init and .fini sections work.
10750         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10751       else
10752         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10753       fi
10754       hardcode_libdir_flag_spec='-L$libdir'
10755       hardcode_direct=yes
10756       hardcode_minus_L=yes
10757       hardcode_shlibpath_var=no
10758       ;;
10759
10760     sysv4)
10761       case $host_vendor in
10762         sni)
10763           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10764           hardcode_direct=yes # is this really true???
10765         ;;
10766         siemens)
10767           ## LD is ld it makes a PLAMLIB
10768           ## CC just makes a GrossModule.
10769           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10770           reload_cmds='$CC -r -o $output$reload_objs'
10771           hardcode_direct=no
10772         ;;
10773         motorola)
10774           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10775           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10776         ;;
10777       esac
10778       runpath_var='LD_RUN_PATH'
10779       hardcode_shlibpath_var=no
10780       ;;
10781
10782     sysv4.3*)
10783       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784       hardcode_shlibpath_var=no
10785       export_dynamic_flag_spec='-Bexport'
10786       ;;
10787
10788     sysv4*MP*)
10789       if test -d /usr/nec; then
10790         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791         hardcode_shlibpath_var=no
10792         runpath_var=LD_RUN_PATH
10793         hardcode_runpath_var=yes
10794         ld_shlibs=yes
10795       fi
10796       ;;
10797
10798     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10799       no_undefined_flag='$wl-z,text'
10800       archive_cmds_need_lc=no
10801       hardcode_shlibpath_var=no
10802       runpath_var='LD_RUN_PATH'
10803
10804       if test yes = "$GCC"; then
10805         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10806         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10807       else
10808         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10809         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10810       fi
10811       ;;
10812
10813     sysv5* | sco3.2v5* | sco5v6*)
10814       # Note: We CANNOT use -z defs as we might desire, because we do not
10815       # link with -lc, and that would cause any symbols used from libc to
10816       # always be unresolved, which means just about no library would
10817       # ever link correctly.  If we're not using GNU ld we use -z text
10818       # though, which does catch some bad symbols but isn't as heavy-handed
10819       # as -z defs.
10820       no_undefined_flag='$wl-z,text'
10821       allow_undefined_flag='$wl-z,nodefs'
10822       archive_cmds_need_lc=no
10823       hardcode_shlibpath_var=no
10824       hardcode_libdir_flag_spec='$wl-R,$libdir'
10825       hardcode_libdir_separator=':'
10826       link_all_deplibs=yes
10827       export_dynamic_flag_spec='$wl-Bexport'
10828       runpath_var='LD_RUN_PATH'
10829
10830       if test yes = "$GCC"; then
10831         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10832         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10833       else
10834         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10835         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10836       fi
10837       ;;
10838
10839     uts4*)
10840       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841       hardcode_libdir_flag_spec='-L$libdir'
10842       hardcode_shlibpath_var=no
10843       ;;
10844
10845     *)
10846       ld_shlibs=no
10847       ;;
10848     esac
10849
10850     if test sni = "$host_vendor"; then
10851       case $host in
10852       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10853         export_dynamic_flag_spec='$wl-Blargedynsym'
10854         ;;
10855       esac
10856     fi
10857   fi
10858
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10860 $as_echo "$ld_shlibs" >&6; }
10861 test no = "$ld_shlibs" && can_build_shared=no
10862
10863 with_gnu_ld=$with_gnu_ld
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879 #
10880 # Do we need to explicitly link libc?
10881 #
10882 case "x$archive_cmds_need_lc" in
10883 x|xyes)
10884   # Assume -lc should be added
10885   archive_cmds_need_lc=yes
10886
10887   if test yes,yes = "$GCC,$enable_shared"; then
10888     case $archive_cmds in
10889     *'~'*)
10890       # FIXME: we may have to deal with multi-command sequences.
10891       ;;
10892     '$CC '*)
10893       # Test whether the compiler implicitly links with -lc since on some
10894       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10895       # to ld, don't add -lc before -lgcc.
10896       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10897 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10898 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10899   $as_echo_n "(cached) " >&6
10900 else
10901   $RM conftest*
10902         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10903
10904         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10905   (eval $ac_compile) 2>&5
10906   ac_status=$?
10907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908   test $ac_status = 0; } 2>conftest.err; then
10909           soname=conftest
10910           lib=conftest
10911           libobjs=conftest.$ac_objext
10912           deplibs=
10913           wl=$lt_prog_compiler_wl
10914           pic_flag=$lt_prog_compiler_pic
10915           compiler_flags=-v
10916           linker_flags=-v
10917           verstring=
10918           output_objdir=.
10919           libname=conftest
10920           lt_save_allow_undefined_flag=$allow_undefined_flag
10921           allow_undefined_flag=
10922           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10923   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10924   ac_status=$?
10925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10926   test $ac_status = 0; }
10927           then
10928             lt_cv_archive_cmds_need_lc=no
10929           else
10930             lt_cv_archive_cmds_need_lc=yes
10931           fi
10932           allow_undefined_flag=$lt_save_allow_undefined_flag
10933         else
10934           cat conftest.err 1>&5
10935         fi
10936         $RM conftest*
10937
10938 fi
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10940 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10941       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10942       ;;
10943     esac
10944   fi
10945   ;;
10946 esac
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11100 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11101
11102 if test yes = "$GCC"; then
11103   case $host_os in
11104     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11105     *) lt_awk_arg='/^libraries:/' ;;
11106   esac
11107   case $host_os in
11108     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11109     *) lt_sed_strip_eq='s|=/|/|g' ;;
11110   esac
11111   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11112   case $lt_search_path_spec in
11113   *\;*)
11114     # if the path contains ";" then we assume it to be the separator
11115     # otherwise default to the standard path separator (i.e. ":") - it is
11116     # assumed that no part of a normal pathname contains ";" but that should
11117     # okay in the real world where ";" in dirpaths is itself problematic.
11118     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11119     ;;
11120   *)
11121     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11122     ;;
11123   esac
11124   # Ok, now we have the path, separated by spaces, we can step through it
11125   # and add multilib dir if necessary...
11126   lt_tmp_lt_search_path_spec=
11127   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11128   # ...but if some path component already ends with the multilib dir we assume
11129   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11130   case "$lt_multi_os_dir; $lt_search_path_spec " in
11131   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11132     lt_multi_os_dir=
11133     ;;
11134   esac
11135   for lt_sys_path in $lt_search_path_spec; do
11136     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11137       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11138     elif test -n "$lt_multi_os_dir"; then
11139       test -d "$lt_sys_path" && \
11140         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11141     fi
11142   done
11143   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11144 BEGIN {RS = " "; FS = "/|\n";} {
11145   lt_foo = "";
11146   lt_count = 0;
11147   for (lt_i = NF; lt_i > 0; lt_i--) {
11148     if ($lt_i != "" && $lt_i != ".") {
11149       if ($lt_i == "..") {
11150         lt_count++;
11151       } else {
11152         if (lt_count == 0) {
11153           lt_foo = "/" $lt_i lt_foo;
11154         } else {
11155           lt_count--;
11156         }
11157       }
11158     }
11159   }
11160   if (lt_foo != "") { lt_freq[lt_foo]++; }
11161   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11162 }'`
11163   # AWK program above erroneously prepends '/' to C:/dos/paths
11164   # for these hosts.
11165   case $host_os in
11166     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11167       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11168   esac
11169   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11170 else
11171   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11172 fi
11173 library_names_spec=
11174 libname_spec='lib$name'
11175 soname_spec=
11176 shrext_cmds=.so
11177 postinstall_cmds=
11178 postuninstall_cmds=
11179 finish_cmds=
11180 finish_eval=
11181 shlibpath_var=
11182 shlibpath_overrides_runpath=unknown
11183 version_type=none
11184 dynamic_linker="$host_os ld.so"
11185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11186 need_lib_prefix=unknown
11187 hardcode_into_libs=no
11188
11189 # when you set need_version to no, make sure it does not cause -set_version
11190 # flags to be left without arguments
11191 need_version=unknown
11192
11193
11194
11195 case $host_os in
11196 aix3*)
11197   version_type=linux # correct to gnu/linux during the next big refactor
11198   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11199   shlibpath_var=LIBPATH
11200
11201   # AIX 3 has no versioning support, so we append a major version to the name.
11202   soname_spec='$libname$release$shared_ext$major'
11203   ;;
11204
11205 aix[4-9]*)
11206   version_type=linux # correct to gnu/linux during the next big refactor
11207   need_lib_prefix=no
11208   need_version=no
11209   hardcode_into_libs=yes
11210   if test ia64 = "$host_cpu"; then
11211     # AIX 5 supports IA64
11212     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11213     shlibpath_var=LD_LIBRARY_PATH
11214   else
11215     # With GCC up to 2.95.x, collect2 would create an import file
11216     # for dependence libraries.  The import file would start with
11217     # the line '#! .'.  This would cause the generated library to
11218     # depend on '.', always an invalid library.  This was fixed in
11219     # development snapshots of GCC prior to 3.0.
11220     case $host_os in
11221       aix4 | aix4.[01] | aix4.[01].*)
11222       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11223            echo ' yes '
11224            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11225         :
11226       else
11227         can_build_shared=no
11228       fi
11229       ;;
11230     esac
11231     # Using Import Files as archive members, it is possible to support
11232     # filename-based versioning of shared library archives on AIX. While
11233     # this would work for both with and without runtime linking, it will
11234     # prevent static linking of such archives. So we do filename-based
11235     # shared library versioning with .so extension only, which is used
11236     # when both runtime linking and shared linking is enabled.
11237     # Unfortunately, runtime linking may impact performance, so we do
11238     # not want this to be the default eventually. Also, we use the
11239     # versioned .so libs for executables only if there is the -brtl
11240     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11241     # To allow for filename-based versioning support, we need to create
11242     # libNAME.so.V as an archive file, containing:
11243     # *) an Import File, referring to the versioned filename of the
11244     #    archive as well as the shared archive member, telling the
11245     #    bitwidth (32 or 64) of that shared object, and providing the
11246     #    list of exported symbols of that shared object, eventually
11247     #    decorated with the 'weak' keyword
11248     # *) the shared object with the F_LOADONLY flag set, to really avoid
11249     #    it being seen by the linker.
11250     # At run time we better use the real file rather than another symlink,
11251     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11252
11253     case $with_aix_soname,$aix_use_runtimelinking in
11254     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11255     # soname into executable. Probably we can add versioning support to
11256     # collect2, so additional links can be useful in future.
11257     aix,yes) # traditional libtool
11258       dynamic_linker='AIX unversionable lib.so'
11259       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11260       # instead of lib<name>.a to let people know that these are not
11261       # typical AIX shared libraries.
11262       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11263       ;;
11264     aix,no) # traditional AIX only
11265       dynamic_linker='AIX lib.a(lib.so.V)'
11266       # We preserve .a as extension for shared libraries through AIX4.2
11267       # and later when we are not doing run time linking.
11268       library_names_spec='$libname$release.a $libname.a'
11269       soname_spec='$libname$release$shared_ext$major'
11270       ;;
11271     svr4,*) # full svr4 only
11272       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11273       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11274       # We do not specify a path in Import Files, so LIBPATH fires.
11275       shlibpath_overrides_runpath=yes
11276       ;;
11277     *,yes) # both, prefer svr4
11278       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11279       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11280       # unpreferred sharedlib libNAME.a needs extra handling
11281       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11282       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11283       # We do not specify a path in Import Files, so LIBPATH fires.
11284       shlibpath_overrides_runpath=yes
11285       ;;
11286     *,no) # both, prefer aix
11287       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11288       library_names_spec='$libname$release.a $libname.a'
11289       soname_spec='$libname$release$shared_ext$major'
11290       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11291       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11292       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11293       ;;
11294     esac
11295     shlibpath_var=LIBPATH
11296   fi
11297   ;;
11298
11299 amigaos*)
11300   case $host_cpu in
11301   powerpc)
11302     # Since July 2007 AmigaOS4 officially supports .so libraries.
11303     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11304     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11305     ;;
11306   m68k)
11307     library_names_spec='$libname.ixlibrary $libname.a'
11308     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11309     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11310     ;;
11311   esac
11312   ;;
11313
11314 beos*)
11315   library_names_spec='$libname$shared_ext'
11316   dynamic_linker="$host_os ld.so"
11317   shlibpath_var=LIBRARY_PATH
11318   ;;
11319
11320 bsdi[45]*)
11321   version_type=linux # correct to gnu/linux during the next big refactor
11322   need_version=no
11323   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11324   soname_spec='$libname$release$shared_ext$major'
11325   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11326   shlibpath_var=LD_LIBRARY_PATH
11327   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11328   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11329   # the default ld.so.conf also contains /usr/contrib/lib and
11330   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11331   # libtool to hard-code these into programs
11332   ;;
11333
11334 cygwin* | mingw* | pw32* | cegcc*)
11335   version_type=windows
11336   shrext_cmds=.dll
11337   need_version=no
11338   need_lib_prefix=no
11339
11340   case $GCC,$cc_basename in
11341   yes,*)
11342     # gcc
11343     library_names_spec='$libname.dll.a'
11344     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11345     postinstall_cmds='base_file=`basename \$file`~
11346       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11347       dldir=$destdir/`dirname \$dlpath`~
11348       test -d \$dldir || mkdir -p \$dldir~
11349       $install_prog $dir/$dlname \$dldir/$dlname~
11350       chmod a+x \$dldir/$dlname~
11351       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11352         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11353       fi'
11354     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11355       dlpath=$dir/\$dldll~
11356        $RM \$dlpath'
11357     shlibpath_overrides_runpath=yes
11358
11359     case $host_os in
11360     cygwin*)
11361       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11362       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11363
11364       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11365       ;;
11366     mingw* | cegcc*)
11367       # MinGW DLLs use traditional 'lib' prefix
11368       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11369       ;;
11370     pw32*)
11371       # pw32 DLLs use 'pw' prefix rather than 'lib'
11372       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11373       ;;
11374     esac
11375     dynamic_linker='Win32 ld.exe'
11376     ;;
11377
11378   *,cl*)
11379     # Native MSVC
11380     libname_spec='$name'
11381     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11382     library_names_spec='$libname.dll.lib'
11383
11384     case $build_os in
11385     mingw*)
11386       sys_lib_search_path_spec=
11387       lt_save_ifs=$IFS
11388       IFS=';'
11389       for lt_path in $LIB
11390       do
11391         IFS=$lt_save_ifs
11392         # Let DOS variable expansion print the short 8.3 style file name.
11393         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11394         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11395       done
11396       IFS=$lt_save_ifs
11397       # Convert to MSYS style.
11398       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11399       ;;
11400     cygwin*)
11401       # Convert to unix form, then to dos form, then back to unix form
11402       # but this time dos style (no spaces!) so that the unix form looks
11403       # like /cygdrive/c/PROGRA~1:/cygdr...
11404       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11405       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11406       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11407       ;;
11408     *)
11409       sys_lib_search_path_spec=$LIB
11410       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11411         # It is most probably a Windows format PATH.
11412         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11413       else
11414         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11415       fi
11416       # FIXME: find the short name or the path components, as spaces are
11417       # common. (e.g. "Program Files" -> "PROGRA~1")
11418       ;;
11419     esac
11420
11421     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11422     postinstall_cmds='base_file=`basename \$file`~
11423       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11424       dldir=$destdir/`dirname \$dlpath`~
11425       test -d \$dldir || mkdir -p \$dldir~
11426       $install_prog $dir/$dlname \$dldir/$dlname'
11427     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11428       dlpath=$dir/\$dldll~
11429        $RM \$dlpath'
11430     shlibpath_overrides_runpath=yes
11431     dynamic_linker='Win32 link.exe'
11432     ;;
11433
11434   *)
11435     # Assume MSVC wrapper
11436     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11437     dynamic_linker='Win32 ld.exe'
11438     ;;
11439   esac
11440   # FIXME: first we should search . and the directory the executable is in
11441   shlibpath_var=PATH
11442   ;;
11443
11444 darwin* | rhapsody*)
11445   dynamic_linker="$host_os dyld"
11446   version_type=darwin
11447   need_lib_prefix=no
11448   need_version=no
11449   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11450   soname_spec='$libname$release$major$shared_ext'
11451   shlibpath_overrides_runpath=yes
11452   shlibpath_var=DYLD_LIBRARY_PATH
11453   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11454
11455   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11456   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11457   ;;
11458
11459 dgux*)
11460   version_type=linux # correct to gnu/linux during the next big refactor
11461   need_lib_prefix=no
11462   need_version=no
11463   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464   soname_spec='$libname$release$shared_ext$major'
11465   shlibpath_var=LD_LIBRARY_PATH
11466   ;;
11467
11468 freebsd* | dragonfly*)
11469   # DragonFly does not have aout.  When/if they implement a new
11470   # versioning mechanism, adjust this.
11471   if test -x /usr/bin/objformat; then
11472     objformat=`/usr/bin/objformat`
11473   else
11474     case $host_os in
11475     freebsd[23].*) objformat=aout ;;
11476     *) objformat=elf ;;
11477     esac
11478   fi
11479   version_type=freebsd-$objformat
11480   case $version_type in
11481     freebsd-elf*)
11482       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483       soname_spec='$libname$release$shared_ext$major'
11484       need_version=no
11485       need_lib_prefix=no
11486       ;;
11487     freebsd-*)
11488       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11489       need_version=yes
11490       ;;
11491   esac
11492   shlibpath_var=LD_LIBRARY_PATH
11493   case $host_os in
11494   freebsd2.*)
11495     shlibpath_overrides_runpath=yes
11496     ;;
11497   freebsd3.[01]* | freebsdelf3.[01]*)
11498     shlibpath_overrides_runpath=yes
11499     hardcode_into_libs=yes
11500     ;;
11501   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11502   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11503     shlibpath_overrides_runpath=no
11504     hardcode_into_libs=yes
11505     ;;
11506   *) # from 4.6 on, and DragonFly
11507     shlibpath_overrides_runpath=yes
11508     hardcode_into_libs=yes
11509     ;;
11510   esac
11511   ;;
11512
11513 haiku*)
11514   version_type=linux # correct to gnu/linux during the next big refactor
11515   need_lib_prefix=no
11516   need_version=no
11517   dynamic_linker="$host_os runtime_loader"
11518   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11519   soname_spec='$libname$release$shared_ext$major'
11520   shlibpath_var=LIBRARY_PATH
11521   shlibpath_overrides_runpath=no
11522   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11523   hardcode_into_libs=yes
11524   ;;
11525
11526 hpux9* | hpux10* | hpux11*)
11527   # Give a soname corresponding to the major version so that dld.sl refuses to
11528   # link against other versions.
11529   version_type=sunos
11530   need_lib_prefix=no
11531   need_version=no
11532   case $host_cpu in
11533   ia64*)
11534     shrext_cmds='.so'
11535     hardcode_into_libs=yes
11536     dynamic_linker="$host_os dld.so"
11537     shlibpath_var=LD_LIBRARY_PATH
11538     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11539     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11540     soname_spec='$libname$release$shared_ext$major'
11541     if test 32 = "$HPUX_IA64_MODE"; then
11542       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11543       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11544     else
11545       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11546       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11547     fi
11548     ;;
11549   hppa*64*)
11550     shrext_cmds='.sl'
11551     hardcode_into_libs=yes
11552     dynamic_linker="$host_os dld.sl"
11553     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11556     soname_spec='$libname$release$shared_ext$major'
11557     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11559     ;;
11560   *)
11561     shrext_cmds='.sl'
11562     dynamic_linker="$host_os dld.sl"
11563     shlibpath_var=SHLIB_PATH
11564     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11565     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11566     soname_spec='$libname$release$shared_ext$major'
11567     ;;
11568   esac
11569   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11570   postinstall_cmds='chmod 555 $lib'
11571   # or fails outright, so override atomically:
11572   install_override_mode=555
11573   ;;
11574
11575 interix[3-9]*)
11576   version_type=linux # correct to gnu/linux during the next big refactor
11577   need_lib_prefix=no
11578   need_version=no
11579   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580   soname_spec='$libname$release$shared_ext$major'
11581   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11582   shlibpath_var=LD_LIBRARY_PATH
11583   shlibpath_overrides_runpath=no
11584   hardcode_into_libs=yes
11585   ;;
11586
11587 irix5* | irix6* | nonstopux*)
11588   case $host_os in
11589     nonstopux*) version_type=nonstopux ;;
11590     *)
11591         if test yes = "$lt_cv_prog_gnu_ld"; then
11592                 version_type=linux # correct to gnu/linux during the next big refactor
11593         else
11594                 version_type=irix
11595         fi ;;
11596   esac
11597   need_lib_prefix=no
11598   need_version=no
11599   soname_spec='$libname$release$shared_ext$major'
11600   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11601   case $host_os in
11602   irix5* | nonstopux*)
11603     libsuff= shlibsuff=
11604     ;;
11605   *)
11606     case $LD in # libtool.m4 will add one of these switches to LD
11607     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11608       libsuff= shlibsuff= libmagic=32-bit;;
11609     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11610       libsuff=32 shlibsuff=N32 libmagic=N32;;
11611     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11612       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11613     *) libsuff= shlibsuff= libmagic=never-match;;
11614     esac
11615     ;;
11616   esac
11617   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11618   shlibpath_overrides_runpath=no
11619   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11620   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11621   hardcode_into_libs=yes
11622   ;;
11623
11624 # No shared lib support for Linux oldld, aout, or coff.
11625 linux*oldld* | linux*aout* | linux*coff*)
11626   dynamic_linker=no
11627   ;;
11628
11629 linux*android*)
11630   version_type=none # Android doesn't support versioned libraries.
11631   need_lib_prefix=no
11632   need_version=no
11633   library_names_spec='$libname$release$shared_ext'
11634   soname_spec='$libname$release$shared_ext'
11635   finish_cmds=
11636   shlibpath_var=LD_LIBRARY_PATH
11637   shlibpath_overrides_runpath=yes
11638
11639   # This implies no fast_install, which is unacceptable.
11640   # Some rework will be needed to allow for fast_install
11641   # before this can be enabled.
11642   hardcode_into_libs=yes
11643
11644   dynamic_linker='Android linker'
11645   # Don't embed -rpath directories since the linker doesn't support them.
11646   hardcode_libdir_flag_spec='-L$libdir'
11647   ;;
11648
11649 # This must be glibc/ELF.
11650 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11651   version_type=linux # correct to gnu/linux during the next big refactor
11652   need_lib_prefix=no
11653   need_version=no
11654   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11655   soname_spec='$libname$release$shared_ext$major'
11656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11657   shlibpath_var=LD_LIBRARY_PATH
11658   shlibpath_overrides_runpath=no
11659
11660   # Some binutils ld are patched to set DT_RUNPATH
11661   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11662   $as_echo_n "(cached) " >&6
11663 else
11664   lt_cv_shlibpath_overrides_runpath=no
11665     save_LDFLAGS=$LDFLAGS
11666     save_libdir=$libdir
11667     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11668          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h.  */
11671
11672 int
11673 main ()
11674 {
11675
11676   ;
11677   return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"; then :
11681   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11682   lt_cv_shlibpath_overrides_runpath=yes
11683 fi
11684 fi
11685 rm -f core conftest.err conftest.$ac_objext \
11686     conftest$ac_exeext conftest.$ac_ext
11687     LDFLAGS=$save_LDFLAGS
11688     libdir=$save_libdir
11689
11690 fi
11691
11692   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11693
11694   # This implies no fast_install, which is unacceptable.
11695   # Some rework will be needed to allow for fast_install
11696   # before this can be enabled.
11697   hardcode_into_libs=yes
11698
11699   # Ideally, we could use ldconfig to report *all* directores which are
11700   # searched for libraries, however this is still not possible.  Aside from not
11701   # being certain /sbin/ldconfig is available, command
11702   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11703   # even though it is searched at run-time.  Try to do the best guess by
11704   # appending ld.so.conf contents (and includes) to the search path.
11705   if test -f /etc/ld.so.conf; then
11706     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11707     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11708   fi
11709
11710   # We used to test for /lib/ld.so.1 and disable shared libraries on
11711   # powerpc, because MkLinux only supported shared libraries with the
11712   # GNU dynamic linker.  Since this was broken with cross compilers,
11713   # most powerpc-linux boxes support dynamic linking these days and
11714   # people can always --disable-shared, the test was removed, and we
11715   # assume the GNU/Linux dynamic linker is in use.
11716   dynamic_linker='GNU/Linux ld.so'
11717   ;;
11718
11719 netbsd*)
11720   version_type=sunos
11721   need_lib_prefix=no
11722   need_version=no
11723   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11724     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11725     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11726     dynamic_linker='NetBSD (a.out) ld.so'
11727   else
11728     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11729     soname_spec='$libname$release$shared_ext$major'
11730     dynamic_linker='NetBSD ld.elf_so'
11731   fi
11732   shlibpath_var=LD_LIBRARY_PATH
11733   shlibpath_overrides_runpath=yes
11734   hardcode_into_libs=yes
11735   ;;
11736
11737 newsos6)
11738   version_type=linux # correct to gnu/linux during the next big refactor
11739   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11740   shlibpath_var=LD_LIBRARY_PATH
11741   shlibpath_overrides_runpath=yes
11742   ;;
11743
11744 *nto* | *qnx*)
11745   version_type=qnx
11746   need_lib_prefix=no
11747   need_version=no
11748   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11749   soname_spec='$libname$release$shared_ext$major'
11750   shlibpath_var=LD_LIBRARY_PATH
11751   shlibpath_overrides_runpath=no
11752   hardcode_into_libs=yes
11753   dynamic_linker='ldqnx.so'
11754   ;;
11755
11756 openbsd* | bitrig*)
11757   version_type=sunos
11758   sys_lib_dlsearch_path_spec=/usr/lib
11759   need_lib_prefix=no
11760   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11761     need_version=no
11762   else
11763     need_version=yes
11764   fi
11765   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11766   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11767   shlibpath_var=LD_LIBRARY_PATH
11768   shlibpath_overrides_runpath=yes
11769   ;;
11770
11771 os2*)
11772   libname_spec='$name'
11773   version_type=windows
11774   shrext_cmds=.dll
11775   need_version=no
11776   need_lib_prefix=no
11777   # OS/2 can only load a DLL with a base name of 8 characters or less.
11778   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11779     v=$($ECHO $release$versuffix | tr -d .-);
11780     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11781     $ECHO $n$v`$shared_ext'
11782   library_names_spec='${libname}_dll.$libext'
11783   dynamic_linker='OS/2 ld.exe'
11784   shlibpath_var=BEGINLIBPATH
11785   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11786   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11787   postinstall_cmds='base_file=`basename \$file`~
11788     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11789     dldir=$destdir/`dirname \$dlpath`~
11790     test -d \$dldir || mkdir -p \$dldir~
11791     $install_prog $dir/$dlname \$dldir/$dlname~
11792     chmod a+x \$dldir/$dlname~
11793     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11794       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11795     fi'
11796   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11797     dlpath=$dir/\$dldll~
11798     $RM \$dlpath'
11799   ;;
11800
11801 osf3* | osf4* | osf5*)
11802   version_type=osf
11803   need_lib_prefix=no
11804   need_version=no
11805   soname_spec='$libname$release$shared_ext$major'
11806   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807   shlibpath_var=LD_LIBRARY_PATH
11808   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11809   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11810   ;;
11811
11812 rdos*)
11813   dynamic_linker=no
11814   ;;
11815
11816 solaris*)
11817   version_type=linux # correct to gnu/linux during the next big refactor
11818   need_lib_prefix=no
11819   need_version=no
11820   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821   soname_spec='$libname$release$shared_ext$major'
11822   shlibpath_var=LD_LIBRARY_PATH
11823   shlibpath_overrides_runpath=yes
11824   hardcode_into_libs=yes
11825   # ldd complains unless libraries are executable
11826   postinstall_cmds='chmod +x $lib'
11827   ;;
11828
11829 sunos4*)
11830   version_type=sunos
11831   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11832   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11833   shlibpath_var=LD_LIBRARY_PATH
11834   shlibpath_overrides_runpath=yes
11835   if test yes = "$with_gnu_ld"; then
11836     need_lib_prefix=no
11837   fi
11838   need_version=yes
11839   ;;
11840
11841 sysv4 | sysv4.3*)
11842   version_type=linux # correct to gnu/linux during the next big refactor
11843   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11844   soname_spec='$libname$release$shared_ext$major'
11845   shlibpath_var=LD_LIBRARY_PATH
11846   case $host_vendor in
11847     sni)
11848       shlibpath_overrides_runpath=no
11849       need_lib_prefix=no
11850       runpath_var=LD_RUN_PATH
11851       ;;
11852     siemens)
11853       need_lib_prefix=no
11854       ;;
11855     motorola)
11856       need_lib_prefix=no
11857       need_version=no
11858       shlibpath_overrides_runpath=no
11859       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11860       ;;
11861   esac
11862   ;;
11863
11864 sysv4*MP*)
11865   if test -d /usr/nec; then
11866     version_type=linux # correct to gnu/linux during the next big refactor
11867     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11868     soname_spec='$libname$shared_ext.$major'
11869     shlibpath_var=LD_LIBRARY_PATH
11870   fi
11871   ;;
11872
11873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11874   version_type=sco
11875   need_lib_prefix=no
11876   need_version=no
11877   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11878   soname_spec='$libname$release$shared_ext$major'
11879   shlibpath_var=LD_LIBRARY_PATH
11880   shlibpath_overrides_runpath=yes
11881   hardcode_into_libs=yes
11882   if test yes = "$with_gnu_ld"; then
11883     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11884   else
11885     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11886     case $host_os in
11887       sco3.2v5*)
11888         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11889         ;;
11890     esac
11891   fi
11892   sys_lib_dlsearch_path_spec='/usr/lib'
11893   ;;
11894
11895 tpf*)
11896   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11897   version_type=linux # correct to gnu/linux during the next big refactor
11898   need_lib_prefix=no
11899   need_version=no
11900   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11901   shlibpath_var=LD_LIBRARY_PATH
11902   shlibpath_overrides_runpath=no
11903   hardcode_into_libs=yes
11904   ;;
11905
11906 uts4*)
11907   version_type=linux # correct to gnu/linux during the next big refactor
11908   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11909   soname_spec='$libname$release$shared_ext$major'
11910   shlibpath_var=LD_LIBRARY_PATH
11911   ;;
11912
11913 *)
11914   dynamic_linker=no
11915   ;;
11916 esac
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11918 $as_echo "$dynamic_linker" >&6; }
11919 test no = "$dynamic_linker" && can_build_shared=no
11920
11921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11922 if test yes = "$GCC"; then
11923   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11924 fi
11925
11926 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11927   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11928 fi
11929
11930 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11931   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11932 fi
11933
11934 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11935 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11936
11937 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11938 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11939
11940 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11941 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12040 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12041 hardcode_action=
12042 if test -n "$hardcode_libdir_flag_spec" ||
12043    test -n "$runpath_var" ||
12044    test yes = "$hardcode_automatic"; then
12045
12046   # We can hardcode non-existent directories.
12047   if test no != "$hardcode_direct" &&
12048      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12049      # have to relink, otherwise we might link with an installed library
12050      # when we should be linking with a yet-to-be-installed one
12051      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12052      test no != "$hardcode_minus_L"; then
12053     # Linking always hardcodes the temporary library directory.
12054     hardcode_action=relink
12055   else
12056     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12057     hardcode_action=immediate
12058   fi
12059 else
12060   # We cannot hardcode anything, or else we can only hardcode existing
12061   # directories.
12062   hardcode_action=unsupported
12063 fi
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12065 $as_echo "$hardcode_action" >&6; }
12066
12067 if test relink = "$hardcode_action" ||
12068    test yes = "$inherit_rpath"; then
12069   # Fast installation is not supported
12070   enable_fast_install=no
12071 elif test yes = "$shlibpath_overrides_runpath" ||
12072      test no = "$enable_shared"; then
12073   # Fast installation is not necessary
12074   enable_fast_install=needless
12075 fi
12076
12077
12078
12079
12080
12081
12082   if test yes != "$enable_dlopen"; then
12083   enable_dlopen=unknown
12084   enable_dlopen_self=unknown
12085   enable_dlopen_self_static=unknown
12086 else
12087   lt_cv_dlopen=no
12088   lt_cv_dlopen_libs=
12089
12090   case $host_os in
12091   beos*)
12092     lt_cv_dlopen=load_add_on
12093     lt_cv_dlopen_libs=
12094     lt_cv_dlopen_self=yes
12095     ;;
12096
12097   mingw* | pw32* | cegcc*)
12098     lt_cv_dlopen=LoadLibrary
12099     lt_cv_dlopen_libs=
12100     ;;
12101
12102   cygwin*)
12103     lt_cv_dlopen=dlopen
12104     lt_cv_dlopen_libs=
12105     ;;
12106
12107   darwin*)
12108     # if libdl is installed we need to link against it
12109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12110 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12111 if ${ac_cv_lib_dl_dlopen+:} false; then :
12112   $as_echo_n "(cached) " >&6
12113 else
12114   ac_check_lib_save_LIBS=$LIBS
12115 LIBS="-ldl  $LIBS"
12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h.  */
12118
12119 /* Override any GCC internal prototype to avoid an error.
12120    Use char because int might match the return type of a GCC
12121    builtin and then its argument prototype would still apply.  */
12122 #ifdef __cplusplus
12123 extern "C"
12124 #endif
12125 char dlopen ();
12126 int
12127 main ()
12128 {
12129 return dlopen ();
12130   ;
12131   return 0;
12132 }
12133 _ACEOF
12134 if ac_fn_c_try_link "$LINENO"; then :
12135   ac_cv_lib_dl_dlopen=yes
12136 else
12137   ac_cv_lib_dl_dlopen=no
12138 fi
12139 rm -f core conftest.err conftest.$ac_objext \
12140     conftest$ac_exeext conftest.$ac_ext
12141 LIBS=$ac_check_lib_save_LIBS
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12144 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12145 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12146   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12147 else
12148
12149     lt_cv_dlopen=dyld
12150     lt_cv_dlopen_libs=
12151     lt_cv_dlopen_self=yes
12152
12153 fi
12154
12155     ;;
12156
12157   tpf*)
12158     # Don't try to run any link tests for TPF.  We know it's impossible
12159     # because TPF is a cross-compiler, and we know how we open DSOs.
12160     lt_cv_dlopen=dlopen
12161     lt_cv_dlopen_libs=
12162     lt_cv_dlopen_self=no
12163     ;;
12164
12165   *)
12166     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12167 if test "x$ac_cv_func_shl_load" = xyes; then :
12168   lt_cv_dlopen=shl_load
12169 else
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12171 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12172 if ${ac_cv_lib_dld_shl_load+:} false; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-ldld  $LIBS"
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h.  */
12179
12180 /* Override any GCC internal prototype to avoid an error.
12181    Use char because int might match the return type of a GCC
12182    builtin and then its argument prototype would still apply.  */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char shl_load ();
12187 int
12188 main ()
12189 {
12190 return shl_load ();
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196   ac_cv_lib_dld_shl_load=yes
12197 else
12198   ac_cv_lib_dld_shl_load=no
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201     conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12205 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12206 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12207   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12208 else
12209   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12210 if test "x$ac_cv_func_dlopen" = xyes; then :
12211   lt_cv_dlopen=dlopen
12212 else
12213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12214 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12215 if ${ac_cv_lib_dl_dlopen+:} false; then :
12216   $as_echo_n "(cached) " >&6
12217 else
12218   ac_check_lib_save_LIBS=$LIBS
12219 LIBS="-ldl  $LIBS"
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h.  */
12222
12223 /* Override any GCC internal prototype to avoid an error.
12224    Use char because int might match the return type of a GCC
12225    builtin and then its argument prototype would still apply.  */
12226 #ifdef __cplusplus
12227 extern "C"
12228 #endif
12229 char dlopen ();
12230 int
12231 main ()
12232 {
12233 return dlopen ();
12234   ;
12235   return 0;
12236 }
12237 _ACEOF
12238 if ac_fn_c_try_link "$LINENO"; then :
12239   ac_cv_lib_dl_dlopen=yes
12240 else
12241   ac_cv_lib_dl_dlopen=no
12242 fi
12243 rm -f core conftest.err conftest.$ac_objext \
12244     conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12246 fi
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12248 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12249 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12250   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12251 else
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12253 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12254 if ${ac_cv_lib_svld_dlopen+:} false; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257   ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-lsvld  $LIBS"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h.  */
12261
12262 /* Override any GCC internal prototype to avoid an error.
12263    Use char because int might match the return type of a GCC
12264    builtin and then its argument prototype would still apply.  */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char dlopen ();
12269 int
12270 main ()
12271 {
12272 return dlopen ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 if ac_fn_c_try_link "$LINENO"; then :
12278   ac_cv_lib_svld_dlopen=yes
12279 else
12280   ac_cv_lib_svld_dlopen=no
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext \
12283     conftest$ac_exeext conftest.$ac_ext
12284 LIBS=$ac_check_lib_save_LIBS
12285 fi
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12287 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12288 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12289   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12290 else
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12292 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12293 if ${ac_cv_lib_dld_dld_link+:} false; then :
12294   $as_echo_n "(cached) " >&6
12295 else
12296   ac_check_lib_save_LIBS=$LIBS
12297 LIBS="-ldld  $LIBS"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h.  */
12300
12301 /* Override any GCC internal prototype to avoid an error.
12302    Use char because int might match the return type of a GCC
12303    builtin and then its argument prototype would still apply.  */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char dld_link ();
12308 int
12309 main ()
12310 {
12311 return dld_link ();
12312   ;
12313   return 0;
12314 }
12315 _ACEOF
12316 if ac_fn_c_try_link "$LINENO"; then :
12317   ac_cv_lib_dld_dld_link=yes
12318 else
12319   ac_cv_lib_dld_dld_link=no
12320 fi
12321 rm -f core conftest.err conftest.$ac_objext \
12322     conftest$ac_exeext conftest.$ac_ext
12323 LIBS=$ac_check_lib_save_LIBS
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12326 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12327 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12328   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12329 fi
12330
12331
12332 fi
12333
12334
12335 fi
12336
12337
12338 fi
12339
12340
12341 fi
12342
12343
12344 fi
12345
12346     ;;
12347   esac
12348
12349   if test no = "$lt_cv_dlopen"; then
12350     enable_dlopen=no
12351   else
12352     enable_dlopen=yes
12353   fi
12354
12355   case $lt_cv_dlopen in
12356   dlopen)
12357     save_CPPFLAGS=$CPPFLAGS
12358     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12359
12360     save_LDFLAGS=$LDFLAGS
12361     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12362
12363     save_LIBS=$LIBS
12364     LIBS="$lt_cv_dlopen_libs $LIBS"
12365
12366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12367 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12368 if ${lt_cv_dlopen_self+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371           if test yes = "$cross_compiling"; then :
12372   lt_cv_dlopen_self=cross
12373 else
12374   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12375   lt_status=$lt_dlunknown
12376   cat > conftest.$ac_ext <<_LT_EOF
12377 #line $LINENO "configure"
12378 #include "confdefs.h"
12379
12380 #if HAVE_DLFCN_H
12381 #include <dlfcn.h>
12382 #endif
12383
12384 #include <stdio.h>
12385
12386 #ifdef RTLD_GLOBAL
12387 #  define LT_DLGLOBAL           RTLD_GLOBAL
12388 #else
12389 #  ifdef DL_GLOBAL
12390 #    define LT_DLGLOBAL         DL_GLOBAL
12391 #  else
12392 #    define LT_DLGLOBAL         0
12393 #  endif
12394 #endif
12395
12396 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12397    find out it does not work in some platform. */
12398 #ifndef LT_DLLAZY_OR_NOW
12399 #  ifdef RTLD_LAZY
12400 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12401 #  else
12402 #    ifdef DL_LAZY
12403 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12404 #    else
12405 #      ifdef RTLD_NOW
12406 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12407 #      else
12408 #        ifdef DL_NOW
12409 #          define LT_DLLAZY_OR_NOW      DL_NOW
12410 #        else
12411 #          define LT_DLLAZY_OR_NOW      0
12412 #        endif
12413 #      endif
12414 #    endif
12415 #  endif
12416 #endif
12417
12418 /* When -fvisibility=hidden is used, assume the code has been annotated
12419    correspondingly for the symbols needed.  */
12420 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12421 int fnord () __attribute__((visibility("default")));
12422 #endif
12423
12424 int fnord () { return 42; }
12425 int main ()
12426 {
12427   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12428   int status = $lt_dlunknown;
12429
12430   if (self)
12431     {
12432       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12433       else
12434         {
12435           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12436           else puts (dlerror ());
12437         }
12438       /* dlclose (self); */
12439     }
12440   else
12441     puts (dlerror ());
12442
12443   return status;
12444 }
12445 _LT_EOF
12446   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12447   (eval $ac_link) 2>&5
12448   ac_status=$?
12449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12450   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12451     (./conftest; exit; ) >&5 2>/dev/null
12452     lt_status=$?
12453     case x$lt_status in
12454       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12455       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12456       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12457     esac
12458   else :
12459     # compilation failed
12460     lt_cv_dlopen_self=no
12461   fi
12462 fi
12463 rm -fr conftest*
12464
12465
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12468 $as_echo "$lt_cv_dlopen_self" >&6; }
12469
12470     if test yes = "$lt_cv_dlopen_self"; then
12471       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12472       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12473 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12474 if ${lt_cv_dlopen_self_static+:} false; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477           if test yes = "$cross_compiling"; then :
12478   lt_cv_dlopen_self_static=cross
12479 else
12480   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12481   lt_status=$lt_dlunknown
12482   cat > conftest.$ac_ext <<_LT_EOF
12483 #line $LINENO "configure"
12484 #include "confdefs.h"
12485
12486 #if HAVE_DLFCN_H
12487 #include <dlfcn.h>
12488 #endif
12489
12490 #include <stdio.h>
12491
12492 #ifdef RTLD_GLOBAL
12493 #  define LT_DLGLOBAL           RTLD_GLOBAL
12494 #else
12495 #  ifdef DL_GLOBAL
12496 #    define LT_DLGLOBAL         DL_GLOBAL
12497 #  else
12498 #    define LT_DLGLOBAL         0
12499 #  endif
12500 #endif
12501
12502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12503    find out it does not work in some platform. */
12504 #ifndef LT_DLLAZY_OR_NOW
12505 #  ifdef RTLD_LAZY
12506 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12507 #  else
12508 #    ifdef DL_LAZY
12509 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12510 #    else
12511 #      ifdef RTLD_NOW
12512 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12513 #      else
12514 #        ifdef DL_NOW
12515 #          define LT_DLLAZY_OR_NOW      DL_NOW
12516 #        else
12517 #          define LT_DLLAZY_OR_NOW      0
12518 #        endif
12519 #      endif
12520 #    endif
12521 #  endif
12522 #endif
12523
12524 /* When -fvisibility=hidden is used, assume the code has been annotated
12525    correspondingly for the symbols needed.  */
12526 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12527 int fnord () __attribute__((visibility("default")));
12528 #endif
12529
12530 int fnord () { return 42; }
12531 int main ()
12532 {
12533   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12534   int status = $lt_dlunknown;
12535
12536   if (self)
12537     {
12538       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12539       else
12540         {
12541           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12542           else puts (dlerror ());
12543         }
12544       /* dlclose (self); */
12545     }
12546   else
12547     puts (dlerror ());
12548
12549   return status;
12550 }
12551 _LT_EOF
12552   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12553   (eval $ac_link) 2>&5
12554   ac_status=$?
12555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12556   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12557     (./conftest; exit; ) >&5 2>/dev/null
12558     lt_status=$?
12559     case x$lt_status in
12560       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12561       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12562       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12563     esac
12564   else :
12565     # compilation failed
12566     lt_cv_dlopen_self_static=no
12567   fi
12568 fi
12569 rm -fr conftest*
12570
12571
12572 fi
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12574 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12575     fi
12576
12577     CPPFLAGS=$save_CPPFLAGS
12578     LDFLAGS=$save_LDFLAGS
12579     LIBS=$save_LIBS
12580     ;;
12581   esac
12582
12583   case $lt_cv_dlopen_self in
12584   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12585   *) enable_dlopen_self=unknown ;;
12586   esac
12587
12588   case $lt_cv_dlopen_self_static in
12589   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12590   *) enable_dlopen_self_static=unknown ;;
12591   esac
12592 fi
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610 striplib=
12611 old_striplib=
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12613 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12614 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12615   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12616   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618 $as_echo "yes" >&6; }
12619 else
12620 # FIXME - insert some real tests, host_os isn't really good enough
12621   case $host_os in
12622   darwin*)
12623     if test -n "$STRIP"; then
12624       striplib="$STRIP -x"
12625       old_striplib="$STRIP -S"
12626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12627 $as_echo "yes" >&6; }
12628     else
12629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12631     fi
12632     ;;
12633   *)
12634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636     ;;
12637   esac
12638 fi
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651   # Report what library types will actually be built
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12653 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12655 $as_echo "$can_build_shared" >&6; }
12656
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12658 $as_echo_n "checking whether to build shared libraries... " >&6; }
12659   test no = "$can_build_shared" && enable_shared=no
12660
12661   # On AIX, shared libraries and static libraries use the same namespace, and
12662   # are all built from PIC.
12663   case $host_os in
12664   aix3*)
12665     test yes = "$enable_shared" && enable_static=no
12666     if test -n "$RANLIB"; then
12667       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12668       postinstall_cmds='$RANLIB $lib'
12669     fi
12670     ;;
12671
12672   aix[4-9]*)
12673     if test ia64 != "$host_cpu"; then
12674       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12675       yes,aix,yes) ;;                   # shared object as lib.so file only
12676       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12677       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12678       esac
12679     fi
12680     ;;
12681   esac
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12683 $as_echo "$enable_shared" >&6; }
12684
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12686 $as_echo_n "checking whether to build static libraries... " >&6; }
12687   # Make sure either enable_shared or enable_static is yes.
12688   test yes = "$enable_shared" || enable_static=yes
12689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12690 $as_echo "$enable_static" >&6; }
12691
12692
12693
12694
12695 fi
12696 ac_ext=c
12697 ac_cpp='$CPP $CPPFLAGS'
12698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701
12702 CC=$lt_save_CC
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718         ac_config_commands="$ac_config_commands libtool"
12719
12720
12721
12722
12723 # Only expand once:
12724
12725
12726
12727
12728   CFLAG_VISIBILITY=
12729   HAVE_VISIBILITY=0
12730   if test -n "$GCC"; then
12731                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
12732 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
12733     if ${gl_cv_cc_vis_werror+:} false; then :
12734   $as_echo_n "(cached) " >&6
12735 else
12736
12737       gl_save_CFLAGS="$CFLAGS"
12738       CFLAGS="$CFLAGS -Werror"
12739       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h.  */
12741
12742 int
12743 main ()
12744 {
12745
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 if ac_fn_c_try_compile "$LINENO"; then :
12751   gl_cv_cc_vis_werror=yes
12752 else
12753   gl_cv_cc_vis_werror=no
12754 fi
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756       CFLAGS="$gl_save_CFLAGS"
12757 fi
12758
12759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
12760 $as_echo "$gl_cv_cc_vis_werror" >&6; }
12761         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12762 $as_echo_n "checking for simple visibility declarations... " >&6; }
12763     if ${gl_cv_cc_visibility+:} false; then :
12764   $as_echo_n "(cached) " >&6
12765 else
12766
12767       gl_save_CFLAGS="$CFLAGS"
12768       CFLAGS="$CFLAGS -fvisibility=hidden"
12769                                     if test $gl_cv_cc_vis_werror = yes; then
12770         CFLAGS="$CFLAGS -Werror"
12771       fi
12772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h.  */
12774 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12775              extern __attribute__((__visibility__("default"))) int exportedvar;
12776              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12777              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12778              void dummyfunc (void) {}
12779
12780 int
12781 main ()
12782 {
12783
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 if ac_fn_c_try_compile "$LINENO"; then :
12789   gl_cv_cc_visibility=yes
12790 else
12791   gl_cv_cc_visibility=no
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794       CFLAGS="$gl_save_CFLAGS"
12795 fi
12796
12797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12798 $as_echo "$gl_cv_cc_visibility" >&6; }
12799     if test $gl_cv_cc_visibility = yes; then
12800       CFLAG_VISIBILITY="-fvisibility=hidden"
12801       HAVE_VISIBILITY=1
12802     fi
12803   fi
12804
12805
12806
12807 cat >>confdefs.h <<_ACEOF
12808 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12809 _ACEOF
12810
12811
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
12813 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12814 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
12815   $as_echo_n "(cached) " >&6
12816 else
12817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h.  */
12819 #include <sys/types.h>
12820 int
12821 main ()
12822 {
12823 return makedev(0, 0);
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 if ac_fn_c_try_link "$LINENO"; then :
12829   ac_cv_header_sys_types_h_makedev=yes
12830 else
12831   ac_cv_header_sys_types_h_makedev=no
12832 fi
12833 rm -f core conftest.err conftest.$ac_objext \
12834     conftest$ac_exeext conftest.$ac_ext
12835
12836 fi
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
12838 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12839
12840 if test $ac_cv_header_sys_types_h_makedev = no; then
12841 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12842 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
12843
12844 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12845
12846 fi
12847
12848
12849
12850   if test $ac_cv_header_sys_mkdev_h = no; then
12851     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12852 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
12853
12854 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12855
12856 fi
12857
12858
12859   fi
12860 fi
12861
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12863 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12864 if ${ac_cv_header_sys_wait_h+:} false; then :
12865   $as_echo_n "(cached) " >&6
12866 else
12867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h.  */
12869 #include <sys/types.h>
12870 #include <sys/wait.h>
12871 #ifndef WEXITSTATUS
12872 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12873 #endif
12874 #ifndef WIFEXITED
12875 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12876 #endif
12877
12878 int
12879 main ()
12880 {
12881   int s;
12882   wait (&s);
12883   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 if ac_fn_c_try_compile "$LINENO"; then :
12889   ac_cv_header_sys_wait_h=yes
12890 else
12891   ac_cv_header_sys_wait_h=no
12892 fi
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894 fi
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12896 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12897 if test $ac_cv_header_sys_wait_h = yes; then
12898
12899 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12900
12901 fi
12902
12903 for ac_header in stdint.h fcntl.h inttypes.h unistd.h
12904 do :
12905   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12906 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12908   cat >>confdefs.h <<_ACEOF
12909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12910 _ACEOF
12911
12912 fi
12913
12914 done
12915
12916 for ac_header in utime.h wchar.h wctype.h
12917 do :
12918   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12919 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12921   cat >>confdefs.h <<_ACEOF
12922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12923 _ACEOF
12924
12925 fi
12926
12927 done
12928
12929 for ac_header in getopt.h err.h xlocale.h
12930 do :
12931   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12932 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12934   cat >>confdefs.h <<_ACEOF
12935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936 _ACEOF
12937
12938 fi
12939
12940 done
12941
12942 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
12943 do :
12944   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12947   cat >>confdefs.h <<_ACEOF
12948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12949 _ACEOF
12950
12951 fi
12952
12953 done
12954
12955 if test "$enable_zlib" != "no"; then
12956   for ac_header in zlib.h
12957 do :
12958   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12959 if test "x$ac_cv_header_zlib_h" = xyes; then :
12960   cat >>confdefs.h <<_ACEOF
12961 #define HAVE_ZLIB_H 1
12962 _ACEOF
12963
12964 fi
12965
12966 done
12967
12968 fi
12969 if test "$enable_bzlib" != "no"; then
12970   for ac_header in bzlib.h
12971 do :
12972   ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
12973 if test "x$ac_cv_header_bzlib_h" = xyes; then :
12974   cat >>confdefs.h <<_ACEOF
12975 #define HAVE_BZLIB_H 1
12976 _ACEOF
12977
12978 fi
12979
12980 done
12981
12982 fi
12983 if test "$enable_xzlib" != "no"; then
12984   for ac_header in lzma.h
12985 do :
12986   ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
12987 if test "x$ac_cv_header_lzma_h" = xyes; then :
12988   cat >>confdefs.h <<_ACEOF
12989 #define HAVE_LZMA_H 1
12990 _ACEOF
12991
12992 fi
12993
12994 done
12995
12996 fi
12997 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
12998 "
12999 if test "x$ac_cv_type_sig_t" = xyes; then :
13000
13001 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
13002
13003 fi
13004
13005
13006 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13007 if test "x$ac_cv_type_off_t" = xyes; then :
13008
13009 else
13010
13011 cat >>confdefs.h <<_ACEOF
13012 #define off_t long int
13013 _ACEOF
13014
13015 fi
13016
13017 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13018 if test "x$ac_cv_type_size_t" = xyes; then :
13019
13020 else
13021
13022 cat >>confdefs.h <<_ACEOF
13023 #define size_t unsigned int
13024 _ACEOF
13025
13026 fi
13027
13028 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13029 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
13030
13031 cat >>confdefs.h <<_ACEOF
13032 #define HAVE_STRUCT_STAT_ST_RDEV 1
13033 _ACEOF
13034
13035
13036 fi
13037
13038
13039 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13040 "
13041 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
13042
13043 cat >>confdefs.h <<_ACEOF
13044 #define HAVE_STRUCT_TM_TM_GMTOFF 1
13045 _ACEOF
13046
13047
13048 fi
13049
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13051 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13052 if ${ac_cv_struct_tm+:} false; then :
13053   $as_echo_n "(cached) " >&6
13054 else
13055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h.  */
13057 #include <sys/types.h>
13058 #include <time.h>
13059
13060 int
13061 main ()
13062 {
13063 struct tm tm;
13064                                      int *p = &tm.tm_sec;
13065                                      return !p;
13066   ;
13067   return 0;
13068 }
13069 _ACEOF
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071   ac_cv_struct_tm=time.h
13072 else
13073   ac_cv_struct_tm=sys/time.h
13074 fi
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 fi
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13078 $as_echo "$ac_cv_struct_tm" >&6; }
13079 if test $ac_cv_struct_tm = sys/time.h; then
13080
13081 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13082
13083 fi
13084
13085 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13086 #include <$ac_cv_struct_tm>
13087
13088 "
13089 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13090
13091 cat >>confdefs.h <<_ACEOF
13092 #define HAVE_STRUCT_TM_TM_ZONE 1
13093 _ACEOF
13094
13095
13096 fi
13097
13098 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13099
13100 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13101
13102 else
13103   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13104 "
13105 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13106   ac_have_decl=1
13107 else
13108   ac_have_decl=0
13109 fi
13110
13111 cat >>confdefs.h <<_ACEOF
13112 #define HAVE_DECL_TZNAME $ac_have_decl
13113 _ACEOF
13114
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13116 $as_echo_n "checking for tzname... " >&6; }
13117 if ${ac_cv_var_tzname+:} false; then :
13118   $as_echo_n "(cached) " >&6
13119 else
13120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h.  */
13122 #include <time.h>
13123 #if !HAVE_DECL_TZNAME
13124 extern char *tzname[];
13125 #endif
13126
13127 int
13128 main ()
13129 {
13130 return tzname[0][0];
13131   ;
13132   return 0;
13133 }
13134 _ACEOF
13135 if ac_fn_c_try_link "$LINENO"; then :
13136   ac_cv_var_tzname=yes
13137 else
13138   ac_cv_var_tzname=no
13139 fi
13140 rm -f core conftest.err conftest.$ac_objext \
13141     conftest$ac_exeext conftest.$ac_ext
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13144 $as_echo "$ac_cv_var_tzname" >&6; }
13145   if test $ac_cv_var_tzname = yes; then
13146
13147 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13148
13149   fi
13150 fi
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13153 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
13154 if ${ac_cv_struct_tm_zone+:} false; then :
13155   $as_echo_n "(cached) " >&6
13156 else
13157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h.  */
13159 #include <sys/types.h>
13160 #include <$ac_cv_struct_tm>
13161 int
13162 main ()
13163 {
13164 struct tm tm; tm.tm_zone;
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_compile "$LINENO"; then :
13170   ac_cv_struct_tm_zone=yes
13171 else
13172   ac_cv_struct_tm_zone=no
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13175 fi
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13177 $as_echo "$ac_cv_struct_tm_zone" >&6; }
13178 if test "$ac_cv_struct_tm_zone" = yes; then
13179
13180 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13181
13182 fi
13183
13184 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13185 # consider it declared and we won't give our own extern.
13186 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13187 "
13188 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13189   ac_have_decl=1
13190 else
13191   ac_have_decl=0
13192 fi
13193
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_DECL_TZNAME $ac_have_decl
13196 _ACEOF
13197
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13199 $as_echo_n "checking for tzname... " >&6; }
13200 if ${ac_cv_var_tzname+:} false; then :
13201   $as_echo_n "(cached) " >&6
13202 else
13203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h.  */
13205 #include <time.h>
13206 int
13207 main ()
13208 {
13209 #if !HAVE_DECL_TZNAME
13210 extern char *tzname[];
13211 #endif
13212 return tzname[0][0];
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 if ac_fn_c_try_link "$LINENO"; then :
13218   ac_cv_var_tzname=yes
13219 else
13220   ac_cv_var_tzname=no
13221 fi
13222 rm -f core conftest.err conftest.$ac_objext \
13223     conftest$ac_exeext conftest.$ac_ext
13224 fi
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13226 $as_echo "$ac_cv_var_tzname" >&6; }
13227   if test $ac_cv_var_tzname = yes; then
13228
13229 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13230
13231   fi
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13234 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13235 if ${ac_cv_struct_tm_isdst+:} false; then :
13236   $as_echo_n "(cached) " >&6
13237 else
13238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h.  */
13240 #include <sys/types.h>
13241 #include <$ac_cv_struct_tm>
13242 int
13243 main ()
13244 {
13245 struct tm tm; tm.tm_isdst;
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_compile "$LINENO"; then :
13251   ac_cv_struct_tm_isdst=yes
13252 else
13253   ac_cv_struct_tm_isdst=no
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256 fi
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13258 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
13259 if test "$ac_cv_struct_tm_isdst" = yes; then
13260
13261 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13262
13263 fi
13264
13265
13266 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13267 "
13268 if test "x$ac_cv_have_decl_daylight" = xyes; then :
13269   ac_have_decl=1
13270 else
13271   ac_have_decl=0
13272 fi
13273
13274 cat >>confdefs.h <<_ACEOF
13275 #define HAVE_DECL_DAYLIGHT $ac_have_decl
13276 _ACEOF
13277
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13279 $as_echo_n "checking for daylight... " >&6; }
13280 if ${ac_cv_var_daylight+:} false; then :
13281   $as_echo_n "(cached) " >&6
13282 else
13283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h.  */
13285 #include <time.h>
13286 int
13287 main ()
13288 {
13289 #if !HAVE_DECL_DAYLIGHT
13290 extern int daylight;
13291 #endif
13292 atoi(daylight);
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_link "$LINENO"; then :
13298   ac_cv_var_daylight=yes
13299 else
13300   ac_cv_var_daylight=no
13301 fi
13302 rm -f core conftest.err conftest.$ac_objext \
13303     conftest$ac_exeext conftest.$ac_ext
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13306 $as_echo "$ac_cv_var_daylight" >&6; }
13307   if test $ac_cv_var_daylight = yes; then
13308
13309 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13310
13311   fi
13312
13313 # Check whether --enable-largefile was given.
13314 if test "${enable_largefile+set}" = set; then :
13315   enableval=$enable_largefile;
13316 fi
13317
13318 if test "$enable_largefile" != no; then
13319
13320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13321 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13322 if ${ac_cv_sys_largefile_CC+:} false; then :
13323   $as_echo_n "(cached) " >&6
13324 else
13325   ac_cv_sys_largefile_CC=no
13326      if test "$GCC" != yes; then
13327        ac_save_CC=$CC
13328        while :; do
13329          # IRIX 6.2 and later do not support large files by default,
13330          # so use the C compiler's -n32 option if that helps.
13331          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h.  */
13333 #include <sys/types.h>
13334  /* Check that off_t can represent 2**63 - 1 correctly.
13335     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13336     since some C++ compilers masquerading as C compilers
13337     incorrectly reject 9223372036854775807.  */
13338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13339   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13340                        && LARGE_OFF_T % 2147483647 == 1)
13341                       ? 1 : -1];
13342 int
13343 main ()
13344 {
13345
13346   ;
13347   return 0;
13348 }
13349 _ACEOF
13350          if ac_fn_c_try_compile "$LINENO"; then :
13351   break
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext
13354          CC="$CC -n32"
13355          if ac_fn_c_try_compile "$LINENO"; then :
13356   ac_cv_sys_largefile_CC=' -n32'; break
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext
13359          break
13360        done
13361        CC=$ac_save_CC
13362        rm -f conftest.$ac_ext
13363     fi
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13366 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13367   if test "$ac_cv_sys_largefile_CC" != no; then
13368     CC=$CC$ac_cv_sys_largefile_CC
13369   fi
13370
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13372 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13373 if ${ac_cv_sys_file_offset_bits+:} false; then :
13374   $as_echo_n "(cached) " >&6
13375 else
13376   while :; do
13377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h.  */
13379 #include <sys/types.h>
13380  /* Check that off_t can represent 2**63 - 1 correctly.
13381     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13382     since some C++ compilers masquerading as C compilers
13383     incorrectly reject 9223372036854775807.  */
13384 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13385   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13386                        && LARGE_OFF_T % 2147483647 == 1)
13387                       ? 1 : -1];
13388 int
13389 main ()
13390 {
13391
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 if ac_fn_c_try_compile "$LINENO"; then :
13397   ac_cv_sys_file_offset_bits=no; break
13398 fi
13399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h.  */
13402 #define _FILE_OFFSET_BITS 64
13403 #include <sys/types.h>
13404  /* Check that off_t can represent 2**63 - 1 correctly.
13405     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13406     since some C++ compilers masquerading as C compilers
13407     incorrectly reject 9223372036854775807.  */
13408 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13409   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13410                        && LARGE_OFF_T % 2147483647 == 1)
13411                       ? 1 : -1];
13412 int
13413 main ()
13414 {
13415
13416   ;
13417   return 0;
13418 }
13419 _ACEOF
13420 if ac_fn_c_try_compile "$LINENO"; then :
13421   ac_cv_sys_file_offset_bits=64; break
13422 fi
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424   ac_cv_sys_file_offset_bits=unknown
13425   break
13426 done
13427 fi
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13429 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13430 case $ac_cv_sys_file_offset_bits in #(
13431   no | unknown) ;;
13432   *)
13433 cat >>confdefs.h <<_ACEOF
13434 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13435 _ACEOF
13436 ;;
13437 esac
13438 rm -rf conftest*
13439   if test $ac_cv_sys_file_offset_bits = unknown; then
13440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13441 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13442 if ${ac_cv_sys_large_files+:} false; then :
13443   $as_echo_n "(cached) " >&6
13444 else
13445   while :; do
13446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h.  */
13448 #include <sys/types.h>
13449  /* Check that off_t can represent 2**63 - 1 correctly.
13450     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13451     since some C++ compilers masquerading as C compilers
13452     incorrectly reject 9223372036854775807.  */
13453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13454   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13455                        && LARGE_OFF_T % 2147483647 == 1)
13456                       ? 1 : -1];
13457 int
13458 main ()
13459 {
13460
13461   ;
13462   return 0;
13463 }
13464 _ACEOF
13465 if ac_fn_c_try_compile "$LINENO"; then :
13466   ac_cv_sys_large_files=no; break
13467 fi
13468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h.  */
13471 #define _LARGE_FILES 1
13472 #include <sys/types.h>
13473  /* Check that off_t can represent 2**63 - 1 correctly.
13474     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13475     since some C++ compilers masquerading as C compilers
13476     incorrectly reject 9223372036854775807.  */
13477 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13478   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13479                        && LARGE_OFF_T % 2147483647 == 1)
13480                       ? 1 : -1];
13481 int
13482 main ()
13483 {
13484
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 if ac_fn_c_try_compile "$LINENO"; then :
13490   ac_cv_sys_large_files=1; break
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493   ac_cv_sys_large_files=unknown
13494   break
13495 done
13496 fi
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13498 $as_echo "$ac_cv_sys_large_files" >&6; }
13499 case $ac_cv_sys_large_files in #(
13500   no | unknown) ;;
13501   *)
13502 cat >>confdefs.h <<_ACEOF
13503 #define _LARGE_FILES $ac_cv_sys_large_files
13504 _ACEOF
13505 ;;
13506 esac
13507 rm -rf conftest*
13508   fi
13509
13510
13511 fi
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13514 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13515 if ${ac_cv_sys_largefile_source+:} false; then :
13516   $as_echo_n "(cached) " >&6
13517 else
13518   while :; do
13519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h.  */
13521 #include <sys/types.h> /* for off_t */
13522      #include <stdio.h>
13523 int
13524 main ()
13525 {
13526 int (*fp) (FILE *, off_t, int) = fseeko;
13527      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13528   ;
13529   return 0;
13530 }
13531 _ACEOF
13532 if ac_fn_c_try_link "$LINENO"; then :
13533   ac_cv_sys_largefile_source=no; break
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext \
13536     conftest$ac_exeext conftest.$ac_ext
13537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h.  */
13539 #define _LARGEFILE_SOURCE 1
13540 #include <sys/types.h> /* for off_t */
13541      #include <stdio.h>
13542 int
13543 main ()
13544 {
13545 int (*fp) (FILE *, off_t, int) = fseeko;
13546      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 if ac_fn_c_try_link "$LINENO"; then :
13552   ac_cv_sys_largefile_source=1; break
13553 fi
13554 rm -f core conftest.err conftest.$ac_objext \
13555     conftest$ac_exeext conftest.$ac_ext
13556   ac_cv_sys_largefile_source=unknown
13557   break
13558 done
13559 fi
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13561 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13562 case $ac_cv_sys_largefile_source in #(
13563   no | unknown) ;;
13564   *)
13565 cat >>confdefs.h <<_ACEOF
13566 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13567 _ACEOF
13568 ;;
13569 esac
13570 rm -rf conftest*
13571
13572 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13573 # in glibc 2.1.3, but that breaks too many other things.
13574 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13575 if test $ac_cv_sys_largefile_source != unknown; then
13576
13577 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13578
13579 fi
13580
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13582 $as_echo_n "checking for mbstate_t... " >&6; }
13583 if ${ac_cv_type_mbstate_t+:} false; then :
13584   $as_echo_n "(cached) " >&6
13585 else
13586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h.  */
13588 $ac_includes_default
13589 #           include <wchar.h>
13590 int
13591 main ()
13592 {
13593 mbstate_t x; return sizeof x;
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 if ac_fn_c_try_compile "$LINENO"; then :
13599   ac_cv_type_mbstate_t=yes
13600 else
13601   ac_cv_type_mbstate_t=no
13602 fi
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 fi
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13606 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13607    if test $ac_cv_type_mbstate_t = yes; then
13608
13609 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13610
13611    else
13612
13613 $as_echo "#define mbstate_t int" >>confdefs.h
13614
13615    fi
13616
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
13618 $as_echo_n "checking for struct option in getopt... " >&6; }
13619 if ${ac_cv_struct_option_getopt_h+:} false; then :
13620   $as_echo_n "(cached) " >&6
13621 else
13622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h.  */
13624 #include <getopt.h>
13625 int
13626 main ()
13627 {
13628 struct option op; op.name;
13629   ;
13630   return 0;
13631 }
13632 _ACEOF
13633 if ac_fn_c_try_compile "$LINENO"; then :
13634   ac_cv_struct_option_getopt_h=yes
13635 else
13636   ac_cv_struct_option_getopt_h=no
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
13641 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
13642 if test "$ac_cv_struct_option_getopt_h" = yes; then
13643
13644 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
13645
13646 fi
13647
13648 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13649 if test "x$ac_cv_type_pid_t" = xyes; then :
13650
13651 else
13652
13653 cat >>confdefs.h <<_ACEOF
13654 #define pid_t int
13655 _ACEOF
13656
13657 fi
13658
13659 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13660 case $ac_cv_c_uint8_t in #(
13661   no|yes) ;; #(
13662   *)
13663
13664 $as_echo "#define _UINT8_T 1" >>confdefs.h
13665
13666
13667 cat >>confdefs.h <<_ACEOF
13668 #define uint8_t $ac_cv_c_uint8_t
13669 _ACEOF
13670 ;;
13671   esac
13672
13673 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13674 case $ac_cv_c_uint16_t in #(
13675   no|yes) ;; #(
13676   *)
13677
13678
13679 cat >>confdefs.h <<_ACEOF
13680 #define uint16_t $ac_cv_c_uint16_t
13681 _ACEOF
13682 ;;
13683   esac
13684
13685 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13686 case $ac_cv_c_uint32_t in #(
13687   no|yes) ;; #(
13688   *)
13689
13690 $as_echo "#define _UINT32_T 1" >>confdefs.h
13691
13692
13693 cat >>confdefs.h <<_ACEOF
13694 #define uint32_t $ac_cv_c_uint32_t
13695 _ACEOF
13696 ;;
13697   esac
13698
13699 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13700 case $ac_cv_c_int32_t in #(
13701   no|yes) ;; #(
13702   *)
13703
13704 cat >>confdefs.h <<_ACEOF
13705 #define int32_t $ac_cv_c_int32_t
13706 _ACEOF
13707 ;;
13708 esac
13709
13710 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13711 case $ac_cv_c_uint64_t in #(
13712   no|yes) ;; #(
13713   *)
13714
13715 $as_echo "#define _UINT64_T 1" >>confdefs.h
13716
13717
13718 cat >>confdefs.h <<_ACEOF
13719 #define uint64_t $ac_cv_c_uint64_t
13720 _ACEOF
13721 ;;
13722   esac
13723
13724 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13725 case $ac_cv_c_int64_t in #(
13726   no|yes) ;; #(
13727   *)
13728
13729 cat >>confdefs.h <<_ACEOF
13730 #define int64_t $ac_cv_c_int64_t
13731 _ACEOF
13732 ;;
13733 esac
13734
13735
13736   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13737 if test "x$ac_cv_type_intptr_t" = xyes; then :
13738
13739 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13740
13741 else
13742   for ac_type in 'int' 'long int' 'long long int'; do
13743        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h.  */
13745 $ac_includes_default
13746 int
13747 main ()
13748 {
13749 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13750 test_array [0] = 0;
13751 return test_array [0];
13752
13753   ;
13754   return 0;
13755 }
13756 _ACEOF
13757 if ac_fn_c_try_compile "$LINENO"; then :
13758
13759 cat >>confdefs.h <<_ACEOF
13760 #define intptr_t $ac_type
13761 _ACEOF
13762
13763           ac_type=
13764 fi
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766        test -z "$ac_type" && break
13767      done
13768 fi
13769
13770
13771
13772   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13773 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13774
13775 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13776
13777 else
13778   for ac_type in 'unsigned int' 'unsigned long int' \
13779         'unsigned long long int'; do
13780        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h.  */
13782 $ac_includes_default
13783 int
13784 main ()
13785 {
13786 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13787 test_array [0] = 0;
13788 return test_array [0];
13789
13790   ;
13791   return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_compile "$LINENO"; then :
13795
13796 cat >>confdefs.h <<_ACEOF
13797 #define uintptr_t $ac_type
13798 _ACEOF
13799
13800           ac_type=
13801 fi
13802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803        test -z "$ac_type" && break
13804      done
13805 fi
13806
13807
13808
13809
13810
13811   for ac_header in $ac_header_list
13812 do :
13813   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13814 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13815 "
13816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13817   cat >>confdefs.h <<_ACEOF
13818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13819 _ACEOF
13820
13821 fi
13822
13823 done
13824
13825
13826
13827
13828
13829
13830
13831
13832 for ac_func in getpagesize
13833 do :
13834   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13835 if test "x$ac_cv_func_getpagesize" = xyes; then :
13836   cat >>confdefs.h <<_ACEOF
13837 #define HAVE_GETPAGESIZE 1
13838 _ACEOF
13839
13840 fi
13841 done
13842
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13844 $as_echo_n "checking for working mmap... " >&6; }
13845 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13846   $as_echo_n "(cached) " >&6
13847 else
13848   if test "$cross_compiling" = yes; then :
13849   ac_cv_func_mmap_fixed_mapped=no
13850 else
13851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h.  */
13853 $ac_includes_default
13854 /* malloc might have been renamed as rpl_malloc. */
13855 #undef malloc
13856
13857 /* Thanks to Mike Haertel and Jim Avera for this test.
13858    Here is a matrix of mmap possibilities:
13859         mmap private not fixed
13860         mmap private fixed at somewhere currently unmapped
13861         mmap private fixed at somewhere already mapped
13862         mmap shared not fixed
13863         mmap shared fixed at somewhere currently unmapped
13864         mmap shared fixed at somewhere already mapped
13865    For private mappings, we should verify that changes cannot be read()
13866    back from the file, nor mmap's back from the file at a different
13867    address.  (There have been systems where private was not correctly
13868    implemented like the infamous i386 svr4.0, and systems where the
13869    VM page cache was not coherent with the file system buffer cache
13870    like early versions of FreeBSD and possibly contemporary NetBSD.)
13871    For shared mappings, we should conversely verify that changes get
13872    propagated back to all the places they're supposed to be.
13873
13874    Grep wants private fixed already mapped.
13875    The main things grep needs to know about mmap are:
13876    * does it exist and is it safe to write into the mmap'd area
13877    * how to use it (BSD variants)  */
13878
13879 #include <fcntl.h>
13880 #include <sys/mman.h>
13881
13882 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13883 char *malloc ();
13884 #endif
13885
13886 /* This mess was copied from the GNU getpagesize.h.  */
13887 #ifndef HAVE_GETPAGESIZE
13888 # ifdef _SC_PAGESIZE
13889 #  define getpagesize() sysconf(_SC_PAGESIZE)
13890 # else /* no _SC_PAGESIZE */
13891 #  ifdef HAVE_SYS_PARAM_H
13892 #   include <sys/param.h>
13893 #   ifdef EXEC_PAGESIZE
13894 #    define getpagesize() EXEC_PAGESIZE
13895 #   else /* no EXEC_PAGESIZE */
13896 #    ifdef NBPG
13897 #     define getpagesize() NBPG * CLSIZE
13898 #     ifndef CLSIZE
13899 #      define CLSIZE 1
13900 #     endif /* no CLSIZE */
13901 #    else /* no NBPG */
13902 #     ifdef NBPC
13903 #      define getpagesize() NBPC
13904 #     else /* no NBPC */
13905 #      ifdef PAGESIZE
13906 #       define getpagesize() PAGESIZE
13907 #      endif /* PAGESIZE */
13908 #     endif /* no NBPC */
13909 #    endif /* no NBPG */
13910 #   endif /* no EXEC_PAGESIZE */
13911 #  else /* no HAVE_SYS_PARAM_H */
13912 #   define getpagesize() 8192   /* punt totally */
13913 #  endif /* no HAVE_SYS_PARAM_H */
13914 # endif /* no _SC_PAGESIZE */
13915
13916 #endif /* no HAVE_GETPAGESIZE */
13917
13918 int
13919 main ()
13920 {
13921   char *data, *data2, *data3;
13922   const char *cdata2;
13923   int i, pagesize;
13924   int fd, fd2;
13925
13926   pagesize = getpagesize ();
13927
13928   /* First, make a file with some known garbage in it. */
13929   data = (char *) malloc (pagesize);
13930   if (!data)
13931     return 1;
13932   for (i = 0; i < pagesize; ++i)
13933     *(data + i) = rand ();
13934   umask (0);
13935   fd = creat ("conftest.mmap", 0600);
13936   if (fd < 0)
13937     return 2;
13938   if (write (fd, data, pagesize) != pagesize)
13939     return 3;
13940   close (fd);
13941
13942   /* Next, check that the tail of a page is zero-filled.  File must have
13943      non-zero length, otherwise we risk SIGBUS for entire page.  */
13944   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13945   if (fd2 < 0)
13946     return 4;
13947   cdata2 = "";
13948   if (write (fd2, cdata2, 1) != 1)
13949     return 5;
13950   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13951   if (data2 == MAP_FAILED)
13952     return 6;
13953   for (i = 0; i < pagesize; ++i)
13954     if (*(data2 + i))
13955       return 7;
13956   close (fd2);
13957   if (munmap (data2, pagesize))
13958     return 8;
13959
13960   /* Next, try to mmap the file at a fixed address which already has
13961      something else allocated at it.  If we can, also make sure that
13962      we see the same garbage.  */
13963   fd = open ("conftest.mmap", O_RDWR);
13964   if (fd < 0)
13965     return 9;
13966   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13967                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13968     return 10;
13969   for (i = 0; i < pagesize; ++i)
13970     if (*(data + i) != *(data2 + i))
13971       return 11;
13972
13973   /* Finally, make sure that changes to the mapped area do not
13974      percolate back to the file as seen by read().  (This is a bug on
13975      some variants of i386 svr4.0.)  */
13976   for (i = 0; i < pagesize; ++i)
13977     *(data2 + i) = *(data2 + i) + 1;
13978   data3 = (char *) malloc (pagesize);
13979   if (!data3)
13980     return 12;
13981   if (read (fd, data3, pagesize) != pagesize)
13982     return 13;
13983   for (i = 0; i < pagesize; ++i)
13984     if (*(data + i) != *(data3 + i))
13985       return 14;
13986   close (fd);
13987   return 0;
13988 }
13989 _ACEOF
13990 if ac_fn_c_try_run "$LINENO"; then :
13991   ac_cv_func_mmap_fixed_mapped=yes
13992 else
13993   ac_cv_func_mmap_fixed_mapped=no
13994 fi
13995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13996   conftest.$ac_objext conftest.beam conftest.$ac_ext
13997 fi
13998
13999 fi
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14001 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14002 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14003
14004 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14005
14006 fi
14007 rm -f conftest.mmap conftest.txt
14008
14009 for ac_header in vfork.h
14010 do :
14011   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14012 if test "x$ac_cv_header_vfork_h" = xyes; then :
14013   cat >>confdefs.h <<_ACEOF
14014 #define HAVE_VFORK_H 1
14015 _ACEOF
14016
14017 fi
14018
14019 done
14020
14021 for ac_func in fork vfork
14022 do :
14023   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14024 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14025 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14026   cat >>confdefs.h <<_ACEOF
14027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14028 _ACEOF
14029
14030 fi
14031 done
14032
14033 if test "x$ac_cv_func_fork" = xyes; then
14034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14035 $as_echo_n "checking for working fork... " >&6; }
14036 if ${ac_cv_func_fork_works+:} false; then :
14037   $as_echo_n "(cached) " >&6
14038 else
14039   if test "$cross_compiling" = yes; then :
14040   ac_cv_func_fork_works=cross
14041 else
14042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h.  */
14044 $ac_includes_default
14045 int
14046 main ()
14047 {
14048
14049           /* By Ruediger Kuhlmann. */
14050           return fork () < 0;
14051
14052   ;
14053   return 0;
14054 }
14055 _ACEOF
14056 if ac_fn_c_try_run "$LINENO"; then :
14057   ac_cv_func_fork_works=yes
14058 else
14059   ac_cv_func_fork_works=no
14060 fi
14061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14062   conftest.$ac_objext conftest.beam conftest.$ac_ext
14063 fi
14064
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14067 $as_echo "$ac_cv_func_fork_works" >&6; }
14068
14069 else
14070   ac_cv_func_fork_works=$ac_cv_func_fork
14071 fi
14072 if test "x$ac_cv_func_fork_works" = xcross; then
14073   case $host in
14074     *-*-amigaos* | *-*-msdosdjgpp*)
14075       # Override, as these systems have only a dummy fork() stub
14076       ac_cv_func_fork_works=no
14077       ;;
14078     *)
14079       ac_cv_func_fork_works=yes
14080       ;;
14081   esac
14082   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14083 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14084 fi
14085 ac_cv_func_vfork_works=$ac_cv_func_vfork
14086 if test "x$ac_cv_func_vfork" = xyes; then
14087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14088 $as_echo_n "checking for working vfork... " >&6; }
14089 if ${ac_cv_func_vfork_works+:} false; then :
14090   $as_echo_n "(cached) " >&6
14091 else
14092   if test "$cross_compiling" = yes; then :
14093   ac_cv_func_vfork_works=cross
14094 else
14095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h.  */
14097 /* Thanks to Paul Eggert for this test.  */
14098 $ac_includes_default
14099 #include <sys/wait.h>
14100 #ifdef HAVE_VFORK_H
14101 # include <vfork.h>
14102 #endif
14103 /* On some sparc systems, changes by the child to local and incoming
14104    argument registers are propagated back to the parent.  The compiler
14105    is told about this with #include <vfork.h>, but some compilers
14106    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14107    static variable whose address is put into a register that is
14108    clobbered by the vfork.  */
14109 static void
14110 #ifdef __cplusplus
14111 sparc_address_test (int arg)
14112 # else
14113 sparc_address_test (arg) int arg;
14114 #endif
14115 {
14116   static pid_t child;
14117   if (!child) {
14118     child = vfork ();
14119     if (child < 0) {
14120       perror ("vfork");
14121       _exit(2);
14122     }
14123     if (!child) {
14124       arg = getpid();
14125       write(-1, "", 0);
14126       _exit (arg);
14127     }
14128   }
14129 }
14130
14131 int
14132 main ()
14133 {
14134   pid_t parent = getpid ();
14135   pid_t child;
14136
14137   sparc_address_test (0);
14138
14139   child = vfork ();
14140
14141   if (child == 0) {
14142     /* Here is another test for sparc vfork register problems.  This
14143        test uses lots of local variables, at least as many local
14144        variables as main has allocated so far including compiler
14145        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14146        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14147        reuse the register of parent for one of the local variables,
14148        since it will think that parent can't possibly be used any more
14149        in this routine.  Assigning to the local variable will thus
14150        munge parent in the parent process.  */
14151     pid_t
14152       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14153       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14154     /* Convince the compiler that p..p7 are live; otherwise, it might
14155        use the same hardware register for all 8 local variables.  */
14156     if (p != p1 || p != p2 || p != p3 || p != p4
14157         || p != p5 || p != p6 || p != p7)
14158       _exit(1);
14159
14160     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14161        from child file descriptors.  If the child closes a descriptor
14162        before it execs or exits, this munges the parent's descriptor
14163        as well.  Test for this by closing stdout in the child.  */
14164     _exit(close(fileno(stdout)) != 0);
14165   } else {
14166     int status;
14167     struct stat st;
14168
14169     while (wait(&status) != child)
14170       ;
14171     return (
14172          /* Was there some problem with vforking?  */
14173          child < 0
14174
14175          /* Did the child fail?  (This shouldn't happen.)  */
14176          || status
14177
14178          /* Did the vfork/compiler bug occur?  */
14179          || parent != getpid()
14180
14181          /* Did the file descriptor bug occur?  */
14182          || fstat(fileno(stdout), &st) != 0
14183          );
14184   }
14185 }
14186 _ACEOF
14187 if ac_fn_c_try_run "$LINENO"; then :
14188   ac_cv_func_vfork_works=yes
14189 else
14190   ac_cv_func_vfork_works=no
14191 fi
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14193   conftest.$ac_objext conftest.beam conftest.$ac_ext
14194 fi
14195
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14198 $as_echo "$ac_cv_func_vfork_works" >&6; }
14199
14200 fi;
14201 if test "x$ac_cv_func_fork_works" = xcross; then
14202   ac_cv_func_vfork_works=$ac_cv_func_vfork
14203   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14204 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14205 fi
14206
14207 if test "x$ac_cv_func_vfork_works" = xyes; then
14208
14209 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14210
14211 else
14212
14213 $as_echo "#define vfork fork" >>confdefs.h
14214
14215 fi
14216 if test "x$ac_cv_func_fork_works" = xyes; then
14217
14218 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14219
14220 fi
14221
14222
14223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14224 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14225 if ${ac_cv_func_mbrtowc+:} false; then :
14226   $as_echo_n "(cached) " >&6
14227 else
14228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h.  */
14230 #include <wchar.h>
14231 int
14232 main ()
14233 {
14234 wchar_t wc;
14235               char const s[] = "";
14236               size_t n = 1;
14237               mbstate_t state;
14238               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 if ac_fn_c_try_link "$LINENO"; then :
14244   ac_cv_func_mbrtowc=yes
14245 else
14246   ac_cv_func_mbrtowc=no
14247 fi
14248 rm -f core conftest.err conftest.$ac_objext \
14249     conftest$ac_exeext conftest.$ac_ext
14250 fi
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14252 $as_echo "$ac_cv_func_mbrtowc" >&6; }
14253   if test $ac_cv_func_mbrtowc = yes; then
14254
14255 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14256
14257   fi
14258
14259
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14261 $as_echo_n "checking for gcc compiler warnings... " >&6; }
14262 # Check whether --enable-warnings was given.
14263 if test "${enable_warnings+set}" = set; then :
14264   enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14267    WARNINGS=
14268 else
14269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14270 $as_echo "yes" >&6; }
14271    WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14272        -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14273        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14274        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14275 fi
14276 else
14277
14278 if test "$GCC" = yes; then
14279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14280 $as_echo "yes" >&6; }
14281    WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14282        -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14283        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14284        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14285 else
14286    WARNINGS=
14287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 $as_echo "no" >&6; }
14289 fi
14290 fi
14291
14292
14293 for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem pipe2
14294 do :
14295   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14298   cat >>confdefs.h <<_ACEOF
14299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14300 _ACEOF
14301
14302 fi
14303 done
14304
14305
14306 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14307 if test "x$ac_cv_func_getopt_long" = xyes; then :
14308   $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14309
14310 else
14311   case " $LIBOBJS " in
14312   *" getopt_long.$ac_objext "* ) ;;
14313   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14314  ;;
14315 esac
14316
14317 fi
14318
14319 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14320 if test "x$ac_cv_func_asprintf" = xyes; then :
14321   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14322
14323 else
14324   case " $LIBOBJS " in
14325   *" asprintf.$ac_objext "* ) ;;
14326   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14327  ;;
14328 esac
14329
14330 fi
14331
14332 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14333 if test "x$ac_cv_func_vasprintf" = xyes; then :
14334   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14335
14336 else
14337   case " $LIBOBJS " in
14338   *" vasprintf.$ac_objext "* ) ;;
14339   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14340  ;;
14341 esac
14342
14343 fi
14344
14345 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14346 if test "x$ac_cv_func_strlcpy" = xyes; then :
14347   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14348
14349 else
14350   case " $LIBOBJS " in
14351   *" strlcpy.$ac_objext "* ) ;;
14352   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14353  ;;
14354 esac
14355
14356 fi
14357
14358 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14359 if test "x$ac_cv_func_strlcat" = xyes; then :
14360   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14361
14362 else
14363   case " $LIBOBJS " in
14364   *" strlcat.$ac_objext "* ) ;;
14365   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14366  ;;
14367 esac
14368
14369 fi
14370
14371 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14372 if test "x$ac_cv_func_getline" = xyes; then :
14373   $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14374
14375 else
14376   case " $LIBOBJS " in
14377   *" getline.$ac_objext "* ) ;;
14378   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14379  ;;
14380 esac
14381
14382 fi
14383
14384 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14385 if test "x$ac_cv_func_ctime_r" = xyes; then :
14386   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14387
14388 else
14389   case " $LIBOBJS " in
14390   *" ctime_r.$ac_objext "* ) ;;
14391   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14392  ;;
14393 esac
14394
14395 fi
14396
14397 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14398 if test "x$ac_cv_func_asctime_r" = xyes; then :
14399   $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14400
14401 else
14402   case " $LIBOBJS " in
14403   *" asctime_r.$ac_objext "* ) ;;
14404   *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14405  ;;
14406 esac
14407
14408 fi
14409
14410 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14411 if test "x$ac_cv_func_localtime_r" = xyes; then :
14412   $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14413
14414 else
14415   case " $LIBOBJS " in
14416   *" localtime_r.$ac_objext "* ) ;;
14417   *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
14418  ;;
14419 esac
14420
14421 fi
14422
14423 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14424 if test "x$ac_cv_func_gmtime_r" = xyes; then :
14425   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
14426
14427 else
14428   case " $LIBOBJS " in
14429   *" gmtime_r.$ac_objext "* ) ;;
14430   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
14431  ;;
14432 esac
14433
14434 fi
14435
14436 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14437 if test "x$ac_cv_func_pread" = xyes; then :
14438   $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14439
14440 else
14441   case " $LIBOBJS " in
14442   *" pread.$ac_objext "* ) ;;
14443   *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14444  ;;
14445 esac
14446
14447 fi
14448
14449 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14450 if test "x$ac_cv_func_strcasestr" = xyes; then :
14451   $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14452
14453 else
14454   case " $LIBOBJS " in
14455   *" strcasestr.$ac_objext "* ) ;;
14456   *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14457  ;;
14458 esac
14459
14460 fi
14461
14462 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14463 if test "x$ac_cv_func_fmtcheck" = xyes; then :
14464   $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14465
14466 else
14467   case " $LIBOBJS " in
14468   *" fmtcheck.$ac_objext "* ) ;;
14469   *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14470  ;;
14471 esac
14472
14473 fi
14474
14475 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14476 if test "x$ac_cv_func_dprintf" = xyes; then :
14477   $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14478
14479 else
14480   case " $LIBOBJS " in
14481   *" dprintf.$ac_objext "* ) ;;
14482   *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14483  ;;
14484 esac
14485
14486 fi
14487
14488
14489
14490 if test "$enable_zlib" != "no"; then
14491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14492 $as_echo_n "checking for gzopen in -lz... " >&6; }
14493 if ${ac_cv_lib_z_gzopen+:} false; then :
14494   $as_echo_n "(cached) " >&6
14495 else
14496   ac_check_lib_save_LIBS=$LIBS
14497 LIBS="-lz  $LIBS"
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h.  */
14500
14501 /* Override any GCC internal prototype to avoid an error.
14502    Use char because int might match the return type of a GCC
14503    builtin and then its argument prototype would still apply.  */
14504 #ifdef __cplusplus
14505 extern "C"
14506 #endif
14507 char gzopen ();
14508 int
14509 main ()
14510 {
14511 return gzopen ();
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 if ac_fn_c_try_link "$LINENO"; then :
14517   ac_cv_lib_z_gzopen=yes
14518 else
14519   ac_cv_lib_z_gzopen=no
14520 fi
14521 rm -f core conftest.err conftest.$ac_objext \
14522     conftest$ac_exeext conftest.$ac_ext
14523 LIBS=$ac_check_lib_save_LIBS
14524 fi
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14526 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
14527 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14528   cat >>confdefs.h <<_ACEOF
14529 #define HAVE_LIBZ 1
14530 _ACEOF
14531
14532   LIBS="-lz $LIBS"
14533
14534 fi
14535
14536 fi
14537 if test "$enable_bzlib" != "no"; then
14538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
14539 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
14540 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
14541   $as_echo_n "(cached) " >&6
14542 else
14543   ac_check_lib_save_LIBS=$LIBS
14544 LIBS="-lbz2  $LIBS"
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h.  */
14547
14548 /* Override any GCC internal prototype to avoid an error.
14549    Use char because int might match the return type of a GCC
14550    builtin and then its argument prototype would still apply.  */
14551 #ifdef __cplusplus
14552 extern "C"
14553 #endif
14554 char BZ2_bzCompressInit ();
14555 int
14556 main ()
14557 {
14558 return BZ2_bzCompressInit ();
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 if ac_fn_c_try_link "$LINENO"; then :
14564   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
14565 else
14566   ac_cv_lib_bz2_BZ2_bzCompressInit=no
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext \
14569     conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_check_lib_save_LIBS
14571 fi
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
14573 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
14574 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
14575   cat >>confdefs.h <<_ACEOF
14576 #define HAVE_LIBBZ2 1
14577 _ACEOF
14578
14579   LIBS="-lbz2 $LIBS"
14580
14581 fi
14582
14583 fi
14584 if test "$enable_xzlib" != "no"; then
14585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
14586 $as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
14587 if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590   ac_check_lib_save_LIBS=$LIBS
14591 LIBS="-llzma  $LIBS"
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h.  */
14594
14595 /* Override any GCC internal prototype to avoid an error.
14596    Use char because int might match the return type of a GCC
14597    builtin and then its argument prototype would still apply.  */
14598 #ifdef __cplusplus
14599 extern "C"
14600 #endif
14601 char lzma_stream_decoder ();
14602 int
14603 main ()
14604 {
14605 return lzma_stream_decoder ();
14606   ;
14607   return 0;
14608 }
14609 _ACEOF
14610 if ac_fn_c_try_link "$LINENO"; then :
14611   ac_cv_lib_lzma_lzma_stream_decoder=yes
14612 else
14613   ac_cv_lib_lzma_lzma_stream_decoder=no
14614 fi
14615 rm -f core conftest.err conftest.$ac_objext \
14616     conftest$ac_exeext conftest.$ac_ext
14617 LIBS=$ac_check_lib_save_LIBS
14618 fi
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
14620 $as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
14621 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
14622   cat >>confdefs.h <<_ACEOF
14623 #define HAVE_LIBLZMA 1
14624 _ACEOF
14625
14626   LIBS="-llzma $LIBS"
14627
14628 fi
14629
14630 fi
14631 if test "$enable_libseccomp" != "no"; then
14632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
14633 $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
14634 if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
14635   $as_echo_n "(cached) " >&6
14636 else
14637   ac_check_lib_save_LIBS=$LIBS
14638 LIBS="-lseccomp  $LIBS"
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h.  */
14641
14642 /* Override any GCC internal prototype to avoid an error.
14643    Use char because int might match the return type of a GCC
14644    builtin and then its argument prototype would still apply.  */
14645 #ifdef __cplusplus
14646 extern "C"
14647 #endif
14648 char seccomp_init ();
14649 int
14650 main ()
14651 {
14652 return seccomp_init ();
14653   ;
14654   return 0;
14655 }
14656 _ACEOF
14657 if ac_fn_c_try_link "$LINENO"; then :
14658   ac_cv_lib_seccomp_seccomp_init=yes
14659 else
14660   ac_cv_lib_seccomp_seccomp_init=no
14661 fi
14662 rm -f core conftest.err conftest.$ac_objext \
14663     conftest$ac_exeext conftest.$ac_ext
14664 LIBS=$ac_check_lib_save_LIBS
14665 fi
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
14667 $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
14668 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
14669   cat >>confdefs.h <<_ACEOF
14670 #define HAVE_LIBSECCOMP 1
14671 _ACEOF
14672
14673   LIBS="-lseccomp $LIBS"
14674
14675 fi
14676
14677 fi
14678 if test "$MINGW" = 1; then
14679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
14680 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
14681 if ${ac_cv_lib_gnurx_regexec+:} false; then :
14682   $as_echo_n "(cached) " >&6
14683 else
14684   ac_check_lib_save_LIBS=$LIBS
14685 LIBS="-lgnurx  $LIBS"
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h.  */
14688
14689 /* Override any GCC internal prototype to avoid an error.
14690    Use char because int might match the return type of a GCC
14691    builtin and then its argument prototype would still apply.  */
14692 #ifdef __cplusplus
14693 extern "C"
14694 #endif
14695 char regexec ();
14696 int
14697 main ()
14698 {
14699 return regexec ();
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 if ac_fn_c_try_link "$LINENO"; then :
14705   ac_cv_lib_gnurx_regexec=yes
14706 else
14707   ac_cv_lib_gnurx_regexec=no
14708 fi
14709 rm -f core conftest.err conftest.$ac_objext \
14710     conftest$ac_exeext conftest.$ac_ext
14711 LIBS=$ac_check_lib_save_LIBS
14712 fi
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
14714 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
14715 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
14716   cat >>confdefs.h <<_ACEOF
14717 #define HAVE_LIBGNURX 1
14718 _ACEOF
14719
14720   LIBS="-lgnurx $LIBS"
14721
14722 else
14723   as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
14724 fi
14725
14726 fi
14727
14728  if test "$cross_compiling" = yes; then
14729   IS_CROSS_COMPILE_TRUE=
14730   IS_CROSS_COMPILE_FALSE='#'
14731 else
14732   IS_CROSS_COMPILE_TRUE='#'
14733   IS_CROSS_COMPILE_FALSE=
14734 fi
14735
14736
14737 if test "$enable_zlib" = "yes"; then
14738   if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
14739     as_fn_error $? "zlib support requested but not found" "$LINENO" 5
14740   fi
14741 fi
14742 if  test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
14743
14744 $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
14745
14746 fi
14747 if test "$enable_bzlib" = "yes"; then
14748   if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
14749     as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
14750   fi
14751 fi
14752 if  test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
14753
14754 $as_echo "#define BZLIBSUPPORT 1" >>confdefs.h
14755
14756 fi
14757 if test "$enable_xzlib" = "yes"; then
14758   if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
14759     as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
14760   fi
14761 fi
14762 if  test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
14763
14764 $as_echo "#define XZLIBSUPPORT 1" >>confdefs.h
14765
14766 fi
14767
14768 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
14769
14770 cat >confcache <<\_ACEOF
14771 # This file is a shell script that caches the results of configure
14772 # tests run on this system so they can be shared between configure
14773 # scripts and configure runs, see configure's option --config-cache.
14774 # It is not useful on other systems.  If it contains results you don't
14775 # want to keep, you may remove or edit it.
14776 #
14777 # config.status only pays attention to the cache file if you give it
14778 # the --recheck option to rerun configure.
14779 #
14780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14782 # following values.
14783
14784 _ACEOF
14785
14786 # The following way of writing the cache mishandles newlines in values,
14787 # but we know of no workaround that is simple, portable, and efficient.
14788 # So, we kill variables containing newlines.
14789 # Ultrix sh set writes to stderr and can't be redirected directly,
14790 # and sets the high bit in the cache file unless we assign to the vars.
14791 (
14792   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14793     eval ac_val=\$$ac_var
14794     case $ac_val in #(
14795     *${as_nl}*)
14796       case $ac_var in #(
14797       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14799       esac
14800       case $ac_var in #(
14801       _ | IFS | as_nl) ;; #(
14802       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14803       *) { eval $ac_var=; unset $ac_var;} ;;
14804       esac ;;
14805     esac
14806   done
14807
14808   (set) 2>&1 |
14809     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14810     *${as_nl}ac_space=\ *)
14811       # `set' does not quote correctly, so add quotes: double-quote
14812       # substitution turns \\\\ into \\, and sed turns \\ into \.
14813       sed -n \
14814         "s/'/'\\\\''/g;
14815           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14816       ;; #(
14817     *)
14818       # `set' quotes correctly as required by POSIX, so do not add quotes.
14819       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14820       ;;
14821     esac |
14822     sort
14823 ) |
14824   sed '
14825      /^ac_cv_env_/b end
14826      t clear
14827      :clear
14828      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14829      t end
14830      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14831      :end' >>confcache
14832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14833   if test -w "$cache_file"; then
14834     if test "x$cache_file" != "x/dev/null"; then
14835       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14836 $as_echo "$as_me: updating cache $cache_file" >&6;}
14837       if test ! -f "$cache_file" || test -h "$cache_file"; then
14838         cat confcache >"$cache_file"
14839       else
14840         case $cache_file in #(
14841         */* | ?:*)
14842           mv -f confcache "$cache_file"$$ &&
14843           mv -f "$cache_file"$$ "$cache_file" ;; #(
14844         *)
14845           mv -f confcache "$cache_file" ;;
14846         esac
14847       fi
14848     fi
14849   else
14850     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14851 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14852   fi
14853 fi
14854 rm -f confcache
14855
14856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14857 # Let make expand exec_prefix.
14858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14859
14860 DEFS=-DHAVE_CONFIG_H
14861
14862 ac_libobjs=
14863 ac_ltlibobjs=
14864 U=
14865 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14866   # 1. Remove the extension, and $U if already installed.
14867   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14868   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14869   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14870   #    will be set to the directory where LIBOBJS objects are built.
14871   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14872   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14873 done
14874 LIBOBJS=$ac_libobjs
14875
14876 LTLIBOBJS=$ac_ltlibobjs
14877
14878
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14880 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14881    if test -n "$am_sleep_pid"; then
14882      # Hide warnings about reused PIDs.
14883      wait $am_sleep_pid 2>/dev/null
14884    fi
14885    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14886 $as_echo "done" >&6; }
14887  if test -n "$EXEEXT"; then
14888   am__EXEEXT_TRUE=
14889   am__EXEEXT_FALSE='#'
14890 else
14891   am__EXEEXT_TRUE='#'
14892   am__EXEEXT_FALSE=
14893 fi
14894
14895 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14896   as_fn_error $? "conditional \"MINGW\" was never defined.
14897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14898 fi
14899 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
14900   as_fn_error $? "conditional \"FSECT5\" was never defined.
14901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14902 fi
14903 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14904   as_fn_error $? "conditional \"AMDEP\" was never defined.
14905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14906 fi
14907 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14908   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14910 fi
14911
14912 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
14913   as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
14914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14915 fi
14916
14917 : "${CONFIG_STATUS=./config.status}"
14918 ac_write_fail=0
14919 ac_clean_files_save=$ac_clean_files
14920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14922 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14923 as_write_fail=0
14924 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14925 #! $SHELL
14926 # Generated by $as_me.
14927 # Run this file to recreate the current configuration.
14928 # Compiler output produced by configure, useful for debugging
14929 # configure, is in config.log if it exists.
14930
14931 debug=false
14932 ac_cs_recheck=false
14933 ac_cs_silent=false
14934
14935 SHELL=\${CONFIG_SHELL-$SHELL}
14936 export SHELL
14937 _ASEOF
14938 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14939 ## -------------------- ##
14940 ## M4sh Initialization. ##
14941 ## -------------------- ##
14942
14943 # Be more Bourne compatible
14944 DUALCASE=1; export DUALCASE # for MKS sh
14945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14946   emulate sh
14947   NULLCMD=:
14948   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14949   # is contrary to our usage.  Disable this feature.
14950   alias -g '${1+"$@"}'='"$@"'
14951   setopt NO_GLOB_SUBST
14952 else
14953   case `(set -o) 2>/dev/null` in #(
14954   *posix*) :
14955     set -o posix ;; #(
14956   *) :
14957      ;;
14958 esac
14959 fi
14960
14961
14962 as_nl='
14963 '
14964 export as_nl
14965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14969 # Prefer a ksh shell builtin over an external printf program on Solaris,
14970 # but without wasting forks for bash or zsh.
14971 if test -z "$BASH_VERSION$ZSH_VERSION" \
14972     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14973   as_echo='print -r --'
14974   as_echo_n='print -rn --'
14975 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14976   as_echo='printf %s\n'
14977   as_echo_n='printf %s'
14978 else
14979   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14980     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14981     as_echo_n='/usr/ucb/echo -n'
14982   else
14983     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14984     as_echo_n_body='eval
14985       arg=$1;
14986       case $arg in #(
14987       *"$as_nl"*)
14988         expr "X$arg" : "X\\(.*\\)$as_nl";
14989         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14990       esac;
14991       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14992     '
14993     export as_echo_n_body
14994     as_echo_n='sh -c $as_echo_n_body as_echo'
14995   fi
14996   export as_echo_body
14997   as_echo='sh -c $as_echo_body as_echo'
14998 fi
14999
15000 # The user is always right.
15001 if test "${PATH_SEPARATOR+set}" != set; then
15002   PATH_SEPARATOR=:
15003   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15004     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15005       PATH_SEPARATOR=';'
15006   }
15007 fi
15008
15009
15010 # IFS
15011 # We need space, tab and new line, in precisely that order.  Quoting is
15012 # there to prevent editors from complaining about space-tab.
15013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15014 # splitting by setting IFS to empty value.)
15015 IFS=" ""        $as_nl"
15016
15017 # Find who we are.  Look in the path if we contain no directory separator.
15018 as_myself=
15019 case $0 in #((
15020   *[\\/]* ) as_myself=$0 ;;
15021   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15022 for as_dir in $PATH
15023 do
15024   IFS=$as_save_IFS
15025   test -z "$as_dir" && as_dir=.
15026     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15027   done
15028 IFS=$as_save_IFS
15029
15030      ;;
15031 esac
15032 # We did not find ourselves, most probably we were run as `sh COMMAND'
15033 # in which case we are not to be found in the path.
15034 if test "x$as_myself" = x; then
15035   as_myself=$0
15036 fi
15037 if test ! -f "$as_myself"; then
15038   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15039   exit 1
15040 fi
15041
15042 # Unset variables that we do not need and which cause bugs (e.g. in
15043 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15044 # suppresses any "Segmentation fault" message there.  '((' could
15045 # trigger a bug in pdksh 5.2.14.
15046 for as_var in BASH_ENV ENV MAIL MAILPATH
15047 do eval test x\${$as_var+set} = xset \
15048   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15049 done
15050 PS1='$ '
15051 PS2='> '
15052 PS4='+ '
15053
15054 # NLS nuisances.
15055 LC_ALL=C
15056 export LC_ALL
15057 LANGUAGE=C
15058 export LANGUAGE
15059
15060 # CDPATH.
15061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15062
15063
15064 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15065 # ----------------------------------------
15066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15068 # script with STATUS, using 1 if that was 0.
15069 as_fn_error ()
15070 {
15071   as_status=$1; test $as_status -eq 0 && as_status=1
15072   if test "$4"; then
15073     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15074     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15075   fi
15076   $as_echo "$as_me: error: $2" >&2
15077   as_fn_exit $as_status
15078 } # as_fn_error
15079
15080
15081 # as_fn_set_status STATUS
15082 # -----------------------
15083 # Set $? to STATUS, without forking.
15084 as_fn_set_status ()
15085 {
15086   return $1
15087 } # as_fn_set_status
15088
15089 # as_fn_exit STATUS
15090 # -----------------
15091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15092 as_fn_exit ()
15093 {
15094   set +e
15095   as_fn_set_status $1
15096   exit $1
15097 } # as_fn_exit
15098
15099 # as_fn_unset VAR
15100 # ---------------
15101 # Portably unset VAR.
15102 as_fn_unset ()
15103 {
15104   { eval $1=; unset $1;}
15105 }
15106 as_unset=as_fn_unset
15107 # as_fn_append VAR VALUE
15108 # ----------------------
15109 # Append the text in VALUE to the end of the definition contained in VAR. Take
15110 # advantage of any shell optimizations that allow amortized linear growth over
15111 # repeated appends, instead of the typical quadratic growth present in naive
15112 # implementations.
15113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15114   eval 'as_fn_append ()
15115   {
15116     eval $1+=\$2
15117   }'
15118 else
15119   as_fn_append ()
15120   {
15121     eval $1=\$$1\$2
15122   }
15123 fi # as_fn_append
15124
15125 # as_fn_arith ARG...
15126 # ------------------
15127 # Perform arithmetic evaluation on the ARGs, and store the result in the
15128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15129 # must be portable across $(()) and expr.
15130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15131   eval 'as_fn_arith ()
15132   {
15133     as_val=$(( $* ))
15134   }'
15135 else
15136   as_fn_arith ()
15137   {
15138     as_val=`expr "$@" || test $? -eq 1`
15139   }
15140 fi # as_fn_arith
15141
15142
15143 if expr a : '\(a\)' >/dev/null 2>&1 &&
15144    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15145   as_expr=expr
15146 else
15147   as_expr=false
15148 fi
15149
15150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15151   as_basename=basename
15152 else
15153   as_basename=false
15154 fi
15155
15156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15157   as_dirname=dirname
15158 else
15159   as_dirname=false
15160 fi
15161
15162 as_me=`$as_basename -- "$0" ||
15163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15164          X"$0" : 'X\(//\)$' \| \
15165          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15166 $as_echo X/"$0" |
15167     sed '/^.*\/\([^/][^/]*\)\/*$/{
15168             s//\1/
15169             q
15170           }
15171           /^X\/\(\/\/\)$/{
15172             s//\1/
15173             q
15174           }
15175           /^X\/\(\/\).*/{
15176             s//\1/
15177             q
15178           }
15179           s/.*/./; q'`
15180
15181 # Avoid depending upon Character Ranges.
15182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15185 as_cr_digits='0123456789'
15186 as_cr_alnum=$as_cr_Letters$as_cr_digits
15187
15188 ECHO_C= ECHO_N= ECHO_T=
15189 case `echo -n x` in #(((((
15190 -n*)
15191   case `echo 'xy\c'` in
15192   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15193   xy)  ECHO_C='\c';;
15194   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15195        ECHO_T=' ';;
15196   esac;;
15197 *)
15198   ECHO_N='-n';;
15199 esac
15200
15201 rm -f conf$$ conf$$.exe conf$$.file
15202 if test -d conf$$.dir; then
15203   rm -f conf$$.dir/conf$$.file
15204 else
15205   rm -f conf$$.dir
15206   mkdir conf$$.dir 2>/dev/null
15207 fi
15208 if (echo >conf$$.file) 2>/dev/null; then
15209   if ln -s conf$$.file conf$$ 2>/dev/null; then
15210     as_ln_s='ln -s'
15211     # ... but there are two gotchas:
15212     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15213     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15214     # In both cases, we have to default to `cp -pR'.
15215     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15216       as_ln_s='cp -pR'
15217   elif ln conf$$.file conf$$ 2>/dev/null; then
15218     as_ln_s=ln
15219   else
15220     as_ln_s='cp -pR'
15221   fi
15222 else
15223   as_ln_s='cp -pR'
15224 fi
15225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15226 rmdir conf$$.dir 2>/dev/null
15227
15228
15229 # as_fn_mkdir_p
15230 # -------------
15231 # Create "$as_dir" as a directory, including parents if necessary.
15232 as_fn_mkdir_p ()
15233 {
15234
15235   case $as_dir in #(
15236   -*) as_dir=./$as_dir;;
15237   esac
15238   test -d "$as_dir" || eval $as_mkdir_p || {
15239     as_dirs=
15240     while :; do
15241       case $as_dir in #(
15242       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15243       *) as_qdir=$as_dir;;
15244       esac
15245       as_dirs="'$as_qdir' $as_dirs"
15246       as_dir=`$as_dirname -- "$as_dir" ||
15247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15248          X"$as_dir" : 'X\(//\)[^/]' \| \
15249          X"$as_dir" : 'X\(//\)$' \| \
15250          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15251 $as_echo X"$as_dir" |
15252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15253             s//\1/
15254             q
15255           }
15256           /^X\(\/\/\)[^/].*/{
15257             s//\1/
15258             q
15259           }
15260           /^X\(\/\/\)$/{
15261             s//\1/
15262             q
15263           }
15264           /^X\(\/\).*/{
15265             s//\1/
15266             q
15267           }
15268           s/.*/./; q'`
15269       test -d "$as_dir" && break
15270     done
15271     test -z "$as_dirs" || eval "mkdir $as_dirs"
15272   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15273
15274
15275 } # as_fn_mkdir_p
15276 if mkdir -p . 2>/dev/null; then
15277   as_mkdir_p='mkdir -p "$as_dir"'
15278 else
15279   test -d ./-p && rmdir ./-p
15280   as_mkdir_p=false
15281 fi
15282
15283
15284 # as_fn_executable_p FILE
15285 # -----------------------
15286 # Test if FILE is an executable regular file.
15287 as_fn_executable_p ()
15288 {
15289   test -f "$1" && test -x "$1"
15290 } # as_fn_executable_p
15291 as_test_x='test -x'
15292 as_executable_p=as_fn_executable_p
15293
15294 # Sed expression to map a string onto a valid CPP name.
15295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15296
15297 # Sed expression to map a string onto a valid variable name.
15298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15299
15300
15301 exec 6>&1
15302 ## ----------------------------------- ##
15303 ## Main body of $CONFIG_STATUS script. ##
15304 ## ----------------------------------- ##
15305 _ASEOF
15306 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15307
15308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15309 # Save the log message, to keep $0 and so on meaningful, and to
15310 # report actual input values of CONFIG_FILES etc. instead of their
15311 # values after options handling.
15312 ac_log="
15313 This file was extended by file $as_me 5.41, which was
15314 generated by GNU Autoconf 2.69.  Invocation command line was
15315
15316   CONFIG_FILES    = $CONFIG_FILES
15317   CONFIG_HEADERS  = $CONFIG_HEADERS
15318   CONFIG_LINKS    = $CONFIG_LINKS
15319   CONFIG_COMMANDS = $CONFIG_COMMANDS
15320   $ $0 $@
15321
15322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15323 "
15324
15325 _ACEOF
15326
15327 case $ac_config_files in *"
15328 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15329 esac
15330
15331 case $ac_config_headers in *"
15332 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15333 esac
15334
15335
15336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15337 # Files that config.status was made for.
15338 config_files="$ac_config_files"
15339 config_headers="$ac_config_headers"
15340 config_commands="$ac_config_commands"
15341
15342 _ACEOF
15343
15344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15345 ac_cs_usage="\
15346 \`$as_me' instantiates files and other configuration actions
15347 from templates according to the current configuration.  Unless the files
15348 and actions are specified as TAGs, all are instantiated by default.
15349
15350 Usage: $0 [OPTION]... [TAG]...
15351
15352   -h, --help       print this help, then exit
15353   -V, --version    print version number and configuration settings, then exit
15354       --config     print configuration, then exit
15355   -q, --quiet, --silent
15356                    do not print progress messages
15357   -d, --debug      don't remove temporary files
15358       --recheck    update $as_me by reconfiguring in the same conditions
15359       --file=FILE[:TEMPLATE]
15360                    instantiate the configuration file FILE
15361       --header=FILE[:TEMPLATE]
15362                    instantiate the configuration header FILE
15363
15364 Configuration files:
15365 $config_files
15366
15367 Configuration headers:
15368 $config_headers
15369
15370 Configuration commands:
15371 $config_commands
15372
15373 Report bugs to <christos@astron.com>."
15374
15375 _ACEOF
15376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15377 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15378 ac_cs_version="\\
15379 file config.status 5.41
15380 configured by $0, generated by GNU Autoconf 2.69,
15381   with options \\"\$ac_cs_config\\"
15382
15383 Copyright (C) 2012 Free Software Foundation, Inc.
15384 This config.status script is free software; the Free Software Foundation
15385 gives unlimited permission to copy, distribute and modify it."
15386
15387 ac_pwd='$ac_pwd'
15388 srcdir='$srcdir'
15389 INSTALL='$INSTALL'
15390 MKDIR_P='$MKDIR_P'
15391 AWK='$AWK'
15392 test -n "\$AWK" || AWK=awk
15393 _ACEOF
15394
15395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15396 # The default lists apply if the user does not specify any file.
15397 ac_need_defaults=:
15398 while test $# != 0
15399 do
15400   case $1 in
15401   --*=?*)
15402     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15403     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15404     ac_shift=:
15405     ;;
15406   --*=)
15407     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15408     ac_optarg=
15409     ac_shift=:
15410     ;;
15411   *)
15412     ac_option=$1
15413     ac_optarg=$2
15414     ac_shift=shift
15415     ;;
15416   esac
15417
15418   case $ac_option in
15419   # Handling of the options.
15420   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15421     ac_cs_recheck=: ;;
15422   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15423     $as_echo "$ac_cs_version"; exit ;;
15424   --config | --confi | --conf | --con | --co | --c )
15425     $as_echo "$ac_cs_config"; exit ;;
15426   --debug | --debu | --deb | --de | --d | -d )
15427     debug=: ;;
15428   --file | --fil | --fi | --f )
15429     $ac_shift
15430     case $ac_optarg in
15431     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15432     '') as_fn_error $? "missing file argument" ;;
15433     esac
15434     as_fn_append CONFIG_FILES " '$ac_optarg'"
15435     ac_need_defaults=false;;
15436   --header | --heade | --head | --hea )
15437     $ac_shift
15438     case $ac_optarg in
15439     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15440     esac
15441     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15442     ac_need_defaults=false;;
15443   --he | --h)
15444     # Conflict between --help and --header
15445     as_fn_error $? "ambiguous option: \`$1'
15446 Try \`$0 --help' for more information.";;
15447   --help | --hel | -h )
15448     $as_echo "$ac_cs_usage"; exit ;;
15449   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15450   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15451     ac_cs_silent=: ;;
15452
15453   # This is an error.
15454   -*) as_fn_error $? "unrecognized option: \`$1'
15455 Try \`$0 --help' for more information." ;;
15456
15457   *) as_fn_append ac_config_targets " $1"
15458      ac_need_defaults=false ;;
15459
15460   esac
15461   shift
15462 done
15463
15464 ac_configure_extra_args=
15465
15466 if $ac_cs_silent; then
15467   exec 6>/dev/null
15468   ac_configure_extra_args="$ac_configure_extra_args --silent"
15469 fi
15470
15471 _ACEOF
15472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15473 if \$ac_cs_recheck; then
15474   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15475   shift
15476   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15477   CONFIG_SHELL='$SHELL'
15478   export CONFIG_SHELL
15479   exec "\$@"
15480 fi
15481
15482 _ACEOF
15483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15484 exec 5>>config.log
15485 {
15486   echo
15487   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15488 ## Running $as_me. ##
15489 _ASBOX
15490   $as_echo "$ac_log"
15491 } >&5
15492
15493 _ACEOF
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 #
15496 # INIT-COMMANDS
15497 #
15498 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15499
15500
15501 # The HP-UX ksh and POSIX shell print the target directory to stdout
15502 # if CDPATH is set.
15503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15504
15505 sed_quote_subst='$sed_quote_subst'
15506 double_quote_subst='$double_quote_subst'
15507 delay_variable_subst='$delay_variable_subst'
15508 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15509 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15510 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15511 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15512 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15513 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15514 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15515 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15516 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15517 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15518 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15519 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15520 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15521 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15522 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15523 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15524 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15525 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15526 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15527 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15528 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15529 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15530 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15531 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15532 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15533 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15534 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15535 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15536 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15537 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15538 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15539 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15540 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15541 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15542 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15543 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15544 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15545 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15546 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15547 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15548 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15549 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15550 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15551 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15552 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15553 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15554 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15555 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15556 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15557 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15558 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15559 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15560 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15561 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15562 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15563 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15564 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15565 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15566 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15567 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15568 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15569 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15570 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15571 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15572 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15573 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15574 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15575 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15576 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15577 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15578 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15579 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15580 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15581 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15582 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15583 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15584 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15585 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15586 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15587 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15588 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15589 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15590 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15591 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15592 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15593 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15594 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15595 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15596 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15597 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15598 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15599 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15600 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15601 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15602 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15603 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15604 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15605 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15606 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15607 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15608 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15609 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15610 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15611 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15612 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15613 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15614 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15615 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15616 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15617 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15618 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15619 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15620 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15621 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15622 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15623 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15624 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15625 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15626 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15627 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15628 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15629 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15630 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15631 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15632 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15633 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15634 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15635 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15636 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15637 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15638 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15639 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15640 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15641 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15642 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15643
15644 LTCC='$LTCC'
15645 LTCFLAGS='$LTCFLAGS'
15646 compiler='$compiler_DEFAULT'
15647
15648 # A function that is used when there is no print builtin or printf.
15649 func_fallback_echo ()
15650 {
15651   eval 'cat <<_LTECHO_EOF
15652 \$1
15653 _LTECHO_EOF'
15654 }
15655
15656 # Quote evaled strings.
15657 for var in SHELL \
15658 ECHO \
15659 PATH_SEPARATOR \
15660 SED \
15661 GREP \
15662 EGREP \
15663 FGREP \
15664 LD \
15665 NM \
15666 LN_S \
15667 lt_SP2NL \
15668 lt_NL2SP \
15669 reload_flag \
15670 OBJDUMP \
15671 deplibs_check_method \
15672 file_magic_cmd \
15673 file_magic_glob \
15674 want_nocaseglob \
15675 DLLTOOL \
15676 sharedlib_from_linklib_cmd \
15677 AR \
15678 AR_FLAGS \
15679 archiver_list_spec \
15680 STRIP \
15681 RANLIB \
15682 CC \
15683 CFLAGS \
15684 compiler \
15685 lt_cv_sys_global_symbol_pipe \
15686 lt_cv_sys_global_symbol_to_cdecl \
15687 lt_cv_sys_global_symbol_to_import \
15688 lt_cv_sys_global_symbol_to_c_name_address \
15689 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15690 lt_cv_nm_interface \
15691 nm_file_list_spec \
15692 lt_cv_truncate_bin \
15693 lt_prog_compiler_no_builtin_flag \
15694 lt_prog_compiler_pic \
15695 lt_prog_compiler_wl \
15696 lt_prog_compiler_static \
15697 lt_cv_prog_compiler_c_o \
15698 need_locks \
15699 MANIFEST_TOOL \
15700 DSYMUTIL \
15701 NMEDIT \
15702 LIPO \
15703 OTOOL \
15704 OTOOL64 \
15705 shrext_cmds \
15706 export_dynamic_flag_spec \
15707 whole_archive_flag_spec \
15708 compiler_needs_object \
15709 with_gnu_ld \
15710 allow_undefined_flag \
15711 no_undefined_flag \
15712 hardcode_libdir_flag_spec \
15713 hardcode_libdir_separator \
15714 exclude_expsyms \
15715 include_expsyms \
15716 file_list_spec \
15717 variables_saved_for_relink \
15718 libname_spec \
15719 library_names_spec \
15720 soname_spec \
15721 install_override_mode \
15722 finish_eval \
15723 old_striplib \
15724 striplib; do
15725     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15726     *[\\\\\\\`\\"\\\$]*)
15727       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15728       ;;
15729     *)
15730       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15731       ;;
15732     esac
15733 done
15734
15735 # Double-quote double-evaled strings.
15736 for var in reload_cmds \
15737 old_postinstall_cmds \
15738 old_postuninstall_cmds \
15739 old_archive_cmds \
15740 extract_expsyms_cmds \
15741 old_archive_from_new_cmds \
15742 old_archive_from_expsyms_cmds \
15743 archive_cmds \
15744 archive_expsym_cmds \
15745 module_cmds \
15746 module_expsym_cmds \
15747 export_symbols_cmds \
15748 prelink_cmds \
15749 postlink_cmds \
15750 postinstall_cmds \
15751 postuninstall_cmds \
15752 finish_cmds \
15753 sys_lib_search_path_spec \
15754 configure_time_dlsearch_path \
15755 configure_time_lt_sys_library_path; do
15756     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15757     *[\\\\\\\`\\"\\\$]*)
15758       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15759       ;;
15760     *)
15761       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15762       ;;
15763     esac
15764 done
15765
15766 ac_aux_dir='$ac_aux_dir'
15767
15768 # See if we are running on zsh, and set the options that allow our
15769 # commands through without removal of \ escapes INIT.
15770 if test -n "\${ZSH_VERSION+set}"; then
15771    setopt NO_GLOB_SUBST
15772 fi
15773
15774
15775     PACKAGE='$PACKAGE'
15776     VERSION='$VERSION'
15777     RM='$RM'
15778     ofile='$ofile'
15779
15780
15781
15782
15783 _ACEOF
15784
15785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15786
15787 # Handling of arguments.
15788 for ac_config_target in $ac_config_targets
15789 do
15790   case $ac_config_target in
15791     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15792     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15793     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15794     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15795     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15796     "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
15797     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15798     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15799     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15800     "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
15801
15802   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15803   esac
15804 done
15805
15806
15807 # If the user did not use the arguments to specify the items to instantiate,
15808 # then the envvar interface is used.  Set only those that are not.
15809 # We use the long form for the default assignment because of an extremely
15810 # bizarre bug on SunOS 4.1.3.
15811 if $ac_need_defaults; then
15812   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15813   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15814   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15815 fi
15816
15817 # Have a temporary directory for convenience.  Make it in the build tree
15818 # simply because there is no reason against having it here, and in addition,
15819 # creating and moving files from /tmp can sometimes cause problems.
15820 # Hook for its removal unless debugging.
15821 # Note that there is a small window in which the directory will not be cleaned:
15822 # after its creation but before its name has been assigned to `$tmp'.
15823 $debug ||
15824 {
15825   tmp= ac_tmp=
15826   trap 'exit_status=$?
15827   : "${ac_tmp:=$tmp}"
15828   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15829 ' 0
15830   trap 'as_fn_exit 1' 1 2 13 15
15831 }
15832 # Create a (secure) tmp directory for tmp files.
15833
15834 {
15835   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15836   test -d "$tmp"
15837 }  ||
15838 {
15839   tmp=./conf$$-$RANDOM
15840   (umask 077 && mkdir "$tmp")
15841 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15842 ac_tmp=$tmp
15843
15844 # Set up the scripts for CONFIG_FILES section.
15845 # No need to generate them if there are no CONFIG_FILES.
15846 # This happens for instance with `./config.status config.h'.
15847 if test -n "$CONFIG_FILES"; then
15848
15849
15850 ac_cr=`echo X | tr X '\015'`
15851 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15852 # But we know of no other shell where ac_cr would be empty at this
15853 # point, so we can use a bashism as a fallback.
15854 if test "x$ac_cr" = x; then
15855   eval ac_cr=\$\'\\r\'
15856 fi
15857 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15858 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15859   ac_cs_awk_cr='\\r'
15860 else
15861   ac_cs_awk_cr=$ac_cr
15862 fi
15863
15864 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15865 _ACEOF
15866
15867
15868 {
15869   echo "cat >conf$$subs.awk <<_ACEOF" &&
15870   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15871   echo "_ACEOF"
15872 } >conf$$subs.sh ||
15873   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15874 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15875 ac_delim='%!_!# '
15876 for ac_last_try in false false false false false :; do
15877   . ./conf$$subs.sh ||
15878     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15879
15880   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15881   if test $ac_delim_n = $ac_delim_num; then
15882     break
15883   elif $ac_last_try; then
15884     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15885   else
15886     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15887   fi
15888 done
15889 rm -f conf$$subs.sh
15890
15891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15892 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15893 _ACEOF
15894 sed -n '
15895 h
15896 s/^/S["/; s/!.*/"]=/
15897 p
15898 g
15899 s/^[^!]*!//
15900 :repl
15901 t repl
15902 s/'"$ac_delim"'$//
15903 t delim
15904 :nl
15905 h
15906 s/\(.\{148\}\)..*/\1/
15907 t more1
15908 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15909 p
15910 n
15911 b repl
15912 :more1
15913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15914 p
15915 g
15916 s/.\{148\}//
15917 t nl
15918 :delim
15919 h
15920 s/\(.\{148\}\)..*/\1/
15921 t more2
15922 s/["\\]/\\&/g; s/^/"/; s/$/"/
15923 p
15924 b
15925 :more2
15926 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15927 p
15928 g
15929 s/.\{148\}//
15930 t delim
15931 ' <conf$$subs.awk | sed '
15932 /^[^""]/{
15933   N
15934   s/\n//
15935 }
15936 ' >>$CONFIG_STATUS || ac_write_fail=1
15937 rm -f conf$$subs.awk
15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15939 _ACAWK
15940 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15941   for (key in S) S_is_set[key] = 1
15942   FS = "\a"
15943
15944 }
15945 {
15946   line = $ 0
15947   nfields = split(line, field, "@")
15948   substed = 0
15949   len = length(field[1])
15950   for (i = 2; i < nfields; i++) {
15951     key = field[i]
15952     keylen = length(key)
15953     if (S_is_set[key]) {
15954       value = S[key]
15955       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15956       len += length(value) + length(field[++i])
15957       substed = 1
15958     } else
15959       len += 1 + keylen
15960   }
15961
15962   print line
15963 }
15964
15965 _ACAWK
15966 _ACEOF
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15969   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15970 else
15971   cat
15972 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15973   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15974 _ACEOF
15975
15976 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15977 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15978 # trailing colons and then remove the whole line if VPATH becomes empty
15979 # (actually we leave an empty line to preserve line numbers).
15980 if test "x$srcdir" = x.; then
15981   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15982 h
15983 s///
15984 s/^/:/
15985 s/[      ]*$/:/
15986 s/:\$(srcdir):/:/g
15987 s/:\${srcdir}:/:/g
15988 s/:@srcdir@:/:/g
15989 s/^:*//
15990 s/:*$//
15991 x
15992 s/\(=[   ]*\).*/\1/
15993 G
15994 s/\n//
15995 s/^[^=]*=[       ]*$//
15996 }'
15997 fi
15998
15999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16000 fi # test -n "$CONFIG_FILES"
16001
16002 # Set up the scripts for CONFIG_HEADERS section.
16003 # No need to generate them if there are no CONFIG_HEADERS.
16004 # This happens for instance with `./config.status Makefile'.
16005 if test -n "$CONFIG_HEADERS"; then
16006 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16007 BEGIN {
16008 _ACEOF
16009
16010 # Transform confdefs.h into an awk script `defines.awk', embedded as
16011 # here-document in config.status, that substitutes the proper values into
16012 # config.h.in to produce config.h.
16013
16014 # Create a delimiter string that does not exist in confdefs.h, to ease
16015 # handling of long lines.
16016 ac_delim='%!_!# '
16017 for ac_last_try in false false :; do
16018   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16019   if test -z "$ac_tt"; then
16020     break
16021   elif $ac_last_try; then
16022     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16023   else
16024     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16025   fi
16026 done
16027
16028 # For the awk script, D is an array of macro values keyed by name,
16029 # likewise P contains macro parameters if any.  Preserve backslash
16030 # newline sequences.
16031
16032 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16033 sed -n '
16034 s/.\{148\}/&'"$ac_delim"'/g
16035 t rset
16036 :rset
16037 s/^[     ]*#[    ]*define[       ][      ]*/ /
16038 t def
16039 d
16040 :def
16041 s/\\$//
16042 t bsnl
16043 s/["\\]/\\&/g
16044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16045 D["\1"]=" \3"/p
16046 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16047 d
16048 :bsnl
16049 s/["\\]/\\&/g
16050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16051 D["\1"]=" \3\\\\\\n"\\/p
16052 t cont
16053 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16054 t cont
16055 d
16056 :cont
16057 n
16058 s/.\{148\}/&'"$ac_delim"'/g
16059 t clear
16060 :clear
16061 s/\\$//
16062 t bsnlc
16063 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16064 d
16065 :bsnlc
16066 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16067 b cont
16068 ' <confdefs.h | sed '
16069 s/'"$ac_delim"'/"\\\
16070 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16071
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073   for (key in D) D_is_set[key] = 1
16074   FS = "\a"
16075 }
16076 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16077   line = \$ 0
16078   split(line, arg, " ")
16079   if (arg[1] == "#") {
16080     defundef = arg[2]
16081     mac1 = arg[3]
16082   } else {
16083     defundef = substr(arg[1], 2)
16084     mac1 = arg[2]
16085   }
16086   split(mac1, mac2, "(") #)
16087   macro = mac2[1]
16088   prefix = substr(line, 1, index(line, defundef) - 1)
16089   if (D_is_set[macro]) {
16090     # Preserve the white space surrounding the "#".
16091     print prefix "define", macro P[macro] D[macro]
16092     next
16093   } else {
16094     # Replace #undef with comments.  This is necessary, for example,
16095     # in the case of _POSIX_SOURCE, which is predefined and required
16096     # on some systems where configure will not decide to define it.
16097     if (defundef == "undef") {
16098       print "/*", prefix defundef, macro, "*/"
16099       next
16100     }
16101   }
16102 }
16103 { print }
16104 _ACAWK
16105 _ACEOF
16106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16107   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16108 fi # test -n "$CONFIG_HEADERS"
16109
16110
16111 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16112 shift
16113 for ac_tag
16114 do
16115   case $ac_tag in
16116   :[FHLC]) ac_mode=$ac_tag; continue;;
16117   esac
16118   case $ac_mode$ac_tag in
16119   :[FHL]*:*);;
16120   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16121   :[FH]-) ac_tag=-:-;;
16122   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16123   esac
16124   ac_save_IFS=$IFS
16125   IFS=:
16126   set x $ac_tag
16127   IFS=$ac_save_IFS
16128   shift
16129   ac_file=$1
16130   shift
16131
16132   case $ac_mode in
16133   :L) ac_source=$1;;
16134   :[FH])
16135     ac_file_inputs=
16136     for ac_f
16137     do
16138       case $ac_f in
16139       -) ac_f="$ac_tmp/stdin";;
16140       *) # Look for the file first in the build tree, then in the source tree
16141          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16142          # because $ac_f cannot contain `:'.
16143          test -f "$ac_f" ||
16144            case $ac_f in
16145            [\\/$]*) false;;
16146            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16147            esac ||
16148            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16149       esac
16150       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16151       as_fn_append ac_file_inputs " '$ac_f'"
16152     done
16153
16154     # Let's still pretend it is `configure' which instantiates (i.e., don't
16155     # use $as_me), people would be surprised to read:
16156     #    /* config.h.  Generated by config.status.  */
16157     configure_input='Generated from '`
16158           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16159         `' by configure.'
16160     if test x"$ac_file" != x-; then
16161       configure_input="$ac_file.  $configure_input"
16162       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16163 $as_echo "$as_me: creating $ac_file" >&6;}
16164     fi
16165     # Neutralize special characters interpreted by sed in replacement strings.
16166     case $configure_input in #(
16167     *\&* | *\|* | *\\* )
16168        ac_sed_conf_input=`$as_echo "$configure_input" |
16169        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16170     *) ac_sed_conf_input=$configure_input;;
16171     esac
16172
16173     case $ac_tag in
16174     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16175       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16176     esac
16177     ;;
16178   esac
16179
16180   ac_dir=`$as_dirname -- "$ac_file" ||
16181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16182          X"$ac_file" : 'X\(//\)[^/]' \| \
16183          X"$ac_file" : 'X\(//\)$' \| \
16184          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16185 $as_echo X"$ac_file" |
16186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16187             s//\1/
16188             q
16189           }
16190           /^X\(\/\/\)[^/].*/{
16191             s//\1/
16192             q
16193           }
16194           /^X\(\/\/\)$/{
16195             s//\1/
16196             q
16197           }
16198           /^X\(\/\).*/{
16199             s//\1/
16200             q
16201           }
16202           s/.*/./; q'`
16203   as_dir="$ac_dir"; as_fn_mkdir_p
16204   ac_builddir=.
16205
16206 case "$ac_dir" in
16207 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16208 *)
16209   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16210   # A ".." for each directory in $ac_dir_suffix.
16211   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16212   case $ac_top_builddir_sub in
16213   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16214   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16215   esac ;;
16216 esac
16217 ac_abs_top_builddir=$ac_pwd
16218 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16219 # for backward compatibility:
16220 ac_top_builddir=$ac_top_build_prefix
16221
16222 case $srcdir in
16223   .)  # We are building in place.
16224     ac_srcdir=.
16225     ac_top_srcdir=$ac_top_builddir_sub
16226     ac_abs_top_srcdir=$ac_pwd ;;
16227   [\\/]* | ?:[\\/]* )  # Absolute name.
16228     ac_srcdir=$srcdir$ac_dir_suffix;
16229     ac_top_srcdir=$srcdir
16230     ac_abs_top_srcdir=$srcdir ;;
16231   *) # Relative name.
16232     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16233     ac_top_srcdir=$ac_top_build_prefix$srcdir
16234     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16235 esac
16236 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16237
16238
16239   case $ac_mode in
16240   :F)
16241   #
16242   # CONFIG_FILE
16243   #
16244
16245   case $INSTALL in
16246   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16247   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16248   esac
16249   ac_MKDIR_P=$MKDIR_P
16250   case $MKDIR_P in
16251   [\\/$]* | ?:[\\/]* ) ;;
16252   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16253   esac
16254 _ACEOF
16255
16256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16257 # If the template does not know about datarootdir, expand it.
16258 # FIXME: This hack should be removed a few years after 2.60.
16259 ac_datarootdir_hack=; ac_datarootdir_seen=
16260 ac_sed_dataroot='
16261 /datarootdir/ {
16262   p
16263   q
16264 }
16265 /@datadir@/p
16266 /@docdir@/p
16267 /@infodir@/p
16268 /@localedir@/p
16269 /@mandir@/p'
16270 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16271 *datarootdir*) ac_datarootdir_seen=yes;;
16272 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16273   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16274 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16275 _ACEOF
16276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16277   ac_datarootdir_hack='
16278   s&@datadir@&$datadir&g
16279   s&@docdir@&$docdir&g
16280   s&@infodir@&$infodir&g
16281   s&@localedir@&$localedir&g
16282   s&@mandir@&$mandir&g
16283   s&\\\${datarootdir}&$datarootdir&g' ;;
16284 esac
16285 _ACEOF
16286
16287 # Neutralize VPATH when `$srcdir' = `.'.
16288 # Shell code in configure.ac might set extrasub.
16289 # FIXME: do we really want to maintain this feature?
16290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16291 ac_sed_extra="$ac_vpsub
16292 $extrasub
16293 _ACEOF
16294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16295 :t
16296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16297 s|@configure_input@|$ac_sed_conf_input|;t t
16298 s&@top_builddir@&$ac_top_builddir_sub&;t t
16299 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16300 s&@srcdir@&$ac_srcdir&;t t
16301 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16302 s&@top_srcdir@&$ac_top_srcdir&;t t
16303 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16304 s&@builddir@&$ac_builddir&;t t
16305 s&@abs_builddir@&$ac_abs_builddir&;t t
16306 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16307 s&@INSTALL@&$ac_INSTALL&;t t
16308 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16309 $ac_datarootdir_hack
16310 "
16311 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16312   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16313
16314 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16315   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16316   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16317       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16318   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16319 which seems to be undefined.  Please make sure it is defined" >&5
16320 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16321 which seems to be undefined.  Please make sure it is defined" >&2;}
16322
16323   rm -f "$ac_tmp/stdin"
16324   case $ac_file in
16325   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16326   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16327   esac \
16328   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16329  ;;
16330   :H)
16331   #
16332   # CONFIG_HEADER
16333   #
16334   if test x"$ac_file" != x-; then
16335     {
16336       $as_echo "/* $configure_input  */" \
16337       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16338     } >"$ac_tmp/config.h" \
16339       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16340     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16341       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16342 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16343     else
16344       rm -f "$ac_file"
16345       mv "$ac_tmp/config.h" "$ac_file" \
16346         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16347     fi
16348   else
16349     $as_echo "/* $configure_input  */" \
16350       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16351       || as_fn_error $? "could not create -" "$LINENO" 5
16352   fi
16353 # Compute "$ac_file"'s index in $config_headers.
16354 _am_arg="$ac_file"
16355 _am_stamp_count=1
16356 for _am_header in $config_headers :; do
16357   case $_am_header in
16358     $_am_arg | $_am_arg:* )
16359       break ;;
16360     * )
16361       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16362   esac
16363 done
16364 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16365 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16366          X"$_am_arg" : 'X\(//\)[^/]' \| \
16367          X"$_am_arg" : 'X\(//\)$' \| \
16368          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16369 $as_echo X"$_am_arg" |
16370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16371             s//\1/
16372             q
16373           }
16374           /^X\(\/\/\)[^/].*/{
16375             s//\1/
16376             q
16377           }
16378           /^X\(\/\/\)$/{
16379             s//\1/
16380             q
16381           }
16382           /^X\(\/\).*/{
16383             s//\1/
16384             q
16385           }
16386           s/.*/./; q'`/stamp-h$_am_stamp_count
16387  ;;
16388
16389   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16390 $as_echo "$as_me: executing $ac_file commands" >&6;}
16391  ;;
16392   esac
16393
16394
16395   case $ac_file$ac_mode in
16396     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16397   # Older Autoconf quotes --file arguments for eval, but not when files
16398   # are listed without --file.  Let's play safe and only enable the eval
16399   # if we detect the quoting.
16400   # TODO: see whether this extra hack can be removed once we start
16401   # requiring Autoconf 2.70 or later.
16402   case $CONFIG_FILES in #(
16403   *\'*) :
16404     eval set x "$CONFIG_FILES" ;; #(
16405   *) :
16406     set x $CONFIG_FILES ;; #(
16407   *) :
16408      ;;
16409 esac
16410   shift
16411   # Used to flag and report bootstrapping failures.
16412   am_rc=0
16413   for am_mf
16414   do
16415     # Strip MF so we end up with the name of the file.
16416     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16417     # Check whether this is an Automake generated Makefile which includes
16418     # dependency-tracking related rules and includes.
16419     # Grep'ing the whole file directly is not great: AIX grep has a line
16420     # limit of 2048, but all sed's we know have understand at least 4000.
16421     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16422       || continue
16423     am_dirpart=`$as_dirname -- "$am_mf" ||
16424 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16425          X"$am_mf" : 'X\(//\)[^/]' \| \
16426          X"$am_mf" : 'X\(//\)$' \| \
16427          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16428 $as_echo X"$am_mf" |
16429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16430             s//\1/
16431             q
16432           }
16433           /^X\(\/\/\)[^/].*/{
16434             s//\1/
16435             q
16436           }
16437           /^X\(\/\/\)$/{
16438             s//\1/
16439             q
16440           }
16441           /^X\(\/\).*/{
16442             s//\1/
16443             q
16444           }
16445           s/.*/./; q'`
16446     am_filepart=`$as_basename -- "$am_mf" ||
16447 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16448          X"$am_mf" : 'X\(//\)$' \| \
16449          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16450 $as_echo X/"$am_mf" |
16451     sed '/^.*\/\([^/][^/]*\)\/*$/{
16452             s//\1/
16453             q
16454           }
16455           /^X\/\(\/\/\)$/{
16456             s//\1/
16457             q
16458           }
16459           /^X\/\(\/\).*/{
16460             s//\1/
16461             q
16462           }
16463           s/.*/./; q'`
16464     { echo "$as_me:$LINENO: cd "$am_dirpart" \
16465       && sed -e '/# am--include-marker/d' "$am_filepart" \
16466         | $MAKE -f - am--depfiles" >&5
16467    (cd "$am_dirpart" \
16468       && sed -e '/# am--include-marker/d' "$am_filepart" \
16469         | $MAKE -f - am--depfiles) >&5 2>&5
16470    ac_status=$?
16471    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472    (exit $ac_status); } || am_rc=$?
16473   done
16474   if test $am_rc -ne 0; then
16475     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16477 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16478     for automatic dependency tracking.  Try re-running configure with the
16479     '--disable-dependency-tracking' option to at least be able to build
16480     the package (albeit without support for automatic dependency tracking).
16481 See \`config.log' for more details" "$LINENO" 5; }
16482   fi
16483   { am_dirpart=; unset am_dirpart;}
16484   { am_filepart=; unset am_filepart;}
16485   { am_mf=; unset am_mf;}
16486   { am_rc=; unset am_rc;}
16487   rm -f conftest-deps.mk
16488 }
16489  ;;
16490     "libtool":C)
16491
16492     # See if we are running on zsh, and set the options that allow our
16493     # commands through without removal of \ escapes.
16494     if test -n "${ZSH_VERSION+set}"; then
16495       setopt NO_GLOB_SUBST
16496     fi
16497
16498     cfgfile=${ofile}T
16499     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16500     $RM "$cfgfile"
16501
16502     cat <<_LT_EOF >> "$cfgfile"
16503 #! $SHELL
16504 # Generated automatically by $as_me ($PACKAGE) $VERSION
16505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16506 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16507
16508 # Provide generalized library-building support services.
16509 # Written by Gordon Matzigkeit, 1996
16510
16511 # Copyright (C) 2014 Free Software Foundation, Inc.
16512 # This is free software; see the source for copying conditions.  There is NO
16513 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16514
16515 # GNU Libtool is free software; you can redistribute it and/or modify
16516 # it under the terms of the GNU General Public License as published by
16517 # the Free Software Foundation; either version 2 of of the License, or
16518 # (at your option) any later version.
16519 #
16520 # As a special exception to the GNU General Public License, if you
16521 # distribute this file as part of a program or library that is built
16522 # using GNU Libtool, you may include this file under the  same
16523 # distribution terms that you use for the rest of that program.
16524 #
16525 # GNU Libtool is distributed in the hope that it will be useful, but
16526 # WITHOUT ANY WARRANTY; without even the implied warranty of
16527 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16528 # GNU General Public License for more details.
16529 #
16530 # You should have received a copy of the GNU General Public License
16531 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16532
16533
16534 # The names of the tagged configurations supported by this script.
16535 available_tags=''
16536
16537 # Configured defaults for sys_lib_dlsearch_path munging.
16538 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16539
16540 # ### BEGIN LIBTOOL CONFIG
16541
16542 # Which release of libtool.m4 was used?
16543 macro_version=$macro_version
16544 macro_revision=$macro_revision
16545
16546 # Whether or not to build static libraries.
16547 build_old_libs=$enable_static
16548
16549 # What type of objects to build.
16550 pic_mode=$pic_mode
16551
16552 # Whether or not to build shared libraries.
16553 build_libtool_libs=$enable_shared
16554
16555 # Whether or not to optimize for fast installation.
16556 fast_install=$enable_fast_install
16557
16558 # Shared archive member basename,for filename based shared library versioning on AIX.
16559 shared_archive_member_spec=$shared_archive_member_spec
16560
16561 # Shell to use when invoking shell scripts.
16562 SHELL=$lt_SHELL
16563
16564 # An echo program that protects backslashes.
16565 ECHO=$lt_ECHO
16566
16567 # The PATH separator for the build system.
16568 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16569
16570 # The host system.
16571 host_alias=$host_alias
16572 host=$host
16573 host_os=$host_os
16574
16575 # The build system.
16576 build_alias=$build_alias
16577 build=$build
16578 build_os=$build_os
16579
16580 # A sed program that does not truncate output.
16581 SED=$lt_SED
16582
16583 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16584 Xsed="\$SED -e 1s/^X//"
16585
16586 # A grep program that handles long lines.
16587 GREP=$lt_GREP
16588
16589 # An ERE matcher.
16590 EGREP=$lt_EGREP
16591
16592 # A literal string matcher.
16593 FGREP=$lt_FGREP
16594
16595 # A BSD- or MS-compatible name lister.
16596 NM=$lt_NM
16597
16598 # Whether we need soft or hard links.
16599 LN_S=$lt_LN_S
16600
16601 # What is the maximum length of a command?
16602 max_cmd_len=$max_cmd_len
16603
16604 # Object file suffix (normally "o").
16605 objext=$ac_objext
16606
16607 # Executable file suffix (normally "").
16608 exeext=$exeext
16609
16610 # whether the shell understands "unset".
16611 lt_unset=$lt_unset
16612
16613 # turn spaces into newlines.
16614 SP2NL=$lt_lt_SP2NL
16615
16616 # turn newlines into spaces.
16617 NL2SP=$lt_lt_NL2SP
16618
16619 # convert \$build file names to \$host format.
16620 to_host_file_cmd=$lt_cv_to_host_file_cmd
16621
16622 # convert \$build files to toolchain format.
16623 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16624
16625 # An object symbol dumper.
16626 OBJDUMP=$lt_OBJDUMP
16627
16628 # Method to check whether dependent libraries are shared objects.
16629 deplibs_check_method=$lt_deplibs_check_method
16630
16631 # Command to use when deplibs_check_method = "file_magic".
16632 file_magic_cmd=$lt_file_magic_cmd
16633
16634 # How to find potential files when deplibs_check_method = "file_magic".
16635 file_magic_glob=$lt_file_magic_glob
16636
16637 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16638 want_nocaseglob=$lt_want_nocaseglob
16639
16640 # DLL creation program.
16641 DLLTOOL=$lt_DLLTOOL
16642
16643 # Command to associate shared and link libraries.
16644 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16645
16646 # The archiver.
16647 AR=$lt_AR
16648
16649 # Flags to create an archive.
16650 AR_FLAGS=$lt_AR_FLAGS
16651
16652 # How to feed a file listing to the archiver.
16653 archiver_list_spec=$lt_archiver_list_spec
16654
16655 # A symbol stripping program.
16656 STRIP=$lt_STRIP
16657
16658 # Commands used to install an old-style archive.
16659 RANLIB=$lt_RANLIB
16660 old_postinstall_cmds=$lt_old_postinstall_cmds
16661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16662
16663 # Whether to use a lock for old archive extraction.
16664 lock_old_archive_extraction=$lock_old_archive_extraction
16665
16666 # A C compiler.
16667 LTCC=$lt_CC
16668
16669 # LTCC compiler flags.
16670 LTCFLAGS=$lt_CFLAGS
16671
16672 # Take the output of nm and produce a listing of raw symbols and C names.
16673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16674
16675 # Transform the output of nm in a proper C declaration.
16676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16677
16678 # Transform the output of nm into a list of symbols to manually relocate.
16679 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16680
16681 # Transform the output of nm in a C name address pair.
16682 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16683
16684 # Transform the output of nm in a C name address pair when lib prefix is needed.
16685 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16686
16687 # The name lister interface.
16688 nm_interface=$lt_lt_cv_nm_interface
16689
16690 # Specify filename containing input files for \$NM.
16691 nm_file_list_spec=$lt_nm_file_list_spec
16692
16693 # The root where to search for dependent libraries,and where our libraries should be installed.
16694 lt_sysroot=$lt_sysroot
16695
16696 # Command to truncate a binary pipe.
16697 lt_truncate_bin=$lt_lt_cv_truncate_bin
16698
16699 # The name of the directory that contains temporary libtool files.
16700 objdir=$objdir
16701
16702 # Used to examine libraries when file_magic_cmd begins with "file".
16703 MAGIC_CMD=$MAGIC_CMD
16704
16705 # Must we lock files when doing compilation?
16706 need_locks=$lt_need_locks
16707
16708 # Manifest tool.
16709 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16710
16711 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16712 DSYMUTIL=$lt_DSYMUTIL
16713
16714 # Tool to change global to local symbols on Mac OS X.
16715 NMEDIT=$lt_NMEDIT
16716
16717 # Tool to manipulate fat objects and archives on Mac OS X.
16718 LIPO=$lt_LIPO
16719
16720 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16721 OTOOL=$lt_OTOOL
16722
16723 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16724 OTOOL64=$lt_OTOOL64
16725
16726 # Old archive suffix (normally "a").
16727 libext=$libext
16728
16729 # Shared library suffix (normally ".so").
16730 shrext_cmds=$lt_shrext_cmds
16731
16732 # The commands to extract the exported symbol list from a shared archive.
16733 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16734
16735 # Variables whose values should be saved in libtool wrapper scripts and
16736 # restored at link time.
16737 variables_saved_for_relink=$lt_variables_saved_for_relink
16738
16739 # Do we need the "lib" prefix for modules?
16740 need_lib_prefix=$need_lib_prefix
16741
16742 # Do we need a version for libraries?
16743 need_version=$need_version
16744
16745 # Library versioning type.
16746 version_type=$version_type
16747
16748 # Shared library runtime path variable.
16749 runpath_var=$runpath_var
16750
16751 # Shared library path variable.
16752 shlibpath_var=$shlibpath_var
16753
16754 # Is shlibpath searched before the hard-coded library search path?
16755 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16756
16757 # Format of library name prefix.
16758 libname_spec=$lt_libname_spec
16759
16760 # List of archive names.  First name is the real one, the rest are links.
16761 # The last name is the one that the linker finds with -lNAME
16762 library_names_spec=$lt_library_names_spec
16763
16764 # The coded name of the library, if different from the real name.
16765 soname_spec=$lt_soname_spec
16766
16767 # Permission mode override for installation of shared libraries.
16768 install_override_mode=$lt_install_override_mode
16769
16770 # Command to use after installation of a shared archive.
16771 postinstall_cmds=$lt_postinstall_cmds
16772
16773 # Command to use after uninstallation of a shared archive.
16774 postuninstall_cmds=$lt_postuninstall_cmds
16775
16776 # Commands used to finish a libtool library installation in a directory.
16777 finish_cmds=$lt_finish_cmds
16778
16779 # As "finish_cmds", except a single script fragment to be evaled but
16780 # not shown.
16781 finish_eval=$lt_finish_eval
16782
16783 # Whether we should hardcode library paths into libraries.
16784 hardcode_into_libs=$hardcode_into_libs
16785
16786 # Compile-time system search path for libraries.
16787 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16788
16789 # Detected run-time system search path for libraries.
16790 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16791
16792 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16793 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16794
16795 # Whether dlopen is supported.
16796 dlopen_support=$enable_dlopen
16797
16798 # Whether dlopen of programs is supported.
16799 dlopen_self=$enable_dlopen_self
16800
16801 # Whether dlopen of statically linked programs is supported.
16802 dlopen_self_static=$enable_dlopen_self_static
16803
16804 # Commands to strip libraries.
16805 old_striplib=$lt_old_striplib
16806 striplib=$lt_striplib
16807
16808
16809 # The linker used to build libraries.
16810 LD=$lt_LD
16811
16812 # How to create reloadable object files.
16813 reload_flag=$lt_reload_flag
16814 reload_cmds=$lt_reload_cmds
16815
16816 # Commands used to build an old-style archive.
16817 old_archive_cmds=$lt_old_archive_cmds
16818
16819 # A language specific compiler.
16820 CC=$lt_compiler
16821
16822 # Is the compiler the GNU compiler?
16823 with_gcc=$GCC
16824
16825 # Compiler flag to turn off builtin functions.
16826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16827
16828 # Additional compiler flags for building library objects.
16829 pic_flag=$lt_lt_prog_compiler_pic
16830
16831 # How to pass a linker flag through the compiler.
16832 wl=$lt_lt_prog_compiler_wl
16833
16834 # Compiler flag to prevent dynamic linking.
16835 link_static_flag=$lt_lt_prog_compiler_static
16836
16837 # Does compiler simultaneously support -c and -o options?
16838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16839
16840 # Whether or not to add -lc for building shared libraries.
16841 build_libtool_need_lc=$archive_cmds_need_lc
16842
16843 # Whether or not to disallow shared libs when runtime libs are static.
16844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16845
16846 # Compiler flag to allow reflexive dlopens.
16847 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16848
16849 # Compiler flag to generate shared objects directly from archives.
16850 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16851
16852 # Whether the compiler copes with passing no objects directly.
16853 compiler_needs_object=$lt_compiler_needs_object
16854
16855 # Create an old-style archive from a shared archive.
16856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16857
16858 # Create a temporary old-style archive to link instead of a shared archive.
16859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16860
16861 # Commands used to build a shared archive.
16862 archive_cmds=$lt_archive_cmds
16863 archive_expsym_cmds=$lt_archive_expsym_cmds
16864
16865 # Commands used to build a loadable module if different from building
16866 # a shared archive.
16867 module_cmds=$lt_module_cmds
16868 module_expsym_cmds=$lt_module_expsym_cmds
16869
16870 # Whether we are building with GNU ld or not.
16871 with_gnu_ld=$lt_with_gnu_ld
16872
16873 # Flag that allows shared libraries with undefined symbols to be built.
16874 allow_undefined_flag=$lt_allow_undefined_flag
16875
16876 # Flag that enforces no undefined symbols.
16877 no_undefined_flag=$lt_no_undefined_flag
16878
16879 # Flag to hardcode \$libdir into a binary during linking.
16880 # This must work even if \$libdir does not exist
16881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16882
16883 # Whether we need a single "-rpath" flag with a separated argument.
16884 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16885
16886 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16887 # DIR into the resulting binary.
16888 hardcode_direct=$hardcode_direct
16889
16890 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16891 # DIR into the resulting binary and the resulting library dependency is
16892 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16893 # library is relocated.
16894 hardcode_direct_absolute=$hardcode_direct_absolute
16895
16896 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16897 # into the resulting binary.
16898 hardcode_minus_L=$hardcode_minus_L
16899
16900 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16901 # into the resulting binary.
16902 hardcode_shlibpath_var=$hardcode_shlibpath_var
16903
16904 # Set to "yes" if building a shared library automatically hardcodes DIR
16905 # into the library and all subsequent libraries and executables linked
16906 # against it.
16907 hardcode_automatic=$hardcode_automatic
16908
16909 # Set to yes if linker adds runtime paths of dependent libraries
16910 # to runtime path list.
16911 inherit_rpath=$inherit_rpath
16912
16913 # Whether libtool must link a program against all its dependency libraries.
16914 link_all_deplibs=$link_all_deplibs
16915
16916 # Set to "yes" if exported symbols are required.
16917 always_export_symbols=$always_export_symbols
16918
16919 # The commands to list exported symbols.
16920 export_symbols_cmds=$lt_export_symbols_cmds
16921
16922 # Symbols that should not be listed in the preloaded symbols.
16923 exclude_expsyms=$lt_exclude_expsyms
16924
16925 # Symbols that must always be exported.
16926 include_expsyms=$lt_include_expsyms
16927
16928 # Commands necessary for linking programs (against libraries) with templates.
16929 prelink_cmds=$lt_prelink_cmds
16930
16931 # Commands necessary for finishing linking programs.
16932 postlink_cmds=$lt_postlink_cmds
16933
16934 # Specify filename containing input files.
16935 file_list_spec=$lt_file_list_spec
16936
16937 # How to hardcode a shared library path into an executable.
16938 hardcode_action=$hardcode_action
16939
16940 # ### END LIBTOOL CONFIG
16941
16942 _LT_EOF
16943
16944     cat <<'_LT_EOF' >> "$cfgfile"
16945
16946 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16947
16948 # func_munge_path_list VARIABLE PATH
16949 # -----------------------------------
16950 # VARIABLE is name of variable containing _space_ separated list of
16951 # directories to be munged by the contents of PATH, which is string
16952 # having a format:
16953 # "DIR[:DIR]:"
16954 #       string "DIR[ DIR]" will be prepended to VARIABLE
16955 # ":DIR[:DIR]"
16956 #       string "DIR[ DIR]" will be appended to VARIABLE
16957 # "DIRP[:DIRP]::[DIRA:]DIRA"
16958 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16959 #       "DIRA[ DIRA]" will be appended to VARIABLE
16960 # "DIR[:DIR]"
16961 #       VARIABLE will be replaced by "DIR[ DIR]"
16962 func_munge_path_list ()
16963 {
16964     case x$2 in
16965     x)
16966         ;;
16967     *:)
16968         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16969         ;;
16970     x:*)
16971         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16972         ;;
16973     *::*)
16974         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16975         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16976         ;;
16977     *)
16978         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16979         ;;
16980     esac
16981 }
16982
16983
16984 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16985 func_cc_basename ()
16986 {
16987     for cc_temp in $*""; do
16988       case $cc_temp in
16989         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16990         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16991         \-*) ;;
16992         *) break;;
16993       esac
16994     done
16995     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16996 }
16997
16998
16999 # ### END FUNCTIONS SHARED WITH CONFIGURE
17000
17001 _LT_EOF
17002
17003   case $host_os in
17004   aix3*)
17005     cat <<\_LT_EOF >> "$cfgfile"
17006 # AIX sometimes has problems with the GCC collect2 program.  For some
17007 # reason, if we set the COLLECT_NAMES environment variable, the problems
17008 # vanish in a puff of smoke.
17009 if test set != "${COLLECT_NAMES+set}"; then
17010   COLLECT_NAMES=
17011   export COLLECT_NAMES
17012 fi
17013 _LT_EOF
17014     ;;
17015   esac
17016
17017
17018 ltmain=$ac_aux_dir/ltmain.sh
17019
17020
17021   # We use sed instead of cat because bash on DJGPP gets confused if
17022   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17023   # text mode, it properly converts lines to CR/LF.  This bash problem
17024   # is reportedly fixed, but why not run on old versions too?
17025   sed '$q' "$ltmain" >> "$cfgfile" \
17026      || (rm -f "$cfgfile"; exit 1)
17027
17028    mv -f "$cfgfile" "$ofile" ||
17029     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17030   chmod +x "$ofile"
17031
17032  ;;
17033
17034   esac
17035 done # for ac_tag
17036
17037
17038 as_fn_exit 0
17039 _ACEOF
17040 ac_clean_files=$ac_clean_files_save
17041
17042 test $ac_write_fail = 0 ||
17043   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17044
17045
17046 # configure is writing to config.log, and then calls config.status.
17047 # config.status does its own redirection, appending to config.log.
17048 # Unfortunately, on DOS this fails, as config.log is still kept open
17049 # by configure, so config.status won't be able to write to it; its
17050 # output is simply discarded.  So we exec the FD to /dev/null,
17051 # effectively closing config.log, so it can be properly (re)opened and
17052 # appended to by config.status.  When coming back to configure, we
17053 # need to make the FD available again.
17054 if test "$no_create" != yes; then
17055   ac_cs_success=:
17056   ac_config_status_args=
17057   test "$silent" = yes &&
17058     ac_config_status_args="$ac_config_status_args --quiet"
17059   exec 5>/dev/null
17060   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17061   exec 5>>config.log
17062   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17063   # would make configure fail if this is the last instruction.
17064   $ac_cs_success || as_fn_exit 1
17065 fi
17066 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17067   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17068 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17069 fi
17070