Imported Upstream version 1.5.2
[platform/upstream/libpipeline.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.5.2.
4 #
5 # Report bugs to <cjwatson@debian.org>.
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: cjwatson@debian.org 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='libpipeline'
592 PACKAGE_TARNAME='libpipeline'
593 PACKAGE_VERSION='1.5.2'
594 PACKAGE_STRING='libpipeline 1.5.2'
595 PACKAGE_BUGREPORT='cjwatson@debian.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/pipeline.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gl_use_threads_default=
636 ac_header_list=
637 ac_func_list=
638 ac_subst_vars='gltests_LTLIBOBJS
639 gltests_LIBOBJS
640 gl_LTLIBOBJS
641 gl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 gltests_WITNESS
647 HAVE_CRTDEFS_H
648 HAVE_WINT_T
649 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
650 NEXT_WCHAR_H
651 REPLACE_WCSFTIME
652 REPLACE_WCSWIDTH
653 REPLACE_WCWIDTH
654 REPLACE_WCSNRTOMBS
655 REPLACE_WCSRTOMBS
656 REPLACE_WCRTOMB
657 REPLACE_MBSNRTOWCS
658 REPLACE_MBSRTOWCS
659 REPLACE_MBRLEN
660 REPLACE_MBRTOWC
661 REPLACE_MBSINIT
662 REPLACE_WCTOB
663 REPLACE_BTOWC
664 REPLACE_MBSTATE_T
665 HAVE_DECL_WCWIDTH
666 HAVE_DECL_WCTOB
667 HAVE_WCSFTIME
668 HAVE_WCSWIDTH
669 HAVE_WCSTOK
670 HAVE_WCSSTR
671 HAVE_WCSPBRK
672 HAVE_WCSSPN
673 HAVE_WCSCSPN
674 HAVE_WCSRCHR
675 HAVE_WCSCHR
676 HAVE_WCSDUP
677 HAVE_WCSXFRM
678 HAVE_WCSCOLL
679 HAVE_WCSNCASECMP
680 HAVE_WCSCASECMP
681 HAVE_WCSNCMP
682 HAVE_WCSCMP
683 HAVE_WCSNCAT
684 HAVE_WCSCAT
685 HAVE_WCPNCPY
686 HAVE_WCSNCPY
687 HAVE_WCPCPY
688 HAVE_WCSCPY
689 HAVE_WCSNLEN
690 HAVE_WCSLEN
691 HAVE_WMEMSET
692 HAVE_WMEMMOVE
693 HAVE_WMEMCPY
694 HAVE_WMEMCMP
695 HAVE_WMEMCHR
696 HAVE_WCSNRTOMBS
697 HAVE_WCSRTOMBS
698 HAVE_WCRTOMB
699 HAVE_MBSNRTOWCS
700 HAVE_MBSRTOWCS
701 HAVE_MBRLEN
702 HAVE_MBRTOWC
703 HAVE_MBSINIT
704 HAVE_BTOWC
705 GNULIB_WCSFTIME
706 GNULIB_WCSWIDTH
707 GNULIB_WCSTOK
708 GNULIB_WCSSTR
709 GNULIB_WCSPBRK
710 GNULIB_WCSSPN
711 GNULIB_WCSCSPN
712 GNULIB_WCSRCHR
713 GNULIB_WCSCHR
714 GNULIB_WCSDUP
715 GNULIB_WCSXFRM
716 GNULIB_WCSCOLL
717 GNULIB_WCSNCASECMP
718 GNULIB_WCSCASECMP
719 GNULIB_WCSNCMP
720 GNULIB_WCSCMP
721 GNULIB_WCSNCAT
722 GNULIB_WCSCAT
723 GNULIB_WCPNCPY
724 GNULIB_WCSNCPY
725 GNULIB_WCPCPY
726 GNULIB_WCSCPY
727 GNULIB_WCSNLEN
728 GNULIB_WCSLEN
729 GNULIB_WMEMSET
730 GNULIB_WMEMMOVE
731 GNULIB_WMEMCPY
732 GNULIB_WMEMCMP
733 GNULIB_WMEMCHR
734 GNULIB_WCWIDTH
735 GNULIB_WCSNRTOMBS
736 GNULIB_WCSRTOMBS
737 GNULIB_WCRTOMB
738 GNULIB_MBSNRTOWCS
739 GNULIB_MBSRTOWCS
740 GNULIB_MBRLEN
741 GNULIB_MBRTOWC
742 GNULIB_MBSINIT
743 GNULIB_WCTOB
744 GNULIB_BTOWC
745 HAVE_FEATURES_H
746 HAVE_UNISTD_H
747 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
748 NEXT_UNISTD_H
749 UNISTD_H_DEFINES_STRUCT_TIMESPEC
750 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
751 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
752 TIME_H_DEFINES_STRUCT_TIMESPEC
753 NEXT_AS_FIRST_DIRECTIVE_TIME_H
754 NEXT_TIME_H
755 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
756 NEXT_SYS_WAIT_H
757 GNULIB_WAITPID
758 WINDOWS_STAT_INODES
759 WINDOWS_64_BIT_OFF_T
760 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
761 NEXT_SYS_TYPES_H
762 HAVE_SYS_SELECT_H
763 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
764 NEXT_SYS_SELECT_H
765 REPLACE_SELECT
766 REPLACE_PSELECT
767 HAVE_PSELECT
768 GNULIB_SELECT
769 GNULIB_PSELECT
770 NEXT_AS_FIRST_DIRECTIVE_STRING_H
771 NEXT_STRING_H
772 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
773 NEXT_STDLIB_H
774 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
775 NEXT_STDIO_H
776 GL_GENERATE_STDINT_H_FALSE
777 GL_GENERATE_STDINT_H_TRUE
778 STDINT_H
779 HAVE_SYS_INTTYPES_H
780 HAVE_SYS_BITYPES_H
781 HAVE_C99_STDINT_H
782 WINT_T_SUFFIX
783 WCHAR_T_SUFFIX
784 SIG_ATOMIC_T_SUFFIX
785 SIZE_T_SUFFIX
786 PTRDIFF_T_SUFFIX
787 HAVE_SIGNED_WINT_T
788 HAVE_SIGNED_WCHAR_T
789 HAVE_SIGNED_SIG_ATOMIC_T
790 BITSIZEOF_WINT_T
791 BITSIZEOF_WCHAR_T
792 BITSIZEOF_SIG_ATOMIC_T
793 BITSIZEOF_SIZE_T
794 BITSIZEOF_PTRDIFF_T
795 HAVE_STDINT_H
796 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
797 NEXT_STDINT_H
798 HAVE_SYS_TYPES_H
799 HAVE_INTTYPES_H
800 HAVE_WCHAR_H
801 HAVE_UNSIGNED_LONG_LONG_INT
802 HAVE_LONG_LONG_INT
803 GNULIB_OVERRIDES_WINT_T
804 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
805 NEXT_STDDEF_H
806 GL_GENERATE_STDDEF_H_FALSE
807 GL_GENERATE_STDDEF_H_TRUE
808 STDDEF_H
809 HAVE_WCHAR_T
810 HAVE_MAX_ALIGN_T
811 REPLACE_NULL
812 HAVE__BOOL
813 GL_GENERATE_STDBOOL_H_FALSE
814 GL_GENERATE_STDBOOL_H_TRUE
815 STDBOOL_H
816 GL_GENERATE_STDARG_H_FALSE
817 GL_GENERATE_STDARG_H_TRUE
818 STDARG_H
819 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
820 NEXT_STDARG_H
821 WINDOWS_64_BIT_ST_SIZE
822 WINDOWS_STAT_TIMESPEC
823 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
824 NEXT_SYS_STAT_H
825 REPLACE_VSPRINTF
826 REPLACE_VSNPRINTF
827 REPLACE_VPRINTF
828 REPLACE_VFPRINTF
829 REPLACE_VDPRINTF
830 REPLACE_VASPRINTF
831 REPLACE_TMPFILE
832 REPLACE_STDIO_WRITE_FUNCS
833 REPLACE_STDIO_READ_FUNCS
834 REPLACE_SPRINTF
835 REPLACE_SNPRINTF
836 REPLACE_RENAMEAT
837 REPLACE_RENAME
838 REPLACE_REMOVE
839 REPLACE_PRINTF
840 REPLACE_POPEN
841 REPLACE_PERROR
842 REPLACE_OBSTACK_PRINTF
843 REPLACE_GETLINE
844 REPLACE_GETDELIM
845 REPLACE_FTELLO
846 REPLACE_FTELL
847 REPLACE_FSEEKO
848 REPLACE_FSEEK
849 REPLACE_FREOPEN
850 REPLACE_FPURGE
851 REPLACE_FPRINTF
852 REPLACE_FOPEN
853 REPLACE_FFLUSH
854 REPLACE_FDOPEN
855 REPLACE_FCLOSE
856 REPLACE_DPRINTF
857 HAVE_VDPRINTF
858 HAVE_VASPRINTF
859 HAVE_RENAMEAT
860 HAVE_POPEN
861 HAVE_PCLOSE
862 HAVE_FTELLO
863 HAVE_FSEEKO
864 HAVE_DPRINTF
865 HAVE_DECL_VSNPRINTF
866 HAVE_DECL_SNPRINTF
867 HAVE_DECL_OBSTACK_PRINTF
868 HAVE_DECL_GETLINE
869 HAVE_DECL_GETDELIM
870 HAVE_DECL_FTELLO
871 HAVE_DECL_FSEEKO
872 HAVE_DECL_FPURGE
873 GNULIB_VSPRINTF_POSIX
874 GNULIB_VSNPRINTF
875 GNULIB_VPRINTF_POSIX
876 GNULIB_VPRINTF
877 GNULIB_VFPRINTF_POSIX
878 GNULIB_VFPRINTF
879 GNULIB_VDPRINTF
880 GNULIB_VSCANF
881 GNULIB_VFSCANF
882 GNULIB_VASPRINTF
883 GNULIB_TMPFILE
884 GNULIB_STDIO_H_SIGPIPE
885 GNULIB_STDIO_H_NONBLOCKING
886 GNULIB_SPRINTF_POSIX
887 GNULIB_SNPRINTF
888 GNULIB_SCANF
889 GNULIB_RENAMEAT
890 GNULIB_RENAME
891 GNULIB_REMOVE
892 GNULIB_PUTS
893 GNULIB_PUTCHAR
894 GNULIB_PUTC
895 GNULIB_PRINTF_POSIX
896 GNULIB_PRINTF
897 GNULIB_POPEN
898 GNULIB_PERROR
899 GNULIB_PCLOSE
900 GNULIB_OBSTACK_PRINTF_POSIX
901 GNULIB_OBSTACK_PRINTF
902 GNULIB_GETLINE
903 GNULIB_GETDELIM
904 GNULIB_GETCHAR
905 GNULIB_GETC
906 GNULIB_FWRITE
907 GNULIB_FTELLO
908 GNULIB_FTELL
909 GNULIB_FSEEKO
910 GNULIB_FSEEK
911 GNULIB_FSCANF
912 GNULIB_FREOPEN
913 GNULIB_FREAD
914 GNULIB_FPUTS
915 GNULIB_FPUTC
916 GNULIB_FPURGE
917 GNULIB_FPRINTF_POSIX
918 GNULIB_FPRINTF
919 GNULIB_FOPEN
920 GNULIB_FGETS
921 GNULIB_FGETC
922 GNULIB_FFLUSH
923 GNULIB_FDOPEN
924 GNULIB_FCLOSE
925 GNULIB_DPRINTF
926 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
927 NEXT_SIGNAL_H
928 REPLACE_RAISE
929 REPLACE_PTHREAD_SIGMASK
930 HAVE_SIGHANDLER_T
931 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
932 HAVE_STRUCT_SIGACTION_SA_SIGACTION
933 HAVE_SIGACTION
934 HAVE_SIGINFO_T
935 HAVE_SIGSET_T
936 HAVE_RAISE
937 HAVE_PTHREAD_SIGMASK
938 HAVE_POSIX_SIGNALBLOCKING
939 GNULIB_SIGACTION
940 GNULIB_SIGPROCMASK
941 GNULIB_SIGNAL_H_SIGPIPE
942 GNULIB_RAISE
943 GNULIB_PTHREAD_SIGMASK
944 APPLE_UNIVERSAL_BUILD
945 HAVE_MSVC_INVALID_PARAMETER_HANDLER
946 UNDEFINE_STRTOK_R
947 REPLACE_STRSIGNAL
948 REPLACE_STRERROR_R
949 REPLACE_STRERROR
950 REPLACE_STRTOK_R
951 REPLACE_STRCASESTR
952 REPLACE_STRSTR
953 REPLACE_STRNLEN
954 REPLACE_STRNDUP
955 REPLACE_STRNCAT
956 REPLACE_STRDUP
957 REPLACE_STRCHRNUL
958 REPLACE_STPNCPY
959 REPLACE_MEMMEM
960 REPLACE_MEMCHR
961 HAVE_STRVERSCMP
962 HAVE_DECL_STRSIGNAL
963 HAVE_DECL_STRERROR_R
964 HAVE_DECL_STRTOK_R
965 HAVE_STRCASESTR
966 HAVE_STRSEP
967 HAVE_STRPBRK
968 HAVE_DECL_STRNLEN
969 HAVE_DECL_STRNDUP
970 HAVE_DECL_STRDUP
971 HAVE_STRCHRNUL
972 HAVE_STPNCPY
973 HAVE_STPCPY
974 HAVE_RAWMEMCHR
975 HAVE_DECL_MEMRCHR
976 HAVE_MEMPCPY
977 HAVE_DECL_MEMMEM
978 HAVE_MEMCHR
979 HAVE_FFSLL
980 HAVE_FFSL
981 HAVE_EXPLICIT_BZERO
982 HAVE_MBSLEN
983 GNULIB_STRVERSCMP
984 GNULIB_STRSIGNAL
985 GNULIB_STRERROR_R
986 GNULIB_STRERROR
987 GNULIB_MBSTOK_R
988 GNULIB_MBSSEP
989 GNULIB_MBSSPN
990 GNULIB_MBSPBRK
991 GNULIB_MBSCSPN
992 GNULIB_MBSCASESTR
993 GNULIB_MBSPCASECMP
994 GNULIB_MBSNCASECMP
995 GNULIB_MBSCASECMP
996 GNULIB_MBSSTR
997 GNULIB_MBSRCHR
998 GNULIB_MBSCHR
999 GNULIB_MBSNLEN
1000 GNULIB_MBSLEN
1001 GNULIB_STRTOK_R
1002 GNULIB_STRCASESTR
1003 GNULIB_STRSTR
1004 GNULIB_STRSEP
1005 GNULIB_STRPBRK
1006 GNULIB_STRNLEN
1007 GNULIB_STRNDUP
1008 GNULIB_STRNCAT
1009 GNULIB_STRDUP
1010 GNULIB_STRCHRNUL
1011 GNULIB_STPNCPY
1012 GNULIB_STPCPY
1013 GNULIB_RAWMEMCHR
1014 GNULIB_MEMRCHR
1015 GNULIB_MEMPCPY
1016 GNULIB_MEMMEM
1017 GNULIB_MEMCHR
1018 GNULIB_FFSLL
1019 GNULIB_FFSL
1020 GNULIB_EXPLICIT_BZERO
1021 REPLACE_WCTOMB
1022 REPLACE_UNSETENV
1023 REPLACE_STRTOD
1024 REPLACE_SETENV
1025 REPLACE_REALPATH
1026 REPLACE_REALLOC
1027 REPLACE_RANDOM_R
1028 REPLACE_QSORT_R
1029 REPLACE_PUTENV
1030 REPLACE_PTSNAME_R
1031 REPLACE_PTSNAME
1032 REPLACE_MKSTEMP
1033 REPLACE_MBTOWC
1034 REPLACE_MALLOC
1035 REPLACE_CANONICALIZE_FILE_NAME
1036 REPLACE_CALLOC
1037 HAVE_DECL_UNSETENV
1038 HAVE_UNLOCKPT
1039 HAVE_SYS_LOADAVG_H
1040 HAVE_STRUCT_RANDOM_DATA
1041 HAVE_STRTOULL
1042 HAVE_STRTOLL
1043 HAVE_STRTOD
1044 HAVE_DECL_SETSTATE
1045 HAVE_DECL_SETENV
1046 HAVE_SETENV
1047 HAVE_SECURE_GETENV
1048 HAVE_RPMATCH
1049 HAVE_REALPATH
1050 HAVE_REALLOCARRAY
1051 HAVE_RANDOM_R
1052 HAVE_RANDOM_H
1053 HAVE_RANDOM
1054 HAVE_QSORT_R
1055 HAVE_PTSNAME_R
1056 HAVE_PTSNAME
1057 HAVE_POSIX_OPENPT
1058 HAVE_MKSTEMPS
1059 HAVE_MKSTEMP
1060 HAVE_MKOSTEMPS
1061 HAVE_MKOSTEMP
1062 HAVE_MKDTEMP
1063 HAVE_DECL_INITSTATE
1064 HAVE_GRANTPT
1065 HAVE_GETSUBOPT
1066 HAVE_DECL_GETLOADAVG
1067 HAVE_CANONICALIZE_FILE_NAME
1068 HAVE_ATOLL
1069 HAVE__EXIT
1070 GNULIB_WCTOMB
1071 GNULIB_UNSETENV
1072 GNULIB_UNLOCKPT
1073 GNULIB_SYSTEM_POSIX
1074 GNULIB_STRTOULL
1075 GNULIB_STRTOLL
1076 GNULIB_STRTOD
1077 GNULIB_SETENV
1078 GNULIB_SECURE_GETENV
1079 GNULIB_RPMATCH
1080 GNULIB_REALPATH
1081 GNULIB_REALLOC_POSIX
1082 GNULIB_REALLOCARRAY
1083 GNULIB_RANDOM_R
1084 GNULIB_RANDOM
1085 GNULIB_QSORT_R
1086 GNULIB_PUTENV
1087 GNULIB_PTSNAME_R
1088 GNULIB_PTSNAME
1089 GNULIB_POSIX_OPENPT
1090 GNULIB_MKSTEMPS
1091 GNULIB_MKSTEMP
1092 GNULIB_MKOSTEMPS
1093 GNULIB_MKOSTEMP
1094 GNULIB_MKDTEMP
1095 GNULIB_MBTOWC
1096 GNULIB_MALLOC_POSIX
1097 GNULIB_GRANTPT
1098 GNULIB_GETSUBOPT
1099 GNULIB_GETLOADAVG
1100 GNULIB_CANONICALIZE_FILE_NAME
1101 GNULIB_CALLOC_POSIX
1102 GNULIB_ATOLL
1103 GNULIB__EXIT
1104 REPLACE_UTIMENSAT
1105 REPLACE_STAT
1106 REPLACE_MKNOD
1107 REPLACE_MKFIFO
1108 REPLACE_MKDIR
1109 REPLACE_LSTAT
1110 REPLACE_FUTIMENS
1111 REPLACE_FSTATAT
1112 REPLACE_FSTAT
1113 HAVE_UTIMENSAT
1114 HAVE_MKNODAT
1115 HAVE_MKNOD
1116 HAVE_MKFIFOAT
1117 HAVE_MKFIFO
1118 HAVE_MKDIRAT
1119 HAVE_LSTAT
1120 HAVE_LCHMOD
1121 HAVE_FUTIMENS
1122 HAVE_FSTATAT
1123 HAVE_FCHMODAT
1124 GNULIB_OVERRIDES_STRUCT_STAT
1125 GNULIB_UTIMENSAT
1126 GNULIB_STAT
1127 GNULIB_MKNODAT
1128 GNULIB_MKNOD
1129 GNULIB_MKFIFOAT
1130 GNULIB_MKFIFO
1131 GNULIB_MKDIRAT
1132 GNULIB_LSTAT
1133 GNULIB_LCHMOD
1134 GNULIB_FUTIMENS
1135 GNULIB_FSTATAT
1136 GNULIB_FSTAT
1137 GNULIB_FCHMODAT
1138 LTLIBMULTITHREAD
1139 LIBMULTITHREAD
1140 LTLIBTHREAD
1141 LIBTHREAD
1142 LIBPTH_PREFIX
1143 LTLIBPTH
1144 LIBPTH
1145 GL_GENERATE_LIMITS_H_FALSE
1146 GL_GENERATE_LIMITS_H_TRUE
1147 LIMITS_H
1148 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1149 NEXT_LIMITS_H
1150 IGNORE_UNUSED_LIBRARIES_CFLAGS
1151 REPLACE_LOCALTIME
1152 REPLACE_GMTIME
1153 REPLACE_TZSET
1154 REPLACE_TIMEGM
1155 REPLACE_STRFTIME
1156 REPLACE_NANOSLEEP
1157 REPLACE_MKTIME
1158 REPLACE_LOCALTIME_R
1159 REPLACE_CTIME
1160 HAVE_TIMEZONE_T
1161 HAVE_TZSET
1162 HAVE_TIMEGM
1163 HAVE_STRPTIME
1164 HAVE_NANOSLEEP
1165 HAVE_DECL_LOCALTIME_R
1166 GNULIB_TZSET
1167 GNULIB_TIME_RZ
1168 GNULIB_TIME_R
1169 GNULIB_TIMEGM
1170 GNULIB_STRPTIME
1171 GNULIB_STRFTIME
1172 GNULIB_NANOSLEEP
1173 GNULIB_LOCALTIME
1174 GNULIB_MKTIME
1175 GNULIB_CTIME
1176 HAVE_WINSOCK2_H
1177 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1178 NEXT_SYS_TIME_H
1179 REPLACE_STRUCT_TIMEVAL
1180 REPLACE_GETTIMEOFDAY
1181 HAVE_SYS_TIME_H
1182 HAVE_STRUCT_TIMEVAL
1183 HAVE_GETTIMEOFDAY
1184 GNULIB_GETTIMEOFDAY
1185 LTLIBINTL
1186 LIBINTL
1187 REPLACE_ITOLD
1188 GL_GENERATE_FLOAT_H_FALSE
1189 GL_GENERATE_FLOAT_H_TRUE
1190 FLOAT_H
1191 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1192 NEXT_FLOAT_H
1193 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1194 NEXT_FCNTL_H
1195 REPLACE_OPENAT
1196 REPLACE_OPEN
1197 REPLACE_FCNTL
1198 HAVE_OPENAT
1199 HAVE_FCNTL
1200 GNULIB_OPENAT
1201 GNULIB_OPEN
1202 GNULIB_NONBLOCKING
1203 GNULIB_FCNTL
1204 EOVERFLOW_VALUE
1205 EOVERFLOW_HIDDEN
1206 ENOLINK_VALUE
1207 ENOLINK_HIDDEN
1208 EMULTIHOP_VALUE
1209 EMULTIHOP_HIDDEN
1210 GL_GENERATE_ERRNO_H_FALSE
1211 GL_GENERATE_ERRNO_H_TRUE
1212 ERRNO_H
1213 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1214 NEXT_ERRNO_H
1215 PRAGMA_COLUMNS
1216 PRAGMA_SYSTEM_HEADER
1217 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1218 INCLUDE_NEXT
1219 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1220 UNISTD_H_HAVE_WINSOCK2_H
1221 REPLACE_WRITE
1222 REPLACE_USLEEP
1223 REPLACE_UNLINKAT
1224 REPLACE_UNLINK
1225 REPLACE_TTYNAME_R
1226 REPLACE_TRUNCATE
1227 REPLACE_SYMLINKAT
1228 REPLACE_SYMLINK
1229 REPLACE_SLEEP
1230 REPLACE_RMDIR
1231 REPLACE_READLINKAT
1232 REPLACE_READLINK
1233 REPLACE_READ
1234 REPLACE_PWRITE
1235 REPLACE_PREAD
1236 REPLACE_LSEEK
1237 REPLACE_LINKAT
1238 REPLACE_LINK
1239 REPLACE_LCHOWN
1240 REPLACE_ISATTY
1241 REPLACE_GETPASS
1242 REPLACE_GETPAGESIZE
1243 REPLACE_GETGROUPS
1244 REPLACE_GETLOGIN_R
1245 REPLACE_GETDTABLESIZE
1246 REPLACE_GETDOMAINNAME
1247 REPLACE_GETCWD
1248 REPLACE_FTRUNCATE
1249 REPLACE_FCHOWNAT
1250 REPLACE_FACCESSAT
1251 REPLACE_DUP2
1252 REPLACE_DUP
1253 REPLACE_CLOSE
1254 REPLACE_CHOWN
1255 HAVE_SYS_PARAM_H
1256 HAVE_OS_H
1257 HAVE_DECL_TTYNAME_R
1258 HAVE_DECL_TRUNCATE
1259 HAVE_DECL_SETHOSTNAME
1260 HAVE_DECL_GETUSERSHELL
1261 HAVE_DECL_GETPAGESIZE
1262 HAVE_DECL_GETLOGIN_R
1263 HAVE_DECL_GETLOGIN
1264 HAVE_DECL_GETDOMAINNAME
1265 HAVE_DECL_FDATASYNC
1266 HAVE_DECL_FCHDIR
1267 HAVE_DECL_ENVIRON
1268 HAVE_USLEEP
1269 HAVE_UNLINKAT
1270 HAVE_SYMLINKAT
1271 HAVE_SYMLINK
1272 HAVE_SLEEP
1273 HAVE_SETHOSTNAME
1274 HAVE_READLINKAT
1275 HAVE_READLINK
1276 HAVE_PWRITE
1277 HAVE_PREAD
1278 HAVE_PIPE2
1279 HAVE_PIPE
1280 HAVE_LINKAT
1281 HAVE_LINK
1282 HAVE_LCHOWN
1283 HAVE_GROUP_MEMBER
1284 HAVE_GETPASS
1285 HAVE_GETPAGESIZE
1286 HAVE_GETLOGIN
1287 HAVE_GETHOSTNAME
1288 HAVE_GETGROUPS
1289 HAVE_GETDTABLESIZE
1290 HAVE_FTRUNCATE
1291 HAVE_FSYNC
1292 HAVE_FDATASYNC
1293 HAVE_FCHOWNAT
1294 HAVE_FCHDIR
1295 HAVE_FACCESSAT
1296 HAVE_EUIDACCESS
1297 HAVE_DUP3
1298 HAVE_DUP2
1299 HAVE_CHOWN
1300 GNULIB_WRITE
1301 GNULIB_USLEEP
1302 GNULIB_UNLINKAT
1303 GNULIB_UNLINK
1304 GNULIB_UNISTD_H_SIGPIPE
1305 GNULIB_UNISTD_H_NONBLOCKING
1306 GNULIB_TTYNAME_R
1307 GNULIB_TRUNCATE
1308 GNULIB_SYMLINKAT
1309 GNULIB_SYMLINK
1310 GNULIB_SLEEP
1311 GNULIB_SETHOSTNAME
1312 GNULIB_RMDIR
1313 GNULIB_READLINKAT
1314 GNULIB_READLINK
1315 GNULIB_READ
1316 GNULIB_PWRITE
1317 GNULIB_PREAD
1318 GNULIB_PIPE2
1319 GNULIB_PIPE
1320 GNULIB_LSEEK
1321 GNULIB_LINKAT
1322 GNULIB_LINK
1323 GNULIB_LCHOWN
1324 GNULIB_ISATTY
1325 GNULIB_GROUP_MEMBER
1326 GNULIB_GETUSERSHELL
1327 GNULIB_GETPASS
1328 GNULIB_GETPAGESIZE
1329 GNULIB_GETLOGIN_R
1330 GNULIB_GETLOGIN
1331 GNULIB_GETHOSTNAME
1332 GNULIB_GETGROUPS
1333 GNULIB_GETDTABLESIZE
1334 GNULIB_GETDOMAINNAME
1335 GNULIB_GETCWD
1336 GNULIB_FTRUNCATE
1337 GNULIB_FSYNC
1338 GNULIB_FDATASYNC
1339 GNULIB_FCHOWNAT
1340 GNULIB_FCHDIR
1341 GNULIB_FACCESSAT
1342 GNULIB_EUIDACCESS
1343 GNULIB_ENVIRON
1344 GNULIB_DUP3
1345 GNULIB_DUP2
1346 GNULIB_DUP
1347 GNULIB_CLOSE
1348 GNULIB_CHOWN
1349 GNULIB_CHDIR
1350 GL_GENERATE_ALLOCA_H_FALSE
1351 GL_GENERATE_ALLOCA_H_TRUE
1352 ALLOCA_H
1353 ALLOCA
1354 GL_COND_LIBTOOL_FALSE
1355 GL_COND_LIBTOOL_TRUE
1356 RUN_TESTS_FALSE
1357 RUN_TESTS_TRUE
1358 CHECK_LIBS
1359 CHECK_CFLAGS
1360 PKG_CONFIG_LIBDIR
1361 PKG_CONFIG_PATH
1362 PKG_CONFIG
1363 LT_SYS_LIBRARY_PATH
1364 OTOOL64
1365 OTOOL
1366 LIPO
1367 NMEDIT
1368 DSYMUTIL
1369 MANIFEST_TOOL
1370 DLLTOOL
1371 OBJDUMP
1372 NM
1373 ac_ct_DUMPBIN
1374 DUMPBIN
1375 LD
1376 FGREP
1377 SED
1378 LIBTOOL
1379 LN_S
1380 WARN_CFLAGS
1381 RANLIB
1382 ARFLAGS
1383 ac_ct_AR
1384 AR
1385 host_os
1386 host_vendor
1387 host_cpu
1388 host
1389 build_os
1390 build_vendor
1391 build_cpu
1392 build
1393 EGREP
1394 GREP
1395 CPP
1396 am__fastdepCC_FALSE
1397 am__fastdepCC_TRUE
1398 CCDEPMODE
1399 am__nodep
1400 AMDEPBACKSLASH
1401 AMDEP_FALSE
1402 AMDEP_TRUE
1403 am__include
1404 DEPDIR
1405 OBJEXT
1406 EXEEXT
1407 ac_ct_CC
1408 CPPFLAGS
1409 LDFLAGS
1410 CFLAGS
1411 CC
1412 MAINT
1413 MAINTAINER_MODE_FALSE
1414 MAINTAINER_MODE_TRUE
1415 AM_BACKSLASH
1416 AM_DEFAULT_VERBOSITY
1417 AM_DEFAULT_V
1418 AM_V
1419 am__untar
1420 am__tar
1421 AMTAR
1422 am__leading_dot
1423 SET_MAKE
1424 AWK
1425 mkdir_p
1426 MKDIR_P
1427 INSTALL_STRIP_PROGRAM
1428 STRIP
1429 install_sh
1430 MAKEINFO
1431 AUTOHEADER
1432 AUTOMAKE
1433 AUTOCONF
1434 ACLOCAL
1435 VERSION
1436 PACKAGE
1437 CYGPATH_W
1438 am__isrc
1439 INSTALL_DATA
1440 INSTALL_SCRIPT
1441 INSTALL_PROGRAM
1442 target_alias
1443 host_alias
1444 build_alias
1445 LIBS
1446 ECHO_T
1447 ECHO_N
1448 ECHO_C
1449 DEFS
1450 mandir
1451 localedir
1452 libdir
1453 psdir
1454 pdfdir
1455 dvidir
1456 htmldir
1457 infodir
1458 docdir
1459 oldincludedir
1460 includedir
1461 runstatedir
1462 localstatedir
1463 sharedstatedir
1464 sysconfdir
1465 datadir
1466 datarootdir
1467 libexecdir
1468 sbindir
1469 bindir
1470 program_transform_name
1471 prefix
1472 exec_prefix
1473 PACKAGE_URL
1474 PACKAGE_BUGREPORT
1475 PACKAGE_STRING
1476 PACKAGE_VERSION
1477 PACKAGE_TARNAME
1478 PACKAGE_NAME
1479 PATH_SEPARATOR
1480 SHELL
1481 am__quote'
1482 ac_subst_files=''
1483 ac_user_opts='
1484 enable_option_checking
1485 enable_silent_rules
1486 enable_maintainer_mode
1487 enable_dependency_tracking
1488 enable_largefile
1489 enable_threads
1490 enable_static
1491 enable_shared
1492 with_pic
1493 enable_fast_install
1494 with_aix_soname
1495 with_gnu_ld
1496 with_sysroot
1497 enable_libtool_lock
1498 enable_rpath
1499 with_libpth_prefix
1500 enable_socketpair_pipe
1501 '
1502       ac_precious_vars='build_alias
1503 host_alias
1504 target_alias
1505 CC
1506 CFLAGS
1507 LDFLAGS
1508 LIBS
1509 CPPFLAGS
1510 CPP
1511 LT_SYS_LIBRARY_PATH
1512 PKG_CONFIG
1513 PKG_CONFIG_PATH
1514 PKG_CONFIG_LIBDIR
1515 CHECK_CFLAGS
1516 CHECK_LIBS'
1517
1518
1519 # Initialize some variables set by options.
1520 ac_init_help=
1521 ac_init_version=false
1522 ac_unrecognized_opts=
1523 ac_unrecognized_sep=
1524 # The variables have the same names as the options, with
1525 # dashes changed to underlines.
1526 cache_file=/dev/null
1527 exec_prefix=NONE
1528 no_create=
1529 no_recursion=
1530 prefix=NONE
1531 program_prefix=NONE
1532 program_suffix=NONE
1533 program_transform_name=s,x,x,
1534 silent=
1535 site=
1536 srcdir=
1537 verbose=
1538 x_includes=NONE
1539 x_libraries=NONE
1540
1541 # Installation directory options.
1542 # These are left unexpanded so users can "make install exec_prefix=/foo"
1543 # and all the variables that are supposed to be based on exec_prefix
1544 # by default will actually change.
1545 # Use braces instead of parens because sh, perl, etc. also accept them.
1546 # (The list follows the same order as the GNU Coding Standards.)
1547 bindir='${exec_prefix}/bin'
1548 sbindir='${exec_prefix}/sbin'
1549 libexecdir='${exec_prefix}/libexec'
1550 datarootdir='${prefix}/share'
1551 datadir='${datarootdir}'
1552 sysconfdir='${prefix}/etc'
1553 sharedstatedir='${prefix}/com'
1554 localstatedir='${prefix}/var'
1555 runstatedir='${localstatedir}/run'
1556 includedir='${prefix}/include'
1557 oldincludedir='/usr/include'
1558 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1559 infodir='${datarootdir}/info'
1560 htmldir='${docdir}'
1561 dvidir='${docdir}'
1562 pdfdir='${docdir}'
1563 psdir='${docdir}'
1564 libdir='${exec_prefix}/lib'
1565 localedir='${datarootdir}/locale'
1566 mandir='${datarootdir}/man'
1567
1568 ac_prev=
1569 ac_dashdash=
1570 for ac_option
1571 do
1572   # If the previous option needs an argument, assign it.
1573   if test -n "$ac_prev"; then
1574     eval $ac_prev=\$ac_option
1575     ac_prev=
1576     continue
1577   fi
1578
1579   case $ac_option in
1580   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1581   *=)   ac_optarg= ;;
1582   *)    ac_optarg=yes ;;
1583   esac
1584
1585   # Accept the important Cygnus configure options, so we can diagnose typos.
1586
1587   case $ac_dashdash$ac_option in
1588   --)
1589     ac_dashdash=yes ;;
1590
1591   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1592     ac_prev=bindir ;;
1593   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1594     bindir=$ac_optarg ;;
1595
1596   -build | --build | --buil | --bui | --bu)
1597     ac_prev=build_alias ;;
1598   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1599     build_alias=$ac_optarg ;;
1600
1601   -cache-file | --cache-file | --cache-fil | --cache-fi \
1602   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1603     ac_prev=cache_file ;;
1604   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1605   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1606     cache_file=$ac_optarg ;;
1607
1608   --config-cache | -C)
1609     cache_file=config.cache ;;
1610
1611   -datadir | --datadir | --datadi | --datad)
1612     ac_prev=datadir ;;
1613   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1614     datadir=$ac_optarg ;;
1615
1616   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1617   | --dataroo | --dataro | --datar)
1618     ac_prev=datarootdir ;;
1619   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1620   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1621     datarootdir=$ac_optarg ;;
1622
1623   -disable-* | --disable-*)
1624     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1625     # Reject names that are not valid shell variable names.
1626     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1627       as_fn_error $? "invalid feature name: $ac_useropt"
1628     ac_useropt_orig=$ac_useropt
1629     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630     case $ac_user_opts in
1631       *"
1632 "enable_$ac_useropt"
1633 "*) ;;
1634       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1635          ac_unrecognized_sep=', ';;
1636     esac
1637     eval enable_$ac_useropt=no ;;
1638
1639   -docdir | --docdir | --docdi | --doc | --do)
1640     ac_prev=docdir ;;
1641   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1642     docdir=$ac_optarg ;;
1643
1644   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1645     ac_prev=dvidir ;;
1646   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1647     dvidir=$ac_optarg ;;
1648
1649   -enable-* | --enable-*)
1650     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1651     # Reject names that are not valid shell variable names.
1652     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1653       as_fn_error $? "invalid feature name: $ac_useropt"
1654     ac_useropt_orig=$ac_useropt
1655     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1656     case $ac_user_opts in
1657       *"
1658 "enable_$ac_useropt"
1659 "*) ;;
1660       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1661          ac_unrecognized_sep=', ';;
1662     esac
1663     eval enable_$ac_useropt=\$ac_optarg ;;
1664
1665   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1666   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1667   | --exec | --exe | --ex)
1668     ac_prev=exec_prefix ;;
1669   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1670   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1671   | --exec=* | --exe=* | --ex=*)
1672     exec_prefix=$ac_optarg ;;
1673
1674   -gas | --gas | --ga | --g)
1675     # Obsolete; use --with-gas.
1676     with_gas=yes ;;
1677
1678   -help | --help | --hel | --he | -h)
1679     ac_init_help=long ;;
1680   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1681     ac_init_help=recursive ;;
1682   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1683     ac_init_help=short ;;
1684
1685   -host | --host | --hos | --ho)
1686     ac_prev=host_alias ;;
1687   -host=* | --host=* | --hos=* | --ho=*)
1688     host_alias=$ac_optarg ;;
1689
1690   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1691     ac_prev=htmldir ;;
1692   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1693   | --ht=*)
1694     htmldir=$ac_optarg ;;
1695
1696   -includedir | --includedir | --includedi | --included | --include \
1697   | --includ | --inclu | --incl | --inc)
1698     ac_prev=includedir ;;
1699   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1700   | --includ=* | --inclu=* | --incl=* | --inc=*)
1701     includedir=$ac_optarg ;;
1702
1703   -infodir | --infodir | --infodi | --infod | --info | --inf)
1704     ac_prev=infodir ;;
1705   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1706     infodir=$ac_optarg ;;
1707
1708   -libdir | --libdir | --libdi | --libd)
1709     ac_prev=libdir ;;
1710   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1711     libdir=$ac_optarg ;;
1712
1713   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1714   | --libexe | --libex | --libe)
1715     ac_prev=libexecdir ;;
1716   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1717   | --libexe=* | --libex=* | --libe=*)
1718     libexecdir=$ac_optarg ;;
1719
1720   -localedir | --localedir | --localedi | --localed | --locale)
1721     ac_prev=localedir ;;
1722   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1723     localedir=$ac_optarg ;;
1724
1725   -localstatedir | --localstatedir | --localstatedi | --localstated \
1726   | --localstate | --localstat | --localsta | --localst | --locals)
1727     ac_prev=localstatedir ;;
1728   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1729   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1730     localstatedir=$ac_optarg ;;
1731
1732   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1733     ac_prev=mandir ;;
1734   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1735     mandir=$ac_optarg ;;
1736
1737   -nfp | --nfp | --nf)
1738     # Obsolete; use --without-fp.
1739     with_fp=no ;;
1740
1741   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1742   | --no-cr | --no-c | -n)
1743     no_create=yes ;;
1744
1745   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1746   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1747     no_recursion=yes ;;
1748
1749   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1750   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1751   | --oldin | --oldi | --old | --ol | --o)
1752     ac_prev=oldincludedir ;;
1753   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1754   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1755   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1756     oldincludedir=$ac_optarg ;;
1757
1758   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1759     ac_prev=prefix ;;
1760   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1761     prefix=$ac_optarg ;;
1762
1763   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1764   | --program-pre | --program-pr | --program-p)
1765     ac_prev=program_prefix ;;
1766   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1767   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1768     program_prefix=$ac_optarg ;;
1769
1770   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1771   | --program-suf | --program-su | --program-s)
1772     ac_prev=program_suffix ;;
1773   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1774   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1775     program_suffix=$ac_optarg ;;
1776
1777   -program-transform-name | --program-transform-name \
1778   | --program-transform-nam | --program-transform-na \
1779   | --program-transform-n | --program-transform- \
1780   | --program-transform | --program-transfor \
1781   | --program-transfo | --program-transf \
1782   | --program-trans | --program-tran \
1783   | --progr-tra | --program-tr | --program-t)
1784     ac_prev=program_transform_name ;;
1785   -program-transform-name=* | --program-transform-name=* \
1786   | --program-transform-nam=* | --program-transform-na=* \
1787   | --program-transform-n=* | --program-transform-=* \
1788   | --program-transform=* | --program-transfor=* \
1789   | --program-transfo=* | --program-transf=* \
1790   | --program-trans=* | --program-tran=* \
1791   | --progr-tra=* | --program-tr=* | --program-t=*)
1792     program_transform_name=$ac_optarg ;;
1793
1794   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1795     ac_prev=pdfdir ;;
1796   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1797     pdfdir=$ac_optarg ;;
1798
1799   -psdir | --psdir | --psdi | --psd | --ps)
1800     ac_prev=psdir ;;
1801   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1802     psdir=$ac_optarg ;;
1803
1804   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1805   | -silent | --silent | --silen | --sile | --sil)
1806     silent=yes ;;
1807
1808   -runstatedir | --runstatedir | --runstatedi | --runstated \
1809   | --runstate | --runstat | --runsta | --runst | --runs \
1810   | --run | --ru | --r)
1811     ac_prev=runstatedir ;;
1812   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1813   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1814   | --run=* | --ru=* | --r=*)
1815     runstatedir=$ac_optarg ;;
1816
1817   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1818     ac_prev=sbindir ;;
1819   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1820   | --sbi=* | --sb=*)
1821     sbindir=$ac_optarg ;;
1822
1823   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1824   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1825   | --sharedst | --shareds | --shared | --share | --shar \
1826   | --sha | --sh)
1827     ac_prev=sharedstatedir ;;
1828   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1829   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1830   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1831   | --sha=* | --sh=*)
1832     sharedstatedir=$ac_optarg ;;
1833
1834   -site | --site | --sit)
1835     ac_prev=site ;;
1836   -site=* | --site=* | --sit=*)
1837     site=$ac_optarg ;;
1838
1839   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1840     ac_prev=srcdir ;;
1841   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1842     srcdir=$ac_optarg ;;
1843
1844   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1845   | --syscon | --sysco | --sysc | --sys | --sy)
1846     ac_prev=sysconfdir ;;
1847   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1848   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1849     sysconfdir=$ac_optarg ;;
1850
1851   -target | --target | --targe | --targ | --tar | --ta | --t)
1852     ac_prev=target_alias ;;
1853   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1854     target_alias=$ac_optarg ;;
1855
1856   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1857     verbose=yes ;;
1858
1859   -version | --version | --versio | --versi | --vers | -V)
1860     ac_init_version=: ;;
1861
1862   -with-* | --with-*)
1863     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1864     # Reject names that are not valid shell variable names.
1865     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1866       as_fn_error $? "invalid package name: $ac_useropt"
1867     ac_useropt_orig=$ac_useropt
1868     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1869     case $ac_user_opts in
1870       *"
1871 "with_$ac_useropt"
1872 "*) ;;
1873       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1874          ac_unrecognized_sep=', ';;
1875     esac
1876     eval with_$ac_useropt=\$ac_optarg ;;
1877
1878   -without-* | --without-*)
1879     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1880     # Reject names that are not valid shell variable names.
1881     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1882       as_fn_error $? "invalid package name: $ac_useropt"
1883     ac_useropt_orig=$ac_useropt
1884     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1885     case $ac_user_opts in
1886       *"
1887 "with_$ac_useropt"
1888 "*) ;;
1889       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1890          ac_unrecognized_sep=', ';;
1891     esac
1892     eval with_$ac_useropt=no ;;
1893
1894   --x)
1895     # Obsolete; use --with-x.
1896     with_x=yes ;;
1897
1898   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1899   | --x-incl | --x-inc | --x-in | --x-i)
1900     ac_prev=x_includes ;;
1901   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1902   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1903     x_includes=$ac_optarg ;;
1904
1905   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1906   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1907     ac_prev=x_libraries ;;
1908   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1909   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1910     x_libraries=$ac_optarg ;;
1911
1912   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1913 Try \`$0 --help' for more information"
1914     ;;
1915
1916   *=*)
1917     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1918     # Reject names that are not valid shell variable names.
1919     case $ac_envvar in #(
1920       '' | [0-9]* | *[!_$as_cr_alnum]* )
1921       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1922     esac
1923     eval $ac_envvar=\$ac_optarg
1924     export $ac_envvar ;;
1925
1926   *)
1927     # FIXME: should be removed in autoconf 3.0.
1928     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1929     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1930       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1931     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1932     ;;
1933
1934   esac
1935 done
1936
1937 if test -n "$ac_prev"; then
1938   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1939   as_fn_error $? "missing argument to $ac_option"
1940 fi
1941
1942 if test -n "$ac_unrecognized_opts"; then
1943   case $enable_option_checking in
1944     no) ;;
1945     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1946     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1947   esac
1948 fi
1949
1950 # Check all directory arguments for consistency.
1951 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1952                 datadir sysconfdir sharedstatedir localstatedir includedir \
1953                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1954                 libdir localedir mandir runstatedir
1955 do
1956   eval ac_val=\$$ac_var
1957   # Remove trailing slashes.
1958   case $ac_val in
1959     */ )
1960       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1961       eval $ac_var=\$ac_val;;
1962   esac
1963   # Be sure to have absolute directory names.
1964   case $ac_val in
1965     [\\/$]* | ?:[\\/]* )  continue;;
1966     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1967   esac
1968   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1969 done
1970
1971 # There might be people who depend on the old broken behavior: `$host'
1972 # used to hold the argument of --host etc.
1973 # FIXME: To remove some day.
1974 build=$build_alias
1975 host=$host_alias
1976 target=$target_alias
1977
1978 # FIXME: To remove some day.
1979 if test "x$host_alias" != x; then
1980   if test "x$build_alias" = x; then
1981     cross_compiling=maybe
1982   elif test "x$build_alias" != "x$host_alias"; then
1983     cross_compiling=yes
1984   fi
1985 fi
1986
1987 ac_tool_prefix=
1988 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1989
1990 test "$silent" = yes && exec 6>/dev/null
1991
1992
1993 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1994 ac_ls_di=`ls -di .` &&
1995 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1996   as_fn_error $? "working directory cannot be determined"
1997 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1998   as_fn_error $? "pwd does not report name of working directory"
1999
2000
2001 # Find the source files, if location was not specified.
2002 if test -z "$srcdir"; then
2003   ac_srcdir_defaulted=yes
2004   # Try the directory containing this script, then the parent directory.
2005   ac_confdir=`$as_dirname -- "$as_myself" ||
2006 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2007          X"$as_myself" : 'X\(//\)[^/]' \| \
2008          X"$as_myself" : 'X\(//\)$' \| \
2009          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2010 $as_echo X"$as_myself" |
2011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2012             s//\1/
2013             q
2014           }
2015           /^X\(\/\/\)[^/].*/{
2016             s//\1/
2017             q
2018           }
2019           /^X\(\/\/\)$/{
2020             s//\1/
2021             q
2022           }
2023           /^X\(\/\).*/{
2024             s//\1/
2025             q
2026           }
2027           s/.*/./; q'`
2028   srcdir=$ac_confdir
2029   if test ! -r "$srcdir/$ac_unique_file"; then
2030     srcdir=..
2031   fi
2032 else
2033   ac_srcdir_defaulted=no
2034 fi
2035 if test ! -r "$srcdir/$ac_unique_file"; then
2036   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2037   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2038 fi
2039 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2040 ac_abs_confdir=`(
2041         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2042         pwd)`
2043 # When building in place, set srcdir=.
2044 if test "$ac_abs_confdir" = "$ac_pwd"; then
2045   srcdir=.
2046 fi
2047 # Remove unnecessary trailing slashes from srcdir.
2048 # Double slashes in file names in object file debugging info
2049 # mess up M-x gdb in Emacs.
2050 case $srcdir in
2051 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2052 esac
2053 for ac_var in $ac_precious_vars; do
2054   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2055   eval ac_env_${ac_var}_value=\$${ac_var}
2056   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2057   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2058 done
2059
2060 #
2061 # Report the --help message.
2062 #
2063 if test "$ac_init_help" = "long"; then
2064   # Omit some internal or obsolete options to make the list less imposing.
2065   # This message is too long to be a string in the A/UX 3.1 sh.
2066   cat <<_ACEOF
2067 \`configure' configures libpipeline 1.5.2 to adapt to many kinds of systems.
2068
2069 Usage: $0 [OPTION]... [VAR=VALUE]...
2070
2071 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2072 VAR=VALUE.  See below for descriptions of some of the useful variables.
2073
2074 Defaults for the options are specified in brackets.
2075
2076 Configuration:
2077   -h, --help              display this help and exit
2078       --help=short        display options specific to this package
2079       --help=recursive    display the short help of all the included packages
2080   -V, --version           display version information and exit
2081   -q, --quiet, --silent   do not print \`checking ...' messages
2082       --cache-file=FILE   cache test results in FILE [disabled]
2083   -C, --config-cache      alias for \`--cache-file=config.cache'
2084   -n, --no-create         do not create output files
2085       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2086
2087 Installation directories:
2088   --prefix=PREFIX         install architecture-independent files in PREFIX
2089                           [$ac_default_prefix]
2090   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2091                           [PREFIX]
2092
2093 By default, \`make install' will install all the files in
2094 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2095 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2096 for instance \`--prefix=\$HOME'.
2097
2098 For better control, use the options below.
2099
2100 Fine tuning of the installation directories:
2101   --bindir=DIR            user executables [EPREFIX/bin]
2102   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2103   --libexecdir=DIR        program executables [EPREFIX/libexec]
2104   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2105   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2106   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2107   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2108   --libdir=DIR            object code libraries [EPREFIX/lib]
2109   --includedir=DIR        C header files [PREFIX/include]
2110   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2111   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2112   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2113   --infodir=DIR           info documentation [DATAROOTDIR/info]
2114   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2115   --mandir=DIR            man documentation [DATAROOTDIR/man]
2116   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpipeline]
2117   --htmldir=DIR           html documentation [DOCDIR]
2118   --dvidir=DIR            dvi documentation [DOCDIR]
2119   --pdfdir=DIR            pdf documentation [DOCDIR]
2120   --psdir=DIR             ps documentation [DOCDIR]
2121 _ACEOF
2122
2123   cat <<\_ACEOF
2124
2125 Program names:
2126   --program-prefix=PREFIX            prepend PREFIX to installed program names
2127   --program-suffix=SUFFIX            append SUFFIX to installed program names
2128   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2129
2130 System types:
2131   --build=BUILD     configure for building on BUILD [guessed]
2132   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2133 _ACEOF
2134 fi
2135
2136 if test -n "$ac_init_help"; then
2137   case $ac_init_help in
2138      short | recursive ) echo "Configuration of libpipeline 1.5.2:";;
2139    esac
2140   cat <<\_ACEOF
2141
2142 Optional Features:
2143   --disable-option-checking  ignore unrecognized --enable/--with options
2144   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2145   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2146   --enable-silent-rules   less verbose build output (undo: "make V=1")
2147   --disable-silent-rules  verbose build output (undo: "make V=0")
2148   --enable-maintainer-mode
2149                           enable make rules and dependencies not useful (and
2150                           sometimes confusing) to the casual installer
2151   --enable-dependency-tracking
2152                           do not reject slow dependency extractors
2153   --disable-dependency-tracking
2154                           speeds up one-time build
2155   --disable-largefile     omit support for large files
2156   --enable-threads={posix|solaris|pth|windows}
2157                           specify multithreading API
2158   --disable-threads       build without multithread safety
2159   --enable-static[=PKGS]  build static libraries [default=no]
2160   --enable-shared[=PKGS]  build shared libraries [default=yes]
2161   --enable-fast-install[=PKGS]
2162                           optimize for fast installation [default=yes]
2163   --disable-libtool-lock  avoid locking (might break parallel builds)
2164   --disable-rpath         do not hardcode runtime library paths
2165   --enable-socketpair-pipe
2166                           Use socketpair(2) as fast replacement for pipe(2)
2167
2168 Optional Packages:
2169   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2170   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2171   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2172                           both]
2173   --with-aix-soname=aix|svr4|both
2174                           shared library versioning (aka "SONAME") variant to
2175                           provide on AIX, [default=aix].
2176   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2177   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2178                           compiler's sysroot if not specified).
2179   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2180   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2181   --without-libpth-prefix     don't search for libpth in includedir and libdir
2182
2183 Some influential environment variables:
2184   CC          C compiler command
2185   CFLAGS      C compiler flags
2186   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2187               nonstandard directory <lib dir>
2188   LIBS        libraries to pass to the linker, e.g. -l<library>
2189   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2190               you have headers in a nonstandard directory <include dir>
2191   CPP         C preprocessor
2192   LT_SYS_LIBRARY_PATH
2193               User-defined run-time library search path.
2194   PKG_CONFIG  path to pkg-config utility
2195   PKG_CONFIG_PATH
2196               directories to add to pkg-config's search path
2197   PKG_CONFIG_LIBDIR
2198               path overriding pkg-config's built-in search path
2199   CHECK_CFLAGS
2200               C compiler flags for CHECK, overriding pkg-config
2201   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2202
2203 Use these variables to override the choices made by `configure' or to help
2204 it to find libraries and programs with nonstandard names/locations.
2205
2206 Report bugs to <cjwatson@debian.org>.
2207 _ACEOF
2208 ac_status=$?
2209 fi
2210
2211 if test "$ac_init_help" = "recursive"; then
2212   # If there are subdirs, report their specific --help.
2213   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2214     test -d "$ac_dir" ||
2215       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2216       continue
2217     ac_builddir=.
2218
2219 case "$ac_dir" in
2220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2221 *)
2222   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2223   # A ".." for each directory in $ac_dir_suffix.
2224   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2225   case $ac_top_builddir_sub in
2226   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2227   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2228   esac ;;
2229 esac
2230 ac_abs_top_builddir=$ac_pwd
2231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2232 # for backward compatibility:
2233 ac_top_builddir=$ac_top_build_prefix
2234
2235 case $srcdir in
2236   .)  # We are building in place.
2237     ac_srcdir=.
2238     ac_top_srcdir=$ac_top_builddir_sub
2239     ac_abs_top_srcdir=$ac_pwd ;;
2240   [\\/]* | ?:[\\/]* )  # Absolute name.
2241     ac_srcdir=$srcdir$ac_dir_suffix;
2242     ac_top_srcdir=$srcdir
2243     ac_abs_top_srcdir=$srcdir ;;
2244   *) # Relative name.
2245     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2246     ac_top_srcdir=$ac_top_build_prefix$srcdir
2247     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2248 esac
2249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2250
2251     cd "$ac_dir" || { ac_status=$?; continue; }
2252     # Check for guested configure.
2253     if test -f "$ac_srcdir/configure.gnu"; then
2254       echo &&
2255       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2256     elif test -f "$ac_srcdir/configure"; then
2257       echo &&
2258       $SHELL "$ac_srcdir/configure" --help=recursive
2259     else
2260       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2261     fi || ac_status=$?
2262     cd "$ac_pwd" || { ac_status=$?; break; }
2263   done
2264 fi
2265
2266 test -n "$ac_init_help" && exit $ac_status
2267 if $ac_init_version; then
2268   cat <<\_ACEOF
2269 libpipeline configure 1.5.2
2270 generated by GNU Autoconf 2.69
2271
2272 Copyright (C) 2012 Free Software Foundation, Inc.
2273 This configure script is free software; the Free Software Foundation
2274 gives unlimited permission to copy, distribute and modify it.
2275 _ACEOF
2276   exit
2277 fi
2278
2279 ## ------------------------ ##
2280 ## Autoconf initialization. ##
2281 ## ------------------------ ##
2282
2283 # ac_fn_c_try_compile LINENO
2284 # --------------------------
2285 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2286 ac_fn_c_try_compile ()
2287 {
2288   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289   rm -f conftest.$ac_objext
2290   if { { ac_try="$ac_compile"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296 $as_echo "$ac_try_echo"; } >&5
2297   (eval "$ac_compile") 2>conftest.err
2298   ac_status=$?
2299   if test -s conftest.err; then
2300     grep -v '^ *+' conftest.err >conftest.er1
2301     cat conftest.er1 >&5
2302     mv -f conftest.er1 conftest.err
2303   fi
2304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305   test $ac_status = 0; } && {
2306          test -z "$ac_c_werror_flag" ||
2307          test ! -s conftest.err
2308        } && test -s conftest.$ac_objext; then :
2309   ac_retval=0
2310 else
2311   $as_echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314         ac_retval=1
2315 fi
2316   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317   as_fn_set_status $ac_retval
2318
2319 } # ac_fn_c_try_compile
2320
2321 # ac_fn_c_try_cpp LINENO
2322 # ----------------------
2323 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2324 ac_fn_c_try_cpp ()
2325 {
2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327   if { { ac_try="$ac_cpp conftest.$ac_ext"
2328 case "(($ac_try" in
2329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330   *) ac_try_echo=$ac_try;;
2331 esac
2332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333 $as_echo "$ac_try_echo"; } >&5
2334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2335   ac_status=$?
2336   if test -s conftest.err; then
2337     grep -v '^ *+' conftest.err >conftest.er1
2338     cat conftest.er1 >&5
2339     mv -f conftest.er1 conftest.err
2340   fi
2341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2342   test $ac_status = 0; } > conftest.i && {
2343          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2344          test ! -s conftest.err
2345        }; then :
2346   ac_retval=0
2347 else
2348   $as_echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351     ac_retval=1
2352 fi
2353   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354   as_fn_set_status $ac_retval
2355
2356 } # ac_fn_c_try_cpp
2357
2358 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2359 # -------------------------------------------------------
2360 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2361 # the include files in INCLUDES and setting the cache variable VAR
2362 # accordingly.
2363 ac_fn_c_check_header_mongrel ()
2364 {
2365   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366   if eval \${$3+:} false; then :
2367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if eval \${$3+:} false; then :
2370   $as_echo_n "(cached) " >&6
2371 fi
2372 eval ac_res=\$$3
2373                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374 $as_echo "$ac_res" >&6; }
2375 else
2376   # Is the header compilable?
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2378 $as_echo_n "checking $2 usability... " >&6; }
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h.  */
2381 $4
2382 #include <$2>
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385   ac_header_compiler=yes
2386 else
2387   ac_header_compiler=no
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2391 $as_echo "$ac_header_compiler" >&6; }
2392
2393 # Is the header present?
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2395 $as_echo_n "checking $2 presence... " >&6; }
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h.  */
2398 #include <$2>
2399 _ACEOF
2400 if ac_fn_c_try_cpp "$LINENO"; then :
2401   ac_header_preproc=yes
2402 else
2403   ac_header_preproc=no
2404 fi
2405 rm -f conftest.err conftest.i conftest.$ac_ext
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2407 $as_echo "$ac_header_preproc" >&6; }
2408
2409 # So?  What about this header?
2410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2411   yes:no: )
2412     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2413 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2415 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2416     ;;
2417   no:yes:* )
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2419 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2420     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2421 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2422     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2423 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2424     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2425 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2426     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2427 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2428 ( $as_echo "## ---------------------------------- ##
2429 ## Report this to cjwatson@debian.org ##
2430 ## ---------------------------------- ##"
2431      ) | sed "s/^/$as_me: WARNING:     /" >&2
2432     ;;
2433 esac
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2435 $as_echo_n "checking for $2... " >&6; }
2436 if eval \${$3+:} false; then :
2437   $as_echo_n "(cached) " >&6
2438 else
2439   eval "$3=\$ac_header_compiler"
2440 fi
2441 eval ac_res=\$$3
2442                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 fi
2445   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446
2447 } # ac_fn_c_check_header_mongrel
2448
2449 # ac_fn_c_try_run LINENO
2450 # ----------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2452 # that executables *can* be run.
2453 ac_fn_c_try_run ()
2454 {
2455   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456   if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459   *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463   (eval "$ac_link") 2>&5
2464   ac_status=$?
2465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2467   { { case "(($ac_try" in
2468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469   *) ac_try_echo=$ac_try;;
2470 esac
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473   (eval "$ac_try") 2>&5
2474   ac_status=$?
2475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476   test $ac_status = 0; }; }; then :
2477   ac_retval=0
2478 else
2479   $as_echo "$as_me: program exited with status $ac_status" >&5
2480        $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483        ac_retval=$ac_status
2484 fi
2485   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487   as_fn_set_status $ac_retval
2488
2489 } # ac_fn_c_try_run
2490
2491 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2492 # -------------------------------------------------------
2493 # Tests whether HEADER exists and can be compiled using the include files in
2494 # INCLUDES, setting the cache variable VAR accordingly.
2495 ac_fn_c_check_header_compile ()
2496 {
2497   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2499 $as_echo_n "checking for $2... " >&6; }
2500 if eval \${$3+:} false; then :
2501   $as_echo_n "(cached) " >&6
2502 else
2503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h.  */
2505 $4
2506 #include <$2>
2507 _ACEOF
2508 if ac_fn_c_try_compile "$LINENO"; then :
2509   eval "$3=yes"
2510 else
2511   eval "$3=no"
2512 fi
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 fi
2515 eval ac_res=\$$3
2516                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519
2520 } # ac_fn_c_check_header_compile
2521
2522 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2523 # --------------------------------------------
2524 # Tries to find the compile-time value of EXPR in a program that includes
2525 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2526 # computed
2527 ac_fn_c_compute_int ()
2528 {
2529   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530   if test "$cross_compiling" = yes; then
2531     # Depending upon the size, compute the lo and hi bounds.
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h.  */
2534 $4
2535 int
2536 main ()
2537 {
2538 static int test_array [1 - 2 * !(($2) >= 0)];
2539 test_array [0] = 0;
2540 return test_array [0];
2541
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 if ac_fn_c_try_compile "$LINENO"; then :
2547   ac_lo=0 ac_mid=0
2548   while :; do
2549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h.  */
2551 $4
2552 int
2553 main ()
2554 {
2555 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2556 test_array [0] = 0;
2557 return test_array [0];
2558
2559   ;
2560   return 0;
2561 }
2562 _ACEOF
2563 if ac_fn_c_try_compile "$LINENO"; then :
2564   ac_hi=$ac_mid; break
2565 else
2566   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2567                         if test $ac_lo -le $ac_mid; then
2568                           ac_lo= ac_hi=
2569                           break
2570                         fi
2571                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2572 fi
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574   done
2575 else
2576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h.  */
2578 $4
2579 int
2580 main ()
2581 {
2582 static int test_array [1 - 2 * !(($2) < 0)];
2583 test_array [0] = 0;
2584 return test_array [0];
2585
2586   ;
2587   return 0;
2588 }
2589 _ACEOF
2590 if ac_fn_c_try_compile "$LINENO"; then :
2591   ac_hi=-1 ac_mid=-1
2592   while :; do
2593     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h.  */
2595 $4
2596 int
2597 main ()
2598 {
2599 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2600 test_array [0] = 0;
2601 return test_array [0];
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 if ac_fn_c_try_compile "$LINENO"; then :
2608   ac_lo=$ac_mid; break
2609 else
2610   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2611                         if test $ac_mid -le $ac_hi; then
2612                           ac_lo= ac_hi=
2613                           break
2614                         fi
2615                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618   done
2619 else
2620   ac_lo= ac_hi=
2621 fi
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 fi
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 # Binary search between lo and hi bounds.
2626 while test "x$ac_lo" != "x$ac_hi"; do
2627   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h.  */
2630 $4
2631 int
2632 main ()
2633 {
2634 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2635 test_array [0] = 0;
2636 return test_array [0];
2637
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 if ac_fn_c_try_compile "$LINENO"; then :
2643   ac_hi=$ac_mid
2644 else
2645   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2646 fi
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 done
2649 case $ac_lo in #((
2650 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2651 '') ac_retval=1 ;;
2652 esac
2653   else
2654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h.  */
2656 $4
2657 static long int longval () { return $2; }
2658 static unsigned long int ulongval () { return $2; }
2659 #include <stdio.h>
2660 #include <stdlib.h>
2661 int
2662 main ()
2663 {
2664
2665   FILE *f = fopen ("conftest.val", "w");
2666   if (! f)
2667     return 1;
2668   if (($2) < 0)
2669     {
2670       long int i = longval ();
2671       if (i != ($2))
2672         return 1;
2673       fprintf (f, "%ld", i);
2674     }
2675   else
2676     {
2677       unsigned long int i = ulongval ();
2678       if (i != ($2))
2679         return 1;
2680       fprintf (f, "%lu", i);
2681     }
2682   /* Do not output a trailing newline, as this causes \r\n confusion
2683      on some platforms.  */
2684   return ferror (f) || fclose (f) != 0;
2685
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 if ac_fn_c_try_run "$LINENO"; then :
2691   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2692 else
2693   ac_retval=1
2694 fi
2695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2696   conftest.$ac_objext conftest.beam conftest.$ac_ext
2697 rm -f conftest.val
2698
2699   fi
2700   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2701   as_fn_set_status $ac_retval
2702
2703 } # ac_fn_c_compute_int
2704
2705 # ac_fn_c_try_link LINENO
2706 # -----------------------
2707 # Try to link conftest.$ac_ext, and return whether this succeeded.
2708 ac_fn_c_try_link ()
2709 {
2710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711   rm -f conftest.$ac_objext conftest$ac_exeext
2712   if { { ac_try="$ac_link"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718 $as_echo "$ac_try_echo"; } >&5
2719   (eval "$ac_link") 2>conftest.err
2720   ac_status=$?
2721   if test -s conftest.err; then
2722     grep -v '^ *+' conftest.err >conftest.er1
2723     cat conftest.er1 >&5
2724     mv -f conftest.er1 conftest.err
2725   fi
2726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2727   test $ac_status = 0; } && {
2728          test -z "$ac_c_werror_flag" ||
2729          test ! -s conftest.err
2730        } && test -s conftest$ac_exeext && {
2731          test "$cross_compiling" = yes ||
2732          test -x conftest$ac_exeext
2733        }; then :
2734   ac_retval=0
2735 else
2736   $as_echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739         ac_retval=1
2740 fi
2741   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2742   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2743   # interfere with the next link command; also delete a directory that is
2744   # left behind by Apple's compiler.  We do this before executing the actions.
2745   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2747   as_fn_set_status $ac_retval
2748
2749 } # ac_fn_c_try_link
2750
2751 # ac_fn_c_check_func LINENO FUNC VAR
2752 # ----------------------------------
2753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2754 ac_fn_c_check_func ()
2755 {
2756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2758 $as_echo_n "checking for $2... " >&6; }
2759 if eval \${$3+:} false; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h.  */
2764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2766 #define $2 innocuous_$2
2767
2768 /* System header to define __stub macros and hopefully few prototypes,
2769     which can conflict with char $2 (); below.
2770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771     <limits.h> exists even on freestanding compilers.  */
2772
2773 #ifdef __STDC__
2774 # include <limits.h>
2775 #else
2776 # include <assert.h>
2777 #endif
2778
2779 #undef $2
2780
2781 /* Override any GCC internal prototype to avoid an error.
2782    Use char because int might match the return type of a GCC
2783    builtin and then its argument prototype would still apply.  */
2784 #ifdef __cplusplus
2785 extern "C"
2786 #endif
2787 char $2 ();
2788 /* The GNU C library defines this for functions which it implements
2789     to always fail with ENOSYS.  Some functions are actually named
2790     something starting with __ and the normal name is an alias.  */
2791 #if defined __stub_$2 || defined __stub___$2
2792 choke me
2793 #endif
2794
2795 int
2796 main ()
2797 {
2798 return $2 ();
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 if ac_fn_c_try_link "$LINENO"; then :
2804   eval "$3=yes"
2805 else
2806   eval "$3=no"
2807 fi
2808 rm -f core conftest.err conftest.$ac_objext \
2809     conftest$ac_exeext conftest.$ac_ext
2810 fi
2811 eval ac_res=\$$3
2812                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813 $as_echo "$ac_res" >&6; }
2814   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2815
2816 } # ac_fn_c_check_func
2817
2818 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2819 # -------------------------------------------
2820 # Tests whether TYPE exists after having included INCLUDES, setting cache
2821 # variable VAR accordingly.
2822 ac_fn_c_check_type ()
2823 {
2824   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2826 $as_echo_n "checking for $2... " >&6; }
2827 if eval \${$3+:} false; then :
2828   $as_echo_n "(cached) " >&6
2829 else
2830   eval "$3=no"
2831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h.  */
2833 $4
2834 int
2835 main ()
2836 {
2837 if (sizeof ($2))
2838          return 0;
2839   ;
2840   return 0;
2841 }
2842 _ACEOF
2843 if ac_fn_c_try_compile "$LINENO"; then :
2844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h.  */
2846 $4
2847 int
2848 main ()
2849 {
2850 if (sizeof (($2)))
2851             return 0;
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 if ac_fn_c_try_compile "$LINENO"; then :
2857
2858 else
2859   eval "$3=yes"
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 fi
2865 eval ac_res=\$$3
2866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2867 $as_echo "$ac_res" >&6; }
2868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2869
2870 } # ac_fn_c_check_type
2871
2872 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2873 # ---------------------------------------------
2874 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2875 # accordingly.
2876 ac_fn_c_check_decl ()
2877 {
2878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2879   as_decl_name=`echo $2|sed 's/ *(.*//'`
2880   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2882 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2883 if eval \${$3+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h.  */
2888 $4
2889 int
2890 main ()
2891 {
2892 #ifndef $as_decl_name
2893 #ifdef __cplusplus
2894   (void) $as_decl_use;
2895 #else
2896   (void) $as_decl_name;
2897 #endif
2898 #endif
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 if ac_fn_c_try_compile "$LINENO"; then :
2905   eval "$3=yes"
2906 else
2907   eval "$3=no"
2908 fi
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 fi
2911 eval ac_res=\$$3
2912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2915
2916 } # ac_fn_c_check_decl
2917
2918 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2919 # ----------------------------------------------------
2920 # Tries to find if the field MEMBER exists in type AGGR, after including
2921 # INCLUDES, setting cache variable VAR accordingly.
2922 ac_fn_c_check_member ()
2923 {
2924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2926 $as_echo_n "checking for $2.$3... " >&6; }
2927 if eval \${$4+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h.  */
2932 $5
2933 int
2934 main ()
2935 {
2936 static $2 ac_aggr;
2937 if (ac_aggr.$3)
2938 return 0;
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 if ac_fn_c_try_compile "$LINENO"; then :
2944   eval "$4=yes"
2945 else
2946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h.  */
2948 $5
2949 int
2950 main ()
2951 {
2952 static $2 ac_aggr;
2953 if (sizeof ac_aggr.$3)
2954 return 0;
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 if ac_fn_c_try_compile "$LINENO"; then :
2960   eval "$4=yes"
2961 else
2962   eval "$4=no"
2963 fi
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 fi
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 fi
2968 eval ac_res=\$$4
2969                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2970 $as_echo "$ac_res" >&6; }
2971   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2972
2973 } # ac_fn_c_check_member
2974 cat >config.log <<_ACEOF
2975 This file contains any messages produced by compilers while
2976 running configure, to aid debugging if configure makes a mistake.
2977
2978 It was created by libpipeline $as_me 1.5.2, which was
2979 generated by GNU Autoconf 2.69.  Invocation command line was
2980
2981   $ $0 $@
2982
2983 _ACEOF
2984 exec 5>>config.log
2985 {
2986 cat <<_ASUNAME
2987 ## --------- ##
2988 ## Platform. ##
2989 ## --------- ##
2990
2991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2996
2997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2998 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2999
3000 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3001 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3003 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3004 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3005 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3006 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3007
3008 _ASUNAME
3009
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     $as_echo "PATH: $as_dir"
3016   done
3017 IFS=$as_save_IFS
3018
3019 } >&5
3020
3021 cat >&5 <<_ACEOF
3022
3023
3024 ## ----------- ##
3025 ## Core tests. ##
3026 ## ----------- ##
3027
3028 _ACEOF
3029
3030
3031 # Keep a trace of the command line.
3032 # Strip out --no-create and --no-recursion so they do not pile up.
3033 # Strip out --silent because we don't want to record it for future runs.
3034 # Also quote any args containing shell meta-characters.
3035 # Make two passes to allow for proper duplicate-argument suppression.
3036 ac_configure_args=
3037 ac_configure_args0=
3038 ac_configure_args1=
3039 ac_must_keep_next=false
3040 for ac_pass in 1 2
3041 do
3042   for ac_arg
3043   do
3044     case $ac_arg in
3045     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3046     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3047     | -silent | --silent | --silen | --sile | --sil)
3048       continue ;;
3049     *\'*)
3050       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3051     esac
3052     case $ac_pass in
3053     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3054     2)
3055       as_fn_append ac_configure_args1 " '$ac_arg'"
3056       if test $ac_must_keep_next = true; then
3057         ac_must_keep_next=false # Got value, back to normal.
3058       else
3059         case $ac_arg in
3060           *=* | --config-cache | -C | -disable-* | --disable-* \
3061           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3062           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3063           | -with-* | --with-* | -without-* | --without-* | --x)
3064             case "$ac_configure_args0 " in
3065               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3066             esac
3067             ;;
3068           -* ) ac_must_keep_next=true ;;
3069         esac
3070       fi
3071       as_fn_append ac_configure_args " '$ac_arg'"
3072       ;;
3073     esac
3074   done
3075 done
3076 { ac_configure_args0=; unset ac_configure_args0;}
3077 { ac_configure_args1=; unset ac_configure_args1;}
3078
3079 # When interrupted or exit'd, cleanup temporary files, and complete
3080 # config.log.  We remove comments because anyway the quotes in there
3081 # would cause problems or look ugly.
3082 # WARNING: Use '\'' to represent an apostrophe within the trap.
3083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3084 trap 'exit_status=$?
3085   # Save into config.log some information that might help in debugging.
3086   {
3087     echo
3088
3089     $as_echo "## ---------------- ##
3090 ## Cache variables. ##
3091 ## ---------------- ##"
3092     echo
3093     # The following way of writing the cache mishandles newlines in values,
3094 (
3095   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3096     eval ac_val=\$$ac_var
3097     case $ac_val in #(
3098     *${as_nl}*)
3099       case $ac_var in #(
3100       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3102       esac
3103       case $ac_var in #(
3104       _ | IFS | as_nl) ;; #(
3105       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3106       *) { eval $ac_var=; unset $ac_var;} ;;
3107       esac ;;
3108     esac
3109   done
3110   (set) 2>&1 |
3111     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3112     *${as_nl}ac_space=\ *)
3113       sed -n \
3114         "s/'\''/'\''\\\\'\'''\''/g;
3115           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3116       ;; #(
3117     *)
3118       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3119       ;;
3120     esac |
3121     sort
3122 )
3123     echo
3124
3125     $as_echo "## ----------------- ##
3126 ## Output variables. ##
3127 ## ----------------- ##"
3128     echo
3129     for ac_var in $ac_subst_vars
3130     do
3131       eval ac_val=\$$ac_var
3132       case $ac_val in
3133       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3134       esac
3135       $as_echo "$ac_var='\''$ac_val'\''"
3136     done | sort
3137     echo
3138
3139     if test -n "$ac_subst_files"; then
3140       $as_echo "## ------------------- ##
3141 ## File substitutions. ##
3142 ## ------------------- ##"
3143       echo
3144       for ac_var in $ac_subst_files
3145       do
3146         eval ac_val=\$$ac_var
3147         case $ac_val in
3148         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3149         esac
3150         $as_echo "$ac_var='\''$ac_val'\''"
3151       done | sort
3152       echo
3153     fi
3154
3155     if test -s confdefs.h; then
3156       $as_echo "## ----------- ##
3157 ## confdefs.h. ##
3158 ## ----------- ##"
3159       echo
3160       cat confdefs.h
3161       echo
3162     fi
3163     test "$ac_signal" != 0 &&
3164       $as_echo "$as_me: caught signal $ac_signal"
3165     $as_echo "$as_me: exit $exit_status"
3166   } >&5
3167   rm -f core *.core core.conftest.* &&
3168     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3169     exit $exit_status
3170 ' 0
3171 for ac_signal in 1 2 13 15; do
3172   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3173 done
3174 ac_signal=0
3175
3176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3177 rm -f -r conftest* confdefs.h
3178
3179 $as_echo "/* confdefs.h */" > confdefs.h
3180
3181 # Predefined preprocessor variables.
3182
3183 cat >>confdefs.h <<_ACEOF
3184 #define PACKAGE_NAME "$PACKAGE_NAME"
3185 _ACEOF
3186
3187 cat >>confdefs.h <<_ACEOF
3188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3189 _ACEOF
3190
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3193 _ACEOF
3194
3195 cat >>confdefs.h <<_ACEOF
3196 #define PACKAGE_STRING "$PACKAGE_STRING"
3197 _ACEOF
3198
3199 cat >>confdefs.h <<_ACEOF
3200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3201 _ACEOF
3202
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE_URL "$PACKAGE_URL"
3205 _ACEOF
3206
3207
3208 # Let the site file select an alternate cache file if it wants to.
3209 # Prefer an explicitly selected file to automatically selected ones.
3210 ac_site_file1=NONE
3211 ac_site_file2=NONE
3212 if test -n "$CONFIG_SITE"; then
3213   # We do not want a PATH search for config.site.
3214   case $CONFIG_SITE in #((
3215     -*)  ac_site_file1=./$CONFIG_SITE;;
3216     */*) ac_site_file1=$CONFIG_SITE;;
3217     *)   ac_site_file1=./$CONFIG_SITE;;
3218   esac
3219 elif test "x$prefix" != xNONE; then
3220   ac_site_file1=$prefix/share/config.site
3221   ac_site_file2=$prefix/etc/config.site
3222 else
3223   ac_site_file1=$ac_default_prefix/share/config.site
3224   ac_site_file2=$ac_default_prefix/etc/config.site
3225 fi
3226 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3227 do
3228   test "x$ac_site_file" = xNONE && continue
3229   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3230     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3231 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3232     sed 's/^/| /' "$ac_site_file" >&5
3233     . "$ac_site_file" \
3234       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "failed to load site script $ac_site_file
3237 See \`config.log' for more details" "$LINENO" 5; }
3238   fi
3239 done
3240
3241 if test -r "$cache_file"; then
3242   # Some versions of bash will fail to source /dev/null (special files
3243   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3244   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3245     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3246 $as_echo "$as_me: loading cache $cache_file" >&6;}
3247     case $cache_file in
3248       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3249       *)                      . "./$cache_file";;
3250     esac
3251   fi
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3254 $as_echo "$as_me: creating cache $cache_file" >&6;}
3255   >$cache_file
3256 fi
3257
3258 as_fn_append ac_header_list " unistd.h"
3259 as_fn_append ac_func_list " symlink"
3260 as_fn_append ac_func_list " getprogname"
3261 as_fn_append ac_func_list " getexecname"
3262 as_fn_append ac_header_list " sys/time.h"
3263 as_fn_append ac_header_list " sys/socket.h"
3264 as_fn_append ac_func_list " gettimeofday"
3265 as_fn_append ac_header_list " limits.h"
3266 as_fn_append ac_func_list " lstat"
3267 as_fn_append ac_header_list " sys/mman.h"
3268 as_fn_append ac_func_list " mprotect"
3269 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3270 as_fn_append ac_header_list " sys/param.h"
3271 as_fn_append ac_func_list " setenv"
3272 as_fn_append ac_func_list " sigaction"
3273 as_fn_append ac_func_list " sigaltstack"
3274 as_fn_append ac_func_list " siginterrupt"
3275 as_fn_append ac_func_list " snprintf"
3276 as_fn_append ac_header_list " sys/stat.h"
3277 as_fn_append ac_header_list " wchar.h"
3278 as_fn_append ac_header_list " stdint.h"
3279 as_fn_append ac_func_list " strndup"
3280 as_fn_append ac_header_list " sys/select.h"
3281 as_fn_append ac_header_list " sys/wait.h"
3282 as_fn_append ac_func_list " vasnprintf"
3283 as_fn_append ac_header_list " features.h"
3284 as_fn_append ac_header_list " crtdefs.h"
3285 # Check that the precious variables saved in the cache have kept the same
3286 # value.
3287 ac_cache_corrupted=false
3288 for ac_var in $ac_precious_vars; do
3289   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3290   eval ac_new_set=\$ac_env_${ac_var}_set
3291   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3292   eval ac_new_val=\$ac_env_${ac_var}_value
3293   case $ac_old_set,$ac_new_set in
3294     set,)
3295       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3296 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3297       ac_cache_corrupted=: ;;
3298     ,set)
3299       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3300 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3301       ac_cache_corrupted=: ;;
3302     ,);;
3303     *)
3304       if test "x$ac_old_val" != "x$ac_new_val"; then
3305         # differences in whitespace do not lead to failure.
3306         ac_old_val_w=`echo x $ac_old_val`
3307         ac_new_val_w=`echo x $ac_new_val`
3308         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3309           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3310 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3311           ac_cache_corrupted=:
3312         else
3313           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3314 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3315           eval $ac_var=\$ac_old_val
3316         fi
3317         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3318 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3319         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3320 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3321       fi;;
3322   esac
3323   # Pass precious variables to config.status.
3324   if test "$ac_new_set" = set; then
3325     case $ac_new_val in
3326     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3327     *) ac_arg=$ac_var=$ac_new_val ;;
3328     esac
3329     case " $ac_configure_args " in
3330       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3331       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3332     esac
3333   fi
3334 done
3335 if $ac_cache_corrupted; then
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3339 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3340   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3341 fi
3342 ## -------------------- ##
3343 ## Main body of script. ##
3344 ## -------------------- ##
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351
3352
3353 ac_aux_dir=
3354 for ac_dir in build-aux "$srcdir"/build-aux; do
3355   if test -f "$ac_dir/install-sh"; then
3356     ac_aux_dir=$ac_dir
3357     ac_install_sh="$ac_aux_dir/install-sh -c"
3358     break
3359   elif test -f "$ac_dir/install.sh"; then
3360     ac_aux_dir=$ac_dir
3361     ac_install_sh="$ac_aux_dir/install.sh -c"
3362     break
3363   elif test -f "$ac_dir/shtool"; then
3364     ac_aux_dir=$ac_dir
3365     ac_install_sh="$ac_aux_dir/shtool install -c"
3366     break
3367   fi
3368 done
3369 if test -z "$ac_aux_dir"; then
3370   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3371 fi
3372
3373 # These three variables are undocumented and unsupported,
3374 # and are intended to be withdrawn in a future Autoconf release.
3375 # They can cause serious problems if a builder's source tree is in a directory
3376 # whose full name contains unusual characters.
3377 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3378 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3379 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3380
3381
3382 am__api_version='1.16'
3383
3384 # Find a good install program.  We prefer a C program (faster),
3385 # so one script is as good as another.  But avoid the broken or
3386 # incompatible versions:
3387 # SysV /etc/install, /usr/sbin/install
3388 # SunOS /usr/etc/install
3389 # IRIX /sbin/install
3390 # AIX /bin/install
3391 # AmigaOS /C/install, which installs bootblocks on floppy discs
3392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3395 # OS/2's system install, which has a completely different semantic
3396 # ./install, which can be erroneously created by make from ./install.sh.
3397 # Reject install programs that cannot install multiple files.
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3400 if test -z "$INSTALL"; then
3401 if ${ac_cv_path_install+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407   IFS=$as_save_IFS
3408   test -z "$as_dir" && as_dir=.
3409     # Account for people who put trailing slashes in PATH elements.
3410 case $as_dir/ in #((
3411   ./ | .// | /[cC]/* | \
3412   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3413   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3414   /usr/ucb/* ) ;;
3415   *)
3416     # OSF1 and SCO ODT 3.0 have their own names for install.
3417     # Don't use installbsd from OSF since it installs stuff as root
3418     # by default.
3419     for ac_prog in ginstall scoinst install; do
3420       for ac_exec_ext in '' $ac_executable_extensions; do
3421         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3422           if test $ac_prog = install &&
3423             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3424             # AIX install.  It has an incompatible calling convention.
3425             :
3426           elif test $ac_prog = install &&
3427             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3428             # program-specific install script used by HP pwplus--don't use.
3429             :
3430           else
3431             rm -rf conftest.one conftest.two conftest.dir
3432             echo one > conftest.one
3433             echo two > conftest.two
3434             mkdir conftest.dir
3435             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3436               test -s conftest.one && test -s conftest.two &&
3437               test -s conftest.dir/conftest.one &&
3438               test -s conftest.dir/conftest.two
3439             then
3440               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3441               break 3
3442             fi
3443           fi
3444         fi
3445       done
3446     done
3447     ;;
3448 esac
3449
3450   done
3451 IFS=$as_save_IFS
3452
3453 rm -rf conftest.one conftest.two conftest.dir
3454
3455 fi
3456   if test "${ac_cv_path_install+set}" = set; then
3457     INSTALL=$ac_cv_path_install
3458   else
3459     # As a last resort, use the slow shell script.  Don't cache a
3460     # value for INSTALL within a source directory, because that will
3461     # break other packages using the cache if that directory is
3462     # removed, or if the value is a relative name.
3463     INSTALL=$ac_install_sh
3464   fi
3465 fi
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3467 $as_echo "$INSTALL" >&6; }
3468
3469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3470 # It thinks the first close brace ends the variable substitution.
3471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3472
3473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3474
3475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3476
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3478 $as_echo_n "checking whether build environment is sane... " >&6; }
3479 # Reject unsafe characters in $srcdir or the absolute working directory
3480 # name.  Accept space and tab only in the latter.
3481 am_lf='
3482 '
3483 case `pwd` in
3484   *[\\\"\#\$\&\'\`$am_lf]*)
3485     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3486 esac
3487 case $srcdir in
3488   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3489     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3490 esac
3491
3492 # Do 'set' in a subshell so we don't clobber the current shell's
3493 # arguments.  Must try -L first in case configure is actually a
3494 # symlink; some systems play weird games with the mod time of symlinks
3495 # (eg FreeBSD returns the mod time of the symlink's containing
3496 # directory).
3497 if (
3498    am_has_slept=no
3499    for am_try in 1 2; do
3500      echo "timestamp, slept: $am_has_slept" > conftest.file
3501      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3502      if test "$*" = "X"; then
3503         # -L didn't work.
3504         set X `ls -t "$srcdir/configure" conftest.file`
3505      fi
3506      if test "$*" != "X $srcdir/configure conftest.file" \
3507         && test "$*" != "X conftest.file $srcdir/configure"; then
3508
3509         # If neither matched, then we have a broken ls.  This can happen
3510         # if, for instance, CONFIG_SHELL is bash and it inherits a
3511         # broken ls alias from the environment.  This has actually
3512         # happened.  Such a system could not be considered "sane".
3513         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3514   alias in your environment" "$LINENO" 5
3515      fi
3516      if test "$2" = conftest.file || test $am_try -eq 2; then
3517        break
3518      fi
3519      # Just in case.
3520      sleep 1
3521      am_has_slept=yes
3522    done
3523    test "$2" = conftest.file
3524    )
3525 then
3526    # Ok.
3527    :
3528 else
3529    as_fn_error $? "newly created file is older than distributed files!
3530 Check your system clock" "$LINENO" 5
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534 # If we didn't sleep, we still need to ensure time stamps of config.status and
3535 # generated files are strictly newer.
3536 am_sleep_pid=
3537 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3538   ( sleep 1 ) &
3539   am_sleep_pid=$!
3540 fi
3541
3542 rm -f conftest.file
3543
3544 test "$program_prefix" != NONE &&
3545   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3546 # Use a double $ so make ignores it.
3547 test "$program_suffix" != NONE &&
3548   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3549 # Double any \ or $.
3550 # By default was `s,x,x', remove it if useless.
3551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3553
3554 # Expand $ac_aux_dir to an absolute path.
3555 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3556
3557 if test x"${MISSING+set}" != xset; then
3558   case $am_aux_dir in
3559   *\ * | *\     *)
3560     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3561   *)
3562     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3563   esac
3564 fi
3565 # Use eval to expand $SHELL
3566 if eval "$MISSING --is-lightweight"; then
3567   am_missing_run="$MISSING "
3568 else
3569   am_missing_run=
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3571 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3572 fi
3573
3574 if test x"${install_sh+set}" != xset; then
3575   case $am_aux_dir in
3576   *\ * | *\     *)
3577     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3578   *)
3579     install_sh="\${SHELL} $am_aux_dir/install-sh"
3580   esac
3581 fi
3582
3583 # Installed binaries are usually stripped using 'strip' when the user
3584 # run "make install-strip".  However 'strip' might not be the right
3585 # tool to use in cross-compilation environments, therefore Automake
3586 # will honor the 'STRIP' environment variable to overrule this program.
3587 if test "$cross_compiling" != no; then
3588   if test -n "$ac_tool_prefix"; then
3589   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}strip; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_prog_STRIP+:} false; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596   if test -n "$STRIP"; then
3597   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604     for ac_exec_ext in '' $ac_executable_extensions; do
3605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608     break 2
3609   fi
3610 done
3611   done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 STRIP=$ac_cv_prog_STRIP
3617 if test -n "$STRIP"; then
3618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3619 $as_echo "$STRIP" >&6; }
3620 else
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 fi
3624
3625
3626 fi
3627 if test -z "$ac_cv_prog_STRIP"; then
3628   ac_ct_STRIP=$STRIP
3629   # Extract the first word of "strip", so it can be a program name with args.
3630 set dummy strip; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3634   $as_echo_n "(cached) " >&6
3635 else
3636   if test -n "$ac_ct_STRIP"; then
3637   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644     for ac_exec_ext in '' $ac_executable_extensions; do
3645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646     ac_cv_prog_ac_ct_STRIP="strip"
3647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648     break 2
3649   fi
3650 done
3651   done
3652 IFS=$as_save_IFS
3653
3654 fi
3655 fi
3656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3657 if test -n "$ac_ct_STRIP"; then
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3659 $as_echo "$ac_ct_STRIP" >&6; }
3660 else
3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 fi
3664
3665   if test "x$ac_ct_STRIP" = x; then
3666     STRIP=":"
3667   else
3668     case $cross_compiling:$ac_tool_warned in
3669 yes:)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3672 ac_tool_warned=yes ;;
3673 esac
3674     STRIP=$ac_ct_STRIP
3675   fi
3676 else
3677   STRIP="$ac_cv_prog_STRIP"
3678 fi
3679
3680 fi
3681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3682
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3685 if test -z "$MKDIR_P"; then
3686   if ${ac_cv_path_mkdir+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694     for ac_prog in mkdir gmkdir; do
3695          for ac_exec_ext in '' $ac_executable_extensions; do
3696            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3697            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3698              'mkdir (GNU coreutils) '* | \
3699              'mkdir (coreutils) '* | \
3700              'mkdir (fileutils) '4.1*)
3701                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3702                break 3;;
3703            esac
3704          done
3705        done
3706   done
3707 IFS=$as_save_IFS
3708
3709 fi
3710
3711   test -d ./--version && rmdir ./--version
3712   if test "${ac_cv_path_mkdir+set}" = set; then
3713     MKDIR_P="$ac_cv_path_mkdir -p"
3714   else
3715     # As a last resort, use the slow shell script.  Don't cache a
3716     # value for MKDIR_P within a source directory, because that will
3717     # break other packages using the cache if that directory is
3718     # removed, or if the value is a relative name.
3719     MKDIR_P="$ac_install_sh -d"
3720   fi
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3723 $as_echo "$MKDIR_P" >&6; }
3724
3725 for ac_prog in gawk mawk nawk awk
3726 do
3727   # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_AWK+:} false; then :
3732   $as_echo_n "(cached) " >&6
3733 else
3734   if test -n "$AWK"; then
3735   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740   IFS=$as_save_IFS
3741   test -z "$as_dir" && as_dir=.
3742     for ac_exec_ext in '' $ac_executable_extensions; do
3743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744     ac_cv_prog_AWK="$ac_prog"
3745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746     break 2
3747   fi
3748 done
3749   done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 AWK=$ac_cv_prog_AWK
3755 if test -n "$AWK"; then
3756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3757 $as_echo "$AWK" >&6; }
3758 else
3759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764   test -n "$AWK" && break
3765 done
3766
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3769 set x ${MAKE-make}
3770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3771 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   cat >conftest.make <<\_ACEOF
3775 SHELL = /bin/sh
3776 all:
3777         @echo '@@@%%%=$(MAKE)=@@@%%%'
3778 _ACEOF
3779 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3781   *@@@%%%=?*=@@@%%%*)
3782     eval ac_cv_prog_make_${ac_make}_set=yes;;
3783   *)
3784     eval ac_cv_prog_make_${ac_make}_set=no;;
3785 esac
3786 rm -f conftest.make
3787 fi
3788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790 $as_echo "yes" >&6; }
3791   SET_MAKE=
3792 else
3793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795   SET_MAKE="MAKE=${MAKE-make}"
3796 fi
3797
3798 rm -rf .tst 2>/dev/null
3799 mkdir .tst 2>/dev/null
3800 if test -d .tst; then
3801   am__leading_dot=.
3802 else
3803   am__leading_dot=_
3804 fi
3805 rmdir .tst 2>/dev/null
3806
3807 # Check whether --enable-silent-rules was given.
3808 if test "${enable_silent_rules+set}" = set; then :
3809   enableval=$enable_silent_rules;
3810 fi
3811
3812 case $enable_silent_rules in # (((
3813   yes) AM_DEFAULT_VERBOSITY=0;;
3814    no) AM_DEFAULT_VERBOSITY=1;;
3815     *) AM_DEFAULT_VERBOSITY=1;;
3816 esac
3817 am_make=${MAKE-make}
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3819 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3820 if ${am_cv_make_support_nested_variables+:} false; then :
3821   $as_echo_n "(cached) " >&6
3822 else
3823   if $as_echo 'TRUE=$(BAR$(V))
3824 BAR0=false
3825 BAR1=true
3826 V=1
3827 am__doit:
3828         @$(TRUE)
3829 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3830   am_cv_make_support_nested_variables=yes
3831 else
3832   am_cv_make_support_nested_variables=no
3833 fi
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3836 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3837 if test $am_cv_make_support_nested_variables = yes; then
3838     AM_V='$(V)'
3839   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3840 else
3841   AM_V=$AM_DEFAULT_VERBOSITY
3842   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3843 fi
3844 AM_BACKSLASH='\'
3845
3846 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3847   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3848   # is not polluted with repeated "-I."
3849   am__isrc=' -I$(srcdir)'
3850   # test to see if srcdir already configured
3851   if test -f $srcdir/config.status; then
3852     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3853   fi
3854 fi
3855
3856 # test whether we have cygpath
3857 if test -z "$CYGPATH_W"; then
3858   if (cygpath --version) >/dev/null 2>/dev/null; then
3859     CYGPATH_W='cygpath -w'
3860   else
3861     CYGPATH_W=echo
3862   fi
3863 fi
3864
3865
3866 # Define the identity of the package.
3867  PACKAGE='libpipeline'
3868  VERSION='1.5.2'
3869
3870
3871 cat >>confdefs.h <<_ACEOF
3872 #define PACKAGE "$PACKAGE"
3873 _ACEOF
3874
3875
3876 cat >>confdefs.h <<_ACEOF
3877 #define VERSION "$VERSION"
3878 _ACEOF
3879
3880 # Some tools Automake needs.
3881
3882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3883
3884
3885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3886
3887
3888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3889
3890
3891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3892
3893
3894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3895
3896 # For better backward compatibility.  To be removed once Automake 1.9.x
3897 # dies out for good.  For more background, see:
3898 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3899 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3900 mkdir_p='$(MKDIR_P)'
3901
3902 # We need awk for the "check" target (and possibly the TAP driver).  The
3903 # system "awk" is bad on some platforms.
3904 # Always define AMTAR for backward compatibility.  Yes, it's still used
3905 # in the wild :-(  We should find a proper way to deprecate it ...
3906 AMTAR='$${TAR-tar}'
3907
3908
3909 # We'll loop over all known methods to create a tar archive until one works.
3910 _am_tools='gnutar  pax cpio none'
3911
3912 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3913
3914
3915
3916
3917
3918
3919 # POSIX will say in a future version that running "rm -f" with no argument
3920 # is OK; and we want to be able to make that assumption in our Makefile
3921 # recipes.  So use an aggressive probe to check that the usage we want is
3922 # actually supported "in the wild" to an acceptable degree.
3923 # See automake bug#10828.
3924 # To make any issue more visible, cause the running configure to be aborted
3925 # by default if the 'rm' program in use doesn't match our expectations; the
3926 # user can still override this though.
3927 if rm -f && rm -fr && rm -rf; then : OK; else
3928   cat >&2 <<'END'
3929 Oops!
3930
3931 Your 'rm' program seems unable to run without file operands specified
3932 on the command line, even when the '-f' option is present.  This is contrary
3933 to the behaviour of most rm programs out there, and not conforming with
3934 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3935
3936 Please tell bug-automake@gnu.org about your system, including the value
3937 of your $PATH and any error possibly output before this message.  This
3938 can help us improve future automake versions.
3939
3940 END
3941   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3942     echo 'Configuration will proceed anyway, since you have set the' >&2
3943     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3944     echo >&2
3945   else
3946     cat >&2 <<'END'
3947 Aborting the configuration process, to ensure you take notice of the issue.
3948
3949 You can download and install GNU coreutils to get an 'rm' implementation
3950 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3951
3952 If you want to complete the configuration process using your problematic
3953 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3954 to "yes", and re-run configure.
3955
3956 END
3957     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3958   fi
3959 fi
3960
3961
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3964     # Check whether --enable-maintainer-mode was given.
3965 if test "${enable_maintainer_mode+set}" = set; then :
3966   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3967 else
3968   USE_MAINTAINER_MODE=no
3969 fi
3970
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3972 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3973    if test $USE_MAINTAINER_MODE = yes; then
3974   MAINTAINER_MODE_TRUE=
3975   MAINTAINER_MODE_FALSE='#'
3976 else
3977   MAINTAINER_MODE_TRUE='#'
3978   MAINTAINER_MODE_FALSE=
3979 fi
3980
3981   MAINT=$MAINTAINER_MODE_TRUE
3982
3983
3984 # Check whether --enable-silent-rules was given.
3985 if test "${enable_silent_rules+set}" = set; then :
3986   enableval=$enable_silent_rules;
3987 fi
3988
3989 case $enable_silent_rules in # (((
3990   yes) AM_DEFAULT_VERBOSITY=0;;
3991    no) AM_DEFAULT_VERBOSITY=1;;
3992     *) AM_DEFAULT_VERBOSITY=0;;
3993 esac
3994 am_make=${MAKE-make}
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3996 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3997 if ${am_cv_make_support_nested_variables+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   if $as_echo 'TRUE=$(BAR$(V))
4001 BAR0=false
4002 BAR1=true
4003 V=1
4004 am__doit:
4005         @$(TRUE)
4006 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4007   am_cv_make_support_nested_variables=yes
4008 else
4009   am_cv_make_support_nested_variables=no
4010 fi
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4013 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4014 if test $am_cv_make_support_nested_variables = yes; then
4015     AM_V='$(V)'
4016   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4017 else
4018   AM_V=$AM_DEFAULT_VERBOSITY
4019   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4020 fi
4021 AM_BACKSLASH='\'
4022
4023
4024
4025 DEPDIR="${am__leading_dot}deps"
4026
4027 ac_config_commands="$ac_config_commands depfiles"
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4030 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4031 cat > confinc.mk << 'END'
4032 am__doit:
4033         @echo this is the am__doit target >confinc.out
4034 .PHONY: am__doit
4035 END
4036 am__include="#"
4037 am__quote=
4038 # BSD make does it like this.
4039 echo '.include "confinc.mk" # ignored' > confmf.BSD
4040 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4041 echo 'include confinc.mk # ignored' > confmf.GNU
4042 _am_result=no
4043 for s in GNU BSD; do
4044   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4045    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4046    ac_status=$?
4047    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048    (exit $ac_status); }
4049   case $?:`cat confinc.out 2>/dev/null` in #(
4050   '0:this is the am__doit target') :
4051     case $s in #(
4052   BSD) :
4053     am__include='.include' am__quote='"' ;; #(
4054   *) :
4055     am__include='include' am__quote='' ;;
4056 esac ;; #(
4057   *) :
4058      ;;
4059 esac
4060   if test "$am__include" != "#"; then
4061     _am_result="yes ($s style)"
4062     break
4063   fi
4064 done
4065 rm -f confinc.* confmf.*
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4067 $as_echo "${_am_result}" >&6; }
4068
4069 # Check whether --enable-dependency-tracking was given.
4070 if test "${enable_dependency_tracking+set}" = set; then :
4071   enableval=$enable_dependency_tracking;
4072 fi
4073
4074 if test "x$enable_dependency_tracking" != xno; then
4075   am_depcomp="$ac_aux_dir/depcomp"
4076   AMDEPBACKSLASH='\'
4077   am__nodep='_no'
4078 fi
4079  if test "x$enable_dependency_tracking" != xno; then
4080   AMDEP_TRUE=
4081   AMDEP_FALSE='#'
4082 else
4083   AMDEP_TRUE='#'
4084   AMDEP_FALSE=
4085 fi
4086
4087
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 if test -n "$ac_tool_prefix"; then
4094   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CC+:} false; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   if test -n "$CC"; then
4102   ac_cv_prog_CC="$CC" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109     for ac_exec_ext in '' $ac_executable_extensions; do
4110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116   done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 CC=$ac_cv_prog_CC
4122 if test -n "$CC"; then
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4125 else
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131 fi
4132 if test -z "$ac_cv_prog_CC"; then
4133   ac_ct_CC=$CC
4134   # Extract the first word of "gcc", so it can be a program name with args.
4135 set dummy gcc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   if test -n "$ac_ct_CC"; then
4142   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149     for ac_exec_ext in '' $ac_executable_extensions; do
4150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151     ac_cv_prog_ac_ct_CC="gcc"
4152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156   done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164 $as_echo "$ac_ct_CC" >&6; }
4165 else
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170   if test "x$ac_ct_CC" = x; then
4171     CC=""
4172   else
4173     case $cross_compiling:$ac_tool_warned in
4174 yes:)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned=yes ;;
4178 esac
4179     CC=$ac_ct_CC
4180   fi
4181 else
4182   CC="$ac_cv_prog_CC"
4183 fi
4184
4185 if test -z "$CC"; then
4186           if test -n "$ac_tool_prefix"; then
4187     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}cc; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_CC+:} false; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   if test -n "$CC"; then
4195   ac_cv_prog_CC="$CC" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204     ac_cv_prog_CC="${ac_tool_prefix}cc"
4205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209   done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 CC=$ac_cv_prog_CC
4215 if test -n "$CC"; then
4216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217 $as_echo "$CC" >&6; }
4218 else
4219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223
4224   fi
4225 fi
4226 if test -z "$CC"; then
4227   # Extract the first word of "cc", so it can be a program name with args.
4228 set dummy cc; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   if test -n "$CC"; then
4235   ac_cv_prog_CC="$CC" # Let the user override the test.
4236 else
4237   ac_prog_rejected=no
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243     for ac_exec_ext in '' $ac_executable_extensions; do
4244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246        ac_prog_rejected=yes
4247        continue
4248      fi
4249     ac_cv_prog_CC="cc"
4250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254   done
4255 IFS=$as_save_IFS
4256
4257 if test $ac_prog_rejected = yes; then
4258   # We found a bogon in the path, so make sure we never use it.
4259   set dummy $ac_cv_prog_CC
4260   shift
4261   if test $# != 0; then
4262     # We chose a different compiler from the bogus one.
4263     # However, it has the same basename, so the bogon will be chosen
4264     # first if we set CC to just the basename; use the full file name.
4265     shift
4266     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4267   fi
4268 fi
4269 fi
4270 fi
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4275 else
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280
4281 fi
4282 if test -z "$CC"; then
4283   if test -n "$ac_tool_prefix"; then
4284   for ac_prog in cl.exe
4285   do
4286     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_CC+:} false; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   if test -n "$CC"; then
4294   ac_cv_prog_CC="$CC" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299   IFS=$as_save_IFS
4300   test -z "$as_dir" && as_dir=.
4301     for ac_exec_ext in '' $ac_executable_extensions; do
4302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305     break 2
4306   fi
4307 done
4308   done
4309 IFS=$as_save_IFS
4310
4311 fi
4312 fi
4313 CC=$ac_cv_prog_CC
4314 if test -n "$CC"; then
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316 $as_echo "$CC" >&6; }
4317 else
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 fi
4321
4322
4323     test -n "$CC" && break
4324   done
4325 fi
4326 if test -z "$CC"; then
4327   ac_ct_CC=$CC
4328   for ac_prog in cl.exe
4329 do
4330   # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4335   $as_echo_n "(cached) " >&6
4336 else
4337   if test -n "$ac_ct_CC"; then
4338   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345     for ac_exec_ext in '' $ac_executable_extensions; do
4346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347     ac_cv_prog_ac_ct_CC="$ac_prog"
4348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352   done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360 $as_echo "$ac_ct_CC" >&6; }
4361 else
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367   test -n "$ac_ct_CC" && break
4368 done
4369
4370   if test "x$ac_ct_CC" = x; then
4371     CC=""
4372   else
4373     case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379     CC=$ac_ct_CC
4380   fi
4381 fi
4382
4383 fi
4384
4385
4386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error $? "no acceptable C compiler found in \$PATH
4389 See \`config.log' for more details" "$LINENO" 5; }
4390
4391 # Provide some information about the compiler.
4392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4393 set X $ac_compile
4394 ac_compiler=$2
4395 for ac_option in --version -v -V -qversion; do
4396   { { ac_try="$ac_compiler $ac_option >&5"
4397 case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4404   ac_status=$?
4405   if test -s conftest.err; then
4406     sed '10a\
4407 ... rest of stderr output deleted ...
4408          10q' conftest.err >conftest.er1
4409     cat conftest.er1 >&5
4410   fi
4411   rm -f conftest.er1 conftest.err
4412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413   test $ac_status = 0; }
4414 done
4415
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h.  */
4418
4419 int
4420 main ()
4421 {
4422
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 ac_clean_files_save=$ac_clean_files
4428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4429 # Try to create an executable without -o first, disregard a.out.
4430 # It will help us diagnose broken compilers, and finding out an intuition
4431 # of exeext.
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433 $as_echo_n "checking whether the C compiler works... " >&6; }
4434 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4435
4436 # The possible output files:
4437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4438
4439 ac_rmfiles=
4440 for ac_file in $ac_files
4441 do
4442   case $ac_file in
4443     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4445   esac
4446 done
4447 rm -f $ac_rmfiles
4448
4449 if { { ac_try="$ac_link_default"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456   (eval "$ac_link_default") 2>&5
4457   ac_status=$?
4458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459   test $ac_status = 0; }; then :
4460   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4463 # so that the user can short-circuit this test for compilers unknown to
4464 # Autoconf.
4465 for ac_file in $ac_files ''
4466 do
4467   test -f "$ac_file" || continue
4468   case $ac_file in
4469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4470         ;;
4471     [ab].out )
4472         # We found the default executable, but exeext='' is most
4473         # certainly right.
4474         break;;
4475     *.* )
4476         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4477         then :; else
4478            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4479         fi
4480         # We set ac_cv_exeext here because the later test for it is not
4481         # safe: cross compilers may not add the suffix if given an `-o'
4482         # argument, so we may need to know it at that point already.
4483         # Even if this section looks crufty: it has the advantage of
4484         # actually working.
4485         break;;
4486     * )
4487         break;;
4488   esac
4489 done
4490 test "$ac_cv_exeext" = no && ac_cv_exeext=
4491
4492 else
4493   ac_file=''
4494 fi
4495 if test -z "$ac_file"; then :
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error 77 "C compiler cannot create executables
4504 See \`config.log' for more details" "$LINENO" 5; }
4505 else
4506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510 $as_echo_n "checking for C compiler default output file name... " >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512 $as_echo "$ac_file" >&6; }
4513 ac_exeext=$ac_cv_exeext
4514
4515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4516 ac_clean_files=$ac_clean_files_save
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4518 $as_echo_n "checking for suffix of executables... " >&6; }
4519 if { { ac_try="$ac_link"
4520 case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526   (eval "$ac_link") 2>&5
4527   ac_status=$?
4528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529   test $ac_status = 0; }; then :
4530   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4531 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4532 # work properly (i.e., refer to `conftest.exe'), while it won't with
4533 # `rm'.
4534 for ac_file in conftest.exe conftest conftest.*; do
4535   test -f "$ac_file" || continue
4536   case $ac_file in
4537     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4538     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4539           break;;
4540     * ) break;;
4541   esac
4542 done
4543 else
4544   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4547 See \`config.log' for more details" "$LINENO" 5; }
4548 fi
4549 rm -f conftest conftest$ac_cv_exeext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4551 $as_echo "$ac_cv_exeext" >&6; }
4552
4553 rm -f conftest.$ac_ext
4554 EXEEXT=$ac_cv_exeext
4555 ac_exeext=$EXEEXT
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558 #include <stdio.h>
4559 int
4560 main ()
4561 {
4562 FILE *f = fopen ("conftest.out", "w");
4563  return ferror (f) || fclose (f) != 0;
4564
4565   ;
4566   return 0;
4567 }
4568 _ACEOF
4569 ac_clean_files="$ac_clean_files conftest.out"
4570 # Check that the compiler produces executables we can run.  If not, either
4571 # the compiler is broken, or we cross compile.
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573 $as_echo_n "checking whether we are cross compiling... " >&6; }
4574 if test "$cross_compiling" != yes; then
4575   { { ac_try="$ac_link"
4576 case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582   (eval "$ac_link") 2>&5
4583   ac_status=$?
4584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585   test $ac_status = 0; }
4586   if { ac_try='./conftest$ac_cv_exeext'
4587   { { case "(($ac_try" in
4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589   *) ac_try_echo=$ac_try;;
4590 esac
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596   test $ac_status = 0; }; }; then
4597     cross_compiling=no
4598   else
4599     if test "$cross_compiling" = maybe; then
4600         cross_compiling=yes
4601     else
4602         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "cannot run C compiled programs.
4605 If you meant to cross compile, use \`--host'.
4606 See \`config.log' for more details" "$LINENO" 5; }
4607     fi
4608   fi
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611 $as_echo "$cross_compiling" >&6; }
4612
4613 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4614 ac_clean_files=$ac_clean_files_save
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4616 $as_echo_n "checking for suffix of object files... " >&6; }
4617 if ${ac_cv_objext+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h.  */
4622
4623 int
4624 main ()
4625 {
4626
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.o conftest.obj
4632 if { { ac_try="$ac_compile"
4633 case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639   (eval "$ac_compile") 2>&5
4640   ac_status=$?
4641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642   test $ac_status = 0; }; then :
4643   for ac_file in conftest.o conftest.obj conftest.*; do
4644   test -f "$ac_file" || continue;
4645   case $ac_file in
4646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4647     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4648        break;;
4649   esac
4650 done
4651 else
4652   $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $? "cannot compute suffix of object files: cannot compile
4658 See \`config.log' for more details" "$LINENO" 5; }
4659 fi
4660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4663 $as_echo "$ac_cv_objext" >&6; }
4664 OBJEXT=$ac_cv_objext
4665 ac_objext=$OBJEXT
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if ${ac_cv_c_compiler_gnu+:} false; then :
4669   $as_echo_n "(cached) " >&6
4670 else
4671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677 #ifndef __GNUC__
4678        choke me
4679 #endif
4680
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686   ac_compiler_gnu=yes
4687 else
4688   ac_compiler_gnu=no
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4692
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4697   GCC=yes
4698 else
4699   GCC=
4700 fi
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if ${ac_cv_prog_cc_g+:} false; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   ac_save_c_werror_flag=$ac_c_werror_flag
4709    ac_c_werror_flag=yes
4710    ac_cv_prog_cc_g=no
4711    CFLAGS="-g"
4712    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h.  */
4714
4715 int
4716 main ()
4717 {
4718
4719   ;
4720   return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724   ac_cv_prog_cc_g=yes
4725 else
4726   CFLAGS=""
4727       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729
4730 int
4731 main ()
4732 {
4733
4734   ;
4735   return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739
4740 else
4741   ac_c_werror_flag=$ac_save_c_werror_flag
4742          CFLAGS="-g"
4743          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745
4746 int
4747 main ()
4748 {
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755   ac_cv_prog_cc_g=yes
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762    ac_c_werror_flag=$ac_save_c_werror_flag
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767   CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769   if test "$GCC" = yes; then
4770     CFLAGS="-g -O2"
4771   else
4772     CFLAGS="-g"
4773   fi
4774 else
4775   if test "$GCC" = yes; then
4776     CFLAGS="-O2"
4777   else
4778     CFLAGS=
4779   fi
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if ${ac_cv_prog_cc_c89+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   ac_cv_prog_cc_c89=no
4787 ac_save_CC=$CC
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h.  */
4790 #include <stdarg.h>
4791 #include <stdio.h>
4792 struct stat;
4793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4794 struct buf { int x; };
4795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796 static char *e (p, i)
4797      char **p;
4798      int i;
4799 {
4800   return p[i];
4801 }
4802 static char *f (char * (*g) (char **, int), char **p, ...)
4803 {
4804   char *s;
4805   va_list v;
4806   va_start (v,p);
4807   s = g (p, va_arg (v,int));
4808   va_end (v);
4809   return s;
4810 }
4811
4812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4813    function prototypes and stuff, but not '\xHH' hex character constants.
4814    These don't provoke an error unfortunately, instead are silently treated
4815    as 'x'.  The following induces an error, until -std is added to get
4816    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4817    array size at least.  It's necessary to write '\x00'==0 to get something
4818    that's true only with -std.  */
4819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4820
4821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822    inside strings and character constants.  */
4823 #define FOO(x) 'x'
4824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4825
4826 int test (int i, double x);
4827 struct s1 {int (*f) (int a);};
4828 struct s2 {int (*f) (double a);};
4829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4830 int argc;
4831 char **argv;
4832 int
4833 main ()
4834 {
4835 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4836   ;
4837   return 0;
4838 }
4839 _ACEOF
4840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4842 do
4843   CC="$ac_save_CC $ac_arg"
4844   if ac_fn_c_try_compile "$LINENO"; then :
4845   ac_cv_prog_cc_c89=$ac_arg
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext
4848   test "x$ac_cv_prog_cc_c89" != "xno" && break
4849 done
4850 rm -f conftest.$ac_ext
4851 CC=$ac_save_CC
4852
4853 fi
4854 # AC_CACHE_VAL
4855 case "x$ac_cv_prog_cc_c89" in
4856   x)
4857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858 $as_echo "none needed" >&6; } ;;
4859   xno)
4860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861 $as_echo "unsupported" >&6; } ;;
4862   *)
4863     CC="$CC $ac_cv_prog_cc_c89"
4864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4866 esac
4867 if test "x$ac_cv_prog_cc_c89" != xno; then :
4868
4869 fi
4870
4871 ac_ext=c
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4883 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4884 if ${am_cv_prog_cc_c_o+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h.  */
4889
4890 int
4891 main ()
4892 {
4893
4894   ;
4895   return 0;
4896 }
4897 _ACEOF
4898   # Make sure it works both with $CC and with simple cc.
4899   # Following AC_PROG_CC_C_O, we do the test twice because some
4900   # compilers refuse to overwrite an existing .o file with -o,
4901   # though they will create one.
4902   am_cv_prog_cc_c_o=yes
4903   for am_i in 1 2; do
4904     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4905    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4906    ac_status=$?
4907    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908    (exit $ac_status); } \
4909          && test -f conftest2.$ac_objext; then
4910       : OK
4911     else
4912       am_cv_prog_cc_c_o=no
4913       break
4914     fi
4915   done
4916   rm -f core conftest*
4917   unset am_i
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4920 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4921 if test "$am_cv_prog_cc_c_o" != yes; then
4922    # Losing compiler, so override with the script.
4923    # FIXME: It is wrong to rewrite CC.
4924    # But if we don't then we get into trouble of one sort or another.
4925    # A longer-term fix would be to have automake use am__CC in this case,
4926    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4927    CC="$am_aux_dir/compile $CC"
4928 fi
4929 ac_ext=c
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934
4935
4936 depcc="$CC"   am_compiler_list=
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4939 $as_echo_n "checking dependency style of $depcc... " >&6; }
4940 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944   # We make a subdir and do the tests there.  Otherwise we can end up
4945   # making bogus files that we don't know about and never remove.  For
4946   # instance it was reported that on HP-UX the gcc test will end up
4947   # making a dummy file named 'D' -- because '-MD' means "put the output
4948   # in D".
4949   rm -rf conftest.dir
4950   mkdir conftest.dir
4951   # Copy depcomp to subdir because otherwise we won't find it if we're
4952   # using a relative directory.
4953   cp "$am_depcomp" conftest.dir
4954   cd conftest.dir
4955   # We will build objects and dependencies in a subdirectory because
4956   # it helps to detect inapplicable dependency modes.  For instance
4957   # both Tru64's cc and ICC support -MD to output dependencies as a
4958   # side effect of compilation, but ICC will put the dependencies in
4959   # the current directory while Tru64 will put them in the object
4960   # directory.
4961   mkdir sub
4962
4963   am_cv_CC_dependencies_compiler_type=none
4964   if test "$am_compiler_list" = ""; then
4965      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4966   fi
4967   am__universal=false
4968   case " $depcc " in #(
4969      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4970      esac
4971
4972   for depmode in $am_compiler_list; do
4973     # Setup a source with many dependencies, because some compilers
4974     # like to wrap large dependency lists on column 80 (with \), and
4975     # we should not choose a depcomp mode which is confused by this.
4976     #
4977     # We need to recreate these files for each test, as the compiler may
4978     # overwrite some of them when testing with obscure command lines.
4979     # This happens at least with the AIX C compiler.
4980     : > sub/conftest.c
4981     for i in 1 2 3 4 5 6; do
4982       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4984       # Solaris 10 /bin/sh.
4985       echo '/* dummy */' > sub/conftst$i.h
4986     done
4987     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4988
4989     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4990     # mode.  It turns out that the SunPro C++ compiler does not properly
4991     # handle '-M -o', and we need to detect this.  Also, some Intel
4992     # versions had trouble with output in subdirs.
4993     am__obj=sub/conftest.${OBJEXT-o}
4994     am__minus_obj="-o $am__obj"
4995     case $depmode in
4996     gcc)
4997       # This depmode causes a compiler race in universal mode.
4998       test "$am__universal" = false || continue
4999       ;;
5000     nosideeffect)
5001       # After this tag, mechanisms are not by side-effect, so they'll
5002       # only be used when explicitly requested.
5003       if test "x$enable_dependency_tracking" = xyes; then
5004         continue
5005       else
5006         break
5007       fi
5008       ;;
5009     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5010       # This compiler won't grok '-c -o', but also, the minuso test has
5011       # not run yet.  These depmodes are late enough in the game, and
5012       # so weak that their functioning should not be impacted.
5013       am__obj=conftest.${OBJEXT-o}
5014       am__minus_obj=
5015       ;;
5016     none) break ;;
5017     esac
5018     if depmode=$depmode \
5019        source=sub/conftest.c object=$am__obj \
5020        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022          >/dev/null 2>conftest.err &&
5023        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027       # icc doesn't choke on unknown options, it will just issue warnings
5028       # or remarks (even with -Werror).  So we grep stderr for any message
5029       # that says an option was ignored or not supported.
5030       # When given -MP, icc 7.0 and 7.1 complain thusly:
5031       #   icc: Command line warning: ignoring option '-M'; no argument required
5032       # The diagnosis changed in icc 8.0:
5033       #   icc: Command line remark: option '-MP' not supported
5034       if (grep 'ignoring option' conftest.err ||
5035           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5036         am_cv_CC_dependencies_compiler_type=$depmode
5037         break
5038       fi
5039     fi
5040   done
5041
5042   cd ..
5043   rm -rf conftest.dir
5044 else
5045   am_cv_CC_dependencies_compiler_type=none
5046 fi
5047
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5050 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5052
5053  if
5054   test "x$enable_dependency_tracking" != xno \
5055   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5056   am__fastdepCC_TRUE=
5057   am__fastdepCC_FALSE='#'
5058 else
5059   am__fastdepCC_TRUE='#'
5060   am__fastdepCC_FALSE=
5061 fi
5062
5063
5064
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5074   CPP=
5075 fi
5076 if test -z "$CPP"; then
5077   if ${ac_cv_prog_CPP+:} false; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080       # Double quotes because CPP needs to be expanded
5081     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082     do
5083       ac_preproc_ok=false
5084 for ac_c_preproc_warn_flag in '' yes
5085 do
5086   # Use a header file that comes with gcc, so configuring glibc
5087   # with a fresh cross-compiler works.
5088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089   # <limits.h> exists even on freestanding compilers.
5090   # On the NeXT, cc -E runs the code through the compiler's parser,
5091   # not just through cpp. "Syntax error" is here to catch this case.
5092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h.  */
5094 #ifdef __STDC__
5095 # include <limits.h>
5096 #else
5097 # include <assert.h>
5098 #endif
5099                      Syntax error
5100 _ACEOF
5101 if ac_fn_c_try_cpp "$LINENO"; then :
5102
5103 else
5104   # Broken: fails on valid input.
5105 continue
5106 fi
5107 rm -f conftest.err conftest.i conftest.$ac_ext
5108
5109   # OK, works on sane cases.  Now check whether nonexistent headers
5110   # can be detected and how.
5111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h.  */
5113 #include <ac_nonexistent.h>
5114 _ACEOF
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5116   # Broken: success on invalid input.
5117 continue
5118 else
5119   # Passes both tests.
5120 ac_preproc_ok=:
5121 break
5122 fi
5123 rm -f conftest.err conftest.i conftest.$ac_ext
5124
5125 done
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.i conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then :
5129   break
5130 fi
5131
5132     done
5133     ac_cv_prog_CPP=$CPP
5134
5135 fi
5136   CPP=$ac_cv_prog_CPP
5137 else
5138   ac_cv_prog_CPP=$CPP
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5141 $as_echo "$CPP" >&6; }
5142 ac_preproc_ok=false
5143 for ac_c_preproc_warn_flag in '' yes
5144 do
5145   # Use a header file that comes with gcc, so configuring glibc
5146   # with a fresh cross-compiler works.
5147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148   # <limits.h> exists even on freestanding compilers.
5149   # On the NeXT, cc -E runs the code through the compiler's parser,
5150   # not just through cpp. "Syntax error" is here to catch this case.
5151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h.  */
5153 #ifdef __STDC__
5154 # include <limits.h>
5155 #else
5156 # include <assert.h>
5157 #endif
5158                      Syntax error
5159 _ACEOF
5160 if ac_fn_c_try_cpp "$LINENO"; then :
5161
5162 else
5163   # Broken: fails on valid input.
5164 continue
5165 fi
5166 rm -f conftest.err conftest.i conftest.$ac_ext
5167
5168   # OK, works on sane cases.  Now check whether nonexistent headers
5169   # can be detected and how.
5170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h.  */
5172 #include <ac_nonexistent.h>
5173 _ACEOF
5174 if ac_fn_c_try_cpp "$LINENO"; then :
5175   # Broken: success on invalid input.
5176 continue
5177 else
5178   # Passes both tests.
5179 ac_preproc_ok=:
5180 break
5181 fi
5182 rm -f conftest.err conftest.i conftest.$ac_ext
5183
5184 done
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.i conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then :
5188
5189 else
5190   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details" "$LINENO" 5; }
5194 fi
5195
5196 ac_ext=c
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5204 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5205 if ${ac_cv_path_GREP+:} false; then :
5206   $as_echo_n "(cached) " >&6
5207 else
5208   if test -z "$GREP"; then
5209   ac_path_GREP_found=false
5210   # Loop through the user's path and test for each of PROGNAME-LIST
5211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5213 do
5214   IFS=$as_save_IFS
5215   test -z "$as_dir" && as_dir=.
5216     for ac_prog in grep ggrep; do
5217     for ac_exec_ext in '' $ac_executable_extensions; do
5218       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5219       as_fn_executable_p "$ac_path_GREP" || continue
5220 # Check for GNU ac_path_GREP and select it if it is found.
5221   # Check for GNU $ac_path_GREP
5222 case `"$ac_path_GREP" --version 2>&1` in
5223 *GNU*)
5224   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5225 *)
5226   ac_count=0
5227   $as_echo_n 0123456789 >"conftest.in"
5228   while :
5229   do
5230     cat "conftest.in" "conftest.in" >"conftest.tmp"
5231     mv "conftest.tmp" "conftest.in"
5232     cp "conftest.in" "conftest.nl"
5233     $as_echo 'GREP' >> "conftest.nl"
5234     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5236     as_fn_arith $ac_count + 1 && ac_count=$as_val
5237     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5238       # Best one so far, save it but keep looking for a better one
5239       ac_cv_path_GREP="$ac_path_GREP"
5240       ac_path_GREP_max=$ac_count
5241     fi
5242     # 10*(2^10) chars as input seems more than enough
5243     test $ac_count -gt 10 && break
5244   done
5245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5246 esac
5247
5248       $ac_path_GREP_found && break 3
5249     done
5250   done
5251   done
5252 IFS=$as_save_IFS
5253   if test -z "$ac_cv_path_GREP"; then
5254     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5255   fi
5256 else
5257   ac_cv_path_GREP=$GREP
5258 fi
5259
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5262 $as_echo "$ac_cv_path_GREP" >&6; }
5263  GREP="$ac_cv_path_GREP"
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5267 $as_echo_n "checking for egrep... " >&6; }
5268 if ${ac_cv_path_EGREP+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5272    then ac_cv_path_EGREP="$GREP -E"
5273    else
5274      if test -z "$EGREP"; then
5275   ac_path_EGREP_found=false
5276   # Loop through the user's path and test for each of PROGNAME-LIST
5277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_prog in egrep; do
5283     for ac_exec_ext in '' $ac_executable_extensions; do
5284       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5285       as_fn_executable_p "$ac_path_EGREP" || continue
5286 # Check for GNU ac_path_EGREP and select it if it is found.
5287   # Check for GNU $ac_path_EGREP
5288 case `"$ac_path_EGREP" --version 2>&1` in
5289 *GNU*)
5290   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5291 *)
5292   ac_count=0
5293   $as_echo_n 0123456789 >"conftest.in"
5294   while :
5295   do
5296     cat "conftest.in" "conftest.in" >"conftest.tmp"
5297     mv "conftest.tmp" "conftest.in"
5298     cp "conftest.in" "conftest.nl"
5299     $as_echo 'EGREP' >> "conftest.nl"
5300     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5301     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5302     as_fn_arith $ac_count + 1 && ac_count=$as_val
5303     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5304       # Best one so far, save it but keep looking for a better one
5305       ac_cv_path_EGREP="$ac_path_EGREP"
5306       ac_path_EGREP_max=$ac_count
5307     fi
5308     # 10*(2^10) chars as input seems more than enough
5309     test $ac_count -gt 10 && break
5310   done
5311   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5312 esac
5313
5314       $ac_path_EGREP_found && break 3
5315     done
5316   done
5317   done
5318 IFS=$as_save_IFS
5319   if test -z "$ac_cv_path_EGREP"; then
5320     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5321   fi
5322 else
5323   ac_cv_path_EGREP=$EGREP
5324 fi
5325
5326    fi
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5329 $as_echo "$ac_cv_path_EGREP" >&6; }
5330  EGREP="$ac_cv_path_EGREP"
5331
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5334 $as_echo_n "checking for ANSI C header files... " >&6; }
5335 if ${ac_cv_header_stdc+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h.  */
5340 #include <stdlib.h>
5341 #include <stdarg.h>
5342 #include <string.h>
5343 #include <float.h>
5344
5345 int
5346 main ()
5347 {
5348
5349   ;
5350   return 0;
5351 }
5352 _ACEOF
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354   ac_cv_header_stdc=yes
5355 else
5356   ac_cv_header_stdc=no
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359
5360 if test $ac_cv_header_stdc = yes; then
5361   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h.  */
5364 #include <string.h>
5365
5366 _ACEOF
5367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368   $EGREP "memchr" >/dev/null 2>&1; then :
5369
5370 else
5371   ac_cv_header_stdc=no
5372 fi
5373 rm -f conftest*
5374
5375 fi
5376
5377 if test $ac_cv_header_stdc = yes; then
5378   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h.  */
5381 #include <stdlib.h>
5382
5383 _ACEOF
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385   $EGREP "free" >/dev/null 2>&1; then :
5386
5387 else
5388   ac_cv_header_stdc=no
5389 fi
5390 rm -f conftest*
5391
5392 fi
5393
5394 if test $ac_cv_header_stdc = yes; then
5395   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5396   if test "$cross_compiling" = yes; then :
5397   :
5398 else
5399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h.  */
5401 #include <ctype.h>
5402 #include <stdlib.h>
5403 #if ((' ' & 0x0FF) == 0x020)
5404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5406 #else
5407 # define ISLOWER(c) \
5408                    (('a' <= (c) && (c) <= 'i') \
5409                      || ('j' <= (c) && (c) <= 'r') \
5410                      || ('s' <= (c) && (c) <= 'z'))
5411 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5412 #endif
5413
5414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5415 int
5416 main ()
5417 {
5418   int i;
5419   for (i = 0; i < 256; i++)
5420     if (XOR (islower (i), ISLOWER (i))
5421         || toupper (i) != TOUPPER (i))
5422       return 2;
5423   return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_run "$LINENO"; then :
5427
5428 else
5429   ac_cv_header_stdc=no
5430 fi
5431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5432   conftest.$ac_objext conftest.beam conftest.$ac_ext
5433 fi
5434
5435 fi
5436 fi
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5438 $as_echo "$ac_cv_header_stdc" >&6; }
5439 if test $ac_cv_header_stdc = yes; then
5440
5441 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5442
5443 fi
5444
5445 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5446 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5447                   inttypes.h stdint.h unistd.h
5448 do :
5449   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5451 "
5452 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5453   cat >>confdefs.h <<_ACEOF
5454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455 _ACEOF
5456
5457 fi
5458
5459 done
5460
5461
5462
5463   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5464 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5465   MINIX=yes
5466 else
5467   MINIX=
5468 fi
5469
5470
5471   if test "$MINIX" = yes; then
5472
5473 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5474
5475
5476 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5477
5478
5479 $as_echo "#define _MINIX 1" >>confdefs.h
5480
5481
5482 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5483
5484   fi
5485
5486
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5488 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5489 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h.  */
5494
5495 #         define __EXTENSIONS__ 1
5496           $ac_includes_default
5497 int
5498 main ()
5499 {
5500
5501   ;
5502   return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506   ac_cv_safe_to_define___extensions__=yes
5507 else
5508   ac_cv_safe_to_define___extensions__=no
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 fi
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5513 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5514   test $ac_cv_safe_to_define___extensions__ = yes &&
5515     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5516
5517   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5518
5519   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5520
5521   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5522
5523   $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5524
5525   $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5526
5527   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5528
5529   $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5530
5531   $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5532
5533   $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5534
5535   $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5536
5537   $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5538
5539   $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5540
5541   $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5542
5543   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5544
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5546 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5547 if ${ac_cv_should_define__xopen_source+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   ac_cv_should_define__xopen_source=no
5551      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h.  */
5553
5554           #include <wchar.h>
5555           mbstate_t x;
5556 int
5557 main ()
5558 {
5559
5560   ;
5561   return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565
5566 else
5567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h.  */
5569
5570              #define _XOPEN_SOURCE 500
5571              #include <wchar.h>
5572              mbstate_t x;
5573 int
5574 main ()
5575 {
5576
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582   ac_cv_should_define__xopen_source=yes
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5589 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5590   test $ac_cv_should_define__xopen_source = yes &&
5591     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5592
5593   $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5594
5595
5596
5597
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tar --sort=name works" >&5
5600 $as_echo_n "checking if tar --sort=name works... " >&6; }
5601 rm -rf conftest.dir
5602 mkdir conftest.dir
5603 echo GrepMe > conftest.dir/file
5604 { echo "$as_me:$LINENO: ${TAR-tar} chof - conftest.dir --sort=name >conftest.tar" >&5
5605    (${TAR-tar} chof - conftest.dir --sort=name >conftest.tar) >&5 2>&5
5606    ac_status=$?
5607    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608    (exit $ac_status); }
5609 if test -s conftest.tar; then
5610        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 $as_echo "yes" >&6; }
5612        am__tar="$am__tar --sort=name"
5613 else
5614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617 rm -rf conftest.dir
5618
5619
5620 ac_config_headers="$ac_config_headers config.h"
5621
5622 # Make sure we can run config.sub.
5623 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5624   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5627 $as_echo_n "checking build system type... " >&6; }
5628 if ${ac_cv_build+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   ac_build_alias=$build_alias
5632 test "x$ac_build_alias" = x &&
5633   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5634 test "x$ac_build_alias" = x &&
5635   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5636 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5637   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5638
5639 fi
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5641 $as_echo "$ac_cv_build" >&6; }
5642 case $ac_cv_build in
5643 *-*-*) ;;
5644 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5645 esac
5646 build=$ac_cv_build
5647 ac_save_IFS=$IFS; IFS='-'
5648 set x $ac_cv_build
5649 shift
5650 build_cpu=$1
5651 build_vendor=$2
5652 shift; shift
5653 # Remember, the first character of IFS is used to create $*,
5654 # except with old shells:
5655 build_os=$*
5656 IFS=$ac_save_IFS
5657 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5658
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5661 $as_echo_n "checking host system type... " >&6; }
5662 if ${ac_cv_host+:} false; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   if test "x$host_alias" = x; then
5666   ac_cv_host=$ac_cv_build
5667 else
5668   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5669     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5670 fi
5671
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5674 $as_echo "$ac_cv_host" >&6; }
5675 case $ac_cv_host in
5676 *-*-*) ;;
5677 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5678 esac
5679 host=$ac_cv_host
5680 ac_save_IFS=$IFS; IFS='-'
5681 set x $ac_cv_host
5682 shift
5683 host_cpu=$1
5684 host_vendor=$2
5685 shift; shift
5686 # Remember, the first character of IFS is used to create $*,
5687 # except with old shells:
5688 host_os=$*
5689 IFS=$ac_save_IFS
5690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5691
5692
5693
5694 # Check $PATH for the following programs and append suitable options.
5695 ac_ext=c
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 if test -n "$ac_tool_prefix"; then
5701   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_CC+:} false; then :
5706   $as_echo_n "(cached) " >&6
5707 else
5708   if test -n "$CC"; then
5709   ac_cv_prog_CC="$CC" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723   done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 CC=$ac_cv_prog_CC
5729 if test -n "$CC"; then
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5731 $as_echo "$CC" >&6; }
5732 else
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737
5738 fi
5739 if test -z "$ac_cv_prog_CC"; then
5740   ac_ct_CC=$CC
5741   # Extract the first word of "gcc", so it can be a program name with args.
5742 set dummy gcc; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   if test -n "$ac_ct_CC"; then
5749   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758     ac_cv_prog_ac_ct_CC="gcc"
5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5769 if test -n "$ac_ct_CC"; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5771 $as_echo "$ac_ct_CC" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777   if test "x$ac_ct_CC" = x; then
5778     CC=""
5779   else
5780     case $cross_compiling:$ac_tool_warned in
5781 yes:)
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786     CC=$ac_ct_CC
5787   fi
5788 else
5789   CC="$ac_cv_prog_CC"
5790 fi
5791
5792 if test -z "$CC"; then
5793           if test -n "$ac_tool_prefix"; then
5794     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}cc; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_CC+:} false; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   if test -n "$CC"; then
5802   ac_cv_prog_CC="$CC" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809     for ac_exec_ext in '' $ac_executable_extensions; do
5810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811     ac_cv_prog_CC="${ac_tool_prefix}cc"
5812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816   done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 CC=$ac_cv_prog_CC
5822 if test -n "$CC"; then
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824 $as_echo "$CC" >&6; }
5825 else
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830
5831   fi
5832 fi
5833 if test -z "$CC"; then
5834   # Extract the first word of "cc", so it can be a program name with args.
5835 set dummy cc; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_CC+:} false; then :
5839   $as_echo_n "(cached) " >&6
5840 else
5841   if test -n "$CC"; then
5842   ac_cv_prog_CC="$CC" # Let the user override the test.
5843 else
5844   ac_prog_rejected=no
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850     for ac_exec_ext in '' $ac_executable_extensions; do
5851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5853        ac_prog_rejected=yes
5854        continue
5855      fi
5856     ac_cv_prog_CC="cc"
5857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861   done
5862 IFS=$as_save_IFS
5863
5864 if test $ac_prog_rejected = yes; then
5865   # We found a bogon in the path, so make sure we never use it.
5866   set dummy $ac_cv_prog_CC
5867   shift
5868   if test $# != 0; then
5869     # We chose a different compiler from the bogus one.
5870     # However, it has the same basename, so the bogon will be chosen
5871     # first if we set CC to just the basename; use the full file name.
5872     shift
5873     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5874   fi
5875 fi
5876 fi
5877 fi
5878 CC=$ac_cv_prog_CC
5879 if test -n "$CC"; then
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5881 $as_echo "$CC" >&6; }
5882 else
5883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887
5888 fi
5889 if test -z "$CC"; then
5890   if test -n "$ac_tool_prefix"; then
5891   for ac_prog in cl.exe
5892   do
5893     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_CC+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   if test -n "$CC"; then
5901   ac_cv_prog_CC="$CC" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908     for ac_exec_ext in '' $ac_executable_extensions; do
5909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915   done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 CC=$ac_cv_prog_CC
5921 if test -n "$CC"; then
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5923 $as_echo "$CC" >&6; }
5924 else
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929
5930     test -n "$CC" && break
5931   done
5932 fi
5933 if test -z "$CC"; then
5934   ac_ct_CC=$CC
5935   for ac_prog in cl.exe
5936 do
5937   # Extract the first word of "$ac_prog", so it can be a program name with args.
5938 set dummy $ac_prog; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   if test -n "$ac_ct_CC"; then
5945   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952     for ac_exec_ext in '' $ac_executable_extensions; do
5953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954     ac_cv_prog_ac_ct_CC="$ac_prog"
5955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959   done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5965 if test -n "$ac_ct_CC"; then
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5967 $as_echo "$ac_ct_CC" >&6; }
5968 else
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973
5974   test -n "$ac_ct_CC" && break
5975 done
5976
5977   if test "x$ac_ct_CC" = x; then
5978     CC=""
5979   else
5980     case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5985 esac
5986     CC=$ac_ct_CC
5987   fi
5988 fi
5989
5990 fi
5991
5992
5993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5995 as_fn_error $? "no acceptable C compiler found in \$PATH
5996 See \`config.log' for more details" "$LINENO" 5; }
5997
5998 # Provide some information about the compiler.
5999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6000 set X $ac_compile
6001 ac_compiler=$2
6002 for ac_option in --version -v -V -qversion; do
6003   { { ac_try="$ac_compiler $ac_option >&5"
6004 case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6009 $as_echo "$ac_try_echo"; } >&5
6010   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6011   ac_status=$?
6012   if test -s conftest.err; then
6013     sed '10a\
6014 ... rest of stderr output deleted ...
6015          10q' conftest.err >conftest.er1
6016     cat conftest.er1 >&5
6017   fi
6018   rm -f conftest.er1 conftest.err
6019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020   test $ac_status = 0; }
6021 done
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6025 if ${ac_cv_c_compiler_gnu+:} false; then :
6026   $as_echo_n "(cached) " >&6
6027 else
6028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h.  */
6030
6031 int
6032 main ()
6033 {
6034 #ifndef __GNUC__
6035        choke me
6036 #endif
6037
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"; then :
6043   ac_compiler_gnu=yes
6044 else
6045   ac_compiler_gnu=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6049
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6053 if test $ac_compiler_gnu = yes; then
6054   GCC=yes
6055 else
6056   GCC=
6057 fi
6058 ac_test_CFLAGS=${CFLAGS+set}
6059 ac_save_CFLAGS=$CFLAGS
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6062 if ${ac_cv_prog_cc_g+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   ac_save_c_werror_flag=$ac_c_werror_flag
6066    ac_c_werror_flag=yes
6067    ac_cv_prog_cc_g=no
6068    CFLAGS="-g"
6069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h.  */
6071
6072 int
6073 main ()
6074 {
6075
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081   ac_cv_prog_cc_g=yes
6082 else
6083   CFLAGS=""
6084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h.  */
6086
6087 int
6088 main ()
6089 {
6090
6091   ;
6092   return 0;
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096
6097 else
6098   ac_c_werror_flag=$ac_save_c_werror_flag
6099          CFLAGS="-g"
6100          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h.  */
6102
6103 int
6104 main ()
6105 {
6106
6107   ;
6108   return 0;
6109 }
6110 _ACEOF
6111 if ac_fn_c_try_compile "$LINENO"; then :
6112   ac_cv_prog_cc_g=yes
6113 fi
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 fi
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119    ac_c_werror_flag=$ac_save_c_werror_flag
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6122 $as_echo "$ac_cv_prog_cc_g" >&6; }
6123 if test "$ac_test_CFLAGS" = set; then
6124   CFLAGS=$ac_save_CFLAGS
6125 elif test $ac_cv_prog_cc_g = yes; then
6126   if test "$GCC" = yes; then
6127     CFLAGS="-g -O2"
6128   else
6129     CFLAGS="-g"
6130   fi
6131 else
6132   if test "$GCC" = yes; then
6133     CFLAGS="-O2"
6134   else
6135     CFLAGS=
6136   fi
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6140 if ${ac_cv_prog_cc_c89+:} false; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143   ac_cv_prog_cc_c89=no
6144 ac_save_CC=$CC
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h.  */
6147 #include <stdarg.h>
6148 #include <stdio.h>
6149 struct stat;
6150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6151 struct buf { int x; };
6152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6153 static char *e (p, i)
6154      char **p;
6155      int i;
6156 {
6157   return p[i];
6158 }
6159 static char *f (char * (*g) (char **, int), char **p, ...)
6160 {
6161   char *s;
6162   va_list v;
6163   va_start (v,p);
6164   s = g (p, va_arg (v,int));
6165   va_end (v);
6166   return s;
6167 }
6168
6169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6170    function prototypes and stuff, but not '\xHH' hex character constants.
6171    These don't provoke an error unfortunately, instead are silently treated
6172    as 'x'.  The following induces an error, until -std is added to get
6173    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6174    array size at least.  It's necessary to write '\x00'==0 to get something
6175    that's true only with -std.  */
6176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6177
6178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6179    inside strings and character constants.  */
6180 #define FOO(x) 'x'
6181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6182
6183 int test (int i, double x);
6184 struct s1 {int (*f) (int a);};
6185 struct s2 {int (*f) (double a);};
6186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6187 int argc;
6188 char **argv;
6189 int
6190 main ()
6191 {
6192 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6198         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6199 do
6200   CC="$ac_save_CC $ac_arg"
6201   if ac_fn_c_try_compile "$LINENO"; then :
6202   ac_cv_prog_cc_c89=$ac_arg
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext
6205   test "x$ac_cv_prog_cc_c89" != "xno" && break
6206 done
6207 rm -f conftest.$ac_ext
6208 CC=$ac_save_CC
6209
6210 fi
6211 # AC_CACHE_VAL
6212 case "x$ac_cv_prog_cc_c89" in
6213   x)
6214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6215 $as_echo "none needed" >&6; } ;;
6216   xno)
6217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6218 $as_echo "unsupported" >&6; } ;;
6219   *)
6220     CC="$CC $ac_cv_prog_cc_c89"
6221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6223 esac
6224 if test "x$ac_cv_prog_cc_c89" != xno; then :
6225
6226 fi
6227
6228 ac_ext=c
6229 ac_cpp='$CPP $CPPFLAGS'
6230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6233
6234 ac_ext=c
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6240 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6241 if ${am_cv_prog_cc_c_o+:} false; then :
6242   $as_echo_n "(cached) " >&6
6243 else
6244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h.  */
6246
6247 int
6248 main ()
6249 {
6250
6251   ;
6252   return 0;
6253 }
6254 _ACEOF
6255   # Make sure it works both with $CC and with simple cc.
6256   # Following AC_PROG_CC_C_O, we do the test twice because some
6257   # compilers refuse to overwrite an existing .o file with -o,
6258   # though they will create one.
6259   am_cv_prog_cc_c_o=yes
6260   for am_i in 1 2; do
6261     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6262    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6263    ac_status=$?
6264    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265    (exit $ac_status); } \
6266          && test -f conftest2.$ac_objext; then
6267       : OK
6268     else
6269       am_cv_prog_cc_c_o=no
6270       break
6271     fi
6272   done
6273   rm -f core conftest*
6274   unset am_i
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6277 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6278 if test "$am_cv_prog_cc_c_o" != yes; then
6279    # Losing compiler, so override with the script.
6280    # FIXME: It is wrong to rewrite CC.
6281    # But if we don't then we get into trouble of one sort or another.
6282    # A longer-term fix would be to have automake use am__CC in this case,
6283    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6284    CC="$am_aux_dir/compile $CC"
6285 fi
6286 ac_ext=c
6287 ac_cpp='$CPP $CPPFLAGS'
6288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291
6292
6293 depcc="$CC"   am_compiler_list=
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6296 $as_echo_n "checking dependency style of $depcc... " >&6; }
6297 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6301   # We make a subdir and do the tests there.  Otherwise we can end up
6302   # making bogus files that we don't know about and never remove.  For
6303   # instance it was reported that on HP-UX the gcc test will end up
6304   # making a dummy file named 'D' -- because '-MD' means "put the output
6305   # in D".
6306   rm -rf conftest.dir
6307   mkdir conftest.dir
6308   # Copy depcomp to subdir because otherwise we won't find it if we're
6309   # using a relative directory.
6310   cp "$am_depcomp" conftest.dir
6311   cd conftest.dir
6312   # We will build objects and dependencies in a subdirectory because
6313   # it helps to detect inapplicable dependency modes.  For instance
6314   # both Tru64's cc and ICC support -MD to output dependencies as a
6315   # side effect of compilation, but ICC will put the dependencies in
6316   # the current directory while Tru64 will put them in the object
6317   # directory.
6318   mkdir sub
6319
6320   am_cv_CC_dependencies_compiler_type=none
6321   if test "$am_compiler_list" = ""; then
6322      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6323   fi
6324   am__universal=false
6325   case " $depcc " in #(
6326      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6327      esac
6328
6329   for depmode in $am_compiler_list; do
6330     # Setup a source with many dependencies, because some compilers
6331     # like to wrap large dependency lists on column 80 (with \), and
6332     # we should not choose a depcomp mode which is confused by this.
6333     #
6334     # We need to recreate these files for each test, as the compiler may
6335     # overwrite some of them when testing with obscure command lines.
6336     # This happens at least with the AIX C compiler.
6337     : > sub/conftest.c
6338     for i in 1 2 3 4 5 6; do
6339       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6340       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6341       # Solaris 10 /bin/sh.
6342       echo '/* dummy */' > sub/conftst$i.h
6343     done
6344     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6345
6346     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6347     # mode.  It turns out that the SunPro C++ compiler does not properly
6348     # handle '-M -o', and we need to detect this.  Also, some Intel
6349     # versions had trouble with output in subdirs.
6350     am__obj=sub/conftest.${OBJEXT-o}
6351     am__minus_obj="-o $am__obj"
6352     case $depmode in
6353     gcc)
6354       # This depmode causes a compiler race in universal mode.
6355       test "$am__universal" = false || continue
6356       ;;
6357     nosideeffect)
6358       # After this tag, mechanisms are not by side-effect, so they'll
6359       # only be used when explicitly requested.
6360       if test "x$enable_dependency_tracking" = xyes; then
6361         continue
6362       else
6363         break
6364       fi
6365       ;;
6366     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6367       # This compiler won't grok '-c -o', but also, the minuso test has
6368       # not run yet.  These depmodes are late enough in the game, and
6369       # so weak that their functioning should not be impacted.
6370       am__obj=conftest.${OBJEXT-o}
6371       am__minus_obj=
6372       ;;
6373     none) break ;;
6374     esac
6375     if depmode=$depmode \
6376        source=sub/conftest.c object=$am__obj \
6377        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6378        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6379          >/dev/null 2>conftest.err &&
6380        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6381        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6382        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6383        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6384       # icc doesn't choke on unknown options, it will just issue warnings
6385       # or remarks (even with -Werror).  So we grep stderr for any message
6386       # that says an option was ignored or not supported.
6387       # When given -MP, icc 7.0 and 7.1 complain thusly:
6388       #   icc: Command line warning: ignoring option '-M'; no argument required
6389       # The diagnosis changed in icc 8.0:
6390       #   icc: Command line remark: option '-MP' not supported
6391       if (grep 'ignoring option' conftest.err ||
6392           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6393         am_cv_CC_dependencies_compiler_type=$depmode
6394         break
6395       fi
6396     fi
6397   done
6398
6399   cd ..
6400   rm -rf conftest.dir
6401 else
6402   am_cv_CC_dependencies_compiler_type=none
6403 fi
6404
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6407 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6408 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6409
6410  if
6411   test "x$enable_dependency_tracking" != xno \
6412   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6413   am__fastdepCC_TRUE=
6414   am__fastdepCC_FALSE='#'
6415 else
6416   am__fastdepCC_TRUE='#'
6417   am__fastdepCC_FALSE=
6418 fi
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6430 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6431 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434
6435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h.  */
6437
6438 #ifdef __ACK__
6439 Amsterdam
6440 #endif
6441
6442 _ACEOF
6443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444   $EGREP "Amsterdam" >/dev/null 2>&1; then :
6445   gl_cv_c_amsterdam_compiler=yes
6446 else
6447   gl_cv_c_amsterdam_compiler=no
6448 fi
6449 rm -f conftest*
6450
6451
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6454 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6455
6456       if test $gl_cv_c_amsterdam_compiler = yes; then
6457     if test -z "$AR"; then
6458       AR='cc -c.a'
6459     fi
6460     if test -z "$ARFLAGS"; then
6461       ARFLAGS='-o'
6462     fi
6463   else
6464                                                 if test -n "$ac_tool_prefix"; then
6465   for ac_prog in ar lib "link -lib"
6466   do
6467     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_AR+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   if test -n "$AR"; then
6475   ac_cv_prog_AR="$AR" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480   IFS=$as_save_IFS
6481   test -z "$as_dir" && as_dir=.
6482     for ac_exec_ext in '' $ac_executable_extensions; do
6483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486     break 2
6487   fi
6488 done
6489   done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 AR=$ac_cv_prog_AR
6495 if test -n "$AR"; then
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6497 $as_echo "$AR" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503
6504     test -n "$AR" && break
6505   done
6506 fi
6507 if test -z "$AR"; then
6508   ac_ct_AR=$AR
6509   for ac_prog in ar lib "link -lib"
6510 do
6511   # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   if test -n "$ac_ct_AR"; then
6519   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_exec_ext in '' $ac_executable_extensions; do
6527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528     ac_cv_prog_ac_ct_AR="$ac_prog"
6529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533   done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6539 if test -n "$ac_ct_AR"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6541 $as_echo "$ac_ct_AR" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547
6548   test -n "$ac_ct_AR" && break
6549 done
6550
6551   if test "x$ac_ct_AR" = x; then
6552     AR="false"
6553   else
6554     case $cross_compiling:$ac_tool_warned in
6555 yes:)
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6559 esac
6560     AR=$ac_ct_AR
6561   fi
6562 fi
6563
6564 : ${AR=ar}
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6567 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6568 if ${am_cv_ar_interface+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   ac_ext=c
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576
6577    am_cv_ar_interface=ar
6578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h.  */
6580 int some_variable = 0;
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6584       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6585   (eval $am_ar_try) 2>&5
6586   ac_status=$?
6587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588   test $ac_status = 0; }
6589       if test "$ac_status" -eq 0; then
6590         am_cv_ar_interface=ar
6591       else
6592         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6593         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6594   (eval $am_ar_try) 2>&5
6595   ac_status=$?
6596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597   test $ac_status = 0; }
6598         if test "$ac_status" -eq 0; then
6599           am_cv_ar_interface=lib
6600         else
6601           am_cv_ar_interface=unknown
6602         fi
6603       fi
6604       rm -f conftest.lib libconftest.a
6605
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608    ac_ext=c
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6616 $as_echo "$am_cv_ar_interface" >&6; }
6617
6618 case $am_cv_ar_interface in
6619 ar)
6620   ;;
6621 lib)
6622   # Microsoft lib, so override with the ar-lib wrapper script.
6623   # FIXME: It is wrong to rewrite AR.
6624   # But if we don't then we get into trouble of one sort or another.
6625   # A longer-term fix would be to have automake use am__AR in this case,
6626   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6627   # similar.
6628   AR="$am_aux_dir/ar-lib $AR"
6629   ;;
6630 unknown)
6631   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6632   ;;
6633 esac
6634
6635   fi
6636
6637         if test -n "$ac_tool_prefix"; then
6638   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}ar; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_prog_AR+:} false; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   if test -n "$AR"; then
6646   ac_cv_prog_AR="$AR" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653     for ac_exec_ext in '' $ac_executable_extensions; do
6654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655     ac_cv_prog_AR="${ac_tool_prefix}ar"
6656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660   done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 AR=$ac_cv_prog_AR
6666 if test -n "$AR"; then
6667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6668 $as_echo "$AR" >&6; }
6669 else
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673
6674
6675 fi
6676 if test -z "$ac_cv_prog_AR"; then
6677   ac_ct_AR=$AR
6678   # Extract the first word of "ar", so it can be a program name with args.
6679 set dummy ar; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6683   $as_echo_n "(cached) " >&6
6684 else
6685   if test -n "$ac_ct_AR"; then
6686   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693     for ac_exec_ext in '' $ac_executable_extensions; do
6694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695     ac_cv_prog_ac_ct_AR="ar"
6696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700   done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6706 if test -n "$ac_ct_AR"; then
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6708 $as_echo "$ac_ct_AR" >&6; }
6709 else
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714   if test "x$ac_ct_AR" = x; then
6715     AR="ar"
6716   else
6717     case $cross_compiling:$ac_tool_warned in
6718 yes:)
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6722 esac
6723     AR=$ac_ct_AR
6724   fi
6725 else
6726   AR="$ac_cv_prog_AR"
6727 fi
6728
6729   if test -z "$ARFLAGS"; then
6730     ARFLAGS='cr'
6731   fi
6732
6733
6734
6735   if test -z "$RANLIB"; then
6736     if test $gl_cv_c_amsterdam_compiler = yes; then
6737       RANLIB=':'
6738     else
6739             if test -n "$ac_tool_prefix"; then
6740   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_RANLIB+:} false; then :
6745   $as_echo_n "(cached) " >&6
6746 else
6747   if test -n "$RANLIB"; then
6748   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755     for ac_exec_ext in '' $ac_executable_extensions; do
6756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762   done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 RANLIB=$ac_cv_prog_RANLIB
6768 if test -n "$RANLIB"; then
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6770 $as_echo "$RANLIB" >&6; }
6771 else
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776
6777 fi
6778 if test -z "$ac_cv_prog_RANLIB"; then
6779   ac_ct_RANLIB=$RANLIB
6780   # Extract the first word of "ranlib", so it can be a program name with args.
6781 set dummy ranlib; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   if test -n "$ac_ct_RANLIB"; then
6788   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795     for ac_exec_ext in '' $ac_executable_extensions; do
6796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797     ac_cv_prog_ac_ct_RANLIB="ranlib"
6798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802   done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6808 if test -n "$ac_ct_RANLIB"; then
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6810 $as_echo "$ac_ct_RANLIB" >&6; }
6811 else
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816   if test "x$ac_ct_RANLIB" = x; then
6817     RANLIB=":"
6818   else
6819     case $cross_compiling:$ac_tool_warned in
6820 yes:)
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6824 esac
6825     RANLIB=$ac_ct_RANLIB
6826   fi
6827 else
6828   RANLIB="$ac_cv_prog_RANLIB"
6829 fi
6830
6831     fi
6832   fi
6833
6834
6835
6836 # Check whether --enable-largefile was given.
6837 if test "${enable_largefile+set}" = set; then :
6838   enableval=$enable_largefile;
6839 fi
6840
6841 if test "$enable_largefile" != no; then
6842
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6844 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6845 if ${ac_cv_sys_largefile_CC+:} false; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   ac_cv_sys_largefile_CC=no
6849      if test "$GCC" != yes; then
6850        ac_save_CC=$CC
6851        while :; do
6852          # IRIX 6.2 and later do not support large files by default,
6853          # so use the C compiler's -n32 option if that helps.
6854          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h.  */
6856 #include <sys/types.h>
6857  /* Check that off_t can represent 2**63 - 1 correctly.
6858     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6859     since some C++ compilers masquerading as C compilers
6860     incorrectly reject 9223372036854775807.  */
6861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6862   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6863                        && LARGE_OFF_T % 2147483647 == 1)
6864                       ? 1 : -1];
6865 int
6866 main ()
6867 {
6868
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873          if ac_fn_c_try_compile "$LINENO"; then :
6874   break
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext
6877          CC="$CC -n32"
6878          if ac_fn_c_try_compile "$LINENO"; then :
6879   ac_cv_sys_largefile_CC=' -n32'; break
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext
6882          break
6883        done
6884        CC=$ac_save_CC
6885        rm -f conftest.$ac_ext
6886     fi
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6889 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6890   if test "$ac_cv_sys_largefile_CC" != no; then
6891     CC=$CC$ac_cv_sys_largefile_CC
6892   fi
6893
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6895 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6896 if ${ac_cv_sys_file_offset_bits+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899   while :; do
6900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h.  */
6902 #include <sys/types.h>
6903  /* Check that off_t can represent 2**63 - 1 correctly.
6904     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6905     since some C++ compilers masquerading as C compilers
6906     incorrectly reject 9223372036854775807.  */
6907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6908   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6909                        && LARGE_OFF_T % 2147483647 == 1)
6910                       ? 1 : -1];
6911 int
6912 main ()
6913 {
6914
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920   ac_cv_sys_file_offset_bits=no; break
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h.  */
6925 #define _FILE_OFFSET_BITS 64
6926 #include <sys/types.h>
6927  /* Check that off_t can represent 2**63 - 1 correctly.
6928     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6929     since some C++ compilers masquerading as C compilers
6930     incorrectly reject 9223372036854775807.  */
6931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6932   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6933                        && LARGE_OFF_T % 2147483647 == 1)
6934                       ? 1 : -1];
6935 int
6936 main ()
6937 {
6938
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_compile "$LINENO"; then :
6944   ac_cv_sys_file_offset_bits=64; break
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947   ac_cv_sys_file_offset_bits=unknown
6948   break
6949 done
6950 fi
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6952 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6953 case $ac_cv_sys_file_offset_bits in #(
6954   no | unknown) ;;
6955   *)
6956 cat >>confdefs.h <<_ACEOF
6957 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6958 _ACEOF
6959 ;;
6960 esac
6961 rm -rf conftest*
6962   if test $ac_cv_sys_file_offset_bits = unknown; then
6963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6964 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6965 if ${ac_cv_sys_large_files+:} false; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   while :; do
6969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971 #include <sys/types.h>
6972  /* Check that off_t can represent 2**63 - 1 correctly.
6973     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6974     since some C++ compilers masquerading as C compilers
6975     incorrectly reject 9223372036854775807.  */
6976 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6977   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6978                        && LARGE_OFF_T % 2147483647 == 1)
6979                       ? 1 : -1];
6980 int
6981 main ()
6982 {
6983
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 if ac_fn_c_try_compile "$LINENO"; then :
6989   ac_cv_sys_large_files=no; break
6990 fi
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h.  */
6994 #define _LARGE_FILES 1
6995 #include <sys/types.h>
6996  /* Check that off_t can represent 2**63 - 1 correctly.
6997     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6998     since some C++ compilers masquerading as C compilers
6999     incorrectly reject 9223372036854775807.  */
7000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7001   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7002                        && LARGE_OFF_T % 2147483647 == 1)
7003                       ? 1 : -1];
7004 int
7005 main ()
7006 {
7007
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013   ac_cv_sys_large_files=1; break
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016   ac_cv_sys_large_files=unknown
7017   break
7018 done
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7021 $as_echo "$ac_cv_sys_large_files" >&6; }
7022 case $ac_cv_sys_large_files in #(
7023   no | unknown) ;;
7024   *)
7025 cat >>confdefs.h <<_ACEOF
7026 #define _LARGE_FILES $ac_cv_sys_large_files
7027 _ACEOF
7028 ;;
7029 esac
7030 rm -rf conftest*
7031   fi
7032
7033
7034 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
7035
7036 fi
7037
7038    case $ac_cv_prog_cc_stdc in #(
7039   no) :
7040     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7041   *) :
7042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7043 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7044 if ${ac_cv_prog_cc_c99+:} false; then :
7045   $as_echo_n "(cached) " >&6
7046 else
7047   ac_cv_prog_cc_c99=no
7048 ac_save_CC=$CC
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051 #include <stdarg.h>
7052 #include <stdbool.h>
7053 #include <stdlib.h>
7054 #include <wchar.h>
7055 #include <stdio.h>
7056
7057 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7058 #define debug(...) fprintf (stderr, __VA_ARGS__)
7059 #define showlist(...) puts (#__VA_ARGS__)
7060 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7061 static void
7062 test_varargs_macros (void)
7063 {
7064   int x = 1234;
7065   int y = 5678;
7066   debug ("Flag");
7067   debug ("X = %d\n", x);
7068   showlist (The first, second, and third items.);
7069   report (x>y, "x is %d but y is %d", x, y);
7070 }
7071
7072 // Check long long types.
7073 #define BIG64 18446744073709551615ull
7074 #define BIG32 4294967295ul
7075 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7076 #if !BIG_OK
7077   your preprocessor is broken;
7078 #endif
7079 #if BIG_OK
7080 #else
7081   your preprocessor is broken;
7082 #endif
7083 static long long int bignum = -9223372036854775807LL;
7084 static unsigned long long int ubignum = BIG64;
7085
7086 struct incomplete_array
7087 {
7088   int datasize;
7089   double data[];
7090 };
7091
7092 struct named_init {
7093   int number;
7094   const wchar_t *name;
7095   double average;
7096 };
7097
7098 typedef const char *ccp;
7099
7100 static inline int
7101 test_restrict (ccp restrict text)
7102 {
7103   // See if C++-style comments work.
7104   // Iterate through items via the restricted pointer.
7105   // Also check for declarations in for loops.
7106   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7107     continue;
7108   return 0;
7109 }
7110
7111 // Check varargs and va_copy.
7112 static void
7113 test_varargs (const char *format, ...)
7114 {
7115   va_list args;
7116   va_start (args, format);
7117   va_list args_copy;
7118   va_copy (args_copy, args);
7119
7120   const char *str;
7121   int number;
7122   float fnumber;
7123
7124   while (*format)
7125     {
7126       switch (*format++)
7127         {
7128         case 's': // string
7129           str = va_arg (args_copy, const char *);
7130           break;
7131         case 'd': // int
7132           number = va_arg (args_copy, int);
7133           break;
7134         case 'f': // float
7135           fnumber = va_arg (args_copy, double);
7136           break;
7137         default:
7138           break;
7139         }
7140     }
7141   va_end (args_copy);
7142   va_end (args);
7143 }
7144
7145 int
7146 main ()
7147 {
7148
7149   // Check bool.
7150   _Bool success = false;
7151
7152   // Check restrict.
7153   if (test_restrict ("String literal") == 0)
7154     success = true;
7155   char *restrict newvar = "Another string";
7156
7157   // Check varargs.
7158   test_varargs ("s, d' f .", "string", 65, 34.234);
7159   test_varargs_macros ();
7160
7161   // Check flexible array members.
7162   struct incomplete_array *ia =
7163     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7164   ia->datasize = 10;
7165   for (int i = 0; i < ia->datasize; ++i)
7166     ia->data[i] = i * 1.234;
7167
7168   // Check named initializers.
7169   struct named_init ni = {
7170     .number = 34,
7171     .name = L"Test wide string",
7172     .average = 543.34343,
7173   };
7174
7175   ni.number = 58;
7176
7177   int dynamic_array[ni.number];
7178   dynamic_array[ni.number - 1] = 543;
7179
7180   // work around unused variable warnings
7181   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7182           || dynamic_array[ni.number - 1] != 543);
7183
7184   ;
7185   return 0;
7186 }
7187 _ACEOF
7188 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7189 do
7190   CC="$ac_save_CC $ac_arg"
7191   if ac_fn_c_try_compile "$LINENO"; then :
7192   ac_cv_prog_cc_c99=$ac_arg
7193 fi
7194 rm -f core conftest.err conftest.$ac_objext
7195   test "x$ac_cv_prog_cc_c99" != "xno" && break
7196 done
7197 rm -f conftest.$ac_ext
7198 CC=$ac_save_CC
7199
7200 fi
7201 # AC_CACHE_VAL
7202 case "x$ac_cv_prog_cc_c99" in
7203   x)
7204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7205 $as_echo "none needed" >&6; } ;;
7206   xno)
7207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7208 $as_echo "unsupported" >&6; } ;;
7209   *)
7210     CC="$CC $ac_cv_prog_cc_c99"
7211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7212 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7213 esac
7214 if test "x$ac_cv_prog_cc_c99" != xno; then :
7215   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7216 else
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7218 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7219 if ${ac_cv_prog_cc_c89+:} false; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   ac_cv_prog_cc_c89=no
7223 ac_save_CC=$CC
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h.  */
7226 #include <stdarg.h>
7227 #include <stdio.h>
7228 struct stat;
7229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7230 struct buf { int x; };
7231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7232 static char *e (p, i)
7233      char **p;
7234      int i;
7235 {
7236   return p[i];
7237 }
7238 static char *f (char * (*g) (char **, int), char **p, ...)
7239 {
7240   char *s;
7241   va_list v;
7242   va_start (v,p);
7243   s = g (p, va_arg (v,int));
7244   va_end (v);
7245   return s;
7246 }
7247
7248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7249    function prototypes and stuff, but not '\xHH' hex character constants.
7250    These don't provoke an error unfortunately, instead are silently treated
7251    as 'x'.  The following induces an error, until -std is added to get
7252    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7253    array size at least.  It's necessary to write '\x00'==0 to get something
7254    that's true only with -std.  */
7255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7256
7257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7258    inside strings and character constants.  */
7259 #define FOO(x) 'x'
7260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7261
7262 int test (int i, double x);
7263 struct s1 {int (*f) (int a);};
7264 struct s2 {int (*f) (double a);};
7265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7266 int argc;
7267 char **argv;
7268 int
7269 main ()
7270 {
7271 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7272   ;
7273   return 0;
7274 }
7275 _ACEOF
7276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7277         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7278 do
7279   CC="$ac_save_CC $ac_arg"
7280   if ac_fn_c_try_compile "$LINENO"; then :
7281   ac_cv_prog_cc_c89=$ac_arg
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext
7284   test "x$ac_cv_prog_cc_c89" != "xno" && break
7285 done
7286 rm -f conftest.$ac_ext
7287 CC=$ac_save_CC
7288
7289 fi
7290 # AC_CACHE_VAL
7291 case "x$ac_cv_prog_cc_c89" in
7292   x)
7293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7294 $as_echo "none needed" >&6; } ;;
7295   xno)
7296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7297 $as_echo "unsupported" >&6; } ;;
7298   *)
7299     CC="$CC $ac_cv_prog_cc_c89"
7300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7302 esac
7303 if test "x$ac_cv_prog_cc_c89" != xno; then :
7304   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7305 else
7306   ac_cv_prog_cc_stdc=no
7307 fi
7308
7309 fi
7310  ;;
7311 esac
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7313 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7314   if ${ac_cv_prog_cc_stdc+:} false; then :
7315   $as_echo_n "(cached) " >&6
7316 fi
7317
7318   case $ac_cv_prog_cc_stdc in #(
7319   no) :
7320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7321 $as_echo "unsupported" >&6; } ;; #(
7322   '') :
7323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7324 $as_echo "none needed" >&6; } ;; #(
7325   *) :
7326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7327 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7328 esac
7329
7330
7331
7332
7333
7334
7335   # Check whether --enable-threads was given.
7336 if test "${enable_threads+set}" = set; then :
7337   enableval=$enable_threads; gl_use_threads=$enableval
7338 else
7339   if test -n "$gl_use_threads_default"; then
7340        gl_use_threads="$gl_use_threads_default"
7341      else
7342        case "$host_os" in
7343                                                                osf*) gl_use_threads=no ;;
7344          cygwin*)
7345                case `uname -r` in
7346                  1.[0-5].*) gl_use_threads=no ;;
7347                  *)         gl_use_threads=yes ;;
7348                esac
7349                ;;
7350          *)    gl_use_threads=yes ;;
7351        esac
7352      fi
7353
7354 fi
7355
7356   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7357     # For using <pthread.h>:
7358     case "$host_os" in
7359       osf*)
7360         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7361         # groks <pthread.h>. cc also understands the flag -pthread, but
7362         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7363         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7364         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7365         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7366         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7367         ;;
7368     esac
7369     # Some systems optimize for single-threaded programs by default, and
7370     # need special flags to disable these optimizations. For example, the
7371     # definition of 'errno' in <errno.h>.
7372     case "$host_os" in
7373       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7374       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7375     esac
7376   fi
7377
7378
7379
7380   # Pre-early section.
7381
7382
7383
7384
7385   # Code from module absolute-header:
7386   # Code from module alloca-opt:
7387   # Code from module dirname:
7388   # Code from module dirname-lgpl:
7389   # Code from module dosname:
7390   # Code from module double-slash-root:
7391   # Code from module environ:
7392   # Code from module errno:
7393   # Code from module error:
7394   # Code from module exitfail:
7395   # Code from module extensions:
7396   # Code from module extern-inline:
7397   # Code from module fcntl-h:
7398   # Code from module filename:
7399   # Code from module float:
7400   # Code from module full-write:
7401   # Code from module getprogname:
7402   # Code from module gettext-h:
7403   # Code from module gettimeofday:
7404   # Code from module gitlog-to-changelog:
7405   # Code from module gnupload:
7406   # Code from module havelib:
7407   # Code from module include_next:
7408   # Code from module intprops:
7409   # Code from module largefile:
7410
7411   # Code from module lib-ignore:
7412   # Code from module limits-h:
7413   # Code from module localtime-buffer:
7414   # Code from module lock:
7415   # Code from module lstat:
7416   # Code from module malloc-posix:
7417   # Code from module malloca:
7418   # Code from module manywarnings:
7419   # Code from module memchr:
7420   # Code from module mkdir:
7421   # Code from module mkdtemp:
7422   # Code from module msvc-inval:
7423   # Code from module msvc-nothrow:
7424   # Code from module multiarch:
7425   # Code from module pathmax:
7426   # Code from module raise:
7427   # Code from module read:
7428   # Code from module safe-read:
7429   # Code from module safe-write:
7430   # Code from module setenv:
7431   # Code from module sigaction:
7432   # Code from module signal:
7433   # Code from module signal-h:
7434   # Code from module sigprocmask:
7435   # Code from module size_max:
7436   # Code from module snippet/_Noreturn:
7437   # Code from module snippet/arg-nonnull:
7438   # Code from module snippet/c++defs:
7439   # Code from module snippet/warn-on-use:
7440   # Code from module snprintf:
7441   # Code from module ssize_t:
7442   # Code from module stat:
7443   # Code from module stat-time:
7444   # Code from module stdarg:
7445
7446
7447
7448   # Code from module stdbool:
7449   # Code from module stddef:
7450   # Code from module stdint:
7451   # Code from module stdio:
7452   # Code from module stdlib:
7453   # Code from module strerror:
7454   # Code from module strerror-override:
7455   # Code from module string:
7456   # Code from module strndup:
7457   # Code from module strnlen:
7458   # Code from module strsignal:
7459   # Code from module sys_select:
7460   # Code from module sys_stat:
7461   # Code from module sys_time:
7462   # Code from module sys_types:
7463   # Code from module sys_wait:
7464   # Code from module tempname:
7465   # Code from module threadlib:
7466
7467
7468
7469   # Code from module time:
7470   # Code from module tls:
7471   # Code from module unistd:
7472   # Code from module unsetenv:
7473   # Code from module vasnprintf:
7474   # Code from module vasprintf:
7475   # Code from module verify:
7476   # Code from module waitpid:
7477   # Code from module warnings:
7478   # Code from module wchar:
7479   # Code from module write:
7480   # Code from module xalloc:
7481   # Code from module xalloc-die:
7482   # Code from module xalloc-oversized:
7483   # Code from module xsize:
7484   # Code from module xstrndup:
7485   # Code from module xvasprintf:
7486
7487 ac_ext=c
7488 ac_cpp='$CPP $CPPFLAGS'
7489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7493 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7494 # On Suns, sometimes $CPP names a directory.
7495 if test -n "$CPP" && test -d "$CPP"; then
7496   CPP=
7497 fi
7498 if test -z "$CPP"; then
7499   if ${ac_cv_prog_CPP+:} false; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502       # Double quotes because CPP needs to be expanded
7503     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7504     do
7505       ac_preproc_ok=false
7506 for ac_c_preproc_warn_flag in '' yes
7507 do
7508   # Use a header file that comes with gcc, so configuring glibc
7509   # with a fresh cross-compiler works.
7510   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7511   # <limits.h> exists even on freestanding compilers.
7512   # On the NeXT, cc -E runs the code through the compiler's parser,
7513   # not just through cpp. "Syntax error" is here to catch this case.
7514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h.  */
7516 #ifdef __STDC__
7517 # include <limits.h>
7518 #else
7519 # include <assert.h>
7520 #endif
7521                      Syntax error
7522 _ACEOF
7523 if ac_fn_c_try_cpp "$LINENO"; then :
7524
7525 else
7526   # Broken: fails on valid input.
7527 continue
7528 fi
7529 rm -f conftest.err conftest.i conftest.$ac_ext
7530
7531   # OK, works on sane cases.  Now check whether nonexistent headers
7532   # can be detected and how.
7533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h.  */
7535 #include <ac_nonexistent.h>
7536 _ACEOF
7537 if ac_fn_c_try_cpp "$LINENO"; then :
7538   # Broken: success on invalid input.
7539 continue
7540 else
7541   # Passes both tests.
7542 ac_preproc_ok=:
7543 break
7544 fi
7545 rm -f conftest.err conftest.i conftest.$ac_ext
7546
7547 done
7548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7549 rm -f conftest.i conftest.err conftest.$ac_ext
7550 if $ac_preproc_ok; then :
7551   break
7552 fi
7553
7554     done
7555     ac_cv_prog_CPP=$CPP
7556
7557 fi
7558   CPP=$ac_cv_prog_CPP
7559 else
7560   ac_cv_prog_CPP=$CPP
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7563 $as_echo "$CPP" >&6; }
7564 ac_preproc_ok=false
7565 for ac_c_preproc_warn_flag in '' yes
7566 do
7567   # Use a header file that comes with gcc, so configuring glibc
7568   # with a fresh cross-compiler works.
7569   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7570   # <limits.h> exists even on freestanding compilers.
7571   # On the NeXT, cc -E runs the code through the compiler's parser,
7572   # not just through cpp. "Syntax error" is here to catch this case.
7573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h.  */
7575 #ifdef __STDC__
7576 # include <limits.h>
7577 #else
7578 # include <assert.h>
7579 #endif
7580                      Syntax error
7581 _ACEOF
7582 if ac_fn_c_try_cpp "$LINENO"; then :
7583
7584 else
7585   # Broken: fails on valid input.
7586 continue
7587 fi
7588 rm -f conftest.err conftest.i conftest.$ac_ext
7589
7590   # OK, works on sane cases.  Now check whether nonexistent headers
7591   # can be detected and how.
7592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h.  */
7594 #include <ac_nonexistent.h>
7595 _ACEOF
7596 if ac_fn_c_try_cpp "$LINENO"; then :
7597   # Broken: success on invalid input.
7598 continue
7599 else
7600   # Passes both tests.
7601 ac_preproc_ok=:
7602 break
7603 fi
7604 rm -f conftest.err conftest.i conftest.$ac_ext
7605
7606 done
7607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7608 rm -f conftest.i conftest.err conftest.$ac_ext
7609 if $ac_preproc_ok; then :
7610
7611 else
7612   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7614 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7615 See \`config.log' for more details" "$LINENO" 5; }
7616 fi
7617
7618 ac_ext=c
7619 ac_cpp='$CPP $CPPFLAGS'
7620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623
7624 CFLAGS="$CFLAGS -Wall"
7625 # Enable all reasonable GCC warnings.
7626
7627   ac_ext=c
7628 ac_cpp='$CPP $CPPFLAGS'
7629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7632
7633
7634
7635   if test -n "$GCC"; then
7636
7637             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7638 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7639 if ${gl_cv_cc_nomfi_supported+:} false; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   gl_save_CFLAGS="$CFLAGS"
7643        CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7644        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h.  */
7646
7647 int
7648 main ()
7649 {
7650
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 if ac_fn_c_try_compile "$LINENO"; then :
7656   gl_cv_cc_nomfi_supported=yes
7657 else
7658   gl_cv_cc_nomfi_supported=no
7659 fi
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661        CFLAGS="$gl_save_CFLAGS"
7662
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7665 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7666
7667     if test "$gl_cv_cc_nomfi_supported" = yes; then
7668                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7669 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7670 if ${gl_cv_cc_nomfi_needed+:} false; then :
7671   $as_echo_n "(cached) " >&6
7672 else
7673   gl_save_CFLAGS="$CFLAGS"
7674          CFLAGS="$CFLAGS -W -Werror"
7675          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h.  */
7677 int f (void)
7678                 {
7679                   typedef struct { int a; int b; } s_t;
7680                   s_t s1 = { 0, };
7681                   return s1.b;
7682                 }
7683
7684 int
7685 main ()
7686 {
7687
7688   ;
7689   return 0;
7690 }
7691 _ACEOF
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693   gl_cv_cc_nomfi_needed=no
7694 else
7695   gl_cv_cc_nomfi_needed=yes
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698          CFLAGS="$gl_save_CFLAGS"
7699
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7702 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7703     fi
7704
7705                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7706 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7707 if ${gl_cv_cc_uninitialized_supported+:} false; then :
7708   $as_echo_n "(cached) " >&6
7709 else
7710   gl_save_CFLAGS="$CFLAGS"
7711        CFLAGS="$CFLAGS -Werror -Wuninitialized"
7712        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h.  */
7714
7715 int
7716 main ()
7717 {
7718
7719   ;
7720   return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"; then :
7724   gl_cv_cc_uninitialized_supported=yes
7725 else
7726   gl_cv_cc_uninitialized_supported=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729        CFLAGS="$gl_save_CFLAGS"
7730
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7733 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7734
7735   fi
7736
7737   # List all gcc warning categories.
7738   # To compare this list to your installed GCC's, run this Bash command:
7739   #
7740   # comm -3 \
7741   #  <((sed -n 's/^  *\(-[^ 0-9][^ ]*\) .*/\1/p' manywarnings.m4; \
7742   #     awk '/^[^#]/ {print warnings}' ../build-aux/gcc-warning.spec) | sort) \
7743   #  <(LC_ALL=C gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort)
7744
7745   gl_manywarn_set=
7746   for gl_manywarn_item in -fno-common \
7747     -W \
7748     -Waddress \
7749     -Waggressive-loop-optimizations \
7750     -Wall \
7751     -Wattribute-alias \
7752     -Wattributes \
7753     -Wbad-function-cast \
7754     -Wbool-compare \
7755     -Wbool-operation \
7756     -Wbuiltin-declaration-mismatch \
7757     -Wbuiltin-macro-redefined \
7758     -Wcast-align \
7759     -Wcast-align=strict \
7760     -Wcast-function-type \
7761     -Wchar-subscripts \
7762     -Wclobbered \
7763     -Wcomment \
7764     -Wcomments \
7765     -Wcoverage-mismatch \
7766     -Wcpp \
7767     -Wdangling-else \
7768     -Wdate-time \
7769     -Wdeprecated \
7770     -Wdeprecated-declarations \
7771     -Wdesignated-init \
7772     -Wdisabled-optimization \
7773     -Wdiscarded-array-qualifiers \
7774     -Wdiscarded-qualifiers \
7775     -Wdiv-by-zero \
7776     -Wdouble-promotion \
7777     -Wduplicated-branches \
7778     -Wduplicated-cond \
7779     -Wduplicate-decl-specifier \
7780     -Wempty-body \
7781     -Wendif-labels \
7782     -Wenum-compare \
7783     -Wexpansion-to-defined \
7784     -Wextra \
7785     -Wformat-contains-nul \
7786     -Wformat-extra-args \
7787     -Wformat-nonliteral \
7788     -Wformat-security \
7789     -Wformat-signedness \
7790     -Wformat-y2k \
7791     -Wformat-zero-length \
7792     -Wframe-address \
7793     -Wfree-nonheap-object \
7794     -Whsa \
7795     -Wif-not-aligned \
7796     -Wignored-attributes \
7797     -Wignored-qualifiers \
7798     -Wimplicit \
7799     -Wimplicit-function-declaration \
7800     -Wimplicit-int \
7801     -Wincompatible-pointer-types \
7802     -Winit-self \
7803     -Winline \
7804     -Wint-conversion \
7805     -Wint-in-bool-context \
7806     -Wint-to-pointer-cast \
7807     -Winvalid-memory-model \
7808     -Winvalid-pch \
7809     -Wlogical-not-parentheses \
7810     -Wlogical-op \
7811     -Wmain \
7812     -Wmaybe-uninitialized \
7813     -Wmemset-elt-size \
7814     -Wmemset-transposed-args \
7815     -Wmisleading-indentation \
7816     -Wmissing-attributes \
7817     -Wmissing-braces \
7818     -Wmissing-declarations \
7819     -Wmissing-field-initializers \
7820     -Wmissing-include-dirs \
7821     -Wmissing-parameter-type \
7822     -Wmissing-prototypes \
7823     -Wmultichar \
7824     -Wmultistatement-macros \
7825     -Wnarrowing \
7826     -Wnested-externs \
7827     -Wnonnull \
7828     -Wnonnull-compare \
7829     -Wnull-dereference \
7830     -Wodr \
7831     -Wold-style-declaration \
7832     -Wold-style-definition \
7833     -Wopenmp-simd \
7834     -Woverflow \
7835     -Woverlength-strings \
7836     -Woverride-init \
7837     -Wpacked \
7838     -Wpacked-bitfield-compat \
7839     -Wpacked-not-aligned \
7840     -Wparentheses \
7841     -Wpointer-arith \
7842     -Wpointer-compare \
7843     -Wpointer-sign \
7844     -Wpointer-to-int-cast \
7845     -Wpragmas \
7846     -Wpsabi \
7847     -Wrestrict \
7848     -Wreturn-local-addr \
7849     -Wreturn-type \
7850     -Wscalar-storage-order \
7851     -Wsequence-point \
7852     -Wshadow \
7853     -Wshift-count-negative \
7854     -Wshift-count-overflow \
7855     -Wshift-negative-value \
7856     -Wsizeof-array-argument \
7857     -Wsizeof-pointer-div \
7858     -Wsizeof-pointer-memaccess \
7859     -Wstack-protector \
7860     -Wstrict-aliasing \
7861     -Wstrict-overflow \
7862     -Wstrict-prototypes \
7863     -Wstringop-truncation \
7864     -Wsuggest-attribute=cold \
7865     -Wsuggest-attribute=const \
7866     -Wsuggest-attribute=format \
7867     -Wsuggest-attribute=malloc \
7868     -Wsuggest-attribute=noreturn \
7869     -Wsuggest-attribute=pure \
7870     -Wsuggest-final-methods \
7871     -Wsuggest-final-types \
7872     -Wswitch \
7873     -Wswitch-bool \
7874     -Wswitch-unreachable \
7875     -Wsync-nand \
7876     -Wsystem-headers \
7877     -Wtautological-compare \
7878     -Wtrampolines \
7879     -Wtrigraphs \
7880     -Wtype-limits \
7881     -Wuninitialized \
7882     -Wunknown-pragmas \
7883     -Wunsafe-loop-optimizations \
7884     -Wunused \
7885     -Wunused-but-set-parameter \
7886     -Wunused-but-set-variable \
7887     -Wunused-function \
7888     -Wunused-label \
7889     -Wunused-local-typedefs \
7890     -Wunused-macros \
7891     -Wunused-parameter \
7892     -Wunused-result \
7893     -Wunused-value \
7894     -Wunused-variable \
7895     -Wvarargs \
7896     -Wvariadic-macros \
7897     -Wvector-operation-performance \
7898     -Wvla \
7899     -Wvolatile-register-var \
7900     -Wwrite-strings \
7901     \
7902     ; do
7903     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7904   done
7905
7906   # gcc --help=warnings outputs an unusual form for these options; list
7907   # them here so that the above 'comm' command doesn't report a false match.
7908   # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal.
7909   # Also, AC_COMPUTE_INT requires it to fit in a long; it is 2**63 on
7910   # the only platforms where it does not fit in a long, so make that
7911   # a special case.
7912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking max safe object size" >&5
7913 $as_echo_n "checking max safe object size... " >&6; }
7914   if ac_fn_c_compute_int "$LINENO" "LONG_MAX < (PTRDIFF_MAX < (size_t) -1 ? PTRDIFF_MAX : (size_t) -1)
7915      ? -1
7916      : PTRDIFF_MAX < (size_t) -1 ? (long) PTRDIFF_MAX : (long) (size_t) -1" "gl_alloc_max"        "#include <limits.h>
7917       #include <stddef.h>
7918       #include <stdint.h>
7919     "; then :
7920
7921 else
7922   gl_alloc_max=2147483647
7923 fi
7924
7925   case $gl_alloc_max in
7926     -1) gl_alloc_max=9223372036854775807;;
7927   esac
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_alloc_max" >&5
7929 $as_echo "$gl_alloc_max" >&6; }
7930   gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max"
7931   gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2"
7932   gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2"
7933   gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2"
7934   gl_manywarn_set="$gl_manywarn_set -Wimplicit-fallthrough=5"
7935   gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
7936   gl_manywarn_set="$gl_manywarn_set -Wshift-overflow=2"
7937   gl_manywarn_set="$gl_manywarn_set -Wstringop-overflow=2"
7938   gl_manywarn_set="$gl_manywarn_set -Wunused-const-variable=2"
7939   gl_manywarn_set="$gl_manywarn_set -Wvla-larger-than=4031"
7940
7941   # These are needed for older GCC versions.
7942   if test -n "$GCC"; then
7943     case `($CC --version) 2>/dev/null` in
7944       'gcc (GCC) '[0-3].* | \
7945       'gcc (GCC) '4.[0-7].*)
7946         gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
7947         gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
7948           ;;
7949     esac
7950   fi
7951
7952   # Disable specific options as needed.
7953   if test "$gl_cv_cc_nomfi_needed" = yes; then
7954     gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7955   fi
7956
7957   if test "$gl_cv_cc_uninitialized_supported" = no; then
7958     gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7959   fi
7960
7961   warnings=$gl_manywarn_set
7962
7963   ac_ext=c
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7968
7969
7970 nw=
7971 nw="$nw -Wsystem-headers"
7972 nw="$nw -Wmissing-field-initializers"
7973 nw="$nw -Winline"
7974
7975   gl_warn_set=
7976   set x $warnings; shift
7977   for gl_warn_item
7978   do
7979     case " $nw " in
7980       *" $gl_warn_item "*)
7981         ;;
7982       *)
7983         gl_warn_set="$gl_warn_set $gl_warn_item"
7984         ;;
7985     esac
7986   done
7987   warnings=$gl_warn_set
7988
7989 for w in $warnings; do
7990
7991   ac_ext=c
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7999 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
8000 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
8001   $as_echo_n "(cached) " >&6
8002 else
8003
8004   gl_save_compiler_FLAGS="$CFLAGS"
8005   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
8006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008
8009 int
8010 main ()
8011 {
8012
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_link "$LINENO"; then :
8018   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
8019 else
8020   gl_cv_warn_c__Werror__Wunknown_warning_option=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext \
8023     conftest$ac_exeext conftest.$ac_ext
8024   CFLAGS="$gl_save_compiler_FLAGS"
8025
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
8028 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
8029 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
8030   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
8031 else
8032   gl_unknown_warnings_are_errors=
8033 fi
8034
8035   ac_ext=c
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
8041
8042
8043
8044 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
8045 gl_positive="$w"
8046 case $gl_positive in
8047   -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
8048 esac
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
8050 $as_echo_n "checking whether C compiler handles $w... " >&6; }
8051 if eval \${$as_gl_Warn+:} false; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054
8055   gl_save_compiler_FLAGS="$CFLAGS"
8056   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
8057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h.  */
8059
8060 int
8061 main ()
8062 {
8063
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 if ac_fn_c_try_link "$LINENO"; then :
8069   eval "$as_gl_Warn=yes"
8070 else
8071   eval "$as_gl_Warn=no"
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext \
8074     conftest$ac_exeext conftest.$ac_ext
8075   CFLAGS="$gl_save_compiler_FLAGS"
8076
8077 fi
8078 eval ac_res=\$$as_gl_Warn
8079                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8080 $as_echo "$ac_res" >&6; }
8081 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
8082   as_fn_append WARN_CFLAGS " $w"
8083 fi
8084
8085
8086 done
8087
8088
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
8090 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
8091 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094
8095   gl_save_compiler_FLAGS="$CFLAGS"
8096   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
8097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h.  */
8099
8100 int
8101 main ()
8102 {
8103
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_link "$LINENO"; then :
8109   gl_cv_warn_c__Wno_missing_field_initializers=yes
8110 else
8111   gl_cv_warn_c__Wno_missing_field_initializers=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext \
8114     conftest$ac_exeext conftest.$ac_ext
8115   CFLAGS="$gl_save_compiler_FLAGS"
8116
8117 fi
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8119 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8120 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
8121   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8122 fi
8123
8124
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8126 $as_echo_n "checking whether ln -s works... " >&6; }
8127 LN_S=$as_ln_s
8128 if test "$LN_S" = "ln -s"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8133 $as_echo "no, using $LN_S" >&6; }
8134 fi
8135
8136 if test -n "$ac_tool_prefix"; then
8137   for ac_prog in ar lib "link -lib"
8138   do
8139     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if ${ac_cv_prog_AR+:} false; then :
8144   $as_echo_n "(cached) " >&6
8145 else
8146   if test -n "$AR"; then
8147   ac_cv_prog_AR="$AR" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152   IFS=$as_save_IFS
8153   test -z "$as_dir" && as_dir=.
8154     for ac_exec_ext in '' $ac_executable_extensions; do
8155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158     break 2
8159   fi
8160 done
8161   done
8162 IFS=$as_save_IFS
8163
8164 fi
8165 fi
8166 AR=$ac_cv_prog_AR
8167 if test -n "$AR"; then
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8169 $as_echo "$AR" >&6; }
8170 else
8171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 fi
8174
8175
8176     test -n "$AR" && break
8177   done
8178 fi
8179 if test -z "$AR"; then
8180   ac_ct_AR=$AR
8181   for ac_prog in ar lib "link -lib"
8182 do
8183   # Extract the first word of "$ac_prog", so it can be a program name with args.
8184 set dummy $ac_prog; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   if test -n "$ac_ct_AR"; then
8191   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198     for ac_exec_ext in '' $ac_executable_extensions; do
8199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200     ac_cv_prog_ac_ct_AR="$ac_prog"
8201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205   done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8211 if test -n "$ac_ct_AR"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8213 $as_echo "$ac_ct_AR" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218
8219
8220   test -n "$ac_ct_AR" && break
8221 done
8222
8223   if test "x$ac_ct_AR" = x; then
8224     AR="false"
8225   else
8226     case $cross_compiling:$ac_tool_warned in
8227 yes:)
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8230 ac_tool_warned=yes ;;
8231 esac
8232     AR=$ac_ct_AR
8233   fi
8234 fi
8235
8236 : ${AR=ar}
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8239 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8240 if ${am_cv_ar_interface+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   ac_ext=c
8244 ac_cpp='$CPP $CPPFLAGS'
8245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248
8249    am_cv_ar_interface=ar
8250    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h.  */
8252 int some_variable = 0;
8253 _ACEOF
8254 if ac_fn_c_try_compile "$LINENO"; then :
8255   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8256       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8257   (eval $am_ar_try) 2>&5
8258   ac_status=$?
8259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8260   test $ac_status = 0; }
8261       if test "$ac_status" -eq 0; then
8262         am_cv_ar_interface=ar
8263       else
8264         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8265         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8266   (eval $am_ar_try) 2>&5
8267   ac_status=$?
8268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8269   test $ac_status = 0; }
8270         if test "$ac_status" -eq 0; then
8271           am_cv_ar_interface=lib
8272         else
8273           am_cv_ar_interface=unknown
8274         fi
8275       fi
8276       rm -f conftest.lib libconftest.a
8277
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280    ac_ext=c
8281 ac_cpp='$CPP $CPPFLAGS'
8282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8285
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8288 $as_echo "$am_cv_ar_interface" >&6; }
8289
8290 case $am_cv_ar_interface in
8291 ar)
8292   ;;
8293 lib)
8294   # Microsoft lib, so override with the ar-lib wrapper script.
8295   # FIXME: It is wrong to rewrite AR.
8296   # But if we don't then we get into trouble of one sort or another.
8297   # A longer-term fix would be to have automake use am__AR in this case,
8298   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8299   # similar.
8300   AR="$am_aux_dir/ar-lib $AR"
8301   ;;
8302 unknown)
8303   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8304   ;;
8305 esac
8306
8307 case `pwd` in
8308   *\ * | *\     *)
8309     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8310 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8311 esac
8312
8313
8314
8315 macro_version='2.4.6'
8316 macro_revision='2.4.6'
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 ltmain=$ac_aux_dir/ltmain.sh
8331
8332 # Backslashify metacharacters that are still active within
8333 # double-quoted strings.
8334 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8335
8336 # Same as above, but do not quote variable references.
8337 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8338
8339 # Sed substitution to delay expansion of an escaped shell variable in a
8340 # double_quote_subst'ed string.
8341 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8342
8343 # Sed substitution to delay expansion of an escaped single quote.
8344 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8345
8346 # Sed substitution to avoid accidental globbing in evaled expressions
8347 no_glob_subst='s/\*/\\\*/g'
8348
8349 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8350 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8351 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8352
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8354 $as_echo_n "checking how to print strings... " >&6; }
8355 # Test print first, because it will be a builtin if present.
8356 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8357    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8358   ECHO='print -r --'
8359 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8360   ECHO='printf %s\n'
8361 else
8362   # Use this function as a fallback that always works.
8363   func_fallback_echo ()
8364   {
8365     eval 'cat <<_LTECHO_EOF
8366 $1
8367 _LTECHO_EOF'
8368   }
8369   ECHO='func_fallback_echo'
8370 fi
8371
8372 # func_echo_all arg...
8373 # Invoke $ECHO with all args, space-separated.
8374 func_echo_all ()
8375 {
8376     $ECHO ""
8377 }
8378
8379 case $ECHO in
8380   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8381 $as_echo "printf" >&6; } ;;
8382   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8383 $as_echo "print -r" >&6; } ;;
8384   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8385 $as_echo "cat" >&6; } ;;
8386 esac
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8402 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8403 if ${ac_cv_path_SED+:} false; then :
8404   $as_echo_n "(cached) " >&6
8405 else
8406             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8407      for ac_i in 1 2 3 4 5 6 7; do
8408        ac_script="$ac_script$as_nl$ac_script"
8409      done
8410      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8411      { ac_script=; unset ac_script;}
8412      if test -z "$SED"; then
8413   ac_path_SED_found=false
8414   # Loop through the user's path and test for each of PROGNAME-LIST
8415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418   IFS=$as_save_IFS
8419   test -z "$as_dir" && as_dir=.
8420     for ac_prog in sed gsed; do
8421     for ac_exec_ext in '' $ac_executable_extensions; do
8422       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8423       as_fn_executable_p "$ac_path_SED" || continue
8424 # Check for GNU ac_path_SED and select it if it is found.
8425   # Check for GNU $ac_path_SED
8426 case `"$ac_path_SED" --version 2>&1` in
8427 *GNU*)
8428   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8429 *)
8430   ac_count=0
8431   $as_echo_n 0123456789 >"conftest.in"
8432   while :
8433   do
8434     cat "conftest.in" "conftest.in" >"conftest.tmp"
8435     mv "conftest.tmp" "conftest.in"
8436     cp "conftest.in" "conftest.nl"
8437     $as_echo '' >> "conftest.nl"
8438     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8439     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8440     as_fn_arith $ac_count + 1 && ac_count=$as_val
8441     if test $ac_count -gt ${ac_path_SED_max-0}; then
8442       # Best one so far, save it but keep looking for a better one
8443       ac_cv_path_SED="$ac_path_SED"
8444       ac_path_SED_max=$ac_count
8445     fi
8446     # 10*(2^10) chars as input seems more than enough
8447     test $ac_count -gt 10 && break
8448   done
8449   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8450 esac
8451
8452       $ac_path_SED_found && break 3
8453     done
8454   done
8455   done
8456 IFS=$as_save_IFS
8457   if test -z "$ac_cv_path_SED"; then
8458     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8459   fi
8460 else
8461   ac_cv_path_SED=$SED
8462 fi
8463
8464 fi
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8466 $as_echo "$ac_cv_path_SED" >&6; }
8467  SED="$ac_cv_path_SED"
8468   rm -f conftest.sed
8469
8470 test -z "$SED" && SED=sed
8471 Xsed="$SED -e 1s/^X//"
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8484 $as_echo_n "checking for fgrep... " >&6; }
8485 if ${ac_cv_path_FGREP+:} false; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8489    then ac_cv_path_FGREP="$GREP -F"
8490    else
8491      if test -z "$FGREP"; then
8492   ac_path_FGREP_found=false
8493   # Loop through the user's path and test for each of PROGNAME-LIST
8494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8496 do
8497   IFS=$as_save_IFS
8498   test -z "$as_dir" && as_dir=.
8499     for ac_prog in fgrep; do
8500     for ac_exec_ext in '' $ac_executable_extensions; do
8501       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8502       as_fn_executable_p "$ac_path_FGREP" || continue
8503 # Check for GNU ac_path_FGREP and select it if it is found.
8504   # Check for GNU $ac_path_FGREP
8505 case `"$ac_path_FGREP" --version 2>&1` in
8506 *GNU*)
8507   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8508 *)
8509   ac_count=0
8510   $as_echo_n 0123456789 >"conftest.in"
8511   while :
8512   do
8513     cat "conftest.in" "conftest.in" >"conftest.tmp"
8514     mv "conftest.tmp" "conftest.in"
8515     cp "conftest.in" "conftest.nl"
8516     $as_echo 'FGREP' >> "conftest.nl"
8517     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8518     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8519     as_fn_arith $ac_count + 1 && ac_count=$as_val
8520     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8521       # Best one so far, save it but keep looking for a better one
8522       ac_cv_path_FGREP="$ac_path_FGREP"
8523       ac_path_FGREP_max=$ac_count
8524     fi
8525     # 10*(2^10) chars as input seems more than enough
8526     test $ac_count -gt 10 && break
8527   done
8528   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8529 esac
8530
8531       $ac_path_FGREP_found && break 3
8532     done
8533   done
8534   done
8535 IFS=$as_save_IFS
8536   if test -z "$ac_cv_path_FGREP"; then
8537     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8538   fi
8539 else
8540   ac_cv_path_FGREP=$FGREP
8541 fi
8542
8543    fi
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8546 $as_echo "$ac_cv_path_FGREP" >&6; }
8547  FGREP="$ac_cv_path_FGREP"
8548
8549
8550 test -z "$GREP" && GREP=grep
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570 # Check whether --with-gnu-ld was given.
8571 if test "${with_gnu_ld+set}" = set; then :
8572   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8573 else
8574   with_gnu_ld=no
8575 fi
8576
8577 ac_prog=ld
8578 if test yes = "$GCC"; then
8579   # Check if gcc -print-prog-name=ld gives a path.
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8581 $as_echo_n "checking for ld used by $CC... " >&6; }
8582   case $host in
8583   *-*-mingw*)
8584     # gcc leaves a trailing carriage return, which upsets mingw
8585     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8586   *)
8587     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8588   esac
8589   case $ac_prog in
8590     # Accept absolute paths.
8591     [\\/]* | ?:[\\/]*)
8592       re_direlt='/[^/][^/]*/\.\./'
8593       # Canonicalize the pathname of ld
8594       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8595       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8596         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8597       done
8598       test -z "$LD" && LD=$ac_prog
8599       ;;
8600   "")
8601     # If it fails, then pretend we aren't using GCC.
8602     ac_prog=ld
8603     ;;
8604   *)
8605     # If it is relative, then search for the first ld in PATH.
8606     with_gnu_ld=unknown
8607     ;;
8608   esac
8609 elif test yes = "$with_gnu_ld"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8611 $as_echo_n "checking for GNU ld... " >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8614 $as_echo_n "checking for non-GNU ld... " >&6; }
8615 fi
8616 if ${lt_cv_path_LD+:} false; then :
8617   $as_echo_n "(cached) " >&6
8618 else
8619   if test -z "$LD"; then
8620   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8621   for ac_dir in $PATH; do
8622     IFS=$lt_save_ifs
8623     test -z "$ac_dir" && ac_dir=.
8624     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8625       lt_cv_path_LD=$ac_dir/$ac_prog
8626       # Check to see if the program is GNU ld.  I'd rather use --version,
8627       # but apparently some variants of GNU ld only accept -v.
8628       # Break only if it was the GNU/non-GNU ld that we prefer.
8629       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8630       *GNU* | *'with BFD'*)
8631         test no != "$with_gnu_ld" && break
8632         ;;
8633       *)
8634         test yes != "$with_gnu_ld" && break
8635         ;;
8636       esac
8637     fi
8638   done
8639   IFS=$lt_save_ifs
8640 else
8641   lt_cv_path_LD=$LD # Let the user override the test with a path.
8642 fi
8643 fi
8644
8645 LD=$lt_cv_path_LD
8646 if test -n "$LD"; then
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8648 $as_echo "$LD" >&6; }
8649 else
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8652 fi
8653 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8655 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8656 if ${lt_cv_prog_gnu_ld+:} false; then :
8657   $as_echo_n "(cached) " >&6
8658 else
8659   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8660 case `$LD -v 2>&1 </dev/null` in
8661 *GNU* | *'with BFD'*)
8662   lt_cv_prog_gnu_ld=yes
8663   ;;
8664 *)
8665   lt_cv_prog_gnu_ld=no
8666   ;;
8667 esac
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8670 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8671 with_gnu_ld=$lt_cv_prog_gnu_ld
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8682 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8683 if ${lt_cv_path_NM+:} false; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   if test -n "$NM"; then
8687   # Let the user override the test.
8688   lt_cv_path_NM=$NM
8689 else
8690   lt_nm_to_check=${ac_tool_prefix}nm
8691   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8692     lt_nm_to_check="$lt_nm_to_check nm"
8693   fi
8694   for lt_tmp_nm in $lt_nm_to_check; do
8695     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8696     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8697       IFS=$lt_save_ifs
8698       test -z "$ac_dir" && ac_dir=.
8699       tmp_nm=$ac_dir/$lt_tmp_nm
8700       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8701         # Check to see if the nm accepts a BSD-compat flag.
8702         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8703         #   nm: unknown option "B" ignored
8704         # Tru64's nm complains that /dev/null is an invalid object file
8705         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8706         case $build_os in
8707         mingw*) lt_bad_file=conftest.nm/nofile ;;
8708         *) lt_bad_file=/dev/null ;;
8709         esac
8710         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8711         *$lt_bad_file* | *'Invalid file or object type'*)
8712           lt_cv_path_NM="$tmp_nm -B"
8713           break 2
8714           ;;
8715         *)
8716           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8717           */dev/null*)
8718             lt_cv_path_NM="$tmp_nm -p"
8719             break 2
8720             ;;
8721           *)
8722             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8723             continue # so that we can try to find one that supports BSD flags
8724             ;;
8725           esac
8726           ;;
8727         esac
8728       fi
8729     done
8730     IFS=$lt_save_ifs
8731   done
8732   : ${lt_cv_path_NM=no}
8733 fi
8734 fi
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8736 $as_echo "$lt_cv_path_NM" >&6; }
8737 if test no != "$lt_cv_path_NM"; then
8738   NM=$lt_cv_path_NM
8739 else
8740   # Didn't find any BSD compatible name lister, look for dumpbin.
8741   if test -n "$DUMPBIN"; then :
8742     # Let the user override the test.
8743   else
8744     if test -n "$ac_tool_prefix"; then
8745   for ac_prog in dumpbin "link -dump"
8746   do
8747     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750 $as_echo_n "checking for $ac_word... " >&6; }
8751 if ${ac_cv_prog_DUMPBIN+:} false; then :
8752   $as_echo_n "(cached) " >&6
8753 else
8754   if test -n "$DUMPBIN"; then
8755   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8756 else
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8759 do
8760   IFS=$as_save_IFS
8761   test -z "$as_dir" && as_dir=.
8762     for ac_exec_ext in '' $ac_executable_extensions; do
8763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766     break 2
8767   fi
8768 done
8769   done
8770 IFS=$as_save_IFS
8771
8772 fi
8773 fi
8774 DUMPBIN=$ac_cv_prog_DUMPBIN
8775 if test -n "$DUMPBIN"; then
8776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8777 $as_echo "$DUMPBIN" >&6; }
8778 else
8779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8781 fi
8782
8783
8784     test -n "$DUMPBIN" && break
8785   done
8786 fi
8787 if test -z "$DUMPBIN"; then
8788   ac_ct_DUMPBIN=$DUMPBIN
8789   for ac_prog in dumpbin "link -dump"
8790 do
8791   # Extract the first word of "$ac_prog", so it can be a program name with args.
8792 set dummy $ac_prog; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   if test -n "$ac_ct_DUMPBIN"; then
8799   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8803 do
8804   IFS=$as_save_IFS
8805   test -z "$as_dir" && as_dir=.
8806     for ac_exec_ext in '' $ac_executable_extensions; do
8807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810     break 2
8811   fi
8812 done
8813   done
8814 IFS=$as_save_IFS
8815
8816 fi
8817 fi
8818 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8819 if test -n "$ac_ct_DUMPBIN"; then
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8821 $as_echo "$ac_ct_DUMPBIN" >&6; }
8822 else
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 fi
8826
8827
8828   test -n "$ac_ct_DUMPBIN" && break
8829 done
8830
8831   if test "x$ac_ct_DUMPBIN" = x; then
8832     DUMPBIN=":"
8833   else
8834     case $cross_compiling:$ac_tool_warned in
8835 yes:)
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8838 ac_tool_warned=yes ;;
8839 esac
8840     DUMPBIN=$ac_ct_DUMPBIN
8841   fi
8842 fi
8843
8844     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8845     *COFF*)
8846       DUMPBIN="$DUMPBIN -symbols -headers"
8847       ;;
8848     *)
8849       DUMPBIN=:
8850       ;;
8851     esac
8852   fi
8853
8854   if test : != "$DUMPBIN"; then
8855     NM=$DUMPBIN
8856   fi
8857 fi
8858 test -z "$NM" && NM=nm
8859
8860
8861
8862
8863
8864
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8866 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8867 if ${lt_cv_nm_interface+:} false; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   lt_cv_nm_interface="BSD nm"
8871   echo "int some_variable = 0;" > conftest.$ac_ext
8872   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8873   (eval "$ac_compile" 2>conftest.err)
8874   cat conftest.err >&5
8875   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8876   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8877   cat conftest.err >&5
8878   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8879   cat conftest.out >&5
8880   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8881     lt_cv_nm_interface="MS dumpbin"
8882   fi
8883   rm -f conftest*
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8886 $as_echo "$lt_cv_nm_interface" >&6; }
8887
8888 # find the maximum length of command line arguments
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8890 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8891 if ${lt_cv_sys_max_cmd_len+:} false; then :
8892   $as_echo_n "(cached) " >&6
8893 else
8894     i=0
8895   teststring=ABCD
8896
8897   case $build_os in
8898   msdosdjgpp*)
8899     # On DJGPP, this test can blow up pretty badly due to problems in libc
8900     # (any single argument exceeding 2000 bytes causes a buffer overrun
8901     # during glob expansion).  Even if it were fixed, the result of this
8902     # check would be larger than it should be.
8903     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8904     ;;
8905
8906   gnu*)
8907     # Under GNU Hurd, this test is not required because there is
8908     # no limit to the length of command line arguments.
8909     # Libtool will interpret -1 as no limit whatsoever
8910     lt_cv_sys_max_cmd_len=-1;
8911     ;;
8912
8913   cygwin* | mingw* | cegcc*)
8914     # On Win9x/ME, this test blows up -- it succeeds, but takes
8915     # about 5 minutes as the teststring grows exponentially.
8916     # Worse, since 9x/ME are not pre-emptively multitasking,
8917     # you end up with a "frozen" computer, even though with patience
8918     # the test eventually succeeds (with a max line length of 256k).
8919     # Instead, let's just punt: use the minimum linelength reported by
8920     # all of the supported platforms: 8192 (on NT/2K/XP).
8921     lt_cv_sys_max_cmd_len=8192;
8922     ;;
8923
8924   mint*)
8925     # On MiNT this can take a long time and run out of memory.
8926     lt_cv_sys_max_cmd_len=8192;
8927     ;;
8928
8929   amigaos*)
8930     # On AmigaOS with pdksh, this test takes hours, literally.
8931     # So we just punt and use a minimum line length of 8192.
8932     lt_cv_sys_max_cmd_len=8192;
8933     ;;
8934
8935   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8936     # This has been around since 386BSD, at least.  Likely further.
8937     if test -x /sbin/sysctl; then
8938       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8939     elif test -x /usr/sbin/sysctl; then
8940       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8941     else
8942       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8943     fi
8944     # And add a safety zone
8945     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8946     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8947     ;;
8948
8949   interix*)
8950     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8951     lt_cv_sys_max_cmd_len=196608
8952     ;;
8953
8954   os2*)
8955     # The test takes a long time on OS/2.
8956     lt_cv_sys_max_cmd_len=8192
8957     ;;
8958
8959   osf*)
8960     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8961     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8962     # nice to cause kernel panics so lets avoid the loop below.
8963     # First set a reasonable default.
8964     lt_cv_sys_max_cmd_len=16384
8965     #
8966     if test -x /sbin/sysconfig; then
8967       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8968         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8969       esac
8970     fi
8971     ;;
8972   sco3.2v5*)
8973     lt_cv_sys_max_cmd_len=102400
8974     ;;
8975   sysv5* | sco5v6* | sysv4.2uw2*)
8976     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8977     if test -n "$kargmax"; then
8978       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8979     else
8980       lt_cv_sys_max_cmd_len=32768
8981     fi
8982     ;;
8983   *)
8984     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8985     if test -n "$lt_cv_sys_max_cmd_len" && \
8986        test undefined != "$lt_cv_sys_max_cmd_len"; then
8987       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8988       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8989     else
8990       # Make teststring a little bigger before we do anything with it.
8991       # a 1K string should be a reasonable start.
8992       for i in 1 2 3 4 5 6 7 8; do
8993         teststring=$teststring$teststring
8994       done
8995       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8996       # If test is not a shell built-in, we'll probably end up computing a
8997       # maximum length that is only half of the actual maximum length, but
8998       # we can't tell.
8999       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9000                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9001               test 17 != "$i" # 1/2 MB should be enough
9002       do
9003         i=`expr $i + 1`
9004         teststring=$teststring$teststring
9005       done
9006       # Only check the string length outside the loop.
9007       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9008       teststring=
9009       # Add a significant safety factor because C++ compilers can tack on
9010       # massive amounts of additional arguments before passing them to the
9011       # linker.  It appears as though 1/2 is a usable value.
9012       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9013     fi
9014     ;;
9015   esac
9016
9017 fi
9018
9019 if test -n "$lt_cv_sys_max_cmd_len"; then
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9021 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9022 else
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9024 $as_echo "none" >&6; }
9025 fi
9026 max_cmd_len=$lt_cv_sys_max_cmd_len
9027
9028
9029
9030
9031
9032
9033 : ${CP="cp -f"}
9034 : ${MV="mv -f"}
9035 : ${RM="rm -f"}
9036
9037 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9038   lt_unset=unset
9039 else
9040   lt_unset=false
9041 fi
9042
9043
9044
9045
9046
9047 # test EBCDIC or ASCII
9048 case `echo X|tr X '\101'` in
9049  A) # ASCII based system
9050     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9051   lt_SP2NL='tr \040 \012'
9052   lt_NL2SP='tr \015\012 \040\040'
9053   ;;
9054  *) # EBCDIC based system
9055   lt_SP2NL='tr \100 \n'
9056   lt_NL2SP='tr \r\n \100\100'
9057   ;;
9058 esac
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9069 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9070 if ${lt_cv_to_host_file_cmd+:} false; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073   case $host in
9074   *-*-mingw* )
9075     case $build in
9076       *-*-mingw* ) # actually msys
9077         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9078         ;;
9079       *-*-cygwin* )
9080         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9081         ;;
9082       * ) # otherwise, assume *nix
9083         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9084         ;;
9085     esac
9086     ;;
9087   *-*-cygwin* )
9088     case $build in
9089       *-*-mingw* ) # actually msys
9090         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9091         ;;
9092       *-*-cygwin* )
9093         lt_cv_to_host_file_cmd=func_convert_file_noop
9094         ;;
9095       * ) # otherwise, assume *nix
9096         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9097         ;;
9098     esac
9099     ;;
9100   * ) # unhandled hosts (and "normal" native builds)
9101     lt_cv_to_host_file_cmd=func_convert_file_noop
9102     ;;
9103 esac
9104
9105 fi
9106
9107 to_host_file_cmd=$lt_cv_to_host_file_cmd
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9109 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9110
9111
9112
9113
9114
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9116 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9117 if ${lt_cv_to_tool_file_cmd+:} false; then :
9118   $as_echo_n "(cached) " >&6
9119 else
9120   #assume ordinary cross tools, or native build.
9121 lt_cv_to_tool_file_cmd=func_convert_file_noop
9122 case $host in
9123   *-*-mingw* )
9124     case $build in
9125       *-*-mingw* ) # actually msys
9126         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9127         ;;
9128     esac
9129     ;;
9130 esac
9131
9132 fi
9133
9134 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9136 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9137
9138
9139
9140
9141
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9143 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9144 if ${lt_cv_ld_reload_flag+:} false; then :
9145   $as_echo_n "(cached) " >&6
9146 else
9147   lt_cv_ld_reload_flag='-r'
9148 fi
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9150 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9151 reload_flag=$lt_cv_ld_reload_flag
9152 case $reload_flag in
9153 "" | " "*) ;;
9154 *) reload_flag=" $reload_flag" ;;
9155 esac
9156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9157 case $host_os in
9158   cygwin* | mingw* | pw32* | cegcc*)
9159     if test yes != "$GCC"; then
9160       reload_cmds=false
9161     fi
9162     ;;
9163   darwin*)
9164     if test yes = "$GCC"; then
9165       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9166     else
9167       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9168     fi
9169     ;;
9170 esac
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180 if test -n "$ac_tool_prefix"; then
9181   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9182 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9184 $as_echo_n "checking for $ac_word... " >&6; }
9185 if ${ac_cv_prog_OBJDUMP+:} false; then :
9186   $as_echo_n "(cached) " >&6
9187 else
9188   if test -n "$OBJDUMP"; then
9189   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9190 else
9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 for as_dir in $PATH
9193 do
9194   IFS=$as_save_IFS
9195   test -z "$as_dir" && as_dir=.
9196     for ac_exec_ext in '' $ac_executable_extensions; do
9197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9198     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9200     break 2
9201   fi
9202 done
9203   done
9204 IFS=$as_save_IFS
9205
9206 fi
9207 fi
9208 OBJDUMP=$ac_cv_prog_OBJDUMP
9209 if test -n "$OBJDUMP"; then
9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9211 $as_echo "$OBJDUMP" >&6; }
9212 else
9213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214 $as_echo "no" >&6; }
9215 fi
9216
9217
9218 fi
9219 if test -z "$ac_cv_prog_OBJDUMP"; then
9220   ac_ct_OBJDUMP=$OBJDUMP
9221   # Extract the first word of "objdump", so it can be a program name with args.
9222 set dummy objdump; ac_word=$2
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9224 $as_echo_n "checking for $ac_word... " >&6; }
9225 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9226   $as_echo_n "(cached) " >&6
9227 else
9228   if test -n "$ac_ct_OBJDUMP"; then
9229   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9230 else
9231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 for as_dir in $PATH
9233 do
9234   IFS=$as_save_IFS
9235   test -z "$as_dir" && as_dir=.
9236     for ac_exec_ext in '' $ac_executable_extensions; do
9237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9238     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9240     break 2
9241   fi
9242 done
9243   done
9244 IFS=$as_save_IFS
9245
9246 fi
9247 fi
9248 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9249 if test -n "$ac_ct_OBJDUMP"; then
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9251 $as_echo "$ac_ct_OBJDUMP" >&6; }
9252 else
9253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 $as_echo "no" >&6; }
9255 fi
9256
9257   if test "x$ac_ct_OBJDUMP" = x; then
9258     OBJDUMP="false"
9259   else
9260     case $cross_compiling:$ac_tool_warned in
9261 yes:)
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9264 ac_tool_warned=yes ;;
9265 esac
9266     OBJDUMP=$ac_ct_OBJDUMP
9267   fi
9268 else
9269   OBJDUMP="$ac_cv_prog_OBJDUMP"
9270 fi
9271
9272 test -z "$OBJDUMP" && OBJDUMP=objdump
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9283 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9284 if ${lt_cv_deplibs_check_method+:} false; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   lt_cv_file_magic_cmd='$MAGIC_CMD'
9288 lt_cv_file_magic_test_file=
9289 lt_cv_deplibs_check_method='unknown'
9290 # Need to set the preceding variable on all platforms that support
9291 # interlibrary dependencies.
9292 # 'none' -- dependencies not supported.
9293 # 'unknown' -- same as none, but documents that we really don't know.
9294 # 'pass_all' -- all dependencies passed with no checks.
9295 # 'test_compile' -- check by making test program.
9296 # 'file_magic [[regex]]' -- check by looking for files in library path
9297 # that responds to the $file_magic_cmd with a given extended regex.
9298 # If you have 'file' or equivalent on your system and you're not sure
9299 # whether 'pass_all' will *always* work, you probably want this one.
9300
9301 case $host_os in
9302 aix[4-9]*)
9303   lt_cv_deplibs_check_method=pass_all
9304   ;;
9305
9306 beos*)
9307   lt_cv_deplibs_check_method=pass_all
9308   ;;
9309
9310 bsdi[45]*)
9311   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9312   lt_cv_file_magic_cmd='/usr/bin/file -L'
9313   lt_cv_file_magic_test_file=/shlib/libc.so
9314   ;;
9315
9316 cygwin*)
9317   # func_win32_libid is a shell function defined in ltmain.sh
9318   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9319   lt_cv_file_magic_cmd='func_win32_libid'
9320   ;;
9321
9322 mingw* | pw32*)
9323   # Base MSYS/MinGW do not provide the 'file' command needed by
9324   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9325   # unless we find 'file', for example because we are cross-compiling.
9326   if ( file / ) >/dev/null 2>&1; then
9327     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9328     lt_cv_file_magic_cmd='func_win32_libid'
9329   else
9330     # Keep this pattern in sync with the one in func_win32_libid.
9331     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9332     lt_cv_file_magic_cmd='$OBJDUMP -f'
9333   fi
9334   ;;
9335
9336 cegcc*)
9337   # use the weaker test based on 'objdump'. See mingw*.
9338   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9339   lt_cv_file_magic_cmd='$OBJDUMP -f'
9340   ;;
9341
9342 darwin* | rhapsody*)
9343   lt_cv_deplibs_check_method=pass_all
9344   ;;
9345
9346 freebsd* | dragonfly*)
9347   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9348     case $host_cpu in
9349     i*86 )
9350       # Not sure whether the presence of OpenBSD here was a mistake.
9351       # Let's accept both of them until this is cleared up.
9352       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9353       lt_cv_file_magic_cmd=/usr/bin/file
9354       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9355       ;;
9356     esac
9357   else
9358     lt_cv_deplibs_check_method=pass_all
9359   fi
9360   ;;
9361
9362 haiku*)
9363   lt_cv_deplibs_check_method=pass_all
9364   ;;
9365
9366 hpux10.20* | hpux11*)
9367   lt_cv_file_magic_cmd=/usr/bin/file
9368   case $host_cpu in
9369   ia64*)
9370     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9371     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9372     ;;
9373   hppa*64*)
9374     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]'
9375     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9376     ;;
9377   *)
9378     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9379     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9380     ;;
9381   esac
9382   ;;
9383
9384 interix[3-9]*)
9385   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9386   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9387   ;;
9388
9389 irix5* | irix6* | nonstopux*)
9390   case $LD in
9391   *-32|*"-32 ") libmagic=32-bit;;
9392   *-n32|*"-n32 ") libmagic=N32;;
9393   *-64|*"-64 ") libmagic=64-bit;;
9394   *) libmagic=never-match;;
9395   esac
9396   lt_cv_deplibs_check_method=pass_all
9397   ;;
9398
9399 # This must be glibc/ELF.
9400 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9401   lt_cv_deplibs_check_method=pass_all
9402   ;;
9403
9404 netbsd* | netbsdelf*-gnu)
9405   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9406     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9407   else
9408     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9409   fi
9410   ;;
9411
9412 newos6*)
9413   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9414   lt_cv_file_magic_cmd=/usr/bin/file
9415   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9416   ;;
9417
9418 *nto* | *qnx*)
9419   lt_cv_deplibs_check_method=pass_all
9420   ;;
9421
9422 openbsd* | bitrig*)
9423   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9424     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9425   else
9426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9427   fi
9428   ;;
9429
9430 osf3* | osf4* | osf5*)
9431   lt_cv_deplibs_check_method=pass_all
9432   ;;
9433
9434 rdos*)
9435   lt_cv_deplibs_check_method=pass_all
9436   ;;
9437
9438 solaris*)
9439   lt_cv_deplibs_check_method=pass_all
9440   ;;
9441
9442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9443   lt_cv_deplibs_check_method=pass_all
9444   ;;
9445
9446 sysv4 | sysv4.3*)
9447   case $host_vendor in
9448   motorola)
9449     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]'
9450     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9451     ;;
9452   ncr)
9453     lt_cv_deplibs_check_method=pass_all
9454     ;;
9455   sequent)
9456     lt_cv_file_magic_cmd='/bin/file'
9457     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9458     ;;
9459   sni)
9460     lt_cv_file_magic_cmd='/bin/file'
9461     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9462     lt_cv_file_magic_test_file=/lib/libc.so
9463     ;;
9464   siemens)
9465     lt_cv_deplibs_check_method=pass_all
9466     ;;
9467   pc)
9468     lt_cv_deplibs_check_method=pass_all
9469     ;;
9470   esac
9471   ;;
9472
9473 tpf*)
9474   lt_cv_deplibs_check_method=pass_all
9475   ;;
9476 os2*)
9477   lt_cv_deplibs_check_method=pass_all
9478   ;;
9479 esac
9480
9481 fi
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9483 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9484
9485 file_magic_glob=
9486 want_nocaseglob=no
9487 if test "$build" = "$host"; then
9488   case $host_os in
9489   mingw* | pw32*)
9490     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9491       want_nocaseglob=yes
9492     else
9493       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9494     fi
9495     ;;
9496   esac
9497 fi
9498
9499 file_magic_cmd=$lt_cv_file_magic_cmd
9500 deplibs_check_method=$lt_cv_deplibs_check_method
9501 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524 if test -n "$ac_tool_prefix"; then
9525   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9526 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_prog_DLLTOOL+:} false; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   if test -n "$DLLTOOL"; then
9533   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9534 else
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 for as_dir in $PATH
9537 do
9538   IFS=$as_save_IFS
9539   test -z "$as_dir" && as_dir=.
9540     for ac_exec_ext in '' $ac_executable_extensions; do
9541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544     break 2
9545   fi
9546 done
9547   done
9548 IFS=$as_save_IFS
9549
9550 fi
9551 fi
9552 DLLTOOL=$ac_cv_prog_DLLTOOL
9553 if test -n "$DLLTOOL"; then
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9555 $as_echo "$DLLTOOL" >&6; }
9556 else
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9559 fi
9560
9561
9562 fi
9563 if test -z "$ac_cv_prog_DLLTOOL"; then
9564   ac_ct_DLLTOOL=$DLLTOOL
9565   # Extract the first word of "dlltool", so it can be a program name with args.
9566 set dummy dlltool; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9570   $as_echo_n "(cached) " >&6
9571 else
9572   if test -n "$ac_ct_DLLTOOL"; then
9573   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9574 else
9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576 for as_dir in $PATH
9577 do
9578   IFS=$as_save_IFS
9579   test -z "$as_dir" && as_dir=.
9580     for ac_exec_ext in '' $ac_executable_extensions; do
9581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584     break 2
9585   fi
9586 done
9587   done
9588 IFS=$as_save_IFS
9589
9590 fi
9591 fi
9592 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9593 if test -n "$ac_ct_DLLTOOL"; then
9594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9595 $as_echo "$ac_ct_DLLTOOL" >&6; }
9596 else
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9599 fi
9600
9601   if test "x$ac_ct_DLLTOOL" = x; then
9602     DLLTOOL="false"
9603   else
9604     case $cross_compiling:$ac_tool_warned in
9605 yes:)
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9608 ac_tool_warned=yes ;;
9609 esac
9610     DLLTOOL=$ac_ct_DLLTOOL
9611   fi
9612 else
9613   DLLTOOL="$ac_cv_prog_DLLTOOL"
9614 fi
9615
9616 test -z "$DLLTOOL" && DLLTOOL=dlltool
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9628 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9629 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9630   $as_echo_n "(cached) " >&6
9631 else
9632   lt_cv_sharedlib_from_linklib_cmd='unknown'
9633
9634 case $host_os in
9635 cygwin* | mingw* | pw32* | cegcc*)
9636   # two different shell functions defined in ltmain.sh;
9637   # decide which one to use based on capabilities of $DLLTOOL
9638   case `$DLLTOOL --help 2>&1` in
9639   *--identify-strict*)
9640     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9641     ;;
9642   *)
9643     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9644     ;;
9645   esac
9646   ;;
9647 *)
9648   # fallback: assume linklib IS sharedlib
9649   lt_cv_sharedlib_from_linklib_cmd=$ECHO
9650   ;;
9651 esac
9652
9653 fi
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9655 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9656 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9657 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9658
9659
9660
9661
9662
9663
9664
9665 if test -n "$ac_tool_prefix"; then
9666   for ac_prog in ar
9667   do
9668     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if ${ac_cv_prog_AR+:} false; then :
9673   $as_echo_n "(cached) " >&6
9674 else
9675   if test -n "$AR"; then
9676   ac_cv_prog_AR="$AR" # Let the user override the test.
9677 else
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9680 do
9681   IFS=$as_save_IFS
9682   test -z "$as_dir" && as_dir=.
9683     for ac_exec_ext in '' $ac_executable_extensions; do
9684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9685     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687     break 2
9688   fi
9689 done
9690   done
9691 IFS=$as_save_IFS
9692
9693 fi
9694 fi
9695 AR=$ac_cv_prog_AR
9696 if test -n "$AR"; then
9697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9698 $as_echo "$AR" >&6; }
9699 else
9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9702 fi
9703
9704
9705     test -n "$AR" && break
9706   done
9707 fi
9708 if test -z "$AR"; then
9709   ac_ct_AR=$AR
9710   for ac_prog in ar
9711 do
9712   # Extract the first word of "$ac_prog", so it can be a program name with args.
9713 set dummy $ac_prog; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9717   $as_echo_n "(cached) " >&6
9718 else
9719   if test -n "$ac_ct_AR"; then
9720   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9721 else
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9724 do
9725   IFS=$as_save_IFS
9726   test -z "$as_dir" && as_dir=.
9727     for ac_exec_ext in '' $ac_executable_extensions; do
9728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9729     ac_cv_prog_ac_ct_AR="$ac_prog"
9730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731     break 2
9732   fi
9733 done
9734   done
9735 IFS=$as_save_IFS
9736
9737 fi
9738 fi
9739 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9740 if test -n "$ac_ct_AR"; then
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9742 $as_echo "$ac_ct_AR" >&6; }
9743 else
9744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9746 fi
9747
9748
9749   test -n "$ac_ct_AR" && break
9750 done
9751
9752   if test "x$ac_ct_AR" = x; then
9753     AR="false"
9754   else
9755     case $cross_compiling:$ac_tool_warned in
9756 yes:)
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9759 ac_tool_warned=yes ;;
9760 esac
9761     AR=$ac_ct_AR
9762   fi
9763 fi
9764
9765 : ${AR=ar}
9766 : ${AR_FLAGS=cru}
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9779 $as_echo_n "checking for archiver @FILE support... " >&6; }
9780 if ${lt_cv_ar_at_file+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   lt_cv_ar_at_file=no
9784    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h.  */
9786
9787 int
9788 main ()
9789 {
9790
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 if ac_fn_c_try_compile "$LINENO"; then :
9796   echo conftest.$ac_objext > conftest.lst
9797       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9798       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9799   (eval $lt_ar_try) 2>&5
9800   ac_status=$?
9801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802   test $ac_status = 0; }
9803       if test 0 -eq "$ac_status"; then
9804         # Ensure the archiver fails upon bogus file names.
9805         rm -f conftest.$ac_objext libconftest.a
9806         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9807   (eval $lt_ar_try) 2>&5
9808   ac_status=$?
9809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9810   test $ac_status = 0; }
9811         if test 0 -ne "$ac_status"; then
9812           lt_cv_ar_at_file=@
9813         fi
9814       fi
9815       rm -f conftest.* libconftest.a
9816
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9822 $as_echo "$lt_cv_ar_at_file" >&6; }
9823
9824 if test no = "$lt_cv_ar_at_file"; then
9825   archiver_list_spec=
9826 else
9827   archiver_list_spec=$lt_cv_ar_at_file
9828 fi
9829
9830
9831
9832
9833
9834
9835
9836 if test -n "$ac_tool_prefix"; then
9837   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9838 set dummy ${ac_tool_prefix}strip; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if ${ac_cv_prog_STRIP+:} false; then :
9842   $as_echo_n "(cached) " >&6
9843 else
9844   if test -n "$STRIP"; then
9845   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9846 else
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in $PATH
9849 do
9850   IFS=$as_save_IFS
9851   test -z "$as_dir" && as_dir=.
9852     for ac_exec_ext in '' $ac_executable_extensions; do
9853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856     break 2
9857   fi
9858 done
9859   done
9860 IFS=$as_save_IFS
9861
9862 fi
9863 fi
9864 STRIP=$ac_cv_prog_STRIP
9865 if test -n "$STRIP"; then
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9867 $as_echo "$STRIP" >&6; }
9868 else
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9871 fi
9872
9873
9874 fi
9875 if test -z "$ac_cv_prog_STRIP"; then
9876   ac_ct_STRIP=$STRIP
9877   # Extract the first word of "strip", so it can be a program name with args.
9878 set dummy strip; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9882   $as_echo_n "(cached) " >&6
9883 else
9884   if test -n "$ac_ct_STRIP"; then
9885   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9886 else
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888 for as_dir in $PATH
9889 do
9890   IFS=$as_save_IFS
9891   test -z "$as_dir" && as_dir=.
9892     for ac_exec_ext in '' $ac_executable_extensions; do
9893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9894     ac_cv_prog_ac_ct_STRIP="strip"
9895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896     break 2
9897   fi
9898 done
9899   done
9900 IFS=$as_save_IFS
9901
9902 fi
9903 fi
9904 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9905 if test -n "$ac_ct_STRIP"; then
9906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9907 $as_echo "$ac_ct_STRIP" >&6; }
9908 else
9909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9911 fi
9912
9913   if test "x$ac_ct_STRIP" = x; then
9914     STRIP=":"
9915   else
9916     case $cross_compiling:$ac_tool_warned in
9917 yes:)
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9920 ac_tool_warned=yes ;;
9921 esac
9922     STRIP=$ac_ct_STRIP
9923   fi
9924 else
9925   STRIP="$ac_cv_prog_STRIP"
9926 fi
9927
9928 test -z "$STRIP" && STRIP=:
9929
9930
9931
9932
9933
9934
9935 if test -n "$ac_tool_prefix"; then
9936   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9937 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if ${ac_cv_prog_RANLIB+:} false; then :
9941   $as_echo_n "(cached) " >&6
9942 else
9943   if test -n "$RANLIB"; then
9944   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9945 else
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9948 do
9949   IFS=$as_save_IFS
9950   test -z "$as_dir" && as_dir=.
9951     for ac_exec_ext in '' $ac_executable_extensions; do
9952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9953     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955     break 2
9956   fi
9957 done
9958   done
9959 IFS=$as_save_IFS
9960
9961 fi
9962 fi
9963 RANLIB=$ac_cv_prog_RANLIB
9964 if test -n "$RANLIB"; then
9965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9966 $as_echo "$RANLIB" >&6; }
9967 else
9968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9970 fi
9971
9972
9973 fi
9974 if test -z "$ac_cv_prog_RANLIB"; then
9975   ac_ct_RANLIB=$RANLIB
9976   # Extract the first word of "ranlib", so it can be a program name with args.
9977 set dummy ranlib; ac_word=$2
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979 $as_echo_n "checking for $ac_word... " >&6; }
9980 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9981   $as_echo_n "(cached) " >&6
9982 else
9983   if test -n "$ac_ct_RANLIB"; then
9984   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9985 else
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987 for as_dir in $PATH
9988 do
9989   IFS=$as_save_IFS
9990   test -z "$as_dir" && as_dir=.
9991     for ac_exec_ext in '' $ac_executable_extensions; do
9992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9993     ac_cv_prog_ac_ct_RANLIB="ranlib"
9994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995     break 2
9996   fi
9997 done
9998   done
9999 IFS=$as_save_IFS
10000
10001 fi
10002 fi
10003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10004 if test -n "$ac_ct_RANLIB"; then
10005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10006 $as_echo "$ac_ct_RANLIB" >&6; }
10007 else
10008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 $as_echo "no" >&6; }
10010 fi
10011
10012   if test "x$ac_ct_RANLIB" = x; then
10013     RANLIB=":"
10014   else
10015     case $cross_compiling:$ac_tool_warned in
10016 yes:)
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10019 ac_tool_warned=yes ;;
10020 esac
10021     RANLIB=$ac_ct_RANLIB
10022   fi
10023 else
10024   RANLIB="$ac_cv_prog_RANLIB"
10025 fi
10026
10027 test -z "$RANLIB" && RANLIB=:
10028
10029
10030
10031
10032
10033
10034 # Determine commands to create old-style static archives.
10035 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10036 old_postinstall_cmds='chmod 644 $oldlib'
10037 old_postuninstall_cmds=
10038
10039 if test -n "$RANLIB"; then
10040   case $host_os in
10041   bitrig* | openbsd*)
10042     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10043     ;;
10044   *)
10045     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10046     ;;
10047   esac
10048   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10049 fi
10050
10051 case $host_os in
10052   darwin*)
10053     lock_old_archive_extraction=yes ;;
10054   *)
10055     lock_old_archive_extraction=no ;;
10056 esac
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096 # If no C compiler was specified, use CC.
10097 LTCC=${LTCC-"$CC"}
10098
10099 # If no C compiler flags were specified, use CFLAGS.
10100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10101
10102 # Allow CC to be a program name with arguments.
10103 compiler=$CC
10104
10105
10106 # Check for command to grab the raw symbol name followed by C symbol from nm.
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10108 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10109 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10110   $as_echo_n "(cached) " >&6
10111 else
10112
10113 # These are sane defaults that work on at least a few old systems.
10114 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10115
10116 # Character class describing NM global symbol codes.
10117 symcode='[BCDEGRST]'
10118
10119 # Regexp to match symbols that can be accessed directly from C.
10120 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10121
10122 # Define system-specific variables.
10123 case $host_os in
10124 aix*)
10125   symcode='[BCDT]'
10126   ;;
10127 cygwin* | mingw* | pw32* | cegcc*)
10128   symcode='[ABCDGISTW]'
10129   ;;
10130 hpux*)
10131   if test ia64 = "$host_cpu"; then
10132     symcode='[ABCDEGRST]'
10133   fi
10134   ;;
10135 irix* | nonstopux*)
10136   symcode='[BCDEGRST]'
10137   ;;
10138 osf*)
10139   symcode='[BCDEGQRST]'
10140   ;;
10141 solaris*)
10142   symcode='[BDRT]'
10143   ;;
10144 sco3.2v5*)
10145   symcode='[DT]'
10146   ;;
10147 sysv4.2uw2*)
10148   symcode='[DT]'
10149   ;;
10150 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10151   symcode='[ABDT]'
10152   ;;
10153 sysv4)
10154   symcode='[DFNSTU]'
10155   ;;
10156 esac
10157
10158 # If we're using GNU nm, then use its standard symbol codes.
10159 case `$NM -V 2>&1` in
10160 *GNU* | *'with BFD'*)
10161   symcode='[ABCDGIRSTW]' ;;
10162 esac
10163
10164 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10165   # Gets list of data symbols to import.
10166   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10167   # Adjust the below global symbol transforms to fixup imported variables.
10168   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10169   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10170   lt_c_name_lib_hook="\
10171   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10172   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10173 else
10174   # Disable hooks by default.
10175   lt_cv_sys_global_symbol_to_import=
10176   lt_cdecl_hook=
10177   lt_c_name_hook=
10178   lt_c_name_lib_hook=
10179 fi
10180
10181 # Transform an extracted symbol line into a proper C declaration.
10182 # Some systems (esp. on ia64) link data and code symbols differently,
10183 # so use this general approach.
10184 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10185 $lt_cdecl_hook\
10186 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10187 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10188
10189 # Transform an extracted symbol line into symbol name and symbol address
10190 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10191 $lt_c_name_hook\
10192 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10193 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10194
10195 # Transform an extracted symbol line into symbol name with lib prefix and
10196 # symbol address.
10197 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10198 $lt_c_name_lib_hook\
10199 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10200 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10201 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10202
10203 # Handle CRLF in mingw tool chain
10204 opt_cr=
10205 case $build_os in
10206 mingw*)
10207   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10208   ;;
10209 esac
10210
10211 # Try without a prefix underscore, then with it.
10212 for ac_symprfx in "" "_"; do
10213
10214   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10215   symxfrm="\\1 $ac_symprfx\\2 \\2"
10216
10217   # Write the raw and C identifiers.
10218   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10219     # Fake it for dumpbin and say T for any non-static function,
10220     # D for any global variable and I for any imported variable.
10221     # Also find C++ and __fastcall symbols from MSVC++,
10222     # which start with @ or ?.
10223     lt_cv_sys_global_symbol_pipe="$AWK '"\
10224 "     {last_section=section; section=\$ 3};"\
10225 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10226 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10227 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10228 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10229 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10230 "     \$ 0!~/External *\|/{next};"\
10231 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10232 "     {if(hide[section]) next};"\
10233 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10234 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10235 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10236 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10237 "     ' prfx=^$ac_symprfx"
10238   else
10239     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10240   fi
10241   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10242
10243   # Check to see that the pipe works correctly.
10244   pipe_works=no
10245
10246   rm -f conftest*
10247   cat > conftest.$ac_ext <<_LT_EOF
10248 #ifdef __cplusplus
10249 extern "C" {
10250 #endif
10251 char nm_test_var;
10252 void nm_test_func(void);
10253 void nm_test_func(void){}
10254 #ifdef __cplusplus
10255 }
10256 #endif
10257 int main(){nm_test_var='a';nm_test_func();return(0);}
10258 _LT_EOF
10259
10260   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10261   (eval $ac_compile) 2>&5
10262   ac_status=$?
10263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10264   test $ac_status = 0; }; then
10265     # Now try to grab the symbols.
10266     nlist=conftest.nm
10267     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10268     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10269       # Try sorting and uniquifying the output.
10270       if sort "$nlist" | uniq > "$nlist"T; then
10271         mv -f "$nlist"T "$nlist"
10272       else
10273         rm -f "$nlist"T
10274       fi
10275
10276       # Make sure that we snagged all the symbols we need.
10277       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10278         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10279           cat <<_LT_EOF > conftest.$ac_ext
10280 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10281 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10282 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10283    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10284 # define LT_DLSYM_CONST
10285 #elif defined __osf__
10286 /* This system does not cope well with relocations in const data.  */
10287 # define LT_DLSYM_CONST
10288 #else
10289 # define LT_DLSYM_CONST const
10290 #endif
10291
10292 #ifdef __cplusplus
10293 extern "C" {
10294 #endif
10295
10296 _LT_EOF
10297           # Now generate the symbol file.
10298           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10299
10300           cat <<_LT_EOF >> conftest.$ac_ext
10301
10302 /* The mapping between symbol names and symbols.  */
10303 LT_DLSYM_CONST struct {
10304   const char *name;
10305   void       *address;
10306 }
10307 lt__PROGRAM__LTX_preloaded_symbols[] =
10308 {
10309   { "@PROGRAM@", (void *) 0 },
10310 _LT_EOF
10311           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10312           cat <<\_LT_EOF >> conftest.$ac_ext
10313   {0, (void *) 0}
10314 };
10315
10316 /* This works around a problem in FreeBSD linker */
10317 #ifdef FREEBSD_WORKAROUND
10318 static const void *lt_preloaded_setup() {
10319   return lt__PROGRAM__LTX_preloaded_symbols;
10320 }
10321 #endif
10322
10323 #ifdef __cplusplus
10324 }
10325 #endif
10326 _LT_EOF
10327           # Now try linking the two files.
10328           mv conftest.$ac_objext conftstm.$ac_objext
10329           lt_globsym_save_LIBS=$LIBS
10330           lt_globsym_save_CFLAGS=$CFLAGS
10331           LIBS=conftstm.$ac_objext
10332           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10333           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10334   (eval $ac_link) 2>&5
10335   ac_status=$?
10336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10338             pipe_works=yes
10339           fi
10340           LIBS=$lt_globsym_save_LIBS
10341           CFLAGS=$lt_globsym_save_CFLAGS
10342         else
10343           echo "cannot find nm_test_func in $nlist" >&5
10344         fi
10345       else
10346         echo "cannot find nm_test_var in $nlist" >&5
10347       fi
10348     else
10349       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10350     fi
10351   else
10352     echo "$progname: failed program was:" >&5
10353     cat conftest.$ac_ext >&5
10354   fi
10355   rm -rf conftest* conftst*
10356
10357   # Do not use the global_symbol_pipe unless it works.
10358   if test yes = "$pipe_works"; then
10359     break
10360   else
10361     lt_cv_sys_global_symbol_pipe=
10362   fi
10363 done
10364
10365 fi
10366
10367 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10368   lt_cv_sys_global_symbol_to_cdecl=
10369 fi
10370 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10372 $as_echo "failed" >&6; }
10373 else
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10375 $as_echo "ok" >&6; }
10376 fi
10377
10378 # Response file support.
10379 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10380   nm_file_list_spec='@'
10381 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10382   nm_file_list_spec='@'
10383 fi
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10422 $as_echo_n "checking for sysroot... " >&6; }
10423
10424 # Check whether --with-sysroot was given.
10425 if test "${with_sysroot+set}" = set; then :
10426   withval=$with_sysroot;
10427 else
10428   with_sysroot=no
10429 fi
10430
10431
10432 lt_sysroot=
10433 case $with_sysroot in #(
10434  yes)
10435    if test yes = "$GCC"; then
10436      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10437    fi
10438    ;; #(
10439  /*)
10440    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10441    ;; #(
10442  no|'')
10443    ;; #(
10444  *)
10445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10446 $as_echo "$with_sysroot" >&6; }
10447    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10448    ;;
10449 esac
10450
10451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10452 $as_echo "${lt_sysroot:-no}" >&6; }
10453
10454
10455
10456
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10459 $as_echo_n "checking for a working dd... " >&6; }
10460 if ${ac_cv_path_lt_DD+:} false; then :
10461   $as_echo_n "(cached) " >&6
10462 else
10463   printf 0123456789abcdef0123456789abcdef >conftest.i
10464 cat conftest.i conftest.i >conftest2.i
10465 : ${lt_DD:=$DD}
10466 if test -z "$lt_DD"; then
10467   ac_path_lt_DD_found=false
10468   # Loop through the user's path and test for each of PROGNAME-LIST
10469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10471 do
10472   IFS=$as_save_IFS
10473   test -z "$as_dir" && as_dir=.
10474     for ac_prog in dd; do
10475     for ac_exec_ext in '' $ac_executable_extensions; do
10476       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10477       as_fn_executable_p "$ac_path_lt_DD" || continue
10478 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10479   cmp -s conftest.i conftest.out \
10480   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10481 fi
10482       $ac_path_lt_DD_found && break 3
10483     done
10484   done
10485   done
10486 IFS=$as_save_IFS
10487   if test -z "$ac_cv_path_lt_DD"; then
10488     :
10489   fi
10490 else
10491   ac_cv_path_lt_DD=$lt_DD
10492 fi
10493
10494 rm -f conftest.i conftest2.i conftest.out
10495 fi
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10497 $as_echo "$ac_cv_path_lt_DD" >&6; }
10498
10499
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10501 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10502 if ${lt_cv_truncate_bin+:} false; then :
10503   $as_echo_n "(cached) " >&6
10504 else
10505   printf 0123456789abcdef0123456789abcdef >conftest.i
10506 cat conftest.i conftest.i >conftest2.i
10507 lt_cv_truncate_bin=
10508 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10509   cmp -s conftest.i conftest.out \
10510   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10511 fi
10512 rm -f conftest.i conftest2.i conftest.out
10513 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10514 fi
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10516 $as_echo "$lt_cv_truncate_bin" >&6; }
10517
10518
10519
10520
10521
10522
10523
10524 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10525 func_cc_basename ()
10526 {
10527     for cc_temp in $*""; do
10528       case $cc_temp in
10529         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10530         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10531         \-*) ;;
10532         *) break;;
10533       esac
10534     done
10535     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10536 }
10537
10538 # Check whether --enable-libtool-lock was given.
10539 if test "${enable_libtool_lock+set}" = set; then :
10540   enableval=$enable_libtool_lock;
10541 fi
10542
10543 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10544
10545 # Some flags need to be propagated to the compiler or linker for good
10546 # libtool support.
10547 case $host in
10548 ia64-*-hpux*)
10549   # Find out what ABI is being produced by ac_compile, and set mode
10550   # options accordingly.
10551   echo 'int i;' > conftest.$ac_ext
10552   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10553   (eval $ac_compile) 2>&5
10554   ac_status=$?
10555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10556   test $ac_status = 0; }; then
10557     case `/usr/bin/file conftest.$ac_objext` in
10558       *ELF-32*)
10559         HPUX_IA64_MODE=32
10560         ;;
10561       *ELF-64*)
10562         HPUX_IA64_MODE=64
10563         ;;
10564     esac
10565   fi
10566   rm -rf conftest*
10567   ;;
10568 *-*-irix6*)
10569   # Find out what ABI is being produced by ac_compile, and set linker
10570   # options accordingly.
10571   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10573   (eval $ac_compile) 2>&5
10574   ac_status=$?
10575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10576   test $ac_status = 0; }; then
10577     if test yes = "$lt_cv_prog_gnu_ld"; then
10578       case `/usr/bin/file conftest.$ac_objext` in
10579         *32-bit*)
10580           LD="${LD-ld} -melf32bsmip"
10581           ;;
10582         *N32*)
10583           LD="${LD-ld} -melf32bmipn32"
10584           ;;
10585         *64-bit*)
10586           LD="${LD-ld} -melf64bmip"
10587         ;;
10588       esac
10589     else
10590       case `/usr/bin/file conftest.$ac_objext` in
10591         *32-bit*)
10592           LD="${LD-ld} -32"
10593           ;;
10594         *N32*)
10595           LD="${LD-ld} -n32"
10596           ;;
10597         *64-bit*)
10598           LD="${LD-ld} -64"
10599           ;;
10600       esac
10601     fi
10602   fi
10603   rm -rf conftest*
10604   ;;
10605
10606 mips64*-*linux*)
10607   # Find out what ABI is being produced by ac_compile, and set linker
10608   # options accordingly.
10609   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10610   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10611   (eval $ac_compile) 2>&5
10612   ac_status=$?
10613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10614   test $ac_status = 0; }; then
10615     emul=elf
10616     case `/usr/bin/file conftest.$ac_objext` in
10617       *32-bit*)
10618         emul="${emul}32"
10619         ;;
10620       *64-bit*)
10621         emul="${emul}64"
10622         ;;
10623     esac
10624     case `/usr/bin/file conftest.$ac_objext` in
10625       *MSB*)
10626         emul="${emul}btsmip"
10627         ;;
10628       *LSB*)
10629         emul="${emul}ltsmip"
10630         ;;
10631     esac
10632     case `/usr/bin/file conftest.$ac_objext` in
10633       *N32*)
10634         emul="${emul}n32"
10635         ;;
10636     esac
10637     LD="${LD-ld} -m $emul"
10638   fi
10639   rm -rf conftest*
10640   ;;
10641
10642 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10643 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10644   # Find out what ABI is being produced by ac_compile, and set linker
10645   # options accordingly.  Note that the listed cases only cover the
10646   # situations where additional linker options are needed (such as when
10647   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10648   # vice versa); the common cases where no linker options are needed do
10649   # not appear in the list.
10650   echo 'int i;' > conftest.$ac_ext
10651   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10652   (eval $ac_compile) 2>&5
10653   ac_status=$?
10654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10655   test $ac_status = 0; }; then
10656     case `/usr/bin/file conftest.o` in
10657       *32-bit*)
10658         case $host in
10659           x86_64-*kfreebsd*-gnu)
10660             LD="${LD-ld} -m elf_i386_fbsd"
10661             ;;
10662           x86_64-*linux*)
10663             case `/usr/bin/file conftest.o` in
10664               *x86-64*)
10665                 LD="${LD-ld} -m elf32_x86_64"
10666                 ;;
10667               *)
10668                 LD="${LD-ld} -m elf_i386"
10669                 ;;
10670             esac
10671             ;;
10672           powerpc64le-*linux*)
10673             LD="${LD-ld} -m elf32lppclinux"
10674             ;;
10675           powerpc64-*linux*)
10676             LD="${LD-ld} -m elf32ppclinux"
10677             ;;
10678           s390x-*linux*)
10679             LD="${LD-ld} -m elf_s390"
10680             ;;
10681           sparc64-*linux*)
10682             LD="${LD-ld} -m elf32_sparc"
10683             ;;
10684         esac
10685         ;;
10686       *64-bit*)
10687         case $host in
10688           x86_64-*kfreebsd*-gnu)
10689             LD="${LD-ld} -m elf_x86_64_fbsd"
10690             ;;
10691           x86_64-*linux*)
10692             LD="${LD-ld} -m elf_x86_64"
10693             ;;
10694           powerpcle-*linux*)
10695             LD="${LD-ld} -m elf64lppc"
10696             ;;
10697           powerpc-*linux*)
10698             LD="${LD-ld} -m elf64ppc"
10699             ;;
10700           s390*-*linux*|s390*-*tpf*)
10701             LD="${LD-ld} -m elf64_s390"
10702             ;;
10703           sparc*-*linux*)
10704             LD="${LD-ld} -m elf64_sparc"
10705             ;;
10706         esac
10707         ;;
10708     esac
10709   fi
10710   rm -rf conftest*
10711   ;;
10712
10713 *-*-sco3.2v5*)
10714   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10715   SAVE_CFLAGS=$CFLAGS
10716   CFLAGS="$CFLAGS -belf"
10717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10718 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10719 if ${lt_cv_cc_needs_belf+:} false; then :
10720   $as_echo_n "(cached) " >&6
10721 else
10722   ac_ext=c
10723 ac_cpp='$CPP $CPPFLAGS'
10724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10727
10728      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h.  */
10730
10731 int
10732 main ()
10733 {
10734
10735   ;
10736   return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740   lt_cv_cc_needs_belf=yes
10741 else
10742   lt_cv_cc_needs_belf=no
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext \
10745     conftest$ac_exeext conftest.$ac_ext
10746      ac_ext=c
10747 ac_cpp='$CPP $CPPFLAGS'
10748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10751
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10754 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10755   if test yes != "$lt_cv_cc_needs_belf"; then
10756     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10757     CFLAGS=$SAVE_CFLAGS
10758   fi
10759   ;;
10760 *-*solaris*)
10761   # Find out what ABI is being produced by ac_compile, and set linker
10762   # options accordingly.
10763   echo 'int i;' > conftest.$ac_ext
10764   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10765   (eval $ac_compile) 2>&5
10766   ac_status=$?
10767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10768   test $ac_status = 0; }; then
10769     case `/usr/bin/file conftest.o` in
10770     *64-bit*)
10771       case $lt_cv_prog_gnu_ld in
10772       yes*)
10773         case $host in
10774         i?86-*-solaris*|x86_64-*-solaris*)
10775           LD="${LD-ld} -m elf_x86_64"
10776           ;;
10777         sparc*-*-solaris*)
10778           LD="${LD-ld} -m elf64_sparc"
10779           ;;
10780         esac
10781         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10782         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10783           LD=${LD-ld}_sol2
10784         fi
10785         ;;
10786       *)
10787         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10788           LD="${LD-ld} -64"
10789         fi
10790         ;;
10791       esac
10792       ;;
10793     esac
10794   fi
10795   rm -rf conftest*
10796   ;;
10797 esac
10798
10799 need_locks=$enable_libtool_lock
10800
10801 if test -n "$ac_tool_prefix"; then
10802   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10803 set dummy ${ac_tool_prefix}mt; ac_word=$2
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10805 $as_echo_n "checking for $ac_word... " >&6; }
10806 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10807   $as_echo_n "(cached) " >&6
10808 else
10809   if test -n "$MANIFEST_TOOL"; then
10810   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10811 else
10812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813 for as_dir in $PATH
10814 do
10815   IFS=$as_save_IFS
10816   test -z "$as_dir" && as_dir=.
10817     for ac_exec_ext in '' $ac_executable_extensions; do
10818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10819     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10821     break 2
10822   fi
10823 done
10824   done
10825 IFS=$as_save_IFS
10826
10827 fi
10828 fi
10829 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10830 if test -n "$MANIFEST_TOOL"; then
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10832 $as_echo "$MANIFEST_TOOL" >&6; }
10833 else
10834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10836 fi
10837
10838
10839 fi
10840 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10841   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10842   # Extract the first word of "mt", so it can be a program name with args.
10843 set dummy mt; ac_word=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10847   $as_echo_n "(cached) " >&6
10848 else
10849   if test -n "$ac_ct_MANIFEST_TOOL"; then
10850   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10851 else
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10854 do
10855   IFS=$as_save_IFS
10856   test -z "$as_dir" && as_dir=.
10857     for ac_exec_ext in '' $ac_executable_extensions; do
10858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861     break 2
10862   fi
10863 done
10864   done
10865 IFS=$as_save_IFS
10866
10867 fi
10868 fi
10869 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10870 if test -n "$ac_ct_MANIFEST_TOOL"; then
10871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10872 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10873 else
10874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10876 fi
10877
10878   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10879     MANIFEST_TOOL=":"
10880   else
10881     case $cross_compiling:$ac_tool_warned in
10882 yes:)
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10885 ac_tool_warned=yes ;;
10886 esac
10887     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10888   fi
10889 else
10890   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10891 fi
10892
10893 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10895 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10896 if ${lt_cv_path_mainfest_tool+:} false; then :
10897   $as_echo_n "(cached) " >&6
10898 else
10899   lt_cv_path_mainfest_tool=no
10900   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10901   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10902   cat conftest.err >&5
10903   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10904     lt_cv_path_mainfest_tool=yes
10905   fi
10906   rm -f conftest*
10907 fi
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10909 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10910 if test yes != "$lt_cv_path_mainfest_tool"; then
10911   MANIFEST_TOOL=:
10912 fi
10913
10914
10915
10916
10917
10918
10919   case $host_os in
10920     rhapsody* | darwin*)
10921     if test -n "$ac_tool_prefix"; then
10922   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10923 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10927   $as_echo_n "(cached) " >&6
10928 else
10929   if test -n "$DSYMUTIL"; then
10930   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10931 else
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10934 do
10935   IFS=$as_save_IFS
10936   test -z "$as_dir" && as_dir=.
10937     for ac_exec_ext in '' $ac_executable_extensions; do
10938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10939     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10941     break 2
10942   fi
10943 done
10944   done
10945 IFS=$as_save_IFS
10946
10947 fi
10948 fi
10949 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10950 if test -n "$DSYMUTIL"; then
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10952 $as_echo "$DSYMUTIL" >&6; }
10953 else
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 fi
10957
10958
10959 fi
10960 if test -z "$ac_cv_prog_DSYMUTIL"; then
10961   ac_ct_DSYMUTIL=$DSYMUTIL
10962   # Extract the first word of "dsymutil", so it can be a program name with args.
10963 set dummy dsymutil; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10967   $as_echo_n "(cached) " >&6
10968 else
10969   if test -n "$ac_ct_DSYMUTIL"; then
10970   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10971 else
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10974 do
10975   IFS=$as_save_IFS
10976   test -z "$as_dir" && as_dir=.
10977     for ac_exec_ext in '' $ac_executable_extensions; do
10978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981     break 2
10982   fi
10983 done
10984   done
10985 IFS=$as_save_IFS
10986
10987 fi
10988 fi
10989 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10990 if test -n "$ac_ct_DSYMUTIL"; then
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10992 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10993 else
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10996 fi
10997
10998   if test "x$ac_ct_DSYMUTIL" = x; then
10999     DSYMUTIL=":"
11000   else
11001     case $cross_compiling:$ac_tool_warned in
11002 yes:)
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11005 ac_tool_warned=yes ;;
11006 esac
11007     DSYMUTIL=$ac_ct_DSYMUTIL
11008   fi
11009 else
11010   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11011 fi
11012
11013     if test -n "$ac_tool_prefix"; then
11014   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11015 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_prog_NMEDIT+:} false; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   if test -n "$NMEDIT"; then
11022   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11023 else
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11026 do
11027   IFS=$as_save_IFS
11028   test -z "$as_dir" && as_dir=.
11029     for ac_exec_ext in '' $ac_executable_extensions; do
11030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11031     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033     break 2
11034   fi
11035 done
11036   done
11037 IFS=$as_save_IFS
11038
11039 fi
11040 fi
11041 NMEDIT=$ac_cv_prog_NMEDIT
11042 if test -n "$NMEDIT"; then
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11044 $as_echo "$NMEDIT" >&6; }
11045 else
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048 fi
11049
11050
11051 fi
11052 if test -z "$ac_cv_prog_NMEDIT"; then
11053   ac_ct_NMEDIT=$NMEDIT
11054   # Extract the first word of "nmedit", so it can be a program name with args.
11055 set dummy nmedit; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11059   $as_echo_n "(cached) " >&6
11060 else
11061   if test -n "$ac_ct_NMEDIT"; then
11062   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11063 else
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11066 do
11067   IFS=$as_save_IFS
11068   test -z "$as_dir" && as_dir=.
11069     for ac_exec_ext in '' $ac_executable_extensions; do
11070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11071     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073     break 2
11074   fi
11075 done
11076   done
11077 IFS=$as_save_IFS
11078
11079 fi
11080 fi
11081 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11082 if test -n "$ac_ct_NMEDIT"; then
11083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11084 $as_echo "$ac_ct_NMEDIT" >&6; }
11085 else
11086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11088 fi
11089
11090   if test "x$ac_ct_NMEDIT" = x; then
11091     NMEDIT=":"
11092   else
11093     case $cross_compiling:$ac_tool_warned in
11094 yes:)
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11097 ac_tool_warned=yes ;;
11098 esac
11099     NMEDIT=$ac_ct_NMEDIT
11100   fi
11101 else
11102   NMEDIT="$ac_cv_prog_NMEDIT"
11103 fi
11104
11105     if test -n "$ac_tool_prefix"; then
11106   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11107 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_prog_LIPO+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   if test -n "$LIPO"; then
11114   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11115 else
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119   IFS=$as_save_IFS
11120   test -z "$as_dir" && as_dir=.
11121     for ac_exec_ext in '' $ac_executable_extensions; do
11122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125     break 2
11126   fi
11127 done
11128   done
11129 IFS=$as_save_IFS
11130
11131 fi
11132 fi
11133 LIPO=$ac_cv_prog_LIPO
11134 if test -n "$LIPO"; then
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11136 $as_echo "$LIPO" >&6; }
11137 else
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11140 fi
11141
11142
11143 fi
11144 if test -z "$ac_cv_prog_LIPO"; then
11145   ac_ct_LIPO=$LIPO
11146   # Extract the first word of "lipo", so it can be a program name with args.
11147 set dummy lipo; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153   if test -n "$ac_ct_LIPO"; then
11154   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11155 else
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11158 do
11159   IFS=$as_save_IFS
11160   test -z "$as_dir" && as_dir=.
11161     for ac_exec_ext in '' $ac_executable_extensions; do
11162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11163     ac_cv_prog_ac_ct_LIPO="lipo"
11164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165     break 2
11166   fi
11167 done
11168   done
11169 IFS=$as_save_IFS
11170
11171 fi
11172 fi
11173 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11174 if test -n "$ac_ct_LIPO"; then
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11176 $as_echo "$ac_ct_LIPO" >&6; }
11177 else
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11180 fi
11181
11182   if test "x$ac_ct_LIPO" = x; then
11183     LIPO=":"
11184   else
11185     case $cross_compiling:$ac_tool_warned in
11186 yes:)
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11189 ac_tool_warned=yes ;;
11190 esac
11191     LIPO=$ac_ct_LIPO
11192   fi
11193 else
11194   LIPO="$ac_cv_prog_LIPO"
11195 fi
11196
11197     if test -n "$ac_tool_prefix"; then
11198   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11199 set dummy ${ac_tool_prefix}otool; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if ${ac_cv_prog_OTOOL+:} false; then :
11203   $as_echo_n "(cached) " >&6
11204 else
11205   if test -n "$OTOOL"; then
11206   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11207 else
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $PATH
11210 do
11211   IFS=$as_save_IFS
11212   test -z "$as_dir" && as_dir=.
11213     for ac_exec_ext in '' $ac_executable_extensions; do
11214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11215     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217     break 2
11218   fi
11219 done
11220   done
11221 IFS=$as_save_IFS
11222
11223 fi
11224 fi
11225 OTOOL=$ac_cv_prog_OTOOL
11226 if test -n "$OTOOL"; then
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11228 $as_echo "$OTOOL" >&6; }
11229 else
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11232 fi
11233
11234
11235 fi
11236 if test -z "$ac_cv_prog_OTOOL"; then
11237   ac_ct_OTOOL=$OTOOL
11238   # Extract the first word of "otool", so it can be a program name with args.
11239 set dummy otool; ac_word=$2
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241 $as_echo_n "checking for $ac_word... " >&6; }
11242 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11243   $as_echo_n "(cached) " >&6
11244 else
11245   if test -n "$ac_ct_OTOOL"; then
11246   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11247 else
11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249 for as_dir in $PATH
11250 do
11251   IFS=$as_save_IFS
11252   test -z "$as_dir" && as_dir=.
11253     for ac_exec_ext in '' $ac_executable_extensions; do
11254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11255     ac_cv_prog_ac_ct_OTOOL="otool"
11256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11257     break 2
11258   fi
11259 done
11260   done
11261 IFS=$as_save_IFS
11262
11263 fi
11264 fi
11265 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11266 if test -n "$ac_ct_OTOOL"; then
11267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11268 $as_echo "$ac_ct_OTOOL" >&6; }
11269 else
11270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11272 fi
11273
11274   if test "x$ac_ct_OTOOL" = x; then
11275     OTOOL=":"
11276   else
11277     case $cross_compiling:$ac_tool_warned in
11278 yes:)
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11281 ac_tool_warned=yes ;;
11282 esac
11283     OTOOL=$ac_ct_OTOOL
11284   fi
11285 else
11286   OTOOL="$ac_cv_prog_OTOOL"
11287 fi
11288
11289     if test -n "$ac_tool_prefix"; then
11290   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11291 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_prog_OTOOL64+:} false; then :
11295   $as_echo_n "(cached) " >&6
11296 else
11297   if test -n "$OTOOL64"; then
11298   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11299 else
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303   IFS=$as_save_IFS
11304   test -z "$as_dir" && as_dir=.
11305     for ac_exec_ext in '' $ac_executable_extensions; do
11306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309     break 2
11310   fi
11311 done
11312   done
11313 IFS=$as_save_IFS
11314
11315 fi
11316 fi
11317 OTOOL64=$ac_cv_prog_OTOOL64
11318 if test -n "$OTOOL64"; then
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11320 $as_echo "$OTOOL64" >&6; }
11321 else
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11324 fi
11325
11326
11327 fi
11328 if test -z "$ac_cv_prog_OTOOL64"; then
11329   ac_ct_OTOOL64=$OTOOL64
11330   # Extract the first word of "otool64", so it can be a program name with args.
11331 set dummy otool64; ac_word=$2
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333 $as_echo_n "checking for $ac_word... " >&6; }
11334 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11335   $as_echo_n "(cached) " >&6
11336 else
11337   if test -n "$ac_ct_OTOOL64"; then
11338   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11339 else
11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341 for as_dir in $PATH
11342 do
11343   IFS=$as_save_IFS
11344   test -z "$as_dir" && as_dir=.
11345     for ac_exec_ext in '' $ac_executable_extensions; do
11346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11347     ac_cv_prog_ac_ct_OTOOL64="otool64"
11348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11349     break 2
11350   fi
11351 done
11352   done
11353 IFS=$as_save_IFS
11354
11355 fi
11356 fi
11357 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11358 if test -n "$ac_ct_OTOOL64"; then
11359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11360 $as_echo "$ac_ct_OTOOL64" >&6; }
11361 else
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11364 fi
11365
11366   if test "x$ac_ct_OTOOL64" = x; then
11367     OTOOL64=":"
11368   else
11369     case $cross_compiling:$ac_tool_warned in
11370 yes:)
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11373 ac_tool_warned=yes ;;
11374 esac
11375     OTOOL64=$ac_ct_OTOOL64
11376   fi
11377 else
11378   OTOOL64="$ac_cv_prog_OTOOL64"
11379 fi
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11408 $as_echo_n "checking for -single_module linker flag... " >&6; }
11409 if ${lt_cv_apple_cc_single_mod+:} false; then :
11410   $as_echo_n "(cached) " >&6
11411 else
11412   lt_cv_apple_cc_single_mod=no
11413       if test -z "$LT_MULTI_MODULE"; then
11414         # By default we will add the -single_module flag. You can override
11415         # by either setting the environment variable LT_MULTI_MODULE
11416         # non-empty at configure time, or by adding -multi_module to the
11417         # link flags.
11418         rm -rf libconftest.dylib*
11419         echo "int foo(void){return 1;}" > conftest.c
11420         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11421 -dynamiclib -Wl,-single_module conftest.c" >&5
11422         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11423           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11424         _lt_result=$?
11425         # If there is a non-empty error log, and "single_module"
11426         # appears in it, assume the flag caused a linker warning
11427         if test -s conftest.err && $GREP single_module conftest.err; then
11428           cat conftest.err >&5
11429         # Otherwise, if the output was created with a 0 exit code from
11430         # the compiler, it worked.
11431         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11432           lt_cv_apple_cc_single_mod=yes
11433         else
11434           cat conftest.err >&5
11435         fi
11436         rm -rf libconftest.dylib*
11437         rm -f conftest.*
11438       fi
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11441 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11442
11443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11444 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11445 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11446   $as_echo_n "(cached) " >&6
11447 else
11448   lt_cv_ld_exported_symbols_list=no
11449       save_LDFLAGS=$LDFLAGS
11450       echo "_main" > conftest.sym
11451       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11452       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h.  */
11454
11455 int
11456 main ()
11457 {
11458
11459   ;
11460   return 0;
11461 }
11462 _ACEOF
11463 if ac_fn_c_try_link "$LINENO"; then :
11464   lt_cv_ld_exported_symbols_list=yes
11465 else
11466   lt_cv_ld_exported_symbols_list=no
11467 fi
11468 rm -f core conftest.err conftest.$ac_objext \
11469     conftest$ac_exeext conftest.$ac_ext
11470         LDFLAGS=$save_LDFLAGS
11471
11472 fi
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11474 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11475
11476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11477 $as_echo_n "checking for -force_load linker flag... " >&6; }
11478 if ${lt_cv_ld_force_load+:} false; then :
11479   $as_echo_n "(cached) " >&6
11480 else
11481   lt_cv_ld_force_load=no
11482       cat > conftest.c << _LT_EOF
11483 int forced_loaded() { return 2;}
11484 _LT_EOF
11485       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11486       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11487       echo "$AR cru libconftest.a conftest.o" >&5
11488       $AR cru libconftest.a conftest.o 2>&5
11489       echo "$RANLIB libconftest.a" >&5
11490       $RANLIB libconftest.a 2>&5
11491       cat > conftest.c << _LT_EOF
11492 int main() { return 0;}
11493 _LT_EOF
11494       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11495       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11496       _lt_result=$?
11497       if test -s conftest.err && $GREP force_load conftest.err; then
11498         cat conftest.err >&5
11499       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11500         lt_cv_ld_force_load=yes
11501       else
11502         cat conftest.err >&5
11503       fi
11504         rm -f conftest.err libconftest.a conftest conftest.c
11505         rm -rf conftest.dSYM
11506
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11509 $as_echo "$lt_cv_ld_force_load" >&6; }
11510     case $host_os in
11511     rhapsody* | darwin1.[012])
11512       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11513     darwin1.*)
11514       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11515     darwin*) # darwin 5.x on
11516       # if running on 10.5 or later, the deployment target defaults
11517       # to the OS version, if on x86, and 10.4, the deployment
11518       # target defaults to 10.4. Don't you love it?
11519       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11520         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11521           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11522         10.[012][,.]*)
11523           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11524         10.*)
11525           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11526       esac
11527     ;;
11528   esac
11529     if test yes = "$lt_cv_apple_cc_single_mod"; then
11530       _lt_dar_single_mod='$single_module'
11531     fi
11532     if test yes = "$lt_cv_ld_exported_symbols_list"; then
11533       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11534     else
11535       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11536     fi
11537     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11538       _lt_dsymutil='~$DSYMUTIL $lib || :'
11539     else
11540       _lt_dsymutil=
11541     fi
11542     ;;
11543   esac
11544
11545 # func_munge_path_list VARIABLE PATH
11546 # -----------------------------------
11547 # VARIABLE is name of variable containing _space_ separated list of
11548 # directories to be munged by the contents of PATH, which is string
11549 # having a format:
11550 # "DIR[:DIR]:"
11551 #       string "DIR[ DIR]" will be prepended to VARIABLE
11552 # ":DIR[:DIR]"
11553 #       string "DIR[ DIR]" will be appended to VARIABLE
11554 # "DIRP[:DIRP]::[DIRA:]DIRA"
11555 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11556 #       "DIRA[ DIRA]" will be appended to VARIABLE
11557 # "DIR[:DIR]"
11558 #       VARIABLE will be replaced by "DIR[ DIR]"
11559 func_munge_path_list ()
11560 {
11561     case x$2 in
11562     x)
11563         ;;
11564     *:)
11565         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11566         ;;
11567     x:*)
11568         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11569         ;;
11570     *::*)
11571         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11572         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11573         ;;
11574     *)
11575         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11576         ;;
11577     esac
11578 }
11579
11580 for ac_header in dlfcn.h
11581 do :
11582   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11583 "
11584 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11585   cat >>confdefs.h <<_ACEOF
11586 #define HAVE_DLFCN_H 1
11587 _ACEOF
11588
11589 fi
11590
11591 done
11592
11593
11594
11595
11596
11597 # Set options
11598 # Check whether --enable-static was given.
11599 if test "${enable_static+set}" = set; then :
11600   enableval=$enable_static; p=${PACKAGE-default}
11601     case $enableval in
11602     yes) enable_static=yes ;;
11603     no) enable_static=no ;;
11604     *)
11605      enable_static=no
11606       # Look at the argument we got.  We use all the common list separators.
11607       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11608       for pkg in $enableval; do
11609         IFS=$lt_save_ifs
11610         if test "X$pkg" = "X$p"; then
11611           enable_static=yes
11612         fi
11613       done
11614       IFS=$lt_save_ifs
11615       ;;
11616     esac
11617 else
11618   enable_static=no
11619 fi
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630         enable_dlopen=no
11631
11632
11633   enable_win32_dll=no
11634
11635
11636             # Check whether --enable-shared was given.
11637 if test "${enable_shared+set}" = set; then :
11638   enableval=$enable_shared; p=${PACKAGE-default}
11639     case $enableval in
11640     yes) enable_shared=yes ;;
11641     no) enable_shared=no ;;
11642     *)
11643       enable_shared=no
11644       # Look at the argument we got.  We use all the common list separators.
11645       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11646       for pkg in $enableval; do
11647         IFS=$lt_save_ifs
11648         if test "X$pkg" = "X$p"; then
11649           enable_shared=yes
11650         fi
11651       done
11652       IFS=$lt_save_ifs
11653       ;;
11654     esac
11655 else
11656   enable_shared=yes
11657 fi
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669 # Check whether --with-pic was given.
11670 if test "${with_pic+set}" = set; then :
11671   withval=$with_pic; lt_p=${PACKAGE-default}
11672     case $withval in
11673     yes|no) pic_mode=$withval ;;
11674     *)
11675       pic_mode=default
11676       # Look at the argument we got.  We use all the common list separators.
11677       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11678       for lt_pkg in $withval; do
11679         IFS=$lt_save_ifs
11680         if test "X$lt_pkg" = "X$lt_p"; then
11681           pic_mode=yes
11682         fi
11683       done
11684       IFS=$lt_save_ifs
11685       ;;
11686     esac
11687 else
11688   pic_mode=default
11689 fi
11690
11691
11692
11693
11694
11695
11696
11697
11698   # Check whether --enable-fast-install was given.
11699 if test "${enable_fast_install+set}" = set; then :
11700   enableval=$enable_fast_install; p=${PACKAGE-default}
11701     case $enableval in
11702     yes) enable_fast_install=yes ;;
11703     no) enable_fast_install=no ;;
11704     *)
11705       enable_fast_install=no
11706       # Look at the argument we got.  We use all the common list separators.
11707       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11708       for pkg in $enableval; do
11709         IFS=$lt_save_ifs
11710         if test "X$pkg" = "X$p"; then
11711           enable_fast_install=yes
11712         fi
11713       done
11714       IFS=$lt_save_ifs
11715       ;;
11716     esac
11717 else
11718   enable_fast_install=yes
11719 fi
11720
11721
11722
11723
11724
11725
11726
11727
11728   shared_archive_member_spec=
11729 case $host,$enable_shared in
11730 power*-*-aix[5-9]*,yes)
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11732 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11733
11734 # Check whether --with-aix-soname was given.
11735 if test "${with_aix_soname+set}" = set; then :
11736   withval=$with_aix_soname; case $withval in
11737     aix|svr4|both)
11738       ;;
11739     *)
11740       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11741       ;;
11742     esac
11743     lt_cv_with_aix_soname=$with_aix_soname
11744 else
11745   if ${lt_cv_with_aix_soname+:} false; then :
11746   $as_echo_n "(cached) " >&6
11747 else
11748   lt_cv_with_aix_soname=aix
11749 fi
11750
11751     with_aix_soname=$lt_cv_with_aix_soname
11752 fi
11753
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11755 $as_echo "$with_aix_soname" >&6; }
11756   if test aix != "$with_aix_soname"; then
11757     # For the AIX way of multilib, we name the shared archive member
11758     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11759     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11760     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11761     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11762     if test 64 = "${OBJECT_MODE-32}"; then
11763       shared_archive_member_spec=shr_64
11764     else
11765       shared_archive_member_spec=shr
11766     fi
11767   fi
11768   ;;
11769 *)
11770   with_aix_soname=aix
11771   ;;
11772 esac
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783 # This can be used to rebuild libtool when needed
11784 LIBTOOL_DEPS=$ltmain
11785
11786 # Always use our own libtool.
11787 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818 test -z "$LN_S" && LN_S="ln -s"
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833 if test -n "${ZSH_VERSION+set}"; then
11834    setopt NO_GLOB_SUBST
11835 fi
11836
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11838 $as_echo_n "checking for objdir... " >&6; }
11839 if ${lt_cv_objdir+:} false; then :
11840   $as_echo_n "(cached) " >&6
11841 else
11842   rm -f .libs 2>/dev/null
11843 mkdir .libs 2>/dev/null
11844 if test -d .libs; then
11845   lt_cv_objdir=.libs
11846 else
11847   # MS-DOS does not allow filenames that begin with a dot.
11848   lt_cv_objdir=_libs
11849 fi
11850 rmdir .libs 2>/dev/null
11851 fi
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11853 $as_echo "$lt_cv_objdir" >&6; }
11854 objdir=$lt_cv_objdir
11855
11856
11857
11858
11859
11860 cat >>confdefs.h <<_ACEOF
11861 #define LT_OBJDIR "$lt_cv_objdir/"
11862 _ACEOF
11863
11864
11865
11866
11867 case $host_os in
11868 aix3*)
11869   # AIX sometimes has problems with the GCC collect2 program.  For some
11870   # reason, if we set the COLLECT_NAMES environment variable, the problems
11871   # vanish in a puff of smoke.
11872   if test set != "${COLLECT_NAMES+set}"; then
11873     COLLECT_NAMES=
11874     export COLLECT_NAMES
11875   fi
11876   ;;
11877 esac
11878
11879 # Global variables:
11880 ofile=libtool
11881 can_build_shared=yes
11882
11883 # All known linkers require a '.a' archive for static linking (except MSVC,
11884 # which needs '.lib').
11885 libext=a
11886
11887 with_gnu_ld=$lt_cv_prog_gnu_ld
11888
11889 old_CC=$CC
11890 old_CFLAGS=$CFLAGS
11891
11892 # Set sane defaults for various variables
11893 test -z "$CC" && CC=cc
11894 test -z "$LTCC" && LTCC=$CC
11895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11896 test -z "$LD" && LD=ld
11897 test -z "$ac_objext" && ac_objext=o
11898
11899 func_cc_basename $compiler
11900 cc_basename=$func_cc_basename_result
11901
11902
11903 # Only perform the check for file, if the check method requires it
11904 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11905 case $deplibs_check_method in
11906 file_magic*)
11907   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11909 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11910 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11911   $as_echo_n "(cached) " >&6
11912 else
11913   case $MAGIC_CMD in
11914 [\\/*] |  ?:[\\/]*)
11915   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11916   ;;
11917 *)
11918   lt_save_MAGIC_CMD=$MAGIC_CMD
11919   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11920   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11921   for ac_dir in $ac_dummy; do
11922     IFS=$lt_save_ifs
11923     test -z "$ac_dir" && ac_dir=.
11924     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11925       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11926       if test -n "$file_magic_test_file"; then
11927         case $deplibs_check_method in
11928         "file_magic "*)
11929           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11930           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11931           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11932             $EGREP "$file_magic_regex" > /dev/null; then
11933             :
11934           else
11935             cat <<_LT_EOF 1>&2
11936
11937 *** Warning: the command libtool uses to detect shared libraries,
11938 *** $file_magic_cmd, produces output that libtool cannot recognize.
11939 *** The result is that libtool may fail to recognize shared libraries
11940 *** as such.  This will affect the creation of libtool libraries that
11941 *** depend on shared libraries, but programs linked with such libtool
11942 *** libraries will work regardless of this problem.  Nevertheless, you
11943 *** may want to report the problem to your system manager and/or to
11944 *** bug-libtool@gnu.org
11945
11946 _LT_EOF
11947           fi ;;
11948         esac
11949       fi
11950       break
11951     fi
11952   done
11953   IFS=$lt_save_ifs
11954   MAGIC_CMD=$lt_save_MAGIC_CMD
11955   ;;
11956 esac
11957 fi
11958
11959 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11960 if test -n "$MAGIC_CMD"; then
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11962 $as_echo "$MAGIC_CMD" >&6; }
11963 else
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11966 fi
11967
11968
11969
11970
11971
11972 if test -z "$lt_cv_path_MAGIC_CMD"; then
11973   if test -n "$ac_tool_prefix"; then
11974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11975 $as_echo_n "checking for file... " >&6; }
11976 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11977   $as_echo_n "(cached) " >&6
11978 else
11979   case $MAGIC_CMD in
11980 [\\/*] |  ?:[\\/]*)
11981   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11982   ;;
11983 *)
11984   lt_save_MAGIC_CMD=$MAGIC_CMD
11985   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11986   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11987   for ac_dir in $ac_dummy; do
11988     IFS=$lt_save_ifs
11989     test -z "$ac_dir" && ac_dir=.
11990     if test -f "$ac_dir/file"; then
11991       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11992       if test -n "$file_magic_test_file"; then
11993         case $deplibs_check_method in
11994         "file_magic "*)
11995           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11996           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11997           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11998             $EGREP "$file_magic_regex" > /dev/null; then
11999             :
12000           else
12001             cat <<_LT_EOF 1>&2
12002
12003 *** Warning: the command libtool uses to detect shared libraries,
12004 *** $file_magic_cmd, produces output that libtool cannot recognize.
12005 *** The result is that libtool may fail to recognize shared libraries
12006 *** as such.  This will affect the creation of libtool libraries that
12007 *** depend on shared libraries, but programs linked with such libtool
12008 *** libraries will work regardless of this problem.  Nevertheless, you
12009 *** may want to report the problem to your system manager and/or to
12010 *** bug-libtool@gnu.org
12011
12012 _LT_EOF
12013           fi ;;
12014         esac
12015       fi
12016       break
12017     fi
12018   done
12019   IFS=$lt_save_ifs
12020   MAGIC_CMD=$lt_save_MAGIC_CMD
12021   ;;
12022 esac
12023 fi
12024
12025 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12026 if test -n "$MAGIC_CMD"; then
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12028 $as_echo "$MAGIC_CMD" >&6; }
12029 else
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033
12034
12035   else
12036     MAGIC_CMD=:
12037   fi
12038 fi
12039
12040   fi
12041   ;;
12042 esac
12043
12044 # Use C for the default configuration in the libtool script
12045
12046 lt_save_CC=$CC
12047 ac_ext=c
12048 ac_cpp='$CPP $CPPFLAGS'
12049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12052
12053
12054 # Source file extension for C test sources.
12055 ac_ext=c
12056
12057 # Object file extension for compiled C test sources.
12058 objext=o
12059 objext=$objext
12060
12061 # Code to be used in simple compile tests
12062 lt_simple_compile_test_code="int some_variable = 0;"
12063
12064 # Code to be used in simple link tests
12065 lt_simple_link_test_code='int main(){return(0);}'
12066
12067
12068
12069
12070
12071
12072
12073 # If no C compiler was specified, use CC.
12074 LTCC=${LTCC-"$CC"}
12075
12076 # If no C compiler flags were specified, use CFLAGS.
12077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12078
12079 # Allow CC to be a program name with arguments.
12080 compiler=$CC
12081
12082 # Save the default compiler, since it gets overwritten when the other
12083 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12084 compiler_DEFAULT=$CC
12085
12086 # save warnings/boilerplate of simple test code
12087 ac_outfile=conftest.$ac_objext
12088 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12089 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12090 _lt_compiler_boilerplate=`cat conftest.err`
12091 $RM conftest*
12092
12093 ac_outfile=conftest.$ac_objext
12094 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12095 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12096 _lt_linker_boilerplate=`cat conftest.err`
12097 $RM -r conftest*
12098
12099
12100 ## CAVEAT EMPTOR:
12101 ## There is no encapsulation within the following macros, do not change
12102 ## the running order or otherwise move them around unless you know exactly
12103 ## what you are doing...
12104 if test -n "$compiler"; then
12105
12106 lt_prog_compiler_no_builtin_flag=
12107
12108 if test yes = "$GCC"; then
12109   case $cc_basename in
12110   nvcc*)
12111     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12112   *)
12113     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12114   esac
12115
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12117 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12118 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12119   $as_echo_n "(cached) " >&6
12120 else
12121   lt_cv_prog_compiler_rtti_exceptions=no
12122    ac_outfile=conftest.$ac_objext
12123    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12124    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12125    # Insert the option either (1) after the last *FLAGS variable, or
12126    # (2) before a word containing "conftest.", or (3) at the end.
12127    # Note that $ac_compile itself does not contain backslashes and begins
12128    # with a dollar sign (not a hyphen), so the echo should work correctly.
12129    # The option is referenced via a variable to avoid confusing sed.
12130    lt_compile=`echo "$ac_compile" | $SED \
12131    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12132    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12133    -e 's:$: $lt_compiler_flag:'`
12134    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12135    (eval "$lt_compile" 2>conftest.err)
12136    ac_status=$?
12137    cat conftest.err >&5
12138    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139    if (exit $ac_status) && test -s "$ac_outfile"; then
12140      # The compiler can only warn and ignore the option if not recognized
12141      # So say no if there are warnings other than the usual output.
12142      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12143      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12144      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12145        lt_cv_prog_compiler_rtti_exceptions=yes
12146      fi
12147    fi
12148    $RM conftest*
12149
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12152 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12153
12154 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12155     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12156 else
12157     :
12158 fi
12159
12160 fi
12161
12162
12163
12164
12165
12166
12167   lt_prog_compiler_wl=
12168 lt_prog_compiler_pic=
12169 lt_prog_compiler_static=
12170
12171
12172   if test yes = "$GCC"; then
12173     lt_prog_compiler_wl='-Wl,'
12174     lt_prog_compiler_static='-static'
12175
12176     case $host_os in
12177       aix*)
12178       # All AIX code is PIC.
12179       if test ia64 = "$host_cpu"; then
12180         # AIX 5 now supports IA64 processor
12181         lt_prog_compiler_static='-Bstatic'
12182       fi
12183       lt_prog_compiler_pic='-fPIC'
12184       ;;
12185
12186     amigaos*)
12187       case $host_cpu in
12188       powerpc)
12189             # see comment about AmigaOS4 .so support
12190             lt_prog_compiler_pic='-fPIC'
12191         ;;
12192       m68k)
12193             # FIXME: we need at least 68020 code to build shared libraries, but
12194             # adding the '-m68020' flag to GCC prevents building anything better,
12195             # like '-m68040'.
12196             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12197         ;;
12198       esac
12199       ;;
12200
12201     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12202       # PIC is the default for these OSes.
12203       ;;
12204
12205     mingw* | cygwin* | pw32* | os2* | cegcc*)
12206       # This hack is so that the source file can tell whether it is being
12207       # built for inclusion in a dll (and should export symbols for example).
12208       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12209       # (--disable-auto-import) libraries
12210       lt_prog_compiler_pic='-DDLL_EXPORT'
12211       case $host_os in
12212       os2*)
12213         lt_prog_compiler_static='$wl-static'
12214         ;;
12215       esac
12216       ;;
12217
12218     darwin* | rhapsody*)
12219       # PIC is the default on this platform
12220       # Common symbols not allowed in MH_DYLIB files
12221       lt_prog_compiler_pic='-fno-common'
12222       ;;
12223
12224     haiku*)
12225       # PIC is the default for Haiku.
12226       # The "-static" flag exists, but is broken.
12227       lt_prog_compiler_static=
12228       ;;
12229
12230     hpux*)
12231       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12232       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12233       # sets the default TLS model and affects inlining.
12234       case $host_cpu in
12235       hppa*64*)
12236         # +Z the default
12237         ;;
12238       *)
12239         lt_prog_compiler_pic='-fPIC'
12240         ;;
12241       esac
12242       ;;
12243
12244     interix[3-9]*)
12245       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12246       # Instead, we relocate shared libraries at runtime.
12247       ;;
12248
12249     msdosdjgpp*)
12250       # Just because we use GCC doesn't mean we suddenly get shared libraries
12251       # on systems that don't support them.
12252       lt_prog_compiler_can_build_shared=no
12253       enable_shared=no
12254       ;;
12255
12256     *nto* | *qnx*)
12257       # QNX uses GNU C++, but need to define -shared option too, otherwise
12258       # it will coredump.
12259       lt_prog_compiler_pic='-fPIC -shared'
12260       ;;
12261
12262     sysv4*MP*)
12263       if test -d /usr/nec; then
12264         lt_prog_compiler_pic=-Kconform_pic
12265       fi
12266       ;;
12267
12268     *)
12269       lt_prog_compiler_pic='-fPIC'
12270       ;;
12271     esac
12272
12273     case $cc_basename in
12274     nvcc*) # Cuda Compiler Driver 2.2
12275       lt_prog_compiler_wl='-Xlinker '
12276       if test -n "$lt_prog_compiler_pic"; then
12277         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12278       fi
12279       ;;
12280     esac
12281   else
12282     # PORTME Check for flag to pass linker flags through the system compiler.
12283     case $host_os in
12284     aix*)
12285       lt_prog_compiler_wl='-Wl,'
12286       if test ia64 = "$host_cpu"; then
12287         # AIX 5 now supports IA64 processor
12288         lt_prog_compiler_static='-Bstatic'
12289       else
12290         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12291       fi
12292       ;;
12293
12294     darwin* | rhapsody*)
12295       # PIC is the default on this platform
12296       # Common symbols not allowed in MH_DYLIB files
12297       lt_prog_compiler_pic='-fno-common'
12298       case $cc_basename in
12299       nagfor*)
12300         # NAG Fortran compiler
12301         lt_prog_compiler_wl='-Wl,-Wl,,'
12302         lt_prog_compiler_pic='-PIC'
12303         lt_prog_compiler_static='-Bstatic'
12304         ;;
12305       esac
12306       ;;
12307
12308     mingw* | cygwin* | pw32* | os2* | cegcc*)
12309       # This hack is so that the source file can tell whether it is being
12310       # built for inclusion in a dll (and should export symbols for example).
12311       lt_prog_compiler_pic='-DDLL_EXPORT'
12312       case $host_os in
12313       os2*)
12314         lt_prog_compiler_static='$wl-static'
12315         ;;
12316       esac
12317       ;;
12318
12319     hpux9* | hpux10* | hpux11*)
12320       lt_prog_compiler_wl='-Wl,'
12321       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12322       # not for PA HP-UX.
12323       case $host_cpu in
12324       hppa*64*|ia64*)
12325         # +Z the default
12326         ;;
12327       *)
12328         lt_prog_compiler_pic='+Z'
12329         ;;
12330       esac
12331       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12332       lt_prog_compiler_static='$wl-a ${wl}archive'
12333       ;;
12334
12335     irix5* | irix6* | nonstopux*)
12336       lt_prog_compiler_wl='-Wl,'
12337       # PIC (with -KPIC) is the default.
12338       lt_prog_compiler_static='-non_shared'
12339       ;;
12340
12341     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12342       case $cc_basename in
12343       # old Intel for x86_64, which still supported -KPIC.
12344       ecc*)
12345         lt_prog_compiler_wl='-Wl,'
12346         lt_prog_compiler_pic='-KPIC'
12347         lt_prog_compiler_static='-static'
12348         ;;
12349       # icc used to be incompatible with GCC.
12350       # ICC 10 doesn't accept -KPIC any more.
12351       icc* | ifort*)
12352         lt_prog_compiler_wl='-Wl,'
12353         lt_prog_compiler_pic='-fPIC'
12354         lt_prog_compiler_static='-static'
12355         ;;
12356       # Lahey Fortran 8.1.
12357       lf95*)
12358         lt_prog_compiler_wl='-Wl,'
12359         lt_prog_compiler_pic='--shared'
12360         lt_prog_compiler_static='--static'
12361         ;;
12362       nagfor*)
12363         # NAG Fortran compiler
12364         lt_prog_compiler_wl='-Wl,-Wl,,'
12365         lt_prog_compiler_pic='-PIC'
12366         lt_prog_compiler_static='-Bstatic'
12367         ;;
12368       tcc*)
12369         # Fabrice Bellard et al's Tiny C Compiler
12370         lt_prog_compiler_wl='-Wl,'
12371         lt_prog_compiler_pic='-fPIC'
12372         lt_prog_compiler_static='-static'
12373         ;;
12374       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12375         # Portland Group compilers (*not* the Pentium gcc compiler,
12376         # which looks to be a dead project)
12377         lt_prog_compiler_wl='-Wl,'
12378         lt_prog_compiler_pic='-fpic'
12379         lt_prog_compiler_static='-Bstatic'
12380         ;;
12381       ccc*)
12382         lt_prog_compiler_wl='-Wl,'
12383         # All Alpha code is PIC.
12384         lt_prog_compiler_static='-non_shared'
12385         ;;
12386       xl* | bgxl* | bgf* | mpixl*)
12387         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12388         lt_prog_compiler_wl='-Wl,'
12389         lt_prog_compiler_pic='-qpic'
12390         lt_prog_compiler_static='-qstaticlink'
12391         ;;
12392       *)
12393         case `$CC -V 2>&1 | sed 5q` in
12394         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12395           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12396           lt_prog_compiler_pic='-KPIC'
12397           lt_prog_compiler_static='-Bstatic'
12398           lt_prog_compiler_wl=''
12399           ;;
12400         *Sun\ F* | *Sun*Fortran*)
12401           lt_prog_compiler_pic='-KPIC'
12402           lt_prog_compiler_static='-Bstatic'
12403           lt_prog_compiler_wl='-Qoption ld '
12404           ;;
12405         *Sun\ C*)
12406           # Sun C 5.9
12407           lt_prog_compiler_pic='-KPIC'
12408           lt_prog_compiler_static='-Bstatic'
12409           lt_prog_compiler_wl='-Wl,'
12410           ;;
12411         *Intel*\ [CF]*Compiler*)
12412           lt_prog_compiler_wl='-Wl,'
12413           lt_prog_compiler_pic='-fPIC'
12414           lt_prog_compiler_static='-static'
12415           ;;
12416         *Portland\ Group*)
12417           lt_prog_compiler_wl='-Wl,'
12418           lt_prog_compiler_pic='-fpic'
12419           lt_prog_compiler_static='-Bstatic'
12420           ;;
12421         esac
12422         ;;
12423       esac
12424       ;;
12425
12426     newsos6)
12427       lt_prog_compiler_pic='-KPIC'
12428       lt_prog_compiler_static='-Bstatic'
12429       ;;
12430
12431     *nto* | *qnx*)
12432       # QNX uses GNU C++, but need to define -shared option too, otherwise
12433       # it will coredump.
12434       lt_prog_compiler_pic='-fPIC -shared'
12435       ;;
12436
12437     osf3* | osf4* | osf5*)
12438       lt_prog_compiler_wl='-Wl,'
12439       # All OSF/1 code is PIC.
12440       lt_prog_compiler_static='-non_shared'
12441       ;;
12442
12443     rdos*)
12444       lt_prog_compiler_static='-non_shared'
12445       ;;
12446
12447     solaris*)
12448       lt_prog_compiler_pic='-KPIC'
12449       lt_prog_compiler_static='-Bstatic'
12450       case $cc_basename in
12451       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12452         lt_prog_compiler_wl='-Qoption ld ';;
12453       *)
12454         lt_prog_compiler_wl='-Wl,';;
12455       esac
12456       ;;
12457
12458     sunos4*)
12459       lt_prog_compiler_wl='-Qoption ld '
12460       lt_prog_compiler_pic='-PIC'
12461       lt_prog_compiler_static='-Bstatic'
12462       ;;
12463
12464     sysv4 | sysv4.2uw2* | sysv4.3*)
12465       lt_prog_compiler_wl='-Wl,'
12466       lt_prog_compiler_pic='-KPIC'
12467       lt_prog_compiler_static='-Bstatic'
12468       ;;
12469
12470     sysv4*MP*)
12471       if test -d /usr/nec; then
12472         lt_prog_compiler_pic='-Kconform_pic'
12473         lt_prog_compiler_static='-Bstatic'
12474       fi
12475       ;;
12476
12477     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12478       lt_prog_compiler_wl='-Wl,'
12479       lt_prog_compiler_pic='-KPIC'
12480       lt_prog_compiler_static='-Bstatic'
12481       ;;
12482
12483     unicos*)
12484       lt_prog_compiler_wl='-Wl,'
12485       lt_prog_compiler_can_build_shared=no
12486       ;;
12487
12488     uts4*)
12489       lt_prog_compiler_pic='-pic'
12490       lt_prog_compiler_static='-Bstatic'
12491       ;;
12492
12493     *)
12494       lt_prog_compiler_can_build_shared=no
12495       ;;
12496     esac
12497   fi
12498
12499 case $host_os in
12500   # For platforms that do not support PIC, -DPIC is meaningless:
12501   *djgpp*)
12502     lt_prog_compiler_pic=
12503     ;;
12504   *)
12505     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12506     ;;
12507 esac
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12510 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12511 if ${lt_cv_prog_compiler_pic+:} false; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12517 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12518 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12519
12520 #
12521 # Check to make sure the PIC flag actually works.
12522 #
12523 if test -n "$lt_prog_compiler_pic"; then
12524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12525 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12526 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12527   $as_echo_n "(cached) " >&6
12528 else
12529   lt_cv_prog_compiler_pic_works=no
12530    ac_outfile=conftest.$ac_objext
12531    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12532    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12533    # Insert the option either (1) after the last *FLAGS variable, or
12534    # (2) before a word containing "conftest.", or (3) at the end.
12535    # Note that $ac_compile itself does not contain backslashes and begins
12536    # with a dollar sign (not a hyphen), so the echo should work correctly.
12537    # The option is referenced via a variable to avoid confusing sed.
12538    lt_compile=`echo "$ac_compile" | $SED \
12539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12541    -e 's:$: $lt_compiler_flag:'`
12542    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12543    (eval "$lt_compile" 2>conftest.err)
12544    ac_status=$?
12545    cat conftest.err >&5
12546    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547    if (exit $ac_status) && test -s "$ac_outfile"; then
12548      # The compiler can only warn and ignore the option if not recognized
12549      # So say no if there are warnings other than the usual output.
12550      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12551      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12552      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12553        lt_cv_prog_compiler_pic_works=yes
12554      fi
12555    fi
12556    $RM conftest*
12557
12558 fi
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12560 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12561
12562 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12563     case $lt_prog_compiler_pic in
12564      "" | " "*) ;;
12565      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12566      esac
12567 else
12568     lt_prog_compiler_pic=
12569      lt_prog_compiler_can_build_shared=no
12570 fi
12571
12572 fi
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584 #
12585 # Check to make sure the static flag actually works.
12586 #
12587 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12589 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12590 if ${lt_cv_prog_compiler_static_works+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   lt_cv_prog_compiler_static_works=no
12594    save_LDFLAGS=$LDFLAGS
12595    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12596    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12597    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12598      # The linker can only warn and ignore the option if not recognized
12599      # So say no if there are warnings
12600      if test -s conftest.err; then
12601        # Append any errors to the config.log.
12602        cat conftest.err 1>&5
12603        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12604        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12605        if diff conftest.exp conftest.er2 >/dev/null; then
12606          lt_cv_prog_compiler_static_works=yes
12607        fi
12608      else
12609        lt_cv_prog_compiler_static_works=yes
12610      fi
12611    fi
12612    $RM -r conftest*
12613    LDFLAGS=$save_LDFLAGS
12614
12615 fi
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12617 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12618
12619 if test yes = "$lt_cv_prog_compiler_static_works"; then
12620     :
12621 else
12622     lt_prog_compiler_static=
12623 fi
12624
12625
12626
12627
12628
12629
12630
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12632 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12633 if ${lt_cv_prog_compiler_c_o+:} false; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   lt_cv_prog_compiler_c_o=no
12637    $RM -r conftest 2>/dev/null
12638    mkdir conftest
12639    cd conftest
12640    mkdir out
12641    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12642
12643    lt_compiler_flag="-o out/conftest2.$ac_objext"
12644    # Insert the option either (1) after the last *FLAGS variable, or
12645    # (2) before a word containing "conftest.", or (3) at the end.
12646    # Note that $ac_compile itself does not contain backslashes and begins
12647    # with a dollar sign (not a hyphen), so the echo should work correctly.
12648    lt_compile=`echo "$ac_compile" | $SED \
12649    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12650    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12651    -e 's:$: $lt_compiler_flag:'`
12652    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12653    (eval "$lt_compile" 2>out/conftest.err)
12654    ac_status=$?
12655    cat out/conftest.err >&5
12656    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12658    then
12659      # The compiler can only warn and ignore the option if not recognized
12660      # So say no if there are warnings
12661      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12662      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12663      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12664        lt_cv_prog_compiler_c_o=yes
12665      fi
12666    fi
12667    chmod u+w . 2>&5
12668    $RM conftest*
12669    # SGI C++ compiler will create directory out/ii_files/ for
12670    # template instantiation
12671    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12672    $RM out/* && rmdir out
12673    cd ..
12674    $RM -r conftest
12675    $RM conftest*
12676
12677 fi
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12679 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12680
12681
12682
12683
12684
12685
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12688 if ${lt_cv_prog_compiler_c_o+:} false; then :
12689   $as_echo_n "(cached) " >&6
12690 else
12691   lt_cv_prog_compiler_c_o=no
12692    $RM -r conftest 2>/dev/null
12693    mkdir conftest
12694    cd conftest
12695    mkdir out
12696    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12697
12698    lt_compiler_flag="-o out/conftest2.$ac_objext"
12699    # Insert the option either (1) after the last *FLAGS variable, or
12700    # (2) before a word containing "conftest.", or (3) at the end.
12701    # Note that $ac_compile itself does not contain backslashes and begins
12702    # with a dollar sign (not a hyphen), so the echo should work correctly.
12703    lt_compile=`echo "$ac_compile" | $SED \
12704    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12705    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12706    -e 's:$: $lt_compiler_flag:'`
12707    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12708    (eval "$lt_compile" 2>out/conftest.err)
12709    ac_status=$?
12710    cat out/conftest.err >&5
12711    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12713    then
12714      # The compiler can only warn and ignore the option if not recognized
12715      # So say no if there are warnings
12716      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12717      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12718      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12719        lt_cv_prog_compiler_c_o=yes
12720      fi
12721    fi
12722    chmod u+w . 2>&5
12723    $RM conftest*
12724    # SGI C++ compiler will create directory out/ii_files/ for
12725    # template instantiation
12726    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12727    $RM out/* && rmdir out
12728    cd ..
12729    $RM -r conftest
12730    $RM conftest*
12731
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12734 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12735
12736
12737
12738
12739 hard_links=nottested
12740 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12741   # do not overwrite the value of need_locks provided by the user
12742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12743 $as_echo_n "checking if we can lock with hard links... " >&6; }
12744   hard_links=yes
12745   $RM conftest*
12746   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12747   touch conftest.a
12748   ln conftest.a conftest.b 2>&5 || hard_links=no
12749   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12751 $as_echo "$hard_links" >&6; }
12752   if test no = "$hard_links"; then
12753     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12754 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12755     need_locks=warn
12756   fi
12757 else
12758   need_locks=no
12759 fi
12760
12761
12762
12763
12764
12765
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12767 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12768
12769   runpath_var=
12770   allow_undefined_flag=
12771   always_export_symbols=no
12772   archive_cmds=
12773   archive_expsym_cmds=
12774   compiler_needs_object=no
12775   enable_shared_with_static_runtimes=no
12776   export_dynamic_flag_spec=
12777   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12778   hardcode_automatic=no
12779   hardcode_direct=no
12780   hardcode_direct_absolute=no
12781   hardcode_libdir_flag_spec=
12782   hardcode_libdir_separator=
12783   hardcode_minus_L=no
12784   hardcode_shlibpath_var=unsupported
12785   inherit_rpath=no
12786   link_all_deplibs=unknown
12787   module_cmds=
12788   module_expsym_cmds=
12789   old_archive_from_new_cmds=
12790   old_archive_from_expsyms_cmds=
12791   thread_safe_flag_spec=
12792   whole_archive_flag_spec=
12793   # include_expsyms should be a list of space-separated symbols to be *always*
12794   # included in the symbol list
12795   include_expsyms=
12796   # exclude_expsyms can be an extended regexp of symbols to exclude
12797   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12798   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12799   # as well as any symbol that contains 'd'.
12800   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12801   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12802   # platforms (ab)use it in PIC code, but their linkers get confused if
12803   # the symbol is explicitly referenced.  Since portable code cannot
12804   # rely on this symbol name, it's probably fine to never include it in
12805   # preloaded symbol tables.
12806   # Exclude shared library initialization/finalization symbols.
12807   extract_expsyms_cmds=
12808
12809   case $host_os in
12810   cygwin* | mingw* | pw32* | cegcc*)
12811     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12812     # When not using gcc, we currently assume that we are using
12813     # Microsoft Visual C++.
12814     if test yes != "$GCC"; then
12815       with_gnu_ld=no
12816     fi
12817     ;;
12818   interix*)
12819     # we just hope/assume this is gcc and not c89 (= MSVC++)
12820     with_gnu_ld=yes
12821     ;;
12822   openbsd* | bitrig*)
12823     with_gnu_ld=no
12824     ;;
12825   linux* | k*bsd*-gnu | gnu*)
12826     link_all_deplibs=no
12827     ;;
12828   esac
12829
12830   ld_shlibs=yes
12831
12832   # On some targets, GNU ld is compatible enough with the native linker
12833   # that we're better off using the native interface for both.
12834   lt_use_gnu_ld_interface=no
12835   if test yes = "$with_gnu_ld"; then
12836     case $host_os in
12837       aix*)
12838         # The AIX port of GNU ld has always aspired to compatibility
12839         # with the native linker.  However, as the warning in the GNU ld
12840         # block says, versions before 2.19.5* couldn't really create working
12841         # shared libraries, regardless of the interface used.
12842         case `$LD -v 2>&1` in
12843           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12844           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12845           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12846           *)
12847             lt_use_gnu_ld_interface=yes
12848             ;;
12849         esac
12850         ;;
12851       *)
12852         lt_use_gnu_ld_interface=yes
12853         ;;
12854     esac
12855   fi
12856
12857   if test yes = "$lt_use_gnu_ld_interface"; then
12858     # If archive_cmds runs LD, not CC, wlarc should be empty
12859     wlarc='$wl'
12860
12861     # Set some defaults for GNU ld with shared library support. These
12862     # are reset later if shared libraries are not supported. Putting them
12863     # here allows them to be overridden if necessary.
12864     runpath_var=LD_RUN_PATH
12865     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12866     export_dynamic_flag_spec='$wl--export-dynamic'
12867     # ancient GNU ld didn't support --whole-archive et. al.
12868     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12869       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12870     else
12871       whole_archive_flag_spec=
12872     fi
12873     supports_anon_versioning=no
12874     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12875       *GNU\ gold*) supports_anon_versioning=yes ;;
12876       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12877       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12878       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12879       *\ 2.11.*) ;; # other 2.11 versions
12880       *) supports_anon_versioning=yes ;;
12881     esac
12882
12883     # See if GNU ld supports shared libraries.
12884     case $host_os in
12885     aix[3-9]*)
12886       # On AIX/PPC, the GNU linker is very broken
12887       if test ia64 != "$host_cpu"; then
12888         ld_shlibs=no
12889         cat <<_LT_EOF 1>&2
12890
12891 *** Warning: the GNU linker, at least up to release 2.19, is reported
12892 *** to be unable to reliably create shared libraries on AIX.
12893 *** Therefore, libtool is disabling shared libraries support.  If you
12894 *** really care for shared libraries, you may want to install binutils
12895 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12896 *** You will then need to restart the configuration process.
12897
12898 _LT_EOF
12899       fi
12900       ;;
12901
12902     amigaos*)
12903       case $host_cpu in
12904       powerpc)
12905             # see comment about AmigaOS4 .so support
12906             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12907             archive_expsym_cmds=''
12908         ;;
12909       m68k)
12910             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)'
12911             hardcode_libdir_flag_spec='-L$libdir'
12912             hardcode_minus_L=yes
12913         ;;
12914       esac
12915       ;;
12916
12917     beos*)
12918       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12919         allow_undefined_flag=unsupported
12920         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12921         # support --undefined.  This deserves some investigation.  FIXME
12922         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12923       else
12924         ld_shlibs=no
12925       fi
12926       ;;
12927
12928     cygwin* | mingw* | pw32* | cegcc*)
12929       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12930       # as there is no search path for DLLs.
12931       hardcode_libdir_flag_spec='-L$libdir'
12932       export_dynamic_flag_spec='$wl--export-all-symbols'
12933       allow_undefined_flag=unsupported
12934       always_export_symbols=no
12935       enable_shared_with_static_runtimes=yes
12936       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'
12937       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12938
12939       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12940         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12941         # If the export-symbols file already is a .def file, use it as
12942         # is; otherwise, prepend EXPORTS...
12943         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12944           cp $export_symbols $output_objdir/$soname.def;
12945         else
12946           echo EXPORTS > $output_objdir/$soname.def;
12947           cat $export_symbols >> $output_objdir/$soname.def;
12948         fi~
12949         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12950       else
12951         ld_shlibs=no
12952       fi
12953       ;;
12954
12955     haiku*)
12956       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12957       link_all_deplibs=yes
12958       ;;
12959
12960     os2*)
12961       hardcode_libdir_flag_spec='-L$libdir'
12962       hardcode_minus_L=yes
12963       allow_undefined_flag=unsupported
12964       shrext_cmds=.dll
12965       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12966         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12967         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12968         $ECHO EXPORTS >> $output_objdir/$libname.def~
12969         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12970         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12971         emximp -o $lib $output_objdir/$libname.def'
12972       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12973         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12974         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12975         $ECHO EXPORTS >> $output_objdir/$libname.def~
12976         prefix_cmds="$SED"~
12977         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12978           prefix_cmds="$prefix_cmds -e 1d";
12979         fi~
12980         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12981         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12982         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12983         emximp -o $lib $output_objdir/$libname.def'
12984       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12985       enable_shared_with_static_runtimes=yes
12986       ;;
12987
12988     interix[3-9]*)
12989       hardcode_direct=no
12990       hardcode_shlibpath_var=no
12991       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12992       export_dynamic_flag_spec='$wl-E'
12993       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12994       # Instead, shared libraries are loaded at an image base (0x10000000 by
12995       # default) and relocated if they conflict, which is a slow very memory
12996       # consuming and fragmenting process.  To avoid this, we pick a random,
12997       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12998       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12999       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13000       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'
13001       ;;
13002
13003     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13004       tmp_diet=no
13005       if test linux-dietlibc = "$host_os"; then
13006         case $cc_basename in
13007           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13008         esac
13009       fi
13010       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13011          && test no = "$tmp_diet"
13012       then
13013         tmp_addflag=' $pic_flag'
13014         tmp_sharedflag='-shared'
13015         case $cc_basename,$host_cpu in
13016         pgcc*)                          # Portland Group C compiler
13017           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'
13018           tmp_addflag=' $pic_flag'
13019           ;;
13020         pgf77* | pgf90* | pgf95* | pgfortran*)
13021                                         # Portland Group f77 and f90 compilers
13022           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'
13023           tmp_addflag=' $pic_flag -Mnomain' ;;
13024         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13025           tmp_addflag=' -i_dynamic' ;;
13026         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13027           tmp_addflag=' -i_dynamic -nofor_main' ;;
13028         ifc* | ifort*)                  # Intel Fortran compiler
13029           tmp_addflag=' -nofor_main' ;;
13030         lf95*)                          # Lahey Fortran 8.1
13031           whole_archive_flag_spec=
13032           tmp_sharedflag='--shared' ;;
13033         nagfor*)                        # NAGFOR 5.3
13034           tmp_sharedflag='-Wl,-shared' ;;
13035         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13036           tmp_sharedflag='-qmkshrobj'
13037           tmp_addflag= ;;
13038         nvcc*)  # Cuda Compiler Driver 2.2
13039           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'
13040           compiler_needs_object=yes
13041           ;;
13042         esac
13043         case `$CC -V 2>&1 | sed 5q` in
13044         *Sun\ C*)                       # Sun C 5.9
13045           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'
13046           compiler_needs_object=yes
13047           tmp_sharedflag='-G' ;;
13048         *Sun\ F*)                       # Sun Fortran 8.3
13049           tmp_sharedflag='-G' ;;
13050         esac
13051         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13052
13053         if test yes = "$supports_anon_versioning"; then
13054           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13055             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13056             echo "local: *; };" >> $output_objdir/$libname.ver~
13057             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13058         fi
13059
13060         case $cc_basename in
13061         tcc*)
13062           export_dynamic_flag_spec='-rdynamic'
13063           ;;
13064         xlf* | bgf* | bgxlf* | mpixlf*)
13065           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13066           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13067           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13068           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13069           if test yes = "$supports_anon_versioning"; then
13070             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13071               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13072               echo "local: *; };" >> $output_objdir/$libname.ver~
13073               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13074           fi
13075           ;;
13076         esac
13077       else
13078         ld_shlibs=no
13079       fi
13080       ;;
13081
13082     netbsd* | netbsdelf*-gnu)
13083       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13084         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13085         wlarc=
13086       else
13087         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13088         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13089       fi
13090       ;;
13091
13092     solaris*)
13093       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13094         ld_shlibs=no
13095         cat <<_LT_EOF 1>&2
13096
13097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13098 *** create shared libraries on Solaris systems.  Therefore, libtool
13099 *** is disabling shared libraries support.  We urge you to upgrade GNU
13100 *** binutils to release 2.9.1 or newer.  Another option is to modify
13101 *** your PATH or compiler configuration so that the native linker is
13102 *** used, and then restart.
13103
13104 _LT_EOF
13105       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13106         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13107         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13108       else
13109         ld_shlibs=no
13110       fi
13111       ;;
13112
13113     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13114       case `$LD -v 2>&1` in
13115         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13116         ld_shlibs=no
13117         cat <<_LT_EOF 1>&2
13118
13119 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13120 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13121 *** is disabling shared libraries support.  We urge you to upgrade GNU
13122 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13123 *** your PATH or compiler configuration so that the native linker is
13124 *** used, and then restart.
13125
13126 _LT_EOF
13127         ;;
13128         *)
13129           # For security reasons, it is highly recommended that you always
13130           # use absolute paths for naming shared libraries, and exclude the
13131           # DT_RUNPATH tag from executables and libraries.  But doing so
13132           # requires that you compile everything twice, which is a pain.
13133           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13134             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13135             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13136             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13137           else
13138             ld_shlibs=no
13139           fi
13140         ;;
13141       esac
13142       ;;
13143
13144     sunos4*)
13145       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13146       wlarc=
13147       hardcode_direct=yes
13148       hardcode_shlibpath_var=no
13149       ;;
13150
13151     *)
13152       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13153         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13154         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13155       else
13156         ld_shlibs=no
13157       fi
13158       ;;
13159     esac
13160
13161     if test no = "$ld_shlibs"; then
13162       runpath_var=
13163       hardcode_libdir_flag_spec=
13164       export_dynamic_flag_spec=
13165       whole_archive_flag_spec=
13166     fi
13167   else
13168     # PORTME fill in a description of your system's linker (not GNU ld)
13169     case $host_os in
13170     aix3*)
13171       allow_undefined_flag=unsupported
13172       always_export_symbols=yes
13173       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'
13174       # Note: this linker hardcodes the directories in LIBPATH if there
13175       # are no directories specified by -L.
13176       hardcode_minus_L=yes
13177       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13178         # Neither direct hardcoding nor static linking is supported with a
13179         # broken collect2.
13180         hardcode_direct=unsupported
13181       fi
13182       ;;
13183
13184     aix[4-9]*)
13185       if test ia64 = "$host_cpu"; then
13186         # On IA64, the linker does run time linking by default, so we don't
13187         # have to do anything special.
13188         aix_use_runtimelinking=no
13189         exp_sym_flag='-Bexport'
13190         no_entry_flag=
13191       else
13192         # If we're using GNU nm, then we don't want the "-C" option.
13193         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13194         # Without the "-l" option, or with the "-B" option, AIX nm treats
13195         # weak defined symbols like other global defined symbols, whereas
13196         # GNU nm marks them as "W".
13197         # While the 'weak' keyword is ignored in the Export File, we need
13198         # it in the Import File for the 'aix-soname' feature, so we have
13199         # to replace the "-B" option with "-P" for AIX nm.
13200         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13201           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'
13202         else
13203           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'
13204         fi
13205         aix_use_runtimelinking=no
13206
13207         # Test if we are trying to use run time linking or normal
13208         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13209         # have runtime linking enabled, and use it for executables.
13210         # For shared libraries, we enable/disable runtime linking
13211         # depending on the kind of the shared library created -
13212         # when "with_aix_soname,aix_use_runtimelinking" is:
13213         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13214         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13215         #            lib.a           static archive
13216         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13217         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13218         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13219         #            lib.a(lib.so.V) shared, rtl:no
13220         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13221         #            lib.a           static archive
13222         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13223           for ld_flag in $LDFLAGS; do
13224           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13225             aix_use_runtimelinking=yes
13226             break
13227           fi
13228           done
13229           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13230             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13231             # so we don't have lib.a shared libs to link our executables.
13232             # We have to force runtime linking in this case.
13233             aix_use_runtimelinking=yes
13234             LDFLAGS="$LDFLAGS -Wl,-brtl"
13235           fi
13236           ;;
13237         esac
13238
13239         exp_sym_flag='-bexport'
13240         no_entry_flag='-bnoentry'
13241       fi
13242
13243       # When large executables or shared objects are built, AIX ld can
13244       # have problems creating the table of contents.  If linking a library
13245       # or program results in "error TOC overflow" add -mminimal-toc to
13246       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13247       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13248
13249       archive_cmds=''
13250       hardcode_direct=yes
13251       hardcode_direct_absolute=yes
13252       hardcode_libdir_separator=':'
13253       link_all_deplibs=yes
13254       file_list_spec='$wl-f,'
13255       case $with_aix_soname,$aix_use_runtimelinking in
13256       aix,*) ;; # traditional, no import file
13257       svr4,* | *,yes) # use import file
13258         # The Import File defines what to hardcode.
13259         hardcode_direct=no
13260         hardcode_direct_absolute=no
13261         ;;
13262       esac
13263
13264       if test yes = "$GCC"; then
13265         case $host_os in aix4.[012]|aix4.[012].*)
13266         # We only want to do this on AIX 4.2 and lower, the check
13267         # below for broken collect2 doesn't work under 4.3+
13268           collect2name=`$CC -print-prog-name=collect2`
13269           if test -f "$collect2name" &&
13270            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13271           then
13272           # We have reworked collect2
13273           :
13274           else
13275           # We have old collect2
13276           hardcode_direct=unsupported
13277           # It fails to find uninstalled libraries when the uninstalled
13278           # path is not listed in the libpath.  Setting hardcode_minus_L
13279           # to unsupported forces relinking
13280           hardcode_minus_L=yes
13281           hardcode_libdir_flag_spec='-L$libdir'
13282           hardcode_libdir_separator=
13283           fi
13284           ;;
13285         esac
13286         shared_flag='-shared'
13287         if test yes = "$aix_use_runtimelinking"; then
13288           shared_flag="$shared_flag "'$wl-G'
13289         fi
13290         # Need to ensure runtime linking is disabled for the traditional
13291         # shared library, or the linker may eventually find shared libraries
13292         # /with/ Import File - we do not want to mix them.
13293         shared_flag_aix='-shared'
13294         shared_flag_svr4='-shared $wl-G'
13295       else
13296         # not using gcc
13297         if test ia64 = "$host_cpu"; then
13298         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299         # chokes on -Wl,-G. The following line is correct:
13300           shared_flag='-G'
13301         else
13302           if test yes = "$aix_use_runtimelinking"; then
13303             shared_flag='$wl-G'
13304           else
13305             shared_flag='$wl-bM:SRE'
13306           fi
13307           shared_flag_aix='$wl-bM:SRE'
13308           shared_flag_svr4='$wl-G'
13309         fi
13310       fi
13311
13312       export_dynamic_flag_spec='$wl-bexpall'
13313       # It seems that -bexpall does not export symbols beginning with
13314       # underscore (_), so it is better to generate a list of symbols to export.
13315       always_export_symbols=yes
13316       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13317         # Warning - without using the other runtime loading flags (-brtl),
13318         # -berok will link without error, but may produce a broken library.
13319         allow_undefined_flag='-berok'
13320         # Determine the default libpath from the value encoded in an
13321         # empty executable.
13322         if test set = "${lt_cv_aix_libpath+set}"; then
13323   aix_libpath=$lt_cv_aix_libpath
13324 else
13325   if ${lt_cv_aix_libpath_+:} false; then :
13326   $as_echo_n "(cached) " >&6
13327 else
13328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h.  */
13330
13331 int
13332 main ()
13333 {
13334
13335   ;
13336   return 0;
13337 }
13338 _ACEOF
13339 if ac_fn_c_try_link "$LINENO"; then :
13340
13341   lt_aix_libpath_sed='
13342       /Import File Strings/,/^$/ {
13343           /^0/ {
13344               s/^0  *\([^ ]*\) *$/\1/
13345               p
13346           }
13347       }'
13348   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13349   # Check for a 64-bit object if we didn't find anything.
13350   if test -z "$lt_cv_aix_libpath_"; then
13351     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13352   fi
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext \
13355     conftest$ac_exeext conftest.$ac_ext
13356   if test -z "$lt_cv_aix_libpath_"; then
13357     lt_cv_aix_libpath_=/usr/lib:/lib
13358   fi
13359
13360 fi
13361
13362   aix_libpath=$lt_cv_aix_libpath_
13363 fi
13364
13365         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13366         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
13367       else
13368         if test ia64 = "$host_cpu"; then
13369           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13370           allow_undefined_flag="-z nodefs"
13371           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"
13372         else
13373          # Determine the default libpath from the value encoded in an
13374          # empty executable.
13375          if test set = "${lt_cv_aix_libpath+set}"; then
13376   aix_libpath=$lt_cv_aix_libpath
13377 else
13378   if ${lt_cv_aix_libpath_+:} false; then :
13379   $as_echo_n "(cached) " >&6
13380 else
13381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h.  */
13383
13384 int
13385 main ()
13386 {
13387
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_link "$LINENO"; then :
13393
13394   lt_aix_libpath_sed='
13395       /Import File Strings/,/^$/ {
13396           /^0/ {
13397               s/^0  *\([^ ]*\) *$/\1/
13398               p
13399           }
13400       }'
13401   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13402   # Check for a 64-bit object if we didn't find anything.
13403   if test -z "$lt_cv_aix_libpath_"; then
13404     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13405   fi
13406 fi
13407 rm -f core conftest.err conftest.$ac_objext \
13408     conftest$ac_exeext conftest.$ac_ext
13409   if test -z "$lt_cv_aix_libpath_"; then
13410     lt_cv_aix_libpath_=/usr/lib:/lib
13411   fi
13412
13413 fi
13414
13415   aix_libpath=$lt_cv_aix_libpath_
13416 fi
13417
13418          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13419           # Warning - without using the other run time loading flags,
13420           # -berok will link without error, but may produce a broken library.
13421           no_undefined_flag=' $wl-bernotok'
13422           allow_undefined_flag=' $wl-berok'
13423           if test yes = "$with_gnu_ld"; then
13424             # We only use this code for GNU lds that support --whole-archive.
13425             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13426           else
13427             # Exported symbols can be pulled into shared objects from archives
13428             whole_archive_flag_spec='$convenience'
13429           fi
13430           archive_cmds_need_lc=yes
13431           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13432           # -brtl affects multiple linker settings, -berok does not and is overridden later
13433           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13434           if test svr4 != "$with_aix_soname"; then
13435             # This is similar to how AIX traditionally builds its shared libraries.
13436             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'
13437           fi
13438           if test aix != "$with_aix_soname"; then
13439             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'
13440           else
13441             # used by -dlpreopen to get the symbols
13442             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13443           fi
13444           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13445         fi
13446       fi
13447       ;;
13448
13449     amigaos*)
13450       case $host_cpu in
13451       powerpc)
13452             # see comment about AmigaOS4 .so support
13453             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13454             archive_expsym_cmds=''
13455         ;;
13456       m68k)
13457             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)'
13458             hardcode_libdir_flag_spec='-L$libdir'
13459             hardcode_minus_L=yes
13460         ;;
13461       esac
13462       ;;
13463
13464     bsdi[45]*)
13465       export_dynamic_flag_spec=-rdynamic
13466       ;;
13467
13468     cygwin* | mingw* | pw32* | cegcc*)
13469       # When not using gcc, we currently assume that we are using
13470       # Microsoft Visual C++.
13471       # hardcode_libdir_flag_spec is actually meaningless, as there is
13472       # no search path for DLLs.
13473       case $cc_basename in
13474       cl*)
13475         # Native MSVC
13476         hardcode_libdir_flag_spec=' '
13477         allow_undefined_flag=unsupported
13478         always_export_symbols=yes
13479         file_list_spec='@'
13480         # Tell ltmain to make .lib files, not .a files.
13481         libext=lib
13482         # Tell ltmain to make .dll files, not .so files.
13483         shrext_cmds=.dll
13484         # FIXME: Setting linknames here is a bad hack.
13485         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13486         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13487             cp "$export_symbols" "$output_objdir/$soname.def";
13488             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13489           else
13490             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13491           fi~
13492           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13493           linknames='
13494         # The linker will not automatically build a static lib if we build a DLL.
13495         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13496         enable_shared_with_static_runtimes=yes
13497         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13498         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13499         # Don't use ranlib
13500         old_postinstall_cmds='chmod 644 $oldlib'
13501         postlink_cmds='lt_outputfile="@OUTPUT@"~
13502           lt_tool_outputfile="@TOOL_OUTPUT@"~
13503           case $lt_outputfile in
13504             *.exe|*.EXE) ;;
13505             *)
13506               lt_outputfile=$lt_outputfile.exe
13507               lt_tool_outputfile=$lt_tool_outputfile.exe
13508               ;;
13509           esac~
13510           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13511             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13512             $RM "$lt_outputfile.manifest";
13513           fi'
13514         ;;
13515       *)
13516         # Assume MSVC wrapper
13517         hardcode_libdir_flag_spec=' '
13518         allow_undefined_flag=unsupported
13519         # Tell ltmain to make .lib files, not .a files.
13520         libext=lib
13521         # Tell ltmain to make .dll files, not .so files.
13522         shrext_cmds=.dll
13523         # FIXME: Setting linknames here is a bad hack.
13524         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13525         # The linker will automatically build a .lib file if we build a DLL.
13526         old_archive_from_new_cmds='true'
13527         # FIXME: Should let the user specify the lib program.
13528         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13529         enable_shared_with_static_runtimes=yes
13530         ;;
13531       esac
13532       ;;
13533
13534     darwin* | rhapsody*)
13535
13536
13537   archive_cmds_need_lc=no
13538   hardcode_direct=no
13539   hardcode_automatic=yes
13540   hardcode_shlibpath_var=unsupported
13541   if test yes = "$lt_cv_ld_force_load"; then
13542     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\"`'
13543
13544   else
13545     whole_archive_flag_spec=''
13546   fi
13547   link_all_deplibs=yes
13548   allow_undefined_flag=$_lt_dar_allow_undefined
13549   case $cc_basename in
13550      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13551      *) _lt_dar_can_shared=$GCC ;;
13552   esac
13553   if test yes = "$_lt_dar_can_shared"; then
13554     output_verbose_link_cmd=func_echo_all
13555     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13556     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13557     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"
13558     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"
13559
13560   else
13561   ld_shlibs=no
13562   fi
13563
13564       ;;
13565
13566     dgux*)
13567       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13568       hardcode_libdir_flag_spec='-L$libdir'
13569       hardcode_shlibpath_var=no
13570       ;;
13571
13572     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13573     # support.  Future versions do this automatically, but an explicit c++rt0.o
13574     # does not break anything, and helps significantly (at the cost of a little
13575     # extra space).
13576     freebsd2.2*)
13577       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13578       hardcode_libdir_flag_spec='-R$libdir'
13579       hardcode_direct=yes
13580       hardcode_shlibpath_var=no
13581       ;;
13582
13583     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13584     freebsd2.*)
13585       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13586       hardcode_direct=yes
13587       hardcode_minus_L=yes
13588       hardcode_shlibpath_var=no
13589       ;;
13590
13591     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13592     freebsd* | dragonfly*)
13593       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13594       hardcode_libdir_flag_spec='-R$libdir'
13595       hardcode_direct=yes
13596       hardcode_shlibpath_var=no
13597       ;;
13598
13599     hpux9*)
13600       if test yes = "$GCC"; then
13601         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'
13602       else
13603         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'
13604       fi
13605       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13606       hardcode_libdir_separator=:
13607       hardcode_direct=yes
13608
13609       # hardcode_minus_L: Not really in the search PATH,
13610       # but as the default location of the library.
13611       hardcode_minus_L=yes
13612       export_dynamic_flag_spec='$wl-E'
13613       ;;
13614
13615     hpux10*)
13616       if test yes,no = "$GCC,$with_gnu_ld"; then
13617         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13618       else
13619         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13620       fi
13621       if test no = "$with_gnu_ld"; then
13622         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13623         hardcode_libdir_separator=:
13624         hardcode_direct=yes
13625         hardcode_direct_absolute=yes
13626         export_dynamic_flag_spec='$wl-E'
13627         # hardcode_minus_L: Not really in the search PATH,
13628         # but as the default location of the library.
13629         hardcode_minus_L=yes
13630       fi
13631       ;;
13632
13633     hpux11*)
13634       if test yes,no = "$GCC,$with_gnu_ld"; then
13635         case $host_cpu in
13636         hppa*64*)
13637           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13638           ;;
13639         ia64*)
13640           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13641           ;;
13642         *)
13643           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13644           ;;
13645         esac
13646       else
13647         case $host_cpu in
13648         hppa*64*)
13649           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13650           ;;
13651         ia64*)
13652           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13653           ;;
13654         *)
13655
13656           # Older versions of the 11.00 compiler do not understand -b yet
13657           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13658           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13659 $as_echo_n "checking if $CC understands -b... " >&6; }
13660 if ${lt_cv_prog_compiler__b+:} false; then :
13661   $as_echo_n "(cached) " >&6
13662 else
13663   lt_cv_prog_compiler__b=no
13664    save_LDFLAGS=$LDFLAGS
13665    LDFLAGS="$LDFLAGS -b"
13666    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13667    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13668      # The linker can only warn and ignore the option if not recognized
13669      # So say no if there are warnings
13670      if test -s conftest.err; then
13671        # Append any errors to the config.log.
13672        cat conftest.err 1>&5
13673        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13674        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13675        if diff conftest.exp conftest.er2 >/dev/null; then
13676          lt_cv_prog_compiler__b=yes
13677        fi
13678      else
13679        lt_cv_prog_compiler__b=yes
13680      fi
13681    fi
13682    $RM -r conftest*
13683    LDFLAGS=$save_LDFLAGS
13684
13685 fi
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13687 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13688
13689 if test yes = "$lt_cv_prog_compiler__b"; then
13690     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13691 else
13692     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13693 fi
13694
13695           ;;
13696         esac
13697       fi
13698       if test no = "$with_gnu_ld"; then
13699         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13700         hardcode_libdir_separator=:
13701
13702         case $host_cpu in
13703         hppa*64*|ia64*)
13704           hardcode_direct=no
13705           hardcode_shlibpath_var=no
13706           ;;
13707         *)
13708           hardcode_direct=yes
13709           hardcode_direct_absolute=yes
13710           export_dynamic_flag_spec='$wl-E'
13711
13712           # hardcode_minus_L: Not really in the search PATH,
13713           # but as the default location of the library.
13714           hardcode_minus_L=yes
13715           ;;
13716         esac
13717       fi
13718       ;;
13719
13720     irix5* | irix6* | nonstopux*)
13721       if test yes = "$GCC"; then
13722         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'
13723         # Try to use the -exported_symbol ld option, if it does not
13724         # work, assume that -exports_file does not work either and
13725         # implicitly export all symbols.
13726         # This should be the same for all languages, so no per-tag cache variable.
13727         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13728 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13729 if ${lt_cv_irix_exported_symbol+:} false; then :
13730   $as_echo_n "(cached) " >&6
13731 else
13732   save_LDFLAGS=$LDFLAGS
13733            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13734            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h.  */
13736 int foo (void) { return 0; }
13737 _ACEOF
13738 if ac_fn_c_try_link "$LINENO"; then :
13739   lt_cv_irix_exported_symbol=yes
13740 else
13741   lt_cv_irix_exported_symbol=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext \
13744     conftest$ac_exeext conftest.$ac_ext
13745            LDFLAGS=$save_LDFLAGS
13746 fi
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13748 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13749         if test yes = "$lt_cv_irix_exported_symbol"; then
13750           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'
13751         fi
13752         link_all_deplibs=no
13753       else
13754         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'
13755         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'
13756       fi
13757       archive_cmds_need_lc='no'
13758       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13759       hardcode_libdir_separator=:
13760       inherit_rpath=yes
13761       link_all_deplibs=yes
13762       ;;
13763
13764     linux*)
13765       case $cc_basename in
13766       tcc*)
13767         # Fabrice Bellard et al's Tiny C Compiler
13768         ld_shlibs=yes
13769         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13770         ;;
13771       esac
13772       ;;
13773
13774     netbsd* | netbsdelf*-gnu)
13775       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13776         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13777       else
13778         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13779       fi
13780       hardcode_libdir_flag_spec='-R$libdir'
13781       hardcode_direct=yes
13782       hardcode_shlibpath_var=no
13783       ;;
13784
13785     newsos6)
13786       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13787       hardcode_direct=yes
13788       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13789       hardcode_libdir_separator=:
13790       hardcode_shlibpath_var=no
13791       ;;
13792
13793     *nto* | *qnx*)
13794       ;;
13795
13796     openbsd* | bitrig*)
13797       if test -f /usr/libexec/ld.so; then
13798         hardcode_direct=yes
13799         hardcode_shlibpath_var=no
13800         hardcode_direct_absolute=yes
13801         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13802           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13803           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13804           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13805           export_dynamic_flag_spec='$wl-E'
13806         else
13807           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13808           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13809         fi
13810       else
13811         ld_shlibs=no
13812       fi
13813       ;;
13814
13815     os2*)
13816       hardcode_libdir_flag_spec='-L$libdir'
13817       hardcode_minus_L=yes
13818       allow_undefined_flag=unsupported
13819       shrext_cmds=.dll
13820       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13821         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13822         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13823         $ECHO EXPORTS >> $output_objdir/$libname.def~
13824         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13825         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13826         emximp -o $lib $output_objdir/$libname.def'
13827       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13828         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13829         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13830         $ECHO EXPORTS >> $output_objdir/$libname.def~
13831         prefix_cmds="$SED"~
13832         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13833           prefix_cmds="$prefix_cmds -e 1d";
13834         fi~
13835         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13836         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13837         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13838         emximp -o $lib $output_objdir/$libname.def'
13839       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13840       enable_shared_with_static_runtimes=yes
13841       ;;
13842
13843     osf3*)
13844       if test yes = "$GCC"; then
13845         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13846         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'
13847       else
13848         allow_undefined_flag=' -expect_unresolved \*'
13849         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'
13850       fi
13851       archive_cmds_need_lc='no'
13852       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13853       hardcode_libdir_separator=:
13854       ;;
13855
13856     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13857       if test yes = "$GCC"; then
13858         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13859         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'
13860         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13861       else
13862         allow_undefined_flag=' -expect_unresolved \*'
13863         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'
13864         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~
13865           $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'
13866
13867         # Both c and cxx compiler support -rpath directly
13868         hardcode_libdir_flag_spec='-rpath $libdir'
13869       fi
13870       archive_cmds_need_lc='no'
13871       hardcode_libdir_separator=:
13872       ;;
13873
13874     solaris*)
13875       no_undefined_flag=' -z defs'
13876       if test yes = "$GCC"; then
13877         wlarc='$wl'
13878         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13879         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13880           $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'
13881       else
13882         case `$CC -V 2>&1` in
13883         *"Compilers 5.0"*)
13884           wlarc=''
13885           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13887             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13888           ;;
13889         *)
13890           wlarc='$wl'
13891           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13892           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13893             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13894           ;;
13895         esac
13896       fi
13897       hardcode_libdir_flag_spec='-R$libdir'
13898       hardcode_shlibpath_var=no
13899       case $host_os in
13900       solaris2.[0-5] | solaris2.[0-5].*) ;;
13901       *)
13902         # The compiler driver will combine and reorder linker options,
13903         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13904         # but is careful enough not to reorder.
13905         # Supported since Solaris 2.6 (maybe 2.5.1?)
13906         if test yes = "$GCC"; then
13907           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13908         else
13909           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13910         fi
13911         ;;
13912       esac
13913       link_all_deplibs=yes
13914       ;;
13915
13916     sunos4*)
13917       if test sequent = "$host_vendor"; then
13918         # Use $CC to link under sequent, because it throws in some extra .o
13919         # files that make .init and .fini sections work.
13920         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13921       else
13922         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13923       fi
13924       hardcode_libdir_flag_spec='-L$libdir'
13925       hardcode_direct=yes
13926       hardcode_minus_L=yes
13927       hardcode_shlibpath_var=no
13928       ;;
13929
13930     sysv4)
13931       case $host_vendor in
13932         sni)
13933           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934           hardcode_direct=yes # is this really true???
13935         ;;
13936         siemens)
13937           ## LD is ld it makes a PLAMLIB
13938           ## CC just makes a GrossModule.
13939           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13940           reload_cmds='$CC -r -o $output$reload_objs'
13941           hardcode_direct=no
13942         ;;
13943         motorola)
13944           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13945           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13946         ;;
13947       esac
13948       runpath_var='LD_RUN_PATH'
13949       hardcode_shlibpath_var=no
13950       ;;
13951
13952     sysv4.3*)
13953       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13954       hardcode_shlibpath_var=no
13955       export_dynamic_flag_spec='-Bexport'
13956       ;;
13957
13958     sysv4*MP*)
13959       if test -d /usr/nec; then
13960         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13961         hardcode_shlibpath_var=no
13962         runpath_var=LD_RUN_PATH
13963         hardcode_runpath_var=yes
13964         ld_shlibs=yes
13965       fi
13966       ;;
13967
13968     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13969       no_undefined_flag='$wl-z,text'
13970       archive_cmds_need_lc=no
13971       hardcode_shlibpath_var=no
13972       runpath_var='LD_RUN_PATH'
13973
13974       if test yes = "$GCC"; then
13975         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13976         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13977       else
13978         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13979         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13980       fi
13981       ;;
13982
13983     sysv5* | sco3.2v5* | sco5v6*)
13984       # Note: We CANNOT use -z defs as we might desire, because we do not
13985       # link with -lc, and that would cause any symbols used from libc to
13986       # always be unresolved, which means just about no library would
13987       # ever link correctly.  If we're not using GNU ld we use -z text
13988       # though, which does catch some bad symbols but isn't as heavy-handed
13989       # as -z defs.
13990       no_undefined_flag='$wl-z,text'
13991       allow_undefined_flag='$wl-z,nodefs'
13992       archive_cmds_need_lc=no
13993       hardcode_shlibpath_var=no
13994       hardcode_libdir_flag_spec='$wl-R,$libdir'
13995       hardcode_libdir_separator=':'
13996       link_all_deplibs=yes
13997       export_dynamic_flag_spec='$wl-Bexport'
13998       runpath_var='LD_RUN_PATH'
13999
14000       if test yes = "$GCC"; then
14001         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14002         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14003       else
14004         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14005         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14006       fi
14007       ;;
14008
14009     uts4*)
14010       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14011       hardcode_libdir_flag_spec='-L$libdir'
14012       hardcode_shlibpath_var=no
14013       ;;
14014
14015     *)
14016       ld_shlibs=no
14017       ;;
14018     esac
14019
14020     if test sni = "$host_vendor"; then
14021       case $host in
14022       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14023         export_dynamic_flag_spec='$wl-Blargedynsym'
14024         ;;
14025       esac
14026     fi
14027   fi
14028
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14030 $as_echo "$ld_shlibs" >&6; }
14031 test no = "$ld_shlibs" && can_build_shared=no
14032
14033 with_gnu_ld=$with_gnu_ld
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049 #
14050 # Do we need to explicitly link libc?
14051 #
14052 case "x$archive_cmds_need_lc" in
14053 x|xyes)
14054   # Assume -lc should be added
14055   archive_cmds_need_lc=yes
14056
14057   if test yes,yes = "$GCC,$enable_shared"; then
14058     case $archive_cmds in
14059     *'~'*)
14060       # FIXME: we may have to deal with multi-command sequences.
14061       ;;
14062     '$CC '*)
14063       # Test whether the compiler implicitly links with -lc since on some
14064       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14065       # to ld, don't add -lc before -lgcc.
14066       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14067 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14068 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14069   $as_echo_n "(cached) " >&6
14070 else
14071   $RM conftest*
14072         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14073
14074         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14075   (eval $ac_compile) 2>&5
14076   ac_status=$?
14077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14078   test $ac_status = 0; } 2>conftest.err; then
14079           soname=conftest
14080           lib=conftest
14081           libobjs=conftest.$ac_objext
14082           deplibs=
14083           wl=$lt_prog_compiler_wl
14084           pic_flag=$lt_prog_compiler_pic
14085           compiler_flags=-v
14086           linker_flags=-v
14087           verstring=
14088           output_objdir=.
14089           libname=conftest
14090           lt_save_allow_undefined_flag=$allow_undefined_flag
14091           allow_undefined_flag=
14092           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14093   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14094   ac_status=$?
14095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096   test $ac_status = 0; }
14097           then
14098             lt_cv_archive_cmds_need_lc=no
14099           else
14100             lt_cv_archive_cmds_need_lc=yes
14101           fi
14102           allow_undefined_flag=$lt_save_allow_undefined_flag
14103         else
14104           cat conftest.err 1>&5
14105         fi
14106         $RM conftest*
14107
14108 fi
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14110 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14111       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14112       ;;
14113     esac
14114   fi
14115   ;;
14116 esac
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14270 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14271
14272 if test yes = "$GCC"; then
14273   case $host_os in
14274     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14275     *) lt_awk_arg='/^libraries:/' ;;
14276   esac
14277   case $host_os in
14278     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14279     *) lt_sed_strip_eq='s|=/|/|g' ;;
14280   esac
14281   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14282   case $lt_search_path_spec in
14283   *\;*)
14284     # if the path contains ";" then we assume it to be the separator
14285     # otherwise default to the standard path separator (i.e. ":") - it is
14286     # assumed that no part of a normal pathname contains ";" but that should
14287     # okay in the real world where ";" in dirpaths is itself problematic.
14288     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14289     ;;
14290   *)
14291     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14292     ;;
14293   esac
14294   # Ok, now we have the path, separated by spaces, we can step through it
14295   # and add multilib dir if necessary...
14296   lt_tmp_lt_search_path_spec=
14297   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14298   # ...but if some path component already ends with the multilib dir we assume
14299   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14300   case "$lt_multi_os_dir; $lt_search_path_spec " in
14301   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14302     lt_multi_os_dir=
14303     ;;
14304   esac
14305   for lt_sys_path in $lt_search_path_spec; do
14306     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14307       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14308     elif test -n "$lt_multi_os_dir"; then
14309       test -d "$lt_sys_path" && \
14310         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14311     fi
14312   done
14313   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14314 BEGIN {RS = " "; FS = "/|\n";} {
14315   lt_foo = "";
14316   lt_count = 0;
14317   for (lt_i = NF; lt_i > 0; lt_i--) {
14318     if ($lt_i != "" && $lt_i != ".") {
14319       if ($lt_i == "..") {
14320         lt_count++;
14321       } else {
14322         if (lt_count == 0) {
14323           lt_foo = "/" $lt_i lt_foo;
14324         } else {
14325           lt_count--;
14326         }
14327       }
14328     }
14329   }
14330   if (lt_foo != "") { lt_freq[lt_foo]++; }
14331   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14332 }'`
14333   # AWK program above erroneously prepends '/' to C:/dos/paths
14334   # for these hosts.
14335   case $host_os in
14336     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14337       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14338   esac
14339   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14340 else
14341   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14342 fi
14343 library_names_spec=
14344 libname_spec='lib$name'
14345 soname_spec=
14346 shrext_cmds=.so
14347 postinstall_cmds=
14348 postuninstall_cmds=
14349 finish_cmds=
14350 finish_eval=
14351 shlibpath_var=
14352 shlibpath_overrides_runpath=unknown
14353 version_type=none
14354 dynamic_linker="$host_os ld.so"
14355 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14356 need_lib_prefix=unknown
14357 hardcode_into_libs=no
14358
14359 # when you set need_version to no, make sure it does not cause -set_version
14360 # flags to be left without arguments
14361 need_version=unknown
14362
14363
14364
14365 case $host_os in
14366 aix3*)
14367   version_type=linux # correct to gnu/linux during the next big refactor
14368   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14369   shlibpath_var=LIBPATH
14370
14371   # AIX 3 has no versioning support, so we append a major version to the name.
14372   soname_spec='$libname$release$shared_ext$major'
14373   ;;
14374
14375 aix[4-9]*)
14376   version_type=linux # correct to gnu/linux during the next big refactor
14377   need_lib_prefix=no
14378   need_version=no
14379   hardcode_into_libs=yes
14380   if test ia64 = "$host_cpu"; then
14381     # AIX 5 supports IA64
14382     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14383     shlibpath_var=LD_LIBRARY_PATH
14384   else
14385     # With GCC up to 2.95.x, collect2 would create an import file
14386     # for dependence libraries.  The import file would start with
14387     # the line '#! .'.  This would cause the generated library to
14388     # depend on '.', always an invalid library.  This was fixed in
14389     # development snapshots of GCC prior to 3.0.
14390     case $host_os in
14391       aix4 | aix4.[01] | aix4.[01].*)
14392       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14393            echo ' yes '
14394            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14395         :
14396       else
14397         can_build_shared=no
14398       fi
14399       ;;
14400     esac
14401     # Using Import Files as archive members, it is possible to support
14402     # filename-based versioning of shared library archives on AIX. While
14403     # this would work for both with and without runtime linking, it will
14404     # prevent static linking of such archives. So we do filename-based
14405     # shared library versioning with .so extension only, which is used
14406     # when both runtime linking and shared linking is enabled.
14407     # Unfortunately, runtime linking may impact performance, so we do
14408     # not want this to be the default eventually. Also, we use the
14409     # versioned .so libs for executables only if there is the -brtl
14410     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14411     # To allow for filename-based versioning support, we need to create
14412     # libNAME.so.V as an archive file, containing:
14413     # *) an Import File, referring to the versioned filename of the
14414     #    archive as well as the shared archive member, telling the
14415     #    bitwidth (32 or 64) of that shared object, and providing the
14416     #    list of exported symbols of that shared object, eventually
14417     #    decorated with the 'weak' keyword
14418     # *) the shared object with the F_LOADONLY flag set, to really avoid
14419     #    it being seen by the linker.
14420     # At run time we better use the real file rather than another symlink,
14421     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14422
14423     case $with_aix_soname,$aix_use_runtimelinking in
14424     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14425     # soname into executable. Probably we can add versioning support to
14426     # collect2, so additional links can be useful in future.
14427     aix,yes) # traditional libtool
14428       dynamic_linker='AIX unversionable lib.so'
14429       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14430       # instead of lib<name>.a to let people know that these are not
14431       # typical AIX shared libraries.
14432       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14433       ;;
14434     aix,no) # traditional AIX only
14435       dynamic_linker='AIX lib.a(lib.so.V)'
14436       # We preserve .a as extension for shared libraries through AIX4.2
14437       # and later when we are not doing run time linking.
14438       library_names_spec='$libname$release.a $libname.a'
14439       soname_spec='$libname$release$shared_ext$major'
14440       ;;
14441     svr4,*) # full svr4 only
14442       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14443       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14444       # We do not specify a path in Import Files, so LIBPATH fires.
14445       shlibpath_overrides_runpath=yes
14446       ;;
14447     *,yes) # both, prefer svr4
14448       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14449       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14450       # unpreferred sharedlib libNAME.a needs extra handling
14451       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"'
14452       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"'
14453       # We do not specify a path in Import Files, so LIBPATH fires.
14454       shlibpath_overrides_runpath=yes
14455       ;;
14456     *,no) # both, prefer aix
14457       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14458       library_names_spec='$libname$release.a $libname.a'
14459       soname_spec='$libname$release$shared_ext$major'
14460       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14461       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)'
14462       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"'
14463       ;;
14464     esac
14465     shlibpath_var=LIBPATH
14466   fi
14467   ;;
14468
14469 amigaos*)
14470   case $host_cpu in
14471   powerpc)
14472     # Since July 2007 AmigaOS4 officially supports .so libraries.
14473     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14474     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14475     ;;
14476   m68k)
14477     library_names_spec='$libname.ixlibrary $libname.a'
14478     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14479     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'
14480     ;;
14481   esac
14482   ;;
14483
14484 beos*)
14485   library_names_spec='$libname$shared_ext'
14486   dynamic_linker="$host_os ld.so"
14487   shlibpath_var=LIBRARY_PATH
14488   ;;
14489
14490 bsdi[45]*)
14491   version_type=linux # correct to gnu/linux during the next big refactor
14492   need_version=no
14493   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14494   soname_spec='$libname$release$shared_ext$major'
14495   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14496   shlibpath_var=LD_LIBRARY_PATH
14497   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14498   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14499   # the default ld.so.conf also contains /usr/contrib/lib and
14500   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14501   # libtool to hard-code these into programs
14502   ;;
14503
14504 cygwin* | mingw* | pw32* | cegcc*)
14505   version_type=windows
14506   shrext_cmds=.dll
14507   need_version=no
14508   need_lib_prefix=no
14509
14510   case $GCC,$cc_basename in
14511   yes,*)
14512     # gcc
14513     library_names_spec='$libname.dll.a'
14514     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14515     postinstall_cmds='base_file=`basename \$file`~
14516       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14517       dldir=$destdir/`dirname \$dlpath`~
14518       test -d \$dldir || mkdir -p \$dldir~
14519       $install_prog $dir/$dlname \$dldir/$dlname~
14520       chmod a+x \$dldir/$dlname~
14521       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14522         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14523       fi'
14524     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14525       dlpath=$dir/\$dldll~
14526        $RM \$dlpath'
14527     shlibpath_overrides_runpath=yes
14528
14529     case $host_os in
14530     cygwin*)
14531       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14532       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14533
14534       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14535       ;;
14536     mingw* | cegcc*)
14537       # MinGW DLLs use traditional 'lib' prefix
14538       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14539       ;;
14540     pw32*)
14541       # pw32 DLLs use 'pw' prefix rather than 'lib'
14542       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14543       ;;
14544     esac
14545     dynamic_linker='Win32 ld.exe'
14546     ;;
14547
14548   *,cl*)
14549     # Native MSVC
14550     libname_spec='$name'
14551     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14552     library_names_spec='$libname.dll.lib'
14553
14554     case $build_os in
14555     mingw*)
14556       sys_lib_search_path_spec=
14557       lt_save_ifs=$IFS
14558       IFS=';'
14559       for lt_path in $LIB
14560       do
14561         IFS=$lt_save_ifs
14562         # Let DOS variable expansion print the short 8.3 style file name.
14563         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14564         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14565       done
14566       IFS=$lt_save_ifs
14567       # Convert to MSYS style.
14568       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14569       ;;
14570     cygwin*)
14571       # Convert to unix form, then to dos form, then back to unix form
14572       # but this time dos style (no spaces!) so that the unix form looks
14573       # like /cygdrive/c/PROGRA~1:/cygdr...
14574       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14575       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14576       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14577       ;;
14578     *)
14579       sys_lib_search_path_spec=$LIB
14580       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14581         # It is most probably a Windows format PATH.
14582         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14583       else
14584         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14585       fi
14586       # FIXME: find the short name or the path components, as spaces are
14587       # common. (e.g. "Program Files" -> "PROGRA~1")
14588       ;;
14589     esac
14590
14591     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14592     postinstall_cmds='base_file=`basename \$file`~
14593       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14594       dldir=$destdir/`dirname \$dlpath`~
14595       test -d \$dldir || mkdir -p \$dldir~
14596       $install_prog $dir/$dlname \$dldir/$dlname'
14597     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14598       dlpath=$dir/\$dldll~
14599        $RM \$dlpath'
14600     shlibpath_overrides_runpath=yes
14601     dynamic_linker='Win32 link.exe'
14602     ;;
14603
14604   *)
14605     # Assume MSVC wrapper
14606     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14607     dynamic_linker='Win32 ld.exe'
14608     ;;
14609   esac
14610   # FIXME: first we should search . and the directory the executable is in
14611   shlibpath_var=PATH
14612   ;;
14613
14614 darwin* | rhapsody*)
14615   dynamic_linker="$host_os dyld"
14616   version_type=darwin
14617   need_lib_prefix=no
14618   need_version=no
14619   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14620   soname_spec='$libname$release$major$shared_ext'
14621   shlibpath_overrides_runpath=yes
14622   shlibpath_var=DYLD_LIBRARY_PATH
14623   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14624
14625   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14626   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14627   ;;
14628
14629 dgux*)
14630   version_type=linux # correct to gnu/linux during the next big refactor
14631   need_lib_prefix=no
14632   need_version=no
14633   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14634   soname_spec='$libname$release$shared_ext$major'
14635   shlibpath_var=LD_LIBRARY_PATH
14636   ;;
14637
14638 freebsd* | dragonfly*)
14639   # DragonFly does not have aout.  When/if they implement a new
14640   # versioning mechanism, adjust this.
14641   if test -x /usr/bin/objformat; then
14642     objformat=`/usr/bin/objformat`
14643   else
14644     case $host_os in
14645     freebsd[23].*) objformat=aout ;;
14646     *) objformat=elf ;;
14647     esac
14648   fi
14649   version_type=freebsd-$objformat
14650   case $version_type in
14651     freebsd-elf*)
14652       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14653       soname_spec='$libname$release$shared_ext$major'
14654       need_version=no
14655       need_lib_prefix=no
14656       ;;
14657     freebsd-*)
14658       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14659       need_version=yes
14660       ;;
14661   esac
14662   shlibpath_var=LD_LIBRARY_PATH
14663   case $host_os in
14664   freebsd2.*)
14665     shlibpath_overrides_runpath=yes
14666     ;;
14667   freebsd3.[01]* | freebsdelf3.[01]*)
14668     shlibpath_overrides_runpath=yes
14669     hardcode_into_libs=yes
14670     ;;
14671   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14672   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14673     shlibpath_overrides_runpath=no
14674     hardcode_into_libs=yes
14675     ;;
14676   *) # from 4.6 on, and DragonFly
14677     shlibpath_overrides_runpath=yes
14678     hardcode_into_libs=yes
14679     ;;
14680   esac
14681   ;;
14682
14683 haiku*)
14684   version_type=linux # correct to gnu/linux during the next big refactor
14685   need_lib_prefix=no
14686   need_version=no
14687   dynamic_linker="$host_os runtime_loader"
14688   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14689   soname_spec='$libname$release$shared_ext$major'
14690   shlibpath_var=LIBRARY_PATH
14691   shlibpath_overrides_runpath=no
14692   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14693   hardcode_into_libs=yes
14694   ;;
14695
14696 hpux9* | hpux10* | hpux11*)
14697   # Give a soname corresponding to the major version so that dld.sl refuses to
14698   # link against other versions.
14699   version_type=sunos
14700   need_lib_prefix=no
14701   need_version=no
14702   case $host_cpu in
14703   ia64*)
14704     shrext_cmds='.so'
14705     hardcode_into_libs=yes
14706     dynamic_linker="$host_os dld.so"
14707     shlibpath_var=LD_LIBRARY_PATH
14708     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14709     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14710     soname_spec='$libname$release$shared_ext$major'
14711     if test 32 = "$HPUX_IA64_MODE"; then
14712       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14713       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14714     else
14715       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14716       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14717     fi
14718     ;;
14719   hppa*64*)
14720     shrext_cmds='.sl'
14721     hardcode_into_libs=yes
14722     dynamic_linker="$host_os dld.sl"
14723     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14724     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14725     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14726     soname_spec='$libname$release$shared_ext$major'
14727     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14728     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14729     ;;
14730   *)
14731     shrext_cmds='.sl'
14732     dynamic_linker="$host_os dld.sl"
14733     shlibpath_var=SHLIB_PATH
14734     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14735     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14736     soname_spec='$libname$release$shared_ext$major'
14737     ;;
14738   esac
14739   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14740   postinstall_cmds='chmod 555 $lib'
14741   # or fails outright, so override atomically:
14742   install_override_mode=555
14743   ;;
14744
14745 interix[3-9]*)
14746   version_type=linux # correct to gnu/linux during the next big refactor
14747   need_lib_prefix=no
14748   need_version=no
14749   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14750   soname_spec='$libname$release$shared_ext$major'
14751   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14752   shlibpath_var=LD_LIBRARY_PATH
14753   shlibpath_overrides_runpath=no
14754   hardcode_into_libs=yes
14755   ;;
14756
14757 irix5* | irix6* | nonstopux*)
14758   case $host_os in
14759     nonstopux*) version_type=nonstopux ;;
14760     *)
14761         if test yes = "$lt_cv_prog_gnu_ld"; then
14762                 version_type=linux # correct to gnu/linux during the next big refactor
14763         else
14764                 version_type=irix
14765         fi ;;
14766   esac
14767   need_lib_prefix=no
14768   need_version=no
14769   soname_spec='$libname$release$shared_ext$major'
14770   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14771   case $host_os in
14772   irix5* | nonstopux*)
14773     libsuff= shlibsuff=
14774     ;;
14775   *)
14776     case $LD in # libtool.m4 will add one of these switches to LD
14777     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14778       libsuff= shlibsuff= libmagic=32-bit;;
14779     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14780       libsuff=32 shlibsuff=N32 libmagic=N32;;
14781     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14782       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14783     *) libsuff= shlibsuff= libmagic=never-match;;
14784     esac
14785     ;;
14786   esac
14787   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14788   shlibpath_overrides_runpath=no
14789   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14790   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14791   hardcode_into_libs=yes
14792   ;;
14793
14794 # No shared lib support for Linux oldld, aout, or coff.
14795 linux*oldld* | linux*aout* | linux*coff*)
14796   dynamic_linker=no
14797   ;;
14798
14799 linux*android*)
14800   version_type=none # Android doesn't support versioned libraries.
14801   need_lib_prefix=no
14802   need_version=no
14803   library_names_spec='$libname$release$shared_ext'
14804   soname_spec='$libname$release$shared_ext'
14805   finish_cmds=
14806   shlibpath_var=LD_LIBRARY_PATH
14807   shlibpath_overrides_runpath=yes
14808
14809   # This implies no fast_install, which is unacceptable.
14810   # Some rework will be needed to allow for fast_install
14811   # before this can be enabled.
14812   hardcode_into_libs=yes
14813
14814   dynamic_linker='Android linker'
14815   # Don't embed -rpath directories since the linker doesn't support them.
14816   hardcode_libdir_flag_spec='-L$libdir'
14817   ;;
14818
14819 # This must be glibc/ELF.
14820 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14821   version_type=linux # correct to gnu/linux during the next big refactor
14822   need_lib_prefix=no
14823   need_version=no
14824   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14825   soname_spec='$libname$release$shared_ext$major'
14826   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14827   shlibpath_var=LD_LIBRARY_PATH
14828   shlibpath_overrides_runpath=no
14829
14830   # Some binutils ld are patched to set DT_RUNPATH
14831   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14832   $as_echo_n "(cached) " >&6
14833 else
14834   lt_cv_shlibpath_overrides_runpath=no
14835     save_LDFLAGS=$LDFLAGS
14836     save_libdir=$libdir
14837     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14838          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14839     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h.  */
14841
14842 int
14843 main ()
14844 {
14845
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_c_try_link "$LINENO"; then :
14851   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14852   lt_cv_shlibpath_overrides_runpath=yes
14853 fi
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext \
14856     conftest$ac_exeext conftest.$ac_ext
14857     LDFLAGS=$save_LDFLAGS
14858     libdir=$save_libdir
14859
14860 fi
14861
14862   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14863
14864   # This implies no fast_install, which is unacceptable.
14865   # Some rework will be needed to allow for fast_install
14866   # before this can be enabled.
14867   hardcode_into_libs=yes
14868
14869   # Ideally, we could use ldconfig to report *all* directores which are
14870   # searched for libraries, however this is still not possible.  Aside from not
14871   # being certain /sbin/ldconfig is available, command
14872   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14873   # even though it is searched at run-time.  Try to do the best guess by
14874   # appending ld.so.conf contents (and includes) to the search path.
14875   if test -f /etc/ld.so.conf; then
14876     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' ' '`
14877     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14878   fi
14879
14880   # We used to test for /lib/ld.so.1 and disable shared libraries on
14881   # powerpc, because MkLinux only supported shared libraries with the
14882   # GNU dynamic linker.  Since this was broken with cross compilers,
14883   # most powerpc-linux boxes support dynamic linking these days and
14884   # people can always --disable-shared, the test was removed, and we
14885   # assume the GNU/Linux dynamic linker is in use.
14886   dynamic_linker='GNU/Linux ld.so'
14887   ;;
14888
14889 netbsdelf*-gnu)
14890   version_type=linux
14891   need_lib_prefix=no
14892   need_version=no
14893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14894   soname_spec='${libname}${release}${shared_ext}$major'
14895   shlibpath_var=LD_LIBRARY_PATH
14896   shlibpath_overrides_runpath=no
14897   hardcode_into_libs=yes
14898   dynamic_linker='NetBSD ld.elf_so'
14899   ;;
14900
14901 netbsd*)
14902   version_type=sunos
14903   need_lib_prefix=no
14904   need_version=no
14905   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14906     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14907     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14908     dynamic_linker='NetBSD (a.out) ld.so'
14909   else
14910     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14911     soname_spec='$libname$release$shared_ext$major'
14912     dynamic_linker='NetBSD ld.elf_so'
14913   fi
14914   shlibpath_var=LD_LIBRARY_PATH
14915   shlibpath_overrides_runpath=yes
14916   hardcode_into_libs=yes
14917   ;;
14918
14919 newsos6)
14920   version_type=linux # correct to gnu/linux during the next big refactor
14921   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14922   shlibpath_var=LD_LIBRARY_PATH
14923   shlibpath_overrides_runpath=yes
14924   ;;
14925
14926 *nto* | *qnx*)
14927   version_type=qnx
14928   need_lib_prefix=no
14929   need_version=no
14930   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14931   soname_spec='$libname$release$shared_ext$major'
14932   shlibpath_var=LD_LIBRARY_PATH
14933   shlibpath_overrides_runpath=no
14934   hardcode_into_libs=yes
14935   dynamic_linker='ldqnx.so'
14936   ;;
14937
14938 openbsd* | bitrig*)
14939   version_type=sunos
14940   sys_lib_dlsearch_path_spec=/usr/lib
14941   need_lib_prefix=no
14942   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14943     need_version=no
14944   else
14945     need_version=yes
14946   fi
14947   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14948   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14949   shlibpath_var=LD_LIBRARY_PATH
14950   shlibpath_overrides_runpath=yes
14951   ;;
14952
14953 os2*)
14954   libname_spec='$name'
14955   version_type=windows
14956   shrext_cmds=.dll
14957   need_version=no
14958   need_lib_prefix=no
14959   # OS/2 can only load a DLL with a base name of 8 characters or less.
14960   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14961     v=$($ECHO $release$versuffix | tr -d .-);
14962     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14963     $ECHO $n$v`$shared_ext'
14964   library_names_spec='${libname}_dll.$libext'
14965   dynamic_linker='OS/2 ld.exe'
14966   shlibpath_var=BEGINLIBPATH
14967   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14968   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14969   postinstall_cmds='base_file=`basename \$file`~
14970     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14971     dldir=$destdir/`dirname \$dlpath`~
14972     test -d \$dldir || mkdir -p \$dldir~
14973     $install_prog $dir/$dlname \$dldir/$dlname~
14974     chmod a+x \$dldir/$dlname~
14975     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14976       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14977     fi'
14978   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14979     dlpath=$dir/\$dldll~
14980     $RM \$dlpath'
14981   ;;
14982
14983 osf3* | osf4* | osf5*)
14984   version_type=osf
14985   need_lib_prefix=no
14986   need_version=no
14987   soname_spec='$libname$release$shared_ext$major'
14988   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14989   shlibpath_var=LD_LIBRARY_PATH
14990   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14991   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14992   ;;
14993
14994 rdos*)
14995   dynamic_linker=no
14996   ;;
14997
14998 solaris*)
14999   version_type=linux # correct to gnu/linux during the next big refactor
15000   need_lib_prefix=no
15001   need_version=no
15002   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15003   soname_spec='$libname$release$shared_ext$major'
15004   shlibpath_var=LD_LIBRARY_PATH
15005   shlibpath_overrides_runpath=yes
15006   hardcode_into_libs=yes
15007   # ldd complains unless libraries are executable
15008   postinstall_cmds='chmod +x $lib'
15009   ;;
15010
15011 sunos4*)
15012   version_type=sunos
15013   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15014   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15015   shlibpath_var=LD_LIBRARY_PATH
15016   shlibpath_overrides_runpath=yes
15017   if test yes = "$with_gnu_ld"; then
15018     need_lib_prefix=no
15019   fi
15020   need_version=yes
15021   ;;
15022
15023 sysv4 | sysv4.3*)
15024   version_type=linux # correct to gnu/linux during the next big refactor
15025   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15026   soname_spec='$libname$release$shared_ext$major'
15027   shlibpath_var=LD_LIBRARY_PATH
15028   case $host_vendor in
15029     sni)
15030       shlibpath_overrides_runpath=no
15031       need_lib_prefix=no
15032       runpath_var=LD_RUN_PATH
15033       ;;
15034     siemens)
15035       need_lib_prefix=no
15036       ;;
15037     motorola)
15038       need_lib_prefix=no
15039       need_version=no
15040       shlibpath_overrides_runpath=no
15041       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15042       ;;
15043   esac
15044   ;;
15045
15046 sysv4*MP*)
15047   if test -d /usr/nec; then
15048     version_type=linux # correct to gnu/linux during the next big refactor
15049     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15050     soname_spec='$libname$shared_ext.$major'
15051     shlibpath_var=LD_LIBRARY_PATH
15052   fi
15053   ;;
15054
15055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15056   version_type=sco
15057   need_lib_prefix=no
15058   need_version=no
15059   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15060   soname_spec='$libname$release$shared_ext$major'
15061   shlibpath_var=LD_LIBRARY_PATH
15062   shlibpath_overrides_runpath=yes
15063   hardcode_into_libs=yes
15064   if test yes = "$with_gnu_ld"; then
15065     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15066   else
15067     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15068     case $host_os in
15069       sco3.2v5*)
15070         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15071         ;;
15072     esac
15073   fi
15074   sys_lib_dlsearch_path_spec='/usr/lib'
15075   ;;
15076
15077 tpf*)
15078   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15079   version_type=linux # correct to gnu/linux during the next big refactor
15080   need_lib_prefix=no
15081   need_version=no
15082   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15083   shlibpath_var=LD_LIBRARY_PATH
15084   shlibpath_overrides_runpath=no
15085   hardcode_into_libs=yes
15086   ;;
15087
15088 uts4*)
15089   version_type=linux # correct to gnu/linux during the next big refactor
15090   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15091   soname_spec='$libname$release$shared_ext$major'
15092   shlibpath_var=LD_LIBRARY_PATH
15093   ;;
15094
15095 *)
15096   dynamic_linker=no
15097   ;;
15098 esac
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15100 $as_echo "$dynamic_linker" >&6; }
15101 test no = "$dynamic_linker" && can_build_shared=no
15102
15103 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15104 if test yes = "$GCC"; then
15105   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15106 fi
15107
15108 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15109   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15110 fi
15111
15112 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15113   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15114 fi
15115
15116 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15117 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15118
15119 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15120 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15121
15122 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15123 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15222 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15223 hardcode_action=
15224 if test -n "$hardcode_libdir_flag_spec" ||
15225    test -n "$runpath_var" ||
15226    test yes = "$hardcode_automatic"; then
15227
15228   # We can hardcode non-existent directories.
15229   if test no != "$hardcode_direct" &&
15230      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15231      # have to relink, otherwise we might link with an installed library
15232      # when we should be linking with a yet-to-be-installed one
15233      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15234      test no != "$hardcode_minus_L"; then
15235     # Linking always hardcodes the temporary library directory.
15236     hardcode_action=relink
15237   else
15238     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15239     hardcode_action=immediate
15240   fi
15241 else
15242   # We cannot hardcode anything, or else we can only hardcode existing
15243   # directories.
15244   hardcode_action=unsupported
15245 fi
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15247 $as_echo "$hardcode_action" >&6; }
15248
15249 if test relink = "$hardcode_action" ||
15250    test yes = "$inherit_rpath"; then
15251   # Fast installation is not supported
15252   enable_fast_install=no
15253 elif test yes = "$shlibpath_overrides_runpath" ||
15254      test no = "$enable_shared"; then
15255   # Fast installation is not necessary
15256   enable_fast_install=needless
15257 fi
15258
15259
15260
15261
15262
15263
15264   if test yes != "$enable_dlopen"; then
15265   enable_dlopen=unknown
15266   enable_dlopen_self=unknown
15267   enable_dlopen_self_static=unknown
15268 else
15269   lt_cv_dlopen=no
15270   lt_cv_dlopen_libs=
15271
15272   case $host_os in
15273   beos*)
15274     lt_cv_dlopen=load_add_on
15275     lt_cv_dlopen_libs=
15276     lt_cv_dlopen_self=yes
15277     ;;
15278
15279   mingw* | pw32* | cegcc*)
15280     lt_cv_dlopen=LoadLibrary
15281     lt_cv_dlopen_libs=
15282     ;;
15283
15284   cygwin*)
15285     lt_cv_dlopen=dlopen
15286     lt_cv_dlopen_libs=
15287     ;;
15288
15289   darwin*)
15290     # if libdl is installed we need to link against it
15291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15292 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15293 if ${ac_cv_lib_dl_dlopen+:} false; then :
15294   $as_echo_n "(cached) " >&6
15295 else
15296   ac_check_lib_save_LIBS=$LIBS
15297 LIBS="-ldl  $LIBS"
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h.  */
15300
15301 /* Override any GCC internal prototype to avoid an error.
15302    Use char because int might match the return type of a GCC
15303    builtin and then its argument prototype would still apply.  */
15304 #ifdef __cplusplus
15305 extern "C"
15306 #endif
15307 char dlopen ();
15308 int
15309 main ()
15310 {
15311 return dlopen ();
15312   ;
15313   return 0;
15314 }
15315 _ACEOF
15316 if ac_fn_c_try_link "$LINENO"; then :
15317   ac_cv_lib_dl_dlopen=yes
15318 else
15319   ac_cv_lib_dl_dlopen=no
15320 fi
15321 rm -f core conftest.err conftest.$ac_objext \
15322     conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15324 fi
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15326 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15327 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15328   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15329 else
15330
15331     lt_cv_dlopen=dyld
15332     lt_cv_dlopen_libs=
15333     lt_cv_dlopen_self=yes
15334
15335 fi
15336
15337     ;;
15338
15339   tpf*)
15340     # Don't try to run any link tests for TPF.  We know it's impossible
15341     # because TPF is a cross-compiler, and we know how we open DSOs.
15342     lt_cv_dlopen=dlopen
15343     lt_cv_dlopen_libs=
15344     lt_cv_dlopen_self=no
15345     ;;
15346
15347   *)
15348     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15349 if test "x$ac_cv_func_shl_load" = xyes; then :
15350   lt_cv_dlopen=shl_load
15351 else
15352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15353 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15354 if ${ac_cv_lib_dld_shl_load+:} false; then :
15355   $as_echo_n "(cached) " >&6
15356 else
15357   ac_check_lib_save_LIBS=$LIBS
15358 LIBS="-ldld  $LIBS"
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h.  */
15361
15362 /* Override any GCC internal prototype to avoid an error.
15363    Use char because int might match the return type of a GCC
15364    builtin and then its argument prototype would still apply.  */
15365 #ifdef __cplusplus
15366 extern "C"
15367 #endif
15368 char shl_load ();
15369 int
15370 main ()
15371 {
15372 return shl_load ();
15373   ;
15374   return 0;
15375 }
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378   ac_cv_lib_dld_shl_load=yes
15379 else
15380   ac_cv_lib_dld_shl_load=no
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext \
15383     conftest$ac_exeext conftest.$ac_ext
15384 LIBS=$ac_check_lib_save_LIBS
15385 fi
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15387 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15388 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15389   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15390 else
15391   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15392 if test "x$ac_cv_func_dlopen" = xyes; then :
15393   lt_cv_dlopen=dlopen
15394 else
15395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15396 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15397 if ${ac_cv_lib_dl_dlopen+:} false; then :
15398   $as_echo_n "(cached) " >&6
15399 else
15400   ac_check_lib_save_LIBS=$LIBS
15401 LIBS="-ldl  $LIBS"
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h.  */
15404
15405 /* Override any GCC internal prototype to avoid an error.
15406    Use char because int might match the return type of a GCC
15407    builtin and then its argument prototype would still apply.  */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 char dlopen ();
15412 int
15413 main ()
15414 {
15415 return dlopen ();
15416   ;
15417   return 0;
15418 }
15419 _ACEOF
15420 if ac_fn_c_try_link "$LINENO"; then :
15421   ac_cv_lib_dl_dlopen=yes
15422 else
15423   ac_cv_lib_dl_dlopen=no
15424 fi
15425 rm -f core conftest.err conftest.$ac_objext \
15426     conftest$ac_exeext conftest.$ac_ext
15427 LIBS=$ac_check_lib_save_LIBS
15428 fi
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15430 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15431 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15432   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15433 else
15434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15435 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15436 if ${ac_cv_lib_svld_dlopen+:} false; then :
15437   $as_echo_n "(cached) " >&6
15438 else
15439   ac_check_lib_save_LIBS=$LIBS
15440 LIBS="-lsvld  $LIBS"
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h.  */
15443
15444 /* Override any GCC internal prototype to avoid an error.
15445    Use char because int might match the return type of a GCC
15446    builtin and then its argument prototype would still apply.  */
15447 #ifdef __cplusplus
15448 extern "C"
15449 #endif
15450 char dlopen ();
15451 int
15452 main ()
15453 {
15454 return dlopen ();
15455   ;
15456   return 0;
15457 }
15458 _ACEOF
15459 if ac_fn_c_try_link "$LINENO"; then :
15460   ac_cv_lib_svld_dlopen=yes
15461 else
15462   ac_cv_lib_svld_dlopen=no
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext \
15465     conftest$ac_exeext conftest.$ac_ext
15466 LIBS=$ac_check_lib_save_LIBS
15467 fi
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15469 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15470 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15471   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15472 else
15473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15474 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15475 if ${ac_cv_lib_dld_dld_link+:} false; then :
15476   $as_echo_n "(cached) " >&6
15477 else
15478   ac_check_lib_save_LIBS=$LIBS
15479 LIBS="-ldld  $LIBS"
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h.  */
15482
15483 /* Override any GCC internal prototype to avoid an error.
15484    Use char because int might match the return type of a GCC
15485    builtin and then its argument prototype would still apply.  */
15486 #ifdef __cplusplus
15487 extern "C"
15488 #endif
15489 char dld_link ();
15490 int
15491 main ()
15492 {
15493 return dld_link ();
15494   ;
15495   return 0;
15496 }
15497 _ACEOF
15498 if ac_fn_c_try_link "$LINENO"; then :
15499   ac_cv_lib_dld_dld_link=yes
15500 else
15501   ac_cv_lib_dld_dld_link=no
15502 fi
15503 rm -f core conftest.err conftest.$ac_objext \
15504     conftest$ac_exeext conftest.$ac_ext
15505 LIBS=$ac_check_lib_save_LIBS
15506 fi
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15508 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15509 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15510   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15511 fi
15512
15513
15514 fi
15515
15516
15517 fi
15518
15519
15520 fi
15521
15522
15523 fi
15524
15525
15526 fi
15527
15528     ;;
15529   esac
15530
15531   if test no = "$lt_cv_dlopen"; then
15532     enable_dlopen=no
15533   else
15534     enable_dlopen=yes
15535   fi
15536
15537   case $lt_cv_dlopen in
15538   dlopen)
15539     save_CPPFLAGS=$CPPFLAGS
15540     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15541
15542     save_LDFLAGS=$LDFLAGS
15543     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15544
15545     save_LIBS=$LIBS
15546     LIBS="$lt_cv_dlopen_libs $LIBS"
15547
15548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15549 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15550 if ${lt_cv_dlopen_self+:} false; then :
15551   $as_echo_n "(cached) " >&6
15552 else
15553           if test yes = "$cross_compiling"; then :
15554   lt_cv_dlopen_self=cross
15555 else
15556   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15557   lt_status=$lt_dlunknown
15558   cat > conftest.$ac_ext <<_LT_EOF
15559 #line $LINENO "configure"
15560 #include "confdefs.h"
15561
15562 #if HAVE_DLFCN_H
15563 #include <dlfcn.h>
15564 #endif
15565
15566 #include <stdio.h>
15567
15568 #ifdef RTLD_GLOBAL
15569 #  define LT_DLGLOBAL           RTLD_GLOBAL
15570 #else
15571 #  ifdef DL_GLOBAL
15572 #    define LT_DLGLOBAL         DL_GLOBAL
15573 #  else
15574 #    define LT_DLGLOBAL         0
15575 #  endif
15576 #endif
15577
15578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15579    find out it does not work in some platform. */
15580 #ifndef LT_DLLAZY_OR_NOW
15581 #  ifdef RTLD_LAZY
15582 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15583 #  else
15584 #    ifdef DL_LAZY
15585 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15586 #    else
15587 #      ifdef RTLD_NOW
15588 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15589 #      else
15590 #        ifdef DL_NOW
15591 #          define LT_DLLAZY_OR_NOW      DL_NOW
15592 #        else
15593 #          define LT_DLLAZY_OR_NOW      0
15594 #        endif
15595 #      endif
15596 #    endif
15597 #  endif
15598 #endif
15599
15600 /* When -fvisibility=hidden is used, assume the code has been annotated
15601    correspondingly for the symbols needed.  */
15602 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15603 int fnord () __attribute__((visibility("default")));
15604 #endif
15605
15606 int fnord () { return 42; }
15607 int main ()
15608 {
15609   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15610   int status = $lt_dlunknown;
15611
15612   if (self)
15613     {
15614       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15615       else
15616         {
15617           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15618           else puts (dlerror ());
15619         }
15620       /* dlclose (self); */
15621     }
15622   else
15623     puts (dlerror ());
15624
15625   return status;
15626 }
15627 _LT_EOF
15628   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15629   (eval $ac_link) 2>&5
15630   ac_status=$?
15631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15632   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15633     (./conftest; exit; ) >&5 2>/dev/null
15634     lt_status=$?
15635     case x$lt_status in
15636       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15637       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15638       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15639     esac
15640   else :
15641     # compilation failed
15642     lt_cv_dlopen_self=no
15643   fi
15644 fi
15645 rm -fr conftest*
15646
15647
15648 fi
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15650 $as_echo "$lt_cv_dlopen_self" >&6; }
15651
15652     if test yes = "$lt_cv_dlopen_self"; then
15653       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15654       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15655 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15656 if ${lt_cv_dlopen_self_static+:} false; then :
15657   $as_echo_n "(cached) " >&6
15658 else
15659           if test yes = "$cross_compiling"; then :
15660   lt_cv_dlopen_self_static=cross
15661 else
15662   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15663   lt_status=$lt_dlunknown
15664   cat > conftest.$ac_ext <<_LT_EOF
15665 #line $LINENO "configure"
15666 #include "confdefs.h"
15667
15668 #if HAVE_DLFCN_H
15669 #include <dlfcn.h>
15670 #endif
15671
15672 #include <stdio.h>
15673
15674 #ifdef RTLD_GLOBAL
15675 #  define LT_DLGLOBAL           RTLD_GLOBAL
15676 #else
15677 #  ifdef DL_GLOBAL
15678 #    define LT_DLGLOBAL         DL_GLOBAL
15679 #  else
15680 #    define LT_DLGLOBAL         0
15681 #  endif
15682 #endif
15683
15684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15685    find out it does not work in some platform. */
15686 #ifndef LT_DLLAZY_OR_NOW
15687 #  ifdef RTLD_LAZY
15688 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15689 #  else
15690 #    ifdef DL_LAZY
15691 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15692 #    else
15693 #      ifdef RTLD_NOW
15694 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15695 #      else
15696 #        ifdef DL_NOW
15697 #          define LT_DLLAZY_OR_NOW      DL_NOW
15698 #        else
15699 #          define LT_DLLAZY_OR_NOW      0
15700 #        endif
15701 #      endif
15702 #    endif
15703 #  endif
15704 #endif
15705
15706 /* When -fvisibility=hidden is used, assume the code has been annotated
15707    correspondingly for the symbols needed.  */
15708 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15709 int fnord () __attribute__((visibility("default")));
15710 #endif
15711
15712 int fnord () { return 42; }
15713 int main ()
15714 {
15715   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15716   int status = $lt_dlunknown;
15717
15718   if (self)
15719     {
15720       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15721       else
15722         {
15723           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15724           else puts (dlerror ());
15725         }
15726       /* dlclose (self); */
15727     }
15728   else
15729     puts (dlerror ());
15730
15731   return status;
15732 }
15733 _LT_EOF
15734   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15735   (eval $ac_link) 2>&5
15736   ac_status=$?
15737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15738   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15739     (./conftest; exit; ) >&5 2>/dev/null
15740     lt_status=$?
15741     case x$lt_status in
15742       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15743       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15744       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15745     esac
15746   else :
15747     # compilation failed
15748     lt_cv_dlopen_self_static=no
15749   fi
15750 fi
15751 rm -fr conftest*
15752
15753
15754 fi
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15756 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15757     fi
15758
15759     CPPFLAGS=$save_CPPFLAGS
15760     LDFLAGS=$save_LDFLAGS
15761     LIBS=$save_LIBS
15762     ;;
15763   esac
15764
15765   case $lt_cv_dlopen_self in
15766   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15767   *) enable_dlopen_self=unknown ;;
15768   esac
15769
15770   case $lt_cv_dlopen_self_static in
15771   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15772   *) enable_dlopen_self_static=unknown ;;
15773   esac
15774 fi
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792 striplib=
15793 old_striplib=
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15795 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15796 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15797   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15798   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800 $as_echo "yes" >&6; }
15801 else
15802 # FIXME - insert some real tests, host_os isn't really good enough
15803   case $host_os in
15804   darwin*)
15805     if test -n "$STRIP"; then
15806       striplib="$STRIP -x"
15807       old_striplib="$STRIP -S"
15808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15809 $as_echo "yes" >&6; }
15810     else
15811       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15812 $as_echo "no" >&6; }
15813     fi
15814     ;;
15815   *)
15816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15817 $as_echo "no" >&6; }
15818     ;;
15819   esac
15820 fi
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833   # Report what library types will actually be built
15834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15835 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15837 $as_echo "$can_build_shared" >&6; }
15838
15839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15840 $as_echo_n "checking whether to build shared libraries... " >&6; }
15841   test no = "$can_build_shared" && enable_shared=no
15842
15843   # On AIX, shared libraries and static libraries use the same namespace, and
15844   # are all built from PIC.
15845   case $host_os in
15846   aix3*)
15847     test yes = "$enable_shared" && enable_static=no
15848     if test -n "$RANLIB"; then
15849       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15850       postinstall_cmds='$RANLIB $lib'
15851     fi
15852     ;;
15853
15854   aix[4-9]*)
15855     if test ia64 != "$host_cpu"; then
15856       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15857       yes,aix,yes) ;;                   # shared object as lib.so file only
15858       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15859       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15860       esac
15861     fi
15862     ;;
15863   esac
15864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15865 $as_echo "$enable_shared" >&6; }
15866
15867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15868 $as_echo_n "checking whether to build static libraries... " >&6; }
15869   # Make sure either enable_shared or enable_static is yes.
15870   test yes = "$enable_shared" || enable_static=yes
15871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15872 $as_echo "$enable_static" >&6; }
15873
15874
15875
15876
15877 fi
15878 ac_ext=c
15879 ac_cpp='$CPP $CPPFLAGS'
15880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15883
15884 CC=$lt_save_CC
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900         ac_config_commands="$ac_config_commands libtool"
15901
15902
15903
15904
15905 # Only expand once:
15906
15907
15908
15909 cat >>confdefs.h <<_ACEOF
15910 #define SHELL "$SHELL"
15911 _ACEOF
15912
15913
15914
15915
15916
15917
15918
15919
15920 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15921         if test -n "$ac_tool_prefix"; then
15922   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15923 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15925 $as_echo_n "checking for $ac_word... " >&6; }
15926 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15927   $as_echo_n "(cached) " >&6
15928 else
15929   case $PKG_CONFIG in
15930   [\\/]* | ?:[\\/]*)
15931   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15932   ;;
15933   *)
15934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15935 for as_dir in $PATH
15936 do
15937   IFS=$as_save_IFS
15938   test -z "$as_dir" && as_dir=.
15939     for ac_exec_ext in '' $ac_executable_extensions; do
15940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15941     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15943     break 2
15944   fi
15945 done
15946   done
15947 IFS=$as_save_IFS
15948
15949   ;;
15950 esac
15951 fi
15952 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15953 if test -n "$PKG_CONFIG"; then
15954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15955 $as_echo "$PKG_CONFIG" >&6; }
15956 else
15957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958 $as_echo "no" >&6; }
15959 fi
15960
15961
15962 fi
15963 if test -z "$ac_cv_path_PKG_CONFIG"; then
15964   ac_pt_PKG_CONFIG=$PKG_CONFIG
15965   # Extract the first word of "pkg-config", so it can be a program name with args.
15966 set dummy pkg-config; ac_word=$2
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15968 $as_echo_n "checking for $ac_word... " >&6; }
15969 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15970   $as_echo_n "(cached) " >&6
15971 else
15972   case $ac_pt_PKG_CONFIG in
15973   [\\/]* | ?:[\\/]*)
15974   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15975   ;;
15976   *)
15977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15978 for as_dir in $PATH
15979 do
15980   IFS=$as_save_IFS
15981   test -z "$as_dir" && as_dir=.
15982     for ac_exec_ext in '' $ac_executable_extensions; do
15983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15984     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15986     break 2
15987   fi
15988 done
15989   done
15990 IFS=$as_save_IFS
15991
15992   ;;
15993 esac
15994 fi
15995 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15996 if test -n "$ac_pt_PKG_CONFIG"; then
15997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15998 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15999 else
16000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16001 $as_echo "no" >&6; }
16002 fi
16003
16004   if test "x$ac_pt_PKG_CONFIG" = x; then
16005     PKG_CONFIG=""
16006   else
16007     case $cross_compiling:$ac_tool_warned in
16008 yes:)
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16011 ac_tool_warned=yes ;;
16012 esac
16013     PKG_CONFIG=$ac_pt_PKG_CONFIG
16014   fi
16015 else
16016   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16017 fi
16018
16019 fi
16020 if test -n "$PKG_CONFIG"; then
16021         _pkg_min_version=0.9.0
16022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16023 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16024         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16025                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16026 $as_echo "yes" >&6; }
16027         else
16028                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16030                 PKG_CONFIG=""
16031         fi
16032 fi
16033
16034 pkg_failed=no
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
16036 $as_echo_n "checking for CHECK... " >&6; }
16037
16038 if test -n "$CHECK_CFLAGS"; then
16039     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
16040  elif test -n "$PKG_CONFIG"; then
16041     if test -n "$PKG_CONFIG" && \
16042     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
16043   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
16044   ac_status=$?
16045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16046   test $ac_status = 0; }; then
16047   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
16048                       test "x$?" != "x0" && pkg_failed=yes
16049 else
16050   pkg_failed=yes
16051 fi
16052  else
16053     pkg_failed=untried
16054 fi
16055 if test -n "$CHECK_LIBS"; then
16056     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
16057  elif test -n "$PKG_CONFIG"; then
16058     if test -n "$PKG_CONFIG" && \
16059     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
16060   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
16061   ac_status=$?
16062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16063   test $ac_status = 0; }; then
16064   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
16065                       test "x$?" != "x0" && pkg_failed=yes
16066 else
16067   pkg_failed=yes
16068 fi
16069  else
16070     pkg_failed=untried
16071 fi
16072
16073
16074
16075 if test $pkg_failed = yes; then
16076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077 $as_echo "no" >&6; }
16078
16079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16080         _pkg_short_errors_supported=yes
16081 else
16082         _pkg_short_errors_supported=no
16083 fi
16084         if test $_pkg_short_errors_supported = yes; then
16085                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
16086         else
16087                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
16088         fi
16089         # Put the nasty error message in config.log where it belongs
16090         echo "$CHECK_PKG_ERRORS" >&5
16091
16092         run_tests=no
16093 elif test $pkg_failed = untried; then
16094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095 $as_echo "no" >&6; }
16096         run_tests=no
16097 else
16098         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
16099         CHECK_LIBS=$pkg_cv_CHECK_LIBS
16100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16101 $as_echo "yes" >&6; }
16102         run_tests=yes
16103 fi
16104  if test "x$run_tests" = xyes; then
16105   RUN_TESTS_TRUE=
16106   RUN_TESTS_FALSE='#'
16107 else
16108   RUN_TESTS_TRUE='#'
16109   RUN_TESTS_FALSE=
16110 fi
16111
16112
16113 # Check for various header files and associated libraries.
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
16115 $as_echo_n "checking for library containing strerror... " >&6; }
16116 if ${ac_cv_search_strerror+:} false; then :
16117   $as_echo_n "(cached) " >&6
16118 else
16119   ac_func_search_save_LIBS=$LIBS
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h.  */
16122
16123 /* Override any GCC internal prototype to avoid an error.
16124    Use char because int might match the return type of a GCC
16125    builtin and then its argument prototype would still apply.  */
16126 #ifdef __cplusplus
16127 extern "C"
16128 #endif
16129 char strerror ();
16130 int
16131 main ()
16132 {
16133 return strerror ();
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 for ac_lib in '' cposix; do
16139   if test -z "$ac_lib"; then
16140     ac_res="none required"
16141   else
16142     ac_res=-l$ac_lib
16143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16144   fi
16145   if ac_fn_c_try_link "$LINENO"; then :
16146   ac_cv_search_strerror=$ac_res
16147 fi
16148 rm -f core conftest.err conftest.$ac_objext \
16149     conftest$ac_exeext
16150   if ${ac_cv_search_strerror+:} false; then :
16151   break
16152 fi
16153 done
16154 if ${ac_cv_search_strerror+:} false; then :
16155
16156 else
16157   ac_cv_search_strerror=no
16158 fi
16159 rm conftest.$ac_ext
16160 LIBS=$ac_func_search_save_LIBS
16161 fi
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
16163 $as_echo "$ac_cv_search_strerror" >&6; }
16164 ac_res=$ac_cv_search_strerror
16165 if test "$ac_res" != no; then :
16166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16167
16168 fi
16169
16170
16171
16172
16173
16174
16175           LIBC_FATAL_STDERR_=1
16176   export LIBC_FATAL_STDERR_
16177
16178 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16179 if test "x$ac_cv_type_size_t" = xyes; then :
16180
16181 else
16182
16183 cat >>confdefs.h <<_ACEOF
16184 #define size_t unsigned int
16185 _ACEOF
16186
16187 fi
16188
16189 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16190 # for constant arguments.  Useless!
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16192 $as_echo_n "checking for working alloca.h... " >&6; }
16193 if ${ac_cv_working_alloca_h+:} false; then :
16194   $as_echo_n "(cached) " >&6
16195 else
16196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h.  */
16198 #include <alloca.h>
16199 int
16200 main ()
16201 {
16202 char *p = (char *) alloca (2 * sizeof (int));
16203                           if (p) return 0;
16204   ;
16205   return 0;
16206 }
16207 _ACEOF
16208 if ac_fn_c_try_link "$LINENO"; then :
16209   ac_cv_working_alloca_h=yes
16210 else
16211   ac_cv_working_alloca_h=no
16212 fi
16213 rm -f core conftest.err conftest.$ac_objext \
16214     conftest$ac_exeext conftest.$ac_ext
16215 fi
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16217 $as_echo "$ac_cv_working_alloca_h" >&6; }
16218 if test $ac_cv_working_alloca_h = yes; then
16219
16220 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16221
16222 fi
16223
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16225 $as_echo_n "checking for alloca... " >&6; }
16226 if ${ac_cv_func_alloca_works+:} false; then :
16227   $as_echo_n "(cached) " >&6
16228 else
16229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h.  */
16231 #ifdef __GNUC__
16232 # define alloca __builtin_alloca
16233 #else
16234 # ifdef _MSC_VER
16235 #  include <malloc.h>
16236 #  define alloca _alloca
16237 # else
16238 #  ifdef HAVE_ALLOCA_H
16239 #   include <alloca.h>
16240 #  else
16241 #   ifdef _AIX
16242  #pragma alloca
16243 #   else
16244 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16245 void *alloca (size_t);
16246 #    endif
16247 #   endif
16248 #  endif
16249 # endif
16250 #endif
16251
16252 int
16253 main ()
16254 {
16255 char *p = (char *) alloca (1);
16256                                     if (p) return 0;
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 if ac_fn_c_try_link "$LINENO"; then :
16262   ac_cv_func_alloca_works=yes
16263 else
16264   ac_cv_func_alloca_works=no
16265 fi
16266 rm -f core conftest.err conftest.$ac_objext \
16267     conftest$ac_exeext conftest.$ac_ext
16268 fi
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16270 $as_echo "$ac_cv_func_alloca_works" >&6; }
16271
16272 if test $ac_cv_func_alloca_works = yes; then
16273
16274 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16275
16276 else
16277   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16278 # that cause trouble.  Some versions do not even contain alloca or
16279 # contain a buggy version.  If you still want to use their alloca,
16280 # use ar to extract alloca.o from them instead of compiling alloca.c.
16281
16282
16283
16284
16285
16286 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16287
16288 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16289
16290
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16292 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16293 if ${ac_cv_os_cray+:} false; then :
16294   $as_echo_n "(cached) " >&6
16295 else
16296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h.  */
16298 #if defined CRAY && ! defined CRAY2
16299 webecray
16300 #else
16301 wenotbecray
16302 #endif
16303
16304 _ACEOF
16305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16306   $EGREP "webecray" >/dev/null 2>&1; then :
16307   ac_cv_os_cray=yes
16308 else
16309   ac_cv_os_cray=no
16310 fi
16311 rm -f conftest*
16312
16313 fi
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16315 $as_echo "$ac_cv_os_cray" >&6; }
16316 if test $ac_cv_os_cray = yes; then
16317   for ac_func in _getb67 GETB67 getb67; do
16318     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16320 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16321
16322 cat >>confdefs.h <<_ACEOF
16323 #define CRAY_STACKSEG_END $ac_func
16324 _ACEOF
16325
16326     break
16327 fi
16328
16329   done
16330 fi
16331
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16333 $as_echo_n "checking stack direction for C alloca... " >&6; }
16334 if ${ac_cv_c_stack_direction+:} false; then :
16335   $as_echo_n "(cached) " >&6
16336 else
16337   if test "$cross_compiling" = yes; then :
16338   ac_cv_c_stack_direction=0
16339 else
16340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16341 /* end confdefs.h.  */
16342 $ac_includes_default
16343 int
16344 find_stack_direction (int *addr, int depth)
16345 {
16346   int dir, dummy = 0;
16347   if (! addr)
16348     addr = &dummy;
16349   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16350   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16351   return dir + dummy;
16352 }
16353
16354 int
16355 main (int argc, char **argv)
16356 {
16357   return find_stack_direction (0, argc + !argv + 20) < 0;
16358 }
16359 _ACEOF
16360 if ac_fn_c_try_run "$LINENO"; then :
16361   ac_cv_c_stack_direction=1
16362 else
16363   ac_cv_c_stack_direction=-1
16364 fi
16365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16366   conftest.$ac_objext conftest.beam conftest.$ac_ext
16367 fi
16368
16369 fi
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16371 $as_echo "$ac_cv_c_stack_direction" >&6; }
16372 cat >>confdefs.h <<_ACEOF
16373 #define STACK_DIRECTION $ac_cv_c_stack_direction
16374 _ACEOF
16375
16376
16377 fi
16378
16379
16380
16381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
16382 $as_echo_n "checking whether // is distinct from /... " >&6; }
16383 if ${gl_cv_double_slash_root+:} false; then :
16384   $as_echo_n "(cached) " >&6
16385 else
16386    if test x"$cross_compiling" = xyes ; then
16387         # When cross-compiling, there is no way to tell whether // is special
16388         # short of a list of hosts.  However, the only known hosts to date
16389         # that have a distinct // are Apollo DomainOS (too old to port to),
16390         # Cygwin, and z/OS.  If anyone knows of another system for which // has
16391         # special semantics and is distinct from /, please report it to
16392         # <bug-gnulib@gnu.org>.
16393         case $host in
16394           *-cygwin | i370-ibm-openedition)
16395             gl_cv_double_slash_root=yes ;;
16396           *)
16397             # Be optimistic and assume that / and // are the same when we
16398             # don't know.
16399             gl_cv_double_slash_root='unknown, assuming no' ;;
16400         esac
16401       else
16402         set x `ls -di / // 2>/dev/null`
16403         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
16404           gl_cv_double_slash_root=no
16405         else
16406           gl_cv_double_slash_root=yes
16407         fi
16408       fi
16409 fi
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
16411 $as_echo "$gl_cv_double_slash_root" >&6; }
16412   if test "$gl_cv_double_slash_root" = yes; then
16413
16414 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16415
16416   fi
16417
16418
16419
16420
16421
16422
16423   GNULIB_CHDIR=0;
16424   GNULIB_CHOWN=0;
16425   GNULIB_CLOSE=0;
16426   GNULIB_DUP=0;
16427   GNULIB_DUP2=0;
16428   GNULIB_DUP3=0;
16429   GNULIB_ENVIRON=0;
16430   GNULIB_EUIDACCESS=0;
16431   GNULIB_FACCESSAT=0;
16432   GNULIB_FCHDIR=0;
16433   GNULIB_FCHOWNAT=0;
16434   GNULIB_FDATASYNC=0;
16435   GNULIB_FSYNC=0;
16436   GNULIB_FTRUNCATE=0;
16437   GNULIB_GETCWD=0;
16438   GNULIB_GETDOMAINNAME=0;
16439   GNULIB_GETDTABLESIZE=0;
16440   GNULIB_GETGROUPS=0;
16441   GNULIB_GETHOSTNAME=0;
16442   GNULIB_GETLOGIN=0;
16443   GNULIB_GETLOGIN_R=0;
16444   GNULIB_GETPAGESIZE=0;
16445   GNULIB_GETPASS=0;
16446   GNULIB_GETUSERSHELL=0;
16447   GNULIB_GROUP_MEMBER=0;
16448   GNULIB_ISATTY=0;
16449   GNULIB_LCHOWN=0;
16450   GNULIB_LINK=0;
16451   GNULIB_LINKAT=0;
16452   GNULIB_LSEEK=0;
16453   GNULIB_PIPE=0;
16454   GNULIB_PIPE2=0;
16455   GNULIB_PREAD=0;
16456   GNULIB_PWRITE=0;
16457   GNULIB_READ=0;
16458   GNULIB_READLINK=0;
16459   GNULIB_READLINKAT=0;
16460   GNULIB_RMDIR=0;
16461   GNULIB_SETHOSTNAME=0;
16462   GNULIB_SLEEP=0;
16463   GNULIB_SYMLINK=0;
16464   GNULIB_SYMLINKAT=0;
16465   GNULIB_TRUNCATE=0;
16466   GNULIB_TTYNAME_R=0;
16467   GNULIB_UNISTD_H_NONBLOCKING=0;
16468   GNULIB_UNISTD_H_SIGPIPE=0;
16469   GNULIB_UNLINK=0;
16470   GNULIB_UNLINKAT=0;
16471   GNULIB_USLEEP=0;
16472   GNULIB_WRITE=0;
16473     HAVE_CHOWN=1;
16474   HAVE_DUP2=1;
16475   HAVE_DUP3=1;
16476   HAVE_EUIDACCESS=1;
16477   HAVE_FACCESSAT=1;
16478   HAVE_FCHDIR=1;
16479   HAVE_FCHOWNAT=1;
16480   HAVE_FDATASYNC=1;
16481   HAVE_FSYNC=1;
16482   HAVE_FTRUNCATE=1;
16483   HAVE_GETDTABLESIZE=1;
16484   HAVE_GETGROUPS=1;
16485   HAVE_GETHOSTNAME=1;
16486   HAVE_GETLOGIN=1;
16487   HAVE_GETPAGESIZE=1;
16488   HAVE_GETPASS=1;
16489   HAVE_GROUP_MEMBER=1;
16490   HAVE_LCHOWN=1;
16491   HAVE_LINK=1;
16492   HAVE_LINKAT=1;
16493   HAVE_PIPE=1;
16494   HAVE_PIPE2=1;
16495   HAVE_PREAD=1;
16496   HAVE_PWRITE=1;
16497   HAVE_READLINK=1;
16498   HAVE_READLINKAT=1;
16499   HAVE_SETHOSTNAME=1;
16500   HAVE_SLEEP=1;
16501   HAVE_SYMLINK=1;
16502   HAVE_SYMLINKAT=1;
16503   HAVE_UNLINKAT=1;
16504   HAVE_USLEEP=1;
16505   HAVE_DECL_ENVIRON=1;
16506   HAVE_DECL_FCHDIR=1;
16507   HAVE_DECL_FDATASYNC=1;
16508   HAVE_DECL_GETDOMAINNAME=1;
16509   HAVE_DECL_GETLOGIN=1;
16510   HAVE_DECL_GETLOGIN_R=1;
16511   HAVE_DECL_GETPAGESIZE=1;
16512   HAVE_DECL_GETUSERSHELL=1;
16513   HAVE_DECL_SETHOSTNAME=1;
16514   HAVE_DECL_TRUNCATE=1;
16515   HAVE_DECL_TTYNAME_R=1;
16516   HAVE_OS_H=0;
16517   HAVE_SYS_PARAM_H=0;
16518   REPLACE_CHOWN=0;
16519   REPLACE_CLOSE=0;
16520   REPLACE_DUP=0;
16521   REPLACE_DUP2=0;
16522   REPLACE_FACCESSAT=0;
16523   REPLACE_FCHOWNAT=0;
16524   REPLACE_FTRUNCATE=0;
16525   REPLACE_GETCWD=0;
16526   REPLACE_GETDOMAINNAME=0;
16527   REPLACE_GETDTABLESIZE=0;
16528   REPLACE_GETLOGIN_R=0;
16529   REPLACE_GETGROUPS=0;
16530   REPLACE_GETPAGESIZE=0;
16531   REPLACE_GETPASS=0;
16532   REPLACE_ISATTY=0;
16533   REPLACE_LCHOWN=0;
16534   REPLACE_LINK=0;
16535   REPLACE_LINKAT=0;
16536   REPLACE_LSEEK=0;
16537   REPLACE_PREAD=0;
16538   REPLACE_PWRITE=0;
16539   REPLACE_READ=0;
16540   REPLACE_READLINK=0;
16541   REPLACE_READLINKAT=0;
16542   REPLACE_RMDIR=0;
16543   REPLACE_SLEEP=0;
16544   REPLACE_SYMLINK=0;
16545   REPLACE_SYMLINKAT=0;
16546   REPLACE_TRUNCATE=0;
16547   REPLACE_TTYNAME_R=0;
16548   REPLACE_UNLINK=0;
16549   REPLACE_UNLINKAT=0;
16550   REPLACE_USLEEP=0;
16551   REPLACE_WRITE=0;
16552   UNISTD_H_HAVE_WINSOCK2_H=0;
16553   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16554
16555
16556
16557
16558
16559   for ac_header in $ac_header_list
16560 do :
16561   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16562 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16563 "
16564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16565   cat >>confdefs.h <<_ACEOF
16566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16567 _ACEOF
16568
16569 fi
16570
16571 done
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16583 $as_echo_n "checking if environ is properly declared... " >&6; }
16584 if ${gt_cv_var_environ_declaration+:} false; then :
16585   $as_echo_n "(cached) " >&6
16586 else
16587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h.  */
16589 #if HAVE_UNISTD_H
16590      #include <unistd.h>
16591      #endif
16592      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
16593      #include <stdlib.h>
16594
16595             extern struct { int foo; } environ;
16596 int
16597 main ()
16598 {
16599 environ.foo = 1;
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 if ac_fn_c_try_compile "$LINENO"; then :
16605   gt_cv_var_environ_declaration=no
16606 else
16607   gt_cv_var_environ_declaration=yes
16608 fi
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 fi
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16612 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16613   if test $gt_cv_var_environ_declaration = yes; then
16614
16615 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16616
16617   fi
16618
16619
16620   if test $gt_cv_var_environ_declaration != yes; then
16621     HAVE_DECL_ENVIRON=0
16622   fi
16623
16624
16625
16626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16627 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16628 if ${gl_cv_have_include_next+:} false; then :
16629   $as_echo_n "(cached) " >&6
16630 else
16631   rm -rf conftestd1a conftestd1b conftestd2
16632      mkdir conftestd1a conftestd1b conftestd2
16633                                                   cat <<EOF > conftestd1a/conftest.h
16634 #define DEFINED_IN_CONFTESTD1
16635 #include_next <conftest.h>
16636 #ifdef DEFINED_IN_CONFTESTD2
16637 int foo;
16638 #else
16639 #error "include_next doesn't work"
16640 #endif
16641 EOF
16642      cat <<EOF > conftestd1b/conftest.h
16643 #define DEFINED_IN_CONFTESTD1
16644 #include <stdio.h>
16645 #include_next <conftest.h>
16646 #ifdef DEFINED_IN_CONFTESTD2
16647 int foo;
16648 #else
16649 #error "include_next doesn't work"
16650 #endif
16651 EOF
16652      cat <<EOF > conftestd2/conftest.h
16653 #ifndef DEFINED_IN_CONFTESTD1
16654 #error "include_next test doesn't work"
16655 #endif
16656 #define DEFINED_IN_CONFTESTD2
16657 EOF
16658      gl_save_CPPFLAGS="$CPPFLAGS"
16659      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16660      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h.  */
16662 #include <conftest.h>
16663 _ACEOF
16664 if ac_fn_c_try_compile "$LINENO"; then :
16665   gl_cv_have_include_next=yes
16666 else
16667   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16668         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h.  */
16670 #include <conftest.h>
16671 _ACEOF
16672 if ac_fn_c_try_compile "$LINENO"; then :
16673   gl_cv_have_include_next=buggy
16674 else
16675   gl_cv_have_include_next=no
16676 fi
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678
16679 fi
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681      CPPFLAGS="$gl_save_CPPFLAGS"
16682      rm -rf conftestd1a conftestd1b conftestd2
16683
16684 fi
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16686 $as_echo "$gl_cv_have_include_next" >&6; }
16687   PRAGMA_SYSTEM_HEADER=
16688   if test $gl_cv_have_include_next = yes; then
16689     INCLUDE_NEXT=include_next
16690     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16691     if test -n "$GCC"; then
16692       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16693     fi
16694   else
16695     if test $gl_cv_have_include_next = buggy; then
16696       INCLUDE_NEXT=include
16697       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16698     else
16699       INCLUDE_NEXT=include
16700       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16701     fi
16702   fi
16703
16704
16705
16706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16707 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16708 if ${gl_cv_pragma_columns+:} false; then :
16709   $as_echo_n "(cached) " >&6
16710 else
16711        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h.  */
16713
16714 #ifdef __TANDEM
16715 choke me
16716 #endif
16717
16718 _ACEOF
16719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16720   $EGREP "choke me" >/dev/null 2>&1; then :
16721   gl_cv_pragma_columns=yes
16722 else
16723   gl_cv_pragma_columns=no
16724 fi
16725 rm -f conftest*
16726
16727
16728 fi
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16730 $as_echo "$gl_cv_pragma_columns" >&6; }
16731   if test $gl_cv_pragma_columns = yes; then
16732     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16733   else
16734     PRAGMA_COLUMNS=
16735   fi
16736
16737
16738
16739
16740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
16741 $as_echo_n "checking for complete errno.h... " >&6; }
16742 if ${gl_cv_header_errno_h_complete+:} false; then :
16743   $as_echo_n "(cached) " >&6
16744 else
16745
16746     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h.  */
16748
16749 #include <errno.h>
16750 #if !defined ETXTBSY
16751 booboo
16752 #endif
16753 #if !defined ENOMSG
16754 booboo
16755 #endif
16756 #if !defined EIDRM
16757 booboo
16758 #endif
16759 #if !defined ENOLINK
16760 booboo
16761 #endif
16762 #if !defined EPROTO
16763 booboo
16764 #endif
16765 #if !defined EMULTIHOP
16766 booboo
16767 #endif
16768 #if !defined EBADMSG
16769 booboo
16770 #endif
16771 #if !defined EOVERFLOW
16772 booboo
16773 #endif
16774 #if !defined ENOTSUP
16775 booboo
16776 #endif
16777 #if !defined ENETRESET
16778 booboo
16779 #endif
16780 #if !defined ECONNABORTED
16781 booboo
16782 #endif
16783 #if !defined ESTALE
16784 booboo
16785 #endif
16786 #if !defined EDQUOT
16787 booboo
16788 #endif
16789 #if !defined ECANCELED
16790 booboo
16791 #endif
16792 #if !defined EOWNERDEAD
16793 booboo
16794 #endif
16795 #if !defined ENOTRECOVERABLE
16796 booboo
16797 #endif
16798 #if !defined EILSEQ
16799 booboo
16800 #endif
16801
16802 _ACEOF
16803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16804   $EGREP "booboo" >/dev/null 2>&1; then :
16805   gl_cv_header_errno_h_complete=no
16806 else
16807   gl_cv_header_errno_h_complete=yes
16808 fi
16809 rm -f conftest*
16810
16811
16812 fi
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16814 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
16815   if test $gl_cv_header_errno_h_complete = yes; then
16816     ERRNO_H=''
16817   else
16818
16819
16820
16821
16822
16823
16824
16825
16826      if test $gl_cv_have_include_next = yes; then
16827        gl_cv_next_errno_h='<'errno.h'>'
16828      else
16829        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16830 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
16831 if ${gl_cv_next_errno_h+:} false; then :
16832   $as_echo_n "(cached) " >&6
16833 else
16834
16835
16836
16837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h.  */
16839 #include <errno.h>
16840 _ACEOF
16841                 case "$host_os" in
16842     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16843     *)    gl_absname_cpp="$ac_cpp" ;;
16844   esac
16845
16846   case "$host_os" in
16847     mingw*)
16848                                           gl_dirsep_regex='[/\\]'
16849       ;;
16850     *)
16851       gl_dirsep_regex='\/'
16852       ;;
16853   esac
16854       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16855   gl_header_literal_regex=`echo 'errno.h' \
16856                            | sed -e "$gl_make_literal_regex_sed"`
16857   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16858       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16859       s|^/[^/]|//&|
16860       p
16861       q
16862     }'
16863
16864         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16865   sed -n "$gl_absolute_header_sed"`
16866
16867            gl_header=$gl_cv_absolute_errno_h
16868            gl_cv_next_errno_h='"'$gl_header'"'
16869
16870
16871 fi
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16873 $as_echo "$gl_cv_next_errno_h" >&6; }
16874      fi
16875      NEXT_ERRNO_H=$gl_cv_next_errno_h
16876
16877      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16878        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16879        gl_next_as_first_directive='<'errno.h'>'
16880      else
16881        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16882        gl_next_as_first_directive=$gl_cv_next_errno_h
16883      fi
16884      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16885
16886
16887
16888
16889     ERRNO_H='errno.h'
16890   fi
16891
16892    if test -n "$ERRNO_H"; then
16893   GL_GENERATE_ERRNO_H_TRUE=
16894   GL_GENERATE_ERRNO_H_FALSE='#'
16895 else
16896   GL_GENERATE_ERRNO_H_TRUE='#'
16897   GL_GENERATE_ERRNO_H_FALSE=
16898 fi
16899
16900
16901   if test -n "$ERRNO_H"; then
16902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16903 $as_echo_n "checking for EMULTIHOP value... " >&6; }
16904 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
16905   $as_echo_n "(cached) " >&6
16906 else
16907
16908       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h.  */
16910
16911 #include <errno.h>
16912 #ifdef EMULTIHOP
16913 yes
16914 #endif
16915
16916 _ACEOF
16917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16918   $EGREP "yes" >/dev/null 2>&1; then :
16919   gl_cv_header_errno_h_EMULTIHOP=yes
16920 else
16921   gl_cv_header_errno_h_EMULTIHOP=no
16922 fi
16923 rm -f conftest*
16924
16925       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16926         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h.  */
16928
16929 #define _XOPEN_SOURCE_EXTENDED 1
16930 #include <errno.h>
16931 #ifdef EMULTIHOP
16932 yes
16933 #endif
16934
16935 _ACEOF
16936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16937   $EGREP "yes" >/dev/null 2>&1; then :
16938   gl_cv_header_errno_h_EMULTIHOP=hidden
16939 fi
16940 rm -f conftest*
16941
16942         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16943                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
16944 #define _XOPEN_SOURCE_EXTENDED 1
16945 #include <errno.h>
16946 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16947 #include <stdio.h>
16948 #include <stdlib.h>
16949 "; then :
16950
16951 fi
16952
16953         fi
16954       fi
16955
16956 fi
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16958 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16959     case $gl_cv_header_errno_h_EMULTIHOP in
16960       yes | no)
16961         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16962         ;;
16963       *)
16964         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16965         ;;
16966     esac
16967
16968
16969   fi
16970
16971
16972   if test -n "$ERRNO_H"; then
16973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16974 $as_echo_n "checking for ENOLINK value... " >&6; }
16975 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16976   $as_echo_n "(cached) " >&6
16977 else
16978
16979       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h.  */
16981
16982 #include <errno.h>
16983 #ifdef ENOLINK
16984 yes
16985 #endif
16986
16987 _ACEOF
16988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16989   $EGREP "yes" >/dev/null 2>&1; then :
16990   gl_cv_header_errno_h_ENOLINK=yes
16991 else
16992   gl_cv_header_errno_h_ENOLINK=no
16993 fi
16994 rm -f conftest*
16995
16996       if test $gl_cv_header_errno_h_ENOLINK = no; then
16997         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h.  */
16999
17000 #define _XOPEN_SOURCE_EXTENDED 1
17001 #include <errno.h>
17002 #ifdef ENOLINK
17003 yes
17004 #endif
17005
17006 _ACEOF
17007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17008   $EGREP "yes" >/dev/null 2>&1; then :
17009   gl_cv_header_errno_h_ENOLINK=hidden
17010 fi
17011 rm -f conftest*
17012
17013         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
17014                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
17015 #define _XOPEN_SOURCE_EXTENDED 1
17016 #include <errno.h>
17017 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
17018 #include <stdio.h>
17019 #include <stdlib.h>
17020 "; then :
17021
17022 fi
17023
17024         fi
17025       fi
17026
17027 fi
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17029 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
17030     case $gl_cv_header_errno_h_ENOLINK in
17031       yes | no)
17032         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
17033         ;;
17034       *)
17035         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
17036         ;;
17037     esac
17038
17039
17040   fi
17041
17042
17043   if test -n "$ERRNO_H"; then
17044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
17045 $as_echo_n "checking for EOVERFLOW value... " >&6; }
17046 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
17047   $as_echo_n "(cached) " >&6
17048 else
17049
17050       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h.  */
17052
17053 #include <errno.h>
17054 #ifdef EOVERFLOW
17055 yes
17056 #endif
17057
17058 _ACEOF
17059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17060   $EGREP "yes" >/dev/null 2>&1; then :
17061   gl_cv_header_errno_h_EOVERFLOW=yes
17062 else
17063   gl_cv_header_errno_h_EOVERFLOW=no
17064 fi
17065 rm -f conftest*
17066
17067       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
17068         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h.  */
17070
17071 #define _XOPEN_SOURCE_EXTENDED 1
17072 #include <errno.h>
17073 #ifdef EOVERFLOW
17074 yes
17075 #endif
17076
17077 _ACEOF
17078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17079   $EGREP "yes" >/dev/null 2>&1; then :
17080   gl_cv_header_errno_h_EOVERFLOW=hidden
17081 fi
17082 rm -f conftest*
17083
17084         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
17085                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
17086 #define _XOPEN_SOURCE_EXTENDED 1
17087 #include <errno.h>
17088 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
17089 #include <stdio.h>
17090 #include <stdlib.h>
17091 "; then :
17092
17093 fi
17094
17095         fi
17096       fi
17097
17098 fi
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
17100 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
17101     case $gl_cv_header_errno_h_EOVERFLOW in
17102       yes | no)
17103         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
17104         ;;
17105       *)
17106         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
17107         ;;
17108     esac
17109
17110
17111   fi
17112
17113
17114 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17115 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17116   ac_have_decl=1
17117 else
17118   ac_have_decl=0
17119 fi
17120
17121 cat >>confdefs.h <<_ACEOF
17122 #define HAVE_DECL_STRERROR_R $ac_have_decl
17123 _ACEOF
17124
17125 for ac_func in strerror_r
17126 do :
17127   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17128 if test "x$ac_cv_func_strerror_r" = xyes; then :
17129   cat >>confdefs.h <<_ACEOF
17130 #define HAVE_STRERROR_R 1
17131 _ACEOF
17132
17133 fi
17134 done
17135
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17137 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
17138 if ${ac_cv_func_strerror_r_char_p+:} false; then :
17139   $as_echo_n "(cached) " >&6
17140 else
17141
17142     ac_cv_func_strerror_r_char_p=no
17143     if test $ac_cv_have_decl_strerror_r = yes; then
17144       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h.  */
17146 $ac_includes_default
17147 int
17148 main ()
17149 {
17150
17151           char buf[100];
17152           char x = *strerror_r (0, buf, sizeof buf);
17153           char *p = strerror_r (0, buf, sizeof buf);
17154           return !p || x;
17155
17156   ;
17157   return 0;
17158 }
17159 _ACEOF
17160 if ac_fn_c_try_compile "$LINENO"; then :
17161   ac_cv_func_strerror_r_char_p=yes
17162 fi
17163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17164     else
17165       # strerror_r is not declared.  Choose between
17166       # systems that have relatively inaccessible declarations for the
17167       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
17168       # former has a strerror_r that returns char*, while the latter
17169       # has a strerror_r that returns `int'.
17170       # This test should segfault on the DEC system.
17171       if test "$cross_compiling" = yes; then :
17172   :
17173 else
17174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h.  */
17176 $ac_includes_default
17177         extern char *strerror_r ();
17178 int
17179 main ()
17180 {
17181 char buf[100];
17182           char x = *strerror_r (0, buf, sizeof buf);
17183           return ! isalpha (x);
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 if ac_fn_c_try_run "$LINENO"; then :
17189   ac_cv_func_strerror_r_char_p=yes
17190 fi
17191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17192   conftest.$ac_objext conftest.beam conftest.$ac_ext
17193 fi
17194
17195     fi
17196
17197 fi
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17199 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17200 if test $ac_cv_func_strerror_r_char_p = yes; then
17201
17202 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17203
17204 fi
17205
17206
17207   XGETTEXT_EXTRA_OPTIONS=
17208
17209
17210
17211
17212
17213   GNULIB_FCNTL=0;
17214   GNULIB_NONBLOCKING=0;
17215   GNULIB_OPEN=0;
17216   GNULIB_OPENAT=0;
17217     HAVE_FCNTL=1;
17218   HAVE_OPENAT=1;
17219   REPLACE_FCNTL=0;
17220   REPLACE_OPEN=0;
17221   REPLACE_OPENAT=0;
17222
17223
17224
17225
17226   for ac_func in $ac_func_list
17227 do :
17228   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17229 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17230 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17231   cat >>confdefs.h <<_ACEOF
17232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17233 _ACEOF
17234
17235 fi
17236 done
17237
17238
17239
17240
17241
17242
17243
17244
17245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
17246 $as_echo_n "checking for working fcntl.h... " >&6; }
17247 if ${gl_cv_header_working_fcntl_h+:} false; then :
17248   $as_echo_n "(cached) " >&6
17249 else
17250   if test "$cross_compiling" = yes; then :
17251   case "$host_os" in
17252                   # Guess 'no' on native Windows.
17253           mingw*) gl_cv_header_working_fcntl_h='no' ;;
17254           *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
17255         esac
17256
17257 else
17258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h.  */
17260 #include <sys/types.h>
17261            #include <sys/stat.h>
17262            #if HAVE_UNISTD_H
17263            # include <unistd.h>
17264            #else /* on Windows with MSVC */
17265            # include <io.h>
17266            # include <stdlib.h>
17267            # defined sleep(n) _sleep ((n) * 1000)
17268            #endif
17269            #include <fcntl.h>
17270            #ifndef O_NOATIME
17271             #define O_NOATIME 0
17272            #endif
17273            #ifndef O_NOFOLLOW
17274             #define O_NOFOLLOW 0
17275            #endif
17276            static int const constants[] =
17277             {
17278               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
17279               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
17280             };
17281
17282 int
17283 main ()
17284 {
17285
17286             int result = !constants;
17287             #if HAVE_SYMLINK
17288             {
17289               static char const sym[] = "conftest.sym";
17290               if (symlink ("/dev/null", sym) != 0)
17291                 result |= 2;
17292               else
17293                 {
17294                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
17295                   if (fd >= 0)
17296                     {
17297                       close (fd);
17298                       result |= 4;
17299                     }
17300                 }
17301               if (unlink (sym) != 0 || symlink (".", sym) != 0)
17302                 result |= 2;
17303               else
17304                 {
17305                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
17306                   if (fd >= 0)
17307                     {
17308                       close (fd);
17309                       result |= 4;
17310                     }
17311                 }
17312               unlink (sym);
17313             }
17314             #endif
17315             {
17316               static char const file[] = "confdefs.h";
17317               int fd = open (file, O_RDONLY | O_NOATIME);
17318               if (fd < 0)
17319                 result |= 8;
17320               else
17321                 {
17322                   struct stat st0;
17323                   if (fstat (fd, &st0) != 0)
17324                     result |= 16;
17325                   else
17326                     {
17327                       char c;
17328                       sleep (1);
17329                       if (read (fd, &c, 1) != 1)
17330                         result |= 24;
17331                       else
17332                         {
17333                           if (close (fd) != 0)
17334                             result |= 32;
17335                           else
17336                             {
17337                               struct stat st1;
17338                               if (stat (file, &st1) != 0)
17339                                 result |= 40;
17340                               else
17341                                 if (st0.st_atime != st1.st_atime)
17342                                   result |= 64;
17343                             }
17344                         }
17345                     }
17346                 }
17347             }
17348             return result;
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 if ac_fn_c_try_run "$LINENO"; then :
17354   gl_cv_header_working_fcntl_h=yes
17355 else
17356   case $? in #(
17357         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
17358         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
17359         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
17360          *) gl_cv_header_working_fcntl_h='no';;
17361         esac
17362 fi
17363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17364   conftest.$ac_objext conftest.beam conftest.$ac_ext
17365 fi
17366
17367
17368 fi
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
17370 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
17371
17372   case $gl_cv_header_working_fcntl_h in #(
17373   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
17374   *) ac_val=1;;
17375   esac
17376
17377 cat >>confdefs.h <<_ACEOF
17378 #define HAVE_WORKING_O_NOATIME $ac_val
17379 _ACEOF
17380
17381
17382   case $gl_cv_header_working_fcntl_h in #(
17383   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
17384   *) ac_val=1;;
17385   esac
17386
17387 cat >>confdefs.h <<_ACEOF
17388 #define HAVE_WORKING_O_NOFOLLOW $ac_val
17389 _ACEOF
17390
17391
17392 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17393 if test "x$ac_cv_type_pid_t" = xyes; then :
17394
17395 else
17396
17397 cat >>confdefs.h <<_ACEOF
17398 #define pid_t int
17399 _ACEOF
17400
17401 fi
17402
17403 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17404 if test "x$ac_cv_type_mode_t" = xyes; then :
17405
17406 else
17407
17408 cat >>confdefs.h <<_ACEOF
17409 #define mode_t int
17410 _ACEOF
17411
17412 fi
17413
17414
17415
17416
17417
17418
17419   GNULIB_GETTIMEOFDAY=0;
17420     HAVE_GETTIMEOFDAY=1;
17421   HAVE_STRUCT_TIMEVAL=1;
17422   HAVE_SYS_TIME_H=1;
17423   REPLACE_GETTIMEOFDAY=0;
17424   REPLACE_STRUCT_TIMEVAL=0;
17425
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17427 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17428 if ${ac_cv_c_restrict+:} false; then :
17429   $as_echo_n "(cached) " >&6
17430 else
17431   ac_cv_c_restrict=no
17432    # The order here caters to the fact that C++ does not require restrict.
17433    for ac_kw in __restrict __restrict__ _Restrict restrict; do
17434      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h.  */
17436 typedef int *int_ptr;
17437            int foo (int_ptr $ac_kw ip) { return ip[0]; }
17438            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
17439            int bar (int ip[$ac_kw]) { return ip[0]; }
17440
17441 int
17442 main ()
17443 {
17444 int s[1];
17445            int *$ac_kw t = s;
17446            t[0] = 0;
17447            return foo (t) + bar (t);
17448
17449   ;
17450   return 0;
17451 }
17452 _ACEOF
17453 if ac_fn_c_try_compile "$LINENO"; then :
17454   ac_cv_c_restrict=$ac_kw
17455 fi
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457      test "$ac_cv_c_restrict" != no && break
17458    done
17459
17460 fi
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17462 $as_echo "$ac_cv_c_restrict" >&6; }
17463
17464  case $ac_cv_c_restrict in
17465    restrict) ;;
17466    no) $as_echo "#define restrict /**/" >>confdefs.h
17467  ;;
17468    *)  cat >>confdefs.h <<_ACEOF
17469 #define restrict $ac_cv_c_restrict
17470 _ACEOF
17471  ;;
17472  esac
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491      if test $gl_cv_have_include_next = yes; then
17492        gl_cv_next_sys_time_h='<'sys/time.h'>'
17493      else
17494        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17495 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17496 if ${gl_cv_next_sys_time_h+:} false; then :
17497   $as_echo_n "(cached) " >&6
17498 else
17499
17500              if test $ac_cv_header_sys_time_h = yes; then
17501
17502
17503
17504
17505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h.  */
17507 #include <sys/time.h>
17508 _ACEOF
17509                 case "$host_os" in
17510     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17511     *)    gl_absname_cpp="$ac_cpp" ;;
17512   esac
17513
17514   case "$host_os" in
17515     mingw*)
17516                                           gl_dirsep_regex='[/\\]'
17517       ;;
17518     *)
17519       gl_dirsep_regex='\/'
17520       ;;
17521   esac
17522       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17523   gl_header_literal_regex=`echo 'sys/time.h' \
17524                            | sed -e "$gl_make_literal_regex_sed"`
17525   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17526       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17527       s|^/[^/]|//&|
17528       p
17529       q
17530     }'
17531
17532         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17533   sed -n "$gl_absolute_header_sed"`
17534
17535            gl_header=$gl_cv_absolute_sys_time_h
17536            gl_cv_next_sys_time_h='"'$gl_header'"'
17537           else
17538                gl_cv_next_sys_time_h='<'sys/time.h'>'
17539              fi
17540
17541
17542 fi
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17544 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17545      fi
17546      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17547
17548      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17549        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17550        gl_next_as_first_directive='<'sys/time.h'>'
17551      else
17552        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17553        gl_next_as_first_directive=$gl_cv_next_sys_time_h
17554      fi
17555      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17556
17557
17558
17559
17560
17561   if test $ac_cv_header_sys_time_h != yes; then
17562     HAVE_SYS_TIME_H=0
17563   fi
17564
17565
17566
17567
17568
17569   if test $ac_cv_header_sys_socket_h != yes; then
17570                     for ac_header in winsock2.h
17571 do :
17572   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17573 if test "x$ac_cv_header_winsock2_h" = xyes; then :
17574   cat >>confdefs.h <<_ACEOF
17575 #define HAVE_WINSOCK2_H 1
17576 _ACEOF
17577
17578 fi
17579
17580 done
17581
17582   fi
17583   if test "$ac_cv_header_winsock2_h" = yes; then
17584     HAVE_WINSOCK2_H=1
17585     UNISTD_H_HAVE_WINSOCK2_H=1
17586     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17587   else
17588     HAVE_WINSOCK2_H=0
17589   fi
17590
17591
17592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17593 $as_echo_n "checking for struct timeval... " >&6; }
17594 if ${gl_cv_sys_struct_timeval+:} false; then :
17595   $as_echo_n "(cached) " >&6
17596 else
17597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h.  */
17599 #if HAVE_SYS_TIME_H
17600              #include <sys/time.h>
17601             #endif
17602             #include <time.h>
17603             #if HAVE_WINSOCK2_H
17604             # include <winsock2.h>
17605             #endif
17606
17607 int
17608 main ()
17609 {
17610 static struct timeval x; x.tv_sec = x.tv_usec;
17611   ;
17612   return 0;
17613 }
17614 _ACEOF
17615 if ac_fn_c_try_compile "$LINENO"; then :
17616   gl_cv_sys_struct_timeval=yes
17617 else
17618   gl_cv_sys_struct_timeval=no
17619 fi
17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621
17622 fi
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17624 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17625   if test $gl_cv_sys_struct_timeval != yes; then
17626     HAVE_STRUCT_TIMEVAL=0
17627   else
17628                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17629 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17630 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
17631   $as_echo_n "(cached) " >&6
17632 else
17633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h.  */
17635 #if HAVE_SYS_TIME_H
17636                #include <sys/time.h>
17637               #endif
17638               #include <time.h>
17639               #if HAVE_WINSOCK2_H
17640               # include <winsock2.h>
17641               #endif
17642
17643 int
17644 main ()
17645 {
17646 static struct timeval x;
17647               typedef int verify_tv_sec_type[
17648                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17649               ];
17650
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 if ac_fn_c_try_compile "$LINENO"; then :
17656   gl_cv_sys_struct_timeval_tv_sec=yes
17657 else
17658   gl_cv_sys_struct_timeval_tv_sec=no
17659 fi
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17661
17662 fi
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17664 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17665     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17666       REPLACE_STRUCT_TIMEVAL=1
17667     fi
17668   fi
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680   NEED_LOCALTIME_BUFFER=0
17681
17682
17683   GNULIB_CTIME=0;
17684   GNULIB_MKTIME=0;
17685   GNULIB_LOCALTIME=0;
17686   GNULIB_NANOSLEEP=0;
17687   GNULIB_STRFTIME=0;
17688   GNULIB_STRPTIME=0;
17689   GNULIB_TIMEGM=0;
17690   GNULIB_TIME_R=0;
17691   GNULIB_TIME_RZ=0;
17692   GNULIB_TZSET=0;
17693     HAVE_DECL_LOCALTIME_R=1;
17694   HAVE_NANOSLEEP=1;
17695   HAVE_STRPTIME=1;
17696   HAVE_TIMEGM=1;
17697   HAVE_TZSET=1;
17698     HAVE_TIMEZONE_T=0;
17699         REPLACE_CTIME=GNULIB_PORTCHECK;
17700   REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17701   REPLACE_MKTIME=GNULIB_PORTCHECK;
17702   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17703   REPLACE_STRFTIME=GNULIB_PORTCHECK;
17704   REPLACE_TIMEGM=GNULIB_PORTCHECK;
17705   REPLACE_TZSET=GNULIB_PORTCHECK;
17706
17707       : ${GNULIB_GETTIMEOFDAY=0};
17708         REPLACE_GMTIME=0;
17709   REPLACE_LOCALTIME=0;
17710
17711
17712
17713   case "$host_os" in
17714     mingw*)
17715                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17716 $as_echo_n "checking for 64-bit off_t... " >&6; }
17717 if ${gl_cv_type_off_t_64+:} false; then :
17718   $as_echo_n "(cached) " >&6
17719 else
17720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h.  */
17722 #include <sys/types.h>
17723                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17724
17725 int
17726 main ()
17727 {
17728
17729   ;
17730   return 0;
17731 }
17732 _ACEOF
17733 if ac_fn_c_try_compile "$LINENO"; then :
17734   gl_cv_type_off_t_64=yes
17735 else
17736   gl_cv_type_off_t_64=no
17737 fi
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739
17740 fi
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17742 $as_echo "$gl_cv_type_off_t_64" >&6; }
17743       if test $gl_cv_type_off_t_64 = no; then
17744         WINDOWS_64_BIT_OFF_T=1
17745       else
17746         WINDOWS_64_BIT_OFF_T=0
17747       fi
17748                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
17749 $as_echo_n "checking for 64-bit st_size... " >&6; }
17750 if ${gl_cv_member_st_size_64+:} false; then :
17751   $as_echo_n "(cached) " >&6
17752 else
17753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h.  */
17755 #include <sys/types.h>
17756                 struct stat buf;
17757                 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
17758
17759 int
17760 main ()
17761 {
17762
17763   ;
17764   return 0;
17765 }
17766 _ACEOF
17767 if ac_fn_c_try_compile "$LINENO"; then :
17768   gl_cv_member_st_size_64=yes
17769 else
17770   gl_cv_member_st_size_64=no
17771 fi
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773
17774 fi
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
17776 $as_echo "$gl_cv_member_st_size_64" >&6; }
17777       if test $gl_cv_member_st_size_64 = no; then
17778         WINDOWS_64_BIT_ST_SIZE=1
17779       else
17780         WINDOWS_64_BIT_ST_SIZE=0
17781       fi
17782       ;;
17783     *)
17784                                                       WINDOWS_64_BIT_OFF_T=0
17785       WINDOWS_64_BIT_ST_SIZE=0
17786       ;;
17787   esac
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801      if test $gl_cv_have_include_next = yes; then
17802        gl_cv_next_limits_h='<'limits.h'>'
17803      else
17804        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
17805 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
17806 if ${gl_cv_next_limits_h+:} false; then :
17807   $as_echo_n "(cached) " >&6
17808 else
17809
17810              if test $ac_cv_header_limits_h = yes; then
17811
17812
17813
17814
17815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h.  */
17817 #include <limits.h>
17818 _ACEOF
17819                 case "$host_os" in
17820     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17821     *)    gl_absname_cpp="$ac_cpp" ;;
17822   esac
17823
17824   case "$host_os" in
17825     mingw*)
17826                                           gl_dirsep_regex='[/\\]'
17827       ;;
17828     *)
17829       gl_dirsep_regex='\/'
17830       ;;
17831   esac
17832       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17833   gl_header_literal_regex=`echo 'limits.h' \
17834                            | sed -e "$gl_make_literal_regex_sed"`
17835   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17836       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17837       s|^/[^/]|//&|
17838       p
17839       q
17840     }'
17841
17842         gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17843   sed -n "$gl_absolute_header_sed"`
17844
17845            gl_header=$gl_cv_absolute_limits_h
17846            gl_cv_next_limits_h='"'$gl_header'"'
17847           else
17848                gl_cv_next_limits_h='<'limits.h'>'
17849              fi
17850
17851
17852 fi
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
17854 $as_echo "$gl_cv_next_limits_h" >&6; }
17855      fi
17856      NEXT_LIMITS_H=$gl_cv_next_limits_h
17857
17858      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17859        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17860        gl_next_as_first_directive='<'limits.h'>'
17861      else
17862        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17863        gl_next_as_first_directive=$gl_cv_next_limits_h
17864      fi
17865      NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
17866
17867
17868
17869
17870
17871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
17872 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
17873 if ${gl_cv_header_limits_width+:} false; then :
17874   $as_echo_n "(cached) " >&6
17875 else
17876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h.  */
17878 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
17879              #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
17880             #endif
17881             #include <limits.h>
17882             long long llm = LLONG_MAX;
17883             int wb = WORD_BIT;
17884             int ullw = ULLONG_WIDTH;
17885
17886 int
17887 main ()
17888 {
17889
17890   ;
17891   return 0;
17892 }
17893 _ACEOF
17894 if ac_fn_c_try_compile "$LINENO"; then :
17895   gl_cv_header_limits_width=yes
17896 else
17897   gl_cv_header_limits_width=no
17898 fi
17899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17900 fi
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
17902 $as_echo "$gl_cv_header_limits_width" >&6; }
17903   if test "$gl_cv_header_limits_width" = yes; then
17904     LIMITS_H=
17905   else
17906     LIMITS_H=limits.h
17907   fi
17908
17909    if test -n "$LIMITS_H"; then
17910   GL_GENERATE_LIMITS_H_TRUE=
17911   GL_GENERATE_LIMITS_H_FALSE='#'
17912 else
17913   GL_GENERATE_LIMITS_H_TRUE='#'
17914   GL_GENERATE_LIMITS_H_FALSE=
17915 fi
17916
17917
17918
17919       if test "X$prefix" = "XNONE"; then
17920     acl_final_prefix="$ac_default_prefix"
17921   else
17922     acl_final_prefix="$prefix"
17923   fi
17924   if test "X$exec_prefix" = "XNONE"; then
17925     acl_final_exec_prefix='${prefix}'
17926   else
17927     acl_final_exec_prefix="$exec_prefix"
17928   fi
17929   acl_save_prefix="$prefix"
17930   prefix="$acl_final_prefix"
17931   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17932   prefix="$acl_save_prefix"
17933
17934
17935
17936 # Check whether --with-gnu-ld was given.
17937 if test "${with_gnu_ld+set}" = set; then :
17938   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17939 else
17940   with_gnu_ld=no
17941 fi
17942
17943 # Prepare PATH_SEPARATOR.
17944 # The user is always right.
17945 if test "${PATH_SEPARATOR+set}" != set; then
17946   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17947   # contains only /bin. Note that ksh looks also at the FPATH variable,
17948   # so we have to set that as well for the test.
17949   PATH_SEPARATOR=:
17950   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17951     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17952            || PATH_SEPARATOR=';'
17953        }
17954 fi
17955
17956 if test -n "$LD"; then
17957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
17958 $as_echo_n "checking for ld... " >&6; }
17959 elif test "$GCC" = yes; then
17960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17961 $as_echo_n "checking for ld used by $CC... " >&6; }
17962 elif test "$with_gnu_ld" = yes; then
17963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17964 $as_echo_n "checking for GNU ld... " >&6; }
17965 else
17966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17967 $as_echo_n "checking for non-GNU ld... " >&6; }
17968 fi
17969 if test -n "$LD"; then
17970   # Let the user override the test with a path.
17971   :
17972 else
17973   if ${acl_cv_path_LD+:} false; then :
17974   $as_echo_n "(cached) " >&6
17975 else
17976
17977     acl_cv_path_LD= # Final result of this test
17978     ac_prog=ld # Program to search in $PATH
17979     if test "$GCC" = yes; then
17980       # Check if gcc -print-prog-name=ld gives a path.
17981       case $host in
17982         *-*-mingw*)
17983           # gcc leaves a trailing carriage return which upsets mingw
17984           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17985         *)
17986           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
17987       esac
17988       case $acl_output in
17989         # Accept absolute paths.
17990         [\\/]* | ?:[\\/]*)
17991           re_direlt='/[^/][^/]*/\.\./'
17992           # Canonicalize the pathname of ld
17993           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
17994           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
17995             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
17996           done
17997           # Got the pathname. No search in PATH is needed.
17998           acl_cv_path_LD="$acl_output"
17999           ac_prog=
18000           ;;
18001         "")
18002           # If it fails, then pretend we aren't using GCC.
18003           ;;
18004         *)
18005           # If it is relative, then search for the first ld in PATH.
18006           with_gnu_ld=unknown
18007           ;;
18008       esac
18009     fi
18010     if test -n "$ac_prog"; then
18011       # Search for $ac_prog in $PATH.
18012       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18013       for ac_dir in $PATH; do
18014         IFS="$acl_save_ifs"
18015         test -z "$ac_dir" && ac_dir=.
18016         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18017           acl_cv_path_LD="$ac_dir/$ac_prog"
18018           # Check to see if the program is GNU ld.  I'd rather use --version,
18019           # but apparently some variants of GNU ld only accept -v.
18020           # Break only if it was the GNU/non-GNU ld that we prefer.
18021           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18022             *GNU* | *'with BFD'*)
18023               test "$with_gnu_ld" != no && break
18024               ;;
18025             *)
18026               test "$with_gnu_ld" != yes && break
18027               ;;
18028           esac
18029         fi
18030       done
18031       IFS="$acl_save_ifs"
18032     fi
18033     case $host in
18034       *-*-aix*)
18035         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036 /* end confdefs.h.  */
18037 #if defined __powerpc64__ || defined _ARCH_PPC64
18038                 int ok;
18039                #else
18040                 error fail
18041                #endif
18042
18043 _ACEOF
18044 if ac_fn_c_try_compile "$LINENO"; then :
18045   # The compiler produces 64-bit code. Add option '-b64' so that the
18046            # linker groks 64-bit object files.
18047            case "$acl_cv_path_LD " in
18048              *" -b64 "*) ;;
18049              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
18050            esac
18051
18052 fi
18053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18054         ;;
18055       sparc64-*-netbsd*)
18056         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h.  */
18058 #if defined __sparcv9 || defined __arch64__
18059                 int ok;
18060                #else
18061                 error fail
18062                #endif
18063
18064 _ACEOF
18065 if ac_fn_c_try_compile "$LINENO"; then :
18066
18067 else
18068   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
18069            # so that the linker groks 32-bit object files.
18070            case "$acl_cv_path_LD " in
18071              *" -m elf32_sparc "*) ;;
18072              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
18073            esac
18074
18075 fi
18076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077         ;;
18078     esac
18079
18080 fi
18081
18082   LD="$acl_cv_path_LD"
18083 fi
18084 if test -n "$LD"; then
18085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18086 $as_echo "$LD" >&6; }
18087 else
18088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089 $as_echo "no" >&6; }
18090   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18091 fi
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18093 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18094 if ${acl_cv_prog_gnu_ld+:} false; then :
18095   $as_echo_n "(cached) " >&6
18096 else
18097   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18098 case `$LD -v 2>&1 </dev/null` in
18099 *GNU* | *'with BFD'*)
18100   acl_cv_prog_gnu_ld=yes
18101   ;;
18102 *)
18103   acl_cv_prog_gnu_ld=no
18104   ;;
18105 esac
18106 fi
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18108 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18109 with_gnu_ld=$acl_cv_prog_gnu_ld
18110
18111
18112
18113
18114                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18115 $as_echo_n "checking for shared library run path origin... " >&6; }
18116 if ${acl_cv_rpath+:} false; then :
18117   $as_echo_n "(cached) " >&6
18118 else
18119
18120     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18121     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18122     . ./conftest.sh
18123     rm -f ./conftest.sh
18124     acl_cv_rpath=done
18125
18126 fi
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18128 $as_echo "$acl_cv_rpath" >&6; }
18129   wl="$acl_cv_wl"
18130   acl_libext="$acl_cv_libext"
18131   acl_shlibext="$acl_cv_shlibext"
18132   acl_libname_spec="$acl_cv_libname_spec"
18133   acl_library_names_spec="$acl_cv_library_names_spec"
18134   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18135   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18136   acl_hardcode_direct="$acl_cv_hardcode_direct"
18137   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18138     # Check whether --enable-rpath was given.
18139 if test "${enable_rpath+set}" = set; then :
18140   enableval=$enable_rpath; :
18141 else
18142   enable_rpath=yes
18143 fi
18144
18145
18146
18147
18148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
18149 $as_echo_n "checking 32-bit host C ABI... " >&6; }
18150 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
18151   $as_echo_n "(cached) " >&6
18152 else
18153   if test -n "$gl_cv_host_cpu_c_abi"; then
18154        case "$gl_cv_host_cpu_c_abi" in
18155          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
18156            gl_cv_host_cpu_c_abi_32bit=yes ;;
18157          *)
18158            gl_cv_host_cpu_c_abi_32bit=no ;;
18159        esac
18160      else
18161        case "$host_cpu" in
18162
18163          i[4567]86 )
18164            gl_cv_host_cpu_c_abi_32bit=yes
18165            ;;
18166
18167          x86_64 )
18168            # On x86_64 systems, the C compiler may be generating code in one of
18169            # these ABIs:
18170            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
18171            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
18172            #   with native Windows (mingw, MSVC).
18173            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
18174            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
18175            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h.  */
18177 #if (defined __x86_64__ || defined __amd64__ \
18178                        || defined _M_X64 || defined _M_AMD64) \
18179                       && !(defined __ILP32__ || defined _ILP32)
18180                    int ok;
18181                   #else
18182                    error fail
18183                   #endif
18184
18185 _ACEOF
18186 if ac_fn_c_try_compile "$LINENO"; then :
18187   gl_cv_host_cpu_c_abi_32bit=no
18188 else
18189   gl_cv_host_cpu_c_abi_32bit=yes
18190 fi
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192            ;;
18193
18194          arm* | aarch64 )
18195            # Assume arm with EABI.
18196            # On arm64 systems, the C compiler may be generating code in one of
18197            # these ABIs:
18198            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
18199            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
18200            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
18201            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202 /* end confdefs.h.  */
18203 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
18204                    int ok;
18205                   #else
18206                    error fail
18207                   #endif
18208
18209 _ACEOF
18210 if ac_fn_c_try_compile "$LINENO"; then :
18211   gl_cv_host_cpu_c_abi_32bit=no
18212 else
18213   gl_cv_host_cpu_c_abi_32bit=yes
18214 fi
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216            ;;
18217
18218          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
18219            # On hppa, the C compiler may be generating 32-bit code or 64-bit
18220            # code. In the latter case, it defines _LP64 and __LP64__.
18221            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h.  */
18223 #ifdef __LP64__
18224                    int ok;
18225                   #else
18226                    error fail
18227                   #endif
18228
18229 _ACEOF
18230 if ac_fn_c_try_compile "$LINENO"; then :
18231   gl_cv_host_cpu_c_abi_32bit=no
18232 else
18233   gl_cv_host_cpu_c_abi_32bit=yes
18234 fi
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236            ;;
18237
18238          ia64* )
18239            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
18240            # 32-bit code. In the latter case, it defines _ILP32.
18241            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h.  */
18243 #ifdef _ILP32
18244                    int ok;
18245                   #else
18246                    error fail
18247                   #endif
18248
18249 _ACEOF
18250 if ac_fn_c_try_compile "$LINENO"; then :
18251   gl_cv_host_cpu_c_abi_32bit=yes
18252 else
18253   gl_cv_host_cpu_c_abi_32bit=no
18254 fi
18255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18256            ;;
18257
18258          mips* )
18259            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
18260            # at 32.
18261            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h.  */
18263 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
18264                    int ok;
18265                   #else
18266                    error fail
18267                   #endif
18268
18269 _ACEOF
18270 if ac_fn_c_try_compile "$LINENO"; then :
18271   gl_cv_host_cpu_c_abi_32bit=no
18272 else
18273   gl_cv_host_cpu_c_abi_32bit=yes
18274 fi
18275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18276            ;;
18277
18278          powerpc* )
18279            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
18280            # No need to distinguish them here; the caller may distinguish
18281            # them based on the OS.
18282            # On powerpc64 systems, the C compiler may still be generating
18283            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
18284            # be generating 64-bit code.
18285            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h.  */
18287 #if defined __powerpc64__ || defined _ARCH_PPC64
18288                    int ok;
18289                   #else
18290                    error fail
18291                   #endif
18292
18293 _ACEOF
18294 if ac_fn_c_try_compile "$LINENO"; then :
18295   gl_cv_host_cpu_c_abi_32bit=no
18296 else
18297   gl_cv_host_cpu_c_abi_32bit=yes
18298 fi
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18300            ;;
18301
18302          rs6000 )
18303            gl_cv_host_cpu_c_abi_32bit=yes
18304            ;;
18305
18306          riscv32 | riscv64 )
18307            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
18308            # Size of 'long' and 'void *':
18309            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h.  */
18311 #if defined __LP64__
18312                     int ok;
18313                   #else
18314                     error fail
18315                   #endif
18316
18317 _ACEOF
18318 if ac_fn_c_try_compile "$LINENO"; then :
18319   gl_cv_host_cpu_c_abi_32bit=no
18320 else
18321   gl_cv_host_cpu_c_abi_32bit=yes
18322 fi
18323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18324            ;;
18325
18326          s390* )
18327            # On s390x, the C compiler may be generating 64-bit (= s390x) code
18328            # or 31-bit (= s390) code.
18329            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h.  */
18331 #if defined __LP64__ || defined __s390x__
18332                     int ok;
18333                   #else
18334                     error fail
18335                   #endif
18336
18337 _ACEOF
18338 if ac_fn_c_try_compile "$LINENO"; then :
18339   gl_cv_host_cpu_c_abi_32bit=no
18340 else
18341   gl_cv_host_cpu_c_abi_32bit=yes
18342 fi
18343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18344            ;;
18345
18346          sparc | sparc64 )
18347            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
18348            # C compiler still generates 32-bit code.
18349            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350 /* end confdefs.h.  */
18351 #if defined __sparcv9 || defined __arch64__
18352                    int ok;
18353                   #else
18354                    error fail
18355                   #endif
18356
18357 _ACEOF
18358 if ac_fn_c_try_compile "$LINENO"; then :
18359   gl_cv_host_cpu_c_abi_32bit=no
18360 else
18361   gl_cv_host_cpu_c_abi_32bit=yes
18362 fi
18363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18364            ;;
18365
18366          *)
18367            gl_cv_host_cpu_c_abi_32bit=no
18368            ;;
18369        esac
18370      fi
18371
18372 fi
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
18374 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
18375
18376   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
18377
18378
18379
18380
18381
18382   case "$host_os" in
18383     solaris*)
18384       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18385 $as_echo_n "checking for 64-bit host... " >&6; }
18386 if ${gl_cv_solaris_64bit+:} false; then :
18387   $as_echo_n "(cached) " >&6
18388 else
18389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h.  */
18391 #ifdef _LP64
18392                  int ok;
18393                 #else
18394                  error fail
18395                 #endif
18396
18397 _ACEOF
18398 if ac_fn_c_try_compile "$LINENO"; then :
18399   gl_cv_solaris_64bit=yes
18400 else
18401   gl_cv_solaris_64bit=no
18402 fi
18403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18404
18405 fi
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18407 $as_echo "$gl_cv_solaris_64bit" >&6; };;
18408   esac
18409
18410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
18411 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
18412 if ${acl_cv_libdirstems+:} false; then :
18413   $as_echo_n "(cached) " >&6
18414 else
18415   acl_libdirstem=lib
18416      acl_libdirstem2=
18417      case "$host_os" in
18418        solaris*)
18419                                                       if test $gl_cv_solaris_64bit = yes; then
18420            acl_libdirstem=lib/64
18421            case "$host_cpu" in
18422              sparc*)        acl_libdirstem2=lib/sparcv9 ;;
18423              i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18424            esac
18425          fi
18426          ;;
18427        *)
18428                            if test "$HOST_CPU_C_ABI_32BIT" != yes; then
18429                                             searchpath=`(if test -f /usr/bin/gcc \
18430                            && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
18431                           LC_ALL=C /usr/bin/gcc -print-search-dirs; \
18432                         else \
18433                           LC_ALL=C $CC -print-search-dirs; \
18434                         fi) 2>/dev/null \
18435                        | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18436            if test -n "$searchpath"; then
18437              acl_save_IFS="${IFS=       }"; IFS=":"
18438              for searchdir in $searchpath; do
18439                if test -d "$searchdir"; then
18440                  case "$searchdir" in
18441                    */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18442                    */../ | */.. )
18443                      # Better ignore directories of this form. They are misleading.
18444                      ;;
18445                    *) searchdir=`cd "$searchdir" && pwd`
18446                       case "$searchdir" in
18447                         */lib64 ) acl_libdirstem=lib64 ;;
18448                       esac ;;
18449                  esac
18450                fi
18451              done
18452              IFS="$acl_save_IFS"
18453            fi
18454          fi
18455          ;;
18456      esac
18457      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18458      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
18459
18460 fi
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
18462 $as_echo "$acl_cv_libdirstems" >&6; }
18463   # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
18464   acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
18465   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
18466
18467
18468
18469   gl_threads_api=none
18470   LIBTHREAD=
18471   LTLIBTHREAD=
18472   LIBMULTITHREAD=
18473   LTLIBMULTITHREAD=
18474   if test "$gl_use_threads" != no; then
18475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
18476 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
18477 if ${gl_cv_have_weak+:} false; then :
18478   $as_echo_n "(cached) " >&6
18479 else
18480   gl_cv_have_weak=no
18481               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h.  */
18483 extern void xyzzy ();
18484 #pragma weak xyzzy
18485 int
18486 main ()
18487 {
18488 xyzzy();
18489   ;
18490   return 0;
18491 }
18492 _ACEOF
18493 if ac_fn_c_try_link "$LINENO"; then :
18494   gl_cv_have_weak=maybe
18495 fi
18496 rm -f core conftest.err conftest.$ac_objext \
18497     conftest$ac_exeext conftest.$ac_ext
18498        if test $gl_cv_have_weak = maybe; then
18499                            if test "$cross_compiling" = yes; then :
18500                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h.  */
18502 #ifdef __ELF__
18503                Extensible Linking Format
18504                #endif
18505
18506 _ACEOF
18507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18508   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
18509   gl_cv_have_weak="guessing yes"
18510 else
18511   gl_cv_have_weak="guessing no"
18512 fi
18513 rm -f conftest*
18514
18515
18516 else
18517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h.  */
18519
18520 #include <stdio.h>
18521 #pragma weak fputs
18522 int main ()
18523 {
18524   return (fputs == NULL);
18525 }
18526 _ACEOF
18527 if ac_fn_c_try_run "$LINENO"; then :
18528   gl_cv_have_weak=yes
18529 else
18530   gl_cv_have_weak=no
18531 fi
18532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18533   conftest.$ac_objext conftest.beam conftest.$ac_ext
18534 fi
18535
18536        fi
18537               case " $LDFLAGS " in
18538          *" -static "*) gl_cv_have_weak=no ;;
18539        esac
18540
18541 fi
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
18543 $as_echo "$gl_cv_have_weak" >&6; }
18544     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
18545       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
18546       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
18547       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18548 if test "x$ac_cv_header_pthread_h" = xyes; then :
18549   gl_have_pthread_h=yes
18550 else
18551   gl_have_pthread_h=no
18552 fi
18553
18554
18555       if test "$gl_have_pthread_h" = yes; then
18556         # Other possible tests:
18557         #   -lpthreads (FSU threads, PCthreads)
18558         #   -lgthreads
18559         gl_have_pthread=
18560         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
18561         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
18562         # the second one only in libpthread, and lock.c needs it.
18563         #
18564         # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
18565         # needs -pthread for some reason.  See:
18566         # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
18567         save_LIBS=$LIBS
18568         for gl_pthread in '' '-pthread'; do
18569           LIBS="$LIBS $gl_pthread"
18570           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h.  */
18572 #include <pthread.h>
18573                  pthread_mutex_t m;
18574                  pthread_mutexattr_t ma;
18575
18576 int
18577 main ()
18578 {
18579 pthread_mutex_lock (&m);
18580                  pthread_mutexattr_init (&ma);
18581   ;
18582   return 0;
18583 }
18584 _ACEOF
18585 if ac_fn_c_try_link "$LINENO"; then :
18586   gl_have_pthread=yes
18587              LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
18588              LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
18589 fi
18590 rm -f core conftest.err conftest.$ac_objext \
18591     conftest$ac_exeext conftest.$ac_ext
18592           LIBS=$save_LIBS
18593           test -n "$gl_have_pthread" && break
18594         done
18595
18596         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
18597         # since it is defined as a macro on OSF/1.)
18598         if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
18599           # The program links fine without libpthread. But it may actually
18600           # need to link with libpthread in order to create multiple threads.
18601           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18602 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18603 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18604   $as_echo_n "(cached) " >&6
18605 else
18606   ac_check_lib_save_LIBS=$LIBS
18607 LIBS="-lpthread  $LIBS"
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h.  */
18610
18611 /* Override any GCC internal prototype to avoid an error.
18612    Use char because int might match the return type of a GCC
18613    builtin and then its argument prototype would still apply.  */
18614 #ifdef __cplusplus
18615 extern "C"
18616 #endif
18617 char pthread_kill ();
18618 int
18619 main ()
18620 {
18621 return pthread_kill ();
18622   ;
18623   return 0;
18624 }
18625 _ACEOF
18626 if ac_fn_c_try_link "$LINENO"; then :
18627   ac_cv_lib_pthread_pthread_kill=yes
18628 else
18629   ac_cv_lib_pthread_pthread_kill=no
18630 fi
18631 rm -f core conftest.err conftest.$ac_objext \
18632     conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18634 fi
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18636 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18637 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18638   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18639              # On Solaris and HP-UX, most pthread functions exist also in libc.
18640              # Therefore pthread_in_use() needs to actually try to create a
18641              # thread: pthread_create from libc will fail, whereas
18642              # pthread_create will actually create a thread.
18643              # On Solaris 10 or newer, this test is no longer needed, because
18644              # libc contains the fully functional pthread functions.
18645              case "$host_os" in
18646                solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
18647
18648 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
18649
18650              esac
18651
18652 fi
18653
18654         elif test -z "$gl_have_pthread"; then
18655           # Some library is needed. Try libpthread and libc_r.
18656           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18657 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18658 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18659   $as_echo_n "(cached) " >&6
18660 else
18661   ac_check_lib_save_LIBS=$LIBS
18662 LIBS="-lpthread  $LIBS"
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h.  */
18665
18666 /* Override any GCC internal prototype to avoid an error.
18667    Use char because int might match the return type of a GCC
18668    builtin and then its argument prototype would still apply.  */
18669 #ifdef __cplusplus
18670 extern "C"
18671 #endif
18672 char pthread_kill ();
18673 int
18674 main ()
18675 {
18676 return pthread_kill ();
18677   ;
18678   return 0;
18679 }
18680 _ACEOF
18681 if ac_fn_c_try_link "$LINENO"; then :
18682   ac_cv_lib_pthread_pthread_kill=yes
18683 else
18684   ac_cv_lib_pthread_pthread_kill=no
18685 fi
18686 rm -f core conftest.err conftest.$ac_objext \
18687     conftest$ac_exeext conftest.$ac_ext
18688 LIBS=$ac_check_lib_save_LIBS
18689 fi
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18691 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18692 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18693   gl_have_pthread=yes
18694              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
18695              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18696 fi
18697
18698           if test -z "$gl_have_pthread"; then
18699             # For FreeBSD 4.
18700             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
18701 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
18702 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
18703   $as_echo_n "(cached) " >&6
18704 else
18705   ac_check_lib_save_LIBS=$LIBS
18706 LIBS="-lc_r  $LIBS"
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h.  */
18709
18710 /* Override any GCC internal prototype to avoid an error.
18711    Use char because int might match the return type of a GCC
18712    builtin and then its argument prototype would still apply.  */
18713 #ifdef __cplusplus
18714 extern "C"
18715 #endif
18716 char pthread_kill ();
18717 int
18718 main ()
18719 {
18720 return pthread_kill ();
18721   ;
18722   return 0;
18723 }
18724 _ACEOF
18725 if ac_fn_c_try_link "$LINENO"; then :
18726   ac_cv_lib_c_r_pthread_kill=yes
18727 else
18728   ac_cv_lib_c_r_pthread_kill=no
18729 fi
18730 rm -f core conftest.err conftest.$ac_objext \
18731     conftest$ac_exeext conftest.$ac_ext
18732 LIBS=$ac_check_lib_save_LIBS
18733 fi
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
18735 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
18736 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
18737   gl_have_pthread=yes
18738                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
18739                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
18740 fi
18741
18742           fi
18743         fi
18744         if test -n "$gl_have_pthread"; then
18745           gl_threads_api=posix
18746
18747 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
18748
18749           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
18750             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18751
18752 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
18753
18754               LIBTHREAD=
18755               LTLIBTHREAD=
18756             fi
18757           fi
18758         fi
18759       fi
18760     fi
18761     if test -z "$gl_have_pthread"; then
18762       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
18763         gl_have_solaristhread=
18764         gl_save_LIBS="$LIBS"
18765         LIBS="$LIBS -lthread"
18766         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h.  */
18768
18769 #include <thread.h>
18770 #include <synch.h>
18771
18772 int
18773 main ()
18774 {
18775 thr_self();
18776   ;
18777   return 0;
18778 }
18779 _ACEOF
18780 if ac_fn_c_try_link "$LINENO"; then :
18781   gl_have_solaristhread=yes
18782 fi
18783 rm -f core conftest.err conftest.$ac_objext \
18784     conftest$ac_exeext conftest.$ac_ext
18785         LIBS="$gl_save_LIBS"
18786         if test -n "$gl_have_solaristhread"; then
18787           gl_threads_api=solaris
18788           LIBTHREAD=-lthread
18789           LTLIBTHREAD=-lthread
18790           LIBMULTITHREAD="$LIBTHREAD"
18791           LTLIBMULTITHREAD="$LTLIBTHREAD"
18792
18793 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
18794
18795           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18796
18797 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
18798
18799             LIBTHREAD=
18800             LTLIBTHREAD=
18801           fi
18802         fi
18803       fi
18804     fi
18805     if test "$gl_use_threads" = pth; then
18806       gl_save_CPPFLAGS="$CPPFLAGS"
18807
18808
18809
18810
18811
18812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
18813 $as_echo_n "checking how to link with libpth... " >&6; }
18814 if ${ac_cv_libpth_libs+:} false; then :
18815   $as_echo_n "(cached) " >&6
18816 else
18817
18818
18819
18820
18821
18822
18823
18824     use_additional=yes
18825
18826   acl_save_prefix="$prefix"
18827   prefix="$acl_final_prefix"
18828   acl_save_exec_prefix="$exec_prefix"
18829   exec_prefix="$acl_final_exec_prefix"
18830
18831     eval additional_includedir=\"$includedir\"
18832     eval additional_libdir=\"$libdir\"
18833
18834   exec_prefix="$acl_save_exec_prefix"
18835   prefix="$acl_save_prefix"
18836
18837
18838 # Check whether --with-libpth-prefix was given.
18839 if test "${with_libpth_prefix+set}" = set; then :
18840   withval=$with_libpth_prefix;
18841     if test "X$withval" = "Xno"; then
18842       use_additional=no
18843     else
18844       if test "X$withval" = "X"; then
18845
18846   acl_save_prefix="$prefix"
18847   prefix="$acl_final_prefix"
18848   acl_save_exec_prefix="$exec_prefix"
18849   exec_prefix="$acl_final_exec_prefix"
18850
18851           eval additional_includedir=\"$includedir\"
18852           eval additional_libdir=\"$libdir\"
18853
18854   exec_prefix="$acl_save_exec_prefix"
18855   prefix="$acl_save_prefix"
18856
18857       else
18858         additional_includedir="$withval/include"
18859         additional_libdir="$withval/$acl_libdirstem"
18860         if test "$acl_libdirstem2" != "$acl_libdirstem" \
18861            && test ! -d "$withval/$acl_libdirstem"; then
18862           additional_libdir="$withval/$acl_libdirstem2"
18863         fi
18864       fi
18865     fi
18866
18867 fi
18868
18869       LIBPTH=
18870   LTLIBPTH=
18871   INCPTH=
18872   LIBPTH_PREFIX=
18873       HAVE_LIBPTH=
18874   rpathdirs=
18875   ltrpathdirs=
18876   names_already_handled=
18877   names_next_round='pth '
18878   while test -n "$names_next_round"; do
18879     names_this_round="$names_next_round"
18880     names_next_round=
18881     for name in $names_this_round; do
18882       already_handled=
18883       for n in $names_already_handled; do
18884         if test "$n" = "$name"; then
18885           already_handled=yes
18886           break
18887         fi
18888       done
18889       if test -z "$already_handled"; then
18890         names_already_handled="$names_already_handled $name"
18891                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18892         eval value=\"\$HAVE_LIB$uppername\"
18893         if test -n "$value"; then
18894           if test "$value" = yes; then
18895             eval value=\"\$LIB$uppername\"
18896             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
18897             eval value=\"\$LTLIB$uppername\"
18898             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
18899           else
18900                                     :
18901           fi
18902         else
18903                               found_dir=
18904           found_la=
18905           found_so=
18906           found_a=
18907           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18908           if test -n "$acl_shlibext"; then
18909             shrext=".$acl_shlibext"             # typically: shrext=.so
18910           else
18911             shrext=
18912           fi
18913           if test $use_additional = yes; then
18914             dir="$additional_libdir"
18915                                     if test -n "$acl_shlibext"; then
18916               if test -f "$dir/$libname$shrext"; then
18917                 found_dir="$dir"
18918                 found_so="$dir/$libname$shrext"
18919               else
18920                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18921                   ver=`(cd "$dir" && \
18922                         for f in "$libname$shrext".*; do echo "$f"; done \
18923                         | sed -e "s,^$libname$shrext\\\\.,," \
18924                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18925                         | sed 1q ) 2>/dev/null`
18926                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18927                     found_dir="$dir"
18928                     found_so="$dir/$libname$shrext.$ver"
18929                   fi
18930                 else
18931                   eval library_names=\"$acl_library_names_spec\"
18932                   for f in $library_names; do
18933                     if test -f "$dir/$f"; then
18934                       found_dir="$dir"
18935                       found_so="$dir/$f"
18936                       break
18937                     fi
18938                   done
18939                 fi
18940               fi
18941             fi
18942                         if test "X$found_dir" = "X"; then
18943               if test -f "$dir/$libname.$acl_libext"; then
18944                 found_dir="$dir"
18945                 found_a="$dir/$libname.$acl_libext"
18946               fi
18947             fi
18948             if test "X$found_dir" != "X"; then
18949               if test -f "$dir/$libname.la"; then
18950                 found_la="$dir/$libname.la"
18951               fi
18952             fi
18953           fi
18954           if test "X$found_dir" = "X"; then
18955             for x in $LDFLAGS $LTLIBPTH; do
18956
18957   acl_save_prefix="$prefix"
18958   prefix="$acl_final_prefix"
18959   acl_save_exec_prefix="$exec_prefix"
18960   exec_prefix="$acl_final_exec_prefix"
18961   eval x=\"$x\"
18962   exec_prefix="$acl_save_exec_prefix"
18963   prefix="$acl_save_prefix"
18964
18965               case "$x" in
18966                 -L*)
18967                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18968                                     if test -n "$acl_shlibext"; then
18969                     if test -f "$dir/$libname$shrext"; then
18970                       found_dir="$dir"
18971                       found_so="$dir/$libname$shrext"
18972                     else
18973                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18974                         ver=`(cd "$dir" && \
18975                               for f in "$libname$shrext".*; do echo "$f"; done \
18976                               | sed -e "s,^$libname$shrext\\\\.,," \
18977                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18978                               | sed 1q ) 2>/dev/null`
18979                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18980                           found_dir="$dir"
18981                           found_so="$dir/$libname$shrext.$ver"
18982                         fi
18983                       else
18984                         eval library_names=\"$acl_library_names_spec\"
18985                         for f in $library_names; do
18986                           if test -f "$dir/$f"; then
18987                             found_dir="$dir"
18988                             found_so="$dir/$f"
18989                             break
18990                           fi
18991                         done
18992                       fi
18993                     fi
18994                   fi
18995                                     if test "X$found_dir" = "X"; then
18996                     if test -f "$dir/$libname.$acl_libext"; then
18997                       found_dir="$dir"
18998                       found_a="$dir/$libname.$acl_libext"
18999                     fi
19000                   fi
19001                   if test "X$found_dir" != "X"; then
19002                     if test -f "$dir/$libname.la"; then
19003                       found_la="$dir/$libname.la"
19004                     fi
19005                   fi
19006                   ;;
19007               esac
19008               if test "X$found_dir" != "X"; then
19009                 break
19010               fi
19011             done
19012           fi
19013           if test "X$found_dir" != "X"; then
19014                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
19015             if test "X$found_so" != "X"; then
19016                                                         if test "$enable_rpath" = no \
19017                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19018                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19019                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19020               else
19021                                                                                 haveit=
19022                 for x in $ltrpathdirs; do
19023                   if test "X$x" = "X$found_dir"; then
19024                     haveit=yes
19025                     break
19026                   fi
19027                 done
19028                 if test -z "$haveit"; then
19029                   ltrpathdirs="$ltrpathdirs $found_dir"
19030                 fi
19031                                 if test "$acl_hardcode_direct" = yes; then
19032                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19033                 else
19034                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19035                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19036                                                             haveit=
19037                     for x in $rpathdirs; do
19038                       if test "X$x" = "X$found_dir"; then
19039                         haveit=yes
19040                         break
19041                       fi
19042                     done
19043                     if test -z "$haveit"; then
19044                       rpathdirs="$rpathdirs $found_dir"
19045                     fi
19046                   else
19047                                                                                 haveit=
19048                     for x in $LDFLAGS $LIBPTH; do
19049
19050   acl_save_prefix="$prefix"
19051   prefix="$acl_final_prefix"
19052   acl_save_exec_prefix="$exec_prefix"
19053   exec_prefix="$acl_final_exec_prefix"
19054   eval x=\"$x\"
19055   exec_prefix="$acl_save_exec_prefix"
19056   prefix="$acl_save_prefix"
19057
19058                       if test "X$x" = "X-L$found_dir"; then
19059                         haveit=yes
19060                         break
19061                       fi
19062                     done
19063                     if test -z "$haveit"; then
19064                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
19065                     fi
19066                     if test "$acl_hardcode_minus_L" != no; then
19067                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19068                     else
19069                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19070                     fi
19071                   fi
19072                 fi
19073               fi
19074             else
19075               if test "X$found_a" != "X"; then
19076                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
19077               else
19078                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
19079               fi
19080             fi
19081                         additional_includedir=
19082             case "$found_dir" in
19083               */$acl_libdirstem | */$acl_libdirstem/)
19084                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19085                 if test "$name" = 'pth'; then
19086                   LIBPTH_PREFIX="$basedir"
19087                 fi
19088                 additional_includedir="$basedir/include"
19089                 ;;
19090               */$acl_libdirstem2 | */$acl_libdirstem2/)
19091                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19092                 if test "$name" = 'pth'; then
19093                   LIBPTH_PREFIX="$basedir"
19094                 fi
19095                 additional_includedir="$basedir/include"
19096                 ;;
19097             esac
19098             if test "X$additional_includedir" != "X"; then
19099                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
19100                 haveit=
19101                 if test "X$additional_includedir" = "X/usr/local/include"; then
19102                   if test -n "$GCC"; then
19103                     case $host_os in
19104                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19105                     esac
19106                   fi
19107                 fi
19108                 if test -z "$haveit"; then
19109                   for x in $CPPFLAGS $INCPTH; do
19110
19111   acl_save_prefix="$prefix"
19112   prefix="$acl_final_prefix"
19113   acl_save_exec_prefix="$exec_prefix"
19114   exec_prefix="$acl_final_exec_prefix"
19115   eval x=\"$x\"
19116   exec_prefix="$acl_save_exec_prefix"
19117   prefix="$acl_save_prefix"
19118
19119                     if test "X$x" = "X-I$additional_includedir"; then
19120                       haveit=yes
19121                       break
19122                     fi
19123                   done
19124                   if test -z "$haveit"; then
19125                     if test -d "$additional_includedir"; then
19126                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
19127                     fi
19128                   fi
19129                 fi
19130               fi
19131             fi
19132                         if test -n "$found_la"; then
19133                                                         save_libdir="$libdir"
19134               case "$found_la" in
19135                 */* | *\\*) . "$found_la" ;;
19136                 *) . "./$found_la" ;;
19137               esac
19138               libdir="$save_libdir"
19139                             for dep in $dependency_libs; do
19140                 case "$dep" in
19141                   -L*)
19142                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19143                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19144                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19145                       haveit=
19146                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19147                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19148                         if test -n "$GCC"; then
19149                           case $host_os in
19150                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19151                           esac
19152                         fi
19153                       fi
19154                       if test -z "$haveit"; then
19155                         haveit=
19156                         for x in $LDFLAGS $LIBPTH; do
19157
19158   acl_save_prefix="$prefix"
19159   prefix="$acl_final_prefix"
19160   acl_save_exec_prefix="$exec_prefix"
19161   exec_prefix="$acl_final_exec_prefix"
19162   eval x=\"$x\"
19163   exec_prefix="$acl_save_exec_prefix"
19164   prefix="$acl_save_prefix"
19165
19166                           if test "X$x" = "X-L$additional_libdir"; then
19167                             haveit=yes
19168                             break
19169                           fi
19170                         done
19171                         if test -z "$haveit"; then
19172                           if test -d "$additional_libdir"; then
19173                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
19174                           fi
19175                         fi
19176                         haveit=
19177                         for x in $LDFLAGS $LTLIBPTH; do
19178
19179   acl_save_prefix="$prefix"
19180   prefix="$acl_final_prefix"
19181   acl_save_exec_prefix="$exec_prefix"
19182   exec_prefix="$acl_final_exec_prefix"
19183   eval x=\"$x\"
19184   exec_prefix="$acl_save_exec_prefix"
19185   prefix="$acl_save_prefix"
19186
19187                           if test "X$x" = "X-L$additional_libdir"; then
19188                             haveit=yes
19189                             break
19190                           fi
19191                         done
19192                         if test -z "$haveit"; then
19193                           if test -d "$additional_libdir"; then
19194                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
19195                           fi
19196                         fi
19197                       fi
19198                     fi
19199                     ;;
19200                   -R*)
19201                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
19202                     if test "$enable_rpath" != no; then
19203                                                                   haveit=
19204                       for x in $rpathdirs; do
19205                         if test "X$x" = "X$dir"; then
19206                           haveit=yes
19207                           break
19208                         fi
19209                       done
19210                       if test -z "$haveit"; then
19211                         rpathdirs="$rpathdirs $dir"
19212                       fi
19213                                                                   haveit=
19214                       for x in $ltrpathdirs; do
19215                         if test "X$x" = "X$dir"; then
19216                           haveit=yes
19217                           break
19218                         fi
19219                       done
19220                       if test -z "$haveit"; then
19221                         ltrpathdirs="$ltrpathdirs $dir"
19222                       fi
19223                     fi
19224                     ;;
19225                   -l*)
19226                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19227                     ;;
19228                   *.la)
19229                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19230                     ;;
19231                   *)
19232                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
19233                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
19234                     ;;
19235                 esac
19236               done
19237             fi
19238           else
19239                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19240             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
19241           fi
19242         fi
19243       fi
19244     done
19245   done
19246   if test "X$rpathdirs" != "X"; then
19247     if test -n "$acl_hardcode_libdir_separator"; then
19248                         alldirs=
19249       for found_dir in $rpathdirs; do
19250         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19251       done
19252             acl_save_libdir="$libdir"
19253       libdir="$alldirs"
19254       eval flag=\"$acl_hardcode_libdir_flag_spec\"
19255       libdir="$acl_save_libdir"
19256       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19257     else
19258             for found_dir in $rpathdirs; do
19259         acl_save_libdir="$libdir"
19260         libdir="$found_dir"
19261         eval flag=\"$acl_hardcode_libdir_flag_spec\"
19262         libdir="$acl_save_libdir"
19263         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19264       done
19265     fi
19266   fi
19267   if test "X$ltrpathdirs" != "X"; then
19268             for found_dir in $ltrpathdirs; do
19269       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
19270     done
19271   fi
19272
19273
19274
19275
19276
19277     ac_cv_libpth_libs="$LIBPTH"
19278     ac_cv_libpth_ltlibs="$LTLIBPTH"
19279     ac_cv_libpth_cppflags="$INCPTH"
19280     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
19281
19282 fi
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
19284 $as_echo "$ac_cv_libpth_libs" >&6; }
19285   LIBPTH="$ac_cv_libpth_libs"
19286   LTLIBPTH="$ac_cv_libpth_ltlibs"
19287   INCPTH="$ac_cv_libpth_cppflags"
19288   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
19289
19290   for element in $INCPTH; do
19291     haveit=
19292     for x in $CPPFLAGS; do
19293
19294   acl_save_prefix="$prefix"
19295   prefix="$acl_final_prefix"
19296   acl_save_exec_prefix="$exec_prefix"
19297   exec_prefix="$acl_final_exec_prefix"
19298   eval x=\"$x\"
19299   exec_prefix="$acl_save_exec_prefix"
19300   prefix="$acl_save_prefix"
19301
19302       if test "X$x" = "X$element"; then
19303         haveit=yes
19304         break
19305       fi
19306     done
19307     if test -z "$haveit"; then
19308       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19309     fi
19310   done
19311
19312
19313
19314
19315       HAVE_LIBPTH=yes
19316
19317
19318
19319       gl_have_pth=
19320       gl_save_LIBS="$LIBS"
19321       LIBS="$LIBS $LIBPTH"
19322       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19323 /* end confdefs.h.  */
19324 #include <pth.h>
19325 int
19326 main ()
19327 {
19328 pth_self();
19329   ;
19330   return 0;
19331 }
19332 _ACEOF
19333 if ac_fn_c_try_link "$LINENO"; then :
19334   gl_have_pth=yes
19335 fi
19336 rm -f core conftest.err conftest.$ac_objext \
19337     conftest$ac_exeext conftest.$ac_ext
19338       LIBS="$gl_save_LIBS"
19339       if test -n "$gl_have_pth"; then
19340         gl_threads_api=pth
19341         LIBTHREAD="$LIBPTH"
19342         LTLIBTHREAD="$LTLIBPTH"
19343         LIBMULTITHREAD="$LIBTHREAD"
19344         LTLIBMULTITHREAD="$LTLIBTHREAD"
19345
19346 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
19347
19348         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19349           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19350
19351 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
19352
19353             LIBTHREAD=
19354             LTLIBTHREAD=
19355           fi
19356         fi
19357       else
19358         CPPFLAGS="$gl_save_CPPFLAGS"
19359       fi
19360     fi
19361     if test -z "$gl_have_pthread"; then
19362       case "$gl_use_threads" in
19363         yes | windows | win32) # The 'win32' is for backward compatibility.
19364           if { case "$host_os" in
19365                  mingw*) true;;
19366                  *) false;;
19367                esac
19368              }; then
19369             gl_threads_api=windows
19370
19371 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
19372
19373           fi
19374           ;;
19375       esac
19376     fi
19377   fi
19378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
19379 $as_echo_n "checking for multithread API to use... " >&6; }
19380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
19381 $as_echo "$gl_threads_api" >&6; }
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392      GNULIB_FCHMODAT=0;
19393   GNULIB_FSTAT=0;
19394   GNULIB_FSTATAT=0;
19395   GNULIB_FUTIMENS=0;
19396   GNULIB_LCHMOD=0;
19397   GNULIB_LSTAT=0;
19398   GNULIB_MKDIRAT=0;
19399   GNULIB_MKFIFO=0;
19400   GNULIB_MKFIFOAT=0;
19401   GNULIB_MKNOD=0;
19402   GNULIB_MKNODAT=0;
19403   GNULIB_STAT=0;
19404   GNULIB_UTIMENSAT=0;
19405   GNULIB_OVERRIDES_STRUCT_STAT=0;
19406     HAVE_FCHMODAT=1;
19407   HAVE_FSTATAT=1;
19408   HAVE_FUTIMENS=1;
19409   HAVE_LCHMOD=1;
19410   HAVE_LSTAT=1;
19411   HAVE_MKDIRAT=1;
19412   HAVE_MKFIFO=1;
19413   HAVE_MKFIFOAT=1;
19414   HAVE_MKNOD=1;
19415   HAVE_MKNODAT=1;
19416   HAVE_UTIMENSAT=1;
19417   REPLACE_FSTAT=0;
19418   REPLACE_FSTATAT=0;
19419   REPLACE_FUTIMENS=0;
19420   REPLACE_LSTAT=0;
19421   REPLACE_MKDIR=0;
19422   REPLACE_MKFIFO=0;
19423   REPLACE_MKNOD=0;
19424   REPLACE_STAT=0;
19425   REPLACE_UTIMENSAT=0;
19426
19427
19428
19429
19430          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19431 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19432 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
19433   $as_echo_n "(cached) " >&6
19434 else
19435   rm -f conftest.sym conftest.file
19436      echo >conftest.file
19437      if test "$cross_compiling" = yes; then :
19438   case "$host_os" in
19439           linux-* | linux)
19440             # Guess yes on Linux systems.
19441             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19442           *-gnu* | gnu*)
19443             # Guess yes on glibc systems.
19444             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19445           mingw*)
19446             # Guess no on native Windows.
19447             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19448           *)
19449             # If we don't know, assume the worst.
19450             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19451         esac
19452
19453 else
19454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h.  */
19456 $ac_includes_default
19457 int
19458 main ()
19459 {
19460 struct stat sbuf;
19461             if (symlink ("conftest.file", "conftest.sym") != 0)
19462               return 1;
19463             /* Linux will dereference the symlink and fail, as required by
19464                POSIX.  That is better in the sense that it means we will not
19465                have to compile and use the lstat wrapper.  */
19466             return lstat ("conftest.sym/", &sbuf) == 0;
19467
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 if ac_fn_c_try_run "$LINENO"; then :
19473   gl_cv_func_lstat_dereferences_slashed_symlink=yes
19474 else
19475   gl_cv_func_lstat_dereferences_slashed_symlink=no
19476 fi
19477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19478   conftest.$ac_objext conftest.beam conftest.$ac_ext
19479 fi
19480
19481      rm -f conftest.sym conftest.file
19482
19483 fi
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19485 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19486   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19487     *yes)
19488
19489 cat >>confdefs.h <<_ACEOF
19490 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19491 _ACEOF
19492
19493       ;;
19494   esac
19495
19496
19497   GNULIB__EXIT=0;
19498   GNULIB_ATOLL=0;
19499   GNULIB_CALLOC_POSIX=0;
19500   GNULIB_CANONICALIZE_FILE_NAME=0;
19501   GNULIB_GETLOADAVG=0;
19502   GNULIB_GETSUBOPT=0;
19503   GNULIB_GRANTPT=0;
19504   GNULIB_MALLOC_POSIX=0;
19505   GNULIB_MBTOWC=0;
19506   GNULIB_MKDTEMP=0;
19507   GNULIB_MKOSTEMP=0;
19508   GNULIB_MKOSTEMPS=0;
19509   GNULIB_MKSTEMP=0;
19510   GNULIB_MKSTEMPS=0;
19511   GNULIB_POSIX_OPENPT=0;
19512   GNULIB_PTSNAME=0;
19513   GNULIB_PTSNAME_R=0;
19514   GNULIB_PUTENV=0;
19515   GNULIB_QSORT_R=0;
19516   GNULIB_RANDOM=0;
19517   GNULIB_RANDOM_R=0;
19518   GNULIB_REALLOCARRAY=0;
19519   GNULIB_REALLOC_POSIX=0;
19520   GNULIB_REALPATH=0;
19521   GNULIB_RPMATCH=0;
19522   GNULIB_SECURE_GETENV=0;
19523   GNULIB_SETENV=0;
19524   GNULIB_STRTOD=0;
19525   GNULIB_STRTOLL=0;
19526   GNULIB_STRTOULL=0;
19527   GNULIB_SYSTEM_POSIX=0;
19528   GNULIB_UNLOCKPT=0;
19529   GNULIB_UNSETENV=0;
19530   GNULIB_WCTOMB=0;
19531     HAVE__EXIT=1;
19532   HAVE_ATOLL=1;
19533   HAVE_CANONICALIZE_FILE_NAME=1;
19534   HAVE_DECL_GETLOADAVG=1;
19535   HAVE_GETSUBOPT=1;
19536   HAVE_GRANTPT=1;
19537   HAVE_DECL_INITSTATE=1;
19538   HAVE_MKDTEMP=1;
19539   HAVE_MKOSTEMP=1;
19540   HAVE_MKOSTEMPS=1;
19541   HAVE_MKSTEMP=1;
19542   HAVE_MKSTEMPS=1;
19543   HAVE_POSIX_OPENPT=1;
19544   HAVE_PTSNAME=1;
19545   HAVE_PTSNAME_R=1;
19546   HAVE_QSORT_R=1;
19547   HAVE_RANDOM=1;
19548   HAVE_RANDOM_H=1;
19549   HAVE_RANDOM_R=1;
19550   HAVE_REALLOCARRAY=1;
19551   HAVE_REALPATH=1;
19552   HAVE_RPMATCH=1;
19553   HAVE_SECURE_GETENV=1;
19554   HAVE_SETENV=1;
19555   HAVE_DECL_SETENV=1;
19556   HAVE_DECL_SETSTATE=1;
19557   HAVE_STRTOD=1;
19558   HAVE_STRTOLL=1;
19559   HAVE_STRTOULL=1;
19560   HAVE_STRUCT_RANDOM_DATA=1;
19561   HAVE_SYS_LOADAVG_H=0;
19562   HAVE_UNLOCKPT=1;
19563   HAVE_DECL_UNSETENV=1;
19564   REPLACE_CALLOC=0;
19565   REPLACE_CANONICALIZE_FILE_NAME=0;
19566   REPLACE_MALLOC=0;
19567   REPLACE_MBTOWC=0;
19568   REPLACE_MKSTEMP=0;
19569   REPLACE_PTSNAME=0;
19570   REPLACE_PTSNAME_R=0;
19571   REPLACE_PUTENV=0;
19572   REPLACE_QSORT_R=0;
19573   REPLACE_RANDOM_R=0;
19574   REPLACE_REALLOC=0;
19575   REPLACE_REALPATH=0;
19576   REPLACE_SETENV=0;
19577   REPLACE_STRTOD=0;
19578   REPLACE_UNSETENV=0;
19579   REPLACE_WCTOMB=0;
19580
19581
19582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
19583 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
19584 if ${gl_cv_func_malloc_posix+:} false; then :
19585   $as_echo_n "(cached) " >&6
19586 else
19587
19588                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h.  */
19590
19591 int
19592 main ()
19593 {
19594 #if defined _WIN32 && ! defined __CYGWIN__
19595              choke me
19596              #endif
19597
19598   ;
19599   return 0;
19600 }
19601 _ACEOF
19602 if ac_fn_c_try_compile "$LINENO"; then :
19603   gl_cv_func_malloc_posix=yes
19604 else
19605   gl_cv_func_malloc_posix=no
19606 fi
19607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19608
19609 fi
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
19611 $as_echo "$gl_cv_func_malloc_posix" >&6; }
19612
19613
19614
19615       for ac_header in stdlib.h
19616 do :
19617   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19618 if test "x$ac_cv_header_stdlib_h" = xyes; then :
19619   cat >>confdefs.h <<_ACEOF
19620 #define HAVE_STDLIB_H 1
19621 _ACEOF
19622
19623 fi
19624
19625 done
19626
19627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19628 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19629 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19630   $as_echo_n "(cached) " >&6
19631 else
19632   if test "$cross_compiling" = yes; then :
19633   case "$host_os" in
19634           # Guess yes on platforms where we know the result.
19635           *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
19636           | hpux* | solaris* | cygwin* | mingw*)
19637             ac_cv_func_malloc_0_nonnull=yes ;;
19638           # If we don't know, assume the worst.
19639           *) ac_cv_func_malloc_0_nonnull=no ;;
19640         esac
19641
19642 else
19643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h.  */
19645 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19646             # include <stdlib.h>
19647             #else
19648             char *malloc ();
19649             #endif
19650
19651 int
19652 main ()
19653 {
19654 char *p = malloc (0);
19655             int result = !p;
19656             free (p);
19657             return result;
19658   ;
19659   return 0;
19660 }
19661
19662 _ACEOF
19663 if ac_fn_c_try_run "$LINENO"; then :
19664   ac_cv_func_malloc_0_nonnull=yes
19665 else
19666   ac_cv_func_malloc_0_nonnull=no
19667 fi
19668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19669   conftest.$ac_objext conftest.beam conftest.$ac_ext
19670 fi
19671
19672
19673 fi
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19675 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19676   if test $ac_cv_func_malloc_0_nonnull = yes; then :
19677   gl_cv_func_malloc_0_nonnull=1
19678 else
19679   gl_cv_func_malloc_0_nonnull=0
19680 fi
19681
19682
19683 cat >>confdefs.h <<_ACEOF
19684 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
19685 _ACEOF
19686
19687
19688
19689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19690 $as_echo_n "checking for unsigned long long int... " >&6; }
19691 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
19692   $as_echo_n "(cached) " >&6
19693 else
19694   ac_cv_type_unsigned_long_long_int=yes
19695      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19696        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h.  */
19698
19699   /* For now, do not test the preprocessor; as of 2007 there are too many
19700          implementations with broken preprocessors.  Perhaps this can
19701          be revisited in 2012.  In the meantime, code should not expect
19702          #if to work with literals wider than 32 bits.  */
19703       /* Test literals.  */
19704       long long int ll = 9223372036854775807ll;
19705       long long int nll = -9223372036854775807LL;
19706       unsigned long long int ull = 18446744073709551615ULL;
19707       /* Test constant expressions.   */
19708       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19709                      ? 1 : -1)];
19710       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19711                      ? 1 : -1)];
19712       int i = 63;
19713 int
19714 main ()
19715 {
19716 /* Test availability of runtime routines for shift and division.  */
19717       long long int llmax = 9223372036854775807ll;
19718       unsigned long long int ullmax = 18446744073709551615ull;
19719       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19720               | (llmax / ll) | (llmax % ll)
19721               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19722               | (ullmax / ull) | (ullmax % ull));
19723   ;
19724   return 0;
19725 }
19726
19727 _ACEOF
19728 if ac_fn_c_try_link "$LINENO"; then :
19729
19730 else
19731   ac_cv_type_unsigned_long_long_int=no
19732 fi
19733 rm -f core conftest.err conftest.$ac_objext \
19734     conftest$ac_exeext conftest.$ac_ext
19735      fi
19736 fi
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19738 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19739   if test $ac_cv_type_unsigned_long_long_int = yes; then
19740
19741 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19742
19743   fi
19744
19745
19746
19747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19748 $as_echo_n "checking for long long int... " >&6; }
19749 if ${ac_cv_type_long_long_int+:} false; then :
19750   $as_echo_n "(cached) " >&6
19751 else
19752   ac_cv_type_long_long_int=yes
19753       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19754         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19755         if test $ac_cv_type_long_long_int = yes; then
19756                                         if test "$cross_compiling" = yes; then :
19757   :
19758 else
19759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19760 /* end confdefs.h.  */
19761 #include <limits.h>
19762                  #ifndef LLONG_MAX
19763                  # define HALF \
19764                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19765                  # define LLONG_MAX (HALF - 1 + HALF)
19766                  #endif
19767 int
19768 main ()
19769 {
19770 long long int n = 1;
19771                  int i;
19772                  for (i = 0; ; i++)
19773                    {
19774                      long long int m = n << i;
19775                      if (m >> i != n)
19776                        return 1;
19777                      if (LLONG_MAX / 2 < m)
19778                        break;
19779                    }
19780                  return 0;
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 if ac_fn_c_try_run "$LINENO"; then :
19786
19787 else
19788   ac_cv_type_long_long_int=no
19789 fi
19790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19791   conftest.$ac_objext conftest.beam conftest.$ac_ext
19792 fi
19793
19794         fi
19795       fi
19796 fi
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19798 $as_echo "$ac_cv_type_long_long_int" >&6; }
19799   if test $ac_cv_type_long_long_int = yes; then
19800
19801 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19802
19803   fi
19804
19805
19806
19807
19808
19809
19810   GNULIB_EXPLICIT_BZERO=0;
19811   GNULIB_FFSL=0;
19812   GNULIB_FFSLL=0;
19813   GNULIB_MEMCHR=0;
19814   GNULIB_MEMMEM=0;
19815   GNULIB_MEMPCPY=0;
19816   GNULIB_MEMRCHR=0;
19817   GNULIB_RAWMEMCHR=0;
19818   GNULIB_STPCPY=0;
19819   GNULIB_STPNCPY=0;
19820   GNULIB_STRCHRNUL=0;
19821   GNULIB_STRDUP=0;
19822   GNULIB_STRNCAT=0;
19823   GNULIB_STRNDUP=0;
19824   GNULIB_STRNLEN=0;
19825   GNULIB_STRPBRK=0;
19826   GNULIB_STRSEP=0;
19827   GNULIB_STRSTR=0;
19828   GNULIB_STRCASESTR=0;
19829   GNULIB_STRTOK_R=0;
19830   GNULIB_MBSLEN=0;
19831   GNULIB_MBSNLEN=0;
19832   GNULIB_MBSCHR=0;
19833   GNULIB_MBSRCHR=0;
19834   GNULIB_MBSSTR=0;
19835   GNULIB_MBSCASECMP=0;
19836   GNULIB_MBSNCASECMP=0;
19837   GNULIB_MBSPCASECMP=0;
19838   GNULIB_MBSCASESTR=0;
19839   GNULIB_MBSCSPN=0;
19840   GNULIB_MBSPBRK=0;
19841   GNULIB_MBSSPN=0;
19842   GNULIB_MBSSEP=0;
19843   GNULIB_MBSTOK_R=0;
19844   GNULIB_STRERROR=0;
19845   GNULIB_STRERROR_R=0;
19846   GNULIB_STRSIGNAL=0;
19847   GNULIB_STRVERSCMP=0;
19848   HAVE_MBSLEN=0;
19849     HAVE_EXPLICIT_BZERO=1;
19850   HAVE_FFSL=1;
19851   HAVE_FFSLL=1;
19852   HAVE_MEMCHR=1;
19853   HAVE_DECL_MEMMEM=1;
19854   HAVE_MEMPCPY=1;
19855   HAVE_DECL_MEMRCHR=1;
19856   HAVE_RAWMEMCHR=1;
19857   HAVE_STPCPY=1;
19858   HAVE_STPNCPY=1;
19859   HAVE_STRCHRNUL=1;
19860   HAVE_DECL_STRDUP=1;
19861   HAVE_DECL_STRNDUP=1;
19862   HAVE_DECL_STRNLEN=1;
19863   HAVE_STRPBRK=1;
19864   HAVE_STRSEP=1;
19865   HAVE_STRCASESTR=1;
19866   HAVE_DECL_STRTOK_R=1;
19867   HAVE_DECL_STRERROR_R=1;
19868   HAVE_DECL_STRSIGNAL=1;
19869   HAVE_STRVERSCMP=1;
19870   REPLACE_MEMCHR=0;
19871   REPLACE_MEMMEM=0;
19872   REPLACE_STPNCPY=0;
19873   REPLACE_STRCHRNUL=0;
19874   REPLACE_STRDUP=0;
19875   REPLACE_STRNCAT=0;
19876   REPLACE_STRNDUP=0;
19877   REPLACE_STRNLEN=0;
19878   REPLACE_STRSTR=0;
19879   REPLACE_STRCASESTR=0;
19880   REPLACE_STRTOK_R=0;
19881   REPLACE_STRERROR=0;
19882   REPLACE_STRERROR_R=0;
19883   REPLACE_STRSIGNAL=0;
19884   UNDEFINE_STRTOK_R=0;
19885
19886
19887
19888
19889
19890
19891   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
19892   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
19893   # irrelevant for anonymous mappings.
19894   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
19895 if test "x$ac_cv_func_mmap" = xyes; then :
19896   gl_have_mmap=yes
19897 else
19898   gl_have_mmap=no
19899 fi
19900
19901
19902   # Try to allow MAP_ANONYMOUS.
19903   gl_have_mmap_anonymous=no
19904   if test $gl_have_mmap = yes; then
19905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
19906 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
19907     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908 /* end confdefs.h.  */
19909
19910 #include <sys/mman.h>
19911 #ifdef MAP_ANONYMOUS
19912     I cannot identify this map
19913 #endif
19914
19915 _ACEOF
19916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19917   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19918   gl_have_mmap_anonymous=yes
19919 fi
19920 rm -f conftest*
19921
19922     if test $gl_have_mmap_anonymous != yes; then
19923       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h.  */
19925
19926 #include <sys/mman.h>
19927 #ifdef MAP_ANON
19928     I cannot identify this map
19929 #endif
19930
19931 _ACEOF
19932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19933   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19934
19935 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
19936
19937          gl_have_mmap_anonymous=yes
19938 fi
19939 rm -f conftest*
19940
19941     fi
19942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
19943 $as_echo "$gl_have_mmap_anonymous" >&6; }
19944     if test $gl_have_mmap_anonymous = yes; then
19945
19946 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
19947
19948     fi
19949   fi
19950
19951
19952
19953
19954
19955
19956   if test $HAVE_MEMCHR = 1; then
19957     # Detect platform-specific bugs in some versions of glibc:
19958     # memchr should not dereference anything with length 0
19959     #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
19960     # memchr should not dereference overestimated length after a match
19961     #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
19962     #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
19963     # Assume that memchr works on platforms that lack mprotect.
19964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
19965 $as_echo_n "checking whether memchr works... " >&6; }
19966 if ${gl_cv_func_memchr_works+:} false; then :
19967   $as_echo_n "(cached) " >&6
19968 else
19969   if test "$cross_compiling" = yes; then :
19970   case "$host_os" in
19971                     # Guess yes on native Windows.
19972             mingw*) gl_cv_func_memchr_works="guessing yes" ;;
19973                     # Be pessimistic for now.
19974             *)      gl_cv_func_memchr_works="guessing no" ;;
19975           esac
19976
19977 else
19978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979 /* end confdefs.h.  */
19980
19981 #include <string.h>
19982 #if HAVE_SYS_MMAN_H
19983 # include <fcntl.h>
19984 # include <unistd.h>
19985 # include <sys/types.h>
19986 # include <sys/mman.h>
19987 # ifndef MAP_FILE
19988 #  define MAP_FILE 0
19989 # endif
19990 #endif
19991
19992 int
19993 main ()
19994 {
19995
19996   int result = 0;
19997   char *fence = NULL;
19998 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
19999 # if HAVE_MAP_ANONYMOUS
20000   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20001   const int fd = -1;
20002 # else /* !HAVE_MAP_ANONYMOUS */
20003   const int flags = MAP_FILE | MAP_PRIVATE;
20004   int fd = open ("/dev/zero", O_RDONLY, 0666);
20005   if (fd >= 0)
20006 # endif
20007     {
20008       int pagesize = getpagesize ();
20009       char *two_pages =
20010         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
20011                        flags, fd, 0);
20012       if (two_pages != (char *)(-1)
20013           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
20014         fence = two_pages + pagesize;
20015     }
20016 #endif
20017   if (fence)
20018     {
20019       if (memchr (fence, 0, 0))
20020         result |= 1;
20021       strcpy (fence - 9, "12345678");
20022       if (memchr (fence - 9, 0, 79) != fence - 1)
20023         result |= 2;
20024       if (memchr (fence - 1, 0, 3) != fence - 1)
20025         result |= 4;
20026     }
20027   return result;
20028
20029   ;
20030   return 0;
20031 }
20032 _ACEOF
20033 if ac_fn_c_try_run "$LINENO"; then :
20034   gl_cv_func_memchr_works=yes
20035 else
20036   gl_cv_func_memchr_works=no
20037 fi
20038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20039   conftest.$ac_objext conftest.beam conftest.$ac_ext
20040 fi
20041
20042
20043 fi
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
20045 $as_echo "$gl_cv_func_memchr_works" >&6; }
20046     case "$gl_cv_func_memchr_works" in
20047       *yes) ;;
20048       *) REPLACE_MEMCHR=1 ;;
20049     esac
20050   fi
20051
20052
20053
20054
20055
20056   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20057     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
20058
20059 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20060
20061   else
20062     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
20063   fi
20064
20065
20066
20067
20068
20069
20070     gl_cv_c_multiarch=no
20071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h.  */
20073 #ifndef __APPLE_CC__
20074          not a universal capable compiler
20075         #endif
20076         typedef int dummy;
20077
20078 _ACEOF
20079 if ac_fn_c_try_compile "$LINENO"; then :
20080
20081                arch=
20082      prev=
20083      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20084        if test -n "$prev"; then
20085          case $word in
20086            i?86 | x86_64 | ppc | ppc64)
20087              if test -z "$arch" || test "$arch" = "$word"; then
20088                arch="$word"
20089              else
20090                gl_cv_c_multiarch=yes
20091              fi
20092              ;;
20093          esac
20094          prev=
20095        else
20096          if test "x$word" = "x-arch"; then
20097            prev=arch
20098          fi
20099        fi
20100      done
20101
20102 fi
20103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20104   if test $gl_cv_c_multiarch = yes; then
20105     APPLE_UNIVERSAL_BUILD=1
20106   else
20107     APPLE_UNIVERSAL_BUILD=0
20108   fi
20109
20110
20111
20112
20113
20114   GNULIB_PTHREAD_SIGMASK=0;
20115   GNULIB_RAISE=0;
20116   GNULIB_SIGNAL_H_SIGPIPE=0;
20117   GNULIB_SIGPROCMASK=0;
20118   GNULIB_SIGACTION=0;
20119     HAVE_POSIX_SIGNALBLOCKING=1;
20120   HAVE_PTHREAD_SIGMASK=1;
20121   HAVE_RAISE=1;
20122   HAVE_SIGSET_T=1;
20123   HAVE_SIGINFO_T=1;
20124   HAVE_SIGACTION=1;
20125   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
20126
20127   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
20128
20129   HAVE_SIGHANDLER_T=1;
20130   REPLACE_PTHREAD_SIGMASK=0;
20131   REPLACE_RAISE=0;
20132
20133
20134   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20135       #include <signal.h>
20136       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
20137       #include <sys/types.h>
20138
20139 "
20140 if test "x$ac_cv_type_sigset_t" = xyes; then :
20141
20142 cat >>confdefs.h <<_ACEOF
20143 #define HAVE_SIGSET_T 1
20144 _ACEOF
20145
20146 gl_cv_type_sigset_t=yes
20147 else
20148   gl_cv_type_sigset_t=no
20149 fi
20150
20151   if test $gl_cv_type_sigset_t != yes; then
20152     HAVE_SIGSET_T=0
20153   fi
20154
20155
20156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20157 $as_echo_n "checking for ssize_t... " >&6; }
20158 if ${gt_cv_ssize_t+:} false; then :
20159   $as_echo_n "(cached) " >&6
20160 else
20161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h.  */
20163 #include <sys/types.h>
20164 int
20165 main ()
20166 {
20167 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20168             return !x;
20169   ;
20170   return 0;
20171 }
20172 _ACEOF
20173 if ac_fn_c_try_compile "$LINENO"; then :
20174   gt_cv_ssize_t=yes
20175 else
20176   gt_cv_ssize_t=no
20177 fi
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20179 fi
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20181 $as_echo "$gt_cv_ssize_t" >&6; }
20182   if test $gt_cv_ssize_t = no; then
20183
20184 $as_echo "#define ssize_t int" >>confdefs.h
20185
20186   fi
20187
20188 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
20189 if test "x$ac_cv_have_decl_setenv" = xyes; then :
20190   ac_have_decl=1
20191 else
20192   ac_have_decl=0
20193 fi
20194
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_DECL_SETENV $ac_have_decl
20197 _ACEOF
20198
20199
20200
20201
20202
20203
20204   if test $ac_cv_have_decl_setenv = no; then
20205     HAVE_DECL_SETENV=0
20206   fi
20207
20208
20209
20210
20211
20212   for ac_header in search.h
20213 do :
20214   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
20215 if test "x$ac_cv_header_search_h" = xyes; then :
20216   cat >>confdefs.h <<_ACEOF
20217 #define HAVE_SEARCH_H 1
20218 _ACEOF
20219
20220 fi
20221
20222 done
20223
20224   for ac_func in tsearch
20225 do :
20226   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
20227 if test "x$ac_cv_func_tsearch" = xyes; then :
20228   cat >>confdefs.h <<_ACEOF
20229 #define HAVE_TSEARCH 1
20230 _ACEOF
20231
20232 fi
20233 done
20234
20235
20236
20237
20238
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20240 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20241 if ${ac_cv_type_uid_t+:} false; then :
20242   $as_echo_n "(cached) " >&6
20243 else
20244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h.  */
20246 #include <sys/types.h>
20247
20248 _ACEOF
20249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20250   $EGREP "uid_t" >/dev/null 2>&1; then :
20251   ac_cv_type_uid_t=yes
20252 else
20253   ac_cv_type_uid_t=no
20254 fi
20255 rm -f conftest*
20256
20257 fi
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20259 $as_echo "$ac_cv_type_uid_t" >&6; }
20260 if test $ac_cv_type_uid_t = no; then
20261
20262 $as_echo "#define uid_t int" >>confdefs.h
20263
20264
20265 $as_echo "#define gid_t int" >>confdefs.h
20266
20267 fi
20268
20269 :
20270
20271
20272
20273
20274
20275   GNULIB_DPRINTF=0;
20276   GNULIB_FCLOSE=0;
20277   GNULIB_FDOPEN=0;
20278   GNULIB_FFLUSH=0;
20279   GNULIB_FGETC=0;
20280   GNULIB_FGETS=0;
20281   GNULIB_FOPEN=0;
20282   GNULIB_FPRINTF=0;
20283   GNULIB_FPRINTF_POSIX=0;
20284   GNULIB_FPURGE=0;
20285   GNULIB_FPUTC=0;
20286   GNULIB_FPUTS=0;
20287   GNULIB_FREAD=0;
20288   GNULIB_FREOPEN=0;
20289   GNULIB_FSCANF=0;
20290   GNULIB_FSEEK=0;
20291   GNULIB_FSEEKO=0;
20292   GNULIB_FTELL=0;
20293   GNULIB_FTELLO=0;
20294   GNULIB_FWRITE=0;
20295   GNULIB_GETC=0;
20296   GNULIB_GETCHAR=0;
20297   GNULIB_GETDELIM=0;
20298   GNULIB_GETLINE=0;
20299   GNULIB_OBSTACK_PRINTF=0;
20300   GNULIB_OBSTACK_PRINTF_POSIX=0;
20301   GNULIB_PCLOSE=0;
20302   GNULIB_PERROR=0;
20303   GNULIB_POPEN=0;
20304   GNULIB_PRINTF=0;
20305   GNULIB_PRINTF_POSIX=0;
20306   GNULIB_PUTC=0;
20307   GNULIB_PUTCHAR=0;
20308   GNULIB_PUTS=0;
20309   GNULIB_REMOVE=0;
20310   GNULIB_RENAME=0;
20311   GNULIB_RENAMEAT=0;
20312   GNULIB_SCANF=0;
20313   GNULIB_SNPRINTF=0;
20314   GNULIB_SPRINTF_POSIX=0;
20315   GNULIB_STDIO_H_NONBLOCKING=0;
20316   GNULIB_STDIO_H_SIGPIPE=0;
20317   GNULIB_TMPFILE=0;
20318   GNULIB_VASPRINTF=0;
20319   GNULIB_VFSCANF=0;
20320   GNULIB_VSCANF=0;
20321   GNULIB_VDPRINTF=0;
20322   GNULIB_VFPRINTF=0;
20323   GNULIB_VFPRINTF_POSIX=0;
20324   GNULIB_VPRINTF=0;
20325   GNULIB_VPRINTF_POSIX=0;
20326   GNULIB_VSNPRINTF=0;
20327   GNULIB_VSPRINTF_POSIX=0;
20328     HAVE_DECL_FPURGE=1;
20329   HAVE_DECL_FSEEKO=1;
20330   HAVE_DECL_FTELLO=1;
20331   HAVE_DECL_GETDELIM=1;
20332   HAVE_DECL_GETLINE=1;
20333   HAVE_DECL_OBSTACK_PRINTF=1;
20334   HAVE_DECL_SNPRINTF=1;
20335   HAVE_DECL_VSNPRINTF=1;
20336   HAVE_DPRINTF=1;
20337   HAVE_FSEEKO=1;
20338   HAVE_FTELLO=1;
20339   HAVE_PCLOSE=1;
20340   HAVE_POPEN=1;
20341   HAVE_RENAMEAT=1;
20342   HAVE_VASPRINTF=1;
20343   HAVE_VDPRINTF=1;
20344   REPLACE_DPRINTF=0;
20345   REPLACE_FCLOSE=0;
20346   REPLACE_FDOPEN=0;
20347   REPLACE_FFLUSH=0;
20348   REPLACE_FOPEN=0;
20349   REPLACE_FPRINTF=0;
20350   REPLACE_FPURGE=0;
20351   REPLACE_FREOPEN=0;
20352   REPLACE_FSEEK=0;
20353   REPLACE_FSEEKO=0;
20354   REPLACE_FTELL=0;
20355   REPLACE_FTELLO=0;
20356   REPLACE_GETDELIM=0;
20357   REPLACE_GETLINE=0;
20358   REPLACE_OBSTACK_PRINTF=0;
20359   REPLACE_PERROR=0;
20360   REPLACE_POPEN=0;
20361   REPLACE_PRINTF=0;
20362   REPLACE_REMOVE=0;
20363   REPLACE_RENAME=0;
20364   REPLACE_RENAMEAT=0;
20365   REPLACE_SNPRINTF=0;
20366   REPLACE_SPRINTF=0;
20367   REPLACE_STDIO_READ_FUNCS=0;
20368   REPLACE_STDIO_WRITE_FUNCS=0;
20369   REPLACE_TMPFILE=0;
20370   REPLACE_VASPRINTF=0;
20371   REPLACE_VDPRINTF=0;
20372   REPLACE_VFPRINTF=0;
20373   REPLACE_VPRINTF=0;
20374   REPLACE_VSNPRINTF=0;
20375   REPLACE_VSPRINTF=0;
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20386 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
20387 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
20388   $as_echo_n "(cached) " >&6
20389 else
20390
20391       if test "$cross_compiling" = yes; then :
20392   case "$host_os" in
20393                                  # Guess yes on glibc systems.
20394            *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
20395                                  # Guess yes on FreeBSD >= 5.
20396            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
20397            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20398                                  # Guess yes on Mac OS X >= 10.3.
20399            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
20400            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
20401                                  # Guess yes on OpenBSD >= 3.9.
20402            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
20403                                  gl_cv_func_snprintf_retval_c99="guessing no";;
20404            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
20405                                  # Guess yes on Solaris >= 2.10.
20406            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
20407            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
20408                                  # Guess yes on AIX >= 4.
20409            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
20410            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
20411                                  # Guess yes on NetBSD >= 3.
20412            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
20413                                  gl_cv_func_snprintf_retval_c99="guessing no";;
20414            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
20415                                  # Guess yes on BeOS.
20416            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
20417                                  # Guess yes on Android.
20418            linux*-android*)      gl_cv_func_snprintf_retval_c99="guessing yes";;
20419                                  # Guess yes on MSVC, no on mingw.
20420            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20421 /* end confdefs.h.  */
20422
20423 #ifdef _MSC_VER
20424  Known
20425 #endif
20426
20427 _ACEOF
20428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20429   $EGREP "Known" >/dev/null 2>&1; then :
20430   gl_cv_func_snprintf_retval_c99="guessing yes"
20431 else
20432   gl_cv_func_snprintf_retval_c99="guessing no"
20433 fi
20434 rm -f conftest*
20435
20436                                  ;;
20437                                  # If we don't know, assume the worst.
20438            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
20439          esac
20440
20441 else
20442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h.  */
20444
20445 #include <stdio.h>
20446 #include <string.h>
20447 #if HAVE_SNPRINTF
20448 # define my_snprintf snprintf
20449 #else
20450 # include <stdarg.h>
20451 static int my_snprintf (char *buf, int size, const char *format, ...)
20452 {
20453   va_list args;
20454   int ret;
20455   va_start (args, format);
20456   ret = vsnprintf (buf, size, format, args);
20457   va_end (args);
20458   return ret;
20459 }
20460 #endif
20461 static char buf[100];
20462 int main ()
20463 {
20464   strcpy (buf, "ABCDEF");
20465   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20466     return 1;
20467   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20468     return 2;
20469   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
20470     return 3;
20471   return 0;
20472 }
20473 _ACEOF
20474 if ac_fn_c_try_run "$LINENO"; then :
20475   gl_cv_func_snprintf_retval_c99=yes
20476 else
20477   gl_cv_func_snprintf_retval_c99=no
20478 fi
20479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20480   conftest.$ac_objext conftest.beam conftest.$ac_ext
20481 fi
20482
20483
20484 fi
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
20486 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
20487
20488 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
20489 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
20490   ac_have_decl=1
20491 else
20492   ac_have_decl=0
20493 fi
20494
20495 cat >>confdefs.h <<_ACEOF
20496 #define HAVE_DECL_SNPRINTF $ac_have_decl
20497 _ACEOF
20498
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20500 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20501 if ${ac_cv_header_stat_broken+:} false; then :
20502   $as_echo_n "(cached) " >&6
20503 else
20504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h.  */
20506 #include <sys/types.h>
20507 #include <sys/stat.h>
20508
20509 #if defined S_ISBLK && defined S_IFDIR
20510 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20511 #endif
20512
20513 #if defined S_ISBLK && defined S_IFCHR
20514 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20515 #endif
20516
20517 #if defined S_ISLNK && defined S_IFREG
20518 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20519 #endif
20520
20521 #if defined S_ISSOCK && defined S_IFREG
20522 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20523 #endif
20524
20525 _ACEOF
20526 if ac_fn_c_try_compile "$LINENO"; then :
20527   ac_cv_header_stat_broken=no
20528 else
20529   ac_cv_header_stat_broken=yes
20530 fi
20531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20532 fi
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20534 $as_echo "$ac_cv_header_stat_broken" >&6; }
20535 if test $ac_cv_header_stat_broken = yes; then
20536
20537 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20538
20539 fi
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557      if test $gl_cv_have_include_next = yes; then
20558        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20559      else
20560        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20561 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20562 if ${gl_cv_next_sys_stat_h+:} false; then :
20563   $as_echo_n "(cached) " >&6
20564 else
20565
20566              if test $ac_cv_header_sys_stat_h = yes; then
20567
20568
20569
20570
20571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20572 /* end confdefs.h.  */
20573 #include <sys/stat.h>
20574 _ACEOF
20575                 case "$host_os" in
20576     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20577     *)    gl_absname_cpp="$ac_cpp" ;;
20578   esac
20579
20580   case "$host_os" in
20581     mingw*)
20582                                           gl_dirsep_regex='[/\\]'
20583       ;;
20584     *)
20585       gl_dirsep_regex='\/'
20586       ;;
20587   esac
20588       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20589   gl_header_literal_regex=`echo 'sys/stat.h' \
20590                            | sed -e "$gl_make_literal_regex_sed"`
20591   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20592       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20593       s|^/[^/]|//&|
20594       p
20595       q
20596     }'
20597
20598         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20599   sed -n "$gl_absolute_header_sed"`
20600
20601            gl_header=$gl_cv_absolute_sys_stat_h
20602            gl_cv_next_sys_stat_h='"'$gl_header'"'
20603           else
20604                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20605              fi
20606
20607
20608 fi
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20610 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20611      fi
20612      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20613
20614      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20615        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20616        gl_next_as_first_directive='<'sys/stat.h'>'
20617      else
20618        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20619        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20620      fi
20621      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20622
20623
20624
20625
20626
20627
20628
20629
20630     WINDOWS_STAT_TIMESPEC=0
20631
20632
20633
20634
20635
20636
20637
20638
20639       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20640      #include <sys/stat.h>
20641 "
20642 if test "x$ac_cv_type_nlink_t" = xyes; then :
20643
20644 else
20645
20646 $as_echo "#define nlink_t int" >>confdefs.h
20647
20648 fi
20649
20650
20651
20652
20653
20654
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20656 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20657 if ${ac_cv_header_stdbool_h+:} false; then :
20658   $as_echo_n "(cached) " >&6
20659 else
20660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h.  */
20662
20663              #include <stdbool.h>
20664
20665              #ifdef __cplusplus
20666               typedef bool Bool;
20667              #else
20668               typedef _Bool Bool;
20669               #ifndef bool
20670                "error: bool is not defined"
20671               #endif
20672               #ifndef false
20673                "error: false is not defined"
20674               #endif
20675               #if false
20676                "error: false is not 0"
20677               #endif
20678               #ifndef true
20679                "error: true is not defined"
20680               #endif
20681               #if true != 1
20682                "error: true is not 1"
20683               #endif
20684              #endif
20685
20686              #ifndef __bool_true_false_are_defined
20687               "error: __bool_true_false_are_defined is not defined"
20688              #endif
20689
20690              struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
20691
20692              char a[true == 1 ? 1 : -1];
20693              char b[false == 0 ? 1 : -1];
20694              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20695              char d[(bool) 0.5 == true ? 1 : -1];
20696              /* See body of main program for 'e'.  */
20697              char f[(Bool) 0.0 == false ? 1 : -1];
20698              char g[true];
20699              char h[sizeof (Bool)];
20700              char i[sizeof s.t];
20701              enum { j = false, k = true, l = false * true, m = true * 256 };
20702              /* The following fails for
20703                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20704              Bool n[m];
20705              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20706              char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20707              /* Catch a bug in an HP-UX C compiler.  See
20708                 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20709                 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
20710               */
20711              Bool q = true;
20712              Bool *pq = &q;
20713              bool *qq = &q;
20714
20715 int
20716 main ()
20717 {
20718
20719              bool e = &s;
20720              *pq |= q; *pq |= ! q;
20721              *qq |= q; *qq |= ! q;
20722              /* Refer to every declared value, to avoid compiler optimizations.  */
20723              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20724                      + !m + !n + !o + !p + !q + !pq + !qq);
20725
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 if ac_fn_c_try_compile "$LINENO"; then :
20731   ac_cv_header_stdbool_h=yes
20732 else
20733   ac_cv_header_stdbool_h=no
20734 fi
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736 fi
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20738 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20739    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20740 if test "x$ac_cv_type__Bool" = xyes; then :
20741
20742 cat >>confdefs.h <<_ACEOF
20743 #define HAVE__BOOL 1
20744 _ACEOF
20745
20746
20747 fi
20748
20749
20750
20751     REPLACE_NULL=0;
20752   HAVE_MAX_ALIGN_T=1;
20753   HAVE_WCHAR_T=1;
20754
20755
20756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20757 $as_echo_n "checking for wchar_t... " >&6; }
20758 if ${gt_cv_c_wchar_t+:} false; then :
20759   $as_echo_n "(cached) " >&6
20760 else
20761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762 /* end confdefs.h.  */
20763 #include <stddef.h>
20764             wchar_t foo = (wchar_t)'\0';
20765 int
20766 main ()
20767 {
20768
20769   ;
20770   return 0;
20771 }
20772 _ACEOF
20773 if ac_fn_c_try_compile "$LINENO"; then :
20774   gt_cv_c_wchar_t=yes
20775 else
20776   gt_cv_c_wchar_t=no
20777 fi
20778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20779 fi
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20781 $as_echo "$gt_cv_c_wchar_t" >&6; }
20782   if test $gt_cv_c_wchar_t = yes; then
20783
20784 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20785
20786   fi
20787
20788
20789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20790 $as_echo_n "checking for wint_t... " >&6; }
20791 if ${gt_cv_c_wint_t+:} false; then :
20792   $as_echo_n "(cached) " >&6
20793 else
20794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20795 /* end confdefs.h.  */
20796
20797 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20798    <wchar.h>.
20799    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20800    before <wchar.h>.  */
20801 #include <stddef.h>
20802 #include <stdio.h>
20803 #include <time.h>
20804 #include <wchar.h>
20805             wint_t foo = (wchar_t)'\0';
20806 int
20807 main ()
20808 {
20809
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 if ac_fn_c_try_compile "$LINENO"; then :
20815   gt_cv_c_wint_t=yes
20816 else
20817   gt_cv_c_wint_t=no
20818 fi
20819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20820 fi
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20822 $as_echo "$gt_cv_c_wint_t" >&6; }
20823   if test $gt_cv_c_wint_t = yes; then
20824
20825 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20826
20827
20828             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
20829 $as_echo_n "checking whether wint_t is too small... " >&6; }
20830 if ${gl_cv_type_wint_t_too_small+:} false; then :
20831   $as_echo_n "(cached) " >&6
20832 else
20833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20834 /* end confdefs.h.  */
20835
20836 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20837    <wchar.h>.
20838    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20839    included before <wchar.h>.  */
20840 #if !(defined __GLIBC__ && !defined __UCLIBC__)
20841 # include <stddef.h>
20842 # include <stdio.h>
20843 # include <time.h>
20844 #endif
20845 #include <wchar.h>
20846               int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
20847
20848 int
20849 main ()
20850 {
20851
20852   ;
20853   return 0;
20854 }
20855 _ACEOF
20856 if ac_fn_c_try_compile "$LINENO"; then :
20857   gl_cv_type_wint_t_too_small=no
20858 else
20859   gl_cv_type_wint_t_too_small=yes
20860 fi
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 fi
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
20864 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
20865     if test $gl_cv_type_wint_t_too_small = yes; then
20866       GNULIB_OVERRIDES_WINT_T=1
20867     else
20868       GNULIB_OVERRIDES_WINT_T=0
20869     fi
20870   else
20871     GNULIB_OVERRIDES_WINT_T=0
20872   fi
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885   if test $ac_cv_type_long_long_int = yes; then
20886     HAVE_LONG_LONG_INT=1
20887   else
20888     HAVE_LONG_LONG_INT=0
20889   fi
20890
20891
20892   if test $ac_cv_type_unsigned_long_long_int = yes; then
20893     HAVE_UNSIGNED_LONG_LONG_INT=1
20894   else
20895     HAVE_UNSIGNED_LONG_LONG_INT=0
20896   fi
20897
20898
20899
20900   if test $ac_cv_header_wchar_h = yes; then
20901     HAVE_WCHAR_H=1
20902   else
20903     HAVE_WCHAR_H=0
20904   fi
20905
20906
20907       if test $ac_cv_header_inttypes_h = yes; then
20908     HAVE_INTTYPES_H=1
20909   else
20910     HAVE_INTTYPES_H=0
20911   fi
20912
20913
20914       if test $ac_cv_header_sys_types_h = yes; then
20915     HAVE_SYS_TYPES_H=1
20916   else
20917     HAVE_SYS_TYPES_H=0
20918   fi
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930      if test $gl_cv_have_include_next = yes; then
20931        gl_cv_next_stdint_h='<'stdint.h'>'
20932      else
20933        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20934 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20935 if ${gl_cv_next_stdint_h+:} false; then :
20936   $as_echo_n "(cached) " >&6
20937 else
20938
20939              if test $ac_cv_header_stdint_h = yes; then
20940
20941
20942
20943
20944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20945 /* end confdefs.h.  */
20946 #include <stdint.h>
20947 _ACEOF
20948                 case "$host_os" in
20949     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20950     *)    gl_absname_cpp="$ac_cpp" ;;
20951   esac
20952
20953   case "$host_os" in
20954     mingw*)
20955                                           gl_dirsep_regex='[/\\]'
20956       ;;
20957     *)
20958       gl_dirsep_regex='\/'
20959       ;;
20960   esac
20961       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20962   gl_header_literal_regex=`echo 'stdint.h' \
20963                            | sed -e "$gl_make_literal_regex_sed"`
20964   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20965       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20966       s|^/[^/]|//&|
20967       p
20968       q
20969     }'
20970
20971         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20972   sed -n "$gl_absolute_header_sed"`
20973
20974            gl_header=$gl_cv_absolute_stdint_h
20975            gl_cv_next_stdint_h='"'$gl_header'"'
20976           else
20977                gl_cv_next_stdint_h='<'stdint.h'>'
20978              fi
20979
20980
20981 fi
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20983 $as_echo "$gl_cv_next_stdint_h" >&6; }
20984      fi
20985      NEXT_STDINT_H=$gl_cv_next_stdint_h
20986
20987      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20988        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20989        gl_next_as_first_directive='<'stdint.h'>'
20990      else
20991        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20992        gl_next_as_first_directive=$gl_cv_next_stdint_h
20993      fi
20994      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20995
20996
20997
20998
20999   if test $ac_cv_header_stdint_h = yes; then
21000     HAVE_STDINT_H=1
21001   else
21002     HAVE_STDINT_H=0
21003   fi
21004
21005
21006     if test $ac_cv_header_stdint_h = yes; then
21007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
21008 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21009 if ${gl_cv_header_working_stdint_h+:} false; then :
21010   $as_echo_n "(cached) " >&6
21011 else
21012   gl_cv_header_working_stdint_h=no
21013        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21014 /* end confdefs.h.  */
21015
21016
21017 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21018 #define __STDC_CONSTANT_MACROS 1
21019 #define __STDC_LIMIT_MACROS 1
21020 #include <stdint.h>
21021 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
21022 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
21023 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21024 #endif
21025
21026
21027   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21028      included before <wchar.h>.  */
21029   #include <stddef.h>
21030   #include <signal.h>
21031   #if HAVE_WCHAR_H
21032   # include <stdio.h>
21033   # include <time.h>
21034   # include <wchar.h>
21035   #endif
21036
21037
21038 #ifdef INT8_MAX
21039 int8_t a1 = INT8_MAX;
21040 int8_t a1min = INT8_MIN;
21041 #endif
21042 #ifdef INT16_MAX
21043 int16_t a2 = INT16_MAX;
21044 int16_t a2min = INT16_MIN;
21045 #endif
21046 #ifdef INT32_MAX
21047 int32_t a3 = INT32_MAX;
21048 int32_t a3min = INT32_MIN;
21049 #endif
21050 #ifdef INT64_MAX
21051 int64_t a4 = INT64_MAX;
21052 int64_t a4min = INT64_MIN;
21053 #endif
21054 #ifdef UINT8_MAX
21055 uint8_t b1 = UINT8_MAX;
21056 #else
21057 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21058 #endif
21059 #ifdef UINT16_MAX
21060 uint16_t b2 = UINT16_MAX;
21061 #endif
21062 #ifdef UINT32_MAX
21063 uint32_t b3 = UINT32_MAX;
21064 #endif
21065 #ifdef UINT64_MAX
21066 uint64_t b4 = UINT64_MAX;
21067 #endif
21068 int_least8_t c1 = INT8_C (0x7f);
21069 int_least8_t c1max = INT_LEAST8_MAX;
21070 int_least8_t c1min = INT_LEAST8_MIN;
21071 int_least16_t c2 = INT16_C (0x7fff);
21072 int_least16_t c2max = INT_LEAST16_MAX;
21073 int_least16_t c2min = INT_LEAST16_MIN;
21074 int_least32_t c3 = INT32_C (0x7fffffff);
21075 int_least32_t c3max = INT_LEAST32_MAX;
21076 int_least32_t c3min = INT_LEAST32_MIN;
21077 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21078 int_least64_t c4max = INT_LEAST64_MAX;
21079 int_least64_t c4min = INT_LEAST64_MIN;
21080 uint_least8_t d1 = UINT8_C (0xff);
21081 uint_least8_t d1max = UINT_LEAST8_MAX;
21082 uint_least16_t d2 = UINT16_C (0xffff);
21083 uint_least16_t d2max = UINT_LEAST16_MAX;
21084 uint_least32_t d3 = UINT32_C (0xffffffff);
21085 uint_least32_t d3max = UINT_LEAST32_MAX;
21086 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21087 uint_least64_t d4max = UINT_LEAST64_MAX;
21088 int_fast8_t e1 = INT_FAST8_MAX;
21089 int_fast8_t e1min = INT_FAST8_MIN;
21090 int_fast16_t e2 = INT_FAST16_MAX;
21091 int_fast16_t e2min = INT_FAST16_MIN;
21092 int_fast32_t e3 = INT_FAST32_MAX;
21093 int_fast32_t e3min = INT_FAST32_MIN;
21094 int_fast64_t e4 = INT_FAST64_MAX;
21095 int_fast64_t e4min = INT_FAST64_MIN;
21096 uint_fast8_t f1 = UINT_FAST8_MAX;
21097 uint_fast16_t f2 = UINT_FAST16_MAX;
21098 uint_fast32_t f3 = UINT_FAST32_MAX;
21099 uint_fast64_t f4 = UINT_FAST64_MAX;
21100 #ifdef INTPTR_MAX
21101 intptr_t g = INTPTR_MAX;
21102 intptr_t gmin = INTPTR_MIN;
21103 #endif
21104 #ifdef UINTPTR_MAX
21105 uintptr_t h = UINTPTR_MAX;
21106 #endif
21107 intmax_t i = INTMAX_MAX;
21108 uintmax_t j = UINTMAX_MAX;
21109
21110 /* Check that SIZE_MAX has the correct type, if possible.  */
21111 #if 201112 <= __STDC_VERSION__
21112 int k = _Generic (SIZE_MAX, size_t: 0);
21113 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
21114        || (0x5110 <= __SUNPRO_C && !__STDC__))
21115 extern size_t k;
21116 extern __typeof__ (SIZE_MAX) k;
21117 #endif
21118
21119 #include <limits.h> /* for CHAR_BIT */
21120 #define TYPE_MINIMUM(t) \
21121   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
21122 #define TYPE_MAXIMUM(t) \
21123   ((t) ((t) 0 < (t) -1 \
21124         ? (t) -1 \
21125         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
21126 struct s {
21127   int check_PTRDIFF:
21128       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21129       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21130       ? 1 : -1;
21131   /* Detect bug in FreeBSD 6.0 / ia64.  */
21132   int check_SIG_ATOMIC:
21133       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21134       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21135       ? 1 : -1;
21136   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21137   int check_WCHAR:
21138       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21139       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21140       ? 1 : -1;
21141   /* Detect bug in mingw.  */
21142   int check_WINT:
21143       WINT_MIN == TYPE_MINIMUM (wint_t)
21144       && WINT_MAX == TYPE_MAXIMUM (wint_t)
21145       ? 1 : -1;
21146
21147   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
21148   int check_UINT8_C:
21149         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21150   int check_UINT16_C:
21151         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21152
21153   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
21154 #ifdef UINT8_MAX
21155   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21156 #endif
21157 #ifdef UINT16_MAX
21158   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21159 #endif
21160 #ifdef UINT32_MAX
21161   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21162 #endif
21163 #ifdef UINT64_MAX
21164   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21165 #endif
21166   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21167   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21168   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21169   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21170   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21171   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21172   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21173   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21174   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21175   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21176   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21177 };
21178
21179 int
21180 main ()
21181 {
21182
21183   ;
21184   return 0;
21185 }
21186 _ACEOF
21187 if ac_fn_c_try_compile "$LINENO"; then :
21188                                                     if test "$cross_compiling" = yes; then :
21189   case "$host_os" in
21190                          # Guess yes on native Windows.
21191                  mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
21192                          # In general, assume it works.
21193                  *)      gl_cv_header_working_stdint_h="guessing yes" ;;
21194                esac
21195
21196 else
21197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h.  */
21199
21200
21201 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21202 #define __STDC_CONSTANT_MACROS 1
21203 #define __STDC_LIMIT_MACROS 1
21204 #include <stdint.h>
21205
21206
21207   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21208      included before <wchar.h>.  */
21209   #include <stddef.h>
21210   #include <signal.h>
21211   #if HAVE_WCHAR_H
21212   # include <stdio.h>
21213   # include <time.h>
21214   # include <wchar.h>
21215   #endif
21216
21217
21218 #include <stdio.h>
21219 #include <string.h>
21220 #define MVAL(macro) MVAL1(macro)
21221 #define MVAL1(expression) #expression
21222 static const char *macro_values[] =
21223   {
21224 #ifdef INT8_MAX
21225     MVAL (INT8_MAX),
21226 #endif
21227 #ifdef INT16_MAX
21228     MVAL (INT16_MAX),
21229 #endif
21230 #ifdef INT32_MAX
21231     MVAL (INT32_MAX),
21232 #endif
21233 #ifdef INT64_MAX
21234     MVAL (INT64_MAX),
21235 #endif
21236 #ifdef UINT8_MAX
21237     MVAL (UINT8_MAX),
21238 #endif
21239 #ifdef UINT16_MAX
21240     MVAL (UINT16_MAX),
21241 #endif
21242 #ifdef UINT32_MAX
21243     MVAL (UINT32_MAX),
21244 #endif
21245 #ifdef UINT64_MAX
21246     MVAL (UINT64_MAX),
21247 #endif
21248     NULL
21249   };
21250
21251 int
21252 main ()
21253 {
21254
21255   const char **mv;
21256   for (mv = macro_values; *mv != NULL; mv++)
21257     {
21258       const char *value = *mv;
21259       /* Test whether it looks like a cast expression.  */
21260       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21261           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21262           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21263           || strncmp (value, "((int)"/*)*/, 6) == 0
21264           || strncmp (value, "((signed short)"/*)*/, 15) == 0
21265           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21266         return mv - macro_values + 1;
21267     }
21268   return 0;
21269
21270   ;
21271   return 0;
21272 }
21273 _ACEOF
21274 if ac_fn_c_try_run "$LINENO"; then :
21275   gl_cv_header_working_stdint_h=yes
21276 fi
21277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21278   conftest.$ac_objext conftest.beam conftest.$ac_ext
21279 fi
21280
21281
21282 fi
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284
21285 fi
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21287 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
21288   fi
21289
21290   HAVE_C99_STDINT_H=0
21291   HAVE_SYS_BITYPES_H=0
21292   HAVE_SYS_INTTYPES_H=0
21293   STDINT_H=stdint.h
21294   case "$gl_cv_header_working_stdint_h" in
21295     *yes)
21296       HAVE_C99_STDINT_H=1
21297                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
21298 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
21299 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
21300   $as_echo_n "(cached) " >&6
21301 else
21302   gl_cv_header_stdint_predates_cxx11_h=yes
21303          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h.  */
21305
21306
21307 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21308 #include <stdint.h>
21309
21310
21311   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21312      included before <wchar.h>.  */
21313   #include <stddef.h>
21314   #include <signal.h>
21315   #if HAVE_WCHAR_H
21316   # include <stdio.h>
21317   # include <time.h>
21318   # include <wchar.h>
21319   #endif
21320
21321
21322 intmax_t im = INTMAX_MAX;
21323 int32_t i32 = INT32_C (0x7fffffff);
21324
21325 int
21326 main ()
21327 {
21328
21329   ;
21330   return 0;
21331 }
21332 _ACEOF
21333 if ac_fn_c_try_compile "$LINENO"; then :
21334   gl_cv_header_stdint_predates_cxx11_h=no
21335 fi
21336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21337 fi
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
21339 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
21340
21341       if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
21342
21343 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
21344
21345
21346 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
21347
21348       fi
21349       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
21350 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
21351 if ${gl_cv_header_stdint_width+:} false; then :
21352   $as_echo_n "(cached) " >&6
21353 else
21354   gl_cv_header_stdint_width=no
21355          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21356 /* end confdefs.h.  */
21357
21358               /* Work if build is not clean.  */
21359               #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
21360               #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
21361                #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
21362               #endif
21363               #include <stdint.h>
21364
21365   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21366      included before <wchar.h>.  */
21367   #include <stddef.h>
21368   #include <signal.h>
21369   #if HAVE_WCHAR_H
21370   # include <stdio.h>
21371   # include <time.h>
21372   # include <wchar.h>
21373   #endif
21374
21375               int iw = UINTMAX_WIDTH;
21376
21377 int
21378 main ()
21379 {
21380
21381   ;
21382   return 0;
21383 }
21384 _ACEOF
21385 if ac_fn_c_try_compile "$LINENO"; then :
21386   gl_cv_header_stdint_width=yes
21387 fi
21388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389 fi
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
21391 $as_echo "$gl_cv_header_stdint_width" >&6; }
21392       if test "$gl_cv_header_stdint_width" = yes; then
21393         STDINT_H=
21394       fi
21395       ;;
21396     *)
21397                   for ac_header in sys/inttypes.h sys/bitypes.h
21398 do :
21399   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21400 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21402   cat >>confdefs.h <<_ACEOF
21403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21404 _ACEOF
21405
21406 fi
21407
21408 done
21409
21410       if test $ac_cv_header_sys_inttypes_h = yes; then
21411         HAVE_SYS_INTTYPES_H=1
21412       fi
21413       if test $ac_cv_header_sys_bitypes_h = yes; then
21414         HAVE_SYS_BITYPES_H=1
21415       fi
21416
21417
21418   if test $APPLE_UNIVERSAL_BUILD = 0; then
21419
21420
21421   for gltype in ptrdiff_t size_t ; do
21422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21423 $as_echo_n "checking for bit size of $gltype... " >&6; }
21424 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21425   $as_echo_n "(cached) " >&6
21426 else
21427   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21428   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21429      included before <wchar.h>.  */
21430   #include <stddef.h>
21431   #include <signal.h>
21432   #if HAVE_WCHAR_H
21433   # include <stdio.h>
21434   # include <time.h>
21435   # include <wchar.h>
21436   #endif
21437
21438 #include <limits.h>"; then :
21439
21440 else
21441   result=unknown
21442 fi
21443
21444        eval gl_cv_bitsizeof_${gltype}=\$result
21445
21446 fi
21447 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21448                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21449 $as_echo "$ac_res" >&6; }
21450     eval result=\$gl_cv_bitsizeof_${gltype}
21451     if test $result = unknown; then
21452                                                 result=0
21453     fi
21454     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21455     cat >>confdefs.h <<_ACEOF
21456 #define BITSIZEOF_${GLTYPE} $result
21457 _ACEOF
21458
21459     eval BITSIZEOF_${GLTYPE}=\$result
21460   done
21461
21462
21463   fi
21464
21465
21466   for gltype in sig_atomic_t wchar_t wint_t ; do
21467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21468 $as_echo_n "checking for bit size of $gltype... " >&6; }
21469 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21470   $as_echo_n "(cached) " >&6
21471 else
21472   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21473   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21474      included before <wchar.h>.  */
21475   #include <stddef.h>
21476   #include <signal.h>
21477   #if HAVE_WCHAR_H
21478   # include <stdio.h>
21479   # include <time.h>
21480   # include <wchar.h>
21481   #endif
21482
21483 #include <limits.h>"; then :
21484
21485 else
21486   result=unknown
21487 fi
21488
21489        eval gl_cv_bitsizeof_${gltype}=\$result
21490
21491 fi
21492 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21493                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21494 $as_echo "$ac_res" >&6; }
21495     eval result=\$gl_cv_bitsizeof_${gltype}
21496     if test $result = unknown; then
21497                                                 result=0
21498     fi
21499     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21500     cat >>confdefs.h <<_ACEOF
21501 #define BITSIZEOF_${GLTYPE} $result
21502 _ACEOF
21503
21504     eval BITSIZEOF_${GLTYPE}=\$result
21505   done
21506
21507
21508
21509
21510   for gltype in sig_atomic_t wchar_t wint_t ; do
21511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21512 $as_echo_n "checking whether $gltype is signed... " >&6; }
21513 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
21514   $as_echo_n "(cached) " >&6
21515 else
21516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h.  */
21518
21519   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21520      included before <wchar.h>.  */
21521   #include <stddef.h>
21522   #include <signal.h>
21523   #if HAVE_WCHAR_H
21524   # include <stdio.h>
21525   # include <time.h>
21526   # include <wchar.h>
21527   #endif
21528
21529             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21530 int
21531 main ()
21532 {
21533
21534   ;
21535   return 0;
21536 }
21537 _ACEOF
21538 if ac_fn_c_try_compile "$LINENO"; then :
21539   result=yes
21540 else
21541   result=no
21542 fi
21543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544        eval gl_cv_type_${gltype}_signed=\$result
21545
21546 fi
21547 eval ac_res=\$gl_cv_type_${gltype}_signed
21548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21549 $as_echo "$ac_res" >&6; }
21550     eval result=\$gl_cv_type_${gltype}_signed
21551     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21552     if test "$result" = yes; then
21553       cat >>confdefs.h <<_ACEOF
21554 #define HAVE_SIGNED_${GLTYPE} 1
21555 _ACEOF
21556
21557       eval HAVE_SIGNED_${GLTYPE}=1
21558     else
21559       eval HAVE_SIGNED_${GLTYPE}=0
21560     fi
21561   done
21562
21563
21564   gl_cv_type_ptrdiff_t_signed=yes
21565   gl_cv_type_size_t_signed=no
21566   if test $APPLE_UNIVERSAL_BUILD = 0; then
21567
21568
21569   for gltype in ptrdiff_t size_t ; do
21570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21571 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21572 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21573   $as_echo_n "(cached) " >&6
21574 else
21575   eval gl_cv_type_${gltype}_suffix=no
21576        eval result=\$gl_cv_type_${gltype}_signed
21577        if test "$result" = yes; then
21578          glsufu=
21579        else
21580          glsufu=u
21581        fi
21582        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21583          case $glsuf in
21584            '')  gltype1='int';;
21585            l)   gltype1='long int';;
21586            ll)  gltype1='long long int';;
21587            i64) gltype1='__int64';;
21588            u)   gltype1='unsigned int';;
21589            ul)  gltype1='unsigned long int';;
21590            ull) gltype1='unsigned long long int';;
21591            ui64)gltype1='unsigned __int64';;
21592          esac
21593          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21594 /* end confdefs.h.  */
21595
21596   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21597      included before <wchar.h>.  */
21598   #include <stddef.h>
21599   #include <signal.h>
21600   #if HAVE_WCHAR_H
21601   # include <stdio.h>
21602   # include <time.h>
21603   # include <wchar.h>
21604   #endif
21605
21606               extern $gltype foo;
21607               extern $gltype1 foo;
21608 int
21609 main ()
21610 {
21611
21612   ;
21613   return 0;
21614 }
21615 _ACEOF
21616 if ac_fn_c_try_compile "$LINENO"; then :
21617   eval gl_cv_type_${gltype}_suffix=\$glsuf
21618 fi
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620          eval result=\$gl_cv_type_${gltype}_suffix
21621          test "$result" != no && break
21622        done
21623 fi
21624 eval ac_res=\$gl_cv_type_${gltype}_suffix
21625                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21626 $as_echo "$ac_res" >&6; }
21627     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21628     eval result=\$gl_cv_type_${gltype}_suffix
21629     test "$result" = no && result=
21630     eval ${GLTYPE}_SUFFIX=\$result
21631     cat >>confdefs.h <<_ACEOF
21632 #define ${GLTYPE}_SUFFIX $result
21633 _ACEOF
21634
21635   done
21636
21637
21638   fi
21639
21640
21641   for gltype in sig_atomic_t wchar_t wint_t ; do
21642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21643 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21644 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21645   $as_echo_n "(cached) " >&6
21646 else
21647   eval gl_cv_type_${gltype}_suffix=no
21648        eval result=\$gl_cv_type_${gltype}_signed
21649        if test "$result" = yes; then
21650          glsufu=
21651        else
21652          glsufu=u
21653        fi
21654        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21655          case $glsuf in
21656            '')  gltype1='int';;
21657            l)   gltype1='long int';;
21658            ll)  gltype1='long long int';;
21659            i64) gltype1='__int64';;
21660            u)   gltype1='unsigned int';;
21661            ul)  gltype1='unsigned long int';;
21662            ull) gltype1='unsigned long long int';;
21663            ui64)gltype1='unsigned __int64';;
21664          esac
21665          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666 /* end confdefs.h.  */
21667
21668   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21669      included before <wchar.h>.  */
21670   #include <stddef.h>
21671   #include <signal.h>
21672   #if HAVE_WCHAR_H
21673   # include <stdio.h>
21674   # include <time.h>
21675   # include <wchar.h>
21676   #endif
21677
21678               extern $gltype foo;
21679               extern $gltype1 foo;
21680 int
21681 main ()
21682 {
21683
21684   ;
21685   return 0;
21686 }
21687 _ACEOF
21688 if ac_fn_c_try_compile "$LINENO"; then :
21689   eval gl_cv_type_${gltype}_suffix=\$glsuf
21690 fi
21691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692          eval result=\$gl_cv_type_${gltype}_suffix
21693          test "$result" != no && break
21694        done
21695 fi
21696 eval ac_res=\$gl_cv_type_${gltype}_suffix
21697                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21698 $as_echo "$ac_res" >&6; }
21699     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21700     eval result=\$gl_cv_type_${gltype}_suffix
21701     test "$result" = no && result=
21702     eval ${GLTYPE}_SUFFIX=\$result
21703     cat >>confdefs.h <<_ACEOF
21704 #define ${GLTYPE}_SUFFIX $result
21705 _ACEOF
21706
21707   done
21708
21709
21710
21711           if test $GNULIB_OVERRIDES_WINT_T = 1; then
21712     BITSIZEOF_WINT_T=32
21713   fi
21714
21715       ;;
21716   esac
21717
21718
21719
21720   LIMITS_H='limits.h'
21721    if test -n "$LIMITS_H"; then
21722   GL_GENERATE_LIMITS_H_TRUE=
21723   GL_GENERATE_LIMITS_H_FALSE='#'
21724 else
21725   GL_GENERATE_LIMITS_H_TRUE='#'
21726   GL_GENERATE_LIMITS_H_FALSE=
21727 fi
21728
21729
21730
21731
21732
21733
21734
21735    if test -n "$STDINT_H"; then
21736   GL_GENERATE_STDINT_H_TRUE=
21737   GL_GENERATE_STDINT_H_FALSE='#'
21738 else
21739   GL_GENERATE_STDINT_H_TRUE='#'
21740   GL_GENERATE_STDINT_H_FALSE=
21741 fi
21742
21743
21744
21745      REPLACE_STRERROR_0=0
21746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
21747 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
21748 if ${gl_cv_func_strerror_0_works+:} false; then :
21749   $as_echo_n "(cached) " >&6
21750 else
21751   if test "$cross_compiling" = yes; then :
21752   case "$host_os" in
21753                         # Guess yes on glibc systems.
21754          *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
21755                         # Guess yes on native Windows.
21756          mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
21757                         # If we don't know, assume the worst.
21758          *)             gl_cv_func_strerror_0_works="guessing no" ;;
21759        esac
21760
21761 else
21762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h.  */
21764 #include <string.h>
21765            #include <errno.h>
21766
21767 int
21768 main ()
21769 {
21770 int result = 0;
21771            char *str;
21772            errno = 0;
21773            str = strerror (0);
21774            if (!*str) result |= 1;
21775            if (errno) result |= 2;
21776            if (strstr (str, "nknown") || strstr (str, "ndefined"))
21777              result |= 4;
21778            return result;
21779   ;
21780   return 0;
21781 }
21782 _ACEOF
21783 if ac_fn_c_try_run "$LINENO"; then :
21784   gl_cv_func_strerror_0_works=yes
21785 else
21786   gl_cv_func_strerror_0_works=no
21787 fi
21788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21789   conftest.$ac_objext conftest.beam conftest.$ac_ext
21790 fi
21791
21792
21793 fi
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
21795 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
21796   case "$gl_cv_func_strerror_0_works" in
21797     *yes) ;;
21798     *)
21799       REPLACE_STRERROR_0=1
21800
21801 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
21802
21803       ;;
21804   esac
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817      if test $gl_cv_have_include_next = yes; then
21818        gl_cv_next_string_h='<'string.h'>'
21819      else
21820        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21821 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21822 if ${gl_cv_next_string_h+:} false; then :
21823   $as_echo_n "(cached) " >&6
21824 else
21825
21826
21827
21828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21829 /* end confdefs.h.  */
21830 #include <string.h>
21831 _ACEOF
21832                 case "$host_os" in
21833     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21834     *)    gl_absname_cpp="$ac_cpp" ;;
21835   esac
21836
21837   case "$host_os" in
21838     mingw*)
21839                                           gl_dirsep_regex='[/\\]'
21840       ;;
21841     *)
21842       gl_dirsep_regex='\/'
21843       ;;
21844   esac
21845       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21846   gl_header_literal_regex=`echo 'string.h' \
21847                            | sed -e "$gl_make_literal_regex_sed"`
21848   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21849       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21850       s|^/[^/]|//&|
21851       p
21852       q
21853     }'
21854
21855         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21856   sed -n "$gl_absolute_header_sed"`
21857
21858            gl_header=$gl_cv_absolute_string_h
21859            gl_cv_next_string_h='"'$gl_header'"'
21860
21861
21862 fi
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21864 $as_echo "$gl_cv_next_string_h" >&6; }
21865      fi
21866      NEXT_STRING_H=$gl_cv_next_string_h
21867
21868      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21869        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21870        gl_next_as_first_directive='<'string.h'>'
21871      else
21872        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21873        gl_next_as_first_directive=$gl_cv_next_string_h
21874      fi
21875      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
21886 if test "x$ac_cv_have_decl_strndup" = xyes; then :
21887   ac_have_decl=1
21888 else
21889   ac_have_decl=0
21890 fi
21891
21892 cat >>confdefs.h <<_ACEOF
21893 #define HAVE_DECL_STRNDUP $ac_have_decl
21894 _ACEOF
21895
21896
21897
21898 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
21899 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
21900   ac_have_decl=1
21901 else
21902   ac_have_decl=0
21903 fi
21904
21905 cat >>confdefs.h <<_ACEOF
21906 #define HAVE_DECL_STRNLEN $ac_have_decl
21907 _ACEOF
21908
21909 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
21910 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
21911   ac_have_decl=1
21912 else
21913   ac_have_decl=0
21914 fi
21915
21916 cat >>confdefs.h <<_ACEOF
21917 #define HAVE_DECL_STRSIGNAL $ac_have_decl
21918 _ACEOF
21919
21920 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
21921 /* NetBSD declares sys_siglist in unistd.h.  */
21922 #ifdef HAVE_UNISTD_H
21923 # include <unistd.h>
21924 #endif
21925
21926 "
21927 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
21928   ac_have_decl=1
21929 else
21930   ac_have_decl=0
21931 fi
21932
21933 cat >>confdefs.h <<_ACEOF
21934 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
21935 _ACEOF
21936
21937
21938
21939   GNULIB_PSELECT=0;
21940   GNULIB_SELECT=0;
21941     HAVE_PSELECT=1;
21942   REPLACE_PSELECT=0;
21943   REPLACE_SELECT=0;
21944
21945
21946
21947
21948
21949
21950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21951 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21952 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
21953   $as_echo_n "(cached) " >&6
21954 else
21955
21956                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21957 /* end confdefs.h.  */
21958 #include <sys/select.h>
21959 int
21960 main ()
21961 {
21962 struct timeval b;
21963   ;
21964   return 0;
21965 }
21966 _ACEOF
21967 if ac_fn_c_try_compile "$LINENO"; then :
21968   gl_cv_header_sys_select_h_selfcontained=yes
21969 else
21970   gl_cv_header_sys_select_h_selfcontained=no
21971 fi
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21974         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21975 /* end confdefs.h.  */
21976 #include <sys/select.h>
21977 int
21978 main ()
21979 {
21980 int memset; int bzero;
21981   ;
21982   return 0;
21983 }
21984
21985 _ACEOF
21986 if ac_fn_c_try_compile "$LINENO"; then :
21987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988 /* end confdefs.h.  */
21989 #include <sys/select.h>
21990 int
21991 main ()
21992 {
21993
21994                   #undef memset
21995                   #define memset nonexistent_memset
21996                   extern
21997                   #ifdef __cplusplus
21998                   "C"
21999                   #endif
22000                   void *memset (void *, int, unsigned long);
22001                   #undef bzero
22002                   #define bzero nonexistent_bzero
22003                   extern
22004                   #ifdef __cplusplus
22005                   "C"
22006                   #endif
22007                   void bzero (void *, unsigned long);
22008                   fd_set fds;
22009                   FD_ZERO (&fds);
22010
22011   ;
22012   return 0;
22013 }
22014
22015 _ACEOF
22016 if ac_fn_c_try_link "$LINENO"; then :
22017
22018 else
22019   gl_cv_header_sys_select_h_selfcontained=no
22020 fi
22021 rm -f core conftest.err conftest.$ac_objext \
22022     conftest$ac_exeext conftest.$ac_ext
22023
22024 fi
22025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22026       fi
22027
22028 fi
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
22030 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040      if test $gl_cv_have_include_next = yes; then
22041        gl_cv_next_sys_select_h='<'sys/select.h'>'
22042      else
22043        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
22044 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
22045 if ${gl_cv_next_sys_select_h+:} false; then :
22046   $as_echo_n "(cached) " >&6
22047 else
22048
22049              if test $ac_cv_header_sys_select_h = yes; then
22050
22051
22052
22053
22054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055 /* end confdefs.h.  */
22056 #include <sys/select.h>
22057 _ACEOF
22058                 case "$host_os" in
22059     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22060     *)    gl_absname_cpp="$ac_cpp" ;;
22061   esac
22062
22063   case "$host_os" in
22064     mingw*)
22065                                           gl_dirsep_regex='[/\\]'
22066       ;;
22067     *)
22068       gl_dirsep_regex='\/'
22069       ;;
22070   esac
22071       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22072   gl_header_literal_regex=`echo 'sys/select.h' \
22073                            | sed -e "$gl_make_literal_regex_sed"`
22074   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22075       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22076       s|^/[^/]|//&|
22077       p
22078       q
22079     }'
22080
22081         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22082   sed -n "$gl_absolute_header_sed"`
22083
22084            gl_header=$gl_cv_absolute_sys_select_h
22085            gl_cv_next_sys_select_h='"'$gl_header'"'
22086           else
22087                gl_cv_next_sys_select_h='<'sys/select.h'>'
22088              fi
22089
22090
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
22093 $as_echo "$gl_cv_next_sys_select_h" >&6; }
22094      fi
22095      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
22096
22097      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22098        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22099        gl_next_as_first_directive='<'sys/select.h'>'
22100      else
22101        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22102        gl_next_as_first_directive=$gl_cv_next_sys_select_h
22103      fi
22104      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
22105
22106
22107
22108
22109   if test $ac_cv_header_sys_select_h = yes; then
22110     HAVE_SYS_SELECT_H=1
22111   else
22112     HAVE_SYS_SELECT_H=0
22113   fi
22114
22115
22116
22117
22118
22119   if test $ac_cv_header_sys_socket_h != yes; then
22120                     for ac_header in winsock2.h
22121 do :
22122   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22123 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22124   cat >>confdefs.h <<_ACEOF
22125 #define HAVE_WINSOCK2_H 1
22126 _ACEOF
22127
22128 fi
22129
22130 done
22131
22132   fi
22133   if test "$ac_cv_header_winsock2_h" = yes; then
22134     HAVE_WINSOCK2_H=1
22135     UNISTD_H_HAVE_WINSOCK2_H=1
22136     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22137   else
22138     HAVE_WINSOCK2_H=0
22139   fi
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169      if test $gl_cv_have_include_next = yes; then
22170        gl_cv_next_sys_types_h='<'sys/types.h'>'
22171      else
22172        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
22173 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
22174 if ${gl_cv_next_sys_types_h+:} false; then :
22175   $as_echo_n "(cached) " >&6
22176 else
22177
22178
22179
22180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h.  */
22182 #include <sys/types.h>
22183 _ACEOF
22184                 case "$host_os" in
22185     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22186     *)    gl_absname_cpp="$ac_cpp" ;;
22187   esac
22188
22189   case "$host_os" in
22190     mingw*)
22191                                           gl_dirsep_regex='[/\\]'
22192       ;;
22193     *)
22194       gl_dirsep_regex='\/'
22195       ;;
22196   esac
22197       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22198   gl_header_literal_regex=`echo 'sys/types.h' \
22199                            | sed -e "$gl_make_literal_regex_sed"`
22200   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22201       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22202       s|^/[^/]|//&|
22203       p
22204       q
22205     }'
22206
22207         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22208   sed -n "$gl_absolute_header_sed"`
22209
22210            gl_header=$gl_cv_absolute_sys_types_h
22211            gl_cv_next_sys_types_h='"'$gl_header'"'
22212
22213
22214 fi
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
22216 $as_echo "$gl_cv_next_sys_types_h" >&6; }
22217      fi
22218      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
22219
22220      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22221        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22222        gl_next_as_first_directive='<'sys/types.h'>'
22223      else
22224        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22225        gl_next_as_first_directive=$gl_cv_next_sys_types_h
22226      fi
22227      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240     WINDOWS_STAT_INODES=0
22241
22242
22243
22244
22245   GNULIB_WAITPID=0;
22246
22247
22248
22249
22250
22251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
22252 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
22253 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
22254   $as_echo_n "(cached) " >&6
22255 else
22256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h.  */
22258 #include <time.h>
22259
22260 int
22261 main ()
22262 {
22263 static struct timespec x; x.tv_sec = x.tv_nsec;
22264   ;
22265   return 0;
22266 }
22267 _ACEOF
22268 if ac_fn_c_try_compile "$LINENO"; then :
22269   gl_cv_sys_struct_timespec_in_time_h=yes
22270 else
22271   gl_cv_sys_struct_timespec_in_time_h=no
22272 fi
22273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274 fi
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
22276 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
22277
22278   TIME_H_DEFINES_STRUCT_TIMESPEC=0
22279   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22280   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22281   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
22282   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22283     TIME_H_DEFINES_STRUCT_TIMESPEC=1
22284   else
22285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
22286 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22287 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
22288   $as_echo_n "(cached) " >&6
22289 else
22290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22291 /* end confdefs.h.  */
22292 #include <sys/time.h>
22293
22294 int
22295 main ()
22296 {
22297 static struct timespec x; x.tv_sec = x.tv_nsec;
22298   ;
22299   return 0;
22300 }
22301 _ACEOF
22302 if ac_fn_c_try_compile "$LINENO"; then :
22303   gl_cv_sys_struct_timespec_in_sys_time_h=yes
22304 else
22305   gl_cv_sys_struct_timespec_in_sys_time_h=no
22306 fi
22307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22308 fi
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22310 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22311     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22312       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22313     else
22314       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22315 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22316 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
22317   $as_echo_n "(cached) " >&6
22318 else
22319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320 /* end confdefs.h.  */
22321 #include <pthread.h>
22322
22323 int
22324 main ()
22325 {
22326 static struct timespec x; x.tv_sec = x.tv_nsec;
22327   ;
22328   return 0;
22329 }
22330 _ACEOF
22331 if ac_fn_c_try_compile "$LINENO"; then :
22332   gl_cv_sys_struct_timespec_in_pthread_h=yes
22333 else
22334   gl_cv_sys_struct_timespec_in_pthread_h=no
22335 fi
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337 fi
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22339 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22340       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22341         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22342       else
22343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
22344 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
22345 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
22346   $as_echo_n "(cached) " >&6
22347 else
22348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349 /* end confdefs.h.  */
22350 #include <unistd.h>
22351
22352 int
22353 main ()
22354 {
22355 static struct timespec x; x.tv_sec = x.tv_nsec;
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 if ac_fn_c_try_compile "$LINENO"; then :
22361   gl_cv_sys_struct_timespec_in_unistd_h=yes
22362 else
22363   gl_cv_sys_struct_timespec_in_unistd_h=no
22364 fi
22365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22366 fi
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
22368 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
22369         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
22370           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
22371         fi
22372       fi
22373     fi
22374   fi
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391      if test $gl_cv_have_include_next = yes; then
22392        gl_cv_next_time_h='<'time.h'>'
22393      else
22394        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22395 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22396 if ${gl_cv_next_time_h+:} false; then :
22397   $as_echo_n "(cached) " >&6
22398 else
22399
22400
22401
22402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22403 /* end confdefs.h.  */
22404 #include <time.h>
22405 _ACEOF
22406                 case "$host_os" in
22407     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22408     *)    gl_absname_cpp="$ac_cpp" ;;
22409   esac
22410
22411   case "$host_os" in
22412     mingw*)
22413                                           gl_dirsep_regex='[/\\]'
22414       ;;
22415     *)
22416       gl_dirsep_regex='\/'
22417       ;;
22418   esac
22419       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22420   gl_header_literal_regex=`echo 'time.h' \
22421                            | sed -e "$gl_make_literal_regex_sed"`
22422   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22423       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22424       s|^/[^/]|//&|
22425       p
22426       q
22427     }'
22428
22429         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22430   sed -n "$gl_absolute_header_sed"`
22431
22432            gl_header=$gl_cv_absolute_time_h
22433            gl_cv_next_time_h='"'$gl_header'"'
22434
22435
22436 fi
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22438 $as_echo "$gl_cv_next_time_h" >&6; }
22439      fi
22440      NEXT_TIME_H=$gl_cv_next_time_h
22441
22442      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22443        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22444        gl_next_as_first_directive='<'time.h'>'
22445      else
22446        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22447        gl_next_as_first_directive=$gl_cv_next_time_h
22448      fi
22449      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22450
22451
22452
22453
22454
22455
22456 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22457 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
22458   ac_have_decl=1
22459 else
22460   ac_have_decl=0
22461 fi
22462
22463 cat >>confdefs.h <<_ACEOF
22464 #define HAVE_DECL_UNSETENV $ac_have_decl
22465 _ACEOF
22466
22467
22468
22469
22470
22471
22472
22473   if test $ac_cv_header_features_h = yes; then
22474     HAVE_FEATURES_H=1
22475   else
22476     HAVE_FEATURES_H=0
22477   fi
22478
22479
22480
22481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
22482 $as_echo_n "checking for inttypes.h... " >&6; }
22483 if ${gl_cv_header_inttypes_h+:} false; then :
22484   $as_echo_n "(cached) " >&6
22485 else
22486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22487 /* end confdefs.h.  */
22488
22489 #include <sys/types.h>
22490 #include <inttypes.h>
22491
22492 int
22493 main ()
22494 {
22495 uintmax_t i = (uintmax_t) -1; return !i;
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 if ac_fn_c_try_compile "$LINENO"; then :
22501   gl_cv_header_inttypes_h=yes
22502 else
22503   gl_cv_header_inttypes_h=no
22504 fi
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506 fi
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
22508 $as_echo "$gl_cv_header_inttypes_h" >&6; }
22509   if test $gl_cv_header_inttypes_h = yes; then
22510
22511 cat >>confdefs.h <<_ACEOF
22512 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
22513 _ACEOF
22514
22515   fi
22516
22517
22518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
22519 $as_echo_n "checking for stdint.h... " >&6; }
22520 if ${gl_cv_header_stdint_h+:} false; then :
22521   $as_echo_n "(cached) " >&6
22522 else
22523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22524 /* end confdefs.h.  */
22525 #include <sys/types.h>
22526             #include <stdint.h>
22527 int
22528 main ()
22529 {
22530 uintmax_t i = (uintmax_t) -1; return !i;
22531   ;
22532   return 0;
22533 }
22534 _ACEOF
22535 if ac_fn_c_try_compile "$LINENO"; then :
22536   gl_cv_header_stdint_h=yes
22537 else
22538   gl_cv_header_stdint_h=no
22539 fi
22540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541 fi
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
22543 $as_echo "$gl_cv_header_stdint_h" >&6; }
22544   if test $gl_cv_header_stdint_h = yes; then
22545
22546 cat >>confdefs.h <<_ACEOF
22547 #define HAVE_STDINT_H_WITH_UINTMAX 1
22548 _ACEOF
22549
22550   fi
22551
22552
22553
22554
22555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
22556 $as_echo_n "checking for intmax_t... " >&6; }
22557 if ${gt_cv_c_intmax_t+:} false; then :
22558   $as_echo_n "(cached) " >&6
22559 else
22560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h.  */
22562
22563 #include <stddef.h>
22564 #include <stdlib.h>
22565 #if HAVE_STDINT_H_WITH_UINTMAX
22566 #include <stdint.h>
22567 #endif
22568 #if HAVE_INTTYPES_H_WITH_UINTMAX
22569 #include <inttypes.h>
22570 #endif
22571
22572 int
22573 main ()
22574 {
22575 intmax_t x = -1; return !x;
22576   ;
22577   return 0;
22578 }
22579 _ACEOF
22580 if ac_fn_c_try_compile "$LINENO"; then :
22581   gt_cv_c_intmax_t=yes
22582 else
22583   gt_cv_c_intmax_t=no
22584 fi
22585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22586 fi
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
22588 $as_echo "$gt_cv_c_intmax_t" >&6; }
22589   if test $gt_cv_c_intmax_t = yes; then
22590
22591 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22592
22593   else
22594
22595     test $ac_cv_type_long_long_int = yes \
22596       && ac_type='long long' \
22597       || ac_type='long'
22598
22599 cat >>confdefs.h <<_ACEOF
22600 #define intmax_t $ac_type
22601 _ACEOF
22602
22603   fi
22604
22605
22606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22607 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
22608 if ${gl_cv_cc_double_expbit0+:} false; then :
22609   $as_echo_n "(cached) " >&6
22610 else
22611
22612       if test "$cross_compiling" = yes; then :
22613
22614                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22615 /* end confdefs.h.  */
22616
22617 #if defined arm || defined __arm || defined __arm__
22618   mixed_endianness
22619 #endif
22620
22621 _ACEOF
22622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22623   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
22624   gl_cv_cc_double_expbit0="unknown"
22625 else
22626
22627                                                          :
22628 if ${ac_cv_c_bigendian+:} false; then :
22629   $as_echo_n "(cached) " >&6
22630 else
22631   ac_cv_c_bigendian=unknown
22632     # See if we're dealing with a universal compiler.
22633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22634 /* end confdefs.h.  */
22635 #ifndef __APPLE_CC__
22636                not a universal capable compiler
22637              #endif
22638              typedef int dummy;
22639
22640 _ACEOF
22641 if ac_fn_c_try_compile "$LINENO"; then :
22642
22643         # Check for potential -arch flags.  It is not universal unless
22644         # there are at least two -arch flags with different values.
22645         ac_arch=
22646         ac_prev=
22647         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22648          if test -n "$ac_prev"; then
22649            case $ac_word in
22650              i?86 | x86_64 | ppc | ppc64)
22651                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22652                  ac_arch=$ac_word
22653                else
22654                  ac_cv_c_bigendian=universal
22655                  break
22656                fi
22657                ;;
22658            esac
22659            ac_prev=
22660          elif test "x$ac_word" = "x-arch"; then
22661            ac_prev=arch
22662          fi
22663        done
22664 fi
22665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666     if test $ac_cv_c_bigendian = unknown; then
22667       # See if sys/param.h defines the BYTE_ORDER macro.
22668       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22669 /* end confdefs.h.  */
22670 #include <sys/types.h>
22671              #include <sys/param.h>
22672
22673 int
22674 main ()
22675 {
22676 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22677                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22678                      && LITTLE_ENDIAN)
22679               bogus endian macros
22680              #endif
22681
22682   ;
22683   return 0;
22684 }
22685 _ACEOF
22686 if ac_fn_c_try_compile "$LINENO"; then :
22687   # It does; now see whether it defined to BIG_ENDIAN or not.
22688          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689 /* end confdefs.h.  */
22690 #include <sys/types.h>
22691                 #include <sys/param.h>
22692
22693 int
22694 main ()
22695 {
22696 #if BYTE_ORDER != BIG_ENDIAN
22697                  not big endian
22698                 #endif
22699
22700   ;
22701   return 0;
22702 }
22703 _ACEOF
22704 if ac_fn_c_try_compile "$LINENO"; then :
22705   ac_cv_c_bigendian=yes
22706 else
22707   ac_cv_c_bigendian=no
22708 fi
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 fi
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712     fi
22713     if test $ac_cv_c_bigendian = unknown; then
22714       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22715       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716 /* end confdefs.h.  */
22717 #include <limits.h>
22718
22719 int
22720 main ()
22721 {
22722 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22723               bogus endian macros
22724              #endif
22725
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 if ac_fn_c_try_compile "$LINENO"; then :
22731   # It does; now see whether it defined to _BIG_ENDIAN or not.
22732          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733 /* end confdefs.h.  */
22734 #include <limits.h>
22735
22736 int
22737 main ()
22738 {
22739 #ifndef _BIG_ENDIAN
22740                  not big endian
22741                 #endif
22742
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 if ac_fn_c_try_compile "$LINENO"; then :
22748   ac_cv_c_bigendian=yes
22749 else
22750   ac_cv_c_bigendian=no
22751 fi
22752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22753 fi
22754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22755     fi
22756     if test $ac_cv_c_bigendian = unknown; then
22757       # Compile a test program.
22758       if test "$cross_compiling" = yes; then :
22759   # Try to guess by grepping values from an object file.
22760          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22761 /* end confdefs.h.  */
22762 short int ascii_mm[] =
22763                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22764                 short int ascii_ii[] =
22765                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22766                 int use_ascii (int i) {
22767                   return ascii_mm[i] + ascii_ii[i];
22768                 }
22769                 short int ebcdic_ii[] =
22770                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22771                 short int ebcdic_mm[] =
22772                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22773                 int use_ebcdic (int i) {
22774                   return ebcdic_mm[i] + ebcdic_ii[i];
22775                 }
22776                 extern int foo;
22777
22778 int
22779 main ()
22780 {
22781 return use_ascii (foo) == use_ebcdic (foo);
22782   ;
22783   return 0;
22784 }
22785 _ACEOF
22786 if ac_fn_c_try_compile "$LINENO"; then :
22787   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22788               ac_cv_c_bigendian=yes
22789             fi
22790             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22791               if test "$ac_cv_c_bigendian" = unknown; then
22792                 ac_cv_c_bigendian=no
22793               else
22794                 # finding both strings is unlikely to happen, but who knows?
22795                 ac_cv_c_bigendian=unknown
22796               fi
22797             fi
22798 fi
22799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800 else
22801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22802 /* end confdefs.h.  */
22803 $ac_includes_default
22804 int
22805 main ()
22806 {
22807
22808              /* Are we little or big endian?  From Harbison&Steele.  */
22809              union
22810              {
22811                long int l;
22812                char c[sizeof (long int)];
22813              } u;
22814              u.l = 1;
22815              return u.c[sizeof (long int) - 1] == 1;
22816
22817   ;
22818   return 0;
22819 }
22820 _ACEOF
22821 if ac_fn_c_try_run "$LINENO"; then :
22822   ac_cv_c_bigendian=no
22823 else
22824   ac_cv_c_bigendian=yes
22825 fi
22826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22827   conftest.$ac_objext conftest.beam conftest.$ac_ext
22828 fi
22829
22830     fi
22831 fi
22832 :
22833  case $ac_cv_c_bigendian in #(
22834    yes)
22835      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22836    no)
22837      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22838    universal)
22839
22840 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22841
22842      ;; #(
22843    *)
22844      gl_cv_cc_double_expbit0="unknown" ;;
22845  esac
22846
22847
22848 fi
22849 rm -f conftest*
22850
22851
22852 else
22853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22854 /* end confdefs.h.  */
22855
22856 #include <float.h>
22857 #include <stddef.h>
22858 #include <stdio.h>
22859 #include <string.h>
22860 #define NWORDS \
22861   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22862 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22863 static unsigned int ored_words[NWORDS];
22864 static unsigned int anded_words[NWORDS];
22865 static void add_to_ored_words (double x)
22866 {
22867   memory_double m;
22868   size_t i;
22869   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
22870   memset (&m, 0, sizeof (memory_double));
22871   m.value = x;
22872   for (i = 0; i < NWORDS; i++)
22873     {
22874       ored_words[i] |= m.word[i];
22875       anded_words[i] &= m.word[i];
22876     }
22877 }
22878 int main ()
22879 {
22880   size_t j;
22881   FILE *fp = fopen ("conftest.out", "w");
22882   if (fp == NULL)
22883     return 1;
22884   for (j = 0; j < NWORDS; j++)
22885     anded_words[j] = ~ (unsigned int) 0;
22886   add_to_ored_words (0.25);
22887   add_to_ored_words (0.5);
22888   add_to_ored_words (1.0);
22889   add_to_ored_words (2.0);
22890   add_to_ored_words (4.0);
22891   /* Remove bits that are common (e.g. if representation of the first mantissa
22892      bit is explicit).  */
22893   for (j = 0; j < NWORDS; j++)
22894     ored_words[j] &= ~anded_words[j];
22895   /* Now find the nonzero word.  */
22896   for (j = 0; j < NWORDS; j++)
22897     if (ored_words[j] != 0)
22898       break;
22899   if (j < NWORDS)
22900     {
22901       size_t i;
22902       for (i = j + 1; i < NWORDS; i++)
22903         if (ored_words[i] != 0)
22904           {
22905             fprintf (fp, "unknown");
22906             return (fclose (fp) != 0);
22907           }
22908       for (i = 0; ; i++)
22909         if ((ored_words[j] >> i) & 1)
22910           {
22911             fprintf (fp, "word %d bit %d", (int) j, (int) i);
22912             return (fclose (fp) != 0);
22913           }
22914     }
22915   fprintf (fp, "unknown");
22916   return (fclose (fp) != 0);
22917 }
22918
22919 _ACEOF
22920 if ac_fn_c_try_run "$LINENO"; then :
22921   gl_cv_cc_double_expbit0=`cat conftest.out`
22922 else
22923   gl_cv_cc_double_expbit0="unknown"
22924 fi
22925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22926   conftest.$ac_objext conftest.beam conftest.$ac_ext
22927 fi
22928
22929       rm -f conftest.out
22930
22931 fi
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22933 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
22934   case "$gl_cv_cc_double_expbit0" in
22935     word*bit*)
22936       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22937       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22938
22939 cat >>confdefs.h <<_ACEOF
22940 #define DBL_EXPBIT0_WORD $word
22941 _ACEOF
22942
22943
22944 cat >>confdefs.h <<_ACEOF
22945 #define DBL_EXPBIT0_BIT $bit
22946 _ACEOF
22947
22948       ;;
22949   esac
22950
22951
22952
22953
22954
22955
22956   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22957 do :
22958   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22959 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22960 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22961   cat >>confdefs.h <<_ACEOF
22962 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22963 _ACEOF
22964
22965 fi
22966 done
22967
22968       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22969 "
22970 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
22971   ac_have_decl=1
22972 else
22973   ac_have_decl=0
22974 fi
22975
22976 cat >>confdefs.h <<_ACEOF
22977 #define HAVE_DECL__SNPRINTF $ac_have_decl
22978 _ACEOF
22979
22980
22981
22982   case "$gl_cv_func_snprintf_retval_c99" in
22983     *yes)
22984
22985 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
22986
22987       ;;
22988   esac
22989
22990
22991   GNULIB_BTOWC=0;
22992   GNULIB_WCTOB=0;
22993   GNULIB_MBSINIT=0;
22994   GNULIB_MBRTOWC=0;
22995   GNULIB_MBRLEN=0;
22996   GNULIB_MBSRTOWCS=0;
22997   GNULIB_MBSNRTOWCS=0;
22998   GNULIB_WCRTOMB=0;
22999   GNULIB_WCSRTOMBS=0;
23000   GNULIB_WCSNRTOMBS=0;
23001   GNULIB_WCWIDTH=0;
23002   GNULIB_WMEMCHR=0;
23003   GNULIB_WMEMCMP=0;
23004   GNULIB_WMEMCPY=0;
23005   GNULIB_WMEMMOVE=0;
23006   GNULIB_WMEMSET=0;
23007   GNULIB_WCSLEN=0;
23008   GNULIB_WCSNLEN=0;
23009   GNULIB_WCSCPY=0;
23010   GNULIB_WCPCPY=0;
23011   GNULIB_WCSNCPY=0;
23012   GNULIB_WCPNCPY=0;
23013   GNULIB_WCSCAT=0;
23014   GNULIB_WCSNCAT=0;
23015   GNULIB_WCSCMP=0;
23016   GNULIB_WCSNCMP=0;
23017   GNULIB_WCSCASECMP=0;
23018   GNULIB_WCSNCASECMP=0;
23019   GNULIB_WCSCOLL=0;
23020   GNULIB_WCSXFRM=0;
23021   GNULIB_WCSDUP=0;
23022   GNULIB_WCSCHR=0;
23023   GNULIB_WCSRCHR=0;
23024   GNULIB_WCSCSPN=0;
23025   GNULIB_WCSSPN=0;
23026   GNULIB_WCSPBRK=0;
23027   GNULIB_WCSSTR=0;
23028   GNULIB_WCSTOK=0;
23029   GNULIB_WCSWIDTH=0;
23030   GNULIB_WCSFTIME=0;
23031     HAVE_BTOWC=1;
23032   HAVE_MBSINIT=1;
23033   HAVE_MBRTOWC=1;
23034   HAVE_MBRLEN=1;
23035   HAVE_MBSRTOWCS=1;
23036   HAVE_MBSNRTOWCS=1;
23037   HAVE_WCRTOMB=1;
23038   HAVE_WCSRTOMBS=1;
23039   HAVE_WCSNRTOMBS=1;
23040   HAVE_WMEMCHR=1;
23041   HAVE_WMEMCMP=1;
23042   HAVE_WMEMCPY=1;
23043   HAVE_WMEMMOVE=1;
23044   HAVE_WMEMSET=1;
23045   HAVE_WCSLEN=1;
23046   HAVE_WCSNLEN=1;
23047   HAVE_WCSCPY=1;
23048   HAVE_WCPCPY=1;
23049   HAVE_WCSNCPY=1;
23050   HAVE_WCPNCPY=1;
23051   HAVE_WCSCAT=1;
23052   HAVE_WCSNCAT=1;
23053   HAVE_WCSCMP=1;
23054   HAVE_WCSNCMP=1;
23055   HAVE_WCSCASECMP=1;
23056   HAVE_WCSNCASECMP=1;
23057   HAVE_WCSCOLL=1;
23058   HAVE_WCSXFRM=1;
23059   HAVE_WCSDUP=1;
23060   HAVE_WCSCHR=1;
23061   HAVE_WCSRCHR=1;
23062   HAVE_WCSCSPN=1;
23063   HAVE_WCSSPN=1;
23064   HAVE_WCSPBRK=1;
23065   HAVE_WCSSTR=1;
23066   HAVE_WCSTOK=1;
23067   HAVE_WCSWIDTH=1;
23068   HAVE_WCSFTIME=1;
23069   HAVE_DECL_WCTOB=1;
23070   HAVE_DECL_WCWIDTH=1;
23071   REPLACE_MBSTATE_T=0;
23072   REPLACE_BTOWC=0;
23073   REPLACE_WCTOB=0;
23074   REPLACE_MBSINIT=0;
23075   REPLACE_MBRTOWC=0;
23076   REPLACE_MBRLEN=0;
23077   REPLACE_MBSRTOWCS=0;
23078   REPLACE_MBSNRTOWCS=0;
23079   REPLACE_WCRTOMB=0;
23080   REPLACE_WCSRTOMBS=0;
23081   REPLACE_WCSNRTOMBS=0;
23082   REPLACE_WCWIDTH=0;
23083   REPLACE_WCSWIDTH=0;
23084   REPLACE_WCSFTIME=0;
23085
23086
23087             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
23088 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
23089 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
23090   $as_echo_n "(cached) " >&6
23091 else
23092   gl_cv_header_wchar_h_correct_inline=yes
23093      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h.  */
23095
23096        #define wcstod renamed_wcstod
23097 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23098    <wchar.h>.
23099    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23100    included before <wchar.h>.  */
23101 #include <stddef.h>
23102 #include <stdio.h>
23103 #include <time.h>
23104 #include <wchar.h>
23105 extern int zero (void);
23106 int main () { return zero(); }
23107
23108 _ACEOF
23109                               save_ac_compile="$ac_compile"
23110      ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
23111      if echo '#include "conftest.c"' >conftest1.c &&
23112         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23113   (eval $ac_compile) 2>&5
23114   ac_status=$?
23115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116   test $ac_status = 0; }; then
23117        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h.  */
23119
23120          #define wcstod renamed_wcstod
23121 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23122    <wchar.h>.
23123    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23124    included before <wchar.h>.  */
23125 #include <stddef.h>
23126 #include <stdio.h>
23127 #include <time.h>
23128 #include <wchar.h>
23129 int zero (void) { return 0; }
23130
23131 _ACEOF
23132               ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
23133        if echo '#include "conftest.c"' >conftest2.c &&
23134           { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23135   (eval $ac_compile) 2>&5
23136   ac_status=$?
23137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23138   test $ac_status = 0; }; then
23139          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
23140            :
23141          else
23142            gl_cv_header_wchar_h_correct_inline=no
23143          fi
23144        fi
23145      fi
23146      ac_compile="$save_ac_compile"
23147      rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
23148
23149 fi
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
23151 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
23152   if test $gl_cv_header_wchar_h_correct_inline = no; then
23153     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
23154 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
23155 C99 mode. You have four options:
23156   - Add the flag -fgnu89-inline to CC and reconfigure, or
23157   - Fix your include files, using parts of
23158     <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
23159   - Use a gcc version older than 4.3, or
23160   - Don't use the flags -std=c99 or -std=gnu99.
23161 Configuration aborted." "$LINENO" 5
23162   fi
23163
23164
23165
23166
23167
23168   if test $ac_cv_header_crtdefs_h = yes; then
23169     HAVE_CRTDEFS_H=1
23170   else
23171     HAVE_CRTDEFS_H=0
23172   fi
23173
23174
23175
23176    if true; then
23177   GL_COND_LIBTOOL_TRUE=
23178   GL_COND_LIBTOOL_FALSE='#'
23179 else
23180   GL_COND_LIBTOOL_TRUE='#'
23181   GL_COND_LIBTOOL_FALSE=
23182 fi
23183
23184   gl_cond_libtool=true
23185   gl_m4_base='gl/m4'
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195   gl_source_base='gl/lib'
23196
23197
23198   if test $ac_cv_func_alloca_works = no; then
23199     :
23200   fi
23201
23202   # Define an additional variable used in the Makefile substitution.
23203   if test $ac_cv_working_alloca_h = yes; then
23204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
23205 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
23206 if ${gl_cv_rpl_alloca+:} false; then :
23207   $as_echo_n "(cached) " >&6
23208 else
23209
23210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23211 /* end confdefs.h.  */
23212
23213 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
23214         Need own alloca
23215 #endif
23216
23217 _ACEOF
23218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23219   $EGREP "Need own alloca" >/dev/null 2>&1; then :
23220   gl_cv_rpl_alloca=yes
23221 else
23222   gl_cv_rpl_alloca=no
23223 fi
23224 rm -f conftest*
23225
23226
23227 fi
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
23229 $as_echo "$gl_cv_rpl_alloca" >&6; }
23230     if test $gl_cv_rpl_alloca = yes; then
23231
23232 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23233
23234       ALLOCA_H=alloca.h
23235     else
23236                   ALLOCA_H=
23237     fi
23238   else
23239     ALLOCA_H=alloca.h
23240   fi
23241
23242    if test -n "$ALLOCA_H"; then
23243   GL_GENERATE_ALLOCA_H_TRUE=
23244   GL_GENERATE_ALLOCA_H_FALSE='#'
23245 else
23246   GL_GENERATE_ALLOCA_H_TRUE='#'
23247   GL_GENERATE_ALLOCA_H_FALSE=
23248 fi
23249
23250
23251
23252
23253
23254
23255
23256 cat >>confdefs.h <<_ACEOF
23257 #define GNULIB_DIRNAME 1
23258 _ACEOF
23259
23260
23261
23262
23263
23264
23265
23266
23267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
23268 $as_echo_n "checking whether // is distinct from /... " >&6; }
23269 if ${gl_cv_double_slash_root+:} false; then :
23270   $as_echo_n "(cached) " >&6
23271 else
23272    if test x"$cross_compiling" = xyes ; then
23273         # When cross-compiling, there is no way to tell whether // is special
23274         # short of a list of hosts.  However, the only known hosts to date
23275         # that have a distinct // are Apollo DomainOS (too old to port to),
23276         # Cygwin, and z/OS.  If anyone knows of another system for which // has
23277         # special semantics and is distinct from /, please report it to
23278         # <bug-gnulib@gnu.org>.
23279         case $host in
23280           *-cygwin | i370-ibm-openedition)
23281             gl_cv_double_slash_root=yes ;;
23282           *)
23283             # Be optimistic and assume that / and // are the same when we
23284             # don't know.
23285             gl_cv_double_slash_root='unknown, assuming no' ;;
23286         esac
23287       else
23288         set x `ls -di / // 2>/dev/null`
23289         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
23290           gl_cv_double_slash_root=no
23291         else
23292           gl_cv_double_slash_root=yes
23293         fi
23294       fi
23295 fi
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
23297 $as_echo "$gl_cv_double_slash_root" >&6; }
23298   if test "$gl_cv_double_slash_root" = yes; then
23299
23300 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
23301
23302   fi
23303
23304
23305
23306
23307
23308
23309
23310           GNULIB_ENVIRON=1
23311
23312
23313
23314
23315
23316 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
23317
23318
23319
23320
23321
23322       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
23323 $as_echo_n "checking for error_at_line... " >&6; }
23324 if ${ac_cv_lib_error_at_line+:} false; then :
23325   $as_echo_n "(cached) " >&6
23326 else
23327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23328 /* end confdefs.h.  */
23329 #include <error.h>
23330 int
23331 main ()
23332 {
23333 error_at_line (0, 0, "", 0, "an error occurred");
23334   ;
23335   return 0;
23336 }
23337 _ACEOF
23338 if ac_fn_c_try_link "$LINENO"; then :
23339   ac_cv_lib_error_at_line=yes
23340 else
23341   ac_cv_lib_error_at_line=no
23342 fi
23343 rm -f core conftest.err conftest.$ac_objext \
23344     conftest$ac_exeext conftest.$ac_ext
23345 fi
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
23347 $as_echo "$ac_cv_lib_error_at_line" >&6; }
23348
23349   if test $ac_cv_lib_error_at_line = no; then
23350
23351
23352
23353
23354
23355
23356
23357
23358   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
23359
23360
23361
23362   :
23363
23364   fi
23365
23366
23367   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
23368
23369
23370
23371   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385      if test $gl_cv_have_include_next = yes; then
23386        gl_cv_next_fcntl_h='<'fcntl.h'>'
23387      else
23388        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23389 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23390 if ${gl_cv_next_fcntl_h+:} false; then :
23391   $as_echo_n "(cached) " >&6
23392 else
23393
23394
23395
23396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23397 /* end confdefs.h.  */
23398 #include <fcntl.h>
23399 _ACEOF
23400                 case "$host_os" in
23401     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23402     *)    gl_absname_cpp="$ac_cpp" ;;
23403   esac
23404
23405   case "$host_os" in
23406     mingw*)
23407                                           gl_dirsep_regex='[/\\]'
23408       ;;
23409     *)
23410       gl_dirsep_regex='\/'
23411       ;;
23412   esac
23413       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23414   gl_header_literal_regex=`echo 'fcntl.h' \
23415                            | sed -e "$gl_make_literal_regex_sed"`
23416   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23417       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23418       s|^/[^/]|//&|
23419       p
23420       q
23421     }'
23422
23423         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23424   sed -n "$gl_absolute_header_sed"`
23425
23426            gl_header=$gl_cv_absolute_fcntl_h
23427            gl_cv_next_fcntl_h='"'$gl_header'"'
23428
23429
23430 fi
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23432 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23433      fi
23434      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23435
23436      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23437        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23438        gl_next_as_first_directive='<'fcntl.h'>'
23439      else
23440        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23441        gl_next_as_first_directive=$gl_cv_next_fcntl_h
23442      fi
23443      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460   FLOAT_H=
23461   REPLACE_FLOAT_LDBL=0
23462   case "$host_os" in
23463     aix* | beos* | openbsd* | mirbsd* | irix*)
23464       FLOAT_H=float.h
23465       ;;
23466     freebsd* | dragonfly*)
23467       case "$host_cpu" in
23468         i[34567]86 )
23469           FLOAT_H=float.h
23470           ;;
23471         x86_64 )
23472           # On x86_64 systems, the C compiler may still be generating
23473           # 32-bit code.
23474           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23475 /* end confdefs.h.  */
23476 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
23477                   int ok;
23478                  #else
23479                   error fail
23480                  #endif
23481
23482 _ACEOF
23483 if ac_fn_c_try_compile "$LINENO"; then :
23484
23485 else
23486   FLOAT_H=float.h
23487 fi
23488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489           ;;
23490       esac
23491       ;;
23492     linux*)
23493       case "$host_cpu" in
23494         powerpc*)
23495           FLOAT_H=float.h
23496           ;;
23497       esac
23498       ;;
23499   esac
23500   case "$host_os" in
23501     aix* | freebsd* | dragonfly* | linux*)
23502       if test -n "$FLOAT_H"; then
23503         REPLACE_FLOAT_LDBL=1
23504       fi
23505       ;;
23506   esac
23507
23508     REPLACE_ITOLD=0
23509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
23510 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
23511 if ${gl_cv_func_itold_works+:} false; then :
23512   $as_echo_n "(cached) " >&6
23513 else
23514
23515       if test "$cross_compiling" = yes; then :
23516   case "$host" in
23517            sparc*-*-linux*)
23518              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23519 /* end confdefs.h.  */
23520 #if defined __LP64__ || defined __arch64__
23521                     int ok;
23522                    #else
23523                     error fail
23524                    #endif
23525
23526 _ACEOF
23527 if ac_fn_c_try_compile "$LINENO"; then :
23528   gl_cv_func_itold_works="guessing no"
23529 else
23530   gl_cv_func_itold_works="guessing yes"
23531 fi
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533              ;;
23534                    # Guess yes on native Windows.
23535            mingw*) gl_cv_func_itold_works="guessing yes" ;;
23536            *)      gl_cv_func_itold_works="guessing yes" ;;
23537          esac
23538
23539 else
23540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23541 /* end confdefs.h.  */
23542
23543 int i = -1;
23544 volatile long double ld;
23545 int main ()
23546 {
23547   ld += i * 1.0L;
23548   if (ld > 0)
23549     return 1;
23550   return 0;
23551 }
23552 _ACEOF
23553 if ac_fn_c_try_run "$LINENO"; then :
23554   gl_cv_func_itold_works=yes
23555 else
23556   gl_cv_func_itold_works=no
23557 fi
23558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23559   conftest.$ac_objext conftest.beam conftest.$ac_ext
23560 fi
23561
23562
23563 fi
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
23565 $as_echo "$gl_cv_func_itold_works" >&6; }
23566   case "$gl_cv_func_itold_works" in
23567     *no)
23568       REPLACE_ITOLD=1
23569                   FLOAT_H=float.h
23570       ;;
23571   esac
23572
23573   if test -n "$FLOAT_H"; then
23574
23575
23576
23577
23578
23579
23580
23581
23582      if test $gl_cv_have_include_next = yes; then
23583        gl_cv_next_float_h='<'float.h'>'
23584      else
23585        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
23586 $as_echo_n "checking absolute name of <float.h>... " >&6; }
23587 if ${gl_cv_next_float_h+:} false; then :
23588   $as_echo_n "(cached) " >&6
23589 else
23590
23591
23592
23593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h.  */
23595 #include <float.h>
23596 _ACEOF
23597                 case "$host_os" in
23598     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23599     *)    gl_absname_cpp="$ac_cpp" ;;
23600   esac
23601
23602   case "$host_os" in
23603     mingw*)
23604                                           gl_dirsep_regex='[/\\]'
23605       ;;
23606     *)
23607       gl_dirsep_regex='\/'
23608       ;;
23609   esac
23610       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23611   gl_header_literal_regex=`echo 'float.h' \
23612                            | sed -e "$gl_make_literal_regex_sed"`
23613   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23614       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23615       s|^/[^/]|//&|
23616       p
23617       q
23618     }'
23619
23620         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23621   sed -n "$gl_absolute_header_sed"`
23622
23623            gl_header=$gl_cv_absolute_float_h
23624            gl_cv_next_float_h='"'$gl_header'"'
23625
23626
23627 fi
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
23629 $as_echo "$gl_cv_next_float_h" >&6; }
23630      fi
23631      NEXT_FLOAT_H=$gl_cv_next_float_h
23632
23633      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23634        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23635        gl_next_as_first_directive='<'float.h'>'
23636      else
23637        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23638        gl_next_as_first_directive=$gl_cv_next_float_h
23639      fi
23640      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
23641
23642
23643
23644
23645   fi
23646
23647    if test -n "$FLOAT_H"; then
23648   GL_GENERATE_FLOAT_H_TRUE=
23649   GL_GENERATE_FLOAT_H_FALSE='#'
23650 else
23651   GL_GENERATE_FLOAT_H_TRUE='#'
23652   GL_GENERATE_FLOAT_H_FALSE=
23653 fi
23654
23655
23656
23657   if test $REPLACE_FLOAT_LDBL = 1; then
23658
23659
23660
23661
23662
23663
23664
23665
23666   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
23667
23668   fi
23669   if test $REPLACE_ITOLD = 1; then
23670
23671
23672
23673
23674
23675
23676
23677
23678   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
23679
23680   fi
23681
23682
23683
23684   ac_found=0
23685   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
23686 "
23687 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
23688   ac_have_decl=1
23689 else
23690   ac_have_decl=0
23691 fi
23692
23693 cat >>confdefs.h <<_ACEOF
23694 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
23695 _ACEOF
23696 if test $ac_have_decl = 1; then :
23697   ac_found=1
23698 fi
23699
23700   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
23701 "
23702 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
23703   ac_have_decl=1
23704 else
23705   ac_have_decl=0
23706 fi
23707
23708 cat >>confdefs.h <<_ACEOF
23709 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
23710 _ACEOF
23711 if test $ac_have_decl = 1; then :
23712   ac_found=1
23713 fi
23714
23715   ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
23716 "
23717 if test "x$ac_cv_have_decl___argv" = xyes; then :
23718   ac_have_decl=1
23719 else
23720   ac_have_decl=0
23721 fi
23722
23723 cat >>confdefs.h <<_ACEOF
23724 #define HAVE_DECL___ARGV $ac_have_decl
23725 _ACEOF
23726 if test $ac_have_decl = 1; then :
23727   ac_found=1
23728 fi
23729
23730
23731   # Incur the cost of this test only if none of the above worked.
23732   if test $ac_found = 0; then
23733     # On OpenBSD 5.1, using the global __progname variable appears to be
23734     # the only way to implement getprogname.
23735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
23736 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
23737 if ${gl_cv_var___progname+:} false; then :
23738   $as_echo_n "(cached) " >&6
23739 else
23740
23741         gl_cv_var___progname=
23742         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23743 /* end confdefs.h.  */
23744 extern char *__progname;
23745 int
23746 main ()
23747 {
23748 return *__progname;
23749
23750   ;
23751   return 0;
23752 }
23753 _ACEOF
23754 if ac_fn_c_try_link "$LINENO"; then :
23755   gl_cv_var___progname=yes
23756
23757 fi
23758 rm -f core conftest.err conftest.$ac_objext \
23759     conftest$ac_exeext conftest.$ac_ext
23760
23761
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
23764 $as_echo "$gl_cv_var___progname" >&6; }
23765     if test "$gl_cv_var___progname" = yes; then
23766
23767 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
23768
23769     fi
23770   fi
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781   gl_gettimeofday_timezone=void
23782   if test $ac_cv_func_gettimeofday != yes; then
23783     HAVE_GETTIMEOFDAY=0
23784   else
23785
23786
23787
23788
23789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23790 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23791 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
23792   $as_echo_n "(cached) " >&6
23793 else
23794   if test "$cross_compiling" = yes; then :
23795   # When cross-compiling:
23796       case "$host_os" in
23797                        # Guess all is fine on glibc systems.
23798         *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23799                        # Guess no on native Windows.
23800         mingw*)        gl_cv_func_gettimeofday_clobber="guessing no" ;;
23801                        # If we don't know, assume the worst.
23802         *)             gl_cv_func_gettimeofday_clobber="guessing yes" ;;
23803       esac
23804
23805 else
23806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23807 /* end confdefs.h.  */
23808 #include <string.h>
23809           #include <sys/time.h>
23810           #include <time.h>
23811           #include <stdlib.h>
23812
23813 int
23814 main ()
23815 {
23816
23817           time_t t = 0;
23818           struct tm *lt;
23819           struct tm saved_lt;
23820           struct timeval tv;
23821           lt = localtime (&t);
23822           saved_lt = *lt;
23823           gettimeofday (&tv, NULL);
23824           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23825
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 if ac_fn_c_try_run "$LINENO"; then :
23831   gl_cv_func_gettimeofday_clobber=no
23832 else
23833   gl_cv_func_gettimeofday_clobber=yes
23834 fi
23835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23836   conftest.$ac_objext conftest.beam conftest.$ac_ext
23837 fi
23838
23839 fi
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23841 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23842
23843  case "$gl_cv_func_gettimeofday_clobber" in
23844    *yes)
23845      REPLACE_GETTIMEOFDAY=1
23846
23847 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23848
23849
23850
23851
23852   NEED_LOCALTIME_BUFFER=1
23853   REPLACE_GMTIME=1
23854   REPLACE_LOCALTIME=1
23855
23856      ;;
23857  esac
23858
23859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23860 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23861 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
23862   $as_echo_n "(cached) " >&6
23863 else
23864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23865 /* end confdefs.h.  */
23866 #include <sys/time.h>
23867               struct timeval c;
23868               int gettimeofday (struct timeval *restrict, void *restrict);
23869
23870 int
23871 main ()
23872 {
23873 /* glibc uses struct timezone * rather than the POSIX void *
23874                  if _GNU_SOURCE is defined.  However, since the only portable
23875                  use of gettimeofday uses NULL as the second parameter, and
23876                  since the glibc definition is actually more typesafe, it is
23877                  not worth wrapping this to get a compliant signature.  */
23878               int (*f) (struct timeval *restrict, void *restrict)
23879                 = gettimeofday;
23880               int x = f (&c, 0);
23881               return !(x | c.tv_sec | c.tv_usec);
23882
23883   ;
23884   return 0;
23885 }
23886 _ACEOF
23887 if ac_fn_c_try_compile "$LINENO"; then :
23888   gl_cv_func_gettimeofday_posix_signature=yes
23889 else
23890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h.  */
23892 #include <sys/time.h>
23893 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23894
23895 int
23896 main ()
23897 {
23898
23899   ;
23900   return 0;
23901 }
23902 _ACEOF
23903 if ac_fn_c_try_compile "$LINENO"; then :
23904   gl_cv_func_gettimeofday_posix_signature=almost
23905 else
23906   gl_cv_func_gettimeofday_posix_signature=no
23907 fi
23908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23909 fi
23910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23911 fi
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23913 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23914     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
23915       gl_gettimeofday_timezone='struct timezone'
23916     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23917       REPLACE_GETTIMEOFDAY=1
23918     fi
23919         if test $REPLACE_STRUCT_TIMEVAL = 1; then
23920       REPLACE_GETTIMEOFDAY=1
23921     fi
23922             case "$host_os" in
23923       mingw*) REPLACE_GETTIMEOFDAY=1 ;;
23924     esac
23925   fi
23926
23927 cat >>confdefs.h <<_ACEOF
23928 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23929 _ACEOF
23930
23931
23932   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
23933
23934
23935
23936
23937
23938
23939
23940
23941   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23942
23943     :
23944   fi
23945
23946
23947
23948
23949
23950           GNULIB_GETTIMEOFDAY=1
23951
23952
23953
23954
23955
23956 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
23957
23958
23959
23960
23961
23962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
23963 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
23964 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
23965   $as_echo_n "(cached) " >&6
23966 else
23967   gl_cv_prog_c_ignore_unused_libraries=none
23968      gl_saved_ldflags=$LDFLAGS
23969      gl_saved_libs=$LIBS
23970      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
23971      # <https://lists.gnu.org/r/bug-gnulib/2006-06/msg00131.html>.
23972      LIBS="$LIBS -lm"
23973      # Use long option sequences like '-z ignore' to test for the feature,
23974      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
23975      # GCC + binutils likes '-Wl,--as-needed'.
23976      # GCC + Solaris ld likes '-Wl,-z,ignore'.
23977      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
23978      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
23979      # native cc issues annoying warnings and then ignores it,
23980      # which would cause us to incorrectly conclude that it worked.
23981      for gl_flags in  '-Wl,--as-needed' \
23982   '-Wl,-z,ignore' \
23983   '-z ignore'
23984
23985      do
23986        LDFLAGS="$gl_flags $LDFLAGS"
23987        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h.  */
23989
23990 int
23991 main ()
23992 {
23993
23994   ;
23995   return 0;
23996 }
23997 _ACEOF
23998 if ac_fn_c_try_link "$LINENO"; then :
23999   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
24000 fi
24001 rm -f core conftest.err conftest.$ac_objext \
24002     conftest$ac_exeext conftest.$ac_ext
24003        LDFLAGS=$gl_saved_ldflags
24004        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
24005          break
24006      done
24007      LIBS=$gl_saved_libs
24008
24009 fi
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
24011 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
24012   IGNORE_UNUSED_LIBRARIES_CFLAGS=
24013   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
24014     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
24015   fi
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028   gl_LIBOBJS="$gl_LIBOBJS localtime-buffer.$ac_objext"
24029
24030
24031
24032   if test "$gl_threads_api" = posix; then
24033     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
24034     # pthread_rwlock_* functions.
24035     has_rwlock=false
24036     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
24037 "
24038 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
24039   has_rwlock=true
24040
24041 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
24042
24043 fi
24044
24045     if $has_rwlock; then
24046
24047
24048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
24049 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
24050 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
24051   $as_echo_n "(cached) " >&6
24052 else
24053   save_LIBS="$LIBS"
24054      LIBS="$LIBS $LIBMULTITHREAD"
24055      if test "$cross_compiling" = yes; then :
24056   gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
24057 else
24058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059 /* end confdefs.h.  */
24060
24061 #include <errno.h>
24062 #include <pthread.h>
24063 #include <stdlib.h>
24064 #include <unistd.h>
24065
24066 #define SUCCEED() exit (0)
24067 #define FAILURE() exit (1)
24068 #define UNEXPECTED(n) (exit (10 + (n)))
24069
24070 /* The main thread creates the waiting writer and the requesting reader threads
24071    in the default way; this guarantees that they have the same priority.
24072    We can reuse the main thread as first reader thread.  */
24073
24074 static pthread_rwlock_t lock;
24075 static pthread_t reader1;
24076 static pthread_t writer;
24077 static pthread_t reader2;
24078 static pthread_t timer;
24079 /* Used to pass control from writer to reader2 and from reader2 to timer,
24080    as in a relay race.
24081    Passing control from one running thread to another running thread
24082    is most likely faster than to create the second thread.  */
24083 static pthread_mutex_t baton;
24084
24085 static void *
24086 timer_func (void *ignored)
24087 {
24088   /* Step 13 (can be before or after step 12):
24089      The timer thread takes the baton, then waits a moment to make sure
24090      it can tell whether the second reader thread is blocked at step 12.  */
24091   if (pthread_mutex_lock (&baton))
24092     UNEXPECTED (13);
24093   usleep (100000);
24094   /* By the time we get here, it's clear that the second reader thread is
24095      blocked at step 12.  This is the desired behaviour.  */
24096   SUCCEED ();
24097 }
24098
24099 static void *
24100 reader2_func (void *ignored)
24101 {
24102   int err;
24103
24104   /* Step 8 (can be before or after step 7):
24105      The second reader thread takes the baton, then waits a moment to make sure
24106      the writer thread has reached step 7.  */
24107   if (pthread_mutex_lock (&baton))
24108     UNEXPECTED (8);
24109   usleep (100000);
24110   /* Step 9: The second reader thread requests the lock.  */
24111   err = pthread_rwlock_tryrdlock (&lock);
24112   if (err == 0)
24113     FAILURE ();
24114   else if (err != EBUSY)
24115     UNEXPECTED (9);
24116   /* Step 10: Launch a timer, to test whether the next call blocks.  */
24117   if (pthread_create (&timer, NULL, timer_func, NULL))
24118     UNEXPECTED (10);
24119   /* Step 11: Release the baton.  */
24120   if (pthread_mutex_unlock (&baton))
24121     UNEXPECTED (11);
24122   /* Step 12: The second reader thread requests the lock.  */
24123   err = pthread_rwlock_rdlock (&lock);
24124   if (err == 0)
24125     FAILURE ();
24126   else
24127     UNEXPECTED (12);
24128 }
24129
24130 static void *
24131 writer_func (void *ignored)
24132 {
24133   /* Step 4: Take the baton, so that the second reader thread does not go ahead
24134      too early.  */
24135   if (pthread_mutex_lock (&baton))
24136     UNEXPECTED (4);
24137   /* Step 5: Create the second reader thread.  */
24138   if (pthread_create (&reader2, NULL, reader2_func, NULL))
24139     UNEXPECTED (5);
24140   /* Step 6: Release the baton.  */
24141   if (pthread_mutex_unlock (&baton))
24142     UNEXPECTED (6);
24143   /* Step 7: The writer thread requests the lock.  */
24144   if (pthread_rwlock_wrlock (&lock))
24145     UNEXPECTED (7);
24146   return NULL;
24147 }
24148
24149 int
24150 main ()
24151 {
24152   reader1 = pthread_self ();
24153
24154   /* Step 1: The main thread initializes the lock and the baton.  */
24155   if (pthread_rwlock_init (&lock, NULL))
24156     UNEXPECTED (1);
24157   if (pthread_mutex_init (&baton, NULL))
24158     UNEXPECTED (1);
24159   /* Step 2: The main thread acquires the lock as a reader.  */
24160   if (pthread_rwlock_rdlock (&lock))
24161     UNEXPECTED (2);
24162   /* Step 3: Create the writer thread.  */
24163   if (pthread_create (&writer, NULL, writer_func, NULL))
24164     UNEXPECTED (3);
24165   /* Job done.  Go to sleep.  */
24166   for (;;)
24167     {
24168       sleep (1);
24169     }
24170 }
24171
24172 _ACEOF
24173 if ac_fn_c_try_run "$LINENO"; then :
24174   gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
24175 else
24176   gl_cv_pthread_rwlock_rdlock_prefer_writer=no
24177 fi
24178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24179   conftest.$ac_objext conftest.beam conftest.$ac_ext
24180 fi
24181
24182      LIBS="$save_LIBS"
24183
24184 fi
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
24186 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
24187   case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
24188     *yes)
24189
24190 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
24191
24192       ;;
24193   esac
24194
24195     fi
24196     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24197     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24198 /* end confdefs.h.  */
24199
24200       #include <pthread.h>
24201 int
24202 main ()
24203 {
24204
24205 #if __FreeBSD__ == 4
24206 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24207 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
24208        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
24209 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
24210 #else
24211 int x = (int)PTHREAD_MUTEX_RECURSIVE;
24212 return !x;
24213 #endif
24214
24215   ;
24216   return 0;
24217 }
24218 _ACEOF
24219 if ac_fn_c_try_compile "$LINENO"; then :
24220
24221 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
24222
24223 fi
24224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24225   fi
24226   :
24227
24228
24229
24230 cat >>confdefs.h <<_ACEOF
24231 #define GNULIB_LOCK 1
24232 _ACEOF
24233
24234
24235
24236
24237
24238
24239   if test $ac_cv_func_lstat = yes; then
24240
24241     case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
24242       solaris* | *no)
24243         REPLACE_LSTAT=1
24244         ;;
24245     esac
24246   else
24247     HAVE_LSTAT=0
24248   fi
24249
24250   if test $REPLACE_LSTAT = 1; then
24251
24252
24253
24254
24255
24256
24257
24258
24259   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24260
24261     :
24262   fi
24263
24264
24265
24266
24267
24268           GNULIB_LSTAT=1
24269
24270
24271
24272
24273
24274 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
24275
24276
24277
24278
24279
24280
24281   if test $gl_cv_func_malloc_posix = yes; then
24282
24283 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24284
24285   else
24286     REPLACE_MALLOC=1
24287   fi
24288
24289   if test $REPLACE_MALLOC = 1; then
24290
24291
24292
24293
24294
24295
24296
24297
24298   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24299
24300   fi
24301
24302
24303
24304
24305
24306           GNULIB_MALLOC_POSIX=1
24307
24308
24309
24310
24311
24312 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24313
24314
24315
24316
24317
24318
24319
24320
24321   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
24322
24323
24324
24325
24326
24327
24328
24329
24330   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
24331
24332
24333   for ac_header in bp-sym.h
24334 do :
24335   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24336 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
24337   cat >>confdefs.h <<_ACEOF
24338 #define HAVE_BP_SYM_H 1
24339 _ACEOF
24340
24341 fi
24342
24343 done
24344
24345
24346   fi
24347
24348
24349
24350
24351
24352           GNULIB_MEMCHR=1
24353
24354
24355
24356
24357
24358 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24359
24360
24361
24362
24363
24364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
24365 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
24366 if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
24367   $as_echo_n "(cached) " >&6
24368 else
24369   rm -rf conftest.dir
24370       if test "$cross_compiling" = yes; then :
24371   case "$host_os" in
24372                           # Guess yes on Linux systems.
24373          linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24374                           # Guess yes on glibc systems.
24375          *-gnu* | gnu*)   gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24376                           # Guess yes on MSVC, no on mingw.
24377          mingw*)          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24378 /* end confdefs.h.  */
24379
24380 #ifdef _MSC_VER
24381  Known
24382 #endif
24383
24384 _ACEOF
24385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24386   $EGREP "Known" >/dev/null 2>&1; then :
24387   gl_cv_func_mkdir_trailing_slash_works="guessing yes"
24388 else
24389   gl_cv_func_mkdir_trailing_slash_works="guessing no"
24390 fi
24391 rm -f conftest*
24392
24393                           ;;
24394                           # If we don't know, assume the worst.
24395          *)               gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
24396        esac
24397
24398 else
24399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h.  */
24401
24402 #       include <sys/types.h>
24403 #       include <sys/stat.h>
24404
24405 int
24406 main ()
24407 {
24408 return mkdir ("conftest.dir/", 0700);
24409   ;
24410   return 0;
24411 }
24412 _ACEOF
24413 if ac_fn_c_try_run "$LINENO"; then :
24414   gl_cv_func_mkdir_trailing_slash_works=yes
24415 else
24416   gl_cv_func_mkdir_trailing_slash_works=no
24417 fi
24418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24419   conftest.$ac_objext conftest.beam conftest.$ac_ext
24420 fi
24421
24422     rm -rf conftest.dir
24423
24424
24425 fi
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
24427 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
24428   case "$gl_cv_func_mkdir_trailing_slash_works" in
24429     *yes) ;;
24430     *)
24431       REPLACE_MKDIR=1
24432       ;;
24433   esac
24434
24435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
24436 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
24437 if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
24438   $as_echo_n "(cached) " >&6
24439 else
24440   rm -rf conftest.dir
24441       if test "$cross_compiling" = yes; then :
24442   case "$host_os" in
24443                         # Guess yes on glibc systems.
24444          *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
24445                         # Guess no on native Windows.
24446          mingw*)        gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24447                         # If we don't know, assume the worst.
24448          *)             gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24449        esac
24450
24451 else
24452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24453 /* end confdefs.h.  */
24454
24455 #       include <sys/types.h>
24456 #       include <sys/stat.h>
24457
24458 int
24459 main ()
24460 {
24461 return !mkdir ("conftest.dir/./", 0700);
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 if ac_fn_c_try_run "$LINENO"; then :
24467   gl_cv_func_mkdir_trailing_dot_works=yes
24468 else
24469   gl_cv_func_mkdir_trailing_dot_works=no
24470 fi
24471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24472   conftest.$ac_objext conftest.beam conftest.$ac_ext
24473 fi
24474
24475     rm -rf conftest.dir
24476
24477
24478 fi
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
24480 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
24481   case "$gl_cv_func_mkdir_trailing_dot_works" in
24482     *yes) ;;
24483     *)
24484       REPLACE_MKDIR=1
24485
24486 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
24487
24488       ;;
24489   esac
24490
24491   if test $REPLACE_MKDIR = 1; then
24492
24493
24494
24495
24496
24497
24498
24499
24500   gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
24501
24502   fi
24503
24504
24505   for ac_func in mkdtemp
24506 do :
24507   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
24508 if test "x$ac_cv_func_mkdtemp" = xyes; then :
24509   cat >>confdefs.h <<_ACEOF
24510 #define HAVE_MKDTEMP 1
24511 _ACEOF
24512
24513 fi
24514 done
24515
24516   if test $ac_cv_func_mkdtemp = no; then
24517     HAVE_MKDTEMP=0
24518   fi
24519
24520   if test $HAVE_MKDTEMP = 0; then
24521
24522
24523
24524
24525
24526
24527
24528
24529   gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
24530
24531     :
24532
24533   fi
24534
24535
24536
24537
24538
24539           GNULIB_MKDTEMP=1
24540
24541
24542
24543
24544
24545 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
24546
24547
24548
24549
24550   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24551
24552
24553
24554
24555
24556
24557
24558
24559   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
24560
24561   fi
24562
24563   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24564
24565
24566
24567
24568
24569
24570
24571
24572   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
24573
24574   fi
24575
24576
24577 cat >>confdefs.h <<_ACEOF
24578 #define GNULIB_MSVC_NOTHROW 1
24579 _ACEOF
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589   for ac_func in raise
24590 do :
24591   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
24592 if test "x$ac_cv_func_raise" = xyes; then :
24593   cat >>confdefs.h <<_ACEOF
24594 #define HAVE_RAISE 1
24595 _ACEOF
24596
24597 fi
24598 done
24599
24600   if test $ac_cv_func_raise = no; then
24601     HAVE_RAISE=0
24602   else
24603
24604
24605       if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24606         REPLACE_RAISE=1
24607       fi
24608
24609
24610
24611
24612
24613   if test $gl_cv_type_sigset_t = yes; then
24614     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24615 if test "x$ac_cv_func_sigprocmask" = xyes; then :
24616   gl_cv_func_sigprocmask=1
24617 fi
24618
24619   fi
24620   if test -z "$gl_cv_func_sigprocmask"; then
24621     HAVE_POSIX_SIGNALBLOCKING=0
24622   fi
24623
24624       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
24625         :
24626       fi
24627
24628   fi
24629
24630   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
24631
24632
24633
24634
24635
24636
24637
24638
24639   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
24640
24641     :
24642   fi
24643
24644
24645
24646
24647
24648           GNULIB_RAISE=1
24649
24650
24651
24652
24653
24654 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
24655
24656
24657
24658
24659
24660
24661
24662     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24663       REPLACE_READ=1
24664     fi
24665
24666
24667
24668   if test $REPLACE_READ = 1; then
24669
24670
24671
24672
24673
24674
24675
24676
24677   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
24678
24679     :
24680   fi
24681
24682
24683
24684
24685
24686           GNULIB_READ=1
24687
24688
24689
24690
24691
24692 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706      if test $ac_cv_func_setenv = no; then
24707     HAVE_SETENV=0
24708   else
24709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
24710 $as_echo_n "checking whether setenv validates arguments... " >&6; }
24711 if ${gl_cv_func_setenv_works+:} false; then :
24712   $as_echo_n "(cached) " >&6
24713 else
24714   if test "$cross_compiling" = yes; then :
24715   case "$host_os" in
24716                         # Guess yes on glibc systems.
24717          *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
24718                         # If we don't know, assume the worst.
24719          *)             gl_cv_func_setenv_works="guessing no" ;;
24720        esac
24721
24722 else
24723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24724 /* end confdefs.h.  */
24725
24726        #include <stdlib.h>
24727        #include <errno.h>
24728        #include <string.h>
24729
24730 int
24731 main ()
24732 {
24733
24734        int result = 0;
24735        {
24736          if (setenv ("", "", 0) != -1)
24737            result |= 1;
24738          else if (errno != EINVAL)
24739            result |= 2;
24740        }
24741        {
24742          if (setenv ("a", "=", 1) != 0)
24743            result |= 4;
24744          else if (strcmp (getenv ("a"), "=") != 0)
24745            result |= 8;
24746        }
24747        return result;
24748
24749   ;
24750   return 0;
24751 }
24752 _ACEOF
24753 if ac_fn_c_try_run "$LINENO"; then :
24754   gl_cv_func_setenv_works=yes
24755 else
24756   gl_cv_func_setenv_works=no
24757 fi
24758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24759   conftest.$ac_objext conftest.beam conftest.$ac_ext
24760 fi
24761
24762 fi
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
24764 $as_echo "$gl_cv_func_setenv_works" >&6; }
24765     case "$gl_cv_func_setenv_works" in
24766       *yes) ;;
24767       *)
24768         REPLACE_SETENV=1
24769         ;;
24770     esac
24771   fi
24772
24773   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
24774
24775
24776
24777
24778
24779
24780
24781
24782   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
24783
24784   fi
24785
24786
24787
24788
24789
24790           GNULIB_SETENV=1
24791
24792
24793
24794
24795
24796 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
24797
24798
24799
24800
24801
24802
24803   if test $ac_cv_func_sigaction = yes; then
24804     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
24805 "
24806 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
24807
24808 cat >>confdefs.h <<_ACEOF
24809 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
24810 _ACEOF
24811
24812
24813 fi
24814
24815     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
24816       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
24817     fi
24818   else
24819     HAVE_SIGACTION=0
24820   fi
24821
24822   if test $HAVE_SIGACTION = 0; then
24823
24824
24825
24826
24827
24828
24829
24830
24831   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
24832
24833
24834
24835
24836
24837
24838
24839   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
24840 #include <signal.h>
24841
24842 "
24843 if test "x$ac_cv_type_siginfo_t" = xyes; then :
24844
24845 cat >>confdefs.h <<_ACEOF
24846 #define HAVE_SIGINFO_T 1
24847 _ACEOF
24848
24849
24850 fi
24851
24852   if test $ac_cv_type_siginfo_t = no; then
24853     HAVE_SIGINFO_T=0
24854   fi
24855
24856   fi
24857
24858
24859
24860
24861
24862           GNULIB_SIGACTION=1
24863
24864
24865
24866
24867
24868 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883      if test $gl_cv_have_include_next = yes; then
24884        gl_cv_next_signal_h='<'signal.h'>'
24885      else
24886        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
24887 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
24888 if ${gl_cv_next_signal_h+:} false; then :
24889   $as_echo_n "(cached) " >&6
24890 else
24891
24892
24893
24894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24895 /* end confdefs.h.  */
24896 #include <signal.h>
24897 _ACEOF
24898                 case "$host_os" in
24899     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24900     *)    gl_absname_cpp="$ac_cpp" ;;
24901   esac
24902
24903   case "$host_os" in
24904     mingw*)
24905                                           gl_dirsep_regex='[/\\]'
24906       ;;
24907     *)
24908       gl_dirsep_regex='\/'
24909       ;;
24910   esac
24911       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24912   gl_header_literal_regex=`echo 'signal.h' \
24913                            | sed -e "$gl_make_literal_regex_sed"`
24914   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24915       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24916       s|^/[^/]|//&|
24917       p
24918       q
24919     }'
24920
24921         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24922   sed -n "$gl_absolute_header_sed"`
24923
24924            gl_header=$gl_cv_absolute_signal_h
24925            gl_cv_next_signal_h='"'$gl_header'"'
24926
24927
24928 fi
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
24930 $as_echo "$gl_cv_next_signal_h" >&6; }
24931      fi
24932      NEXT_SIGNAL_H=$gl_cv_next_signal_h
24933
24934      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24935        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24936        gl_next_as_first_directive='<'signal.h'>'
24937      else
24938        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24939        gl_next_as_first_directive=$gl_cv_next_signal_h
24940      fi
24941      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
24942
24943
24944
24945
24946
24947 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
24948 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
24949   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
24950 #include <signal.h>
24951
24952 "
24953 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
24954
24955 else
24956   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
24957 fi
24958
24959
24960
24961
24962
24963
24964
24965   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
24966 #include <signal.h>
24967
24968 "
24969 if test "x$ac_cv_type_sighandler_t" = xyes; then :
24970
24971 else
24972   HAVE_SIGHANDLER_T=0
24973 fi
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983   if test $gl_cv_type_sigset_t = yes; then
24984     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24985 if test "x$ac_cv_func_sigprocmask" = xyes; then :
24986   gl_cv_func_sigprocmask=1
24987 fi
24988
24989   fi
24990   if test -z "$gl_cv_func_sigprocmask"; then
24991     HAVE_POSIX_SIGNALBLOCKING=0
24992   fi
24993
24994   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
24995
24996
24997
24998
24999
25000
25001
25002
25003   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
25004
25005     :
25006   fi
25007
25008
25009
25010
25011
25012           GNULIB_SIGPROCMASK=1
25013
25014
25015
25016
25017
25018 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
25019
25020
25021
25022
25023   for ac_header in stdint.h
25024 do :
25025   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25026 if test "x$ac_cv_header_stdint_h" = xyes; then :
25027   cat >>confdefs.h <<_ACEOF
25028 #define HAVE_STDINT_H 1
25029 _ACEOF
25030
25031 fi
25032
25033 done
25034
25035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
25036 $as_echo_n "checking for SIZE_MAX... " >&6; }
25037 if ${gl_cv_size_max+:} false; then :
25038   $as_echo_n "(cached) " >&6
25039 else
25040
25041     gl_cv_size_max=
25042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25043 /* end confdefs.h.  */
25044
25045 #include <limits.h>
25046 #if HAVE_STDINT_H
25047 #include <stdint.h>
25048 #endif
25049 #ifdef SIZE_MAX
25050 Found it
25051 #endif
25052
25053 _ACEOF
25054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25055   $EGREP "Found it" >/dev/null 2>&1; then :
25056   gl_cv_size_max=yes
25057 fi
25058 rm -f conftest*
25059
25060     if test -z "$gl_cv_size_max"; then
25061                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
25062 #include <limits.h>"; then :
25063
25064 else
25065   size_t_bits_minus_1=
25066 fi
25067
25068       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
25069
25070 else
25071   fits_in_uint=
25072 fi
25073
25074       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
25075         if test $fits_in_uint = 1; then
25076                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25077 /* end confdefs.h.  */
25078 #include <stddef.h>
25079                  extern size_t foo;
25080                  extern unsigned long foo;
25081
25082 int
25083 main ()
25084 {
25085
25086   ;
25087   return 0;
25088 }
25089 _ACEOF
25090 if ac_fn_c_try_compile "$LINENO"; then :
25091   fits_in_uint=0
25092 fi
25093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094         fi
25095                                 if test $fits_in_uint = 1; then
25096           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
25097         else
25098           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
25099         fi
25100       else
25101                 gl_cv_size_max='((size_t)~(size_t)0)'
25102       fi
25103     fi
25104
25105 fi
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
25107 $as_echo "$gl_cv_size_max" >&6; }
25108   if test "$gl_cv_size_max" != yes; then
25109
25110 cat >>confdefs.h <<_ACEOF
25111 #define SIZE_MAX $gl_cv_size_max
25112 _ACEOF
25113
25114   fi
25115
25116
25117
25118
25119   gl_cv_func_snprintf_usable=no
25120   for ac_func in snprintf
25121 do :
25122   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
25123 if test "x$ac_cv_func_snprintf" = xyes; then :
25124   cat >>confdefs.h <<_ACEOF
25125 #define HAVE_SNPRINTF 1
25126 _ACEOF
25127
25128 fi
25129 done
25130
25131   if test $ac_cv_func_snprintf = yes; then
25132
25133
25134
25135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
25136 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
25137 if ${gl_cv_func_snprintf_size1+:} false; then :
25138   $as_echo_n "(cached) " >&6
25139 else
25140
25141       if test "$cross_compiling" = yes; then :
25142   case "$host_os" in
25143                             # Guess yes on Android.
25144            linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
25145                             # Guess yes on native Windows.
25146            mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
25147            *)               gl_cv_func_snprintf_size1="guessing yes" ;;
25148          esac
25149
25150 else
25151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25152 /* end confdefs.h.  */
25153
25154 #include <stdio.h>
25155 #if HAVE_SNPRINTF
25156 # define my_snprintf snprintf
25157 #else
25158 # include <stdarg.h>
25159 static int my_snprintf (char *buf, int size, const char *format, ...)
25160 {
25161   va_list args;
25162   int ret;
25163   va_start (args, format);
25164   ret = vsnprintf (buf, size, format, args);
25165   va_end (args);
25166   return ret;
25167 }
25168 #endif
25169 int main()
25170 {
25171   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25172   my_snprintf (buf, 1, "%d", 12345);
25173   return buf[1] != 'E';
25174 }
25175 _ACEOF
25176 if ac_fn_c_try_run "$LINENO"; then :
25177   gl_cv_func_snprintf_size1=yes
25178 else
25179   gl_cv_func_snprintf_size1=no
25180 fi
25181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25182   conftest.$ac_objext conftest.beam conftest.$ac_ext
25183 fi
25184
25185
25186 fi
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
25188 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
25189
25190     case "$gl_cv_func_snprintf_size1" in
25191       *yes)
25192
25193         case "$gl_cv_func_snprintf_retval_c99" in
25194           *yes)
25195
25196
25197      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
25198 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
25199 if ${gl_cv_func_printf_positions+:} false; then :
25200   $as_echo_n "(cached) " >&6
25201 else
25202
25203       if test "$cross_compiling" = yes; then :
25204
25205          case "$host_os" in
25206            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
25207                             gl_cv_func_printf_positions="guessing no";;
25208            beos*)           gl_cv_func_printf_positions="guessing no";;
25209                             # Guess yes on Android.
25210            linux*-android*) gl_cv_func_printf_positions="guessing yes";;
25211                             # Guess no on native Windows.
25212            mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
25213            *)               gl_cv_func_printf_positions="guessing yes";;
25214          esac
25215
25216 else
25217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25218 /* end confdefs.h.  */
25219
25220 #include <stdio.h>
25221 #include <string.h>
25222 /* The string "%2$d %1$d", with dollar characters protected from the shell's
25223    dollar expansion (possibly an autoconf bug).  */
25224 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25225 static char buf[100];
25226 int main ()
25227 {
25228   sprintf (buf, format, 33, 55);
25229   return (strcmp (buf, "55 33") != 0);
25230 }
25231 _ACEOF
25232 if ac_fn_c_try_run "$LINENO"; then :
25233   gl_cv_func_printf_positions=yes
25234 else
25235   gl_cv_func_printf_positions=no
25236 fi
25237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25238   conftest.$ac_objext conftest.beam conftest.$ac_ext
25239 fi
25240
25241
25242 fi
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
25244 $as_echo "$gl_cv_func_printf_positions" >&6; }
25245
25246             case "$gl_cv_func_printf_positions" in
25247               *yes)
25248                 gl_cv_func_snprintf_usable=yes
25249                 ;;
25250             esac
25251             ;;
25252         esac
25253         ;;
25254     esac
25255   fi
25256   if test $gl_cv_func_snprintf_usable = no; then
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
25268
25269   if test $ac_cv_func_snprintf = yes; then
25270     REPLACE_SNPRINTF=1
25271   else
25272
25273     if test $ac_cv_have_decl_snprintf = yes; then
25274                         REPLACE_SNPRINTF=1
25275     fi
25276   fi
25277   :
25278
25279   fi
25280
25281   if test $ac_cv_have_decl_snprintf = no; then
25282     HAVE_DECL_SNPRINTF=0
25283   fi
25284
25285
25286
25287
25288
25289
25290           GNULIB_SNPRINTF=1
25291
25292
25293
25294
25295
25296 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
25297
25298
25299
25300
25301
25302 cat >>confdefs.h <<_ACEOF
25303 #define GNULIB_SNPRINTF 1
25304 _ACEOF
25305
25306
25307
25308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25309 $as_echo_n "checking for ssize_t... " >&6; }
25310 if ${gt_cv_ssize_t+:} false; then :
25311   $as_echo_n "(cached) " >&6
25312 else
25313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25314 /* end confdefs.h.  */
25315 #include <sys/types.h>
25316 int
25317 main ()
25318 {
25319 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25320             return !x;
25321   ;
25322   return 0;
25323 }
25324 _ACEOF
25325 if ac_fn_c_try_compile "$LINENO"; then :
25326   gt_cv_ssize_t=yes
25327 else
25328   gt_cv_ssize_t=no
25329 fi
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 fi
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25333 $as_echo "$gt_cv_ssize_t" >&6; }
25334   if test $gt_cv_ssize_t = no; then
25335
25336 $as_echo "#define ssize_t int" >>confdefs.h
25337
25338   fi
25339
25340
25341
25342
25343
25344   case "$host_os" in
25345     mingw*)
25346                   REPLACE_STAT=1
25347       ;;
25348     *)
25349                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25350 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25351 if ${gl_cv_func_stat_file_slash+:} false; then :
25352   $as_echo_n "(cached) " >&6
25353 else
25354   touch conftest.tmp
25355          # Assume that if we have lstat, we can also check symlinks.
25356          if test $ac_cv_func_lstat = yes; then
25357            ln -s conftest.tmp conftest.lnk
25358          fi
25359          if test "$cross_compiling" = yes; then :
25360   case "$host_os" in
25361                                # Guess yes on Linux systems.
25362               linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
25363                                # Guess yes on glibc systems.
25364               *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
25365                                # If we don't know, assume the worst.
25366               *)               gl_cv_func_stat_file_slash="guessing no" ;;
25367             esac
25368
25369 else
25370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h.  */
25372 #include <sys/stat.h>
25373
25374 int
25375 main ()
25376 {
25377 int result = 0;
25378                struct stat st;
25379                if (!stat ("conftest.tmp/", &st))
25380                  result |= 1;
25381 #if HAVE_LSTAT
25382                if (!stat ("conftest.lnk/", &st))
25383                  result |= 2;
25384 #endif
25385                return result;
25386
25387   ;
25388   return 0;
25389 }
25390 _ACEOF
25391 if ac_fn_c_try_run "$LINENO"; then :
25392   gl_cv_func_stat_file_slash=yes
25393 else
25394   gl_cv_func_stat_file_slash=no
25395 fi
25396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25397   conftest.$ac_objext conftest.beam conftest.$ac_ext
25398 fi
25399
25400          rm -f conftest.tmp conftest.lnk
25401 fi
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25403 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25404       case $gl_cv_func_stat_file_slash in
25405         *no)
25406           REPLACE_STAT=1
25407
25408 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25409 ;;
25410       esac
25411       case $host_os in
25412                 solaris*)
25413           REPLACE_FSTAT=1 ;;
25414       esac
25415       ;;
25416   esac
25417
25418   if test $REPLACE_STAT = 1; then
25419
25420
25421
25422
25423
25424
25425
25426
25427   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25428
25429     case "$host_os" in
25430       mingw*)
25431
25432
25433
25434
25435
25436
25437
25438
25439   gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
25440
25441         ;;
25442     esac
25443
25444
25445   :
25446
25447   fi
25448
25449
25450
25451
25452
25453           GNULIB_STAT=1
25454
25455
25456
25457
25458
25459 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
25460
25461
25462
25463
25464
25465
25466
25467   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
25468      #include <sys/stat.h>
25469 "
25470 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
25471
25472 cat >>confdefs.h <<_ACEOF
25473 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25474 _ACEOF
25475
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25477 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25478 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
25479   $as_echo_n "(cached) " >&6
25480 else
25481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25482 /* end confdefs.h.  */
25483
25484             #include <sys/types.h>
25485             #include <sys/stat.h>
25486             #if HAVE_SYS_TIME_H
25487             # include <sys/time.h>
25488             #endif
25489             #include <time.h>
25490             struct timespec ts;
25491             struct stat st;
25492
25493 int
25494 main ()
25495 {
25496
25497             st.st_atim = ts;
25498
25499   ;
25500   return 0;
25501 }
25502 _ACEOF
25503 if ac_fn_c_try_compile "$LINENO"; then :
25504   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25505 else
25506   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25507 fi
25508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25509 fi
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25511 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25512      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25513
25514 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25515
25516      fi
25517 else
25518   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
25519         #include <sys/stat.h>
25520 "
25521 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
25522
25523 cat >>confdefs.h <<_ACEOF
25524 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25525 _ACEOF
25526
25527
25528 else
25529   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25530            #include <sys/stat.h>
25531 "
25532 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
25533
25534 cat >>confdefs.h <<_ACEOF
25535 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25536 _ACEOF
25537
25538
25539 else
25540   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
25541               #include <sys/stat.h>
25542 "
25543 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
25544
25545 cat >>confdefs.h <<_ACEOF
25546 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25547 _ACEOF
25548
25549
25550 fi
25551
25552 fi
25553
25554 fi
25555
25556 fi
25557
25558
25559
25560
25561
25562   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
25563      #include <sys/stat.h>
25564 "
25565 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
25566
25567 cat >>confdefs.h <<_ACEOF
25568 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25569 _ACEOF
25570
25571
25572 else
25573   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25574         #include <sys/stat.h>
25575 "
25576 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
25577
25578 cat >>confdefs.h <<_ACEOF
25579 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25580 _ACEOF
25581
25582
25583 else
25584   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
25585           #include <sys/stat.h>
25586 "
25587 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
25588
25589 cat >>confdefs.h <<_ACEOF
25590 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25591 _ACEOF
25592
25593
25594 fi
25595
25596 fi
25597
25598 fi
25599
25600
25601
25602   STDARG_H=''
25603   NEXT_STDARG_H='<stdarg.h>'
25604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25605 $as_echo_n "checking for va_copy... " >&6; }
25606 if ${gl_cv_func_va_copy+:} false; then :
25607   $as_echo_n "(cached) " >&6
25608 else
25609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610 /* end confdefs.h.  */
25611 #include <stdarg.h>
25612 int
25613 main ()
25614 {
25615
25616 #ifndef va_copy
25617 void (*func) (va_list, va_list) = va_copy;
25618 #endif
25619
25620   ;
25621   return 0;
25622 }
25623 _ACEOF
25624 if ac_fn_c_try_compile "$LINENO"; then :
25625   gl_cv_func_va_copy=yes
25626 else
25627   gl_cv_func_va_copy=no
25628 fi
25629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630
25631 fi
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25633 $as_echo "$gl_cv_func_va_copy" >&6; }
25634   if test $gl_cv_func_va_copy = no; then
25635                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25636 /* end confdefs.h.  */
25637 #if defined _AIX && !defined __GNUC__
25638         AIX vaccine
25639        #endif
25640
25641 _ACEOF
25642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25643   $EGREP "vaccine" >/dev/null 2>&1; then :
25644   gl_aixcc=yes
25645 else
25646   gl_aixcc=no
25647 fi
25648 rm -f conftest*
25649
25650     if test $gl_aixcc = yes; then
25651             STDARG_H=stdarg.h
25652
25653
25654
25655
25656
25657
25658
25659
25660      if test $gl_cv_have_include_next = yes; then
25661        gl_cv_next_stdarg_h='<'stdarg.h'>'
25662      else
25663        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
25664 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
25665 if ${gl_cv_next_stdarg_h+:} false; then :
25666   $as_echo_n "(cached) " >&6
25667 else
25668
25669
25670
25671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25672 /* end confdefs.h.  */
25673 #include <stdarg.h>
25674 _ACEOF
25675                 case "$host_os" in
25676     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25677     *)    gl_absname_cpp="$ac_cpp" ;;
25678   esac
25679
25680   case "$host_os" in
25681     mingw*)
25682                                           gl_dirsep_regex='[/\\]'
25683       ;;
25684     *)
25685       gl_dirsep_regex='\/'
25686       ;;
25687   esac
25688       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25689   gl_header_literal_regex=`echo 'stdarg.h' \
25690                            | sed -e "$gl_make_literal_regex_sed"`
25691   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25692       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25693       s|^/[^/]|//&|
25694       p
25695       q
25696     }'
25697
25698         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25699   sed -n "$gl_absolute_header_sed"`
25700
25701            gl_header=$gl_cv_absolute_stdarg_h
25702            gl_cv_next_stdarg_h='"'$gl_header'"'
25703
25704
25705 fi
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
25707 $as_echo "$gl_cv_next_stdarg_h" >&6; }
25708      fi
25709      NEXT_STDARG_H=$gl_cv_next_stdarg_h
25710
25711      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25712        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25713        gl_next_as_first_directive='<'stdarg.h'>'
25714      else
25715        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25716        gl_next_as_first_directive=$gl_cv_next_stdarg_h
25717      fi
25718      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
25719
25720
25721
25722
25723             if test "$gl_cv_next_stdarg_h" = '""'; then
25724         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
25725         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
25726       fi
25727     else
25728
25729   saved_as_echo_n="$as_echo_n"
25730   as_echo_n=':'
25731   if ${gl_cv_func___va_copy+:} false; then :
25732   $as_echo_n "(cached) " >&6
25733 else
25734
25735         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736 /* end confdefs.h.  */
25737 #include <stdarg.h>
25738 int
25739 main ()
25740 {
25741
25742 #ifndef __va_copy
25743 error, bail out
25744 #endif
25745
25746   ;
25747   return 0;
25748 }
25749 _ACEOF
25750 if ac_fn_c_try_compile "$LINENO"; then :
25751   gl_cv_func___va_copy=yes
25752 else
25753   gl_cv_func___va_copy=no
25754 fi
25755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25756 fi
25757
25758   as_echo_n="$saved_as_echo_n"
25759
25760       if test $gl_cv_func___va_copy = yes; then
25761
25762 $as_echo "#define va_copy __va_copy" >>confdefs.h
25763
25764       else
25765
25766
25767 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
25768
25769       fi
25770     fi
25771   fi
25772
25773    if test -n "$STDARG_H"; then
25774   GL_GENERATE_STDARG_H_TRUE=
25775   GL_GENERATE_STDARG_H_FALSE='#'
25776 else
25777   GL_GENERATE_STDARG_H_TRUE='#'
25778   GL_GENERATE_STDARG_H_FALSE=
25779 fi
25780
25781
25782
25783
25784
25785
25786   # Define two additional variables used in the Makefile substitution.
25787
25788   if test "$ac_cv_header_stdbool_h" = yes; then
25789     STDBOOL_H=''
25790   else
25791     STDBOOL_H='stdbool.h'
25792   fi
25793
25794    if test -n "$STDBOOL_H"; then
25795   GL_GENERATE_STDBOOL_H_TRUE=
25796   GL_GENERATE_STDBOOL_H_FALSE='#'
25797 else
25798   GL_GENERATE_STDBOOL_H_TRUE='#'
25799   GL_GENERATE_STDBOOL_H_FALSE=
25800 fi
25801
25802
25803   if test "$ac_cv_type__Bool" = yes; then
25804     HAVE__BOOL=1
25805   else
25806     HAVE__BOOL=0
25807   fi
25808
25809
25810
25811
25812
25813   STDDEF_H=
25814
25815       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
25816 $as_echo_n "checking for good max_align_t... " >&6; }
25817 if ${gl_cv_type_max_align_t+:} false; then :
25818   $as_echo_n "(cached) " >&6
25819 else
25820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25821 /* end confdefs.h.  */
25822 #include <stddef.h>
25823             unsigned int s = sizeof (max_align_t);
25824             #if defined __GNUC__ || defined __IBM__ALIGNOF__
25825             int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
25826             int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
25827             #endif
25828
25829 int
25830 main ()
25831 {
25832
25833   ;
25834   return 0;
25835 }
25836 _ACEOF
25837 if ac_fn_c_try_compile "$LINENO"; then :
25838   gl_cv_type_max_align_t=yes
25839 else
25840   gl_cv_type_max_align_t=no
25841 fi
25842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25843
25844 fi
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
25846 $as_echo "$gl_cv_type_max_align_t" >&6; }
25847   if test $gl_cv_type_max_align_t = no; then
25848     HAVE_MAX_ALIGN_T=0
25849     STDDEF_H=stddef.h
25850   fi
25851
25852   if test $gt_cv_c_wchar_t = no; then
25853     HAVE_WCHAR_T=0
25854     STDDEF_H=stddef.h
25855   fi
25856
25857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25858 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25859 if ${gl_cv_decl_null_works+:} false; then :
25860   $as_echo_n "(cached) " >&6
25861 else
25862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h.  */
25864 #include <stddef.h>
25865       int test[2 * (sizeof NULL == sizeof (void *)) -1];
25866
25867 int
25868 main ()
25869 {
25870
25871   ;
25872   return 0;
25873 }
25874 _ACEOF
25875 if ac_fn_c_try_compile "$LINENO"; then :
25876   gl_cv_decl_null_works=yes
25877 else
25878   gl_cv_decl_null_works=no
25879 fi
25880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25881 fi
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25883 $as_echo "$gl_cv_decl_null_works" >&6; }
25884   if test $gl_cv_decl_null_works = no; then
25885     REPLACE_NULL=1
25886     STDDEF_H=stddef.h
25887   fi
25888
25889
25890    if test -n "$STDDEF_H"; then
25891   GL_GENERATE_STDDEF_H_TRUE=
25892   GL_GENERATE_STDDEF_H_FALSE='#'
25893 else
25894   GL_GENERATE_STDDEF_H_TRUE='#'
25895   GL_GENERATE_STDDEF_H_FALSE=
25896 fi
25897
25898   if test -n "$STDDEF_H"; then
25899
25900
25901
25902
25903
25904
25905
25906
25907      if test $gl_cv_have_include_next = yes; then
25908        gl_cv_next_stddef_h='<'stddef.h'>'
25909      else
25910        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25911 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25912 if ${gl_cv_next_stddef_h+:} false; then :
25913   $as_echo_n "(cached) " >&6
25914 else
25915
25916
25917
25918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25919 /* end confdefs.h.  */
25920 #include <stddef.h>
25921 _ACEOF
25922                 case "$host_os" in
25923     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25924     *)    gl_absname_cpp="$ac_cpp" ;;
25925   esac
25926
25927   case "$host_os" in
25928     mingw*)
25929                                           gl_dirsep_regex='[/\\]'
25930       ;;
25931     *)
25932       gl_dirsep_regex='\/'
25933       ;;
25934   esac
25935       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25936   gl_header_literal_regex=`echo 'stddef.h' \
25937                            | sed -e "$gl_make_literal_regex_sed"`
25938   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25939       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25940       s|^/[^/]|//&|
25941       p
25942       q
25943     }'
25944
25945         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25946   sed -n "$gl_absolute_header_sed"`
25947
25948            gl_header=$gl_cv_absolute_stddef_h
25949            gl_cv_next_stddef_h='"'$gl_header'"'
25950
25951
25952 fi
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25954 $as_echo "$gl_cv_next_stddef_h" >&6; }
25955      fi
25956      NEXT_STDDEF_H=$gl_cv_next_stddef_h
25957
25958      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25959        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25960        gl_next_as_first_directive='<'stddef.h'>'
25961      else
25962        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25963        gl_next_as_first_directive=$gl_cv_next_stddef_h
25964      fi
25965      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
25966
25967
25968
25969
25970   fi
25971
25972
25973
25974
25975   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986      if test $gl_cv_have_include_next = yes; then
25987        gl_cv_next_stdio_h='<'stdio.h'>'
25988      else
25989        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25990 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25991 if ${gl_cv_next_stdio_h+:} false; then :
25992   $as_echo_n "(cached) " >&6
25993 else
25994
25995
25996
25997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25998 /* end confdefs.h.  */
25999 #include <stdio.h>
26000 _ACEOF
26001                 case "$host_os" in
26002     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26003     *)    gl_absname_cpp="$ac_cpp" ;;
26004   esac
26005
26006   case "$host_os" in
26007     mingw*)
26008                                           gl_dirsep_regex='[/\\]'
26009       ;;
26010     *)
26011       gl_dirsep_regex='\/'
26012       ;;
26013   esac
26014       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26015   gl_header_literal_regex=`echo 'stdio.h' \
26016                            | sed -e "$gl_make_literal_regex_sed"`
26017   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26018       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26019       s|^/[^/]|//&|
26020       p
26021       q
26022     }'
26023
26024         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26025   sed -n "$gl_absolute_header_sed"`
26026
26027            gl_header=$gl_cv_absolute_stdio_h
26028            gl_cv_next_stdio_h='"'$gl_header'"'
26029
26030
26031 fi
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26033 $as_echo "$gl_cv_next_stdio_h" >&6; }
26034      fi
26035      NEXT_STDIO_H=$gl_cv_next_stdio_h
26036
26037      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26038        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26039        gl_next_as_first_directive='<'stdio.h'>'
26040      else
26041        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26042        gl_next_as_first_directive=$gl_cv_next_stdio_h
26043      fi
26044      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26045
26046
26047
26048
26049
26050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
26051 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
26052 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
26053   $as_echo_n "(cached) " >&6
26054 else
26055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056 /* end confdefs.h.  */
26057
26058        #define __STDC_FORMAT_MACROS 1
26059        #include <stdio.h>
26060        #include <inttypes.h>
26061        /* For non-mingw systems, compilation will trivially succeed.
26062           For mingw, compilation will succeed for older mingw (system
26063           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
26064        #if (defined _WIN32 && ! defined __CYGWIN__) && \
26065          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
26066        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
26067        #endif
26068
26069 int
26070 main ()
26071 {
26072
26073   ;
26074   return 0;
26075 }
26076 _ACEOF
26077 if ac_fn_c_try_compile "$LINENO"; then :
26078   gl_cv_func_printf_attribute_flavor=system
26079 else
26080   gl_cv_func_printf_attribute_flavor=gnu
26081 fi
26082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26083 fi
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
26085 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
26086   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
26087
26088 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
26089
26090   fi
26091
26092       GNULIB_FSCANF=1
26093
26094
26095 cat >>confdefs.h <<_ACEOF
26096 #define GNULIB_FSCANF 1
26097 _ACEOF
26098
26099
26100   GNULIB_SCANF=1
26101
26102
26103 cat >>confdefs.h <<_ACEOF
26104 #define GNULIB_SCANF 1
26105 _ACEOF
26106
26107
26108   GNULIB_FGETC=1
26109   GNULIB_GETC=1
26110   GNULIB_GETCHAR=1
26111   GNULIB_FGETS=1
26112   GNULIB_FREAD=1
26113
26114
26115       GNULIB_FPRINTF=1
26116   GNULIB_PRINTF=1
26117   GNULIB_VFPRINTF=1
26118   GNULIB_VPRINTF=1
26119   GNULIB_FPUTC=1
26120   GNULIB_PUTC=1
26121   GNULIB_PUTCHAR=1
26122   GNULIB_FPUTS=1
26123   GNULIB_PUTS=1
26124   GNULIB_FWRITE=1
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142      if test $gl_cv_have_include_next = yes; then
26143        gl_cv_next_stdlib_h='<'stdlib.h'>'
26144      else
26145        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26146 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26147 if ${gl_cv_next_stdlib_h+:} false; then :
26148   $as_echo_n "(cached) " >&6
26149 else
26150
26151
26152
26153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h.  */
26155 #include <stdlib.h>
26156 _ACEOF
26157                 case "$host_os" in
26158     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26159     *)    gl_absname_cpp="$ac_cpp" ;;
26160   esac
26161
26162   case "$host_os" in
26163     mingw*)
26164                                           gl_dirsep_regex='[/\\]'
26165       ;;
26166     *)
26167       gl_dirsep_regex='\/'
26168       ;;
26169   esac
26170       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26171   gl_header_literal_regex=`echo 'stdlib.h' \
26172                            | sed -e "$gl_make_literal_regex_sed"`
26173   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26174       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26175       s|^/[^/]|//&|
26176       p
26177       q
26178     }'
26179
26180         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26181   sed -n "$gl_absolute_header_sed"`
26182
26183            gl_header=$gl_cv_absolute_stdlib_h
26184            gl_cv_next_stdlib_h='"'$gl_header'"'
26185
26186
26187 fi
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26189 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26190      fi
26191      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26192
26193      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26194        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26195        gl_next_as_first_directive='<'stdlib.h'>'
26196      else
26197        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26198        gl_next_as_first_directive=$gl_cv_next_stdlib_h
26199      fi
26200      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
26217 $as_echo_n "checking for working strerror function... " >&6; }
26218 if ${gl_cv_func_working_strerror+:} false; then :
26219   $as_echo_n "(cached) " >&6
26220 else
26221   if test "$cross_compiling" = yes; then :
26222   case "$host_os" in
26223                           # Guess yes on glibc systems.
26224            *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
26225                           # If we don't know, assume the worst.
26226            *)             gl_cv_func_working_strerror="guessing no" ;;
26227          esac
26228
26229 else
26230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26231 /* end confdefs.h.  */
26232 #include <string.h>
26233
26234 int
26235 main ()
26236 {
26237 if (!*strerror (-2)) return 1;
26238   ;
26239   return 0;
26240 }
26241 _ACEOF
26242 if ac_fn_c_try_run "$LINENO"; then :
26243   gl_cv_func_working_strerror=yes
26244 else
26245   gl_cv_func_working_strerror=no
26246 fi
26247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26248   conftest.$ac_objext conftest.beam conftest.$ac_ext
26249 fi
26250
26251
26252 fi
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
26254 $as_echo "$gl_cv_func_working_strerror" >&6; }
26255     case "$gl_cv_func_working_strerror" in
26256       *yes) ;;
26257       *)
26258                         REPLACE_STRERROR=1
26259         ;;
26260     esac
26261
26262   else
26263             REPLACE_STRERROR=1
26264   fi
26265
26266   if test $REPLACE_STRERROR = 1; then
26267
26268
26269
26270
26271
26272
26273
26274
26275   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
26276
26277   fi
26278
26279
26280 cat >>confdefs.h <<_ACEOF
26281 #define GNULIB_STRERROR 1
26282 _ACEOF
26283
26284
26285
26286
26287
26288
26289
26290           GNULIB_STRERROR=1
26291
26292
26293
26294
26295
26296 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
26297
26298
26299
26300
26301
26302   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
26303
26304
26305
26306
26307
26308
26309
26310
26311   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
26312
26313
26314
26315
26316
26317   if test $ac_cv_header_sys_socket_h != yes; then
26318                     for ac_header in winsock2.h
26319 do :
26320   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26321 if test "x$ac_cv_header_winsock2_h" = xyes; then :
26322   cat >>confdefs.h <<_ACEOF
26323 #define HAVE_WINSOCK2_H 1
26324 _ACEOF
26325
26326 fi
26327
26328 done
26329
26330   fi
26331   if test "$ac_cv_header_winsock2_h" = yes; then
26332     HAVE_WINSOCK2_H=1
26333     UNISTD_H_HAVE_WINSOCK2_H=1
26334     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26335   else
26336     HAVE_WINSOCK2_H=0
26337   fi
26338
26339
26340   fi
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350   if test $ac_cv_have_decl_strndup = no; then
26351     HAVE_DECL_STRNDUP=0
26352   fi
26353
26354   if test $ac_cv_func_strndup = yes; then
26355     HAVE_STRNDUP=1
26356     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
26357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
26358 $as_echo_n "checking for working strndup... " >&6; }
26359 if ${gl_cv_func_strndup_works+:} false; then :
26360   $as_echo_n "(cached) " >&6
26361 else
26362   if test "$cross_compiling" = yes; then :
26363
26364           case $host_os in
26365             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
26366             *)               gl_cv_func_strndup_works="guessing yes";;
26367           esac
26368
26369 else
26370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26371 /* end confdefs.h.  */
26372
26373          #include <string.h>
26374                            #include <stdlib.h>
26375 int
26376 main ()
26377 {
26378
26379 #if !HAVE_DECL_STRNDUP
26380   extern
26381   #ifdef __cplusplus
26382   "C"
26383   #endif
26384   char *strndup (const char *, size_t);
26385 #endif
26386   int result;
26387   char *s;
26388   s = strndup ("some longer string", 15);
26389   free (s);
26390   s = strndup ("shorter string", 13);
26391   result = s[13] != '\0';
26392   free (s);
26393   return result;
26394   ;
26395   return 0;
26396 }
26397 _ACEOF
26398 if ac_fn_c_try_run "$LINENO"; then :
26399   gl_cv_func_strndup_works=yes
26400 else
26401   gl_cv_func_strndup_works=no
26402 fi
26403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26404   conftest.$ac_objext conftest.beam conftest.$ac_ext
26405 fi
26406
26407 fi
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
26409 $as_echo "$gl_cv_func_strndup_works" >&6; }
26410     case $gl_cv_func_strndup_works in
26411       *no) REPLACE_STRNDUP=1 ;;
26412     esac
26413   else
26414     HAVE_STRNDUP=0
26415   fi
26416
26417   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
26418
26419
26420
26421
26422
26423
26424
26425
26426   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
26427
26428   fi
26429
26430
26431
26432
26433
26434           GNULIB_STRNDUP=1
26435
26436
26437
26438
26439
26440 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450   if test $ac_cv_have_decl_strnlen = no; then
26451     HAVE_DECL_STRNLEN=0
26452   else
26453
26454          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
26455 $as_echo_n "checking for working strnlen... " >&6; }
26456 if ${ac_cv_func_strnlen_working+:} false; then :
26457   $as_echo_n "(cached) " >&6
26458 else
26459   if test "$cross_compiling" = yes; then :
26460   # Guess no on AIX systems, yes otherwise.
26461                 case "$host_os" in
26462                   aix*) ac_cv_func_strnlen_working=no;;
26463                   *)    ac_cv_func_strnlen_working=yes;;
26464                 esac
26465 else
26466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26467 /* end confdefs.h.  */
26468 $ac_includes_default
26469 int
26470 main ()
26471 {
26472
26473 #define S "foobar"
26474 #define S_LEN (sizeof S - 1)
26475
26476   /* At least one implementation is buggy: that of AIX 4.3 would
26477      give strnlen (S, 1) == 3.  */
26478
26479   int i;
26480   for (i = 0; i < S_LEN + 1; ++i)
26481     {
26482       int expected = i <= S_LEN ? i : S_LEN;
26483       if (strnlen (S, i) != expected)
26484         return 1;
26485     }
26486   return 0;
26487
26488   ;
26489   return 0;
26490 }
26491 _ACEOF
26492 if ac_fn_c_try_run "$LINENO"; then :
26493   ac_cv_func_strnlen_working=yes
26494 else
26495   ac_cv_func_strnlen_working=no
26496 fi
26497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26498   conftest.$ac_objext conftest.beam conftest.$ac_ext
26499 fi
26500
26501 fi
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
26503 $as_echo "$ac_cv_func_strnlen_working" >&6; }
26504 test $ac_cv_func_strnlen_working = no && :
26505
26506
26507     if test $ac_cv_func_strnlen_working = no; then
26508       REPLACE_STRNLEN=1
26509     fi
26510   fi
26511
26512   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
26513
26514
26515
26516
26517
26518
26519
26520
26521   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
26522
26523     :
26524   fi
26525
26526
26527
26528
26529
26530           GNULIB_STRNLEN=1
26531
26532
26533
26534
26535
26536 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546   if test $ac_cv_have_decl_strsignal = no; then
26547     HAVE_DECL_STRSIGNAL=0
26548   fi
26549
26550   for ac_func in strsignal
26551 do :
26552   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
26553 if test "x$ac_cv_func_strsignal" = xyes; then :
26554   cat >>confdefs.h <<_ACEOF
26555 #define HAVE_STRSIGNAL 1
26556 _ACEOF
26557
26558 fi
26559 done
26560
26561   if test $ac_cv_func_strsignal = yes; then
26562     HAVE_STRSIGNAL=1
26563             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
26564 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
26565 if ${gl_cv_func_working_strsignal+:} false; then :
26566   $as_echo_n "(cached) " >&6
26567 else
26568   if test "$cross_compiling" = yes; then :
26569   case "$host_os" in
26570             solaris* | aix*) gl_cv_func_working_strsignal=no;;
26571             *)               gl_cv_func_working_strsignal="guessing yes";;
26572           esac
26573 else
26574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26575 /* end confdefs.h.  */
26576 #include <string.h>
26577 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
26578
26579 int
26580 main ()
26581 {
26582 int result = 0;
26583               char *s = strsignal (-1);
26584               if (s == (char *) 0)
26585                 result |= 1;
26586               if (s == (char *) -1)
26587                 result |= 2;
26588               return result;
26589
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 if ac_fn_c_try_run "$LINENO"; then :
26595   gl_cv_func_working_strsignal=yes
26596 else
26597   gl_cv_func_working_strsignal=no
26598 fi
26599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26600   conftest.$ac_objext conftest.beam conftest.$ac_ext
26601 fi
26602
26603 fi
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
26605 $as_echo "$gl_cv_func_working_strsignal" >&6; }
26606     if test "$gl_cv_func_working_strsignal" = no; then
26607       REPLACE_STRSIGNAL=1
26608     fi
26609   else
26610     HAVE_STRSIGNAL=0
26611   fi
26612
26613   if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
26614
26615
26616
26617
26618
26619
26620
26621
26622   gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
26623
26624
26625
26626
26627   ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
26628 "
26629 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
26630   ac_have_decl=1
26631 else
26632   ac_have_decl=0
26633 fi
26634
26635 cat >>confdefs.h <<_ACEOF
26636 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
26637 _ACEOF
26638
26639
26640   fi
26641
26642
26643
26644
26645
26646           GNULIB_STRSIGNAL=1
26647
26648
26649
26650
26651
26652 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672      if test $gl_cv_have_include_next = yes; then
26673        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26674      else
26675        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26676 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26677 if ${gl_cv_next_sys_stat_h+:} false; then :
26678   $as_echo_n "(cached) " >&6
26679 else
26680
26681              if test $ac_cv_header_sys_stat_h = yes; then
26682
26683
26684
26685
26686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26687 /* end confdefs.h.  */
26688 #include <sys/stat.h>
26689 _ACEOF
26690                 case "$host_os" in
26691     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26692     *)    gl_absname_cpp="$ac_cpp" ;;
26693   esac
26694
26695   case "$host_os" in
26696     mingw*)
26697                                           gl_dirsep_regex='[/\\]'
26698       ;;
26699     *)
26700       gl_dirsep_regex='\/'
26701       ;;
26702   esac
26703       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26704   gl_header_literal_regex=`echo 'sys/stat.h' \
26705                            | sed -e "$gl_make_literal_regex_sed"`
26706   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26707       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26708       s|^/[^/]|//&|
26709       p
26710       q
26711     }'
26712
26713         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26714   sed -n "$gl_absolute_header_sed"`
26715
26716            gl_header=$gl_cv_absolute_sys_stat_h
26717            gl_cv_next_sys_stat_h='"'$gl_header'"'
26718           else
26719                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26720              fi
26721
26722
26723 fi
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26725 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26726      fi
26727      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
26728
26729      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26730        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26731        gl_next_as_first_directive='<'sys/stat.h'>'
26732      else
26733        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26734        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
26735      fi
26736      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
26737
26738
26739
26740
26741
26742
26743
26744
26745     WINDOWS_STAT_TIMESPEC=0
26746
26747
26748
26749
26750
26751
26752
26753
26754       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26755      #include <sys/stat.h>
26756 "
26757 if test "x$ac_cv_type_nlink_t" = xyes; then :
26758
26759 else
26760
26761 $as_echo "#define nlink_t int" >>confdefs.h
26762
26763 fi
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789      if test $gl_cv_have_include_next = yes; then
26790        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
26791      else
26792        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
26793 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
26794 if ${gl_cv_next_sys_wait_h+:} false; then :
26795   $as_echo_n "(cached) " >&6
26796 else
26797
26798              if test $ac_cv_header_sys_wait_h = yes; then
26799
26800
26801
26802
26803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26804 /* end confdefs.h.  */
26805 #include <sys/wait.h>
26806 _ACEOF
26807                 case "$host_os" in
26808     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26809     *)    gl_absname_cpp="$ac_cpp" ;;
26810   esac
26811
26812   case "$host_os" in
26813     mingw*)
26814                                           gl_dirsep_regex='[/\\]'
26815       ;;
26816     *)
26817       gl_dirsep_regex='\/'
26818       ;;
26819   esac
26820       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26821   gl_header_literal_regex=`echo 'sys/wait.h' \
26822                            | sed -e "$gl_make_literal_regex_sed"`
26823   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26824       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26825       s|^/[^/]|//&|
26826       p
26827       q
26828     }'
26829
26830         gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26831   sed -n "$gl_absolute_header_sed"`
26832
26833            gl_header=$gl_cv_absolute_sys_wait_h
26834            gl_cv_next_sys_wait_h='"'$gl_header'"'
26835           else
26836                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
26837              fi
26838
26839
26840 fi
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
26842 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
26843      fi
26844      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
26845
26846      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26847        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26848        gl_next_as_first_directive='<'sys/wait.h'>'
26849      else
26850        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26851        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
26852      fi
26853      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868   :
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893      if test $gl_cv_have_include_next = yes; then
26894        gl_cv_next_unistd_h='<'unistd.h'>'
26895      else
26896        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26897 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26898 if ${gl_cv_next_unistd_h+:} false; then :
26899   $as_echo_n "(cached) " >&6
26900 else
26901
26902              if test $ac_cv_header_unistd_h = yes; then
26903
26904
26905
26906
26907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h.  */
26909 #include <unistd.h>
26910 _ACEOF
26911                 case "$host_os" in
26912     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26913     *)    gl_absname_cpp="$ac_cpp" ;;
26914   esac
26915
26916   case "$host_os" in
26917     mingw*)
26918                                           gl_dirsep_regex='[/\\]'
26919       ;;
26920     *)
26921       gl_dirsep_regex='\/'
26922       ;;
26923   esac
26924       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26925   gl_header_literal_regex=`echo 'unistd.h' \
26926                            | sed -e "$gl_make_literal_regex_sed"`
26927   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26928       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26929       s|^/[^/]|//&|
26930       p
26931       q
26932     }'
26933
26934         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26935   sed -n "$gl_absolute_header_sed"`
26936
26937            gl_header=$gl_cv_absolute_unistd_h
26938            gl_cv_next_unistd_h='"'$gl_header'"'
26939           else
26940                gl_cv_next_unistd_h='<'unistd.h'>'
26941              fi
26942
26943
26944 fi
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26946 $as_echo "$gl_cv_next_unistd_h" >&6; }
26947      fi
26948      NEXT_UNISTD_H=$gl_cv_next_unistd_h
26949
26950      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26951        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26952        gl_next_as_first_directive='<'unistd.h'>'
26953      else
26954        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26955        gl_next_as_first_directive=$gl_cv_next_unistd_h
26956      fi
26957      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
26958
26959
26960
26961
26962   if test $ac_cv_header_unistd_h = yes; then
26963     HAVE_UNISTD_H=1
26964   else
26965     HAVE_UNISTD_H=0
26966   fi
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980   if test $ac_cv_have_decl_unsetenv = no; then
26981     HAVE_DECL_UNSETENV=0
26982   fi
26983   for ac_func in unsetenv
26984 do :
26985   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
26986 if test "x$ac_cv_func_unsetenv" = xyes; then :
26987   cat >>confdefs.h <<_ACEOF
26988 #define HAVE_UNSETENV 1
26989 _ACEOF
26990
26991 fi
26992 done
26993
26994   if test $ac_cv_func_unsetenv = no; then
26995     HAVE_UNSETENV=0
26996   else
26997     HAVE_UNSETENV=1
26998         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
26999 $as_echo_n "checking for unsetenv() return type... " >&6; }
27000 if ${gt_cv_func_unsetenv_ret+:} false; then :
27001   $as_echo_n "(cached) " >&6
27002 else
27003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27004 /* end confdefs.h.  */
27005
27006 #undef _BSD
27007 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27008 #include <stdlib.h>
27009 extern
27010 #ifdef __cplusplus
27011 "C"
27012 #endif
27013 int unsetenv (const char *name);
27014
27015 int
27016 main ()
27017 {
27018
27019   ;
27020   return 0;
27021 }
27022 _ACEOF
27023 if ac_fn_c_try_compile "$LINENO"; then :
27024   gt_cv_func_unsetenv_ret='int'
27025 else
27026   gt_cv_func_unsetenv_ret='void'
27027 fi
27028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27029 fi
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27031 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27032     if test $gt_cv_func_unsetenv_ret = 'void'; then
27033
27034 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27035
27036       REPLACE_UNSETENV=1
27037     fi
27038
27039                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27040 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27041 if ${gl_cv_func_unsetenv_works+:} false; then :
27042   $as_echo_n "(cached) " >&6
27043 else
27044   if test "$cross_compiling" = yes; then :
27045   case "$host_os" in
27046                  # Guess yes on glibc systems.
27047          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27048                  # If we don't know, assume the worst.
27049          *)      gl_cv_func_unsetenv_works="guessing no" ;;
27050        esac
27051
27052 else
27053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27054 /* end confdefs.h.  */
27055
27056        #include <stdlib.h>
27057        #include <errno.h>
27058        extern char **environ;
27059
27060 int
27061 main ()
27062 {
27063
27064        char entry1[] = "a=1";
27065        char entry2[] = "b=2";
27066        char *env[] = { entry1, entry2, NULL };
27067        if (putenv ((char *) "a=1")) return 1;
27068        if (putenv (entry2)) return 2;
27069        entry2[0] = 'a';
27070        unsetenv ("a");
27071        if (getenv ("a")) return 3;
27072        if (!unsetenv ("") || errno != EINVAL) return 4;
27073        entry2[0] = 'b';
27074        environ = env;
27075        if (!getenv ("a")) return 5;
27076        entry2[0] = 'a';
27077        unsetenv ("a");
27078        if (getenv ("a")) return 6;
27079
27080   ;
27081   return 0;
27082 }
27083 _ACEOF
27084 if ac_fn_c_try_run "$LINENO"; then :
27085   gl_cv_func_unsetenv_works=yes
27086 else
27087   gl_cv_func_unsetenv_works=no
27088 fi
27089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27090   conftest.$ac_objext conftest.beam conftest.$ac_ext
27091 fi
27092
27093 fi
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27095 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27096     case "$gl_cv_func_unsetenv_works" in
27097       *yes) ;;
27098       *)
27099         REPLACE_UNSETENV=1
27100         ;;
27101     esac
27102   fi
27103
27104   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27105
27106
27107
27108
27109
27110
27111
27112
27113   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27114
27115
27116
27117
27118
27119   fi
27120
27121
27122
27123
27124
27125           GNULIB_UNSETENV=1
27126
27127
27128
27129
27130
27131 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
27132
27133
27134
27135
27136
27137   if test $ac_cv_func_vasnprintf = no; then
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
27179
27180   if test $ac_cv_func_vasnprintf = yes; then
27181
27182 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
27183
27184   fi
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
27197 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
27198
27199 else
27200
27201 $as_echo "#define ptrdiff_t long" >>confdefs.h
27202
27203
27204 fi
27205
27206
27207
27208
27209
27210
27211
27212   fi
27213
27214
27215   for ac_func in vasprintf
27216 do :
27217   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
27218 if test "x$ac_cv_func_vasprintf" = xyes; then :
27219   cat >>confdefs.h <<_ACEOF
27220 #define HAVE_VASPRINTF 1
27221 _ACEOF
27222
27223 fi
27224 done
27225
27226   if test $ac_cv_func_vasprintf = no; then
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
27247
27248
27249   if test $ac_cv_func_vasprintf = yes; then
27250     REPLACE_VASPRINTF=1
27251   else
27252     HAVE_VASPRINTF=0
27253   fi
27254
27255
27256
27257
27258
27259
27260
27261
27262   fi
27263
27264
27265
27266
27267
27268
27269           GNULIB_VASPRINTF=1
27270
27271
27272
27273
27274
27275 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
27276
27277
27278
27279
27280
27281   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
27282
27283
27284
27285   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
27286
27287
27288
27289   HAVE_WAITPID=1
27290   case $host_os in
27291     mingw*) HAVE_WAITPID=0 ;;
27292   esac
27293
27294   if test $HAVE_WAITPID = 0; then
27295
27296
27297
27298
27299
27300
27301
27302
27303   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
27304
27305   fi
27306
27307
27308
27309
27310
27311           GNULIB_WAITPID=1
27312
27313
27314
27315
27316
27317 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333      if test $gl_cv_have_include_next = yes; then
27334        gl_cv_next_wchar_h='<'wchar.h'>'
27335      else
27336        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
27337 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
27338 if ${gl_cv_next_wchar_h+:} false; then :
27339   $as_echo_n "(cached) " >&6
27340 else
27341
27342              if test $ac_cv_header_wchar_h = yes; then
27343
27344
27345
27346
27347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27348 /* end confdefs.h.  */
27349 #include <wchar.h>
27350 _ACEOF
27351                 case "$host_os" in
27352     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27353     *)    gl_absname_cpp="$ac_cpp" ;;
27354   esac
27355
27356   case "$host_os" in
27357     mingw*)
27358                                           gl_dirsep_regex='[/\\]'
27359       ;;
27360     *)
27361       gl_dirsep_regex='\/'
27362       ;;
27363   esac
27364       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27365   gl_header_literal_regex=`echo 'wchar.h' \
27366                            | sed -e "$gl_make_literal_regex_sed"`
27367   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27368       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27369       s|^/[^/]|//&|
27370       p
27371       q
27372     }'
27373
27374         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27375   sed -n "$gl_absolute_header_sed"`
27376
27377            gl_header=$gl_cv_absolute_wchar_h
27378            gl_cv_next_wchar_h='"'$gl_header'"'
27379           else
27380                gl_cv_next_wchar_h='<'wchar.h'>'
27381              fi
27382
27383
27384 fi
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
27386 $as_echo "$gl_cv_next_wchar_h" >&6; }
27387      fi
27388      NEXT_WCHAR_H=$gl_cv_next_wchar_h
27389
27390      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27391        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27392        gl_next_as_first_directive='<'wchar.h'>'
27393      else
27394        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27395        gl_next_as_first_directive=$gl_cv_next_wchar_h
27396      fi
27397      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
27398
27399
27400
27401
27402   if test $ac_cv_header_wchar_h = yes; then
27403     HAVE_WCHAR_H=1
27404   else
27405     HAVE_WCHAR_H=0
27406   fi
27407
27408
27409
27410
27411
27412   if test $gt_cv_c_wint_t = yes; then
27413     HAVE_WINT_T=1
27414   else
27415     HAVE_WINT_T=0
27416   fi
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27430       REPLACE_WRITE=1
27431     fi
27432
27433
27434
27435
27436   if test $REPLACE_WRITE = 1; then
27437
27438
27439
27440
27441
27442
27443
27444
27445   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
27446
27447     :
27448   fi
27449
27450
27451
27452
27453
27454           GNULIB_WRITE=1
27455
27456
27457
27458
27459
27460 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
27461
27462
27463
27464   :
27465
27466
27467   for ac_header in stdint.h
27468 do :
27469   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
27470 if test "x$ac_cv_header_stdint_h" = xyes; then :
27471   cat >>confdefs.h <<_ACEOF
27472 #define HAVE_STDINT_H 1
27473 _ACEOF
27474
27475 fi
27476
27477 done
27478
27479
27480
27481
27482   :
27483
27484
27485   :
27486
27487
27488   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
27489
27490   # End of code from modules
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500   gltests_libdeps=
27501   gltests_ltlibdeps=
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511   gl_source_base='tests'
27512   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
27513
27514   gl_module_indicator_condition=$gltests_WITNESS
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525 for ac_header in fcntl.h
27526 do :
27527   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
27528 if test "x$ac_cv_header_fcntl_h" = xyes; then :
27529   cat >>confdefs.h <<_ACEOF
27530 #define HAVE_FCNTL_H 1
27531 _ACEOF
27532
27533 fi
27534
27535 done
27536
27537 for ac_func in clearenv
27538 do :
27539   ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
27540 if test "x$ac_cv_func_clearenv" = xyes; then :
27541   cat >>confdefs.h <<_ACEOF
27542 #define HAVE_CLEARENV 1
27543 _ACEOF
27544
27545 fi
27546 done
27547
27548
27549 # Checks for structures and compiler characteristics.
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27551 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27552 if ${ac_cv_c_const+:} false; then :
27553   $as_echo_n "(cached) " >&6
27554 else
27555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27556 /* end confdefs.h.  */
27557
27558 int
27559 main ()
27560 {
27561
27562 #ifndef __cplusplus
27563   /* Ultrix mips cc rejects this sort of thing.  */
27564   typedef int charset[2];
27565   const charset cs = { 0, 0 };
27566   /* SunOS 4.1.1 cc rejects this.  */
27567   char const *const *pcpcc;
27568   char **ppc;
27569   /* NEC SVR4.0.2 mips cc rejects this.  */
27570   struct point {int x, y;};
27571   static struct point const zero = {0,0};
27572   /* AIX XL C 1.02.0.0 rejects this.
27573      It does not let you subtract one const X* pointer from another in
27574      an arm of an if-expression whose if-part is not a constant
27575      expression */
27576   const char *g = "string";
27577   pcpcc = &g + (g ? g-g : 0);
27578   /* HPUX 7.0 cc rejects these. */
27579   ++pcpcc;
27580   ppc = (char**) pcpcc;
27581   pcpcc = (char const *const *) ppc;
27582   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27583     char tx;
27584     char *t = &tx;
27585     char const *s = 0 ? (char *) 0 : (char const *) 0;
27586
27587     *t++ = 0;
27588     if (s) return 0;
27589   }
27590   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27591     int x[] = {25, 17};
27592     const int *foo = &x[0];
27593     ++foo;
27594   }
27595   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27596     typedef const int *iptr;
27597     iptr p = 0;
27598     ++p;
27599   }
27600   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27601        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27602     struct s { int j; const int *ap[3]; } bx;
27603     struct s *b = &bx; b->j = 5;
27604   }
27605   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27606     const int foo = 10;
27607     if (!foo) return 0;
27608   }
27609   return !cs[0] && !zero.x;
27610 #endif
27611
27612   ;
27613   return 0;
27614 }
27615 _ACEOF
27616 if ac_fn_c_try_compile "$LINENO"; then :
27617   ac_cv_c_const=yes
27618 else
27619   ac_cv_c_const=no
27620 fi
27621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27622 fi
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27624 $as_echo "$ac_cv_c_const" >&6; }
27625 if test $ac_cv_c_const = no; then
27626
27627 $as_echo "#define const /**/" >>confdefs.h
27628
27629 fi
27630
27631 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27632 if test "x$ac_cv_type_pid_t" = xyes; then :
27633
27634 else
27635
27636 cat >>confdefs.h <<_ACEOF
27637 #define pid_t int
27638 _ACEOF
27639
27640 fi
27641
27642 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27643 if test "x$ac_cv_type_size_t" = xyes; then :
27644
27645 else
27646
27647 cat >>confdefs.h <<_ACEOF
27648 #define size_t unsigned int
27649 _ACEOF
27650
27651 fi
27652
27653
27654 # We must have fork(2) support.
27655 for ac_header in vfork.h
27656 do :
27657   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
27658 if test "x$ac_cv_header_vfork_h" = xyes; then :
27659   cat >>confdefs.h <<_ACEOF
27660 #define HAVE_VFORK_H 1
27661 _ACEOF
27662
27663 fi
27664
27665 done
27666
27667 for ac_func in fork vfork
27668 do :
27669   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27672   cat >>confdefs.h <<_ACEOF
27673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27674 _ACEOF
27675
27676 fi
27677 done
27678
27679 if test "x$ac_cv_func_fork" = xyes; then
27680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
27681 $as_echo_n "checking for working fork... " >&6; }
27682 if ${ac_cv_func_fork_works+:} false; then :
27683   $as_echo_n "(cached) " >&6
27684 else
27685   if test "$cross_compiling" = yes; then :
27686   ac_cv_func_fork_works=cross
27687 else
27688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27689 /* end confdefs.h.  */
27690 $ac_includes_default
27691 int
27692 main ()
27693 {
27694
27695           /* By Ruediger Kuhlmann. */
27696           return fork () < 0;
27697
27698   ;
27699   return 0;
27700 }
27701 _ACEOF
27702 if ac_fn_c_try_run "$LINENO"; then :
27703   ac_cv_func_fork_works=yes
27704 else
27705   ac_cv_func_fork_works=no
27706 fi
27707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27708   conftest.$ac_objext conftest.beam conftest.$ac_ext
27709 fi
27710
27711 fi
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
27713 $as_echo "$ac_cv_func_fork_works" >&6; }
27714
27715 else
27716   ac_cv_func_fork_works=$ac_cv_func_fork
27717 fi
27718 if test "x$ac_cv_func_fork_works" = xcross; then
27719   case $host in
27720     *-*-amigaos* | *-*-msdosdjgpp*)
27721       # Override, as these systems have only a dummy fork() stub
27722       ac_cv_func_fork_works=no
27723       ;;
27724     *)
27725       ac_cv_func_fork_works=yes
27726       ;;
27727   esac
27728   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
27729 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27730 fi
27731 ac_cv_func_vfork_works=$ac_cv_func_vfork
27732 if test "x$ac_cv_func_vfork" = xyes; then
27733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
27734 $as_echo_n "checking for working vfork... " >&6; }
27735 if ${ac_cv_func_vfork_works+:} false; then :
27736   $as_echo_n "(cached) " >&6
27737 else
27738   if test "$cross_compiling" = yes; then :
27739   ac_cv_func_vfork_works=cross
27740 else
27741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27742 /* end confdefs.h.  */
27743 /* Thanks to Paul Eggert for this test.  */
27744 $ac_includes_default
27745 #include <sys/wait.h>
27746 #ifdef HAVE_VFORK_H
27747 # include <vfork.h>
27748 #endif
27749 /* On some sparc systems, changes by the child to local and incoming
27750    argument registers are propagated back to the parent.  The compiler
27751    is told about this with #include <vfork.h>, but some compilers
27752    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
27753    static variable whose address is put into a register that is
27754    clobbered by the vfork.  */
27755 static void
27756 #ifdef __cplusplus
27757 sparc_address_test (int arg)
27758 # else
27759 sparc_address_test (arg) int arg;
27760 #endif
27761 {
27762   static pid_t child;
27763   if (!child) {
27764     child = vfork ();
27765     if (child < 0) {
27766       perror ("vfork");
27767       _exit(2);
27768     }
27769     if (!child) {
27770       arg = getpid();
27771       write(-1, "", 0);
27772       _exit (arg);
27773     }
27774   }
27775 }
27776
27777 int
27778 main ()
27779 {
27780   pid_t parent = getpid ();
27781   pid_t child;
27782
27783   sparc_address_test (0);
27784
27785   child = vfork ();
27786
27787   if (child == 0) {
27788     /* Here is another test for sparc vfork register problems.  This
27789        test uses lots of local variables, at least as many local
27790        variables as main has allocated so far including compiler
27791        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
27792        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
27793        reuse the register of parent for one of the local variables,
27794        since it will think that parent can't possibly be used any more
27795        in this routine.  Assigning to the local variable will thus
27796        munge parent in the parent process.  */
27797     pid_t
27798       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
27799       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
27800     /* Convince the compiler that p..p7 are live; otherwise, it might
27801        use the same hardware register for all 8 local variables.  */
27802     if (p != p1 || p != p2 || p != p3 || p != p4
27803         || p != p5 || p != p6 || p != p7)
27804       _exit(1);
27805
27806     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
27807        from child file descriptors.  If the child closes a descriptor
27808        before it execs or exits, this munges the parent's descriptor
27809        as well.  Test for this by closing stdout in the child.  */
27810     _exit(close(fileno(stdout)) != 0);
27811   } else {
27812     int status;
27813     struct stat st;
27814
27815     while (wait(&status) != child)
27816       ;
27817     return (
27818          /* Was there some problem with vforking?  */
27819          child < 0
27820
27821          /* Did the child fail?  (This shouldn't happen.)  */
27822          || status
27823
27824          /* Did the vfork/compiler bug occur?  */
27825          || parent != getpid()
27826
27827          /* Did the file descriptor bug occur?  */
27828          || fstat(fileno(stdout), &st) != 0
27829          );
27830   }
27831 }
27832 _ACEOF
27833 if ac_fn_c_try_run "$LINENO"; then :
27834   ac_cv_func_vfork_works=yes
27835 else
27836   ac_cv_func_vfork_works=no
27837 fi
27838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27839   conftest.$ac_objext conftest.beam conftest.$ac_ext
27840 fi
27841
27842 fi
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
27844 $as_echo "$ac_cv_func_vfork_works" >&6; }
27845
27846 fi;
27847 if test "x$ac_cv_func_fork_works" = xcross; then
27848   ac_cv_func_vfork_works=$ac_cv_func_vfork
27849   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
27850 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
27851 fi
27852
27853 if test "x$ac_cv_func_vfork_works" = xyes; then
27854
27855 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
27856
27857 else
27858
27859 $as_echo "#define vfork fork" >>confdefs.h
27860
27861 fi
27862 if test "x$ac_cv_func_fork_works" = xyes; then
27863
27864 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
27865
27866 fi
27867
27868 if test "x$ac_cv_func_fork_works" != xyes; then
27869   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27871 as_fn_error $? "cannot use libpipeline on systems without fork
27872 See \`config.log' for more details" "$LINENO" 5; }
27873 fi
27874
27875 # Check for socketpair(2) as fast replacement for pipe(2).
27876 # Check whether --enable-socketpair-pipe was given.
27877 if test "${enable_socketpair_pipe+set}" = set; then :
27878   enableval=$enable_socketpair_pipe;  if test "$enableval" = "yes"
27879     then
27880        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
27881 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
27882   if ${pipeline_cv_socketpair_pipe+:} false; then :
27883   $as_echo_n "(cached) " >&6
27884 else
27885
27886     if test "$cross_compiling" = yes; then :
27887   pipeline_cv_socketpair_pipe=no
27888 else
27889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27890 /* end confdefs.h.  */
27891
27892 #include <netdb.h>
27893 #include <netinet/in.h>
27894 #include <signal.h>
27895 #include <sys/socket.h>
27896 #include <sys/types.h>
27897 #include <sys/wait.h>
27898 #include <unistd.h>
27899 #ifndef SHUT_RD
27900 #       define SHUT_RD  0
27901 #endif
27902 #ifndef SHUT_WR
27903 #       define SHUT_WR  1
27904 #endif
27905
27906 static void sigpipe(int sig)
27907 {
27908         _exit(0);
27909 }
27910
27911 int main()
27912 {
27913         const char test[] = "May use socketpair(2) instead of pipe(2)\n";
27914         char buf[256];
27915         int sfd[2], s;
27916         pid_t pid;
27917         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27918                 return 1;
27919         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27920                 return 1;
27921         if ((pid = fork()) < 0)
27922                 return 1;
27923         if (pid) {
27924                 close(sfd[1]);
27925                 waitpid(-1,&s,0);
27926                 if (read(sfd[0],buf,sizeof(buf)) < 0)
27927                         return 1;
27928         } else {
27929                 close(sfd[0]);
27930                 write(sfd[1],test,sizeof(test) - 1);
27931                 return 0;
27932         }
27933         close(sfd[0]);
27934         signal(SIGPIPE, sigpipe);
27935         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27936                 return 1;
27937         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27938                 return 1;
27939         close(sfd[0]);
27940         write(sfd[1],test,sizeof(test) - 1);
27941         return 1;
27942 }
27943 _ACEOF
27944 if ac_fn_c_try_run "$LINENO"; then :
27945   pipeline_cv_socketpair_pipe=yes
27946 else
27947   pipeline_cv_socketpair_pipe=no
27948 fi
27949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27950   conftest.$ac_objext conftest.beam conftest.$ac_ext
27951 fi
27952
27953
27954 fi
27955
27956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
27957 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
27958   if test "$pipeline_cv_socketpair_pipe" = yes; then
27959
27960 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
27961
27962   fi
27963
27964       if test "$pipeline_cv_socketpair_pipe" = yes; then
27965          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
27966 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
27967   if ${pipeline_cv_socketpair_mode+:} false; then :
27968   $as_echo_n "(cached) " >&6
27969 else
27970
27971     if test "$cross_compiling" = yes; then :
27972   pipeline_cv_socketpair_mode=no
27973 else
27974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h.  */
27976
27977 #include <netdb.h>
27978 #include <netinet/in.h>
27979 #include <sys/stat.h>
27980 #include <sys/socket.h>
27981 #include <sys/types.h>
27982 #include <unistd.h>
27983 #ifndef SHUT_RD
27984 #       define SHUT_RD  0
27985 #endif
27986 #ifndef SHUT_WR
27987 #       define SHUT_WR  1
27988 #endif
27989
27990 int main()
27991 {
27992         int sfd[2];
27993         struct stat st[2];
27994         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27995                 return 1;
27996         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27997                 return 1;
27998         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
27999                 return 1;
28000         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
28001                 return 1;
28002         if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
28003                 return 1;
28004         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
28005                 return 1;
28006         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
28007                 return 1;
28008         return 0;
28009 }
28010 _ACEOF
28011 if ac_fn_c_try_run "$LINENO"; then :
28012   pipeline_cv_socketpair_mode=yes
28013 else
28014   pipeline_cv_socketpair_mode=no
28015 fi
28016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28017   conftest.$ac_objext conftest.beam conftest.$ac_ext
28018 fi
28019
28020
28021 fi
28022
28023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
28024 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
28025   if test "$pipeline_cv_socketpair_mode" = yes; then
28026
28027 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
28028
28029   fi
28030
28031       fi
28032     fi
28033
28034 fi
28035
28036
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
28038 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
28040 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
28042 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
28044 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
28046 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
28048 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
28049
28050 ac_config_files="$ac_config_files Makefile gl/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
28051
28052 cat >confcache <<\_ACEOF
28053 # This file is a shell script that caches the results of configure
28054 # tests run on this system so they can be shared between configure
28055 # scripts and configure runs, see configure's option --config-cache.
28056 # It is not useful on other systems.  If it contains results you don't
28057 # want to keep, you may remove or edit it.
28058 #
28059 # config.status only pays attention to the cache file if you give it
28060 # the --recheck option to rerun configure.
28061 #
28062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28064 # following values.
28065
28066 _ACEOF
28067
28068 # The following way of writing the cache mishandles newlines in values,
28069 # but we know of no workaround that is simple, portable, and efficient.
28070 # So, we kill variables containing newlines.
28071 # Ultrix sh set writes to stderr and can't be redirected directly,
28072 # and sets the high bit in the cache file unless we assign to the vars.
28073 (
28074   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28075     eval ac_val=\$$ac_var
28076     case $ac_val in #(
28077     *${as_nl}*)
28078       case $ac_var in #(
28079       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28081       esac
28082       case $ac_var in #(
28083       _ | IFS | as_nl) ;; #(
28084       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28085       *) { eval $ac_var=; unset $ac_var;} ;;
28086       esac ;;
28087     esac
28088   done
28089
28090   (set) 2>&1 |
28091     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28092     *${as_nl}ac_space=\ *)
28093       # `set' does not quote correctly, so add quotes: double-quote
28094       # substitution turns \\\\ into \\, and sed turns \\ into \.
28095       sed -n \
28096         "s/'/'\\\\''/g;
28097           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28098       ;; #(
28099     *)
28100       # `set' quotes correctly as required by POSIX, so do not add quotes.
28101       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28102       ;;
28103     esac |
28104     sort
28105 ) |
28106   sed '
28107      /^ac_cv_env_/b end
28108      t clear
28109      :clear
28110      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28111      t end
28112      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28113      :end' >>confcache
28114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28115   if test -w "$cache_file"; then
28116     if test "x$cache_file" != "x/dev/null"; then
28117       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28118 $as_echo "$as_me: updating cache $cache_file" >&6;}
28119       if test ! -f "$cache_file" || test -h "$cache_file"; then
28120         cat confcache >"$cache_file"
28121       else
28122         case $cache_file in #(
28123         */* | ?:*)
28124           mv -f confcache "$cache_file"$$ &&
28125           mv -f "$cache_file"$$ "$cache_file" ;; #(
28126         *)
28127           mv -f confcache "$cache_file" ;;
28128         esac
28129       fi
28130     fi
28131   else
28132     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28133 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28134   fi
28135 fi
28136 rm -f confcache
28137
28138 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28139 # Let make expand exec_prefix.
28140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28141
28142 DEFS=-DHAVE_CONFIG_H
28143
28144 ac_libobjs=
28145 ac_ltlibobjs=
28146 U=
28147 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28148   # 1. Remove the extension, and $U if already installed.
28149   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28150   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28151   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28152   #    will be set to the directory where LIBOBJS objects are built.
28153   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28154   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28155 done
28156 LIBOBJS=$ac_libobjs
28157
28158 LTLIBOBJS=$ac_ltlibobjs
28159
28160
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28162 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28163    if test -n "$am_sleep_pid"; then
28164      # Hide warnings about reused PIDs.
28165      wait $am_sleep_pid 2>/dev/null
28166    fi
28167    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28168 $as_echo "done" >&6; }
28169  if test -n "$EXEEXT"; then
28170   am__EXEEXT_TRUE=
28171   am__EXEEXT_FALSE='#'
28172 else
28173   am__EXEEXT_TRUE='#'
28174   am__EXEEXT_FALSE=
28175 fi
28176
28177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28178   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28180 fi
28181 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28182   as_fn_error $? "conditional \"AMDEP\" was never defined.
28183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28184 fi
28185 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28186   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28188 fi
28189 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28190   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28192 fi
28193 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
28194   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
28195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28196 fi
28197 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28198   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
28199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28200 fi
28201 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28202   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28204 fi
28205 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28206   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28208 fi
28209 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28210   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28212 fi
28213 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28214   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28216 fi
28217 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
28218   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
28219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28220 fi
28221 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28222   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28224 fi
28225 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28226   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28228 fi
28229 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28230   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28232 fi
28233 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28234   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
28235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28236 fi
28237
28238
28239     gl_libobjs=
28240     gl_ltlibobjs=
28241     if test -n "$gl_LIBOBJS"; then
28242       # Remove the extension.
28243       sed_drop_objext='s/\.o$//;s/\.obj$//'
28244       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28245         gl_libobjs="$gl_libobjs $i.$ac_objext"
28246         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28247       done
28248     fi
28249     gl_LIBOBJS=$gl_libobjs
28250
28251     gl_LTLIBOBJS=$gl_ltlibobjs
28252
28253
28254
28255     gltests_libobjs=
28256     gltests_ltlibobjs=
28257     if test -n "$gltests_LIBOBJS"; then
28258       # Remove the extension.
28259       sed_drop_objext='s/\.o$//;s/\.obj$//'
28260       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28261         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28262         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28263       done
28264     fi
28265     gltests_LIBOBJS=$gltests_libobjs
28266
28267     gltests_LTLIBOBJS=$gltests_ltlibobjs
28268
28269
28270
28271 : "${CONFIG_STATUS=./config.status}"
28272 ac_write_fail=0
28273 ac_clean_files_save=$ac_clean_files
28274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28276 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28277 as_write_fail=0
28278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28279 #! $SHELL
28280 # Generated by $as_me.
28281 # Run this file to recreate the current configuration.
28282 # Compiler output produced by configure, useful for debugging
28283 # configure, is in config.log if it exists.
28284
28285 debug=false
28286 ac_cs_recheck=false
28287 ac_cs_silent=false
28288
28289 SHELL=\${CONFIG_SHELL-$SHELL}
28290 export SHELL
28291 _ASEOF
28292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28293 ## -------------------- ##
28294 ## M4sh Initialization. ##
28295 ## -------------------- ##
28296
28297 # Be more Bourne compatible
28298 DUALCASE=1; export DUALCASE # for MKS sh
28299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28300   emulate sh
28301   NULLCMD=:
28302   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28303   # is contrary to our usage.  Disable this feature.
28304   alias -g '${1+"$@"}'='"$@"'
28305   setopt NO_GLOB_SUBST
28306 else
28307   case `(set -o) 2>/dev/null` in #(
28308   *posix*) :
28309     set -o posix ;; #(
28310   *) :
28311      ;;
28312 esac
28313 fi
28314
28315
28316 as_nl='
28317 '
28318 export as_nl
28319 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28320 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28323 # Prefer a ksh shell builtin over an external printf program on Solaris,
28324 # but without wasting forks for bash or zsh.
28325 if test -z "$BASH_VERSION$ZSH_VERSION" \
28326     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28327   as_echo='print -r --'
28328   as_echo_n='print -rn --'
28329 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28330   as_echo='printf %s\n'
28331   as_echo_n='printf %s'
28332 else
28333   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28334     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28335     as_echo_n='/usr/ucb/echo -n'
28336   else
28337     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28338     as_echo_n_body='eval
28339       arg=$1;
28340       case $arg in #(
28341       *"$as_nl"*)
28342         expr "X$arg" : "X\\(.*\\)$as_nl";
28343         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28344       esac;
28345       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28346     '
28347     export as_echo_n_body
28348     as_echo_n='sh -c $as_echo_n_body as_echo'
28349   fi
28350   export as_echo_body
28351   as_echo='sh -c $as_echo_body as_echo'
28352 fi
28353
28354 # The user is always right.
28355 if test "${PATH_SEPARATOR+set}" != set; then
28356   PATH_SEPARATOR=:
28357   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28358     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28359       PATH_SEPARATOR=';'
28360   }
28361 fi
28362
28363
28364 # IFS
28365 # We need space, tab and new line, in precisely that order.  Quoting is
28366 # there to prevent editors from complaining about space-tab.
28367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28368 # splitting by setting IFS to empty value.)
28369 IFS=" ""        $as_nl"
28370
28371 # Find who we are.  Look in the path if we contain no directory separator.
28372 as_myself=
28373 case $0 in #((
28374   *[\\/]* ) as_myself=$0 ;;
28375   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28376 for as_dir in $PATH
28377 do
28378   IFS=$as_save_IFS
28379   test -z "$as_dir" && as_dir=.
28380     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28381   done
28382 IFS=$as_save_IFS
28383
28384      ;;
28385 esac
28386 # We did not find ourselves, most probably we were run as `sh COMMAND'
28387 # in which case we are not to be found in the path.
28388 if test "x$as_myself" = x; then
28389   as_myself=$0
28390 fi
28391 if test ! -f "$as_myself"; then
28392   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28393   exit 1
28394 fi
28395
28396 # Unset variables that we do not need and which cause bugs (e.g. in
28397 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28398 # suppresses any "Segmentation fault" message there.  '((' could
28399 # trigger a bug in pdksh 5.2.14.
28400 for as_var in BASH_ENV ENV MAIL MAILPATH
28401 do eval test x\${$as_var+set} = xset \
28402   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28403 done
28404 PS1='$ '
28405 PS2='> '
28406 PS4='+ '
28407
28408 # NLS nuisances.
28409 LC_ALL=C
28410 export LC_ALL
28411 LANGUAGE=C
28412 export LANGUAGE
28413
28414 # CDPATH.
28415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28416
28417
28418 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28419 # ----------------------------------------
28420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28422 # script with STATUS, using 1 if that was 0.
28423 as_fn_error ()
28424 {
28425   as_status=$1; test $as_status -eq 0 && as_status=1
28426   if test "$4"; then
28427     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28428     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28429   fi
28430   $as_echo "$as_me: error: $2" >&2
28431   as_fn_exit $as_status
28432 } # as_fn_error
28433
28434
28435 # as_fn_set_status STATUS
28436 # -----------------------
28437 # Set $? to STATUS, without forking.
28438 as_fn_set_status ()
28439 {
28440   return $1
28441 } # as_fn_set_status
28442
28443 # as_fn_exit STATUS
28444 # -----------------
28445 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28446 as_fn_exit ()
28447 {
28448   set +e
28449   as_fn_set_status $1
28450   exit $1
28451 } # as_fn_exit
28452
28453 # as_fn_unset VAR
28454 # ---------------
28455 # Portably unset VAR.
28456 as_fn_unset ()
28457 {
28458   { eval $1=; unset $1;}
28459 }
28460 as_unset=as_fn_unset
28461 # as_fn_append VAR VALUE
28462 # ----------------------
28463 # Append the text in VALUE to the end of the definition contained in VAR. Take
28464 # advantage of any shell optimizations that allow amortized linear growth over
28465 # repeated appends, instead of the typical quadratic growth present in naive
28466 # implementations.
28467 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28468   eval 'as_fn_append ()
28469   {
28470     eval $1+=\$2
28471   }'
28472 else
28473   as_fn_append ()
28474   {
28475     eval $1=\$$1\$2
28476   }
28477 fi # as_fn_append
28478
28479 # as_fn_arith ARG...
28480 # ------------------
28481 # Perform arithmetic evaluation on the ARGs, and store the result in the
28482 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28483 # must be portable across $(()) and expr.
28484 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28485   eval 'as_fn_arith ()
28486   {
28487     as_val=$(( $* ))
28488   }'
28489 else
28490   as_fn_arith ()
28491   {
28492     as_val=`expr "$@" || test $? -eq 1`
28493   }
28494 fi # as_fn_arith
28495
28496
28497 if expr a : '\(a\)' >/dev/null 2>&1 &&
28498    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28499   as_expr=expr
28500 else
28501   as_expr=false
28502 fi
28503
28504 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28505   as_basename=basename
28506 else
28507   as_basename=false
28508 fi
28509
28510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28511   as_dirname=dirname
28512 else
28513   as_dirname=false
28514 fi
28515
28516 as_me=`$as_basename -- "$0" ||
28517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28518          X"$0" : 'X\(//\)$' \| \
28519          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28520 $as_echo X/"$0" |
28521     sed '/^.*\/\([^/][^/]*\)\/*$/{
28522             s//\1/
28523             q
28524           }
28525           /^X\/\(\/\/\)$/{
28526             s//\1/
28527             q
28528           }
28529           /^X\/\(\/\).*/{
28530             s//\1/
28531             q
28532           }
28533           s/.*/./; q'`
28534
28535 # Avoid depending upon Character Ranges.
28536 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28537 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28538 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28539 as_cr_digits='0123456789'
28540 as_cr_alnum=$as_cr_Letters$as_cr_digits
28541
28542 ECHO_C= ECHO_N= ECHO_T=
28543 case `echo -n x` in #(((((
28544 -n*)
28545   case `echo 'xy\c'` in
28546   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28547   xy)  ECHO_C='\c';;
28548   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28549        ECHO_T=' ';;
28550   esac;;
28551 *)
28552   ECHO_N='-n';;
28553 esac
28554
28555 rm -f conf$$ conf$$.exe conf$$.file
28556 if test -d conf$$.dir; then
28557   rm -f conf$$.dir/conf$$.file
28558 else
28559   rm -f conf$$.dir
28560   mkdir conf$$.dir 2>/dev/null
28561 fi
28562 if (echo >conf$$.file) 2>/dev/null; then
28563   if ln -s conf$$.file conf$$ 2>/dev/null; then
28564     as_ln_s='ln -s'
28565     # ... but there are two gotchas:
28566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28568     # In both cases, we have to default to `cp -pR'.
28569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28570       as_ln_s='cp -pR'
28571   elif ln conf$$.file conf$$ 2>/dev/null; then
28572     as_ln_s=ln
28573   else
28574     as_ln_s='cp -pR'
28575   fi
28576 else
28577   as_ln_s='cp -pR'
28578 fi
28579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28580 rmdir conf$$.dir 2>/dev/null
28581
28582
28583 # as_fn_mkdir_p
28584 # -------------
28585 # Create "$as_dir" as a directory, including parents if necessary.
28586 as_fn_mkdir_p ()
28587 {
28588
28589   case $as_dir in #(
28590   -*) as_dir=./$as_dir;;
28591   esac
28592   test -d "$as_dir" || eval $as_mkdir_p || {
28593     as_dirs=
28594     while :; do
28595       case $as_dir in #(
28596       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28597       *) as_qdir=$as_dir;;
28598       esac
28599       as_dirs="'$as_qdir' $as_dirs"
28600       as_dir=`$as_dirname -- "$as_dir" ||
28601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28602          X"$as_dir" : 'X\(//\)[^/]' \| \
28603          X"$as_dir" : 'X\(//\)$' \| \
28604          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28605 $as_echo X"$as_dir" |
28606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28607             s//\1/
28608             q
28609           }
28610           /^X\(\/\/\)[^/].*/{
28611             s//\1/
28612             q
28613           }
28614           /^X\(\/\/\)$/{
28615             s//\1/
28616             q
28617           }
28618           /^X\(\/\).*/{
28619             s//\1/
28620             q
28621           }
28622           s/.*/./; q'`
28623       test -d "$as_dir" && break
28624     done
28625     test -z "$as_dirs" || eval "mkdir $as_dirs"
28626   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28627
28628
28629 } # as_fn_mkdir_p
28630 if mkdir -p . 2>/dev/null; then
28631   as_mkdir_p='mkdir -p "$as_dir"'
28632 else
28633   test -d ./-p && rmdir ./-p
28634   as_mkdir_p=false
28635 fi
28636
28637
28638 # as_fn_executable_p FILE
28639 # -----------------------
28640 # Test if FILE is an executable regular file.
28641 as_fn_executable_p ()
28642 {
28643   test -f "$1" && test -x "$1"
28644 } # as_fn_executable_p
28645 as_test_x='test -x'
28646 as_executable_p=as_fn_executable_p
28647
28648 # Sed expression to map a string onto a valid CPP name.
28649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28650
28651 # Sed expression to map a string onto a valid variable name.
28652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28653
28654
28655 exec 6>&1
28656 ## ----------------------------------- ##
28657 ## Main body of $CONFIG_STATUS script. ##
28658 ## ----------------------------------- ##
28659 _ASEOF
28660 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28661
28662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28663 # Save the log message, to keep $0 and so on meaningful, and to
28664 # report actual input values of CONFIG_FILES etc. instead of their
28665 # values after options handling.
28666 ac_log="
28667 This file was extended by libpipeline $as_me 1.5.2, which was
28668 generated by GNU Autoconf 2.69.  Invocation command line was
28669
28670   CONFIG_FILES    = $CONFIG_FILES
28671   CONFIG_HEADERS  = $CONFIG_HEADERS
28672   CONFIG_LINKS    = $CONFIG_LINKS
28673   CONFIG_COMMANDS = $CONFIG_COMMANDS
28674   $ $0 $@
28675
28676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28677 "
28678
28679 _ACEOF
28680
28681 case $ac_config_files in *"
28682 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28683 esac
28684
28685 case $ac_config_headers in *"
28686 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28687 esac
28688
28689
28690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28691 # Files that config.status was made for.
28692 config_files="$ac_config_files"
28693 config_headers="$ac_config_headers"
28694 config_commands="$ac_config_commands"
28695
28696 _ACEOF
28697
28698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28699 ac_cs_usage="\
28700 \`$as_me' instantiates files and other configuration actions
28701 from templates according to the current configuration.  Unless the files
28702 and actions are specified as TAGs, all are instantiated by default.
28703
28704 Usage: $0 [OPTION]... [TAG]...
28705
28706   -h, --help       print this help, then exit
28707   -V, --version    print version number and configuration settings, then exit
28708       --config     print configuration, then exit
28709   -q, --quiet, --silent
28710                    do not print progress messages
28711   -d, --debug      don't remove temporary files
28712       --recheck    update $as_me by reconfiguring in the same conditions
28713       --file=FILE[:TEMPLATE]
28714                    instantiate the configuration file FILE
28715       --header=FILE[:TEMPLATE]
28716                    instantiate the configuration header FILE
28717
28718 Configuration files:
28719 $config_files
28720
28721 Configuration headers:
28722 $config_headers
28723
28724 Configuration commands:
28725 $config_commands
28726
28727 Report bugs to <cjwatson@debian.org>."
28728
28729 _ACEOF
28730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28731 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28732 ac_cs_version="\\
28733 libpipeline config.status 1.5.2
28734 configured by $0, generated by GNU Autoconf 2.69,
28735   with options \\"\$ac_cs_config\\"
28736
28737 Copyright (C) 2012 Free Software Foundation, Inc.
28738 This config.status script is free software; the Free Software Foundation
28739 gives unlimited permission to copy, distribute and modify it."
28740
28741 ac_pwd='$ac_pwd'
28742 srcdir='$srcdir'
28743 INSTALL='$INSTALL'
28744 MKDIR_P='$MKDIR_P'
28745 AWK='$AWK'
28746 test -n "\$AWK" || AWK=awk
28747 _ACEOF
28748
28749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28750 # The default lists apply if the user does not specify any file.
28751 ac_need_defaults=:
28752 while test $# != 0
28753 do
28754   case $1 in
28755   --*=?*)
28756     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28757     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28758     ac_shift=:
28759     ;;
28760   --*=)
28761     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28762     ac_optarg=
28763     ac_shift=:
28764     ;;
28765   *)
28766     ac_option=$1
28767     ac_optarg=$2
28768     ac_shift=shift
28769     ;;
28770   esac
28771
28772   case $ac_option in
28773   # Handling of the options.
28774   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28775     ac_cs_recheck=: ;;
28776   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28777     $as_echo "$ac_cs_version"; exit ;;
28778   --config | --confi | --conf | --con | --co | --c )
28779     $as_echo "$ac_cs_config"; exit ;;
28780   --debug | --debu | --deb | --de | --d | -d )
28781     debug=: ;;
28782   --file | --fil | --fi | --f )
28783     $ac_shift
28784     case $ac_optarg in
28785     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28786     '') as_fn_error $? "missing file argument" ;;
28787     esac
28788     as_fn_append CONFIG_FILES " '$ac_optarg'"
28789     ac_need_defaults=false;;
28790   --header | --heade | --head | --hea )
28791     $ac_shift
28792     case $ac_optarg in
28793     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28794     esac
28795     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28796     ac_need_defaults=false;;
28797   --he | --h)
28798     # Conflict between --help and --header
28799     as_fn_error $? "ambiguous option: \`$1'
28800 Try \`$0 --help' for more information.";;
28801   --help | --hel | -h )
28802     $as_echo "$ac_cs_usage"; exit ;;
28803   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28804   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28805     ac_cs_silent=: ;;
28806
28807   # This is an error.
28808   -*) as_fn_error $? "unrecognized option: \`$1'
28809 Try \`$0 --help' for more information." ;;
28810
28811   *) as_fn_append ac_config_targets " $1"
28812      ac_need_defaults=false ;;
28813
28814   esac
28815   shift
28816 done
28817
28818 ac_configure_extra_args=
28819
28820 if $ac_cs_silent; then
28821   exec 6>/dev/null
28822   ac_configure_extra_args="$ac_configure_extra_args --silent"
28823 fi
28824
28825 _ACEOF
28826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28827 if \$ac_cs_recheck; then
28828   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28829   shift
28830   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28831   CONFIG_SHELL='$SHELL'
28832   export CONFIG_SHELL
28833   exec "\$@"
28834 fi
28835
28836 _ACEOF
28837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28838 exec 5>>config.log
28839 {
28840   echo
28841   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28842 ## Running $as_me. ##
28843 _ASBOX
28844   $as_echo "$ac_log"
28845 } >&5
28846
28847 _ACEOF
28848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28849 #
28850 # INIT-COMMANDS
28851 #
28852 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
28853
28854
28855 # The HP-UX ksh and POSIX shell print the target directory to stdout
28856 # if CDPATH is set.
28857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28858
28859 sed_quote_subst='$sed_quote_subst'
28860 double_quote_subst='$double_quote_subst'
28861 delay_variable_subst='$delay_variable_subst'
28862 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28863 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28864 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28865 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28866 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28867 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28868 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28869 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28870 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28871 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28872 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28873 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28874 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28875 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28876 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28877 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28878 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28879 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28880 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28881 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28882 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28883 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28884 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28885 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28886 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28887 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28888 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28889 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28890 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28891 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28892 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28893 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28894 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28895 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28896 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28897 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28898 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28899 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28900 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28901 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28902 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28903 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28904 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28905 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28906 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28907 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28908 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28909 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28910 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28911 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28912 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28913 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28914 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28915 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28916 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28917 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28918 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28919 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28920 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"`'
28921 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28922 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28923 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28924 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28925 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28926 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28927 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28928 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28929 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28930 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28931 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28932 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28933 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28934 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28935 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28936 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28937 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28938 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28939 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28940 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28941 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28942 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28943 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28944 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28945 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28946 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28947 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28948 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28949 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28950 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28951 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28952 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28953 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28954 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28955 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28956 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28957 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28958 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28959 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28960 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28961 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28962 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28963 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28964 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28965 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28966 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28967 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28968 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28969 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28970 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28971 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28972 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28973 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28974 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28975 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28976 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28977 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28978 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28979 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28980 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28981 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28982 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28983 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28984 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28985 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28986 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28987 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28988 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28989 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28990 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28991 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28992 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28993 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28994 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28995 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28996 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28997
28998 LTCC='$LTCC'
28999 LTCFLAGS='$LTCFLAGS'
29000 compiler='$compiler_DEFAULT'
29001
29002 # A function that is used when there is no print builtin or printf.
29003 func_fallback_echo ()
29004 {
29005   eval 'cat <<_LTECHO_EOF
29006 \$1
29007 _LTECHO_EOF'
29008 }
29009
29010 # Quote evaled strings.
29011 for var in SHELL \
29012 ECHO \
29013 PATH_SEPARATOR \
29014 SED \
29015 GREP \
29016 EGREP \
29017 FGREP \
29018 LD \
29019 NM \
29020 LN_S \
29021 lt_SP2NL \
29022 lt_NL2SP \
29023 reload_flag \
29024 OBJDUMP \
29025 deplibs_check_method \
29026 file_magic_cmd \
29027 file_magic_glob \
29028 want_nocaseglob \
29029 DLLTOOL \
29030 sharedlib_from_linklib_cmd \
29031 AR \
29032 AR_FLAGS \
29033 archiver_list_spec \
29034 STRIP \
29035 RANLIB \
29036 CC \
29037 CFLAGS \
29038 compiler \
29039 lt_cv_sys_global_symbol_pipe \
29040 lt_cv_sys_global_symbol_to_cdecl \
29041 lt_cv_sys_global_symbol_to_import \
29042 lt_cv_sys_global_symbol_to_c_name_address \
29043 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29044 lt_cv_nm_interface \
29045 nm_file_list_spec \
29046 lt_cv_truncate_bin \
29047 lt_prog_compiler_no_builtin_flag \
29048 lt_prog_compiler_pic \
29049 lt_prog_compiler_wl \
29050 lt_prog_compiler_static \
29051 lt_cv_prog_compiler_c_o \
29052 need_locks \
29053 MANIFEST_TOOL \
29054 DSYMUTIL \
29055 NMEDIT \
29056 LIPO \
29057 OTOOL \
29058 OTOOL64 \
29059 shrext_cmds \
29060 export_dynamic_flag_spec \
29061 whole_archive_flag_spec \
29062 compiler_needs_object \
29063 with_gnu_ld \
29064 allow_undefined_flag \
29065 no_undefined_flag \
29066 hardcode_libdir_flag_spec \
29067 hardcode_libdir_separator \
29068 exclude_expsyms \
29069 include_expsyms \
29070 file_list_spec \
29071 variables_saved_for_relink \
29072 libname_spec \
29073 library_names_spec \
29074 soname_spec \
29075 install_override_mode \
29076 finish_eval \
29077 old_striplib \
29078 striplib; do
29079     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29080     *[\\\\\\\`\\"\\\$]*)
29081       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29082       ;;
29083     *)
29084       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29085       ;;
29086     esac
29087 done
29088
29089 # Double-quote double-evaled strings.
29090 for var in reload_cmds \
29091 old_postinstall_cmds \
29092 old_postuninstall_cmds \
29093 old_archive_cmds \
29094 extract_expsyms_cmds \
29095 old_archive_from_new_cmds \
29096 old_archive_from_expsyms_cmds \
29097 archive_cmds \
29098 archive_expsym_cmds \
29099 module_cmds \
29100 module_expsym_cmds \
29101 export_symbols_cmds \
29102 prelink_cmds \
29103 postlink_cmds \
29104 postinstall_cmds \
29105 postuninstall_cmds \
29106 finish_cmds \
29107 sys_lib_search_path_spec \
29108 configure_time_dlsearch_path \
29109 configure_time_lt_sys_library_path; do
29110     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29111     *[\\\\\\\`\\"\\\$]*)
29112       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29113       ;;
29114     *)
29115       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29116       ;;
29117     esac
29118 done
29119
29120 ac_aux_dir='$ac_aux_dir'
29121
29122 # See if we are running on zsh, and set the options that allow our
29123 # commands through without removal of \ escapes INIT.
29124 if test -n "\${ZSH_VERSION+set}"; then
29125    setopt NO_GLOB_SUBST
29126 fi
29127
29128
29129     PACKAGE='$PACKAGE'
29130     VERSION='$VERSION'
29131     RM='$RM'
29132     ofile='$ofile'
29133
29134
29135
29136
29137 _ACEOF
29138
29139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29140
29141 # Handling of arguments.
29142 for ac_config_target in $ac_config_targets
29143 do
29144   case $ac_config_target in
29145     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29146     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29147     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29148     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29149     "gl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gl/lib/Makefile" ;;
29150     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29151     "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
29152     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
29153     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29154
29155   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29156   esac
29157 done
29158
29159
29160 # If the user did not use the arguments to specify the items to instantiate,
29161 # then the envvar interface is used.  Set only those that are not.
29162 # We use the long form for the default assignment because of an extremely
29163 # bizarre bug on SunOS 4.1.3.
29164 if $ac_need_defaults; then
29165   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29166   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29167   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29168 fi
29169
29170 # Have a temporary directory for convenience.  Make it in the build tree
29171 # simply because there is no reason against having it here, and in addition,
29172 # creating and moving files from /tmp can sometimes cause problems.
29173 # Hook for its removal unless debugging.
29174 # Note that there is a small window in which the directory will not be cleaned:
29175 # after its creation but before its name has been assigned to `$tmp'.
29176 $debug ||
29177 {
29178   tmp= ac_tmp=
29179   trap 'exit_status=$?
29180   : "${ac_tmp:=$tmp}"
29181   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29182 ' 0
29183   trap 'as_fn_exit 1' 1 2 13 15
29184 }
29185 # Create a (secure) tmp directory for tmp files.
29186
29187 {
29188   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29189   test -d "$tmp"
29190 }  ||
29191 {
29192   tmp=./conf$$-$RANDOM
29193   (umask 077 && mkdir "$tmp")
29194 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29195 ac_tmp=$tmp
29196
29197 # Set up the scripts for CONFIG_FILES section.
29198 # No need to generate them if there are no CONFIG_FILES.
29199 # This happens for instance with `./config.status config.h'.
29200 if test -n "$CONFIG_FILES"; then
29201
29202
29203 ac_cr=`echo X | tr X '\015'`
29204 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29205 # But we know of no other shell where ac_cr would be empty at this
29206 # point, so we can use a bashism as a fallback.
29207 if test "x$ac_cr" = x; then
29208   eval ac_cr=\$\'\\r\'
29209 fi
29210 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29211 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29212   ac_cs_awk_cr='\\r'
29213 else
29214   ac_cs_awk_cr=$ac_cr
29215 fi
29216
29217 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29218 _ACEOF
29219
29220
29221 {
29222   echo "cat >conf$$subs.awk <<_ACEOF" &&
29223   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29224   echo "_ACEOF"
29225 } >conf$$subs.sh ||
29226   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29227 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29228 ac_delim='%!_!# '
29229 for ac_last_try in false false false false false :; do
29230   . ./conf$$subs.sh ||
29231     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29232
29233   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29234   if test $ac_delim_n = $ac_delim_num; then
29235     break
29236   elif $ac_last_try; then
29237     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29238   else
29239     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29240   fi
29241 done
29242 rm -f conf$$subs.sh
29243
29244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29245 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29246 _ACEOF
29247 sed -n '
29248 h
29249 s/^/S["/; s/!.*/"]=/
29250 p
29251 g
29252 s/^[^!]*!//
29253 :repl
29254 t repl
29255 s/'"$ac_delim"'$//
29256 t delim
29257 :nl
29258 h
29259 s/\(.\{148\}\)..*/\1/
29260 t more1
29261 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29262 p
29263 n
29264 b repl
29265 :more1
29266 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29267 p
29268 g
29269 s/.\{148\}//
29270 t nl
29271 :delim
29272 h
29273 s/\(.\{148\}\)..*/\1/
29274 t more2
29275 s/["\\]/\\&/g; s/^/"/; s/$/"/
29276 p
29277 b
29278 :more2
29279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29280 p
29281 g
29282 s/.\{148\}//
29283 t delim
29284 ' <conf$$subs.awk | sed '
29285 /^[^""]/{
29286   N
29287   s/\n//
29288 }
29289 ' >>$CONFIG_STATUS || ac_write_fail=1
29290 rm -f conf$$subs.awk
29291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29292 _ACAWK
29293 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29294   for (key in S) S_is_set[key] = 1
29295   FS = "\a"
29296
29297 }
29298 {
29299   line = $ 0
29300   nfields = split(line, field, "@")
29301   substed = 0
29302   len = length(field[1])
29303   for (i = 2; i < nfields; i++) {
29304     key = field[i]
29305     keylen = length(key)
29306     if (S_is_set[key]) {
29307       value = S[key]
29308       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29309       len += length(value) + length(field[++i])
29310       substed = 1
29311     } else
29312       len += 1 + keylen
29313   }
29314
29315   print line
29316 }
29317
29318 _ACAWK
29319 _ACEOF
29320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29321 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29322   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29323 else
29324   cat
29325 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29326   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29327 _ACEOF
29328
29329 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29330 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29331 # trailing colons and then remove the whole line if VPATH becomes empty
29332 # (actually we leave an empty line to preserve line numbers).
29333 if test "x$srcdir" = x.; then
29334   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
29335 h
29336 s///
29337 s/^/:/
29338 s/[      ]*$/:/
29339 s/:\$(srcdir):/:/g
29340 s/:\${srcdir}:/:/g
29341 s/:@srcdir@:/:/g
29342 s/^:*//
29343 s/:*$//
29344 x
29345 s/\(=[   ]*\).*/\1/
29346 G
29347 s/\n//
29348 s/^[^=]*=[       ]*$//
29349 }'
29350 fi
29351
29352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29353 fi # test -n "$CONFIG_FILES"
29354
29355 # Set up the scripts for CONFIG_HEADERS section.
29356 # No need to generate them if there are no CONFIG_HEADERS.
29357 # This happens for instance with `./config.status Makefile'.
29358 if test -n "$CONFIG_HEADERS"; then
29359 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29360 BEGIN {
29361 _ACEOF
29362
29363 # Transform confdefs.h into an awk script `defines.awk', embedded as
29364 # here-document in config.status, that substitutes the proper values into
29365 # config.h.in to produce config.h.
29366
29367 # Create a delimiter string that does not exist in confdefs.h, to ease
29368 # handling of long lines.
29369 ac_delim='%!_!# '
29370 for ac_last_try in false false :; do
29371   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29372   if test -z "$ac_tt"; then
29373     break
29374   elif $ac_last_try; then
29375     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29376   else
29377     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29378   fi
29379 done
29380
29381 # For the awk script, D is an array of macro values keyed by name,
29382 # likewise P contains macro parameters if any.  Preserve backslash
29383 # newline sequences.
29384
29385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29386 sed -n '
29387 s/.\{148\}/&'"$ac_delim"'/g
29388 t rset
29389 :rset
29390 s/^[     ]*#[    ]*define[       ][      ]*/ /
29391 t def
29392 d
29393 :def
29394 s/\\$//
29395 t bsnl
29396 s/["\\]/\\&/g
29397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29398 D["\1"]=" \3"/p
29399 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29400 d
29401 :bsnl
29402 s/["\\]/\\&/g
29403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29404 D["\1"]=" \3\\\\\\n"\\/p
29405 t cont
29406 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29407 t cont
29408 d
29409 :cont
29410 n
29411 s/.\{148\}/&'"$ac_delim"'/g
29412 t clear
29413 :clear
29414 s/\\$//
29415 t bsnlc
29416 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29417 d
29418 :bsnlc
29419 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29420 b cont
29421 ' <confdefs.h | sed '
29422 s/'"$ac_delim"'/"\\\
29423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29424
29425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29426   for (key in D) D_is_set[key] = 1
29427   FS = "\a"
29428 }
29429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29430   line = \$ 0
29431   split(line, arg, " ")
29432   if (arg[1] == "#") {
29433     defundef = arg[2]
29434     mac1 = arg[3]
29435   } else {
29436     defundef = substr(arg[1], 2)
29437     mac1 = arg[2]
29438   }
29439   split(mac1, mac2, "(") #)
29440   macro = mac2[1]
29441   prefix = substr(line, 1, index(line, defundef) - 1)
29442   if (D_is_set[macro]) {
29443     # Preserve the white space surrounding the "#".
29444     print prefix "define", macro P[macro] D[macro]
29445     next
29446   } else {
29447     # Replace #undef with comments.  This is necessary, for example,
29448     # in the case of _POSIX_SOURCE, which is predefined and required
29449     # on some systems where configure will not decide to define it.
29450     if (defundef == "undef") {
29451       print "/*", prefix defundef, macro, "*/"
29452       next
29453     }
29454   }
29455 }
29456 { print }
29457 _ACAWK
29458 _ACEOF
29459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29460   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29461 fi # test -n "$CONFIG_HEADERS"
29462
29463
29464 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29465 shift
29466 for ac_tag
29467 do
29468   case $ac_tag in
29469   :[FHLC]) ac_mode=$ac_tag; continue;;
29470   esac
29471   case $ac_mode$ac_tag in
29472   :[FHL]*:*);;
29473   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29474   :[FH]-) ac_tag=-:-;;
29475   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29476   esac
29477   ac_save_IFS=$IFS
29478   IFS=:
29479   set x $ac_tag
29480   IFS=$ac_save_IFS
29481   shift
29482   ac_file=$1
29483   shift
29484
29485   case $ac_mode in
29486   :L) ac_source=$1;;
29487   :[FH])
29488     ac_file_inputs=
29489     for ac_f
29490     do
29491       case $ac_f in
29492       -) ac_f="$ac_tmp/stdin";;
29493       *) # Look for the file first in the build tree, then in the source tree
29494          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29495          # because $ac_f cannot contain `:'.
29496          test -f "$ac_f" ||
29497            case $ac_f in
29498            [\\/$]*) false;;
29499            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29500            esac ||
29501            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29502       esac
29503       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29504       as_fn_append ac_file_inputs " '$ac_f'"
29505     done
29506
29507     # Let's still pretend it is `configure' which instantiates (i.e., don't
29508     # use $as_me), people would be surprised to read:
29509     #    /* config.h.  Generated by config.status.  */
29510     configure_input='Generated from '`
29511           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29512         `' by configure.'
29513     if test x"$ac_file" != x-; then
29514       configure_input="$ac_file.  $configure_input"
29515       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29516 $as_echo "$as_me: creating $ac_file" >&6;}
29517     fi
29518     # Neutralize special characters interpreted by sed in replacement strings.
29519     case $configure_input in #(
29520     *\&* | *\|* | *\\* )
29521        ac_sed_conf_input=`$as_echo "$configure_input" |
29522        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29523     *) ac_sed_conf_input=$configure_input;;
29524     esac
29525
29526     case $ac_tag in
29527     *:-:* | *:-) cat >"$ac_tmp/stdin" \
29528       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29529     esac
29530     ;;
29531   esac
29532
29533   ac_dir=`$as_dirname -- "$ac_file" ||
29534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29535          X"$ac_file" : 'X\(//\)[^/]' \| \
29536          X"$ac_file" : 'X\(//\)$' \| \
29537          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29538 $as_echo X"$ac_file" |
29539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29540             s//\1/
29541             q
29542           }
29543           /^X\(\/\/\)[^/].*/{
29544             s//\1/
29545             q
29546           }
29547           /^X\(\/\/\)$/{
29548             s//\1/
29549             q
29550           }
29551           /^X\(\/\).*/{
29552             s//\1/
29553             q
29554           }
29555           s/.*/./; q'`
29556   as_dir="$ac_dir"; as_fn_mkdir_p
29557   ac_builddir=.
29558
29559 case "$ac_dir" in
29560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29561 *)
29562   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29563   # A ".." for each directory in $ac_dir_suffix.
29564   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29565   case $ac_top_builddir_sub in
29566   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29567   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29568   esac ;;
29569 esac
29570 ac_abs_top_builddir=$ac_pwd
29571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29572 # for backward compatibility:
29573 ac_top_builddir=$ac_top_build_prefix
29574
29575 case $srcdir in
29576   .)  # We are building in place.
29577     ac_srcdir=.
29578     ac_top_srcdir=$ac_top_builddir_sub
29579     ac_abs_top_srcdir=$ac_pwd ;;
29580   [\\/]* | ?:[\\/]* )  # Absolute name.
29581     ac_srcdir=$srcdir$ac_dir_suffix;
29582     ac_top_srcdir=$srcdir
29583     ac_abs_top_srcdir=$srcdir ;;
29584   *) # Relative name.
29585     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29586     ac_top_srcdir=$ac_top_build_prefix$srcdir
29587     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29588 esac
29589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29590
29591
29592   case $ac_mode in
29593   :F)
29594   #
29595   # CONFIG_FILE
29596   #
29597
29598   case $INSTALL in
29599   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29600   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29601   esac
29602   ac_MKDIR_P=$MKDIR_P
29603   case $MKDIR_P in
29604   [\\/$]* | ?:[\\/]* ) ;;
29605   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29606   esac
29607 _ACEOF
29608
29609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29610 # If the template does not know about datarootdir, expand it.
29611 # FIXME: This hack should be removed a few years after 2.60.
29612 ac_datarootdir_hack=; ac_datarootdir_seen=
29613 ac_sed_dataroot='
29614 /datarootdir/ {
29615   p
29616   q
29617 }
29618 /@datadir@/p
29619 /@docdir@/p
29620 /@infodir@/p
29621 /@localedir@/p
29622 /@mandir@/p'
29623 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29624 *datarootdir*) ac_datarootdir_seen=yes;;
29625 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29626   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29627 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29628 _ACEOF
29629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29630   ac_datarootdir_hack='
29631   s&@datadir@&$datadir&g
29632   s&@docdir@&$docdir&g
29633   s&@infodir@&$infodir&g
29634   s&@localedir@&$localedir&g
29635   s&@mandir@&$mandir&g
29636   s&\\\${datarootdir}&$datarootdir&g' ;;
29637 esac
29638 _ACEOF
29639
29640 # Neutralize VPATH when `$srcdir' = `.'.
29641 # Shell code in configure.ac might set extrasub.
29642 # FIXME: do we really want to maintain this feature?
29643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29644 ac_sed_extra="$ac_vpsub
29645 $extrasub
29646 _ACEOF
29647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29648 :t
29649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29650 s|@configure_input@|$ac_sed_conf_input|;t t
29651 s&@top_builddir@&$ac_top_builddir_sub&;t t
29652 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29653 s&@srcdir@&$ac_srcdir&;t t
29654 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29655 s&@top_srcdir@&$ac_top_srcdir&;t t
29656 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29657 s&@builddir@&$ac_builddir&;t t
29658 s&@abs_builddir@&$ac_abs_builddir&;t t
29659 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29660 s&@INSTALL@&$ac_INSTALL&;t t
29661 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29662 $ac_datarootdir_hack
29663 "
29664 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29665   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29666
29667 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29668   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29669   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
29670       "$ac_tmp/out"`; test -z "$ac_out"; } &&
29671   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29672 which seems to be undefined.  Please make sure it is defined" >&5
29673 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29674 which seems to be undefined.  Please make sure it is defined" >&2;}
29675
29676   rm -f "$ac_tmp/stdin"
29677   case $ac_file in
29678   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29679   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29680   esac \
29681   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29682  ;;
29683   :H)
29684   #
29685   # CONFIG_HEADER
29686   #
29687   if test x"$ac_file" != x-; then
29688     {
29689       $as_echo "/* $configure_input  */" \
29690       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29691     } >"$ac_tmp/config.h" \
29692       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29693     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29694       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29695 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29696     else
29697       rm -f "$ac_file"
29698       mv "$ac_tmp/config.h" "$ac_file" \
29699         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29700     fi
29701   else
29702     $as_echo "/* $configure_input  */" \
29703       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29704       || as_fn_error $? "could not create -" "$LINENO" 5
29705   fi
29706 # Compute "$ac_file"'s index in $config_headers.
29707 _am_arg="$ac_file"
29708 _am_stamp_count=1
29709 for _am_header in $config_headers :; do
29710   case $_am_header in
29711     $_am_arg | $_am_arg:* )
29712       break ;;
29713     * )
29714       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29715   esac
29716 done
29717 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29718 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29719          X"$_am_arg" : 'X\(//\)[^/]' \| \
29720          X"$_am_arg" : 'X\(//\)$' \| \
29721          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29722 $as_echo X"$_am_arg" |
29723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29724             s//\1/
29725             q
29726           }
29727           /^X\(\/\/\)[^/].*/{
29728             s//\1/
29729             q
29730           }
29731           /^X\(\/\/\)$/{
29732             s//\1/
29733             q
29734           }
29735           /^X\(\/\).*/{
29736             s//\1/
29737             q
29738           }
29739           s/.*/./; q'`/stamp-h$_am_stamp_count
29740  ;;
29741
29742   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29743 $as_echo "$as_me: executing $ac_file commands" >&6;}
29744  ;;
29745   esac
29746
29747
29748   case $ac_file$ac_mode in
29749     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29750   # Older Autoconf quotes --file arguments for eval, but not when files
29751   # are listed without --file.  Let's play safe and only enable the eval
29752   # if we detect the quoting.
29753   # TODO: see whether this extra hack can be removed once we start
29754   # requiring Autoconf 2.70 or later.
29755   case $CONFIG_FILES in #(
29756   *\'*) :
29757     eval set x "$CONFIG_FILES" ;; #(
29758   *) :
29759     set x $CONFIG_FILES ;; #(
29760   *) :
29761      ;;
29762 esac
29763   shift
29764   # Used to flag and report bootstrapping failures.
29765   am_rc=0
29766   for am_mf
29767   do
29768     # Strip MF so we end up with the name of the file.
29769     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
29770     # Check whether this is an Automake generated Makefile which includes
29771     # dependency-tracking related rules and includes.
29772     # Grep'ing the whole file directly is not great: AIX grep has a line
29773     # limit of 2048, but all sed's we know have understand at least 4000.
29774     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29775       || continue
29776     am_dirpart=`$as_dirname -- "$am_mf" ||
29777 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29778          X"$am_mf" : 'X\(//\)[^/]' \| \
29779          X"$am_mf" : 'X\(//\)$' \| \
29780          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29781 $as_echo X"$am_mf" |
29782     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29783             s//\1/
29784             q
29785           }
29786           /^X\(\/\/\)[^/].*/{
29787             s//\1/
29788             q
29789           }
29790           /^X\(\/\/\)$/{
29791             s//\1/
29792             q
29793           }
29794           /^X\(\/\).*/{
29795             s//\1/
29796             q
29797           }
29798           s/.*/./; q'`
29799     am_filepart=`$as_basename -- "$am_mf" ||
29800 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29801          X"$am_mf" : 'X\(//\)$' \| \
29802          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29803 $as_echo X/"$am_mf" |
29804     sed '/^.*\/\([^/][^/]*\)\/*$/{
29805             s//\1/
29806             q
29807           }
29808           /^X\/\(\/\/\)$/{
29809             s//\1/
29810             q
29811           }
29812           /^X\/\(\/\).*/{
29813             s//\1/
29814             q
29815           }
29816           s/.*/./; q'`
29817     { echo "$as_me:$LINENO: cd "$am_dirpart" \
29818       && sed -e '/# am--include-marker/d' "$am_filepart" \
29819         | $MAKE -f - am--depfiles" >&5
29820    (cd "$am_dirpart" \
29821       && sed -e '/# am--include-marker/d' "$am_filepart" \
29822         | $MAKE -f - am--depfiles) >&5 2>&5
29823    ac_status=$?
29824    echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825    (exit $ac_status); } || am_rc=$?
29826   done
29827   if test $am_rc -ne 0; then
29828     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29830 as_fn_error $? "Something went wrong bootstrapping makefile fragments
29831     for automatic dependency tracking.  Try re-running configure with the
29832     '--disable-dependency-tracking' option to at least be able to build
29833     the package (albeit without support for automatic dependency tracking).
29834 See \`config.log' for more details" "$LINENO" 5; }
29835   fi
29836   { am_dirpart=; unset am_dirpart;}
29837   { am_filepart=; unset am_filepart;}
29838   { am_mf=; unset am_mf;}
29839   { am_rc=; unset am_rc;}
29840   rm -f conftest-deps.mk
29841 }
29842  ;;
29843     "libtool":C)
29844
29845     # See if we are running on zsh, and set the options that allow our
29846     # commands through without removal of \ escapes.
29847     if test -n "${ZSH_VERSION+set}"; then
29848       setopt NO_GLOB_SUBST
29849     fi
29850
29851     cfgfile=${ofile}T
29852     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29853     $RM "$cfgfile"
29854
29855     cat <<_LT_EOF >> "$cfgfile"
29856 #! $SHELL
29857 # Generated automatically by $as_me ($PACKAGE) $VERSION
29858 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29859
29860 # Provide generalized library-building support services.
29861 # Written by Gordon Matzigkeit, 1996
29862
29863 # Copyright (C) 2014 Free Software Foundation, Inc.
29864 # This is free software; see the source for copying conditions.  There is NO
29865 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29866
29867 # GNU Libtool is free software; you can redistribute it and/or modify
29868 # it under the terms of the GNU General Public License as published by
29869 # the Free Software Foundation; either version 2 of of the License, or
29870 # (at your option) any later version.
29871 #
29872 # As a special exception to the GNU General Public License, if you
29873 # distribute this file as part of a program or library that is built
29874 # using GNU Libtool, you may include this file under the  same
29875 # distribution terms that you use for the rest of that program.
29876 #
29877 # GNU Libtool is distributed in the hope that it will be useful, but
29878 # WITHOUT ANY WARRANTY; without even the implied warranty of
29879 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29880 # GNU General Public License for more details.
29881 #
29882 # You should have received a copy of the GNU General Public License
29883 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
29884
29885
29886 # The names of the tagged configurations supported by this script.
29887 available_tags=''
29888
29889 # Configured defaults for sys_lib_dlsearch_path munging.
29890 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29891
29892 # ### BEGIN LIBTOOL CONFIG
29893
29894 # Which release of libtool.m4 was used?
29895 macro_version=$macro_version
29896 macro_revision=$macro_revision
29897
29898 # Whether or not to build static libraries.
29899 build_old_libs=$enable_static
29900
29901 # Whether or not to build shared libraries.
29902 build_libtool_libs=$enable_shared
29903
29904 # What type of objects to build.
29905 pic_mode=$pic_mode
29906
29907 # Whether or not to optimize for fast installation.
29908 fast_install=$enable_fast_install
29909
29910 # Shared archive member basename,for filename based shared library versioning on AIX.
29911 shared_archive_member_spec=$shared_archive_member_spec
29912
29913 # Shell to use when invoking shell scripts.
29914 SHELL=$lt_SHELL
29915
29916 # An echo program that protects backslashes.
29917 ECHO=$lt_ECHO
29918
29919 # The PATH separator for the build system.
29920 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29921
29922 # The host system.
29923 host_alias=$host_alias
29924 host=$host
29925 host_os=$host_os
29926
29927 # The build system.
29928 build_alias=$build_alias
29929 build=$build
29930 build_os=$build_os
29931
29932 # A sed program that does not truncate output.
29933 SED=$lt_SED
29934
29935 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29936 Xsed="\$SED -e 1s/^X//"
29937
29938 # A grep program that handles long lines.
29939 GREP=$lt_GREP
29940
29941 # An ERE matcher.
29942 EGREP=$lt_EGREP
29943
29944 # A literal string matcher.
29945 FGREP=$lt_FGREP
29946
29947 # A BSD- or MS-compatible name lister.
29948 NM=$lt_NM
29949
29950 # Whether we need soft or hard links.
29951 LN_S=$lt_LN_S
29952
29953 # What is the maximum length of a command?
29954 max_cmd_len=$max_cmd_len
29955
29956 # Object file suffix (normally "o").
29957 objext=$ac_objext
29958
29959 # Executable file suffix (normally "").
29960 exeext=$exeext
29961
29962 # whether the shell understands "unset".
29963 lt_unset=$lt_unset
29964
29965 # turn spaces into newlines.
29966 SP2NL=$lt_lt_SP2NL
29967
29968 # turn newlines into spaces.
29969 NL2SP=$lt_lt_NL2SP
29970
29971 # convert \$build file names to \$host format.
29972 to_host_file_cmd=$lt_cv_to_host_file_cmd
29973
29974 # convert \$build files to toolchain format.
29975 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29976
29977 # An object symbol dumper.
29978 OBJDUMP=$lt_OBJDUMP
29979
29980 # Method to check whether dependent libraries are shared objects.
29981 deplibs_check_method=$lt_deplibs_check_method
29982
29983 # Command to use when deplibs_check_method = "file_magic".
29984 file_magic_cmd=$lt_file_magic_cmd
29985
29986 # How to find potential files when deplibs_check_method = "file_magic".
29987 file_magic_glob=$lt_file_magic_glob
29988
29989 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29990 want_nocaseglob=$lt_want_nocaseglob
29991
29992 # DLL creation program.
29993 DLLTOOL=$lt_DLLTOOL
29994
29995 # Command to associate shared and link libraries.
29996 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29997
29998 # The archiver.
29999 AR=$lt_AR
30000
30001 # Flags to create an archive.
30002 AR_FLAGS=$lt_AR_FLAGS
30003
30004 # How to feed a file listing to the archiver.
30005 archiver_list_spec=$lt_archiver_list_spec
30006
30007 # A symbol stripping program.
30008 STRIP=$lt_STRIP
30009
30010 # Commands used to install an old-style archive.
30011 RANLIB=$lt_RANLIB
30012 old_postinstall_cmds=$lt_old_postinstall_cmds
30013 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30014
30015 # Whether to use a lock for old archive extraction.
30016 lock_old_archive_extraction=$lock_old_archive_extraction
30017
30018 # A C compiler.
30019 LTCC=$lt_CC
30020
30021 # LTCC compiler flags.
30022 LTCFLAGS=$lt_CFLAGS
30023
30024 # Take the output of nm and produce a listing of raw symbols and C names.
30025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30026
30027 # Transform the output of nm in a proper C declaration.
30028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30029
30030 # Transform the output of nm into a list of symbols to manually relocate.
30031 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
30032
30033 # Transform the output of nm in a C name address pair.
30034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30035
30036 # Transform the output of nm in a C name address pair when lib prefix is needed.
30037 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30038
30039 # The name lister interface.
30040 nm_interface=$lt_lt_cv_nm_interface
30041
30042 # Specify filename containing input files for \$NM.
30043 nm_file_list_spec=$lt_nm_file_list_spec
30044
30045 # The root where to search for dependent libraries,and where our libraries should be installed.
30046 lt_sysroot=$lt_sysroot
30047
30048 # Command to truncate a binary pipe.
30049 lt_truncate_bin=$lt_lt_cv_truncate_bin
30050
30051 # The name of the directory that contains temporary libtool files.
30052 objdir=$objdir
30053
30054 # Used to examine libraries when file_magic_cmd begins with "file".
30055 MAGIC_CMD=$MAGIC_CMD
30056
30057 # Must we lock files when doing compilation?
30058 need_locks=$lt_need_locks
30059
30060 # Manifest tool.
30061 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30062
30063 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30064 DSYMUTIL=$lt_DSYMUTIL
30065
30066 # Tool to change global to local symbols on Mac OS X.
30067 NMEDIT=$lt_NMEDIT
30068
30069 # Tool to manipulate fat objects and archives on Mac OS X.
30070 LIPO=$lt_LIPO
30071
30072 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30073 OTOOL=$lt_OTOOL
30074
30075 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30076 OTOOL64=$lt_OTOOL64
30077
30078 # Old archive suffix (normally "a").
30079 libext=$libext
30080
30081 # Shared library suffix (normally ".so").
30082 shrext_cmds=$lt_shrext_cmds
30083
30084 # The commands to extract the exported symbol list from a shared archive.
30085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30086
30087 # Variables whose values should be saved in libtool wrapper scripts and
30088 # restored at link time.
30089 variables_saved_for_relink=$lt_variables_saved_for_relink
30090
30091 # Do we need the "lib" prefix for modules?
30092 need_lib_prefix=$need_lib_prefix
30093
30094 # Do we need a version for libraries?
30095 need_version=$need_version
30096
30097 # Library versioning type.
30098 version_type=$version_type
30099
30100 # Shared library runtime path variable.
30101 runpath_var=$runpath_var
30102
30103 # Shared library path variable.
30104 shlibpath_var=$shlibpath_var
30105
30106 # Is shlibpath searched before the hard-coded library search path?
30107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30108
30109 # Format of library name prefix.
30110 libname_spec=$lt_libname_spec
30111
30112 # List of archive names.  First name is the real one, the rest are links.
30113 # The last name is the one that the linker finds with -lNAME
30114 library_names_spec=$lt_library_names_spec
30115
30116 # The coded name of the library, if different from the real name.
30117 soname_spec=$lt_soname_spec
30118
30119 # Permission mode override for installation of shared libraries.
30120 install_override_mode=$lt_install_override_mode
30121
30122 # Command to use after installation of a shared archive.
30123 postinstall_cmds=$lt_postinstall_cmds
30124
30125 # Command to use after uninstallation of a shared archive.
30126 postuninstall_cmds=$lt_postuninstall_cmds
30127
30128 # Commands used to finish a libtool library installation in a directory.
30129 finish_cmds=$lt_finish_cmds
30130
30131 # As "finish_cmds", except a single script fragment to be evaled but
30132 # not shown.
30133 finish_eval=$lt_finish_eval
30134
30135 # Whether we should hardcode library paths into libraries.
30136 hardcode_into_libs=$hardcode_into_libs
30137
30138 # Compile-time system search path for libraries.
30139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30140
30141 # Detected run-time system search path for libraries.
30142 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30143
30144 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30145 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30146
30147 # Whether dlopen is supported.
30148 dlopen_support=$enable_dlopen
30149
30150 # Whether dlopen of programs is supported.
30151 dlopen_self=$enable_dlopen_self
30152
30153 # Whether dlopen of statically linked programs is supported.
30154 dlopen_self_static=$enable_dlopen_self_static
30155
30156 # Commands to strip libraries.
30157 old_striplib=$lt_old_striplib
30158 striplib=$lt_striplib
30159
30160
30161 # The linker used to build libraries.
30162 LD=$lt_LD
30163
30164 # How to create reloadable object files.
30165 reload_flag=$lt_reload_flag
30166 reload_cmds=$lt_reload_cmds
30167
30168 # Commands used to build an old-style archive.
30169 old_archive_cmds=$lt_old_archive_cmds
30170
30171 # A language specific compiler.
30172 CC=$lt_compiler
30173
30174 # Is the compiler the GNU compiler?
30175 with_gcc=$GCC
30176
30177 # Compiler flag to turn off builtin functions.
30178 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30179
30180 # Additional compiler flags for building library objects.
30181 pic_flag=$lt_lt_prog_compiler_pic
30182
30183 # How to pass a linker flag through the compiler.
30184 wl=$lt_lt_prog_compiler_wl
30185
30186 # Compiler flag to prevent dynamic linking.
30187 link_static_flag=$lt_lt_prog_compiler_static
30188
30189 # Does compiler simultaneously support -c and -o options?
30190 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30191
30192 # Whether or not to add -lc for building shared libraries.
30193 build_libtool_need_lc=$archive_cmds_need_lc
30194
30195 # Whether or not to disallow shared libs when runtime libs are static.
30196 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30197
30198 # Compiler flag to allow reflexive dlopens.
30199 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30200
30201 # Compiler flag to generate shared objects directly from archives.
30202 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30203
30204 # Whether the compiler copes with passing no objects directly.
30205 compiler_needs_object=$lt_compiler_needs_object
30206
30207 # Create an old-style archive from a shared archive.
30208 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30209
30210 # Create a temporary old-style archive to link instead of a shared archive.
30211 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30212
30213 # Commands used to build a shared archive.
30214 archive_cmds=$lt_archive_cmds
30215 archive_expsym_cmds=$lt_archive_expsym_cmds
30216
30217 # Commands used to build a loadable module if different from building
30218 # a shared archive.
30219 module_cmds=$lt_module_cmds
30220 module_expsym_cmds=$lt_module_expsym_cmds
30221
30222 # Whether we are building with GNU ld or not.
30223 with_gnu_ld=$lt_with_gnu_ld
30224
30225 # Flag that allows shared libraries with undefined symbols to be built.
30226 allow_undefined_flag=$lt_allow_undefined_flag
30227
30228 # Flag that enforces no undefined symbols.
30229 no_undefined_flag=$lt_no_undefined_flag
30230
30231 # Flag to hardcode \$libdir into a binary during linking.
30232 # This must work even if \$libdir does not exist
30233 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30234
30235 # Whether we need a single "-rpath" flag with a separated argument.
30236 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30237
30238 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30239 # DIR into the resulting binary.
30240 hardcode_direct=$hardcode_direct
30241
30242 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30243 # DIR into the resulting binary and the resulting library dependency is
30244 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30245 # library is relocated.
30246 hardcode_direct_absolute=$hardcode_direct_absolute
30247
30248 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30249 # into the resulting binary.
30250 hardcode_minus_L=$hardcode_minus_L
30251
30252 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30253 # into the resulting binary.
30254 hardcode_shlibpath_var=$hardcode_shlibpath_var
30255
30256 # Set to "yes" if building a shared library automatically hardcodes DIR
30257 # into the library and all subsequent libraries and executables linked
30258 # against it.
30259 hardcode_automatic=$hardcode_automatic
30260
30261 # Set to yes if linker adds runtime paths of dependent libraries
30262 # to runtime path list.
30263 inherit_rpath=$inherit_rpath
30264
30265 # Whether libtool must link a program against all its dependency libraries.
30266 link_all_deplibs=$link_all_deplibs
30267
30268 # Set to "yes" if exported symbols are required.
30269 always_export_symbols=$always_export_symbols
30270
30271 # The commands to list exported symbols.
30272 export_symbols_cmds=$lt_export_symbols_cmds
30273
30274 # Symbols that should not be listed in the preloaded symbols.
30275 exclude_expsyms=$lt_exclude_expsyms
30276
30277 # Symbols that must always be exported.
30278 include_expsyms=$lt_include_expsyms
30279
30280 # Commands necessary for linking programs (against libraries) with templates.
30281 prelink_cmds=$lt_prelink_cmds
30282
30283 # Commands necessary for finishing linking programs.
30284 postlink_cmds=$lt_postlink_cmds
30285
30286 # Specify filename containing input files.
30287 file_list_spec=$lt_file_list_spec
30288
30289 # How to hardcode a shared library path into an executable.
30290 hardcode_action=$hardcode_action
30291
30292 # ### END LIBTOOL CONFIG
30293
30294 _LT_EOF
30295
30296     cat <<'_LT_EOF' >> "$cfgfile"
30297
30298 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30299
30300 # func_munge_path_list VARIABLE PATH
30301 # -----------------------------------
30302 # VARIABLE is name of variable containing _space_ separated list of
30303 # directories to be munged by the contents of PATH, which is string
30304 # having a format:
30305 # "DIR[:DIR]:"
30306 #       string "DIR[ DIR]" will be prepended to VARIABLE
30307 # ":DIR[:DIR]"
30308 #       string "DIR[ DIR]" will be appended to VARIABLE
30309 # "DIRP[:DIRP]::[DIRA:]DIRA"
30310 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30311 #       "DIRA[ DIRA]" will be appended to VARIABLE
30312 # "DIR[:DIR]"
30313 #       VARIABLE will be replaced by "DIR[ DIR]"
30314 func_munge_path_list ()
30315 {
30316     case x$2 in
30317     x)
30318         ;;
30319     *:)
30320         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30321         ;;
30322     x:*)
30323         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30324         ;;
30325     *::*)
30326         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30327         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30328         ;;
30329     *)
30330         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30331         ;;
30332     esac
30333 }
30334
30335
30336 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
30337 func_cc_basename ()
30338 {
30339     for cc_temp in $*""; do
30340       case $cc_temp in
30341         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30342         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30343         \-*) ;;
30344         *) break;;
30345       esac
30346     done
30347     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30348 }
30349
30350
30351 # ### END FUNCTIONS SHARED WITH CONFIGURE
30352
30353 _LT_EOF
30354
30355   case $host_os in
30356   aix3*)
30357     cat <<\_LT_EOF >> "$cfgfile"
30358 # AIX sometimes has problems with the GCC collect2 program.  For some
30359 # reason, if we set the COLLECT_NAMES environment variable, the problems
30360 # vanish in a puff of smoke.
30361 if test set != "${COLLECT_NAMES+set}"; then
30362   COLLECT_NAMES=
30363   export COLLECT_NAMES
30364 fi
30365 _LT_EOF
30366     ;;
30367   esac
30368
30369
30370 ltmain=$ac_aux_dir/ltmain.sh
30371
30372
30373   # We use sed instead of cat because bash on DJGPP gets confused if
30374   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30375   # text mode, it properly converts lines to CR/LF.  This bash problem
30376   # is reportedly fixed, but why not run on old versions too?
30377   sed '$q' "$ltmain" >> "$cfgfile" \
30378      || (rm -f "$cfgfile"; exit 1)
30379
30380    mv -f "$cfgfile" "$ofile" ||
30381     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30382   chmod +x "$ofile"
30383
30384  ;;
30385
30386   esac
30387 done # for ac_tag
30388
30389
30390 as_fn_exit 0
30391 _ACEOF
30392 ac_clean_files=$ac_clean_files_save
30393
30394 test $ac_write_fail = 0 ||
30395   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30396
30397
30398 # configure is writing to config.log, and then calls config.status.
30399 # config.status does its own redirection, appending to config.log.
30400 # Unfortunately, on DOS this fails, as config.log is still kept open
30401 # by configure, so config.status won't be able to write to it; its
30402 # output is simply discarded.  So we exec the FD to /dev/null,
30403 # effectively closing config.log, so it can be properly (re)opened and
30404 # appended to by config.status.  When coming back to configure, we
30405 # need to make the FD available again.
30406 if test "$no_create" != yes; then
30407   ac_cs_success=:
30408   ac_config_status_args=
30409   test "$silent" = yes &&
30410     ac_config_status_args="$ac_config_status_args --quiet"
30411   exec 5>/dev/null
30412   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30413   exec 5>>config.log
30414   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30415   # would make configure fail if this is the last instruction.
30416   $ac_cs_success || as_fn_exit 1
30417 fi
30418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30419   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30421 fi
30422