]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/file/configure
bhyvectl(8): Normalize the man page date
[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.39.
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.39'
594 PACKAGE_STRING='file 5.39'
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.39 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.39:";;
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.39
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.39, 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.39'
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 DEPDIR="${am__leading_dot}deps"
3405
3406 ac_config_commands="$ac_config_commands depfiles"
3407
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3409 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3410 cat > confinc.mk << 'END'
3411 am__doit:
3412         @echo this is the am__doit target >confinc.out
3413 .PHONY: am__doit
3414 END
3415 am__include="#"
3416 am__quote=
3417 # BSD make does it like this.
3418 echo '.include "confinc.mk" # ignored' > confmf.BSD
3419 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3420 echo 'include confinc.mk # ignored' > confmf.GNU
3421 _am_result=no
3422 for s in GNU BSD; do
3423   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3424    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3425    ac_status=$?
3426    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427    (exit $ac_status); }
3428   case $?:`cat confinc.out 2>/dev/null` in #(
3429   '0:this is the am__doit target') :
3430     case $s in #(
3431   BSD) :
3432     am__include='.include' am__quote='"' ;; #(
3433   *) :
3434     am__include='include' am__quote='' ;;
3435 esac ;; #(
3436   *) :
3437      ;;
3438 esac
3439   if test "$am__include" != "#"; then
3440     _am_result="yes ($s style)"
3441     break
3442   fi
3443 done
3444 rm -f confinc.* confmf.*
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3446 $as_echo "${_am_result}" >&6; }
3447
3448 # Check whether --enable-dependency-tracking was given.
3449 if test "${enable_dependency_tracking+set}" = set; then :
3450   enableval=$enable_dependency_tracking;
3451 fi
3452
3453 if test "x$enable_dependency_tracking" != xno; then
3454   am_depcomp="$ac_aux_dir/depcomp"
3455   AMDEPBACKSLASH='\'
3456   am__nodep='_no'
3457 fi
3458  if test "x$enable_dependency_tracking" != xno; then
3459   AMDEP_TRUE=
3460   AMDEP_FALSE='#'
3461 else
3462   AMDEP_TRUE='#'
3463   AMDEP_FALSE=
3464 fi
3465
3466
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if test -n "$ac_tool_prefix"; then
3473   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_CC+:} false; then :
3478   $as_echo_n "(cached) " >&6
3479 else
3480   if test -n "$CC"; then
3481   ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486   IFS=$as_save_IFS
3487   test -z "$as_dir" && as_dir=.
3488     for ac_exec_ext in '' $ac_executable_extensions; do
3489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492     break 2
3493   fi
3494 done
3495   done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3504 else
3505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 fi
3508
3509
3510 fi
3511 if test -z "$ac_cv_prog_CC"; then
3512   ac_ct_CC=$CC
3513   # Extract the first word of "gcc", so it can be a program name with args.
3514 set dummy gcc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3518   $as_echo_n "(cached) " >&6
3519 else
3520   if test -n "$ac_ct_CC"; then
3521   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526   IFS=$as_save_IFS
3527   test -z "$as_dir" && as_dir=.
3528     for ac_exec_ext in '' $ac_executable_extensions; do
3529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530     ac_cv_prog_ac_ct_CC="gcc"
3531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532     break 2
3533   fi
3534 done
3535   done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543 $as_echo "$ac_ct_CC" >&6; }
3544 else
3545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549   if test "x$ac_ct_CC" = x; then
3550     CC=""
3551   else
3552     case $cross_compiling:$ac_tool_warned in
3553 yes:)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3557 esac
3558     CC=$ac_ct_CC
3559   fi
3560 else
3561   CC="$ac_cv_prog_CC"
3562 fi
3563
3564 if test -z "$CC"; then
3565           if test -n "$ac_tool_prefix"; then
3566     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}cc; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_prog_CC+:} false; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   if test -n "$CC"; then
3574   ac_cv_prog_CC="$CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579   IFS=$as_save_IFS
3580   test -z "$as_dir" && as_dir=.
3581     for ac_exec_ext in '' $ac_executable_extensions; do
3582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583     ac_cv_prog_CC="${ac_tool_prefix}cc"
3584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585     break 2
3586   fi
3587 done
3588   done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 CC=$ac_cv_prog_CC
3594 if test -n "$CC"; then
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3597 else
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 fi
3601
3602
3603   fi
3604 fi
3605 if test -z "$CC"; then
3606   # Extract the first word of "cc", so it can be a program name with args.
3607 set dummy cc; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_CC+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   if test -n "$CC"; then
3614   ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616   ac_prog_rejected=no
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620   IFS=$as_save_IFS
3621   test -z "$as_dir" && as_dir=.
3622     for ac_exec_ext in '' $ac_executable_extensions; do
3623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3624     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3625        ac_prog_rejected=yes
3626        continue
3627      fi
3628     ac_cv_prog_CC="cc"
3629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633   done
3634 IFS=$as_save_IFS
3635
3636 if test $ac_prog_rejected = yes; then
3637   # We found a bogon in the path, so make sure we never use it.
3638   set dummy $ac_cv_prog_CC
3639   shift
3640   if test $# != 0; then
3641     # We chose a different compiler from the bogus one.
3642     # However, it has the same basename, so the bogon will be chosen
3643     # first if we set CC to just the basename; use the full file name.
3644     shift
3645     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3646   fi
3647 fi
3648 fi
3649 fi
3650 CC=$ac_cv_prog_CC
3651 if test -n "$CC"; then
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3654 else
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660 fi
3661 if test -z "$CC"; then
3662   if test -n "$ac_tool_prefix"; then
3663   for ac_prog in cl.exe
3664   do
3665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if ${ac_cv_prog_CC+:} false; then :
3670   $as_echo_n "(cached) " >&6
3671 else
3672   if test -n "$CC"; then
3673   ac_cv_prog_CC="$CC" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680     for ac_exec_ext in '' $ac_executable_extensions; do
3681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684     break 2
3685   fi
3686 done
3687   done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702     test -n "$CC" && break
3703   done
3704 fi
3705 if test -z "$CC"; then
3706   ac_ct_CC=$CC
3707   for ac_prog in cl.exe
3708 do
3709   # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3714   $as_echo_n "(cached) " >&6
3715 else
3716   if test -n "$ac_ct_CC"; then
3717   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724     for ac_exec_ext in '' $ac_executable_extensions; do
3725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726     ac_cv_prog_ac_ct_CC="$ac_prog"
3727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728     break 2
3729   fi
3730 done
3731   done
3732 IFS=$as_save_IFS
3733
3734 fi
3735 fi
3736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3737 if test -n "$ac_ct_CC"; then
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3739 $as_echo "$ac_ct_CC" >&6; }
3740 else
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744
3745
3746   test -n "$ac_ct_CC" && break
3747 done
3748
3749   if test "x$ac_ct_CC" = x; then
3750     CC=""
3751   else
3752     case $cross_compiling:$ac_tool_warned in
3753 yes:)
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756 ac_tool_warned=yes ;;
3757 esac
3758     CC=$ac_ct_CC
3759   fi
3760 fi
3761
3762 fi
3763
3764
3765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "no acceptable C compiler found in \$PATH
3768 See \`config.log' for more details" "$LINENO" 5; }
3769
3770 # Provide some information about the compiler.
3771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3772 set X $ac_compile
3773 ac_compiler=$2
3774 for ac_option in --version -v -V -qversion; do
3775   { { ac_try="$ac_compiler $ac_option >&5"
3776 case "(($ac_try" in
3777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778   *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3783   ac_status=$?
3784   if test -s conftest.err; then
3785     sed '10a\
3786 ... rest of stderr output deleted ...
3787          10q' conftest.err >conftest.er1
3788     cat conftest.er1 >&5
3789   fi
3790   rm -f conftest.er1 conftest.err
3791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792   test $ac_status = 0; }
3793 done
3794
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797
3798 int
3799 main ()
3800 {
3801
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 ac_clean_files_save=$ac_clean_files
3807 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3808 # Try to create an executable without -o first, disregard a.out.
3809 # It will help us diagnose broken compilers, and finding out an intuition
3810 # of exeext.
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3812 $as_echo_n "checking whether the C compiler works... " >&6; }
3813 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3814
3815 # The possible output files:
3816 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3817
3818 ac_rmfiles=
3819 for ac_file in $ac_files
3820 do
3821   case $ac_file in
3822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3823     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3824   esac
3825 done
3826 rm -f $ac_rmfiles
3827
3828 if { { ac_try="$ac_link_default"
3829 case "(($ac_try" in
3830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831   *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835   (eval "$ac_link_default") 2>&5
3836   ac_status=$?
3837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838   test $ac_status = 0; }; then :
3839   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3840 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3841 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3842 # so that the user can short-circuit this test for compilers unknown to
3843 # Autoconf.
3844 for ac_file in $ac_files ''
3845 do
3846   test -f "$ac_file" || continue
3847   case $ac_file in
3848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3849         ;;
3850     [ab].out )
3851         # We found the default executable, but exeext='' is most
3852         # certainly right.
3853         break;;
3854     *.* )
3855         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3856         then :; else
3857            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3858         fi
3859         # We set ac_cv_exeext here because the later test for it is not
3860         # safe: cross compilers may not add the suffix if given an `-o'
3861         # argument, so we may need to know it at that point already.
3862         # Even if this section looks crufty: it has the advantage of
3863         # actually working.
3864         break;;
3865     * )
3866         break;;
3867   esac
3868 done
3869 test "$ac_cv_exeext" = no && ac_cv_exeext=
3870
3871 else
3872   ac_file=''
3873 fi
3874 if test -z "$ac_file"; then :
3875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3879
3880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error 77 "C compiler cannot create executables
3883 See \`config.log' for more details" "$LINENO" 5; }
3884 else
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3889 $as_echo_n "checking for C compiler default output file name... " >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 ac_exeext=$ac_cv_exeext
3893
3894 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3895 ac_clean_files=$ac_clean_files_save
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3897 $as_echo_n "checking for suffix of executables... " >&6; }
3898 if { { ac_try="$ac_link"
3899 case "(($ac_try" in
3900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901   *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905   (eval "$ac_link") 2>&5
3906   ac_status=$?
3907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908   test $ac_status = 0; }; then :
3909   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3910 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3911 # work properly (i.e., refer to `conftest.exe'), while it won't with
3912 # `rm'.
3913 for ac_file in conftest.exe conftest conftest.*; do
3914   test -f "$ac_file" || continue
3915   case $ac_file in
3916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3918           break;;
3919     * ) break;;
3920   esac
3921 done
3922 else
3923   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3926 See \`config.log' for more details" "$LINENO" 5; }
3927 fi
3928 rm -f conftest conftest$ac_cv_exeext
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3930 $as_echo "$ac_cv_exeext" >&6; }
3931
3932 rm -f conftest.$ac_ext
3933 EXEEXT=$ac_cv_exeext
3934 ac_exeext=$EXEEXT
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h.  */
3937 #include <stdio.h>
3938 int
3939 main ()
3940 {
3941 FILE *f = fopen ("conftest.out", "w");
3942  return ferror (f) || fclose (f) != 0;
3943
3944   ;
3945   return 0;
3946 }
3947 _ACEOF
3948 ac_clean_files="$ac_clean_files conftest.out"
3949 # Check that the compiler produces executables we can run.  If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 $as_echo_n "checking whether we are cross compiling... " >&6; }
3953 if test "$cross_compiling" != yes; then
3954   { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961   (eval "$ac_link") 2>&5
3962   ac_status=$?
3963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964   test $ac_status = 0; }
3965   if { ac_try='./conftest$ac_cv_exeext'
3966   { { case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972   (eval "$ac_try") 2>&5
3973   ac_status=$?
3974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975   test $ac_status = 0; }; }; then
3976     cross_compiling=no
3977   else
3978     if test "$cross_compiling" = maybe; then
3979         cross_compiling=yes
3980     else
3981         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "cannot run C compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details" "$LINENO" 5; }
3986     fi
3987   fi
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3991
3992 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3993 ac_clean_files=$ac_clean_files_save
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if ${ac_cv_objext+:} false; then :
3997   $as_echo_n "(cached) " >&6
3998 else
3999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h.  */
4001
4002 int
4003 main ()
4004 {
4005
4006   ;
4007   return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try="$ac_compile"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018   (eval "$ac_compile") 2>&5
4019   ac_status=$?
4020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021   test $ac_status = 0; }; then :
4022   for ac_file in conftest.o conftest.obj conftest.*; do
4023   test -f "$ac_file" || continue;
4024   case $ac_file in
4025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027        break;;
4028   esac
4029 done
4030 else
4031   $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "cannot compute suffix of object files: cannot compile
4037 See \`config.log' for more details" "$LINENO" 5; }
4038 fi
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4044 ac_objext=$OBJEXT
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if ${ac_cv_c_compiler_gnu+:} false; then :
4048   $as_echo_n "(cached) " >&6
4049 else
4050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h.  */
4052
4053 int
4054 main ()
4055 {
4056 #ifndef __GNUC__
4057        choke me
4058 #endif
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065   ac_compiler_gnu=yes
4066 else
4067   ac_compiler_gnu=no
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4076   GCC=yes
4077 else
4078   GCC=
4079 fi
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if ${ac_cv_prog_cc_g+:} false; then :
4085   $as_echo_n "(cached) " >&6
4086 else
4087   ac_save_c_werror_flag=$ac_c_werror_flag
4088    ac_c_werror_flag=yes
4089    ac_cv_prog_cc_g=no
4090    CFLAGS="-g"
4091    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103   ac_cv_prog_cc_g=yes
4104 else
4105   CFLAGS=""
4106       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h.  */
4108
4109 int
4110 main ()
4111 {
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118
4119 else
4120   ac_c_werror_flag=$ac_save_c_werror_flag
4121          CFLAGS="-g"
4122          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h.  */
4124
4125 int
4126 main ()
4127 {
4128
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134   ac_cv_prog_cc_g=yes
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141    ac_c_werror_flag=$ac_save_c_werror_flag
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146   CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148   if test "$GCC" = yes; then
4149     CFLAGS="-g -O2"
4150   else
4151     CFLAGS="-g"
4152   fi
4153 else
4154   if test "$GCC" = yes; then
4155     CFLAGS="-O2"
4156   else
4157     CFLAGS=
4158   fi
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if ${ac_cv_prog_cc_c89+:} false; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165   ac_cv_prog_cc_c89=no
4166 ac_save_CC=$CC
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h.  */
4169 #include <stdarg.h>
4170 #include <stdio.h>
4171 struct stat;
4172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4173 struct buf { int x; };
4174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4175 static char *e (p, i)
4176      char **p;
4177      int i;
4178 {
4179   return p[i];
4180 }
4181 static char *f (char * (*g) (char **, int), char **p, ...)
4182 {
4183   char *s;
4184   va_list v;
4185   va_start (v,p);
4186   s = g (p, va_arg (v,int));
4187   va_end (v);
4188   return s;
4189 }
4190
4191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4192    function prototypes and stuff, but not '\xHH' hex character constants.
4193    These don't provoke an error unfortunately, instead are silently treated
4194    as 'x'.  The following induces an error, until -std is added to get
4195    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4196    array size at least.  It's necessary to write '\x00'==0 to get something
4197    that's true only with -std.  */
4198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4199
4200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4201    inside strings and character constants.  */
4202 #define FOO(x) 'x'
4203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4204
4205 int test (int i, double x);
4206 struct s1 {int (*f) (int a);};
4207 struct s2 {int (*f) (double a);};
4208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4209 int argc;
4210 char **argv;
4211 int
4212 main ()
4213 {
4214 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4220         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4221 do
4222   CC="$ac_save_CC $ac_arg"
4223   if ac_fn_c_try_compile "$LINENO"; then :
4224   ac_cv_prog_cc_c89=$ac_arg
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext
4227   test "x$ac_cv_prog_cc_c89" != "xno" && break
4228 done
4229 rm -f conftest.$ac_ext
4230 CC=$ac_save_CC
4231
4232 fi
4233 # AC_CACHE_VAL
4234 case "x$ac_cv_prog_cc_c89" in
4235   x)
4236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4237 $as_echo "none needed" >&6; } ;;
4238   xno)
4239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4240 $as_echo "unsupported" >&6; } ;;
4241   *)
4242     CC="$CC $ac_cv_prog_cc_c89"
4243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4244 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4245 esac
4246 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247
4248 fi
4249
4250 ac_ext=c
4251 ac_cpp='$CPP $CPPFLAGS'
4252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4262 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4263 if ${am_cv_prog_cc_c_o+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277   # Make sure it works both with $CC and with simple cc.
4278   # Following AC_PROG_CC_C_O, we do the test twice because some
4279   # compilers refuse to overwrite an existing .o file with -o,
4280   # though they will create one.
4281   am_cv_prog_cc_c_o=yes
4282   for am_i in 1 2; do
4283     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4284    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4285    ac_status=$?
4286    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287    (exit $ac_status); } \
4288          && test -f conftest2.$ac_objext; then
4289       : OK
4290     else
4291       am_cv_prog_cc_c_o=no
4292       break
4293     fi
4294   done
4295   rm -f core conftest*
4296   unset am_i
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4299 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4300 if test "$am_cv_prog_cc_c_o" != yes; then
4301    # Losing compiler, so override with the script.
4302    # FIXME: It is wrong to rewrite CC.
4303    # But if we don't then we get into trouble of one sort or another.
4304    # A longer-term fix would be to have automake use am__CC in this case,
4305    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4306    CC="$am_aux_dir/compile $CC"
4307 fi
4308 ac_ext=c
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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    case $ac_cv_prog_cc_stdc in #(
4444   no) :
4445     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4446   *) :
4447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4448 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4449 if ${ac_cv_prog_cc_c99+:} false; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452   ac_cv_prog_cc_c99=no
4453 ac_save_CC=$CC
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h.  */
4456 #include <stdarg.h>
4457 #include <stdbool.h>
4458 #include <stdlib.h>
4459 #include <wchar.h>
4460 #include <stdio.h>
4461
4462 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4463 #define debug(...) fprintf (stderr, __VA_ARGS__)
4464 #define showlist(...) puts (#__VA_ARGS__)
4465 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4466 static void
4467 test_varargs_macros (void)
4468 {
4469   int x = 1234;
4470   int y = 5678;
4471   debug ("Flag");
4472   debug ("X = %d\n", x);
4473   showlist (The first, second, and third items.);
4474   report (x>y, "x is %d but y is %d", x, y);
4475 }
4476
4477 // Check long long types.
4478 #define BIG64 18446744073709551615ull
4479 #define BIG32 4294967295ul
4480 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4481 #if !BIG_OK
4482   your preprocessor is broken;
4483 #endif
4484 #if BIG_OK
4485 #else
4486   your preprocessor is broken;
4487 #endif
4488 static long long int bignum = -9223372036854775807LL;
4489 static unsigned long long int ubignum = BIG64;
4490
4491 struct incomplete_array
4492 {
4493   int datasize;
4494   double data[];
4495 };
4496
4497 struct named_init {
4498   int number;
4499   const wchar_t *name;
4500   double average;
4501 };
4502
4503 typedef const char *ccp;
4504
4505 static inline int
4506 test_restrict (ccp restrict text)
4507 {
4508   // See if C++-style comments work.
4509   // Iterate through items via the restricted pointer.
4510   // Also check for declarations in for loops.
4511   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4512     continue;
4513   return 0;
4514 }
4515
4516 // Check varargs and va_copy.
4517 static void
4518 test_varargs (const char *format, ...)
4519 {
4520   va_list args;
4521   va_start (args, format);
4522   va_list args_copy;
4523   va_copy (args_copy, args);
4524
4525   const char *str;
4526   int number;
4527   float fnumber;
4528
4529   while (*format)
4530     {
4531       switch (*format++)
4532         {
4533         case 's': // string
4534           str = va_arg (args_copy, const char *);
4535           break;
4536         case 'd': // int
4537           number = va_arg (args_copy, int);
4538           break;
4539         case 'f': // float
4540           fnumber = va_arg (args_copy, double);
4541           break;
4542         default:
4543           break;
4544         }
4545     }
4546   va_end (args_copy);
4547   va_end (args);
4548 }
4549
4550 int
4551 main ()
4552 {
4553
4554   // Check bool.
4555   _Bool success = false;
4556
4557   // Check restrict.
4558   if (test_restrict ("String literal") == 0)
4559     success = true;
4560   char *restrict newvar = "Another string";
4561
4562   // Check varargs.
4563   test_varargs ("s, d' f .", "string", 65, 34.234);
4564   test_varargs_macros ();
4565
4566   // Check flexible array members.
4567   struct incomplete_array *ia =
4568     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4569   ia->datasize = 10;
4570   for (int i = 0; i < ia->datasize; ++i)
4571     ia->data[i] = i * 1.234;
4572
4573   // Check named initializers.
4574   struct named_init ni = {
4575     .number = 34,
4576     .name = L"Test wide string",
4577     .average = 543.34343,
4578   };
4579
4580   ni.number = 58;
4581
4582   int dynamic_array[ni.number];
4583   dynamic_array[ni.number - 1] = 543;
4584
4585   // work around unused variable warnings
4586   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4587           || dynamic_array[ni.number - 1] != 543);
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4594 do
4595   CC="$ac_save_CC $ac_arg"
4596   if ac_fn_c_try_compile "$LINENO"; then :
4597   ac_cv_prog_cc_c99=$ac_arg
4598 fi
4599 rm -f core conftest.err conftest.$ac_objext
4600   test "x$ac_cv_prog_cc_c99" != "xno" && break
4601 done
4602 rm -f conftest.$ac_ext
4603 CC=$ac_save_CC
4604
4605 fi
4606 # AC_CACHE_VAL
4607 case "x$ac_cv_prog_cc_c99" in
4608   x)
4609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4610 $as_echo "none needed" >&6; } ;;
4611   xno)
4612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4613 $as_echo "unsupported" >&6; } ;;
4614   *)
4615     CC="$CC $ac_cv_prog_cc_c99"
4616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4617 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4618 esac
4619 if test "x$ac_cv_prog_cc_c99" != xno; then :
4620   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4621 else
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4623 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4624 if ${ac_cv_prog_cc_c89+:} false; then :
4625   $as_echo_n "(cached) " >&6
4626 else
4627   ac_cv_prog_cc_c89=no
4628 ac_save_CC=$CC
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h.  */
4631 #include <stdarg.h>
4632 #include <stdio.h>
4633 struct stat;
4634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4635 struct buf { int x; };
4636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4637 static char *e (p, i)
4638      char **p;
4639      int i;
4640 {
4641   return p[i];
4642 }
4643 static char *f (char * (*g) (char **, int), char **p, ...)
4644 {
4645   char *s;
4646   va_list v;
4647   va_start (v,p);
4648   s = g (p, va_arg (v,int));
4649   va_end (v);
4650   return s;
4651 }
4652
4653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4654    function prototypes and stuff, but not '\xHH' hex character constants.
4655    These don't provoke an error unfortunately, instead are silently treated
4656    as 'x'.  The following induces an error, until -std is added to get
4657    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4658    array size at least.  It's necessary to write '\x00'==0 to get something
4659    that's true only with -std.  */
4660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4661
4662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4663    inside strings and character constants.  */
4664 #define FOO(x) 'x'
4665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4666
4667 int test (int i, double x);
4668 struct s1 {int (*f) (int a);};
4669 struct s2 {int (*f) (double a);};
4670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4671 int argc;
4672 char **argv;
4673 int
4674 main ()
4675 {
4676 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4677   ;
4678   return 0;
4679 }
4680 _ACEOF
4681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4682         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4683 do
4684   CC="$ac_save_CC $ac_arg"
4685   if ac_fn_c_try_compile "$LINENO"; then :
4686   ac_cv_prog_cc_c89=$ac_arg
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext
4689   test "x$ac_cv_prog_cc_c89" != "xno" && break
4690 done
4691 rm -f conftest.$ac_ext
4692 CC=$ac_save_CC
4693
4694 fi
4695 # AC_CACHE_VAL
4696 case "x$ac_cv_prog_cc_c89" in
4697   x)
4698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4699 $as_echo "none needed" >&6; } ;;
4700   xno)
4701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4702 $as_echo "unsupported" >&6; } ;;
4703   *)
4704     CC="$CC $ac_cv_prog_cc_c89"
4705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4706 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4707 esac
4708 if test "x$ac_cv_prog_cc_c89" != xno; then :
4709   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4710 else
4711   ac_cv_prog_cc_stdc=no
4712 fi
4713
4714 fi
4715  ;;
4716 esac
4717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4718 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4719   if ${ac_cv_prog_cc_stdc+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 fi
4722
4723   case $ac_cv_prog_cc_stdc in #(
4724   no) :
4725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4726 $as_echo "unsupported" >&6; } ;; #(
4727   '') :
4728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4729 $as_echo "none needed" >&6; } ;; #(
4730   *) :
4731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4732 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4733 esac
4734
4735
4736 ac_ext=c
4737 ac_cpp='$CPP $CPPFLAGS'
4738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4742 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4743 # On Suns, sometimes $CPP names a directory.
4744 if test -n "$CPP" && test -d "$CPP"; then
4745   CPP=
4746 fi
4747 if test -z "$CPP"; then
4748   if ${ac_cv_prog_CPP+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751       # Double quotes because CPP needs to be expanded
4752     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4753     do
4754       ac_preproc_ok=false
4755 for ac_c_preproc_warn_flag in '' yes
4756 do
4757   # Use a header file that comes with gcc, so configuring glibc
4758   # with a fresh cross-compiler works.
4759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4760   # <limits.h> exists even on freestanding compilers.
4761   # On the NeXT, cc -E runs the code through the compiler's parser,
4762   # not just through cpp. "Syntax error" is here to catch this case.
4763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h.  */
4765 #ifdef __STDC__
4766 # include <limits.h>
4767 #else
4768 # include <assert.h>
4769 #endif
4770                      Syntax error
4771 _ACEOF
4772 if ac_fn_c_try_cpp "$LINENO"; then :
4773
4774 else
4775   # Broken: fails on valid input.
4776 continue
4777 fi
4778 rm -f conftest.err conftest.i conftest.$ac_ext
4779
4780   # OK, works on sane cases.  Now check whether nonexistent headers
4781   # can be detected and how.
4782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h.  */
4784 #include <ac_nonexistent.h>
4785 _ACEOF
4786 if ac_fn_c_try_cpp "$LINENO"; then :
4787   # Broken: success on invalid input.
4788 continue
4789 else
4790   # Passes both tests.
4791 ac_preproc_ok=:
4792 break
4793 fi
4794 rm -f conftest.err conftest.i conftest.$ac_ext
4795
4796 done
4797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4798 rm -f conftest.i conftest.err conftest.$ac_ext
4799 if $ac_preproc_ok; then :
4800   break
4801 fi
4802
4803     done
4804     ac_cv_prog_CPP=$CPP
4805
4806 fi
4807   CPP=$ac_cv_prog_CPP
4808 else
4809   ac_cv_prog_CPP=$CPP
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4812 $as_echo "$CPP" >&6; }
4813 ac_preproc_ok=false
4814 for ac_c_preproc_warn_flag in '' yes
4815 do
4816   # Use a header file that comes with gcc, so configuring glibc
4817   # with a fresh cross-compiler works.
4818   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4819   # <limits.h> exists even on freestanding compilers.
4820   # On the NeXT, cc -E runs the code through the compiler's parser,
4821   # not just through cpp. "Syntax error" is here to catch this case.
4822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h.  */
4824 #ifdef __STDC__
4825 # include <limits.h>
4826 #else
4827 # include <assert.h>
4828 #endif
4829                      Syntax error
4830 _ACEOF
4831 if ac_fn_c_try_cpp "$LINENO"; then :
4832
4833 else
4834   # Broken: fails on valid input.
4835 continue
4836 fi
4837 rm -f conftest.err conftest.i conftest.$ac_ext
4838
4839   # OK, works on sane cases.  Now check whether nonexistent headers
4840   # can be detected and how.
4841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h.  */
4843 #include <ac_nonexistent.h>
4844 _ACEOF
4845 if ac_fn_c_try_cpp "$LINENO"; then :
4846   # Broken: success on invalid input.
4847 continue
4848 else
4849   # Passes both tests.
4850 ac_preproc_ok=:
4851 break
4852 fi
4853 rm -f conftest.err conftest.i conftest.$ac_ext
4854
4855 done
4856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4857 rm -f conftest.i conftest.err conftest.$ac_ext
4858 if $ac_preproc_ok; then :
4859
4860 else
4861   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4863 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4864 See \`config.log' for more details" "$LINENO" 5; }
4865 fi
4866
4867 ac_ext=c
4868 ac_cpp='$CPP $CPPFLAGS'
4869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872
4873
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4875 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4876 if ${ac_cv_path_GREP+:} false; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   if test -z "$GREP"; then
4880   ac_path_GREP_found=false
4881   # Loop through the user's path and test for each of PROGNAME-LIST
4882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4884 do
4885   IFS=$as_save_IFS
4886   test -z "$as_dir" && as_dir=.
4887     for ac_prog in grep ggrep; do
4888     for ac_exec_ext in '' $ac_executable_extensions; do
4889       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4890       as_fn_executable_p "$ac_path_GREP" || continue
4891 # Check for GNU ac_path_GREP and select it if it is found.
4892   # Check for GNU $ac_path_GREP
4893 case `"$ac_path_GREP" --version 2>&1` in
4894 *GNU*)
4895   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4896 *)
4897   ac_count=0
4898   $as_echo_n 0123456789 >"conftest.in"
4899   while :
4900   do
4901     cat "conftest.in" "conftest.in" >"conftest.tmp"
4902     mv "conftest.tmp" "conftest.in"
4903     cp "conftest.in" "conftest.nl"
4904     $as_echo 'GREP' >> "conftest.nl"
4905     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4906     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4907     as_fn_arith $ac_count + 1 && ac_count=$as_val
4908     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4909       # Best one so far, save it but keep looking for a better one
4910       ac_cv_path_GREP="$ac_path_GREP"
4911       ac_path_GREP_max=$ac_count
4912     fi
4913     # 10*(2^10) chars as input seems more than enough
4914     test $ac_count -gt 10 && break
4915   done
4916   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4917 esac
4918
4919       $ac_path_GREP_found && break 3
4920     done
4921   done
4922   done
4923 IFS=$as_save_IFS
4924   if test -z "$ac_cv_path_GREP"; then
4925     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4926   fi
4927 else
4928   ac_cv_path_GREP=$GREP
4929 fi
4930
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4933 $as_echo "$ac_cv_path_GREP" >&6; }
4934  GREP="$ac_cv_path_GREP"
4935
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4938 $as_echo_n "checking for egrep... " >&6; }
4939 if ${ac_cv_path_EGREP+:} false; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4943    then ac_cv_path_EGREP="$GREP -E"
4944    else
4945      if test -z "$EGREP"; then
4946   ac_path_EGREP_found=false
4947   # Loop through the user's path and test for each of PROGNAME-LIST
4948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953     for ac_prog in egrep; do
4954     for ac_exec_ext in '' $ac_executable_extensions; do
4955       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4956       as_fn_executable_p "$ac_path_EGREP" || continue
4957 # Check for GNU ac_path_EGREP and select it if it is found.
4958   # Check for GNU $ac_path_EGREP
4959 case `"$ac_path_EGREP" --version 2>&1` in
4960 *GNU*)
4961   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4962 *)
4963   ac_count=0
4964   $as_echo_n 0123456789 >"conftest.in"
4965   while :
4966   do
4967     cat "conftest.in" "conftest.in" >"conftest.tmp"
4968     mv "conftest.tmp" "conftest.in"
4969     cp "conftest.in" "conftest.nl"
4970     $as_echo 'EGREP' >> "conftest.nl"
4971     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4972     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4973     as_fn_arith $ac_count + 1 && ac_count=$as_val
4974     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4975       # Best one so far, save it but keep looking for a better one
4976       ac_cv_path_EGREP="$ac_path_EGREP"
4977       ac_path_EGREP_max=$ac_count
4978     fi
4979     # 10*(2^10) chars as input seems more than enough
4980     test $ac_count -gt 10 && break
4981   done
4982   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4983 esac
4984
4985       $ac_path_EGREP_found && break 3
4986     done
4987   done
4988   done
4989 IFS=$as_save_IFS
4990   if test -z "$ac_cv_path_EGREP"; then
4991     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4992   fi
4993 else
4994   ac_cv_path_EGREP=$EGREP
4995 fi
4996
4997    fi
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5000 $as_echo "$ac_cv_path_EGREP" >&6; }
5001  EGREP="$ac_cv_path_EGREP"
5002
5003
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5005 $as_echo_n "checking for ANSI C header files... " >&6; }
5006 if ${ac_cv_header_stdc+:} false; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h.  */
5011 #include <stdlib.h>
5012 #include <stdarg.h>
5013 #include <string.h>
5014 #include <float.h>
5015
5016 int
5017 main ()
5018 {
5019
5020   ;
5021   return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025   ac_cv_header_stdc=yes
5026 else
5027   ac_cv_header_stdc=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030
5031 if test $ac_cv_header_stdc = yes; then
5032   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h.  */
5035 #include <string.h>
5036
5037 _ACEOF
5038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5039   $EGREP "memchr" >/dev/null 2>&1; then :
5040
5041 else
5042   ac_cv_header_stdc=no
5043 fi
5044 rm -f conftest*
5045
5046 fi
5047
5048 if test $ac_cv_header_stdc = yes; then
5049   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052 #include <stdlib.h>
5053
5054 _ACEOF
5055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5056   $EGREP "free" >/dev/null 2>&1; then :
5057
5058 else
5059   ac_cv_header_stdc=no
5060 fi
5061 rm -f conftest*
5062
5063 fi
5064
5065 if test $ac_cv_header_stdc = yes; then
5066   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5067   if test "$cross_compiling" = yes; then :
5068   :
5069 else
5070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h.  */
5072 #include <ctype.h>
5073 #include <stdlib.h>
5074 #if ((' ' & 0x0FF) == 0x020)
5075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5077 #else
5078 # define ISLOWER(c) \
5079                    (('a' <= (c) && (c) <= 'i') \
5080                      || ('j' <= (c) && (c) <= 'r') \
5081                      || ('s' <= (c) && (c) <= 'z'))
5082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5083 #endif
5084
5085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5086 int
5087 main ()
5088 {
5089   int i;
5090   for (i = 0; i < 256; i++)
5091     if (XOR (islower (i), ISLOWER (i))
5092         || toupper (i) != TOUPPER (i))
5093       return 2;
5094   return 0;
5095 }
5096 _ACEOF
5097 if ac_fn_c_try_run "$LINENO"; then :
5098
5099 else
5100   ac_cv_header_stdc=no
5101 fi
5102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5103   conftest.$ac_objext conftest.beam conftest.$ac_ext
5104 fi
5105
5106 fi
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5109 $as_echo "$ac_cv_header_stdc" >&6; }
5110 if test $ac_cv_header_stdc = yes; then
5111
5112 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5113
5114 fi
5115
5116 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5117 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5118                   inttypes.h stdint.h unistd.h
5119 do :
5120   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5121 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5122 "
5123 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5124   cat >>confdefs.h <<_ACEOF
5125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5126 _ACEOF
5127
5128 fi
5129
5130 done
5131
5132
5133
5134   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5135 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5136   MINIX=yes
5137 else
5138   MINIX=
5139 fi
5140
5141
5142   if test "$MINIX" = yes; then
5143
5144 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5145
5146
5147 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5148
5149
5150 $as_echo "#define _MINIX 1" >>confdefs.h
5151
5152   fi
5153
5154
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5156 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5157 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h.  */
5162
5163 #         define __EXTENSIONS__ 1
5164           $ac_includes_default
5165 int
5166 main ()
5167 {
5168
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"; then :
5174   ac_cv_safe_to_define___extensions__=yes
5175 else
5176   ac_cv_safe_to_define___extensions__=no
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 fi
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5181 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5182   test $ac_cv_safe_to_define___extensions__ = yes &&
5183     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5184
5185   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5186
5187   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5188
5189   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5190
5191   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5192
5193
5194
5195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5196 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5197 if ${ac_cv_c_bigendian+:} false; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   ac_cv_c_bigendian=unknown
5201     # See if we're dealing with a universal compiler.
5202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h.  */
5204 #ifndef __APPLE_CC__
5205                not a universal capable compiler
5206              #endif
5207              typedef int dummy;
5208
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211
5212         # Check for potential -arch flags.  It is not universal unless
5213         # there are at least two -arch flags with different values.
5214         ac_arch=
5215         ac_prev=
5216         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5217          if test -n "$ac_prev"; then
5218            case $ac_word in
5219              i?86 | x86_64 | ppc | ppc64)
5220                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5221                  ac_arch=$ac_word
5222                else
5223                  ac_cv_c_bigendian=universal
5224                  break
5225                fi
5226                ;;
5227            esac
5228            ac_prev=
5229          elif test "x$ac_word" = "x-arch"; then
5230            ac_prev=arch
5231          fi
5232        done
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235     if test $ac_cv_c_bigendian = unknown; then
5236       # See if sys/param.h defines the BYTE_ORDER macro.
5237       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h.  */
5239 #include <sys/types.h>
5240              #include <sys/param.h>
5241
5242 int
5243 main ()
5244 {
5245 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5246                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5247                      && LITTLE_ENDIAN)
5248               bogus endian macros
5249              #endif
5250
5251   ;
5252   return 0;
5253 }
5254 _ACEOF
5255 if ac_fn_c_try_compile "$LINENO"; then :
5256   # It does; now see whether it defined to BIG_ENDIAN or not.
5257          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h.  */
5259 #include <sys/types.h>
5260                 #include <sys/param.h>
5261
5262 int
5263 main ()
5264 {
5265 #if BYTE_ORDER != BIG_ENDIAN
5266                  not big endian
5267                 #endif
5268
5269   ;
5270   return 0;
5271 }
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274   ac_cv_c_bigendian=yes
5275 else
5276   ac_cv_c_bigendian=no
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281     fi
5282     if test $ac_cv_c_bigendian = unknown; then
5283       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5284       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 #include <limits.h>
5287
5288 int
5289 main ()
5290 {
5291 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5292               bogus endian macros
5293              #endif
5294
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300   # It does; now see whether it defined to _BIG_ENDIAN or not.
5301          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h.  */
5303 #include <limits.h>
5304
5305 int
5306 main ()
5307 {
5308 #ifndef _BIG_ENDIAN
5309                  not big endian
5310                 #endif
5311
5312   ;
5313   return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_c_try_compile "$LINENO"; then :
5317   ac_cv_c_bigendian=yes
5318 else
5319   ac_cv_c_bigendian=no
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324     fi
5325     if test $ac_cv_c_bigendian = unknown; then
5326       # Compile a test program.
5327       if test "$cross_compiling" = yes; then :
5328   # Try to guess by grepping values from an object file.
5329          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331 short int ascii_mm[] =
5332                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5333                 short int ascii_ii[] =
5334                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5335                 int use_ascii (int i) {
5336                   return ascii_mm[i] + ascii_ii[i];
5337                 }
5338                 short int ebcdic_ii[] =
5339                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5340                 short int ebcdic_mm[] =
5341                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5342                 int use_ebcdic (int i) {
5343                   return ebcdic_mm[i] + ebcdic_ii[i];
5344                 }
5345                 extern int foo;
5346
5347 int
5348 main ()
5349 {
5350 return use_ascii (foo) == use_ebcdic (foo);
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5357               ac_cv_c_bigendian=yes
5358             fi
5359             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5360               if test "$ac_cv_c_bigendian" = unknown; then
5361                 ac_cv_c_bigendian=no
5362               else
5363                 # finding both strings is unlikely to happen, but who knows?
5364                 ac_cv_c_bigendian=unknown
5365               fi
5366             fi
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369 else
5370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h.  */
5372 $ac_includes_default
5373 int
5374 main ()
5375 {
5376
5377              /* Are we little or big endian?  From Harbison&Steele.  */
5378              union
5379              {
5380                long int l;
5381                char c[sizeof (long int)];
5382              } u;
5383              u.l = 1;
5384              return u.c[sizeof (long int) - 1] == 1;
5385
5386   ;
5387   return 0;
5388 }
5389 _ACEOF
5390 if ac_fn_c_try_run "$LINENO"; then :
5391   ac_cv_c_bigendian=no
5392 else
5393   ac_cv_c_bigendian=yes
5394 fi
5395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5396   conftest.$ac_objext conftest.beam conftest.$ac_ext
5397 fi
5398
5399     fi
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5402 $as_echo "$ac_cv_c_bigendian" >&6; }
5403  case $ac_cv_c_bigendian in #(
5404    yes)
5405      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5406 ;; #(
5407    no)
5408       ;; #(
5409    universal)
5410
5411 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5412
5413      ;; #(
5414    *)
5415      as_fn_error $? "unknown endianness
5416  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5417  esac
5418
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5421 $as_echo_n "checking whether ln -s works... " >&6; }
5422 LN_S=$as_ln_s
5423 if test "$LN_S" = "ln -s"; then
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5425 $as_echo "yes" >&6; }
5426 else
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5428 $as_echo "no, using $LN_S" >&6; }
5429 fi
5430
5431 case `pwd` in
5432   *\ * | *\     *)
5433     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5434 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5435 esac
5436
5437
5438
5439 macro_version='2.4.6'
5440 macro_revision='2.4.6'
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454 ltmain=$ac_aux_dir/ltmain.sh
5455
5456 # Backslashify metacharacters that are still active within
5457 # double-quoted strings.
5458 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5459
5460 # Same as above, but do not quote variable references.
5461 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5462
5463 # Sed substitution to delay expansion of an escaped shell variable in a
5464 # double_quote_subst'ed string.
5465 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5466
5467 # Sed substitution to delay expansion of an escaped single quote.
5468 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5469
5470 # Sed substitution to avoid accidental globbing in evaled expressions
5471 no_glob_subst='s/\*/\\\*/g'
5472
5473 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5474 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5475 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5478 $as_echo_n "checking how to print strings... " >&6; }
5479 # Test print first, because it will be a builtin if present.
5480 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5481    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5482   ECHO='print -r --'
5483 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5484   ECHO='printf %s\n'
5485 else
5486   # Use this function as a fallback that always works.
5487   func_fallback_echo ()
5488   {
5489     eval 'cat <<_LTECHO_EOF
5490 $1
5491 _LTECHO_EOF'
5492   }
5493   ECHO='func_fallback_echo'
5494 fi
5495
5496 # func_echo_all arg...
5497 # Invoke $ECHO with all args, space-separated.
5498 func_echo_all ()
5499 {
5500     $ECHO ""
5501 }
5502
5503 case $ECHO in
5504   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5505 $as_echo "printf" >&6; } ;;
5506   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5507 $as_echo "print -r" >&6; } ;;
5508   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5509 $as_echo "cat" >&6; } ;;
5510 esac
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5526 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5527 if ${ac_cv_path_SED+:} false; then :
5528   $as_echo_n "(cached) " >&6
5529 else
5530             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5531      for ac_i in 1 2 3 4 5 6 7; do
5532        ac_script="$ac_script$as_nl$ac_script"
5533      done
5534      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5535      { ac_script=; unset ac_script;}
5536      if test -z "$SED"; then
5537   ac_path_SED_found=false
5538   # Loop through the user's path and test for each of PROGNAME-LIST
5539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542   IFS=$as_save_IFS
5543   test -z "$as_dir" && as_dir=.
5544     for ac_prog in sed gsed; do
5545     for ac_exec_ext in '' $ac_executable_extensions; do
5546       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5547       as_fn_executable_p "$ac_path_SED" || continue
5548 # Check for GNU ac_path_SED and select it if it is found.
5549   # Check for GNU $ac_path_SED
5550 case `"$ac_path_SED" --version 2>&1` in
5551 *GNU*)
5552   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5553 *)
5554   ac_count=0
5555   $as_echo_n 0123456789 >"conftest.in"
5556   while :
5557   do
5558     cat "conftest.in" "conftest.in" >"conftest.tmp"
5559     mv "conftest.tmp" "conftest.in"
5560     cp "conftest.in" "conftest.nl"
5561     $as_echo '' >> "conftest.nl"
5562     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5563     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5564     as_fn_arith $ac_count + 1 && ac_count=$as_val
5565     if test $ac_count -gt ${ac_path_SED_max-0}; then
5566       # Best one so far, save it but keep looking for a better one
5567       ac_cv_path_SED="$ac_path_SED"
5568       ac_path_SED_max=$ac_count
5569     fi
5570     # 10*(2^10) chars as input seems more than enough
5571     test $ac_count -gt 10 && break
5572   done
5573   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5574 esac
5575
5576       $ac_path_SED_found && break 3
5577     done
5578   done
5579   done
5580 IFS=$as_save_IFS
5581   if test -z "$ac_cv_path_SED"; then
5582     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5583   fi
5584 else
5585   ac_cv_path_SED=$SED
5586 fi
5587
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5590 $as_echo "$ac_cv_path_SED" >&6; }
5591  SED="$ac_cv_path_SED"
5592   rm -f conftest.sed
5593
5594 test -z "$SED" && SED=sed
5595 Xsed="$SED -e 1s/^X//"
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5608 $as_echo_n "checking for fgrep... " >&6; }
5609 if ${ac_cv_path_FGREP+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5613    then ac_cv_path_FGREP="$GREP -F"
5614    else
5615      if test -z "$FGREP"; then
5616   ac_path_FGREP_found=false
5617   # Loop through the user's path and test for each of PROGNAME-LIST
5618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5620 do
5621   IFS=$as_save_IFS
5622   test -z "$as_dir" && as_dir=.
5623     for ac_prog in fgrep; do
5624     for ac_exec_ext in '' $ac_executable_extensions; do
5625       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5626       as_fn_executable_p "$ac_path_FGREP" || continue
5627 # Check for GNU ac_path_FGREP and select it if it is found.
5628   # Check for GNU $ac_path_FGREP
5629 case `"$ac_path_FGREP" --version 2>&1` in
5630 *GNU*)
5631   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5632 *)
5633   ac_count=0
5634   $as_echo_n 0123456789 >"conftest.in"
5635   while :
5636   do
5637     cat "conftest.in" "conftest.in" >"conftest.tmp"
5638     mv "conftest.tmp" "conftest.in"
5639     cp "conftest.in" "conftest.nl"
5640     $as_echo 'FGREP' >> "conftest.nl"
5641     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5642     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5643     as_fn_arith $ac_count + 1 && ac_count=$as_val
5644     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5645       # Best one so far, save it but keep looking for a better one
5646       ac_cv_path_FGREP="$ac_path_FGREP"
5647       ac_path_FGREP_max=$ac_count
5648     fi
5649     # 10*(2^10) chars as input seems more than enough
5650     test $ac_count -gt 10 && break
5651   done
5652   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5653 esac
5654
5655       $ac_path_FGREP_found && break 3
5656     done
5657   done
5658   done
5659 IFS=$as_save_IFS
5660   if test -z "$ac_cv_path_FGREP"; then
5661     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5662   fi
5663 else
5664   ac_cv_path_FGREP=$FGREP
5665 fi
5666
5667    fi
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5670 $as_echo "$ac_cv_path_FGREP" >&6; }
5671  FGREP="$ac_cv_path_FGREP"
5672
5673
5674 test -z "$GREP" && GREP=grep
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 # Check whether --with-gnu-ld was given.
5695 if test "${with_gnu_ld+set}" = set; then :
5696   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5697 else
5698   with_gnu_ld=no
5699 fi
5700
5701 ac_prog=ld
5702 if test yes = "$GCC"; then
5703   # Check if gcc -print-prog-name=ld gives a path.
5704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5705 $as_echo_n "checking for ld used by $CC... " >&6; }
5706   case $host in
5707   *-*-mingw*)
5708     # gcc leaves a trailing carriage return, which upsets mingw
5709     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5710   *)
5711     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5712   esac
5713   case $ac_prog in
5714     # Accept absolute paths.
5715     [\\/]* | ?:[\\/]*)
5716       re_direlt='/[^/][^/]*/\.\./'
5717       # Canonicalize the pathname of ld
5718       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5719       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5720         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5721       done
5722       test -z "$LD" && LD=$ac_prog
5723       ;;
5724   "")
5725     # If it fails, then pretend we aren't using GCC.
5726     ac_prog=ld
5727     ;;
5728   *)
5729     # If it is relative, then search for the first ld in PATH.
5730     with_gnu_ld=unknown
5731     ;;
5732   esac
5733 elif test yes = "$with_gnu_ld"; then
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5735 $as_echo_n "checking for GNU ld... " >&6; }
5736 else
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5738 $as_echo_n "checking for non-GNU ld... " >&6; }
5739 fi
5740 if ${lt_cv_path_LD+:} false; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   if test -z "$LD"; then
5744   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5745   for ac_dir in $PATH; do
5746     IFS=$lt_save_ifs
5747     test -z "$ac_dir" && ac_dir=.
5748     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5749       lt_cv_path_LD=$ac_dir/$ac_prog
5750       # Check to see if the program is GNU ld.  I'd rather use --version,
5751       # but apparently some variants of GNU ld only accept -v.
5752       # Break only if it was the GNU/non-GNU ld that we prefer.
5753       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5754       *GNU* | *'with BFD'*)
5755         test no != "$with_gnu_ld" && break
5756         ;;
5757       *)
5758         test yes != "$with_gnu_ld" && break
5759         ;;
5760       esac
5761     fi
5762   done
5763   IFS=$lt_save_ifs
5764 else
5765   lt_cv_path_LD=$LD # Let the user override the test with a path.
5766 fi
5767 fi
5768
5769 LD=$lt_cv_path_LD
5770 if test -n "$LD"; then
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5772 $as_echo "$LD" >&6; }
5773 else
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5776 fi
5777 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5779 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5780 if ${lt_cv_prog_gnu_ld+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5784 case `$LD -v 2>&1 </dev/null` in
5785 *GNU* | *'with BFD'*)
5786   lt_cv_prog_gnu_ld=yes
5787   ;;
5788 *)
5789   lt_cv_prog_gnu_ld=no
5790   ;;
5791 esac
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5794 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5795 with_gnu_ld=$lt_cv_prog_gnu_ld
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5806 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5807 if ${lt_cv_path_NM+:} false; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   if test -n "$NM"; then
5811   # Let the user override the test.
5812   lt_cv_path_NM=$NM
5813 else
5814   lt_nm_to_check=${ac_tool_prefix}nm
5815   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5816     lt_nm_to_check="$lt_nm_to_check nm"
5817   fi
5818   for lt_tmp_nm in $lt_nm_to_check; do
5819     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5820     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5821       IFS=$lt_save_ifs
5822       test -z "$ac_dir" && ac_dir=.
5823       tmp_nm=$ac_dir/$lt_tmp_nm
5824       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5825         # Check to see if the nm accepts a BSD-compat flag.
5826         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5827         #   nm: unknown option "B" ignored
5828         # Tru64's nm complains that /dev/null is an invalid object file
5829         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5830         case $build_os in
5831         mingw*) lt_bad_file=conftest.nm/nofile ;;
5832         *) lt_bad_file=/dev/null ;;
5833         esac
5834         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5835         *$lt_bad_file* | *'Invalid file or object type'*)
5836           lt_cv_path_NM="$tmp_nm -B"
5837           break 2
5838           ;;
5839         *)
5840           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5841           */dev/null*)
5842             lt_cv_path_NM="$tmp_nm -p"
5843             break 2
5844             ;;
5845           *)
5846             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5847             continue # so that we can try to find one that supports BSD flags
5848             ;;
5849           esac
5850           ;;
5851         esac
5852       fi
5853     done
5854     IFS=$lt_save_ifs
5855   done
5856   : ${lt_cv_path_NM=no}
5857 fi
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5860 $as_echo "$lt_cv_path_NM" >&6; }
5861 if test no != "$lt_cv_path_NM"; then
5862   NM=$lt_cv_path_NM
5863 else
5864   # Didn't find any BSD compatible name lister, look for dumpbin.
5865   if test -n "$DUMPBIN"; then :
5866     # Let the user override the test.
5867   else
5868     if test -n "$ac_tool_prefix"; then
5869   for ac_prog in dumpbin "link -dump"
5870   do
5871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if ${ac_cv_prog_DUMPBIN+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   if test -n "$DUMPBIN"; then
5879   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886     for ac_exec_ext in '' $ac_executable_extensions; do
5887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893   done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 DUMPBIN=$ac_cv_prog_DUMPBIN
5899 if test -n "$DUMPBIN"; then
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5901 $as_echo "$DUMPBIN" >&6; }
5902 else
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906
5907
5908     test -n "$DUMPBIN" && break
5909   done
5910 fi
5911 if test -z "$DUMPBIN"; then
5912   ac_ct_DUMPBIN=$DUMPBIN
5913   for ac_prog in dumpbin "link -dump"
5914 do
5915   # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5920   $as_echo_n "(cached) " >&6
5921 else
5922   if test -n "$ac_ct_DUMPBIN"; then
5923   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930     for ac_exec_ext in '' $ac_executable_extensions; do
5931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937   done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5943 if test -n "$ac_ct_DUMPBIN"; then
5944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5946 else
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952   test -n "$ac_ct_DUMPBIN" && break
5953 done
5954
5955   if test "x$ac_ct_DUMPBIN" = x; then
5956     DUMPBIN=":"
5957   else
5958     case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5963 esac
5964     DUMPBIN=$ac_ct_DUMPBIN
5965   fi
5966 fi
5967
5968     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5969     *COFF*)
5970       DUMPBIN="$DUMPBIN -symbols -headers"
5971       ;;
5972     *)
5973       DUMPBIN=:
5974       ;;
5975     esac
5976   fi
5977
5978   if test : != "$DUMPBIN"; then
5979     NM=$DUMPBIN
5980   fi
5981 fi
5982 test -z "$NM" && NM=nm
5983
5984
5985
5986
5987
5988
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5990 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5991 if ${lt_cv_nm_interface+:} false; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994   lt_cv_nm_interface="BSD nm"
5995   echo "int some_variable = 0;" > conftest.$ac_ext
5996   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5997   (eval "$ac_compile" 2>conftest.err)
5998   cat conftest.err >&5
5999   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6000   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6001   cat conftest.err >&5
6002   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6003   cat conftest.out >&5
6004   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6005     lt_cv_nm_interface="MS dumpbin"
6006   fi
6007   rm -f conftest*
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6010 $as_echo "$lt_cv_nm_interface" >&6; }
6011
6012 # find the maximum length of command line arguments
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6014 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6015 if ${lt_cv_sys_max_cmd_len+:} false; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018     i=0
6019   teststring=ABCD
6020
6021   case $build_os in
6022   msdosdjgpp*)
6023     # On DJGPP, this test can blow up pretty badly due to problems in libc
6024     # (any single argument exceeding 2000 bytes causes a buffer overrun
6025     # during glob expansion).  Even if it were fixed, the result of this
6026     # check would be larger than it should be.
6027     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6028     ;;
6029
6030   gnu*)
6031     # Under GNU Hurd, this test is not required because there is
6032     # no limit to the length of command line arguments.
6033     # Libtool will interpret -1 as no limit whatsoever
6034     lt_cv_sys_max_cmd_len=-1;
6035     ;;
6036
6037   cygwin* | mingw* | cegcc*)
6038     # On Win9x/ME, this test blows up -- it succeeds, but takes
6039     # about 5 minutes as the teststring grows exponentially.
6040     # Worse, since 9x/ME are not pre-emptively multitasking,
6041     # you end up with a "frozen" computer, even though with patience
6042     # the test eventually succeeds (with a max line length of 256k).
6043     # Instead, let's just punt: use the minimum linelength reported by
6044     # all of the supported platforms: 8192 (on NT/2K/XP).
6045     lt_cv_sys_max_cmd_len=8192;
6046     ;;
6047
6048   mint*)
6049     # On MiNT this can take a long time and run out of memory.
6050     lt_cv_sys_max_cmd_len=8192;
6051     ;;
6052
6053   amigaos*)
6054     # On AmigaOS with pdksh, this test takes hours, literally.
6055     # So we just punt and use a minimum line length of 8192.
6056     lt_cv_sys_max_cmd_len=8192;
6057     ;;
6058
6059   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6060     # This has been around since 386BSD, at least.  Likely further.
6061     if test -x /sbin/sysctl; then
6062       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6063     elif test -x /usr/sbin/sysctl; then
6064       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6065     else
6066       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6067     fi
6068     # And add a safety zone
6069     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6071     ;;
6072
6073   interix*)
6074     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6075     lt_cv_sys_max_cmd_len=196608
6076     ;;
6077
6078   os2*)
6079     # The test takes a long time on OS/2.
6080     lt_cv_sys_max_cmd_len=8192
6081     ;;
6082
6083   osf*)
6084     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086     # nice to cause kernel panics so lets avoid the loop below.
6087     # First set a reasonable default.
6088     lt_cv_sys_max_cmd_len=16384
6089     #
6090     if test -x /sbin/sysconfig; then
6091       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6093       esac
6094     fi
6095     ;;
6096   sco3.2v5*)
6097     lt_cv_sys_max_cmd_len=102400
6098     ;;
6099   sysv5* | sco5v6* | sysv4.2uw2*)
6100     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101     if test -n "$kargmax"; then
6102       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6103     else
6104       lt_cv_sys_max_cmd_len=32768
6105     fi
6106     ;;
6107   *)
6108     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6109     if test -n "$lt_cv_sys_max_cmd_len" && \
6110        test undefined != "$lt_cv_sys_max_cmd_len"; then
6111       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6112       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6113     else
6114       # Make teststring a little bigger before we do anything with it.
6115       # a 1K string should be a reasonable start.
6116       for i in 1 2 3 4 5 6 7 8; do
6117         teststring=$teststring$teststring
6118       done
6119       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6120       # If test is not a shell built-in, we'll probably end up computing a
6121       # maximum length that is only half of the actual maximum length, but
6122       # we can't tell.
6123       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6124                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6125               test 17 != "$i" # 1/2 MB should be enough
6126       do
6127         i=`expr $i + 1`
6128         teststring=$teststring$teststring
6129       done
6130       # Only check the string length outside the loop.
6131       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6132       teststring=
6133       # Add a significant safety factor because C++ compilers can tack on
6134       # massive amounts of additional arguments before passing them to the
6135       # linker.  It appears as though 1/2 is a usable value.
6136       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6137     fi
6138     ;;
6139   esac
6140
6141 fi
6142
6143 if test -n "$lt_cv_sys_max_cmd_len"; then
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6145 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6146 else
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6148 $as_echo "none" >&6; }
6149 fi
6150 max_cmd_len=$lt_cv_sys_max_cmd_len
6151
6152
6153
6154
6155
6156
6157 : ${CP="cp -f"}
6158 : ${MV="mv -f"}
6159 : ${RM="rm -f"}
6160
6161 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6162   lt_unset=unset
6163 else
6164   lt_unset=false
6165 fi
6166
6167
6168
6169
6170
6171 # test EBCDIC or ASCII
6172 case `echo X|tr X '\101'` in
6173  A) # ASCII based system
6174     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6175   lt_SP2NL='tr \040 \012'
6176   lt_NL2SP='tr \015\012 \040\040'
6177   ;;
6178  *) # EBCDIC based system
6179   lt_SP2NL='tr \100 \n'
6180   lt_NL2SP='tr \r\n \100\100'
6181   ;;
6182 esac
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6193 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6194 if ${lt_cv_to_host_file_cmd+:} false; then :
6195   $as_echo_n "(cached) " >&6
6196 else
6197   case $host in
6198   *-*-mingw* )
6199     case $build in
6200       *-*-mingw* ) # actually msys
6201         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6202         ;;
6203       *-*-cygwin* )
6204         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6205         ;;
6206       * ) # otherwise, assume *nix
6207         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6208         ;;
6209     esac
6210     ;;
6211   *-*-cygwin* )
6212     case $build in
6213       *-*-mingw* ) # actually msys
6214         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6215         ;;
6216       *-*-cygwin* )
6217         lt_cv_to_host_file_cmd=func_convert_file_noop
6218         ;;
6219       * ) # otherwise, assume *nix
6220         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6221         ;;
6222     esac
6223     ;;
6224   * ) # unhandled hosts (and "normal" native builds)
6225     lt_cv_to_host_file_cmd=func_convert_file_noop
6226     ;;
6227 esac
6228
6229 fi
6230
6231 to_host_file_cmd=$lt_cv_to_host_file_cmd
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6233 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6234
6235
6236
6237
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6240 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6241 if ${lt_cv_to_tool_file_cmd+:} false; then :
6242   $as_echo_n "(cached) " >&6
6243 else
6244   #assume ordinary cross tools, or native build.
6245 lt_cv_to_tool_file_cmd=func_convert_file_noop
6246 case $host in
6247   *-*-mingw* )
6248     case $build in
6249       *-*-mingw* ) # actually msys
6250         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6251         ;;
6252     esac
6253     ;;
6254 esac
6255
6256 fi
6257
6258 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6260 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6267 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6268 if ${lt_cv_ld_reload_flag+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   lt_cv_ld_reload_flag='-r'
6272 fi
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6274 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6275 reload_flag=$lt_cv_ld_reload_flag
6276 case $reload_flag in
6277 "" | " "*) ;;
6278 *) reload_flag=" $reload_flag" ;;
6279 esac
6280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6281 case $host_os in
6282   cygwin* | mingw* | pw32* | cegcc*)
6283     if test yes != "$GCC"; then
6284       reload_cmds=false
6285     fi
6286     ;;
6287   darwin*)
6288     if test yes = "$GCC"; then
6289       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6290     else
6291       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6292     fi
6293     ;;
6294 esac
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304 if test -n "$ac_tool_prefix"; then
6305   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_OBJDUMP+:} false; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312   if test -n "$OBJDUMP"; then
6313   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318   IFS=$as_save_IFS
6319   test -z "$as_dir" && as_dir=.
6320     for ac_exec_ext in '' $ac_executable_extensions; do
6321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324     break 2
6325   fi
6326 done
6327   done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 OBJDUMP=$ac_cv_prog_OBJDUMP
6333 if test -n "$OBJDUMP"; then
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6335 $as_echo "$OBJDUMP" >&6; }
6336 else
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_OBJDUMP"; then
6344   ac_ct_OBJDUMP=$OBJDUMP
6345   # Extract the first word of "objdump", so it can be a program name with args.
6346 set dummy objdump; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   if test -n "$ac_ct_OBJDUMP"; then
6353   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360     for ac_exec_ext in '' $ac_executable_extensions; do
6361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367   done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6373 if test -n "$ac_ct_OBJDUMP"; then
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6375 $as_echo "$ac_ct_OBJDUMP" >&6; }
6376 else
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381   if test "x$ac_ct_OBJDUMP" = x; then
6382     OBJDUMP="false"
6383   else
6384     case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390     OBJDUMP=$ac_ct_OBJDUMP
6391   fi
6392 else
6393   OBJDUMP="$ac_cv_prog_OBJDUMP"
6394 fi
6395
6396 test -z "$OBJDUMP" && OBJDUMP=objdump
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6407 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6408 if ${lt_cv_deplibs_check_method+:} false; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   lt_cv_file_magic_cmd='$MAGIC_CMD'
6412 lt_cv_file_magic_test_file=
6413 lt_cv_deplibs_check_method='unknown'
6414 # Need to set the preceding variable on all platforms that support
6415 # interlibrary dependencies.
6416 # 'none' -- dependencies not supported.
6417 # 'unknown' -- same as none, but documents that we really don't know.
6418 # 'pass_all' -- all dependencies passed with no checks.
6419 # 'test_compile' -- check by making test program.
6420 # 'file_magic [[regex]]' -- check by looking for files in library path
6421 # that responds to the $file_magic_cmd with a given extended regex.
6422 # If you have 'file' or equivalent on your system and you're not sure
6423 # whether 'pass_all' will *always* work, you probably want this one.
6424
6425 case $host_os in
6426 aix[4-9]*)
6427   lt_cv_deplibs_check_method=pass_all
6428   ;;
6429
6430 beos*)
6431   lt_cv_deplibs_check_method=pass_all
6432   ;;
6433
6434 bsdi[45]*)
6435   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6436   lt_cv_file_magic_cmd='/usr/bin/file -L'
6437   lt_cv_file_magic_test_file=/shlib/libc.so
6438   ;;
6439
6440 cygwin*)
6441   # func_win32_libid is a shell function defined in ltmain.sh
6442   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6443   lt_cv_file_magic_cmd='func_win32_libid'
6444   ;;
6445
6446 mingw* | pw32*)
6447   # Base MSYS/MinGW do not provide the 'file' command needed by
6448   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6449   # unless we find 'file', for example because we are cross-compiling.
6450   if ( file / ) >/dev/null 2>&1; then
6451     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6452     lt_cv_file_magic_cmd='func_win32_libid'
6453   else
6454     # Keep this pattern in sync with the one in func_win32_libid.
6455     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6456     lt_cv_file_magic_cmd='$OBJDUMP -f'
6457   fi
6458   ;;
6459
6460 cegcc*)
6461   # use the weaker test based on 'objdump'. See mingw*.
6462   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6463   lt_cv_file_magic_cmd='$OBJDUMP -f'
6464   ;;
6465
6466 darwin* | rhapsody*)
6467   lt_cv_deplibs_check_method=pass_all
6468   ;;
6469
6470 freebsd* | dragonfly*)
6471   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6472     case $host_cpu in
6473     i*86 )
6474       # Not sure whether the presence of OpenBSD here was a mistake.
6475       # Let's accept both of them until this is cleared up.
6476       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6477       lt_cv_file_magic_cmd=/usr/bin/file
6478       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6479       ;;
6480     esac
6481   else
6482     lt_cv_deplibs_check_method=pass_all
6483   fi
6484   ;;
6485
6486 haiku*)
6487   lt_cv_deplibs_check_method=pass_all
6488   ;;
6489
6490 hpux10.20* | hpux11*)
6491   lt_cv_file_magic_cmd=/usr/bin/file
6492   case $host_cpu in
6493   ia64*)
6494     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6495     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6496     ;;
6497   hppa*64*)
6498     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]'
6499     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6500     ;;
6501   *)
6502     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6503     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6504     ;;
6505   esac
6506   ;;
6507
6508 interix[3-9]*)
6509   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6510   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6511   ;;
6512
6513 irix5* | irix6* | nonstopux*)
6514   case $LD in
6515   *-32|*"-32 ") libmagic=32-bit;;
6516   *-n32|*"-n32 ") libmagic=N32;;
6517   *-64|*"-64 ") libmagic=64-bit;;
6518   *) libmagic=never-match;;
6519   esac
6520   lt_cv_deplibs_check_method=pass_all
6521   ;;
6522
6523 # This must be glibc/ELF.
6524 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6525   lt_cv_deplibs_check_method=pass_all
6526   ;;
6527
6528 netbsd*)
6529   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6530     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6531   else
6532     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6533   fi
6534   ;;
6535
6536 newos6*)
6537   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6538   lt_cv_file_magic_cmd=/usr/bin/file
6539   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6540   ;;
6541
6542 *nto* | *qnx*)
6543   lt_cv_deplibs_check_method=pass_all
6544   ;;
6545
6546 openbsd* | bitrig*)
6547   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6548     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6549   else
6550     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6551   fi
6552   ;;
6553
6554 osf3* | osf4* | osf5*)
6555   lt_cv_deplibs_check_method=pass_all
6556   ;;
6557
6558 rdos*)
6559   lt_cv_deplibs_check_method=pass_all
6560   ;;
6561
6562 solaris*)
6563   lt_cv_deplibs_check_method=pass_all
6564   ;;
6565
6566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6567   lt_cv_deplibs_check_method=pass_all
6568   ;;
6569
6570 sysv4 | sysv4.3*)
6571   case $host_vendor in
6572   motorola)
6573     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]'
6574     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6575     ;;
6576   ncr)
6577     lt_cv_deplibs_check_method=pass_all
6578     ;;
6579   sequent)
6580     lt_cv_file_magic_cmd='/bin/file'
6581     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6582     ;;
6583   sni)
6584     lt_cv_file_magic_cmd='/bin/file'
6585     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6586     lt_cv_file_magic_test_file=/lib/libc.so
6587     ;;
6588   siemens)
6589     lt_cv_deplibs_check_method=pass_all
6590     ;;
6591   pc)
6592     lt_cv_deplibs_check_method=pass_all
6593     ;;
6594   esac
6595   ;;
6596
6597 tpf*)
6598   lt_cv_deplibs_check_method=pass_all
6599   ;;
6600 os2*)
6601   lt_cv_deplibs_check_method=pass_all
6602   ;;
6603 esac
6604
6605 fi
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6607 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6608
6609 file_magic_glob=
6610 want_nocaseglob=no
6611 if test "$build" = "$host"; then
6612   case $host_os in
6613   mingw* | pw32*)
6614     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6615       want_nocaseglob=yes
6616     else
6617       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6618     fi
6619     ;;
6620   esac
6621 fi
6622
6623 file_magic_cmd=$lt_cv_file_magic_cmd
6624 deplibs_check_method=$lt_cv_deplibs_check_method
6625 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648 if test -n "$ac_tool_prefix"; then
6649   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6650 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_DLLTOOL+:} false; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   if test -n "$DLLTOOL"; then
6657   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664     for ac_exec_ext in '' $ac_executable_extensions; do
6665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668     break 2
6669   fi
6670 done
6671   done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 DLLTOOL=$ac_cv_prog_DLLTOOL
6677 if test -n "$DLLTOOL"; then
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6679 $as_echo "$DLLTOOL" >&6; }
6680 else
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685
6686 fi
6687 if test -z "$ac_cv_prog_DLLTOOL"; then
6688   ac_ct_DLLTOOL=$DLLTOOL
6689   # Extract the first word of "dlltool", so it can be a program name with args.
6690 set dummy dlltool; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6694   $as_echo_n "(cached) " >&6
6695 else
6696   if test -n "$ac_ct_DLLTOOL"; then
6697   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704     for ac_exec_ext in '' $ac_executable_extensions; do
6705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711   done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6717 if test -n "$ac_ct_DLLTOOL"; then
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6719 $as_echo "$ac_ct_DLLTOOL" >&6; }
6720 else
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724
6725   if test "x$ac_ct_DLLTOOL" = x; then
6726     DLLTOOL="false"
6727   else
6728     case $cross_compiling:$ac_tool_warned in
6729 yes:)
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732 ac_tool_warned=yes ;;
6733 esac
6734     DLLTOOL=$ac_ct_DLLTOOL
6735   fi
6736 else
6737   DLLTOOL="$ac_cv_prog_DLLTOOL"
6738 fi
6739
6740 test -z "$DLLTOOL" && DLLTOOL=dlltool
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6752 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6753 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   lt_cv_sharedlib_from_linklib_cmd='unknown'
6757
6758 case $host_os in
6759 cygwin* | mingw* | pw32* | cegcc*)
6760   # two different shell functions defined in ltmain.sh;
6761   # decide which one to use based on capabilities of $DLLTOOL
6762   case `$DLLTOOL --help 2>&1` in
6763   *--identify-strict*)
6764     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6765     ;;
6766   *)
6767     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6768     ;;
6769   esac
6770   ;;
6771 *)
6772   # fallback: assume linklib IS sharedlib
6773   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6774   ;;
6775 esac
6776
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6779 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6780 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6781 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6782
6783
6784
6785
6786
6787
6788
6789 if test -n "$ac_tool_prefix"; then
6790   for ac_prog in ar
6791   do
6792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_AR+:} false; then :
6797   $as_echo_n "(cached) " >&6
6798 else
6799   if test -n "$AR"; then
6800   ac_cv_prog_AR="$AR" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805   IFS=$as_save_IFS
6806   test -z "$as_dir" && as_dir=.
6807     for ac_exec_ext in '' $ac_executable_extensions; do
6808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811     break 2
6812   fi
6813 done
6814   done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 AR=$ac_cv_prog_AR
6820 if test -n "$AR"; then
6821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6822 $as_echo "$AR" >&6; }
6823 else
6824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828
6829     test -n "$AR" && break
6830   done
6831 fi
6832 if test -z "$AR"; then
6833   ac_ct_AR=$AR
6834   for ac_prog in ar
6835 do
6836   # Extract the first word of "$ac_prog", so it can be a program name with args.
6837 set dummy $ac_prog; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   if test -n "$ac_ct_AR"; then
6844   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851     for ac_exec_ext in '' $ac_executable_extensions; do
6852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853     ac_cv_prog_ac_ct_AR="$ac_prog"
6854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858   done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6864 if test -n "$ac_ct_AR"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6866 $as_echo "$ac_ct_AR" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872
6873   test -n "$ac_ct_AR" && break
6874 done
6875
6876   if test "x$ac_ct_AR" = x; then
6877     AR="false"
6878   else
6879     case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885     AR=$ac_ct_AR
6886   fi
6887 fi
6888
6889 : ${AR=ar}
6890 : ${AR_FLAGS=cru}
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6903 $as_echo_n "checking for archiver @FILE support... " >&6; }
6904 if ${lt_cv_ar_at_file+:} false; then :
6905   $as_echo_n "(cached) " >&6
6906 else
6907   lt_cv_ar_at_file=no
6908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h.  */
6910
6911 int
6912 main ()
6913 {
6914
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920   echo conftest.$ac_objext > conftest.lst
6921       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6922       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6923   (eval $lt_ar_try) 2>&5
6924   ac_status=$?
6925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926   test $ac_status = 0; }
6927       if test 0 -eq "$ac_status"; then
6928         # Ensure the archiver fails upon bogus file names.
6929         rm -f conftest.$ac_objext libconftest.a
6930         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6931   (eval $lt_ar_try) 2>&5
6932   ac_status=$?
6933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6934   test $ac_status = 0; }
6935         if test 0 -ne "$ac_status"; then
6936           lt_cv_ar_at_file=@
6937         fi
6938       fi
6939       rm -f conftest.* libconftest.a
6940
6941 fi
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943
6944 fi
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6946 $as_echo "$lt_cv_ar_at_file" >&6; }
6947
6948 if test no = "$lt_cv_ar_at_file"; then
6949   archiver_list_spec=
6950 else
6951   archiver_list_spec=$lt_cv_ar_at_file
6952 fi
6953
6954
6955
6956
6957
6958
6959
6960 if test -n "$ac_tool_prefix"; then
6961   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}strip; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_prog_STRIP+:} false; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   if test -n "$STRIP"; then
6969   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976     for ac_exec_ext in '' $ac_executable_extensions; do
6977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980     break 2
6981   fi
6982 done
6983   done
6984 IFS=$as_save_IFS
6985
6986 fi
6987 fi
6988 STRIP=$ac_cv_prog_STRIP
6989 if test -n "$STRIP"; then
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6991 $as_echo "$STRIP" >&6; }
6992 else
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6995 fi
6996
6997
6998 fi
6999 if test -z "$ac_cv_prog_STRIP"; then
7000   ac_ct_STRIP=$STRIP
7001   # Extract the first word of "strip", so it can be a program name with args.
7002 set dummy strip; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   if test -n "$ac_ct_STRIP"; then
7009   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016     for ac_exec_ext in '' $ac_executable_extensions; do
7017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018     ac_cv_prog_ac_ct_STRIP="strip"
7019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023   done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7029 if test -n "$ac_ct_STRIP"; then
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7031 $as_echo "$ac_ct_STRIP" >&6; }
7032 else
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037   if test "x$ac_ct_STRIP" = x; then
7038     STRIP=":"
7039   else
7040     case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7045 esac
7046     STRIP=$ac_ct_STRIP
7047   fi
7048 else
7049   STRIP="$ac_cv_prog_STRIP"
7050 fi
7051
7052 test -z "$STRIP" && STRIP=:
7053
7054
7055
7056
7057
7058
7059 if test -n "$ac_tool_prefix"; then
7060   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_RANLIB+:} false; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067   if test -n "$RANLIB"; then
7068   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075     for ac_exec_ext in '' $ac_executable_extensions; do
7076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082   done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 RANLIB=$ac_cv_prog_RANLIB
7088 if test -n "$RANLIB"; then
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7090 $as_echo "$RANLIB" >&6; }
7091 else
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096
7097 fi
7098 if test -z "$ac_cv_prog_RANLIB"; then
7099   ac_ct_RANLIB=$RANLIB
7100   # Extract the first word of "ranlib", so it can be a program name with args.
7101 set dummy ranlib; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7105   $as_echo_n "(cached) " >&6
7106 else
7107   if test -n "$ac_ct_RANLIB"; then
7108   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115     for ac_exec_ext in '' $ac_executable_extensions; do
7116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117     ac_cv_prog_ac_ct_RANLIB="ranlib"
7118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122   done
7123 IFS=$as_save_IFS
7124
7125 fi
7126 fi
7127 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7128 if test -n "$ac_ct_RANLIB"; then
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7130 $as_echo "$ac_ct_RANLIB" >&6; }
7131 else
7132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 fi
7135
7136   if test "x$ac_ct_RANLIB" = x; then
7137     RANLIB=":"
7138   else
7139     case $cross_compiling:$ac_tool_warned in
7140 yes:)
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143 ac_tool_warned=yes ;;
7144 esac
7145     RANLIB=$ac_ct_RANLIB
7146   fi
7147 else
7148   RANLIB="$ac_cv_prog_RANLIB"
7149 fi
7150
7151 test -z "$RANLIB" && RANLIB=:
7152
7153
7154
7155
7156
7157
7158 # Determine commands to create old-style static archives.
7159 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7160 old_postinstall_cmds='chmod 644 $oldlib'
7161 old_postuninstall_cmds=
7162
7163 if test -n "$RANLIB"; then
7164   case $host_os in
7165   bitrig* | openbsd*)
7166     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7167     ;;
7168   *)
7169     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7170     ;;
7171   esac
7172   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7173 fi
7174
7175 case $host_os in
7176   darwin*)
7177     lock_old_archive_extraction=yes ;;
7178   *)
7179     lock_old_archive_extraction=no ;;
7180 esac
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220 # If no C compiler was specified, use CC.
7221 LTCC=${LTCC-"$CC"}
7222
7223 # If no C compiler flags were specified, use CFLAGS.
7224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7225
7226 # Allow CC to be a program name with arguments.
7227 compiler=$CC
7228
7229
7230 # Check for command to grab the raw symbol name followed by C symbol from nm.
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7232 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7233 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7234   $as_echo_n "(cached) " >&6
7235 else
7236
7237 # These are sane defaults that work on at least a few old systems.
7238 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7239
7240 # Character class describing NM global symbol codes.
7241 symcode='[BCDEGRST]'
7242
7243 # Regexp to match symbols that can be accessed directly from C.
7244 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7245
7246 # Define system-specific variables.
7247 case $host_os in
7248 aix*)
7249   symcode='[BCDT]'
7250   ;;
7251 cygwin* | mingw* | pw32* | cegcc*)
7252   symcode='[ABCDGISTW]'
7253   ;;
7254 hpux*)
7255   if test ia64 = "$host_cpu"; then
7256     symcode='[ABCDEGRST]'
7257   fi
7258   ;;
7259 irix* | nonstopux*)
7260   symcode='[BCDEGRST]'
7261   ;;
7262 osf*)
7263   symcode='[BCDEGQRST]'
7264   ;;
7265 solaris*)
7266   symcode='[BDRT]'
7267   ;;
7268 sco3.2v5*)
7269   symcode='[DT]'
7270   ;;
7271 sysv4.2uw2*)
7272   symcode='[DT]'
7273   ;;
7274 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7275   symcode='[ABDT]'
7276   ;;
7277 sysv4)
7278   symcode='[DFNSTU]'
7279   ;;
7280 esac
7281
7282 # If we're using GNU nm, then use its standard symbol codes.
7283 case `$NM -V 2>&1` in
7284 *GNU* | *'with BFD'*)
7285   symcode='[ABCDGIRSTW]' ;;
7286 esac
7287
7288 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7289   # Gets list of data symbols to import.
7290   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7291   # Adjust the below global symbol transforms to fixup imported variables.
7292   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7293   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7294   lt_c_name_lib_hook="\
7295   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7296   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7297 else
7298   # Disable hooks by default.
7299   lt_cv_sys_global_symbol_to_import=
7300   lt_cdecl_hook=
7301   lt_c_name_hook=
7302   lt_c_name_lib_hook=
7303 fi
7304
7305 # Transform an extracted symbol line into a proper C declaration.
7306 # Some systems (esp. on ia64) link data and code symbols differently,
7307 # so use this general approach.
7308 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7309 $lt_cdecl_hook\
7310 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7311 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7312
7313 # Transform an extracted symbol line into symbol name and symbol address
7314 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7315 $lt_c_name_hook\
7316 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7317 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7318
7319 # Transform an extracted symbol line into symbol name with lib prefix and
7320 # symbol address.
7321 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7322 $lt_c_name_lib_hook\
7323 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7324 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7325 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7326
7327 # Handle CRLF in mingw tool chain
7328 opt_cr=
7329 case $build_os in
7330 mingw*)
7331   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7332   ;;
7333 esac
7334
7335 # Try without a prefix underscore, then with it.
7336 for ac_symprfx in "" "_"; do
7337
7338   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7339   symxfrm="\\1 $ac_symprfx\\2 \\2"
7340
7341   # Write the raw and C identifiers.
7342   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7343     # Fake it for dumpbin and say T for any non-static function,
7344     # D for any global variable and I for any imported variable.
7345     # Also find C++ and __fastcall symbols from MSVC++,
7346     # which start with @ or ?.
7347     lt_cv_sys_global_symbol_pipe="$AWK '"\
7348 "     {last_section=section; section=\$ 3};"\
7349 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7350 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7351 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7352 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7353 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7354 "     \$ 0!~/External *\|/{next};"\
7355 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7356 "     {if(hide[section]) next};"\
7357 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7358 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7359 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7360 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7361 "     ' prfx=^$ac_symprfx"
7362   else
7363     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7364   fi
7365   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7366
7367   # Check to see that the pipe works correctly.
7368   pipe_works=no
7369
7370   rm -f conftest*
7371   cat > conftest.$ac_ext <<_LT_EOF
7372 #ifdef __cplusplus
7373 extern "C" {
7374 #endif
7375 char nm_test_var;
7376 void nm_test_func(void);
7377 void nm_test_func(void){}
7378 #ifdef __cplusplus
7379 }
7380 #endif
7381 int main(){nm_test_var='a';nm_test_func();return(0);}
7382 _LT_EOF
7383
7384   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7385   (eval $ac_compile) 2>&5
7386   ac_status=$?
7387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388   test $ac_status = 0; }; then
7389     # Now try to grab the symbols.
7390     nlist=conftest.nm
7391     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7392   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7393   ac_status=$?
7394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395   test $ac_status = 0; } && test -s "$nlist"; then
7396       # Try sorting and uniquifying the output.
7397       if sort "$nlist" | uniq > "$nlist"T; then
7398         mv -f "$nlist"T "$nlist"
7399       else
7400         rm -f "$nlist"T
7401       fi
7402
7403       # Make sure that we snagged all the symbols we need.
7404       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7405         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7406           cat <<_LT_EOF > conftest.$ac_ext
7407 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7408 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7409 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7410    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7411 # define LT_DLSYM_CONST
7412 #elif defined __osf__
7413 /* This system does not cope well with relocations in const data.  */
7414 # define LT_DLSYM_CONST
7415 #else
7416 # define LT_DLSYM_CONST const
7417 #endif
7418
7419 #ifdef __cplusplus
7420 extern "C" {
7421 #endif
7422
7423 _LT_EOF
7424           # Now generate the symbol file.
7425           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7426
7427           cat <<_LT_EOF >> conftest.$ac_ext
7428
7429 /* The mapping between symbol names and symbols.  */
7430 LT_DLSYM_CONST struct {
7431   const char *name;
7432   void       *address;
7433 }
7434 lt__PROGRAM__LTX_preloaded_symbols[] =
7435 {
7436   { "@PROGRAM@", (void *) 0 },
7437 _LT_EOF
7438           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7439           cat <<\_LT_EOF >> conftest.$ac_ext
7440   {0, (void *) 0}
7441 };
7442
7443 /* This works around a problem in FreeBSD linker */
7444 #ifdef FREEBSD_WORKAROUND
7445 static const void *lt_preloaded_setup() {
7446   return lt__PROGRAM__LTX_preloaded_symbols;
7447 }
7448 #endif
7449
7450 #ifdef __cplusplus
7451 }
7452 #endif
7453 _LT_EOF
7454           # Now try linking the two files.
7455           mv conftest.$ac_objext conftstm.$ac_objext
7456           lt_globsym_save_LIBS=$LIBS
7457           lt_globsym_save_CFLAGS=$CFLAGS
7458           LIBS=conftstm.$ac_objext
7459           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7460           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7461   (eval $ac_link) 2>&5
7462   ac_status=$?
7463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7465             pipe_works=yes
7466           fi
7467           LIBS=$lt_globsym_save_LIBS
7468           CFLAGS=$lt_globsym_save_CFLAGS
7469         else
7470           echo "cannot find nm_test_func in $nlist" >&5
7471         fi
7472       else
7473         echo "cannot find nm_test_var in $nlist" >&5
7474       fi
7475     else
7476       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7477     fi
7478   else
7479     echo "$progname: failed program was:" >&5
7480     cat conftest.$ac_ext >&5
7481   fi
7482   rm -rf conftest* conftst*
7483
7484   # Do not use the global_symbol_pipe unless it works.
7485   if test yes = "$pipe_works"; then
7486     break
7487   else
7488     lt_cv_sys_global_symbol_pipe=
7489   fi
7490 done
7491
7492 fi
7493
7494 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7495   lt_cv_sys_global_symbol_to_cdecl=
7496 fi
7497 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7499 $as_echo "failed" >&6; }
7500 else
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7502 $as_echo "ok" >&6; }
7503 fi
7504
7505 # Response file support.
7506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7507   nm_file_list_spec='@'
7508 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7509   nm_file_list_spec='@'
7510 fi
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7549 $as_echo_n "checking for sysroot... " >&6; }
7550
7551 # Check whether --with-sysroot was given.
7552 if test "${with_sysroot+set}" = set; then :
7553   withval=$with_sysroot;
7554 else
7555   with_sysroot=no
7556 fi
7557
7558
7559 lt_sysroot=
7560 case $with_sysroot in #(
7561  yes)
7562    if test yes = "$GCC"; then
7563      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7564    fi
7565    ;; #(
7566  /*)
7567    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7568    ;; #(
7569  no|'')
7570    ;; #(
7571  *)
7572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7573 $as_echo "$with_sysroot" >&6; }
7574    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7575    ;;
7576 esac
7577
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7579 $as_echo "${lt_sysroot:-no}" >&6; }
7580
7581
7582
7583
7584
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7586 $as_echo_n "checking for a working dd... " >&6; }
7587 if ${ac_cv_path_lt_DD+:} false; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   printf 0123456789abcdef0123456789abcdef >conftest.i
7591 cat conftest.i conftest.i >conftest2.i
7592 : ${lt_DD:=$DD}
7593 if test -z "$lt_DD"; then
7594   ac_path_lt_DD_found=false
7595   # Loop through the user's path and test for each of PROGNAME-LIST
7596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601     for ac_prog in dd; do
7602     for ac_exec_ext in '' $ac_executable_extensions; do
7603       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7604       as_fn_executable_p "$ac_path_lt_DD" || continue
7605 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7606   cmp -s conftest.i conftest.out \
7607   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7608 fi
7609       $ac_path_lt_DD_found && break 3
7610     done
7611   done
7612   done
7613 IFS=$as_save_IFS
7614   if test -z "$ac_cv_path_lt_DD"; then
7615     :
7616   fi
7617 else
7618   ac_cv_path_lt_DD=$lt_DD
7619 fi
7620
7621 rm -f conftest.i conftest2.i conftest.out
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7624 $as_echo "$ac_cv_path_lt_DD" >&6; }
7625
7626
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7628 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7629 if ${lt_cv_truncate_bin+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   printf 0123456789abcdef0123456789abcdef >conftest.i
7633 cat conftest.i conftest.i >conftest2.i
7634 lt_cv_truncate_bin=
7635 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7636   cmp -s conftest.i conftest.out \
7637   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7638 fi
7639 rm -f conftest.i conftest2.i conftest.out
7640 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7643 $as_echo "$lt_cv_truncate_bin" >&6; }
7644
7645
7646
7647
7648
7649
7650
7651 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7652 func_cc_basename ()
7653 {
7654     for cc_temp in $*""; do
7655       case $cc_temp in
7656         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7657         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7658         \-*) ;;
7659         *) break;;
7660       esac
7661     done
7662     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7663 }
7664
7665 # Check whether --enable-libtool-lock was given.
7666 if test "${enable_libtool_lock+set}" = set; then :
7667   enableval=$enable_libtool_lock;
7668 fi
7669
7670 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7671
7672 # Some flags need to be propagated to the compiler or linker for good
7673 # libtool support.
7674 case $host in
7675 ia64-*-hpux*)
7676   # Find out what ABI is being produced by ac_compile, and set mode
7677   # options accordingly.
7678   echo 'int i;' > conftest.$ac_ext
7679   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7680   (eval $ac_compile) 2>&5
7681   ac_status=$?
7682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683   test $ac_status = 0; }; then
7684     case `/usr/bin/file conftest.$ac_objext` in
7685       *ELF-32*)
7686         HPUX_IA64_MODE=32
7687         ;;
7688       *ELF-64*)
7689         HPUX_IA64_MODE=64
7690         ;;
7691     esac
7692   fi
7693   rm -rf conftest*
7694   ;;
7695 *-*-irix6*)
7696   # Find out what ABI is being produced by ac_compile, and set linker
7697   # options accordingly.
7698   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7699   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700   (eval $ac_compile) 2>&5
7701   ac_status=$?
7702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703   test $ac_status = 0; }; then
7704     if test yes = "$lt_cv_prog_gnu_ld"; then
7705       case `/usr/bin/file conftest.$ac_objext` in
7706         *32-bit*)
7707           LD="${LD-ld} -melf32bsmip"
7708           ;;
7709         *N32*)
7710           LD="${LD-ld} -melf32bmipn32"
7711           ;;
7712         *64-bit*)
7713           LD="${LD-ld} -melf64bmip"
7714         ;;
7715       esac
7716     else
7717       case `/usr/bin/file conftest.$ac_objext` in
7718         *32-bit*)
7719           LD="${LD-ld} -32"
7720           ;;
7721         *N32*)
7722           LD="${LD-ld} -n32"
7723           ;;
7724         *64-bit*)
7725           LD="${LD-ld} -64"
7726           ;;
7727       esac
7728     fi
7729   fi
7730   rm -rf conftest*
7731   ;;
7732
7733 mips64*-*linux*)
7734   # Find out what ABI is being produced by ac_compile, and set linker
7735   # options accordingly.
7736   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7737   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7738   (eval $ac_compile) 2>&5
7739   ac_status=$?
7740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741   test $ac_status = 0; }; then
7742     emul=elf
7743     case `/usr/bin/file conftest.$ac_objext` in
7744       *32-bit*)
7745         emul="${emul}32"
7746         ;;
7747       *64-bit*)
7748         emul="${emul}64"
7749         ;;
7750     esac
7751     case `/usr/bin/file conftest.$ac_objext` in
7752       *MSB*)
7753         emul="${emul}btsmip"
7754         ;;
7755       *LSB*)
7756         emul="${emul}ltsmip"
7757         ;;
7758     esac
7759     case `/usr/bin/file conftest.$ac_objext` in
7760       *N32*)
7761         emul="${emul}n32"
7762         ;;
7763     esac
7764     LD="${LD-ld} -m $emul"
7765   fi
7766   rm -rf conftest*
7767   ;;
7768
7769 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7770 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7771   # Find out what ABI is being produced by ac_compile, and set linker
7772   # options accordingly.  Note that the listed cases only cover the
7773   # situations where additional linker options are needed (such as when
7774   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7775   # vice versa); the common cases where no linker options are needed do
7776   # not appear in the list.
7777   echo 'int i;' > conftest.$ac_ext
7778   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7779   (eval $ac_compile) 2>&5
7780   ac_status=$?
7781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7782   test $ac_status = 0; }; then
7783     case `/usr/bin/file conftest.o` in
7784       *32-bit*)
7785         case $host in
7786           x86_64-*kfreebsd*-gnu)
7787             LD="${LD-ld} -m elf_i386_fbsd"
7788             ;;
7789           x86_64-*linux*)
7790             case `/usr/bin/file conftest.o` in
7791               *x86-64*)
7792                 LD="${LD-ld} -m elf32_x86_64"
7793                 ;;
7794               *)
7795                 LD="${LD-ld} -m elf_i386"
7796                 ;;
7797             esac
7798             ;;
7799           powerpc64le-*linux*)
7800             LD="${LD-ld} -m elf32lppclinux"
7801             ;;
7802           powerpc64-*linux*)
7803             LD="${LD-ld} -m elf32ppclinux"
7804             ;;
7805           s390x-*linux*)
7806             LD="${LD-ld} -m elf_s390"
7807             ;;
7808           sparc64-*linux*)
7809             LD="${LD-ld} -m elf32_sparc"
7810             ;;
7811         esac
7812         ;;
7813       *64-bit*)
7814         case $host in
7815           x86_64-*kfreebsd*-gnu)
7816             LD="${LD-ld} -m elf_x86_64_fbsd"
7817             ;;
7818           x86_64-*linux*)
7819             LD="${LD-ld} -m elf_x86_64"
7820             ;;
7821           powerpcle-*linux*)
7822             LD="${LD-ld} -m elf64lppc"
7823             ;;
7824           powerpc-*linux*)
7825             LD="${LD-ld} -m elf64ppc"
7826             ;;
7827           s390*-*linux*|s390*-*tpf*)
7828             LD="${LD-ld} -m elf64_s390"
7829             ;;
7830           sparc*-*linux*)
7831             LD="${LD-ld} -m elf64_sparc"
7832             ;;
7833         esac
7834         ;;
7835     esac
7836   fi
7837   rm -rf conftest*
7838   ;;
7839
7840 *-*-sco3.2v5*)
7841   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7842   SAVE_CFLAGS=$CFLAGS
7843   CFLAGS="$CFLAGS -belf"
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7845 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7846 if ${lt_cv_cc_needs_belf+:} false; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   ac_ext=c
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854
7855      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h.  */
7857
7858 int
7859 main ()
7860 {
7861
7862   ;
7863   return 0;
7864 }
7865 _ACEOF
7866 if ac_fn_c_try_link "$LINENO"; then :
7867   lt_cv_cc_needs_belf=yes
7868 else
7869   lt_cv_cc_needs_belf=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext \
7872     conftest$ac_exeext conftest.$ac_ext
7873      ac_ext=c
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7881 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7882   if test yes != "$lt_cv_cc_needs_belf"; then
7883     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7884     CFLAGS=$SAVE_CFLAGS
7885   fi
7886   ;;
7887 *-*solaris*)
7888   # Find out what ABI is being produced by ac_compile, and set linker
7889   # options accordingly.
7890   echo 'int i;' > conftest.$ac_ext
7891   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7892   (eval $ac_compile) 2>&5
7893   ac_status=$?
7894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895   test $ac_status = 0; }; then
7896     case `/usr/bin/file conftest.o` in
7897     *64-bit*)
7898       case $lt_cv_prog_gnu_ld in
7899       yes*)
7900         case $host in
7901         i?86-*-solaris*|x86_64-*-solaris*)
7902           LD="${LD-ld} -m elf_x86_64"
7903           ;;
7904         sparc*-*-solaris*)
7905           LD="${LD-ld} -m elf64_sparc"
7906           ;;
7907         esac
7908         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7909         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7910           LD=${LD-ld}_sol2
7911         fi
7912         ;;
7913       *)
7914         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7915           LD="${LD-ld} -64"
7916         fi
7917         ;;
7918       esac
7919       ;;
7920     esac
7921   fi
7922   rm -rf conftest*
7923   ;;
7924 esac
7925
7926 need_locks=$enable_libtool_lock
7927
7928 if test -n "$ac_tool_prefix"; then
7929   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7930 set dummy ${ac_tool_prefix}mt; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   if test -n "$MANIFEST_TOOL"; then
7937   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942   IFS=$as_save_IFS
7943   test -z "$as_dir" && as_dir=.
7944     for ac_exec_ext in '' $ac_executable_extensions; do
7945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948     break 2
7949   fi
7950 done
7951   done
7952 IFS=$as_save_IFS
7953
7954 fi
7955 fi
7956 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7957 if test -n "$MANIFEST_TOOL"; then
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7959 $as_echo "$MANIFEST_TOOL" >&6; }
7960 else
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7963 fi
7964
7965
7966 fi
7967 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7968   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7969   # Extract the first word of "mt", so it can be a program name with args.
7970 set dummy mt; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   if test -n "$ac_ct_MANIFEST_TOOL"; then
7977   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982   IFS=$as_save_IFS
7983   test -z "$as_dir" && as_dir=.
7984     for ac_exec_ext in '' $ac_executable_extensions; do
7985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988     break 2
7989   fi
7990 done
7991   done
7992 IFS=$as_save_IFS
7993
7994 fi
7995 fi
7996 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7997 if test -n "$ac_ct_MANIFEST_TOOL"; then
7998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7999 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8000 else
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 fi
8004
8005   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8006     MANIFEST_TOOL=":"
8007   else
8008     case $cross_compiling:$ac_tool_warned in
8009 yes:)
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8012 ac_tool_warned=yes ;;
8013 esac
8014     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8015   fi
8016 else
8017   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8018 fi
8019
8020 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8022 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8023 if ${lt_cv_path_mainfest_tool+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   lt_cv_path_mainfest_tool=no
8027   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8028   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8029   cat conftest.err >&5
8030   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8031     lt_cv_path_mainfest_tool=yes
8032   fi
8033   rm -f conftest*
8034 fi
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8036 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8037 if test yes != "$lt_cv_path_mainfest_tool"; then
8038   MANIFEST_TOOL=:
8039 fi
8040
8041
8042
8043
8044
8045
8046   case $host_os in
8047     rhapsody* | darwin*)
8048     if test -n "$ac_tool_prefix"; then
8049   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8050 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   if test -n "$DSYMUTIL"; then
8057   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064     for ac_exec_ext in '' $ac_executable_extensions; do
8065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071   done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8077 if test -n "$DSYMUTIL"; then
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8079 $as_echo "$DSYMUTIL" >&6; }
8080 else
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085
8086 fi
8087 if test -z "$ac_cv_prog_DSYMUTIL"; then
8088   ac_ct_DSYMUTIL=$DSYMUTIL
8089   # Extract the first word of "dsymutil", so it can be a program name with args.
8090 set dummy dsymutil; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8094   $as_echo_n "(cached) " >&6
8095 else
8096   if test -n "$ac_ct_DSYMUTIL"; then
8097   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102   IFS=$as_save_IFS
8103   test -z "$as_dir" && as_dir=.
8104     for ac_exec_ext in '' $ac_executable_extensions; do
8105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108     break 2
8109   fi
8110 done
8111   done
8112 IFS=$as_save_IFS
8113
8114 fi
8115 fi
8116 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8117 if test -n "$ac_ct_DSYMUTIL"; then
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8119 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8120 else
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8124
8125   if test "x$ac_ct_DSYMUTIL" = x; then
8126     DSYMUTIL=":"
8127   else
8128     case $cross_compiling:$ac_tool_warned in
8129 yes:)
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8133 esac
8134     DSYMUTIL=$ac_ct_DSYMUTIL
8135   fi
8136 else
8137   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8138 fi
8139
8140     if test -n "$ac_tool_prefix"; then
8141   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8142 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if ${ac_cv_prog_NMEDIT+:} false; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   if test -n "$NMEDIT"; then
8149   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8153 do
8154   IFS=$as_save_IFS
8155   test -z "$as_dir" && as_dir=.
8156     for ac_exec_ext in '' $ac_executable_extensions; do
8157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160     break 2
8161   fi
8162 done
8163   done
8164 IFS=$as_save_IFS
8165
8166 fi
8167 fi
8168 NMEDIT=$ac_cv_prog_NMEDIT
8169 if test -n "$NMEDIT"; then
8170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8171 $as_echo "$NMEDIT" >&6; }
8172 else
8173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8175 fi
8176
8177
8178 fi
8179 if test -z "$ac_cv_prog_NMEDIT"; then
8180   ac_ct_NMEDIT=$NMEDIT
8181   # Extract the first word of "nmedit", so it can be a program name with args.
8182 set dummy nmedit; ac_word=$2
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8184 $as_echo_n "checking for $ac_word... " >&6; }
8185 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8186   $as_echo_n "(cached) " >&6
8187 else
8188   if test -n "$ac_ct_NMEDIT"; then
8189   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8190 else
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194   IFS=$as_save_IFS
8195   test -z "$as_dir" && as_dir=.
8196     for ac_exec_ext in '' $ac_executable_extensions; do
8197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203   done
8204 IFS=$as_save_IFS
8205
8206 fi
8207 fi
8208 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8209 if test -n "$ac_ct_NMEDIT"; then
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8211 $as_echo "$ac_ct_NMEDIT" >&6; }
8212 else
8213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8215 fi
8216
8217   if test "x$ac_ct_NMEDIT" = x; then
8218     NMEDIT=":"
8219   else
8220     case $cross_compiling:$ac_tool_warned in
8221 yes:)
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8224 ac_tool_warned=yes ;;
8225 esac
8226     NMEDIT=$ac_ct_NMEDIT
8227   fi
8228 else
8229   NMEDIT="$ac_cv_prog_NMEDIT"
8230 fi
8231
8232     if test -n "$ac_tool_prefix"; then
8233   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8234 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_prog_LIPO+:} false; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   if test -n "$LIPO"; then
8241   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8242 else
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8245 do
8246   IFS=$as_save_IFS
8247   test -z "$as_dir" && as_dir=.
8248     for ac_exec_ext in '' $ac_executable_extensions; do
8249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252     break 2
8253   fi
8254 done
8255   done
8256 IFS=$as_save_IFS
8257
8258 fi
8259 fi
8260 LIPO=$ac_cv_prog_LIPO
8261 if test -n "$LIPO"; then
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8263 $as_echo "$LIPO" >&6; }
8264 else
8265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269
8270 fi
8271 if test -z "$ac_cv_prog_LIPO"; then
8272   ac_ct_LIPO=$LIPO
8273   # Extract the first word of "lipo", so it can be a program name with args.
8274 set dummy lipo; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8278   $as_echo_n "(cached) " >&6
8279 else
8280   if test -n "$ac_ct_LIPO"; then
8281   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8285 do
8286   IFS=$as_save_IFS
8287   test -z "$as_dir" && as_dir=.
8288     for ac_exec_ext in '' $ac_executable_extensions; do
8289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290     ac_cv_prog_ac_ct_LIPO="lipo"
8291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292     break 2
8293   fi
8294 done
8295   done
8296 IFS=$as_save_IFS
8297
8298 fi
8299 fi
8300 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8301 if test -n "$ac_ct_LIPO"; then
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8303 $as_echo "$ac_ct_LIPO" >&6; }
8304 else
8305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 fi
8308
8309   if test "x$ac_ct_LIPO" = x; then
8310     LIPO=":"
8311   else
8312     case $cross_compiling:$ac_tool_warned in
8313 yes:)
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8316 ac_tool_warned=yes ;;
8317 esac
8318     LIPO=$ac_ct_LIPO
8319   fi
8320 else
8321   LIPO="$ac_cv_prog_LIPO"
8322 fi
8323
8324     if test -n "$ac_tool_prefix"; then
8325   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8326 set dummy ${ac_tool_prefix}otool; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_OTOOL+:} false; then :
8330   $as_echo_n "(cached) " >&6
8331 else
8332   if test -n "$OTOOL"; then
8333   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338   IFS=$as_save_IFS
8339   test -z "$as_dir" && as_dir=.
8340     for ac_exec_ext in '' $ac_executable_extensions; do
8341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344     break 2
8345   fi
8346 done
8347   done
8348 IFS=$as_save_IFS
8349
8350 fi
8351 fi
8352 OTOOL=$ac_cv_prog_OTOOL
8353 if test -n "$OTOOL"; then
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8355 $as_echo "$OTOOL" >&6; }
8356 else
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361
8362 fi
8363 if test -z "$ac_cv_prog_OTOOL"; then
8364   ac_ct_OTOOL=$OTOOL
8365   # Extract the first word of "otool", so it can be a program name with args.
8366 set dummy otool; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   if test -n "$ac_ct_OTOOL"; then
8373   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8374 else
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378   IFS=$as_save_IFS
8379   test -z "$as_dir" && as_dir=.
8380     for ac_exec_ext in '' $ac_executable_extensions; do
8381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8382     ac_cv_prog_ac_ct_OTOOL="otool"
8383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384     break 2
8385   fi
8386 done
8387   done
8388 IFS=$as_save_IFS
8389
8390 fi
8391 fi
8392 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8393 if test -n "$ac_ct_OTOOL"; then
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8395 $as_echo "$ac_ct_OTOOL" >&6; }
8396 else
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 fi
8400
8401   if test "x$ac_ct_OTOOL" = x; then
8402     OTOOL=":"
8403   else
8404     case $cross_compiling:$ac_tool_warned in
8405 yes:)
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408 ac_tool_warned=yes ;;
8409 esac
8410     OTOOL=$ac_ct_OTOOL
8411   fi
8412 else
8413   OTOOL="$ac_cv_prog_OTOOL"
8414 fi
8415
8416     if test -n "$ac_tool_prefix"; then
8417   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8418 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_prog_OTOOL64+:} false; then :
8422   $as_echo_n "(cached) " >&6
8423 else
8424   if test -n "$OTOOL64"; then
8425   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8426 else
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8429 do
8430   IFS=$as_save_IFS
8431   test -z "$as_dir" && as_dir=.
8432     for ac_exec_ext in '' $ac_executable_extensions; do
8433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436     break 2
8437   fi
8438 done
8439   done
8440 IFS=$as_save_IFS
8441
8442 fi
8443 fi
8444 OTOOL64=$ac_cv_prog_OTOOL64
8445 if test -n "$OTOOL64"; then
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8447 $as_echo "$OTOOL64" >&6; }
8448 else
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8451 fi
8452
8453
8454 fi
8455 if test -z "$ac_cv_prog_OTOOL64"; then
8456   ac_ct_OTOOL64=$OTOOL64
8457   # Extract the first word of "otool64", so it can be a program name with args.
8458 set dummy otool64; ac_word=$2
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460 $as_echo_n "checking for $ac_word... " >&6; }
8461 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8462   $as_echo_n "(cached) " >&6
8463 else
8464   if test -n "$ac_ct_OTOOL64"; then
8465   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8466 else
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 for as_dir in $PATH
8469 do
8470   IFS=$as_save_IFS
8471   test -z "$as_dir" && as_dir=.
8472     for ac_exec_ext in '' $ac_executable_extensions; do
8473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8474     ac_cv_prog_ac_ct_OTOOL64="otool64"
8475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8476     break 2
8477   fi
8478 done
8479   done
8480 IFS=$as_save_IFS
8481
8482 fi
8483 fi
8484 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8485 if test -n "$ac_ct_OTOOL64"; then
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8487 $as_echo "$ac_ct_OTOOL64" >&6; }
8488 else
8489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 $as_echo "no" >&6; }
8491 fi
8492
8493   if test "x$ac_ct_OTOOL64" = x; then
8494     OTOOL64=":"
8495   else
8496     case $cross_compiling:$ac_tool_warned in
8497 yes:)
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8500 ac_tool_warned=yes ;;
8501 esac
8502     OTOOL64=$ac_ct_OTOOL64
8503   fi
8504 else
8505   OTOOL64="$ac_cv_prog_OTOOL64"
8506 fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8535 $as_echo_n "checking for -single_module linker flag... " >&6; }
8536 if ${lt_cv_apple_cc_single_mod+:} false; then :
8537   $as_echo_n "(cached) " >&6
8538 else
8539   lt_cv_apple_cc_single_mod=no
8540       if test -z "$LT_MULTI_MODULE"; then
8541         # By default we will add the -single_module flag. You can override
8542         # by either setting the environment variable LT_MULTI_MODULE
8543         # non-empty at configure time, or by adding -multi_module to the
8544         # link flags.
8545         rm -rf libconftest.dylib*
8546         echo "int foo(void){return 1;}" > conftest.c
8547         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8548 -dynamiclib -Wl,-single_module conftest.c" >&5
8549         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8550           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8551         _lt_result=$?
8552         # If there is a non-empty error log, and "single_module"
8553         # appears in it, assume the flag caused a linker warning
8554         if test -s conftest.err && $GREP single_module conftest.err; then
8555           cat conftest.err >&5
8556         # Otherwise, if the output was created with a 0 exit code from
8557         # the compiler, it worked.
8558         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8559           lt_cv_apple_cc_single_mod=yes
8560         else
8561           cat conftest.err >&5
8562         fi
8563         rm -rf libconftest.dylib*
8564         rm -f conftest.*
8565       fi
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8568 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8569
8570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8571 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8572 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8573   $as_echo_n "(cached) " >&6
8574 else
8575   lt_cv_ld_exported_symbols_list=no
8576       save_LDFLAGS=$LDFLAGS
8577       echo "_main" > conftest.sym
8578       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8579       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h.  */
8581
8582 int
8583 main ()
8584 {
8585
8586   ;
8587   return 0;
8588 }
8589 _ACEOF
8590 if ac_fn_c_try_link "$LINENO"; then :
8591   lt_cv_ld_exported_symbols_list=yes
8592 else
8593   lt_cv_ld_exported_symbols_list=no
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext \
8596     conftest$ac_exeext conftest.$ac_ext
8597         LDFLAGS=$save_LDFLAGS
8598
8599 fi
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8601 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8602
8603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8604 $as_echo_n "checking for -force_load linker flag... " >&6; }
8605 if ${lt_cv_ld_force_load+:} false; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   lt_cv_ld_force_load=no
8609       cat > conftest.c << _LT_EOF
8610 int forced_loaded() { return 2;}
8611 _LT_EOF
8612       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8613       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8614       echo "$AR cru libconftest.a conftest.o" >&5
8615       $AR cru libconftest.a conftest.o 2>&5
8616       echo "$RANLIB libconftest.a" >&5
8617       $RANLIB libconftest.a 2>&5
8618       cat > conftest.c << _LT_EOF
8619 int main() { return 0;}
8620 _LT_EOF
8621       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8622       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8623       _lt_result=$?
8624       if test -s conftest.err && $GREP force_load conftest.err; then
8625         cat conftest.err >&5
8626       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8627         lt_cv_ld_force_load=yes
8628       else
8629         cat conftest.err >&5
8630       fi
8631         rm -f conftest.err libconftest.a conftest conftest.c
8632         rm -rf conftest.dSYM
8633
8634 fi
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8636 $as_echo "$lt_cv_ld_force_load" >&6; }
8637     case $host_os in
8638     rhapsody* | darwin1.[012])
8639       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8640     darwin1.*)
8641       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8642     darwin*) # darwin 5.x on
8643       # if running on 10.5 or later, the deployment target defaults
8644       # to the OS version, if on x86, and 10.4, the deployment
8645       # target defaults to 10.4. Don't you love it?
8646       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8647         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8648           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8649         10.[012][,.]*)
8650           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8651         10.*)
8652           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8653       esac
8654     ;;
8655   esac
8656     if test yes = "$lt_cv_apple_cc_single_mod"; then
8657       _lt_dar_single_mod='$single_module'
8658     fi
8659     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8660       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8661     else
8662       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8663     fi
8664     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8665       _lt_dsymutil='~$DSYMUTIL $lib || :'
8666     else
8667       _lt_dsymutil=
8668     fi
8669     ;;
8670   esac
8671
8672 # func_munge_path_list VARIABLE PATH
8673 # -----------------------------------
8674 # VARIABLE is name of variable containing _space_ separated list of
8675 # directories to be munged by the contents of PATH, which is string
8676 # having a format:
8677 # "DIR[:DIR]:"
8678 #       string "DIR[ DIR]" will be prepended to VARIABLE
8679 # ":DIR[:DIR]"
8680 #       string "DIR[ DIR]" will be appended to VARIABLE
8681 # "DIRP[:DIRP]::[DIRA:]DIRA"
8682 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8683 #       "DIRA[ DIRA]" will be appended to VARIABLE
8684 # "DIR[:DIR]"
8685 #       VARIABLE will be replaced by "DIR[ DIR]"
8686 func_munge_path_list ()
8687 {
8688     case x$2 in
8689     x)
8690         ;;
8691     *:)
8692         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8693         ;;
8694     x:*)
8695         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8696         ;;
8697     *::*)
8698         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8699         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8700         ;;
8701     *)
8702         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8703         ;;
8704     esac
8705 }
8706
8707 for ac_header in dlfcn.h
8708 do :
8709   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8710 "
8711 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8712   cat >>confdefs.h <<_ACEOF
8713 #define HAVE_DLFCN_H 1
8714 _ACEOF
8715
8716 fi
8717
8718 done
8719
8720
8721
8722
8723
8724 # Set options
8725 # Check whether --enable-static was given.
8726 if test "${enable_static+set}" = set; then :
8727   enableval=$enable_static; p=${PACKAGE-default}
8728     case $enableval in
8729     yes) enable_static=yes ;;
8730     no) enable_static=no ;;
8731     *)
8732      enable_static=no
8733       # Look at the argument we got.  We use all the common list separators.
8734       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8735       for pkg in $enableval; do
8736         IFS=$lt_save_ifs
8737         if test "X$pkg" = "X$p"; then
8738           enable_static=yes
8739         fi
8740       done
8741       IFS=$lt_save_ifs
8742       ;;
8743     esac
8744 else
8745   enable_static=no
8746 fi
8747
8748
8749
8750
8751
8752
8753
8754
8755 # Check whether --with-pic was given.
8756 if test "${with_pic+set}" = set; then :
8757   withval=$with_pic; lt_p=${PACKAGE-default}
8758     case $withval in
8759     yes|no) pic_mode=$withval ;;
8760     *)
8761       pic_mode=default
8762       # Look at the argument we got.  We use all the common list separators.
8763       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8764       for lt_pkg in $withval; do
8765         IFS=$lt_save_ifs
8766         if test "X$lt_pkg" = "X$lt_p"; then
8767           pic_mode=yes
8768         fi
8769       done
8770       IFS=$lt_save_ifs
8771       ;;
8772     esac
8773 else
8774   pic_mode=yes
8775 fi
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785         enable_dlopen=no
8786
8787
8788   enable_win32_dll=no
8789
8790
8791             # Check whether --enable-shared was given.
8792 if test "${enable_shared+set}" = set; then :
8793   enableval=$enable_shared; p=${PACKAGE-default}
8794     case $enableval in
8795     yes) enable_shared=yes ;;
8796     no) enable_shared=no ;;
8797     *)
8798       enable_shared=no
8799       # Look at the argument we got.  We use all the common list separators.
8800       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8801       for pkg in $enableval; do
8802         IFS=$lt_save_ifs
8803         if test "X$pkg" = "X$p"; then
8804           enable_shared=yes
8805         fi
8806       done
8807       IFS=$lt_save_ifs
8808       ;;
8809     esac
8810 else
8811   enable_shared=yes
8812 fi
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824   # Check whether --enable-fast-install was given.
8825 if test "${enable_fast_install+set}" = set; then :
8826   enableval=$enable_fast_install; p=${PACKAGE-default}
8827     case $enableval in
8828     yes) enable_fast_install=yes ;;
8829     no) enable_fast_install=no ;;
8830     *)
8831       enable_fast_install=no
8832       # Look at the argument we got.  We use all the common list separators.
8833       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8834       for pkg in $enableval; do
8835         IFS=$lt_save_ifs
8836         if test "X$pkg" = "X$p"; then
8837           enable_fast_install=yes
8838         fi
8839       done
8840       IFS=$lt_save_ifs
8841       ;;
8842     esac
8843 else
8844   enable_fast_install=yes
8845 fi
8846
8847
8848
8849
8850
8851
8852
8853
8854   shared_archive_member_spec=
8855 case $host,$enable_shared in
8856 power*-*-aix[5-9]*,yes)
8857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8858 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8859
8860 # Check whether --with-aix-soname was given.
8861 if test "${with_aix_soname+set}" = set; then :
8862   withval=$with_aix_soname; case $withval in
8863     aix|svr4|both)
8864       ;;
8865     *)
8866       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8867       ;;
8868     esac
8869     lt_cv_with_aix_soname=$with_aix_soname
8870 else
8871   if ${lt_cv_with_aix_soname+:} false; then :
8872   $as_echo_n "(cached) " >&6
8873 else
8874   lt_cv_with_aix_soname=aix
8875 fi
8876
8877     with_aix_soname=$lt_cv_with_aix_soname
8878 fi
8879
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8881 $as_echo "$with_aix_soname" >&6; }
8882   if test aix != "$with_aix_soname"; then
8883     # For the AIX way of multilib, we name the shared archive member
8884     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8885     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8886     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8887     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8888     if test 64 = "${OBJECT_MODE-32}"; then
8889       shared_archive_member_spec=shr_64
8890     else
8891       shared_archive_member_spec=shr
8892     fi
8893   fi
8894   ;;
8895 *)
8896   with_aix_soname=aix
8897   ;;
8898 esac
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909 # This can be used to rebuild libtool when needed
8910 LIBTOOL_DEPS=$ltmain
8911
8912 # Always use our own libtool.
8913 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944 test -z "$LN_S" && LN_S="ln -s"
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959 if test -n "${ZSH_VERSION+set}"; then
8960    setopt NO_GLOB_SUBST
8961 fi
8962
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8964 $as_echo_n "checking for objdir... " >&6; }
8965 if ${lt_cv_objdir+:} false; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   rm -f .libs 2>/dev/null
8969 mkdir .libs 2>/dev/null
8970 if test -d .libs; then
8971   lt_cv_objdir=.libs
8972 else
8973   # MS-DOS does not allow filenames that begin with a dot.
8974   lt_cv_objdir=_libs
8975 fi
8976 rmdir .libs 2>/dev/null
8977 fi
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8979 $as_echo "$lt_cv_objdir" >&6; }
8980 objdir=$lt_cv_objdir
8981
8982
8983
8984
8985
8986 cat >>confdefs.h <<_ACEOF
8987 #define LT_OBJDIR "$lt_cv_objdir/"
8988 _ACEOF
8989
8990
8991
8992
8993 case $host_os in
8994 aix3*)
8995   # AIX sometimes has problems with the GCC collect2 program.  For some
8996   # reason, if we set the COLLECT_NAMES environment variable, the problems
8997   # vanish in a puff of smoke.
8998   if test set != "${COLLECT_NAMES+set}"; then
8999     COLLECT_NAMES=
9000     export COLLECT_NAMES
9001   fi
9002   ;;
9003 esac
9004
9005 # Global variables:
9006 ofile=libtool
9007 can_build_shared=yes
9008
9009 # All known linkers require a '.a' archive for static linking (except MSVC,
9010 # which needs '.lib').
9011 libext=a
9012
9013 with_gnu_ld=$lt_cv_prog_gnu_ld
9014
9015 old_CC=$CC
9016 old_CFLAGS=$CFLAGS
9017
9018 # Set sane defaults for various variables
9019 test -z "$CC" && CC=cc
9020 test -z "$LTCC" && LTCC=$CC
9021 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9022 test -z "$LD" && LD=ld
9023 test -z "$ac_objext" && ac_objext=o
9024
9025 func_cc_basename $compiler
9026 cc_basename=$func_cc_basename_result
9027
9028
9029 # Only perform the check for file, if the check method requires it
9030 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9031 case $deplibs_check_method in
9032 file_magic*)
9033   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9035 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9036 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9037   $as_echo_n "(cached) " >&6
9038 else
9039   case $MAGIC_CMD in
9040 [\\/*] |  ?:[\\/]*)
9041   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9042   ;;
9043 *)
9044   lt_save_MAGIC_CMD=$MAGIC_CMD
9045   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9046   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9047   for ac_dir in $ac_dummy; do
9048     IFS=$lt_save_ifs
9049     test -z "$ac_dir" && ac_dir=.
9050     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9051       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9052       if test -n "$file_magic_test_file"; then
9053         case $deplibs_check_method in
9054         "file_magic "*)
9055           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9056           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9057           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9058             $EGREP "$file_magic_regex" > /dev/null; then
9059             :
9060           else
9061             cat <<_LT_EOF 1>&2
9062
9063 *** Warning: the command libtool uses to detect shared libraries,
9064 *** $file_magic_cmd, produces output that libtool cannot recognize.
9065 *** The result is that libtool may fail to recognize shared libraries
9066 *** as such.  This will affect the creation of libtool libraries that
9067 *** depend on shared libraries, but programs linked with such libtool
9068 *** libraries will work regardless of this problem.  Nevertheless, you
9069 *** may want to report the problem to your system manager and/or to
9070 *** bug-libtool@gnu.org
9071
9072 _LT_EOF
9073           fi ;;
9074         esac
9075       fi
9076       break
9077     fi
9078   done
9079   IFS=$lt_save_ifs
9080   MAGIC_CMD=$lt_save_MAGIC_CMD
9081   ;;
9082 esac
9083 fi
9084
9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9086 if test -n "$MAGIC_CMD"; then
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9088 $as_echo "$MAGIC_CMD" >&6; }
9089 else
9090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9092 fi
9093
9094
9095
9096
9097
9098 if test -z "$lt_cv_path_MAGIC_CMD"; then
9099   if test -n "$ac_tool_prefix"; then
9100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9101 $as_echo_n "checking for file... " >&6; }
9102 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9103   $as_echo_n "(cached) " >&6
9104 else
9105   case $MAGIC_CMD in
9106 [\\/*] |  ?:[\\/]*)
9107   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9108   ;;
9109 *)
9110   lt_save_MAGIC_CMD=$MAGIC_CMD
9111   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9112   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9113   for ac_dir in $ac_dummy; do
9114     IFS=$lt_save_ifs
9115     test -z "$ac_dir" && ac_dir=.
9116     if test -f "$ac_dir/file"; then
9117       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9118       if test -n "$file_magic_test_file"; then
9119         case $deplibs_check_method in
9120         "file_magic "*)
9121           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9122           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9123           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9124             $EGREP "$file_magic_regex" > /dev/null; then
9125             :
9126           else
9127             cat <<_LT_EOF 1>&2
9128
9129 *** Warning: the command libtool uses to detect shared libraries,
9130 *** $file_magic_cmd, produces output that libtool cannot recognize.
9131 *** The result is that libtool may fail to recognize shared libraries
9132 *** as such.  This will affect the creation of libtool libraries that
9133 *** depend on shared libraries, but programs linked with such libtool
9134 *** libraries will work regardless of this problem.  Nevertheless, you
9135 *** may want to report the problem to your system manager and/or to
9136 *** bug-libtool@gnu.org
9137
9138 _LT_EOF
9139           fi ;;
9140         esac
9141       fi
9142       break
9143     fi
9144   done
9145   IFS=$lt_save_ifs
9146   MAGIC_CMD=$lt_save_MAGIC_CMD
9147   ;;
9148 esac
9149 fi
9150
9151 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9152 if test -n "$MAGIC_CMD"; then
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9154 $as_echo "$MAGIC_CMD" >&6; }
9155 else
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9158 fi
9159
9160
9161   else
9162     MAGIC_CMD=:
9163   fi
9164 fi
9165
9166   fi
9167   ;;
9168 esac
9169
9170 # Use C for the default configuration in the libtool script
9171
9172 lt_save_CC=$CC
9173 ac_ext=c
9174 ac_cpp='$CPP $CPPFLAGS'
9175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9178
9179
9180 # Source file extension for C test sources.
9181 ac_ext=c
9182
9183 # Object file extension for compiled C test sources.
9184 objext=o
9185 objext=$objext
9186
9187 # Code to be used in simple compile tests
9188 lt_simple_compile_test_code="int some_variable = 0;"
9189
9190 # Code to be used in simple link tests
9191 lt_simple_link_test_code='int main(){return(0);}'
9192
9193
9194
9195
9196
9197
9198
9199 # If no C compiler was specified, use CC.
9200 LTCC=${LTCC-"$CC"}
9201
9202 # If no C compiler flags were specified, use CFLAGS.
9203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9204
9205 # Allow CC to be a program name with arguments.
9206 compiler=$CC
9207
9208 # Save the default compiler, since it gets overwritten when the other
9209 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9210 compiler_DEFAULT=$CC
9211
9212 # save warnings/boilerplate of simple test code
9213 ac_outfile=conftest.$ac_objext
9214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9216 _lt_compiler_boilerplate=`cat conftest.err`
9217 $RM conftest*
9218
9219 ac_outfile=conftest.$ac_objext
9220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9222 _lt_linker_boilerplate=`cat conftest.err`
9223 $RM -r conftest*
9224
9225
9226 ## CAVEAT EMPTOR:
9227 ## There is no encapsulation within the following macros, do not change
9228 ## the running order or otherwise move them around unless you know exactly
9229 ## what you are doing...
9230 if test -n "$compiler"; then
9231
9232 lt_prog_compiler_no_builtin_flag=
9233
9234 if test yes = "$GCC"; then
9235   case $cc_basename in
9236   nvcc*)
9237     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9238   *)
9239     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9240   esac
9241
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9243 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9244 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9245   $as_echo_n "(cached) " >&6
9246 else
9247   lt_cv_prog_compiler_rtti_exceptions=no
9248    ac_outfile=conftest.$ac_objext
9249    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9251    # Insert the option either (1) after the last *FLAGS variable, or
9252    # (2) before a word containing "conftest.", or (3) at the end.
9253    # Note that $ac_compile itself does not contain backslashes and begins
9254    # with a dollar sign (not a hyphen), so the echo should work correctly.
9255    # The option is referenced via a variable to avoid confusing sed.
9256    lt_compile=`echo "$ac_compile" | $SED \
9257    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259    -e 's:$: $lt_compiler_flag:'`
9260    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9261    (eval "$lt_compile" 2>conftest.err)
9262    ac_status=$?
9263    cat conftest.err >&5
9264    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265    if (exit $ac_status) && test -s "$ac_outfile"; then
9266      # The compiler can only warn and ignore the option if not recognized
9267      # So say no if there are warnings other than the usual output.
9268      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9269      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9270      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9271        lt_cv_prog_compiler_rtti_exceptions=yes
9272      fi
9273    fi
9274    $RM conftest*
9275
9276 fi
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9278 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9279
9280 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9281     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9282 else
9283     :
9284 fi
9285
9286 fi
9287
9288
9289
9290
9291
9292
9293   lt_prog_compiler_wl=
9294 lt_prog_compiler_pic=
9295 lt_prog_compiler_static=
9296
9297
9298   if test yes = "$GCC"; then
9299     lt_prog_compiler_wl='-Wl,'
9300     lt_prog_compiler_static='-static'
9301
9302     case $host_os in
9303       aix*)
9304       # All AIX code is PIC.
9305       if test ia64 = "$host_cpu"; then
9306         # AIX 5 now supports IA64 processor
9307         lt_prog_compiler_static='-Bstatic'
9308       fi
9309       lt_prog_compiler_pic='-fPIC'
9310       ;;
9311
9312     amigaos*)
9313       case $host_cpu in
9314       powerpc)
9315             # see comment about AmigaOS4 .so support
9316             lt_prog_compiler_pic='-fPIC'
9317         ;;
9318       m68k)
9319             # FIXME: we need at least 68020 code to build shared libraries, but
9320             # adding the '-m68020' flag to GCC prevents building anything better,
9321             # like '-m68040'.
9322             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9323         ;;
9324       esac
9325       ;;
9326
9327     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9328       # PIC is the default for these OSes.
9329       ;;
9330
9331     mingw* | cygwin* | pw32* | os2* | cegcc*)
9332       # This hack is so that the source file can tell whether it is being
9333       # built for inclusion in a dll (and should export symbols for example).
9334       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9335       # (--disable-auto-import) libraries
9336       lt_prog_compiler_pic='-DDLL_EXPORT'
9337       case $host_os in
9338       os2*)
9339         lt_prog_compiler_static='$wl-static'
9340         ;;
9341       esac
9342       ;;
9343
9344     darwin* | rhapsody*)
9345       # PIC is the default on this platform
9346       # Common symbols not allowed in MH_DYLIB files
9347       lt_prog_compiler_pic='-fno-common'
9348       ;;
9349
9350     haiku*)
9351       # PIC is the default for Haiku.
9352       # The "-static" flag exists, but is broken.
9353       lt_prog_compiler_static=
9354       ;;
9355
9356     hpux*)
9357       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9358       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9359       # sets the default TLS model and affects inlining.
9360       case $host_cpu in
9361       hppa*64*)
9362         # +Z the default
9363         ;;
9364       *)
9365         lt_prog_compiler_pic='-fPIC'
9366         ;;
9367       esac
9368       ;;
9369
9370     interix[3-9]*)
9371       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9372       # Instead, we relocate shared libraries at runtime.
9373       ;;
9374
9375     msdosdjgpp*)
9376       # Just because we use GCC doesn't mean we suddenly get shared libraries
9377       # on systems that don't support them.
9378       lt_prog_compiler_can_build_shared=no
9379       enable_shared=no
9380       ;;
9381
9382     *nto* | *qnx*)
9383       # QNX uses GNU C++, but need to define -shared option too, otherwise
9384       # it will coredump.
9385       lt_prog_compiler_pic='-fPIC -shared'
9386       ;;
9387
9388     sysv4*MP*)
9389       if test -d /usr/nec; then
9390         lt_prog_compiler_pic=-Kconform_pic
9391       fi
9392       ;;
9393
9394     *)
9395       lt_prog_compiler_pic='-fPIC'
9396       ;;
9397     esac
9398
9399     case $cc_basename in
9400     nvcc*) # Cuda Compiler Driver 2.2
9401       lt_prog_compiler_wl='-Xlinker '
9402       if test -n "$lt_prog_compiler_pic"; then
9403         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9404       fi
9405       ;;
9406     esac
9407   else
9408     # PORTME Check for flag to pass linker flags through the system compiler.
9409     case $host_os in
9410     aix*)
9411       lt_prog_compiler_wl='-Wl,'
9412       if test ia64 = "$host_cpu"; then
9413         # AIX 5 now supports IA64 processor
9414         lt_prog_compiler_static='-Bstatic'
9415       else
9416         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9417       fi
9418       ;;
9419
9420     darwin* | rhapsody*)
9421       # PIC is the default on this platform
9422       # Common symbols not allowed in MH_DYLIB files
9423       lt_prog_compiler_pic='-fno-common'
9424       case $cc_basename in
9425       nagfor*)
9426         # NAG Fortran compiler
9427         lt_prog_compiler_wl='-Wl,-Wl,,'
9428         lt_prog_compiler_pic='-PIC'
9429         lt_prog_compiler_static='-Bstatic'
9430         ;;
9431       esac
9432       ;;
9433
9434     mingw* | cygwin* | pw32* | os2* | cegcc*)
9435       # This hack is so that the source file can tell whether it is being
9436       # built for inclusion in a dll (and should export symbols for example).
9437       lt_prog_compiler_pic='-DDLL_EXPORT'
9438       case $host_os in
9439       os2*)
9440         lt_prog_compiler_static='$wl-static'
9441         ;;
9442       esac
9443       ;;
9444
9445     hpux9* | hpux10* | hpux11*)
9446       lt_prog_compiler_wl='-Wl,'
9447       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9448       # not for PA HP-UX.
9449       case $host_cpu in
9450       hppa*64*|ia64*)
9451         # +Z the default
9452         ;;
9453       *)
9454         lt_prog_compiler_pic='+Z'
9455         ;;
9456       esac
9457       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9458       lt_prog_compiler_static='$wl-a ${wl}archive'
9459       ;;
9460
9461     irix5* | irix6* | nonstopux*)
9462       lt_prog_compiler_wl='-Wl,'
9463       # PIC (with -KPIC) is the default.
9464       lt_prog_compiler_static='-non_shared'
9465       ;;
9466
9467     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9468       case $cc_basename in
9469       # old Intel for x86_64, which still supported -KPIC.
9470       ecc*)
9471         lt_prog_compiler_wl='-Wl,'
9472         lt_prog_compiler_pic='-KPIC'
9473         lt_prog_compiler_static='-static'
9474         ;;
9475       # icc used to be incompatible with GCC.
9476       # ICC 10 doesn't accept -KPIC any more.
9477       icc* | ifort*)
9478         lt_prog_compiler_wl='-Wl,'
9479         lt_prog_compiler_pic='-fPIC'
9480         lt_prog_compiler_static='-static'
9481         ;;
9482       # Lahey Fortran 8.1.
9483       lf95*)
9484         lt_prog_compiler_wl='-Wl,'
9485         lt_prog_compiler_pic='--shared'
9486         lt_prog_compiler_static='--static'
9487         ;;
9488       nagfor*)
9489         # NAG Fortran compiler
9490         lt_prog_compiler_wl='-Wl,-Wl,,'
9491         lt_prog_compiler_pic='-PIC'
9492         lt_prog_compiler_static='-Bstatic'
9493         ;;
9494       tcc*)
9495         # Fabrice Bellard et al's Tiny C Compiler
9496         lt_prog_compiler_wl='-Wl,'
9497         lt_prog_compiler_pic='-fPIC'
9498         lt_prog_compiler_static='-static'
9499         ;;
9500       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9501         # Portland Group compilers (*not* the Pentium gcc compiler,
9502         # which looks to be a dead project)
9503         lt_prog_compiler_wl='-Wl,'
9504         lt_prog_compiler_pic='-fpic'
9505         lt_prog_compiler_static='-Bstatic'
9506         ;;
9507       ccc*)
9508         lt_prog_compiler_wl='-Wl,'
9509         # All Alpha code is PIC.
9510         lt_prog_compiler_static='-non_shared'
9511         ;;
9512       xl* | bgxl* | bgf* | mpixl*)
9513         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9514         lt_prog_compiler_wl='-Wl,'
9515         lt_prog_compiler_pic='-qpic'
9516         lt_prog_compiler_static='-qstaticlink'
9517         ;;
9518       *)
9519         case `$CC -V 2>&1 | sed 5q` in
9520         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9521           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9522           lt_prog_compiler_pic='-KPIC'
9523           lt_prog_compiler_static='-Bstatic'
9524           lt_prog_compiler_wl=''
9525           ;;
9526         *Sun\ F* | *Sun*Fortran*)
9527           lt_prog_compiler_pic='-KPIC'
9528           lt_prog_compiler_static='-Bstatic'
9529           lt_prog_compiler_wl='-Qoption ld '
9530           ;;
9531         *Sun\ C*)
9532           # Sun C 5.9
9533           lt_prog_compiler_pic='-KPIC'
9534           lt_prog_compiler_static='-Bstatic'
9535           lt_prog_compiler_wl='-Wl,'
9536           ;;
9537         *Intel*\ [CF]*Compiler*)
9538           lt_prog_compiler_wl='-Wl,'
9539           lt_prog_compiler_pic='-fPIC'
9540           lt_prog_compiler_static='-static'
9541           ;;
9542         *Portland\ Group*)
9543           lt_prog_compiler_wl='-Wl,'
9544           lt_prog_compiler_pic='-fpic'
9545           lt_prog_compiler_static='-Bstatic'
9546           ;;
9547         esac
9548         ;;
9549       esac
9550       ;;
9551
9552     newsos6)
9553       lt_prog_compiler_pic='-KPIC'
9554       lt_prog_compiler_static='-Bstatic'
9555       ;;
9556
9557     *nto* | *qnx*)
9558       # QNX uses GNU C++, but need to define -shared option too, otherwise
9559       # it will coredump.
9560       lt_prog_compiler_pic='-fPIC -shared'
9561       ;;
9562
9563     osf3* | osf4* | osf5*)
9564       lt_prog_compiler_wl='-Wl,'
9565       # All OSF/1 code is PIC.
9566       lt_prog_compiler_static='-non_shared'
9567       ;;
9568
9569     rdos*)
9570       lt_prog_compiler_static='-non_shared'
9571       ;;
9572
9573     solaris*)
9574       lt_prog_compiler_pic='-KPIC'
9575       lt_prog_compiler_static='-Bstatic'
9576       case $cc_basename in
9577       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9578         lt_prog_compiler_wl='-Qoption ld ';;
9579       *)
9580         lt_prog_compiler_wl='-Wl,';;
9581       esac
9582       ;;
9583
9584     sunos4*)
9585       lt_prog_compiler_wl='-Qoption ld '
9586       lt_prog_compiler_pic='-PIC'
9587       lt_prog_compiler_static='-Bstatic'
9588       ;;
9589
9590     sysv4 | sysv4.2uw2* | sysv4.3*)
9591       lt_prog_compiler_wl='-Wl,'
9592       lt_prog_compiler_pic='-KPIC'
9593       lt_prog_compiler_static='-Bstatic'
9594       ;;
9595
9596     sysv4*MP*)
9597       if test -d /usr/nec; then
9598         lt_prog_compiler_pic='-Kconform_pic'
9599         lt_prog_compiler_static='-Bstatic'
9600       fi
9601       ;;
9602
9603     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9604       lt_prog_compiler_wl='-Wl,'
9605       lt_prog_compiler_pic='-KPIC'
9606       lt_prog_compiler_static='-Bstatic'
9607       ;;
9608
9609     unicos*)
9610       lt_prog_compiler_wl='-Wl,'
9611       lt_prog_compiler_can_build_shared=no
9612       ;;
9613
9614     uts4*)
9615       lt_prog_compiler_pic='-pic'
9616       lt_prog_compiler_static='-Bstatic'
9617       ;;
9618
9619     *)
9620       lt_prog_compiler_can_build_shared=no
9621       ;;
9622     esac
9623   fi
9624
9625 case $host_os in
9626   # For platforms that do not support PIC, -DPIC is meaningless:
9627   *djgpp*)
9628     lt_prog_compiler_pic=
9629     ;;
9630   *)
9631     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9632     ;;
9633 esac
9634
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9636 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9637 if ${lt_cv_prog_compiler_pic+:} false; then :
9638   $as_echo_n "(cached) " >&6
9639 else
9640   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9641 fi
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9643 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9644 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9645
9646 #
9647 # Check to make sure the PIC flag actually works.
9648 #
9649 if test -n "$lt_prog_compiler_pic"; then
9650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9651 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9652 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9653   $as_echo_n "(cached) " >&6
9654 else
9655   lt_cv_prog_compiler_pic_works=no
9656    ac_outfile=conftest.$ac_objext
9657    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9658    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9659    # Insert the option either (1) after the last *FLAGS variable, or
9660    # (2) before a word containing "conftest.", or (3) at the end.
9661    # Note that $ac_compile itself does not contain backslashes and begins
9662    # with a dollar sign (not a hyphen), so the echo should work correctly.
9663    # The option is referenced via a variable to avoid confusing sed.
9664    lt_compile=`echo "$ac_compile" | $SED \
9665    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9667    -e 's:$: $lt_compiler_flag:'`
9668    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9669    (eval "$lt_compile" 2>conftest.err)
9670    ac_status=$?
9671    cat conftest.err >&5
9672    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673    if (exit $ac_status) && test -s "$ac_outfile"; then
9674      # The compiler can only warn and ignore the option if not recognized
9675      # So say no if there are warnings other than the usual output.
9676      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9677      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9678      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9679        lt_cv_prog_compiler_pic_works=yes
9680      fi
9681    fi
9682    $RM conftest*
9683
9684 fi
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9686 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9687
9688 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9689     case $lt_prog_compiler_pic in
9690      "" | " "*) ;;
9691      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9692      esac
9693 else
9694     lt_prog_compiler_pic=
9695      lt_prog_compiler_can_build_shared=no
9696 fi
9697
9698 fi
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710 #
9711 # Check to make sure the static flag actually works.
9712 #
9713 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9715 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9716 if ${lt_cv_prog_compiler_static_works+:} false; then :
9717   $as_echo_n "(cached) " >&6
9718 else
9719   lt_cv_prog_compiler_static_works=no
9720    save_LDFLAGS=$LDFLAGS
9721    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9722    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9723    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9724      # The linker can only warn and ignore the option if not recognized
9725      # So say no if there are warnings
9726      if test -s conftest.err; then
9727        # Append any errors to the config.log.
9728        cat conftest.err 1>&5
9729        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9730        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731        if diff conftest.exp conftest.er2 >/dev/null; then
9732          lt_cv_prog_compiler_static_works=yes
9733        fi
9734      else
9735        lt_cv_prog_compiler_static_works=yes
9736      fi
9737    fi
9738    $RM -r conftest*
9739    LDFLAGS=$save_LDFLAGS
9740
9741 fi
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9743 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9744
9745 if test yes = "$lt_cv_prog_compiler_static_works"; then
9746     :
9747 else
9748     lt_prog_compiler_static=
9749 fi
9750
9751
9752
9753
9754
9755
9756
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9758 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9759 if ${lt_cv_prog_compiler_c_o+:} false; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   lt_cv_prog_compiler_c_o=no
9763    $RM -r conftest 2>/dev/null
9764    mkdir conftest
9765    cd conftest
9766    mkdir out
9767    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9768
9769    lt_compiler_flag="-o out/conftest2.$ac_objext"
9770    # Insert the option either (1) after the last *FLAGS variable, or
9771    # (2) before a word containing "conftest.", or (3) at the end.
9772    # Note that $ac_compile itself does not contain backslashes and begins
9773    # with a dollar sign (not a hyphen), so the echo should work correctly.
9774    lt_compile=`echo "$ac_compile" | $SED \
9775    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9777    -e 's:$: $lt_compiler_flag:'`
9778    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9779    (eval "$lt_compile" 2>out/conftest.err)
9780    ac_status=$?
9781    cat out/conftest.err >&5
9782    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9784    then
9785      # The compiler can only warn and ignore the option if not recognized
9786      # So say no if there are warnings
9787      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9788      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9789      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9790        lt_cv_prog_compiler_c_o=yes
9791      fi
9792    fi
9793    chmod u+w . 2>&5
9794    $RM conftest*
9795    # SGI C++ compiler will create directory out/ii_files/ for
9796    # template instantiation
9797    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9798    $RM out/* && rmdir out
9799    cd ..
9800    $RM -r conftest
9801    $RM conftest*
9802
9803 fi
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9805 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9806
9807
9808
9809
9810
9811
9812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9813 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9814 if ${lt_cv_prog_compiler_c_o+:} false; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   lt_cv_prog_compiler_c_o=no
9818    $RM -r conftest 2>/dev/null
9819    mkdir conftest
9820    cd conftest
9821    mkdir out
9822    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9823
9824    lt_compiler_flag="-o out/conftest2.$ac_objext"
9825    # Insert the option either (1) after the last *FLAGS variable, or
9826    # (2) before a word containing "conftest.", or (3) at the end.
9827    # Note that $ac_compile itself does not contain backslashes and begins
9828    # with a dollar sign (not a hyphen), so the echo should work correctly.
9829    lt_compile=`echo "$ac_compile" | $SED \
9830    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9831    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9832    -e 's:$: $lt_compiler_flag:'`
9833    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9834    (eval "$lt_compile" 2>out/conftest.err)
9835    ac_status=$?
9836    cat out/conftest.err >&5
9837    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9839    then
9840      # The compiler can only warn and ignore the option if not recognized
9841      # So say no if there are warnings
9842      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9843      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9844      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9845        lt_cv_prog_compiler_c_o=yes
9846      fi
9847    fi
9848    chmod u+w . 2>&5
9849    $RM conftest*
9850    # SGI C++ compiler will create directory out/ii_files/ for
9851    # template instantiation
9852    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9853    $RM out/* && rmdir out
9854    cd ..
9855    $RM -r conftest
9856    $RM conftest*
9857
9858 fi
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9860 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9861
9862
9863
9864
9865 hard_links=nottested
9866 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9867   # do not overwrite the value of need_locks provided by the user
9868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9869 $as_echo_n "checking if we can lock with hard links... " >&6; }
9870   hard_links=yes
9871   $RM conftest*
9872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9873   touch conftest.a
9874   ln conftest.a conftest.b 2>&5 || hard_links=no
9875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9877 $as_echo "$hard_links" >&6; }
9878   if test no = "$hard_links"; then
9879     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9880 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9881     need_locks=warn
9882   fi
9883 else
9884   need_locks=no
9885 fi
9886
9887
9888
9889
9890
9891
9892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9893 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9894
9895   runpath_var=
9896   allow_undefined_flag=
9897   always_export_symbols=no
9898   archive_cmds=
9899   archive_expsym_cmds=
9900   compiler_needs_object=no
9901   enable_shared_with_static_runtimes=no
9902   export_dynamic_flag_spec=
9903   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9904   hardcode_automatic=no
9905   hardcode_direct=no
9906   hardcode_direct_absolute=no
9907   hardcode_libdir_flag_spec=
9908   hardcode_libdir_separator=
9909   hardcode_minus_L=no
9910   hardcode_shlibpath_var=unsupported
9911   inherit_rpath=no
9912   link_all_deplibs=unknown
9913   module_cmds=
9914   module_expsym_cmds=
9915   old_archive_from_new_cmds=
9916   old_archive_from_expsyms_cmds=
9917   thread_safe_flag_spec=
9918   whole_archive_flag_spec=
9919   # include_expsyms should be a list of space-separated symbols to be *always*
9920   # included in the symbol list
9921   include_expsyms=
9922   # exclude_expsyms can be an extended regexp of symbols to exclude
9923   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9924   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9925   # as well as any symbol that contains 'd'.
9926   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9927   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9928   # platforms (ab)use it in PIC code, but their linkers get confused if
9929   # the symbol is explicitly referenced.  Since portable code cannot
9930   # rely on this symbol name, it's probably fine to never include it in
9931   # preloaded symbol tables.
9932   # Exclude shared library initialization/finalization symbols.
9933   extract_expsyms_cmds=
9934
9935   case $host_os in
9936   cygwin* | mingw* | pw32* | cegcc*)
9937     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9938     # When not using gcc, we currently assume that we are using
9939     # Microsoft Visual C++.
9940     if test yes != "$GCC"; then
9941       with_gnu_ld=no
9942     fi
9943     ;;
9944   interix*)
9945     # we just hope/assume this is gcc and not c89 (= MSVC++)
9946     with_gnu_ld=yes
9947     ;;
9948   openbsd* | bitrig*)
9949     with_gnu_ld=no
9950     ;;
9951   esac
9952
9953   ld_shlibs=yes
9954
9955   # On some targets, GNU ld is compatible enough with the native linker
9956   # that we're better off using the native interface for both.
9957   lt_use_gnu_ld_interface=no
9958   if test yes = "$with_gnu_ld"; then
9959     case $host_os in
9960       aix*)
9961         # The AIX port of GNU ld has always aspired to compatibility
9962         # with the native linker.  However, as the warning in the GNU ld
9963         # block says, versions before 2.19.5* couldn't really create working
9964         # shared libraries, regardless of the interface used.
9965         case `$LD -v 2>&1` in
9966           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9967           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9968           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9969           *)
9970             lt_use_gnu_ld_interface=yes
9971             ;;
9972         esac
9973         ;;
9974       *)
9975         lt_use_gnu_ld_interface=yes
9976         ;;
9977     esac
9978   fi
9979
9980   if test yes = "$lt_use_gnu_ld_interface"; then
9981     # If archive_cmds runs LD, not CC, wlarc should be empty
9982     wlarc='$wl'
9983
9984     # Set some defaults for GNU ld with shared library support. These
9985     # are reset later if shared libraries are not supported. Putting them
9986     # here allows them to be overridden if necessary.
9987     runpath_var=LD_RUN_PATH
9988     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9989     export_dynamic_flag_spec='$wl--export-dynamic'
9990     # ancient GNU ld didn't support --whole-archive et. al.
9991     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9992       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9993     else
9994       whole_archive_flag_spec=
9995     fi
9996     supports_anon_versioning=no
9997     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9998       *GNU\ gold*) supports_anon_versioning=yes ;;
9999       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10000       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10001       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10002       *\ 2.11.*) ;; # other 2.11 versions
10003       *) supports_anon_versioning=yes ;;
10004     esac
10005
10006     # See if GNU ld supports shared libraries.
10007     case $host_os in
10008     aix[3-9]*)
10009       # On AIX/PPC, the GNU linker is very broken
10010       if test ia64 != "$host_cpu"; then
10011         ld_shlibs=no
10012         cat <<_LT_EOF 1>&2
10013
10014 *** Warning: the GNU linker, at least up to release 2.19, is reported
10015 *** to be unable to reliably create shared libraries on AIX.
10016 *** Therefore, libtool is disabling shared libraries support.  If you
10017 *** really care for shared libraries, you may want to install binutils
10018 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10019 *** You will then need to restart the configuration process.
10020
10021 _LT_EOF
10022       fi
10023       ;;
10024
10025     amigaos*)
10026       case $host_cpu in
10027       powerpc)
10028             # see comment about AmigaOS4 .so support
10029             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10030             archive_expsym_cmds=''
10031         ;;
10032       m68k)
10033             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)'
10034             hardcode_libdir_flag_spec='-L$libdir'
10035             hardcode_minus_L=yes
10036         ;;
10037       esac
10038       ;;
10039
10040     beos*)
10041       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10042         allow_undefined_flag=unsupported
10043         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10044         # support --undefined.  This deserves some investigation.  FIXME
10045         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10046       else
10047         ld_shlibs=no
10048       fi
10049       ;;
10050
10051     cygwin* | mingw* | pw32* | cegcc*)
10052       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10053       # as there is no search path for DLLs.
10054       hardcode_libdir_flag_spec='-L$libdir'
10055       export_dynamic_flag_spec='$wl--export-all-symbols'
10056       allow_undefined_flag=unsupported
10057       always_export_symbols=no
10058       enable_shared_with_static_runtimes=yes
10059       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'
10060       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10061
10062       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10063         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10064         # If the export-symbols file already is a .def file, use it as
10065         # is; otherwise, prepend EXPORTS...
10066         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10067           cp $export_symbols $output_objdir/$soname.def;
10068         else
10069           echo EXPORTS > $output_objdir/$soname.def;
10070           cat $export_symbols >> $output_objdir/$soname.def;
10071         fi~
10072         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10073       else
10074         ld_shlibs=no
10075       fi
10076       ;;
10077
10078     haiku*)
10079       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10080       link_all_deplibs=yes
10081       ;;
10082
10083     os2*)
10084       hardcode_libdir_flag_spec='-L$libdir'
10085       hardcode_minus_L=yes
10086       allow_undefined_flag=unsupported
10087       shrext_cmds=.dll
10088       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10089         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10090         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10091         $ECHO EXPORTS >> $output_objdir/$libname.def~
10092         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10093         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10094         emximp -o $lib $output_objdir/$libname.def'
10095       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10096         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10097         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10098         $ECHO EXPORTS >> $output_objdir/$libname.def~
10099         prefix_cmds="$SED"~
10100         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10101           prefix_cmds="$prefix_cmds -e 1d";
10102         fi~
10103         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10104         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10105         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10106         emximp -o $lib $output_objdir/$libname.def'
10107       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10108       enable_shared_with_static_runtimes=yes
10109       ;;
10110
10111     interix[3-9]*)
10112       hardcode_direct=no
10113       hardcode_shlibpath_var=no
10114       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10115       export_dynamic_flag_spec='$wl-E'
10116       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10117       # Instead, shared libraries are loaded at an image base (0x10000000 by
10118       # default) and relocated if they conflict, which is a slow very memory
10119       # consuming and fragmenting process.  To avoid this, we pick a random,
10120       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10121       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10122       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10123       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'
10124       ;;
10125
10126     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10127       tmp_diet=no
10128       if test linux-dietlibc = "$host_os"; then
10129         case $cc_basename in
10130           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10131         esac
10132       fi
10133       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10134          && test no = "$tmp_diet"
10135       then
10136         tmp_addflag=' $pic_flag'
10137         tmp_sharedflag='-shared'
10138         case $cc_basename,$host_cpu in
10139         pgcc*)                          # Portland Group C compiler
10140           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'
10141           tmp_addflag=' $pic_flag'
10142           ;;
10143         pgf77* | pgf90* | pgf95* | pgfortran*)
10144                                         # Portland Group f77 and f90 compilers
10145           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'
10146           tmp_addflag=' $pic_flag -Mnomain' ;;
10147         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10148           tmp_addflag=' -i_dynamic' ;;
10149         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10150           tmp_addflag=' -i_dynamic -nofor_main' ;;
10151         ifc* | ifort*)                  # Intel Fortran compiler
10152           tmp_addflag=' -nofor_main' ;;
10153         lf95*)                          # Lahey Fortran 8.1
10154           whole_archive_flag_spec=
10155           tmp_sharedflag='--shared' ;;
10156         nagfor*)                        # NAGFOR 5.3
10157           tmp_sharedflag='-Wl,-shared' ;;
10158         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10159           tmp_sharedflag='-qmkshrobj'
10160           tmp_addflag= ;;
10161         nvcc*)  # Cuda Compiler Driver 2.2
10162           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'
10163           compiler_needs_object=yes
10164           ;;
10165         esac
10166         case `$CC -V 2>&1 | sed 5q` in
10167         *Sun\ C*)                       # Sun C 5.9
10168           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'
10169           compiler_needs_object=yes
10170           tmp_sharedflag='-G' ;;
10171         *Sun\ F*)                       # Sun Fortran 8.3
10172           tmp_sharedflag='-G' ;;
10173         esac
10174         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10175
10176         if test yes = "$supports_anon_versioning"; then
10177           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10178             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10179             echo "local: *; };" >> $output_objdir/$libname.ver~
10180             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10181         fi
10182
10183         case $cc_basename in
10184         tcc*)
10185           export_dynamic_flag_spec='-rdynamic'
10186           ;;
10187         xlf* | bgf* | bgxlf* | mpixlf*)
10188           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10189           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10190           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10191           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10192           if test yes = "$supports_anon_versioning"; then
10193             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10194               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10195               echo "local: *; };" >> $output_objdir/$libname.ver~
10196               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10197           fi
10198           ;;
10199         esac
10200       else
10201         ld_shlibs=no
10202       fi
10203       ;;
10204
10205     netbsd*)
10206       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10207         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10208         wlarc=
10209       else
10210         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10211         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10212       fi
10213       ;;
10214
10215     solaris*)
10216       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10217         ld_shlibs=no
10218         cat <<_LT_EOF 1>&2
10219
10220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10221 *** create shared libraries on Solaris systems.  Therefore, libtool
10222 *** is disabling shared libraries support.  We urge you to upgrade GNU
10223 *** binutils to release 2.9.1 or newer.  Another option is to modify
10224 *** your PATH or compiler configuration so that the native linker is
10225 *** used, and then restart.
10226
10227 _LT_EOF
10228       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10229         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10230         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10231       else
10232         ld_shlibs=no
10233       fi
10234       ;;
10235
10236     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10237       case `$LD -v 2>&1` in
10238         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10239         ld_shlibs=no
10240         cat <<_LT_EOF 1>&2
10241
10242 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10243 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10244 *** is disabling shared libraries support.  We urge you to upgrade GNU
10245 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10246 *** your PATH or compiler configuration so that the native linker is
10247 *** used, and then restart.
10248
10249 _LT_EOF
10250         ;;
10251         *)
10252           # For security reasons, it is highly recommended that you always
10253           # use absolute paths for naming shared libraries, and exclude the
10254           # DT_RUNPATH tag from executables and libraries.  But doing so
10255           # requires that you compile everything twice, which is a pain.
10256           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10258             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10259             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10260           else
10261             ld_shlibs=no
10262           fi
10263         ;;
10264       esac
10265       ;;
10266
10267     sunos4*)
10268       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10269       wlarc=
10270       hardcode_direct=yes
10271       hardcode_shlibpath_var=no
10272       ;;
10273
10274     *)
10275       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10276         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10277         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10278       else
10279         ld_shlibs=no
10280       fi
10281       ;;
10282     esac
10283
10284     if test no = "$ld_shlibs"; then
10285       runpath_var=
10286       hardcode_libdir_flag_spec=
10287       export_dynamic_flag_spec=
10288       whole_archive_flag_spec=
10289     fi
10290   else
10291     # PORTME fill in a description of your system's linker (not GNU ld)
10292     case $host_os in
10293     aix3*)
10294       allow_undefined_flag=unsupported
10295       always_export_symbols=yes
10296       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'
10297       # Note: this linker hardcodes the directories in LIBPATH if there
10298       # are no directories specified by -L.
10299       hardcode_minus_L=yes
10300       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10301         # Neither direct hardcoding nor static linking is supported with a
10302         # broken collect2.
10303         hardcode_direct=unsupported
10304       fi
10305       ;;
10306
10307     aix[4-9]*)
10308       if test ia64 = "$host_cpu"; then
10309         # On IA64, the linker does run time linking by default, so we don't
10310         # have to do anything special.
10311         aix_use_runtimelinking=no
10312         exp_sym_flag='-Bexport'
10313         no_entry_flag=
10314       else
10315         # If we're using GNU nm, then we don't want the "-C" option.
10316         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10317         # Without the "-l" option, or with the "-B" option, AIX nm treats
10318         # weak defined symbols like other global defined symbols, whereas
10319         # GNU nm marks them as "W".
10320         # While the 'weak' keyword is ignored in the Export File, we need
10321         # it in the Import File for the 'aix-soname' feature, so we have
10322         # to replace the "-B" option with "-P" for AIX nm.
10323         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10324           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'
10325         else
10326           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'
10327         fi
10328         aix_use_runtimelinking=no
10329
10330         # Test if we are trying to use run time linking or normal
10331         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10332         # have runtime linking enabled, and use it for executables.
10333         # For shared libraries, we enable/disable runtime linking
10334         # depending on the kind of the shared library created -
10335         # when "with_aix_soname,aix_use_runtimelinking" is:
10336         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10337         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10338         #            lib.a           static archive
10339         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10340         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10341         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10342         #            lib.a(lib.so.V) shared, rtl:no
10343         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10344         #            lib.a           static archive
10345         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10346           for ld_flag in $LDFLAGS; do
10347           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10348             aix_use_runtimelinking=yes
10349             break
10350           fi
10351           done
10352           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10353             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10354             # so we don't have lib.a shared libs to link our executables.
10355             # We have to force runtime linking in this case.
10356             aix_use_runtimelinking=yes
10357             LDFLAGS="$LDFLAGS -Wl,-brtl"
10358           fi
10359           ;;
10360         esac
10361
10362         exp_sym_flag='-bexport'
10363         no_entry_flag='-bnoentry'
10364       fi
10365
10366       # When large executables or shared objects are built, AIX ld can
10367       # have problems creating the table of contents.  If linking a library
10368       # or program results in "error TOC overflow" add -mminimal-toc to
10369       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10370       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10371
10372       archive_cmds=''
10373       hardcode_direct=yes
10374       hardcode_direct_absolute=yes
10375       hardcode_libdir_separator=':'
10376       link_all_deplibs=yes
10377       file_list_spec='$wl-f,'
10378       case $with_aix_soname,$aix_use_runtimelinking in
10379       aix,*) ;; # traditional, no import file
10380       svr4,* | *,yes) # use import file
10381         # The Import File defines what to hardcode.
10382         hardcode_direct=no
10383         hardcode_direct_absolute=no
10384         ;;
10385       esac
10386
10387       if test yes = "$GCC"; then
10388         case $host_os in aix4.[012]|aix4.[012].*)
10389         # We only want to do this on AIX 4.2 and lower, the check
10390         # below for broken collect2 doesn't work under 4.3+
10391           collect2name=`$CC -print-prog-name=collect2`
10392           if test -f "$collect2name" &&
10393            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10394           then
10395           # We have reworked collect2
10396           :
10397           else
10398           # We have old collect2
10399           hardcode_direct=unsupported
10400           # It fails to find uninstalled libraries when the uninstalled
10401           # path is not listed in the libpath.  Setting hardcode_minus_L
10402           # to unsupported forces relinking
10403           hardcode_minus_L=yes
10404           hardcode_libdir_flag_spec='-L$libdir'
10405           hardcode_libdir_separator=
10406           fi
10407           ;;
10408         esac
10409         shared_flag='-shared'
10410         if test yes = "$aix_use_runtimelinking"; then
10411           shared_flag="$shared_flag "'$wl-G'
10412         fi
10413         # Need to ensure runtime linking is disabled for the traditional
10414         # shared library, or the linker may eventually find shared libraries
10415         # /with/ Import File - we do not want to mix them.
10416         shared_flag_aix='-shared'
10417         shared_flag_svr4='-shared $wl-G'
10418       else
10419         # not using gcc
10420         if test ia64 = "$host_cpu"; then
10421         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10422         # chokes on -Wl,-G. The following line is correct:
10423           shared_flag='-G'
10424         else
10425           if test yes = "$aix_use_runtimelinking"; then
10426             shared_flag='$wl-G'
10427           else
10428             shared_flag='$wl-bM:SRE'
10429           fi
10430           shared_flag_aix='$wl-bM:SRE'
10431           shared_flag_svr4='$wl-G'
10432         fi
10433       fi
10434
10435       export_dynamic_flag_spec='$wl-bexpall'
10436       # It seems that -bexpall does not export symbols beginning with
10437       # underscore (_), so it is better to generate a list of symbols to export.
10438       always_export_symbols=yes
10439       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10440         # Warning - without using the other runtime loading flags (-brtl),
10441         # -berok will link without error, but may produce a broken library.
10442         allow_undefined_flag='-berok'
10443         # Determine the default libpath from the value encoded in an
10444         # empty executable.
10445         if test set = "${lt_cv_aix_libpath+set}"; then
10446   aix_libpath=$lt_cv_aix_libpath
10447 else
10448   if ${lt_cv_aix_libpath_+:} false; then :
10449   $as_echo_n "(cached) " >&6
10450 else
10451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h.  */
10453
10454 int
10455 main ()
10456 {
10457
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463
10464   lt_aix_libpath_sed='
10465       /Import File Strings/,/^$/ {
10466           /^0/ {
10467               s/^0  *\([^ ]*\) *$/\1/
10468               p
10469           }
10470       }'
10471   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10472   # Check for a 64-bit object if we didn't find anything.
10473   if test -z "$lt_cv_aix_libpath_"; then
10474     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10475   fi
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478     conftest$ac_exeext conftest.$ac_ext
10479   if test -z "$lt_cv_aix_libpath_"; then
10480     lt_cv_aix_libpath_=/usr/lib:/lib
10481   fi
10482
10483 fi
10484
10485   aix_libpath=$lt_cv_aix_libpath_
10486 fi
10487
10488         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10489         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
10490       else
10491         if test ia64 = "$host_cpu"; then
10492           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10493           allow_undefined_flag="-z nodefs"
10494           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"
10495         else
10496          # Determine the default libpath from the value encoded in an
10497          # empty executable.
10498          if test set = "${lt_cv_aix_libpath+set}"; then
10499   aix_libpath=$lt_cv_aix_libpath
10500 else
10501   if ${lt_cv_aix_libpath_+:} false; then :
10502   $as_echo_n "(cached) " >&6
10503 else
10504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h.  */
10506
10507 int
10508 main ()
10509 {
10510
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516
10517   lt_aix_libpath_sed='
10518       /Import File Strings/,/^$/ {
10519           /^0/ {
10520               s/^0  *\([^ ]*\) *$/\1/
10521               p
10522           }
10523       }'
10524   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10525   # Check for a 64-bit object if we didn't find anything.
10526   if test -z "$lt_cv_aix_libpath_"; then
10527     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10528   fi
10529 fi
10530 rm -f core conftest.err conftest.$ac_objext \
10531     conftest$ac_exeext conftest.$ac_ext
10532   if test -z "$lt_cv_aix_libpath_"; then
10533     lt_cv_aix_libpath_=/usr/lib:/lib
10534   fi
10535
10536 fi
10537
10538   aix_libpath=$lt_cv_aix_libpath_
10539 fi
10540
10541          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10542           # Warning - without using the other run time loading flags,
10543           # -berok will link without error, but may produce a broken library.
10544           no_undefined_flag=' $wl-bernotok'
10545           allow_undefined_flag=' $wl-berok'
10546           if test yes = "$with_gnu_ld"; then
10547             # We only use this code for GNU lds that support --whole-archive.
10548             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10549           else
10550             # Exported symbols can be pulled into shared objects from archives
10551             whole_archive_flag_spec='$convenience'
10552           fi
10553           archive_cmds_need_lc=yes
10554           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10555           # -brtl affects multiple linker settings, -berok does not and is overridden later
10556           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10557           if test svr4 != "$with_aix_soname"; then
10558             # This is similar to how AIX traditionally builds its shared libraries.
10559             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'
10560           fi
10561           if test aix != "$with_aix_soname"; then
10562             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'
10563           else
10564             # used by -dlpreopen to get the symbols
10565             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10566           fi
10567           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10568         fi
10569       fi
10570       ;;
10571
10572     amigaos*)
10573       case $host_cpu in
10574       powerpc)
10575             # see comment about AmigaOS4 .so support
10576             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10577             archive_expsym_cmds=''
10578         ;;
10579       m68k)
10580             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)'
10581             hardcode_libdir_flag_spec='-L$libdir'
10582             hardcode_minus_L=yes
10583         ;;
10584       esac
10585       ;;
10586
10587     bsdi[45]*)
10588       export_dynamic_flag_spec=-rdynamic
10589       ;;
10590
10591     cygwin* | mingw* | pw32* | cegcc*)
10592       # When not using gcc, we currently assume that we are using
10593       # Microsoft Visual C++.
10594       # hardcode_libdir_flag_spec is actually meaningless, as there is
10595       # no search path for DLLs.
10596       case $cc_basename in
10597       cl*)
10598         # Native MSVC
10599         hardcode_libdir_flag_spec=' '
10600         allow_undefined_flag=unsupported
10601         always_export_symbols=yes
10602         file_list_spec='@'
10603         # Tell ltmain to make .lib files, not .a files.
10604         libext=lib
10605         # Tell ltmain to make .dll files, not .so files.
10606         shrext_cmds=.dll
10607         # FIXME: Setting linknames here is a bad hack.
10608         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10609         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10610             cp "$export_symbols" "$output_objdir/$soname.def";
10611             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10612           else
10613             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10614           fi~
10615           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10616           linknames='
10617         # The linker will not automatically build a static lib if we build a DLL.
10618         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10619         enable_shared_with_static_runtimes=yes
10620         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10621         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10622         # Don't use ranlib
10623         old_postinstall_cmds='chmod 644 $oldlib'
10624         postlink_cmds='lt_outputfile="@OUTPUT@"~
10625           lt_tool_outputfile="@TOOL_OUTPUT@"~
10626           case $lt_outputfile in
10627             *.exe|*.EXE) ;;
10628             *)
10629               lt_outputfile=$lt_outputfile.exe
10630               lt_tool_outputfile=$lt_tool_outputfile.exe
10631               ;;
10632           esac~
10633           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10634             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10635             $RM "$lt_outputfile.manifest";
10636           fi'
10637         ;;
10638       *)
10639         # Assume MSVC wrapper
10640         hardcode_libdir_flag_spec=' '
10641         allow_undefined_flag=unsupported
10642         # Tell ltmain to make .lib files, not .a files.
10643         libext=lib
10644         # Tell ltmain to make .dll files, not .so files.
10645         shrext_cmds=.dll
10646         # FIXME: Setting linknames here is a bad hack.
10647         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10648         # The linker will automatically build a .lib file if we build a DLL.
10649         old_archive_from_new_cmds='true'
10650         # FIXME: Should let the user specify the lib program.
10651         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10652         enable_shared_with_static_runtimes=yes
10653         ;;
10654       esac
10655       ;;
10656
10657     darwin* | rhapsody*)
10658
10659
10660   archive_cmds_need_lc=no
10661   hardcode_direct=no
10662   hardcode_automatic=yes
10663   hardcode_shlibpath_var=unsupported
10664   if test yes = "$lt_cv_ld_force_load"; then
10665     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\"`'
10666
10667   else
10668     whole_archive_flag_spec=''
10669   fi
10670   link_all_deplibs=yes
10671   allow_undefined_flag=$_lt_dar_allow_undefined
10672   case $cc_basename in
10673      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10674      *) _lt_dar_can_shared=$GCC ;;
10675   esac
10676   if test yes = "$_lt_dar_can_shared"; then
10677     output_verbose_link_cmd=func_echo_all
10678     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10679     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10680     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"
10681     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"
10682
10683   else
10684   ld_shlibs=no
10685   fi
10686
10687       ;;
10688
10689     dgux*)
10690       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691       hardcode_libdir_flag_spec='-L$libdir'
10692       hardcode_shlibpath_var=no
10693       ;;
10694
10695     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10696     # support.  Future versions do this automatically, but an explicit c++rt0.o
10697     # does not break anything, and helps significantly (at the cost of a little
10698     # extra space).
10699     freebsd2.2*)
10700       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10701       hardcode_libdir_flag_spec='-R$libdir'
10702       hardcode_direct=yes
10703       hardcode_shlibpath_var=no
10704       ;;
10705
10706     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10707     freebsd2.*)
10708       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10709       hardcode_direct=yes
10710       hardcode_minus_L=yes
10711       hardcode_shlibpath_var=no
10712       ;;
10713
10714     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10715     freebsd* | dragonfly*)
10716       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10717       hardcode_libdir_flag_spec='-R$libdir'
10718       hardcode_direct=yes
10719       hardcode_shlibpath_var=no
10720       ;;
10721
10722     hpux9*)
10723       if test yes = "$GCC"; then
10724         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'
10725       else
10726         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'
10727       fi
10728       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10729       hardcode_libdir_separator=:
10730       hardcode_direct=yes
10731
10732       # hardcode_minus_L: Not really in the search PATH,
10733       # but as the default location of the library.
10734       hardcode_minus_L=yes
10735       export_dynamic_flag_spec='$wl-E'
10736       ;;
10737
10738     hpux10*)
10739       if test yes,no = "$GCC,$with_gnu_ld"; then
10740         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10741       else
10742         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10743       fi
10744       if test no = "$with_gnu_ld"; then
10745         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10746         hardcode_libdir_separator=:
10747         hardcode_direct=yes
10748         hardcode_direct_absolute=yes
10749         export_dynamic_flag_spec='$wl-E'
10750         # hardcode_minus_L: Not really in the search PATH,
10751         # but as the default location of the library.
10752         hardcode_minus_L=yes
10753       fi
10754       ;;
10755
10756     hpux11*)
10757       if test yes,no = "$GCC,$with_gnu_ld"; then
10758         case $host_cpu in
10759         hppa*64*)
10760           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10761           ;;
10762         ia64*)
10763           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10764           ;;
10765         *)
10766           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10767           ;;
10768         esac
10769       else
10770         case $host_cpu in
10771         hppa*64*)
10772           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10773           ;;
10774         ia64*)
10775           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10776           ;;
10777         *)
10778
10779           # Older versions of the 11.00 compiler do not understand -b yet
10780           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10781           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10782 $as_echo_n "checking if $CC understands -b... " >&6; }
10783 if ${lt_cv_prog_compiler__b+:} false; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   lt_cv_prog_compiler__b=no
10787    save_LDFLAGS=$LDFLAGS
10788    LDFLAGS="$LDFLAGS -b"
10789    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10790    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10791      # The linker can only warn and ignore the option if not recognized
10792      # So say no if there are warnings
10793      if test -s conftest.err; then
10794        # Append any errors to the config.log.
10795        cat conftest.err 1>&5
10796        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10797        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10798        if diff conftest.exp conftest.er2 >/dev/null; then
10799          lt_cv_prog_compiler__b=yes
10800        fi
10801      else
10802        lt_cv_prog_compiler__b=yes
10803      fi
10804    fi
10805    $RM -r conftest*
10806    LDFLAGS=$save_LDFLAGS
10807
10808 fi
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10810 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10811
10812 if test yes = "$lt_cv_prog_compiler__b"; then
10813     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10814 else
10815     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10816 fi
10817
10818           ;;
10819         esac
10820       fi
10821       if test no = "$with_gnu_ld"; then
10822         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10823         hardcode_libdir_separator=:
10824
10825         case $host_cpu in
10826         hppa*64*|ia64*)
10827           hardcode_direct=no
10828           hardcode_shlibpath_var=no
10829           ;;
10830         *)
10831           hardcode_direct=yes
10832           hardcode_direct_absolute=yes
10833           export_dynamic_flag_spec='$wl-E'
10834
10835           # hardcode_minus_L: Not really in the search PATH,
10836           # but as the default location of the library.
10837           hardcode_minus_L=yes
10838           ;;
10839         esac
10840       fi
10841       ;;
10842
10843     irix5* | irix6* | nonstopux*)
10844       if test yes = "$GCC"; then
10845         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'
10846         # Try to use the -exported_symbol ld option, if it does not
10847         # work, assume that -exports_file does not work either and
10848         # implicitly export all symbols.
10849         # This should be the same for all languages, so no per-tag cache variable.
10850         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10851 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10852 if ${lt_cv_irix_exported_symbol+:} false; then :
10853   $as_echo_n "(cached) " >&6
10854 else
10855   save_LDFLAGS=$LDFLAGS
10856            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10857            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h.  */
10859 int foo (void) { return 0; }
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"; then :
10862   lt_cv_irix_exported_symbol=yes
10863 else
10864   lt_cv_irix_exported_symbol=no
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext \
10867     conftest$ac_exeext conftest.$ac_ext
10868            LDFLAGS=$save_LDFLAGS
10869 fi
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10871 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10872         if test yes = "$lt_cv_irix_exported_symbol"; then
10873           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'
10874         fi
10875       else
10876         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'
10877         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'
10878       fi
10879       archive_cmds_need_lc='no'
10880       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10881       hardcode_libdir_separator=:
10882       inherit_rpath=yes
10883       link_all_deplibs=yes
10884       ;;
10885
10886     linux*)
10887       case $cc_basename in
10888       tcc*)
10889         # Fabrice Bellard et al's Tiny C Compiler
10890         ld_shlibs=yes
10891         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10892         ;;
10893       esac
10894       ;;
10895
10896     netbsd*)
10897       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10898         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10899       else
10900         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10901       fi
10902       hardcode_libdir_flag_spec='-R$libdir'
10903       hardcode_direct=yes
10904       hardcode_shlibpath_var=no
10905       ;;
10906
10907     newsos6)
10908       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909       hardcode_direct=yes
10910       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10911       hardcode_libdir_separator=:
10912       hardcode_shlibpath_var=no
10913       ;;
10914
10915     *nto* | *qnx*)
10916       ;;
10917
10918     openbsd* | bitrig*)
10919       if test -f /usr/libexec/ld.so; then
10920         hardcode_direct=yes
10921         hardcode_shlibpath_var=no
10922         hardcode_direct_absolute=yes
10923         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10924           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10925           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10926           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10927           export_dynamic_flag_spec='$wl-E'
10928         else
10929           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10930           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10931         fi
10932       else
10933         ld_shlibs=no
10934       fi
10935       ;;
10936
10937     os2*)
10938       hardcode_libdir_flag_spec='-L$libdir'
10939       hardcode_minus_L=yes
10940       allow_undefined_flag=unsupported
10941       shrext_cmds=.dll
10942       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10943         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10944         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10945         $ECHO EXPORTS >> $output_objdir/$libname.def~
10946         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10947         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10948         emximp -o $lib $output_objdir/$libname.def'
10949       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10950         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10951         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10952         $ECHO EXPORTS >> $output_objdir/$libname.def~
10953         prefix_cmds="$SED"~
10954         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10955           prefix_cmds="$prefix_cmds -e 1d";
10956         fi~
10957         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10958         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10959         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10960         emximp -o $lib $output_objdir/$libname.def'
10961       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10962       enable_shared_with_static_runtimes=yes
10963       ;;
10964
10965     osf3*)
10966       if test yes = "$GCC"; then
10967         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10968         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'
10969       else
10970         allow_undefined_flag=' -expect_unresolved \*'
10971         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'
10972       fi
10973       archive_cmds_need_lc='no'
10974       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10975       hardcode_libdir_separator=:
10976       ;;
10977
10978     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10979       if test yes = "$GCC"; then
10980         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10981         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'
10982         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10983       else
10984         allow_undefined_flag=' -expect_unresolved \*'
10985         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'
10986         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~
10987           $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'
10988
10989         # Both c and cxx compiler support -rpath directly
10990         hardcode_libdir_flag_spec='-rpath $libdir'
10991       fi
10992       archive_cmds_need_lc='no'
10993       hardcode_libdir_separator=:
10994       ;;
10995
10996     solaris*)
10997       no_undefined_flag=' -z defs'
10998       if test yes = "$GCC"; then
10999         wlarc='$wl'
11000         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11001         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11002           $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'
11003       else
11004         case `$CC -V 2>&1` in
11005         *"Compilers 5.0"*)
11006           wlarc=''
11007           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11008           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11009             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11010           ;;
11011         *)
11012           wlarc='$wl'
11013           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11014           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11015             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11016           ;;
11017         esac
11018       fi
11019       hardcode_libdir_flag_spec='-R$libdir'
11020       hardcode_shlibpath_var=no
11021       case $host_os in
11022       solaris2.[0-5] | solaris2.[0-5].*) ;;
11023       *)
11024         # The compiler driver will combine and reorder linker options,
11025         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11026         # but is careful enough not to reorder.
11027         # Supported since Solaris 2.6 (maybe 2.5.1?)
11028         if test yes = "$GCC"; then
11029           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11030         else
11031           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11032         fi
11033         ;;
11034       esac
11035       link_all_deplibs=yes
11036       ;;
11037
11038     sunos4*)
11039       if test sequent = "$host_vendor"; then
11040         # Use $CC to link under sequent, because it throws in some extra .o
11041         # files that make .init and .fini sections work.
11042         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11043       else
11044         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11045       fi
11046       hardcode_libdir_flag_spec='-L$libdir'
11047       hardcode_direct=yes
11048       hardcode_minus_L=yes
11049       hardcode_shlibpath_var=no
11050       ;;
11051
11052     sysv4)
11053       case $host_vendor in
11054         sni)
11055           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056           hardcode_direct=yes # is this really true???
11057         ;;
11058         siemens)
11059           ## LD is ld it makes a PLAMLIB
11060           ## CC just makes a GrossModule.
11061           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11062           reload_cmds='$CC -r -o $output$reload_objs'
11063           hardcode_direct=no
11064         ;;
11065         motorola)
11066           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11067           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11068         ;;
11069       esac
11070       runpath_var='LD_RUN_PATH'
11071       hardcode_shlibpath_var=no
11072       ;;
11073
11074     sysv4.3*)
11075       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11076       hardcode_shlibpath_var=no
11077       export_dynamic_flag_spec='-Bexport'
11078       ;;
11079
11080     sysv4*MP*)
11081       if test -d /usr/nec; then
11082         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11083         hardcode_shlibpath_var=no
11084         runpath_var=LD_RUN_PATH
11085         hardcode_runpath_var=yes
11086         ld_shlibs=yes
11087       fi
11088       ;;
11089
11090     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11091       no_undefined_flag='$wl-z,text'
11092       archive_cmds_need_lc=no
11093       hardcode_shlibpath_var=no
11094       runpath_var='LD_RUN_PATH'
11095
11096       if test yes = "$GCC"; then
11097         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11099       else
11100         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11101         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11102       fi
11103       ;;
11104
11105     sysv5* | sco3.2v5* | sco5v6*)
11106       # Note: We CANNOT use -z defs as we might desire, because we do not
11107       # link with -lc, and that would cause any symbols used from libc to
11108       # always be unresolved, which means just about no library would
11109       # ever link correctly.  If we're not using GNU ld we use -z text
11110       # though, which does catch some bad symbols but isn't as heavy-handed
11111       # as -z defs.
11112       no_undefined_flag='$wl-z,text'
11113       allow_undefined_flag='$wl-z,nodefs'
11114       archive_cmds_need_lc=no
11115       hardcode_shlibpath_var=no
11116       hardcode_libdir_flag_spec='$wl-R,$libdir'
11117       hardcode_libdir_separator=':'
11118       link_all_deplibs=yes
11119       export_dynamic_flag_spec='$wl-Bexport'
11120       runpath_var='LD_RUN_PATH'
11121
11122       if test yes = "$GCC"; then
11123         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125       else
11126         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11127         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11128       fi
11129       ;;
11130
11131     uts4*)
11132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133       hardcode_libdir_flag_spec='-L$libdir'
11134       hardcode_shlibpath_var=no
11135       ;;
11136
11137     *)
11138       ld_shlibs=no
11139       ;;
11140     esac
11141
11142     if test sni = "$host_vendor"; then
11143       case $host in
11144       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11145         export_dynamic_flag_spec='$wl-Blargedynsym'
11146         ;;
11147       esac
11148     fi
11149   fi
11150
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11152 $as_echo "$ld_shlibs" >&6; }
11153 test no = "$ld_shlibs" && can_build_shared=no
11154
11155 with_gnu_ld=$with_gnu_ld
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171 #
11172 # Do we need to explicitly link libc?
11173 #
11174 case "x$archive_cmds_need_lc" in
11175 x|xyes)
11176   # Assume -lc should be added
11177   archive_cmds_need_lc=yes
11178
11179   if test yes,yes = "$GCC,$enable_shared"; then
11180     case $archive_cmds in
11181     *'~'*)
11182       # FIXME: we may have to deal with multi-command sequences.
11183       ;;
11184     '$CC '*)
11185       # Test whether the compiler implicitly links with -lc since on some
11186       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11187       # to ld, don't add -lc before -lgcc.
11188       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11189 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11190 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11191   $as_echo_n "(cached) " >&6
11192 else
11193   $RM conftest*
11194         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11195
11196         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11197   (eval $ac_compile) 2>&5
11198   ac_status=$?
11199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11200   test $ac_status = 0; } 2>conftest.err; then
11201           soname=conftest
11202           lib=conftest
11203           libobjs=conftest.$ac_objext
11204           deplibs=
11205           wl=$lt_prog_compiler_wl
11206           pic_flag=$lt_prog_compiler_pic
11207           compiler_flags=-v
11208           linker_flags=-v
11209           verstring=
11210           output_objdir=.
11211           libname=conftest
11212           lt_save_allow_undefined_flag=$allow_undefined_flag
11213           allow_undefined_flag=
11214           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11215   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11216   ac_status=$?
11217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11218   test $ac_status = 0; }
11219           then
11220             lt_cv_archive_cmds_need_lc=no
11221           else
11222             lt_cv_archive_cmds_need_lc=yes
11223           fi
11224           allow_undefined_flag=$lt_save_allow_undefined_flag
11225         else
11226           cat conftest.err 1>&5
11227         fi
11228         $RM conftest*
11229
11230 fi
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11232 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11233       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11234       ;;
11235     esac
11236   fi
11237   ;;
11238 esac
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11392 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11393
11394 if test yes = "$GCC"; then
11395   case $host_os in
11396     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11397     *) lt_awk_arg='/^libraries:/' ;;
11398   esac
11399   case $host_os in
11400     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11401     *) lt_sed_strip_eq='s|=/|/|g' ;;
11402   esac
11403   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11404   case $lt_search_path_spec in
11405   *\;*)
11406     # if the path contains ";" then we assume it to be the separator
11407     # otherwise default to the standard path separator (i.e. ":") - it is
11408     # assumed that no part of a normal pathname contains ";" but that should
11409     # okay in the real world where ";" in dirpaths is itself problematic.
11410     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11411     ;;
11412   *)
11413     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11414     ;;
11415   esac
11416   # Ok, now we have the path, separated by spaces, we can step through it
11417   # and add multilib dir if necessary...
11418   lt_tmp_lt_search_path_spec=
11419   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11420   # ...but if some path component already ends with the multilib dir we assume
11421   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11422   case "$lt_multi_os_dir; $lt_search_path_spec " in
11423   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11424     lt_multi_os_dir=
11425     ;;
11426   esac
11427   for lt_sys_path in $lt_search_path_spec; do
11428     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11429       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11430     elif test -n "$lt_multi_os_dir"; then
11431       test -d "$lt_sys_path" && \
11432         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11433     fi
11434   done
11435   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11436 BEGIN {RS = " "; FS = "/|\n";} {
11437   lt_foo = "";
11438   lt_count = 0;
11439   for (lt_i = NF; lt_i > 0; lt_i--) {
11440     if ($lt_i != "" && $lt_i != ".") {
11441       if ($lt_i == "..") {
11442         lt_count++;
11443       } else {
11444         if (lt_count == 0) {
11445           lt_foo = "/" $lt_i lt_foo;
11446         } else {
11447           lt_count--;
11448         }
11449       }
11450     }
11451   }
11452   if (lt_foo != "") { lt_freq[lt_foo]++; }
11453   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11454 }'`
11455   # AWK program above erroneously prepends '/' to C:/dos/paths
11456   # for these hosts.
11457   case $host_os in
11458     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11459       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11460   esac
11461   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11462 else
11463   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11464 fi
11465 library_names_spec=
11466 libname_spec='lib$name'
11467 soname_spec=
11468 shrext_cmds=.so
11469 postinstall_cmds=
11470 postuninstall_cmds=
11471 finish_cmds=
11472 finish_eval=
11473 shlibpath_var=
11474 shlibpath_overrides_runpath=unknown
11475 version_type=none
11476 dynamic_linker="$host_os ld.so"
11477 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11478 need_lib_prefix=unknown
11479 hardcode_into_libs=no
11480
11481 # when you set need_version to no, make sure it does not cause -set_version
11482 # flags to be left without arguments
11483 need_version=unknown
11484
11485
11486
11487 case $host_os in
11488 aix3*)
11489   version_type=linux # correct to gnu/linux during the next big refactor
11490   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11491   shlibpath_var=LIBPATH
11492
11493   # AIX 3 has no versioning support, so we append a major version to the name.
11494   soname_spec='$libname$release$shared_ext$major'
11495   ;;
11496
11497 aix[4-9]*)
11498   version_type=linux # correct to gnu/linux during the next big refactor
11499   need_lib_prefix=no
11500   need_version=no
11501   hardcode_into_libs=yes
11502   if test ia64 = "$host_cpu"; then
11503     # AIX 5 supports IA64
11504     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11505     shlibpath_var=LD_LIBRARY_PATH
11506   else
11507     # With GCC up to 2.95.x, collect2 would create an import file
11508     # for dependence libraries.  The import file would start with
11509     # the line '#! .'.  This would cause the generated library to
11510     # depend on '.', always an invalid library.  This was fixed in
11511     # development snapshots of GCC prior to 3.0.
11512     case $host_os in
11513       aix4 | aix4.[01] | aix4.[01].*)
11514       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11515            echo ' yes '
11516            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11517         :
11518       else
11519         can_build_shared=no
11520       fi
11521       ;;
11522     esac
11523     # Using Import Files as archive members, it is possible to support
11524     # filename-based versioning of shared library archives on AIX. While
11525     # this would work for both with and without runtime linking, it will
11526     # prevent static linking of such archives. So we do filename-based
11527     # shared library versioning with .so extension only, which is used
11528     # when both runtime linking and shared linking is enabled.
11529     # Unfortunately, runtime linking may impact performance, so we do
11530     # not want this to be the default eventually. Also, we use the
11531     # versioned .so libs for executables only if there is the -brtl
11532     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11533     # To allow for filename-based versioning support, we need to create
11534     # libNAME.so.V as an archive file, containing:
11535     # *) an Import File, referring to the versioned filename of the
11536     #    archive as well as the shared archive member, telling the
11537     #    bitwidth (32 or 64) of that shared object, and providing the
11538     #    list of exported symbols of that shared object, eventually
11539     #    decorated with the 'weak' keyword
11540     # *) the shared object with the F_LOADONLY flag set, to really avoid
11541     #    it being seen by the linker.
11542     # At run time we better use the real file rather than another symlink,
11543     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11544
11545     case $with_aix_soname,$aix_use_runtimelinking in
11546     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11547     # soname into executable. Probably we can add versioning support to
11548     # collect2, so additional links can be useful in future.
11549     aix,yes) # traditional libtool
11550       dynamic_linker='AIX unversionable lib.so'
11551       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11552       # instead of lib<name>.a to let people know that these are not
11553       # typical AIX shared libraries.
11554       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11555       ;;
11556     aix,no) # traditional AIX only
11557       dynamic_linker='AIX lib.a(lib.so.V)'
11558       # We preserve .a as extension for shared libraries through AIX4.2
11559       # and later when we are not doing run time linking.
11560       library_names_spec='$libname$release.a $libname.a'
11561       soname_spec='$libname$release$shared_ext$major'
11562       ;;
11563     svr4,*) # full svr4 only
11564       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11565       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11566       # We do not specify a path in Import Files, so LIBPATH fires.
11567       shlibpath_overrides_runpath=yes
11568       ;;
11569     *,yes) # both, prefer svr4
11570       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11571       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11572       # unpreferred sharedlib libNAME.a needs extra handling
11573       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"'
11574       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"'
11575       # We do not specify a path in Import Files, so LIBPATH fires.
11576       shlibpath_overrides_runpath=yes
11577       ;;
11578     *,no) # both, prefer aix
11579       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11580       library_names_spec='$libname$release.a $libname.a'
11581       soname_spec='$libname$release$shared_ext$major'
11582       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11583       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)'
11584       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"'
11585       ;;
11586     esac
11587     shlibpath_var=LIBPATH
11588   fi
11589   ;;
11590
11591 amigaos*)
11592   case $host_cpu in
11593   powerpc)
11594     # Since July 2007 AmigaOS4 officially supports .so libraries.
11595     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11596     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11597     ;;
11598   m68k)
11599     library_names_spec='$libname.ixlibrary $libname.a'
11600     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11601     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'
11602     ;;
11603   esac
11604   ;;
11605
11606 beos*)
11607   library_names_spec='$libname$shared_ext'
11608   dynamic_linker="$host_os ld.so"
11609   shlibpath_var=LIBRARY_PATH
11610   ;;
11611
11612 bsdi[45]*)
11613   version_type=linux # correct to gnu/linux during the next big refactor
11614   need_version=no
11615   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11616   soname_spec='$libname$release$shared_ext$major'
11617   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11618   shlibpath_var=LD_LIBRARY_PATH
11619   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11620   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11621   # the default ld.so.conf also contains /usr/contrib/lib and
11622   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11623   # libtool to hard-code these into programs
11624   ;;
11625
11626 cygwin* | mingw* | pw32* | cegcc*)
11627   version_type=windows
11628   shrext_cmds=.dll
11629   need_version=no
11630   need_lib_prefix=no
11631
11632   case $GCC,$cc_basename in
11633   yes,*)
11634     # gcc
11635     library_names_spec='$libname.dll.a'
11636     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11637     postinstall_cmds='base_file=`basename \$file`~
11638       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11639       dldir=$destdir/`dirname \$dlpath`~
11640       test -d \$dldir || mkdir -p \$dldir~
11641       $install_prog $dir/$dlname \$dldir/$dlname~
11642       chmod a+x \$dldir/$dlname~
11643       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11644         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11645       fi'
11646     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11647       dlpath=$dir/\$dldll~
11648        $RM \$dlpath'
11649     shlibpath_overrides_runpath=yes
11650
11651     case $host_os in
11652     cygwin*)
11653       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11654       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11655
11656       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11657       ;;
11658     mingw* | cegcc*)
11659       # MinGW DLLs use traditional 'lib' prefix
11660       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11661       ;;
11662     pw32*)
11663       # pw32 DLLs use 'pw' prefix rather than 'lib'
11664       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11665       ;;
11666     esac
11667     dynamic_linker='Win32 ld.exe'
11668     ;;
11669
11670   *,cl*)
11671     # Native MSVC
11672     libname_spec='$name'
11673     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11674     library_names_spec='$libname.dll.lib'
11675
11676     case $build_os in
11677     mingw*)
11678       sys_lib_search_path_spec=
11679       lt_save_ifs=$IFS
11680       IFS=';'
11681       for lt_path in $LIB
11682       do
11683         IFS=$lt_save_ifs
11684         # Let DOS variable expansion print the short 8.3 style file name.
11685         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11686         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11687       done
11688       IFS=$lt_save_ifs
11689       # Convert to MSYS style.
11690       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11691       ;;
11692     cygwin*)
11693       # Convert to unix form, then to dos form, then back to unix form
11694       # but this time dos style (no spaces!) so that the unix form looks
11695       # like /cygdrive/c/PROGRA~1:/cygdr...
11696       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11697       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11698       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11699       ;;
11700     *)
11701       sys_lib_search_path_spec=$LIB
11702       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11703         # It is most probably a Windows format PATH.
11704         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11705       else
11706         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11707       fi
11708       # FIXME: find the short name or the path components, as spaces are
11709       # common. (e.g. "Program Files" -> "PROGRA~1")
11710       ;;
11711     esac
11712
11713     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11714     postinstall_cmds='base_file=`basename \$file`~
11715       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11716       dldir=$destdir/`dirname \$dlpath`~
11717       test -d \$dldir || mkdir -p \$dldir~
11718       $install_prog $dir/$dlname \$dldir/$dlname'
11719     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11720       dlpath=$dir/\$dldll~
11721        $RM \$dlpath'
11722     shlibpath_overrides_runpath=yes
11723     dynamic_linker='Win32 link.exe'
11724     ;;
11725
11726   *)
11727     # Assume MSVC wrapper
11728     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11729     dynamic_linker='Win32 ld.exe'
11730     ;;
11731   esac
11732   # FIXME: first we should search . and the directory the executable is in
11733   shlibpath_var=PATH
11734   ;;
11735
11736 darwin* | rhapsody*)
11737   dynamic_linker="$host_os dyld"
11738   version_type=darwin
11739   need_lib_prefix=no
11740   need_version=no
11741   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11742   soname_spec='$libname$release$major$shared_ext'
11743   shlibpath_overrides_runpath=yes
11744   shlibpath_var=DYLD_LIBRARY_PATH
11745   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11746
11747   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11748   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11749   ;;
11750
11751 dgux*)
11752   version_type=linux # correct to gnu/linux during the next big refactor
11753   need_lib_prefix=no
11754   need_version=no
11755   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756   soname_spec='$libname$release$shared_ext$major'
11757   shlibpath_var=LD_LIBRARY_PATH
11758   ;;
11759
11760 freebsd* | dragonfly*)
11761   # DragonFly does not have aout.  When/if they implement a new
11762   # versioning mechanism, adjust this.
11763   if test -x /usr/bin/objformat; then
11764     objformat=`/usr/bin/objformat`
11765   else
11766     case $host_os in
11767     freebsd[23].*) objformat=aout ;;
11768     *) objformat=elf ;;
11769     esac
11770   fi
11771   version_type=freebsd-$objformat
11772   case $version_type in
11773     freebsd-elf*)
11774       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775       soname_spec='$libname$release$shared_ext$major'
11776       need_version=no
11777       need_lib_prefix=no
11778       ;;
11779     freebsd-*)
11780       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11781       need_version=yes
11782       ;;
11783   esac
11784   shlibpath_var=LD_LIBRARY_PATH
11785   case $host_os in
11786   freebsd2.*)
11787     shlibpath_overrides_runpath=yes
11788     ;;
11789   freebsd3.[01]* | freebsdelf3.[01]*)
11790     shlibpath_overrides_runpath=yes
11791     hardcode_into_libs=yes
11792     ;;
11793   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11794   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11795     shlibpath_overrides_runpath=no
11796     hardcode_into_libs=yes
11797     ;;
11798   *) # from 4.6 on, and DragonFly
11799     shlibpath_overrides_runpath=yes
11800     hardcode_into_libs=yes
11801     ;;
11802   esac
11803   ;;
11804
11805 haiku*)
11806   version_type=linux # correct to gnu/linux during the next big refactor
11807   need_lib_prefix=no
11808   need_version=no
11809   dynamic_linker="$host_os runtime_loader"
11810   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11811   soname_spec='$libname$release$shared_ext$major'
11812   shlibpath_var=LIBRARY_PATH
11813   shlibpath_overrides_runpath=no
11814   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11815   hardcode_into_libs=yes
11816   ;;
11817
11818 hpux9* | hpux10* | hpux11*)
11819   # Give a soname corresponding to the major version so that dld.sl refuses to
11820   # link against other versions.
11821   version_type=sunos
11822   need_lib_prefix=no
11823   need_version=no
11824   case $host_cpu in
11825   ia64*)
11826     shrext_cmds='.so'
11827     hardcode_into_libs=yes
11828     dynamic_linker="$host_os dld.so"
11829     shlibpath_var=LD_LIBRARY_PATH
11830     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11831     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832     soname_spec='$libname$release$shared_ext$major'
11833     if test 32 = "$HPUX_IA64_MODE"; then
11834       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11835       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11836     else
11837       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11838       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11839     fi
11840     ;;
11841   hppa*64*)
11842     shrext_cmds='.sl'
11843     hardcode_into_libs=yes
11844     dynamic_linker="$host_os dld.sl"
11845     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11846     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11847     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848     soname_spec='$libname$release$shared_ext$major'
11849     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11850     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11851     ;;
11852   *)
11853     shrext_cmds='.sl'
11854     dynamic_linker="$host_os dld.sl"
11855     shlibpath_var=SHLIB_PATH
11856     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11857     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858     soname_spec='$libname$release$shared_ext$major'
11859     ;;
11860   esac
11861   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11862   postinstall_cmds='chmod 555 $lib'
11863   # or fails outright, so override atomically:
11864   install_override_mode=555
11865   ;;
11866
11867 interix[3-9]*)
11868   version_type=linux # correct to gnu/linux during the next big refactor
11869   need_lib_prefix=no
11870   need_version=no
11871   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872   soname_spec='$libname$release$shared_ext$major'
11873   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11874   shlibpath_var=LD_LIBRARY_PATH
11875   shlibpath_overrides_runpath=no
11876   hardcode_into_libs=yes
11877   ;;
11878
11879 irix5* | irix6* | nonstopux*)
11880   case $host_os in
11881     nonstopux*) version_type=nonstopux ;;
11882     *)
11883         if test yes = "$lt_cv_prog_gnu_ld"; then
11884                 version_type=linux # correct to gnu/linux during the next big refactor
11885         else
11886                 version_type=irix
11887         fi ;;
11888   esac
11889   need_lib_prefix=no
11890   need_version=no
11891   soname_spec='$libname$release$shared_ext$major'
11892   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11893   case $host_os in
11894   irix5* | nonstopux*)
11895     libsuff= shlibsuff=
11896     ;;
11897   *)
11898     case $LD in # libtool.m4 will add one of these switches to LD
11899     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11900       libsuff= shlibsuff= libmagic=32-bit;;
11901     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11902       libsuff=32 shlibsuff=N32 libmagic=N32;;
11903     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11904       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11905     *) libsuff= shlibsuff= libmagic=never-match;;
11906     esac
11907     ;;
11908   esac
11909   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11910   shlibpath_overrides_runpath=no
11911   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11912   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11913   hardcode_into_libs=yes
11914   ;;
11915
11916 # No shared lib support for Linux oldld, aout, or coff.
11917 linux*oldld* | linux*aout* | linux*coff*)
11918   dynamic_linker=no
11919   ;;
11920
11921 linux*android*)
11922   version_type=none # Android doesn't support versioned libraries.
11923   need_lib_prefix=no
11924   need_version=no
11925   library_names_spec='$libname$release$shared_ext'
11926   soname_spec='$libname$release$shared_ext'
11927   finish_cmds=
11928   shlibpath_var=LD_LIBRARY_PATH
11929   shlibpath_overrides_runpath=yes
11930
11931   # This implies no fast_install, which is unacceptable.
11932   # Some rework will be needed to allow for fast_install
11933   # before this can be enabled.
11934   hardcode_into_libs=yes
11935
11936   dynamic_linker='Android linker'
11937   # Don't embed -rpath directories since the linker doesn't support them.
11938   hardcode_libdir_flag_spec='-L$libdir'
11939   ;;
11940
11941 # This must be glibc/ELF.
11942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11943   version_type=linux # correct to gnu/linux during the next big refactor
11944   need_lib_prefix=no
11945   need_version=no
11946   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11947   soname_spec='$libname$release$shared_ext$major'
11948   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11949   shlibpath_var=LD_LIBRARY_PATH
11950   shlibpath_overrides_runpath=no
11951
11952   # Some binutils ld are patched to set DT_RUNPATH
11953   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11954   $as_echo_n "(cached) " >&6
11955 else
11956   lt_cv_shlibpath_overrides_runpath=no
11957     save_LDFLAGS=$LDFLAGS
11958     save_libdir=$libdir
11959     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11960          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11961     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h.  */
11963
11964 int
11965 main ()
11966 {
11967
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"; then :
11973   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11974   lt_cv_shlibpath_overrides_runpath=yes
11975 fi
11976 fi
11977 rm -f core conftest.err conftest.$ac_objext \
11978     conftest$ac_exeext conftest.$ac_ext
11979     LDFLAGS=$save_LDFLAGS
11980     libdir=$save_libdir
11981
11982 fi
11983
11984   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11985
11986   # This implies no fast_install, which is unacceptable.
11987   # Some rework will be needed to allow for fast_install
11988   # before this can be enabled.
11989   hardcode_into_libs=yes
11990
11991   # Ideally, we could use ldconfig to report *all* directores which are
11992   # searched for libraries, however this is still not possible.  Aside from not
11993   # being certain /sbin/ldconfig is available, command
11994   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11995   # even though it is searched at run-time.  Try to do the best guess by
11996   # appending ld.so.conf contents (and includes) to the search path.
11997   if test -f /etc/ld.so.conf; then
11998     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' ' '`
11999     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12000   fi
12001
12002   # We used to test for /lib/ld.so.1 and disable shared libraries on
12003   # powerpc, because MkLinux only supported shared libraries with the
12004   # GNU dynamic linker.  Since this was broken with cross compilers,
12005   # most powerpc-linux boxes support dynamic linking these days and
12006   # people can always --disable-shared, the test was removed, and we
12007   # assume the GNU/Linux dynamic linker is in use.
12008   dynamic_linker='GNU/Linux ld.so'
12009   ;;
12010
12011 netbsd*)
12012   version_type=sunos
12013   need_lib_prefix=no
12014   need_version=no
12015   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12016     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12017     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12018     dynamic_linker='NetBSD (a.out) ld.so'
12019   else
12020     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021     soname_spec='$libname$release$shared_ext$major'
12022     dynamic_linker='NetBSD ld.elf_so'
12023   fi
12024   shlibpath_var=LD_LIBRARY_PATH
12025   shlibpath_overrides_runpath=yes
12026   hardcode_into_libs=yes
12027   ;;
12028
12029 newsos6)
12030   version_type=linux # correct to gnu/linux during the next big refactor
12031   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032   shlibpath_var=LD_LIBRARY_PATH
12033   shlibpath_overrides_runpath=yes
12034   ;;
12035
12036 *nto* | *qnx*)
12037   version_type=qnx
12038   need_lib_prefix=no
12039   need_version=no
12040   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041   soname_spec='$libname$release$shared_ext$major'
12042   shlibpath_var=LD_LIBRARY_PATH
12043   shlibpath_overrides_runpath=no
12044   hardcode_into_libs=yes
12045   dynamic_linker='ldqnx.so'
12046   ;;
12047
12048 openbsd* | bitrig*)
12049   version_type=sunos
12050   sys_lib_dlsearch_path_spec=/usr/lib
12051   need_lib_prefix=no
12052   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12053     need_version=no
12054   else
12055     need_version=yes
12056   fi
12057   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12058   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12059   shlibpath_var=LD_LIBRARY_PATH
12060   shlibpath_overrides_runpath=yes
12061   ;;
12062
12063 os2*)
12064   libname_spec='$name'
12065   version_type=windows
12066   shrext_cmds=.dll
12067   need_version=no
12068   need_lib_prefix=no
12069   # OS/2 can only load a DLL with a base name of 8 characters or less.
12070   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12071     v=$($ECHO $release$versuffix | tr -d .-);
12072     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12073     $ECHO $n$v`$shared_ext'
12074   library_names_spec='${libname}_dll.$libext'
12075   dynamic_linker='OS/2 ld.exe'
12076   shlibpath_var=BEGINLIBPATH
12077   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12078   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12079   postinstall_cmds='base_file=`basename \$file`~
12080     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12081     dldir=$destdir/`dirname \$dlpath`~
12082     test -d \$dldir || mkdir -p \$dldir~
12083     $install_prog $dir/$dlname \$dldir/$dlname~
12084     chmod a+x \$dldir/$dlname~
12085     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12086       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12087     fi'
12088   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12089     dlpath=$dir/\$dldll~
12090     $RM \$dlpath'
12091   ;;
12092
12093 osf3* | osf4* | osf5*)
12094   version_type=osf
12095   need_lib_prefix=no
12096   need_version=no
12097   soname_spec='$libname$release$shared_ext$major'
12098   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12099   shlibpath_var=LD_LIBRARY_PATH
12100   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12101   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12102   ;;
12103
12104 rdos*)
12105   dynamic_linker=no
12106   ;;
12107
12108 solaris*)
12109   version_type=linux # correct to gnu/linux during the next big refactor
12110   need_lib_prefix=no
12111   need_version=no
12112   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12113   soname_spec='$libname$release$shared_ext$major'
12114   shlibpath_var=LD_LIBRARY_PATH
12115   shlibpath_overrides_runpath=yes
12116   hardcode_into_libs=yes
12117   # ldd complains unless libraries are executable
12118   postinstall_cmds='chmod +x $lib'
12119   ;;
12120
12121 sunos4*)
12122   version_type=sunos
12123   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12124   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12125   shlibpath_var=LD_LIBRARY_PATH
12126   shlibpath_overrides_runpath=yes
12127   if test yes = "$with_gnu_ld"; then
12128     need_lib_prefix=no
12129   fi
12130   need_version=yes
12131   ;;
12132
12133 sysv4 | sysv4.3*)
12134   version_type=linux # correct to gnu/linux during the next big refactor
12135   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136   soname_spec='$libname$release$shared_ext$major'
12137   shlibpath_var=LD_LIBRARY_PATH
12138   case $host_vendor in
12139     sni)
12140       shlibpath_overrides_runpath=no
12141       need_lib_prefix=no
12142       runpath_var=LD_RUN_PATH
12143       ;;
12144     siemens)
12145       need_lib_prefix=no
12146       ;;
12147     motorola)
12148       need_lib_prefix=no
12149       need_version=no
12150       shlibpath_overrides_runpath=no
12151       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12152       ;;
12153   esac
12154   ;;
12155
12156 sysv4*MP*)
12157   if test -d /usr/nec; then
12158     version_type=linux # correct to gnu/linux during the next big refactor
12159     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12160     soname_spec='$libname$shared_ext.$major'
12161     shlibpath_var=LD_LIBRARY_PATH
12162   fi
12163   ;;
12164
12165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12166   version_type=sco
12167   need_lib_prefix=no
12168   need_version=no
12169   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12170   soname_spec='$libname$release$shared_ext$major'
12171   shlibpath_var=LD_LIBRARY_PATH
12172   shlibpath_overrides_runpath=yes
12173   hardcode_into_libs=yes
12174   if test yes = "$with_gnu_ld"; then
12175     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12176   else
12177     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12178     case $host_os in
12179       sco3.2v5*)
12180         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12181         ;;
12182     esac
12183   fi
12184   sys_lib_dlsearch_path_spec='/usr/lib'
12185   ;;
12186
12187 tpf*)
12188   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12189   version_type=linux # correct to gnu/linux during the next big refactor
12190   need_lib_prefix=no
12191   need_version=no
12192   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12193   shlibpath_var=LD_LIBRARY_PATH
12194   shlibpath_overrides_runpath=no
12195   hardcode_into_libs=yes
12196   ;;
12197
12198 uts4*)
12199   version_type=linux # correct to gnu/linux during the next big refactor
12200   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12201   soname_spec='$libname$release$shared_ext$major'
12202   shlibpath_var=LD_LIBRARY_PATH
12203   ;;
12204
12205 *)
12206   dynamic_linker=no
12207   ;;
12208 esac
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12210 $as_echo "$dynamic_linker" >&6; }
12211 test no = "$dynamic_linker" && can_build_shared=no
12212
12213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12214 if test yes = "$GCC"; then
12215   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12216 fi
12217
12218 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12219   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12220 fi
12221
12222 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12223   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12224 fi
12225
12226 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12227 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12228
12229 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12230 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12231
12232 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12233 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12332 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12333 hardcode_action=
12334 if test -n "$hardcode_libdir_flag_spec" ||
12335    test -n "$runpath_var" ||
12336    test yes = "$hardcode_automatic"; then
12337
12338   # We can hardcode non-existent directories.
12339   if test no != "$hardcode_direct" &&
12340      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12341      # have to relink, otherwise we might link with an installed library
12342      # when we should be linking with a yet-to-be-installed one
12343      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12344      test no != "$hardcode_minus_L"; then
12345     # Linking always hardcodes the temporary library directory.
12346     hardcode_action=relink
12347   else
12348     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12349     hardcode_action=immediate
12350   fi
12351 else
12352   # We cannot hardcode anything, or else we can only hardcode existing
12353   # directories.
12354   hardcode_action=unsupported
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12357 $as_echo "$hardcode_action" >&6; }
12358
12359 if test relink = "$hardcode_action" ||
12360    test yes = "$inherit_rpath"; then
12361   # Fast installation is not supported
12362   enable_fast_install=no
12363 elif test yes = "$shlibpath_overrides_runpath" ||
12364      test no = "$enable_shared"; then
12365   # Fast installation is not necessary
12366   enable_fast_install=needless
12367 fi
12368
12369
12370
12371
12372
12373
12374   if test yes != "$enable_dlopen"; then
12375   enable_dlopen=unknown
12376   enable_dlopen_self=unknown
12377   enable_dlopen_self_static=unknown
12378 else
12379   lt_cv_dlopen=no
12380   lt_cv_dlopen_libs=
12381
12382   case $host_os in
12383   beos*)
12384     lt_cv_dlopen=load_add_on
12385     lt_cv_dlopen_libs=
12386     lt_cv_dlopen_self=yes
12387     ;;
12388
12389   mingw* | pw32* | cegcc*)
12390     lt_cv_dlopen=LoadLibrary
12391     lt_cv_dlopen_libs=
12392     ;;
12393
12394   cygwin*)
12395     lt_cv_dlopen=dlopen
12396     lt_cv_dlopen_libs=
12397     ;;
12398
12399   darwin*)
12400     # if libdl is installed we need to link against it
12401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12402 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12403 if ${ac_cv_lib_dl_dlopen+:} false; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-ldl  $LIBS"
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h.  */
12410
12411 /* Override any GCC internal prototype to avoid an error.
12412    Use char because int might match the return type of a GCC
12413    builtin and then its argument prototype would still apply.  */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 char dlopen ();
12418 int
12419 main ()
12420 {
12421 return dlopen ();
12422   ;
12423   return 0;
12424 }
12425 _ACEOF
12426 if ac_fn_c_try_link "$LINENO"; then :
12427   ac_cv_lib_dl_dlopen=yes
12428 else
12429   ac_cv_lib_dl_dlopen=no
12430 fi
12431 rm -f core conftest.err conftest.$ac_objext \
12432     conftest$ac_exeext conftest.$ac_ext
12433 LIBS=$ac_check_lib_save_LIBS
12434 fi
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12436 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12437 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12438   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12439 else
12440
12441     lt_cv_dlopen=dyld
12442     lt_cv_dlopen_libs=
12443     lt_cv_dlopen_self=yes
12444
12445 fi
12446
12447     ;;
12448
12449   tpf*)
12450     # Don't try to run any link tests for TPF.  We know it's impossible
12451     # because TPF is a cross-compiler, and we know how we open DSOs.
12452     lt_cv_dlopen=dlopen
12453     lt_cv_dlopen_libs=
12454     lt_cv_dlopen_self=no
12455     ;;
12456
12457   *)
12458     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12459 if test "x$ac_cv_func_shl_load" = xyes; then :
12460   lt_cv_dlopen=shl_load
12461 else
12462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12463 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12464 if ${ac_cv_lib_dld_shl_load+:} false; then :
12465   $as_echo_n "(cached) " >&6
12466 else
12467   ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-ldld  $LIBS"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h.  */
12471
12472 /* Override any GCC internal prototype to avoid an error.
12473    Use char because int might match the return type of a GCC
12474    builtin and then its argument prototype would still apply.  */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char shl_load ();
12479 int
12480 main ()
12481 {
12482 return shl_load ();
12483   ;
12484   return 0;
12485 }
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488   ac_cv_lib_dld_shl_load=yes
12489 else
12490   ac_cv_lib_dld_shl_load=no
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext \
12493     conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12495 fi
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12497 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12498 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12499   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12500 else
12501   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12502 if test "x$ac_cv_func_dlopen" = xyes; then :
12503   lt_cv_dlopen=dlopen
12504 else
12505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12506 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12507 if ${ac_cv_lib_dl_dlopen+:} false; then :
12508   $as_echo_n "(cached) " >&6
12509 else
12510   ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-ldl  $LIBS"
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h.  */
12514
12515 /* Override any GCC internal prototype to avoid an error.
12516    Use char because int might match the return type of a GCC
12517    builtin and then its argument prototype would still apply.  */
12518 #ifdef __cplusplus
12519 extern "C"
12520 #endif
12521 char dlopen ();
12522 int
12523 main ()
12524 {
12525 return dlopen ();
12526   ;
12527   return 0;
12528 }
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531   ac_cv_lib_dl_dlopen=yes
12532 else
12533   ac_cv_lib_dl_dlopen=no
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext \
12536     conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12538 fi
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12540 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12541 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12542   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12543 else
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12545 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12546 if ${ac_cv_lib_svld_dlopen+:} false; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549   ac_check_lib_save_LIBS=$LIBS
12550 LIBS="-lsvld  $LIBS"
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h.  */
12553
12554 /* Override any GCC internal prototype to avoid an error.
12555    Use char because int might match the return type of a GCC
12556    builtin and then its argument prototype would still apply.  */
12557 #ifdef __cplusplus
12558 extern "C"
12559 #endif
12560 char dlopen ();
12561 int
12562 main ()
12563 {
12564 return dlopen ();
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"; then :
12570   ac_cv_lib_svld_dlopen=yes
12571 else
12572   ac_cv_lib_svld_dlopen=no
12573 fi
12574 rm -f core conftest.err conftest.$ac_objext \
12575     conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12579 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12580 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12581   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12582 else
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12584 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12585 if ${ac_cv_lib_dld_dld_link+:} false; then :
12586   $as_echo_n "(cached) " >&6
12587 else
12588   ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-ldld  $LIBS"
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h.  */
12592
12593 /* Override any GCC internal prototype to avoid an error.
12594    Use char because int might match the return type of a GCC
12595    builtin and then its argument prototype would still apply.  */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char dld_link ();
12600 int
12601 main ()
12602 {
12603 return dld_link ();
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12609   ac_cv_lib_dld_dld_link=yes
12610 else
12611   ac_cv_lib_dld_dld_link=no
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext \
12614     conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12618 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12619 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12620   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12621 fi
12622
12623
12624 fi
12625
12626
12627 fi
12628
12629
12630 fi
12631
12632
12633 fi
12634
12635
12636 fi
12637
12638     ;;
12639   esac
12640
12641   if test no = "$lt_cv_dlopen"; then
12642     enable_dlopen=no
12643   else
12644     enable_dlopen=yes
12645   fi
12646
12647   case $lt_cv_dlopen in
12648   dlopen)
12649     save_CPPFLAGS=$CPPFLAGS
12650     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12651
12652     save_LDFLAGS=$LDFLAGS
12653     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12654
12655     save_LIBS=$LIBS
12656     LIBS="$lt_cv_dlopen_libs $LIBS"
12657
12658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12659 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12660 if ${lt_cv_dlopen_self+:} false; then :
12661   $as_echo_n "(cached) " >&6
12662 else
12663           if test yes = "$cross_compiling"; then :
12664   lt_cv_dlopen_self=cross
12665 else
12666   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12667   lt_status=$lt_dlunknown
12668   cat > conftest.$ac_ext <<_LT_EOF
12669 #line $LINENO "configure"
12670 #include "confdefs.h"
12671
12672 #if HAVE_DLFCN_H
12673 #include <dlfcn.h>
12674 #endif
12675
12676 #include <stdio.h>
12677
12678 #ifdef RTLD_GLOBAL
12679 #  define LT_DLGLOBAL           RTLD_GLOBAL
12680 #else
12681 #  ifdef DL_GLOBAL
12682 #    define LT_DLGLOBAL         DL_GLOBAL
12683 #  else
12684 #    define LT_DLGLOBAL         0
12685 #  endif
12686 #endif
12687
12688 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12689    find out it does not work in some platform. */
12690 #ifndef LT_DLLAZY_OR_NOW
12691 #  ifdef RTLD_LAZY
12692 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12693 #  else
12694 #    ifdef DL_LAZY
12695 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12696 #    else
12697 #      ifdef RTLD_NOW
12698 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12699 #      else
12700 #        ifdef DL_NOW
12701 #          define LT_DLLAZY_OR_NOW      DL_NOW
12702 #        else
12703 #          define LT_DLLAZY_OR_NOW      0
12704 #        endif
12705 #      endif
12706 #    endif
12707 #  endif
12708 #endif
12709
12710 /* When -fvisibility=hidden is used, assume the code has been annotated
12711    correspondingly for the symbols needed.  */
12712 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12713 int fnord () __attribute__((visibility("default")));
12714 #endif
12715
12716 int fnord () { return 42; }
12717 int main ()
12718 {
12719   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12720   int status = $lt_dlunknown;
12721
12722   if (self)
12723     {
12724       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12725       else
12726         {
12727           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12728           else puts (dlerror ());
12729         }
12730       /* dlclose (self); */
12731     }
12732   else
12733     puts (dlerror ());
12734
12735   return status;
12736 }
12737 _LT_EOF
12738   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12739   (eval $ac_link) 2>&5
12740   ac_status=$?
12741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12743     (./conftest; exit; ) >&5 2>/dev/null
12744     lt_status=$?
12745     case x$lt_status in
12746       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12747       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12748       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12749     esac
12750   else :
12751     # compilation failed
12752     lt_cv_dlopen_self=no
12753   fi
12754 fi
12755 rm -fr conftest*
12756
12757
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12760 $as_echo "$lt_cv_dlopen_self" >&6; }
12761
12762     if test yes = "$lt_cv_dlopen_self"; then
12763       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12764       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12765 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12766 if ${lt_cv_dlopen_self_static+:} false; then :
12767   $as_echo_n "(cached) " >&6
12768 else
12769           if test yes = "$cross_compiling"; then :
12770   lt_cv_dlopen_self_static=cross
12771 else
12772   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12773   lt_status=$lt_dlunknown
12774   cat > conftest.$ac_ext <<_LT_EOF
12775 #line $LINENO "configure"
12776 #include "confdefs.h"
12777
12778 #if HAVE_DLFCN_H
12779 #include <dlfcn.h>
12780 #endif
12781
12782 #include <stdio.h>
12783
12784 #ifdef RTLD_GLOBAL
12785 #  define LT_DLGLOBAL           RTLD_GLOBAL
12786 #else
12787 #  ifdef DL_GLOBAL
12788 #    define LT_DLGLOBAL         DL_GLOBAL
12789 #  else
12790 #    define LT_DLGLOBAL         0
12791 #  endif
12792 #endif
12793
12794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12795    find out it does not work in some platform. */
12796 #ifndef LT_DLLAZY_OR_NOW
12797 #  ifdef RTLD_LAZY
12798 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12799 #  else
12800 #    ifdef DL_LAZY
12801 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12802 #    else
12803 #      ifdef RTLD_NOW
12804 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12805 #      else
12806 #        ifdef DL_NOW
12807 #          define LT_DLLAZY_OR_NOW      DL_NOW
12808 #        else
12809 #          define LT_DLLAZY_OR_NOW      0
12810 #        endif
12811 #      endif
12812 #    endif
12813 #  endif
12814 #endif
12815
12816 /* When -fvisibility=hidden is used, assume the code has been annotated
12817    correspondingly for the symbols needed.  */
12818 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12819 int fnord () __attribute__((visibility("default")));
12820 #endif
12821
12822 int fnord () { return 42; }
12823 int main ()
12824 {
12825   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12826   int status = $lt_dlunknown;
12827
12828   if (self)
12829     {
12830       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12831       else
12832         {
12833           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12834           else puts (dlerror ());
12835         }
12836       /* dlclose (self); */
12837     }
12838   else
12839     puts (dlerror ());
12840
12841   return status;
12842 }
12843 _LT_EOF
12844   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12845   (eval $ac_link) 2>&5
12846   ac_status=$?
12847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12848   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12849     (./conftest; exit; ) >&5 2>/dev/null
12850     lt_status=$?
12851     case x$lt_status in
12852       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12853       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12854       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12855     esac
12856   else :
12857     # compilation failed
12858     lt_cv_dlopen_self_static=no
12859   fi
12860 fi
12861 rm -fr conftest*
12862
12863
12864 fi
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12866 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12867     fi
12868
12869     CPPFLAGS=$save_CPPFLAGS
12870     LDFLAGS=$save_LDFLAGS
12871     LIBS=$save_LIBS
12872     ;;
12873   esac
12874
12875   case $lt_cv_dlopen_self in
12876   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12877   *) enable_dlopen_self=unknown ;;
12878   esac
12879
12880   case $lt_cv_dlopen_self_static in
12881   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12882   *) enable_dlopen_self_static=unknown ;;
12883   esac
12884 fi
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902 striplib=
12903 old_striplib=
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12905 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12906 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12907   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12908   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 $as_echo "yes" >&6; }
12911 else
12912 # FIXME - insert some real tests, host_os isn't really good enough
12913   case $host_os in
12914   darwin*)
12915     if test -n "$STRIP"; then
12916       striplib="$STRIP -x"
12917       old_striplib="$STRIP -S"
12918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12919 $as_echo "yes" >&6; }
12920     else
12921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12923     fi
12924     ;;
12925   *)
12926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12928     ;;
12929   esac
12930 fi
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943   # Report what library types will actually be built
12944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12947 $as_echo "$can_build_shared" >&6; }
12948
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12950 $as_echo_n "checking whether to build shared libraries... " >&6; }
12951   test no = "$can_build_shared" && enable_shared=no
12952
12953   # On AIX, shared libraries and static libraries use the same namespace, and
12954   # are all built from PIC.
12955   case $host_os in
12956   aix3*)
12957     test yes = "$enable_shared" && enable_static=no
12958     if test -n "$RANLIB"; then
12959       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12960       postinstall_cmds='$RANLIB $lib'
12961     fi
12962     ;;
12963
12964   aix[4-9]*)
12965     if test ia64 != "$host_cpu"; then
12966       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12967       yes,aix,yes) ;;                   # shared object as lib.so file only
12968       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12969       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12970       esac
12971     fi
12972     ;;
12973   esac
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12975 $as_echo "$enable_shared" >&6; }
12976
12977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12978 $as_echo_n "checking whether to build static libraries... " >&6; }
12979   # Make sure either enable_shared or enable_static is yes.
12980   test yes = "$enable_shared" || enable_static=yes
12981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12982 $as_echo "$enable_static" >&6; }
12983
12984
12985
12986
12987 fi
12988 ac_ext=c
12989 ac_cpp='$CPP $CPPFLAGS'
12990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12993
12994 CC=$lt_save_CC
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010         ac_config_commands="$ac_config_commands libtool"
13011
13012
13013
13014
13015 # Only expand once:
13016
13017
13018
13019
13020   CFLAG_VISIBILITY=
13021   HAVE_VISIBILITY=0
13022   if test -n "$GCC"; then
13023                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13024 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
13025 if ${gl_cv_cc_vis_werror+:} false; then :
13026   $as_echo_n "(cached) " >&6
13027 else
13028   gl_save_CFLAGS="$CFLAGS"
13029        CFLAGS="$CFLAGS -Werror"
13030        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h.  */
13032
13033 int
13034 main ()
13035 {
13036
13037   ;
13038   return 0;
13039 }
13040 _ACEOF
13041 if ac_fn_c_try_compile "$LINENO"; then :
13042   gl_cv_cc_vis_werror=yes
13043 else
13044   gl_cv_cc_vis_werror=no
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13047        CFLAGS="$gl_save_CFLAGS"
13048
13049 fi
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
13051 $as_echo "$gl_cv_cc_vis_werror" >&6; }
13052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13053 $as_echo_n "checking for simple visibility declarations... " >&6; }
13054 if ${gl_cv_cc_visibility+:} false; then :
13055   $as_echo_n "(cached) " >&6
13056 else
13057   gl_save_CFLAGS="$CFLAGS"
13058        CFLAGS="$CFLAGS -fvisibility=hidden"
13059                                           if test $gl_cv_cc_vis_werror = yes; then
13060          CFLAGS="$CFLAGS -Werror"
13061        fi
13062        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h.  */
13064 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13065               extern __attribute__((__visibility__("default"))) int exportedvar;
13066               extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13067               extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13068               void dummyfunc (void) {}
13069
13070 int
13071 main ()
13072 {
13073
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079   gl_cv_cc_visibility=yes
13080 else
13081   gl_cv_cc_visibility=no
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084        CFLAGS="$gl_save_CFLAGS"
13085
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
13088 $as_echo "$gl_cv_cc_visibility" >&6; }
13089     if test $gl_cv_cc_visibility = yes; then
13090       CFLAG_VISIBILITY="-fvisibility=hidden"
13091       HAVE_VISIBILITY=1
13092     fi
13093   fi
13094
13095
13096
13097 cat >>confdefs.h <<_ACEOF
13098 #define HAVE_VISIBILITY $HAVE_VISIBILITY
13099 _ACEOF
13100
13101
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13103 $as_echo_n "checking for ANSI C header files... " >&6; }
13104 if ${ac_cv_header_stdc+:} false; then :
13105   $as_echo_n "(cached) " >&6
13106 else
13107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h.  */
13109 #include <stdlib.h>
13110 #include <stdarg.h>
13111 #include <string.h>
13112 #include <float.h>
13113
13114 int
13115 main ()
13116 {
13117
13118   ;
13119   return 0;
13120 }
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123   ac_cv_header_stdc=yes
13124 else
13125   ac_cv_header_stdc=no
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128
13129 if test $ac_cv_header_stdc = yes; then
13130   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h.  */
13133 #include <string.h>
13134
13135 _ACEOF
13136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13137   $EGREP "memchr" >/dev/null 2>&1; then :
13138
13139 else
13140   ac_cv_header_stdc=no
13141 fi
13142 rm -f conftest*
13143
13144 fi
13145
13146 if test $ac_cv_header_stdc = yes; then
13147   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h.  */
13150 #include <stdlib.h>
13151
13152 _ACEOF
13153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13154   $EGREP "free" >/dev/null 2>&1; then :
13155
13156 else
13157   ac_cv_header_stdc=no
13158 fi
13159 rm -f conftest*
13160
13161 fi
13162
13163 if test $ac_cv_header_stdc = yes; then
13164   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13165   if test "$cross_compiling" = yes; then :
13166   :
13167 else
13168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h.  */
13170 #include <ctype.h>
13171 #include <stdlib.h>
13172 #if ((' ' & 0x0FF) == 0x020)
13173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13175 #else
13176 # define ISLOWER(c) \
13177                    (('a' <= (c) && (c) <= 'i') \
13178                      || ('j' <= (c) && (c) <= 'r') \
13179                      || ('s' <= (c) && (c) <= 'z'))
13180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13181 #endif
13182
13183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13184 int
13185 main ()
13186 {
13187   int i;
13188   for (i = 0; i < 256; i++)
13189     if (XOR (islower (i), ISLOWER (i))
13190         || toupper (i) != TOUPPER (i))
13191       return 2;
13192   return 0;
13193 }
13194 _ACEOF
13195 if ac_fn_c_try_run "$LINENO"; then :
13196
13197 else
13198   ac_cv_header_stdc=no
13199 fi
13200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13201   conftest.$ac_objext conftest.beam conftest.$ac_ext
13202 fi
13203
13204 fi
13205 fi
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13207 $as_echo "$ac_cv_header_stdc" >&6; }
13208 if test $ac_cv_header_stdc = yes; then
13209
13210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13211
13212 fi
13213
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
13215 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
13216 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
13217   $as_echo_n "(cached) " >&6
13218 else
13219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h.  */
13221 #include <sys/types.h>
13222 int
13223 main ()
13224 {
13225 return makedev(0, 0);
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_link "$LINENO"; then :
13231   ac_cv_header_sys_types_h_makedev=yes
13232 else
13233   ac_cv_header_sys_types_h_makedev=no
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext \
13236     conftest$ac_exeext conftest.$ac_ext
13237
13238 fi
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
13240 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
13241
13242 if test $ac_cv_header_sys_types_h_makedev = no; then
13243 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13244 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
13245
13246 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
13247
13248 fi
13249
13250
13251
13252   if test $ac_cv_header_sys_mkdev_h = no; then
13253     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13254 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
13255
13256 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13257
13258 fi
13259
13260
13261   fi
13262 fi
13263
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13265 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13266 if ${ac_cv_header_sys_wait_h+:} false; then :
13267   $as_echo_n "(cached) " >&6
13268 else
13269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h.  */
13271 #include <sys/types.h>
13272 #include <sys/wait.h>
13273 #ifndef WEXITSTATUS
13274 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13275 #endif
13276 #ifndef WIFEXITED
13277 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13278 #endif
13279
13280 int
13281 main ()
13282 {
13283   int s;
13284   wait (&s);
13285   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13286   ;
13287   return 0;
13288 }
13289 _ACEOF
13290 if ac_fn_c_try_compile "$LINENO"; then :
13291   ac_cv_header_sys_wait_h=yes
13292 else
13293   ac_cv_header_sys_wait_h=no
13294 fi
13295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13298 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13299 if test $ac_cv_header_sys_wait_h = yes; then
13300
13301 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13302
13303 fi
13304
13305 for ac_header in stdint.h fcntl.h inttypes.h unistd.h
13306 do :
13307   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13308 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13309 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13310   cat >>confdefs.h <<_ACEOF
13311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13312 _ACEOF
13313
13314 fi
13315
13316 done
13317
13318 for ac_header in utime.h wchar.h wctype.h
13319 do :
13320   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13321 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13323   cat >>confdefs.h <<_ACEOF
13324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13325 _ACEOF
13326
13327 fi
13328
13329 done
13330
13331 for ac_header in getopt.h err.h xlocale.h
13332 do :
13333   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13334 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13335 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13336   cat >>confdefs.h <<_ACEOF
13337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13338 _ACEOF
13339
13340 fi
13341
13342 done
13343
13344 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
13345 do :
13346   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13347 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13348 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13349   cat >>confdefs.h <<_ACEOF
13350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13351 _ACEOF
13352
13353 fi
13354
13355 done
13356
13357 if test "$enable_zlib" != "no"; then
13358   for ac_header in zlib.h
13359 do :
13360   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13361 if test "x$ac_cv_header_zlib_h" = xyes; then :
13362   cat >>confdefs.h <<_ACEOF
13363 #define HAVE_ZLIB_H 1
13364 _ACEOF
13365
13366 fi
13367
13368 done
13369
13370 fi
13371 if test "$enable_bzlib" != "no"; then
13372   for ac_header in bzlib.h
13373 do :
13374   ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13375 if test "x$ac_cv_header_bzlib_h" = xyes; then :
13376   cat >>confdefs.h <<_ACEOF
13377 #define HAVE_BZLIB_H 1
13378 _ACEOF
13379
13380 fi
13381
13382 done
13383
13384 fi
13385 if test "$enable_xzlib" != "no"; then
13386   for ac_header in lzma.h
13387 do :
13388   ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13389 if test "x$ac_cv_header_lzma_h" = xyes; then :
13390   cat >>confdefs.h <<_ACEOF
13391 #define HAVE_LZMA_H 1
13392 _ACEOF
13393
13394 fi
13395
13396 done
13397
13398 fi
13399 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
13400 "
13401 if test "x$ac_cv_type_sig_t" = xyes; then :
13402
13403 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
13404
13405 fi
13406
13407
13408 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13409 if test "x$ac_cv_type_off_t" = xyes; then :
13410
13411 else
13412
13413 cat >>confdefs.h <<_ACEOF
13414 #define off_t long int
13415 _ACEOF
13416
13417 fi
13418
13419 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13420 if test "x$ac_cv_type_size_t" = xyes; then :
13421
13422 else
13423
13424 cat >>confdefs.h <<_ACEOF
13425 #define size_t unsigned int
13426 _ACEOF
13427
13428 fi
13429
13430 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13431 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
13432
13433 cat >>confdefs.h <<_ACEOF
13434 #define HAVE_STRUCT_STAT_ST_RDEV 1
13435 _ACEOF
13436
13437
13438 fi
13439
13440
13441 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13442 "
13443 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
13444
13445 cat >>confdefs.h <<_ACEOF
13446 #define HAVE_STRUCT_TM_TM_GMTOFF 1
13447 _ACEOF
13448
13449
13450 fi
13451
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13453 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13454 if ${ac_cv_struct_tm+:} false; then :
13455   $as_echo_n "(cached) " >&6
13456 else
13457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h.  */
13459 #include <sys/types.h>
13460 #include <time.h>
13461
13462 int
13463 main ()
13464 {
13465 struct tm tm;
13466                                      int *p = &tm.tm_sec;
13467                                      return !p;
13468   ;
13469   return 0;
13470 }
13471 _ACEOF
13472 if ac_fn_c_try_compile "$LINENO"; then :
13473   ac_cv_struct_tm=time.h
13474 else
13475   ac_cv_struct_tm=sys/time.h
13476 fi
13477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478 fi
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13480 $as_echo "$ac_cv_struct_tm" >&6; }
13481 if test $ac_cv_struct_tm = sys/time.h; then
13482
13483 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13484
13485 fi
13486
13487 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13488 #include <$ac_cv_struct_tm>
13489
13490 "
13491 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13492
13493 cat >>confdefs.h <<_ACEOF
13494 #define HAVE_STRUCT_TM_TM_ZONE 1
13495 _ACEOF
13496
13497
13498 fi
13499
13500 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13501
13502 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13503
13504 else
13505   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13506 "
13507 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13508   ac_have_decl=1
13509 else
13510   ac_have_decl=0
13511 fi
13512
13513 cat >>confdefs.h <<_ACEOF
13514 #define HAVE_DECL_TZNAME $ac_have_decl
13515 _ACEOF
13516
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13518 $as_echo_n "checking for tzname... " >&6; }
13519 if ${ac_cv_var_tzname+:} false; then :
13520   $as_echo_n "(cached) " >&6
13521 else
13522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h.  */
13524 #include <time.h>
13525 #if !HAVE_DECL_TZNAME
13526 extern char *tzname[];
13527 #endif
13528
13529 int
13530 main ()
13531 {
13532 return tzname[0][0];
13533   ;
13534   return 0;
13535 }
13536 _ACEOF
13537 if ac_fn_c_try_link "$LINENO"; then :
13538   ac_cv_var_tzname=yes
13539 else
13540   ac_cv_var_tzname=no
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext \
13543     conftest$ac_exeext conftest.$ac_ext
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13546 $as_echo "$ac_cv_var_tzname" >&6; }
13547   if test $ac_cv_var_tzname = yes; then
13548
13549 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13550
13551   fi
13552 fi
13553
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13555 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
13556 if ${ac_cv_struct_tm_zone+:} false; then :
13557   $as_echo_n "(cached) " >&6
13558 else
13559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h.  */
13561 #include <sys/types.h>
13562 #include <$ac_cv_struct_tm>
13563 int
13564 main ()
13565 {
13566 struct tm tm; tm.tm_zone;
13567   ;
13568   return 0;
13569 }
13570 _ACEOF
13571 if ac_fn_c_try_compile "$LINENO"; then :
13572   ac_cv_struct_tm_zone=yes
13573 else
13574   ac_cv_struct_tm_zone=no
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577 fi
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13579 $as_echo "$ac_cv_struct_tm_zone" >&6; }
13580 if test "$ac_cv_struct_tm_zone" = yes; then
13581
13582 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13583
13584 fi
13585
13586 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13587 # consider it declared and we won't give our own extern.
13588 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13589 "
13590 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13591   ac_have_decl=1
13592 else
13593   ac_have_decl=0
13594 fi
13595
13596 cat >>confdefs.h <<_ACEOF
13597 #define HAVE_DECL_TZNAME $ac_have_decl
13598 _ACEOF
13599
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13601 $as_echo_n "checking for tzname... " >&6; }
13602 if ${ac_cv_var_tzname+:} false; then :
13603   $as_echo_n "(cached) " >&6
13604 else
13605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h.  */
13607 #include <time.h>
13608 #if !HAVE_DECL_TZNAME
13609 extern char *tzname[];
13610 #endif
13611 int
13612 main ()
13613 {
13614 return tzname[0][0];
13615   ;
13616   return 0;
13617 }
13618 _ACEOF
13619 if ac_fn_c_try_link "$LINENO"; then :
13620   ac_cv_var_tzname=yes
13621 else
13622   ac_cv_var_tzname=no
13623 fi
13624 rm -f core conftest.err conftest.$ac_objext \
13625     conftest$ac_exeext conftest.$ac_ext
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13628 $as_echo "$ac_cv_var_tzname" >&6; }
13629   if test $ac_cv_var_tzname = yes; then
13630
13631 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13632
13633   fi
13634
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13636 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13637 if ${ac_cv_struct_tm_isdst+:} false; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h.  */
13642 #include <sys/types.h>
13643 #include <$ac_cv_struct_tm>
13644 int
13645 main ()
13646 {
13647 struct tm tm; tm.tm_isdst;
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653   ac_cv_struct_tm_isdst=yes
13654 else
13655   ac_cv_struct_tm_isdst=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 fi
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13660 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
13661 if test "$ac_cv_struct_tm_isdst" = yes; then
13662
13663 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13664
13665 fi
13666
13667
13668 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13669 "
13670 if test "x$ac_cv_have_decl_daylight" = xyes; then :
13671   ac_have_decl=1
13672 else
13673   ac_have_decl=0
13674 fi
13675
13676 cat >>confdefs.h <<_ACEOF
13677 #define HAVE_DECL_DAYLIGHT $ac_have_decl
13678 _ACEOF
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13681 $as_echo_n "checking for daylight... " >&6; }
13682 if ${ac_cv_var_daylight+:} false; then :
13683   $as_echo_n "(cached) " >&6
13684 else
13685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h.  */
13687 #include <time.h>
13688 #if !HAVE_DECL_DAYLIGHT
13689 extern int daylight;
13690 #endif
13691 int
13692 main ()
13693 {
13694 atoi(daylight);
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"; then :
13700   ac_cv_var_daylight=yes
13701 else
13702   ac_cv_var_daylight=no
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext \
13705     conftest$ac_exeext conftest.$ac_ext
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13708 $as_echo "$ac_cv_var_daylight" >&6; }
13709   if test $ac_cv_var_daylight = yes; then
13710
13711 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13712
13713   fi
13714
13715 # Check whether --enable-largefile was given.
13716 if test "${enable_largefile+set}" = set; then :
13717   enableval=$enable_largefile;
13718 fi
13719
13720 if test "$enable_largefile" != no; then
13721
13722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13723 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13724 if ${ac_cv_sys_largefile_CC+:} false; then :
13725   $as_echo_n "(cached) " >&6
13726 else
13727   ac_cv_sys_largefile_CC=no
13728      if test "$GCC" != yes; then
13729        ac_save_CC=$CC
13730        while :; do
13731          # IRIX 6.2 and later do not support large files by default,
13732          # so use the C compiler's -n32 option if that helps.
13733          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h.  */
13735 #include <sys/types.h>
13736  /* Check that off_t can represent 2**63 - 1 correctly.
13737     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13738     since some C++ compilers masquerading as C compilers
13739     incorrectly reject 9223372036854775807.  */
13740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13741   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13742                        && LARGE_OFF_T % 2147483647 == 1)
13743                       ? 1 : -1];
13744 int
13745 main ()
13746 {
13747
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752          if ac_fn_c_try_compile "$LINENO"; then :
13753   break
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext
13756          CC="$CC -n32"
13757          if ac_fn_c_try_compile "$LINENO"; then :
13758   ac_cv_sys_largefile_CC=' -n32'; break
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext
13761          break
13762        done
13763        CC=$ac_save_CC
13764        rm -f conftest.$ac_ext
13765     fi
13766 fi
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13768 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13769   if test "$ac_cv_sys_largefile_CC" != no; then
13770     CC=$CC$ac_cv_sys_largefile_CC
13771   fi
13772
13773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13774 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13775 if ${ac_cv_sys_file_offset_bits+:} false; then :
13776   $as_echo_n "(cached) " >&6
13777 else
13778   while :; do
13779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h.  */
13781 #include <sys/types.h>
13782  /* Check that off_t can represent 2**63 - 1 correctly.
13783     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13784     since some C++ compilers masquerading as C compilers
13785     incorrectly reject 9223372036854775807.  */
13786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13787   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13788                        && LARGE_OFF_T % 2147483647 == 1)
13789                       ? 1 : -1];
13790 int
13791 main ()
13792 {
13793
13794   ;
13795   return 0;
13796 }
13797 _ACEOF
13798 if ac_fn_c_try_compile "$LINENO"; then :
13799   ac_cv_sys_file_offset_bits=no; break
13800 fi
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h.  */
13804 #define _FILE_OFFSET_BITS 64
13805 #include <sys/types.h>
13806  /* Check that off_t can represent 2**63 - 1 correctly.
13807     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13808     since some C++ compilers masquerading as C compilers
13809     incorrectly reject 9223372036854775807.  */
13810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13811   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13812                        && LARGE_OFF_T % 2147483647 == 1)
13813                       ? 1 : -1];
13814 int
13815 main ()
13816 {
13817
13818   ;
13819   return 0;
13820 }
13821 _ACEOF
13822 if ac_fn_c_try_compile "$LINENO"; then :
13823   ac_cv_sys_file_offset_bits=64; break
13824 fi
13825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13826   ac_cv_sys_file_offset_bits=unknown
13827   break
13828 done
13829 fi
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13831 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13832 case $ac_cv_sys_file_offset_bits in #(
13833   no | unknown) ;;
13834   *)
13835 cat >>confdefs.h <<_ACEOF
13836 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13837 _ACEOF
13838 ;;
13839 esac
13840 rm -rf conftest*
13841   if test $ac_cv_sys_file_offset_bits = unknown; then
13842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13843 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13844 if ${ac_cv_sys_large_files+:} false; then :
13845   $as_echo_n "(cached) " >&6
13846 else
13847   while :; do
13848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h.  */
13850 #include <sys/types.h>
13851  /* Check that off_t can represent 2**63 - 1 correctly.
13852     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13853     since some C++ compilers masquerading as C compilers
13854     incorrectly reject 9223372036854775807.  */
13855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13856   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13857                        && LARGE_OFF_T % 2147483647 == 1)
13858                       ? 1 : -1];
13859 int
13860 main ()
13861 {
13862
13863   ;
13864   return 0;
13865 }
13866 _ACEOF
13867 if ac_fn_c_try_compile "$LINENO"; then :
13868   ac_cv_sys_large_files=no; break
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873 #define _LARGE_FILES 1
13874 #include <sys/types.h>
13875  /* Check that off_t can represent 2**63 - 1 correctly.
13876     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13877     since some C++ compilers masquerading as C compilers
13878     incorrectly reject 9223372036854775807.  */
13879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13880   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13881                        && LARGE_OFF_T % 2147483647 == 1)
13882                       ? 1 : -1];
13883 int
13884 main ()
13885 {
13886
13887   ;
13888   return 0;
13889 }
13890 _ACEOF
13891 if ac_fn_c_try_compile "$LINENO"; then :
13892   ac_cv_sys_large_files=1; break
13893 fi
13894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895   ac_cv_sys_large_files=unknown
13896   break
13897 done
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13900 $as_echo "$ac_cv_sys_large_files" >&6; }
13901 case $ac_cv_sys_large_files in #(
13902   no | unknown) ;;
13903   *)
13904 cat >>confdefs.h <<_ACEOF
13905 #define _LARGE_FILES $ac_cv_sys_large_files
13906 _ACEOF
13907 ;;
13908 esac
13909 rm -rf conftest*
13910   fi
13911
13912
13913 fi
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13916 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13917 if ${ac_cv_sys_largefile_source+:} false; then :
13918   $as_echo_n "(cached) " >&6
13919 else
13920   while :; do
13921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h.  */
13923 #include <sys/types.h> /* for off_t */
13924      #include <stdio.h>
13925 int
13926 main ()
13927 {
13928 int (*fp) (FILE *, off_t, int) = fseeko;
13929      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 if ac_fn_c_try_link "$LINENO"; then :
13935   ac_cv_sys_largefile_source=no; break
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext \
13938     conftest$ac_exeext conftest.$ac_ext
13939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h.  */
13941 #define _LARGEFILE_SOURCE 1
13942 #include <sys/types.h> /* for off_t */
13943      #include <stdio.h>
13944 int
13945 main ()
13946 {
13947 int (*fp) (FILE *, off_t, int) = fseeko;
13948      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 if ac_fn_c_try_link "$LINENO"; then :
13954   ac_cv_sys_largefile_source=1; break
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext \
13957     conftest$ac_exeext conftest.$ac_ext
13958   ac_cv_sys_largefile_source=unknown
13959   break
13960 done
13961 fi
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13963 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13964 case $ac_cv_sys_largefile_source in #(
13965   no | unknown) ;;
13966   *)
13967 cat >>confdefs.h <<_ACEOF
13968 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13969 _ACEOF
13970 ;;
13971 esac
13972 rm -rf conftest*
13973
13974 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13975 # in glibc 2.1.3, but that breaks too many other things.
13976 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13977 if test $ac_cv_sys_largefile_source != unknown; then
13978
13979 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13980
13981 fi
13982
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13984 $as_echo_n "checking for mbstate_t... " >&6; }
13985 if ${ac_cv_type_mbstate_t+:} false; then :
13986   $as_echo_n "(cached) " >&6
13987 else
13988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h.  */
13990 $ac_includes_default
13991 #           include <wchar.h>
13992 int
13993 main ()
13994 {
13995 mbstate_t x; return sizeof x;
13996   ;
13997   return 0;
13998 }
13999 _ACEOF
14000 if ac_fn_c_try_compile "$LINENO"; then :
14001   ac_cv_type_mbstate_t=yes
14002 else
14003   ac_cv_type_mbstate_t=no
14004 fi
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006 fi
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14008 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14009    if test $ac_cv_type_mbstate_t = yes; then
14010
14011 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14012
14013    else
14014
14015 $as_echo "#define mbstate_t int" >>confdefs.h
14016
14017    fi
14018
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
14020 $as_echo_n "checking for struct option in getopt... " >&6; }
14021 if ${ac_cv_struct_option_getopt_h+:} false; then :
14022   $as_echo_n "(cached) " >&6
14023 else
14024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h.  */
14026 #include <getopt.h>
14027 int
14028 main ()
14029 {
14030 struct option op; op.name;
14031   ;
14032   return 0;
14033 }
14034 _ACEOF
14035 if ac_fn_c_try_compile "$LINENO"; then :
14036   ac_cv_struct_option_getopt_h=yes
14037 else
14038   ac_cv_struct_option_getopt_h=no
14039 fi
14040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
14043 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
14044 if test "$ac_cv_struct_option_getopt_h" = yes; then
14045
14046 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
14047
14048 fi
14049
14050 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14051 if test "x$ac_cv_type_pid_t" = xyes; then :
14052
14053 else
14054
14055 cat >>confdefs.h <<_ACEOF
14056 #define pid_t int
14057 _ACEOF
14058
14059 fi
14060
14061 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14062 case $ac_cv_c_uint8_t in #(
14063   no|yes) ;; #(
14064   *)
14065
14066 $as_echo "#define _UINT8_T 1" >>confdefs.h
14067
14068
14069 cat >>confdefs.h <<_ACEOF
14070 #define uint8_t $ac_cv_c_uint8_t
14071 _ACEOF
14072 ;;
14073   esac
14074
14075 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14076 case $ac_cv_c_uint16_t in #(
14077   no|yes) ;; #(
14078   *)
14079
14080
14081 cat >>confdefs.h <<_ACEOF
14082 #define uint16_t $ac_cv_c_uint16_t
14083 _ACEOF
14084 ;;
14085   esac
14086
14087 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14088 case $ac_cv_c_uint32_t in #(
14089   no|yes) ;; #(
14090   *)
14091
14092 $as_echo "#define _UINT32_T 1" >>confdefs.h
14093
14094
14095 cat >>confdefs.h <<_ACEOF
14096 #define uint32_t $ac_cv_c_uint32_t
14097 _ACEOF
14098 ;;
14099   esac
14100
14101 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14102 case $ac_cv_c_int32_t in #(
14103   no|yes) ;; #(
14104   *)
14105
14106 cat >>confdefs.h <<_ACEOF
14107 #define int32_t $ac_cv_c_int32_t
14108 _ACEOF
14109 ;;
14110 esac
14111
14112 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14113 case $ac_cv_c_uint64_t in #(
14114   no|yes) ;; #(
14115   *)
14116
14117 $as_echo "#define _UINT64_T 1" >>confdefs.h
14118
14119
14120 cat >>confdefs.h <<_ACEOF
14121 #define uint64_t $ac_cv_c_uint64_t
14122 _ACEOF
14123 ;;
14124   esac
14125
14126 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14127 case $ac_cv_c_int64_t in #(
14128   no|yes) ;; #(
14129   *)
14130
14131 cat >>confdefs.h <<_ACEOF
14132 #define int64_t $ac_cv_c_int64_t
14133 _ACEOF
14134 ;;
14135 esac
14136
14137
14138   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14139 if test "x$ac_cv_type_intptr_t" = xyes; then :
14140
14141 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14142
14143 else
14144   for ac_type in 'int' 'long int' 'long long int'; do
14145        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h.  */
14147 $ac_includes_default
14148 int
14149 main ()
14150 {
14151 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14152 test_array [0] = 0;
14153 return test_array [0];
14154
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 if ac_fn_c_try_compile "$LINENO"; then :
14160
14161 cat >>confdefs.h <<_ACEOF
14162 #define intptr_t $ac_type
14163 _ACEOF
14164
14165           ac_type=
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168        test -z "$ac_type" && break
14169      done
14170 fi
14171
14172
14173
14174   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14175 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14176
14177 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14178
14179 else
14180   for ac_type in 'unsigned int' 'unsigned long int' \
14181         'unsigned long long int'; do
14182        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h.  */
14184 $ac_includes_default
14185 int
14186 main ()
14187 {
14188 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14189 test_array [0] = 0;
14190 return test_array [0];
14191
14192   ;
14193   return 0;
14194 }
14195 _ACEOF
14196 if ac_fn_c_try_compile "$LINENO"; then :
14197
14198 cat >>confdefs.h <<_ACEOF
14199 #define uintptr_t $ac_type
14200 _ACEOF
14201
14202           ac_type=
14203 fi
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205        test -z "$ac_type" && break
14206      done
14207 fi
14208
14209
14210
14211
14212
14213   for ac_header in $ac_header_list
14214 do :
14215   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14216 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14217 "
14218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14219   cat >>confdefs.h <<_ACEOF
14220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14221 _ACEOF
14222
14223 fi
14224
14225 done
14226
14227
14228
14229
14230
14231
14232
14233
14234 for ac_func in getpagesize
14235 do :
14236   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14237 if test "x$ac_cv_func_getpagesize" = xyes; then :
14238   cat >>confdefs.h <<_ACEOF
14239 #define HAVE_GETPAGESIZE 1
14240 _ACEOF
14241
14242 fi
14243 done
14244
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14246 $as_echo_n "checking for working mmap... " >&6; }
14247 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14248   $as_echo_n "(cached) " >&6
14249 else
14250   if test "$cross_compiling" = yes; then :
14251   ac_cv_func_mmap_fixed_mapped=no
14252 else
14253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h.  */
14255 $ac_includes_default
14256 /* malloc might have been renamed as rpl_malloc. */
14257 #undef malloc
14258
14259 /* Thanks to Mike Haertel and Jim Avera for this test.
14260    Here is a matrix of mmap possibilities:
14261         mmap private not fixed
14262         mmap private fixed at somewhere currently unmapped
14263         mmap private fixed at somewhere already mapped
14264         mmap shared not fixed
14265         mmap shared fixed at somewhere currently unmapped
14266         mmap shared fixed at somewhere already mapped
14267    For private mappings, we should verify that changes cannot be read()
14268    back from the file, nor mmap's back from the file at a different
14269    address.  (There have been systems where private was not correctly
14270    implemented like the infamous i386 svr4.0, and systems where the
14271    VM page cache was not coherent with the file system buffer cache
14272    like early versions of FreeBSD and possibly contemporary NetBSD.)
14273    For shared mappings, we should conversely verify that changes get
14274    propagated back to all the places they're supposed to be.
14275
14276    Grep wants private fixed already mapped.
14277    The main things grep needs to know about mmap are:
14278    * does it exist and is it safe to write into the mmap'd area
14279    * how to use it (BSD variants)  */
14280
14281 #include <fcntl.h>
14282 #include <sys/mman.h>
14283
14284 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14285 char *malloc ();
14286 #endif
14287
14288 /* This mess was copied from the GNU getpagesize.h.  */
14289 #ifndef HAVE_GETPAGESIZE
14290 # ifdef _SC_PAGESIZE
14291 #  define getpagesize() sysconf(_SC_PAGESIZE)
14292 # else /* no _SC_PAGESIZE */
14293 #  ifdef HAVE_SYS_PARAM_H
14294 #   include <sys/param.h>
14295 #   ifdef EXEC_PAGESIZE
14296 #    define getpagesize() EXEC_PAGESIZE
14297 #   else /* no EXEC_PAGESIZE */
14298 #    ifdef NBPG
14299 #     define getpagesize() NBPG * CLSIZE
14300 #     ifndef CLSIZE
14301 #      define CLSIZE 1
14302 #     endif /* no CLSIZE */
14303 #    else /* no NBPG */
14304 #     ifdef NBPC
14305 #      define getpagesize() NBPC
14306 #     else /* no NBPC */
14307 #      ifdef PAGESIZE
14308 #       define getpagesize() PAGESIZE
14309 #      endif /* PAGESIZE */
14310 #     endif /* no NBPC */
14311 #    endif /* no NBPG */
14312 #   endif /* no EXEC_PAGESIZE */
14313 #  else /* no HAVE_SYS_PARAM_H */
14314 #   define getpagesize() 8192   /* punt totally */
14315 #  endif /* no HAVE_SYS_PARAM_H */
14316 # endif /* no _SC_PAGESIZE */
14317
14318 #endif /* no HAVE_GETPAGESIZE */
14319
14320 int
14321 main ()
14322 {
14323   char *data, *data2, *data3;
14324   const char *cdata2;
14325   int i, pagesize;
14326   int fd, fd2;
14327
14328   pagesize = getpagesize ();
14329
14330   /* First, make a file with some known garbage in it. */
14331   data = (char *) malloc (pagesize);
14332   if (!data)
14333     return 1;
14334   for (i = 0; i < pagesize; ++i)
14335     *(data + i) = rand ();
14336   umask (0);
14337   fd = creat ("conftest.mmap", 0600);
14338   if (fd < 0)
14339     return 2;
14340   if (write (fd, data, pagesize) != pagesize)
14341     return 3;
14342   close (fd);
14343
14344   /* Next, check that the tail of a page is zero-filled.  File must have
14345      non-zero length, otherwise we risk SIGBUS for entire page.  */
14346   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14347   if (fd2 < 0)
14348     return 4;
14349   cdata2 = "";
14350   if (write (fd2, cdata2, 1) != 1)
14351     return 5;
14352   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14353   if (data2 == MAP_FAILED)
14354     return 6;
14355   for (i = 0; i < pagesize; ++i)
14356     if (*(data2 + i))
14357       return 7;
14358   close (fd2);
14359   if (munmap (data2, pagesize))
14360     return 8;
14361
14362   /* Next, try to mmap the file at a fixed address which already has
14363      something else allocated at it.  If we can, also make sure that
14364      we see the same garbage.  */
14365   fd = open ("conftest.mmap", O_RDWR);
14366   if (fd < 0)
14367     return 9;
14368   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14369                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14370     return 10;
14371   for (i = 0; i < pagesize; ++i)
14372     if (*(data + i) != *(data2 + i))
14373       return 11;
14374
14375   /* Finally, make sure that changes to the mapped area do not
14376      percolate back to the file as seen by read().  (This is a bug on
14377      some variants of i386 svr4.0.)  */
14378   for (i = 0; i < pagesize; ++i)
14379     *(data2 + i) = *(data2 + i) + 1;
14380   data3 = (char *) malloc (pagesize);
14381   if (!data3)
14382     return 12;
14383   if (read (fd, data3, pagesize) != pagesize)
14384     return 13;
14385   for (i = 0; i < pagesize; ++i)
14386     if (*(data + i) != *(data3 + i))
14387       return 14;
14388   close (fd);
14389   return 0;
14390 }
14391 _ACEOF
14392 if ac_fn_c_try_run "$LINENO"; then :
14393   ac_cv_func_mmap_fixed_mapped=yes
14394 else
14395   ac_cv_func_mmap_fixed_mapped=no
14396 fi
14397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14398   conftest.$ac_objext conftest.beam conftest.$ac_ext
14399 fi
14400
14401 fi
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14403 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14404 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14405
14406 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14407
14408 fi
14409 rm -f conftest.mmap conftest.txt
14410
14411 for ac_header in vfork.h
14412 do :
14413   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14414 if test "x$ac_cv_header_vfork_h" = xyes; then :
14415   cat >>confdefs.h <<_ACEOF
14416 #define HAVE_VFORK_H 1
14417 _ACEOF
14418
14419 fi
14420
14421 done
14422
14423 for ac_func in fork vfork
14424 do :
14425   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14428   cat >>confdefs.h <<_ACEOF
14429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14430 _ACEOF
14431
14432 fi
14433 done
14434
14435 if test "x$ac_cv_func_fork" = xyes; then
14436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14437 $as_echo_n "checking for working fork... " >&6; }
14438 if ${ac_cv_func_fork_works+:} false; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   if test "$cross_compiling" = yes; then :
14442   ac_cv_func_fork_works=cross
14443 else
14444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h.  */
14446 $ac_includes_default
14447 int
14448 main ()
14449 {
14450
14451           /* By Ruediger Kuhlmann. */
14452           return fork () < 0;
14453
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 if ac_fn_c_try_run "$LINENO"; then :
14459   ac_cv_func_fork_works=yes
14460 else
14461   ac_cv_func_fork_works=no
14462 fi
14463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14464   conftest.$ac_objext conftest.beam conftest.$ac_ext
14465 fi
14466
14467 fi
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14469 $as_echo "$ac_cv_func_fork_works" >&6; }
14470
14471 else
14472   ac_cv_func_fork_works=$ac_cv_func_fork
14473 fi
14474 if test "x$ac_cv_func_fork_works" = xcross; then
14475   case $host in
14476     *-*-amigaos* | *-*-msdosdjgpp*)
14477       # Override, as these systems have only a dummy fork() stub
14478       ac_cv_func_fork_works=no
14479       ;;
14480     *)
14481       ac_cv_func_fork_works=yes
14482       ;;
14483   esac
14484   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14485 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14486 fi
14487 ac_cv_func_vfork_works=$ac_cv_func_vfork
14488 if test "x$ac_cv_func_vfork" = xyes; then
14489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14490 $as_echo_n "checking for working vfork... " >&6; }
14491 if ${ac_cv_func_vfork_works+:} false; then :
14492   $as_echo_n "(cached) " >&6
14493 else
14494   if test "$cross_compiling" = yes; then :
14495   ac_cv_func_vfork_works=cross
14496 else
14497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h.  */
14499 /* Thanks to Paul Eggert for this test.  */
14500 $ac_includes_default
14501 #include <sys/wait.h>
14502 #ifdef HAVE_VFORK_H
14503 # include <vfork.h>
14504 #endif
14505 /* On some sparc systems, changes by the child to local and incoming
14506    argument registers are propagated back to the parent.  The compiler
14507    is told about this with #include <vfork.h>, but some compilers
14508    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14509    static variable whose address is put into a register that is
14510    clobbered by the vfork.  */
14511 static void
14512 #ifdef __cplusplus
14513 sparc_address_test (int arg)
14514 # else
14515 sparc_address_test (arg) int arg;
14516 #endif
14517 {
14518   static pid_t child;
14519   if (!child) {
14520     child = vfork ();
14521     if (child < 0) {
14522       perror ("vfork");
14523       _exit(2);
14524     }
14525     if (!child) {
14526       arg = getpid();
14527       write(-1, "", 0);
14528       _exit (arg);
14529     }
14530   }
14531 }
14532
14533 int
14534 main ()
14535 {
14536   pid_t parent = getpid ();
14537   pid_t child;
14538
14539   sparc_address_test (0);
14540
14541   child = vfork ();
14542
14543   if (child == 0) {
14544     /* Here is another test for sparc vfork register problems.  This
14545        test uses lots of local variables, at least as many local
14546        variables as main has allocated so far including compiler
14547        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14548        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14549        reuse the register of parent for one of the local variables,
14550        since it will think that parent can't possibly be used any more
14551        in this routine.  Assigning to the local variable will thus
14552        munge parent in the parent process.  */
14553     pid_t
14554       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14555       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14556     /* Convince the compiler that p..p7 are live; otherwise, it might
14557        use the same hardware register for all 8 local variables.  */
14558     if (p != p1 || p != p2 || p != p3 || p != p4
14559         || p != p5 || p != p6 || p != p7)
14560       _exit(1);
14561
14562     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14563        from child file descriptors.  If the child closes a descriptor
14564        before it execs or exits, this munges the parent's descriptor
14565        as well.  Test for this by closing stdout in the child.  */
14566     _exit(close(fileno(stdout)) != 0);
14567   } else {
14568     int status;
14569     struct stat st;
14570
14571     while (wait(&status) != child)
14572       ;
14573     return (
14574          /* Was there some problem with vforking?  */
14575          child < 0
14576
14577          /* Did the child fail?  (This shouldn't happen.)  */
14578          || status
14579
14580          /* Did the vfork/compiler bug occur?  */
14581          || parent != getpid()
14582
14583          /* Did the file descriptor bug occur?  */
14584          || fstat(fileno(stdout), &st) != 0
14585          );
14586   }
14587 }
14588 _ACEOF
14589 if ac_fn_c_try_run "$LINENO"; then :
14590   ac_cv_func_vfork_works=yes
14591 else
14592   ac_cv_func_vfork_works=no
14593 fi
14594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14595   conftest.$ac_objext conftest.beam conftest.$ac_ext
14596 fi
14597
14598 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14600 $as_echo "$ac_cv_func_vfork_works" >&6; }
14601
14602 fi;
14603 if test "x$ac_cv_func_fork_works" = xcross; then
14604   ac_cv_func_vfork_works=$ac_cv_func_vfork
14605   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14606 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14607 fi
14608
14609 if test "x$ac_cv_func_vfork_works" = xyes; then
14610
14611 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14612
14613 else
14614
14615 $as_echo "#define vfork fork" >>confdefs.h
14616
14617 fi
14618 if test "x$ac_cv_func_fork_works" = xyes; then
14619
14620 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14621
14622 fi
14623
14624
14625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14626 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14627 if ${ac_cv_func_mbrtowc+:} false; then :
14628   $as_echo_n "(cached) " >&6
14629 else
14630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h.  */
14632 #include <wchar.h>
14633 int
14634 main ()
14635 {
14636 wchar_t wc;
14637               char const s[] = "";
14638               size_t n = 1;
14639               mbstate_t state;
14640               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 if ac_fn_c_try_link "$LINENO"; then :
14646   ac_cv_func_mbrtowc=yes
14647 else
14648   ac_cv_func_mbrtowc=no
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext \
14651     conftest$ac_exeext conftest.$ac_ext
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14654 $as_echo "$ac_cv_func_mbrtowc" >&6; }
14655   if test $ac_cv_func_mbrtowc = yes; then
14656
14657 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14658
14659   fi
14660
14661
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14663 $as_echo_n "checking for gcc compiler warnings... " >&6; }
14664 # Check whether --enable-warnings was given.
14665 if test "${enable_warnings+set}" = set; then :
14666   enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14667    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14668 $as_echo "no" >&6; }
14669    WARNINGS=
14670 else
14671    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14672 $as_echo "yes" >&6; }
14673    WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14674        -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14675        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14676        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14677 fi
14678 else
14679
14680 if test "$GCC" = yes; then
14681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14682 $as_echo "yes" >&6; }
14683    WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14684        -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14685        -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14686        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14687 else
14688    WARNINGS=
14689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690 $as_echo "no" >&6; }
14691 fi
14692 fi
14693
14694
14695 for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem
14696 do :
14697   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14700   cat >>confdefs.h <<_ACEOF
14701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14702 _ACEOF
14703
14704 fi
14705 done
14706
14707
14708 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14709 if test "x$ac_cv_func_getopt_long" = xyes; then :
14710   $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14711
14712 else
14713   case " $LIBOBJS " in
14714   *" getopt_long.$ac_objext "* ) ;;
14715   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14716  ;;
14717 esac
14718
14719 fi
14720
14721 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14722 if test "x$ac_cv_func_asprintf" = xyes; then :
14723   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14724
14725 else
14726   case " $LIBOBJS " in
14727   *" asprintf.$ac_objext "* ) ;;
14728   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14729  ;;
14730 esac
14731
14732 fi
14733
14734 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14735 if test "x$ac_cv_func_vasprintf" = xyes; then :
14736   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14737
14738 else
14739   case " $LIBOBJS " in
14740   *" vasprintf.$ac_objext "* ) ;;
14741   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14742  ;;
14743 esac
14744
14745 fi
14746
14747 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14748 if test "x$ac_cv_func_strlcpy" = xyes; then :
14749   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14750
14751 else
14752   case " $LIBOBJS " in
14753   *" strlcpy.$ac_objext "* ) ;;
14754   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14755  ;;
14756 esac
14757
14758 fi
14759
14760 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14761 if test "x$ac_cv_func_strlcat" = xyes; then :
14762   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14763
14764 else
14765   case " $LIBOBJS " in
14766   *" strlcat.$ac_objext "* ) ;;
14767   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14768  ;;
14769 esac
14770
14771 fi
14772
14773 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14774 if test "x$ac_cv_func_getline" = xyes; then :
14775   $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14776
14777 else
14778   case " $LIBOBJS " in
14779   *" getline.$ac_objext "* ) ;;
14780   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14781  ;;
14782 esac
14783
14784 fi
14785
14786 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14787 if test "x$ac_cv_func_ctime_r" = xyes; then :
14788   $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14789
14790 else
14791   case " $LIBOBJS " in
14792   *" ctime_r.$ac_objext "* ) ;;
14793   *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14794  ;;
14795 esac
14796
14797 fi
14798
14799 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14800 if test "x$ac_cv_func_asctime_r" = xyes; then :
14801   $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14802
14803 else
14804   case " $LIBOBJS " in
14805   *" asctime_r.$ac_objext "* ) ;;
14806   *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14807  ;;
14808 esac
14809
14810 fi
14811
14812 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14813 if test "x$ac_cv_func_localtime_r" = xyes; then :
14814   $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14815
14816 else
14817   case " $LIBOBJS " in
14818   *" localtime_r.$ac_objext "* ) ;;
14819   *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
14820  ;;
14821 esac
14822
14823 fi
14824
14825 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14826 if test "x$ac_cv_func_gmtime_r" = xyes; then :
14827   $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
14828
14829 else
14830   case " $LIBOBJS " in
14831   *" gmtime_r.$ac_objext "* ) ;;
14832   *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
14833  ;;
14834 esac
14835
14836 fi
14837
14838 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14839 if test "x$ac_cv_func_pread" = xyes; then :
14840   $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14841
14842 else
14843   case " $LIBOBJS " in
14844   *" pread.$ac_objext "* ) ;;
14845   *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14846  ;;
14847 esac
14848
14849 fi
14850
14851 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14852 if test "x$ac_cv_func_strcasestr" = xyes; then :
14853   $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14854
14855 else
14856   case " $LIBOBJS " in
14857   *" strcasestr.$ac_objext "* ) ;;
14858   *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14859  ;;
14860 esac
14861
14862 fi
14863
14864 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14865 if test "x$ac_cv_func_fmtcheck" = xyes; then :
14866   $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14867
14868 else
14869   case " $LIBOBJS " in
14870   *" fmtcheck.$ac_objext "* ) ;;
14871   *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14872  ;;
14873 esac
14874
14875 fi
14876
14877 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14878 if test "x$ac_cv_func_dprintf" = xyes; then :
14879   $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14880
14881 else
14882   case " $LIBOBJS " in
14883   *" dprintf.$ac_objext "* ) ;;
14884   *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14885  ;;
14886 esac
14887
14888 fi
14889
14890
14891
14892 if test "$enable_zlib" != "no"; then
14893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14894 $as_echo_n "checking for gzopen in -lz... " >&6; }
14895 if ${ac_cv_lib_z_gzopen+:} false; then :
14896   $as_echo_n "(cached) " >&6
14897 else
14898   ac_check_lib_save_LIBS=$LIBS
14899 LIBS="-lz  $LIBS"
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h.  */
14902
14903 /* Override any GCC internal prototype to avoid an error.
14904    Use char because int might match the return type of a GCC
14905    builtin and then its argument prototype would still apply.  */
14906 #ifdef __cplusplus
14907 extern "C"
14908 #endif
14909 char gzopen ();
14910 int
14911 main ()
14912 {
14913 return gzopen ();
14914   ;
14915   return 0;
14916 }
14917 _ACEOF
14918 if ac_fn_c_try_link "$LINENO"; then :
14919   ac_cv_lib_z_gzopen=yes
14920 else
14921   ac_cv_lib_z_gzopen=no
14922 fi
14923 rm -f core conftest.err conftest.$ac_objext \
14924     conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14926 fi
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14928 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
14929 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14930   cat >>confdefs.h <<_ACEOF
14931 #define HAVE_LIBZ 1
14932 _ACEOF
14933
14934   LIBS="-lz $LIBS"
14935
14936 fi
14937
14938 fi
14939 if test "$enable_bzlib" != "no"; then
14940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
14941 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
14942 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
14943   $as_echo_n "(cached) " >&6
14944 else
14945   ac_check_lib_save_LIBS=$LIBS
14946 LIBS="-lbz2  $LIBS"
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h.  */
14949
14950 /* Override any GCC internal prototype to avoid an error.
14951    Use char because int might match the return type of a GCC
14952    builtin and then its argument prototype would still apply.  */
14953 #ifdef __cplusplus
14954 extern "C"
14955 #endif
14956 char BZ2_bzCompressInit ();
14957 int
14958 main ()
14959 {
14960 return BZ2_bzCompressInit ();
14961   ;
14962   return 0;
14963 }
14964 _ACEOF
14965 if ac_fn_c_try_link "$LINENO"; then :
14966   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
14967 else
14968   ac_cv_lib_bz2_BZ2_bzCompressInit=no
14969 fi
14970 rm -f core conftest.err conftest.$ac_objext \
14971     conftest$ac_exeext conftest.$ac_ext
14972 LIBS=$ac_check_lib_save_LIBS
14973 fi
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
14975 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
14976 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
14977   cat >>confdefs.h <<_ACEOF
14978 #define HAVE_LIBBZ2 1
14979 _ACEOF
14980
14981   LIBS="-lbz2 $LIBS"
14982
14983 fi
14984
14985 fi
14986 if test "$enable_xzlib" != "no"; then
14987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
14988 $as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
14989 if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
14990   $as_echo_n "(cached) " >&6
14991 else
14992   ac_check_lib_save_LIBS=$LIBS
14993 LIBS="-llzma  $LIBS"
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h.  */
14996
14997 /* Override any GCC internal prototype to avoid an error.
14998    Use char because int might match the return type of a GCC
14999    builtin and then its argument prototype would still apply.  */
15000 #ifdef __cplusplus
15001 extern "C"
15002 #endif
15003 char lzma_stream_decoder ();
15004 int
15005 main ()
15006 {
15007 return lzma_stream_decoder ();
15008   ;
15009   return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_link "$LINENO"; then :
15013   ac_cv_lib_lzma_lzma_stream_decoder=yes
15014 else
15015   ac_cv_lib_lzma_lzma_stream_decoder=no
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext \
15018     conftest$ac_exeext conftest.$ac_ext
15019 LIBS=$ac_check_lib_save_LIBS
15020 fi
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
15022 $as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
15023 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
15024   cat >>confdefs.h <<_ACEOF
15025 #define HAVE_LIBLZMA 1
15026 _ACEOF
15027
15028   LIBS="-llzma $LIBS"
15029
15030 fi
15031
15032 fi
15033 if test "$enable_libseccomp" != "no"; then
15034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
15035 $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
15036 if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
15037   $as_echo_n "(cached) " >&6
15038 else
15039   ac_check_lib_save_LIBS=$LIBS
15040 LIBS="-lseccomp  $LIBS"
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h.  */
15043
15044 /* Override any GCC internal prototype to avoid an error.
15045    Use char because int might match the return type of a GCC
15046    builtin and then its argument prototype would still apply.  */
15047 #ifdef __cplusplus
15048 extern "C"
15049 #endif
15050 char seccomp_init ();
15051 int
15052 main ()
15053 {
15054 return seccomp_init ();
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 if ac_fn_c_try_link "$LINENO"; then :
15060   ac_cv_lib_seccomp_seccomp_init=yes
15061 else
15062   ac_cv_lib_seccomp_seccomp_init=no
15063 fi
15064 rm -f core conftest.err conftest.$ac_objext \
15065     conftest$ac_exeext conftest.$ac_ext
15066 LIBS=$ac_check_lib_save_LIBS
15067 fi
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
15069 $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
15070 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
15071   cat >>confdefs.h <<_ACEOF
15072 #define HAVE_LIBSECCOMP 1
15073 _ACEOF
15074
15075   LIBS="-lseccomp $LIBS"
15076
15077 fi
15078
15079 fi
15080 if test "$MINGW" = 1; then
15081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
15082 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
15083 if ${ac_cv_lib_gnurx_regexec+:} false; then :
15084   $as_echo_n "(cached) " >&6
15085 else
15086   ac_check_lib_save_LIBS=$LIBS
15087 LIBS="-lgnurx  $LIBS"
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h.  */
15090
15091 /* Override any GCC internal prototype to avoid an error.
15092    Use char because int might match the return type of a GCC
15093    builtin and then its argument prototype would still apply.  */
15094 #ifdef __cplusplus
15095 extern "C"
15096 #endif
15097 char regexec ();
15098 int
15099 main ()
15100 {
15101 return regexec ();
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 if ac_fn_c_try_link "$LINENO"; then :
15107   ac_cv_lib_gnurx_regexec=yes
15108 else
15109   ac_cv_lib_gnurx_regexec=no
15110 fi
15111 rm -f core conftest.err conftest.$ac_objext \
15112     conftest$ac_exeext conftest.$ac_ext
15113 LIBS=$ac_check_lib_save_LIBS
15114 fi
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
15116 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
15117 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
15118   cat >>confdefs.h <<_ACEOF
15119 #define HAVE_LIBGNURX 1
15120 _ACEOF
15121
15122   LIBS="-lgnurx $LIBS"
15123
15124 else
15125   as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
15126 fi
15127
15128 fi
15129
15130  if test "$cross_compiling" = yes; then
15131   IS_CROSS_COMPILE_TRUE=
15132   IS_CROSS_COMPILE_FALSE='#'
15133 else
15134   IS_CROSS_COMPILE_TRUE='#'
15135   IS_CROSS_COMPILE_FALSE=
15136 fi
15137
15138
15139 if test "$enable_zlib" = "yes"; then
15140   if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
15141     as_fn_error $? "zlib support requested but not found" "$LINENO" 5
15142   fi
15143 fi
15144 if  test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
15145
15146 $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
15147
15148 fi
15149 if test "$enable_bzlib" = "yes"; then
15150   if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
15151     as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
15152   fi
15153 fi
15154 if  test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
15155
15156 $as_echo "#define BZLIBSUPPORT 1" >>confdefs.h
15157
15158 fi
15159 if test "$enable_xzlib" = "yes"; then
15160   if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
15161     as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
15162   fi
15163 fi
15164 if  test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
15165
15166 $as_echo "#define XZLIBSUPPORT 1" >>confdefs.h
15167
15168 fi
15169
15170 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
15171
15172 cat >confcache <<\_ACEOF
15173 # This file is a shell script that caches the results of configure
15174 # tests run on this system so they can be shared between configure
15175 # scripts and configure runs, see configure's option --config-cache.
15176 # It is not useful on other systems.  If it contains results you don't
15177 # want to keep, you may remove or edit it.
15178 #
15179 # config.status only pays attention to the cache file if you give it
15180 # the --recheck option to rerun configure.
15181 #
15182 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15184 # following values.
15185
15186 _ACEOF
15187
15188 # The following way of writing the cache mishandles newlines in values,
15189 # but we know of no workaround that is simple, portable, and efficient.
15190 # So, we kill variables containing newlines.
15191 # Ultrix sh set writes to stderr and can't be redirected directly,
15192 # and sets the high bit in the cache file unless we assign to the vars.
15193 (
15194   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15195     eval ac_val=\$$ac_var
15196     case $ac_val in #(
15197     *${as_nl}*)
15198       case $ac_var in #(
15199       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15201       esac
15202       case $ac_var in #(
15203       _ | IFS | as_nl) ;; #(
15204       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15205       *) { eval $ac_var=; unset $ac_var;} ;;
15206       esac ;;
15207     esac
15208   done
15209
15210   (set) 2>&1 |
15211     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15212     *${as_nl}ac_space=\ *)
15213       # `set' does not quote correctly, so add quotes: double-quote
15214       # substitution turns \\\\ into \\, and sed turns \\ into \.
15215       sed -n \
15216         "s/'/'\\\\''/g;
15217           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15218       ;; #(
15219     *)
15220       # `set' quotes correctly as required by POSIX, so do not add quotes.
15221       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15222       ;;
15223     esac |
15224     sort
15225 ) |
15226   sed '
15227      /^ac_cv_env_/b end
15228      t clear
15229      :clear
15230      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15231      t end
15232      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15233      :end' >>confcache
15234 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15235   if test -w "$cache_file"; then
15236     if test "x$cache_file" != "x/dev/null"; then
15237       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15238 $as_echo "$as_me: updating cache $cache_file" >&6;}
15239       if test ! -f "$cache_file" || test -h "$cache_file"; then
15240         cat confcache >"$cache_file"
15241       else
15242         case $cache_file in #(
15243         */* | ?:*)
15244           mv -f confcache "$cache_file"$$ &&
15245           mv -f "$cache_file"$$ "$cache_file" ;; #(
15246         *)
15247           mv -f confcache "$cache_file" ;;
15248         esac
15249       fi
15250     fi
15251   else
15252     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15253 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15254   fi
15255 fi
15256 rm -f confcache
15257
15258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15259 # Let make expand exec_prefix.
15260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15261
15262 DEFS=-DHAVE_CONFIG_H
15263
15264 ac_libobjs=
15265 ac_ltlibobjs=
15266 U=
15267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15268   # 1. Remove the extension, and $U if already installed.
15269   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15270   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15271   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15272   #    will be set to the directory where LIBOBJS objects are built.
15273   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15274   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15275 done
15276 LIBOBJS=$ac_libobjs
15277
15278 LTLIBOBJS=$ac_ltlibobjs
15279
15280
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15282 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15283    if test -n "$am_sleep_pid"; then
15284      # Hide warnings about reused PIDs.
15285      wait $am_sleep_pid 2>/dev/null
15286    fi
15287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15288 $as_echo "done" >&6; }
15289  if test -n "$EXEEXT"; then
15290   am__EXEEXT_TRUE=
15291   am__EXEEXT_FALSE='#'
15292 else
15293   am__EXEEXT_TRUE='#'
15294   am__EXEEXT_FALSE=
15295 fi
15296
15297 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
15298   as_fn_error $? "conditional \"MINGW\" was never defined.
15299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15300 fi
15301 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
15302   as_fn_error $? "conditional \"FSECT5\" was never defined.
15303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15304 fi
15305 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15306   as_fn_error $? "conditional \"AMDEP\" was never defined.
15307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15308 fi
15309 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15310   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15312 fi
15313
15314 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
15315   as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
15316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15317 fi
15318
15319 : "${CONFIG_STATUS=./config.status}"
15320 ac_write_fail=0
15321 ac_clean_files_save=$ac_clean_files
15322 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15324 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15325 as_write_fail=0
15326 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15327 #! $SHELL
15328 # Generated by $as_me.
15329 # Run this file to recreate the current configuration.
15330 # Compiler output produced by configure, useful for debugging
15331 # configure, is in config.log if it exists.
15332
15333 debug=false
15334 ac_cs_recheck=false
15335 ac_cs_silent=false
15336
15337 SHELL=\${CONFIG_SHELL-$SHELL}
15338 export SHELL
15339 _ASEOF
15340 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15341 ## -------------------- ##
15342 ## M4sh Initialization. ##
15343 ## -------------------- ##
15344
15345 # Be more Bourne compatible
15346 DUALCASE=1; export DUALCASE # for MKS sh
15347 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15348   emulate sh
15349   NULLCMD=:
15350   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15351   # is contrary to our usage.  Disable this feature.
15352   alias -g '${1+"$@"}'='"$@"'
15353   setopt NO_GLOB_SUBST
15354 else
15355   case `(set -o) 2>/dev/null` in #(
15356   *posix*) :
15357     set -o posix ;; #(
15358   *) :
15359      ;;
15360 esac
15361 fi
15362
15363
15364 as_nl='
15365 '
15366 export as_nl
15367 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15368 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15369 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15371 # Prefer a ksh shell builtin over an external printf program on Solaris,
15372 # but without wasting forks for bash or zsh.
15373 if test -z "$BASH_VERSION$ZSH_VERSION" \
15374     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15375   as_echo='print -r --'
15376   as_echo_n='print -rn --'
15377 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15378   as_echo='printf %s\n'
15379   as_echo_n='printf %s'
15380 else
15381   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15382     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15383     as_echo_n='/usr/ucb/echo -n'
15384   else
15385     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15386     as_echo_n_body='eval
15387       arg=$1;
15388       case $arg in #(
15389       *"$as_nl"*)
15390         expr "X$arg" : "X\\(.*\\)$as_nl";
15391         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15392       esac;
15393       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15394     '
15395     export as_echo_n_body
15396     as_echo_n='sh -c $as_echo_n_body as_echo'
15397   fi
15398   export as_echo_body
15399   as_echo='sh -c $as_echo_body as_echo'
15400 fi
15401
15402 # The user is always right.
15403 if test "${PATH_SEPARATOR+set}" != set; then
15404   PATH_SEPARATOR=:
15405   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15406     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15407       PATH_SEPARATOR=';'
15408   }
15409 fi
15410
15411
15412 # IFS
15413 # We need space, tab and new line, in precisely that order.  Quoting is
15414 # there to prevent editors from complaining about space-tab.
15415 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15416 # splitting by setting IFS to empty value.)
15417 IFS=" ""        $as_nl"
15418
15419 # Find who we are.  Look in the path if we contain no directory separator.
15420 as_myself=
15421 case $0 in #((
15422   *[\\/]* ) as_myself=$0 ;;
15423   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15424 for as_dir in $PATH
15425 do
15426   IFS=$as_save_IFS
15427   test -z "$as_dir" && as_dir=.
15428     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15429   done
15430 IFS=$as_save_IFS
15431
15432      ;;
15433 esac
15434 # We did not find ourselves, most probably we were run as `sh COMMAND'
15435 # in which case we are not to be found in the path.
15436 if test "x$as_myself" = x; then
15437   as_myself=$0
15438 fi
15439 if test ! -f "$as_myself"; then
15440   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15441   exit 1
15442 fi
15443
15444 # Unset variables that we do not need and which cause bugs (e.g. in
15445 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15446 # suppresses any "Segmentation fault" message there.  '((' could
15447 # trigger a bug in pdksh 5.2.14.
15448 for as_var in BASH_ENV ENV MAIL MAILPATH
15449 do eval test x\${$as_var+set} = xset \
15450   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15451 done
15452 PS1='$ '
15453 PS2='> '
15454 PS4='+ '
15455
15456 # NLS nuisances.
15457 LC_ALL=C
15458 export LC_ALL
15459 LANGUAGE=C
15460 export LANGUAGE
15461
15462 # CDPATH.
15463 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15464
15465
15466 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15467 # ----------------------------------------
15468 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15469 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15470 # script with STATUS, using 1 if that was 0.
15471 as_fn_error ()
15472 {
15473   as_status=$1; test $as_status -eq 0 && as_status=1
15474   if test "$4"; then
15475     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15476     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15477   fi
15478   $as_echo "$as_me: error: $2" >&2
15479   as_fn_exit $as_status
15480 } # as_fn_error
15481
15482
15483 # as_fn_set_status STATUS
15484 # -----------------------
15485 # Set $? to STATUS, without forking.
15486 as_fn_set_status ()
15487 {
15488   return $1
15489 } # as_fn_set_status
15490
15491 # as_fn_exit STATUS
15492 # -----------------
15493 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15494 as_fn_exit ()
15495 {
15496   set +e
15497   as_fn_set_status $1
15498   exit $1
15499 } # as_fn_exit
15500
15501 # as_fn_unset VAR
15502 # ---------------
15503 # Portably unset VAR.
15504 as_fn_unset ()
15505 {
15506   { eval $1=; unset $1;}
15507 }
15508 as_unset=as_fn_unset
15509 # as_fn_append VAR VALUE
15510 # ----------------------
15511 # Append the text in VALUE to the end of the definition contained in VAR. Take
15512 # advantage of any shell optimizations that allow amortized linear growth over
15513 # repeated appends, instead of the typical quadratic growth present in naive
15514 # implementations.
15515 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15516   eval 'as_fn_append ()
15517   {
15518     eval $1+=\$2
15519   }'
15520 else
15521   as_fn_append ()
15522   {
15523     eval $1=\$$1\$2
15524   }
15525 fi # as_fn_append
15526
15527 # as_fn_arith ARG...
15528 # ------------------
15529 # Perform arithmetic evaluation on the ARGs, and store the result in the
15530 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15531 # must be portable across $(()) and expr.
15532 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15533   eval 'as_fn_arith ()
15534   {
15535     as_val=$(( $* ))
15536   }'
15537 else
15538   as_fn_arith ()
15539   {
15540     as_val=`expr "$@" || test $? -eq 1`
15541   }
15542 fi # as_fn_arith
15543
15544
15545 if expr a : '\(a\)' >/dev/null 2>&1 &&
15546    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15547   as_expr=expr
15548 else
15549   as_expr=false
15550 fi
15551
15552 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15553   as_basename=basename
15554 else
15555   as_basename=false
15556 fi
15557
15558 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15559   as_dirname=dirname
15560 else
15561   as_dirname=false
15562 fi
15563
15564 as_me=`$as_basename -- "$0" ||
15565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15566          X"$0" : 'X\(//\)$' \| \
15567          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15568 $as_echo X/"$0" |
15569     sed '/^.*\/\([^/][^/]*\)\/*$/{
15570             s//\1/
15571             q
15572           }
15573           /^X\/\(\/\/\)$/{
15574             s//\1/
15575             q
15576           }
15577           /^X\/\(\/\).*/{
15578             s//\1/
15579             q
15580           }
15581           s/.*/./; q'`
15582
15583 # Avoid depending upon Character Ranges.
15584 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15585 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15586 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15587 as_cr_digits='0123456789'
15588 as_cr_alnum=$as_cr_Letters$as_cr_digits
15589
15590 ECHO_C= ECHO_N= ECHO_T=
15591 case `echo -n x` in #(((((
15592 -n*)
15593   case `echo 'xy\c'` in
15594   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15595   xy)  ECHO_C='\c';;
15596   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15597        ECHO_T=' ';;
15598   esac;;
15599 *)
15600   ECHO_N='-n';;
15601 esac
15602
15603 rm -f conf$$ conf$$.exe conf$$.file
15604 if test -d conf$$.dir; then
15605   rm -f conf$$.dir/conf$$.file
15606 else
15607   rm -f conf$$.dir
15608   mkdir conf$$.dir 2>/dev/null
15609 fi
15610 if (echo >conf$$.file) 2>/dev/null; then
15611   if ln -s conf$$.file conf$$ 2>/dev/null; then
15612     as_ln_s='ln -s'
15613     # ... but there are two gotchas:
15614     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15615     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15616     # In both cases, we have to default to `cp -pR'.
15617     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15618       as_ln_s='cp -pR'
15619   elif ln conf$$.file conf$$ 2>/dev/null; then
15620     as_ln_s=ln
15621   else
15622     as_ln_s='cp -pR'
15623   fi
15624 else
15625   as_ln_s='cp -pR'
15626 fi
15627 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15628 rmdir conf$$.dir 2>/dev/null
15629
15630
15631 # as_fn_mkdir_p
15632 # -------------
15633 # Create "$as_dir" as a directory, including parents if necessary.
15634 as_fn_mkdir_p ()
15635 {
15636
15637   case $as_dir in #(
15638   -*) as_dir=./$as_dir;;
15639   esac
15640   test -d "$as_dir" || eval $as_mkdir_p || {
15641     as_dirs=
15642     while :; do
15643       case $as_dir in #(
15644       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15645       *) as_qdir=$as_dir;;
15646       esac
15647       as_dirs="'$as_qdir' $as_dirs"
15648       as_dir=`$as_dirname -- "$as_dir" ||
15649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15650          X"$as_dir" : 'X\(//\)[^/]' \| \
15651          X"$as_dir" : 'X\(//\)$' \| \
15652          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15653 $as_echo X"$as_dir" |
15654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15655             s//\1/
15656             q
15657           }
15658           /^X\(\/\/\)[^/].*/{
15659             s//\1/
15660             q
15661           }
15662           /^X\(\/\/\)$/{
15663             s//\1/
15664             q
15665           }
15666           /^X\(\/\).*/{
15667             s//\1/
15668             q
15669           }
15670           s/.*/./; q'`
15671       test -d "$as_dir" && break
15672     done
15673     test -z "$as_dirs" || eval "mkdir $as_dirs"
15674   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15675
15676
15677 } # as_fn_mkdir_p
15678 if mkdir -p . 2>/dev/null; then
15679   as_mkdir_p='mkdir -p "$as_dir"'
15680 else
15681   test -d ./-p && rmdir ./-p
15682   as_mkdir_p=false
15683 fi
15684
15685
15686 # as_fn_executable_p FILE
15687 # -----------------------
15688 # Test if FILE is an executable regular file.
15689 as_fn_executable_p ()
15690 {
15691   test -f "$1" && test -x "$1"
15692 } # as_fn_executable_p
15693 as_test_x='test -x'
15694 as_executable_p=as_fn_executable_p
15695
15696 # Sed expression to map a string onto a valid CPP name.
15697 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15698
15699 # Sed expression to map a string onto a valid variable name.
15700 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15701
15702
15703 exec 6>&1
15704 ## ----------------------------------- ##
15705 ## Main body of $CONFIG_STATUS script. ##
15706 ## ----------------------------------- ##
15707 _ASEOF
15708 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15709
15710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15711 # Save the log message, to keep $0 and so on meaningful, and to
15712 # report actual input values of CONFIG_FILES etc. instead of their
15713 # values after options handling.
15714 ac_log="
15715 This file was extended by file $as_me 5.39, which was
15716 generated by GNU Autoconf 2.69.  Invocation command line was
15717
15718   CONFIG_FILES    = $CONFIG_FILES
15719   CONFIG_HEADERS  = $CONFIG_HEADERS
15720   CONFIG_LINKS    = $CONFIG_LINKS
15721   CONFIG_COMMANDS = $CONFIG_COMMANDS
15722   $ $0 $@
15723
15724 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15725 "
15726
15727 _ACEOF
15728
15729 case $ac_config_files in *"
15730 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15731 esac
15732
15733 case $ac_config_headers in *"
15734 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15735 esac
15736
15737
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 # Files that config.status was made for.
15740 config_files="$ac_config_files"
15741 config_headers="$ac_config_headers"
15742 config_commands="$ac_config_commands"
15743
15744 _ACEOF
15745
15746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15747 ac_cs_usage="\
15748 \`$as_me' instantiates files and other configuration actions
15749 from templates according to the current configuration.  Unless the files
15750 and actions are specified as TAGs, all are instantiated by default.
15751
15752 Usage: $0 [OPTION]... [TAG]...
15753
15754   -h, --help       print this help, then exit
15755   -V, --version    print version number and configuration settings, then exit
15756       --config     print configuration, then exit
15757   -q, --quiet, --silent
15758                    do not print progress messages
15759   -d, --debug      don't remove temporary files
15760       --recheck    update $as_me by reconfiguring in the same conditions
15761       --file=FILE[:TEMPLATE]
15762                    instantiate the configuration file FILE
15763       --header=FILE[:TEMPLATE]
15764                    instantiate the configuration header FILE
15765
15766 Configuration files:
15767 $config_files
15768
15769 Configuration headers:
15770 $config_headers
15771
15772 Configuration commands:
15773 $config_commands
15774
15775 Report bugs to <christos@astron.com>."
15776
15777 _ACEOF
15778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15779 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15780 ac_cs_version="\\
15781 file config.status 5.39
15782 configured by $0, generated by GNU Autoconf 2.69,
15783   with options \\"\$ac_cs_config\\"
15784
15785 Copyright (C) 2012 Free Software Foundation, Inc.
15786 This config.status script is free software; the Free Software Foundation
15787 gives unlimited permission to copy, distribute and modify it."
15788
15789 ac_pwd='$ac_pwd'
15790 srcdir='$srcdir'
15791 INSTALL='$INSTALL'
15792 MKDIR_P='$MKDIR_P'
15793 AWK='$AWK'
15794 test -n "\$AWK" || AWK=awk
15795 _ACEOF
15796
15797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15798 # The default lists apply if the user does not specify any file.
15799 ac_need_defaults=:
15800 while test $# != 0
15801 do
15802   case $1 in
15803   --*=?*)
15804     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15805     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15806     ac_shift=:
15807     ;;
15808   --*=)
15809     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15810     ac_optarg=
15811     ac_shift=:
15812     ;;
15813   *)
15814     ac_option=$1
15815     ac_optarg=$2
15816     ac_shift=shift
15817     ;;
15818   esac
15819
15820   case $ac_option in
15821   # Handling of the options.
15822   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15823     ac_cs_recheck=: ;;
15824   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15825     $as_echo "$ac_cs_version"; exit ;;
15826   --config | --confi | --conf | --con | --co | --c )
15827     $as_echo "$ac_cs_config"; exit ;;
15828   --debug | --debu | --deb | --de | --d | -d )
15829     debug=: ;;
15830   --file | --fil | --fi | --f )
15831     $ac_shift
15832     case $ac_optarg in
15833     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15834     '') as_fn_error $? "missing file argument" ;;
15835     esac
15836     as_fn_append CONFIG_FILES " '$ac_optarg'"
15837     ac_need_defaults=false;;
15838   --header | --heade | --head | --hea )
15839     $ac_shift
15840     case $ac_optarg in
15841     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15842     esac
15843     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15844     ac_need_defaults=false;;
15845   --he | --h)
15846     # Conflict between --help and --header
15847     as_fn_error $? "ambiguous option: \`$1'
15848 Try \`$0 --help' for more information.";;
15849   --help | --hel | -h )
15850     $as_echo "$ac_cs_usage"; exit ;;
15851   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15852   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15853     ac_cs_silent=: ;;
15854
15855   # This is an error.
15856   -*) as_fn_error $? "unrecognized option: \`$1'
15857 Try \`$0 --help' for more information." ;;
15858
15859   *) as_fn_append ac_config_targets " $1"
15860      ac_need_defaults=false ;;
15861
15862   esac
15863   shift
15864 done
15865
15866 ac_configure_extra_args=
15867
15868 if $ac_cs_silent; then
15869   exec 6>/dev/null
15870   ac_configure_extra_args="$ac_configure_extra_args --silent"
15871 fi
15872
15873 _ACEOF
15874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15875 if \$ac_cs_recheck; then
15876   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15877   shift
15878   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15879   CONFIG_SHELL='$SHELL'
15880   export CONFIG_SHELL
15881   exec "\$@"
15882 fi
15883
15884 _ACEOF
15885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15886 exec 5>>config.log
15887 {
15888   echo
15889   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15890 ## Running $as_me. ##
15891 _ASBOX
15892   $as_echo "$ac_log"
15893 } >&5
15894
15895 _ACEOF
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897 #
15898 # INIT-COMMANDS
15899 #
15900 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15901
15902
15903 # The HP-UX ksh and POSIX shell print the target directory to stdout
15904 # if CDPATH is set.
15905 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15906
15907 sed_quote_subst='$sed_quote_subst'
15908 double_quote_subst='$double_quote_subst'
15909 delay_variable_subst='$delay_variable_subst'
15910 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15911 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15912 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15913 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15914 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15915 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15916 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15917 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15918 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15919 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15920 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15921 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15922 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15923 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15924 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15925 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15926 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15927 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15928 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15929 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15930 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15931 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15932 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15933 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15934 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15935 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15936 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15937 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15938 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15939 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15940 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15941 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15942 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15943 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15944 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15945 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15946 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15947 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15948 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15949 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15950 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15951 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15952 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15953 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15954 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15955 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15956 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15957 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15958 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15959 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15960 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15961 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15962 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15963 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15964 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15965 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15966 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15967 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15968 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"`'
15969 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15970 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15971 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15972 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15973 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15974 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15975 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15976 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15977 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15978 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15979 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15980 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15981 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15982 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15983 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15984 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15985 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15986 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15987 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15988 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15989 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15990 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15991 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15992 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15993 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15994 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15995 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15996 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15997 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15998 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15999 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16000 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16001 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16002 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16003 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16004 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16005 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16006 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16007 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16008 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16009 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16010 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16011 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16012 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16013 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16014 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16015 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16016 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16017 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16018 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16019 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16020 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16021 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16022 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16023 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16024 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16025 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16026 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16027 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16028 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16029 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16030 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16031 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16032 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16033 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16034 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16035 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16036 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16037 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16038 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16039 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16040 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16041 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16042 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16043 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16044 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16045
16046 LTCC='$LTCC'
16047 LTCFLAGS='$LTCFLAGS'
16048 compiler='$compiler_DEFAULT'
16049
16050 # A function that is used when there is no print builtin or printf.
16051 func_fallback_echo ()
16052 {
16053   eval 'cat <<_LTECHO_EOF
16054 \$1
16055 _LTECHO_EOF'
16056 }
16057
16058 # Quote evaled strings.
16059 for var in SHELL \
16060 ECHO \
16061 PATH_SEPARATOR \
16062 SED \
16063 GREP \
16064 EGREP \
16065 FGREP \
16066 LD \
16067 NM \
16068 LN_S \
16069 lt_SP2NL \
16070 lt_NL2SP \
16071 reload_flag \
16072 OBJDUMP \
16073 deplibs_check_method \
16074 file_magic_cmd \
16075 file_magic_glob \
16076 want_nocaseglob \
16077 DLLTOOL \
16078 sharedlib_from_linklib_cmd \
16079 AR \
16080 AR_FLAGS \
16081 archiver_list_spec \
16082 STRIP \
16083 RANLIB \
16084 CC \
16085 CFLAGS \
16086 compiler \
16087 lt_cv_sys_global_symbol_pipe \
16088 lt_cv_sys_global_symbol_to_cdecl \
16089 lt_cv_sys_global_symbol_to_import \
16090 lt_cv_sys_global_symbol_to_c_name_address \
16091 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16092 lt_cv_nm_interface \
16093 nm_file_list_spec \
16094 lt_cv_truncate_bin \
16095 lt_prog_compiler_no_builtin_flag \
16096 lt_prog_compiler_pic \
16097 lt_prog_compiler_wl \
16098 lt_prog_compiler_static \
16099 lt_cv_prog_compiler_c_o \
16100 need_locks \
16101 MANIFEST_TOOL \
16102 DSYMUTIL \
16103 NMEDIT \
16104 LIPO \
16105 OTOOL \
16106 OTOOL64 \
16107 shrext_cmds \
16108 export_dynamic_flag_spec \
16109 whole_archive_flag_spec \
16110 compiler_needs_object \
16111 with_gnu_ld \
16112 allow_undefined_flag \
16113 no_undefined_flag \
16114 hardcode_libdir_flag_spec \
16115 hardcode_libdir_separator \
16116 exclude_expsyms \
16117 include_expsyms \
16118 file_list_spec \
16119 variables_saved_for_relink \
16120 libname_spec \
16121 library_names_spec \
16122 soname_spec \
16123 install_override_mode \
16124 finish_eval \
16125 old_striplib \
16126 striplib; do
16127     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16128     *[\\\\\\\`\\"\\\$]*)
16129       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16130       ;;
16131     *)
16132       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16133       ;;
16134     esac
16135 done
16136
16137 # Double-quote double-evaled strings.
16138 for var in reload_cmds \
16139 old_postinstall_cmds \
16140 old_postuninstall_cmds \
16141 old_archive_cmds \
16142 extract_expsyms_cmds \
16143 old_archive_from_new_cmds \
16144 old_archive_from_expsyms_cmds \
16145 archive_cmds \
16146 archive_expsym_cmds \
16147 module_cmds \
16148 module_expsym_cmds \
16149 export_symbols_cmds \
16150 prelink_cmds \
16151 postlink_cmds \
16152 postinstall_cmds \
16153 postuninstall_cmds \
16154 finish_cmds \
16155 sys_lib_search_path_spec \
16156 configure_time_dlsearch_path \
16157 configure_time_lt_sys_library_path; do
16158     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16159     *[\\\\\\\`\\"\\\$]*)
16160       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16161       ;;
16162     *)
16163       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16164       ;;
16165     esac
16166 done
16167
16168 ac_aux_dir='$ac_aux_dir'
16169
16170 # See if we are running on zsh, and set the options that allow our
16171 # commands through without removal of \ escapes INIT.
16172 if test -n "\${ZSH_VERSION+set}"; then
16173    setopt NO_GLOB_SUBST
16174 fi
16175
16176
16177     PACKAGE='$PACKAGE'
16178     VERSION='$VERSION'
16179     RM='$RM'
16180     ofile='$ofile'
16181
16182
16183
16184
16185 _ACEOF
16186
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188
16189 # Handling of arguments.
16190 for ac_config_target in $ac_config_targets
16191 do
16192   case $ac_config_target in
16193     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16194     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16195     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16196     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16197     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16198     "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
16199     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16200     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16201     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16202     "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
16203
16204   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16205   esac
16206 done
16207
16208
16209 # If the user did not use the arguments to specify the items to instantiate,
16210 # then the envvar interface is used.  Set only those that are not.
16211 # We use the long form for the default assignment because of an extremely
16212 # bizarre bug on SunOS 4.1.3.
16213 if $ac_need_defaults; then
16214   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16215   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16216   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16217 fi
16218
16219 # Have a temporary directory for convenience.  Make it in the build tree
16220 # simply because there is no reason against having it here, and in addition,
16221 # creating and moving files from /tmp can sometimes cause problems.
16222 # Hook for its removal unless debugging.
16223 # Note that there is a small window in which the directory will not be cleaned:
16224 # after its creation but before its name has been assigned to `$tmp'.
16225 $debug ||
16226 {
16227   tmp= ac_tmp=
16228   trap 'exit_status=$?
16229   : "${ac_tmp:=$tmp}"
16230   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16231 ' 0
16232   trap 'as_fn_exit 1' 1 2 13 15
16233 }
16234 # Create a (secure) tmp directory for tmp files.
16235
16236 {
16237   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16238   test -d "$tmp"
16239 }  ||
16240 {
16241   tmp=./conf$$-$RANDOM
16242   (umask 077 && mkdir "$tmp")
16243 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16244 ac_tmp=$tmp
16245
16246 # Set up the scripts for CONFIG_FILES section.
16247 # No need to generate them if there are no CONFIG_FILES.
16248 # This happens for instance with `./config.status config.h'.
16249 if test -n "$CONFIG_FILES"; then
16250
16251
16252 ac_cr=`echo X | tr X '\015'`
16253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16254 # But we know of no other shell where ac_cr would be empty at this
16255 # point, so we can use a bashism as a fallback.
16256 if test "x$ac_cr" = x; then
16257   eval ac_cr=\$\'\\r\'
16258 fi
16259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16261   ac_cs_awk_cr='\\r'
16262 else
16263   ac_cs_awk_cr=$ac_cr
16264 fi
16265
16266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16267 _ACEOF
16268
16269
16270 {
16271   echo "cat >conf$$subs.awk <<_ACEOF" &&
16272   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16273   echo "_ACEOF"
16274 } >conf$$subs.sh ||
16275   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16277 ac_delim='%!_!# '
16278 for ac_last_try in false false false false false :; do
16279   . ./conf$$subs.sh ||
16280     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16281
16282   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16283   if test $ac_delim_n = $ac_delim_num; then
16284     break
16285   elif $ac_last_try; then
16286     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16287   else
16288     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16289   fi
16290 done
16291 rm -f conf$$subs.sh
16292
16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16295 _ACEOF
16296 sed -n '
16297 h
16298 s/^/S["/; s/!.*/"]=/
16299 p
16300 g
16301 s/^[^!]*!//
16302 :repl
16303 t repl
16304 s/'"$ac_delim"'$//
16305 t delim
16306 :nl
16307 h
16308 s/\(.\{148\}\)..*/\1/
16309 t more1
16310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16311 p
16312 n
16313 b repl
16314 :more1
16315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16316 p
16317 g
16318 s/.\{148\}//
16319 t nl
16320 :delim
16321 h
16322 s/\(.\{148\}\)..*/\1/
16323 t more2
16324 s/["\\]/\\&/g; s/^/"/; s/$/"/
16325 p
16326 b
16327 :more2
16328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16329 p
16330 g
16331 s/.\{148\}//
16332 t delim
16333 ' <conf$$subs.awk | sed '
16334 /^[^""]/{
16335   N
16336   s/\n//
16337 }
16338 ' >>$CONFIG_STATUS || ac_write_fail=1
16339 rm -f conf$$subs.awk
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341 _ACAWK
16342 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16343   for (key in S) S_is_set[key] = 1
16344   FS = "\a"
16345
16346 }
16347 {
16348   line = $ 0
16349   nfields = split(line, field, "@")
16350   substed = 0
16351   len = length(field[1])
16352   for (i = 2; i < nfields; i++) {
16353     key = field[i]
16354     keylen = length(key)
16355     if (S_is_set[key]) {
16356       value = S[key]
16357       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16358       len += length(value) + length(field[++i])
16359       substed = 1
16360     } else
16361       len += 1 + keylen
16362   }
16363
16364   print line
16365 }
16366
16367 _ACAWK
16368 _ACEOF
16369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16370 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16371   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16372 else
16373   cat
16374 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16375   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16376 _ACEOF
16377
16378 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16379 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16380 # trailing colons and then remove the whole line if VPATH becomes empty
16381 # (actually we leave an empty line to preserve line numbers).
16382 if test "x$srcdir" = x.; then
16383   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16384 h
16385 s///
16386 s/^/:/
16387 s/[      ]*$/:/
16388 s/:\$(srcdir):/:/g
16389 s/:\${srcdir}:/:/g
16390 s/:@srcdir@:/:/g
16391 s/^:*//
16392 s/:*$//
16393 x
16394 s/\(=[   ]*\).*/\1/
16395 G
16396 s/\n//
16397 s/^[^=]*=[       ]*$//
16398 }'
16399 fi
16400
16401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16402 fi # test -n "$CONFIG_FILES"
16403
16404 # Set up the scripts for CONFIG_HEADERS section.
16405 # No need to generate them if there are no CONFIG_HEADERS.
16406 # This happens for instance with `./config.status Makefile'.
16407 if test -n "$CONFIG_HEADERS"; then
16408 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16409 BEGIN {
16410 _ACEOF
16411
16412 # Transform confdefs.h into an awk script `defines.awk', embedded as
16413 # here-document in config.status, that substitutes the proper values into
16414 # config.h.in to produce config.h.
16415
16416 # Create a delimiter string that does not exist in confdefs.h, to ease
16417 # handling of long lines.
16418 ac_delim='%!_!# '
16419 for ac_last_try in false false :; do
16420   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16421   if test -z "$ac_tt"; then
16422     break
16423   elif $ac_last_try; then
16424     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16425   else
16426     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16427   fi
16428 done
16429
16430 # For the awk script, D is an array of macro values keyed by name,
16431 # likewise P contains macro parameters if any.  Preserve backslash
16432 # newline sequences.
16433
16434 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16435 sed -n '
16436 s/.\{148\}/&'"$ac_delim"'/g
16437 t rset
16438 :rset
16439 s/^[     ]*#[    ]*define[       ][      ]*/ /
16440 t def
16441 d
16442 :def
16443 s/\\$//
16444 t bsnl
16445 s/["\\]/\\&/g
16446 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16447 D["\1"]=" \3"/p
16448 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16449 d
16450 :bsnl
16451 s/["\\]/\\&/g
16452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16453 D["\1"]=" \3\\\\\\n"\\/p
16454 t cont
16455 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16456 t cont
16457 d
16458 :cont
16459 n
16460 s/.\{148\}/&'"$ac_delim"'/g
16461 t clear
16462 :clear
16463 s/\\$//
16464 t bsnlc
16465 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16466 d
16467 :bsnlc
16468 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16469 b cont
16470 ' <confdefs.h | sed '
16471 s/'"$ac_delim"'/"\\\
16472 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16473
16474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16475   for (key in D) D_is_set[key] = 1
16476   FS = "\a"
16477 }
16478 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16479   line = \$ 0
16480   split(line, arg, " ")
16481   if (arg[1] == "#") {
16482     defundef = arg[2]
16483     mac1 = arg[3]
16484   } else {
16485     defundef = substr(arg[1], 2)
16486     mac1 = arg[2]
16487   }
16488   split(mac1, mac2, "(") #)
16489   macro = mac2[1]
16490   prefix = substr(line, 1, index(line, defundef) - 1)
16491   if (D_is_set[macro]) {
16492     # Preserve the white space surrounding the "#".
16493     print prefix "define", macro P[macro] D[macro]
16494     next
16495   } else {
16496     # Replace #undef with comments.  This is necessary, for example,
16497     # in the case of _POSIX_SOURCE, which is predefined and required
16498     # on some systems where configure will not decide to define it.
16499     if (defundef == "undef") {
16500       print "/*", prefix defundef, macro, "*/"
16501       next
16502     }
16503   }
16504 }
16505 { print }
16506 _ACAWK
16507 _ACEOF
16508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16509   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16510 fi # test -n "$CONFIG_HEADERS"
16511
16512
16513 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16514 shift
16515 for ac_tag
16516 do
16517   case $ac_tag in
16518   :[FHLC]) ac_mode=$ac_tag; continue;;
16519   esac
16520   case $ac_mode$ac_tag in
16521   :[FHL]*:*);;
16522   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16523   :[FH]-) ac_tag=-:-;;
16524   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16525   esac
16526   ac_save_IFS=$IFS
16527   IFS=:
16528   set x $ac_tag
16529   IFS=$ac_save_IFS
16530   shift
16531   ac_file=$1
16532   shift
16533
16534   case $ac_mode in
16535   :L) ac_source=$1;;
16536   :[FH])
16537     ac_file_inputs=
16538     for ac_f
16539     do
16540       case $ac_f in
16541       -) ac_f="$ac_tmp/stdin";;
16542       *) # Look for the file first in the build tree, then in the source tree
16543          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16544          # because $ac_f cannot contain `:'.
16545          test -f "$ac_f" ||
16546            case $ac_f in
16547            [\\/$]*) false;;
16548            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16549            esac ||
16550            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16551       esac
16552       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16553       as_fn_append ac_file_inputs " '$ac_f'"
16554     done
16555
16556     # Let's still pretend it is `configure' which instantiates (i.e., don't
16557     # use $as_me), people would be surprised to read:
16558     #    /* config.h.  Generated by config.status.  */
16559     configure_input='Generated from '`
16560           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16561         `' by configure.'
16562     if test x"$ac_file" != x-; then
16563       configure_input="$ac_file.  $configure_input"
16564       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16565 $as_echo "$as_me: creating $ac_file" >&6;}
16566     fi
16567     # Neutralize special characters interpreted by sed in replacement strings.
16568     case $configure_input in #(
16569     *\&* | *\|* | *\\* )
16570        ac_sed_conf_input=`$as_echo "$configure_input" |
16571        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16572     *) ac_sed_conf_input=$configure_input;;
16573     esac
16574
16575     case $ac_tag in
16576     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16577       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16578     esac
16579     ;;
16580   esac
16581
16582   ac_dir=`$as_dirname -- "$ac_file" ||
16583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16584          X"$ac_file" : 'X\(//\)[^/]' \| \
16585          X"$ac_file" : 'X\(//\)$' \| \
16586          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16587 $as_echo X"$ac_file" |
16588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16589             s//\1/
16590             q
16591           }
16592           /^X\(\/\/\)[^/].*/{
16593             s//\1/
16594             q
16595           }
16596           /^X\(\/\/\)$/{
16597             s//\1/
16598             q
16599           }
16600           /^X\(\/\).*/{
16601             s//\1/
16602             q
16603           }
16604           s/.*/./; q'`
16605   as_dir="$ac_dir"; as_fn_mkdir_p
16606   ac_builddir=.
16607
16608 case "$ac_dir" in
16609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16610 *)
16611   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16612   # A ".." for each directory in $ac_dir_suffix.
16613   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16614   case $ac_top_builddir_sub in
16615   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16616   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16617   esac ;;
16618 esac
16619 ac_abs_top_builddir=$ac_pwd
16620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16621 # for backward compatibility:
16622 ac_top_builddir=$ac_top_build_prefix
16623
16624 case $srcdir in
16625   .)  # We are building in place.
16626     ac_srcdir=.
16627     ac_top_srcdir=$ac_top_builddir_sub
16628     ac_abs_top_srcdir=$ac_pwd ;;
16629   [\\/]* | ?:[\\/]* )  # Absolute name.
16630     ac_srcdir=$srcdir$ac_dir_suffix;
16631     ac_top_srcdir=$srcdir
16632     ac_abs_top_srcdir=$srcdir ;;
16633   *) # Relative name.
16634     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16635     ac_top_srcdir=$ac_top_build_prefix$srcdir
16636     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16637 esac
16638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16639
16640
16641   case $ac_mode in
16642   :F)
16643   #
16644   # CONFIG_FILE
16645   #
16646
16647   case $INSTALL in
16648   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16649   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16650   esac
16651   ac_MKDIR_P=$MKDIR_P
16652   case $MKDIR_P in
16653   [\\/$]* | ?:[\\/]* ) ;;
16654   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16655   esac
16656 _ACEOF
16657
16658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16659 # If the template does not know about datarootdir, expand it.
16660 # FIXME: This hack should be removed a few years after 2.60.
16661 ac_datarootdir_hack=; ac_datarootdir_seen=
16662 ac_sed_dataroot='
16663 /datarootdir/ {
16664   p
16665   q
16666 }
16667 /@datadir@/p
16668 /@docdir@/p
16669 /@infodir@/p
16670 /@localedir@/p
16671 /@mandir@/p'
16672 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16673 *datarootdir*) ac_datarootdir_seen=yes;;
16674 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16675   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16676 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16677 _ACEOF
16678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16679   ac_datarootdir_hack='
16680   s&@datadir@&$datadir&g
16681   s&@docdir@&$docdir&g
16682   s&@infodir@&$infodir&g
16683   s&@localedir@&$localedir&g
16684   s&@mandir@&$mandir&g
16685   s&\\\${datarootdir}&$datarootdir&g' ;;
16686 esac
16687 _ACEOF
16688
16689 # Neutralize VPATH when `$srcdir' = `.'.
16690 # Shell code in configure.ac might set extrasub.
16691 # FIXME: do we really want to maintain this feature?
16692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16693 ac_sed_extra="$ac_vpsub
16694 $extrasub
16695 _ACEOF
16696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16697 :t
16698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16699 s|@configure_input@|$ac_sed_conf_input|;t t
16700 s&@top_builddir@&$ac_top_builddir_sub&;t t
16701 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16702 s&@srcdir@&$ac_srcdir&;t t
16703 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16704 s&@top_srcdir@&$ac_top_srcdir&;t t
16705 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16706 s&@builddir@&$ac_builddir&;t t
16707 s&@abs_builddir@&$ac_abs_builddir&;t t
16708 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16709 s&@INSTALL@&$ac_INSTALL&;t t
16710 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16711 $ac_datarootdir_hack
16712 "
16713 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16714   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16715
16716 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16717   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16718   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16719       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16720   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16721 which seems to be undefined.  Please make sure it is defined" >&5
16722 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16723 which seems to be undefined.  Please make sure it is defined" >&2;}
16724
16725   rm -f "$ac_tmp/stdin"
16726   case $ac_file in
16727   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16728   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16729   esac \
16730   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16731  ;;
16732   :H)
16733   #
16734   # CONFIG_HEADER
16735   #
16736   if test x"$ac_file" != x-; then
16737     {
16738       $as_echo "/* $configure_input  */" \
16739       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16740     } >"$ac_tmp/config.h" \
16741       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16742     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16743       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16744 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16745     else
16746       rm -f "$ac_file"
16747       mv "$ac_tmp/config.h" "$ac_file" \
16748         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16749     fi
16750   else
16751     $as_echo "/* $configure_input  */" \
16752       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16753       || as_fn_error $? "could not create -" "$LINENO" 5
16754   fi
16755 # Compute "$ac_file"'s index in $config_headers.
16756 _am_arg="$ac_file"
16757 _am_stamp_count=1
16758 for _am_header in $config_headers :; do
16759   case $_am_header in
16760     $_am_arg | $_am_arg:* )
16761       break ;;
16762     * )
16763       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16764   esac
16765 done
16766 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16767 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16768          X"$_am_arg" : 'X\(//\)[^/]' \| \
16769          X"$_am_arg" : 'X\(//\)$' \| \
16770          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16771 $as_echo X"$_am_arg" |
16772     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16773             s//\1/
16774             q
16775           }
16776           /^X\(\/\/\)[^/].*/{
16777             s//\1/
16778             q
16779           }
16780           /^X\(\/\/\)$/{
16781             s//\1/
16782             q
16783           }
16784           /^X\(\/\).*/{
16785             s//\1/
16786             q
16787           }
16788           s/.*/./; q'`/stamp-h$_am_stamp_count
16789  ;;
16790
16791   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16792 $as_echo "$as_me: executing $ac_file commands" >&6;}
16793  ;;
16794   esac
16795
16796
16797   case $ac_file$ac_mode in
16798     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16799   # Older Autoconf quotes --file arguments for eval, but not when files
16800   # are listed without --file.  Let's play safe and only enable the eval
16801   # if we detect the quoting.
16802   # TODO: see whether this extra hack can be removed once we start
16803   # requiring Autoconf 2.70 or later.
16804   case $CONFIG_FILES in #(
16805   *\'*) :
16806     eval set x "$CONFIG_FILES" ;; #(
16807   *) :
16808     set x $CONFIG_FILES ;; #(
16809   *) :
16810      ;;
16811 esac
16812   shift
16813   # Used to flag and report bootstrapping failures.
16814   am_rc=0
16815   for am_mf
16816   do
16817     # Strip MF so we end up with the name of the file.
16818     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16819     # Check whether this is an Automake generated Makefile which includes
16820     # dependency-tracking related rules and includes.
16821     # Grep'ing the whole file directly is not great: AIX grep has a line
16822     # limit of 2048, but all sed's we know have understand at least 4000.
16823     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16824       || continue
16825     am_dirpart=`$as_dirname -- "$am_mf" ||
16826 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16827          X"$am_mf" : 'X\(//\)[^/]' \| \
16828          X"$am_mf" : 'X\(//\)$' \| \
16829          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16830 $as_echo X"$am_mf" |
16831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16832             s//\1/
16833             q
16834           }
16835           /^X\(\/\/\)[^/].*/{
16836             s//\1/
16837             q
16838           }
16839           /^X\(\/\/\)$/{
16840             s//\1/
16841             q
16842           }
16843           /^X\(\/\).*/{
16844             s//\1/
16845             q
16846           }
16847           s/.*/./; q'`
16848     am_filepart=`$as_basename -- "$am_mf" ||
16849 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16850          X"$am_mf" : 'X\(//\)$' \| \
16851          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16852 $as_echo X/"$am_mf" |
16853     sed '/^.*\/\([^/][^/]*\)\/*$/{
16854             s//\1/
16855             q
16856           }
16857           /^X\/\(\/\/\)$/{
16858             s//\1/
16859             q
16860           }
16861           /^X\/\(\/\).*/{
16862             s//\1/
16863             q
16864           }
16865           s/.*/./; q'`
16866     { echo "$as_me:$LINENO: cd "$am_dirpart" \
16867       && sed -e '/# am--include-marker/d' "$am_filepart" \
16868         | $MAKE -f - am--depfiles" >&5
16869    (cd "$am_dirpart" \
16870       && sed -e '/# am--include-marker/d' "$am_filepart" \
16871         | $MAKE -f - am--depfiles) >&5 2>&5
16872    ac_status=$?
16873    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874    (exit $ac_status); } || am_rc=$?
16875   done
16876   if test $am_rc -ne 0; then
16877     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16879 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16880     for automatic dependency tracking.  Try re-running configure with the
16881     '--disable-dependency-tracking' option to at least be able to build
16882     the package (albeit without support for automatic dependency tracking).
16883 See \`config.log' for more details" "$LINENO" 5; }
16884   fi
16885   { am_dirpart=; unset am_dirpart;}
16886   { am_filepart=; unset am_filepart;}
16887   { am_mf=; unset am_mf;}
16888   { am_rc=; unset am_rc;}
16889   rm -f conftest-deps.mk
16890 }
16891  ;;
16892     "libtool":C)
16893
16894     # See if we are running on zsh, and set the options that allow our
16895     # commands through without removal of \ escapes.
16896     if test -n "${ZSH_VERSION+set}"; then
16897       setopt NO_GLOB_SUBST
16898     fi
16899
16900     cfgfile=${ofile}T
16901     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16902     $RM "$cfgfile"
16903
16904     cat <<_LT_EOF >> "$cfgfile"
16905 #! $SHELL
16906 # Generated automatically by $as_me ($PACKAGE) $VERSION
16907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16908 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16909
16910 # Provide generalized library-building support services.
16911 # Written by Gordon Matzigkeit, 1996
16912
16913 # Copyright (C) 2014 Free Software Foundation, Inc.
16914 # This is free software; see the source for copying conditions.  There is NO
16915 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16916
16917 # GNU Libtool is free software; you can redistribute it and/or modify
16918 # it under the terms of the GNU General Public License as published by
16919 # the Free Software Foundation; either version 2 of of the License, or
16920 # (at your option) any later version.
16921 #
16922 # As a special exception to the GNU General Public License, if you
16923 # distribute this file as part of a program or library that is built
16924 # using GNU Libtool, you may include this file under the  same
16925 # distribution terms that you use for the rest of that program.
16926 #
16927 # GNU Libtool is distributed in the hope that it will be useful, but
16928 # WITHOUT ANY WARRANTY; without even the implied warranty of
16929 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16930 # GNU General Public License for more details.
16931 #
16932 # You should have received a copy of the GNU General Public License
16933 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16934
16935
16936 # The names of the tagged configurations supported by this script.
16937 available_tags=''
16938
16939 # Configured defaults for sys_lib_dlsearch_path munging.
16940 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16941
16942 # ### BEGIN LIBTOOL CONFIG
16943
16944 # Which release of libtool.m4 was used?
16945 macro_version=$macro_version
16946 macro_revision=$macro_revision
16947
16948 # Whether or not to build static libraries.
16949 build_old_libs=$enable_static
16950
16951 # What type of objects to build.
16952 pic_mode=$pic_mode
16953
16954 # Whether or not to build shared libraries.
16955 build_libtool_libs=$enable_shared
16956
16957 # Whether or not to optimize for fast installation.
16958 fast_install=$enable_fast_install
16959
16960 # Shared archive member basename,for filename based shared library versioning on AIX.
16961 shared_archive_member_spec=$shared_archive_member_spec
16962
16963 # Shell to use when invoking shell scripts.
16964 SHELL=$lt_SHELL
16965
16966 # An echo program that protects backslashes.
16967 ECHO=$lt_ECHO
16968
16969 # The PATH separator for the build system.
16970 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16971
16972 # The host system.
16973 host_alias=$host_alias
16974 host=$host
16975 host_os=$host_os
16976
16977 # The build system.
16978 build_alias=$build_alias
16979 build=$build
16980 build_os=$build_os
16981
16982 # A sed program that does not truncate output.
16983 SED=$lt_SED
16984
16985 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16986 Xsed="\$SED -e 1s/^X//"
16987
16988 # A grep program that handles long lines.
16989 GREP=$lt_GREP
16990
16991 # An ERE matcher.
16992 EGREP=$lt_EGREP
16993
16994 # A literal string matcher.
16995 FGREP=$lt_FGREP
16996
16997 # A BSD- or MS-compatible name lister.
16998 NM=$lt_NM
16999
17000 # Whether we need soft or hard links.
17001 LN_S=$lt_LN_S
17002
17003 # What is the maximum length of a command?
17004 max_cmd_len=$max_cmd_len
17005
17006 # Object file suffix (normally "o").
17007 objext=$ac_objext
17008
17009 # Executable file suffix (normally "").
17010 exeext=$exeext
17011
17012 # whether the shell understands "unset".
17013 lt_unset=$lt_unset
17014
17015 # turn spaces into newlines.
17016 SP2NL=$lt_lt_SP2NL
17017
17018 # turn newlines into spaces.
17019 NL2SP=$lt_lt_NL2SP
17020
17021 # convert \$build file names to \$host format.
17022 to_host_file_cmd=$lt_cv_to_host_file_cmd
17023
17024 # convert \$build files to toolchain format.
17025 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17026
17027 # An object symbol dumper.
17028 OBJDUMP=$lt_OBJDUMP
17029
17030 # Method to check whether dependent libraries are shared objects.
17031 deplibs_check_method=$lt_deplibs_check_method
17032
17033 # Command to use when deplibs_check_method = "file_magic".
17034 file_magic_cmd=$lt_file_magic_cmd
17035
17036 # How to find potential files when deplibs_check_method = "file_magic".
17037 file_magic_glob=$lt_file_magic_glob
17038
17039 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17040 want_nocaseglob=$lt_want_nocaseglob
17041
17042 # DLL creation program.
17043 DLLTOOL=$lt_DLLTOOL
17044
17045 # Command to associate shared and link libraries.
17046 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17047
17048 # The archiver.
17049 AR=$lt_AR
17050
17051 # Flags to create an archive.
17052 AR_FLAGS=$lt_AR_FLAGS
17053
17054 # How to feed a file listing to the archiver.
17055 archiver_list_spec=$lt_archiver_list_spec
17056
17057 # A symbol stripping program.
17058 STRIP=$lt_STRIP
17059
17060 # Commands used to install an old-style archive.
17061 RANLIB=$lt_RANLIB
17062 old_postinstall_cmds=$lt_old_postinstall_cmds
17063 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17064
17065 # Whether to use a lock for old archive extraction.
17066 lock_old_archive_extraction=$lock_old_archive_extraction
17067
17068 # A C compiler.
17069 LTCC=$lt_CC
17070
17071 # LTCC compiler flags.
17072 LTCFLAGS=$lt_CFLAGS
17073
17074 # Take the output of nm and produce a listing of raw symbols and C names.
17075 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17076
17077 # Transform the output of nm in a proper C declaration.
17078 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17079
17080 # Transform the output of nm into a list of symbols to manually relocate.
17081 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17082
17083 # Transform the output of nm in a C name address pair.
17084 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17085
17086 # Transform the output of nm in a C name address pair when lib prefix is needed.
17087 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17088
17089 # The name lister interface.
17090 nm_interface=$lt_lt_cv_nm_interface
17091
17092 # Specify filename containing input files for \$NM.
17093 nm_file_list_spec=$lt_nm_file_list_spec
17094
17095 # The root where to search for dependent libraries,and where our libraries should be installed.
17096 lt_sysroot=$lt_sysroot
17097
17098 # Command to truncate a binary pipe.
17099 lt_truncate_bin=$lt_lt_cv_truncate_bin
17100
17101 # The name of the directory that contains temporary libtool files.
17102 objdir=$objdir
17103
17104 # Used to examine libraries when file_magic_cmd begins with "file".
17105 MAGIC_CMD=$MAGIC_CMD
17106
17107 # Must we lock files when doing compilation?
17108 need_locks=$lt_need_locks
17109
17110 # Manifest tool.
17111 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17112
17113 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17114 DSYMUTIL=$lt_DSYMUTIL
17115
17116 # Tool to change global to local symbols on Mac OS X.
17117 NMEDIT=$lt_NMEDIT
17118
17119 # Tool to manipulate fat objects and archives on Mac OS X.
17120 LIPO=$lt_LIPO
17121
17122 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17123 OTOOL=$lt_OTOOL
17124
17125 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17126 OTOOL64=$lt_OTOOL64
17127
17128 # Old archive suffix (normally "a").
17129 libext=$libext
17130
17131 # Shared library suffix (normally ".so").
17132 shrext_cmds=$lt_shrext_cmds
17133
17134 # The commands to extract the exported symbol list from a shared archive.
17135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17136
17137 # Variables whose values should be saved in libtool wrapper scripts and
17138 # restored at link time.
17139 variables_saved_for_relink=$lt_variables_saved_for_relink
17140
17141 # Do we need the "lib" prefix for modules?
17142 need_lib_prefix=$need_lib_prefix
17143
17144 # Do we need a version for libraries?
17145 need_version=$need_version
17146
17147 # Library versioning type.
17148 version_type=$version_type
17149
17150 # Shared library runtime path variable.
17151 runpath_var=$runpath_var
17152
17153 # Shared library path variable.
17154 shlibpath_var=$shlibpath_var
17155
17156 # Is shlibpath searched before the hard-coded library search path?
17157 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17158
17159 # Format of library name prefix.
17160 libname_spec=$lt_libname_spec
17161
17162 # List of archive names.  First name is the real one, the rest are links.
17163 # The last name is the one that the linker finds with -lNAME
17164 library_names_spec=$lt_library_names_spec
17165
17166 # The coded name of the library, if different from the real name.
17167 soname_spec=$lt_soname_spec
17168
17169 # Permission mode override for installation of shared libraries.
17170 install_override_mode=$lt_install_override_mode
17171
17172 # Command to use after installation of a shared archive.
17173 postinstall_cmds=$lt_postinstall_cmds
17174
17175 # Command to use after uninstallation of a shared archive.
17176 postuninstall_cmds=$lt_postuninstall_cmds
17177
17178 # Commands used to finish a libtool library installation in a directory.
17179 finish_cmds=$lt_finish_cmds
17180
17181 # As "finish_cmds", except a single script fragment to be evaled but
17182 # not shown.
17183 finish_eval=$lt_finish_eval
17184
17185 # Whether we should hardcode library paths into libraries.
17186 hardcode_into_libs=$hardcode_into_libs
17187
17188 # Compile-time system search path for libraries.
17189 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17190
17191 # Detected run-time system search path for libraries.
17192 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17193
17194 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17195 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17196
17197 # Whether dlopen is supported.
17198 dlopen_support=$enable_dlopen
17199
17200 # Whether dlopen of programs is supported.
17201 dlopen_self=$enable_dlopen_self
17202
17203 # Whether dlopen of statically linked programs is supported.
17204 dlopen_self_static=$enable_dlopen_self_static
17205
17206 # Commands to strip libraries.
17207 old_striplib=$lt_old_striplib
17208 striplib=$lt_striplib
17209
17210
17211 # The linker used to build libraries.
17212 LD=$lt_LD
17213
17214 # How to create reloadable object files.
17215 reload_flag=$lt_reload_flag
17216 reload_cmds=$lt_reload_cmds
17217
17218 # Commands used to build an old-style archive.
17219 old_archive_cmds=$lt_old_archive_cmds
17220
17221 # A language specific compiler.
17222 CC=$lt_compiler
17223
17224 # Is the compiler the GNU compiler?
17225 with_gcc=$GCC
17226
17227 # Compiler flag to turn off builtin functions.
17228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17229
17230 # Additional compiler flags for building library objects.
17231 pic_flag=$lt_lt_prog_compiler_pic
17232
17233 # How to pass a linker flag through the compiler.
17234 wl=$lt_lt_prog_compiler_wl
17235
17236 # Compiler flag to prevent dynamic linking.
17237 link_static_flag=$lt_lt_prog_compiler_static
17238
17239 # Does compiler simultaneously support -c and -o options?
17240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17241
17242 # Whether or not to add -lc for building shared libraries.
17243 build_libtool_need_lc=$archive_cmds_need_lc
17244
17245 # Whether or not to disallow shared libs when runtime libs are static.
17246 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17247
17248 # Compiler flag to allow reflexive dlopens.
17249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17250
17251 # Compiler flag to generate shared objects directly from archives.
17252 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17253
17254 # Whether the compiler copes with passing no objects directly.
17255 compiler_needs_object=$lt_compiler_needs_object
17256
17257 # Create an old-style archive from a shared archive.
17258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17259
17260 # Create a temporary old-style archive to link instead of a shared archive.
17261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17262
17263 # Commands used to build a shared archive.
17264 archive_cmds=$lt_archive_cmds
17265 archive_expsym_cmds=$lt_archive_expsym_cmds
17266
17267 # Commands used to build a loadable module if different from building
17268 # a shared archive.
17269 module_cmds=$lt_module_cmds
17270 module_expsym_cmds=$lt_module_expsym_cmds
17271
17272 # Whether we are building with GNU ld or not.
17273 with_gnu_ld=$lt_with_gnu_ld
17274
17275 # Flag that allows shared libraries with undefined symbols to be built.
17276 allow_undefined_flag=$lt_allow_undefined_flag
17277
17278 # Flag that enforces no undefined symbols.
17279 no_undefined_flag=$lt_no_undefined_flag
17280
17281 # Flag to hardcode \$libdir into a binary during linking.
17282 # This must work even if \$libdir does not exist
17283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17284
17285 # Whether we need a single "-rpath" flag with a separated argument.
17286 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17287
17288 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17289 # DIR into the resulting binary.
17290 hardcode_direct=$hardcode_direct
17291
17292 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17293 # DIR into the resulting binary and the resulting library dependency is
17294 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17295 # library is relocated.
17296 hardcode_direct_absolute=$hardcode_direct_absolute
17297
17298 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17299 # into the resulting binary.
17300 hardcode_minus_L=$hardcode_minus_L
17301
17302 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17303 # into the resulting binary.
17304 hardcode_shlibpath_var=$hardcode_shlibpath_var
17305
17306 # Set to "yes" if building a shared library automatically hardcodes DIR
17307 # into the library and all subsequent libraries and executables linked
17308 # against it.
17309 hardcode_automatic=$hardcode_automatic
17310
17311 # Set to yes if linker adds runtime paths of dependent libraries
17312 # to runtime path list.
17313 inherit_rpath=$inherit_rpath
17314
17315 # Whether libtool must link a program against all its dependency libraries.
17316 link_all_deplibs=$link_all_deplibs
17317
17318 # Set to "yes" if exported symbols are required.
17319 always_export_symbols=$always_export_symbols
17320
17321 # The commands to list exported symbols.
17322 export_symbols_cmds=$lt_export_symbols_cmds
17323
17324 # Symbols that should not be listed in the preloaded symbols.
17325 exclude_expsyms=$lt_exclude_expsyms
17326
17327 # Symbols that must always be exported.
17328 include_expsyms=$lt_include_expsyms
17329
17330 # Commands necessary for linking programs (against libraries) with templates.
17331 prelink_cmds=$lt_prelink_cmds
17332
17333 # Commands necessary for finishing linking programs.
17334 postlink_cmds=$lt_postlink_cmds
17335
17336 # Specify filename containing input files.
17337 file_list_spec=$lt_file_list_spec
17338
17339 # How to hardcode a shared library path into an executable.
17340 hardcode_action=$hardcode_action
17341
17342 # ### END LIBTOOL CONFIG
17343
17344 _LT_EOF
17345
17346     cat <<'_LT_EOF' >> "$cfgfile"
17347
17348 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17349
17350 # func_munge_path_list VARIABLE PATH
17351 # -----------------------------------
17352 # VARIABLE is name of variable containing _space_ separated list of
17353 # directories to be munged by the contents of PATH, which is string
17354 # having a format:
17355 # "DIR[:DIR]:"
17356 #       string "DIR[ DIR]" will be prepended to VARIABLE
17357 # ":DIR[:DIR]"
17358 #       string "DIR[ DIR]" will be appended to VARIABLE
17359 # "DIRP[:DIRP]::[DIRA:]DIRA"
17360 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17361 #       "DIRA[ DIRA]" will be appended to VARIABLE
17362 # "DIR[:DIR]"
17363 #       VARIABLE will be replaced by "DIR[ DIR]"
17364 func_munge_path_list ()
17365 {
17366     case x$2 in
17367     x)
17368         ;;
17369     *:)
17370         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17371         ;;
17372     x:*)
17373         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17374         ;;
17375     *::*)
17376         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17377         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17378         ;;
17379     *)
17380         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17381         ;;
17382     esac
17383 }
17384
17385
17386 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17387 func_cc_basename ()
17388 {
17389     for cc_temp in $*""; do
17390       case $cc_temp in
17391         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17392         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17393         \-*) ;;
17394         *) break;;
17395       esac
17396     done
17397     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17398 }
17399
17400
17401 # ### END FUNCTIONS SHARED WITH CONFIGURE
17402
17403 _LT_EOF
17404
17405   case $host_os in
17406   aix3*)
17407     cat <<\_LT_EOF >> "$cfgfile"
17408 # AIX sometimes has problems with the GCC collect2 program.  For some
17409 # reason, if we set the COLLECT_NAMES environment variable, the problems
17410 # vanish in a puff of smoke.
17411 if test set != "${COLLECT_NAMES+set}"; then
17412   COLLECT_NAMES=
17413   export COLLECT_NAMES
17414 fi
17415 _LT_EOF
17416     ;;
17417   esac
17418
17419
17420 ltmain=$ac_aux_dir/ltmain.sh
17421
17422
17423   # We use sed instead of cat because bash on DJGPP gets confused if
17424   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17425   # text mode, it properly converts lines to CR/LF.  This bash problem
17426   # is reportedly fixed, but why not run on old versions too?
17427   sed '$q' "$ltmain" >> "$cfgfile" \
17428      || (rm -f "$cfgfile"; exit 1)
17429
17430    mv -f "$cfgfile" "$ofile" ||
17431     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17432   chmod +x "$ofile"
17433
17434  ;;
17435
17436   esac
17437 done # for ac_tag
17438
17439
17440 as_fn_exit 0
17441 _ACEOF
17442 ac_clean_files=$ac_clean_files_save
17443
17444 test $ac_write_fail = 0 ||
17445   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17446
17447
17448 # configure is writing to config.log, and then calls config.status.
17449 # config.status does its own redirection, appending to config.log.
17450 # Unfortunately, on DOS this fails, as config.log is still kept open
17451 # by configure, so config.status won't be able to write to it; its
17452 # output is simply discarded.  So we exec the FD to /dev/null,
17453 # effectively closing config.log, so it can be properly (re)opened and
17454 # appended to by config.status.  When coming back to configure, we
17455 # need to make the FD available again.
17456 if test "$no_create" != yes; then
17457   ac_cs_success=:
17458   ac_config_status_args=
17459   test "$silent" = yes &&
17460     ac_config_status_args="$ac_config_status_args --quiet"
17461   exec 5>/dev/null
17462   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17463   exec 5>>config.log
17464   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17465   # would make configure fail if this is the last instruction.
17466   $ac_cs_success || as_fn_exit 1
17467 fi
17468 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17469   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17470 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17471 fi
17472