Upgrade to libtasn1 4.19.0
[platform/upstream/libtasn1.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU Libtasn1 4.19.0.
4 #
5 # Report bugs to <help-libtasn1@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
187
188   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192     PATH=/empty FPATH=/empty; export PATH FPATH
193     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: help-libtasn1@gnu.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312   return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320   set +e
321   as_fn_set_status $1
322   exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329   return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339   case $as_dir in #(
340   -*) as_dir=./$as_dir;;
341   esac
342   test -d "$as_dir" || eval $as_mkdir_p || {
343     as_dirs=
344     while :; do
345       case $as_dir in #(
346       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347       *) as_qdir=$as_dir;;
348       esac
349       as_dirs="'$as_qdir' $as_dirs"
350       as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352          X"$as_dir" : 'X\(//\)[^/]' \| \
353          X"$as_dir" : 'X\(//\)$' \| \
354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\/\)[^/].*/{
361             s//\1/
362             q
363           }
364           /^X\(\/\/\)$/{
365             s//\1/
366             q
367           }
368           /^X\(\/\).*/{
369             s//\1/
370             q
371           }
372           s/.*/./; q'`
373       test -d "$as_dir" && break
374     done
375     test -z "$as_dirs" || eval "mkdir $as_dirs"
376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386   test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396   eval 'as_fn_append ()
397   {
398     eval $1+=\$2
399   }'
400 else $as_nop
401   as_fn_append ()
402   {
403     eval $1=\$$1\$2
404   }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414   eval 'as_fn_arith ()
415   {
416     as_val=$(( $* ))
417   }'
418 else $as_nop
419   as_fn_arith ()
420   {
421     as_val=`expr "$@" || test $? -eq 1`
422   }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430   return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441   as_status=$1; test $as_status -eq 0 && as_status=1
442   if test "$4"; then
443     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445   fi
446   printf "%s\n" "$as_me: error: $2" >&2
447   as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451    test "X`expr 00001 : '.*\(...\)'`" = X001; then
452   as_expr=expr
453 else
454   as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458   as_basename=basename
459 else
460   as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471          X"$0" : 'X\(//\)$' \| \
472          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474     sed '/^.*\/\([^/][^/]*\)\/*$/{
475             s//\1/
476             q
477           }
478           /^X\/\(\/\/\)$/{
479             s//\1/
480             q
481           }
482           /^X\/\(\/\).*/{
483             s//\1/
484             q
485           }
486           s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496   as_lineno_1=$LINENO as_lineno_1a=$LINENO
497   as_lineno_2=$LINENO as_lineno_2a=$LINENO
498   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501   sed -n '
502     p
503     /[$]LINENO/=
504   ' <$as_myself |
505     sed '
506       s/[$]LINENO.*/&-/
507       t lineno
508       b
509       :lineno
510       N
511       :loop
512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513       t loop
514       s/-\n.*//
515     ' >$as_me.lineno &&
516   chmod +x "$as_me.lineno" ||
517     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520   # already done that, so ensure we don't try to do so again and fall
521   # in an infinite loop.  This has already happened in practice.
522   _as_can_reexec=no; export _as_can_reexec
523   # Don't try to exec as it changes $[0], causing all sort of problems
524   # (the dirname of $[0] is not the place where we might find the
525   # original and so on.  Autoconf is especially sensitive to this).
526   . "./$as_me.lineno"
527   # Exit status is that of the last command.
528   exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538   case `echo 'xy\c'` in
539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
540   xy)  ECHO_C='\c';;
541   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542        ECHO_T=' ';;
543   esac;;
544 *)
545   ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n.  New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557   rm -f conf$$.dir/conf$$.file
558 else
559   rm -f conf$$.dir
560   mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563   if ln -s conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s='ln -s'
565     # ... but there are two gotchas:
566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568     # In both cases, we have to default to `cp -pR'.
569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570       as_ln_s='cp -pR'
571   elif ln conf$$.file conf$$ 2>/dev/null; then
572     as_ln_s=ln
573   else
574     as_ln_s='cp -pR'
575   fi
576 else
577   as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583   as_mkdir_p='mkdir -p "$as_dir"'
584 else
585   test -d ./-p && rmdir ./-p
586   as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='GNU Libtasn1'
623 PACKAGE_TARNAME='libtasn1'
624 PACKAGE_VERSION='4.19.0'
625 PACKAGE_STRING='GNU Libtasn1 4.19.0'
626 PACKAGE_BUGREPORT='help-libtasn1@gnu.org'
627 PACKAGE_URL='https://www.gnu.org/software/libtasn1/'
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_func_c_list=
662 gl_getopt_required=POSIX
663 ac_subst_vars='sgltests_LIBOBJDEPS
664 sgltests_LTLIBOBJS
665 sgltests_LIBOBJS
666 sgl_LIBOBJDEPS
667 sgl_LTLIBOBJS
668 sgl_LIBOBJS
669 gltests_LIBOBJDEPS
670 gltests_LTLIBOBJS
671 gltests_LIBOBJS
672 gl_LIBOBJDEPS
673 gl_LTLIBOBJS
674 gl_LIBOBJS
675 CONFIG_INCLUDE
676 am__EXEEXT_FALSE
677 am__EXEEXT_TRUE
678 LTLIBOBJS
679 LIBOBJS
680 FUZZ_LIBS
681 FUZZING_FALSE
682 FUZZING_TRUE
683 LIB_FUZZING_ENGINE
684 WARN_CFLAGS
685 CODE_COVERAGE_LIBS
686 CODE_COVERAGE_CXXFLAGS
687 CODE_COVERAGE_CFLAGS
688 CODE_COVERAGE_CPPFLAGS
689 GENHTML
690 LCOV
691 GCOV
692 ifnGNUmake
693 ifGNUmake
694 CODE_COVERAGE_ENABLED
695 CODE_COVERAGE_ENABLED_FALSE
696 CODE_COVERAGE_ENABLED_TRUE
697 sgltests_WITNESS
698 GL_SGL_GNULIB_MDA_WCSDUP
699 GL_SGL_GNULIB_WCSFTIME
700 GL_SGL_GNULIB_WCSWIDTH
701 GL_SGL_GNULIB_WCSTOK
702 GL_SGL_GNULIB_WCSSTR
703 GL_SGL_GNULIB_WCSPBRK
704 GL_SGL_GNULIB_WCSSPN
705 GL_SGL_GNULIB_WCSCSPN
706 GL_SGL_GNULIB_WCSRCHR
707 GL_SGL_GNULIB_WCSCHR
708 GL_SGL_GNULIB_WCSDUP
709 GL_SGL_GNULIB_WCSXFRM
710 GL_SGL_GNULIB_WCSCOLL
711 GL_SGL_GNULIB_WCSNCASECMP
712 GL_SGL_GNULIB_WCSCASECMP
713 GL_SGL_GNULIB_WCSNCMP
714 GL_SGL_GNULIB_WCSCMP
715 GL_SGL_GNULIB_WCSNCAT
716 GL_SGL_GNULIB_WCSCAT
717 GL_SGL_GNULIB_WCPNCPY
718 GL_SGL_GNULIB_WCSNCPY
719 GL_SGL_GNULIB_WCPCPY
720 GL_SGL_GNULIB_WCSCPY
721 GL_SGL_GNULIB_WCSNLEN
722 GL_SGL_GNULIB_WCSLEN
723 GL_SGL_GNULIB_WMEMSET
724 GL_SGL_GNULIB_WMEMPCPY
725 GL_SGL_GNULIB_WMEMMOVE
726 GL_SGL_GNULIB_WMEMCPY
727 GL_SGL_GNULIB_WMEMCMP
728 GL_SGL_GNULIB_WMEMCHR
729 GL_SGL_GNULIB_WCWIDTH
730 GL_SGL_GNULIB_WCSNRTOMBS
731 GL_SGL_GNULIB_WCSRTOMBS
732 GL_SGL_GNULIB_WCRTOMB
733 GL_SGL_GNULIB_MBSNRTOWCS
734 GL_SGL_GNULIB_MBSRTOWCS
735 GL_SGL_GNULIB_MBRLEN
736 GL_SGL_GNULIB_MBRTOWC
737 GL_SGL_GNULIB_MBSINIT
738 GL_SGL_GNULIB_WCTOB
739 GL_SGL_GNULIB_BTOWC
740 HAVE_CRTDEFS_H
741 HAVE_WINT_T
742 HAVE_FEATURES_H
743 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
744 NEXT_WCHAR_H
745 REPLACE_WCSTOK
746 REPLACE_WCSFTIME
747 REPLACE_WCSWIDTH
748 REPLACE_WCWIDTH
749 REPLACE_WCSNRTOMBS
750 REPLACE_WCSRTOMBS
751 REPLACE_WCRTOMB
752 REPLACE_MBSNRTOWCS
753 REPLACE_MBSRTOWCS
754 REPLACE_MBRLEN
755 REPLACE_MBRTOWC
756 REPLACE_MBSINIT
757 REPLACE_WCTOB
758 REPLACE_BTOWC
759 REPLACE_MBSTATE_T
760 HAVE_DECL_WCWIDTH
761 HAVE_DECL_WCSDUP
762 HAVE_DECL_WCTOB
763 HAVE_WCSFTIME
764 HAVE_WCSWIDTH
765 HAVE_WCSTOK
766 HAVE_WCSSTR
767 HAVE_WCSPBRK
768 HAVE_WCSSPN
769 HAVE_WCSCSPN
770 HAVE_WCSRCHR
771 HAVE_WCSCHR
772 HAVE_WCSDUP
773 HAVE_WCSXFRM
774 HAVE_WCSCOLL
775 HAVE_WCSNCASECMP
776 HAVE_WCSCASECMP
777 HAVE_WCSNCMP
778 HAVE_WCSCMP
779 HAVE_WCSNCAT
780 HAVE_WCSCAT
781 HAVE_WCPNCPY
782 HAVE_WCSNCPY
783 HAVE_WCPCPY
784 HAVE_WCSCPY
785 HAVE_WCSNLEN
786 HAVE_WCSLEN
787 HAVE_WMEMSET
788 HAVE_WMEMPCPY
789 HAVE_WMEMMOVE
790 HAVE_WMEMCPY
791 HAVE_WMEMCMP
792 HAVE_WMEMCHR
793 HAVE_WCSNRTOMBS
794 HAVE_WCSRTOMBS
795 HAVE_WCRTOMB
796 HAVE_MBSNRTOWCS
797 HAVE_MBSRTOWCS
798 HAVE_MBRLEN
799 HAVE_MBRTOWC
800 HAVE_MBSINIT
801 HAVE_BTOWC
802 GL_SGL_GNULIB_MDA_TZSET
803 GL_SGL_GNULIB_TZSET
804 GL_SGL_GNULIB_TIME_RZ
805 GL_SGL_GNULIB_TIME_R
806 GL_SGL_GNULIB_TIMESPEC_GETRES
807 GL_SGL_GNULIB_TIMESPEC_GET
808 GL_SGL_GNULIB_TIMEGM
809 GL_SGL_GNULIB_STRPTIME
810 GL_SGL_GNULIB_STRFTIME
811 GL_SGL_GNULIB_NANOSLEEP
812 GL_SGL_GNULIB_LOCALTIME
813 GL_SGL_GNULIB_MKTIME
814 GL_SGL_GNULIB_CTIME
815 TIME_H_DEFINES_TIME_UTC
816 UNISTD_H_DEFINES_STRUCT_TIMESPEC
817 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
818 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
819 TIME_H_DEFINES_STRUCT_TIMESPEC
820 NEXT_AS_FIRST_DIRECTIVE_TIME_H
821 NEXT_TIME_H
822 REPLACE_LOCALTIME
823 REPLACE_GMTIME
824 GNULIB_GETTIMEOFDAY
825 REPLACE_TZSET
826 REPLACE_TIMEGM
827 REPLACE_STRFTIME
828 REPLACE_NANOSLEEP
829 REPLACE_MKTIME
830 REPLACE_LOCALTIME_R
831 REPLACE_CTIME
832 HAVE_TIMEZONE_T
833 HAVE_TIMESPEC_GETRES
834 HAVE_TIMESPEC_GET
835 HAVE_TIMEGM
836 HAVE_STRPTIME
837 HAVE_NANOSLEEP
838 HAVE_DECL_LOCALTIME_R
839 GL_COND_OBJ_STDIO_WRITE_FALSE
840 GL_COND_OBJ_STDIO_WRITE_TRUE
841 GL_COND_OBJ_STDIO_READ_FALSE
842 GL_COND_OBJ_STDIO_READ_TRUE
843 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
844 NEXT_STDIO_H
845 GL_GENERATE_STDCKDINT_H_FALSE
846 GL_GENERATE_STDCKDINT_H_TRUE
847 STDCKDINT_H
848 GL_GENERATE_STDARG_H_FALSE
849 GL_GENERATE_STDARG_H_TRUE
850 STDARG_H
851 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
852 NEXT_STDARG_H
853 GL_COND_OBJ_STAT_FALSE
854 GL_COND_OBJ_STAT_TRUE
855 GL_COND_OBJ_OPEN_FALSE
856 GL_COND_OBJ_OPEN_TRUE
857 GL_COND_OBJ_MSVC_NOTHROW_FALSE
858 GL_COND_OBJ_MSVC_NOTHROW_TRUE
859 GL_COND_OBJ_MSVC_INVAL_FALSE
860 GL_COND_OBJ_MSVC_INVAL_TRUE
861 GL_COND_OBJ_LSEEK_FALSE
862 GL_COND_OBJ_LSEEK_TRUE
863 GL_SGL_GNULIB_STRTOUMAX
864 GL_SGL_GNULIB_STRTOIMAX
865 GL_SGL_GNULIB_IMAXDIV
866 GL_SGL_GNULIB_IMAXABS
867 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
868 NEXT_INTTYPES_H
869 UINT64_MAX_EQ_ULONG_MAX
870 UINT32_MAX_LT_UINTMAX_MAX
871 PRIPTR_PREFIX
872 INT64_MAX_EQ_LONG_MAX
873 INT32_MAX_LT_INTMAX_MAX
874 REPLACE_STRTOUMAX
875 REPLACE_STRTOIMAX
876 HAVE_IMAXDIV_T
877 HAVE_DECL_STRTOUMAX
878 HAVE_DECL_STRTOIMAX
879 HAVE_DECL_IMAXDIV
880 HAVE_DECL_IMAXABS
881 GL_SGL_GNULIB_GETTIMEOFDAY
882 GL_COND_OBJ_GETTIMEOFDAY_FALSE
883 GL_COND_OBJ_GETTIMEOFDAY_TRUE
884 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
885 NEXT_SYS_TIME_H
886 REPLACE_STRUCT_TIMEVAL
887 REPLACE_GETTIMEOFDAY
888 HAVE_SYS_TIME_H
889 HAVE_STRUCT_TIMEVAL
890 HAVE_GETTIMEOFDAY
891 LTLIBINTL
892 LIBINTL
893 GL_COND_OBJ_GETOPT_FALSE
894 GL_COND_OBJ_GETOPT_TRUE
895 GL_GENERATE_GETOPT_CDEFS_H_FALSE
896 GL_GENERATE_GETOPT_CDEFS_H_TRUE
897 GETOPT_CDEFS_H
898 GL_GENERATE_GETOPT_H_FALSE
899 GL_GENERATE_GETOPT_H_TRUE
900 GETOPT_H
901 HAVE_SYS_CDEFS_H
902 HAVE_GETOPT_H
903 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
904 NEXT_GETOPT_H
905 GL_COND_OBJ_GETDTABLESIZE_FALSE
906 GL_COND_OBJ_GETDTABLESIZE_TRUE
907 GL_COND_OBJ_FTELLO_FALSE
908 GL_COND_OBJ_FTELLO_TRUE
909 GL_COND_OBJ_FTELL_FALSE
910 GL_COND_OBJ_FTELL_TRUE
911 GL_SGL_GNULIB_MDA_UMASK
912 GL_SGL_GNULIB_MDA_MKDIR
913 GL_SGL_GNULIB_MDA_CHMOD
914 GL_SGL_GNULIB_OVERRIDES_STRUCT_STAT
915 GL_SGL_GNULIB_UTIMENSAT
916 GL_SGL_GNULIB_STAT
917 GL_SGL_GNULIB_MKNODAT
918 GL_SGL_GNULIB_MKNOD
919 GL_SGL_GNULIB_MKFIFOAT
920 GL_SGL_GNULIB_MKFIFO
921 GL_SGL_GNULIB_MKDIRAT
922 GL_SGL_GNULIB_MKDIR
923 GL_SGL_GNULIB_LSTAT
924 GL_SGL_GNULIB_LCHMOD
925 GL_SGL_GNULIB_GETUMASK
926 GL_SGL_GNULIB_FUTIMENS
927 GL_SGL_GNULIB_FSTATAT
928 GL_SGL_GNULIB_FSTAT
929 GL_SGL_GNULIB_FCHMODAT
930 GL_SGL_GNULIB_CHMOD
931 WINDOWS_64_BIT_ST_SIZE
932 WINDOWS_STAT_TIMESPEC
933 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
934 NEXT_SYS_STAT_H
935 GL_COND_OBJ_FSTAT_FALSE
936 GL_COND_OBJ_FSTAT_TRUE
937 REPLACE_UTIMENSAT
938 REPLACE_STAT
939 REPLACE_MKNODAT
940 REPLACE_MKNOD
941 REPLACE_MKFIFOAT
942 REPLACE_MKFIFO
943 REPLACE_MKDIR
944 REPLACE_LSTAT
945 REPLACE_FUTIMENS
946 REPLACE_FSTATAT
947 REPLACE_FSTAT
948 REPLACE_FCHMODAT
949 REPLACE_CHMOD
950 HAVE_UTIMENSAT
951 HAVE_MKNODAT
952 HAVE_MKNOD
953 HAVE_MKFIFOAT
954 HAVE_MKFIFO
955 HAVE_MKDIRAT
956 HAVE_LSTAT
957 HAVE_LCHMOD
958 HAVE_GETUMASK
959 HAVE_FUTIMENS
960 HAVE_FSTATAT
961 HAVE_FCHMODAT
962 GL_COND_OBJ_FREE_FALSE
963 GL_COND_OBJ_FREE_TRUE
964 GL_SGL_GNULIB_MDA_TEMPNAM
965 GL_SGL_GNULIB_MDA_PUTW
966 GL_SGL_GNULIB_MDA_GETW
967 GL_SGL_GNULIB_MDA_FILENO
968 GL_SGL_GNULIB_MDA_FDOPEN
969 GL_SGL_GNULIB_MDA_FCLOSEALL
970 GL_SGL_GNULIB_VSPRINTF_POSIX
971 GL_SGL_GNULIB_VSNPRINTF
972 GL_SGL_GNULIB_VPRINTF_POSIX
973 GL_SGL_GNULIB_VPRINTF
974 GL_SGL_GNULIB_VFPRINTF_POSIX
975 GL_SGL_GNULIB_VFPRINTF
976 GL_SGL_GNULIB_VDPRINTF
977 GL_SGL_GNULIB_VSCANF
978 GL_SGL_GNULIB_VFSCANF
979 GL_SGL_GNULIB_VASPRINTF
980 GL_SGL_GNULIB_TMPFILE
981 GL_SGL_GNULIB_STDIO_H_SIGPIPE
982 GL_SGL_GNULIB_STDIO_H_NONBLOCKING
983 GL_SGL_GNULIB_SPRINTF_POSIX
984 GL_SGL_GNULIB_SNPRINTF
985 GL_SGL_GNULIB_SCANF
986 GL_SGL_GNULIB_RENAMEAT
987 GL_SGL_GNULIB_RENAME
988 GL_SGL_GNULIB_REMOVE
989 GL_SGL_GNULIB_PUTS
990 GL_SGL_GNULIB_PUTCHAR
991 GL_SGL_GNULIB_PUTC
992 GL_SGL_GNULIB_PRINTF_POSIX
993 GL_SGL_GNULIB_PRINTF
994 GL_SGL_GNULIB_POPEN
995 GL_SGL_GNULIB_PERROR
996 GL_SGL_GNULIB_PCLOSE
997 GL_SGL_GNULIB_OBSTACK_PRINTF_POSIX
998 GL_SGL_GNULIB_OBSTACK_PRINTF
999 GL_SGL_GNULIB_GETLINE
1000 GL_SGL_GNULIB_GETDELIM
1001 GL_SGL_GNULIB_GETCHAR
1002 GL_SGL_GNULIB_GETC
1003 GL_SGL_GNULIB_FWRITE
1004 GL_SGL_GNULIB_FTELLO
1005 GL_SGL_GNULIB_FTELL
1006 GL_SGL_GNULIB_FSEEKO
1007 GL_SGL_GNULIB_FSEEK
1008 GL_SGL_GNULIB_FSCANF
1009 GL_SGL_GNULIB_FREOPEN
1010 GL_SGL_GNULIB_FREAD
1011 GL_SGL_GNULIB_FPUTS
1012 GL_SGL_GNULIB_FPUTC
1013 GL_SGL_GNULIB_FPURGE
1014 GL_SGL_GNULIB_FPRINTF_POSIX
1015 GL_SGL_GNULIB_FPRINTF
1016 GL_SGL_GNULIB_FOPEN_GNU
1017 GL_SGL_GNULIB_FOPEN
1018 GL_SGL_GNULIB_FGETS
1019 GL_SGL_GNULIB_FGETC
1020 GL_SGL_GNULIB_FFLUSH
1021 GL_SGL_GNULIB_FDOPEN
1022 GL_SGL_GNULIB_FCLOSE
1023 GL_SGL_GNULIB_DPRINTF
1024 REPLACE_VSPRINTF
1025 REPLACE_VSNPRINTF
1026 REPLACE_VPRINTF
1027 REPLACE_VFPRINTF
1028 REPLACE_VDPRINTF
1029 REPLACE_VASPRINTF
1030 REPLACE_TMPFILE
1031 REPLACE_STDIO_WRITE_FUNCS
1032 REPLACE_STDIO_READ_FUNCS
1033 REPLACE_SPRINTF
1034 REPLACE_SNPRINTF
1035 REPLACE_RENAMEAT
1036 REPLACE_RENAME
1037 REPLACE_REMOVE
1038 REPLACE_PRINTF
1039 REPLACE_POPEN
1040 REPLACE_PERROR
1041 REPLACE_OBSTACK_PRINTF
1042 REPLACE_GETLINE
1043 REPLACE_GETDELIM
1044 REPLACE_FTELLO
1045 REPLACE_FTELL
1046 REPLACE_FSEEKO
1047 REPLACE_FSEEK
1048 REPLACE_FREOPEN
1049 REPLACE_FPURGE
1050 REPLACE_FPRINTF
1051 REPLACE_FOPEN_FOR_FOPEN_GNU
1052 REPLACE_FOPEN
1053 REPLACE_FFLUSH
1054 REPLACE_FDOPEN
1055 REPLACE_FCLOSE
1056 REPLACE_DPRINTF
1057 HAVE_VDPRINTF
1058 HAVE_VASPRINTF
1059 HAVE_RENAMEAT
1060 HAVE_POPEN
1061 HAVE_PCLOSE
1062 HAVE_FTELLO
1063 HAVE_FSEEKO
1064 HAVE_DPRINTF
1065 HAVE_DECL_VSNPRINTF
1066 HAVE_DECL_SNPRINTF
1067 HAVE_DECL_OBSTACK_PRINTF
1068 HAVE_DECL_GETLINE
1069 HAVE_DECL_GETDELIM
1070 HAVE_DECL_FTELLO
1071 HAVE_DECL_FSEEKO
1072 HAVE_DECL_FPURGE
1073 HAVE_DECL_FCLOSEALL
1074 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1075 NEXT_FCNTL_H
1076 GL_SGL_GNULIB_MDA_OPEN
1077 GL_SGL_GNULIB_MDA_CREAT
1078 GL_SGL_GNULIB_OPENAT
1079 GL_SGL_GNULIB_OPEN
1080 GL_SGL_GNULIB_NONBLOCKING
1081 GL_SGL_GNULIB_FCNTL
1082 GL_SGL_GNULIB_CREAT
1083 GL_COND_OBJ_FCNTL_FALSE
1084 GL_COND_OBJ_FCNTL_TRUE
1085 REPLACE_OPENAT
1086 REPLACE_OPEN
1087 REPLACE_FCNTL
1088 REPLACE_CREAT
1089 HAVE_OPENAT
1090 HAVE_FCNTL
1091 GL_SGL_GNULIB_MDA_PUTENV
1092 GL_SGL_GNULIB_MDA_MKTEMP
1093 GL_SGL_GNULIB_MDA_GCVT
1094 GL_SGL_GNULIB_MDA_FCVT
1095 GL_SGL_GNULIB_MDA_ECVT
1096 GL_SGL_GNULIB_WCTOMB
1097 GL_SGL_GNULIB_UNSETENV
1098 GL_SGL_GNULIB_UNLOCKPT
1099 GL_SGL_GNULIB_SYSTEM_POSIX
1100 GL_SGL_GNULIB_STRTOULL
1101 GL_SGL_GNULIB_STRTOUL
1102 GL_SGL_GNULIB_STRTOLL
1103 GL_SGL_GNULIB_STRTOLD
1104 GL_SGL_GNULIB_STRTOL
1105 GL_SGL_GNULIB_STRTOD
1106 GL_SGL_GNULIB_SETENV
1107 GL_SGL_GNULIB_SECURE_GETENV
1108 GL_SGL_GNULIB_RPMATCH
1109 GL_SGL_GNULIB_REALPATH
1110 GL_SGL_GNULIB_REALLOC_POSIX
1111 GL_SGL_GNULIB_REALLOC_GNU
1112 GL_SGL_GNULIB_REALLOCARRAY
1113 GL_SGL_GNULIB_RANDOM_R
1114 GL_SGL_GNULIB_RANDOM
1115 GL_SGL_GNULIB_QSORT_R
1116 GL_SGL_GNULIB_PUTENV
1117 GL_SGL_GNULIB_PTSNAME_R
1118 GL_SGL_GNULIB_PTSNAME
1119 GL_SGL_GNULIB_POSIX_OPENPT
1120 GL_SGL_GNULIB_POSIX_MEMALIGN
1121 GL_SGL_GNULIB_MKSTEMPS
1122 GL_SGL_GNULIB_MKSTEMP
1123 GL_SGL_GNULIB_MKOSTEMPS
1124 GL_SGL_GNULIB_MKOSTEMP
1125 GL_SGL_GNULIB_MKDTEMP
1126 GL_SGL_GNULIB_MBTOWC
1127 GL_SGL_GNULIB_MALLOC_POSIX
1128 GL_SGL_GNULIB_MALLOC_GNU
1129 GL_SGL_GNULIB_GRANTPT
1130 GL_SGL_GNULIB_GETSUBOPT
1131 GL_SGL_GNULIB_GETLOADAVG
1132 GL_SGL_GNULIB_FREE_POSIX
1133 GL_SGL_GNULIB_CANONICALIZE_FILE_NAME
1134 GL_SGL_GNULIB_CALLOC_POSIX
1135 GL_SGL_GNULIB_CALLOC_GNU
1136 GL_SGL_GNULIB_ATOLL
1137 GL_SGL_GNULIB_ALIGNED_ALLOC
1138 GL_SGL_GNULIB__EXIT
1139 GL_SGL_GNULIB_MDA_STRDUP
1140 GL_SGL_GNULIB_MDA_MEMCCPY
1141 GL_SGL_GNULIB_STRVERSCMP
1142 GL_SGL_GNULIB_STRSIGNAL
1143 GL_SGL_GNULIB_SIGDESCR_NP
1144 GL_SGL_GNULIB_SIGABBREV_NP
1145 GL_SGL_GNULIB_STRERRORNAME_NP
1146 GL_SGL_GNULIB_STRERROR_R
1147 GL_SGL_GNULIB_STRERROR
1148 GL_SGL_GNULIB_MBSTOK_R
1149 GL_SGL_GNULIB_MBSSEP
1150 GL_SGL_GNULIB_MBSSPN
1151 GL_SGL_GNULIB_MBSPBRK
1152 GL_SGL_GNULIB_MBSCSPN
1153 GL_SGL_GNULIB_MBSCASESTR
1154 GL_SGL_GNULIB_MBSPCASECMP
1155 GL_SGL_GNULIB_MBSNCASECMP
1156 GL_SGL_GNULIB_MBSCASECMP
1157 GL_SGL_GNULIB_MBSSTR
1158 GL_SGL_GNULIB_MBSRCHR
1159 GL_SGL_GNULIB_MBSCHR
1160 GL_SGL_GNULIB_MBSNLEN
1161 GL_SGL_GNULIB_MBSLEN
1162 GL_SGL_GNULIB_STRTOK_R
1163 GL_SGL_GNULIB_STRCASESTR
1164 GL_SGL_GNULIB_STRSTR
1165 GL_SGL_GNULIB_STRSEP
1166 GL_SGL_GNULIB_STRPBRK
1167 GL_SGL_GNULIB_STRNLEN
1168 GL_SGL_GNULIB_STRNDUP
1169 GL_SGL_GNULIB_STRNCAT
1170 GL_SGL_GNULIB_STRDUP
1171 GL_SGL_GNULIB_STRCHRNUL
1172 GL_SGL_GNULIB_STPNCPY
1173 GL_SGL_GNULIB_STPCPY
1174 GL_SGL_GNULIB_RAWMEMCHR
1175 GL_SGL_GNULIB_MEMRCHR
1176 GL_SGL_GNULIB_MEMPCPY
1177 GL_SGL_GNULIB_MEMMEM
1178 GL_SGL_GNULIB_MEMCHR
1179 GL_SGL_GNULIB_FFSLL
1180 GL_SGL_GNULIB_FFSL
1181 GL_SGL_GNULIB_EXPLICIT_BZERO
1182 GL_COND_OBJ_EXPLICIT_BZERO_FALSE
1183 GL_COND_OBJ_EXPLICIT_BZERO_TRUE
1184 GL_GENERATE_ERRNO_H_FALSE
1185 GL_GENERATE_ERRNO_H_TRUE
1186 ERRNO_H
1187 EOVERFLOW_VALUE
1188 EOVERFLOW_HIDDEN
1189 ENOLINK_VALUE
1190 ENOLINK_HIDDEN
1191 EMULTIHOP_VALUE
1192 EMULTIHOP_HIDDEN
1193 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1194 NEXT_ERRNO_H
1195 GL_COND_OBJ_DUP2_FALSE
1196 GL_COND_OBJ_DUP2_TRUE
1197 GL_SGL_GNULIB_MDA_WRITE
1198 GL_SGL_GNULIB_MDA_UNLINK
1199 GL_SGL_GNULIB_MDA_SWAB
1200 GL_SGL_GNULIB_MDA_RMDIR
1201 GL_SGL_GNULIB_MDA_READ
1202 GL_SGL_GNULIB_MDA_LSEEK
1203 GL_SGL_GNULIB_MDA_ISATTY
1204 GL_SGL_GNULIB_MDA_GETPID
1205 GL_SGL_GNULIB_MDA_GETCWD
1206 GL_SGL_GNULIB_MDA_EXECVPE
1207 GL_SGL_GNULIB_MDA_EXECVP
1208 GL_SGL_GNULIB_MDA_EXECVE
1209 GL_SGL_GNULIB_MDA_EXECV
1210 GL_SGL_GNULIB_MDA_EXECLP
1211 GL_SGL_GNULIB_MDA_EXECLE
1212 GL_SGL_GNULIB_MDA_EXECL
1213 GL_SGL_GNULIB_MDA_DUP2
1214 GL_SGL_GNULIB_MDA_DUP
1215 GL_SGL_GNULIB_MDA_CLOSE
1216 GL_SGL_GNULIB_MDA_CHDIR
1217 GL_SGL_GNULIB_MDA_ACCESS
1218 GL_SGL_GNULIB_WRITE
1219 GL_SGL_GNULIB_USLEEP
1220 GL_SGL_GNULIB_UNLINKAT
1221 GL_SGL_GNULIB_UNLINK
1222 GL_SGL_GNULIB_UNISTD_H_SIGPIPE
1223 GL_SGL_GNULIB_UNISTD_H_NONBLOCKING
1224 GL_SGL_GNULIB_UNISTD_H_GETOPT
1225 GL_SGL_GNULIB_TTYNAME_R
1226 GL_SGL_GNULIB_TRUNCATE
1227 GL_SGL_GNULIB_SYMLINKAT
1228 GL_SGL_GNULIB_SYMLINK
1229 GL_SGL_GNULIB_SLEEP
1230 GL_SGL_GNULIB_SETHOSTNAME
1231 GL_SGL_GNULIB_RMDIR
1232 GL_SGL_GNULIB_READLINKAT
1233 GL_SGL_GNULIB_READLINK
1234 GL_SGL_GNULIB_READ
1235 GL_SGL_GNULIB_PWRITE
1236 GL_SGL_GNULIB_PREAD
1237 GL_SGL_GNULIB_PIPE2
1238 GL_SGL_GNULIB_PIPE
1239 GL_SGL_GNULIB_LSEEK
1240 GL_SGL_GNULIB_LINKAT
1241 GL_SGL_GNULIB_LINK
1242 GL_SGL_GNULIB_LCHOWN
1243 GL_SGL_GNULIB_ISATTY
1244 GL_SGL_GNULIB_GROUP_MEMBER
1245 GL_SGL_GNULIB_GETUSERSHELL
1246 GL_SGL_GNULIB_GETPASS_GNU
1247 GL_SGL_GNULIB_GETPASS
1248 GL_SGL_GNULIB_GETPAGESIZE
1249 GL_SGL_GNULIB_GETOPT_POSIX
1250 GL_SGL_GNULIB_GETLOGIN_R
1251 GL_SGL_GNULIB_GETLOGIN
1252 GL_SGL_GNULIB_GETHOSTNAME
1253 GL_SGL_GNULIB_GETGROUPS
1254 GL_SGL_GNULIB_GETENTROPY
1255 GL_SGL_GNULIB_GETDTABLESIZE
1256 GL_SGL_GNULIB_GETDOMAINNAME
1257 GL_SGL_GNULIB_GETCWD
1258 GL_SGL_GNULIB_FTRUNCATE
1259 GL_SGL_GNULIB_FSYNC
1260 GL_SGL_GNULIB_FDATASYNC
1261 GL_SGL_GNULIB_FCHOWNAT
1262 GL_SGL_GNULIB_FCHDIR
1263 GL_SGL_GNULIB_FACCESSAT
1264 GL_SGL_GNULIB_EXECVPE
1265 GL_SGL_GNULIB_EXECVP
1266 GL_SGL_GNULIB_EXECVE
1267 GL_SGL_GNULIB_EXECV
1268 GL_SGL_GNULIB_EXECLP
1269 GL_SGL_GNULIB_EXECLE
1270 GL_SGL_GNULIB_EXECL
1271 GL_SGL_GNULIB_EUIDACCESS
1272 GL_SGL_GNULIB_ENVIRON
1273 GL_SGL_GNULIB_DUP3
1274 GL_SGL_GNULIB_DUP2
1275 GL_SGL_GNULIB_DUP
1276 GL_SGL_GNULIB_COPY_FILE_RANGE
1277 GL_SGL_GNULIB_CLOSE
1278 GL_SGL_GNULIB_CHOWN
1279 GL_SGL_GNULIB_CHDIR
1280 GL_SGL_GNULIB_ACCESS
1281 GL_COND_OBJ_CLOSE_FALSE
1282 GL_COND_OBJ_CLOSE_TRUE
1283 HAVE_WINSOCK2_H
1284 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1285 LIB_CLOCK_GETTIME
1286 GL_GENERATE_ALLOCA_H_FALSE
1287 GL_GENERATE_ALLOCA_H_TRUE
1288 ALLOCA_H
1289 HAVE_ALLOCA_H
1290 ALLOCA
1291 LIBTESTS_LIBDEPS
1292 GL_CFLAG_GNULIB_WARNINGS
1293 gltests_WITNESS
1294 GL_CXXFLAG_ALLOW_WARNINGS
1295 GL_CFLAG_ALLOW_WARNINGS
1296 LOG_VALGRIND
1297 AM_VALGRINDFLAGS
1298 VALGRINDFLAGS
1299 DEFAULT_VALGRINDFLAGS
1300 VALGRIND_PROGRAM
1301 VALGRIND
1302 GL_GNULIB_MDA_WRITE
1303 GL_GNULIB_MDA_UNLINK
1304 GL_GNULIB_MDA_SWAB
1305 GL_GNULIB_MDA_RMDIR
1306 GL_GNULIB_MDA_READ
1307 GL_GNULIB_MDA_LSEEK
1308 GL_GNULIB_MDA_ISATTY
1309 GL_GNULIB_MDA_GETPID
1310 GL_GNULIB_MDA_GETCWD
1311 GL_GNULIB_MDA_EXECVPE
1312 GL_GNULIB_MDA_EXECVP
1313 GL_GNULIB_MDA_EXECVE
1314 GL_GNULIB_MDA_EXECV
1315 GL_GNULIB_MDA_EXECLP
1316 GL_GNULIB_MDA_EXECLE
1317 GL_GNULIB_MDA_EXECL
1318 GL_GNULIB_MDA_DUP2
1319 GL_GNULIB_MDA_DUP
1320 GL_GNULIB_MDA_CLOSE
1321 GL_GNULIB_MDA_CHDIR
1322 GL_GNULIB_MDA_ACCESS
1323 GL_GNULIB_WRITE
1324 GL_GNULIB_USLEEP
1325 GL_GNULIB_UNLINKAT
1326 GL_GNULIB_UNLINK
1327 GL_GNULIB_UNISTD_H_SIGPIPE
1328 GL_GNULIB_UNISTD_H_NONBLOCKING
1329 GL_GNULIB_UNISTD_H_GETOPT
1330 GL_GNULIB_TTYNAME_R
1331 GL_GNULIB_TRUNCATE
1332 GL_GNULIB_SYMLINKAT
1333 GL_GNULIB_SYMLINK
1334 GL_GNULIB_SLEEP
1335 GL_GNULIB_SETHOSTNAME
1336 GL_GNULIB_RMDIR
1337 GL_GNULIB_READLINKAT
1338 GL_GNULIB_READLINK
1339 GL_GNULIB_READ
1340 GL_GNULIB_PWRITE
1341 GL_GNULIB_PREAD
1342 GL_GNULIB_PIPE2
1343 GL_GNULIB_PIPE
1344 GL_GNULIB_LSEEK
1345 GL_GNULIB_LINKAT
1346 GL_GNULIB_LINK
1347 GL_GNULIB_LCHOWN
1348 GL_GNULIB_ISATTY
1349 GL_GNULIB_GROUP_MEMBER
1350 GL_GNULIB_GETUSERSHELL
1351 GL_GNULIB_GETPASS_GNU
1352 GL_GNULIB_GETPASS
1353 GL_GNULIB_GETPAGESIZE
1354 GL_GNULIB_GETOPT_POSIX
1355 GL_GNULIB_GETLOGIN_R
1356 GL_GNULIB_GETLOGIN
1357 GL_GNULIB_GETHOSTNAME
1358 GL_GNULIB_GETGROUPS
1359 GL_GNULIB_GETENTROPY
1360 GL_GNULIB_GETDTABLESIZE
1361 GL_GNULIB_GETDOMAINNAME
1362 GL_GNULIB_GETCWD
1363 GL_GNULIB_FTRUNCATE
1364 GL_GNULIB_FSYNC
1365 GL_GNULIB_FDATASYNC
1366 GL_GNULIB_FCHOWNAT
1367 GL_GNULIB_FCHDIR
1368 GL_GNULIB_FACCESSAT
1369 GL_GNULIB_EXECVPE
1370 GL_GNULIB_EXECVP
1371 GL_GNULIB_EXECVE
1372 GL_GNULIB_EXECV
1373 GL_GNULIB_EXECLP
1374 GL_GNULIB_EXECLE
1375 GL_GNULIB_EXECL
1376 GL_GNULIB_EUIDACCESS
1377 GL_GNULIB_ENVIRON
1378 GL_GNULIB_DUP3
1379 GL_GNULIB_DUP2
1380 GL_GNULIB_DUP
1381 GL_GNULIB_COPY_FILE_RANGE
1382 GL_GNULIB_CLOSE
1383 GL_GNULIB_CHOWN
1384 GL_GNULIB_CHDIR
1385 GL_GNULIB_ACCESS
1386 HAVE_UNISTD_H
1387 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
1388 NEXT_UNISTD_H
1389 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1390 UNISTD_H_HAVE_WINSOCK2_H
1391 UNISTD_H_HAVE_SYS_RANDOM_H
1392 REPLACE_WRITE
1393 REPLACE_USLEEP
1394 REPLACE_UNLINKAT
1395 REPLACE_UNLINK
1396 REPLACE_TTYNAME_R
1397 REPLACE_TRUNCATE
1398 REPLACE_SYMLINKAT
1399 REPLACE_SYMLINK
1400 REPLACE_SLEEP
1401 REPLACE_RMDIR
1402 REPLACE_READLINKAT
1403 REPLACE_READLINK
1404 REPLACE_READ
1405 REPLACE_PWRITE
1406 REPLACE_PREAD
1407 REPLACE_LSEEK
1408 REPLACE_LINKAT
1409 REPLACE_LINK
1410 REPLACE_LCHOWN
1411 REPLACE_ISATTY
1412 REPLACE_GETPASS_FOR_GETPASS_GNU
1413 REPLACE_GETPASS
1414 REPLACE_GETPAGESIZE
1415 REPLACE_GETGROUPS
1416 REPLACE_GETLOGIN_R
1417 REPLACE_GETDTABLESIZE
1418 REPLACE_GETDOMAINNAME
1419 REPLACE_GETCWD
1420 REPLACE_FTRUNCATE
1421 REPLACE_FCHOWNAT
1422 REPLACE_FACCESSAT
1423 REPLACE_EXECVPE
1424 REPLACE_EXECVP
1425 REPLACE_EXECVE
1426 REPLACE_EXECV
1427 REPLACE_EXECLP
1428 REPLACE_EXECLE
1429 REPLACE_EXECL
1430 REPLACE_DUP2
1431 REPLACE_DUP
1432 REPLACE_COPY_FILE_RANGE
1433 REPLACE_CLOSE
1434 REPLACE_CHOWN
1435 REPLACE_ACCESS
1436 HAVE_SYS_PARAM_H
1437 HAVE_OS_H
1438 HAVE_DECL_TTYNAME_R
1439 HAVE_DECL_TRUNCATE
1440 HAVE_DECL_SETHOSTNAME
1441 HAVE_DECL_GETUSERSHELL
1442 HAVE_DECL_GETPAGESIZE
1443 HAVE_DECL_GETLOGIN_R
1444 HAVE_DECL_GETLOGIN
1445 HAVE_DECL_GETDOMAINNAME
1446 HAVE_DECL_FDATASYNC
1447 HAVE_DECL_FCHDIR
1448 HAVE_DECL_EXECVPE
1449 HAVE_DECL_ENVIRON
1450 HAVE_USLEEP
1451 HAVE_UNLINKAT
1452 HAVE_SYMLINKAT
1453 HAVE_SYMLINK
1454 HAVE_SLEEP
1455 HAVE_SETHOSTNAME
1456 HAVE_READLINKAT
1457 HAVE_READLINK
1458 HAVE_PWRITE
1459 HAVE_PREAD
1460 HAVE_PIPE2
1461 HAVE_PIPE
1462 HAVE_LINKAT
1463 HAVE_LINK
1464 HAVE_LCHOWN
1465 HAVE_GROUP_MEMBER
1466 HAVE_GETPASS
1467 HAVE_GETPAGESIZE
1468 HAVE_GETLOGIN
1469 HAVE_GETHOSTNAME
1470 HAVE_GETGROUPS
1471 HAVE_GETENTROPY
1472 HAVE_GETDTABLESIZE
1473 HAVE_FTRUNCATE
1474 HAVE_FSYNC
1475 HAVE_FDATASYNC
1476 HAVE_FCHOWNAT
1477 HAVE_FCHDIR
1478 HAVE_FACCESSAT
1479 HAVE_EXECVPE
1480 HAVE_EUIDACCESS
1481 HAVE_DUP3
1482 HAVE_COPY_FILE_RANGE
1483 HAVE_CHOWN
1484 WINDOWS_STAT_INODES
1485 WINDOWS_64_BIT_OFF_T
1486 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1487 NEXT_SYS_TYPES_H
1488 GL_COND_OBJ_STRVERSCMP_FALSE
1489 GL_COND_OBJ_STRVERSCMP_TRUE
1490 GL_GNULIB_MDA_STRDUP
1491 GL_GNULIB_MDA_MEMCCPY
1492 GL_GNULIB_STRVERSCMP
1493 GL_GNULIB_STRSIGNAL
1494 GL_GNULIB_SIGDESCR_NP
1495 GL_GNULIB_SIGABBREV_NP
1496 GL_GNULIB_STRERRORNAME_NP
1497 GL_GNULIB_STRERROR_R
1498 GL_GNULIB_STRERROR
1499 GL_GNULIB_MBSTOK_R
1500 GL_GNULIB_MBSSEP
1501 GL_GNULIB_MBSSPN
1502 GL_GNULIB_MBSPBRK
1503 GL_GNULIB_MBSCSPN
1504 GL_GNULIB_MBSCASESTR
1505 GL_GNULIB_MBSPCASECMP
1506 GL_GNULIB_MBSNCASECMP
1507 GL_GNULIB_MBSCASECMP
1508 GL_GNULIB_MBSSTR
1509 GL_GNULIB_MBSRCHR
1510 GL_GNULIB_MBSCHR
1511 GL_GNULIB_MBSNLEN
1512 GL_GNULIB_MBSLEN
1513 GL_GNULIB_STRTOK_R
1514 GL_GNULIB_STRCASESTR
1515 GL_GNULIB_STRSTR
1516 GL_GNULIB_STRSEP
1517 GL_GNULIB_STRPBRK
1518 GL_GNULIB_STRNLEN
1519 GL_GNULIB_STRNDUP
1520 GL_GNULIB_STRNCAT
1521 GL_GNULIB_STRDUP
1522 GL_GNULIB_STRCHRNUL
1523 GL_GNULIB_STPNCPY
1524 GL_GNULIB_STPCPY
1525 GL_GNULIB_RAWMEMCHR
1526 GL_GNULIB_MEMRCHR
1527 GL_GNULIB_MEMPCPY
1528 GL_GNULIB_MEMMEM
1529 GL_GNULIB_MEMCHR
1530 GL_GNULIB_FFSLL
1531 GL_GNULIB_FFSL
1532 GL_GNULIB_EXPLICIT_BZERO
1533 NEXT_AS_FIRST_DIRECTIVE_STRING_H
1534 NEXT_STRING_H
1535 UNDEFINE_STRTOK_R
1536 REPLACE_STRSIGNAL
1537 REPLACE_STRERRORNAME_NP
1538 REPLACE_STRERROR_R
1539 REPLACE_STRERROR
1540 REPLACE_STRTOK_R
1541 REPLACE_STRCASESTR
1542 REPLACE_STRSTR
1543 REPLACE_STRNLEN
1544 REPLACE_STRNDUP
1545 REPLACE_STRNCAT
1546 REPLACE_STRDUP
1547 REPLACE_STRCHRNUL
1548 REPLACE_STPNCPY
1549 REPLACE_MEMMEM
1550 REPLACE_MEMCHR
1551 REPLACE_FFSLL
1552 HAVE_STRVERSCMP
1553 HAVE_DECL_STRSIGNAL
1554 HAVE_SIGDESCR_NP
1555 HAVE_SIGABBREV_NP
1556 HAVE_STRERRORNAME_NP
1557 HAVE_DECL_STRERROR_R
1558 HAVE_DECL_STRTOK_R
1559 HAVE_STRCASESTR
1560 HAVE_STRSEP
1561 HAVE_STRPBRK
1562 HAVE_DECL_STRNLEN
1563 HAVE_DECL_STRNDUP
1564 HAVE_DECL_STRDUP
1565 HAVE_STRCHRNUL
1566 HAVE_STPNCPY
1567 HAVE_STPCPY
1568 HAVE_RAWMEMCHR
1569 HAVE_DECL_MEMRCHR
1570 HAVE_MEMPCPY
1571 HAVE_DECL_MEMMEM
1572 HAVE_FFSLL
1573 HAVE_FFSL
1574 HAVE_EXPLICIT_BZERO
1575 HAVE_MBSLEN
1576 GL_GNULIB_MDA_PUTENV
1577 GL_GNULIB_MDA_MKTEMP
1578 GL_GNULIB_MDA_GCVT
1579 GL_GNULIB_MDA_FCVT
1580 GL_GNULIB_MDA_ECVT
1581 GL_GNULIB_WCTOMB
1582 GL_GNULIB_UNSETENV
1583 GL_GNULIB_UNLOCKPT
1584 GL_GNULIB_SYSTEM_POSIX
1585 GL_GNULIB_STRTOULL
1586 GL_GNULIB_STRTOUL
1587 GL_GNULIB_STRTOLL
1588 GL_GNULIB_STRTOLD
1589 GL_GNULIB_STRTOL
1590 GL_GNULIB_STRTOD
1591 GL_GNULIB_SETENV
1592 GL_GNULIB_SECURE_GETENV
1593 GL_GNULIB_RPMATCH
1594 GL_GNULIB_REALPATH
1595 GL_GNULIB_REALLOC_POSIX
1596 GL_GNULIB_REALLOC_GNU
1597 GL_GNULIB_REALLOCARRAY
1598 GL_GNULIB_RANDOM_R
1599 GL_GNULIB_RANDOM
1600 GL_GNULIB_QSORT_R
1601 GL_GNULIB_PUTENV
1602 GL_GNULIB_PTSNAME_R
1603 GL_GNULIB_PTSNAME
1604 GL_GNULIB_POSIX_OPENPT
1605 GL_GNULIB_POSIX_MEMALIGN
1606 GL_GNULIB_MKSTEMPS
1607 GL_GNULIB_MKSTEMP
1608 GL_GNULIB_MKOSTEMPS
1609 GL_GNULIB_MKOSTEMP
1610 GL_GNULIB_MKDTEMP
1611 GL_GNULIB_MBTOWC
1612 GL_GNULIB_MALLOC_POSIX
1613 GL_GNULIB_MALLOC_GNU
1614 GL_GNULIB_GRANTPT
1615 GL_GNULIB_GETSUBOPT
1616 GL_GNULIB_GETLOADAVG
1617 GL_GNULIB_FREE_POSIX
1618 GL_GNULIB_CANONICALIZE_FILE_NAME
1619 GL_GNULIB_CALLOC_POSIX
1620 GL_GNULIB_CALLOC_GNU
1621 GL_GNULIB_ATOLL
1622 GL_GNULIB_ALIGNED_ALLOC
1623 GL_GNULIB__EXIT
1624 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
1625 NEXT_STDLIB_H
1626 REPLACE_WCTOMB
1627 REPLACE_UNSETENV
1628 REPLACE_STRTOULL
1629 REPLACE_STRTOUL
1630 REPLACE_STRTOLL
1631 REPLACE_STRTOLD
1632 REPLACE_STRTOL
1633 REPLACE_STRTOD
1634 REPLACE_SETSTATE
1635 REPLACE_SETENV
1636 REPLACE_REALPATH
1637 REPLACE_REALLOCARRAY
1638 REPLACE_REALLOC_FOR_REALLOC_POSIX
1639 REPLACE_REALLOC_FOR_REALLOC_GNU
1640 REPLACE_RANDOM_R
1641 REPLACE_RANDOM
1642 REPLACE_QSORT_R
1643 REPLACE_PUTENV
1644 REPLACE_PTSNAME_R
1645 REPLACE_PTSNAME
1646 REPLACE_POSIX_MEMALIGN
1647 REPLACE_MKSTEMP
1648 REPLACE_MBTOWC
1649 REPLACE_MALLOC_FOR_MALLOC_POSIX
1650 REPLACE_MALLOC_FOR_MALLOC_GNU
1651 REPLACE_INITSTATE
1652 REPLACE_FREE
1653 REPLACE_CANONICALIZE_FILE_NAME
1654 REPLACE_CALLOC_FOR_CALLOC_POSIX
1655 REPLACE_CALLOC_FOR_CALLOC_GNU
1656 REPLACE_ALIGNED_ALLOC
1657 HAVE_DECL_UNSETENV
1658 HAVE_UNLOCKPT
1659 HAVE_SYS_LOADAVG_H
1660 HAVE_STRUCT_RANDOM_DATA
1661 HAVE_STRTOULL
1662 HAVE_STRTOUL
1663 HAVE_STRTOLL
1664 HAVE_STRTOLD
1665 HAVE_STRTOL
1666 HAVE_STRTOD
1667 HAVE_DECL_SETSTATE
1668 HAVE_SETSTATE
1669 HAVE_DECL_SETENV
1670 HAVE_SETENV
1671 HAVE_SECURE_GETENV
1672 HAVE_RPMATCH
1673 HAVE_REALPATH
1674 HAVE_REALLOCARRAY
1675 HAVE_RANDOM_R
1676 HAVE_RANDOM_H
1677 HAVE_RANDOM
1678 HAVE_QSORT_R
1679 HAVE_PTSNAME_R
1680 HAVE_PTSNAME
1681 HAVE_POSIX_OPENPT
1682 HAVE_POSIX_MEMALIGN
1683 HAVE_MKSTEMPS
1684 HAVE_MKSTEMP
1685 HAVE_MKOSTEMPS
1686 HAVE_MKOSTEMP
1687 HAVE_MKDTEMP
1688 HAVE_MBTOWC
1689 HAVE_DECL_INITSTATE
1690 HAVE_INITSTATE
1691 HAVE_GRANTPT
1692 HAVE_GETSUBOPT
1693 HAVE_DECL_GETLOADAVG
1694 HAVE_DECL_GCVT
1695 HAVE_DECL_FCVT
1696 HAVE_DECL_ECVT
1697 HAVE_CANONICALIZE_FILE_NAME
1698 HAVE_ATOLL
1699 HAVE_ALIGNED_ALLOC
1700 HAVE__EXIT
1701 GL_GENERATE_STDINT_H_FALSE
1702 GL_GENERATE_STDINT_H_TRUE
1703 STDINT_H
1704 HAVE_SYS_INTTYPES_H
1705 HAVE_SYS_BITYPES_H
1706 HAVE_C99_STDINT_H
1707 WINT_T_SUFFIX
1708 WCHAR_T_SUFFIX
1709 SIG_ATOMIC_T_SUFFIX
1710 SIZE_T_SUFFIX
1711 PTRDIFF_T_SUFFIX
1712 HAVE_SIGNED_WINT_T
1713 HAVE_SIGNED_WCHAR_T
1714 HAVE_SIGNED_SIG_ATOMIC_T
1715 BITSIZEOF_WINT_T
1716 BITSIZEOF_WCHAR_T
1717 BITSIZEOF_SIG_ATOMIC_T
1718 BITSIZEOF_SIZE_T
1719 BITSIZEOF_PTRDIFF_T
1720 HAVE_STDINT_H
1721 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1722 NEXT_STDINT_H
1723 HAVE_SYS_TYPES_H
1724 HAVE_INTTYPES_H
1725 HAVE_WCHAR_H
1726 GNULIBHEADERS_OVERRIDE_WINT_T
1727 GL_GENERATE_STDDEF_H_FALSE
1728 GL_GENERATE_STDDEF_H_TRUE
1729 STDDEF_H
1730 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1731 NEXT_STDDEF_H
1732 HAVE_WCHAR_T
1733 HAVE_MAX_ALIGN_T
1734 REPLACE_NULL
1735 GL_GENERATE_STDBOOL_H_FALSE
1736 GL_GENERATE_STDBOOL_H_TRUE
1737 STDBOOL_H
1738 HAVE__BOOL
1739 APPLE_UNIVERSAL_BUILD
1740 GL_GENERATE_LIMITS_H_FALSE
1741 GL_GENERATE_LIMITS_H_TRUE
1742 LIMITS_H
1743 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1744 NEXT_LIMITS_H
1745 PRAGMA_COLUMNS
1746 PRAGMA_SYSTEM_HEADER
1747 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1748 INCLUDE_NEXT
1749 HAVE_VISIBILITY
1750 CFLAG_VISIBILITY
1751 HAVE_LD_VERSION_SCRIPT_FALSE
1752 HAVE_LD_VERSION_SCRIPT_TRUE
1753 HAVE_LD_OUTPUT_DEF_FALSE
1754 HAVE_LD_OUTPUT_DEF_TRUE
1755 GL_COND_LIBTOOL_FALSE
1756 GL_COND_LIBTOOL_TRUE
1757 GTK_DOC_USE_REBASE_FALSE
1758 GTK_DOC_USE_REBASE_TRUE
1759 GTK_DOC_USE_LIBTOOL_FALSE
1760 GTK_DOC_USE_LIBTOOL_TRUE
1761 GTK_DOC_BUILD_PDF_FALSE
1762 GTK_DOC_BUILD_PDF_TRUE
1763 GTK_DOC_BUILD_HTML_FALSE
1764 GTK_DOC_BUILD_HTML_TRUE
1765 ENABLE_GTK_DOC_FALSE
1766 ENABLE_GTK_DOC_TRUE
1767 HAVE_GTK_DOC_FALSE
1768 HAVE_GTK_DOC_TRUE
1769 GTKDOC_DEPS_LIBS
1770 GTKDOC_DEPS_CFLAGS
1771 HTML_DIR
1772 GTKDOC_MKPDF
1773 GTKDOC_REBASE
1774 GTKDOC_CHECK_PATH
1775 GTKDOC_CHECK
1776 PKG_CONFIG
1777 LT_SYS_LIBRARY_PATH
1778 OTOOL64
1779 OTOOL
1780 LIPO
1781 NMEDIT
1782 DSYMUTIL
1783 MANIFEST_TOOL
1784 ac_ct_AR
1785 LN_S
1786 NM
1787 ac_ct_DUMPBIN
1788 DUMPBIN
1789 LD
1790 FGREP
1791 SED
1792 LIBTOOL
1793 OBJDUMP
1794 DLLTOOL
1795 AS
1796 HELP2MAN
1797 ENABLE_DOC_FALSE
1798 ENABLE_DOC_TRUE
1799 YFLAGS
1800 YACC
1801 RANLIB
1802 ARFLAGS
1803 AR
1804 EGREP
1805 GREP
1806 CPP
1807 host_os
1808 host_vendor
1809 host_cpu
1810 host
1811 build_os
1812 build_vendor
1813 build_cpu
1814 build
1815 am__fastdepCC_FALSE
1816 am__fastdepCC_TRUE
1817 CCDEPMODE
1818 am__nodep
1819 AMDEPBACKSLASH
1820 AMDEP_FALSE
1821 AMDEP_TRUE
1822 am__include
1823 DEPDIR
1824 OBJEXT
1825 EXEEXT
1826 ac_ct_CC
1827 CPPFLAGS
1828 LDFLAGS
1829 CFLAGS
1830 CC
1831 AM_BACKSLASH
1832 AM_DEFAULT_VERBOSITY
1833 AM_DEFAULT_V
1834 AM_V
1835 CSCOPE
1836 ETAGS
1837 CTAGS
1838 am__untar
1839 am__tar
1840 AMTAR
1841 am__leading_dot
1842 SET_MAKE
1843 AWK
1844 mkdir_p
1845 MKDIR_P
1846 INSTALL_STRIP_PROGRAM
1847 STRIP
1848 install_sh
1849 MAKEINFO
1850 AUTOHEADER
1851 AUTOMAKE
1852 AUTOCONF
1853 ACLOCAL
1854 VERSION
1855 PACKAGE
1856 CYGPATH_W
1857 am__isrc
1858 INSTALL_DATA
1859 INSTALL_SCRIPT
1860 INSTALL_PROGRAM
1861 NUMBER_VERSION
1862 PATCH_VERSION
1863 MINOR_VERSION
1864 MAJOR_VERSION
1865 LT_AGE
1866 LT_REVISION
1867 LT_CURRENT
1868 target_alias
1869 host_alias
1870 build_alias
1871 LIBS
1872 ECHO_T
1873 ECHO_N
1874 ECHO_C
1875 DEFS
1876 mandir
1877 localedir
1878 libdir
1879 psdir
1880 pdfdir
1881 dvidir
1882 htmldir
1883 infodir
1884 docdir
1885 oldincludedir
1886 includedir
1887 runstatedir
1888 localstatedir
1889 sharedstatedir
1890 sysconfdir
1891 datadir
1892 datarootdir
1893 libexecdir
1894 sbindir
1895 bindir
1896 program_transform_name
1897 prefix
1898 exec_prefix
1899 PACKAGE_URL
1900 PACKAGE_BUGREPORT
1901 PACKAGE_STRING
1902 PACKAGE_VERSION
1903 PACKAGE_TARNAME
1904 PACKAGE_NAME
1905 PATH_SEPARATOR
1906 SHELL
1907 am__quote'
1908 ac_subst_files=''
1909 ac_user_opts='
1910 enable_option_checking
1911 enable_silent_rules
1912 enable_dependency_tracking
1913 enable_largefile
1914 enable_year2038
1915 enable_doc
1916 enable_shared
1917 enable_static
1918 with_pic
1919 enable_fast_install
1920 with_aix_soname
1921 with_gnu_ld
1922 with_sysroot
1923 enable_libtool_lock
1924 with_html_dir
1925 enable_gtk_doc
1926 enable_gtk_doc_html
1927 enable_gtk_doc_pdf
1928 enable_cross_guesses
1929 enable_ld_version_script
1930 enable_valgrind_tests
1931 with_packager
1932 with_packager_version
1933 with_packager_bug_reports
1934 with_gcov
1935 enable_code_coverage
1936 enable_gcc_warnings
1937 enable_fuzzing
1938 '
1939       ac_precious_vars='build_alias
1940 host_alias
1941 target_alias
1942 CC
1943 CFLAGS
1944 LDFLAGS
1945 LIBS
1946 CPPFLAGS
1947 CPP
1948 YACC
1949 YFLAGS
1950 LT_SYS_LIBRARY_PATH
1951 PKG_CONFIG
1952 GTKDOC_DEPS_CFLAGS
1953 GTKDOC_DEPS_LIBS
1954 VALGRINDFLAGS'
1955
1956
1957 # Initialize some variables set by options.
1958 ac_init_help=
1959 ac_init_version=false
1960 ac_unrecognized_opts=
1961 ac_unrecognized_sep=
1962 # The variables have the same names as the options, with
1963 # dashes changed to underlines.
1964 cache_file=/dev/null
1965 exec_prefix=NONE
1966 no_create=
1967 no_recursion=
1968 prefix=NONE
1969 program_prefix=NONE
1970 program_suffix=NONE
1971 program_transform_name=s,x,x,
1972 silent=
1973 site=
1974 srcdir=
1975 verbose=
1976 x_includes=NONE
1977 x_libraries=NONE
1978
1979 # Installation directory options.
1980 # These are left unexpanded so users can "make install exec_prefix=/foo"
1981 # and all the variables that are supposed to be based on exec_prefix
1982 # by default will actually change.
1983 # Use braces instead of parens because sh, perl, etc. also accept them.
1984 # (The list follows the same order as the GNU Coding Standards.)
1985 bindir='${exec_prefix}/bin'
1986 sbindir='${exec_prefix}/sbin'
1987 libexecdir='${exec_prefix}/libexec'
1988 datarootdir='${prefix}/share'
1989 datadir='${datarootdir}'
1990 sysconfdir='${prefix}/etc'
1991 sharedstatedir='${prefix}/com'
1992 localstatedir='${prefix}/var'
1993 runstatedir='${localstatedir}/run'
1994 includedir='${prefix}/include'
1995 oldincludedir='/usr/include'
1996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1997 infodir='${datarootdir}/info'
1998 htmldir='${docdir}'
1999 dvidir='${docdir}'
2000 pdfdir='${docdir}'
2001 psdir='${docdir}'
2002 libdir='${exec_prefix}/lib'
2003 localedir='${datarootdir}/locale'
2004 mandir='${datarootdir}/man'
2005
2006 ac_prev=
2007 ac_dashdash=
2008 for ac_option
2009 do
2010   # If the previous option needs an argument, assign it.
2011   if test -n "$ac_prev"; then
2012     eval $ac_prev=\$ac_option
2013     ac_prev=
2014     continue
2015   fi
2016
2017   case $ac_option in
2018   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2019   *=)   ac_optarg= ;;
2020   *)    ac_optarg=yes ;;
2021   esac
2022
2023   case $ac_dashdash$ac_option in
2024   --)
2025     ac_dashdash=yes ;;
2026
2027   -bindir | --bindir | --bindi | --bind | --bin | --bi)
2028     ac_prev=bindir ;;
2029   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2030     bindir=$ac_optarg ;;
2031
2032   -build | --build | --buil | --bui | --bu)
2033     ac_prev=build_alias ;;
2034   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2035     build_alias=$ac_optarg ;;
2036
2037   -cache-file | --cache-file | --cache-fil | --cache-fi \
2038   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2039     ac_prev=cache_file ;;
2040   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2041   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2042     cache_file=$ac_optarg ;;
2043
2044   --config-cache | -C)
2045     cache_file=config.cache ;;
2046
2047   -datadir | --datadir | --datadi | --datad)
2048     ac_prev=datadir ;;
2049   -datadir=* | --datadir=* | --datadi=* | --datad=*)
2050     datadir=$ac_optarg ;;
2051
2052   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2053   | --dataroo | --dataro | --datar)
2054     ac_prev=datarootdir ;;
2055   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2056   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2057     datarootdir=$ac_optarg ;;
2058
2059   -disable-* | --disable-*)
2060     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2061     # Reject names that are not valid shell variable names.
2062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2063       as_fn_error $? "invalid feature name: \`$ac_useropt'"
2064     ac_useropt_orig=$ac_useropt
2065     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2066     case $ac_user_opts in
2067       *"
2068 "enable_$ac_useropt"
2069 "*) ;;
2070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2071          ac_unrecognized_sep=', ';;
2072     esac
2073     eval enable_$ac_useropt=no ;;
2074
2075   -docdir | --docdir | --docdi | --doc | --do)
2076     ac_prev=docdir ;;
2077   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2078     docdir=$ac_optarg ;;
2079
2080   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2081     ac_prev=dvidir ;;
2082   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2083     dvidir=$ac_optarg ;;
2084
2085   -enable-* | --enable-*)
2086     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2087     # Reject names that are not valid shell variable names.
2088     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2089       as_fn_error $? "invalid feature name: \`$ac_useropt'"
2090     ac_useropt_orig=$ac_useropt
2091     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2092     case $ac_user_opts in
2093       *"
2094 "enable_$ac_useropt"
2095 "*) ;;
2096       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2097          ac_unrecognized_sep=', ';;
2098     esac
2099     eval enable_$ac_useropt=\$ac_optarg ;;
2100
2101   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2102   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2103   | --exec | --exe | --ex)
2104     ac_prev=exec_prefix ;;
2105   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2106   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2107   | --exec=* | --exe=* | --ex=*)
2108     exec_prefix=$ac_optarg ;;
2109
2110   -gas | --gas | --ga | --g)
2111     # Obsolete; use --with-gas.
2112     with_gas=yes ;;
2113
2114   -help | --help | --hel | --he | -h)
2115     ac_init_help=long ;;
2116   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2117     ac_init_help=recursive ;;
2118   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2119     ac_init_help=short ;;
2120
2121   -host | --host | --hos | --ho)
2122     ac_prev=host_alias ;;
2123   -host=* | --host=* | --hos=* | --ho=*)
2124     host_alias=$ac_optarg ;;
2125
2126   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2127     ac_prev=htmldir ;;
2128   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2129   | --ht=*)
2130     htmldir=$ac_optarg ;;
2131
2132   -includedir | --includedir | --includedi | --included | --include \
2133   | --includ | --inclu | --incl | --inc)
2134     ac_prev=includedir ;;
2135   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2136   | --includ=* | --inclu=* | --incl=* | --inc=*)
2137     includedir=$ac_optarg ;;
2138
2139   -infodir | --infodir | --infodi | --infod | --info | --inf)
2140     ac_prev=infodir ;;
2141   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2142     infodir=$ac_optarg ;;
2143
2144   -libdir | --libdir | --libdi | --libd)
2145     ac_prev=libdir ;;
2146   -libdir=* | --libdir=* | --libdi=* | --libd=*)
2147     libdir=$ac_optarg ;;
2148
2149   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2150   | --libexe | --libex | --libe)
2151     ac_prev=libexecdir ;;
2152   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2153   | --libexe=* | --libex=* | --libe=*)
2154     libexecdir=$ac_optarg ;;
2155
2156   -localedir | --localedir | --localedi | --localed | --locale)
2157     ac_prev=localedir ;;
2158   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2159     localedir=$ac_optarg ;;
2160
2161   -localstatedir | --localstatedir | --localstatedi | --localstated \
2162   | --localstate | --localstat | --localsta | --localst | --locals)
2163     ac_prev=localstatedir ;;
2164   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2165   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2166     localstatedir=$ac_optarg ;;
2167
2168   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2169     ac_prev=mandir ;;
2170   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2171     mandir=$ac_optarg ;;
2172
2173   -nfp | --nfp | --nf)
2174     # Obsolete; use --without-fp.
2175     with_fp=no ;;
2176
2177   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2178   | --no-cr | --no-c | -n)
2179     no_create=yes ;;
2180
2181   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2182   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2183     no_recursion=yes ;;
2184
2185   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2186   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2187   | --oldin | --oldi | --old | --ol | --o)
2188     ac_prev=oldincludedir ;;
2189   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2190   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2191   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2192     oldincludedir=$ac_optarg ;;
2193
2194   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2195     ac_prev=prefix ;;
2196   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2197     prefix=$ac_optarg ;;
2198
2199   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2200   | --program-pre | --program-pr | --program-p)
2201     ac_prev=program_prefix ;;
2202   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2203   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2204     program_prefix=$ac_optarg ;;
2205
2206   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2207   | --program-suf | --program-su | --program-s)
2208     ac_prev=program_suffix ;;
2209   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2210   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2211     program_suffix=$ac_optarg ;;
2212
2213   -program-transform-name | --program-transform-name \
2214   | --program-transform-nam | --program-transform-na \
2215   | --program-transform-n | --program-transform- \
2216   | --program-transform | --program-transfor \
2217   | --program-transfo | --program-transf \
2218   | --program-trans | --program-tran \
2219   | --progr-tra | --program-tr | --program-t)
2220     ac_prev=program_transform_name ;;
2221   -program-transform-name=* | --program-transform-name=* \
2222   | --program-transform-nam=* | --program-transform-na=* \
2223   | --program-transform-n=* | --program-transform-=* \
2224   | --program-transform=* | --program-transfor=* \
2225   | --program-transfo=* | --program-transf=* \
2226   | --program-trans=* | --program-tran=* \
2227   | --progr-tra=* | --program-tr=* | --program-t=*)
2228     program_transform_name=$ac_optarg ;;
2229
2230   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2231     ac_prev=pdfdir ;;
2232   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2233     pdfdir=$ac_optarg ;;
2234
2235   -psdir | --psdir | --psdi | --psd | --ps)
2236     ac_prev=psdir ;;
2237   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2238     psdir=$ac_optarg ;;
2239
2240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2241   | -silent | --silent | --silen | --sile | --sil)
2242     silent=yes ;;
2243
2244   -runstatedir | --runstatedir | --runstatedi | --runstated \
2245   | --runstate | --runstat | --runsta | --runst | --runs \
2246   | --run | --ru | --r)
2247     ac_prev=runstatedir ;;
2248   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2249   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2250   | --run=* | --ru=* | --r=*)
2251     runstatedir=$ac_optarg ;;
2252
2253   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2254     ac_prev=sbindir ;;
2255   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2256   | --sbi=* | --sb=*)
2257     sbindir=$ac_optarg ;;
2258
2259   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2260   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2261   | --sharedst | --shareds | --shared | --share | --shar \
2262   | --sha | --sh)
2263     ac_prev=sharedstatedir ;;
2264   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2265   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2266   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2267   | --sha=* | --sh=*)
2268     sharedstatedir=$ac_optarg ;;
2269
2270   -site | --site | --sit)
2271     ac_prev=site ;;
2272   -site=* | --site=* | --sit=*)
2273     site=$ac_optarg ;;
2274
2275   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2276     ac_prev=srcdir ;;
2277   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2278     srcdir=$ac_optarg ;;
2279
2280   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2281   | --syscon | --sysco | --sysc | --sys | --sy)
2282     ac_prev=sysconfdir ;;
2283   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2284   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2285     sysconfdir=$ac_optarg ;;
2286
2287   -target | --target | --targe | --targ | --tar | --ta | --t)
2288     ac_prev=target_alias ;;
2289   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2290     target_alias=$ac_optarg ;;
2291
2292   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2293     verbose=yes ;;
2294
2295   -version | --version | --versio | --versi | --vers | -V)
2296     ac_init_version=: ;;
2297
2298   -with-* | --with-*)
2299     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2300     # Reject names that are not valid shell variable names.
2301     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2302       as_fn_error $? "invalid package name: \`$ac_useropt'"
2303     ac_useropt_orig=$ac_useropt
2304     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2305     case $ac_user_opts in
2306       *"
2307 "with_$ac_useropt"
2308 "*) ;;
2309       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2310          ac_unrecognized_sep=', ';;
2311     esac
2312     eval with_$ac_useropt=\$ac_optarg ;;
2313
2314   -without-* | --without-*)
2315     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2316     # Reject names that are not valid shell variable names.
2317     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2318       as_fn_error $? "invalid package name: \`$ac_useropt'"
2319     ac_useropt_orig=$ac_useropt
2320     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2321     case $ac_user_opts in
2322       *"
2323 "with_$ac_useropt"
2324 "*) ;;
2325       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2326          ac_unrecognized_sep=', ';;
2327     esac
2328     eval with_$ac_useropt=no ;;
2329
2330   --x)
2331     # Obsolete; use --with-x.
2332     with_x=yes ;;
2333
2334   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2335   | --x-incl | --x-inc | --x-in | --x-i)
2336     ac_prev=x_includes ;;
2337   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2338   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2339     x_includes=$ac_optarg ;;
2340
2341   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2342   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2343     ac_prev=x_libraries ;;
2344   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2345   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2346     x_libraries=$ac_optarg ;;
2347
2348   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2349 Try \`$0 --help' for more information"
2350     ;;
2351
2352   *=*)
2353     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2354     # Reject names that are not valid shell variable names.
2355     case $ac_envvar in #(
2356       '' | [0-9]* | *[!_$as_cr_alnum]* )
2357       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2358     esac
2359     eval $ac_envvar=\$ac_optarg
2360     export $ac_envvar ;;
2361
2362   *)
2363     # FIXME: should be removed in autoconf 3.0.
2364     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2365     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2366       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2367     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2368     ;;
2369
2370   esac
2371 done
2372
2373 if test -n "$ac_prev"; then
2374   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2375   as_fn_error $? "missing argument to $ac_option"
2376 fi
2377
2378 if test -n "$ac_unrecognized_opts"; then
2379   case $enable_option_checking in
2380     no) ;;
2381     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2382     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2383   esac
2384 fi
2385
2386 # Check all directory arguments for consistency.
2387 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2388                 datadir sysconfdir sharedstatedir localstatedir includedir \
2389                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2390                 libdir localedir mandir runstatedir
2391 do
2392   eval ac_val=\$$ac_var
2393   # Remove trailing slashes.
2394   case $ac_val in
2395     */ )
2396       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2397       eval $ac_var=\$ac_val;;
2398   esac
2399   # Be sure to have absolute directory names.
2400   case $ac_val in
2401     [\\/$]* | ?:[\\/]* )  continue;;
2402     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2403   esac
2404   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2405 done
2406
2407 # There might be people who depend on the old broken behavior: `$host'
2408 # used to hold the argument of --host etc.
2409 # FIXME: To remove some day.
2410 build=$build_alias
2411 host=$host_alias
2412 target=$target_alias
2413
2414 # FIXME: To remove some day.
2415 if test "x$host_alias" != x; then
2416   if test "x$build_alias" = x; then
2417     cross_compiling=maybe
2418   elif test "x$build_alias" != "x$host_alias"; then
2419     cross_compiling=yes
2420   fi
2421 fi
2422
2423 ac_tool_prefix=
2424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2425
2426 test "$silent" = yes && exec 6>/dev/null
2427
2428
2429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2430 ac_ls_di=`ls -di .` &&
2431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2432   as_fn_error $? "working directory cannot be determined"
2433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2434   as_fn_error $? "pwd does not report name of working directory"
2435
2436
2437 # Find the source files, if location was not specified.
2438 if test -z "$srcdir"; then
2439   ac_srcdir_defaulted=yes
2440   # Try the directory containing this script, then the parent directory.
2441   ac_confdir=`$as_dirname -- "$as_myself" ||
2442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2443          X"$as_myself" : 'X\(//\)[^/]' \| \
2444          X"$as_myself" : 'X\(//\)$' \| \
2445          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2446 printf "%s\n" X"$as_myself" |
2447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2448             s//\1/
2449             q
2450           }
2451           /^X\(\/\/\)[^/].*/{
2452             s//\1/
2453             q
2454           }
2455           /^X\(\/\/\)$/{
2456             s//\1/
2457             q
2458           }
2459           /^X\(\/\).*/{
2460             s//\1/
2461             q
2462           }
2463           s/.*/./; q'`
2464   srcdir=$ac_confdir
2465   if test ! -r "$srcdir/$ac_unique_file"; then
2466     srcdir=..
2467   fi
2468 else
2469   ac_srcdir_defaulted=no
2470 fi
2471 if test ! -r "$srcdir/$ac_unique_file"; then
2472   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2473   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2474 fi
2475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2476 ac_abs_confdir=`(
2477         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2478         pwd)`
2479 # When building in place, set srcdir=.
2480 if test "$ac_abs_confdir" = "$ac_pwd"; then
2481   srcdir=.
2482 fi
2483 # Remove unnecessary trailing slashes from srcdir.
2484 # Double slashes in file names in object file debugging info
2485 # mess up M-x gdb in Emacs.
2486 case $srcdir in
2487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2488 esac
2489 for ac_var in $ac_precious_vars; do
2490   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2491   eval ac_env_${ac_var}_value=\$${ac_var}
2492   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2493   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2494 done
2495
2496 #
2497 # Report the --help message.
2498 #
2499 if test "$ac_init_help" = "long"; then
2500   # Omit some internal or obsolete options to make the list less imposing.
2501   # This message is too long to be a string in the A/UX 3.1 sh.
2502   cat <<_ACEOF
2503 \`configure' configures GNU Libtasn1 4.19.0 to adapt to many kinds of systems.
2504
2505 Usage: $0 [OPTION]... [VAR=VALUE]...
2506
2507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2508 VAR=VALUE.  See below for descriptions of some of the useful variables.
2509
2510 Defaults for the options are specified in brackets.
2511
2512 Configuration:
2513   -h, --help              display this help and exit
2514       --help=short        display options specific to this package
2515       --help=recursive    display the short help of all the included packages
2516   -V, --version           display version information and exit
2517   -q, --quiet, --silent   do not print \`checking ...' messages
2518       --cache-file=FILE   cache test results in FILE [disabled]
2519   -C, --config-cache      alias for \`--cache-file=config.cache'
2520   -n, --no-create         do not create output files
2521       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2522
2523 Installation directories:
2524   --prefix=PREFIX         install architecture-independent files in PREFIX
2525                           [$ac_default_prefix]
2526   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2527                           [PREFIX]
2528
2529 By default, \`make install' will install all the files in
2530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2532 for instance \`--prefix=\$HOME'.
2533
2534 For better control, use the options below.
2535
2536 Fine tuning of the installation directories:
2537   --bindir=DIR            user executables [EPREFIX/bin]
2538   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2539   --libexecdir=DIR        program executables [EPREFIX/libexec]
2540   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2541   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2542   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2543   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2544   --libdir=DIR            object code libraries [EPREFIX/lib]
2545   --includedir=DIR        C header files [PREFIX/include]
2546   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2547   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2548   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2549   --infodir=DIR           info documentation [DATAROOTDIR/info]
2550   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2551   --mandir=DIR            man documentation [DATAROOTDIR/man]
2552   --docdir=DIR            documentation root [DATAROOTDIR/doc/libtasn1]
2553   --htmldir=DIR           html documentation [DOCDIR]
2554   --dvidir=DIR            dvi documentation [DOCDIR]
2555   --pdfdir=DIR            pdf documentation [DOCDIR]
2556   --psdir=DIR             ps documentation [DOCDIR]
2557 _ACEOF
2558
2559   cat <<\_ACEOF
2560
2561 Program names:
2562   --program-prefix=PREFIX            prepend PREFIX to installed program names
2563   --program-suffix=SUFFIX            append SUFFIX to installed program names
2564   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2565
2566 System types:
2567   --build=BUILD     configure for building on BUILD [guessed]
2568   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2569 _ACEOF
2570 fi
2571
2572 if test -n "$ac_init_help"; then
2573   case $ac_init_help in
2574      short | recursive ) echo "Configuration of GNU Libtasn1 4.19.0:";;
2575    esac
2576   cat <<\_ACEOF
2577
2578 Optional Features:
2579   --disable-option-checking  ignore unrecognized --enable/--with options
2580   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2581   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2582   --enable-silent-rules   less verbose build output (undo: "make V=1")
2583   --disable-silent-rules  verbose build output (undo: "make V=0")
2584   --enable-dependency-tracking
2585                           do not reject slow dependency extractors
2586   --disable-dependency-tracking
2587                           speeds up one-time build
2588   --disable-largefile     omit support for large files
2589   --disable-year2038      omit support for timestamps past the year 2038
2590   --disable-doc           don't generate any documentation
2591   --enable-shared[=PKGS]  build shared libraries [default=yes]
2592   --enable-static[=PKGS]  build static libraries [default=yes]
2593   --enable-fast-install[=PKGS]
2594                           optimize for fast installation [default=yes]
2595   --disable-libtool-lock  avoid locking (might break parallel builds)
2596   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
2597   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
2598   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
2599   --enable-cross-guesses={conservative|risky}
2600                           specify policy for cross-compilation guesses
2601   --enable-ld-version-script
2602                           enable linker version script (default is enabled
2603                           when possible)
2604   --disable-valgrind-tests
2605                           don't try to run self tests under valgrind
2606   --enable-code-coverage  Whether to enable code coverage support
2607   --disable-gcc-warnings  disable GCC warnings (for developers)
2608   --enable-fuzzing        Turn on fuzzing build (for developers)
2609
2610 Optional Packages:
2611   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2612   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2613   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2614                           both]
2615   --with-aix-soname=aix|svr4|both
2616                           shared library versioning (aka "SONAME") variant to
2617                           provide on AIX, [default=aix].
2618   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2619   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2620                           compiler's sysroot if not specified).
2621   --with-html-dir=PATH    path to installed docs
2622   --with-packager         String identifying the packager of this software
2623   --with-packager-version Packager-specific version information
2624   --with-packager-bug-reports
2625                           Packager info for bug reports (URL/e-mail/...)
2626   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
2627
2628 Some influential environment variables:
2629   CC          C compiler command
2630   CFLAGS      C compiler flags
2631   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2632               nonstandard directory <lib dir>
2633   LIBS        libraries to pass to the linker, e.g. -l<library>
2634   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2635               you have headers in a nonstandard directory <include dir>
2636   CPP         C preprocessor
2637   YACC        The `Yet Another Compiler Compiler' implementation to use.
2638               Defaults to the first program found out of: `bison -y', `byacc',
2639               `yacc'.
2640   YFLAGS      The list of arguments that will be passed by default to $YACC.
2641               This script will default YFLAGS to the empty string to avoid a
2642               default value of `-d' given by some make applications.
2643   LT_SYS_LIBRARY_PATH
2644               User-defined run-time library search path.
2645   PKG_CONFIG  path to pkg-config utility
2646   GTKDOC_DEPS_CFLAGS
2647               C compiler flags for GTKDOC_DEPS, overriding pkg-config
2648   GTKDOC_DEPS_LIBS
2649               linker flags for GTKDOC_DEPS, overriding pkg-config
2650   VALGRINDFLAGS
2651               Additional flags for Valgrind
2652
2653 Use these variables to override the choices made by `configure' or to help
2654 it to find libraries and programs with nonstandard names/locations.
2655
2656 Report bugs to <help-libtasn1@gnu.org>.
2657 GNU Libtasn1 home page: <https://www.gnu.org/software/libtasn1/>.
2658 General help using GNU software: <https://www.gnu.org/gethelp/>.
2659 _ACEOF
2660 ac_status=$?
2661 fi
2662
2663 if test "$ac_init_help" = "recursive"; then
2664   # If there are subdirs, report their specific --help.
2665   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2666     test -d "$ac_dir" ||
2667       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2668       continue
2669     ac_builddir=.
2670
2671 case "$ac_dir" in
2672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2673 *)
2674   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2675   # A ".." for each directory in $ac_dir_suffix.
2676   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2677   case $ac_top_builddir_sub in
2678   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2679   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2680   esac ;;
2681 esac
2682 ac_abs_top_builddir=$ac_pwd
2683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2684 # for backward compatibility:
2685 ac_top_builddir=$ac_top_build_prefix
2686
2687 case $srcdir in
2688   .)  # We are building in place.
2689     ac_srcdir=.
2690     ac_top_srcdir=$ac_top_builddir_sub
2691     ac_abs_top_srcdir=$ac_pwd ;;
2692   [\\/]* | ?:[\\/]* )  # Absolute name.
2693     ac_srcdir=$srcdir$ac_dir_suffix;
2694     ac_top_srcdir=$srcdir
2695     ac_abs_top_srcdir=$srcdir ;;
2696   *) # Relative name.
2697     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2698     ac_top_srcdir=$ac_top_build_prefix$srcdir
2699     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2700 esac
2701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2702
2703     cd "$ac_dir" || { ac_status=$?; continue; }
2704     # Check for configure.gnu first; this name is used for a wrapper for
2705     # Metaconfig's "Configure" on case-insensitive file systems.
2706     if test -f "$ac_srcdir/configure.gnu"; then
2707       echo &&
2708       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2709     elif test -f "$ac_srcdir/configure"; then
2710       echo &&
2711       $SHELL "$ac_srcdir/configure" --help=recursive
2712     else
2713       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2714     fi || ac_status=$?
2715     cd "$ac_pwd" || { ac_status=$?; break; }
2716   done
2717 fi
2718
2719 test -n "$ac_init_help" && exit $ac_status
2720 if $ac_init_version; then
2721   cat <<\_ACEOF
2722 GNU Libtasn1 configure 4.19.0
2723 generated by GNU Autoconf 2.71
2724
2725 Copyright (C) 2021 Free Software Foundation, Inc.
2726 This configure script is free software; the Free Software Foundation
2727 gives unlimited permission to copy, distribute and modify it.
2728 _ACEOF
2729   exit
2730 fi
2731
2732 ## ------------------------ ##
2733 ## Autoconf initialization. ##
2734 ## ------------------------ ##
2735
2736 # ac_fn_c_try_compile LINENO
2737 # --------------------------
2738 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2739 ac_fn_c_try_compile ()
2740 {
2741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2742   rm -f conftest.$ac_objext conftest.beam
2743   if { { ac_try="$ac_compile"
2744 case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2749 printf "%s\n" "$ac_try_echo"; } >&5
2750   (eval "$ac_compile") 2>conftest.err
2751   ac_status=$?
2752   if test -s conftest.err; then
2753     grep -v '^ *+' conftest.err >conftest.er1
2754     cat conftest.er1 >&5
2755     mv -f conftest.er1 conftest.err
2756   fi
2757   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758   test $ac_status = 0; } && {
2759          test -z "$ac_c_werror_flag" ||
2760          test ! -s conftest.err
2761        } && test -s conftest.$ac_objext
2762 then :
2763   ac_retval=0
2764 else $as_nop
2765   printf "%s\n" "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768         ac_retval=1
2769 fi
2770   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2771   as_fn_set_status $ac_retval
2772
2773 } # ac_fn_c_try_compile
2774
2775 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2776 # -------------------------------------------------------
2777 # Tests whether HEADER exists and can be compiled using the include files in
2778 # INCLUDES, setting the cache variable VAR accordingly.
2779 ac_fn_c_check_header_compile ()
2780 {
2781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2783 printf %s "checking for $2... " >&6; }
2784 if eval test \${$3+y}
2785 then :
2786   printf %s "(cached) " >&6
2787 else $as_nop
2788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h.  */
2790 $4
2791 #include <$2>
2792 _ACEOF
2793 if ac_fn_c_try_compile "$LINENO"
2794 then :
2795   eval "$3=yes"
2796 else $as_nop
2797   eval "$3=no"
2798 fi
2799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2800 fi
2801 eval ac_res=\$$3
2802                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 printf "%s\n" "$ac_res" >&6; }
2804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805
2806 } # ac_fn_c_check_header_compile
2807
2808 # ac_fn_c_try_cpp LINENO
2809 # ----------------------
2810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2811 ac_fn_c_try_cpp ()
2812 {
2813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814   if { { ac_try="$ac_cpp conftest.$ac_ext"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 printf "%s\n" "$ac_try_echo"; } >&5
2821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2822   ac_status=$?
2823   if test -s conftest.err; then
2824     grep -v '^ *+' conftest.err >conftest.er1
2825     cat conftest.er1 >&5
2826     mv -f conftest.er1 conftest.err
2827   fi
2828   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829   test $ac_status = 0; } > conftest.i && {
2830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2831          test ! -s conftest.err
2832        }
2833 then :
2834   ac_retval=0
2835 else $as_nop
2836   printf "%s\n" "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839     ac_retval=1
2840 fi
2841   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842   as_fn_set_status $ac_retval
2843
2844 } # ac_fn_c_try_cpp
2845
2846 # ac_fn_c_try_link LINENO
2847 # -----------------------
2848 # Try to link conftest.$ac_ext, and return whether this succeeded.
2849 ac_fn_c_try_link ()
2850 {
2851   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2852   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2853   if { { ac_try="$ac_link"
2854 case "(($ac_try" in
2855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856   *) ac_try_echo=$ac_try;;
2857 esac
2858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2859 printf "%s\n" "$ac_try_echo"; } >&5
2860   (eval "$ac_link") 2>conftest.err
2861   ac_status=$?
2862   if test -s conftest.err; then
2863     grep -v '^ *+' conftest.err >conftest.er1
2864     cat conftest.er1 >&5
2865     mv -f conftest.er1 conftest.err
2866   fi
2867   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868   test $ac_status = 0; } && {
2869          test -z "$ac_c_werror_flag" ||
2870          test ! -s conftest.err
2871        } && test -s conftest$ac_exeext && {
2872          test "$cross_compiling" = yes ||
2873          test -x conftest$ac_exeext
2874        }
2875 then :
2876   ac_retval=0
2877 else $as_nop
2878   printf "%s\n" "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2880
2881         ac_retval=1
2882 fi
2883   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2884   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2885   # interfere with the next link command; also delete a directory that is
2886   # left behind by Apple's compiler.  We do this before executing the actions.
2887   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2888   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2889   as_fn_set_status $ac_retval
2890
2891 } # ac_fn_c_try_link
2892
2893 # ac_fn_c_check_func LINENO FUNC VAR
2894 # ----------------------------------
2895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2896 ac_fn_c_check_func ()
2897 {
2898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2900 printf %s "checking for $2... " >&6; }
2901 if eval test \${$3+y}
2902 then :
2903   printf %s "(cached) " >&6
2904 else $as_nop
2905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h.  */
2907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2909 #define $2 innocuous_$2
2910
2911 /* System header to define __stub macros and hopefully few prototypes,
2912    which can conflict with char $2 (); below.  */
2913
2914 #include <limits.h>
2915 #undef $2
2916
2917 /* Override any GCC internal prototype to avoid an error.
2918    Use char because int might match the return type of a GCC
2919    builtin and then its argument prototype would still apply.  */
2920 #ifdef __cplusplus
2921 extern "C"
2922 #endif
2923 char $2 ();
2924 /* The GNU C library defines this for functions which it implements
2925     to always fail with ENOSYS.  Some functions are actually named
2926     something starting with __ and the normal name is an alias.  */
2927 #if defined __stub_$2 || defined __stub___$2
2928 choke me
2929 #endif
2930
2931 int
2932 main (void)
2933 {
2934 return $2 ();
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 if ac_fn_c_try_link "$LINENO"
2940 then :
2941   eval "$3=yes"
2942 else $as_nop
2943   eval "$3=no"
2944 fi
2945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2946     conftest$ac_exeext conftest.$ac_ext
2947 fi
2948 eval ac_res=\$$3
2949                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2950 printf "%s\n" "$ac_res" >&6; }
2951   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2952
2953 } # ac_fn_c_check_func
2954
2955 # ac_fn_c_try_run LINENO
2956 # ----------------------
2957 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2958 # executables *can* be run.
2959 ac_fn_c_try_run ()
2960 {
2961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2962   if { { ac_try="$ac_link"
2963 case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 printf "%s\n" "$ac_try_echo"; } >&5
2969   (eval "$ac_link") 2>&5
2970   ac_status=$?
2971   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2973   { { case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 printf "%s\n" "$ac_try_echo"; } >&5
2979   (eval "$ac_try") 2>&5
2980   ac_status=$?
2981   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982   test $ac_status = 0; }; }
2983 then :
2984   ac_retval=0
2985 else $as_nop
2986   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2987        printf "%s\n" "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990        ac_retval=$ac_status
2991 fi
2992   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2993   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2994   as_fn_set_status $ac_retval
2995
2996 } # ac_fn_c_try_run
2997
2998 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2999 # --------------------------------------------
3000 # Tries to find the compile-time value of EXPR in a program that includes
3001 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3002 # computed
3003 ac_fn_c_compute_int ()
3004 {
3005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3006   if test "$cross_compiling" = yes; then
3007     # Depending upon the size, compute the lo and hi bounds.
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h.  */
3010 $4
3011 int
3012 main (void)
3013 {
3014 static int test_array [1 - 2 * !(($2) >= 0)];
3015 test_array [0] = 0;
3016 return test_array [0];
3017
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 if ac_fn_c_try_compile "$LINENO"
3023 then :
3024   ac_lo=0 ac_mid=0
3025   while :; do
3026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027 /* end confdefs.h.  */
3028 $4
3029 int
3030 main (void)
3031 {
3032 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3033 test_array [0] = 0;
3034 return test_array [0];
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 if ac_fn_c_try_compile "$LINENO"
3041 then :
3042   ac_hi=$ac_mid; break
3043 else $as_nop
3044   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3045                         if test $ac_lo -le $ac_mid; then
3046                           ac_lo= ac_hi=
3047                           break
3048                         fi
3049                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3050 fi
3051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3052   done
3053 else $as_nop
3054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h.  */
3056 $4
3057 int
3058 main (void)
3059 {
3060 static int test_array [1 - 2 * !(($2) < 0)];
3061 test_array [0] = 0;
3062 return test_array [0];
3063
3064   ;
3065   return 0;
3066 }
3067 _ACEOF
3068 if ac_fn_c_try_compile "$LINENO"
3069 then :
3070   ac_hi=-1 ac_mid=-1
3071   while :; do
3072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h.  */
3074 $4
3075 int
3076 main (void)
3077 {
3078 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3079 test_array [0] = 0;
3080 return test_array [0];
3081
3082   ;
3083   return 0;
3084 }
3085 _ACEOF
3086 if ac_fn_c_try_compile "$LINENO"
3087 then :
3088   ac_lo=$ac_mid; break
3089 else $as_nop
3090   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3091                         if test $ac_mid -le $ac_hi; then
3092                           ac_lo= ac_hi=
3093                           break
3094                         fi
3095                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3096 fi
3097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3098   done
3099 else $as_nop
3100   ac_lo= ac_hi=
3101 fi
3102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3103 fi
3104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3105 # Binary search between lo and hi bounds.
3106 while test "x$ac_lo" != "x$ac_hi"; do
3107   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h.  */
3110 $4
3111 int
3112 main (void)
3113 {
3114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3115 test_array [0] = 0;
3116 return test_array [0];
3117
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122 if ac_fn_c_try_compile "$LINENO"
3123 then :
3124   ac_hi=$ac_mid
3125 else $as_nop
3126   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3127 fi
3128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3129 done
3130 case $ac_lo in #((
3131 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3132 '') ac_retval=1 ;;
3133 esac
3134   else
3135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h.  */
3137 $4
3138 static long int longval (void) { return $2; }
3139 static unsigned long int ulongval (void) { return $2; }
3140 #include <stdio.h>
3141 #include <stdlib.h>
3142 int
3143 main (void)
3144 {
3145
3146   FILE *f = fopen ("conftest.val", "w");
3147   if (! f)
3148     return 1;
3149   if (($2) < 0)
3150     {
3151       long int i = longval ();
3152       if (i != ($2))
3153         return 1;
3154       fprintf (f, "%ld", i);
3155     }
3156   else
3157     {
3158       unsigned long int i = ulongval ();
3159       if (i != ($2))
3160         return 1;
3161       fprintf (f, "%lu", i);
3162     }
3163   /* Do not output a trailing newline, as this causes \r\n confusion
3164      on some platforms.  */
3165   return ferror (f) || fclose (f) != 0;
3166
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 if ac_fn_c_try_run "$LINENO"
3172 then :
3173   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3174 else $as_nop
3175   ac_retval=1
3176 fi
3177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3178   conftest.$ac_objext conftest.beam conftest.$ac_ext
3179 rm -f conftest.val
3180
3181   fi
3182   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3183   as_fn_set_status $ac_retval
3184
3185 } # ac_fn_c_compute_int
3186
3187 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3188 # -------------------------------------------
3189 # Tests whether TYPE exists after having included INCLUDES, setting cache
3190 # variable VAR accordingly.
3191 ac_fn_c_check_type ()
3192 {
3193   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3194   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3195 printf %s "checking for $2... " >&6; }
3196 if eval test \${$3+y}
3197 then :
3198   printf %s "(cached) " >&6
3199 else $as_nop
3200   eval "$3=no"
3201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h.  */
3203 $4
3204 int
3205 main (void)
3206 {
3207 if (sizeof ($2))
3208          return 0;
3209   ;
3210   return 0;
3211 }
3212 _ACEOF
3213 if ac_fn_c_try_compile "$LINENO"
3214 then :
3215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h.  */
3217 $4
3218 int
3219 main (void)
3220 {
3221 if (sizeof (($2)))
3222             return 0;
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 if ac_fn_c_try_compile "$LINENO"
3228 then :
3229
3230 else $as_nop
3231   eval "$3=yes"
3232 fi
3233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3234 fi
3235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3236 fi
3237 eval ac_res=\$$3
3238                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3239 printf "%s\n" "$ac_res" >&6; }
3240   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3241
3242 } # ac_fn_c_check_type
3243
3244 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
3245 # ------------------------------------------------------------------
3246 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3247 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
3248 ac_fn_check_decl ()
3249 {
3250   ac_save_ac_compile="$ac_compile"
3251   if test -n "$ac_compile_for_check_decl"; then
3252     ac_compile="$ac_compile_for_check_decl"
3253   fi
3254   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3255   as_decl_name=`echo $2|sed 's/ *(.*//'`
3256   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3257 printf %s "checking whether $as_decl_name is declared... " >&6; }
3258 if eval test \${$3+y}
3259 then :
3260   printf %s "(cached) " >&6
3261 else $as_nop
3262   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3263   eval ac_save_FLAGS=\$$6
3264   as_fn_append $6 " $5"
3265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h.  */
3267 $4
3268 int
3269 main (void)
3270 {
3271 #ifndef $as_decl_name
3272 #ifdef __cplusplus
3273   (void) $as_decl_use;
3274 #else
3275   (void) $as_decl_name;
3276 #endif
3277 #endif
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 if ac_fn_c_try_compile "$LINENO"
3284 then :
3285   eval "$3=yes"
3286 else $as_nop
3287   eval "$3=no"
3288 fi
3289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3290   eval $6=\$ac_save_FLAGS
3291
3292 fi
3293 eval ac_res=\$$3
3294                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3295 printf "%s\n" "$ac_res" >&6; }
3296   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3297   ac_compile="$ac_save_ac_compile"
3298
3299 } # ac_fn_check_decl
3300
3301 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3302 # ----------------------------------------------------
3303 # Tries to find if the field MEMBER exists in type AGGR, after including
3304 # INCLUDES, setting cache variable VAR accordingly.
3305 ac_fn_c_check_member ()
3306 {
3307   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3309 printf %s "checking for $2.$3... " >&6; }
3310 if eval test \${$4+y}
3311 then :
3312   printf %s "(cached) " >&6
3313 else $as_nop
3314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h.  */
3316 $5
3317 int
3318 main (void)
3319 {
3320 static $2 ac_aggr;
3321 if (ac_aggr.$3)
3322 return 0;
3323   ;
3324   return 0;
3325 }
3326 _ACEOF
3327 if ac_fn_c_try_compile "$LINENO"
3328 then :
3329   eval "$4=yes"
3330 else $as_nop
3331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h.  */
3333 $5
3334 int
3335 main (void)
3336 {
3337 static $2 ac_aggr;
3338 if (sizeof ac_aggr.$3)
3339 return 0;
3340   ;
3341   return 0;
3342 }
3343 _ACEOF
3344 if ac_fn_c_try_compile "$LINENO"
3345 then :
3346   eval "$4=yes"
3347 else $as_nop
3348   eval "$4=no"
3349 fi
3350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3351 fi
3352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3353 fi
3354 eval ac_res=\$$4
3355                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3356 printf "%s\n" "$ac_res" >&6; }
3357   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3358
3359 } # ac_fn_c_check_member
3360 ac_configure_args_raw=
3361 for ac_arg
3362 do
3363   case $ac_arg in
3364   *\'*)
3365     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3366   esac
3367   as_fn_append ac_configure_args_raw " '$ac_arg'"
3368 done
3369
3370 case $ac_configure_args_raw in
3371   *$as_nl*)
3372     ac_safe_unquote= ;;
3373   *)
3374     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
3375     ac_unsafe_a="$ac_unsafe_z#~"
3376     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3377     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3378 esac
3379
3380 cat >config.log <<_ACEOF
3381 This file contains any messages produced by compilers while
3382 running configure, to aid debugging if configure makes a mistake.
3383
3384 It was created by GNU Libtasn1 $as_me 4.19.0, which was
3385 generated by GNU Autoconf 2.71.  Invocation command line was
3386
3387   $ $0$ac_configure_args_raw
3388
3389 _ACEOF
3390 exec 5>>config.log
3391 {
3392 cat <<_ASUNAME
3393 ## --------- ##
3394 ## Platform. ##
3395 ## --------- ##
3396
3397 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3398 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3399 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3400 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3401 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3402
3403 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3404 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3405
3406 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3407 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3408 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3409 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3410 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3411 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3412 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3413
3414 _ASUNAME
3415
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419   IFS=$as_save_IFS
3420   case $as_dir in #(((
3421     '') as_dir=./ ;;
3422     */) ;;
3423     *) as_dir=$as_dir/ ;;
3424   esac
3425     printf "%s\n" "PATH: $as_dir"
3426   done
3427 IFS=$as_save_IFS
3428
3429 } >&5
3430
3431 cat >&5 <<_ACEOF
3432
3433
3434 ## ----------- ##
3435 ## Core tests. ##
3436 ## ----------- ##
3437
3438 _ACEOF
3439
3440
3441 # Keep a trace of the command line.
3442 # Strip out --no-create and --no-recursion so they do not pile up.
3443 # Strip out --silent because we don't want to record it for future runs.
3444 # Also quote any args containing shell meta-characters.
3445 # Make two passes to allow for proper duplicate-argument suppression.
3446 ac_configure_args=
3447 ac_configure_args0=
3448 ac_configure_args1=
3449 ac_must_keep_next=false
3450 for ac_pass in 1 2
3451 do
3452   for ac_arg
3453   do
3454     case $ac_arg in
3455     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3456     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3457     | -silent | --silent | --silen | --sile | --sil)
3458       continue ;;
3459     *\'*)
3460       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3461     esac
3462     case $ac_pass in
3463     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3464     2)
3465       as_fn_append ac_configure_args1 " '$ac_arg'"
3466       if test $ac_must_keep_next = true; then
3467         ac_must_keep_next=false # Got value, back to normal.
3468       else
3469         case $ac_arg in
3470           *=* | --config-cache | -C | -disable-* | --disable-* \
3471           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3472           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3473           | -with-* | --with-* | -without-* | --without-* | --x)
3474             case "$ac_configure_args0 " in
3475               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3476             esac
3477             ;;
3478           -* ) ac_must_keep_next=true ;;
3479         esac
3480       fi
3481       as_fn_append ac_configure_args " '$ac_arg'"
3482       ;;
3483     esac
3484   done
3485 done
3486 { ac_configure_args0=; unset ac_configure_args0;}
3487 { ac_configure_args1=; unset ac_configure_args1;}
3488
3489 # When interrupted or exit'd, cleanup temporary files, and complete
3490 # config.log.  We remove comments because anyway the quotes in there
3491 # would cause problems or look ugly.
3492 # WARNING: Use '\'' to represent an apostrophe within the trap.
3493 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3494 trap 'exit_status=$?
3495   # Sanitize IFS.
3496   IFS=" ""      $as_nl"
3497   # Save into config.log some information that might help in debugging.
3498   {
3499     echo
3500
3501     printf "%s\n" "## ---------------- ##
3502 ## Cache variables. ##
3503 ## ---------------- ##"
3504     echo
3505     # The following way of writing the cache mishandles newlines in values,
3506 (
3507   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3508     eval ac_val=\$$ac_var
3509     case $ac_val in #(
3510     *${as_nl}*)
3511       case $ac_var in #(
3512       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3513 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3514       esac
3515       case $ac_var in #(
3516       _ | IFS | as_nl) ;; #(
3517       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3518       *) { eval $ac_var=; unset $ac_var;} ;;
3519       esac ;;
3520     esac
3521   done
3522   (set) 2>&1 |
3523     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3524     *${as_nl}ac_space=\ *)
3525       sed -n \
3526         "s/'\''/'\''\\\\'\'''\''/g;
3527           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3528       ;; #(
3529     *)
3530       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3531       ;;
3532     esac |
3533     sort
3534 )
3535     echo
3536
3537     printf "%s\n" "## ----------------- ##
3538 ## Output variables. ##
3539 ## ----------------- ##"
3540     echo
3541     for ac_var in $ac_subst_vars
3542     do
3543       eval ac_val=\$$ac_var
3544       case $ac_val in
3545       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3546       esac
3547       printf "%s\n" "$ac_var='\''$ac_val'\''"
3548     done | sort
3549     echo
3550
3551     if test -n "$ac_subst_files"; then
3552       printf "%s\n" "## ------------------- ##
3553 ## File substitutions. ##
3554 ## ------------------- ##"
3555       echo
3556       for ac_var in $ac_subst_files
3557       do
3558         eval ac_val=\$$ac_var
3559         case $ac_val in
3560         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3561         esac
3562         printf "%s\n" "$ac_var='\''$ac_val'\''"
3563       done | sort
3564       echo
3565     fi
3566
3567     if test -s confdefs.h; then
3568       printf "%s\n" "## ----------- ##
3569 ## confdefs.h. ##
3570 ## ----------- ##"
3571       echo
3572       cat confdefs.h
3573       echo
3574     fi
3575     test "$ac_signal" != 0 &&
3576       printf "%s\n" "$as_me: caught signal $ac_signal"
3577     printf "%s\n" "$as_me: exit $exit_status"
3578   } >&5
3579   rm -f core *.core core.conftest.* &&
3580     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3581     exit $exit_status
3582 ' 0
3583 for ac_signal in 1 2 13 15; do
3584   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3585 done
3586 ac_signal=0
3587
3588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3589 rm -f -r conftest* confdefs.h
3590
3591 printf "%s\n" "/* confdefs.h */" > confdefs.h
3592
3593 # Predefined preprocessor variables.
3594
3595 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3596
3597 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3598
3599 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3600
3601 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3602
3603 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3604
3605 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3606
3607
3608 # Let the site file select an alternate cache file if it wants to.
3609 # Prefer an explicitly selected file to automatically selected ones.
3610 if test -n "$CONFIG_SITE"; then
3611   ac_site_files="$CONFIG_SITE"
3612 elif test "x$prefix" != xNONE; then
3613   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3614 else
3615   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3616 fi
3617
3618 for ac_site_file in $ac_site_files
3619 do
3620   case $ac_site_file in #(
3621   */*) :
3622      ;; #(
3623   *) :
3624     ac_site_file=./$ac_site_file ;;
3625 esac
3626   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3627     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3628 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3629     sed 's/^/| /' "$ac_site_file" >&5
3630     . "$ac_site_file" \
3631       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "failed to load site script $ac_site_file
3634 See \`config.log' for more details" "$LINENO" 5; }
3635   fi
3636 done
3637
3638 if test -r "$cache_file"; then
3639   # Some versions of bash will fail to source /dev/null (special files
3640   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3641   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3642     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3643 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3644     case $cache_file in
3645       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3646       *)                      . "./$cache_file";;
3647     esac
3648   fi
3649 else
3650   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3651 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3652   >$cache_file
3653 fi
3654
3655 # Test code for whether the C compiler supports C89 (global declarations)
3656 ac_c_conftest_c89_globals='
3657 /* Does the compiler advertise C89 conformance?
3658    Do not test the value of __STDC__, because some compilers set it to 0
3659    while being otherwise adequately conformant. */
3660 #if !defined __STDC__
3661 # error "Compiler does not advertise C89 conformance"
3662 #endif
3663
3664 #include <stddef.h>
3665 #include <stdarg.h>
3666 struct stat;
3667 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3668 struct buf { int x; };
3669 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3670 static char *e (p, i)
3671      char **p;
3672      int i;
3673 {
3674   return p[i];
3675 }
3676 static char *f (char * (*g) (char **, int), char **p, ...)
3677 {
3678   char *s;
3679   va_list v;
3680   va_start (v,p);
3681   s = g (p, va_arg (v,int));
3682   va_end (v);
3683   return s;
3684 }
3685
3686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3687    function prototypes and stuff, but not \xHH hex character constants.
3688    These do not provoke an error unfortunately, instead are silently treated
3689    as an "x".  The following induces an error, until -std is added to get
3690    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3691    array size at least.  It is necessary to write \x00 == 0 to get something
3692    that is true only with -std.  */
3693 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3694
3695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696    inside strings and character constants.  */
3697 #define FOO(x) '\''x'\''
3698 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3699
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3704                int, int);'
3705
3706 # Test code for whether the C compiler supports C89 (body of main).
3707 ac_c_conftest_c89_main='
3708 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3709 '
3710
3711 # Test code for whether the C compiler supports C99 (global declarations)
3712 ac_c_conftest_c99_globals='
3713 // Does the compiler advertise C99 conformance?
3714 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3715 # error "Compiler does not advertise C99 conformance"
3716 #endif
3717
3718 #include <stdbool.h>
3719 extern int puts (const char *);
3720 extern int printf (const char *, ...);
3721 extern int dprintf (int, const char *, ...);
3722 extern void *malloc (size_t);
3723
3724 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3725 // dprintf is used instead of fprintf to avoid needing to declare
3726 // FILE and stderr.
3727 #define debug(...) dprintf (2, __VA_ARGS__)
3728 #define showlist(...) puts (#__VA_ARGS__)
3729 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3730 static void
3731 test_varargs_macros (void)
3732 {
3733   int x = 1234;
3734   int y = 5678;
3735   debug ("Flag");
3736   debug ("X = %d\n", x);
3737   showlist (The first, second, and third items.);
3738   report (x>y, "x is %d but y is %d", x, y);
3739 }
3740
3741 // Check long long types.
3742 #define BIG64 18446744073709551615ull
3743 #define BIG32 4294967295ul
3744 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3745 #if !BIG_OK
3746   #error "your preprocessor is broken"
3747 #endif
3748 #if BIG_OK
3749 #else
3750   #error "your preprocessor is broken"
3751 #endif
3752 static long long int bignum = -9223372036854775807LL;
3753 static unsigned long long int ubignum = BIG64;
3754
3755 struct incomplete_array
3756 {
3757   int datasize;
3758   double data[];
3759 };
3760
3761 struct named_init {
3762   int number;
3763   const wchar_t *name;
3764   double average;
3765 };
3766
3767 typedef const char *ccp;
3768
3769 static inline int
3770 test_restrict (ccp restrict text)
3771 {
3772   // See if C++-style comments work.
3773   // Iterate through items via the restricted pointer.
3774   // Also check for declarations in for loops.
3775   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3776     continue;
3777   return 0;
3778 }
3779
3780 // Check varargs and va_copy.
3781 static bool
3782 test_varargs (const char *format, ...)
3783 {
3784   va_list args;
3785   va_start (args, format);
3786   va_list args_copy;
3787   va_copy (args_copy, args);
3788
3789   const char *str = "";
3790   int number = 0;
3791   float fnumber = 0;
3792
3793   while (*format)
3794     {
3795       switch (*format++)
3796         {
3797         case '\''s'\'': // string
3798           str = va_arg (args_copy, const char *);
3799           break;
3800         case '\''d'\'': // int
3801           number = va_arg (args_copy, int);
3802           break;
3803         case '\''f'\'': // float
3804           fnumber = va_arg (args_copy, double);
3805           break;
3806         default:
3807           break;
3808         }
3809     }
3810   va_end (args_copy);
3811   va_end (args);
3812
3813   return *str && number && fnumber;
3814 }
3815 '
3816
3817 # Test code for whether the C compiler supports C99 (body of main).
3818 ac_c_conftest_c99_main='
3819   // Check bool.
3820   _Bool success = false;
3821   success |= (argc != 0);
3822
3823   // Check restrict.
3824   if (test_restrict ("String literal") == 0)
3825     success = true;
3826   char *restrict newvar = "Another string";
3827
3828   // Check varargs.
3829   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3830   test_varargs_macros ();
3831
3832   // Check flexible array members.
3833   struct incomplete_array *ia =
3834     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3835   ia->datasize = 10;
3836   for (int i = 0; i < ia->datasize; ++i)
3837     ia->data[i] = i * 1.234;
3838
3839   // Check named initializers.
3840   struct named_init ni = {
3841     .number = 34,
3842     .name = L"Test wide string",
3843     .average = 543.34343,
3844   };
3845
3846   ni.number = 58;
3847
3848   int dynamic_array[ni.number];
3849   dynamic_array[0] = argv[0][0];
3850   dynamic_array[ni.number - 1] = 543;
3851
3852   // work around unused variable warnings
3853   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3854          || dynamic_array[ni.number - 1] != 543);
3855 '
3856
3857 # Test code for whether the C compiler supports C11 (global declarations)
3858 ac_c_conftest_c11_globals='
3859 // Does the compiler advertise C11 conformance?
3860 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3861 # error "Compiler does not advertise C11 conformance"
3862 #endif
3863
3864 // Check _Alignas.
3865 char _Alignas (double) aligned_as_double;
3866 char _Alignas (0) no_special_alignment;
3867 extern char aligned_as_int;
3868 char _Alignas (0) _Alignas (int) aligned_as_int;
3869
3870 // Check _Alignof.
3871 enum
3872 {
3873   int_alignment = _Alignof (int),
3874   int_array_alignment = _Alignof (int[100]),
3875   char_alignment = _Alignof (char)
3876 };
3877 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3878
3879 // Check _Noreturn.
3880 int _Noreturn does_not_return (void) { for (;;) continue; }
3881
3882 // Check _Static_assert.
3883 struct test_static_assert
3884 {
3885   int x;
3886   _Static_assert (sizeof (int) <= sizeof (long int),
3887                   "_Static_assert does not work in struct");
3888   long int y;
3889 };
3890
3891 // Check UTF-8 literals.
3892 #define u8 syntax error!
3893 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3894
3895 // Check duplicate typedefs.
3896 typedef long *long_ptr;
3897 typedef long int *long_ptr;
3898 typedef long_ptr long_ptr;
3899
3900 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3901 struct anonymous
3902 {
3903   union {
3904     struct { int i; int j; };
3905     struct { int k; long int l; } w;
3906   };
3907   int m;
3908 } v1;
3909 '
3910
3911 # Test code for whether the C compiler supports C11 (body of main).
3912 ac_c_conftest_c11_main='
3913   _Static_assert ((offsetof (struct anonymous, i)
3914                    == offsetof (struct anonymous, w.k)),
3915                   "Anonymous union alignment botch");
3916   v1.i = 2;
3917   v1.w.k = 5;
3918   ok |= v1.i != 5;
3919 '
3920
3921 # Test code for whether the C compiler supports C11 (complete).
3922 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3923 ${ac_c_conftest_c99_globals}
3924 ${ac_c_conftest_c11_globals}
3925
3926 int
3927 main (int argc, char **argv)
3928 {
3929   int ok = 0;
3930   ${ac_c_conftest_c89_main}
3931   ${ac_c_conftest_c99_main}
3932   ${ac_c_conftest_c11_main}
3933   return ok;
3934 }
3935 "
3936
3937 # Test code for whether the C compiler supports C99 (complete).
3938 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3939 ${ac_c_conftest_c99_globals}
3940
3941 int
3942 main (int argc, char **argv)
3943 {
3944   int ok = 0;
3945   ${ac_c_conftest_c89_main}
3946   ${ac_c_conftest_c99_main}
3947   return ok;
3948 }
3949 "
3950
3951 # Test code for whether the C compiler supports C89 (complete).
3952 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3953
3954 int
3955 main (int argc, char **argv)
3956 {
3957   int ok = 0;
3958   ${ac_c_conftest_c89_main}
3959   return ok;
3960 }
3961 "
3962
3963 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3964 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3965 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3966 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3967 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3968 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3969 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3970 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3971 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3972 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3973 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3974 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3975 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
3976 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3977 as_fn_append ac_func_c_list " explicit_bzero HAVE_EXPLICIT_BZERO"
3978 as_fn_append ac_func_c_list " memset_s HAVE_MEMSET_S"
3979 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
3980 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
3981 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
3982 gl_getopt_required=GNU
3983 as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H"
3984 as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H"
3985 as_fn_append ac_func_c_list " timespec_get HAVE_TIMESPEC_GET"
3986 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3987 as_fn_append ac_func_c_list " gettimeofday HAVE_GETTIMEOFDAY"
3988 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
3989 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3990 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
3991 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
3992 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
3993
3994 # Auxiliary files required by this configure script.
3995 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
3996
3997 # Locations in which to look for auxiliary files.
3998 ac_aux_dir_candidates="${srcdir}/build-aux"
3999
4000 # Search for a directory containing all of the required auxiliary files,
4001 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
4002 # If we don't find one directory that contains all the files we need,
4003 # we report the set of missing files from the *first* directory in
4004 # $ac_aux_dir_candidates and give up.
4005 ac_missing_aux_files=""
4006 ac_first_candidate=:
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 as_found=false
4010 for as_dir in $ac_aux_dir_candidates
4011 do
4012   IFS=$as_save_IFS
4013   case $as_dir in #(((
4014     '') as_dir=./ ;;
4015     */) ;;
4016     *) as_dir=$as_dir/ ;;
4017   esac
4018   as_found=:
4019
4020   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
4021   ac_aux_dir_found=yes
4022   ac_install_sh=
4023   for ac_aux in $ac_aux_files
4024   do
4025     # As a special case, if "install-sh" is required, that requirement
4026     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
4027     # and $ac_install_sh is set appropriately for whichever one is found.
4028     if test x"$ac_aux" = x"install-sh"
4029     then
4030       if test -f "${as_dir}install-sh"; then
4031         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
4032         ac_install_sh="${as_dir}install-sh -c"
4033       elif test -f "${as_dir}install.sh"; then
4034         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
4035         ac_install_sh="${as_dir}install.sh -c"
4036       elif test -f "${as_dir}shtool"; then
4037         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
4038         ac_install_sh="${as_dir}shtool install -c"
4039       else
4040         ac_aux_dir_found=no
4041         if $ac_first_candidate; then
4042           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
4043         else
4044           break
4045         fi
4046       fi
4047     else
4048       if test -f "${as_dir}${ac_aux}"; then
4049         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
4050       else
4051         ac_aux_dir_found=no
4052         if $ac_first_candidate; then
4053           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
4054         else
4055           break
4056         fi
4057       fi
4058     fi
4059   done
4060   if test "$ac_aux_dir_found" = yes; then
4061     ac_aux_dir="$as_dir"
4062     break
4063   fi
4064   ac_first_candidate=false
4065
4066   as_found=false
4067 done
4068 IFS=$as_save_IFS
4069 if $as_found
4070 then :
4071
4072 else $as_nop
4073   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
4074 fi
4075
4076
4077 # These three variables are undocumented and unsupported,
4078 # and are intended to be withdrawn in a future Autoconf release.
4079 # They can cause serious problems if a builder's source tree is in a directory
4080 # whose full name contains unusual characters.
4081 if test -f "${ac_aux_dir}config.guess"; then
4082   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
4083 fi
4084 if test -f "${ac_aux_dir}config.sub"; then
4085   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
4086 fi
4087 if test -f "$ac_aux_dir/configure"; then
4088   ac_configure="$SHELL ${ac_aux_dir}configure"
4089 fi
4090
4091 # Check that the precious variables saved in the cache have kept the same
4092 # value.
4093 ac_cache_corrupted=false
4094 for ac_var in $ac_precious_vars; do
4095   eval ac_old_set=\$ac_cv_env_${ac_var}_set
4096   eval ac_new_set=\$ac_env_${ac_var}_set
4097   eval ac_old_val=\$ac_cv_env_${ac_var}_value
4098   eval ac_new_val=\$ac_env_${ac_var}_value
4099   case $ac_old_set,$ac_new_set in
4100     set,)
4101       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4102 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4103       ac_cache_corrupted=: ;;
4104     ,set)
4105       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4106 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4107       ac_cache_corrupted=: ;;
4108     ,);;
4109     *)
4110       if test "x$ac_old_val" != "x$ac_new_val"; then
4111         # differences in whitespace do not lead to failure.
4112         ac_old_val_w=`echo x $ac_old_val`
4113         ac_new_val_w=`echo x $ac_new_val`
4114         if test "$ac_old_val_w" != "$ac_new_val_w"; then
4115           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4116 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4117           ac_cache_corrupted=:
4118         else
4119           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4120 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4121           eval $ac_var=\$ac_old_val
4122         fi
4123         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
4124 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
4125         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
4126 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
4127       fi;;
4128   esac
4129   # Pass precious variables to config.status.
4130   if test "$ac_new_set" = set; then
4131     case $ac_new_val in
4132     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4133     *) ac_arg=$ac_var=$ac_new_val ;;
4134     esac
4135     case " $ac_configure_args " in
4136       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
4137       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4138     esac
4139   fi
4140 done
4141 if $ac_cache_corrupted; then
4142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4144   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4145 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
4146   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
4147             and start over" "$LINENO" 5
4148 fi
4149 ## -------------------- ##
4150 ## Main body of script. ##
4151 ## -------------------- ##
4152
4153 ac_ext=c
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158
4159
4160
4161 # Library code modified:                              REVISION++
4162 # Interfaces changed/added/removed:   CURRENT++       REVISION=0
4163 # Interfaces added:                             AGE++
4164 # Interfaces removed:                           AGE=0
4165 LT_CURRENT=12
4166
4167 LT_REVISION=3
4168
4169 LT_AGE=6
4170
4171
4172 MAJOR_VERSION=`echo $PACKAGE_VERSION|cut -d'.' -f1`
4173
4174 MINOR_VERSION=`echo $PACKAGE_VERSION|cut -d'.' -f2`
4175
4176 PATCH_VERSION=`echo $PACKAGE_VERSION.0|cut -d. -f3|cut -d- -f1`
4177
4178 NUMBER_VERSION=`printf '0x%02x%02x%02x' $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
4179
4180
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION $NUMBER_VERSION $LT_CURRENT:$LT_REVISION:$LT_AGE $DLL_VERSION" >&5
4182 printf "%s\n" "$as_me: $PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION $NUMBER_VERSION $LT_CURRENT:$LT_REVISION:$LT_AGE $DLL_VERSION" >&6;}
4183
4184
4185
4186 ac_config_headers="$ac_config_headers config.h"
4187
4188
4189 am__api_version='1.16'
4190
4191
4192
4193   # Find a good install program.  We prefer a C program (faster),
4194 # so one script is as good as another.  But avoid the broken or
4195 # incompatible versions:
4196 # SysV /etc/install, /usr/sbin/install
4197 # SunOS /usr/etc/install
4198 # IRIX /sbin/install
4199 # AIX /bin/install
4200 # AmigaOS /C/install, which installs bootblocks on floppy discs
4201 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4202 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4203 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4204 # OS/2's system install, which has a completely different semantic
4205 # ./install, which can be erroneously created by make from ./install.sh.
4206 # Reject install programs that cannot install multiple files.
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4208 printf %s "checking for a BSD-compatible install... " >&6; }
4209 if test -z "$INSTALL"; then
4210 if test ${ac_cv_path_install+y}
4211 then :
4212   printf %s "(cached) " >&6
4213 else $as_nop
4214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   case $as_dir in #(((
4219     '') as_dir=./ ;;
4220     */) ;;
4221     *) as_dir=$as_dir/ ;;
4222   esac
4223     # Account for fact that we put trailing slashes in our PATH walk.
4224 case $as_dir in #((
4225   ./ | /[cC]/* | \
4226   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4227   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4228   /usr/ucb/* ) ;;
4229   *)
4230     # OSF1 and SCO ODT 3.0 have their own names for install.
4231     # Don't use installbsd from OSF since it installs stuff as root
4232     # by default.
4233     for ac_prog in ginstall scoinst install; do
4234       for ac_exec_ext in '' $ac_executable_extensions; do
4235         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4236           if test $ac_prog = install &&
4237             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4238             # AIX install.  It has an incompatible calling convention.
4239             :
4240           elif test $ac_prog = install &&
4241             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242             # program-specific install script used by HP pwplus--don't use.
4243             :
4244           else
4245             rm -rf conftest.one conftest.two conftest.dir
4246             echo one > conftest.one
4247             echo two > conftest.two
4248             mkdir conftest.dir
4249             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4250               test -s conftest.one && test -s conftest.two &&
4251               test -s conftest.dir/conftest.one &&
4252               test -s conftest.dir/conftest.two
4253             then
4254               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4255               break 3
4256             fi
4257           fi
4258         fi
4259       done
4260     done
4261     ;;
4262 esac
4263
4264   done
4265 IFS=$as_save_IFS
4266
4267 rm -rf conftest.one conftest.two conftest.dir
4268
4269 fi
4270   if test ${ac_cv_path_install+y}; then
4271     INSTALL=$ac_cv_path_install
4272   else
4273     # As a last resort, use the slow shell script.  Don't cache a
4274     # value for INSTALL within a source directory, because that will
4275     # break other packages using the cache if that directory is
4276     # removed, or if the value is a relative name.
4277     INSTALL=$ac_install_sh
4278   fi
4279 fi
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4281 printf "%s\n" "$INSTALL" >&6; }
4282
4283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4284 # It thinks the first close brace ends the variable substitution.
4285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4286
4287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4288
4289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4290
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4292 printf %s "checking whether build environment is sane... " >&6; }
4293 # Reject unsafe characters in $srcdir or the absolute working directory
4294 # name.  Accept space and tab only in the latter.
4295 am_lf='
4296 '
4297 case `pwd` in
4298   *[\\\"\#\$\&\'\`$am_lf]*)
4299     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4300 esac
4301 case $srcdir in
4302   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4303     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4304 esac
4305
4306 # Do 'set' in a subshell so we don't clobber the current shell's
4307 # arguments.  Must try -L first in case configure is actually a
4308 # symlink; some systems play weird games with the mod time of symlinks
4309 # (eg FreeBSD returns the mod time of the symlink's containing
4310 # directory).
4311 if (
4312    am_has_slept=no
4313    for am_try in 1 2; do
4314      echo "timestamp, slept: $am_has_slept" > conftest.file
4315      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4316      if test "$*" = "X"; then
4317         # -L didn't work.
4318         set X `ls -t "$srcdir/configure" conftest.file`
4319      fi
4320      if test "$*" != "X $srcdir/configure conftest.file" \
4321         && test "$*" != "X conftest.file $srcdir/configure"; then
4322
4323         # If neither matched, then we have a broken ls.  This can happen
4324         # if, for instance, CONFIG_SHELL is bash and it inherits a
4325         # broken ls alias from the environment.  This has actually
4326         # happened.  Such a system could not be considered "sane".
4327         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4328   alias in your environment" "$LINENO" 5
4329      fi
4330      if test "$2" = conftest.file || test $am_try -eq 2; then
4331        break
4332      fi
4333      # Just in case.
4334      sleep 1
4335      am_has_slept=yes
4336    done
4337    test "$2" = conftest.file
4338    )
4339 then
4340    # Ok.
4341    :
4342 else
4343    as_fn_error $? "newly created file is older than distributed files!
4344 Check your system clock" "$LINENO" 5
4345 fi
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4347 printf "%s\n" "yes" >&6; }
4348 # If we didn't sleep, we still need to ensure time stamps of config.status and
4349 # generated files are strictly newer.
4350 am_sleep_pid=
4351 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4352   ( sleep 1 ) &
4353   am_sleep_pid=$!
4354 fi
4355
4356 rm -f conftest.file
4357
4358 test "$program_prefix" != NONE &&
4359   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4360 # Use a double $ so make ignores it.
4361 test "$program_suffix" != NONE &&
4362   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4363 # Double any \ or $.
4364 # By default was `s,x,x', remove it if useless.
4365 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4366 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4367
4368
4369 # Expand $ac_aux_dir to an absolute path.
4370 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4371
4372
4373   if test x"${MISSING+set}" != xset; then
4374   MISSING="\${SHELL} '$am_aux_dir/missing'"
4375 fi
4376 # Use eval to expand $SHELL
4377 if eval "$MISSING --is-lightweight"; then
4378   am_missing_run="$MISSING "
4379 else
4380   am_missing_run=
4381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4382 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4383 fi
4384
4385 if test x"${install_sh+set}" != xset; then
4386   case $am_aux_dir in
4387   *\ * | *\     *)
4388     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4389   *)
4390     install_sh="\${SHELL} $am_aux_dir/install-sh"
4391   esac
4392 fi
4393
4394 # Installed binaries are usually stripped using 'strip' when the user
4395 # run "make install-strip".  However 'strip' might not be the right
4396 # tool to use in cross-compilation environments, therefore Automake
4397 # will honor the 'STRIP' environment variable to overrule this program.
4398 if test "$cross_compiling" != no; then
4399   if test -n "$ac_tool_prefix"; then
4400   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4401 set dummy ${ac_tool_prefix}strip; ac_word=$2
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 printf %s "checking for $ac_word... " >&6; }
4404 if test ${ac_cv_prog_STRIP+y}
4405 then :
4406   printf %s "(cached) " >&6
4407 else $as_nop
4408   if test -n "$STRIP"; then
4409   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   case $as_dir in #(((
4416     '') as_dir=./ ;;
4417     */) ;;
4418     *) as_dir=$as_dir/ ;;
4419   esac
4420     for ac_exec_ext in '' $ac_executable_extensions; do
4421   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4422     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4423     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4424     break 2
4425   fi
4426 done
4427   done
4428 IFS=$as_save_IFS
4429
4430 fi
4431 fi
4432 STRIP=$ac_cv_prog_STRIP
4433 if test -n "$STRIP"; then
4434   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4435 printf "%s\n" "$STRIP" >&6; }
4436 else
4437   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 printf "%s\n" "no" >&6; }
4439 fi
4440
4441
4442 fi
4443 if test -z "$ac_cv_prog_STRIP"; then
4444   ac_ct_STRIP=$STRIP
4445   # Extract the first word of "strip", so it can be a program name with args.
4446 set dummy strip; ac_word=$2
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 printf %s "checking for $ac_word... " >&6; }
4449 if test ${ac_cv_prog_ac_ct_STRIP+y}
4450 then :
4451   printf %s "(cached) " >&6
4452 else $as_nop
4453   if test -n "$ac_ct_STRIP"; then
4454   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   case $as_dir in #(((
4461     '') as_dir=./ ;;
4462     */) ;;
4463     *) as_dir=$as_dir/ ;;
4464   esac
4465     for ac_exec_ext in '' $ac_executable_extensions; do
4466   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4467     ac_cv_prog_ac_ct_STRIP="strip"
4468     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4469     break 2
4470   fi
4471 done
4472   done
4473 IFS=$as_save_IFS
4474
4475 fi
4476 fi
4477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4478 if test -n "$ac_ct_STRIP"; then
4479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4480 printf "%s\n" "$ac_ct_STRIP" >&6; }
4481 else
4482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 printf "%s\n" "no" >&6; }
4484 fi
4485
4486   if test "x$ac_ct_STRIP" = x; then
4487     STRIP=":"
4488   else
4489     case $cross_compiling:$ac_tool_warned in
4490 yes:)
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493 ac_tool_warned=yes ;;
4494 esac
4495     STRIP=$ac_ct_STRIP
4496   fi
4497 else
4498   STRIP="$ac_cv_prog_STRIP"
4499 fi
4500
4501 fi
4502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4503
4504
4505   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4506 printf %s "checking for a race-free mkdir -p... " >&6; }
4507 if test -z "$MKDIR_P"; then
4508   if test ${ac_cv_path_mkdir+y}
4509 then :
4510   printf %s "(cached) " >&6
4511 else $as_nop
4512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4514 do
4515   IFS=$as_save_IFS
4516   case $as_dir in #(((
4517     '') as_dir=./ ;;
4518     */) ;;
4519     *) as_dir=$as_dir/ ;;
4520   esac
4521     for ac_prog in mkdir gmkdir; do
4522          for ac_exec_ext in '' $ac_executable_extensions; do
4523            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4524            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4525              'mkdir ('*'coreutils) '* | \
4526              'BusyBox '* | \
4527              'mkdir (fileutils) '4.1*)
4528                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4529                break 3;;
4530            esac
4531          done
4532        done
4533   done
4534 IFS=$as_save_IFS
4535
4536 fi
4537
4538   test -d ./--version && rmdir ./--version
4539   if test ${ac_cv_path_mkdir+y}; then
4540     MKDIR_P="$ac_cv_path_mkdir -p"
4541   else
4542     # As a last resort, use the slow shell script.  Don't cache a
4543     # value for MKDIR_P within a source directory, because that will
4544     # break other packages using the cache if that directory is
4545     # removed, or if the value is a relative name.
4546     MKDIR_P="$ac_install_sh -d"
4547   fi
4548 fi
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4550 printf "%s\n" "$MKDIR_P" >&6; }
4551
4552 for ac_prog in gawk mawk nawk awk
4553 do
4554   # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 printf %s "checking for $ac_word... " >&6; }
4558 if test ${ac_cv_prog_AWK+y}
4559 then :
4560   printf %s "(cached) " >&6
4561 else $as_nop
4562   if test -n "$AWK"; then
4563   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568   IFS=$as_save_IFS
4569   case $as_dir in #(((
4570     '') as_dir=./ ;;
4571     */) ;;
4572     *) as_dir=$as_dir/ ;;
4573   esac
4574     for ac_exec_ext in '' $ac_executable_extensions; do
4575   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4576     ac_cv_prog_AWK="$ac_prog"
4577     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4578     break 2
4579   fi
4580 done
4581   done
4582 IFS=$as_save_IFS
4583
4584 fi
4585 fi
4586 AWK=$ac_cv_prog_AWK
4587 if test -n "$AWK"; then
4588   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4589 printf "%s\n" "$AWK" >&6; }
4590 else
4591   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 printf "%s\n" "no" >&6; }
4593 fi
4594
4595
4596   test -n "$AWK" && break
4597 done
4598
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4600 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4601 set x ${MAKE-make}
4602 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4603 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4604 then :
4605   printf %s "(cached) " >&6
4606 else $as_nop
4607   cat >conftest.make <<\_ACEOF
4608 SHELL = /bin/sh
4609 all:
4610         @echo '@@@%%%=$(MAKE)=@@@%%%'
4611 _ACEOF
4612 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4613 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4614   *@@@%%%=?*=@@@%%%*)
4615     eval ac_cv_prog_make_${ac_make}_set=yes;;
4616   *)
4617     eval ac_cv_prog_make_${ac_make}_set=no;;
4618 esac
4619 rm -f conftest.make
4620 fi
4621 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4622   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4623 printf "%s\n" "yes" >&6; }
4624   SET_MAKE=
4625 else
4626   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 printf "%s\n" "no" >&6; }
4628   SET_MAKE="MAKE=${MAKE-make}"
4629 fi
4630
4631 rm -rf .tst 2>/dev/null
4632 mkdir .tst 2>/dev/null
4633 if test -d .tst; then
4634   am__leading_dot=.
4635 else
4636   am__leading_dot=_
4637 fi
4638 rmdir .tst 2>/dev/null
4639
4640 # Check whether --enable-silent-rules was given.
4641 if test ${enable_silent_rules+y}
4642 then :
4643   enableval=$enable_silent_rules;
4644 fi
4645
4646 case $enable_silent_rules in # (((
4647   yes) AM_DEFAULT_VERBOSITY=0;;
4648    no) AM_DEFAULT_VERBOSITY=1;;
4649     *) AM_DEFAULT_VERBOSITY=1;;
4650 esac
4651 am_make=${MAKE-make}
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4653 printf %s "checking whether $am_make supports nested variables... " >&6; }
4654 if test ${am_cv_make_support_nested_variables+y}
4655 then :
4656   printf %s "(cached) " >&6
4657 else $as_nop
4658   if printf "%s\n" 'TRUE=$(BAR$(V))
4659 BAR0=false
4660 BAR1=true
4661 V=1
4662 am__doit:
4663         @$(TRUE)
4664 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4665   am_cv_make_support_nested_variables=yes
4666 else
4667   am_cv_make_support_nested_variables=no
4668 fi
4669 fi
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4671 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4672 if test $am_cv_make_support_nested_variables = yes; then
4673     AM_V='$(V)'
4674   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4675 else
4676   AM_V=$AM_DEFAULT_VERBOSITY
4677   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4678 fi
4679 AM_BACKSLASH='\'
4680
4681 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4682   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4683   # is not polluted with repeated "-I."
4684   am__isrc=' -I$(srcdir)'
4685   # test to see if srcdir already configured
4686   if test -f $srcdir/config.status; then
4687     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4688   fi
4689 fi
4690
4691 # test whether we have cygpath
4692 if test -z "$CYGPATH_W"; then
4693   if (cygpath --version) >/dev/null 2>/dev/null; then
4694     CYGPATH_W='cygpath -w'
4695   else
4696     CYGPATH_W=echo
4697   fi
4698 fi
4699
4700
4701 # Define the identity of the package.
4702  PACKAGE='libtasn1'
4703  VERSION='4.19.0'
4704
4705
4706 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4707
4708
4709 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4710
4711 # Some tools Automake needs.
4712
4713 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4714
4715
4716 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4717
4718
4719 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4720
4721
4722 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4723
4724
4725 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4726
4727 # For better backward compatibility.  To be removed once Automake 1.9.x
4728 # dies out for good.  For more background, see:
4729 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4730 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4731 mkdir_p='$(MKDIR_P)'
4732
4733 # We need awk for the "check" target (and possibly the TAP driver).  The
4734 # system "awk" is bad on some platforms.
4735 # Always define AMTAR for backward compatibility.  Yes, it's still used
4736 # in the wild :-(  We should find a proper way to deprecate it ...
4737 AMTAR='$${TAR-tar}'
4738
4739
4740 # We'll loop over all known methods to create a tar archive until one works.
4741 _am_tools='gnutar  pax cpio none'
4742
4743 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4744
4745
4746
4747
4748
4749 # Variables for tags utilities; see am/tags.am
4750 if test -z "$CTAGS"; then
4751   CTAGS=ctags
4752 fi
4753
4754 if test -z "$ETAGS"; then
4755   ETAGS=etags
4756 fi
4757
4758 if test -z "$CSCOPE"; then
4759   CSCOPE=cscope
4760 fi
4761
4762
4763
4764 # POSIX will say in a future version that running "rm -f" with no argument
4765 # is OK; and we want to be able to make that assumption in our Makefile
4766 # recipes.  So use an aggressive probe to check that the usage we want is
4767 # actually supported "in the wild" to an acceptable degree.
4768 # See automake bug#10828.
4769 # To make any issue more visible, cause the running configure to be aborted
4770 # by default if the 'rm' program in use doesn't match our expectations; the
4771 # user can still override this though.
4772 if rm -f && rm -fr && rm -rf; then : OK; else
4773   cat >&2 <<'END'
4774 Oops!
4775
4776 Your 'rm' program seems unable to run without file operands specified
4777 on the command line, even when the '-f' option is present.  This is contrary
4778 to the behaviour of most rm programs out there, and not conforming with
4779 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4780
4781 Please tell bug-automake@gnu.org about your system, including the value
4782 of your $PATH and any error possibly output before this message.  This
4783 can help us improve future automake versions.
4784
4785 END
4786   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4787     echo 'Configuration will proceed anyway, since you have set the' >&2
4788     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4789     echo >&2
4790   else
4791     cat >&2 <<'END'
4792 Aborting the configuration process, to ensure you take notice of the issue.
4793
4794 You can download and install GNU coreutils to get an 'rm' implementation
4795 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4796
4797 If you want to complete the configuration process using your problematic
4798 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4799 to "yes", and re-run configure.
4800
4801 END
4802     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4803   fi
4804 fi
4805
4806 # Check whether --enable-silent-rules was given.
4807 if test ${enable_silent_rules+y}
4808 then :
4809   enableval=$enable_silent_rules;
4810 fi
4811
4812 case $enable_silent_rules in # (((
4813   yes) AM_DEFAULT_VERBOSITY=0;;
4814    no) AM_DEFAULT_VERBOSITY=1;;
4815     *) AM_DEFAULT_VERBOSITY=0;;
4816 esac
4817 am_make=${MAKE-make}
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4819 printf %s "checking whether $am_make supports nested variables... " >&6; }
4820 if test ${am_cv_make_support_nested_variables+y}
4821 then :
4822   printf %s "(cached) " >&6
4823 else $as_nop
4824   if printf "%s\n" 'TRUE=$(BAR$(V))
4825 BAR0=false
4826 BAR1=true
4827 V=1
4828 am__doit:
4829         @$(TRUE)
4830 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4831   am_cv_make_support_nested_variables=yes
4832 else
4833   am_cv_make_support_nested_variables=no
4834 fi
4835 fi
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4837 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4838 if test $am_cv_make_support_nested_variables = yes; then
4839     AM_V='$(V)'
4840   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4841 else
4842   AM_V=$AM_DEFAULT_VERBOSITY
4843   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4844 fi
4845 AM_BACKSLASH='\'
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857 ac_ext=c
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 if test -n "$ac_tool_prefix"; then
4863   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 printf %s "checking for $ac_word... " >&6; }
4867 if test ${ac_cv_prog_CC+y}
4868 then :
4869   printf %s "(cached) " >&6
4870 else $as_nop
4871   if test -n "$CC"; then
4872   ac_cv_prog_CC="$CC" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   case $as_dir in #(((
4879     '') as_dir=./ ;;
4880     */) ;;
4881     *) as_dir=$as_dir/ ;;
4882   esac
4883     for ac_exec_ext in '' $ac_executable_extensions; do
4884   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4885     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4886     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4887     break 2
4888   fi
4889 done
4890   done
4891 IFS=$as_save_IFS
4892
4893 fi
4894 fi
4895 CC=$ac_cv_prog_CC
4896 if test -n "$CC"; then
4897   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4898 printf "%s\n" "$CC" >&6; }
4899 else
4900   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 printf "%s\n" "no" >&6; }
4902 fi
4903
4904
4905 fi
4906 if test -z "$ac_cv_prog_CC"; then
4907   ac_ct_CC=$CC
4908   # Extract the first word of "gcc", so it can be a program name with args.
4909 set dummy gcc; ac_word=$2
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 printf %s "checking for $ac_word... " >&6; }
4912 if test ${ac_cv_prog_ac_ct_CC+y}
4913 then :
4914   printf %s "(cached) " >&6
4915 else $as_nop
4916   if test -n "$ac_ct_CC"; then
4917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   case $as_dir in #(((
4924     '') as_dir=./ ;;
4925     */) ;;
4926     *) as_dir=$as_dir/ ;;
4927   esac
4928     for ac_exec_ext in '' $ac_executable_extensions; do
4929   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4930     ac_cv_prog_ac_ct_CC="gcc"
4931     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935   done
4936 IFS=$as_save_IFS
4937
4938 fi
4939 fi
4940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4941 if test -n "$ac_ct_CC"; then
4942   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4943 printf "%s\n" "$ac_ct_CC" >&6; }
4944 else
4945   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 printf "%s\n" "no" >&6; }
4947 fi
4948
4949   if test "x$ac_ct_CC" = x; then
4950     CC=""
4951   else
4952     case $cross_compiling:$ac_tool_warned in
4953 yes:)
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956 ac_tool_warned=yes ;;
4957 esac
4958     CC=$ac_ct_CC
4959   fi
4960 else
4961   CC="$ac_cv_prog_CC"
4962 fi
4963
4964 if test -z "$CC"; then
4965           if test -n "$ac_tool_prefix"; then
4966     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}cc; ac_word=$2
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 printf %s "checking for $ac_word... " >&6; }
4970 if test ${ac_cv_prog_CC+y}
4971 then :
4972   printf %s "(cached) " >&6
4973 else $as_nop
4974   if test -n "$CC"; then
4975   ac_cv_prog_CC="$CC" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   case $as_dir in #(((
4982     '') as_dir=./ ;;
4983     */) ;;
4984     *) as_dir=$as_dir/ ;;
4985   esac
4986     for ac_exec_ext in '' $ac_executable_extensions; do
4987   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4988     ac_cv_prog_CC="${ac_tool_prefix}cc"
4989     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4990     break 2
4991   fi
4992 done
4993   done
4994 IFS=$as_save_IFS
4995
4996 fi
4997 fi
4998 CC=$ac_cv_prog_CC
4999 if test -n "$CC"; then
5000   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5001 printf "%s\n" "$CC" >&6; }
5002 else
5003   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 printf "%s\n" "no" >&6; }
5005 fi
5006
5007
5008   fi
5009 fi
5010 if test -z "$CC"; then
5011   # Extract the first word of "cc", so it can be a program name with args.
5012 set dummy cc; ac_word=$2
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 printf %s "checking for $ac_word... " >&6; }
5015 if test ${ac_cv_prog_CC+y}
5016 then :
5017   printf %s "(cached) " >&6
5018 else $as_nop
5019   if test -n "$CC"; then
5020   ac_cv_prog_CC="$CC" # Let the user override the test.
5021 else
5022   ac_prog_rejected=no
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   case $as_dir in #(((
5028     '') as_dir=./ ;;
5029     */) ;;
5030     *) as_dir=$as_dir/ ;;
5031   esac
5032     for ac_exec_ext in '' $ac_executable_extensions; do
5033   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5034     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5035        ac_prog_rejected=yes
5036        continue
5037      fi
5038     ac_cv_prog_CC="cc"
5039     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043   done
5044 IFS=$as_save_IFS
5045
5046 if test $ac_prog_rejected = yes; then
5047   # We found a bogon in the path, so make sure we never use it.
5048   set dummy $ac_cv_prog_CC
5049   shift
5050   if test $# != 0; then
5051     # We chose a different compiler from the bogus one.
5052     # However, it has the same basename, so the bogon will be chosen
5053     # first if we set CC to just the basename; use the full file name.
5054     shift
5055     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5056   fi
5057 fi
5058 fi
5059 fi
5060 CC=$ac_cv_prog_CC
5061 if test -n "$CC"; then
5062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5063 printf "%s\n" "$CC" >&6; }
5064 else
5065   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 printf "%s\n" "no" >&6; }
5067 fi
5068
5069
5070 fi
5071 if test -z "$CC"; then
5072   if test -n "$ac_tool_prefix"; then
5073   for ac_prog in cl.exe
5074   do
5075     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 printf %s "checking for $ac_word... " >&6; }
5079 if test ${ac_cv_prog_CC+y}
5080 then :
5081   printf %s "(cached) " >&6
5082 else $as_nop
5083   if test -n "$CC"; then
5084   ac_cv_prog_CC="$CC" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   case $as_dir in #(((
5091     '') as_dir=./ ;;
5092     */) ;;
5093     *) as_dir=$as_dir/ ;;
5094   esac
5095     for ac_exec_ext in '' $ac_executable_extensions; do
5096   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5097     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5098     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102   done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 CC=$ac_cv_prog_CC
5108 if test -n "$CC"; then
5109   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110 printf "%s\n" "$CC" >&6; }
5111 else
5112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 printf "%s\n" "no" >&6; }
5114 fi
5115
5116
5117     test -n "$CC" && break
5118   done
5119 fi
5120 if test -z "$CC"; then
5121   ac_ct_CC=$CC
5122   for ac_prog in cl.exe
5123 do
5124   # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 printf %s "checking for $ac_word... " >&6; }
5128 if test ${ac_cv_prog_ac_ct_CC+y}
5129 then :
5130   printf %s "(cached) " >&6
5131 else $as_nop
5132   if test -n "$ac_ct_CC"; then
5133   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   case $as_dir in #(((
5140     '') as_dir=./ ;;
5141     */) ;;
5142     *) as_dir=$as_dir/ ;;
5143   esac
5144     for ac_exec_ext in '' $ac_executable_extensions; do
5145   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5146     ac_cv_prog_ac_ct_CC="$ac_prog"
5147     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151   done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5157 if test -n "$ac_ct_CC"; then
5158   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5159 printf "%s\n" "$ac_ct_CC" >&6; }
5160 else
5161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 printf "%s\n" "no" >&6; }
5163 fi
5164
5165
5166   test -n "$ac_ct_CC" && break
5167 done
5168
5169   if test "x$ac_ct_CC" = x; then
5170     CC=""
5171   else
5172     case $cross_compiling:$ac_tool_warned in
5173 yes:)
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5177 esac
5178     CC=$ac_ct_CC
5179   fi
5180 fi
5181
5182 fi
5183 if test -z "$CC"; then
5184   if test -n "$ac_tool_prefix"; then
5185   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5186 set dummy ${ac_tool_prefix}clang; ac_word=$2
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 printf %s "checking for $ac_word... " >&6; }
5189 if test ${ac_cv_prog_CC+y}
5190 then :
5191   printf %s "(cached) " >&6
5192 else $as_nop
5193   if test -n "$CC"; then
5194   ac_cv_prog_CC="$CC" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   case $as_dir in #(((
5201     '') as_dir=./ ;;
5202     */) ;;
5203     *) as_dir=$as_dir/ ;;
5204   esac
5205     for ac_exec_ext in '' $ac_executable_extensions; do
5206   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5207     ac_cv_prog_CC="${ac_tool_prefix}clang"
5208     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5209     break 2
5210   fi
5211 done
5212   done
5213 IFS=$as_save_IFS
5214
5215 fi
5216 fi
5217 CC=$ac_cv_prog_CC
5218 if test -n "$CC"; then
5219   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5220 printf "%s\n" "$CC" >&6; }
5221 else
5222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 printf "%s\n" "no" >&6; }
5224 fi
5225
5226
5227 fi
5228 if test -z "$ac_cv_prog_CC"; then
5229   ac_ct_CC=$CC
5230   # Extract the first word of "clang", so it can be a program name with args.
5231 set dummy clang; ac_word=$2
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 printf %s "checking for $ac_word... " >&6; }
5234 if test ${ac_cv_prog_ac_ct_CC+y}
5235 then :
5236   printf %s "(cached) " >&6
5237 else $as_nop
5238   if test -n "$ac_ct_CC"; then
5239   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244   IFS=$as_save_IFS
5245   case $as_dir in #(((
5246     '') as_dir=./ ;;
5247     */) ;;
5248     *) as_dir=$as_dir/ ;;
5249   esac
5250     for ac_exec_ext in '' $ac_executable_extensions; do
5251   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5252     ac_cv_prog_ac_ct_CC="clang"
5253     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257   done
5258 IFS=$as_save_IFS
5259
5260 fi
5261 fi
5262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5263 if test -n "$ac_ct_CC"; then
5264   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5265 printf "%s\n" "$ac_ct_CC" >&6; }
5266 else
5267   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 printf "%s\n" "no" >&6; }
5269 fi
5270
5271   if test "x$ac_ct_CC" = x; then
5272     CC=""
5273   else
5274     case $cross_compiling:$ac_tool_warned in
5275 yes:)
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5279 esac
5280     CC=$ac_ct_CC
5281   fi
5282 else
5283   CC="$ac_cv_prog_CC"
5284 fi
5285
5286 fi
5287
5288
5289 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5290 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5291 as_fn_error $? "no acceptable C compiler found in \$PATH
5292 See \`config.log' for more details" "$LINENO" 5; }
5293
5294 # Provide some information about the compiler.
5295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5296 set X $ac_compile
5297 ac_compiler=$2
5298 for ac_option in --version -v -V -qversion -version; do
5299   { { ac_try="$ac_compiler $ac_option >&5"
5300 case "(($ac_try" in
5301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302   *) ac_try_echo=$ac_try;;
5303 esac
5304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5305 printf "%s\n" "$ac_try_echo"; } >&5
5306   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5307   ac_status=$?
5308   if test -s conftest.err; then
5309     sed '10a\
5310 ... rest of stderr output deleted ...
5311          10q' conftest.err >conftest.er1
5312     cat conftest.er1 >&5
5313   fi
5314   rm -f conftest.er1 conftest.err
5315   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5316   test $ac_status = 0; }
5317 done
5318
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h.  */
5321
5322 int
5323 main (void)
5324 {
5325
5326   ;
5327   return 0;
5328 }
5329 _ACEOF
5330 ac_clean_files_save=$ac_clean_files
5331 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5332 # Try to create an executable without -o first, disregard a.out.
5333 # It will help us diagnose broken compilers, and finding out an intuition
5334 # of exeext.
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5336 printf %s "checking whether the C compiler works... " >&6; }
5337 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5338
5339 # The possible output files:
5340 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5341
5342 ac_rmfiles=
5343 for ac_file in $ac_files
5344 do
5345   case $ac_file in
5346     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5347     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5348   esac
5349 done
5350 rm -f $ac_rmfiles
5351
5352 if { { ac_try="$ac_link_default"
5353 case "(($ac_try" in
5354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355   *) ac_try_echo=$ac_try;;
5356 esac
5357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5358 printf "%s\n" "$ac_try_echo"; } >&5
5359   (eval "$ac_link_default") 2>&5
5360   ac_status=$?
5361   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5362   test $ac_status = 0; }
5363 then :
5364   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5365 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5366 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5367 # so that the user can short-circuit this test for compilers unknown to
5368 # Autoconf.
5369 for ac_file in $ac_files ''
5370 do
5371   test -f "$ac_file" || continue
5372   case $ac_file in
5373     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5374         ;;
5375     [ab].out )
5376         # We found the default executable, but exeext='' is most
5377         # certainly right.
5378         break;;
5379     *.* )
5380         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5381         then :; else
5382            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5383         fi
5384         # We set ac_cv_exeext here because the later test for it is not
5385         # safe: cross compilers may not add the suffix if given an `-o'
5386         # argument, so we may need to know it at that point already.
5387         # Even if this section looks crufty: it has the advantage of
5388         # actually working.
5389         break;;
5390     * )
5391         break;;
5392   esac
5393 done
5394 test "$ac_cv_exeext" = no && ac_cv_exeext=
5395
5396 else $as_nop
5397   ac_file=''
5398 fi
5399 if test -z "$ac_file"
5400 then :
5401   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 printf "%s\n" "no" >&6; }
5403 printf "%s\n" "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5407 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5408 as_fn_error 77 "C compiler cannot create executables
5409 See \`config.log' for more details" "$LINENO" 5; }
5410 else $as_nop
5411   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 printf "%s\n" "yes" >&6; }
5413 fi
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5415 printf %s "checking for C compiler default output file name... " >&6; }
5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5417 printf "%s\n" "$ac_file" >&6; }
5418 ac_exeext=$ac_cv_exeext
5419
5420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5421 ac_clean_files=$ac_clean_files_save
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5423 printf %s "checking for suffix of executables... " >&6; }
5424 if { { ac_try="$ac_link"
5425 case "(($ac_try" in
5426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427   *) ac_try_echo=$ac_try;;
5428 esac
5429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5430 printf "%s\n" "$ac_try_echo"; } >&5
5431   (eval "$ac_link") 2>&5
5432   ac_status=$?
5433   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5434   test $ac_status = 0; }
5435 then :
5436   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5437 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5438 # work properly (i.e., refer to `conftest.exe'), while it won't with
5439 # `rm'.
5440 for ac_file in conftest.exe conftest conftest.*; do
5441   test -f "$ac_file" || continue
5442   case $ac_file in
5443     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5444     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5445           break;;
5446     * ) break;;
5447   esac
5448 done
5449 else $as_nop
5450   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5451 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5452 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5453 See \`config.log' for more details" "$LINENO" 5; }
5454 fi
5455 rm -f conftest conftest$ac_cv_exeext
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5457 printf "%s\n" "$ac_cv_exeext" >&6; }
5458
5459 rm -f conftest.$ac_ext
5460 EXEEXT=$ac_cv_exeext
5461 ac_exeext=$EXEEXT
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h.  */
5464 #include <stdio.h>
5465 int
5466 main (void)
5467 {
5468 FILE *f = fopen ("conftest.out", "w");
5469  return ferror (f) || fclose (f) != 0;
5470
5471   ;
5472   return 0;
5473 }
5474 _ACEOF
5475 ac_clean_files="$ac_clean_files conftest.out"
5476 # Check that the compiler produces executables we can run.  If not, either
5477 # the compiler is broken, or we cross compile.
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5479 printf %s "checking whether we are cross compiling... " >&6; }
5480 if test "$cross_compiling" != yes; then
5481   { { ac_try="$ac_link"
5482 case "(($ac_try" in
5483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484   *) ac_try_echo=$ac_try;;
5485 esac
5486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5487 printf "%s\n" "$ac_try_echo"; } >&5
5488   (eval "$ac_link") 2>&5
5489   ac_status=$?
5490   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491   test $ac_status = 0; }
5492   if { ac_try='./conftest$ac_cv_exeext'
5493   { { case "(($ac_try" in
5494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495   *) ac_try_echo=$ac_try;;
5496 esac
5497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5498 printf "%s\n" "$ac_try_echo"; } >&5
5499   (eval "$ac_try") 2>&5
5500   ac_status=$?
5501   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5502   test $ac_status = 0; }; }; then
5503     cross_compiling=no
5504   else
5505     if test "$cross_compiling" = maybe; then
5506         cross_compiling=yes
5507     else
5508         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5509 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5510 as_fn_error 77 "cannot run C compiled programs.
5511 If you meant to cross compile, use \`--host'.
5512 See \`config.log' for more details" "$LINENO" 5; }
5513     fi
5514   fi
5515 fi
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5517 printf "%s\n" "$cross_compiling" >&6; }
5518
5519 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5520 ac_clean_files=$ac_clean_files_save
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5522 printf %s "checking for suffix of object files... " >&6; }
5523 if test ${ac_cv_objext+y}
5524 then :
5525   printf %s "(cached) " >&6
5526 else $as_nop
5527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h.  */
5529
5530 int
5531 main (void)
5532 {
5533
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.o conftest.obj
5539 if { { ac_try="$ac_compile"
5540 case "(($ac_try" in
5541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542   *) ac_try_echo=$ac_try;;
5543 esac
5544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5545 printf "%s\n" "$ac_try_echo"; } >&5
5546   (eval "$ac_compile") 2>&5
5547   ac_status=$?
5548   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5549   test $ac_status = 0; }
5550 then :
5551   for ac_file in conftest.o conftest.obj conftest.*; do
5552   test -f "$ac_file" || continue;
5553   case $ac_file in
5554     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5555     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5556        break;;
5557   esac
5558 done
5559 else $as_nop
5560   printf "%s\n" "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5564 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5565 as_fn_error $? "cannot compute suffix of object files: cannot compile
5566 See \`config.log' for more details" "$LINENO" 5; }
5567 fi
5568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5569 fi
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5571 printf "%s\n" "$ac_cv_objext" >&6; }
5572 OBJEXT=$ac_cv_objext
5573 ac_objext=$OBJEXT
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5575 printf %s "checking whether the compiler supports GNU C... " >&6; }
5576 if test ${ac_cv_c_compiler_gnu+y}
5577 then :
5578   printf %s "(cached) " >&6
5579 else $as_nop
5580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h.  */
5582
5583 int
5584 main (void)
5585 {
5586 #ifndef __GNUC__
5587        choke me
5588 #endif
5589
5590   ;
5591   return 0;
5592 }
5593 _ACEOF
5594 if ac_fn_c_try_compile "$LINENO"
5595 then :
5596   ac_compiler_gnu=yes
5597 else $as_nop
5598   ac_compiler_gnu=no
5599 fi
5600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5602
5603 fi
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5605 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607
5608 if test $ac_compiler_gnu = yes; then
5609   GCC=yes
5610 else
5611   GCC=
5612 fi
5613 ac_test_CFLAGS=${CFLAGS+y}
5614 ac_save_CFLAGS=$CFLAGS
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5616 printf %s "checking whether $CC accepts -g... " >&6; }
5617 if test ${ac_cv_prog_cc_g+y}
5618 then :
5619   printf %s "(cached) " >&6
5620 else $as_nop
5621   ac_save_c_werror_flag=$ac_c_werror_flag
5622    ac_c_werror_flag=yes
5623    ac_cv_prog_cc_g=no
5624    CFLAGS="-g"
5625    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h.  */
5627
5628 int
5629 main (void)
5630 {
5631
5632   ;
5633   return 0;
5634 }
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"
5637 then :
5638   ac_cv_prog_cc_g=yes
5639 else $as_nop
5640   CFLAGS=""
5641       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h.  */
5643
5644 int
5645 main (void)
5646 {
5647
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_c_try_compile "$LINENO"
5653 then :
5654
5655 else $as_nop
5656   ac_c_werror_flag=$ac_save_c_werror_flag
5657          CFLAGS="-g"
5658          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h.  */
5660
5661 int
5662 main (void)
5663 {
5664
5665   ;
5666   return 0;
5667 }
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"
5670 then :
5671   ac_cv_prog_cc_g=yes
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5676 fi
5677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5678    ac_c_werror_flag=$ac_save_c_werror_flag
5679 fi
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5681 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5682 if test $ac_test_CFLAGS; then
5683   CFLAGS=$ac_save_CFLAGS
5684 elif test $ac_cv_prog_cc_g = yes; then
5685   if test "$GCC" = yes; then
5686     CFLAGS="-g -O2"
5687   else
5688     CFLAGS="-g"
5689   fi
5690 else
5691   if test "$GCC" = yes; then
5692     CFLAGS="-O2"
5693   else
5694     CFLAGS=
5695   fi
5696 fi
5697 ac_prog_cc_stdc=no
5698 if test x$ac_prog_cc_stdc = xno
5699 then :
5700   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5701 printf %s "checking for $CC option to enable C11 features... " >&6; }
5702 if test ${ac_cv_prog_cc_c11+y}
5703 then :
5704   printf %s "(cached) " >&6
5705 else $as_nop
5706   ac_cv_prog_cc_c11=no
5707 ac_save_CC=$CC
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h.  */
5710 $ac_c_conftest_c11_program
5711 _ACEOF
5712 for ac_arg in '' -std=gnu11
5713 do
5714   CC="$ac_save_CC $ac_arg"
5715   if ac_fn_c_try_compile "$LINENO"
5716 then :
5717   ac_cv_prog_cc_c11=$ac_arg
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.beam
5720   test "x$ac_cv_prog_cc_c11" != "xno" && break
5721 done
5722 rm -f conftest.$ac_ext
5723 CC=$ac_save_CC
5724 fi
5725
5726 if test "x$ac_cv_prog_cc_c11" = xno
5727 then :
5728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5729 printf "%s\n" "unsupported" >&6; }
5730 else $as_nop
5731   if test "x$ac_cv_prog_cc_c11" = x
5732 then :
5733   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5734 printf "%s\n" "none needed" >&6; }
5735 else $as_nop
5736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5737 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5738      CC="$CC $ac_cv_prog_cc_c11"
5739 fi
5740   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5741   ac_prog_cc_stdc=c11
5742 fi
5743 fi
5744 if test x$ac_prog_cc_stdc = xno
5745 then :
5746   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5747 printf %s "checking for $CC option to enable C99 features... " >&6; }
5748 if test ${ac_cv_prog_cc_c99+y}
5749 then :
5750   printf %s "(cached) " >&6
5751 else $as_nop
5752   ac_cv_prog_cc_c99=no
5753 ac_save_CC=$CC
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h.  */
5756 $ac_c_conftest_c99_program
5757 _ACEOF
5758 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5759 do
5760   CC="$ac_save_CC $ac_arg"
5761   if ac_fn_c_try_compile "$LINENO"
5762 then :
5763   ac_cv_prog_cc_c99=$ac_arg
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.beam
5766   test "x$ac_cv_prog_cc_c99" != "xno" && break
5767 done
5768 rm -f conftest.$ac_ext
5769 CC=$ac_save_CC
5770 fi
5771
5772 if test "x$ac_cv_prog_cc_c99" = xno
5773 then :
5774   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5775 printf "%s\n" "unsupported" >&6; }
5776 else $as_nop
5777   if test "x$ac_cv_prog_cc_c99" = x
5778 then :
5779   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5780 printf "%s\n" "none needed" >&6; }
5781 else $as_nop
5782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5783 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5784      CC="$CC $ac_cv_prog_cc_c99"
5785 fi
5786   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5787   ac_prog_cc_stdc=c99
5788 fi
5789 fi
5790 if test x$ac_prog_cc_stdc = xno
5791 then :
5792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5793 printf %s "checking for $CC option to enable C89 features... " >&6; }
5794 if test ${ac_cv_prog_cc_c89+y}
5795 then :
5796   printf %s "(cached) " >&6
5797 else $as_nop
5798   ac_cv_prog_cc_c89=no
5799 ac_save_CC=$CC
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h.  */
5802 $ac_c_conftest_c89_program
5803 _ACEOF
5804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5805 do
5806   CC="$ac_save_CC $ac_arg"
5807   if ac_fn_c_try_compile "$LINENO"
5808 then :
5809   ac_cv_prog_cc_c89=$ac_arg
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.beam
5812   test "x$ac_cv_prog_cc_c89" != "xno" && break
5813 done
5814 rm -f conftest.$ac_ext
5815 CC=$ac_save_CC
5816 fi
5817
5818 if test "x$ac_cv_prog_cc_c89" = xno
5819 then :
5820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5821 printf "%s\n" "unsupported" >&6; }
5822 else $as_nop
5823   if test "x$ac_cv_prog_cc_c89" = x
5824 then :
5825   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5826 printf "%s\n" "none needed" >&6; }
5827 else $as_nop
5828   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5829 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5830      CC="$CC $ac_cv_prog_cc_c89"
5831 fi
5832   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5833   ac_prog_cc_stdc=c89
5834 fi
5835 fi
5836
5837 ac_ext=c
5838 ac_cpp='$CPP $CPPFLAGS'
5839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842
5843
5844   ac_ext=c
5845 ac_cpp='$CPP $CPPFLAGS'
5846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5850 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5851 if test ${am_cv_prog_cc_c_o+y}
5852 then :
5853   printf %s "(cached) " >&6
5854 else $as_nop
5855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h.  */
5857
5858 int
5859 main (void)
5860 {
5861
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866   # Make sure it works both with $CC and with simple cc.
5867   # Following AC_PROG_CC_C_O, we do the test twice because some
5868   # compilers refuse to overwrite an existing .o file with -o,
5869   # though they will create one.
5870   am_cv_prog_cc_c_o=yes
5871   for am_i in 1 2; do
5872     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5873    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5874    ac_status=$?
5875    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876    (exit $ac_status); } \
5877          && test -f conftest2.$ac_objext; then
5878       : OK
5879     else
5880       am_cv_prog_cc_c_o=no
5881       break
5882     fi
5883   done
5884   rm -f core conftest*
5885   unset am_i
5886 fi
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5888 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5889 if test "$am_cv_prog_cc_c_o" != yes; then
5890    # Losing compiler, so override with the script.
5891    # FIXME: It is wrong to rewrite CC.
5892    # But if we don't then we get into trouble of one sort or another.
5893    # A longer-term fix would be to have automake use am__CC in this case,
5894    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5895    CC="$am_aux_dir/compile $CC"
5896 fi
5897 ac_ext=c
5898 ac_cpp='$CPP $CPPFLAGS'
5899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5902
5903
5904
5905   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5906 printf %s "checking whether the compiler is clang... " >&6; }
5907 if test ${gl_cv_compiler_clang+y}
5908 then :
5909   printf %s "(cached) " >&6
5910 else $as_nop
5911                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h.  */
5913
5914            #ifdef __clang__
5915            barfbarf
5916            #endif
5917
5918 int
5919 main (void)
5920 {
5921
5922   ;
5923   return 0;
5924 }
5925
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"
5928 then :
5929   gl_cv_compiler_clang=no
5930 else $as_nop
5931   gl_cv_compiler_clang=yes
5932 fi
5933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5934
5935 fi
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5937 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5938
5939
5940   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5941 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5942 if test ${gl_cv_compiler_check_decl_option+y}
5943 then :
5944   printf %s "(cached) " >&6
5945 else $as_nop
5946   if test $gl_cv_compiler_clang = yes; then
5947                      save_ac_compile="$ac_compile"
5948        ac_compile="$ac_compile -Werror=implicit-function-declaration"
5949                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h.  */
5951
5952 int
5953 main (void)
5954 {
5955
5956   ;
5957   return 0;
5958 }
5959 _ACEOF
5960 if ac_fn_c_try_compile "$LINENO"
5961 then :
5962   gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5963 else $as_nop
5964   gl_cv_compiler_check_decl_option=none
5965 fi
5966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5967        ac_compile="$save_ac_compile"
5968      else
5969        gl_cv_compiler_check_decl_option=none
5970      fi
5971
5972 fi
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5974 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5975   if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5976     ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5977   else
5978     ac_compile_for_check_decl="$ac_compile"
5979   fi
5980
5981 DEPDIR="${am__leading_dot}deps"
5982
5983 ac_config_commands="$ac_config_commands depfiles"
5984
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5986 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5987 cat > confinc.mk << 'END'
5988 am__doit:
5989         @echo this is the am__doit target >confinc.out
5990 .PHONY: am__doit
5991 END
5992 am__include="#"
5993 am__quote=
5994 # BSD make does it like this.
5995 echo '.include "confinc.mk" # ignored' > confmf.BSD
5996 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5997 echo 'include confinc.mk # ignored' > confmf.GNU
5998 _am_result=no
5999 for s in GNU BSD; do
6000   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6001    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6002    ac_status=$?
6003    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004    (exit $ac_status); }
6005   case $?:`cat confinc.out 2>/dev/null` in #(
6006   '0:this is the am__doit target') :
6007     case $s in #(
6008   BSD) :
6009     am__include='.include' am__quote='"' ;; #(
6010   *) :
6011     am__include='include' am__quote='' ;;
6012 esac ;; #(
6013   *) :
6014      ;;
6015 esac
6016   if test "$am__include" != "#"; then
6017     _am_result="yes ($s style)"
6018     break
6019   fi
6020 done
6021 rm -f confinc.* confmf.*
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6023 printf "%s\n" "${_am_result}" >&6; }
6024
6025 # Check whether --enable-dependency-tracking was given.
6026 if test ${enable_dependency_tracking+y}
6027 then :
6028   enableval=$enable_dependency_tracking;
6029 fi
6030
6031 if test "x$enable_dependency_tracking" != xno; then
6032   am_depcomp="$ac_aux_dir/depcomp"
6033   AMDEPBACKSLASH='\'
6034   am__nodep='_no'
6035 fi
6036  if test "x$enable_dependency_tracking" != xno; then
6037   AMDEP_TRUE=
6038   AMDEP_FALSE='#'
6039 else
6040   AMDEP_TRUE='#'
6041   AMDEP_FALSE=
6042 fi
6043
6044
6045
6046 depcc="$CC"   am_compiler_list=
6047
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6049 printf %s "checking dependency style of $depcc... " >&6; }
6050 if test ${am_cv_CC_dependencies_compiler_type+y}
6051 then :
6052   printf %s "(cached) " >&6
6053 else $as_nop
6054   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6055   # We make a subdir and do the tests there.  Otherwise we can end up
6056   # making bogus files that we don't know about and never remove.  For
6057   # instance it was reported that on HP-UX the gcc test will end up
6058   # making a dummy file named 'D' -- because '-MD' means "put the output
6059   # in D".
6060   rm -rf conftest.dir
6061   mkdir conftest.dir
6062   # Copy depcomp to subdir because otherwise we won't find it if we're
6063   # using a relative directory.
6064   cp "$am_depcomp" conftest.dir
6065   cd conftest.dir
6066   # We will build objects and dependencies in a subdirectory because
6067   # it helps to detect inapplicable dependency modes.  For instance
6068   # both Tru64's cc and ICC support -MD to output dependencies as a
6069   # side effect of compilation, but ICC will put the dependencies in
6070   # the current directory while Tru64 will put them in the object
6071   # directory.
6072   mkdir sub
6073
6074   am_cv_CC_dependencies_compiler_type=none
6075   if test "$am_compiler_list" = ""; then
6076      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6077   fi
6078   am__universal=false
6079   case " $depcc " in #(
6080      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6081      esac
6082
6083   for depmode in $am_compiler_list; do
6084     # Setup a source with many dependencies, because some compilers
6085     # like to wrap large dependency lists on column 80 (with \), and
6086     # we should not choose a depcomp mode which is confused by this.
6087     #
6088     # We need to recreate these files for each test, as the compiler may
6089     # overwrite some of them when testing with obscure command lines.
6090     # This happens at least with the AIX C compiler.
6091     : > sub/conftest.c
6092     for i in 1 2 3 4 5 6; do
6093       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6094       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6095       # Solaris 10 /bin/sh.
6096       echo '/* dummy */' > sub/conftst$i.h
6097     done
6098     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6099
6100     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6101     # mode.  It turns out that the SunPro C++ compiler does not properly
6102     # handle '-M -o', and we need to detect this.  Also, some Intel
6103     # versions had trouble with output in subdirs.
6104     am__obj=sub/conftest.${OBJEXT-o}
6105     am__minus_obj="-o $am__obj"
6106     case $depmode in
6107     gcc)
6108       # This depmode causes a compiler race in universal mode.
6109       test "$am__universal" = false || continue
6110       ;;
6111     nosideeffect)
6112       # After this tag, mechanisms are not by side-effect, so they'll
6113       # only be used when explicitly requested.
6114       if test "x$enable_dependency_tracking" = xyes; then
6115         continue
6116       else
6117         break
6118       fi
6119       ;;
6120     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6121       # This compiler won't grok '-c -o', but also, the minuso test has
6122       # not run yet.  These depmodes are late enough in the game, and
6123       # so weak that their functioning should not be impacted.
6124       am__obj=conftest.${OBJEXT-o}
6125       am__minus_obj=
6126       ;;
6127     none) break ;;
6128     esac
6129     if depmode=$depmode \
6130        source=sub/conftest.c object=$am__obj \
6131        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6132        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6133          >/dev/null 2>conftest.err &&
6134        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6135        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6136        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6137        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6138       # icc doesn't choke on unknown options, it will just issue warnings
6139       # or remarks (even with -Werror).  So we grep stderr for any message
6140       # that says an option was ignored or not supported.
6141       # When given -MP, icc 7.0 and 7.1 complain thusly:
6142       #   icc: Command line warning: ignoring option '-M'; no argument required
6143       # The diagnosis changed in icc 8.0:
6144       #   icc: Command line remark: option '-MP' not supported
6145       if (grep 'ignoring option' conftest.err ||
6146           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6147         am_cv_CC_dependencies_compiler_type=$depmode
6148         break
6149       fi
6150     fi
6151   done
6152
6153   cd ..
6154   rm -rf conftest.dir
6155 else
6156   am_cv_CC_dependencies_compiler_type=none
6157 fi
6158
6159 fi
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6161 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6162 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6163
6164  if
6165   test "x$enable_dependency_tracking" != xno \
6166   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6167   am__fastdepCC_TRUE=
6168   am__fastdepCC_FALSE='#'
6169 else
6170   am__fastdepCC_TRUE='#'
6171   am__fastdepCC_FALSE=
6172 fi
6173
6174
6175
6176 ac_header= ac_cache=
6177 for ac_item in $ac_header_c_list
6178 do
6179   if test $ac_cache; then
6180     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6181     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6182       printf "%s\n" "#define $ac_item 1" >> confdefs.h
6183     fi
6184     ac_header= ac_cache=
6185   elif test $ac_header; then
6186     ac_cache=$ac_item
6187   else
6188     ac_header=$ac_item
6189   fi
6190 done
6191
6192
6193
6194
6195
6196
6197
6198
6199 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6200 then :
6201
6202 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6203
6204 fi
6205
6206
6207
6208
6209
6210
6211   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6212 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6213 if test ${ac_cv_safe_to_define___extensions__+y}
6214 then :
6215   printf %s "(cached) " >&6
6216 else $as_nop
6217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h.  */
6219
6220 #         define __EXTENSIONS__ 1
6221           $ac_includes_default
6222 int
6223 main (void)
6224 {
6225
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 if ac_fn_c_try_compile "$LINENO"
6231 then :
6232   ac_cv_safe_to_define___extensions__=yes
6233 else $as_nop
6234   ac_cv_safe_to_define___extensions__=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6237 fi
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6239 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6240
6241   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6242 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6243 if test ${ac_cv_should_define__xopen_source+y}
6244 then :
6245   printf %s "(cached) " >&6
6246 else $as_nop
6247   ac_cv_should_define__xopen_source=no
6248     if test $ac_cv_header_wchar_h = yes
6249 then :
6250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h.  */
6252
6253           #include <wchar.h>
6254           mbstate_t x;
6255 int
6256 main (void)
6257 {
6258
6259   ;
6260   return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_c_try_compile "$LINENO"
6264 then :
6265
6266 else $as_nop
6267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h.  */
6269
6270             #define _XOPEN_SOURCE 500
6271             #include <wchar.h>
6272             mbstate_t x;
6273 int
6274 main (void)
6275 {
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_c_try_compile "$LINENO"
6282 then :
6283   ac_cv_should_define__xopen_source=yes
6284 fi
6285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6288 fi
6289 fi
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6291 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6292
6293   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6294
6295   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6296
6297   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6298
6299   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6300
6301   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6302
6303   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6304
6305   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6306
6307   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6308
6309   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6310
6311   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6312
6313   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6314
6315   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6316
6317   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6318
6319   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6320
6321   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6322
6323   if test $ac_cv_header_minix_config_h = yes
6324 then :
6325   MINIX=yes
6326     printf "%s\n" "#define _MINIX 1" >>confdefs.h
6327
6328     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6329
6330     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6331
6332 else $as_nop
6333   MINIX=
6334 fi
6335   if test $ac_cv_safe_to_define___extensions__ = yes
6336 then :
6337   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6338
6339 fi
6340   if test $ac_cv_should_define__xopen_source = yes
6341 then :
6342   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6343
6344 fi
6345
6346
6347
6348   # Make sure we can run config.sub.
6349 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6350   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6351
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6353 printf %s "checking build system type... " >&6; }
6354 if test ${ac_cv_build+y}
6355 then :
6356   printf %s "(cached) " >&6
6357 else $as_nop
6358   ac_build_alias=$build_alias
6359 test "x$ac_build_alias" = x &&
6360   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6361 test "x$ac_build_alias" = x &&
6362   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6363 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6364   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6365
6366 fi
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6368 printf "%s\n" "$ac_cv_build" >&6; }
6369 case $ac_cv_build in
6370 *-*-*) ;;
6371 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6372 esac
6373 build=$ac_cv_build
6374 ac_save_IFS=$IFS; IFS='-'
6375 set x $ac_cv_build
6376 shift
6377 build_cpu=$1
6378 build_vendor=$2
6379 shift; shift
6380 # Remember, the first character of IFS is used to create $*,
6381 # except with old shells:
6382 build_os=$*
6383 IFS=$ac_save_IFS
6384 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6385
6386
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6388 printf %s "checking host system type... " >&6; }
6389 if test ${ac_cv_host+y}
6390 then :
6391   printf %s "(cached) " >&6
6392 else $as_nop
6393   if test "x$host_alias" = x; then
6394   ac_cv_host=$ac_cv_build
6395 else
6396   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6397     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6398 fi
6399
6400 fi
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6402 printf "%s\n" "$ac_cv_host" >&6; }
6403 case $ac_cv_host in
6404 *-*-*) ;;
6405 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6406 esac
6407 host=$ac_cv_host
6408 ac_save_IFS=$IFS; IFS='-'
6409 set x $ac_cv_host
6410 shift
6411 host_cpu=$1
6412 host_vendor=$2
6413 shift; shift
6414 # Remember, the first character of IFS is used to create $*,
6415 # except with old shells:
6416 host_os=$*
6417 IFS=$ac_save_IFS
6418 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6419
6420
6421
6422
6423
6424
6425   case "$host_os" in
6426     openbsd*)
6427
6428 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
6429
6430       ;;
6431   esac
6432
6433 ac_ext=c
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6439 printf %s "checking how to run the C preprocessor... " >&6; }
6440 # On Suns, sometimes $CPP names a directory.
6441 if test -n "$CPP" && test -d "$CPP"; then
6442   CPP=
6443 fi
6444 if test -z "$CPP"; then
6445   if test ${ac_cv_prog_CPP+y}
6446 then :
6447   printf %s "(cached) " >&6
6448 else $as_nop
6449       # Double quotes because $CC needs to be expanded
6450     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6451     do
6452       ac_preproc_ok=false
6453 for ac_c_preproc_warn_flag in '' yes
6454 do
6455   # Use a header file that comes with gcc, so configuring glibc
6456   # with a fresh cross-compiler works.
6457   # On the NeXT, cc -E runs the code through the compiler's parser,
6458   # not just through cpp. "Syntax error" is here to catch this case.
6459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h.  */
6461 #include <limits.h>
6462                      Syntax error
6463 _ACEOF
6464 if ac_fn_c_try_cpp "$LINENO"
6465 then :
6466
6467 else $as_nop
6468   # Broken: fails on valid input.
6469 continue
6470 fi
6471 rm -f conftest.err conftest.i conftest.$ac_ext
6472
6473   # OK, works on sane cases.  Now check whether nonexistent headers
6474   # can be detected and how.
6475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h.  */
6477 #include <ac_nonexistent.h>
6478 _ACEOF
6479 if ac_fn_c_try_cpp "$LINENO"
6480 then :
6481   # Broken: success on invalid input.
6482 continue
6483 else $as_nop
6484   # Passes both tests.
6485 ac_preproc_ok=:
6486 break
6487 fi
6488 rm -f conftest.err conftest.i conftest.$ac_ext
6489
6490 done
6491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6492 rm -f conftest.i conftest.err conftest.$ac_ext
6493 if $ac_preproc_ok
6494 then :
6495   break
6496 fi
6497
6498     done
6499     ac_cv_prog_CPP=$CPP
6500
6501 fi
6502   CPP=$ac_cv_prog_CPP
6503 else
6504   ac_cv_prog_CPP=$CPP
6505 fi
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6507 printf "%s\n" "$CPP" >&6; }
6508 ac_preproc_ok=false
6509 for ac_c_preproc_warn_flag in '' yes
6510 do
6511   # Use a header file that comes with gcc, so configuring glibc
6512   # with a fresh cross-compiler works.
6513   # On the NeXT, cc -E runs the code through the compiler's parser,
6514   # not just through cpp. "Syntax error" is here to catch this case.
6515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h.  */
6517 #include <limits.h>
6518                      Syntax error
6519 _ACEOF
6520 if ac_fn_c_try_cpp "$LINENO"
6521 then :
6522
6523 else $as_nop
6524   # Broken: fails on valid input.
6525 continue
6526 fi
6527 rm -f conftest.err conftest.i conftest.$ac_ext
6528
6529   # OK, works on sane cases.  Now check whether nonexistent headers
6530   # can be detected and how.
6531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h.  */
6533 #include <ac_nonexistent.h>
6534 _ACEOF
6535 if ac_fn_c_try_cpp "$LINENO"
6536 then :
6537   # Broken: success on invalid input.
6538 continue
6539 else $as_nop
6540   # Passes both tests.
6541 ac_preproc_ok=:
6542 break
6543 fi
6544 rm -f conftest.err conftest.i conftest.$ac_ext
6545
6546 done
6547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6548 rm -f conftest.i conftest.err conftest.$ac_ext
6549 if $ac_preproc_ok
6550 then :
6551
6552 else $as_nop
6553   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6554 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6555 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6556 See \`config.log' for more details" "$LINENO" 5; }
6557 fi
6558
6559 ac_ext=c
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
6565
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6567 printf %s "checking for grep that handles long lines and -e... " >&6; }
6568 if test ${ac_cv_path_GREP+y}
6569 then :
6570   printf %s "(cached) " >&6
6571 else $as_nop
6572   if test -z "$GREP"; then
6573   ac_path_GREP_found=false
6574   # Loop through the user's path and test for each of PROGNAME-LIST
6575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6577 do
6578   IFS=$as_save_IFS
6579   case $as_dir in #(((
6580     '') as_dir=./ ;;
6581     */) ;;
6582     *) as_dir=$as_dir/ ;;
6583   esac
6584     for ac_prog in grep ggrep
6585    do
6586     for ac_exec_ext in '' $ac_executable_extensions; do
6587       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6588       as_fn_executable_p "$ac_path_GREP" || continue
6589 # Check for GNU ac_path_GREP and select it if it is found.
6590   # Check for GNU $ac_path_GREP
6591 case `"$ac_path_GREP" --version 2>&1` in
6592 *GNU*)
6593   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6594 *)
6595   ac_count=0
6596   printf %s 0123456789 >"conftest.in"
6597   while :
6598   do
6599     cat "conftest.in" "conftest.in" >"conftest.tmp"
6600     mv "conftest.tmp" "conftest.in"
6601     cp "conftest.in" "conftest.nl"
6602     printf "%s\n" 'GREP' >> "conftest.nl"
6603     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6605     as_fn_arith $ac_count + 1 && ac_count=$as_val
6606     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6607       # Best one so far, save it but keep looking for a better one
6608       ac_cv_path_GREP="$ac_path_GREP"
6609       ac_path_GREP_max=$ac_count
6610     fi
6611     # 10*(2^10) chars as input seems more than enough
6612     test $ac_count -gt 10 && break
6613   done
6614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6615 esac
6616
6617       $ac_path_GREP_found && break 3
6618     done
6619   done
6620   done
6621 IFS=$as_save_IFS
6622   if test -z "$ac_cv_path_GREP"; then
6623     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6624   fi
6625 else
6626   ac_cv_path_GREP=$GREP
6627 fi
6628
6629 fi
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6631 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6632  GREP="$ac_cv_path_GREP"
6633
6634
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6636 printf %s "checking for egrep... " >&6; }
6637 if test ${ac_cv_path_EGREP+y}
6638 then :
6639   printf %s "(cached) " >&6
6640 else $as_nop
6641   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6642    then ac_cv_path_EGREP="$GREP -E"
6643    else
6644      if test -z "$EGREP"; then
6645   ac_path_EGREP_found=false
6646   # Loop through the user's path and test for each of PROGNAME-LIST
6647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6649 do
6650   IFS=$as_save_IFS
6651   case $as_dir in #(((
6652     '') as_dir=./ ;;
6653     */) ;;
6654     *) as_dir=$as_dir/ ;;
6655   esac
6656     for ac_prog in egrep
6657    do
6658     for ac_exec_ext in '' $ac_executable_extensions; do
6659       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6660       as_fn_executable_p "$ac_path_EGREP" || continue
6661 # Check for GNU ac_path_EGREP and select it if it is found.
6662   # Check for GNU $ac_path_EGREP
6663 case `"$ac_path_EGREP" --version 2>&1` in
6664 *GNU*)
6665   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6666 *)
6667   ac_count=0
6668   printf %s 0123456789 >"conftest.in"
6669   while :
6670   do
6671     cat "conftest.in" "conftest.in" >"conftest.tmp"
6672     mv "conftest.tmp" "conftest.in"
6673     cp "conftest.in" "conftest.nl"
6674     printf "%s\n" 'EGREP' >> "conftest.nl"
6675     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6676     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6677     as_fn_arith $ac_count + 1 && ac_count=$as_val
6678     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6679       # Best one so far, save it but keep looking for a better one
6680       ac_cv_path_EGREP="$ac_path_EGREP"
6681       ac_path_EGREP_max=$ac_count
6682     fi
6683     # 10*(2^10) chars as input seems more than enough
6684     test $ac_count -gt 10 && break
6685   done
6686   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6687 esac
6688
6689       $ac_path_EGREP_found && break 3
6690     done
6691   done
6692   done
6693 IFS=$as_save_IFS
6694   if test -z "$ac_cv_path_EGREP"; then
6695     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6696   fi
6697 else
6698   ac_cv_path_EGREP=$EGREP
6699 fi
6700
6701    fi
6702 fi
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6704 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6705  EGREP="$ac_cv_path_EGREP"
6706
6707
6708
6709
6710
6711   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6712 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6713 if test ${gl_cv_c_amsterdam_compiler+y}
6714 then :
6715   printf %s "(cached) " >&6
6716 else $as_nop
6717
6718       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h.  */
6720
6721 #ifdef __ACK__
6722 Amsterdam
6723 #endif
6724
6725 _ACEOF
6726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6727   $EGREP "Amsterdam" >/dev/null 2>&1
6728 then :
6729   gl_cv_c_amsterdam_compiler=yes
6730 else $as_nop
6731   gl_cv_c_amsterdam_compiler=no
6732 fi
6733 rm -rf conftest*
6734
6735
6736 fi
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6738 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6739
6740       if test $gl_cv_c_amsterdam_compiler = yes; then
6741     if test -z "$AR"; then
6742       AR='cc -c.a'
6743     fi
6744     if test -z "$ARFLAGS"; then
6745       ARFLAGS='-o'
6746     fi
6747   else
6748                                                 :
6749   fi
6750
6751         if test -n "$ac_tool_prefix"; then
6752   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6753 set dummy ${ac_tool_prefix}ar; ac_word=$2
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 printf %s "checking for $ac_word... " >&6; }
6756 if test ${ac_cv_prog_AR+y}
6757 then :
6758   printf %s "(cached) " >&6
6759 else $as_nop
6760   if test -n "$AR"; then
6761   ac_cv_prog_AR="$AR" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   case $as_dir in #(((
6768     '') as_dir=./ ;;
6769     */) ;;
6770     *) as_dir=$as_dir/ ;;
6771   esac
6772     for ac_exec_ext in '' $ac_executable_extensions; do
6773   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6774     ac_cv_prog_AR="${ac_tool_prefix}ar"
6775     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6776     break 2
6777   fi
6778 done
6779   done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 AR=$ac_cv_prog_AR
6785 if test -n "$AR"; then
6786   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6787 printf "%s\n" "$AR" >&6; }
6788 else
6789   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 printf "%s\n" "no" >&6; }
6791 fi
6792
6793
6794 fi
6795 if test -z "$ac_cv_prog_AR"; then
6796   ac_ct_AR=$AR
6797   # Extract the first word of "ar", so it can be a program name with args.
6798 set dummy ar; ac_word=$2
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 printf %s "checking for $ac_word... " >&6; }
6801 if test ${ac_cv_prog_ac_ct_AR+y}
6802 then :
6803   printf %s "(cached) " >&6
6804 else $as_nop
6805   if test -n "$ac_ct_AR"; then
6806   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   case $as_dir in #(((
6813     '') as_dir=./ ;;
6814     */) ;;
6815     *) as_dir=$as_dir/ ;;
6816   esac
6817     for ac_exec_ext in '' $ac_executable_extensions; do
6818   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6819     ac_cv_prog_ac_ct_AR="ar"
6820     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824   done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6830 if test -n "$ac_ct_AR"; then
6831   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6832 printf "%s\n" "$ac_ct_AR" >&6; }
6833 else
6834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 printf "%s\n" "no" >&6; }
6836 fi
6837
6838   if test "x$ac_ct_AR" = x; then
6839     AR="ar"
6840   else
6841     case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847     AR=$ac_ct_AR
6848   fi
6849 else
6850   AR="$ac_cv_prog_AR"
6851 fi
6852
6853   if test -z "$ARFLAGS"; then
6854     ARFLAGS='cr'
6855   fi
6856
6857
6858
6859   if test -z "$RANLIB"; then
6860     if test $gl_cv_c_amsterdam_compiler = yes; then
6861       RANLIB=':'
6862     else
6863             if test -n "$ac_tool_prefix"; then
6864   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 printf %s "checking for $ac_word... " >&6; }
6868 if test ${ac_cv_prog_RANLIB+y}
6869 then :
6870   printf %s "(cached) " >&6
6871 else $as_nop
6872   if test -n "$RANLIB"; then
6873   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   case $as_dir in #(((
6880     '') as_dir=./ ;;
6881     */) ;;
6882     *) as_dir=$as_dir/ ;;
6883   esac
6884     for ac_exec_ext in '' $ac_executable_extensions; do
6885   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6886     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6887     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6888     break 2
6889   fi
6890 done
6891   done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 RANLIB=$ac_cv_prog_RANLIB
6897 if test -n "$RANLIB"; then
6898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6899 printf "%s\n" "$RANLIB" >&6; }
6900 else
6901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 printf "%s\n" "no" >&6; }
6903 fi
6904
6905
6906 fi
6907 if test -z "$ac_cv_prog_RANLIB"; then
6908   ac_ct_RANLIB=$RANLIB
6909   # Extract the first word of "ranlib", so it can be a program name with args.
6910 set dummy ranlib; ac_word=$2
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 printf %s "checking for $ac_word... " >&6; }
6913 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6914 then :
6915   printf %s "(cached) " >&6
6916 else $as_nop
6917   if test -n "$ac_ct_RANLIB"; then
6918   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   case $as_dir in #(((
6925     '') as_dir=./ ;;
6926     */) ;;
6927     *) as_dir=$as_dir/ ;;
6928   esac
6929     for ac_exec_ext in '' $ac_executable_extensions; do
6930   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6931     ac_cv_prog_ac_ct_RANLIB="ranlib"
6932     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6933     break 2
6934   fi
6935 done
6936   done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6942 if test -n "$ac_ct_RANLIB"; then
6943   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6944 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6945 else
6946   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 printf "%s\n" "no" >&6; }
6948 fi
6949
6950   if test "x$ac_ct_RANLIB" = x; then
6951     RANLIB=":"
6952   else
6953     case $cross_compiling:$ac_tool_warned in
6954 yes:)
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957 ac_tool_warned=yes ;;
6958 esac
6959     RANLIB=$ac_ct_RANLIB
6960   fi
6961 else
6962   RANLIB="$ac_cv_prog_RANLIB"
6963 fi
6964
6965     fi
6966   fi
6967
6968
6969
6970
6971   # Pre-early section.
6972
6973
6974
6975   # Code from module absolute-header:
6976   # Code from module announce-gen:
6977   # Code from module c-ctype:
6978   # Code from module c99:
6979   # Code from module do-release-commit-and-tag:
6980   # Code from module extensions:
6981   # Code from module extern-inline:
6982   # Code from module gen-header:
6983   # Code from module gendocs:
6984   # Code from module git-version-gen:
6985   # Code from module gitlog-to-changelog:
6986   # Code from module gnu-web-doc-update:
6987   # Code from module gnumakefile:
6988   # Code from module gnupload:
6989   # Code from module include_next:
6990   # Code from module intprops:
6991   # Code from module lib-msvc-compat:
6992   # Code from module lib-symbol-versions:
6993   # Code from module lib-symbol-visibility:
6994   # Code from module libc-config:
6995   # Code from module limits-h:
6996   # Code from module maintainer-makefile:
6997   # Code from module manywarnings:
6998   # Code from module minmax:
6999   # Code from module multiarch:
7000   # Code from module readme-release:
7001   # Code from module snippet/_Noreturn:
7002   # Code from module snippet/arg-nonnull:
7003   # Code from module snippet/c++defs:
7004   # Code from module snippet/warn-on-use:
7005   # Code from module ssize_t:
7006   # Code from module std-gnu11:
7007   # Code from module stdbool:
7008   # Code from module stddef:
7009   # Code from module stdint:
7010   # Code from module stdlib:
7011   # Code from module string:
7012   # Code from module strverscmp:
7013   # Code from module sys_types:
7014   # Code from module unistd:
7015   # Code from module update-copyright:
7016   # Code from module useless-if-before-free:
7017   # Code from module valgrind-tests:
7018   # Code from module vc-list-files:
7019   # Code from module warnings:
7020
7021
7022
7023
7024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7025 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7026 if test ${ac_cv_sys_largefile_source+y}
7027 then :
7028   printf %s "(cached) " >&6
7029 else $as_nop
7030   while :; do
7031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h.  */
7033 #include <sys/types.h> /* for off_t */
7034      #include <stdio.h>
7035 int
7036 main (void)
7037 {
7038 int (*fp) (FILE *, off_t, int) = fseeko;
7039      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7040   ;
7041   return 0;
7042 }
7043 _ACEOF
7044 if ac_fn_c_try_link "$LINENO"
7045 then :
7046   ac_cv_sys_largefile_source=no; break
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7049     conftest$ac_exeext conftest.$ac_ext
7050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h.  */
7052 #undef _LARGEFILE_SOURCE
7053 #define _LARGEFILE_SOURCE 1
7054 #include <sys/types.h> /* for off_t */
7055      #include <stdio.h>
7056 int
7057 main (void)
7058 {
7059 int (*fp) (FILE *, off_t, int) = fseeko;
7060      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7061   ;
7062   return 0;
7063 }
7064 _ACEOF
7065 if ac_fn_c_try_link "$LINENO"
7066 then :
7067   ac_cv_sys_largefile_source=1; break
7068 fi
7069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7070     conftest$ac_exeext conftest.$ac_ext
7071   ac_cv_sys_largefile_source=unknown
7072   break
7073 done
7074 fi
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7076 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
7077 case $ac_cv_sys_largefile_source in #(
7078   no | unknown) ;;
7079   *)
7080 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
7081 ;;
7082 esac
7083 rm -rf conftest*
7084
7085 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7086 # in glibc 2.1.3, but that breaks too many other things.
7087 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7088 if test $ac_cv_sys_largefile_source != unknown; then
7089
7090 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
7091
7092 fi
7093
7094   case "$host_os" in
7095     hpux*)
7096
7097 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
7098
7099       ;;
7100   esac
7101
7102
7103 # Check whether --enable-largefile was given.
7104 if test ${enable_largefile+y}
7105 then :
7106   enableval=$enable_largefile;
7107 fi
7108
7109 if test "$enable_largefile" != no
7110 then :
7111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7112 printf %s "checking for special C compiler options needed for large files... " >&6; }
7113 if test ${ac_cv_sys_largefile_CC+y}
7114 then :
7115   printf %s "(cached) " >&6
7116 else $as_nop
7117   ac_cv_sys_largefile_CC=no
7118      if test "$GCC" != yes; then
7119        ac_save_CC=$CC
7120        while :; do
7121          # IRIX 6.2 and later do not support large files by default,
7122          # so use the C compiler's -n32 option if that helps.
7123          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h.  */
7125 #include <sys/types.h>
7126  /* Check that off_t can represent 2**63 - 1 correctly.
7127     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7128     since some C++ compilers masquerading as C compilers
7129     incorrectly reject 9223372036854775807.  */
7130 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7131   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7132                        && LARGE_OFF_T % 2147483647 == 1)
7133                       ? 1 : -1];
7134 int
7135 main (void)
7136 {
7137
7138   ;
7139   return 0;
7140 }
7141 _ACEOF
7142          if ac_fn_c_try_compile "$LINENO"
7143 then :
7144   break
7145 fi
7146 rm -f core conftest.err conftest.$ac_objext conftest.beam
7147          CC="$CC -n32"
7148          if ac_fn_c_try_compile "$LINENO"
7149 then :
7150   ac_cv_sys_largefile_CC=' -n32'; break
7151 fi
7152 rm -f core conftest.err conftest.$ac_objext conftest.beam
7153          break
7154        done
7155        CC=$ac_save_CC
7156        rm -f conftest.$ac_ext
7157     fi
7158 fi
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7160 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7161   if test "$ac_cv_sys_largefile_CC" != no; then
7162     CC=$CC$ac_cv_sys_largefile_CC
7163   fi
7164
7165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7166 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7167 if test ${ac_cv_sys_file_offset_bits+y}
7168 then :
7169   printf %s "(cached) " >&6
7170 else $as_nop
7171   while :; do
7172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h.  */
7174 #include <sys/types.h>
7175  /* Check that off_t can represent 2**63 - 1 correctly.
7176     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7177     since some C++ compilers masquerading as C compilers
7178     incorrectly reject 9223372036854775807.  */
7179 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7180   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7181                        && LARGE_OFF_T % 2147483647 == 1)
7182                       ? 1 : -1];
7183 int
7184 main (void)
7185 {
7186
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 if ac_fn_c_try_compile "$LINENO"
7192 then :
7193   ac_cv_sys_file_offset_bits=no; break
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h.  */
7198 #undef _FILE_OFFSET_BITS
7199 #define _FILE_OFFSET_BITS 64
7200 #include <sys/types.h>
7201  /* Check that off_t can represent 2**63 - 1 correctly.
7202     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7203     since some C++ compilers masquerading as C compilers
7204     incorrectly reject 9223372036854775807.  */
7205 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7206   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7207                        && LARGE_OFF_T % 2147483647 == 1)
7208                       ? 1 : -1];
7209 int
7210 main (void)
7211 {
7212
7213   ;
7214   return 0;
7215 }
7216 _ACEOF
7217 if ac_fn_c_try_compile "$LINENO"
7218 then :
7219   ac_cv_sys_file_offset_bits=64; break
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7222   ac_cv_sys_file_offset_bits=unknown
7223   break
7224 done
7225 fi
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7227 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7228 case $ac_cv_sys_file_offset_bits in #(
7229   no | unknown) ;;
7230   *)
7231 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7232 ;;
7233 esac
7234 rm -rf conftest*
7235   case $ac_cv_sys_file_offset_bits in #(
7236   unknown) :
7237     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7238 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7239 if test ${ac_cv_sys_large_files+y}
7240 then :
7241   printf %s "(cached) " >&6
7242 else $as_nop
7243   while :; do
7244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h.  */
7246 #include <sys/types.h>
7247  /* Check that off_t can represent 2**63 - 1 correctly.
7248     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7249     since some C++ compilers masquerading as C compilers
7250     incorrectly reject 9223372036854775807.  */
7251 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7252   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7253                        && LARGE_OFF_T % 2147483647 == 1)
7254                       ? 1 : -1];
7255 int
7256 main (void)
7257 {
7258
7259   ;
7260   return 0;
7261 }
7262 _ACEOF
7263 if ac_fn_c_try_compile "$LINENO"
7264 then :
7265   ac_cv_sys_large_files=no; break
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h.  */
7270 #undef _LARGE_FILES
7271 #define _LARGE_FILES 1
7272 #include <sys/types.h>
7273  /* Check that off_t can represent 2**63 - 1 correctly.
7274     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7275     since some C++ compilers masquerading as C compilers
7276     incorrectly reject 9223372036854775807.  */
7277 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7278   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7279                        && LARGE_OFF_T % 2147483647 == 1)
7280                       ? 1 : -1];
7281 int
7282 main (void)
7283 {
7284
7285   ;
7286   return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"
7290 then :
7291   ac_cv_sys_large_files=1; break
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7294   ac_cv_sys_large_files=unknown
7295   break
7296 done
7297 fi
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7299 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7300 case $ac_cv_sys_large_files in #(
7301   no | unknown) ;;
7302   *)
7303 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7304 ;;
7305 esac
7306 rm -rf conftest* ;; #(
7307   64) :
7308
7309  # Check whether --enable-year2038 was given.
7310 if test ${enable_year2038+y}
7311 then :
7312   enableval=$enable_year2038;
7313 fi
7314
7315  if test "$enable_year2038" != no
7316 then :
7317
7318                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5
7319 printf %s "checking for time_t past the year 2038... " >&6; }
7320 if test ${gl_cv_type_time_t_y2038+y}
7321 then :
7322   printf %s "(cached) " >&6
7323 else $as_nop
7324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h.  */
7326
7327   #include <time.h>
7328   /* Check that time_t can represent 2**32 - 1 correctly.  */
7329   #define LARGE_TIME_T \\
7330     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7331   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7332                            && LARGE_TIME_T % 65537 == 0)
7333                           ? 1 : -1];
7334
7335 _ACEOF
7336 if ac_fn_c_try_compile "$LINENO"
7337 then :
7338   gl_cv_type_time_t_y2038=yes
7339 else $as_nop
7340   gl_cv_type_time_t_y2038=no
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7343
7344 fi
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5
7346 printf "%s\n" "$gl_cv_type_time_t_y2038" >&6; }
7347   if test "$gl_cv_type_time_t_y2038" = no; then
7348     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5
7349 printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; }
7350 if test ${gl_cv_type_time_t_bits_macro+y}
7351 then :
7352   printf %s "(cached) " >&6
7353 else $as_nop
7354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h.  */
7356 #define _TIME_BITS 64
7357                            #define _FILE_OFFSET_BITS 64
7358
7359   #include <time.h>
7360   /* Check that time_t can represent 2**32 - 1 correctly.  */
7361   #define LARGE_TIME_T \\
7362     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7363   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7364                            && LARGE_TIME_T % 65537 == 0)
7365                           ? 1 : -1];
7366
7367 _ACEOF
7368 if ac_fn_c_try_compile "$LINENO"
7369 then :
7370   gl_cv_type_time_t_bits_macro=yes
7371 else $as_nop
7372   gl_cv_type_time_t_bits_macro=no
7373 fi
7374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7375
7376 fi
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5
7378 printf "%s\n" "$gl_cv_type_time_t_bits_macro" >&6; }
7379     if test "$gl_cv_type_time_t_bits_macro" = yes; then
7380
7381 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
7382
7383
7384 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7385
7386       gl_cv_type_time_t_y2038=yes
7387     fi
7388   fi
7389   if test $gl_cv_type_time_t_y2038 = no; then
7390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h.  */
7392 #ifdef _USE_32BIT_TIME_T
7393              int ok;
7394            #else
7395              error fail
7396            #endif
7397
7398 _ACEOF
7399 if ac_fn_c_try_compile "$LINENO"
7400 then :
7401   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7403 as_fn_error $? "The 'time_t' type stops working after January 2038.
7404           Remove _USE_32BIT_TIME_T from the compiler flags.
7405 See \`config.log' for more details" "$LINENO" 5; }
7406 else $as_nop
7407   # If not cross-compiling and  says we should check,
7408        # and 'touch' works with a large timestamp, then evidently wider time_t
7409        # is desired and supported, so fail and ask the builder to fix the
7410        # problem.  Otherwise, just warn the builder.
7411
7412        if test "$gl_warned_about_y2038" != yes; then
7413          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038,
7414             and this package needs a wider 'time_t' type
7415             if there is any way to access timestamps after that.
7416             Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5
7417 printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038,
7418             and this package needs a wider 'time_t' type
7419             if there is any way to access timestamps after that.
7420             Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;}
7421          gl_warned_about_y2038=yes
7422        fi
7423
7424 fi
7425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7426   fi
7427 fi
7428  ;; #(
7429   *) :
7430      ;;
7431 esac
7432 fi
7433
7434
7435
7436   case "$host_os" in
7437     mingw*)
7438
7439 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
7440
7441       ;;
7442   esac
7443
7444
7445
7446   # Pre-early section.
7447
7448
7449
7450   # Code from module absolute-header:
7451   # Code from module alloca-opt:
7452   # Code from module c99:
7453   # Code from module clock-time:
7454   # Code from module cloexec:
7455   # Code from module close:
7456   # Code from module dup2:
7457   # Code from module errno:
7458   # Code from module explicit_bzero:
7459   # Code from module extensions:
7460   # Code from module extern-inline:
7461   # Code from module fcntl:
7462   # Code from module fcntl-h:
7463   # Code from module fd-hook:
7464   # Code from module filename:
7465   # Code from module fopen:
7466   # Code from module fopen-gnu:
7467   # Code from module free-posix:
7468   # Code from module fstat:
7469   # Code from module ftell:
7470   # Code from module ftello:
7471
7472   # Code from module gen-header:
7473   # Code from module getdtablesize:
7474   # Code from module getopt-gnu:
7475   # Code from module getopt-posix:
7476   # Code from module gettext-h:
7477   # Code from module gettime:
7478   # Code from module gettimeofday:
7479   # Code from module idx:
7480   # Code from module include_next:
7481   # Code from module intprops:
7482   # Code from module inttypes-incomplete:
7483   # Code from module largefile:
7484
7485
7486   # Code from module limits-h:
7487   # Code from module lseek:
7488   # Code from module malloc-posix:
7489   # Code from module malloca:
7490   # Code from module msvc-inval:
7491   # Code from module msvc-nothrow:
7492   # Code from module multiarch:
7493   # Code from module nocrash:
7494   # Code from module open:
7495   # Code from module pathmax:
7496   # Code from module progname:
7497   # Code from module read-file:
7498   # Code from module realloc-posix:
7499   # Code from module snippet/_Noreturn:
7500   # Code from module snippet/arg-nonnull:
7501   # Code from module snippet/c++defs:
7502   # Code from module snippet/warn-on-use:
7503   # Code from module ssize_t:
7504   # Code from module stat:
7505   # Code from module stat-time:
7506   # Code from module std-gnu11:
7507   # Code from module stdarg:
7508
7509
7510
7511   # Code from module stdbool:
7512   # Code from module stdckdint:
7513   # Code from module stddef:
7514   # Code from module stdint:
7515   # Code from module stdio:
7516   # Code from module stdlib:
7517   # Code from module string:
7518   # Code from module sys_stat:
7519   # Code from module sys_time:
7520   # Code from module sys_types:
7521   # Code from module time:
7522   # Code from module timespec:
7523   # Code from module unistd:
7524   # Code from module vararrays:
7525   # Code from module verify:
7526   # Code from module version-etc:
7527   # Code from module version-etc-fsf:
7528   # Code from module wchar:
7529   # Code from module xalloc-oversized:
7530
7531 for ac_prog in 'bison -y' byacc
7532 do
7533   # Extract the first word of "$ac_prog", so it can be a program name with args.
7534 set dummy $ac_prog; ac_word=$2
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 printf %s "checking for $ac_word... " >&6; }
7537 if test ${ac_cv_prog_YACC+y}
7538 then :
7539   printf %s "(cached) " >&6
7540 else $as_nop
7541   if test -n "$YACC"; then
7542   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   case $as_dir in #(((
7549     '') as_dir=./ ;;
7550     */) ;;
7551     *) as_dir=$as_dir/ ;;
7552   esac
7553     for ac_exec_ext in '' $ac_executable_extensions; do
7554   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7555     ac_cv_prog_YACC="$ac_prog"
7556     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560   done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 YACC=$ac_cv_prog_YACC
7566 if test -n "$YACC"; then
7567   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7568 printf "%s\n" "$YACC" >&6; }
7569 else
7570   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 printf "%s\n" "no" >&6; }
7572 fi
7573
7574
7575   test -n "$YACC" && break
7576 done
7577 test -n "$YACC" || YACC="yacc"
7578
7579
7580 # Check whether --enable-doc was given.
7581 if test ${enable_doc+y}
7582 then :
7583   enableval=$enable_doc; enable_doc=$enableval
7584 else $as_nop
7585   enable_doc=yes
7586 fi
7587
7588  if test "$enable_doc" != "no"; then
7589   ENABLE_DOC_TRUE=
7590   ENABLE_DOC_FALSE='#'
7591 else
7592   ENABLE_DOC_TRUE='#'
7593   ENABLE_DOC_FALSE=
7594 fi
7595
7596
7597 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7598 if test "x$ac_cv_func_clock_gettime" = xyes
7599 then :
7600   printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7601
7602 fi
7603 ac_fn_c_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen"
7604 if test "x$ac_cv_func_fmemopen" = xyes
7605 then :
7606   printf "%s\n" "#define HAVE_FMEMOPEN 1" >>confdefs.h
7607
7608 fi
7609
7610
7611
7612 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
7613
7614 case `pwd` in
7615   *\ * | *\     *)
7616     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7617 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7618 esac
7619
7620
7621
7622 macro_version='2.4.6'
7623 macro_revision='2.4.6'
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638 ltmain=$ac_aux_dir/ltmain.sh
7639
7640 # Backslashify metacharacters that are still active within
7641 # double-quoted strings.
7642 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7643
7644 # Same as above, but do not quote variable references.
7645 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7646
7647 # Sed substitution to delay expansion of an escaped shell variable in a
7648 # double_quote_subst'ed string.
7649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7650
7651 # Sed substitution to delay expansion of an escaped single quote.
7652 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7653
7654 # Sed substitution to avoid accidental globbing in evaled expressions
7655 no_glob_subst='s/\*/\\\*/g'
7656
7657 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7658 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7659 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7660
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7662 printf %s "checking how to print strings... " >&6; }
7663 # Test print first, because it will be a builtin if present.
7664 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7665    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7666   ECHO='print -r --'
7667 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7668   ECHO='printf %s\n'
7669 else
7670   # Use this function as a fallback that always works.
7671   func_fallback_echo ()
7672   {
7673     eval 'cat <<_LTECHO_EOF
7674 $1
7675 _LTECHO_EOF'
7676   }
7677   ECHO='func_fallback_echo'
7678 fi
7679
7680 # func_echo_all arg...
7681 # Invoke $ECHO with all args, space-separated.
7682 func_echo_all ()
7683 {
7684     $ECHO ""
7685 }
7686
7687 case $ECHO in
7688   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7689 printf "%s\n" "printf" >&6; } ;;
7690   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7691 printf "%s\n" "print -r" >&6; } ;;
7692   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7693 printf "%s\n" "cat" >&6; } ;;
7694 esac
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7710 printf %s "checking for a sed that does not truncate output... " >&6; }
7711 if test ${ac_cv_path_SED+y}
7712 then :
7713   printf %s "(cached) " >&6
7714 else $as_nop
7715             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7716      for ac_i in 1 2 3 4 5 6 7; do
7717        ac_script="$ac_script$as_nl$ac_script"
7718      done
7719      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7720      { ac_script=; unset ac_script;}
7721      if test -z "$SED"; then
7722   ac_path_SED_found=false
7723   # Loop through the user's path and test for each of PROGNAME-LIST
7724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727   IFS=$as_save_IFS
7728   case $as_dir in #(((
7729     '') as_dir=./ ;;
7730     */) ;;
7731     *) as_dir=$as_dir/ ;;
7732   esac
7733     for ac_prog in sed gsed
7734    do
7735     for ac_exec_ext in '' $ac_executable_extensions; do
7736       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7737       as_fn_executable_p "$ac_path_SED" || continue
7738 # Check for GNU ac_path_SED and select it if it is found.
7739   # Check for GNU $ac_path_SED
7740 case `"$ac_path_SED" --version 2>&1` in
7741 *GNU*)
7742   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7743 *)
7744   ac_count=0
7745   printf %s 0123456789 >"conftest.in"
7746   while :
7747   do
7748     cat "conftest.in" "conftest.in" >"conftest.tmp"
7749     mv "conftest.tmp" "conftest.in"
7750     cp "conftest.in" "conftest.nl"
7751     printf "%s\n" '' >> "conftest.nl"
7752     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7753     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7754     as_fn_arith $ac_count + 1 && ac_count=$as_val
7755     if test $ac_count -gt ${ac_path_SED_max-0}; then
7756       # Best one so far, save it but keep looking for a better one
7757       ac_cv_path_SED="$ac_path_SED"
7758       ac_path_SED_max=$ac_count
7759     fi
7760     # 10*(2^10) chars as input seems more than enough
7761     test $ac_count -gt 10 && break
7762   done
7763   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7764 esac
7765
7766       $ac_path_SED_found && break 3
7767     done
7768   done
7769   done
7770 IFS=$as_save_IFS
7771   if test -z "$ac_cv_path_SED"; then
7772     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7773   fi
7774 else
7775   ac_cv_path_SED=$SED
7776 fi
7777
7778 fi
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7780 printf "%s\n" "$ac_cv_path_SED" >&6; }
7781  SED="$ac_cv_path_SED"
7782   rm -f conftest.sed
7783
7784 test -z "$SED" && SED=sed
7785 Xsed="$SED -e 1s/^X//"
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7798 printf %s "checking for fgrep... " >&6; }
7799 if test ${ac_cv_path_FGREP+y}
7800 then :
7801   printf %s "(cached) " >&6
7802 else $as_nop
7803   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7804    then ac_cv_path_FGREP="$GREP -F"
7805    else
7806      if test -z "$FGREP"; then
7807   ac_path_FGREP_found=false
7808   # Loop through the user's path and test for each of PROGNAME-LIST
7809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7811 do
7812   IFS=$as_save_IFS
7813   case $as_dir in #(((
7814     '') as_dir=./ ;;
7815     */) ;;
7816     *) as_dir=$as_dir/ ;;
7817   esac
7818     for ac_prog in fgrep
7819    do
7820     for ac_exec_ext in '' $ac_executable_extensions; do
7821       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7822       as_fn_executable_p "$ac_path_FGREP" || continue
7823 # Check for GNU ac_path_FGREP and select it if it is found.
7824   # Check for GNU $ac_path_FGREP
7825 case `"$ac_path_FGREP" --version 2>&1` in
7826 *GNU*)
7827   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7828 *)
7829   ac_count=0
7830   printf %s 0123456789 >"conftest.in"
7831   while :
7832   do
7833     cat "conftest.in" "conftest.in" >"conftest.tmp"
7834     mv "conftest.tmp" "conftest.in"
7835     cp "conftest.in" "conftest.nl"
7836     printf "%s\n" 'FGREP' >> "conftest.nl"
7837     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7838     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7839     as_fn_arith $ac_count + 1 && ac_count=$as_val
7840     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7841       # Best one so far, save it but keep looking for a better one
7842       ac_cv_path_FGREP="$ac_path_FGREP"
7843       ac_path_FGREP_max=$ac_count
7844     fi
7845     # 10*(2^10) chars as input seems more than enough
7846     test $ac_count -gt 10 && break
7847   done
7848   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7849 esac
7850
7851       $ac_path_FGREP_found && break 3
7852     done
7853   done
7854   done
7855 IFS=$as_save_IFS
7856   if test -z "$ac_cv_path_FGREP"; then
7857     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7858   fi
7859 else
7860   ac_cv_path_FGREP=$FGREP
7861 fi
7862
7863    fi
7864 fi
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7866 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7867  FGREP="$ac_cv_path_FGREP"
7868
7869
7870 test -z "$GREP" && GREP=grep
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890 # Check whether --with-gnu-ld was given.
7891 if test ${with_gnu_ld+y}
7892 then :
7893   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7894 else $as_nop
7895   with_gnu_ld=no
7896 fi
7897
7898 ac_prog=ld
7899 if test yes = "$GCC"; then
7900   # Check if gcc -print-prog-name=ld gives a path.
7901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7902 printf %s "checking for ld used by $CC... " >&6; }
7903   case $host in
7904   *-*-mingw*)
7905     # gcc leaves a trailing carriage return, which upsets mingw
7906     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7907   *)
7908     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7909   esac
7910   case $ac_prog in
7911     # Accept absolute paths.
7912     [\\/]* | ?:[\\/]*)
7913       re_direlt='/[^/][^/]*/\.\./'
7914       # Canonicalize the pathname of ld
7915       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7916       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7917         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7918       done
7919       test -z "$LD" && LD=$ac_prog
7920       ;;
7921   "")
7922     # If it fails, then pretend we aren't using GCC.
7923     ac_prog=ld
7924     ;;
7925   *)
7926     # If it is relative, then search for the first ld in PATH.
7927     with_gnu_ld=unknown
7928     ;;
7929   esac
7930 elif test yes = "$with_gnu_ld"; then
7931   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7932 printf %s "checking for GNU ld... " >&6; }
7933 else
7934   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7935 printf %s "checking for non-GNU ld... " >&6; }
7936 fi
7937 if test ${lt_cv_path_LD+y}
7938 then :
7939   printf %s "(cached) " >&6
7940 else $as_nop
7941   if test -z "$LD"; then
7942   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7943   for ac_dir in $PATH; do
7944     IFS=$lt_save_ifs
7945     test -z "$ac_dir" && ac_dir=.
7946     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7947       lt_cv_path_LD=$ac_dir/$ac_prog
7948       # Check to see if the program is GNU ld.  I'd rather use --version,
7949       # but apparently some variants of GNU ld only accept -v.
7950       # Break only if it was the GNU/non-GNU ld that we prefer.
7951       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7952       *GNU* | *'with BFD'*)
7953         test no != "$with_gnu_ld" && break
7954         ;;
7955       *)
7956         test yes != "$with_gnu_ld" && break
7957         ;;
7958       esac
7959     fi
7960   done
7961   IFS=$lt_save_ifs
7962 else
7963   lt_cv_path_LD=$LD # Let the user override the test with a path.
7964 fi
7965 fi
7966
7967 LD=$lt_cv_path_LD
7968 if test -n "$LD"; then
7969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7970 printf "%s\n" "$LD" >&6; }
7971 else
7972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 printf "%s\n" "no" >&6; }
7974 fi
7975 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7977 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7978 if test ${lt_cv_prog_gnu_ld+y}
7979 then :
7980   printf %s "(cached) " >&6
7981 else $as_nop
7982   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7983 case `$LD -v 2>&1 </dev/null` in
7984 *GNU* | *'with BFD'*)
7985   lt_cv_prog_gnu_ld=yes
7986   ;;
7987 *)
7988   lt_cv_prog_gnu_ld=no
7989   ;;
7990 esac
7991 fi
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7993 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7994 with_gnu_ld=$lt_cv_prog_gnu_ld
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8005 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8006 if test ${lt_cv_path_NM+y}
8007 then :
8008   printf %s "(cached) " >&6
8009 else $as_nop
8010   if test -n "$NM"; then
8011   # Let the user override the test.
8012   lt_cv_path_NM=$NM
8013 else
8014   lt_nm_to_check=${ac_tool_prefix}nm
8015   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8016     lt_nm_to_check="$lt_nm_to_check nm"
8017   fi
8018   for lt_tmp_nm in $lt_nm_to_check; do
8019     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8020     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8021       IFS=$lt_save_ifs
8022       test -z "$ac_dir" && ac_dir=.
8023       tmp_nm=$ac_dir/$lt_tmp_nm
8024       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8025         # Check to see if the nm accepts a BSD-compat flag.
8026         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8027         #   nm: unknown option "B" ignored
8028         # Tru64's nm complains that /dev/null is an invalid object file
8029         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8030         case $build_os in
8031         mingw*) lt_bad_file=conftest.nm/nofile ;;
8032         *) lt_bad_file=/dev/null ;;
8033         esac
8034         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8035         *$lt_bad_file* | *'Invalid file or object type'*)
8036           lt_cv_path_NM="$tmp_nm -B"
8037           break 2
8038           ;;
8039         *)
8040           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8041           */dev/null*)
8042             lt_cv_path_NM="$tmp_nm -p"
8043             break 2
8044             ;;
8045           *)
8046             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8047             continue # so that we can try to find one that supports BSD flags
8048             ;;
8049           esac
8050           ;;
8051         esac
8052       fi
8053     done
8054     IFS=$lt_save_ifs
8055   done
8056   : ${lt_cv_path_NM=no}
8057 fi
8058 fi
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8060 printf "%s\n" "$lt_cv_path_NM" >&6; }
8061 if test no != "$lt_cv_path_NM"; then
8062   NM=$lt_cv_path_NM
8063 else
8064   # Didn't find any BSD compatible name lister, look for dumpbin.
8065   if test -n "$DUMPBIN"; then :
8066     # Let the user override the test.
8067   else
8068     if test -n "$ac_tool_prefix"; then
8069   for ac_prog in dumpbin "link -dump"
8070   do
8071     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 printf %s "checking for $ac_word... " >&6; }
8075 if test ${ac_cv_prog_DUMPBIN+y}
8076 then :
8077   printf %s "(cached) " >&6
8078 else $as_nop
8079   if test -n "$DUMPBIN"; then
8080   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085   IFS=$as_save_IFS
8086   case $as_dir in #(((
8087     '') as_dir=./ ;;
8088     */) ;;
8089     *) as_dir=$as_dir/ ;;
8090   esac
8091     for ac_exec_ext in '' $ac_executable_extensions; do
8092   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8093     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8094     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8095     break 2
8096   fi
8097 done
8098   done
8099 IFS=$as_save_IFS
8100
8101 fi
8102 fi
8103 DUMPBIN=$ac_cv_prog_DUMPBIN
8104 if test -n "$DUMPBIN"; then
8105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8106 printf "%s\n" "$DUMPBIN" >&6; }
8107 else
8108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 printf "%s\n" "no" >&6; }
8110 fi
8111
8112
8113     test -n "$DUMPBIN" && break
8114   done
8115 fi
8116 if test -z "$DUMPBIN"; then
8117   ac_ct_DUMPBIN=$DUMPBIN
8118   for ac_prog in dumpbin "link -dump"
8119 do
8120   # Extract the first word of "$ac_prog", so it can be a program name with args.
8121 set dummy $ac_prog; ac_word=$2
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 printf %s "checking for $ac_word... " >&6; }
8124 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8125 then :
8126   printf %s "(cached) " >&6
8127 else $as_nop
8128   if test -n "$ac_ct_DUMPBIN"; then
8129   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134   IFS=$as_save_IFS
8135   case $as_dir in #(((
8136     '') as_dir=./ ;;
8137     */) ;;
8138     *) as_dir=$as_dir/ ;;
8139   esac
8140     for ac_exec_ext in '' $ac_executable_extensions; do
8141   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8142     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8143     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147   done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8153 if test -n "$ac_ct_DUMPBIN"; then
8154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8155 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8156 else
8157   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 printf "%s\n" "no" >&6; }
8159 fi
8160
8161
8162   test -n "$ac_ct_DUMPBIN" && break
8163 done
8164
8165   if test "x$ac_ct_DUMPBIN" = x; then
8166     DUMPBIN=":"
8167   else
8168     case $cross_compiling:$ac_tool_warned in
8169 yes:)
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8172 ac_tool_warned=yes ;;
8173 esac
8174     DUMPBIN=$ac_ct_DUMPBIN
8175   fi
8176 fi
8177
8178     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8179     *COFF*)
8180       DUMPBIN="$DUMPBIN -symbols -headers"
8181       ;;
8182     *)
8183       DUMPBIN=:
8184       ;;
8185     esac
8186   fi
8187
8188   if test : != "$DUMPBIN"; then
8189     NM=$DUMPBIN
8190   fi
8191 fi
8192 test -z "$NM" && NM=nm
8193
8194
8195
8196
8197
8198
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8200 printf %s "checking the name lister ($NM) interface... " >&6; }
8201 if test ${lt_cv_nm_interface+y}
8202 then :
8203   printf %s "(cached) " >&6
8204 else $as_nop
8205   lt_cv_nm_interface="BSD nm"
8206   echo "int some_variable = 0;" > conftest.$ac_ext
8207   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8208   (eval "$ac_compile" 2>conftest.err)
8209   cat conftest.err >&5
8210   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8211   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8212   cat conftest.err >&5
8213   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8214   cat conftest.out >&5
8215   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8216     lt_cv_nm_interface="MS dumpbin"
8217   fi
8218   rm -f conftest*
8219 fi
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8221 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8222
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8224 printf %s "checking whether ln -s works... " >&6; }
8225 LN_S=$as_ln_s
8226 if test "$LN_S" = "ln -s"; then
8227   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8228 printf "%s\n" "yes" >&6; }
8229 else
8230   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8231 printf "%s\n" "no, using $LN_S" >&6; }
8232 fi
8233
8234 # find the maximum length of command line arguments
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8236 printf %s "checking the maximum length of command line arguments... " >&6; }
8237 if test ${lt_cv_sys_max_cmd_len+y}
8238 then :
8239   printf %s "(cached) " >&6
8240 else $as_nop
8241     i=0
8242   teststring=ABCD
8243
8244   case $build_os in
8245   msdosdjgpp*)
8246     # On DJGPP, this test can blow up pretty badly due to problems in libc
8247     # (any single argument exceeding 2000 bytes causes a buffer overrun
8248     # during glob expansion).  Even if it were fixed, the result of this
8249     # check would be larger than it should be.
8250     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8251     ;;
8252
8253   gnu*)
8254     # Under GNU Hurd, this test is not required because there is
8255     # no limit to the length of command line arguments.
8256     # Libtool will interpret -1 as no limit whatsoever
8257     lt_cv_sys_max_cmd_len=-1;
8258     ;;
8259
8260   cygwin* | mingw* | cegcc*)
8261     # On Win9x/ME, this test blows up -- it succeeds, but takes
8262     # about 5 minutes as the teststring grows exponentially.
8263     # Worse, since 9x/ME are not pre-emptively multitasking,
8264     # you end up with a "frozen" computer, even though with patience
8265     # the test eventually succeeds (with a max line length of 256k).
8266     # Instead, let's just punt: use the minimum linelength reported by
8267     # all of the supported platforms: 8192 (on NT/2K/XP).
8268     lt_cv_sys_max_cmd_len=8192;
8269     ;;
8270
8271   mint*)
8272     # On MiNT this can take a long time and run out of memory.
8273     lt_cv_sys_max_cmd_len=8192;
8274     ;;
8275
8276   amigaos*)
8277     # On AmigaOS with pdksh, this test takes hours, literally.
8278     # So we just punt and use a minimum line length of 8192.
8279     lt_cv_sys_max_cmd_len=8192;
8280     ;;
8281
8282   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8283     # This has been around since 386BSD, at least.  Likely further.
8284     if test -x /sbin/sysctl; then
8285       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8286     elif test -x /usr/sbin/sysctl; then
8287       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8288     else
8289       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8290     fi
8291     # And add a safety zone
8292     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8293     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8294     ;;
8295
8296   interix*)
8297     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8298     lt_cv_sys_max_cmd_len=196608
8299     ;;
8300
8301   os2*)
8302     # The test takes a long time on OS/2.
8303     lt_cv_sys_max_cmd_len=8192
8304     ;;
8305
8306   osf*)
8307     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8308     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8309     # nice to cause kernel panics so lets avoid the loop below.
8310     # First set a reasonable default.
8311     lt_cv_sys_max_cmd_len=16384
8312     #
8313     if test -x /sbin/sysconfig; then
8314       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8315         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8316       esac
8317     fi
8318     ;;
8319   sco3.2v5*)
8320     lt_cv_sys_max_cmd_len=102400
8321     ;;
8322   sysv5* | sco5v6* | sysv4.2uw2*)
8323     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8324     if test -n "$kargmax"; then
8325       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8326     else
8327       lt_cv_sys_max_cmd_len=32768
8328     fi
8329     ;;
8330   *)
8331     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8332     if test -n "$lt_cv_sys_max_cmd_len" && \
8333        test undefined != "$lt_cv_sys_max_cmd_len"; then
8334       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8335       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8336     else
8337       # Make teststring a little bigger before we do anything with it.
8338       # a 1K string should be a reasonable start.
8339       for i in 1 2 3 4 5 6 7 8; do
8340         teststring=$teststring$teststring
8341       done
8342       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8343       # If test is not a shell built-in, we'll probably end up computing a
8344       # maximum length that is only half of the actual maximum length, but
8345       # we can't tell.
8346       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8347                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8348               test 17 != "$i" # 1/2 MB should be enough
8349       do
8350         i=`expr $i + 1`
8351         teststring=$teststring$teststring
8352       done
8353       # Only check the string length outside the loop.
8354       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8355       teststring=
8356       # Add a significant safety factor because C++ compilers can tack on
8357       # massive amounts of additional arguments before passing them to the
8358       # linker.  It appears as though 1/2 is a usable value.
8359       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8360     fi
8361     ;;
8362   esac
8363
8364 fi
8365
8366 if test -n "$lt_cv_sys_max_cmd_len"; then
8367   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8368 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8369 else
8370   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8371 printf "%s\n" "none" >&6; }
8372 fi
8373 max_cmd_len=$lt_cv_sys_max_cmd_len
8374
8375
8376
8377
8378
8379
8380 : ${CP="cp -f"}
8381 : ${MV="mv -f"}
8382 : ${RM="rm -f"}
8383
8384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8385   lt_unset=unset
8386 else
8387   lt_unset=false
8388 fi
8389
8390
8391
8392
8393
8394 # test EBCDIC or ASCII
8395 case `echo X|tr X '\101'` in
8396  A) # ASCII based system
8397     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8398   lt_SP2NL='tr \040 \012'
8399   lt_NL2SP='tr \015\012 \040\040'
8400   ;;
8401  *) # EBCDIC based system
8402   lt_SP2NL='tr \100 \n'
8403   lt_NL2SP='tr \r\n \100\100'
8404   ;;
8405 esac
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8416 printf %s "checking how to convert $build file names to $host format... " >&6; }
8417 if test ${lt_cv_to_host_file_cmd+y}
8418 then :
8419   printf %s "(cached) " >&6
8420 else $as_nop
8421   case $host in
8422   *-*-mingw* )
8423     case $build in
8424       *-*-mingw* ) # actually msys
8425         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8426         ;;
8427       *-*-cygwin* )
8428         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8429         ;;
8430       * ) # otherwise, assume *nix
8431         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8432         ;;
8433     esac
8434     ;;
8435   *-*-cygwin* )
8436     case $build in
8437       *-*-mingw* ) # actually msys
8438         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8439         ;;
8440       *-*-cygwin* )
8441         lt_cv_to_host_file_cmd=func_convert_file_noop
8442         ;;
8443       * ) # otherwise, assume *nix
8444         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8445         ;;
8446     esac
8447     ;;
8448   * ) # unhandled hosts (and "normal" native builds)
8449     lt_cv_to_host_file_cmd=func_convert_file_noop
8450     ;;
8451 esac
8452
8453 fi
8454
8455 to_host_file_cmd=$lt_cv_to_host_file_cmd
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8457 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8458
8459
8460
8461
8462
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8464 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8465 if test ${lt_cv_to_tool_file_cmd+y}
8466 then :
8467   printf %s "(cached) " >&6
8468 else $as_nop
8469   #assume ordinary cross tools, or native build.
8470 lt_cv_to_tool_file_cmd=func_convert_file_noop
8471 case $host in
8472   *-*-mingw* )
8473     case $build in
8474       *-*-mingw* ) # actually msys
8475         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8476         ;;
8477     esac
8478     ;;
8479 esac
8480
8481 fi
8482
8483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8485 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8486
8487
8488
8489
8490
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8492 printf %s "checking for $LD option to reload object files... " >&6; }
8493 if test ${lt_cv_ld_reload_flag+y}
8494 then :
8495   printf %s "(cached) " >&6
8496 else $as_nop
8497   lt_cv_ld_reload_flag='-r'
8498 fi
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8500 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8501 reload_flag=$lt_cv_ld_reload_flag
8502 case $reload_flag in
8503 "" | " "*) ;;
8504 *) reload_flag=" $reload_flag" ;;
8505 esac
8506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8507 case $host_os in
8508   cygwin* | mingw* | pw32* | cegcc*)
8509     if test yes != "$GCC"; then
8510       reload_cmds=false
8511     fi
8512     ;;
8513   darwin*)
8514     if test yes = "$GCC"; then
8515       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8516     else
8517       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8518     fi
8519     ;;
8520 esac
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530 if test -n "$ac_tool_prefix"; then
8531   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8532 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 printf %s "checking for $ac_word... " >&6; }
8535 if test ${ac_cv_prog_OBJDUMP+y}
8536 then :
8537   printf %s "(cached) " >&6
8538 else $as_nop
8539   if test -n "$OBJDUMP"; then
8540   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545   IFS=$as_save_IFS
8546   case $as_dir in #(((
8547     '') as_dir=./ ;;
8548     */) ;;
8549     *) as_dir=$as_dir/ ;;
8550   esac
8551     for ac_exec_ext in '' $ac_executable_extensions; do
8552   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8553     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8554     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8555     break 2
8556   fi
8557 done
8558   done
8559 IFS=$as_save_IFS
8560
8561 fi
8562 fi
8563 OBJDUMP=$ac_cv_prog_OBJDUMP
8564 if test -n "$OBJDUMP"; then
8565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8566 printf "%s\n" "$OBJDUMP" >&6; }
8567 else
8568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 printf "%s\n" "no" >&6; }
8570 fi
8571
8572
8573 fi
8574 if test -z "$ac_cv_prog_OBJDUMP"; then
8575   ac_ct_OBJDUMP=$OBJDUMP
8576   # Extract the first word of "objdump", so it can be a program name with args.
8577 set dummy objdump; ac_word=$2
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 printf %s "checking for $ac_word... " >&6; }
8580 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8581 then :
8582   printf %s "(cached) " >&6
8583 else $as_nop
8584   if test -n "$ac_ct_OBJDUMP"; then
8585   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590   IFS=$as_save_IFS
8591   case $as_dir in #(((
8592     '') as_dir=./ ;;
8593     */) ;;
8594     *) as_dir=$as_dir/ ;;
8595   esac
8596     for ac_exec_ext in '' $ac_executable_extensions; do
8597   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8598     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8599     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8600     break 2
8601   fi
8602 done
8603   done
8604 IFS=$as_save_IFS
8605
8606 fi
8607 fi
8608 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8609 if test -n "$ac_ct_OBJDUMP"; then
8610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8611 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8612 else
8613   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 printf "%s\n" "no" >&6; }
8615 fi
8616
8617   if test "x$ac_ct_OBJDUMP" = x; then
8618     OBJDUMP="false"
8619   else
8620     case $cross_compiling:$ac_tool_warned in
8621 yes:)
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8624 ac_tool_warned=yes ;;
8625 esac
8626     OBJDUMP=$ac_ct_OBJDUMP
8627   fi
8628 else
8629   OBJDUMP="$ac_cv_prog_OBJDUMP"
8630 fi
8631
8632 test -z "$OBJDUMP" && OBJDUMP=objdump
8633
8634
8635
8636
8637
8638
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8640 printf %s "checking how to recognize dependent libraries... " >&6; }
8641 if test ${lt_cv_deplibs_check_method+y}
8642 then :
8643   printf %s "(cached) " >&6
8644 else $as_nop
8645   lt_cv_file_magic_cmd='$MAGIC_CMD'
8646 lt_cv_file_magic_test_file=
8647 lt_cv_deplibs_check_method='unknown'
8648 # Need to set the preceding variable on all platforms that support
8649 # interlibrary dependencies.
8650 # 'none' -- dependencies not supported.
8651 # 'unknown' -- same as none, but documents that we really don't know.
8652 # 'pass_all' -- all dependencies passed with no checks.
8653 # 'test_compile' -- check by making test program.
8654 # 'file_magic [[regex]]' -- check by looking for files in library path
8655 # that responds to the $file_magic_cmd with a given extended regex.
8656 # If you have 'file' or equivalent on your system and you're not sure
8657 # whether 'pass_all' will *always* work, you probably want this one.
8658
8659 case $host_os in
8660 aix[4-9]*)
8661   lt_cv_deplibs_check_method=pass_all
8662   ;;
8663
8664 beos*)
8665   lt_cv_deplibs_check_method=pass_all
8666   ;;
8667
8668 bsdi[45]*)
8669   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8670   lt_cv_file_magic_cmd='/usr/bin/file -L'
8671   lt_cv_file_magic_test_file=/shlib/libc.so
8672   ;;
8673
8674 cygwin*)
8675   # func_win32_libid is a shell function defined in ltmain.sh
8676   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8677   lt_cv_file_magic_cmd='func_win32_libid'
8678   ;;
8679
8680 mingw* | pw32*)
8681   # Base MSYS/MinGW do not provide the 'file' command needed by
8682   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8683   # unless we find 'file', for example because we are cross-compiling.
8684   if ( file / ) >/dev/null 2>&1; then
8685     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8686     lt_cv_file_magic_cmd='func_win32_libid'
8687   else
8688     # Keep this pattern in sync with the one in func_win32_libid.
8689     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8690     lt_cv_file_magic_cmd='$OBJDUMP -f'
8691   fi
8692   ;;
8693
8694 cegcc*)
8695   # use the weaker test based on 'objdump'. See mingw*.
8696   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8697   lt_cv_file_magic_cmd='$OBJDUMP -f'
8698   ;;
8699
8700 darwin* | rhapsody*)
8701   lt_cv_deplibs_check_method=pass_all
8702   ;;
8703
8704 freebsd* | dragonfly*)
8705   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8706     case $host_cpu in
8707     i*86 )
8708       # Not sure whether the presence of OpenBSD here was a mistake.
8709       # Let's accept both of them until this is cleared up.
8710       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8711       lt_cv_file_magic_cmd=/usr/bin/file
8712       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8713       ;;
8714     esac
8715   else
8716     lt_cv_deplibs_check_method=pass_all
8717   fi
8718   ;;
8719
8720 haiku*)
8721   lt_cv_deplibs_check_method=pass_all
8722   ;;
8723
8724 hpux10.20* | hpux11*)
8725   lt_cv_file_magic_cmd=/usr/bin/file
8726   case $host_cpu in
8727   ia64*)
8728     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8729     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8730     ;;
8731   hppa*64*)
8732     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]'
8733     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8734     ;;
8735   *)
8736     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8737     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8738     ;;
8739   esac
8740   ;;
8741
8742 interix[3-9]*)
8743   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8744   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8745   ;;
8746
8747 irix5* | irix6* | nonstopux*)
8748   case $LD in
8749   *-32|*"-32 ") libmagic=32-bit;;
8750   *-n32|*"-n32 ") libmagic=N32;;
8751   *-64|*"-64 ") libmagic=64-bit;;
8752   *) libmagic=never-match;;
8753   esac
8754   lt_cv_deplibs_check_method=pass_all
8755   ;;
8756
8757 # This must be glibc/ELF.
8758 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8759   lt_cv_deplibs_check_method=pass_all
8760   ;;
8761
8762 netbsd* | netbsdelf*-gnu)
8763   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8764     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8765   else
8766     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8767   fi
8768   ;;
8769
8770 newos6*)
8771   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8772   lt_cv_file_magic_cmd=/usr/bin/file
8773   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8774   ;;
8775
8776 *nto* | *qnx*)
8777   lt_cv_deplibs_check_method=pass_all
8778   ;;
8779
8780 openbsd* | bitrig*)
8781   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8782     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8783   else
8784     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8785   fi
8786   ;;
8787
8788 osf3* | osf4* | osf5*)
8789   lt_cv_deplibs_check_method=pass_all
8790   ;;
8791
8792 rdos*)
8793   lt_cv_deplibs_check_method=pass_all
8794   ;;
8795
8796 solaris*)
8797   lt_cv_deplibs_check_method=pass_all
8798   ;;
8799
8800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8801   lt_cv_deplibs_check_method=pass_all
8802   ;;
8803
8804 sysv4 | sysv4.3*)
8805   case $host_vendor in
8806   motorola)
8807     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]'
8808     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8809     ;;
8810   ncr)
8811     lt_cv_deplibs_check_method=pass_all
8812     ;;
8813   sequent)
8814     lt_cv_file_magic_cmd='/bin/file'
8815     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8816     ;;
8817   sni)
8818     lt_cv_file_magic_cmd='/bin/file'
8819     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8820     lt_cv_file_magic_test_file=/lib/libc.so
8821     ;;
8822   siemens)
8823     lt_cv_deplibs_check_method=pass_all
8824     ;;
8825   pc)
8826     lt_cv_deplibs_check_method=pass_all
8827     ;;
8828   esac
8829   ;;
8830
8831 tpf*)
8832   lt_cv_deplibs_check_method=pass_all
8833   ;;
8834 os2*)
8835   lt_cv_deplibs_check_method=pass_all
8836   ;;
8837 esac
8838
8839 fi
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8841 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8842
8843 file_magic_glob=
8844 want_nocaseglob=no
8845 if test "$build" = "$host"; then
8846   case $host_os in
8847   mingw* | pw32*)
8848     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8849       want_nocaseglob=yes
8850     else
8851       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8852     fi
8853     ;;
8854   esac
8855 fi
8856
8857 file_magic_cmd=$lt_cv_file_magic_cmd
8858 deplibs_check_method=$lt_cv_deplibs_check_method
8859 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882 if test -n "$ac_tool_prefix"; then
8883   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8884 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 printf %s "checking for $ac_word... " >&6; }
8887 if test ${ac_cv_prog_DLLTOOL+y}
8888 then :
8889   printf %s "(cached) " >&6
8890 else $as_nop
8891   if test -n "$DLLTOOL"; then
8892   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8893 else
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8896 do
8897   IFS=$as_save_IFS
8898   case $as_dir in #(((
8899     '') as_dir=./ ;;
8900     */) ;;
8901     *) as_dir=$as_dir/ ;;
8902   esac
8903     for ac_exec_ext in '' $ac_executable_extensions; do
8904   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8905     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8906     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8907     break 2
8908   fi
8909 done
8910   done
8911 IFS=$as_save_IFS
8912
8913 fi
8914 fi
8915 DLLTOOL=$ac_cv_prog_DLLTOOL
8916 if test -n "$DLLTOOL"; then
8917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8918 printf "%s\n" "$DLLTOOL" >&6; }
8919 else
8920   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 printf "%s\n" "no" >&6; }
8922 fi
8923
8924
8925 fi
8926 if test -z "$ac_cv_prog_DLLTOOL"; then
8927   ac_ct_DLLTOOL=$DLLTOOL
8928   # Extract the first word of "dlltool", so it can be a program name with args.
8929 set dummy dlltool; ac_word=$2
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 printf %s "checking for $ac_word... " >&6; }
8932 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8933 then :
8934   printf %s "(cached) " >&6
8935 else $as_nop
8936   if test -n "$ac_ct_DLLTOOL"; then
8937   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8938 else
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in $PATH
8941 do
8942   IFS=$as_save_IFS
8943   case $as_dir in #(((
8944     '') as_dir=./ ;;
8945     */) ;;
8946     *) as_dir=$as_dir/ ;;
8947   esac
8948     for ac_exec_ext in '' $ac_executable_extensions; do
8949   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8950     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8951     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8952     break 2
8953   fi
8954 done
8955   done
8956 IFS=$as_save_IFS
8957
8958 fi
8959 fi
8960 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8961 if test -n "$ac_ct_DLLTOOL"; then
8962   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8963 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8964 else
8965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 printf "%s\n" "no" >&6; }
8967 fi
8968
8969   if test "x$ac_ct_DLLTOOL" = x; then
8970     DLLTOOL="false"
8971   else
8972     case $cross_compiling:$ac_tool_warned in
8973 yes:)
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8976 ac_tool_warned=yes ;;
8977 esac
8978     DLLTOOL=$ac_ct_DLLTOOL
8979   fi
8980 else
8981   DLLTOOL="$ac_cv_prog_DLLTOOL"
8982 fi
8983
8984 test -z "$DLLTOOL" && DLLTOOL=dlltool
8985
8986
8987
8988
8989
8990
8991
8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8993 printf %s "checking how to associate runtime and link libraries... " >&6; }
8994 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8995 then :
8996   printf %s "(cached) " >&6
8997 else $as_nop
8998   lt_cv_sharedlib_from_linklib_cmd='unknown'
8999
9000 case $host_os in
9001 cygwin* | mingw* | pw32* | cegcc*)
9002   # two different shell functions defined in ltmain.sh;
9003   # decide which one to use based on capabilities of $DLLTOOL
9004   case `$DLLTOOL --help 2>&1` in
9005   *--identify-strict*)
9006     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9007     ;;
9008   *)
9009     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9010     ;;
9011   esac
9012   ;;
9013 *)
9014   # fallback: assume linklib IS sharedlib
9015   lt_cv_sharedlib_from_linklib_cmd=$ECHO
9016   ;;
9017 esac
9018
9019 fi
9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9021 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9022 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9023 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9024
9025
9026
9027
9028
9029
9030
9031 if test -n "$ac_tool_prefix"; then
9032   for ac_prog in ar
9033   do
9034     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 printf %s "checking for $ac_word... " >&6; }
9038 if test ${ac_cv_prog_AR+y}
9039 then :
9040   printf %s "(cached) " >&6
9041 else $as_nop
9042   if test -n "$AR"; then
9043   ac_cv_prog_AR="$AR" # Let the user override the test.
9044 else
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9047 do
9048   IFS=$as_save_IFS
9049   case $as_dir in #(((
9050     '') as_dir=./ ;;
9051     */) ;;
9052     *) as_dir=$as_dir/ ;;
9053   esac
9054     for ac_exec_ext in '' $ac_executable_extensions; do
9055   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9056     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9057     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9058     break 2
9059   fi
9060 done
9061   done
9062 IFS=$as_save_IFS
9063
9064 fi
9065 fi
9066 AR=$ac_cv_prog_AR
9067 if test -n "$AR"; then
9068   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9069 printf "%s\n" "$AR" >&6; }
9070 else
9071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 printf "%s\n" "no" >&6; }
9073 fi
9074
9075
9076     test -n "$AR" && break
9077   done
9078 fi
9079 if test -z "$AR"; then
9080   ac_ct_AR=$AR
9081   for ac_prog in ar
9082 do
9083   # Extract the first word of "$ac_prog", so it can be a program name with args.
9084 set dummy $ac_prog; ac_word=$2
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 printf %s "checking for $ac_word... " >&6; }
9087 if test ${ac_cv_prog_ac_ct_AR+y}
9088 then :
9089   printf %s "(cached) " >&6
9090 else $as_nop
9091   if test -n "$ac_ct_AR"; then
9092   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9093 else
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 for as_dir in $PATH
9096 do
9097   IFS=$as_save_IFS
9098   case $as_dir in #(((
9099     '') as_dir=./ ;;
9100     */) ;;
9101     *) as_dir=$as_dir/ ;;
9102   esac
9103     for ac_exec_ext in '' $ac_executable_extensions; do
9104   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9105     ac_cv_prog_ac_ct_AR="$ac_prog"
9106     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9107     break 2
9108   fi
9109 done
9110   done
9111 IFS=$as_save_IFS
9112
9113 fi
9114 fi
9115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9116 if test -n "$ac_ct_AR"; then
9117   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9118 printf "%s\n" "$ac_ct_AR" >&6; }
9119 else
9120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 printf "%s\n" "no" >&6; }
9122 fi
9123
9124
9125   test -n "$ac_ct_AR" && break
9126 done
9127
9128   if test "x$ac_ct_AR" = x; then
9129     AR="false"
9130   else
9131     case $cross_compiling:$ac_tool_warned in
9132 yes:)
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9135 ac_tool_warned=yes ;;
9136 esac
9137     AR=$ac_ct_AR
9138   fi
9139 fi
9140
9141 : ${AR=ar}
9142 : ${AR_FLAGS=cr}
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9155 printf %s "checking for archiver @FILE support... " >&6; }
9156 if test ${lt_cv_ar_at_file+y}
9157 then :
9158   printf %s "(cached) " >&6
9159 else $as_nop
9160   lt_cv_ar_at_file=no
9161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h.  */
9163
9164 int
9165 main (void)
9166 {
9167
9168   ;
9169   return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_c_try_compile "$LINENO"
9173 then :
9174   echo conftest.$ac_objext > conftest.lst
9175       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9176       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9177   (eval $lt_ar_try) 2>&5
9178   ac_status=$?
9179   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9180   test $ac_status = 0; }
9181       if test 0 -eq "$ac_status"; then
9182         # Ensure the archiver fails upon bogus file names.
9183         rm -f conftest.$ac_objext libconftest.a
9184         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9185   (eval $lt_ar_try) 2>&5
9186   ac_status=$?
9187   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9188   test $ac_status = 0; }
9189         if test 0 -ne "$ac_status"; then
9190           lt_cv_ar_at_file=@
9191         fi
9192       fi
9193       rm -f conftest.* libconftest.a
9194
9195 fi
9196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9197
9198 fi
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9200 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9201
9202 if test no = "$lt_cv_ar_at_file"; then
9203   archiver_list_spec=
9204 else
9205   archiver_list_spec=$lt_cv_ar_at_file
9206 fi
9207
9208
9209
9210
9211
9212
9213
9214 if test -n "$ac_tool_prefix"; then
9215   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9216 set dummy ${ac_tool_prefix}strip; ac_word=$2
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 printf %s "checking for $ac_word... " >&6; }
9219 if test ${ac_cv_prog_STRIP+y}
9220 then :
9221   printf %s "(cached) " >&6
9222 else $as_nop
9223   if test -n "$STRIP"; then
9224   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9225 else
9226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227 for as_dir in $PATH
9228 do
9229   IFS=$as_save_IFS
9230   case $as_dir in #(((
9231     '') as_dir=./ ;;
9232     */) ;;
9233     *) as_dir=$as_dir/ ;;
9234   esac
9235     for ac_exec_ext in '' $ac_executable_extensions; do
9236   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9237     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9238     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9239     break 2
9240   fi
9241 done
9242   done
9243 IFS=$as_save_IFS
9244
9245 fi
9246 fi
9247 STRIP=$ac_cv_prog_STRIP
9248 if test -n "$STRIP"; then
9249   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9250 printf "%s\n" "$STRIP" >&6; }
9251 else
9252   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 printf "%s\n" "no" >&6; }
9254 fi
9255
9256
9257 fi
9258 if test -z "$ac_cv_prog_STRIP"; then
9259   ac_ct_STRIP=$STRIP
9260   # Extract the first word of "strip", so it can be a program name with args.
9261 set dummy strip; ac_word=$2
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 printf %s "checking for $ac_word... " >&6; }
9264 if test ${ac_cv_prog_ac_ct_STRIP+y}
9265 then :
9266   printf %s "(cached) " >&6
9267 else $as_nop
9268   if test -n "$ac_ct_STRIP"; then
9269   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9270 else
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in $PATH
9273 do
9274   IFS=$as_save_IFS
9275   case $as_dir in #(((
9276     '') as_dir=./ ;;
9277     */) ;;
9278     *) as_dir=$as_dir/ ;;
9279   esac
9280     for ac_exec_ext in '' $ac_executable_extensions; do
9281   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9282     ac_cv_prog_ac_ct_STRIP="strip"
9283     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9284     break 2
9285   fi
9286 done
9287   done
9288 IFS=$as_save_IFS
9289
9290 fi
9291 fi
9292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9293 if test -n "$ac_ct_STRIP"; then
9294   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9295 printf "%s\n" "$ac_ct_STRIP" >&6; }
9296 else
9297   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 printf "%s\n" "no" >&6; }
9299 fi
9300
9301   if test "x$ac_ct_STRIP" = x; then
9302     STRIP=":"
9303   else
9304     case $cross_compiling:$ac_tool_warned in
9305 yes:)
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9308 ac_tool_warned=yes ;;
9309 esac
9310     STRIP=$ac_ct_STRIP
9311   fi
9312 else
9313   STRIP="$ac_cv_prog_STRIP"
9314 fi
9315
9316 test -z "$STRIP" && STRIP=:
9317
9318
9319
9320
9321
9322
9323 if test -n "$ac_tool_prefix"; then
9324   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 printf %s "checking for $ac_word... " >&6; }
9328 if test ${ac_cv_prog_RANLIB+y}
9329 then :
9330   printf %s "(cached) " >&6
9331 else $as_nop
9332   if test -n "$RANLIB"; then
9333   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9334 else
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9337 do
9338   IFS=$as_save_IFS
9339   case $as_dir in #(((
9340     '') as_dir=./ ;;
9341     */) ;;
9342     *) as_dir=$as_dir/ ;;
9343   esac
9344     for ac_exec_ext in '' $ac_executable_extensions; do
9345   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9346     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9347     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9348     break 2
9349   fi
9350 done
9351   done
9352 IFS=$as_save_IFS
9353
9354 fi
9355 fi
9356 RANLIB=$ac_cv_prog_RANLIB
9357 if test -n "$RANLIB"; then
9358   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9359 printf "%s\n" "$RANLIB" >&6; }
9360 else
9361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 printf "%s\n" "no" >&6; }
9363 fi
9364
9365
9366 fi
9367 if test -z "$ac_cv_prog_RANLIB"; then
9368   ac_ct_RANLIB=$RANLIB
9369   # Extract the first word of "ranlib", so it can be a program name with args.
9370 set dummy ranlib; ac_word=$2
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 printf %s "checking for $ac_word... " >&6; }
9373 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9374 then :
9375   printf %s "(cached) " >&6
9376 else $as_nop
9377   if test -n "$ac_ct_RANLIB"; then
9378   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9379 else
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9382 do
9383   IFS=$as_save_IFS
9384   case $as_dir in #(((
9385     '') as_dir=./ ;;
9386     */) ;;
9387     *) as_dir=$as_dir/ ;;
9388   esac
9389     for ac_exec_ext in '' $ac_executable_extensions; do
9390   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9391     ac_cv_prog_ac_ct_RANLIB="ranlib"
9392     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9393     break 2
9394   fi
9395 done
9396   done
9397 IFS=$as_save_IFS
9398
9399 fi
9400 fi
9401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9402 if test -n "$ac_ct_RANLIB"; then
9403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9404 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9405 else
9406   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 printf "%s\n" "no" >&6; }
9408 fi
9409
9410   if test "x$ac_ct_RANLIB" = x; then
9411     RANLIB=":"
9412   else
9413     case $cross_compiling:$ac_tool_warned in
9414 yes:)
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9416 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9417 ac_tool_warned=yes ;;
9418 esac
9419     RANLIB=$ac_ct_RANLIB
9420   fi
9421 else
9422   RANLIB="$ac_cv_prog_RANLIB"
9423 fi
9424
9425 test -z "$RANLIB" && RANLIB=:
9426
9427
9428
9429
9430
9431
9432 # Determine commands to create old-style static archives.
9433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9434 old_postinstall_cmds='chmod 644 $oldlib'
9435 old_postuninstall_cmds=
9436
9437 if test -n "$RANLIB"; then
9438   case $host_os in
9439   bitrig* | openbsd*)
9440     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9441     ;;
9442   *)
9443     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9444     ;;
9445   esac
9446   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9447 fi
9448
9449 case $host_os in
9450   darwin*)
9451     lock_old_archive_extraction=yes ;;
9452   *)
9453     lock_old_archive_extraction=no ;;
9454 esac
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494 # If no C compiler was specified, use CC.
9495 LTCC=${LTCC-"$CC"}
9496
9497 # If no C compiler flags were specified, use CFLAGS.
9498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9499
9500 # Allow CC to be a program name with arguments.
9501 compiler=$CC
9502
9503
9504 # Check for command to grab the raw symbol name followed by C symbol from nm.
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9506 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9507 if test ${lt_cv_sys_global_symbol_pipe+y}
9508 then :
9509   printf %s "(cached) " >&6
9510 else $as_nop
9511
9512 # These are sane defaults that work on at least a few old systems.
9513 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9514
9515 # Character class describing NM global symbol codes.
9516 symcode='[BCDEGRST]'
9517
9518 # Regexp to match symbols that can be accessed directly from C.
9519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9520
9521 # Define system-specific variables.
9522 case $host_os in
9523 aix*)
9524   symcode='[BCDT]'
9525   ;;
9526 cygwin* | mingw* | pw32* | cegcc*)
9527   symcode='[ABCDGISTW]'
9528   ;;
9529 hpux*)
9530   if test ia64 = "$host_cpu"; then
9531     symcode='[ABCDEGRST]'
9532   fi
9533   ;;
9534 irix* | nonstopux*)
9535   symcode='[BCDEGRST]'
9536   ;;
9537 osf*)
9538   symcode='[BCDEGQRST]'
9539   ;;
9540 solaris*)
9541   symcode='[BDRT]'
9542   ;;
9543 sco3.2v5*)
9544   symcode='[DT]'
9545   ;;
9546 sysv4.2uw2*)
9547   symcode='[DT]'
9548   ;;
9549 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9550   symcode='[ABDT]'
9551   ;;
9552 sysv4)
9553   symcode='[DFNSTU]'
9554   ;;
9555 esac
9556
9557 # If we're using GNU nm, then use its standard symbol codes.
9558 case `$NM -V 2>&1` in
9559 *GNU* | *'with BFD'*)
9560   symcode='[ABCDGIRSTW]' ;;
9561 esac
9562
9563 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9564   # Gets list of data symbols to import.
9565   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9566   # Adjust the below global symbol transforms to fixup imported variables.
9567   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9568   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9569   lt_c_name_lib_hook="\
9570   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9571   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9572 else
9573   # Disable hooks by default.
9574   lt_cv_sys_global_symbol_to_import=
9575   lt_cdecl_hook=
9576   lt_c_name_hook=
9577   lt_c_name_lib_hook=
9578 fi
9579
9580 # Transform an extracted symbol line into a proper C declaration.
9581 # Some systems (esp. on ia64) link data and code symbols differently,
9582 # so use this general approach.
9583 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9584 $lt_cdecl_hook\
9585 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9586 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9587
9588 # Transform an extracted symbol line into symbol name and symbol address
9589 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9590 $lt_c_name_hook\
9591 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9592 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9593
9594 # Transform an extracted symbol line into symbol name with lib prefix and
9595 # symbol address.
9596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9597 $lt_c_name_lib_hook\
9598 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9599 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9600 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9601
9602 # Handle CRLF in mingw tool chain
9603 opt_cr=
9604 case $build_os in
9605 mingw*)
9606   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9607   ;;
9608 esac
9609
9610 # Try without a prefix underscore, then with it.
9611 for ac_symprfx in "" "_"; do
9612
9613   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9614   symxfrm="\\1 $ac_symprfx\\2 \\2"
9615
9616   # Write the raw and C identifiers.
9617   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9618     # Fake it for dumpbin and say T for any non-static function,
9619     # D for any global variable and I for any imported variable.
9620     # Also find C++ and __fastcall symbols from MSVC++,
9621     # which start with @ or ?.
9622     lt_cv_sys_global_symbol_pipe="$AWK '"\
9623 "     {last_section=section; section=\$ 3};"\
9624 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9625 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9626 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9627 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9628 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9629 "     \$ 0!~/External *\|/{next};"\
9630 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9631 "     {if(hide[section]) next};"\
9632 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9633 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9634 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9635 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9636 "     ' prfx=^$ac_symprfx"
9637   else
9638     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9639   fi
9640   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9641
9642   # Check to see that the pipe works correctly.
9643   pipe_works=no
9644
9645   rm -f conftest*
9646   cat > conftest.$ac_ext <<_LT_EOF
9647 #ifdef __cplusplus
9648 extern "C" {
9649 #endif
9650 char nm_test_var;
9651 void nm_test_func(void);
9652 void nm_test_func(void){}
9653 #ifdef __cplusplus
9654 }
9655 #endif
9656 int main(){nm_test_var='a';nm_test_func();return(0);}
9657 _LT_EOF
9658
9659   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9660   (eval $ac_compile) 2>&5
9661   ac_status=$?
9662   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9663   test $ac_status = 0; }; then
9664     # Now try to grab the symbols.
9665     nlist=conftest.nm
9666     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9667     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9668       # Try sorting and uniquifying the output.
9669       if sort "$nlist" | uniq > "$nlist"T; then
9670         mv -f "$nlist"T "$nlist"
9671       else
9672         rm -f "$nlist"T
9673       fi
9674
9675       # Make sure that we snagged all the symbols we need.
9676       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9677         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9678           cat <<_LT_EOF > conftest.$ac_ext
9679 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9680 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9681 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9682    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9683 # define LT_DLSYM_CONST
9684 #elif defined __osf__
9685 /* This system does not cope well with relocations in const data.  */
9686 # define LT_DLSYM_CONST
9687 #else
9688 # define LT_DLSYM_CONST const
9689 #endif
9690
9691 #ifdef __cplusplus
9692 extern "C" {
9693 #endif
9694
9695 _LT_EOF
9696           # Now generate the symbol file.
9697           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9698
9699           cat <<_LT_EOF >> conftest.$ac_ext
9700
9701 /* The mapping between symbol names and symbols.  */
9702 LT_DLSYM_CONST struct {
9703   const char *name;
9704   void       *address;
9705 }
9706 lt__PROGRAM__LTX_preloaded_symbols[] =
9707 {
9708   { "@PROGRAM@", (void *) 0 },
9709 _LT_EOF
9710           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9711           cat <<\_LT_EOF >> conftest.$ac_ext
9712   {0, (void *) 0}
9713 };
9714
9715 /* This works around a problem in FreeBSD linker */
9716 #ifdef FREEBSD_WORKAROUND
9717 static const void *lt_preloaded_setup() {
9718   return lt__PROGRAM__LTX_preloaded_symbols;
9719 }
9720 #endif
9721
9722 #ifdef __cplusplus
9723 }
9724 #endif
9725 _LT_EOF
9726           # Now try linking the two files.
9727           mv conftest.$ac_objext conftstm.$ac_objext
9728           lt_globsym_save_LIBS=$LIBS
9729           lt_globsym_save_CFLAGS=$CFLAGS
9730           LIBS=conftstm.$ac_objext
9731           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9732           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9733   (eval $ac_link) 2>&5
9734   ac_status=$?
9735   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9736   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9737             pipe_works=yes
9738           fi
9739           LIBS=$lt_globsym_save_LIBS
9740           CFLAGS=$lt_globsym_save_CFLAGS
9741         else
9742           echo "cannot find nm_test_func in $nlist" >&5
9743         fi
9744       else
9745         echo "cannot find nm_test_var in $nlist" >&5
9746       fi
9747     else
9748       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9749     fi
9750   else
9751     echo "$progname: failed program was:" >&5
9752     cat conftest.$ac_ext >&5
9753   fi
9754   rm -rf conftest* conftst*
9755
9756   # Do not use the global_symbol_pipe unless it works.
9757   if test yes = "$pipe_works"; then
9758     break
9759   else
9760     lt_cv_sys_global_symbol_pipe=
9761   fi
9762 done
9763
9764 fi
9765
9766 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9767   lt_cv_sys_global_symbol_to_cdecl=
9768 fi
9769 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9770   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9771 printf "%s\n" "failed" >&6; }
9772 else
9773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9774 printf "%s\n" "ok" >&6; }
9775 fi
9776
9777 # Response file support.
9778 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9779   nm_file_list_spec='@'
9780 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9781   nm_file_list_spec='@'
9782 fi
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9821 printf %s "checking for sysroot... " >&6; }
9822
9823 # Check whether --with-sysroot was given.
9824 if test ${with_sysroot+y}
9825 then :
9826   withval=$with_sysroot;
9827 else $as_nop
9828   with_sysroot=no
9829 fi
9830
9831
9832 lt_sysroot=
9833 case $with_sysroot in #(
9834  yes)
9835    if test yes = "$GCC"; then
9836      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9837    fi
9838    ;; #(
9839  /*)
9840    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9841    ;; #(
9842  no|'')
9843    ;; #(
9844  *)
9845    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9846 printf "%s\n" "$with_sysroot" >&6; }
9847    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9848    ;;
9849 esac
9850
9851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9852 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9853
9854
9855
9856
9857
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9859 printf %s "checking for a working dd... " >&6; }
9860 if test ${ac_cv_path_lt_DD+y}
9861 then :
9862   printf %s "(cached) " >&6
9863 else $as_nop
9864   printf 0123456789abcdef0123456789abcdef >conftest.i
9865 cat conftest.i conftest.i >conftest2.i
9866 : ${lt_DD:=$DD}
9867 if test -z "$lt_DD"; then
9868   ac_path_lt_DD_found=false
9869   # Loop through the user's path and test for each of PROGNAME-LIST
9870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873   IFS=$as_save_IFS
9874   case $as_dir in #(((
9875     '') as_dir=./ ;;
9876     */) ;;
9877     *) as_dir=$as_dir/ ;;
9878   esac
9879     for ac_prog in dd
9880    do
9881     for ac_exec_ext in '' $ac_executable_extensions; do
9882       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9883       as_fn_executable_p "$ac_path_lt_DD" || continue
9884 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9885   cmp -s conftest.i conftest.out \
9886   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9887 fi
9888       $ac_path_lt_DD_found && break 3
9889     done
9890   done
9891   done
9892 IFS=$as_save_IFS
9893   if test -z "$ac_cv_path_lt_DD"; then
9894     :
9895   fi
9896 else
9897   ac_cv_path_lt_DD=$lt_DD
9898 fi
9899
9900 rm -f conftest.i conftest2.i conftest.out
9901 fi
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9903 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9904
9905
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9907 printf %s "checking how to truncate binary pipes... " >&6; }
9908 if test ${lt_cv_truncate_bin+y}
9909 then :
9910   printf %s "(cached) " >&6
9911 else $as_nop
9912   printf 0123456789abcdef0123456789abcdef >conftest.i
9913 cat conftest.i conftest.i >conftest2.i
9914 lt_cv_truncate_bin=
9915 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9916   cmp -s conftest.i conftest.out \
9917   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9918 fi
9919 rm -f conftest.i conftest2.i conftest.out
9920 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9921 fi
9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9923 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9924
9925
9926
9927
9928
9929
9930
9931 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9932 func_cc_basename ()
9933 {
9934     for cc_temp in $*""; do
9935       case $cc_temp in
9936         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9937         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9938         \-*) ;;
9939         *) break;;
9940       esac
9941     done
9942     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9943 }
9944
9945 # Check whether --enable-libtool-lock was given.
9946 if test ${enable_libtool_lock+y}
9947 then :
9948   enableval=$enable_libtool_lock;
9949 fi
9950
9951 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9952
9953 # Some flags need to be propagated to the compiler or linker for good
9954 # libtool support.
9955 case $host in
9956 ia64-*-hpux*)
9957   # Find out what ABI is being produced by ac_compile, and set mode
9958   # options accordingly.
9959   echo 'int i;' > conftest.$ac_ext
9960   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9961   (eval $ac_compile) 2>&5
9962   ac_status=$?
9963   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9964   test $ac_status = 0; }; then
9965     case `/usr/bin/file conftest.$ac_objext` in
9966       *ELF-32*)
9967         HPUX_IA64_MODE=32
9968         ;;
9969       *ELF-64*)
9970         HPUX_IA64_MODE=64
9971         ;;
9972     esac
9973   fi
9974   rm -rf conftest*
9975   ;;
9976 *-*-irix6*)
9977   # Find out what ABI is being produced by ac_compile, and set linker
9978   # options accordingly.
9979   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9980   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9981   (eval $ac_compile) 2>&5
9982   ac_status=$?
9983   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9984   test $ac_status = 0; }; then
9985     if test yes = "$lt_cv_prog_gnu_ld"; then
9986       case `/usr/bin/file conftest.$ac_objext` in
9987         *32-bit*)
9988           LD="${LD-ld} -melf32bsmip"
9989           ;;
9990         *N32*)
9991           LD="${LD-ld} -melf32bmipn32"
9992           ;;
9993         *64-bit*)
9994           LD="${LD-ld} -melf64bmip"
9995         ;;
9996       esac
9997     else
9998       case `/usr/bin/file conftest.$ac_objext` in
9999         *32-bit*)
10000           LD="${LD-ld} -32"
10001           ;;
10002         *N32*)
10003           LD="${LD-ld} -n32"
10004           ;;
10005         *64-bit*)
10006           LD="${LD-ld} -64"
10007           ;;
10008       esac
10009     fi
10010   fi
10011   rm -rf conftest*
10012   ;;
10013
10014 mips64*-*linux*)
10015   # Find out what ABI is being produced by ac_compile, and set linker
10016   # options accordingly.
10017   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10018   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10019   (eval $ac_compile) 2>&5
10020   ac_status=$?
10021   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10022   test $ac_status = 0; }; then
10023     emul=elf
10024     case `/usr/bin/file conftest.$ac_objext` in
10025       *32-bit*)
10026         emul="${emul}32"
10027         ;;
10028       *64-bit*)
10029         emul="${emul}64"
10030         ;;
10031     esac
10032     case `/usr/bin/file conftest.$ac_objext` in
10033       *MSB*)
10034         emul="${emul}btsmip"
10035         ;;
10036       *LSB*)
10037         emul="${emul}ltsmip"
10038         ;;
10039     esac
10040     case `/usr/bin/file conftest.$ac_objext` in
10041       *N32*)
10042         emul="${emul}n32"
10043         ;;
10044     esac
10045     LD="${LD-ld} -m $emul"
10046   fi
10047   rm -rf conftest*
10048   ;;
10049
10050 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10051 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10052   # Find out what ABI is being produced by ac_compile, and set linker
10053   # options accordingly.  Note that the listed cases only cover the
10054   # situations where additional linker options are needed (such as when
10055   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10056   # vice versa); the common cases where no linker options are needed do
10057   # not appear in the list.
10058   echo 'int i;' > conftest.$ac_ext
10059   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10060   (eval $ac_compile) 2>&5
10061   ac_status=$?
10062   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10063   test $ac_status = 0; }; then
10064     case `/usr/bin/file conftest.o` in
10065       *32-bit*)
10066         case $host in
10067           x86_64-*kfreebsd*-gnu)
10068             LD="${LD-ld} -m elf_i386_fbsd"
10069             ;;
10070           x86_64-*linux*)
10071             case `/usr/bin/file conftest.o` in
10072               *x86-64*)
10073                 LD="${LD-ld} -m elf32_x86_64"
10074                 ;;
10075               *)
10076                 LD="${LD-ld} -m elf_i386"
10077                 ;;
10078             esac
10079             ;;
10080           powerpc64le-*linux*)
10081             LD="${LD-ld} -m elf32lppclinux"
10082             ;;
10083           powerpc64-*linux*)
10084             LD="${LD-ld} -m elf32ppclinux"
10085             ;;
10086           s390x-*linux*)
10087             LD="${LD-ld} -m elf_s390"
10088             ;;
10089           sparc64-*linux*)
10090             LD="${LD-ld} -m elf32_sparc"
10091             ;;
10092         esac
10093         ;;
10094       *64-bit*)
10095         case $host in
10096           x86_64-*kfreebsd*-gnu)
10097             LD="${LD-ld} -m elf_x86_64_fbsd"
10098             ;;
10099           x86_64-*linux*)
10100             LD="${LD-ld} -m elf_x86_64"
10101             ;;
10102           powerpcle-*linux*)
10103             LD="${LD-ld} -m elf64lppc"
10104             ;;
10105           powerpc-*linux*)
10106             LD="${LD-ld} -m elf64ppc"
10107             ;;
10108           s390*-*linux*|s390*-*tpf*)
10109             LD="${LD-ld} -m elf64_s390"
10110             ;;
10111           sparc*-*linux*)
10112             LD="${LD-ld} -m elf64_sparc"
10113             ;;
10114         esac
10115         ;;
10116     esac
10117   fi
10118   rm -rf conftest*
10119   ;;
10120
10121 *-*-sco3.2v5*)
10122   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10123   SAVE_CFLAGS=$CFLAGS
10124   CFLAGS="$CFLAGS -belf"
10125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10126 printf %s "checking whether the C compiler needs -belf... " >&6; }
10127 if test ${lt_cv_cc_needs_belf+y}
10128 then :
10129   printf %s "(cached) " >&6
10130 else $as_nop
10131   ac_ext=c
10132 ac_cpp='$CPP $CPPFLAGS'
10133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10136
10137      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h.  */
10139
10140 int
10141 main (void)
10142 {
10143
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 if ac_fn_c_try_link "$LINENO"
10149 then :
10150   lt_cv_cc_needs_belf=yes
10151 else $as_nop
10152   lt_cv_cc_needs_belf=no
10153 fi
10154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10155     conftest$ac_exeext conftest.$ac_ext
10156      ac_ext=c
10157 ac_cpp='$CPP $CPPFLAGS'
10158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10161
10162 fi
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10164 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10165   if test yes != "$lt_cv_cc_needs_belf"; then
10166     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10167     CFLAGS=$SAVE_CFLAGS
10168   fi
10169   ;;
10170 *-*solaris*)
10171   # Find out what ABI is being produced by ac_compile, and set linker
10172   # options accordingly.
10173   echo 'int i;' > conftest.$ac_ext
10174   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10175   (eval $ac_compile) 2>&5
10176   ac_status=$?
10177   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10178   test $ac_status = 0; }; then
10179     case `/usr/bin/file conftest.o` in
10180     *64-bit*)
10181       case $lt_cv_prog_gnu_ld in
10182       yes*)
10183         case $host in
10184         i?86-*-solaris*|x86_64-*-solaris*)
10185           LD="${LD-ld} -m elf_x86_64"
10186           ;;
10187         sparc*-*-solaris*)
10188           LD="${LD-ld} -m elf64_sparc"
10189           ;;
10190         esac
10191         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10192         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10193           LD=${LD-ld}_sol2
10194         fi
10195         ;;
10196       *)
10197         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10198           LD="${LD-ld} -64"
10199         fi
10200         ;;
10201       esac
10202       ;;
10203     esac
10204   fi
10205   rm -rf conftest*
10206   ;;
10207 esac
10208
10209 need_locks=$enable_libtool_lock
10210
10211 if test -n "$ac_tool_prefix"; then
10212   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10213 set dummy ${ac_tool_prefix}mt; ac_word=$2
10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 printf %s "checking for $ac_word... " >&6; }
10216 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10217 then :
10218   printf %s "(cached) " >&6
10219 else $as_nop
10220   if test -n "$MANIFEST_TOOL"; then
10221   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10222 else
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10225 do
10226   IFS=$as_save_IFS
10227   case $as_dir in #(((
10228     '') as_dir=./ ;;
10229     */) ;;
10230     *) as_dir=$as_dir/ ;;
10231   esac
10232     for ac_exec_ext in '' $ac_executable_extensions; do
10233   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10234     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10235     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10236     break 2
10237   fi
10238 done
10239   done
10240 IFS=$as_save_IFS
10241
10242 fi
10243 fi
10244 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10245 if test -n "$MANIFEST_TOOL"; then
10246   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10247 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10248 else
10249   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 printf "%s\n" "no" >&6; }
10251 fi
10252
10253
10254 fi
10255 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10256   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10257   # Extract the first word of "mt", so it can be a program name with args.
10258 set dummy mt; ac_word=$2
10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 printf %s "checking for $ac_word... " >&6; }
10261 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10262 then :
10263   printf %s "(cached) " >&6
10264 else $as_nop
10265   if test -n "$ac_ct_MANIFEST_TOOL"; then
10266   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10267 else
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10270 do
10271   IFS=$as_save_IFS
10272   case $as_dir in #(((
10273     '') as_dir=./ ;;
10274     */) ;;
10275     *) as_dir=$as_dir/ ;;
10276   esac
10277     for ac_exec_ext in '' $ac_executable_extensions; do
10278   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10279     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10280     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10281     break 2
10282   fi
10283 done
10284   done
10285 IFS=$as_save_IFS
10286
10287 fi
10288 fi
10289 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10290 if test -n "$ac_ct_MANIFEST_TOOL"; then
10291   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10292 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10293 else
10294   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 printf "%s\n" "no" >&6; }
10296 fi
10297
10298   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10299     MANIFEST_TOOL=":"
10300   else
10301     case $cross_compiling:$ac_tool_warned in
10302 yes:)
10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10305 ac_tool_warned=yes ;;
10306 esac
10307     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10308   fi
10309 else
10310   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10311 fi
10312
10313 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10315 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10316 if test ${lt_cv_path_mainfest_tool+y}
10317 then :
10318   printf %s "(cached) " >&6
10319 else $as_nop
10320   lt_cv_path_mainfest_tool=no
10321   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10322   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10323   cat conftest.err >&5
10324   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10325     lt_cv_path_mainfest_tool=yes
10326   fi
10327   rm -f conftest*
10328 fi
10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10330 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10331 if test yes != "$lt_cv_path_mainfest_tool"; then
10332   MANIFEST_TOOL=:
10333 fi
10334
10335
10336
10337
10338
10339
10340   case $host_os in
10341     rhapsody* | darwin*)
10342     if test -n "$ac_tool_prefix"; then
10343   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10344 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 printf %s "checking for $ac_word... " >&6; }
10347 if test ${ac_cv_prog_DSYMUTIL+y}
10348 then :
10349   printf %s "(cached) " >&6
10350 else $as_nop
10351   if test -n "$DSYMUTIL"; then
10352   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10353 else
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10356 do
10357   IFS=$as_save_IFS
10358   case $as_dir in #(((
10359     '') as_dir=./ ;;
10360     */) ;;
10361     *) as_dir=$as_dir/ ;;
10362   esac
10363     for ac_exec_ext in '' $ac_executable_extensions; do
10364   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10365     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10366     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10367     break 2
10368   fi
10369 done
10370   done
10371 IFS=$as_save_IFS
10372
10373 fi
10374 fi
10375 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10376 if test -n "$DSYMUTIL"; then
10377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10378 printf "%s\n" "$DSYMUTIL" >&6; }
10379 else
10380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 printf "%s\n" "no" >&6; }
10382 fi
10383
10384
10385 fi
10386 if test -z "$ac_cv_prog_DSYMUTIL"; then
10387   ac_ct_DSYMUTIL=$DSYMUTIL
10388   # Extract the first word of "dsymutil", so it can be a program name with args.
10389 set dummy dsymutil; ac_word=$2
10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391 printf %s "checking for $ac_word... " >&6; }
10392 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10393 then :
10394   printf %s "(cached) " >&6
10395 else $as_nop
10396   if test -n "$ac_ct_DSYMUTIL"; then
10397   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10398 else
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400 for as_dir in $PATH
10401 do
10402   IFS=$as_save_IFS
10403   case $as_dir in #(((
10404     '') as_dir=./ ;;
10405     */) ;;
10406     *) as_dir=$as_dir/ ;;
10407   esac
10408     for ac_exec_ext in '' $ac_executable_extensions; do
10409   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10410     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10411     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10412     break 2
10413   fi
10414 done
10415   done
10416 IFS=$as_save_IFS
10417
10418 fi
10419 fi
10420 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10421 if test -n "$ac_ct_DSYMUTIL"; then
10422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10423 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10424 else
10425   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 printf "%s\n" "no" >&6; }
10427 fi
10428
10429   if test "x$ac_ct_DSYMUTIL" = x; then
10430     DSYMUTIL=":"
10431   else
10432     case $cross_compiling:$ac_tool_warned in
10433 yes:)
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10435 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10436 ac_tool_warned=yes ;;
10437 esac
10438     DSYMUTIL=$ac_ct_DSYMUTIL
10439   fi
10440 else
10441   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10442 fi
10443
10444     if test -n "$ac_tool_prefix"; then
10445   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10446 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448 printf %s "checking for $ac_word... " >&6; }
10449 if test ${ac_cv_prog_NMEDIT+y}
10450 then :
10451   printf %s "(cached) " >&6
10452 else $as_nop
10453   if test -n "$NMEDIT"; then
10454   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10455 else
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10458 do
10459   IFS=$as_save_IFS
10460   case $as_dir in #(((
10461     '') as_dir=./ ;;
10462     */) ;;
10463     *) as_dir=$as_dir/ ;;
10464   esac
10465     for ac_exec_ext in '' $ac_executable_extensions; do
10466   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10467     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10468     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10469     break 2
10470   fi
10471 done
10472   done
10473 IFS=$as_save_IFS
10474
10475 fi
10476 fi
10477 NMEDIT=$ac_cv_prog_NMEDIT
10478 if test -n "$NMEDIT"; then
10479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10480 printf "%s\n" "$NMEDIT" >&6; }
10481 else
10482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 printf "%s\n" "no" >&6; }
10484 fi
10485
10486
10487 fi
10488 if test -z "$ac_cv_prog_NMEDIT"; then
10489   ac_ct_NMEDIT=$NMEDIT
10490   # Extract the first word of "nmedit", so it can be a program name with args.
10491 set dummy nmedit; ac_word=$2
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 printf %s "checking for $ac_word... " >&6; }
10494 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10495 then :
10496   printf %s "(cached) " >&6
10497 else $as_nop
10498   if test -n "$ac_ct_NMEDIT"; then
10499   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10500 else
10501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502 for as_dir in $PATH
10503 do
10504   IFS=$as_save_IFS
10505   case $as_dir in #(((
10506     '') as_dir=./ ;;
10507     */) ;;
10508     *) as_dir=$as_dir/ ;;
10509   esac
10510     for ac_exec_ext in '' $ac_executable_extensions; do
10511   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10512     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10513     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10514     break 2
10515   fi
10516 done
10517   done
10518 IFS=$as_save_IFS
10519
10520 fi
10521 fi
10522 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10523 if test -n "$ac_ct_NMEDIT"; then
10524   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10525 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10526 else
10527   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 printf "%s\n" "no" >&6; }
10529 fi
10530
10531   if test "x$ac_ct_NMEDIT" = x; then
10532     NMEDIT=":"
10533   else
10534     case $cross_compiling:$ac_tool_warned in
10535 yes:)
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10537 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10538 ac_tool_warned=yes ;;
10539 esac
10540     NMEDIT=$ac_ct_NMEDIT
10541   fi
10542 else
10543   NMEDIT="$ac_cv_prog_NMEDIT"
10544 fi
10545
10546     if test -n "$ac_tool_prefix"; then
10547   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10548 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 printf %s "checking for $ac_word... " >&6; }
10551 if test ${ac_cv_prog_LIPO+y}
10552 then :
10553   printf %s "(cached) " >&6
10554 else $as_nop
10555   if test -n "$LIPO"; then
10556   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10557 else
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10560 do
10561   IFS=$as_save_IFS
10562   case $as_dir in #(((
10563     '') as_dir=./ ;;
10564     */) ;;
10565     *) as_dir=$as_dir/ ;;
10566   esac
10567     for ac_exec_ext in '' $ac_executable_extensions; do
10568   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10569     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10570     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10571     break 2
10572   fi
10573 done
10574   done
10575 IFS=$as_save_IFS
10576
10577 fi
10578 fi
10579 LIPO=$ac_cv_prog_LIPO
10580 if test -n "$LIPO"; then
10581   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10582 printf "%s\n" "$LIPO" >&6; }
10583 else
10584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 printf "%s\n" "no" >&6; }
10586 fi
10587
10588
10589 fi
10590 if test -z "$ac_cv_prog_LIPO"; then
10591   ac_ct_LIPO=$LIPO
10592   # Extract the first word of "lipo", so it can be a program name with args.
10593 set dummy lipo; ac_word=$2
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 printf %s "checking for $ac_word... " >&6; }
10596 if test ${ac_cv_prog_ac_ct_LIPO+y}
10597 then :
10598   printf %s "(cached) " >&6
10599 else $as_nop
10600   if test -n "$ac_ct_LIPO"; then
10601   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10602 else
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10605 do
10606   IFS=$as_save_IFS
10607   case $as_dir in #(((
10608     '') as_dir=./ ;;
10609     */) ;;
10610     *) as_dir=$as_dir/ ;;
10611   esac
10612     for ac_exec_ext in '' $ac_executable_extensions; do
10613   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10614     ac_cv_prog_ac_ct_LIPO="lipo"
10615     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10616     break 2
10617   fi
10618 done
10619   done
10620 IFS=$as_save_IFS
10621
10622 fi
10623 fi
10624 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10625 if test -n "$ac_ct_LIPO"; then
10626   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10627 printf "%s\n" "$ac_ct_LIPO" >&6; }
10628 else
10629   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 printf "%s\n" "no" >&6; }
10631 fi
10632
10633   if test "x$ac_ct_LIPO" = x; then
10634     LIPO=":"
10635   else
10636     case $cross_compiling:$ac_tool_warned in
10637 yes:)
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10640 ac_tool_warned=yes ;;
10641 esac
10642     LIPO=$ac_ct_LIPO
10643   fi
10644 else
10645   LIPO="$ac_cv_prog_LIPO"
10646 fi
10647
10648     if test -n "$ac_tool_prefix"; then
10649   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10650 set dummy ${ac_tool_prefix}otool; ac_word=$2
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 printf %s "checking for $ac_word... " >&6; }
10653 if test ${ac_cv_prog_OTOOL+y}
10654 then :
10655   printf %s "(cached) " >&6
10656 else $as_nop
10657   if test -n "$OTOOL"; then
10658   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10659 else
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10662 do
10663   IFS=$as_save_IFS
10664   case $as_dir in #(((
10665     '') as_dir=./ ;;
10666     */) ;;
10667     *) as_dir=$as_dir/ ;;
10668   esac
10669     for ac_exec_ext in '' $ac_executable_extensions; do
10670   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10671     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10672     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10673     break 2
10674   fi
10675 done
10676   done
10677 IFS=$as_save_IFS
10678
10679 fi
10680 fi
10681 OTOOL=$ac_cv_prog_OTOOL
10682 if test -n "$OTOOL"; then
10683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10684 printf "%s\n" "$OTOOL" >&6; }
10685 else
10686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 printf "%s\n" "no" >&6; }
10688 fi
10689
10690
10691 fi
10692 if test -z "$ac_cv_prog_OTOOL"; then
10693   ac_ct_OTOOL=$OTOOL
10694   # Extract the first word of "otool", so it can be a program name with args.
10695 set dummy otool; ac_word=$2
10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 printf %s "checking for $ac_word... " >&6; }
10698 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10699 then :
10700   printf %s "(cached) " >&6
10701 else $as_nop
10702   if test -n "$ac_ct_OTOOL"; then
10703   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10704 else
10705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706 for as_dir in $PATH
10707 do
10708   IFS=$as_save_IFS
10709   case $as_dir in #(((
10710     '') as_dir=./ ;;
10711     */) ;;
10712     *) as_dir=$as_dir/ ;;
10713   esac
10714     for ac_exec_ext in '' $ac_executable_extensions; do
10715   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10716     ac_cv_prog_ac_ct_OTOOL="otool"
10717     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10718     break 2
10719   fi
10720 done
10721   done
10722 IFS=$as_save_IFS
10723
10724 fi
10725 fi
10726 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10727 if test -n "$ac_ct_OTOOL"; then
10728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10729 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10730 else
10731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 printf "%s\n" "no" >&6; }
10733 fi
10734
10735   if test "x$ac_ct_OTOOL" = x; then
10736     OTOOL=":"
10737   else
10738     case $cross_compiling:$ac_tool_warned in
10739 yes:)
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10741 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10742 ac_tool_warned=yes ;;
10743 esac
10744     OTOOL=$ac_ct_OTOOL
10745   fi
10746 else
10747   OTOOL="$ac_cv_prog_OTOOL"
10748 fi
10749
10750     if test -n "$ac_tool_prefix"; then
10751   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10752 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 printf %s "checking for $ac_word... " >&6; }
10755 if test ${ac_cv_prog_OTOOL64+y}
10756 then :
10757   printf %s "(cached) " >&6
10758 else $as_nop
10759   if test -n "$OTOOL64"; then
10760   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10761 else
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10764 do
10765   IFS=$as_save_IFS
10766   case $as_dir in #(((
10767     '') as_dir=./ ;;
10768     */) ;;
10769     *) as_dir=$as_dir/ ;;
10770   esac
10771     for ac_exec_ext in '' $ac_executable_extensions; do
10772   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10773     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10774     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10775     break 2
10776   fi
10777 done
10778   done
10779 IFS=$as_save_IFS
10780
10781 fi
10782 fi
10783 OTOOL64=$ac_cv_prog_OTOOL64
10784 if test -n "$OTOOL64"; then
10785   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10786 printf "%s\n" "$OTOOL64" >&6; }
10787 else
10788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 printf "%s\n" "no" >&6; }
10790 fi
10791
10792
10793 fi
10794 if test -z "$ac_cv_prog_OTOOL64"; then
10795   ac_ct_OTOOL64=$OTOOL64
10796   # Extract the first word of "otool64", so it can be a program name with args.
10797 set dummy otool64; ac_word=$2
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 printf %s "checking for $ac_word... " >&6; }
10800 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10801 then :
10802   printf %s "(cached) " >&6
10803 else $as_nop
10804   if test -n "$ac_ct_OTOOL64"; then
10805   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10806 else
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10809 do
10810   IFS=$as_save_IFS
10811   case $as_dir in #(((
10812     '') as_dir=./ ;;
10813     */) ;;
10814     *) as_dir=$as_dir/ ;;
10815   esac
10816     for ac_exec_ext in '' $ac_executable_extensions; do
10817   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10818     ac_cv_prog_ac_ct_OTOOL64="otool64"
10819     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10820     break 2
10821   fi
10822 done
10823   done
10824 IFS=$as_save_IFS
10825
10826 fi
10827 fi
10828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10829 if test -n "$ac_ct_OTOOL64"; then
10830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10831 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10832 else
10833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 printf "%s\n" "no" >&6; }
10835 fi
10836
10837   if test "x$ac_ct_OTOOL64" = x; then
10838     OTOOL64=":"
10839   else
10840     case $cross_compiling:$ac_tool_warned in
10841 yes:)
10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10844 ac_tool_warned=yes ;;
10845 esac
10846     OTOOL64=$ac_ct_OTOOL64
10847   fi
10848 else
10849   OTOOL64="$ac_cv_prog_OTOOL64"
10850 fi
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10879 printf %s "checking for -single_module linker flag... " >&6; }
10880 if test ${lt_cv_apple_cc_single_mod+y}
10881 then :
10882   printf %s "(cached) " >&6
10883 else $as_nop
10884   lt_cv_apple_cc_single_mod=no
10885       if test -z "$LT_MULTI_MODULE"; then
10886         # By default we will add the -single_module flag. You can override
10887         # by either setting the environment variable LT_MULTI_MODULE
10888         # non-empty at configure time, or by adding -multi_module to the
10889         # link flags.
10890         rm -rf libconftest.dylib*
10891         echo "int foo(void){return 1;}" > conftest.c
10892         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10893 -dynamiclib -Wl,-single_module conftest.c" >&5
10894         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10895           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10896         _lt_result=$?
10897         # If there is a non-empty error log, and "single_module"
10898         # appears in it, assume the flag caused a linker warning
10899         if test -s conftest.err && $GREP single_module conftest.err; then
10900           cat conftest.err >&5
10901         # Otherwise, if the output was created with a 0 exit code from
10902         # the compiler, it worked.
10903         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10904           lt_cv_apple_cc_single_mod=yes
10905         else
10906           cat conftest.err >&5
10907         fi
10908         rm -rf libconftest.dylib*
10909         rm -f conftest.*
10910       fi
10911 fi
10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10913 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10914
10915     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10916 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10917 if test ${lt_cv_ld_exported_symbols_list+y}
10918 then :
10919   printf %s "(cached) " >&6
10920 else $as_nop
10921   lt_cv_ld_exported_symbols_list=no
10922       save_LDFLAGS=$LDFLAGS
10923       echo "_main" > conftest.sym
10924       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10925       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h.  */
10927
10928 int
10929 main (void)
10930 {
10931
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 if ac_fn_c_try_link "$LINENO"
10937 then :
10938   lt_cv_ld_exported_symbols_list=yes
10939 else $as_nop
10940   lt_cv_ld_exported_symbols_list=no
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10943     conftest$ac_exeext conftest.$ac_ext
10944         LDFLAGS=$save_LDFLAGS
10945
10946 fi
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10948 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10949
10950     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10951 printf %s "checking for -force_load linker flag... " >&6; }
10952 if test ${lt_cv_ld_force_load+y}
10953 then :
10954   printf %s "(cached) " >&6
10955 else $as_nop
10956   lt_cv_ld_force_load=no
10957       cat > conftest.c << _LT_EOF
10958 int forced_loaded() { return 2;}
10959 _LT_EOF
10960       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10961       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10962       echo "$AR cr libconftest.a conftest.o" >&5
10963       $AR cr libconftest.a conftest.o 2>&5
10964       echo "$RANLIB libconftest.a" >&5
10965       $RANLIB libconftest.a 2>&5
10966       cat > conftest.c << _LT_EOF
10967 int main() { return 0;}
10968 _LT_EOF
10969       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10970       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10971       _lt_result=$?
10972       if test -s conftest.err && $GREP force_load conftest.err; then
10973         cat conftest.err >&5
10974       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10975         lt_cv_ld_force_load=yes
10976       else
10977         cat conftest.err >&5
10978       fi
10979         rm -f conftest.err libconftest.a conftest conftest.c
10980         rm -rf conftest.dSYM
10981
10982 fi
10983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10984 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10985     case $host_os in
10986     rhapsody* | darwin1.[012])
10987       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10988     darwin1.*)
10989       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10990     darwin*) # darwin 5.x on
10991       # if running on 10.5 or later, the deployment target defaults
10992       # to the OS version, if on x86, and 10.4, the deployment
10993       # target defaults to 10.4. Don't you love it?
10994       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10995         10.0,*86*-darwin8*|10.0,*-darwin[912]*)
10996           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10997         10.[012][,.]*)
10998           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10999         10.*|11.*)
11000           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11001       esac
11002     ;;
11003   esac
11004     if test yes = "$lt_cv_apple_cc_single_mod"; then
11005       _lt_dar_single_mod='$single_module'
11006     fi
11007     if test yes = "$lt_cv_ld_exported_symbols_list"; then
11008       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11009     else
11010       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11011     fi
11012     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11013       _lt_dsymutil='~$DSYMUTIL $lib || :'
11014     else
11015       _lt_dsymutil=
11016     fi
11017     ;;
11018   esac
11019
11020 # func_munge_path_list VARIABLE PATH
11021 # -----------------------------------
11022 # VARIABLE is name of variable containing _space_ separated list of
11023 # directories to be munged by the contents of PATH, which is string
11024 # having a format:
11025 # "DIR[:DIR]:"
11026 #       string "DIR[ DIR]" will be prepended to VARIABLE
11027 # ":DIR[:DIR]"
11028 #       string "DIR[ DIR]" will be appended to VARIABLE
11029 # "DIRP[:DIRP]::[DIRA:]DIRA"
11030 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11031 #       "DIRA[ DIRA]" will be appended to VARIABLE
11032 # "DIR[:DIR]"
11033 #       VARIABLE will be replaced by "DIR[ DIR]"
11034 func_munge_path_list ()
11035 {
11036     case x$2 in
11037     x)
11038         ;;
11039     *:)
11040         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11041         ;;
11042     x:*)
11043         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11044         ;;
11045     *::*)
11046         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11047         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11048         ;;
11049     *)
11050         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11051         ;;
11052     esac
11053 }
11054
11055 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11056 "
11057 if test "x$ac_cv_header_dlfcn_h" = xyes
11058 then :
11059   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11060
11061 fi
11062
11063
11064
11065
11066
11067 # Set options
11068 enable_win32_dll=yes
11069
11070 case $host in
11071 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11072   if test -n "$ac_tool_prefix"; then
11073   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11074 set dummy ${ac_tool_prefix}as; ac_word=$2
11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 printf %s "checking for $ac_word... " >&6; }
11077 if test ${ac_cv_prog_AS+y}
11078 then :
11079   printf %s "(cached) " >&6
11080 else $as_nop
11081   if test -n "$AS"; then
11082   ac_cv_prog_AS="$AS" # Let the user override the test.
11083 else
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11086 do
11087   IFS=$as_save_IFS
11088   case $as_dir in #(((
11089     '') as_dir=./ ;;
11090     */) ;;
11091     *) as_dir=$as_dir/ ;;
11092   esac
11093     for ac_exec_ext in '' $ac_executable_extensions; do
11094   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11095     ac_cv_prog_AS="${ac_tool_prefix}as"
11096     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11097     break 2
11098   fi
11099 done
11100   done
11101 IFS=$as_save_IFS
11102
11103 fi
11104 fi
11105 AS=$ac_cv_prog_AS
11106 if test -n "$AS"; then
11107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11108 printf "%s\n" "$AS" >&6; }
11109 else
11110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 printf "%s\n" "no" >&6; }
11112 fi
11113
11114
11115 fi
11116 if test -z "$ac_cv_prog_AS"; then
11117   ac_ct_AS=$AS
11118   # Extract the first word of "as", so it can be a program name with args.
11119 set dummy as; ac_word=$2
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121 printf %s "checking for $ac_word... " >&6; }
11122 if test ${ac_cv_prog_ac_ct_AS+y}
11123 then :
11124   printf %s "(cached) " >&6
11125 else $as_nop
11126   if test -n "$ac_ct_AS"; then
11127   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11128 else
11129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11131 do
11132   IFS=$as_save_IFS
11133   case $as_dir in #(((
11134     '') as_dir=./ ;;
11135     */) ;;
11136     *) as_dir=$as_dir/ ;;
11137   esac
11138     for ac_exec_ext in '' $ac_executable_extensions; do
11139   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11140     ac_cv_prog_ac_ct_AS="as"
11141     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11142     break 2
11143   fi
11144 done
11145   done
11146 IFS=$as_save_IFS
11147
11148 fi
11149 fi
11150 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11151 if test -n "$ac_ct_AS"; then
11152   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11153 printf "%s\n" "$ac_ct_AS" >&6; }
11154 else
11155   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 printf "%s\n" "no" >&6; }
11157 fi
11158
11159   if test "x$ac_ct_AS" = x; then
11160     AS="false"
11161   else
11162     case $cross_compiling:$ac_tool_warned in
11163 yes:)
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11165 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11166 ac_tool_warned=yes ;;
11167 esac
11168     AS=$ac_ct_AS
11169   fi
11170 else
11171   AS="$ac_cv_prog_AS"
11172 fi
11173
11174   if test -n "$ac_tool_prefix"; then
11175   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11176 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 printf %s "checking for $ac_word... " >&6; }
11179 if test ${ac_cv_prog_DLLTOOL+y}
11180 then :
11181   printf %s "(cached) " >&6
11182 else $as_nop
11183   if test -n "$DLLTOOL"; then
11184   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11185 else
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11188 do
11189   IFS=$as_save_IFS
11190   case $as_dir in #(((
11191     '') as_dir=./ ;;
11192     */) ;;
11193     *) as_dir=$as_dir/ ;;
11194   esac
11195     for ac_exec_ext in '' $ac_executable_extensions; do
11196   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11197     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11198     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11199     break 2
11200   fi
11201 done
11202   done
11203 IFS=$as_save_IFS
11204
11205 fi
11206 fi
11207 DLLTOOL=$ac_cv_prog_DLLTOOL
11208 if test -n "$DLLTOOL"; then
11209   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11210 printf "%s\n" "$DLLTOOL" >&6; }
11211 else
11212   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 printf "%s\n" "no" >&6; }
11214 fi
11215
11216
11217 fi
11218 if test -z "$ac_cv_prog_DLLTOOL"; then
11219   ac_ct_DLLTOOL=$DLLTOOL
11220   # Extract the first word of "dlltool", so it can be a program name with args.
11221 set dummy dlltool; ac_word=$2
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223 printf %s "checking for $ac_word... " >&6; }
11224 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11225 then :
11226   printf %s "(cached) " >&6
11227 else $as_nop
11228   if test -n "$ac_ct_DLLTOOL"; then
11229   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234   IFS=$as_save_IFS
11235   case $as_dir in #(((
11236     '') as_dir=./ ;;
11237     */) ;;
11238     *) as_dir=$as_dir/ ;;
11239   esac
11240     for ac_exec_ext in '' $ac_executable_extensions; do
11241   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11242     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11243     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11244     break 2
11245   fi
11246 done
11247   done
11248 IFS=$as_save_IFS
11249
11250 fi
11251 fi
11252 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11253 if test -n "$ac_ct_DLLTOOL"; then
11254   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11255 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11256 else
11257   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 printf "%s\n" "no" >&6; }
11259 fi
11260
11261   if test "x$ac_ct_DLLTOOL" = x; then
11262     DLLTOOL="false"
11263   else
11264     case $cross_compiling:$ac_tool_warned in
11265 yes:)
11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11267 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11268 ac_tool_warned=yes ;;
11269 esac
11270     DLLTOOL=$ac_ct_DLLTOOL
11271   fi
11272 else
11273   DLLTOOL="$ac_cv_prog_DLLTOOL"
11274 fi
11275
11276   if test -n "$ac_tool_prefix"; then
11277   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11278 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 printf %s "checking for $ac_word... " >&6; }
11281 if test ${ac_cv_prog_OBJDUMP+y}
11282 then :
11283   printf %s "(cached) " >&6
11284 else $as_nop
11285   if test -n "$OBJDUMP"; then
11286   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11287 else
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in $PATH
11290 do
11291   IFS=$as_save_IFS
11292   case $as_dir in #(((
11293     '') as_dir=./ ;;
11294     */) ;;
11295     *) as_dir=$as_dir/ ;;
11296   esac
11297     for ac_exec_ext in '' $ac_executable_extensions; do
11298   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11299     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11300     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11301     break 2
11302   fi
11303 done
11304   done
11305 IFS=$as_save_IFS
11306
11307 fi
11308 fi
11309 OBJDUMP=$ac_cv_prog_OBJDUMP
11310 if test -n "$OBJDUMP"; then
11311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11312 printf "%s\n" "$OBJDUMP" >&6; }
11313 else
11314   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 printf "%s\n" "no" >&6; }
11316 fi
11317
11318
11319 fi
11320 if test -z "$ac_cv_prog_OBJDUMP"; then
11321   ac_ct_OBJDUMP=$OBJDUMP
11322   # Extract the first word of "objdump", so it can be a program name with args.
11323 set dummy objdump; ac_word=$2
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 printf %s "checking for $ac_word... " >&6; }
11326 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11327 then :
11328   printf %s "(cached) " >&6
11329 else $as_nop
11330   if test -n "$ac_ct_OBJDUMP"; then
11331   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11332 else
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11335 do
11336   IFS=$as_save_IFS
11337   case $as_dir in #(((
11338     '') as_dir=./ ;;
11339     */) ;;
11340     *) as_dir=$as_dir/ ;;
11341   esac
11342     for ac_exec_ext in '' $ac_executable_extensions; do
11343   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11344     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11345     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11346     break 2
11347   fi
11348 done
11349   done
11350 IFS=$as_save_IFS
11351
11352 fi
11353 fi
11354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11355 if test -n "$ac_ct_OBJDUMP"; then
11356   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11357 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11358 else
11359   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 printf "%s\n" "no" >&6; }
11361 fi
11362
11363   if test "x$ac_ct_OBJDUMP" = x; then
11364     OBJDUMP="false"
11365   else
11366     case $cross_compiling:$ac_tool_warned in
11367 yes:)
11368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11369 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11370 ac_tool_warned=yes ;;
11371 esac
11372     OBJDUMP=$ac_ct_OBJDUMP
11373   fi
11374 else
11375   OBJDUMP="$ac_cv_prog_OBJDUMP"
11376 fi
11377
11378   ;;
11379 esac
11380
11381 test -z "$AS" && AS=as
11382
11383
11384
11385
11386
11387 test -z "$DLLTOOL" && DLLTOOL=dlltool
11388
11389
11390
11391
11392
11393 test -z "$OBJDUMP" && OBJDUMP=objdump
11394
11395
11396
11397
11398
11399
11400
11401         enable_dlopen=no
11402
11403
11404
11405             # Check whether --enable-shared was given.
11406 if test ${enable_shared+y}
11407 then :
11408   enableval=$enable_shared; p=${PACKAGE-default}
11409     case $enableval in
11410     yes) enable_shared=yes ;;
11411     no) enable_shared=no ;;
11412     *)
11413       enable_shared=no
11414       # Look at the argument we got.  We use all the common list separators.
11415       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11416       for pkg in $enableval; do
11417         IFS=$lt_save_ifs
11418         if test "X$pkg" = "X$p"; then
11419           enable_shared=yes
11420         fi
11421       done
11422       IFS=$lt_save_ifs
11423       ;;
11424     esac
11425 else $as_nop
11426   enable_shared=yes
11427 fi
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437   # Check whether --enable-static was given.
11438 if test ${enable_static+y}
11439 then :
11440   enableval=$enable_static; p=${PACKAGE-default}
11441     case $enableval in
11442     yes) enable_static=yes ;;
11443     no) enable_static=no ;;
11444     *)
11445      enable_static=no
11446       # Look at the argument we got.  We use all the common list separators.
11447       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11448       for pkg in $enableval; do
11449         IFS=$lt_save_ifs
11450         if test "X$pkg" = "X$p"; then
11451           enable_static=yes
11452         fi
11453       done
11454       IFS=$lt_save_ifs
11455       ;;
11456     esac
11457 else $as_nop
11458   enable_static=yes
11459 fi
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470 # Check whether --with-pic was given.
11471 if test ${with_pic+y}
11472 then :
11473   withval=$with_pic; lt_p=${PACKAGE-default}
11474     case $withval in
11475     yes|no) pic_mode=$withval ;;
11476     *)
11477       pic_mode=default
11478       # Look at the argument we got.  We use all the common list separators.
11479       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11480       for lt_pkg in $withval; do
11481         IFS=$lt_save_ifs
11482         if test "X$lt_pkg" = "X$lt_p"; then
11483           pic_mode=yes
11484         fi
11485       done
11486       IFS=$lt_save_ifs
11487       ;;
11488     esac
11489 else $as_nop
11490   pic_mode=default
11491 fi
11492
11493
11494
11495
11496
11497
11498
11499
11500   # Check whether --enable-fast-install was given.
11501 if test ${enable_fast_install+y}
11502 then :
11503   enableval=$enable_fast_install; p=${PACKAGE-default}
11504     case $enableval in
11505     yes) enable_fast_install=yes ;;
11506     no) enable_fast_install=no ;;
11507     *)
11508       enable_fast_install=no
11509       # Look at the argument we got.  We use all the common list separators.
11510       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11511       for pkg in $enableval; do
11512         IFS=$lt_save_ifs
11513         if test "X$pkg" = "X$p"; then
11514           enable_fast_install=yes
11515         fi
11516       done
11517       IFS=$lt_save_ifs
11518       ;;
11519     esac
11520 else $as_nop
11521   enable_fast_install=yes
11522 fi
11523
11524
11525
11526
11527
11528
11529
11530
11531   shared_archive_member_spec=
11532 case $host,$enable_shared in
11533 power*-*-aix[5-9]*,yes)
11534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11535 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11536
11537 # Check whether --with-aix-soname was given.
11538 if test ${with_aix_soname+y}
11539 then :
11540   withval=$with_aix_soname; case $withval in
11541     aix|svr4|both)
11542       ;;
11543     *)
11544       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11545       ;;
11546     esac
11547     lt_cv_with_aix_soname=$with_aix_soname
11548 else $as_nop
11549   if test ${lt_cv_with_aix_soname+y}
11550 then :
11551   printf %s "(cached) " >&6
11552 else $as_nop
11553   lt_cv_with_aix_soname=aix
11554 fi
11555
11556     with_aix_soname=$lt_cv_with_aix_soname
11557 fi
11558
11559   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11560 printf "%s\n" "$with_aix_soname" >&6; }
11561   if test aix != "$with_aix_soname"; then
11562     # For the AIX way of multilib, we name the shared archive member
11563     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11564     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11565     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11566     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11567     if test 64 = "${OBJECT_MODE-32}"; then
11568       shared_archive_member_spec=shr_64
11569     else
11570       shared_archive_member_spec=shr
11571     fi
11572   fi
11573   ;;
11574 *)
11575   with_aix_soname=aix
11576   ;;
11577 esac
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588 # This can be used to rebuild libtool when needed
11589 LIBTOOL_DEPS=$ltmain
11590
11591 # Always use our own libtool.
11592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623 test -z "$LN_S" && LN_S="ln -s"
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638 if test -n "${ZSH_VERSION+set}"; then
11639    setopt NO_GLOB_SUBST
11640 fi
11641
11642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11643 printf %s "checking for objdir... " >&6; }
11644 if test ${lt_cv_objdir+y}
11645 then :
11646   printf %s "(cached) " >&6
11647 else $as_nop
11648   rm -f .libs 2>/dev/null
11649 mkdir .libs 2>/dev/null
11650 if test -d .libs; then
11651   lt_cv_objdir=.libs
11652 else
11653   # MS-DOS does not allow filenames that begin with a dot.
11654   lt_cv_objdir=_libs
11655 fi
11656 rmdir .libs 2>/dev/null
11657 fi
11658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11659 printf "%s\n" "$lt_cv_objdir" >&6; }
11660 objdir=$lt_cv_objdir
11661
11662
11663
11664
11665
11666 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11667
11668
11669
11670
11671 case $host_os in
11672 aix3*)
11673   # AIX sometimes has problems with the GCC collect2 program.  For some
11674   # reason, if we set the COLLECT_NAMES environment variable, the problems
11675   # vanish in a puff of smoke.
11676   if test set != "${COLLECT_NAMES+set}"; then
11677     COLLECT_NAMES=
11678     export COLLECT_NAMES
11679   fi
11680   ;;
11681 esac
11682
11683 # Global variables:
11684 ofile=libtool
11685 can_build_shared=yes
11686
11687 # All known linkers require a '.a' archive for static linking (except MSVC,
11688 # which needs '.lib').
11689 libext=a
11690
11691 with_gnu_ld=$lt_cv_prog_gnu_ld
11692
11693 old_CC=$CC
11694 old_CFLAGS=$CFLAGS
11695
11696 # Set sane defaults for various variables
11697 test -z "$CC" && CC=cc
11698 test -z "$LTCC" && LTCC=$CC
11699 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11700 test -z "$LD" && LD=ld
11701 test -z "$ac_objext" && ac_objext=o
11702
11703 func_cc_basename $compiler
11704 cc_basename=$func_cc_basename_result
11705
11706
11707 # Only perform the check for file, if the check method requires it
11708 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11709 case $deplibs_check_method in
11710 file_magic*)
11711   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11712     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11713 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11714 if test ${lt_cv_path_MAGIC_CMD+y}
11715 then :
11716   printf %s "(cached) " >&6
11717 else $as_nop
11718   case $MAGIC_CMD in
11719 [\\/*] |  ?:[\\/]*)
11720   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11721   ;;
11722 *)
11723   lt_save_MAGIC_CMD=$MAGIC_CMD
11724   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11725   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11726   for ac_dir in $ac_dummy; do
11727     IFS=$lt_save_ifs
11728     test -z "$ac_dir" && ac_dir=.
11729     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11730       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11731       if test -n "$file_magic_test_file"; then
11732         case $deplibs_check_method in
11733         "file_magic "*)
11734           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11735           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11736           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11737             $EGREP "$file_magic_regex" > /dev/null; then
11738             :
11739           else
11740             cat <<_LT_EOF 1>&2
11741
11742 *** Warning: the command libtool uses to detect shared libraries,
11743 *** $file_magic_cmd, produces output that libtool cannot recognize.
11744 *** The result is that libtool may fail to recognize shared libraries
11745 *** as such.  This will affect the creation of libtool libraries that
11746 *** depend on shared libraries, but programs linked with such libtool
11747 *** libraries will work regardless of this problem.  Nevertheless, you
11748 *** may want to report the problem to your system manager and/or to
11749 *** bug-libtool@gnu.org
11750
11751 _LT_EOF
11752           fi ;;
11753         esac
11754       fi
11755       break
11756     fi
11757   done
11758   IFS=$lt_save_ifs
11759   MAGIC_CMD=$lt_save_MAGIC_CMD
11760   ;;
11761 esac
11762 fi
11763
11764 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11765 if test -n "$MAGIC_CMD"; then
11766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11767 printf "%s\n" "$MAGIC_CMD" >&6; }
11768 else
11769   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 printf "%s\n" "no" >&6; }
11771 fi
11772
11773
11774
11775
11776
11777 if test -z "$lt_cv_path_MAGIC_CMD"; then
11778   if test -n "$ac_tool_prefix"; then
11779     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11780 printf %s "checking for file... " >&6; }
11781 if test ${lt_cv_path_MAGIC_CMD+y}
11782 then :
11783   printf %s "(cached) " >&6
11784 else $as_nop
11785   case $MAGIC_CMD in
11786 [\\/*] |  ?:[\\/]*)
11787   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11788   ;;
11789 *)
11790   lt_save_MAGIC_CMD=$MAGIC_CMD
11791   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11792   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11793   for ac_dir in $ac_dummy; do
11794     IFS=$lt_save_ifs
11795     test -z "$ac_dir" && ac_dir=.
11796     if test -f "$ac_dir/file"; then
11797       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11798       if test -n "$file_magic_test_file"; then
11799         case $deplibs_check_method in
11800         "file_magic "*)
11801           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11802           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11803           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11804             $EGREP "$file_magic_regex" > /dev/null; then
11805             :
11806           else
11807             cat <<_LT_EOF 1>&2
11808
11809 *** Warning: the command libtool uses to detect shared libraries,
11810 *** $file_magic_cmd, produces output that libtool cannot recognize.
11811 *** The result is that libtool may fail to recognize shared libraries
11812 *** as such.  This will affect the creation of libtool libraries that
11813 *** depend on shared libraries, but programs linked with such libtool
11814 *** libraries will work regardless of this problem.  Nevertheless, you
11815 *** may want to report the problem to your system manager and/or to
11816 *** bug-libtool@gnu.org
11817
11818 _LT_EOF
11819           fi ;;
11820         esac
11821       fi
11822       break
11823     fi
11824   done
11825   IFS=$lt_save_ifs
11826   MAGIC_CMD=$lt_save_MAGIC_CMD
11827   ;;
11828 esac
11829 fi
11830
11831 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11832 if test -n "$MAGIC_CMD"; then
11833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11834 printf "%s\n" "$MAGIC_CMD" >&6; }
11835 else
11836   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 printf "%s\n" "no" >&6; }
11838 fi
11839
11840
11841   else
11842     MAGIC_CMD=:
11843   fi
11844 fi
11845
11846   fi
11847   ;;
11848 esac
11849
11850 # Use C for the default configuration in the libtool script
11851
11852 lt_save_CC=$CC
11853 ac_ext=c
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11858
11859
11860 # Source file extension for C test sources.
11861 ac_ext=c
11862
11863 # Object file extension for compiled C test sources.
11864 objext=o
11865 objext=$objext
11866
11867 # Code to be used in simple compile tests
11868 lt_simple_compile_test_code="int some_variable = 0;"
11869
11870 # Code to be used in simple link tests
11871 lt_simple_link_test_code='int main(){return(0);}'
11872
11873
11874
11875
11876
11877
11878
11879 # If no C compiler was specified, use CC.
11880 LTCC=${LTCC-"$CC"}
11881
11882 # If no C compiler flags were specified, use CFLAGS.
11883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11884
11885 # Allow CC to be a program name with arguments.
11886 compiler=$CC
11887
11888 # Save the default compiler, since it gets overwritten when the other
11889 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11890 compiler_DEFAULT=$CC
11891
11892 # save warnings/boilerplate of simple test code
11893 ac_outfile=conftest.$ac_objext
11894 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11895 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11896 _lt_compiler_boilerplate=`cat conftest.err`
11897 $RM conftest*
11898
11899 ac_outfile=conftest.$ac_objext
11900 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11901 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11902 _lt_linker_boilerplate=`cat conftest.err`
11903 $RM -r conftest*
11904
11905
11906 ## CAVEAT EMPTOR:
11907 ## There is no encapsulation within the following macros, do not change
11908 ## the running order or otherwise move them around unless you know exactly
11909 ## what you are doing...
11910 if test -n "$compiler"; then
11911
11912 lt_prog_compiler_no_builtin_flag=
11913
11914 if test yes = "$GCC"; then
11915   case $cc_basename in
11916   nvcc*)
11917     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11918   *)
11919     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11920   esac
11921
11922   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11923 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11924 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11925 then :
11926   printf %s "(cached) " >&6
11927 else $as_nop
11928   lt_cv_prog_compiler_rtti_exceptions=no
11929    ac_outfile=conftest.$ac_objext
11930    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11931    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11932    # Insert the option either (1) after the last *FLAGS variable, or
11933    # (2) before a word containing "conftest.", or (3) at the end.
11934    # Note that $ac_compile itself does not contain backslashes and begins
11935    # with a dollar sign (not a hyphen), so the echo should work correctly.
11936    # The option is referenced via a variable to avoid confusing sed.
11937    lt_compile=`echo "$ac_compile" | $SED \
11938    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11940    -e 's:$: $lt_compiler_flag:'`
11941    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11942    (eval "$lt_compile" 2>conftest.err)
11943    ac_status=$?
11944    cat conftest.err >&5
11945    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946    if (exit $ac_status) && test -s "$ac_outfile"; then
11947      # The compiler can only warn and ignore the option if not recognized
11948      # So say no if there are warnings other than the usual output.
11949      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11950      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11951      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11952        lt_cv_prog_compiler_rtti_exceptions=yes
11953      fi
11954    fi
11955    $RM conftest*
11956
11957 fi
11958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11959 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11960
11961 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11962     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11963 else
11964     :
11965 fi
11966
11967 fi
11968
11969
11970
11971
11972
11973
11974   lt_prog_compiler_wl=
11975 lt_prog_compiler_pic=
11976 lt_prog_compiler_static=
11977
11978
11979   if test yes = "$GCC"; then
11980     lt_prog_compiler_wl='-Wl,'
11981     lt_prog_compiler_static='-static'
11982
11983     case $host_os in
11984       aix*)
11985       # All AIX code is PIC.
11986       if test ia64 = "$host_cpu"; then
11987         # AIX 5 now supports IA64 processor
11988         lt_prog_compiler_static='-Bstatic'
11989       fi
11990       lt_prog_compiler_pic='-fPIC'
11991       ;;
11992
11993     amigaos*)
11994       case $host_cpu in
11995       powerpc)
11996             # see comment about AmigaOS4 .so support
11997             lt_prog_compiler_pic='-fPIC'
11998         ;;
11999       m68k)
12000             # FIXME: we need at least 68020 code to build shared libraries, but
12001             # adding the '-m68020' flag to GCC prevents building anything better,
12002             # like '-m68040'.
12003             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12004         ;;
12005       esac
12006       ;;
12007
12008     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12009       # PIC is the default for these OSes.
12010       ;;
12011
12012     mingw* | cygwin* | pw32* | os2* | cegcc*)
12013       # This hack is so that the source file can tell whether it is being
12014       # built for inclusion in a dll (and should export symbols for example).
12015       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12016       # (--disable-auto-import) libraries
12017       lt_prog_compiler_pic='-DDLL_EXPORT'
12018       case $host_os in
12019       os2*)
12020         lt_prog_compiler_static='$wl-static'
12021         ;;
12022       esac
12023       ;;
12024
12025     darwin* | rhapsody*)
12026       # PIC is the default on this platform
12027       # Common symbols not allowed in MH_DYLIB files
12028       lt_prog_compiler_pic='-fno-common'
12029       ;;
12030
12031     haiku*)
12032       # PIC is the default for Haiku.
12033       # The "-static" flag exists, but is broken.
12034       lt_prog_compiler_static=
12035       ;;
12036
12037     hpux*)
12038       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12039       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12040       # sets the default TLS model and affects inlining.
12041       case $host_cpu in
12042       hppa*64*)
12043         # +Z the default
12044         ;;
12045       *)
12046         lt_prog_compiler_pic='-fPIC'
12047         ;;
12048       esac
12049       ;;
12050
12051     interix[3-9]*)
12052       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12053       # Instead, we relocate shared libraries at runtime.
12054       ;;
12055
12056     msdosdjgpp*)
12057       # Just because we use GCC doesn't mean we suddenly get shared libraries
12058       # on systems that don't support them.
12059       lt_prog_compiler_can_build_shared=no
12060       enable_shared=no
12061       ;;
12062
12063     *nto* | *qnx*)
12064       # QNX uses GNU C++, but need to define -shared option too, otherwise
12065       # it will coredump.
12066       lt_prog_compiler_pic='-fPIC -shared'
12067       ;;
12068
12069     sysv4*MP*)
12070       if test -d /usr/nec; then
12071         lt_prog_compiler_pic=-Kconform_pic
12072       fi
12073       ;;
12074
12075     *)
12076       lt_prog_compiler_pic='-fPIC'
12077       ;;
12078     esac
12079
12080     case $cc_basename in
12081     nvcc*) # Cuda Compiler Driver 2.2
12082       lt_prog_compiler_wl='-Xlinker '
12083       if test -n "$lt_prog_compiler_pic"; then
12084         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12085       fi
12086       ;;
12087     esac
12088   else
12089     # PORTME Check for flag to pass linker flags through the system compiler.
12090     case $host_os in
12091     aix*)
12092       lt_prog_compiler_wl='-Wl,'
12093       if test ia64 = "$host_cpu"; then
12094         # AIX 5 now supports IA64 processor
12095         lt_prog_compiler_static='-Bstatic'
12096       else
12097         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12098       fi
12099       ;;
12100
12101     darwin* | rhapsody*)
12102       # PIC is the default on this platform
12103       # Common symbols not allowed in MH_DYLIB files
12104       lt_prog_compiler_pic='-fno-common'
12105       case $cc_basename in
12106       nagfor*)
12107         # NAG Fortran compiler
12108         lt_prog_compiler_wl='-Wl,-Wl,,'
12109         lt_prog_compiler_pic='-PIC'
12110         lt_prog_compiler_static='-Bstatic'
12111         ;;
12112       esac
12113       ;;
12114
12115     mingw* | cygwin* | pw32* | os2* | cegcc*)
12116       # This hack is so that the source file can tell whether it is being
12117       # built for inclusion in a dll (and should export symbols for example).
12118       lt_prog_compiler_pic='-DDLL_EXPORT'
12119       case $host_os in
12120       os2*)
12121         lt_prog_compiler_static='$wl-static'
12122         ;;
12123       esac
12124       ;;
12125
12126     hpux9* | hpux10* | hpux11*)
12127       lt_prog_compiler_wl='-Wl,'
12128       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12129       # not for PA HP-UX.
12130       case $host_cpu in
12131       hppa*64*|ia64*)
12132         # +Z the default
12133         ;;
12134       *)
12135         lt_prog_compiler_pic='+Z'
12136         ;;
12137       esac
12138       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12139       lt_prog_compiler_static='$wl-a ${wl}archive'
12140       ;;
12141
12142     irix5* | irix6* | nonstopux*)
12143       lt_prog_compiler_wl='-Wl,'
12144       # PIC (with -KPIC) is the default.
12145       lt_prog_compiler_static='-non_shared'
12146       ;;
12147
12148     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12149       case $cc_basename in
12150       # old Intel for x86_64, which still supported -KPIC.
12151       ecc*)
12152         lt_prog_compiler_wl='-Wl,'
12153         lt_prog_compiler_pic='-KPIC'
12154         lt_prog_compiler_static='-static'
12155         ;;
12156       # flang / f18. f95 an alias for gfortran or flang on Debian
12157       flang* | f18* | f95*)
12158         lt_prog_compiler_wl='-Wl,'
12159         lt_prog_compiler_pic='-fPIC'
12160         lt_prog_compiler_static='-static'
12161         ;;
12162       # icc used to be incompatible with GCC.
12163       # ICC 10 doesn't accept -KPIC any more.
12164       icc* | ifort*)
12165         lt_prog_compiler_wl='-Wl,'
12166         lt_prog_compiler_pic='-fPIC'
12167         lt_prog_compiler_static='-static'
12168         ;;
12169       # Lahey Fortran 8.1.
12170       lf95*)
12171         lt_prog_compiler_wl='-Wl,'
12172         lt_prog_compiler_pic='--shared'
12173         lt_prog_compiler_static='--static'
12174         ;;
12175       nagfor*)
12176         # NAG Fortran compiler
12177         lt_prog_compiler_wl='-Wl,-Wl,,'
12178         lt_prog_compiler_pic='-PIC'
12179         lt_prog_compiler_static='-Bstatic'
12180         ;;
12181       tcc*)
12182         # Fabrice Bellard et al's Tiny C Compiler
12183         lt_prog_compiler_wl='-Wl,'
12184         lt_prog_compiler_pic='-fPIC'
12185         lt_prog_compiler_static='-static'
12186         ;;
12187       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12188         # Portland Group compilers (*not* the Pentium gcc compiler,
12189         # which looks to be a dead project)
12190         lt_prog_compiler_wl='-Wl,'
12191         lt_prog_compiler_pic='-fpic'
12192         lt_prog_compiler_static='-Bstatic'
12193         ;;
12194       ccc*)
12195         lt_prog_compiler_wl='-Wl,'
12196         # All Alpha code is PIC.
12197         lt_prog_compiler_static='-non_shared'
12198         ;;
12199       xl* | bgxl* | bgf* | mpixl*)
12200         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12201         lt_prog_compiler_wl='-Wl,'
12202         lt_prog_compiler_pic='-qpic'
12203         lt_prog_compiler_static='-qstaticlink'
12204         ;;
12205       *)
12206         case `$CC -V 2>&1 | sed 5q` in
12207         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12208           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12209           lt_prog_compiler_pic='-KPIC'
12210           lt_prog_compiler_static='-Bstatic'
12211           lt_prog_compiler_wl=''
12212           ;;
12213         *Sun\ F* | *Sun*Fortran*)
12214           lt_prog_compiler_pic='-KPIC'
12215           lt_prog_compiler_static='-Bstatic'
12216           lt_prog_compiler_wl='-Qoption ld '
12217           ;;
12218         *Sun\ C*)
12219           # Sun C 5.9
12220           lt_prog_compiler_pic='-KPIC'
12221           lt_prog_compiler_static='-Bstatic'
12222           lt_prog_compiler_wl='-Wl,'
12223           ;;
12224         *Intel*\ [CF]*Compiler*)
12225           lt_prog_compiler_wl='-Wl,'
12226           lt_prog_compiler_pic='-fPIC'
12227           lt_prog_compiler_static='-static'
12228           ;;
12229         *Portland\ Group*)
12230           lt_prog_compiler_wl='-Wl,'
12231           lt_prog_compiler_pic='-fpic'
12232           lt_prog_compiler_static='-Bstatic'
12233           ;;
12234         esac
12235         ;;
12236       esac
12237       ;;
12238
12239     newsos6)
12240       lt_prog_compiler_pic='-KPIC'
12241       lt_prog_compiler_static='-Bstatic'
12242       ;;
12243
12244     *nto* | *qnx*)
12245       # QNX uses GNU C++, but need to define -shared option too, otherwise
12246       # it will coredump.
12247       lt_prog_compiler_pic='-fPIC -shared'
12248       ;;
12249
12250     osf3* | osf4* | osf5*)
12251       lt_prog_compiler_wl='-Wl,'
12252       # All OSF/1 code is PIC.
12253       lt_prog_compiler_static='-non_shared'
12254       ;;
12255
12256     rdos*)
12257       lt_prog_compiler_static='-non_shared'
12258       ;;
12259
12260     solaris*)
12261       lt_prog_compiler_pic='-KPIC'
12262       lt_prog_compiler_static='-Bstatic'
12263       case $cc_basename in
12264       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12265         lt_prog_compiler_wl='-Qoption ld ';;
12266       *)
12267         lt_prog_compiler_wl='-Wl,';;
12268       esac
12269       ;;
12270
12271     sunos4*)
12272       lt_prog_compiler_wl='-Qoption ld '
12273       lt_prog_compiler_pic='-PIC'
12274       lt_prog_compiler_static='-Bstatic'
12275       ;;
12276
12277     sysv4 | sysv4.2uw2* | sysv4.3*)
12278       lt_prog_compiler_wl='-Wl,'
12279       lt_prog_compiler_pic='-KPIC'
12280       lt_prog_compiler_static='-Bstatic'
12281       ;;
12282
12283     sysv4*MP*)
12284       if test -d /usr/nec; then
12285         lt_prog_compiler_pic='-Kconform_pic'
12286         lt_prog_compiler_static='-Bstatic'
12287       fi
12288       ;;
12289
12290     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12291       lt_prog_compiler_wl='-Wl,'
12292       lt_prog_compiler_pic='-KPIC'
12293       lt_prog_compiler_static='-Bstatic'
12294       ;;
12295
12296     unicos*)
12297       lt_prog_compiler_wl='-Wl,'
12298       lt_prog_compiler_can_build_shared=no
12299       ;;
12300
12301     uts4*)
12302       lt_prog_compiler_pic='-pic'
12303       lt_prog_compiler_static='-Bstatic'
12304       ;;
12305
12306     *)
12307       lt_prog_compiler_can_build_shared=no
12308       ;;
12309     esac
12310   fi
12311
12312 case $host_os in
12313   # For platforms that do not support PIC, -DPIC is meaningless:
12314   *djgpp*)
12315     lt_prog_compiler_pic=
12316     ;;
12317   *)
12318     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12319     ;;
12320 esac
12321
12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12323 printf %s "checking for $compiler option to produce PIC... " >&6; }
12324 if test ${lt_cv_prog_compiler_pic+y}
12325 then :
12326   printf %s "(cached) " >&6
12327 else $as_nop
12328   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12329 fi
12330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12331 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12332 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12333
12334 #
12335 # Check to make sure the PIC flag actually works.
12336 #
12337 if test -n "$lt_prog_compiler_pic"; then
12338   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12339 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12340 if test ${lt_cv_prog_compiler_pic_works+y}
12341 then :
12342   printf %s "(cached) " >&6
12343 else $as_nop
12344   lt_cv_prog_compiler_pic_works=no
12345    ac_outfile=conftest.$ac_objext
12346    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12347    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12348    # Insert the option either (1) after the last *FLAGS variable, or
12349    # (2) before a word containing "conftest.", or (3) at the end.
12350    # Note that $ac_compile itself does not contain backslashes and begins
12351    # with a dollar sign (not a hyphen), so the echo should work correctly.
12352    # The option is referenced via a variable to avoid confusing sed.
12353    lt_compile=`echo "$ac_compile" | $SED \
12354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12356    -e 's:$: $lt_compiler_flag:'`
12357    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12358    (eval "$lt_compile" 2>conftest.err)
12359    ac_status=$?
12360    cat conftest.err >&5
12361    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362    if (exit $ac_status) && test -s "$ac_outfile"; then
12363      # The compiler can only warn and ignore the option if not recognized
12364      # So say no if there are warnings other than the usual output.
12365      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12366      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12367      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12368        lt_cv_prog_compiler_pic_works=yes
12369      fi
12370    fi
12371    $RM conftest*
12372
12373 fi
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12375 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12376
12377 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12378     case $lt_prog_compiler_pic in
12379      "" | " "*) ;;
12380      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12381      esac
12382 else
12383     lt_prog_compiler_pic=
12384      lt_prog_compiler_can_build_shared=no
12385 fi
12386
12387 fi
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399 #
12400 # Check to make sure the static flag actually works.
12401 #
12402 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12404 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12405 if test ${lt_cv_prog_compiler_static_works+y}
12406 then :
12407   printf %s "(cached) " >&6
12408 else $as_nop
12409   lt_cv_prog_compiler_static_works=no
12410    save_LDFLAGS=$LDFLAGS
12411    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12412    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12413    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12414      # The linker can only warn and ignore the option if not recognized
12415      # So say no if there are warnings
12416      if test -s conftest.err; then
12417        # Append any errors to the config.log.
12418        cat conftest.err 1>&5
12419        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12420        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12421        if diff conftest.exp conftest.er2 >/dev/null; then
12422          lt_cv_prog_compiler_static_works=yes
12423        fi
12424      else
12425        lt_cv_prog_compiler_static_works=yes
12426      fi
12427    fi
12428    $RM -r conftest*
12429    LDFLAGS=$save_LDFLAGS
12430
12431 fi
12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12433 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12434
12435 if test yes = "$lt_cv_prog_compiler_static_works"; then
12436     :
12437 else
12438     lt_prog_compiler_static=
12439 fi
12440
12441
12442
12443
12444
12445
12446
12447   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12448 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12449 if test ${lt_cv_prog_compiler_c_o+y}
12450 then :
12451   printf %s "(cached) " >&6
12452 else $as_nop
12453   lt_cv_prog_compiler_c_o=no
12454    $RM -r conftest 2>/dev/null
12455    mkdir conftest
12456    cd conftest
12457    mkdir out
12458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12459
12460    lt_compiler_flag="-o out/conftest2.$ac_objext"
12461    # Insert the option either (1) after the last *FLAGS variable, or
12462    # (2) before a word containing "conftest.", or (3) at the end.
12463    # Note that $ac_compile itself does not contain backslashes and begins
12464    # with a dollar sign (not a hyphen), so the echo should work correctly.
12465    lt_compile=`echo "$ac_compile" | $SED \
12466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12468    -e 's:$: $lt_compiler_flag:'`
12469    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12470    (eval "$lt_compile" 2>out/conftest.err)
12471    ac_status=$?
12472    cat out/conftest.err >&5
12473    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12475    then
12476      # The compiler can only warn and ignore the option if not recognized
12477      # So say no if there are warnings
12478      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12479      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12480      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12481        lt_cv_prog_compiler_c_o=yes
12482      fi
12483    fi
12484    chmod u+w . 2>&5
12485    $RM conftest*
12486    # SGI C++ compiler will create directory out/ii_files/ for
12487    # template instantiation
12488    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12489    $RM out/* && rmdir out
12490    cd ..
12491    $RM -r conftest
12492    $RM conftest*
12493
12494 fi
12495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12496 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12497
12498
12499
12500
12501
12502
12503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12504 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12505 if test ${lt_cv_prog_compiler_c_o+y}
12506 then :
12507   printf %s "(cached) " >&6
12508 else $as_nop
12509   lt_cv_prog_compiler_c_o=no
12510    $RM -r conftest 2>/dev/null
12511    mkdir conftest
12512    cd conftest
12513    mkdir out
12514    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12515
12516    lt_compiler_flag="-o out/conftest2.$ac_objext"
12517    # Insert the option either (1) after the last *FLAGS variable, or
12518    # (2) before a word containing "conftest.", or (3) at the end.
12519    # Note that $ac_compile itself does not contain backslashes and begins
12520    # with a dollar sign (not a hyphen), so the echo should work correctly.
12521    lt_compile=`echo "$ac_compile" | $SED \
12522    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12523    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12524    -e 's:$: $lt_compiler_flag:'`
12525    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12526    (eval "$lt_compile" 2>out/conftest.err)
12527    ac_status=$?
12528    cat out/conftest.err >&5
12529    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12531    then
12532      # The compiler can only warn and ignore the option if not recognized
12533      # So say no if there are warnings
12534      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12535      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12536      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12537        lt_cv_prog_compiler_c_o=yes
12538      fi
12539    fi
12540    chmod u+w . 2>&5
12541    $RM conftest*
12542    # SGI C++ compiler will create directory out/ii_files/ for
12543    # template instantiation
12544    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12545    $RM out/* && rmdir out
12546    cd ..
12547    $RM -r conftest
12548    $RM conftest*
12549
12550 fi
12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12552 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12553
12554
12555
12556
12557 hard_links=nottested
12558 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12559   # do not overwrite the value of need_locks provided by the user
12560   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12561 printf %s "checking if we can lock with hard links... " >&6; }
12562   hard_links=yes
12563   $RM conftest*
12564   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12565   touch conftest.a
12566   ln conftest.a conftest.b 2>&5 || hard_links=no
12567   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12569 printf "%s\n" "$hard_links" >&6; }
12570   if test no = "$hard_links"; then
12571     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12572 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12573     need_locks=warn
12574   fi
12575 else
12576   need_locks=no
12577 fi
12578
12579
12580
12581
12582
12583
12584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12585 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12586
12587   runpath_var=
12588   allow_undefined_flag=
12589   always_export_symbols=no
12590   archive_cmds=
12591   archive_expsym_cmds=
12592   compiler_needs_object=no
12593   enable_shared_with_static_runtimes=no
12594   export_dynamic_flag_spec=
12595   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12596   hardcode_automatic=no
12597   hardcode_direct=no
12598   hardcode_direct_absolute=no
12599   hardcode_libdir_flag_spec=
12600   hardcode_libdir_separator=
12601   hardcode_minus_L=no
12602   hardcode_shlibpath_var=unsupported
12603   inherit_rpath=no
12604   link_all_deplibs=unknown
12605   module_cmds=
12606   module_expsym_cmds=
12607   old_archive_from_new_cmds=
12608   old_archive_from_expsyms_cmds=
12609   thread_safe_flag_spec=
12610   whole_archive_flag_spec=
12611   # include_expsyms should be a list of space-separated symbols to be *always*
12612   # included in the symbol list
12613   include_expsyms=
12614   # exclude_expsyms can be an extended regexp of symbols to exclude
12615   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12616   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12617   # as well as any symbol that contains 'd'.
12618   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12619   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12620   # platforms (ab)use it in PIC code, but their linkers get confused if
12621   # the symbol is explicitly referenced.  Since portable code cannot
12622   # rely on this symbol name, it's probably fine to never include it in
12623   # preloaded symbol tables.
12624   # Exclude shared library initialization/finalization symbols.
12625   extract_expsyms_cmds=
12626
12627   case $host_os in
12628   cygwin* | mingw* | pw32* | cegcc*)
12629     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12630     # When not using gcc, we currently assume that we are using
12631     # Microsoft Visual C++.
12632     if test yes != "$GCC"; then
12633       with_gnu_ld=no
12634     fi
12635     ;;
12636   interix*)
12637     # we just hope/assume this is gcc and not c89 (= MSVC++)
12638     with_gnu_ld=yes
12639     ;;
12640   openbsd* | bitrig*)
12641     with_gnu_ld=no
12642     ;;
12643   linux* | k*bsd*-gnu | gnu*)
12644     link_all_deplibs=no
12645     ;;
12646   esac
12647
12648   ld_shlibs=yes
12649
12650   # On some targets, GNU ld is compatible enough with the native linker
12651   # that we're better off using the native interface for both.
12652   lt_use_gnu_ld_interface=no
12653   if test yes = "$with_gnu_ld"; then
12654     case $host_os in
12655       aix*)
12656         # The AIX port of GNU ld has always aspired to compatibility
12657         # with the native linker.  However, as the warning in the GNU ld
12658         # block says, versions before 2.19.5* couldn't really create working
12659         # shared libraries, regardless of the interface used.
12660         case `$LD -v 2>&1` in
12661           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12662           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12663           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12664           *)
12665             lt_use_gnu_ld_interface=yes
12666             ;;
12667         esac
12668         ;;
12669       *)
12670         lt_use_gnu_ld_interface=yes
12671         ;;
12672     esac
12673   fi
12674
12675   if test yes = "$lt_use_gnu_ld_interface"; then
12676     # If archive_cmds runs LD, not CC, wlarc should be empty
12677     wlarc='$wl'
12678
12679     # Set some defaults for GNU ld with shared library support. These
12680     # are reset later if shared libraries are not supported. Putting them
12681     # here allows them to be overridden if necessary.
12682     runpath_var=LD_RUN_PATH
12683     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12684     export_dynamic_flag_spec='$wl--export-dynamic'
12685     # ancient GNU ld didn't support --whole-archive et. al.
12686     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12687       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12688     else
12689       whole_archive_flag_spec=
12690     fi
12691     supports_anon_versioning=no
12692     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12693       *GNU\ gold*) supports_anon_versioning=yes ;;
12694       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12695       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12696       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12697       *\ 2.11.*) ;; # other 2.11 versions
12698       *) supports_anon_versioning=yes ;;
12699     esac
12700
12701     # See if GNU ld supports shared libraries.
12702     case $host_os in
12703     aix[3-9]*)
12704       # On AIX/PPC, the GNU linker is very broken
12705       if test ia64 != "$host_cpu"; then
12706         ld_shlibs=no
12707         cat <<_LT_EOF 1>&2
12708
12709 *** Warning: the GNU linker, at least up to release 2.19, is reported
12710 *** to be unable to reliably create shared libraries on AIX.
12711 *** Therefore, libtool is disabling shared libraries support.  If you
12712 *** really care for shared libraries, you may want to install binutils
12713 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12714 *** You will then need to restart the configuration process.
12715
12716 _LT_EOF
12717       fi
12718       ;;
12719
12720     amigaos*)
12721       case $host_cpu in
12722       powerpc)
12723             # see comment about AmigaOS4 .so support
12724             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12725             archive_expsym_cmds=''
12726         ;;
12727       m68k)
12728             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)'
12729             hardcode_libdir_flag_spec='-L$libdir'
12730             hardcode_minus_L=yes
12731         ;;
12732       esac
12733       ;;
12734
12735     beos*)
12736       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12737         allow_undefined_flag=unsupported
12738         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12739         # support --undefined.  This deserves some investigation.  FIXME
12740         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12741       else
12742         ld_shlibs=no
12743       fi
12744       ;;
12745
12746     cygwin* | mingw* | pw32* | cegcc*)
12747       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12748       # as there is no search path for DLLs.
12749       hardcode_libdir_flag_spec='-L$libdir'
12750       export_dynamic_flag_spec='$wl--export-all-symbols'
12751       allow_undefined_flag=unsupported
12752       always_export_symbols=no
12753       enable_shared_with_static_runtimes=yes
12754       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'
12755       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12756
12757       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12759         # If the export-symbols file already is a .def file, use it as
12760         # is; otherwise, prepend EXPORTS...
12761         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12762           cp $export_symbols $output_objdir/$soname.def;
12763         else
12764           echo EXPORTS > $output_objdir/$soname.def;
12765           cat $export_symbols >> $output_objdir/$soname.def;
12766         fi~
12767         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12768       else
12769         ld_shlibs=no
12770       fi
12771       ;;
12772
12773     haiku*)
12774       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12775       link_all_deplibs=yes
12776       ;;
12777
12778     os2*)
12779       hardcode_libdir_flag_spec='-L$libdir'
12780       hardcode_minus_L=yes
12781       allow_undefined_flag=unsupported
12782       shrext_cmds=.dll
12783       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12784         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12785         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12786         $ECHO EXPORTS >> $output_objdir/$libname.def~
12787         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12788         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12789         emximp -o $lib $output_objdir/$libname.def'
12790       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12791         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12792         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12793         $ECHO EXPORTS >> $output_objdir/$libname.def~
12794         prefix_cmds="$SED"~
12795         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12796           prefix_cmds="$prefix_cmds -e 1d";
12797         fi~
12798         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12799         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12800         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12801         emximp -o $lib $output_objdir/$libname.def'
12802       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12803       enable_shared_with_static_runtimes=yes
12804       ;;
12805
12806     interix[3-9]*)
12807       hardcode_direct=no
12808       hardcode_shlibpath_var=no
12809       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12810       export_dynamic_flag_spec='$wl-E'
12811       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12812       # Instead, shared libraries are loaded at an image base (0x10000000 by
12813       # default) and relocated if they conflict, which is a slow very memory
12814       # consuming and fragmenting process.  To avoid this, we pick a random,
12815       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12816       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12817       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12818       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'
12819       ;;
12820
12821     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12822       tmp_diet=no
12823       if test linux-dietlibc = "$host_os"; then
12824         case $cc_basename in
12825           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12826         esac
12827       fi
12828       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12829          && test no = "$tmp_diet"
12830       then
12831         tmp_addflag=' $pic_flag'
12832         tmp_sharedflag='-shared'
12833         case $cc_basename,$host_cpu in
12834         pgcc*)                          # Portland Group C compiler
12835           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'
12836           tmp_addflag=' $pic_flag'
12837           ;;
12838         pgf77* | pgf90* | pgf95* | pgfortran*)
12839                                         # Portland Group f77 and f90 compilers
12840           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'
12841           tmp_addflag=' $pic_flag -Mnomain' ;;
12842         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12843           tmp_addflag=' -i_dynamic' ;;
12844         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12845           tmp_addflag=' -i_dynamic -nofor_main' ;;
12846         ifc* | ifort*)                  # Intel Fortran compiler
12847           tmp_addflag=' -nofor_main' ;;
12848         lf95*)                          # Lahey Fortran 8.1
12849           whole_archive_flag_spec=
12850           tmp_sharedflag='--shared' ;;
12851         nagfor*)                        # NAGFOR 5.3
12852           tmp_sharedflag='-Wl,-shared' ;;
12853         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12854           tmp_sharedflag='-qmkshrobj'
12855           tmp_addflag= ;;
12856         nvcc*)  # Cuda Compiler Driver 2.2
12857           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'
12858           compiler_needs_object=yes
12859           ;;
12860         esac
12861         case `$CC -V 2>&1 | sed 5q` in
12862         *Sun\ C*)                       # Sun C 5.9
12863           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'
12864           compiler_needs_object=yes
12865           tmp_sharedflag='-G' ;;
12866         *Sun\ F*)                       # Sun Fortran 8.3
12867           tmp_sharedflag='-G' ;;
12868         esac
12869         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12870
12871         if test yes = "$supports_anon_versioning"; then
12872           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12873             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12874             echo "local: *; };" >> $output_objdir/$libname.ver~
12875             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12876         fi
12877
12878         case $cc_basename in
12879         tcc*)
12880           export_dynamic_flag_spec='-rdynamic'
12881           ;;
12882         xlf* | bgf* | bgxlf* | mpixlf*)
12883           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12884           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12885           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12886           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12887           if test yes = "$supports_anon_versioning"; then
12888             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12889               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12890               echo "local: *; };" >> $output_objdir/$libname.ver~
12891               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12892           fi
12893           ;;
12894         esac
12895       else
12896         ld_shlibs=no
12897       fi
12898       ;;
12899
12900     netbsd* | netbsdelf*-gnu)
12901       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12902         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12903         wlarc=
12904       else
12905         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12906         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12907       fi
12908       ;;
12909
12910     solaris*)
12911       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12912         ld_shlibs=no
12913         cat <<_LT_EOF 1>&2
12914
12915 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12916 *** create shared libraries on Solaris systems.  Therefore, libtool
12917 *** is disabling shared libraries support.  We urge you to upgrade GNU
12918 *** binutils to release 2.9.1 or newer.  Another option is to modify
12919 *** your PATH or compiler configuration so that the native linker is
12920 *** used, and then restart.
12921
12922 _LT_EOF
12923       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12924         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12925         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12926       else
12927         ld_shlibs=no
12928       fi
12929       ;;
12930
12931     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12932       case `$LD -v 2>&1` in
12933         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12934         ld_shlibs=no
12935         cat <<_LT_EOF 1>&2
12936
12937 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12938 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12939 *** is disabling shared libraries support.  We urge you to upgrade GNU
12940 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12941 *** your PATH or compiler configuration so that the native linker is
12942 *** used, and then restart.
12943
12944 _LT_EOF
12945         ;;
12946         *)
12947           # For security reasons, it is highly recommended that you always
12948           # use absolute paths for naming shared libraries, and exclude the
12949           # DT_RUNPATH tag from executables and libraries.  But doing so
12950           # requires that you compile everything twice, which is a pain.
12951           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12952             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12953             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12954             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12955           else
12956             ld_shlibs=no
12957           fi
12958         ;;
12959       esac
12960       ;;
12961
12962     sunos4*)
12963       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12964       wlarc=
12965       hardcode_direct=yes
12966       hardcode_shlibpath_var=no
12967       ;;
12968
12969     *)
12970       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12971         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12972         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12973       else
12974         ld_shlibs=no
12975       fi
12976       ;;
12977     esac
12978
12979     if test no = "$ld_shlibs"; then
12980       runpath_var=
12981       hardcode_libdir_flag_spec=
12982       export_dynamic_flag_spec=
12983       whole_archive_flag_spec=
12984     fi
12985   else
12986     # PORTME fill in a description of your system's linker (not GNU ld)
12987     case $host_os in
12988     aix3*)
12989       allow_undefined_flag=unsupported
12990       always_export_symbols=yes
12991       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'
12992       # Note: this linker hardcodes the directories in LIBPATH if there
12993       # are no directories specified by -L.
12994       hardcode_minus_L=yes
12995       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12996         # Neither direct hardcoding nor static linking is supported with a
12997         # broken collect2.
12998         hardcode_direct=unsupported
12999       fi
13000       ;;
13001
13002     aix[4-9]*)
13003       if test ia64 = "$host_cpu"; then
13004         # On IA64, the linker does run time linking by default, so we don't
13005         # have to do anything special.
13006         aix_use_runtimelinking=no
13007         exp_sym_flag='-Bexport'
13008         no_entry_flag=
13009       else
13010         # If we're using GNU nm, then we don't want the "-C" option.
13011         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13012         # Without the "-l" option, or with the "-B" option, AIX nm treats
13013         # weak defined symbols like other global defined symbols, whereas
13014         # GNU nm marks them as "W".
13015         # While the 'weak' keyword is ignored in the Export File, we need
13016         # it in the Import File for the 'aix-soname' feature, so we have
13017         # to replace the "-B" option with "-P" for AIX nm.
13018         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13019           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'
13020         else
13021           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'
13022         fi
13023         aix_use_runtimelinking=no
13024
13025         # Test if we are trying to use run time linking or normal
13026         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13027         # have runtime linking enabled, and use it for executables.
13028         # For shared libraries, we enable/disable runtime linking
13029         # depending on the kind of the shared library created -
13030         # when "with_aix_soname,aix_use_runtimelinking" is:
13031         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13032         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13033         #            lib.a           static archive
13034         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13035         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13036         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13037         #            lib.a(lib.so.V) shared, rtl:no
13038         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13039         #            lib.a           static archive
13040         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13041           for ld_flag in $LDFLAGS; do
13042           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13043             aix_use_runtimelinking=yes
13044             break
13045           fi
13046           done
13047           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13048             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13049             # so we don't have lib.a shared libs to link our executables.
13050             # We have to force runtime linking in this case.
13051             aix_use_runtimelinking=yes
13052             LDFLAGS="$LDFLAGS -Wl,-brtl"
13053           fi
13054           ;;
13055         esac
13056
13057         exp_sym_flag='-bexport'
13058         no_entry_flag='-bnoentry'
13059       fi
13060
13061       # When large executables or shared objects are built, AIX ld can
13062       # have problems creating the table of contents.  If linking a library
13063       # or program results in "error TOC overflow" add -mminimal-toc to
13064       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13065       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13066
13067       archive_cmds=''
13068       hardcode_direct=yes
13069       hardcode_direct_absolute=yes
13070       hardcode_libdir_separator=':'
13071       link_all_deplibs=yes
13072       file_list_spec='$wl-f,'
13073       case $with_aix_soname,$aix_use_runtimelinking in
13074       aix,*) ;; # traditional, no import file
13075       svr4,* | *,yes) # use import file
13076         # The Import File defines what to hardcode.
13077         hardcode_direct=no
13078         hardcode_direct_absolute=no
13079         ;;
13080       esac
13081
13082       if test yes = "$GCC"; then
13083         case $host_os in aix4.[012]|aix4.[012].*)
13084         # We only want to do this on AIX 4.2 and lower, the check
13085         # below for broken collect2 doesn't work under 4.3+
13086           collect2name=`$CC -print-prog-name=collect2`
13087           if test -f "$collect2name" &&
13088            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13089           then
13090           # We have reworked collect2
13091           :
13092           else
13093           # We have old collect2
13094           hardcode_direct=unsupported
13095           # It fails to find uninstalled libraries when the uninstalled
13096           # path is not listed in the libpath.  Setting hardcode_minus_L
13097           # to unsupported forces relinking
13098           hardcode_minus_L=yes
13099           hardcode_libdir_flag_spec='-L$libdir'
13100           hardcode_libdir_separator=
13101           fi
13102           ;;
13103         esac
13104         shared_flag='-shared'
13105         if test yes = "$aix_use_runtimelinking"; then
13106           shared_flag="$shared_flag "'$wl-G'
13107         fi
13108         # Need to ensure runtime linking is disabled for the traditional
13109         # shared library, or the linker may eventually find shared libraries
13110         # /with/ Import File - we do not want to mix them.
13111         shared_flag_aix='-shared'
13112         shared_flag_svr4='-shared $wl-G'
13113       else
13114         # not using gcc
13115         if test ia64 = "$host_cpu"; then
13116         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13117         # chokes on -Wl,-G. The following line is correct:
13118           shared_flag='-G'
13119         else
13120           if test yes = "$aix_use_runtimelinking"; then
13121             shared_flag='$wl-G'
13122           else
13123             shared_flag='$wl-bM:SRE'
13124           fi
13125           shared_flag_aix='$wl-bM:SRE'
13126           shared_flag_svr4='$wl-G'
13127         fi
13128       fi
13129
13130       export_dynamic_flag_spec='$wl-bexpall'
13131       # It seems that -bexpall does not export symbols beginning with
13132       # underscore (_), so it is better to generate a list of symbols to export.
13133       always_export_symbols=yes
13134       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13135         # Warning - without using the other runtime loading flags (-brtl),
13136         # -berok will link without error, but may produce a broken library.
13137         allow_undefined_flag='-berok'
13138         # Determine the default libpath from the value encoded in an
13139         # empty executable.
13140         if test set = "${lt_cv_aix_libpath+set}"; then
13141   aix_libpath=$lt_cv_aix_libpath
13142 else
13143   if test ${lt_cv_aix_libpath_+y}
13144 then :
13145   printf %s "(cached) " >&6
13146 else $as_nop
13147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h.  */
13149
13150 int
13151 main (void)
13152 {
13153
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 if ac_fn_c_try_link "$LINENO"
13159 then :
13160
13161   lt_aix_libpath_sed='
13162       /Import File Strings/,/^$/ {
13163           /^0/ {
13164               s/^0  *\([^ ]*\) *$/\1/
13165               p
13166           }
13167       }'
13168   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13169   # Check for a 64-bit object if we didn't find anything.
13170   if test -z "$lt_cv_aix_libpath_"; then
13171     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13172   fi
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13175     conftest$ac_exeext conftest.$ac_ext
13176   if test -z "$lt_cv_aix_libpath_"; then
13177     lt_cv_aix_libpath_=/usr/lib:/lib
13178   fi
13179
13180 fi
13181
13182   aix_libpath=$lt_cv_aix_libpath_
13183 fi
13184
13185         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13186         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
13187       else
13188         if test ia64 = "$host_cpu"; then
13189           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13190           allow_undefined_flag="-z nodefs"
13191           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"
13192         else
13193          # Determine the default libpath from the value encoded in an
13194          # empty executable.
13195          if test set = "${lt_cv_aix_libpath+set}"; then
13196   aix_libpath=$lt_cv_aix_libpath
13197 else
13198   if test ${lt_cv_aix_libpath_+y}
13199 then :
13200   printf %s "(cached) " >&6
13201 else $as_nop
13202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h.  */
13204
13205 int
13206 main (void)
13207 {
13208
13209   ;
13210   return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"
13214 then :
13215
13216   lt_aix_libpath_sed='
13217       /Import File Strings/,/^$/ {
13218           /^0/ {
13219               s/^0  *\([^ ]*\) *$/\1/
13220               p
13221           }
13222       }'
13223   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13224   # Check for a 64-bit object if we didn't find anything.
13225   if test -z "$lt_cv_aix_libpath_"; then
13226     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13227   fi
13228 fi
13229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13230     conftest$ac_exeext conftest.$ac_ext
13231   if test -z "$lt_cv_aix_libpath_"; then
13232     lt_cv_aix_libpath_=/usr/lib:/lib
13233   fi
13234
13235 fi
13236
13237   aix_libpath=$lt_cv_aix_libpath_
13238 fi
13239
13240          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13241           # Warning - without using the other run time loading flags,
13242           # -berok will link without error, but may produce a broken library.
13243           no_undefined_flag=' $wl-bernotok'
13244           allow_undefined_flag=' $wl-berok'
13245           if test yes = "$with_gnu_ld"; then
13246             # We only use this code for GNU lds that support --whole-archive.
13247             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13248           else
13249             # Exported symbols can be pulled into shared objects from archives
13250             whole_archive_flag_spec='$convenience'
13251           fi
13252           archive_cmds_need_lc=yes
13253           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13254           # -brtl affects multiple linker settings, -berok does not and is overridden later
13255           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13256           if test svr4 != "$with_aix_soname"; then
13257             # This is similar to how AIX traditionally builds its shared libraries.
13258             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'
13259           fi
13260           if test aix != "$with_aix_soname"; then
13261             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'
13262           else
13263             # used by -dlpreopen to get the symbols
13264             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13265           fi
13266           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13267         fi
13268       fi
13269       ;;
13270
13271     amigaos*)
13272       case $host_cpu in
13273       powerpc)
13274             # see comment about AmigaOS4 .so support
13275             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13276             archive_expsym_cmds=''
13277         ;;
13278       m68k)
13279             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)'
13280             hardcode_libdir_flag_spec='-L$libdir'
13281             hardcode_minus_L=yes
13282         ;;
13283       esac
13284       ;;
13285
13286     bsdi[45]*)
13287       export_dynamic_flag_spec=-rdynamic
13288       ;;
13289
13290     cygwin* | mingw* | pw32* | cegcc*)
13291       # When not using gcc, we currently assume that we are using
13292       # Microsoft Visual C++.
13293       # hardcode_libdir_flag_spec is actually meaningless, as there is
13294       # no search path for DLLs.
13295       case $cc_basename in
13296       cl*)
13297         # Native MSVC
13298         hardcode_libdir_flag_spec=' '
13299         allow_undefined_flag=unsupported
13300         always_export_symbols=yes
13301         file_list_spec='@'
13302         # Tell ltmain to make .lib files, not .a files.
13303         libext=lib
13304         # Tell ltmain to make .dll files, not .so files.
13305         shrext_cmds=.dll
13306         # FIXME: Setting linknames here is a bad hack.
13307         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13308         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13309             cp "$export_symbols" "$output_objdir/$soname.def";
13310             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13311           else
13312             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13313           fi~
13314           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13315           linknames='
13316         # The linker will not automatically build a static lib if we build a DLL.
13317         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13318         enable_shared_with_static_runtimes=yes
13319         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13320         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13321         # Don't use ranlib
13322         old_postinstall_cmds='chmod 644 $oldlib'
13323         postlink_cmds='lt_outputfile="@OUTPUT@"~
13324           lt_tool_outputfile="@TOOL_OUTPUT@"~
13325           case $lt_outputfile in
13326             *.exe|*.EXE) ;;
13327             *)
13328               lt_outputfile=$lt_outputfile.exe
13329               lt_tool_outputfile=$lt_tool_outputfile.exe
13330               ;;
13331           esac~
13332           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13333             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13334             $RM "$lt_outputfile.manifest";
13335           fi'
13336         ;;
13337       *)
13338         # Assume MSVC wrapper
13339         hardcode_libdir_flag_spec=' '
13340         allow_undefined_flag=unsupported
13341         # Tell ltmain to make .lib files, not .a files.
13342         libext=lib
13343         # Tell ltmain to make .dll files, not .so files.
13344         shrext_cmds=.dll
13345         # FIXME: Setting linknames here is a bad hack.
13346         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13347         # The linker will automatically build a .lib file if we build a DLL.
13348         old_archive_from_new_cmds='true'
13349         # FIXME: Should let the user specify the lib program.
13350         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13351         enable_shared_with_static_runtimes=yes
13352         ;;
13353       esac
13354       ;;
13355
13356     darwin* | rhapsody*)
13357
13358
13359   archive_cmds_need_lc=no
13360   hardcode_direct=no
13361   hardcode_automatic=yes
13362   hardcode_shlibpath_var=unsupported
13363   if test yes = "$lt_cv_ld_force_load"; then
13364     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\"`'
13365
13366   else
13367     whole_archive_flag_spec=''
13368   fi
13369   link_all_deplibs=yes
13370   allow_undefined_flag=$_lt_dar_allow_undefined
13371   case $cc_basename in
13372      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13373      *) _lt_dar_can_shared=$GCC ;;
13374   esac
13375   if test yes = "$_lt_dar_can_shared"; then
13376     output_verbose_link_cmd=func_echo_all
13377     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13378     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13379     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"
13380     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"
13381
13382   else
13383   ld_shlibs=no
13384   fi
13385
13386       ;;
13387
13388     dgux*)
13389       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13390       hardcode_libdir_flag_spec='-L$libdir'
13391       hardcode_shlibpath_var=no
13392       ;;
13393
13394     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13395     # support.  Future versions do this automatically, but an explicit c++rt0.o
13396     # does not break anything, and helps significantly (at the cost of a little
13397     # extra space).
13398     freebsd2.2*)
13399       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13400       hardcode_libdir_flag_spec='-R$libdir'
13401       hardcode_direct=yes
13402       hardcode_shlibpath_var=no
13403       ;;
13404
13405     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13406     freebsd2.*)
13407       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13408       hardcode_direct=yes
13409       hardcode_minus_L=yes
13410       hardcode_shlibpath_var=no
13411       ;;
13412
13413     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13414     freebsd* | dragonfly*)
13415       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13416       hardcode_libdir_flag_spec='-R$libdir'
13417       hardcode_direct=yes
13418       hardcode_shlibpath_var=no
13419       ;;
13420
13421     hpux9*)
13422       if test yes = "$GCC"; then
13423         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'
13424       else
13425         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'
13426       fi
13427       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13428       hardcode_libdir_separator=:
13429       hardcode_direct=yes
13430
13431       # hardcode_minus_L: Not really in the search PATH,
13432       # but as the default location of the library.
13433       hardcode_minus_L=yes
13434       export_dynamic_flag_spec='$wl-E'
13435       ;;
13436
13437     hpux10*)
13438       if test yes,no = "$GCC,$with_gnu_ld"; then
13439         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13440       else
13441         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13442       fi
13443       if test no = "$with_gnu_ld"; then
13444         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13445         hardcode_libdir_separator=:
13446         hardcode_direct=yes
13447         hardcode_direct_absolute=yes
13448         export_dynamic_flag_spec='$wl-E'
13449         # hardcode_minus_L: Not really in the search PATH,
13450         # but as the default location of the library.
13451         hardcode_minus_L=yes
13452       fi
13453       ;;
13454
13455     hpux11*)
13456       if test yes,no = "$GCC,$with_gnu_ld"; then
13457         case $host_cpu in
13458         hppa*64*)
13459           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13460           ;;
13461         ia64*)
13462           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13463           ;;
13464         *)
13465           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13466           ;;
13467         esac
13468       else
13469         case $host_cpu in
13470         hppa*64*)
13471           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13472           ;;
13473         ia64*)
13474           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13475           ;;
13476         *)
13477
13478           # Older versions of the 11.00 compiler do not understand -b yet
13479           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13480           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13481 printf %s "checking if $CC understands -b... " >&6; }
13482 if test ${lt_cv_prog_compiler__b+y}
13483 then :
13484   printf %s "(cached) " >&6
13485 else $as_nop
13486   lt_cv_prog_compiler__b=no
13487    save_LDFLAGS=$LDFLAGS
13488    LDFLAGS="$LDFLAGS -b"
13489    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13490    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13491      # The linker can only warn and ignore the option if not recognized
13492      # So say no if there are warnings
13493      if test -s conftest.err; then
13494        # Append any errors to the config.log.
13495        cat conftest.err 1>&5
13496        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13497        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13498        if diff conftest.exp conftest.er2 >/dev/null; then
13499          lt_cv_prog_compiler__b=yes
13500        fi
13501      else
13502        lt_cv_prog_compiler__b=yes
13503      fi
13504    fi
13505    $RM -r conftest*
13506    LDFLAGS=$save_LDFLAGS
13507
13508 fi
13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13510 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13511
13512 if test yes = "$lt_cv_prog_compiler__b"; then
13513     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13514 else
13515     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13516 fi
13517
13518           ;;
13519         esac
13520       fi
13521       if test no = "$with_gnu_ld"; then
13522         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13523         hardcode_libdir_separator=:
13524
13525         case $host_cpu in
13526         hppa*64*|ia64*)
13527           hardcode_direct=no
13528           hardcode_shlibpath_var=no
13529           ;;
13530         *)
13531           hardcode_direct=yes
13532           hardcode_direct_absolute=yes
13533           export_dynamic_flag_spec='$wl-E'
13534
13535           # hardcode_minus_L: Not really in the search PATH,
13536           # but as the default location of the library.
13537           hardcode_minus_L=yes
13538           ;;
13539         esac
13540       fi
13541       ;;
13542
13543     irix5* | irix6* | nonstopux*)
13544       if test yes = "$GCC"; then
13545         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'
13546         # Try to use the -exported_symbol ld option, if it does not
13547         # work, assume that -exports_file does not work either and
13548         # implicitly export all symbols.
13549         # This should be the same for all languages, so no per-tag cache variable.
13550         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13551 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13552 if test ${lt_cv_irix_exported_symbol+y}
13553 then :
13554   printf %s "(cached) " >&6
13555 else $as_nop
13556   save_LDFLAGS=$LDFLAGS
13557            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13558            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h.  */
13560 int foo (void) { return 0; }
13561 _ACEOF
13562 if ac_fn_c_try_link "$LINENO"
13563 then :
13564   lt_cv_irix_exported_symbol=yes
13565 else $as_nop
13566   lt_cv_irix_exported_symbol=no
13567 fi
13568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13569     conftest$ac_exeext conftest.$ac_ext
13570            LDFLAGS=$save_LDFLAGS
13571 fi
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13573 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13574         if test yes = "$lt_cv_irix_exported_symbol"; then
13575           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'
13576         fi
13577         link_all_deplibs=no
13578       else
13579         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'
13580         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'
13581       fi
13582       archive_cmds_need_lc='no'
13583       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13584       hardcode_libdir_separator=:
13585       inherit_rpath=yes
13586       link_all_deplibs=yes
13587       ;;
13588
13589     linux*)
13590       case $cc_basename in
13591       tcc*)
13592         # Fabrice Bellard et al's Tiny C Compiler
13593         ld_shlibs=yes
13594         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13595         ;;
13596       esac
13597       ;;
13598
13599     netbsd* | netbsdelf*-gnu)
13600       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13601         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13602       else
13603         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13604       fi
13605       hardcode_libdir_flag_spec='-R$libdir'
13606       hardcode_direct=yes
13607       hardcode_shlibpath_var=no
13608       ;;
13609
13610     newsos6)
13611       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13612       hardcode_direct=yes
13613       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13614       hardcode_libdir_separator=:
13615       hardcode_shlibpath_var=no
13616       ;;
13617
13618     *nto* | *qnx*)
13619       ;;
13620
13621     openbsd* | bitrig*)
13622       if test -f /usr/libexec/ld.so; then
13623         hardcode_direct=yes
13624         hardcode_shlibpath_var=no
13625         hardcode_direct_absolute=yes
13626         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13627           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13628           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13629           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13630           export_dynamic_flag_spec='$wl-E'
13631         else
13632           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13633           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13634         fi
13635       else
13636         ld_shlibs=no
13637       fi
13638       ;;
13639
13640     os2*)
13641       hardcode_libdir_flag_spec='-L$libdir'
13642       hardcode_minus_L=yes
13643       allow_undefined_flag=unsupported
13644       shrext_cmds=.dll
13645       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13646         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13647         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13648         $ECHO EXPORTS >> $output_objdir/$libname.def~
13649         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13650         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13651         emximp -o $lib $output_objdir/$libname.def'
13652       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13653         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13654         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13655         $ECHO EXPORTS >> $output_objdir/$libname.def~
13656         prefix_cmds="$SED"~
13657         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13658           prefix_cmds="$prefix_cmds -e 1d";
13659         fi~
13660         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13661         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13662         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13663         emximp -o $lib $output_objdir/$libname.def'
13664       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13665       enable_shared_with_static_runtimes=yes
13666       ;;
13667
13668     osf3*)
13669       if test yes = "$GCC"; then
13670         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13671         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'
13672       else
13673         allow_undefined_flag=' -expect_unresolved \*'
13674         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'
13675       fi
13676       archive_cmds_need_lc='no'
13677       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13678       hardcode_libdir_separator=:
13679       ;;
13680
13681     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13682       if test yes = "$GCC"; then
13683         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13684         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'
13685         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13686       else
13687         allow_undefined_flag=' -expect_unresolved \*'
13688         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'
13689         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~
13690           $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'
13691
13692         # Both c and cxx compiler support -rpath directly
13693         hardcode_libdir_flag_spec='-rpath $libdir'
13694       fi
13695       archive_cmds_need_lc='no'
13696       hardcode_libdir_separator=:
13697       ;;
13698
13699     solaris*)
13700       no_undefined_flag=' -z defs'
13701       if test yes = "$GCC"; then
13702         wlarc='$wl'
13703         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13704         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13705           $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'
13706       else
13707         case `$CC -V 2>&1` in
13708         *"Compilers 5.0"*)
13709           wlarc=''
13710           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13711           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13712             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13713           ;;
13714         *)
13715           wlarc='$wl'
13716           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13717           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13719           ;;
13720         esac
13721       fi
13722       hardcode_libdir_flag_spec='-R$libdir'
13723       hardcode_shlibpath_var=no
13724       case $host_os in
13725       solaris2.[0-5] | solaris2.[0-5].*) ;;
13726       *)
13727         # The compiler driver will combine and reorder linker options,
13728         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13729         # but is careful enough not to reorder.
13730         # Supported since Solaris 2.6 (maybe 2.5.1?)
13731         if test yes = "$GCC"; then
13732           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13733         else
13734           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13735         fi
13736         ;;
13737       esac
13738       link_all_deplibs=yes
13739       ;;
13740
13741     sunos4*)
13742       if test sequent = "$host_vendor"; then
13743         # Use $CC to link under sequent, because it throws in some extra .o
13744         # files that make .init and .fini sections work.
13745         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13746       else
13747         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13748       fi
13749       hardcode_libdir_flag_spec='-L$libdir'
13750       hardcode_direct=yes
13751       hardcode_minus_L=yes
13752       hardcode_shlibpath_var=no
13753       ;;
13754
13755     sysv4)
13756       case $host_vendor in
13757         sni)
13758           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13759           hardcode_direct=yes # is this really true???
13760         ;;
13761         siemens)
13762           ## LD is ld it makes a PLAMLIB
13763           ## CC just makes a GrossModule.
13764           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13765           reload_cmds='$CC -r -o $output$reload_objs'
13766           hardcode_direct=no
13767         ;;
13768         motorola)
13769           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13771         ;;
13772       esac
13773       runpath_var='LD_RUN_PATH'
13774       hardcode_shlibpath_var=no
13775       ;;
13776
13777     sysv4.3*)
13778       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13779       hardcode_shlibpath_var=no
13780       export_dynamic_flag_spec='-Bexport'
13781       ;;
13782
13783     sysv4*MP*)
13784       if test -d /usr/nec; then
13785         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13786         hardcode_shlibpath_var=no
13787         runpath_var=LD_RUN_PATH
13788         hardcode_runpath_var=yes
13789         ld_shlibs=yes
13790       fi
13791       ;;
13792
13793     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13794       no_undefined_flag='$wl-z,text'
13795       archive_cmds_need_lc=no
13796       hardcode_shlibpath_var=no
13797       runpath_var='LD_RUN_PATH'
13798
13799       if test yes = "$GCC"; then
13800         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13802       else
13803         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805       fi
13806       ;;
13807
13808     sysv5* | sco3.2v5* | sco5v6*)
13809       # Note: We CANNOT use -z defs as we might desire, because we do not
13810       # link with -lc, and that would cause any symbols used from libc to
13811       # always be unresolved, which means just about no library would
13812       # ever link correctly.  If we're not using GNU ld we use -z text
13813       # though, which does catch some bad symbols but isn't as heavy-handed
13814       # as -z defs.
13815       no_undefined_flag='$wl-z,text'
13816       allow_undefined_flag='$wl-z,nodefs'
13817       archive_cmds_need_lc=no
13818       hardcode_shlibpath_var=no
13819       hardcode_libdir_flag_spec='$wl-R,$libdir'
13820       hardcode_libdir_separator=':'
13821       link_all_deplibs=yes
13822       export_dynamic_flag_spec='$wl-Bexport'
13823       runpath_var='LD_RUN_PATH'
13824
13825       if test yes = "$GCC"; then
13826         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828       else
13829         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831       fi
13832       ;;
13833
13834     uts4*)
13835       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836       hardcode_libdir_flag_spec='-L$libdir'
13837       hardcode_shlibpath_var=no
13838       ;;
13839
13840     *)
13841       ld_shlibs=no
13842       ;;
13843     esac
13844
13845     if test sni = "$host_vendor"; then
13846       case $host in
13847       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13848         export_dynamic_flag_spec='$wl-Blargedynsym'
13849         ;;
13850       esac
13851     fi
13852   fi
13853
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13855 printf "%s\n" "$ld_shlibs" >&6; }
13856 test no = "$ld_shlibs" && can_build_shared=no
13857
13858 with_gnu_ld=$with_gnu_ld
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874 #
13875 # Do we need to explicitly link libc?
13876 #
13877 case "x$archive_cmds_need_lc" in
13878 x|xyes)
13879   # Assume -lc should be added
13880   archive_cmds_need_lc=yes
13881
13882   if test yes,yes = "$GCC,$enable_shared"; then
13883     case $archive_cmds in
13884     *'~'*)
13885       # FIXME: we may have to deal with multi-command sequences.
13886       ;;
13887     '$CC '*)
13888       # Test whether the compiler implicitly links with -lc since on some
13889       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13890       # to ld, don't add -lc before -lgcc.
13891       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13892 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13893 if test ${lt_cv_archive_cmds_need_lc+y}
13894 then :
13895   printf %s "(cached) " >&6
13896 else $as_nop
13897   $RM conftest*
13898         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13899
13900         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13901   (eval $ac_compile) 2>&5
13902   ac_status=$?
13903   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13904   test $ac_status = 0; } 2>conftest.err; then
13905           soname=conftest
13906           lib=conftest
13907           libobjs=conftest.$ac_objext
13908           deplibs=
13909           wl=$lt_prog_compiler_wl
13910           pic_flag=$lt_prog_compiler_pic
13911           compiler_flags=-v
13912           linker_flags=-v
13913           verstring=
13914           output_objdir=.
13915           libname=conftest
13916           lt_save_allow_undefined_flag=$allow_undefined_flag
13917           allow_undefined_flag=
13918           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13919   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13920   ac_status=$?
13921   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13922   test $ac_status = 0; }
13923           then
13924             lt_cv_archive_cmds_need_lc=no
13925           else
13926             lt_cv_archive_cmds_need_lc=yes
13927           fi
13928           allow_undefined_flag=$lt_save_allow_undefined_flag
13929         else
13930           cat conftest.err 1>&5
13931         fi
13932         $RM conftest*
13933
13934 fi
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13936 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13937       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13938       ;;
13939     esac
13940   fi
13941   ;;
13942 esac
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14096 printf %s "checking dynamic linker characteristics... " >&6; }
14097
14098 if test yes = "$GCC"; then
14099   case $host_os in
14100     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14101     *) lt_awk_arg='/^libraries:/' ;;
14102   esac
14103   case $host_os in
14104     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14105     *) lt_sed_strip_eq='s|=/|/|g' ;;
14106   esac
14107   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14108   case $lt_search_path_spec in
14109   *\;*)
14110     # if the path contains ";" then we assume it to be the separator
14111     # otherwise default to the standard path separator (i.e. ":") - it is
14112     # assumed that no part of a normal pathname contains ";" but that should
14113     # okay in the real world where ";" in dirpaths is itself problematic.
14114     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14115     ;;
14116   *)
14117     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14118     ;;
14119   esac
14120   # Ok, now we have the path, separated by spaces, we can step through it
14121   # and add multilib dir if necessary...
14122   lt_tmp_lt_search_path_spec=
14123   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14124   # ...but if some path component already ends with the multilib dir we assume
14125   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14126   case "$lt_multi_os_dir; $lt_search_path_spec " in
14127   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14128     lt_multi_os_dir=
14129     ;;
14130   esac
14131   for lt_sys_path in $lt_search_path_spec; do
14132     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14133       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14134     elif test -n "$lt_multi_os_dir"; then
14135       test -d "$lt_sys_path" && \
14136         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14137     fi
14138   done
14139   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14140 BEGIN {RS = " "; FS = "/|\n";} {
14141   lt_foo = "";
14142   lt_count = 0;
14143   for (lt_i = NF; lt_i > 0; lt_i--) {
14144     if ($lt_i != "" && $lt_i != ".") {
14145       if ($lt_i == "..") {
14146         lt_count++;
14147       } else {
14148         if (lt_count == 0) {
14149           lt_foo = "/" $lt_i lt_foo;
14150         } else {
14151           lt_count--;
14152         }
14153       }
14154     }
14155   }
14156   if (lt_foo != "") { lt_freq[lt_foo]++; }
14157   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14158 }'`
14159   # AWK program above erroneously prepends '/' to C:/dos/paths
14160   # for these hosts.
14161   case $host_os in
14162     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14163       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14164   esac
14165   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14166 else
14167   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14168 fi
14169 library_names_spec=
14170 libname_spec='lib$name'
14171 soname_spec=
14172 shrext_cmds=.so
14173 postinstall_cmds=
14174 postuninstall_cmds=
14175 finish_cmds=
14176 finish_eval=
14177 shlibpath_var=
14178 shlibpath_overrides_runpath=unknown
14179 version_type=none
14180 dynamic_linker="$host_os ld.so"
14181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14182 need_lib_prefix=unknown
14183 hardcode_into_libs=no
14184
14185 # when you set need_version to no, make sure it does not cause -set_version
14186 # flags to be left without arguments
14187 need_version=unknown
14188
14189
14190
14191 case $host_os in
14192 aix3*)
14193   version_type=linux # correct to gnu/linux during the next big refactor
14194   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14195   shlibpath_var=LIBPATH
14196
14197   # AIX 3 has no versioning support, so we append a major version to the name.
14198   soname_spec='$libname$release$shared_ext$major'
14199   ;;
14200
14201 aix[4-9]*)
14202   version_type=linux # correct to gnu/linux during the next big refactor
14203   need_lib_prefix=no
14204   need_version=no
14205   hardcode_into_libs=yes
14206   if test ia64 = "$host_cpu"; then
14207     # AIX 5 supports IA64
14208     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14209     shlibpath_var=LD_LIBRARY_PATH
14210   else
14211     # With GCC up to 2.95.x, collect2 would create an import file
14212     # for dependence libraries.  The import file would start with
14213     # the line '#! .'.  This would cause the generated library to
14214     # depend on '.', always an invalid library.  This was fixed in
14215     # development snapshots of GCC prior to 3.0.
14216     case $host_os in
14217       aix4 | aix4.[01] | aix4.[01].*)
14218       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14219            echo ' yes '
14220            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14221         :
14222       else
14223         can_build_shared=no
14224       fi
14225       ;;
14226     esac
14227     # Using Import Files as archive members, it is possible to support
14228     # filename-based versioning of shared library archives on AIX. While
14229     # this would work for both with and without runtime linking, it will
14230     # prevent static linking of such archives. So we do filename-based
14231     # shared library versioning with .so extension only, which is used
14232     # when both runtime linking and shared linking is enabled.
14233     # Unfortunately, runtime linking may impact performance, so we do
14234     # not want this to be the default eventually. Also, we use the
14235     # versioned .so libs for executables only if there is the -brtl
14236     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14237     # To allow for filename-based versioning support, we need to create
14238     # libNAME.so.V as an archive file, containing:
14239     # *) an Import File, referring to the versioned filename of the
14240     #    archive as well as the shared archive member, telling the
14241     #    bitwidth (32 or 64) of that shared object, and providing the
14242     #    list of exported symbols of that shared object, eventually
14243     #    decorated with the 'weak' keyword
14244     # *) the shared object with the F_LOADONLY flag set, to really avoid
14245     #    it being seen by the linker.
14246     # At run time we better use the real file rather than another symlink,
14247     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14248
14249     case $with_aix_soname,$aix_use_runtimelinking in
14250     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14251     # soname into executable. Probably we can add versioning support to
14252     # collect2, so additional links can be useful in future.
14253     aix,yes) # traditional libtool
14254       dynamic_linker='AIX unversionable lib.so'
14255       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14256       # instead of lib<name>.a to let people know that these are not
14257       # typical AIX shared libraries.
14258       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14259       ;;
14260     aix,no) # traditional AIX only
14261       dynamic_linker='AIX lib.a(lib.so.V)'
14262       # We preserve .a as extension for shared libraries through AIX4.2
14263       # and later when we are not doing run time linking.
14264       library_names_spec='$libname$release.a $libname.a'
14265       soname_spec='$libname$release$shared_ext$major'
14266       ;;
14267     svr4,*) # full svr4 only
14268       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14269       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14270       # We do not specify a path in Import Files, so LIBPATH fires.
14271       shlibpath_overrides_runpath=yes
14272       ;;
14273     *,yes) # both, prefer svr4
14274       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14275       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14276       # unpreferred sharedlib libNAME.a needs extra handling
14277       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"'
14278       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"'
14279       # We do not specify a path in Import Files, so LIBPATH fires.
14280       shlibpath_overrides_runpath=yes
14281       ;;
14282     *,no) # both, prefer aix
14283       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14284       library_names_spec='$libname$release.a $libname.a'
14285       soname_spec='$libname$release$shared_ext$major'
14286       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14287       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)'
14288       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"'
14289       ;;
14290     esac
14291     shlibpath_var=LIBPATH
14292   fi
14293   ;;
14294
14295 amigaos*)
14296   case $host_cpu in
14297   powerpc)
14298     # Since July 2007 AmigaOS4 officially supports .so libraries.
14299     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14300     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14301     ;;
14302   m68k)
14303     library_names_spec='$libname.ixlibrary $libname.a'
14304     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14305     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'
14306     ;;
14307   esac
14308   ;;
14309
14310 beos*)
14311   library_names_spec='$libname$shared_ext'
14312   dynamic_linker="$host_os ld.so"
14313   shlibpath_var=LIBRARY_PATH
14314   ;;
14315
14316 bsdi[45]*)
14317   version_type=linux # correct to gnu/linux during the next big refactor
14318   need_version=no
14319   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14320   soname_spec='$libname$release$shared_ext$major'
14321   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14322   shlibpath_var=LD_LIBRARY_PATH
14323   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14324   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14325   # the default ld.so.conf also contains /usr/contrib/lib and
14326   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14327   # libtool to hard-code these into programs
14328   ;;
14329
14330 cygwin* | mingw* | pw32* | cegcc*)
14331   version_type=windows
14332   shrext_cmds=.dll
14333   need_version=no
14334   need_lib_prefix=no
14335
14336   case $GCC,$cc_basename in
14337   yes,*)
14338     # gcc
14339     library_names_spec='$libname.dll.a'
14340     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14341     postinstall_cmds='base_file=`basename \$file`~
14342       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14343       dldir=$destdir/`dirname \$dlpath`~
14344       test -d \$dldir || mkdir -p \$dldir~
14345       $install_prog $dir/$dlname \$dldir/$dlname~
14346       chmod a+x \$dldir/$dlname~
14347       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14348         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14349       fi'
14350     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14351       dlpath=$dir/\$dldll~
14352        $RM \$dlpath'
14353     shlibpath_overrides_runpath=yes
14354
14355     case $host_os in
14356     cygwin*)
14357       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14358       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14359
14360       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14361       ;;
14362     mingw* | cegcc*)
14363       # MinGW DLLs use traditional 'lib' prefix
14364       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14365       ;;
14366     pw32*)
14367       # pw32 DLLs use 'pw' prefix rather than 'lib'
14368       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14369       ;;
14370     esac
14371     dynamic_linker='Win32 ld.exe'
14372     ;;
14373
14374   *,cl*)
14375     # Native MSVC
14376     libname_spec='$name'
14377     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14378     library_names_spec='$libname.dll.lib'
14379
14380     case $build_os in
14381     mingw*)
14382       sys_lib_search_path_spec=
14383       lt_save_ifs=$IFS
14384       IFS=';'
14385       for lt_path in $LIB
14386       do
14387         IFS=$lt_save_ifs
14388         # Let DOS variable expansion print the short 8.3 style file name.
14389         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14390         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14391       done
14392       IFS=$lt_save_ifs
14393       # Convert to MSYS style.
14394       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14395       ;;
14396     cygwin*)
14397       # Convert to unix form, then to dos form, then back to unix form
14398       # but this time dos style (no spaces!) so that the unix form looks
14399       # like /cygdrive/c/PROGRA~1:/cygdr...
14400       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14401       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14402       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14403       ;;
14404     *)
14405       sys_lib_search_path_spec=$LIB
14406       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14407         # It is most probably a Windows format PATH.
14408         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14409       else
14410         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14411       fi
14412       # FIXME: find the short name or the path components, as spaces are
14413       # common. (e.g. "Program Files" -> "PROGRA~1")
14414       ;;
14415     esac
14416
14417     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14418     postinstall_cmds='base_file=`basename \$file`~
14419       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14420       dldir=$destdir/`dirname \$dlpath`~
14421       test -d \$dldir || mkdir -p \$dldir~
14422       $install_prog $dir/$dlname \$dldir/$dlname'
14423     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14424       dlpath=$dir/\$dldll~
14425        $RM \$dlpath'
14426     shlibpath_overrides_runpath=yes
14427     dynamic_linker='Win32 link.exe'
14428     ;;
14429
14430   *)
14431     # Assume MSVC wrapper
14432     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14433     dynamic_linker='Win32 ld.exe'
14434     ;;
14435   esac
14436   # FIXME: first we should search . and the directory the executable is in
14437   shlibpath_var=PATH
14438   ;;
14439
14440 darwin* | rhapsody*)
14441   dynamic_linker="$host_os dyld"
14442   version_type=darwin
14443   need_lib_prefix=no
14444   need_version=no
14445   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14446   soname_spec='$libname$release$major$shared_ext'
14447   shlibpath_overrides_runpath=yes
14448   shlibpath_var=DYLD_LIBRARY_PATH
14449   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14450
14451   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14452   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14453   ;;
14454
14455 dgux*)
14456   version_type=linux # correct to gnu/linux during the next big refactor
14457   need_lib_prefix=no
14458   need_version=no
14459   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14460   soname_spec='$libname$release$shared_ext$major'
14461   shlibpath_var=LD_LIBRARY_PATH
14462   ;;
14463
14464 freebsd* | dragonfly*)
14465   # DragonFly does not have aout.  When/if they implement a new
14466   # versioning mechanism, adjust this.
14467   if test -x /usr/bin/objformat; then
14468     objformat=`/usr/bin/objformat`
14469   else
14470     case $host_os in
14471     freebsd[23].*) objformat=aout ;;
14472     *) objformat=elf ;;
14473     esac
14474   fi
14475   version_type=freebsd-$objformat
14476   case $version_type in
14477     freebsd-elf*)
14478       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14479       soname_spec='$libname$release$shared_ext$major'
14480       need_version=no
14481       need_lib_prefix=no
14482       ;;
14483     freebsd-*)
14484       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14485       need_version=yes
14486       ;;
14487   esac
14488   shlibpath_var=LD_LIBRARY_PATH
14489   case $host_os in
14490   freebsd2.*)
14491     shlibpath_overrides_runpath=yes
14492     ;;
14493   freebsd3.[01]* | freebsdelf3.[01]*)
14494     shlibpath_overrides_runpath=yes
14495     hardcode_into_libs=yes
14496     ;;
14497   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14498   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14499     shlibpath_overrides_runpath=no
14500     hardcode_into_libs=yes
14501     ;;
14502   *) # from 4.6 on, and DragonFly
14503     shlibpath_overrides_runpath=yes
14504     hardcode_into_libs=yes
14505     ;;
14506   esac
14507   ;;
14508
14509 haiku*)
14510   version_type=linux # correct to gnu/linux during the next big refactor
14511   need_lib_prefix=no
14512   need_version=no
14513   dynamic_linker="$host_os runtime_loader"
14514   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14515   soname_spec='$libname$release$shared_ext$major'
14516   shlibpath_var=LIBRARY_PATH
14517   shlibpath_overrides_runpath=no
14518   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14519   hardcode_into_libs=yes
14520   ;;
14521
14522 hpux9* | hpux10* | hpux11*)
14523   # Give a soname corresponding to the major version so that dld.sl refuses to
14524   # link against other versions.
14525   version_type=sunos
14526   need_lib_prefix=no
14527   need_version=no
14528   case $host_cpu in
14529   ia64*)
14530     shrext_cmds='.so'
14531     hardcode_into_libs=yes
14532     dynamic_linker="$host_os dld.so"
14533     shlibpath_var=LD_LIBRARY_PATH
14534     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14535     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14536     soname_spec='$libname$release$shared_ext$major'
14537     if test 32 = "$HPUX_IA64_MODE"; then
14538       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14539       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14540     else
14541       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14542       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14543     fi
14544     ;;
14545   hppa*64*)
14546     shrext_cmds='.sl'
14547     hardcode_into_libs=yes
14548     dynamic_linker="$host_os dld.sl"
14549     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14551     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14552     soname_spec='$libname$release$shared_ext$major'
14553     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14554     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14555     ;;
14556   *)
14557     shrext_cmds='.sl'
14558     dynamic_linker="$host_os dld.sl"
14559     shlibpath_var=SHLIB_PATH
14560     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14561     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14562     soname_spec='$libname$release$shared_ext$major'
14563     ;;
14564   esac
14565   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14566   postinstall_cmds='chmod 555 $lib'
14567   # or fails outright, so override atomically:
14568   install_override_mode=555
14569   ;;
14570
14571 interix[3-9]*)
14572   version_type=linux # correct to gnu/linux during the next big refactor
14573   need_lib_prefix=no
14574   need_version=no
14575   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14576   soname_spec='$libname$release$shared_ext$major'
14577   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14578   shlibpath_var=LD_LIBRARY_PATH
14579   shlibpath_overrides_runpath=no
14580   hardcode_into_libs=yes
14581   ;;
14582
14583 irix5* | irix6* | nonstopux*)
14584   case $host_os in
14585     nonstopux*) version_type=nonstopux ;;
14586     *)
14587         if test yes = "$lt_cv_prog_gnu_ld"; then
14588                 version_type=linux # correct to gnu/linux during the next big refactor
14589         else
14590                 version_type=irix
14591         fi ;;
14592   esac
14593   need_lib_prefix=no
14594   need_version=no
14595   soname_spec='$libname$release$shared_ext$major'
14596   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14597   case $host_os in
14598   irix5* | nonstopux*)
14599     libsuff= shlibsuff=
14600     ;;
14601   *)
14602     case $LD in # libtool.m4 will add one of these switches to LD
14603     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14604       libsuff= shlibsuff= libmagic=32-bit;;
14605     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14606       libsuff=32 shlibsuff=N32 libmagic=N32;;
14607     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14608       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14609     *) libsuff= shlibsuff= libmagic=never-match;;
14610     esac
14611     ;;
14612   esac
14613   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14614   shlibpath_overrides_runpath=no
14615   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14616   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14617   hardcode_into_libs=yes
14618   ;;
14619
14620 # No shared lib support for Linux oldld, aout, or coff.
14621 linux*oldld* | linux*aout* | linux*coff*)
14622   dynamic_linker=no
14623   ;;
14624
14625 linux*android*)
14626   version_type=none # Android doesn't support versioned libraries.
14627   need_lib_prefix=no
14628   need_version=no
14629   library_names_spec='$libname$release$shared_ext'
14630   soname_spec='$libname$release$shared_ext'
14631   finish_cmds=
14632   shlibpath_var=LD_LIBRARY_PATH
14633   shlibpath_overrides_runpath=yes
14634
14635   # This implies no fast_install, which is unacceptable.
14636   # Some rework will be needed to allow for fast_install
14637   # before this can be enabled.
14638   hardcode_into_libs=yes
14639
14640   dynamic_linker='Android linker'
14641   # Don't embed -rpath directories since the linker doesn't support them.
14642   hardcode_libdir_flag_spec='-L$libdir'
14643   ;;
14644
14645 # This must be glibc/ELF.
14646 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14647   version_type=linux # correct to gnu/linux during the next big refactor
14648   need_lib_prefix=no
14649   need_version=no
14650   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14651   soname_spec='$libname$release$shared_ext$major'
14652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14653   shlibpath_var=LD_LIBRARY_PATH
14654   shlibpath_overrides_runpath=no
14655
14656   # Some binutils ld are patched to set DT_RUNPATH
14657   if test ${lt_cv_shlibpath_overrides_runpath+y}
14658 then :
14659   printf %s "(cached) " >&6
14660 else $as_nop
14661   lt_cv_shlibpath_overrides_runpath=no
14662     save_LDFLAGS=$LDFLAGS
14663     save_libdir=$libdir
14664     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14665          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h.  */
14668
14669 int
14670 main (void)
14671 {
14672
14673   ;
14674   return 0;
14675 }
14676 _ACEOF
14677 if ac_fn_c_try_link "$LINENO"
14678 then :
14679   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14680 then :
14681   lt_cv_shlibpath_overrides_runpath=yes
14682 fi
14683 fi
14684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14685     conftest$ac_exeext conftest.$ac_ext
14686     LDFLAGS=$save_LDFLAGS
14687     libdir=$save_libdir
14688
14689 fi
14690
14691   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14692
14693   # This implies no fast_install, which is unacceptable.
14694   # Some rework will be needed to allow for fast_install
14695   # before this can be enabled.
14696   hardcode_into_libs=yes
14697
14698   # Ideally, we could use ldconfig to report *all* directores which are
14699   # searched for libraries, however this is still not possible.  Aside from not
14700   # being certain /sbin/ldconfig is available, command
14701   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14702   # even though it is searched at run-time.  Try to do the best guess by
14703   # appending ld.so.conf contents (and includes) to the search path.
14704   if test -f /etc/ld.so.conf; then
14705     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' ' '`
14706     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14707   fi
14708
14709   # We used to test for /lib/ld.so.1 and disable shared libraries on
14710   # powerpc, because MkLinux only supported shared libraries with the
14711   # GNU dynamic linker.  Since this was broken with cross compilers,
14712   # most powerpc-linux boxes support dynamic linking these days and
14713   # people can always --disable-shared, the test was removed, and we
14714   # assume the GNU/Linux dynamic linker is in use.
14715   dynamic_linker='GNU/Linux ld.so'
14716   ;;
14717
14718 netbsdelf*-gnu)
14719   version_type=linux
14720   need_lib_prefix=no
14721   need_version=no
14722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14723   soname_spec='${libname}${release}${shared_ext}$major'
14724   shlibpath_var=LD_LIBRARY_PATH
14725   shlibpath_overrides_runpath=no
14726   hardcode_into_libs=yes
14727   dynamic_linker='NetBSD ld.elf_so'
14728   ;;
14729
14730 netbsd*)
14731   version_type=sunos
14732   need_lib_prefix=no
14733   need_version=no
14734   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14735     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14736     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14737     dynamic_linker='NetBSD (a.out) ld.so'
14738   else
14739     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14740     soname_spec='$libname$release$shared_ext$major'
14741     dynamic_linker='NetBSD ld.elf_so'
14742   fi
14743   shlibpath_var=LD_LIBRARY_PATH
14744   shlibpath_overrides_runpath=yes
14745   hardcode_into_libs=yes
14746   ;;
14747
14748 newsos6)
14749   version_type=linux # correct to gnu/linux during the next big refactor
14750   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   shlibpath_overrides_runpath=yes
14753   ;;
14754
14755 *nto* | *qnx*)
14756   version_type=qnx
14757   need_lib_prefix=no
14758   need_version=no
14759   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14760   soname_spec='$libname$release$shared_ext$major'
14761   shlibpath_var=LD_LIBRARY_PATH
14762   shlibpath_overrides_runpath=no
14763   hardcode_into_libs=yes
14764   dynamic_linker='ldqnx.so'
14765   ;;
14766
14767 openbsd* | bitrig*)
14768   version_type=sunos
14769   sys_lib_dlsearch_path_spec=/usr/lib
14770   need_lib_prefix=no
14771   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14772     need_version=no
14773   else
14774     need_version=yes
14775   fi
14776   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14777   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14778   shlibpath_var=LD_LIBRARY_PATH
14779   shlibpath_overrides_runpath=yes
14780   ;;
14781
14782 os2*)
14783   libname_spec='$name'
14784   version_type=windows
14785   shrext_cmds=.dll
14786   need_version=no
14787   need_lib_prefix=no
14788   # OS/2 can only load a DLL with a base name of 8 characters or less.
14789   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14790     v=$($ECHO $release$versuffix | tr -d .-);
14791     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14792     $ECHO $n$v`$shared_ext'
14793   library_names_spec='${libname}_dll.$libext'
14794   dynamic_linker='OS/2 ld.exe'
14795   shlibpath_var=BEGINLIBPATH
14796   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14797   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14798   postinstall_cmds='base_file=`basename \$file`~
14799     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14800     dldir=$destdir/`dirname \$dlpath`~
14801     test -d \$dldir || mkdir -p \$dldir~
14802     $install_prog $dir/$dlname \$dldir/$dlname~
14803     chmod a+x \$dldir/$dlname~
14804     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14805       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14806     fi'
14807   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14808     dlpath=$dir/\$dldll~
14809     $RM \$dlpath'
14810   ;;
14811
14812 osf3* | osf4* | osf5*)
14813   version_type=osf
14814   need_lib_prefix=no
14815   need_version=no
14816   soname_spec='$libname$release$shared_ext$major'
14817   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14818   shlibpath_var=LD_LIBRARY_PATH
14819   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14820   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14821   ;;
14822
14823 rdos*)
14824   dynamic_linker=no
14825   ;;
14826
14827 solaris*)
14828   version_type=linux # correct to gnu/linux during the next big refactor
14829   need_lib_prefix=no
14830   need_version=no
14831   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14832   soname_spec='$libname$release$shared_ext$major'
14833   shlibpath_var=LD_LIBRARY_PATH
14834   shlibpath_overrides_runpath=yes
14835   hardcode_into_libs=yes
14836   # ldd complains unless libraries are executable
14837   postinstall_cmds='chmod +x $lib'
14838   ;;
14839
14840 sunos4*)
14841   version_type=sunos
14842   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14843   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14844   shlibpath_var=LD_LIBRARY_PATH
14845   shlibpath_overrides_runpath=yes
14846   if test yes = "$with_gnu_ld"; then
14847     need_lib_prefix=no
14848   fi
14849   need_version=yes
14850   ;;
14851
14852 sysv4 | sysv4.3*)
14853   version_type=linux # correct to gnu/linux during the next big refactor
14854   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14855   soname_spec='$libname$release$shared_ext$major'
14856   shlibpath_var=LD_LIBRARY_PATH
14857   case $host_vendor in
14858     sni)
14859       shlibpath_overrides_runpath=no
14860       need_lib_prefix=no
14861       runpath_var=LD_RUN_PATH
14862       ;;
14863     siemens)
14864       need_lib_prefix=no
14865       ;;
14866     motorola)
14867       need_lib_prefix=no
14868       need_version=no
14869       shlibpath_overrides_runpath=no
14870       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14871       ;;
14872   esac
14873   ;;
14874
14875 sysv4*MP*)
14876   if test -d /usr/nec; then
14877     version_type=linux # correct to gnu/linux during the next big refactor
14878     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14879     soname_spec='$libname$shared_ext.$major'
14880     shlibpath_var=LD_LIBRARY_PATH
14881   fi
14882   ;;
14883
14884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14885   version_type=sco
14886   need_lib_prefix=no
14887   need_version=no
14888   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14889   soname_spec='$libname$release$shared_ext$major'
14890   shlibpath_var=LD_LIBRARY_PATH
14891   shlibpath_overrides_runpath=yes
14892   hardcode_into_libs=yes
14893   if test yes = "$with_gnu_ld"; then
14894     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14895   else
14896     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14897     case $host_os in
14898       sco3.2v5*)
14899         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14900         ;;
14901     esac
14902   fi
14903   sys_lib_dlsearch_path_spec='/usr/lib'
14904   ;;
14905
14906 tpf*)
14907   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14908   version_type=linux # correct to gnu/linux during the next big refactor
14909   need_lib_prefix=no
14910   need_version=no
14911   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14912   shlibpath_var=LD_LIBRARY_PATH
14913   shlibpath_overrides_runpath=no
14914   hardcode_into_libs=yes
14915   ;;
14916
14917 uts4*)
14918   version_type=linux # correct to gnu/linux during the next big refactor
14919   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14920   soname_spec='$libname$release$shared_ext$major'
14921   shlibpath_var=LD_LIBRARY_PATH
14922   ;;
14923
14924 *)
14925   dynamic_linker=no
14926   ;;
14927 esac
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14929 printf "%s\n" "$dynamic_linker" >&6; }
14930 test no = "$dynamic_linker" && can_build_shared=no
14931
14932 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14933 if test yes = "$GCC"; then
14934   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14935 fi
14936
14937 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14938   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14939 fi
14940
14941 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14942   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14943 fi
14944
14945 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14946 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14947
14948 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14949 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14950
14951 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14952 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15051 printf %s "checking how to hardcode library paths into programs... " >&6; }
15052 hardcode_action=
15053 if test -n "$hardcode_libdir_flag_spec" ||
15054    test -n "$runpath_var" ||
15055    test yes = "$hardcode_automatic"; then
15056
15057   # We can hardcode non-existent directories.
15058   if test no != "$hardcode_direct" &&
15059      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15060      # have to relink, otherwise we might link with an installed library
15061      # when we should be linking with a yet-to-be-installed one
15062      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15063      test no != "$hardcode_minus_L"; then
15064     # Linking always hardcodes the temporary library directory.
15065     hardcode_action=relink
15066   else
15067     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15068     hardcode_action=immediate
15069   fi
15070 else
15071   # We cannot hardcode anything, or else we can only hardcode existing
15072   # directories.
15073   hardcode_action=unsupported
15074 fi
15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15076 printf "%s\n" "$hardcode_action" >&6; }
15077
15078 if test relink = "$hardcode_action" ||
15079    test yes = "$inherit_rpath"; then
15080   # Fast installation is not supported
15081   enable_fast_install=no
15082 elif test yes = "$shlibpath_overrides_runpath" ||
15083      test no = "$enable_shared"; then
15084   # Fast installation is not necessary
15085   enable_fast_install=needless
15086 fi
15087
15088
15089
15090
15091
15092
15093   if test yes != "$enable_dlopen"; then
15094   enable_dlopen=unknown
15095   enable_dlopen_self=unknown
15096   enable_dlopen_self_static=unknown
15097 else
15098   lt_cv_dlopen=no
15099   lt_cv_dlopen_libs=
15100
15101   case $host_os in
15102   beos*)
15103     lt_cv_dlopen=load_add_on
15104     lt_cv_dlopen_libs=
15105     lt_cv_dlopen_self=yes
15106     ;;
15107
15108   mingw* | pw32* | cegcc*)
15109     lt_cv_dlopen=LoadLibrary
15110     lt_cv_dlopen_libs=
15111     ;;
15112
15113   cygwin*)
15114     lt_cv_dlopen=dlopen
15115     lt_cv_dlopen_libs=
15116     ;;
15117
15118   darwin*)
15119     # if libdl is installed we need to link against it
15120     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15121 printf %s "checking for dlopen in -ldl... " >&6; }
15122 if test ${ac_cv_lib_dl_dlopen+y}
15123 then :
15124   printf %s "(cached) " >&6
15125 else $as_nop
15126   ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-ldl  $LIBS"
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h.  */
15130
15131 /* Override any GCC internal prototype to avoid an error.
15132    Use char because int might match the return type of a GCC
15133    builtin and then its argument prototype would still apply.  */
15134 char dlopen ();
15135 int
15136 main (void)
15137 {
15138 return dlopen ();
15139   ;
15140   return 0;
15141 }
15142 _ACEOF
15143 if ac_fn_c_try_link "$LINENO"
15144 then :
15145   ac_cv_lib_dl_dlopen=yes
15146 else $as_nop
15147   ac_cv_lib_dl_dlopen=no
15148 fi
15149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15150     conftest$ac_exeext conftest.$ac_ext
15151 LIBS=$ac_check_lib_save_LIBS
15152 fi
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15154 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15155 if test "x$ac_cv_lib_dl_dlopen" = xyes
15156 then :
15157   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15158 else $as_nop
15159
15160     lt_cv_dlopen=dyld
15161     lt_cv_dlopen_libs=
15162     lt_cv_dlopen_self=yes
15163
15164 fi
15165
15166     ;;
15167
15168   tpf*)
15169     # Don't try to run any link tests for TPF.  We know it's impossible
15170     # because TPF is a cross-compiler, and we know how we open DSOs.
15171     lt_cv_dlopen=dlopen
15172     lt_cv_dlopen_libs=
15173     lt_cv_dlopen_self=no
15174     ;;
15175
15176   *)
15177     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15178 if test "x$ac_cv_func_shl_load" = xyes
15179 then :
15180   lt_cv_dlopen=shl_load
15181 else $as_nop
15182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15183 printf %s "checking for shl_load in -ldld... " >&6; }
15184 if test ${ac_cv_lib_dld_shl_load+y}
15185 then :
15186   printf %s "(cached) " >&6
15187 else $as_nop
15188   ac_check_lib_save_LIBS=$LIBS
15189 LIBS="-ldld  $LIBS"
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h.  */
15192
15193 /* Override any GCC internal prototype to avoid an error.
15194    Use char because int might match the return type of a GCC
15195    builtin and then its argument prototype would still apply.  */
15196 char shl_load ();
15197 int
15198 main (void)
15199 {
15200 return shl_load ();
15201   ;
15202   return 0;
15203 }
15204 _ACEOF
15205 if ac_fn_c_try_link "$LINENO"
15206 then :
15207   ac_cv_lib_dld_shl_load=yes
15208 else $as_nop
15209   ac_cv_lib_dld_shl_load=no
15210 fi
15211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15212     conftest$ac_exeext conftest.$ac_ext
15213 LIBS=$ac_check_lib_save_LIBS
15214 fi
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15216 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15217 if test "x$ac_cv_lib_dld_shl_load" = xyes
15218 then :
15219   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15220 else $as_nop
15221   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15222 if test "x$ac_cv_func_dlopen" = xyes
15223 then :
15224   lt_cv_dlopen=dlopen
15225 else $as_nop
15226   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15227 printf %s "checking for dlopen in -ldl... " >&6; }
15228 if test ${ac_cv_lib_dl_dlopen+y}
15229 then :
15230   printf %s "(cached) " >&6
15231 else $as_nop
15232   ac_check_lib_save_LIBS=$LIBS
15233 LIBS="-ldl  $LIBS"
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h.  */
15236
15237 /* Override any GCC internal prototype to avoid an error.
15238    Use char because int might match the return type of a GCC
15239    builtin and then its argument prototype would still apply.  */
15240 char dlopen ();
15241 int
15242 main (void)
15243 {
15244 return dlopen ();
15245   ;
15246   return 0;
15247 }
15248 _ACEOF
15249 if ac_fn_c_try_link "$LINENO"
15250 then :
15251   ac_cv_lib_dl_dlopen=yes
15252 else $as_nop
15253   ac_cv_lib_dl_dlopen=no
15254 fi
15255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15256     conftest$ac_exeext conftest.$ac_ext
15257 LIBS=$ac_check_lib_save_LIBS
15258 fi
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15260 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15261 if test "x$ac_cv_lib_dl_dlopen" = xyes
15262 then :
15263   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15264 else $as_nop
15265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15266 printf %s "checking for dlopen in -lsvld... " >&6; }
15267 if test ${ac_cv_lib_svld_dlopen+y}
15268 then :
15269   printf %s "(cached) " >&6
15270 else $as_nop
15271   ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lsvld  $LIBS"
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h.  */
15275
15276 /* Override any GCC internal prototype to avoid an error.
15277    Use char because int might match the return type of a GCC
15278    builtin and then its argument prototype would still apply.  */
15279 char dlopen ();
15280 int
15281 main (void)
15282 {
15283 return dlopen ();
15284   ;
15285   return 0;
15286 }
15287 _ACEOF
15288 if ac_fn_c_try_link "$LINENO"
15289 then :
15290   ac_cv_lib_svld_dlopen=yes
15291 else $as_nop
15292   ac_cv_lib_svld_dlopen=no
15293 fi
15294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15295     conftest$ac_exeext conftest.$ac_ext
15296 LIBS=$ac_check_lib_save_LIBS
15297 fi
15298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15299 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15300 if test "x$ac_cv_lib_svld_dlopen" = xyes
15301 then :
15302   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15303 else $as_nop
15304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15305 printf %s "checking for dld_link in -ldld... " >&6; }
15306 if test ${ac_cv_lib_dld_dld_link+y}
15307 then :
15308   printf %s "(cached) " >&6
15309 else $as_nop
15310   ac_check_lib_save_LIBS=$LIBS
15311 LIBS="-ldld  $LIBS"
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h.  */
15314
15315 /* Override any GCC internal prototype to avoid an error.
15316    Use char because int might match the return type of a GCC
15317    builtin and then its argument prototype would still apply.  */
15318 char dld_link ();
15319 int
15320 main (void)
15321 {
15322 return dld_link ();
15323   ;
15324   return 0;
15325 }
15326 _ACEOF
15327 if ac_fn_c_try_link "$LINENO"
15328 then :
15329   ac_cv_lib_dld_dld_link=yes
15330 else $as_nop
15331   ac_cv_lib_dld_dld_link=no
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15334     conftest$ac_exeext conftest.$ac_ext
15335 LIBS=$ac_check_lib_save_LIBS
15336 fi
15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15338 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15339 if test "x$ac_cv_lib_dld_dld_link" = xyes
15340 then :
15341   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15342 fi
15343
15344
15345 fi
15346
15347
15348 fi
15349
15350
15351 fi
15352
15353
15354 fi
15355
15356
15357 fi
15358
15359     ;;
15360   esac
15361
15362   if test no = "$lt_cv_dlopen"; then
15363     enable_dlopen=no
15364   else
15365     enable_dlopen=yes
15366   fi
15367
15368   case $lt_cv_dlopen in
15369   dlopen)
15370     save_CPPFLAGS=$CPPFLAGS
15371     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15372
15373     save_LDFLAGS=$LDFLAGS
15374     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15375
15376     save_LIBS=$LIBS
15377     LIBS="$lt_cv_dlopen_libs $LIBS"
15378
15379     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15380 printf %s "checking whether a program can dlopen itself... " >&6; }
15381 if test ${lt_cv_dlopen_self+y}
15382 then :
15383   printf %s "(cached) " >&6
15384 else $as_nop
15385           if test yes = "$cross_compiling"; then :
15386   lt_cv_dlopen_self=cross
15387 else
15388   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15389   lt_status=$lt_dlunknown
15390   cat > conftest.$ac_ext <<_LT_EOF
15391 #line $LINENO "configure"
15392 #include "confdefs.h"
15393
15394 #if HAVE_DLFCN_H
15395 #include <dlfcn.h>
15396 #endif
15397
15398 #include <stdio.h>
15399
15400 #ifdef RTLD_GLOBAL
15401 #  define LT_DLGLOBAL           RTLD_GLOBAL
15402 #else
15403 #  ifdef DL_GLOBAL
15404 #    define LT_DLGLOBAL         DL_GLOBAL
15405 #  else
15406 #    define LT_DLGLOBAL         0
15407 #  endif
15408 #endif
15409
15410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15411    find out it does not work in some platform. */
15412 #ifndef LT_DLLAZY_OR_NOW
15413 #  ifdef RTLD_LAZY
15414 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15415 #  else
15416 #    ifdef DL_LAZY
15417 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15418 #    else
15419 #      ifdef RTLD_NOW
15420 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15421 #      else
15422 #        ifdef DL_NOW
15423 #          define LT_DLLAZY_OR_NOW      DL_NOW
15424 #        else
15425 #          define LT_DLLAZY_OR_NOW      0
15426 #        endif
15427 #      endif
15428 #    endif
15429 #  endif
15430 #endif
15431
15432 /* When -fvisibility=hidden is used, assume the code has been annotated
15433    correspondingly for the symbols needed.  */
15434 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15435 int fnord () __attribute__((visibility("default")));
15436 #endif
15437
15438 int fnord () { return 42; }
15439 int main ()
15440 {
15441   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15442   int status = $lt_dlunknown;
15443
15444   if (self)
15445     {
15446       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15447       else
15448         {
15449           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15450           else puts (dlerror ());
15451         }
15452       /* dlclose (self); */
15453     }
15454   else
15455     puts (dlerror ());
15456
15457   return status;
15458 }
15459 _LT_EOF
15460   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15461   (eval $ac_link) 2>&5
15462   ac_status=$?
15463   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15464   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15465     (./conftest; exit; ) >&5 2>/dev/null
15466     lt_status=$?
15467     case x$lt_status in
15468       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15469       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15470       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15471     esac
15472   else :
15473     # compilation failed
15474     lt_cv_dlopen_self=no
15475   fi
15476 fi
15477 rm -fr conftest*
15478
15479
15480 fi
15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15482 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15483
15484     if test yes = "$lt_cv_dlopen_self"; then
15485       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15486       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15487 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15488 if test ${lt_cv_dlopen_self_static+y}
15489 then :
15490   printf %s "(cached) " >&6
15491 else $as_nop
15492           if test yes = "$cross_compiling"; then :
15493   lt_cv_dlopen_self_static=cross
15494 else
15495   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15496   lt_status=$lt_dlunknown
15497   cat > conftest.$ac_ext <<_LT_EOF
15498 #line $LINENO "configure"
15499 #include "confdefs.h"
15500
15501 #if HAVE_DLFCN_H
15502 #include <dlfcn.h>
15503 #endif
15504
15505 #include <stdio.h>
15506
15507 #ifdef RTLD_GLOBAL
15508 #  define LT_DLGLOBAL           RTLD_GLOBAL
15509 #else
15510 #  ifdef DL_GLOBAL
15511 #    define LT_DLGLOBAL         DL_GLOBAL
15512 #  else
15513 #    define LT_DLGLOBAL         0
15514 #  endif
15515 #endif
15516
15517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15518    find out it does not work in some platform. */
15519 #ifndef LT_DLLAZY_OR_NOW
15520 #  ifdef RTLD_LAZY
15521 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15522 #  else
15523 #    ifdef DL_LAZY
15524 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15525 #    else
15526 #      ifdef RTLD_NOW
15527 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15528 #      else
15529 #        ifdef DL_NOW
15530 #          define LT_DLLAZY_OR_NOW      DL_NOW
15531 #        else
15532 #          define LT_DLLAZY_OR_NOW      0
15533 #        endif
15534 #      endif
15535 #    endif
15536 #  endif
15537 #endif
15538
15539 /* When -fvisibility=hidden is used, assume the code has been annotated
15540    correspondingly for the symbols needed.  */
15541 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15542 int fnord () __attribute__((visibility("default")));
15543 #endif
15544
15545 int fnord () { return 42; }
15546 int main ()
15547 {
15548   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15549   int status = $lt_dlunknown;
15550
15551   if (self)
15552     {
15553       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15554       else
15555         {
15556           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15557           else puts (dlerror ());
15558         }
15559       /* dlclose (self); */
15560     }
15561   else
15562     puts (dlerror ());
15563
15564   return status;
15565 }
15566 _LT_EOF
15567   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15568   (eval $ac_link) 2>&5
15569   ac_status=$?
15570   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15571   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15572     (./conftest; exit; ) >&5 2>/dev/null
15573     lt_status=$?
15574     case x$lt_status in
15575       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15576       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15577       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15578     esac
15579   else :
15580     # compilation failed
15581     lt_cv_dlopen_self_static=no
15582   fi
15583 fi
15584 rm -fr conftest*
15585
15586
15587 fi
15588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15589 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15590     fi
15591
15592     CPPFLAGS=$save_CPPFLAGS
15593     LDFLAGS=$save_LDFLAGS
15594     LIBS=$save_LIBS
15595     ;;
15596   esac
15597
15598   case $lt_cv_dlopen_self in
15599   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15600   *) enable_dlopen_self=unknown ;;
15601   esac
15602
15603   case $lt_cv_dlopen_self_static in
15604   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15605   *) enable_dlopen_self_static=unknown ;;
15606   esac
15607 fi
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625 striplib=
15626 old_striplib=
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15628 printf %s "checking whether stripping libraries is possible... " >&6; }
15629 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15630   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15631   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15632   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15633 printf "%s\n" "yes" >&6; }
15634 else
15635 # FIXME - insert some real tests, host_os isn't really good enough
15636   case $host_os in
15637   darwin*)
15638     if test -n "$STRIP"; then
15639       striplib="$STRIP -x"
15640       old_striplib="$STRIP -S"
15641       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15642 printf "%s\n" "yes" >&6; }
15643     else
15644       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 printf "%s\n" "no" >&6; }
15646     fi
15647     ;;
15648   *)
15649     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650 printf "%s\n" "no" >&6; }
15651     ;;
15652   esac
15653 fi
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666   # Report what library types will actually be built
15667   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15668 printf %s "checking if libtool supports shared libraries... " >&6; }
15669   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15670 printf "%s\n" "$can_build_shared" >&6; }
15671
15672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15673 printf %s "checking whether to build shared libraries... " >&6; }
15674   test no = "$can_build_shared" && enable_shared=no
15675
15676   # On AIX, shared libraries and static libraries use the same namespace, and
15677   # are all built from PIC.
15678   case $host_os in
15679   aix3*)
15680     test yes = "$enable_shared" && enable_static=no
15681     if test -n "$RANLIB"; then
15682       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15683       postinstall_cmds='$RANLIB $lib'
15684     fi
15685     ;;
15686
15687   aix[4-9]*)
15688     if test ia64 != "$host_cpu"; then
15689       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15690       yes,aix,yes) ;;                   # shared object as lib.so file only
15691       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15692       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15693       esac
15694     fi
15695     ;;
15696   esac
15697   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15698 printf "%s\n" "$enable_shared" >&6; }
15699
15700   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15701 printf %s "checking whether to build static libraries... " >&6; }
15702   # Make sure either enable_shared or enable_static is yes.
15703   test yes = "$enable_shared" || enable_static=yes
15704   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15705 printf "%s\n" "$enable_static" >&6; }
15706
15707
15708
15709
15710 fi
15711 ac_ext=c
15712 ac_cpp='$CPP $CPPFLAGS'
15713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15716
15717 CC=$lt_save_CC
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733         ac_config_commands="$ac_config_commands libtool"
15734
15735
15736
15737
15738 # Only expand once:
15739
15740
15741
15742
15743 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15744         if test -n "$ac_tool_prefix"; then
15745   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15746 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15748 printf %s "checking for $ac_word... " >&6; }
15749 if test ${ac_cv_path_PKG_CONFIG+y}
15750 then :
15751   printf %s "(cached) " >&6
15752 else $as_nop
15753   case $PKG_CONFIG in
15754   [\\/]* | ?:[\\/]*)
15755   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15756   ;;
15757   *)
15758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15759 for as_dir in $PATH
15760 do
15761   IFS=$as_save_IFS
15762   case $as_dir in #(((
15763     '') as_dir=./ ;;
15764     */) ;;
15765     *) as_dir=$as_dir/ ;;
15766   esac
15767     for ac_exec_ext in '' $ac_executable_extensions; do
15768   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15769     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15770     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15771     break 2
15772   fi
15773 done
15774   done
15775 IFS=$as_save_IFS
15776
15777   ;;
15778 esac
15779 fi
15780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15781 if test -n "$PKG_CONFIG"; then
15782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15783 printf "%s\n" "$PKG_CONFIG" >&6; }
15784 else
15785   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786 printf "%s\n" "no" >&6; }
15787 fi
15788
15789
15790 fi
15791 if test -z "$ac_cv_path_PKG_CONFIG"; then
15792   ac_pt_PKG_CONFIG=$PKG_CONFIG
15793   # Extract the first word of "pkg-config", so it can be a program name with args.
15794 set dummy pkg-config; ac_word=$2
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15796 printf %s "checking for $ac_word... " >&6; }
15797 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15798 then :
15799   printf %s "(cached) " >&6
15800 else $as_nop
15801   case $ac_pt_PKG_CONFIG in
15802   [\\/]* | ?:[\\/]*)
15803   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15804   ;;
15805   *)
15806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 for as_dir in $PATH
15808 do
15809   IFS=$as_save_IFS
15810   case $as_dir in #(((
15811     '') as_dir=./ ;;
15812     */) ;;
15813     *) as_dir=$as_dir/ ;;
15814   esac
15815     for ac_exec_ext in '' $ac_executable_extensions; do
15816   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15817     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15818     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15819     break 2
15820   fi
15821 done
15822   done
15823 IFS=$as_save_IFS
15824
15825   ;;
15826 esac
15827 fi
15828 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15829 if test -n "$ac_pt_PKG_CONFIG"; then
15830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15831 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15832 else
15833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834 printf "%s\n" "no" >&6; }
15835 fi
15836
15837   if test "x$ac_pt_PKG_CONFIG" = x; then
15838     PKG_CONFIG=""
15839   else
15840     case $cross_compiling:$ac_tool_warned in
15841 yes:)
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15844 ac_tool_warned=yes ;;
15845 esac
15846     PKG_CONFIG=$ac_pt_PKG_CONFIG
15847   fi
15848 else
15849   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15850 fi
15851
15852 fi
15853 if test -n "$PKG_CONFIG"; then
15854         _pkg_min_version=0.9.0
15855         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15856 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15857         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15858                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15859 printf "%s\n" "yes" >&6; }
15860         else
15861                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15862 printf "%s\n" "no" >&6; }
15863                 PKG_CONFIG=""
15864         fi
15865
15866 fi
15867
15868
15869
15870   gtk_doc_requires="gtk-doc >= 1.2"
15871   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
15872 printf %s "checking for gtk-doc... " >&6; }
15873   if test -n "$PKG_CONFIG" && \
15874     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
15875   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
15876   ac_status=$?
15877   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15878   test $ac_status = 0; }; then
15879   have_gtk_doc=yes
15880 else
15881   have_gtk_doc=no
15882 fi
15883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
15884 printf "%s\n" "$have_gtk_doc" >&6; }
15885
15886   if test "$have_gtk_doc" = "no"; then
15887       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15888   You will not be able to create source packages with 'make dist'
15889   because $gtk_doc_requires is not found." >&5
15890 printf "%s\n" "$as_me: WARNING:
15891   You will not be able to create source packages with 'make dist'
15892   because $gtk_doc_requires is not found." >&2;}
15893   fi
15894
15895             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
15896 set dummy gtkdoc-check; ac_word=$2
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15898 printf %s "checking for $ac_word... " >&6; }
15899 if test ${ac_cv_prog_GTKDOC_CHECK+y}
15900 then :
15901   printf %s "(cached) " >&6
15902 else $as_nop
15903   if test -n "$GTKDOC_CHECK"; then
15904   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
15905 else
15906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15907 for as_dir in $PATH
15908 do
15909   IFS=$as_save_IFS
15910   case $as_dir in #(((
15911     '') as_dir=./ ;;
15912     */) ;;
15913     *) as_dir=$as_dir/ ;;
15914   esac
15915     for ac_exec_ext in '' $ac_executable_extensions; do
15916   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15917     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
15918     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15919     break 2
15920   fi
15921 done
15922   done
15923 IFS=$as_save_IFS
15924
15925 fi
15926 fi
15927 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
15928 if test -n "$GTKDOC_CHECK"; then
15929   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
15930 printf "%s\n" "$GTKDOC_CHECK" >&6; }
15931 else
15932   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933 printf "%s\n" "no" >&6; }
15934 fi
15935
15936
15937   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
15938 set dummy gtkdoc-check; ac_word=$2
15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15940 printf %s "checking for $ac_word... " >&6; }
15941 if test ${ac_cv_path_GTKDOC_CHECK_PATH+y}
15942 then :
15943   printf %s "(cached) " >&6
15944 else $as_nop
15945   case $GTKDOC_CHECK_PATH in
15946   [\\/]* | ?:[\\/]*)
15947   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
15948   ;;
15949   *)
15950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15952 do
15953   IFS=$as_save_IFS
15954   case $as_dir in #(((
15955     '') as_dir=./ ;;
15956     */) ;;
15957     *) as_dir=$as_dir/ ;;
15958   esac
15959     for ac_exec_ext in '' $ac_executable_extensions; do
15960   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15961     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir$ac_word$ac_exec_ext"
15962     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15963     break 2
15964   fi
15965 done
15966   done
15967 IFS=$as_save_IFS
15968
15969   ;;
15970 esac
15971 fi
15972 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
15973 if test -n "$GTKDOC_CHECK_PATH"; then
15974   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
15975 printf "%s\n" "$GTKDOC_CHECK_PATH" >&6; }
15976 else
15977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 printf "%s\n" "no" >&6; }
15979 fi
15980
15981
15982   for ac_prog in gtkdoc-rebase
15983 do
15984   # Extract the first word of "$ac_prog", so it can be a program name with args.
15985 set dummy $ac_prog; ac_word=$2
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15987 printf %s "checking for $ac_word... " >&6; }
15988 if test ${ac_cv_path_GTKDOC_REBASE+y}
15989 then :
15990   printf %s "(cached) " >&6
15991 else $as_nop
15992   case $GTKDOC_REBASE in
15993   [\\/]* | ?:[\\/]*)
15994   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
15995   ;;
15996   *)
15997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
15999 do
16000   IFS=$as_save_IFS
16001   case $as_dir in #(((
16002     '') as_dir=./ ;;
16003     */) ;;
16004     *) as_dir=$as_dir/ ;;
16005   esac
16006     for ac_exec_ext in '' $ac_executable_extensions; do
16007   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16008     ac_cv_path_GTKDOC_REBASE="$as_dir$ac_word$ac_exec_ext"
16009     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16010     break 2
16011   fi
16012 done
16013   done
16014 IFS=$as_save_IFS
16015
16016   ;;
16017 esac
16018 fi
16019 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
16020 if test -n "$GTKDOC_REBASE"; then
16021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
16022 printf "%s\n" "$GTKDOC_REBASE" >&6; }
16023 else
16024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025 printf "%s\n" "no" >&6; }
16026 fi
16027
16028
16029   test -n "$GTKDOC_REBASE" && break
16030 done
16031 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
16032
16033   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
16034 set dummy gtkdoc-mkpdf; ac_word=$2
16035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16036 printf %s "checking for $ac_word... " >&6; }
16037 if test ${ac_cv_path_GTKDOC_MKPDF+y}
16038 then :
16039   printf %s "(cached) " >&6
16040 else $as_nop
16041   case $GTKDOC_MKPDF in
16042   [\\/]* | ?:[\\/]*)
16043   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
16044   ;;
16045   *)
16046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047 for as_dir in $PATH
16048 do
16049   IFS=$as_save_IFS
16050   case $as_dir in #(((
16051     '') as_dir=./ ;;
16052     */) ;;
16053     *) as_dir=$as_dir/ ;;
16054   esac
16055     for ac_exec_ext in '' $ac_executable_extensions; do
16056   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16057     ac_cv_path_GTKDOC_MKPDF="$as_dir$ac_word$ac_exec_ext"
16058     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16059     break 2
16060   fi
16061 done
16062   done
16063 IFS=$as_save_IFS
16064
16065   ;;
16066 esac
16067 fi
16068 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
16069 if test -n "$GTKDOC_MKPDF"; then
16070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
16071 printf "%s\n" "$GTKDOC_MKPDF" >&6; }
16072 else
16073   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 printf "%s\n" "no" >&6; }
16075 fi
16076
16077
16078
16079
16080 # Check whether --with-html-dir was given.
16081 if test ${with_html_dir+y}
16082 then :
16083   withval=$with_html_dir;
16084 else $as_nop
16085   with_html_dir='${datadir}/gtk-doc/html'
16086 fi
16087
16088   HTML_DIR="$with_html_dir"
16089
16090
16091     # Check whether --enable-gtk-doc was given.
16092 if test ${enable_gtk_doc+y}
16093 then :
16094   enableval=$enable_gtk_doc;
16095 else $as_nop
16096   enable_gtk_doc=no
16097 fi
16098
16099
16100   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
16101 printf %s "checking whether to build gtk-doc documentation... " >&6; }
16102   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
16103 printf "%s\n" "$enable_gtk_doc" >&6; }
16104
16105   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
16106     as_fn_error $? "
16107   You must have $gtk_doc_requires installed to build documentation for
16108   $PACKAGE_NAME. Please install gtk-doc or disable building the
16109   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
16110   fi
16111
16112     if test "x$PACKAGE_NAME" != "xglib"; then
16113
16114 pkg_failed=no
16115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
16116 printf %s "checking for GTKDOC_DEPS... " >&6; }
16117
16118 if test -n "$PKG_CONFIG"; then
16119     if test -n "$GTKDOC_DEPS_CFLAGS"; then
16120         pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
16121     else
16122         if test -n "$PKG_CONFIG" && \
16123     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
16124   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
16125   ac_status=$?
16126   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16127   test $ac_status = 0; }; then
16128   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
16129 else
16130   pkg_failed=yes
16131 fi
16132     fi
16133 else
16134         pkg_failed=untried
16135 fi
16136 if test -n "$PKG_CONFIG"; then
16137     if test -n "$GTKDOC_DEPS_LIBS"; then
16138         pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
16139     else
16140         if test -n "$PKG_CONFIG" && \
16141     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
16142   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
16143   ac_status=$?
16144   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16145   test $ac_status = 0; }; then
16146   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
16147 else
16148   pkg_failed=yes
16149 fi
16150     fi
16151 else
16152         pkg_failed=untried
16153 fi
16154
16155
16156
16157 if test $pkg_failed = yes; then
16158
16159 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16160         _pkg_short_errors_supported=yes
16161 else
16162         _pkg_short_errors_supported=no
16163 fi
16164         if test $_pkg_short_errors_supported = yes; then
16165                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
16166         else
16167                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
16168         fi
16169         # Put the nasty error message in config.log where it belongs
16170         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
16171
16172         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 printf "%s\n" "no" >&6; }
16174                 :
16175 elif test $pkg_failed = untried; then
16176         :
16177 else
16178         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
16179         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
16180         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16181 printf "%s\n" "yes" >&6; }
16182         :
16183 fi
16184   fi
16185
16186     # Check whether --enable-gtk-doc-html was given.
16187 if test ${enable_gtk_doc_html+y}
16188 then :
16189   enableval=$enable_gtk_doc_html;
16190 else $as_nop
16191   enable_gtk_doc_html=yes
16192 fi
16193
16194     # Check whether --enable-gtk-doc-pdf was given.
16195 if test ${enable_gtk_doc_pdf+y}
16196 then :
16197   enableval=$enable_gtk_doc_pdf;
16198 else $as_nop
16199   enable_gtk_doc_pdf=no
16200 fi
16201
16202
16203   if test -z "$GTKDOC_MKPDF"; then
16204     enable_gtk_doc_pdf=no
16205   fi
16206
16207   if test -z "$AM_DEFAULT_VERBOSITY"; then
16208     AM_DEFAULT_VERBOSITY=1
16209   fi
16210
16211
16212    if test x$have_gtk_doc = xyes; then
16213   HAVE_GTK_DOC_TRUE=
16214   HAVE_GTK_DOC_FALSE='#'
16215 else
16216   HAVE_GTK_DOC_TRUE='#'
16217   HAVE_GTK_DOC_FALSE=
16218 fi
16219
16220    if test x$enable_gtk_doc = xyes; then
16221   ENABLE_GTK_DOC_TRUE=
16222   ENABLE_GTK_DOC_FALSE='#'
16223 else
16224   ENABLE_GTK_DOC_TRUE='#'
16225   ENABLE_GTK_DOC_FALSE=
16226 fi
16227
16228    if test x$enable_gtk_doc_html = xyes; then
16229   GTK_DOC_BUILD_HTML_TRUE=
16230   GTK_DOC_BUILD_HTML_FALSE='#'
16231 else
16232   GTK_DOC_BUILD_HTML_TRUE='#'
16233   GTK_DOC_BUILD_HTML_FALSE=
16234 fi
16235
16236    if test x$enable_gtk_doc_pdf = xyes; then
16237   GTK_DOC_BUILD_PDF_TRUE=
16238   GTK_DOC_BUILD_PDF_FALSE='#'
16239 else
16240   GTK_DOC_BUILD_PDF_TRUE='#'
16241   GTK_DOC_BUILD_PDF_FALSE=
16242 fi
16243
16244    if test -n "$LIBTOOL"; then
16245   GTK_DOC_USE_LIBTOOL_TRUE=
16246   GTK_DOC_USE_LIBTOOL_FALSE='#'
16247 else
16248   GTK_DOC_USE_LIBTOOL_TRUE='#'
16249   GTK_DOC_USE_LIBTOOL_FALSE=
16250 fi
16251
16252    if test -n "$GTKDOC_REBASE"; then
16253   GTK_DOC_USE_REBASE_TRUE=
16254   GTK_DOC_USE_REBASE_FALSE='#'
16255 else
16256   GTK_DOC_USE_REBASE_TRUE='#'
16257   GTK_DOC_USE_REBASE_FALSE=
16258 fi
16259
16260
16261
16262 # The cast to long int works around a bug in the HP C Compiler
16263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16265 # This bug is HP SR number 8606223364.
16266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
16267 printf %s "checking size of unsigned long int... " >&6; }
16268 if test ${ac_cv_sizeof_unsigned_long_int+y}
16269 then :
16270   printf %s "(cached) " >&6
16271 else $as_nop
16272   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"
16273 then :
16274
16275 else $as_nop
16276   if test "$ac_cv_type_unsigned_long_int" = yes; then
16277      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16278 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16279 as_fn_error 77 "cannot compute sizeof (unsigned long int)
16280 See \`config.log' for more details" "$LINENO" 5; }
16281    else
16282      ac_cv_sizeof_unsigned_long_int=0
16283    fi
16284 fi
16285
16286 fi
16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
16288 printf "%s\n" "$ac_cv_sizeof_unsigned_long_int" >&6; }
16289
16290
16291
16292 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int" >>confdefs.h
16293
16294
16295 # The cast to long int works around a bug in the HP C Compiler
16296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16298 # This bug is HP SR number 8606223364.
16299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16300 printf %s "checking size of unsigned int... " >&6; }
16301 if test ${ac_cv_sizeof_unsigned_int+y}
16302 then :
16303   printf %s "(cached) " >&6
16304 else $as_nop
16305   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"
16306 then :
16307
16308 else $as_nop
16309   if test "$ac_cv_type_unsigned_int" = yes; then
16310      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16311 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16312 as_fn_error 77 "cannot compute sizeof (unsigned int)
16313 See \`config.log' for more details" "$LINENO" 5; }
16314    else
16315      ac_cv_sizeof_unsigned_int=0
16316    fi
16317 fi
16318
16319 fi
16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16321 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
16322
16323
16324
16325 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337                         # Check whether --enable-cross-guesses was given.
16338 if test ${enable_cross_guesses+y}
16339 then :
16340   enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
16341        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
16342 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
16343        enableval=conservative
16344      fi
16345      gl_cross_guesses="$enableval"
16346 else $as_nop
16347   gl_cross_guesses=conservative
16348 fi
16349
16350   if test $gl_cross_guesses = risky; then
16351     gl_cross_guess_normal="guessing yes"
16352     gl_cross_guess_inverted="guessing no"
16353   else
16354     gl_cross_guess_normal="guessing no"
16355     gl_cross_guess_inverted="guessing yes"
16356   fi
16357           LIBC_FATAL_STDERR_=1
16358   export LIBC_FATAL_STDERR_
16359
16360
16361
16362   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5
16363 printf %s "checking whether ctype.h defines __header_inline... " >&6; }
16364 if test ${gl_cv_have___header_inline+y}
16365 then :
16366   printf %s "(cached) " >&6
16367 else $as_nop
16368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h.  */
16370 #include <ctype.h>
16371                          #ifndef __header_inline
16372                           #error "<ctype.h> does not define __header_inline"
16373                          #endif
16374
16375 _ACEOF
16376 if ac_fn_c_try_cpp "$LINENO"
16377 then :
16378   gl_cv_have___header_inline=yes
16379 else $as_nop
16380   gl_cv_have___header_inline=no
16381 fi
16382 rm -f conftest.err conftest.i conftest.$ac_ext
16383 fi
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5
16385 printf "%s\n" "$gl_cv_have___header_inline" >&6; }
16386   if test "$gl_cv_have___header_inline" = yes; then
16387
16388 printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h
16389
16390   fi
16391
16392
16393
16394
16395
16396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16397 printf %s "checking whether the preprocessor supports include_next... " >&6; }
16398 if test ${gl_cv_have_include_next+y}
16399 then :
16400   printf %s "(cached) " >&6
16401 else $as_nop
16402   rm -rf conftestd1a conftestd1b conftestd2
16403      mkdir conftestd1a conftestd1b conftestd2
16404                                                   cat <<EOF > conftestd1a/conftest.h
16405 #define DEFINED_IN_CONFTESTD1
16406 #include_next <conftest.h>
16407 #ifdef DEFINED_IN_CONFTESTD2
16408 int foo;
16409 #else
16410 #error "include_next doesn't work"
16411 #endif
16412 EOF
16413      cat <<EOF > conftestd1b/conftest.h
16414 #define DEFINED_IN_CONFTESTD1
16415 #include <stdio.h>
16416 #include_next <conftest.h>
16417 #ifdef DEFINED_IN_CONFTESTD2
16418 int foo;
16419 #else
16420 #error "include_next doesn't work"
16421 #endif
16422 EOF
16423      cat <<EOF > conftestd2/conftest.h
16424 #ifndef DEFINED_IN_CONFTESTD1
16425 #error "include_next test doesn't work"
16426 #endif
16427 #define DEFINED_IN_CONFTESTD2
16428 EOF
16429      gl_save_CPPFLAGS="$CPPFLAGS"
16430      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16431      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h.  */
16433 #include <conftest.h>
16434 _ACEOF
16435 if ac_fn_c_try_compile "$LINENO"
16436 then :
16437   gl_cv_have_include_next=yes
16438 else $as_nop
16439   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16440         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h.  */
16442 #include <conftest.h>
16443 _ACEOF
16444 if ac_fn_c_try_compile "$LINENO"
16445 then :
16446   gl_cv_have_include_next=buggy
16447 else $as_nop
16448   gl_cv_have_include_next=no
16449 fi
16450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16451
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16454      CPPFLAGS="$gl_save_CPPFLAGS"
16455      rm -rf conftestd1a conftestd1b conftestd2
16456
16457 fi
16458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16459 printf "%s\n" "$gl_cv_have_include_next" >&6; }
16460   PRAGMA_SYSTEM_HEADER=
16461   if test $gl_cv_have_include_next = yes; then
16462     INCLUDE_NEXT=include_next
16463     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16464     if test -n "$GCC"; then
16465       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16466     fi
16467   else
16468     if test $gl_cv_have_include_next = buggy; then
16469       INCLUDE_NEXT=include
16470       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16471     else
16472       INCLUDE_NEXT=include
16473       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16474     fi
16475   fi
16476
16477
16478
16479
16480       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
16481 printf %s "checking whether source code line length is unlimited... " >&6; }
16482 if test ${gl_cv_source_line_length_unlimited+y}
16483 then :
16484   printf %s "(cached) " >&6
16485 else $as_nop
16486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h.  */
16488
16489 #ifdef __TANDEM
16490 choke me
16491 #endif
16492
16493 _ACEOF
16494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16495   $EGREP "choke me" >/dev/null 2>&1
16496 then :
16497   gl_cv_source_line_length_unlimited=no
16498 else $as_nop
16499   gl_cv_source_line_length_unlimited=yes
16500 fi
16501 rm -rf conftest*
16502
16503
16504 fi
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
16506 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
16507   if test $gl_cv_source_line_length_unlimited = no; then
16508     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16509   else
16510     PRAGMA_COLUMNS=
16511   fi
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525      if test $gl_cv_have_include_next = yes; then
16526        gl_cv_next_limits_h='<'limits.h'>'
16527      else
16528        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
16529 printf %s "checking absolute name of <limits.h>... " >&6; }
16530 if test ${gl_cv_next_limits_h+y}
16531 then :
16532   printf %s "(cached) " >&6
16533 else $as_nop
16534
16535              if test $ac_cv_header_limits_h = yes; then
16536
16537
16538
16539
16540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h.  */
16542 #include <limits.h>
16543 _ACEOF
16544                 case "$host_os" in
16545     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16546     *)    gl_absname_cpp="$ac_cpp" ;;
16547   esac
16548
16549   case "$host_os" in
16550     mingw*)
16551                                           gl_dirsep_regex='[/\\]'
16552       ;;
16553     *)
16554       gl_dirsep_regex='\/'
16555       ;;
16556   esac
16557       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16558   gl_header_literal_regex=`echo 'limits.h' \
16559                            | sed -e "$gl_make_literal_regex_sed"`
16560   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16561       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16562       s|^/[^/]|//&|
16563       p
16564       q
16565     }'
16566
16567         gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16568   sed -n "$gl_absolute_header_sed"`
16569
16570           gl_header=$gl_cv_absolute_limits_h
16571           gl_cv_next_limits_h='"'$gl_header'"'
16572           else
16573                gl_cv_next_limits_h='<'limits.h'>'
16574              fi
16575
16576
16577 fi
16578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
16579 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
16580      fi
16581      NEXT_LIMITS_H=$gl_cv_next_limits_h
16582
16583      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16584        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16585        gl_next_as_first_directive='<'limits.h'>'
16586      else
16587        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16588        gl_next_as_first_directive=$gl_cv_next_limits_h
16589      fi
16590      NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
16591
16592
16593
16594
16595
16596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
16597 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
16598 if test ${gl_cv_header_limits_width+y}
16599 then :
16600   printf %s "(cached) " >&6
16601 else $as_nop
16602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h.  */
16604 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
16605              #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
16606             #endif
16607             #include <limits.h>
16608             long long llm = LLONG_MAX;
16609             int wb = WORD_BIT;
16610             int ullw = ULLONG_WIDTH;
16611             int bw = BOOL_WIDTH;
16612
16613 int
16614 main (void)
16615 {
16616
16617   ;
16618   return 0;
16619 }
16620 _ACEOF
16621 if ac_fn_c_try_compile "$LINENO"
16622 then :
16623   gl_cv_header_limits_width=yes
16624 else $as_nop
16625   gl_cv_header_limits_width=no
16626 fi
16627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16628 fi
16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
16630 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
16631   if test "$gl_cv_header_limits_width" = yes; then
16632     GL_GENERATE_LIMITS_H=false
16633   else
16634     GL_GENERATE_LIMITS_H=true
16635   fi
16636
16637
16638
16639
16640
16641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
16642 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
16643 if test ${gl_cv_minmax_in_limits_h+y}
16644 then :
16645   printf %s "(cached) " >&6
16646 else $as_nop
16647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h.  */
16649 #include <limits.h>
16650             int x = MIN (42, 17);
16651 int
16652 main (void)
16653 {
16654
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 if ac_fn_c_try_compile "$LINENO"
16660 then :
16661   gl_cv_minmax_in_limits_h=yes
16662 else $as_nop
16663   gl_cv_minmax_in_limits_h=no
16664 fi
16665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16666 fi
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
16668 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
16669   if test $gl_cv_minmax_in_limits_h = yes; then
16670
16671 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
16672
16673   fi
16674
16675
16676
16677
16678
16679
16680   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
16681 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
16682 if test ${gl_cv_minmax_in_sys_param_h+y}
16683 then :
16684   printf %s "(cached) " >&6
16685 else $as_nop
16686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h.  */
16688 #include <sys/param.h>
16689             int x = MIN (42, 17);
16690 int
16691 main (void)
16692 {
16693
16694   ;
16695   return 0;
16696 }
16697 _ACEOF
16698 if ac_fn_c_try_compile "$LINENO"
16699 then :
16700   gl_cv_minmax_in_sys_param_h=yes
16701 else $as_nop
16702   gl_cv_minmax_in_sys_param_h=no
16703 fi
16704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16705 fi
16706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
16707 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
16708   if test $gl_cv_minmax_in_sys_param_h = yes; then
16709
16710 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
16711
16712   fi
16713
16714
16715
16716
16717
16718     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
16719 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
16720 if test ${gl_cv_c_multiarch+y}
16721 then :
16722   printf %s "(cached) " >&6
16723 else $as_nop
16724   gl_cv_c_multiarch=no
16725      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h.  */
16727 #ifndef __APPLE_CC__
16728             not a universal capable compiler
16729            #endif
16730            typedef int dummy;
16731
16732 _ACEOF
16733 if ac_fn_c_try_compile "$LINENO"
16734 then :
16735
16736                         arch=
16737         prev=
16738         for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16739           if test -n "$prev"; then
16740             case $word in
16741               i?86 | x86_64 | ppc | ppc64 | arm | arm64)
16742                 if test -z "$arch" || test "$arch" = "$word"; then
16743                   arch="$word"
16744                 else
16745                   gl_cv_c_multiarch=yes
16746                 fi
16747                 ;;
16748             esac
16749             prev=
16750           else
16751             if test "x$word" = "x-arch"; then
16752               prev=arch
16753             fi
16754           fi
16755         done
16756
16757 fi
16758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16759
16760 fi
16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
16762 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
16763   if test $gl_cv_c_multiarch = yes; then
16764     APPLE_UNIVERSAL_BUILD=1
16765   else
16766     APPLE_UNIVERSAL_BUILD=0
16767   fi
16768
16769
16770 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16771 if test "x$ac_cv_type__Bool" = xyes
16772 then :
16773
16774 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
16775
16776
16777 fi
16778
16779    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
16780 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
16781 if test ${ac_cv_header_stdbool_h+y}
16782 then :
16783   printf %s "(cached) " >&6
16784 else $as_nop
16785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h.  */
16787 #include <stdbool.h>
16788
16789              /* "true" and "false" should be usable in #if expressions and
16790                 integer constant expressions, and "bool" should be a valid
16791                 type name.
16792
16793                 Although C 1999 requires bool, true, and false to be macros,
16794                 C 2023 and C++ 2011 overrule that, so do not test for that.
16795                 Although C 1999 requires __bool_true_false_are_defined and
16796                 _Bool, C 2023 says they are obsolescent, so do not require
16797                 them.  */
16798
16799              #if !true
16800                #error "'true' is not true"
16801              #endif
16802              #if true != 1
16803                #error "'true' is not equal to 1"
16804              #endif
16805              char b[true == 1 ? 1 : -1];
16806              char c[true];
16807
16808              #if false
16809                #error "'false' is not false"
16810              #endif
16811              #if false != 0
16812                #error "'false' is not equal to 0"
16813              #endif
16814              char d[false == 0 ? 1 : -1];
16815
16816              enum { e = false, f = true, g = false * true, h = true * 256 };
16817
16818              char i[(bool) 0.5 == true ? 1 : -1];
16819              char j[(bool) 0.0 == false ? 1 : -1];
16820              char k[sizeof (bool) > 0 ? 1 : -1];
16821
16822              struct sb { bool s: 1; bool t; } s;
16823              char l[sizeof s.t > 0 ? 1 : -1];
16824
16825              /* The following fails for
16826                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16827              bool m[h];
16828              char n[sizeof m == h * sizeof m[0] ? 1 : -1];
16829              char o[-1 - (bool) 0 < 0 ? 1 : -1];
16830              /* Catch a bug in an HP-UX C compiler.  See
16831                 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16832                 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16833               */
16834              bool p = true;
16835              bool *pp = &p;
16836
16837 int
16838 main (void)
16839 {
16840
16841              bool ps = &s;
16842              *pp |= p;
16843              *pp |= ! p;
16844
16845              /* Refer to every declared value, so they cannot be
16846                 discarded as unused.  */
16847              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
16848                      + !l + !m + !n + !o + !p + !pp + !ps);
16849
16850   ;
16851   return 0;
16852 }
16853 _ACEOF
16854 if ac_fn_c_try_compile "$LINENO"
16855 then :
16856   ac_cv_header_stdbool_h=yes
16857 else $as_nop
16858   ac_cv_header_stdbool_h=no
16859 fi
16860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16861 fi
16862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16863 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
16864
16865
16866     REPLACE_NULL=0;
16867   HAVE_MAX_ALIGN_T=1;
16868   HAVE_WCHAR_T=1;
16869
16870
16871   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
16872 printf %s "checking for wchar_t... " >&6; }
16873 if test ${gt_cv_c_wchar_t+y}
16874 then :
16875   printf %s "(cached) " >&6
16876 else $as_nop
16877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h.  */
16879 #include <stddef.h>
16880             wchar_t foo = (wchar_t)'\0';
16881 int
16882 main (void)
16883 {
16884
16885   ;
16886   return 0;
16887 }
16888 _ACEOF
16889 if ac_fn_c_try_compile "$LINENO"
16890 then :
16891   gt_cv_c_wchar_t=yes
16892 else $as_nop
16893   gt_cv_c_wchar_t=no
16894 fi
16895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16896 fi
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
16898 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
16899   if test $gt_cv_c_wchar_t = yes; then
16900
16901 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
16902
16903   fi
16904
16905
16906
16907
16908
16909
16910
16911   GL_GENERATE_STDDEF_H=false
16912
16913       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
16914 printf %s "checking for good max_align_t... " >&6; }
16915 if test ${gl_cv_type_max_align_t+y}
16916 then :
16917   printf %s "(cached) " >&6
16918 else $as_nop
16919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h.  */
16921 #include <stddef.h>
16922             unsigned int s = sizeof (max_align_t);
16923             #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
16924             int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
16925             int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
16926             #endif
16927             typedef struct { char a; max_align_t b; } max_helper;
16928             typedef struct { char a; long b; } long_helper;
16929             typedef struct { char a; double b; } double_helper;
16930             typedef struct { char a; long double b; } long_double_helper;
16931             int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
16932             int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
16933             int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
16934
16935 int
16936 main (void)
16937 {
16938
16939   ;
16940   return 0;
16941 }
16942 _ACEOF
16943 if ac_fn_c_try_compile "$LINENO"
16944 then :
16945   gl_cv_type_max_align_t=yes
16946 else $as_nop
16947   gl_cv_type_max_align_t=no
16948 fi
16949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16950
16951 fi
16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
16953 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
16954   if test $gl_cv_type_max_align_t = no; then
16955     HAVE_MAX_ALIGN_T=0
16956     GL_GENERATE_STDDEF_H=true
16957   fi
16958
16959   if test $gt_cv_c_wchar_t = no; then
16960     HAVE_WCHAR_T=0
16961     GL_GENERATE_STDDEF_H=true
16962   fi
16963
16964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16965 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
16966 if test ${gl_cv_decl_null_works+y}
16967 then :
16968   printf %s "(cached) " >&6
16969 else $as_nop
16970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h.  */
16972 #include <stddef.h>
16973       int test[2 * (sizeof NULL == sizeof (void *)) -1];
16974
16975 int
16976 main (void)
16977 {
16978
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 if ac_fn_c_try_compile "$LINENO"
16984 then :
16985   gl_cv_decl_null_works=yes
16986 else $as_nop
16987   gl_cv_decl_null_works=no
16988 fi
16989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16990 fi
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16992 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
16993   if test $gl_cv_decl_null_works = no; then
16994     REPLACE_NULL=1
16995     GL_GENERATE_STDDEF_H=true
16996   fi
16997
16998   if $GL_GENERATE_STDDEF_H; then
16999
17000
17001
17002
17003
17004
17005
17006
17007      if test $gl_cv_have_include_next = yes; then
17008        gl_cv_next_stddef_h='<'stddef.h'>'
17009      else
17010        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17011 printf %s "checking absolute name of <stddef.h>... " >&6; }
17012 if test ${gl_cv_next_stddef_h+y}
17013 then :
17014   printf %s "(cached) " >&6
17015 else $as_nop
17016
17017
17018
17019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h.  */
17021 #include <stddef.h>
17022 _ACEOF
17023                 case "$host_os" in
17024     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17025     *)    gl_absname_cpp="$ac_cpp" ;;
17026   esac
17027
17028   case "$host_os" in
17029     mingw*)
17030                                           gl_dirsep_regex='[/\\]'
17031       ;;
17032     *)
17033       gl_dirsep_regex='\/'
17034       ;;
17035   esac
17036       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17037   gl_header_literal_regex=`echo 'stddef.h' \
17038                            | sed -e "$gl_make_literal_regex_sed"`
17039   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17040       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17041       s|^/[^/]|//&|
17042       p
17043       q
17044     }'
17045
17046         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17047   sed -n "$gl_absolute_header_sed"`
17048
17049           gl_header=$gl_cv_absolute_stddef_h
17050           gl_cv_next_stddef_h='"'$gl_header'"'
17051
17052
17053 fi
17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17055 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
17056      fi
17057      NEXT_STDDEF_H=$gl_cv_next_stddef_h
17058
17059      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17060        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17061        gl_next_as_first_directive='<'stddef.h'>'
17062      else
17063        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17064        gl_next_as_first_directive=$gl_cv_next_stddef_h
17065      fi
17066      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17067
17068
17069
17070
17071   fi
17072
17073
17074
17075
17076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17077 printf %s "checking for wint_t... " >&6; }
17078 if test ${gt_cv_c_wint_t+y}
17079 then :
17080   printf %s "(cached) " >&6
17081 else $as_nop
17082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h.  */
17084 #include <wchar.h>
17085             wint_t foo = (wchar_t)'\0';
17086 int
17087 main (void)
17088 {
17089
17090   ;
17091   return 0;
17092 }
17093 _ACEOF
17094 if ac_fn_c_try_compile "$LINENO"
17095 then :
17096   gt_cv_c_wint_t=yes
17097 else $as_nop
17098   gt_cv_c_wint_t=no
17099 fi
17100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17101 fi
17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17103 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
17104   if test $gt_cv_c_wint_t = yes; then
17105
17106 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
17107
17108
17109             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
17110 printf %s "checking whether wint_t is large enough... " >&6; }
17111 if test ${gl_cv_type_wint_t_large_enough+y}
17112 then :
17113   printf %s "(cached) " >&6
17114 else $as_nop
17115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h.  */
17117 #include <wchar.h>
17118               int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
17119
17120 int
17121 main (void)
17122 {
17123
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 if ac_fn_c_try_compile "$LINENO"
17129 then :
17130   gl_cv_type_wint_t_large_enough=yes
17131 else $as_nop
17132   gl_cv_type_wint_t_large_enough=no
17133 fi
17134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17135 fi
17136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
17137 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
17138     if test $gl_cv_type_wint_t_large_enough = no; then
17139       GNULIBHEADERS_OVERRIDE_WINT_T=1
17140     else
17141       GNULIBHEADERS_OVERRIDE_WINT_T=0
17142     fi
17143   else
17144     GNULIBHEADERS_OVERRIDE_WINT_T=0
17145   fi
17146
17147
17148
17149
17150
17151
17152
17153
17154 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17155
17156
17157 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17158
17159
17160
17161   if test $ac_cv_header_wchar_h = yes; then
17162     HAVE_WCHAR_H=1
17163   else
17164     HAVE_WCHAR_H=0
17165   fi
17166
17167
17168
17169   if test $ac_cv_header_inttypes_h = yes; then
17170     HAVE_INTTYPES_H=1
17171   else
17172     HAVE_INTTYPES_H=0
17173   fi
17174
17175
17176
17177   if test $ac_cv_header_sys_types_h = yes; then
17178     HAVE_SYS_TYPES_H=1
17179   else
17180     HAVE_SYS_TYPES_H=0
17181   fi
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193      if test $gl_cv_have_include_next = yes; then
17194        gl_cv_next_stdint_h='<'stdint.h'>'
17195      else
17196        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17197 printf %s "checking absolute name of <stdint.h>... " >&6; }
17198 if test ${gl_cv_next_stdint_h+y}
17199 then :
17200   printf %s "(cached) " >&6
17201 else $as_nop
17202
17203              if test $ac_cv_header_stdint_h = yes; then
17204
17205
17206
17207
17208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h.  */
17210 #include <stdint.h>
17211 _ACEOF
17212                 case "$host_os" in
17213     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17214     *)    gl_absname_cpp="$ac_cpp" ;;
17215   esac
17216
17217   case "$host_os" in
17218     mingw*)
17219                                           gl_dirsep_regex='[/\\]'
17220       ;;
17221     *)
17222       gl_dirsep_regex='\/'
17223       ;;
17224   esac
17225       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17226   gl_header_literal_regex=`echo 'stdint.h' \
17227                            | sed -e "$gl_make_literal_regex_sed"`
17228   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17229       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17230       s|^/[^/]|//&|
17231       p
17232       q
17233     }'
17234
17235         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17236   sed -n "$gl_absolute_header_sed"`
17237
17238           gl_header=$gl_cv_absolute_stdint_h
17239           gl_cv_next_stdint_h='"'$gl_header'"'
17240           else
17241                gl_cv_next_stdint_h='<'stdint.h'>'
17242              fi
17243
17244
17245 fi
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17247 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
17248      fi
17249      NEXT_STDINT_H=$gl_cv_next_stdint_h
17250
17251      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17252        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17253        gl_next_as_first_directive='<'stdint.h'>'
17254      else
17255        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17256        gl_next_as_first_directive=$gl_cv_next_stdint_h
17257      fi
17258      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17259
17260
17261
17262
17263   if test $ac_cv_header_stdint_h = yes; then
17264     HAVE_STDINT_H=1
17265   else
17266     HAVE_STDINT_H=0
17267   fi
17268
17269
17270     if test $ac_cv_header_stdint_h = yes; then
17271     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17272 printf %s "checking whether stdint.h conforms to C99... " >&6; }
17273 if test ${gl_cv_header_working_stdint_h+y}
17274 then :
17275   printf %s "(cached) " >&6
17276 else $as_nop
17277   gl_cv_header_working_stdint_h=no
17278        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h.  */
17280
17281
17282 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17283 #define __STDC_CONSTANT_MACROS 1
17284 #define __STDC_LIMIT_MACROS 1
17285 #include <stdint.h>
17286 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
17287 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17288 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17289 #endif
17290
17291
17292   #include <stddef.h>
17293   #include <signal.h>
17294   #if HAVE_WCHAR_H
17295   # include <wchar.h>
17296   #endif
17297
17298
17299 #ifdef INT8_MAX
17300 int8_t a1 = INT8_MAX;
17301 int8_t a1min = INT8_MIN;
17302 #endif
17303 #ifdef INT16_MAX
17304 int16_t a2 = INT16_MAX;
17305 int16_t a2min = INT16_MIN;
17306 #endif
17307 #ifdef INT32_MAX
17308 int32_t a3 = INT32_MAX;
17309 int32_t a3min = INT32_MIN;
17310 #endif
17311 #ifdef INT64_MAX
17312 int64_t a4 = INT64_MAX;
17313 int64_t a4min = INT64_MIN;
17314 #endif
17315 #ifdef UINT8_MAX
17316 uint8_t b1 = UINT8_MAX;
17317 #else
17318 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17319 #endif
17320 #ifdef UINT16_MAX
17321 uint16_t b2 = UINT16_MAX;
17322 #endif
17323 #ifdef UINT32_MAX
17324 uint32_t b3 = UINT32_MAX;
17325 #endif
17326 #ifdef UINT64_MAX
17327 uint64_t b4 = UINT64_MAX;
17328 #endif
17329 int_least8_t c1 = INT8_C (0x7f);
17330 int_least8_t c1max = INT_LEAST8_MAX;
17331 int_least8_t c1min = INT_LEAST8_MIN;
17332 int_least16_t c2 = INT16_C (0x7fff);
17333 int_least16_t c2max = INT_LEAST16_MAX;
17334 int_least16_t c2min = INT_LEAST16_MIN;
17335 int_least32_t c3 = INT32_C (0x7fffffff);
17336 int_least32_t c3max = INT_LEAST32_MAX;
17337 int_least32_t c3min = INT_LEAST32_MIN;
17338 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17339 int_least64_t c4max = INT_LEAST64_MAX;
17340 int_least64_t c4min = INT_LEAST64_MIN;
17341 uint_least8_t d1 = UINT8_C (0xff);
17342 uint_least8_t d1max = UINT_LEAST8_MAX;
17343 uint_least16_t d2 = UINT16_C (0xffff);
17344 uint_least16_t d2max = UINT_LEAST16_MAX;
17345 uint_least32_t d3 = UINT32_C (0xffffffff);
17346 uint_least32_t d3max = UINT_LEAST32_MAX;
17347 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17348 uint_least64_t d4max = UINT_LEAST64_MAX;
17349 int_fast8_t e1 = INT_FAST8_MAX;
17350 int_fast8_t e1min = INT_FAST8_MIN;
17351 int_fast16_t e2 = INT_FAST16_MAX;
17352 int_fast16_t e2min = INT_FAST16_MIN;
17353 int_fast32_t e3 = INT_FAST32_MAX;
17354 int_fast32_t e3min = INT_FAST32_MIN;
17355 int_fast64_t e4 = INT_FAST64_MAX;
17356 int_fast64_t e4min = INT_FAST64_MIN;
17357 uint_fast8_t f1 = UINT_FAST8_MAX;
17358 uint_fast16_t f2 = UINT_FAST16_MAX;
17359 uint_fast32_t f3 = UINT_FAST32_MAX;
17360 uint_fast64_t f4 = UINT_FAST64_MAX;
17361 #ifdef INTPTR_MAX
17362 intptr_t g = INTPTR_MAX;
17363 intptr_t gmin = INTPTR_MIN;
17364 #endif
17365 #ifdef UINTPTR_MAX
17366 uintptr_t h = UINTPTR_MAX;
17367 #endif
17368 intmax_t i = INTMAX_MAX;
17369 uintmax_t j = UINTMAX_MAX;
17370
17371 /* Check that SIZE_MAX has the correct type, if possible.  */
17372 #if 201112 <= __STDC_VERSION__
17373 int k = _Generic (SIZE_MAX, size_t: 0);
17374 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
17375        || (0x5110 <= __SUNPRO_C && !__STDC__))
17376 extern size_t k;
17377 extern __typeof__ (SIZE_MAX) k;
17378 #endif
17379
17380 #include <limits.h> /* for CHAR_BIT */
17381 #define TYPE_MINIMUM(t) \
17382   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17383 #define TYPE_MAXIMUM(t) \
17384   ((t) ((t) 0 < (t) -1 \
17385         ? (t) -1 \
17386         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17387 struct s {
17388   int check_PTRDIFF:
17389       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17390       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17391       ? 1 : -1;
17392   /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64.  */
17393   int check_SIG_ATOMIC:
17394       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17395       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17396       ? 1 : -1;
17397   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17398   int check_WCHAR:
17399       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17400       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17401       ? 1 : -1;
17402   /* Detect bug in mingw.  */
17403   int check_WINT:
17404       WINT_MIN == TYPE_MINIMUM (wint_t)
17405       && WINT_MAX == TYPE_MAXIMUM (wint_t)
17406       ? 1 : -1;
17407
17408   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
17409   int check_UINT8_C:
17410         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17411   int check_UINT16_C:
17412         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17413
17414   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
17415 #ifdef UINT8_MAX
17416   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17417 #endif
17418 #ifdef UINT16_MAX
17419   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17420 #endif
17421 #ifdef UINT32_MAX
17422   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17423 #endif
17424 #ifdef UINT64_MAX
17425   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17426 #endif
17427   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17428   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17429   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17430   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17431   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17432   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17433   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17434   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17435   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17436   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17437   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17438 };
17439
17440 int
17441 main (void)
17442 {
17443
17444   ;
17445   return 0;
17446 }
17447 _ACEOF
17448 if ac_fn_c_try_compile "$LINENO"
17449 then :
17450                                                     if test "$cross_compiling" = yes
17451 then :
17452   case "$host_os" in
17453                          # Guess yes on native Windows.
17454                  mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
17455                          # In general, assume it works.
17456                  *)      gl_cv_header_working_stdint_h="guessing yes" ;;
17457                esac
17458
17459 else $as_nop
17460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h.  */
17462
17463
17464 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17465 #define __STDC_CONSTANT_MACROS 1
17466 #define __STDC_LIMIT_MACROS 1
17467 #include <stdint.h>
17468
17469
17470   #include <stddef.h>
17471   #include <signal.h>
17472   #if HAVE_WCHAR_H
17473   # include <wchar.h>
17474   #endif
17475
17476
17477 #include <stdio.h>
17478 #include <string.h>
17479 #define MVAL(macro) MVAL1(macro)
17480 #define MVAL1(expression) #expression
17481 static const char *macro_values[] =
17482   {
17483 #ifdef INT8_MAX
17484     MVAL (INT8_MAX),
17485 #endif
17486 #ifdef INT16_MAX
17487     MVAL (INT16_MAX),
17488 #endif
17489 #ifdef INT32_MAX
17490     MVAL (INT32_MAX),
17491 #endif
17492 #ifdef INT64_MAX
17493     MVAL (INT64_MAX),
17494 #endif
17495 #ifdef UINT8_MAX
17496     MVAL (UINT8_MAX),
17497 #endif
17498 #ifdef UINT16_MAX
17499     MVAL (UINT16_MAX),
17500 #endif
17501 #ifdef UINT32_MAX
17502     MVAL (UINT32_MAX),
17503 #endif
17504 #ifdef UINT64_MAX
17505     MVAL (UINT64_MAX),
17506 #endif
17507     NULL
17508   };
17509
17510 int
17511 main (void)
17512 {
17513
17514   const char **mv;
17515   for (mv = macro_values; *mv != NULL; mv++)
17516     {
17517       const char *value = *mv;
17518       /* Test whether it looks like a cast expression.  */
17519       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17520           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17521           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17522           || strncmp (value, "((int)"/*)*/, 6) == 0
17523           || strncmp (value, "((signed short)"/*)*/, 15) == 0
17524           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17525         return mv - macro_values + 1;
17526     }
17527   return 0;
17528
17529   ;
17530   return 0;
17531 }
17532 _ACEOF
17533 if ac_fn_c_try_run "$LINENO"
17534 then :
17535   gl_cv_header_working_stdint_h=yes
17536 fi
17537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17538   conftest.$ac_objext conftest.beam conftest.$ac_ext
17539 fi
17540
17541
17542 fi
17543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17544
17545 fi
17546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17547 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
17548   fi
17549
17550   HAVE_C99_STDINT_H=0
17551   HAVE_SYS_BITYPES_H=0
17552   HAVE_SYS_INTTYPES_H=0
17553   GL_GENERATE_STDINT_H=true
17554   case "$gl_cv_header_working_stdint_h" in
17555     *yes)
17556       HAVE_C99_STDINT_H=1
17557                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
17558 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
17559 if test ${gl_cv_header_stdint_without_STDC_macros+y}
17560 then :
17561   printf %s "(cached) " >&6
17562 else $as_nop
17563   gl_cv_header_stdint_without_STDC_macros=no
17564          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h.  */
17566
17567
17568 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17569 #include <stdint.h>
17570
17571
17572   #include <stddef.h>
17573   #include <signal.h>
17574   #if HAVE_WCHAR_H
17575   # include <wchar.h>
17576   #endif
17577
17578
17579 intmax_t im = INTMAX_MAX;
17580 int32_t i32 = INT32_C (0x7fffffff);
17581
17582 int
17583 main (void)
17584 {
17585
17586   ;
17587   return 0;
17588 }
17589 _ACEOF
17590 if ac_fn_c_try_compile "$LINENO"
17591 then :
17592   gl_cv_header_stdint_without_STDC_macros=yes
17593 fi
17594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17595
17596 fi
17597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
17598 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
17599
17600       if test $gl_cv_header_stdint_without_STDC_macros = no; then
17601
17602 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
17603
17604
17605 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
17606
17607       fi
17608       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
17609 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
17610 if test ${gl_cv_header_stdint_width+y}
17611 then :
17612   printf %s "(cached) " >&6
17613 else $as_nop
17614   gl_cv_header_stdint_width=no
17615          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h.  */
17617
17618               /* Work if build is not clean.  */
17619               #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
17620               #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
17621                #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
17622               #endif
17623               #include <stdint.h>
17624
17625   #include <stddef.h>
17626   #include <signal.h>
17627   #if HAVE_WCHAR_H
17628   # include <wchar.h>
17629   #endif
17630
17631               int iw = UINTMAX_WIDTH;
17632
17633 int
17634 main (void)
17635 {
17636
17637   ;
17638   return 0;
17639 }
17640 _ACEOF
17641 if ac_fn_c_try_compile "$LINENO"
17642 then :
17643   gl_cv_header_stdint_width=yes
17644 fi
17645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17646 fi
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
17648 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
17649       if test "$gl_cv_header_stdint_width" = yes; then
17650         GL_GENERATE_STDINT_H=false
17651       fi
17652       ;;
17653     *)
17654                   ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
17655 if test "x$ac_cv_header_sys_inttypes_h" = xyes
17656 then :
17657   printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
17658
17659 fi
17660 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
17661 if test "x$ac_cv_header_sys_bitypes_h" = xyes
17662 then :
17663   printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
17664
17665 fi
17666
17667       if test $ac_cv_header_sys_inttypes_h = yes; then
17668         HAVE_SYS_INTTYPES_H=1
17669       fi
17670       if test $ac_cv_header_sys_bitypes_h = yes; then
17671         HAVE_SYS_BITYPES_H=1
17672       fi
17673
17674
17675   if test $APPLE_UNIVERSAL_BUILD = 0; then
17676
17677
17678   for gltype in ptrdiff_t size_t ; do
17679     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17680 printf %s "checking for bit size of $gltype... " >&6; }
17681 if eval test \${gl_cv_bitsizeof_${gltype}+y}
17682 then :
17683   printf %s "(cached) " >&6
17684 else $as_nop
17685   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17686   #include <stddef.h>
17687   #include <signal.h>
17688   #if HAVE_WCHAR_H
17689   # include <wchar.h>
17690   #endif
17691
17692 #include <limits.h>"
17693 then :
17694
17695 else $as_nop
17696   result=unknown
17697 fi
17698
17699        eval gl_cv_bitsizeof_${gltype}=\$result
17700
17701 fi
17702 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17703                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17704 printf "%s\n" "$ac_res" >&6; }
17705     eval result=\$gl_cv_bitsizeof_${gltype}
17706     if test $result = unknown; then
17707                                                 result=0
17708     fi
17709     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17710     printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
17711
17712     eval BITSIZEOF_${GLTYPE}=\$result
17713   done
17714
17715
17716   fi
17717
17718
17719   for gltype in sig_atomic_t wchar_t wint_t ; do
17720     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17721 printf %s "checking for bit size of $gltype... " >&6; }
17722 if eval test \${gl_cv_bitsizeof_${gltype}+y}
17723 then :
17724   printf %s "(cached) " >&6
17725 else $as_nop
17726   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17727   #include <stddef.h>
17728   #include <signal.h>
17729   #if HAVE_WCHAR_H
17730   # include <wchar.h>
17731   #endif
17732
17733 #include <limits.h>"
17734 then :
17735
17736 else $as_nop
17737   result=unknown
17738 fi
17739
17740        eval gl_cv_bitsizeof_${gltype}=\$result
17741
17742 fi
17743 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17744                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17745 printf "%s\n" "$ac_res" >&6; }
17746     eval result=\$gl_cv_bitsizeof_${gltype}
17747     if test $result = unknown; then
17748                                                 result=0
17749     fi
17750     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17751     printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
17752
17753     eval BITSIZEOF_${GLTYPE}=\$result
17754   done
17755
17756
17757
17758
17759   for gltype in sig_atomic_t wchar_t wint_t ; do
17760     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17761 printf %s "checking whether $gltype is signed... " >&6; }
17762 if eval test \${gl_cv_type_${gltype}_signed+y}
17763 then :
17764   printf %s "(cached) " >&6
17765 else $as_nop
17766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h.  */
17768
17769   #include <stddef.h>
17770   #include <signal.h>
17771   #if HAVE_WCHAR_H
17772   # include <wchar.h>
17773   #endif
17774
17775             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17776 int
17777 main (void)
17778 {
17779
17780   ;
17781   return 0;
17782 }
17783 _ACEOF
17784 if ac_fn_c_try_compile "$LINENO"
17785 then :
17786   result=yes
17787 else $as_nop
17788   result=no
17789 fi
17790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17791        eval gl_cv_type_${gltype}_signed=\$result
17792
17793 fi
17794 eval ac_res=\$gl_cv_type_${gltype}_signed
17795                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17796 printf "%s\n" "$ac_res" >&6; }
17797     eval result=\$gl_cv_type_${gltype}_signed
17798     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17799     if test "$result" = yes; then
17800       printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
17801
17802       eval HAVE_SIGNED_${GLTYPE}=1
17803     else
17804       eval HAVE_SIGNED_${GLTYPE}=0
17805     fi
17806   done
17807
17808
17809   gl_cv_type_ptrdiff_t_signed=yes
17810   gl_cv_type_size_t_signed=no
17811   if test $APPLE_UNIVERSAL_BUILD = 0; then
17812
17813
17814   for gltype in ptrdiff_t size_t ; do
17815     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17816 printf %s "checking for $gltype integer literal suffix... " >&6; }
17817 if eval test \${gl_cv_type_${gltype}_suffix+y}
17818 then :
17819   printf %s "(cached) " >&6
17820 else $as_nop
17821   eval gl_cv_type_${gltype}_suffix=no
17822        eval result=\$gl_cv_type_${gltype}_signed
17823        if test "$result" = yes; then
17824          glsufu=
17825        else
17826          glsufu=u
17827        fi
17828        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17829          case $glsuf in
17830            '')  gltype1='int';;
17831            l)   gltype1='long int';;
17832            ll)  gltype1='long long int';;
17833            i64) gltype1='__int64';;
17834            u)   gltype1='unsigned int';;
17835            ul)  gltype1='unsigned long int';;
17836            ull) gltype1='unsigned long long int';;
17837            ui64)gltype1='unsigned __int64';;
17838          esac
17839          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h.  */
17841
17842   #include <stddef.h>
17843   #include <signal.h>
17844   #if HAVE_WCHAR_H
17845   # include <wchar.h>
17846   #endif
17847
17848               extern $gltype foo;
17849               extern $gltype1 foo;
17850 int
17851 main (void)
17852 {
17853
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 if ac_fn_c_try_compile "$LINENO"
17859 then :
17860   eval gl_cv_type_${gltype}_suffix=\$glsuf
17861 fi
17862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17863          eval result=\$gl_cv_type_${gltype}_suffix
17864          test "$result" != no && break
17865        done
17866 fi
17867 eval ac_res=\$gl_cv_type_${gltype}_suffix
17868                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17869 printf "%s\n" "$ac_res" >&6; }
17870     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17871     eval result=\$gl_cv_type_${gltype}_suffix
17872     test "$result" = no && result=
17873     eval ${GLTYPE}_SUFFIX=\$result
17874     printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
17875
17876   done
17877
17878
17879   fi
17880
17881
17882   for gltype in sig_atomic_t wchar_t wint_t ; do
17883     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17884 printf %s "checking for $gltype integer literal suffix... " >&6; }
17885 if eval test \${gl_cv_type_${gltype}_suffix+y}
17886 then :
17887   printf %s "(cached) " >&6
17888 else $as_nop
17889   eval gl_cv_type_${gltype}_suffix=no
17890        eval result=\$gl_cv_type_${gltype}_signed
17891        if test "$result" = yes; then
17892          glsufu=
17893        else
17894          glsufu=u
17895        fi
17896        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17897          case $glsuf in
17898            '')  gltype1='int';;
17899            l)   gltype1='long int';;
17900            ll)  gltype1='long long int';;
17901            i64) gltype1='__int64';;
17902            u)   gltype1='unsigned int';;
17903            ul)  gltype1='unsigned long int';;
17904            ull) gltype1='unsigned long long int';;
17905            ui64)gltype1='unsigned __int64';;
17906          esac
17907          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h.  */
17909
17910   #include <stddef.h>
17911   #include <signal.h>
17912   #if HAVE_WCHAR_H
17913   # include <wchar.h>
17914   #endif
17915
17916               extern $gltype foo;
17917               extern $gltype1 foo;
17918 int
17919 main (void)
17920 {
17921
17922   ;
17923   return 0;
17924 }
17925 _ACEOF
17926 if ac_fn_c_try_compile "$LINENO"
17927 then :
17928   eval gl_cv_type_${gltype}_suffix=\$glsuf
17929 fi
17930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17931          eval result=\$gl_cv_type_${gltype}_suffix
17932          test "$result" != no && break
17933        done
17934 fi
17935 eval ac_res=\$gl_cv_type_${gltype}_suffix
17936                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17937 printf "%s\n" "$ac_res" >&6; }
17938     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17939     eval result=\$gl_cv_type_${gltype}_suffix
17940     test "$result" = no && result=
17941     eval ${GLTYPE}_SUFFIX=\$result
17942     printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
17943
17944   done
17945
17946
17947
17948           if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
17949     BITSIZEOF_WINT_T=32
17950   fi
17951
17952       ;;
17953   esac
17954
17955
17956
17957   GL_GENERATE_LIMITS_H=true
17958
17959
17960
17961
17962
17963
17964
17965     HAVE__EXIT=1;
17966   HAVE_ALIGNED_ALLOC=1;
17967   HAVE_ATOLL=1;
17968   HAVE_CANONICALIZE_FILE_NAME=1;
17969   HAVE_DECL_ECVT=1;
17970   HAVE_DECL_FCVT=1;
17971   HAVE_DECL_GCVT=1;
17972   HAVE_DECL_GETLOADAVG=1;
17973   HAVE_GETSUBOPT=1;
17974   HAVE_GRANTPT=1;
17975   HAVE_INITSTATE=1;
17976   HAVE_DECL_INITSTATE=1;
17977   HAVE_MBTOWC=1;
17978   HAVE_MKDTEMP=1;
17979   HAVE_MKOSTEMP=1;
17980   HAVE_MKOSTEMPS=1;
17981   HAVE_MKSTEMP=1;
17982   HAVE_MKSTEMPS=1;
17983   HAVE_POSIX_MEMALIGN=1;
17984   HAVE_POSIX_OPENPT=1;
17985   HAVE_PTSNAME=1;
17986   HAVE_PTSNAME_R=1;
17987   HAVE_QSORT_R=1;
17988   HAVE_RANDOM=1;
17989   HAVE_RANDOM_H=1;
17990   HAVE_RANDOM_R=1;
17991   HAVE_REALLOCARRAY=1;
17992   HAVE_REALPATH=1;
17993   HAVE_RPMATCH=1;
17994   HAVE_SECURE_GETENV=1;
17995   HAVE_SETENV=1;
17996   HAVE_DECL_SETENV=1;
17997   HAVE_SETSTATE=1;
17998   HAVE_DECL_SETSTATE=1;
17999   HAVE_STRTOD=1;
18000   HAVE_STRTOL=1;
18001   HAVE_STRTOLD=1;
18002   HAVE_STRTOLL=1;
18003   HAVE_STRTOUL=1;
18004   HAVE_STRTOULL=1;
18005   HAVE_STRUCT_RANDOM_DATA=1;
18006   HAVE_SYS_LOADAVG_H=0;
18007   HAVE_UNLOCKPT=1;
18008   HAVE_DECL_UNSETENV=1;
18009   REPLACE_ALIGNED_ALLOC=0;
18010   REPLACE_CALLOC_FOR_CALLOC_GNU=0;
18011   REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
18012   REPLACE_CANONICALIZE_FILE_NAME=0;
18013   REPLACE_FREE=0;
18014   REPLACE_INITSTATE=0;
18015   REPLACE_MALLOC_FOR_MALLOC_GNU=0;
18016   REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
18017   REPLACE_MBTOWC=0;
18018   REPLACE_MKSTEMP=0;
18019   REPLACE_POSIX_MEMALIGN=0;
18020   REPLACE_PTSNAME=0;
18021   REPLACE_PTSNAME_R=0;
18022   REPLACE_PUTENV=0;
18023   REPLACE_QSORT_R=0;
18024   REPLACE_RANDOM=0;
18025   REPLACE_RANDOM_R=0;
18026   REPLACE_REALLOC_FOR_REALLOC_GNU=0;
18027   REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
18028   REPLACE_REALLOCARRAY=0;
18029   REPLACE_REALPATH=0;
18030   REPLACE_SETENV=0;
18031   REPLACE_SETSTATE=0;
18032   REPLACE_STRTOD=0;
18033   REPLACE_STRTOL=0;
18034   REPLACE_STRTOLD=0;
18035   REPLACE_STRTOLL=0;
18036   REPLACE_STRTOUL=0;
18037   REPLACE_STRTOULL=0;
18038   REPLACE_UNSETENV=0;
18039   REPLACE_WCTOMB=0;
18040
18041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18042 printf %s "checking for C/C++ restrict keyword... " >&6; }
18043 if test ${ac_cv_c_restrict+y}
18044 then :
18045   printf %s "(cached) " >&6
18046 else $as_nop
18047   ac_cv_c_restrict=no
18048    # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
18049    # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
18050    # Put 'restrict' last, because C++ lacks it.
18051    for ac_kw in __restrict__ __restrict _Restrict restrict; do
18052      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h.  */
18054 typedef int *int_ptr;
18055            int foo (int_ptr $ac_kw ip) { return ip[0]; }
18056            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
18057            int bar (int ip[$ac_kw]) { return ip[0]; }
18058
18059 int
18060 main (void)
18061 {
18062 int s[1];
18063            int *$ac_kw t = s;
18064            t[0] = 0;
18065            return foo (t) + bar (t);
18066
18067   ;
18068   return 0;
18069 }
18070 _ACEOF
18071 if ac_fn_c_try_compile "$LINENO"
18072 then :
18073   ac_cv_c_restrict=$ac_kw
18074 fi
18075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18076      test "$ac_cv_c_restrict" != no && break
18077    done
18078
18079 fi
18080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18081 printf "%s\n" "$ac_cv_c_restrict" >&6; }
18082
18083  case $ac_cv_c_restrict in
18084    restrict) ;;
18085    no) printf "%s\n" "#define restrict /**/" >>confdefs.h
18086  ;;
18087    *)  printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
18088  ;;
18089  esac
18090
18091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18092 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
18093 if test ${ac_cv_c_undeclared_builtin_options+y}
18094 then :
18095   printf %s "(cached) " >&6
18096 else $as_nop
18097   ac_save_CFLAGS=$CFLAGS
18098    ac_cv_c_undeclared_builtin_options='cannot detect'
18099    for ac_arg in '' -fno-builtin; do
18100      CFLAGS="$ac_save_CFLAGS $ac_arg"
18101      # This test program should *not* compile successfully.
18102      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h.  */
18104
18105 int
18106 main (void)
18107 {
18108 (void) strchr;
18109   ;
18110   return 0;
18111 }
18112 _ACEOF
18113 if ac_fn_c_try_compile "$LINENO"
18114 then :
18115
18116 else $as_nop
18117   # This test program should compile successfully.
18118         # No library function is consistently available on
18119         # freestanding implementations, so test against a dummy
18120         # declaration.  Include always-available headers on the
18121         # off chance that they somehow elicit warnings.
18122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h.  */
18124 #include <float.h>
18125 #include <limits.h>
18126 #include <stdarg.h>
18127 #include <stddef.h>
18128 extern void ac_decl (int, char *);
18129
18130 int
18131 main (void)
18132 {
18133 (void) ac_decl (0, (char *) 0);
18134   (void) ac_decl;
18135
18136   ;
18137   return 0;
18138 }
18139 _ACEOF
18140 if ac_fn_c_try_compile "$LINENO"
18141 then :
18142   if test x"$ac_arg" = x
18143 then :
18144   ac_cv_c_undeclared_builtin_options='none needed'
18145 else $as_nop
18146   ac_cv_c_undeclared_builtin_options=$ac_arg
18147 fi
18148           break
18149 fi
18150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18151 fi
18152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18153     done
18154     CFLAGS=$ac_save_CFLAGS
18155
18156 fi
18157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
18158 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
18159   case $ac_cv_c_undeclared_builtin_options in #(
18160   'cannot detect') :
18161     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18162 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18163 as_fn_error $? "cannot make $CC report undeclared builtins
18164 See \`config.log' for more details" "$LINENO" 5; } ;; #(
18165   'none needed') :
18166     ac_c_undeclared_builtin_options='' ;; #(
18167   *) :
18168     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
18169 esac
18170
18171 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18172 if test "x$ac_cv_have_decl_ecvt" = xyes
18173 then :
18174   ac_have_decl=1
18175 else $as_nop
18176   ac_have_decl=0
18177 fi
18178 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
18179
18180 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18181 if test "x$ac_cv_have_decl_fcvt" = xyes
18182 then :
18183   ac_have_decl=1
18184 else $as_nop
18185   ac_have_decl=0
18186 fi
18187 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
18188
18189 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18190 if test "x$ac_cv_have_decl_gcvt" = xyes
18191 then :
18192   ac_have_decl=1
18193 else $as_nop
18194   ac_have_decl=0
18195 fi
18196 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208      if test $gl_cv_have_include_next = yes; then
18209        gl_cv_next_stdlib_h='<'stdlib.h'>'
18210      else
18211        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18212 printf %s "checking absolute name of <stdlib.h>... " >&6; }
18213 if test ${gl_cv_next_stdlib_h+y}
18214 then :
18215   printf %s "(cached) " >&6
18216 else $as_nop
18217
18218
18219
18220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h.  */
18222 #include <stdlib.h>
18223 _ACEOF
18224                 case "$host_os" in
18225     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18226     *)    gl_absname_cpp="$ac_cpp" ;;
18227   esac
18228
18229   case "$host_os" in
18230     mingw*)
18231                                           gl_dirsep_regex='[/\\]'
18232       ;;
18233     *)
18234       gl_dirsep_regex='\/'
18235       ;;
18236   esac
18237       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18238   gl_header_literal_regex=`echo 'stdlib.h' \
18239                            | sed -e "$gl_make_literal_regex_sed"`
18240   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18241       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18242       s|^/[^/]|//&|
18243       p
18244       q
18245     }'
18246
18247         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18248   sed -n "$gl_absolute_header_sed"`
18249
18250           gl_header=$gl_cv_absolute_stdlib_h
18251           gl_cv_next_stdlib_h='"'$gl_header'"'
18252
18253
18254 fi
18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18256 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
18257      fi
18258      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18259
18260      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18261        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18262        gl_next_as_first_directive='<'stdlib.h'>'
18263      else
18264        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18265        gl_next_as_first_directive=$gl_cv_next_stdlib_h
18266      fi
18267      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280   if test $ac_cv_have_decl_ecvt = no; then
18281     HAVE_DECL_ECVT=0
18282   fi
18283
18284   if test $ac_cv_have_decl_fcvt = no; then
18285     HAVE_DECL_FCVT=0
18286   fi
18287
18288   if test $ac_cv_have_decl_gcvt = no; then
18289     HAVE_DECL_GCVT=0
18290   fi
18291
18292
18293
18294   GL_GNULIB__EXIT=0
18295
18296
18297
18298   GL_GNULIB_ALIGNED_ALLOC=0
18299
18300
18301
18302   GL_GNULIB_ATOLL=0
18303
18304
18305
18306   GL_GNULIB_CALLOC_GNU=0
18307
18308
18309
18310   GL_GNULIB_CALLOC_POSIX=0
18311
18312
18313
18314   GL_GNULIB_CANONICALIZE_FILE_NAME=0
18315
18316
18317
18318   GL_GNULIB_FREE_POSIX=0
18319
18320
18321
18322   GL_GNULIB_GETLOADAVG=0
18323
18324
18325
18326   GL_GNULIB_GETSUBOPT=0
18327
18328
18329
18330   GL_GNULIB_GRANTPT=0
18331
18332
18333
18334   GL_GNULIB_MALLOC_GNU=0
18335
18336
18337
18338   GL_GNULIB_MALLOC_POSIX=0
18339
18340
18341
18342   GL_GNULIB_MBTOWC=0
18343
18344
18345
18346   GL_GNULIB_MKDTEMP=0
18347
18348
18349
18350   GL_GNULIB_MKOSTEMP=0
18351
18352
18353
18354   GL_GNULIB_MKOSTEMPS=0
18355
18356
18357
18358   GL_GNULIB_MKSTEMP=0
18359
18360
18361
18362   GL_GNULIB_MKSTEMPS=0
18363
18364
18365
18366   GL_GNULIB_POSIX_MEMALIGN=0
18367
18368
18369
18370   GL_GNULIB_POSIX_OPENPT=0
18371
18372
18373
18374   GL_GNULIB_PTSNAME=0
18375
18376
18377
18378   GL_GNULIB_PTSNAME_R=0
18379
18380
18381
18382   GL_GNULIB_PUTENV=0
18383
18384
18385
18386   GL_GNULIB_QSORT_R=0
18387
18388
18389
18390   GL_GNULIB_RANDOM=0
18391
18392
18393
18394   GL_GNULIB_RANDOM_R=0
18395
18396
18397
18398   GL_GNULIB_REALLOCARRAY=0
18399
18400
18401
18402   GL_GNULIB_REALLOC_GNU=0
18403
18404
18405
18406   GL_GNULIB_REALLOC_POSIX=0
18407
18408
18409
18410   GL_GNULIB_REALPATH=0
18411
18412
18413
18414   GL_GNULIB_RPMATCH=0
18415
18416
18417
18418   GL_GNULIB_SECURE_GETENV=0
18419
18420
18421
18422   GL_GNULIB_SETENV=0
18423
18424
18425
18426   GL_GNULIB_STRTOD=0
18427
18428
18429
18430   GL_GNULIB_STRTOL=0
18431
18432
18433
18434   GL_GNULIB_STRTOLD=0
18435
18436
18437
18438   GL_GNULIB_STRTOLL=0
18439
18440
18441
18442   GL_GNULIB_STRTOUL=0
18443
18444
18445
18446   GL_GNULIB_STRTOULL=0
18447
18448
18449
18450   GL_GNULIB_SYSTEM_POSIX=0
18451
18452
18453
18454   GL_GNULIB_UNLOCKPT=0
18455
18456
18457
18458   GL_GNULIB_UNSETENV=0
18459
18460
18461
18462   GL_GNULIB_WCTOMB=0
18463
18464
18465
18466   GL_GNULIB_MDA_ECVT=1
18467
18468
18469
18470   GL_GNULIB_MDA_FCVT=1
18471
18472
18473
18474   GL_GNULIB_MDA_GCVT=1
18475
18476
18477
18478   GL_GNULIB_MDA_MKTEMP=1
18479
18480
18481
18482   GL_GNULIB_MDA_PUTENV=1
18483
18484
18485
18486
18487   HAVE_MBSLEN=0;
18488     HAVE_EXPLICIT_BZERO=1;
18489   HAVE_FFSL=1;
18490   HAVE_FFSLL=1;
18491   HAVE_DECL_MEMMEM=1;
18492   HAVE_MEMPCPY=1;
18493   HAVE_DECL_MEMRCHR=1;
18494   HAVE_RAWMEMCHR=1;
18495   HAVE_STPCPY=1;
18496   HAVE_STPNCPY=1;
18497   HAVE_STRCHRNUL=1;
18498   HAVE_DECL_STRDUP=1;
18499   HAVE_DECL_STRNDUP=1;
18500   HAVE_DECL_STRNLEN=1;
18501   HAVE_STRPBRK=1;
18502   HAVE_STRSEP=1;
18503   HAVE_STRCASESTR=1;
18504   HAVE_DECL_STRTOK_R=1;
18505   HAVE_DECL_STRERROR_R=1;
18506   HAVE_STRERRORNAME_NP=1;
18507   HAVE_SIGABBREV_NP=1;
18508   HAVE_SIGDESCR_NP=1;
18509   HAVE_DECL_STRSIGNAL=1;
18510   HAVE_STRVERSCMP=1;
18511   REPLACE_FFSLL=0;
18512   REPLACE_MEMCHR=0;
18513   REPLACE_MEMMEM=0;
18514   REPLACE_STPNCPY=0;
18515   REPLACE_STRCHRNUL=0;
18516   REPLACE_STRDUP=0;
18517   REPLACE_STRNCAT=0;
18518   REPLACE_STRNDUP=0;
18519   REPLACE_STRNLEN=0;
18520   REPLACE_STRSTR=0;
18521   REPLACE_STRCASESTR=0;
18522   REPLACE_STRTOK_R=0;
18523   REPLACE_STRERROR=0;
18524   REPLACE_STRERROR_R=0;
18525   REPLACE_STRERRORNAME_NP=0;
18526   REPLACE_STRSIGNAL=0;
18527   UNDEFINE_STRTOK_R=0;
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539      if test $gl_cv_have_include_next = yes; then
18540        gl_cv_next_string_h='<'string.h'>'
18541      else
18542        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
18543 printf %s "checking absolute name of <string.h>... " >&6; }
18544 if test ${gl_cv_next_string_h+y}
18545 then :
18546   printf %s "(cached) " >&6
18547 else $as_nop
18548
18549
18550
18551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18552 /* end confdefs.h.  */
18553 #include <string.h>
18554 _ACEOF
18555                 case "$host_os" in
18556     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18557     *)    gl_absname_cpp="$ac_cpp" ;;
18558   esac
18559
18560   case "$host_os" in
18561     mingw*)
18562                                           gl_dirsep_regex='[/\\]'
18563       ;;
18564     *)
18565       gl_dirsep_regex='\/'
18566       ;;
18567   esac
18568       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18569   gl_header_literal_regex=`echo 'string.h' \
18570                            | sed -e "$gl_make_literal_regex_sed"`
18571   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18572       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18573       s|^/[^/]|//&|
18574       p
18575       q
18576     }'
18577
18578         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18579   sed -n "$gl_absolute_header_sed"`
18580
18581           gl_header=$gl_cv_absolute_string_h
18582           gl_cv_next_string_h='"'$gl_header'"'
18583
18584
18585 fi
18586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
18587 printf "%s\n" "$gl_cv_next_string_h" >&6; }
18588      fi
18589      NEXT_STRING_H=$gl_cv_next_string_h
18590
18591      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18592        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18593        gl_next_as_first_directive='<'string.h'>'
18594      else
18595        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18596        gl_next_as_first_directive=$gl_cv_next_string_h
18597      fi
18598      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612   GL_GNULIB_EXPLICIT_BZERO=0
18613
18614
18615
18616   GL_GNULIB_FFSL=0
18617
18618
18619
18620   GL_GNULIB_FFSLL=0
18621
18622
18623
18624   GL_GNULIB_MEMCHR=0
18625
18626
18627
18628   GL_GNULIB_MEMMEM=0
18629
18630
18631
18632   GL_GNULIB_MEMPCPY=0
18633
18634
18635
18636   GL_GNULIB_MEMRCHR=0
18637
18638
18639
18640   GL_GNULIB_RAWMEMCHR=0
18641
18642
18643
18644   GL_GNULIB_STPCPY=0
18645
18646
18647
18648   GL_GNULIB_STPNCPY=0
18649
18650
18651
18652   GL_GNULIB_STRCHRNUL=0
18653
18654
18655
18656   GL_GNULIB_STRDUP=0
18657
18658
18659
18660   GL_GNULIB_STRNCAT=0
18661
18662
18663
18664   GL_GNULIB_STRNDUP=0
18665
18666
18667
18668   GL_GNULIB_STRNLEN=0
18669
18670
18671
18672   GL_GNULIB_STRPBRK=0
18673
18674
18675
18676   GL_GNULIB_STRSEP=0
18677
18678
18679
18680   GL_GNULIB_STRSTR=0
18681
18682
18683
18684   GL_GNULIB_STRCASESTR=0
18685
18686
18687
18688   GL_GNULIB_STRTOK_R=0
18689
18690
18691
18692   GL_GNULIB_MBSLEN=0
18693
18694
18695
18696   GL_GNULIB_MBSNLEN=0
18697
18698
18699
18700   GL_GNULIB_MBSCHR=0
18701
18702
18703
18704   GL_GNULIB_MBSRCHR=0
18705
18706
18707
18708   GL_GNULIB_MBSSTR=0
18709
18710
18711
18712   GL_GNULIB_MBSCASECMP=0
18713
18714
18715
18716   GL_GNULIB_MBSNCASECMP=0
18717
18718
18719
18720   GL_GNULIB_MBSPCASECMP=0
18721
18722
18723
18724   GL_GNULIB_MBSCASESTR=0
18725
18726
18727
18728   GL_GNULIB_MBSCSPN=0
18729
18730
18731
18732   GL_GNULIB_MBSPBRK=0
18733
18734
18735
18736   GL_GNULIB_MBSSPN=0
18737
18738
18739
18740   GL_GNULIB_MBSSEP=0
18741
18742
18743
18744   GL_GNULIB_MBSTOK_R=0
18745
18746
18747
18748   GL_GNULIB_STRERROR=0
18749
18750
18751
18752   GL_GNULIB_STRERROR_R=0
18753
18754
18755
18756   GL_GNULIB_STRERRORNAME_NP=0
18757
18758
18759
18760   GL_GNULIB_SIGABBREV_NP=0
18761
18762
18763
18764   GL_GNULIB_SIGDESCR_NP=0
18765
18766
18767
18768   GL_GNULIB_STRSIGNAL=0
18769
18770
18771
18772   GL_GNULIB_STRVERSCMP=0
18773
18774
18775
18776   GL_GNULIB_MDA_MEMCCPY=1
18777
18778
18779
18780   GL_GNULIB_MDA_STRDUP=1
18781
18782
18783
18784
18785
18786
18787   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18788 "
18789 if test "x$ac_cv_type_pid_t" = xyes
18790 then :
18791
18792 else $as_nop
18793                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18794 /* end confdefs.h.  */
18795
18796           #if defined _WIN64 && !defined __CYGWIN__
18797           LLP64
18798           #endif
18799
18800 int
18801 main (void)
18802 {
18803
18804   ;
18805   return 0;
18806 }
18807
18808 _ACEOF
18809 if ac_fn_c_try_compile "$LINENO"
18810 then :
18811   ac_pid_type='int'
18812 else $as_nop
18813   ac_pid_type='__int64'
18814 fi
18815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18816
18817 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18818
18819
18820 fi
18821
18822
18823 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18824 if test "x$ac_cv_type_mode_t" = xyes
18825 then :
18826
18827 else $as_nop
18828
18829 printf "%s\n" "#define mode_t int" >>confdefs.h
18830
18831 fi
18832
18833
18834
18835   case "$host_os" in
18836     mingw*)
18837                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18838 printf %s "checking for 64-bit off_t... " >&6; }
18839 if test ${gl_cv_type_off_t_64+y}
18840 then :
18841   printf %s "(cached) " >&6
18842 else $as_nop
18843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h.  */
18845 #include <sys/types.h>
18846                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18847
18848 int
18849 main (void)
18850 {
18851
18852   ;
18853   return 0;
18854 }
18855 _ACEOF
18856 if ac_fn_c_try_compile "$LINENO"
18857 then :
18858   gl_cv_type_off_t_64=yes
18859 else $as_nop
18860   gl_cv_type_off_t_64=no
18861 fi
18862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18863
18864 fi
18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18866 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
18867       if test $gl_cv_type_off_t_64 = no; then
18868         WINDOWS_64_BIT_OFF_T=1
18869       else
18870         WINDOWS_64_BIT_OFF_T=0
18871       fi
18872                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
18873 printf %s "checking for 64-bit st_size... " >&6; }
18874 if test ${gl_cv_member_st_size_64+y}
18875 then :
18876   printf %s "(cached) " >&6
18877 else $as_nop
18878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h.  */
18880 #include <sys/types.h>
18881                 struct stat buf;
18882                 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
18883
18884 int
18885 main (void)
18886 {
18887
18888   ;
18889   return 0;
18890 }
18891 _ACEOF
18892 if ac_fn_c_try_compile "$LINENO"
18893 then :
18894   gl_cv_member_st_size_64=yes
18895 else $as_nop
18896   gl_cv_member_st_size_64=no
18897 fi
18898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18899
18900 fi
18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
18902 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
18903       if test $gl_cv_member_st_size_64 = no; then
18904         WINDOWS_64_BIT_ST_SIZE=1
18905       else
18906         WINDOWS_64_BIT_ST_SIZE=0
18907       fi
18908       ;;
18909     *)
18910                                                       WINDOWS_64_BIT_OFF_T=0
18911       WINDOWS_64_BIT_ST_SIZE=0
18912       ;;
18913   esac
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936      if test $gl_cv_have_include_next = yes; then
18937        gl_cv_next_sys_types_h='<'sys/types.h'>'
18938      else
18939        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
18940 printf %s "checking absolute name of <sys/types.h>... " >&6; }
18941 if test ${gl_cv_next_sys_types_h+y}
18942 then :
18943   printf %s "(cached) " >&6
18944 else $as_nop
18945
18946
18947
18948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18949 /* end confdefs.h.  */
18950 #include <sys/types.h>
18951 _ACEOF
18952                 case "$host_os" in
18953     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18954     *)    gl_absname_cpp="$ac_cpp" ;;
18955   esac
18956
18957   case "$host_os" in
18958     mingw*)
18959                                           gl_dirsep_regex='[/\\]'
18960       ;;
18961     *)
18962       gl_dirsep_regex='\/'
18963       ;;
18964   esac
18965       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18966   gl_header_literal_regex=`echo 'sys/types.h' \
18967                            | sed -e "$gl_make_literal_regex_sed"`
18968   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18969       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18970       s|^/[^/]|//&|
18971       p
18972       q
18973     }'
18974
18975         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18976   sed -n "$gl_absolute_header_sed"`
18977
18978           gl_header=$gl_cv_absolute_sys_types_h
18979           gl_cv_next_sys_types_h='"'$gl_header'"'
18980
18981
18982 fi
18983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
18984 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
18985      fi
18986      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
18987
18988      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18989        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18990        gl_next_as_first_directive='<'sys/types.h'>'
18991      else
18992        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18993        gl_next_as_first_directive=$gl_cv_next_sys_types_h
18994      fi
18995      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008     WINDOWS_STAT_INODES=0
19009
19010
19011
19012
19013
19014
19015     HAVE_CHOWN=1;
19016   HAVE_COPY_FILE_RANGE=1;
19017   HAVE_DUP3=1;
19018   HAVE_EUIDACCESS=1;
19019   HAVE_EXECVPE=1;
19020   HAVE_FACCESSAT=1;
19021   HAVE_FCHDIR=1;
19022   HAVE_FCHOWNAT=1;
19023   HAVE_FDATASYNC=1;
19024   HAVE_FSYNC=1;
19025   HAVE_FTRUNCATE=1;
19026   HAVE_GETDTABLESIZE=1;
19027   HAVE_GETENTROPY=1;
19028   HAVE_GETGROUPS=1;
19029   HAVE_GETHOSTNAME=1;
19030   HAVE_GETLOGIN=1;
19031   HAVE_GETPAGESIZE=1;
19032   HAVE_GETPASS=1;
19033   HAVE_GROUP_MEMBER=1;
19034   HAVE_LCHOWN=1;
19035   HAVE_LINK=1;
19036   HAVE_LINKAT=1;
19037   HAVE_PIPE=1;
19038   HAVE_PIPE2=1;
19039   HAVE_PREAD=1;
19040   HAVE_PWRITE=1;
19041   HAVE_READLINK=1;
19042   HAVE_READLINKAT=1;
19043   HAVE_SETHOSTNAME=1;
19044   HAVE_SLEEP=1;
19045   HAVE_SYMLINK=1;
19046   HAVE_SYMLINKAT=1;
19047   HAVE_UNLINKAT=1;
19048   HAVE_USLEEP=1;
19049   HAVE_DECL_ENVIRON=1;
19050   HAVE_DECL_EXECVPE=1;
19051   HAVE_DECL_FCHDIR=1;
19052   HAVE_DECL_FDATASYNC=1;
19053   HAVE_DECL_GETDOMAINNAME=1;
19054   HAVE_DECL_GETLOGIN=1;
19055   HAVE_DECL_GETLOGIN_R=1;
19056   HAVE_DECL_GETPAGESIZE=1;
19057   HAVE_DECL_GETUSERSHELL=1;
19058   HAVE_DECL_SETHOSTNAME=1;
19059   HAVE_DECL_TRUNCATE=1;
19060   HAVE_DECL_TTYNAME_R=1;
19061   HAVE_OS_H=0;
19062   HAVE_SYS_PARAM_H=0;
19063   REPLACE_ACCESS=0;
19064   REPLACE_CHOWN=0;
19065   REPLACE_CLOSE=0;
19066   REPLACE_COPY_FILE_RANGE=0;
19067   REPLACE_DUP=0;
19068   REPLACE_DUP2=0;
19069   REPLACE_EXECL=0;
19070   REPLACE_EXECLE=0;
19071   REPLACE_EXECLP=0;
19072   REPLACE_EXECV=0;
19073   REPLACE_EXECVE=0;
19074   REPLACE_EXECVP=0;
19075   REPLACE_EXECVPE=0;
19076   REPLACE_FACCESSAT=0;
19077   REPLACE_FCHOWNAT=0;
19078   REPLACE_FTRUNCATE=0;
19079   REPLACE_GETCWD=0;
19080   REPLACE_GETDOMAINNAME=0;
19081   REPLACE_GETDTABLESIZE=0;
19082   REPLACE_GETLOGIN_R=0;
19083   REPLACE_GETGROUPS=0;
19084   REPLACE_GETPAGESIZE=0;
19085   REPLACE_GETPASS=0;
19086   REPLACE_GETPASS_FOR_GETPASS_GNU=0;
19087   REPLACE_ISATTY=0;
19088   REPLACE_LCHOWN=0;
19089   REPLACE_LINK=0;
19090   REPLACE_LINKAT=0;
19091   REPLACE_LSEEK=0;
19092   REPLACE_PREAD=0;
19093   REPLACE_PWRITE=0;
19094   REPLACE_READ=0;
19095   REPLACE_READLINK=0;
19096   REPLACE_READLINKAT=0;
19097   REPLACE_RMDIR=0;
19098   REPLACE_SLEEP=0;
19099   REPLACE_SYMLINK=0;
19100   REPLACE_SYMLINKAT=0;
19101   REPLACE_TRUNCATE=0;
19102   REPLACE_TTYNAME_R=0;
19103   REPLACE_UNLINK=0;
19104   REPLACE_UNLINKAT=0;
19105   REPLACE_USLEEP=0;
19106   REPLACE_WRITE=0;
19107   UNISTD_H_HAVE_SYS_RANDOM_H=0;
19108   UNISTD_H_HAVE_WINSOCK2_H=0;
19109   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
19110
19111
19112 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
19113 if test "x$ac_cv_have_decl_execvpe" = xyes
19114 then :
19115   ac_have_decl=1
19116 else $as_nop
19117   ac_have_decl=0
19118 fi
19119 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133      if test $gl_cv_have_include_next = yes; then
19134        gl_cv_next_unistd_h='<'unistd.h'>'
19135      else
19136        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
19137 printf %s "checking absolute name of <unistd.h>... " >&6; }
19138 if test ${gl_cv_next_unistd_h+y}
19139 then :
19140   printf %s "(cached) " >&6
19141 else $as_nop
19142
19143              if test $ac_cv_header_unistd_h = yes; then
19144
19145
19146
19147
19148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h.  */
19150 #include <unistd.h>
19151 _ACEOF
19152                 case "$host_os" in
19153     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19154     *)    gl_absname_cpp="$ac_cpp" ;;
19155   esac
19156
19157   case "$host_os" in
19158     mingw*)
19159                                           gl_dirsep_regex='[/\\]'
19160       ;;
19161     *)
19162       gl_dirsep_regex='\/'
19163       ;;
19164   esac
19165       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19166   gl_header_literal_regex=`echo 'unistd.h' \
19167                            | sed -e "$gl_make_literal_regex_sed"`
19168   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19169       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19170       s|^/[^/]|//&|
19171       p
19172       q
19173     }'
19174
19175         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19176   sed -n "$gl_absolute_header_sed"`
19177
19178           gl_header=$gl_cv_absolute_unistd_h
19179           gl_cv_next_unistd_h='"'$gl_header'"'
19180           else
19181                gl_cv_next_unistd_h='<'unistd.h'>'
19182              fi
19183
19184
19185 fi
19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
19187 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
19188      fi
19189      NEXT_UNISTD_H=$gl_cv_next_unistd_h
19190
19191      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19192        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19193        gl_next_as_first_directive='<'unistd.h'>'
19194      else
19195        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19196        gl_next_as_first_directive=$gl_cv_next_unistd_h
19197      fi
19198      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
19199
19200
19201
19202
19203   if test $ac_cv_header_unistd_h = yes; then
19204     HAVE_UNISTD_H=1
19205   else
19206     HAVE_UNISTD_H=0
19207   fi
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221   if test $ac_cv_have_decl_execvpe = no; then
19222     HAVE_DECL_EXECVPE=0
19223   fi
19224
19225
19226
19227   GL_GNULIB_ACCESS=0
19228
19229
19230
19231   GL_GNULIB_CHDIR=0
19232
19233
19234
19235   GL_GNULIB_CHOWN=0
19236
19237
19238
19239   GL_GNULIB_CLOSE=0
19240
19241
19242
19243   GL_GNULIB_COPY_FILE_RANGE=0
19244
19245
19246
19247   GL_GNULIB_DUP=0
19248
19249
19250
19251   GL_GNULIB_DUP2=0
19252
19253
19254
19255   GL_GNULIB_DUP3=0
19256
19257
19258
19259   GL_GNULIB_ENVIRON=0
19260
19261
19262
19263   GL_GNULIB_EUIDACCESS=0
19264
19265
19266
19267   GL_GNULIB_EXECL=0
19268
19269
19270
19271   GL_GNULIB_EXECLE=0
19272
19273
19274
19275   GL_GNULIB_EXECLP=0
19276
19277
19278
19279   GL_GNULIB_EXECV=0
19280
19281
19282
19283   GL_GNULIB_EXECVE=0
19284
19285
19286
19287   GL_GNULIB_EXECVP=0
19288
19289
19290
19291   GL_GNULIB_EXECVPE=0
19292
19293
19294
19295   GL_GNULIB_FACCESSAT=0
19296
19297
19298
19299   GL_GNULIB_FCHDIR=0
19300
19301
19302
19303   GL_GNULIB_FCHOWNAT=0
19304
19305
19306
19307   GL_GNULIB_FDATASYNC=0
19308
19309
19310
19311   GL_GNULIB_FSYNC=0
19312
19313
19314
19315   GL_GNULIB_FTRUNCATE=0
19316
19317
19318
19319   GL_GNULIB_GETCWD=0
19320
19321
19322
19323   GL_GNULIB_GETDOMAINNAME=0
19324
19325
19326
19327   GL_GNULIB_GETDTABLESIZE=0
19328
19329
19330
19331   GL_GNULIB_GETENTROPY=0
19332
19333
19334
19335   GL_GNULIB_GETGROUPS=0
19336
19337
19338
19339   GL_GNULIB_GETHOSTNAME=0
19340
19341
19342
19343   GL_GNULIB_GETLOGIN=0
19344
19345
19346
19347   GL_GNULIB_GETLOGIN_R=0
19348
19349
19350
19351   GL_GNULIB_GETOPT_POSIX=0
19352
19353
19354
19355   GL_GNULIB_GETPAGESIZE=0
19356
19357
19358
19359   GL_GNULIB_GETPASS=0
19360
19361
19362
19363   GL_GNULIB_GETPASS_GNU=0
19364
19365
19366
19367   GL_GNULIB_GETUSERSHELL=0
19368
19369
19370
19371   GL_GNULIB_GROUP_MEMBER=0
19372
19373
19374
19375   GL_GNULIB_ISATTY=0
19376
19377
19378
19379   GL_GNULIB_LCHOWN=0
19380
19381
19382
19383   GL_GNULIB_LINK=0
19384
19385
19386
19387   GL_GNULIB_LINKAT=0
19388
19389
19390
19391   GL_GNULIB_LSEEK=0
19392
19393
19394
19395   GL_GNULIB_PIPE=0
19396
19397
19398
19399   GL_GNULIB_PIPE2=0
19400
19401
19402
19403   GL_GNULIB_PREAD=0
19404
19405
19406
19407   GL_GNULIB_PWRITE=0
19408
19409
19410
19411   GL_GNULIB_READ=0
19412
19413
19414
19415   GL_GNULIB_READLINK=0
19416
19417
19418
19419   GL_GNULIB_READLINKAT=0
19420
19421
19422
19423   GL_GNULIB_RMDIR=0
19424
19425
19426
19427   GL_GNULIB_SETHOSTNAME=0
19428
19429
19430
19431   GL_GNULIB_SLEEP=0
19432
19433
19434
19435   GL_GNULIB_SYMLINK=0
19436
19437
19438
19439   GL_GNULIB_SYMLINKAT=0
19440
19441
19442
19443   GL_GNULIB_TRUNCATE=0
19444
19445
19446
19447   GL_GNULIB_TTYNAME_R=0
19448
19449
19450
19451   GL_GNULIB_UNISTD_H_GETOPT=0
19452
19453
19454
19455   GL_GNULIB_UNISTD_H_NONBLOCKING=0
19456
19457
19458
19459   GL_GNULIB_UNISTD_H_SIGPIPE=0
19460
19461
19462
19463   GL_GNULIB_UNLINK=0
19464
19465
19466
19467   GL_GNULIB_UNLINKAT=0
19468
19469
19470
19471   GL_GNULIB_USLEEP=0
19472
19473
19474
19475   GL_GNULIB_WRITE=0
19476
19477
19478
19479   GL_GNULIB_MDA_ACCESS=1
19480
19481
19482
19483   GL_GNULIB_MDA_CHDIR=1
19484
19485
19486
19487   GL_GNULIB_MDA_CLOSE=1
19488
19489
19490
19491   GL_GNULIB_MDA_DUP=1
19492
19493
19494
19495   GL_GNULIB_MDA_DUP2=1
19496
19497
19498
19499   GL_GNULIB_MDA_EXECL=1
19500
19501
19502
19503   GL_GNULIB_MDA_EXECLE=1
19504
19505
19506
19507   GL_GNULIB_MDA_EXECLP=1
19508
19509
19510
19511   GL_GNULIB_MDA_EXECV=1
19512
19513
19514
19515   GL_GNULIB_MDA_EXECVE=1
19516
19517
19518
19519   GL_GNULIB_MDA_EXECVP=1
19520
19521
19522
19523   GL_GNULIB_MDA_EXECVPE=1
19524
19525
19526
19527   GL_GNULIB_MDA_GETCWD=1
19528
19529
19530
19531   GL_GNULIB_MDA_GETPID=1
19532
19533
19534
19535   GL_GNULIB_MDA_ISATTY=1
19536
19537
19538
19539   GL_GNULIB_MDA_LSEEK=1
19540
19541
19542
19543   GL_GNULIB_MDA_READ=1
19544
19545
19546
19547   GL_GNULIB_MDA_RMDIR=1
19548
19549
19550
19551   GL_GNULIB_MDA_SWAB=1
19552
19553
19554
19555   GL_GNULIB_MDA_UNLINK=1
19556
19557
19558
19559   GL_GNULIB_MDA_WRITE=1
19560
19561
19562
19563
19564   # Check whether --enable-valgrind-tests was given.
19565 if test ${enable_valgrind_tests+y}
19566 then :
19567   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
19568 else $as_nop
19569   opt_valgrind_tests=${gl_valgrind_tests_default:-yes}
19570 fi
19571
19572
19573   # Run self-tests under valgrind?
19574   if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
19575     for ac_prog in valgrind
19576 do
19577   # Extract the first word of "$ac_prog", so it can be a program name with args.
19578 set dummy $ac_prog; ac_word=$2
19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19580 printf %s "checking for $ac_word... " >&6; }
19581 if test ${ac_cv_prog_VALGRIND+y}
19582 then :
19583   printf %s "(cached) " >&6
19584 else $as_nop
19585   if test -n "$VALGRIND"; then
19586   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
19587 else
19588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19589 for as_dir in $PATH
19590 do
19591   IFS=$as_save_IFS
19592   case $as_dir in #(((
19593     '') as_dir=./ ;;
19594     */) ;;
19595     *) as_dir=$as_dir/ ;;
19596   esac
19597     for ac_exec_ext in '' $ac_executable_extensions; do
19598   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19599     ac_cv_prog_VALGRIND="$ac_prog"
19600     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19601     break 2
19602   fi
19603 done
19604   done
19605 IFS=$as_save_IFS
19606
19607 fi
19608 fi
19609 VALGRIND=$ac_cv_prog_VALGRIND
19610 if test -n "$VALGRIND"; then
19611   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
19612 printf "%s\n" "$VALGRIND" >&6; }
19613 else
19614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19615 printf "%s\n" "no" >&6; }
19616 fi
19617
19618
19619   test -n "$VALGRIND" && break
19620 done
19621
19622
19623     # VALGRIND_PROGRAM contains the tool found by AC_CHECK_PROGS.  For
19624     # backwards compatibility, the VALGRIND variable is later modified
19625     # to also include all enabled options.  However the new variable
19626     # LOG_VALGRIND needs to be able to refer to the valgrind tool
19627     # without options, hence it uses this variable.
19628     VALGRIND_PROGRAM=$VALGRIND
19629
19630
19631
19632     if test -z "$DEFAULT_VALGRINDFLAGS"; then
19633       DEFAULT_VALGRINDFLAGS="-q --error-exitcode=1 --leak-check=full"
19634     fi
19635
19636
19637     if test -n "$VALGRIND"; then
19638       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5
19639 printf %s "checking for valgrind options for tests... " >&6; }
19640 if test ${gl_cv_opt_valgrind_tests+y}
19641 then :
19642   printf %s "(cached) " >&6
19643 else $as_nop
19644   if $VALGRIND $DEFAULT_VALGRINDFLAGS $VALGRINDFLAGS true
19645 then :
19646   gl_cv_opt_valgrind_tests="$DEFAULT_VALGRINDFLAGS $VALGRINDFLAGS"
19647 else $as_nop
19648   gl_cv_opt_valgrind_tests=no
19649 fi
19650
19651 fi
19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5
19653 printf "%s\n" "$gl_cv_opt_valgrind_tests" >&6; }
19654       if test "$gl_cv_opt_valgrind_tests" != no; then
19655         VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests"
19656       fi
19657     fi
19658
19659     if test -n "$VALGRIND"; then
19660                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether valgrind works on executables produced by the compiler" >&5
19661 printf %s "checking whether valgrind works on executables produced by the compiler... " >&6; }
19662 if test ${gl_cv_prog_valgrind_works+y}
19663 then :
19664   printf %s "(cached) " >&6
19665 else $as_nop
19666   if test "$cross_compiling" = yes
19667 then :
19668   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19669 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19670 as_fn_error $? "cannot run test program while cross compiling
19671 See \`config.log' for more details" "$LINENO" 5; }
19672 else $as_nop
19673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h.  */
19675 int main () { return 0; }
19676 _ACEOF
19677 if ac_fn_c_try_run "$LINENO"
19678 then :
19679   $VALGRIND $gl_cv_opt_valgrind_tests ./conftest$ac_exeext 2>/dev/null
19680             if test $? = 0; then
19681               gl_cv_prog_valgrind_works=yes
19682             else
19683               gl_cv_prog_valgrind_works=no
19684             fi
19685
19686 else $as_nop
19687   gl_cv_prog_valgrind_works=no
19688 fi
19689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19690   conftest.$ac_objext conftest.beam conftest.$ac_ext
19691 fi
19692
19693
19694 fi
19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_valgrind_works" >&5
19696 printf "%s\n" "$gl_cv_prog_valgrind_works" >&6; }
19697     fi
19698
19699
19700     LOG_VALGRIND="\$(VALGRIND_PROGRAM) \$(DEFAULT_VALGRINDFLAGS) \$(VALGRINDFLAGS) \$(AM_VALGRINDFLAGS)"
19701
19702
19703     if test "$gl_cv_prog_valgrind_works" != yes; then
19704       DEFAULT_VALGRINDFLAGS=
19705       LOG_VALGRIND=
19706       VALGRIND=
19707       VALGRINDFLAGS=
19708       VALGRIND_PROGRAM=
19709     fi
19710   fi
19711
19712
19713
19714   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
19715 printf %s "checking for C compiler option to allow warnings... " >&6; }
19716 if test ${gl_cv_cc_wallow+y}
19717 then :
19718   printf %s "(cached) " >&6
19719 else $as_nop
19720   rm -f conftest*
19721      echo 'int dummy;' > conftest.c
19722      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
19723   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19724   (eval $ac_try) 2>&5
19725   ac_status=$?
19726   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19727   test $ac_status = 0; }; } >/dev/null
19728      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
19729   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19730   (eval $ac_try) 2>&5
19731   ac_status=$?
19732   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19733   test $ac_status = 0; }; } >/dev/null
19734                          if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
19735        gl_cv_cc_wallow='-Wno-error'
19736      else
19737        gl_cv_cc_wallow=none
19738      fi
19739      rm -f conftest*
19740
19741 fi
19742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
19743 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
19744   case "$gl_cv_cc_wallow" in
19745     none) GL_CFLAG_ALLOW_WARNINGS='' ;;
19746     *)    GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
19747   esac
19748
19749
19750
19751     if test -n "$CXX" && test "$CXX" != no; then
19752     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler option to allow warnings" >&5
19753 printf %s "checking for C++ compiler option to allow warnings... " >&6; }
19754 if test ${gl_cv_cxx_wallow+y}
19755 then :
19756   printf %s "(cached) " >&6
19757 else $as_nop
19758   rm -f conftest*
19759        echo 'int dummy;' > conftest.cc
19760        { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err'
19761   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19762   (eval $ac_try) 2>&5
19763   ac_status=$?
19764   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19765   test $ac_status = 0; }; } >/dev/null
19766        { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err'
19767   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19768   (eval $ac_try) 2>&5
19769   ac_status=$?
19770   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19771   test $ac_status = 0; }; } >/dev/null
19772                                    if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
19773          gl_cv_cxx_wallow='-Wno-error'
19774        else
19775          gl_cv_cxx_wallow=none
19776        fi
19777        rm -f conftest*
19778
19779 fi
19780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cxx_wallow" >&5
19781 printf "%s\n" "$gl_cv_cxx_wallow" >&6; }
19782     case "$gl_cv_cxx_wallow" in
19783       none) GL_CXXFLAG_ALLOW_WARNINGS='' ;;
19784       *)    GL_CXXFLAG_ALLOW_WARNINGS="$gl_cv_cxx_wallow" ;;
19785     esac
19786   else
19787     GL_CXXFLAG_ALLOW_WARNINGS=''
19788   fi
19789
19790
19791
19792
19793       GL_CFLAG_GNULIB_WARNINGS=''
19794   if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
19795                                                                         cat > conftest.c <<\EOF
19796       #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19797       -Wno-cast-qual
19798       -Wno-conversion
19799       -Wno-float-equal
19800       -Wno-sign-compare
19801       -Wno-undef
19802       -Wno-unused-function
19803       -Wno-unused-parameter
19804       #endif
19805       #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19806       -Wno-float-conversion
19807       #endif
19808       #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19809       -Wimplicit-fallthrough
19810       #endif
19811       #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19812       -Wno-pedantic
19813       #endif
19814       #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
19815       -Wno-sign-conversion
19816       -Wno-type-limits
19817       #endif
19818       #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
19819       -Wno-unsuffixed-float-constants
19820       #endif
19821 EOF
19822     gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
19823     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
19824   (eval $gl_command) 2>&5
19825   ac_status=$?
19826   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19827   test $ac_status = 0; }; then
19828       gl_options=`grep -v '#' conftest.out`
19829       for word in $gl_options; do
19830         GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
19831       done
19832     fi
19833     rm -f conftest.c conftest.out
19834   fi
19835
19836
19837
19838    if true; then
19839   GL_COND_LIBTOOL_TRUE=
19840   GL_COND_LIBTOOL_FALSE='#'
19841 else
19842   GL_COND_LIBTOOL_TRUE='#'
19843   GL_COND_LIBTOOL_FALSE=
19844 fi
19845
19846   gl_cond_libtool=true
19847   gl_m4_base='m4'
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860   gl_source_base='lib/gl'
19861   gl_source_base_prefix=
19862
19863   # Autoconf 2.61a.99 and earlier don't support linking a file only
19864   # in VPATH builds.  But since GNUmakefile is for maintainer use
19865   # only, it does not matter if we skip the link with older autoconf.
19866   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
19867   # builds, so use a shell variable to bypass this.
19868   GNUmakefile=GNUmakefile
19869   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
19870
19871
19872   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
19873 printf %s "checking if gcc/ld supports -Wl,--output-def... " >&6; }
19874 if test ${gl_cv_ld_output_def+y}
19875 then :
19876   printf %s "(cached) " >&6
19877 else $as_nop
19878   if test "$enable_shared" = no; then
19879        gl_cv_ld_output_def="not needed, shared libraries are disabled"
19880      else
19881        gl_ldflags_save=$LDFLAGS
19882        LDFLAGS="-Wl,--output-def,conftest.def"
19883        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h.  */
19885
19886 int
19887 main (void)
19888 {
19889
19890   ;
19891   return 0;
19892 }
19893 _ACEOF
19894 if ac_fn_c_try_link "$LINENO"
19895 then :
19896   gl_cv_ld_output_def=yes
19897 else $as_nop
19898   gl_cv_ld_output_def=no
19899 fi
19900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19901     conftest$ac_exeext conftest.$ac_ext
19902        rm -f conftest.def
19903        LDFLAGS="$gl_ldflags_save"
19904      fi
19905 fi
19906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
19907 printf "%s\n" "$gl_cv_ld_output_def" >&6; }
19908    if test "x$gl_cv_ld_output_def" = "xyes"; then
19909   HAVE_LD_OUTPUT_DEF_TRUE=
19910   HAVE_LD_OUTPUT_DEF_FALSE='#'
19911 else
19912   HAVE_LD_OUTPUT_DEF_TRUE='#'
19913   HAVE_LD_OUTPUT_DEF_FALSE=
19914 fi
19915
19916
19917
19918   # Check whether --enable-ld-version-script was given.
19919 if test ${enable_ld_version_script+y}
19920 then :
19921   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
19922 else $as_nop
19923   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
19924 printf %s "checking if LD -Wl,--version-script works... " >&6; }
19925 if test ${gl_cv_sys_ld_version_script+y}
19926 then :
19927   printf %s "(cached) " >&6
19928 else $as_nop
19929   gl_cv_sys_ld_version_script=no
19930         save_LDFLAGS=$LDFLAGS
19931         LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
19932         echo foo >conftest.map
19933         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h.  */
19935
19936 int
19937 main (void)
19938 {
19939
19940   ;
19941   return 0;
19942 }
19943 _ACEOF
19944 if ac_fn_c_try_link "$LINENO"
19945 then :
19946
19947 else $as_nop
19948   cat > conftest.map <<EOF
19949 VERS_1 {
19950         global: sym;
19951 };
19952
19953 VERS_2 {
19954         global: sym;
19955 } VERS_1;
19956 EOF
19957            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h.  */
19959
19960 int
19961 main (void)
19962 {
19963
19964   ;
19965   return 0;
19966 }
19967 _ACEOF
19968 if ac_fn_c_try_link "$LINENO"
19969 then :
19970   gl_cv_sys_ld_version_script=yes
19971 fi
19972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19973     conftest$ac_exeext conftest.$ac_ext
19974 fi
19975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19976     conftest$ac_exeext conftest.$ac_ext
19977         rm -f conftest.map
19978         LDFLAGS=$save_LDFLAGS
19979 fi
19980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
19981 printf "%s\n" "$gl_cv_sys_ld_version_script" >&6; }
19982      have_ld_version_script=$gl_cv_sys_ld_version_script
19983 fi
19984
19985    if test "$have_ld_version_script" = yes; then
19986   HAVE_LD_VERSION_SCRIPT_TRUE=
19987   HAVE_LD_VERSION_SCRIPT_FALSE='#'
19988 else
19989   HAVE_LD_VERSION_SCRIPT_TRUE='#'
19990   HAVE_LD_VERSION_SCRIPT_FALSE=
19991 fi
19992
19993
19994
19995
19996   CFLAG_VISIBILITY=
19997   HAVE_VISIBILITY=0
19998   if test -n "$GCC"; then
19999                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
20000 printf %s "checking whether the -Werror option is usable... " >&6; }
20001 if test ${gl_cv_cc_vis_werror+y}
20002 then :
20003   printf %s "(cached) " >&6
20004 else $as_nop
20005   gl_save_CFLAGS="$CFLAGS"
20006        CFLAGS="$CFLAGS -Werror"
20007        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008 /* end confdefs.h.  */
20009
20010 int
20011 main (void)
20012 {
20013
20014   ;
20015   return 0;
20016 }
20017 _ACEOF
20018 if ac_fn_c_try_compile "$LINENO"
20019 then :
20020   gl_cv_cc_vis_werror=yes
20021 else $as_nop
20022   gl_cv_cc_vis_werror=no
20023 fi
20024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20025        CFLAGS="$gl_save_CFLAGS"
20026
20027 fi
20028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
20029 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
20030         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
20031 printf %s "checking for simple visibility declarations... " >&6; }
20032 if test ${gl_cv_cc_visibility+y}
20033 then :
20034   printf %s "(cached) " >&6
20035 else $as_nop
20036   gl_save_CFLAGS="$CFLAGS"
20037        CFLAGS="$CFLAGS -fvisibility=hidden"
20038                                           if test $gl_cv_cc_vis_werror = yes; then
20039          CFLAGS="$CFLAGS -Werror"
20040        fi
20041        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h.  */
20043 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
20044               extern __attribute__((__visibility__("default"))) int exportedvar;
20045               extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
20046               extern __attribute__((__visibility__("default"))) int exportedfunc (void);
20047               void dummyfunc (void);
20048               int hiddenvar;
20049               int exportedvar;
20050               int hiddenfunc (void) { return 51; }
20051               int exportedfunc (void) { return 1225736919; }
20052               void dummyfunc (void) {}
20053
20054 int
20055 main (void)
20056 {
20057
20058   ;
20059   return 0;
20060 }
20061 _ACEOF
20062 if ac_fn_c_try_compile "$LINENO"
20063 then :
20064   gl_cv_cc_visibility=yes
20065 else $as_nop
20066   gl_cv_cc_visibility=no
20067 fi
20068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20069        CFLAGS="$gl_save_CFLAGS"
20070
20071 fi
20072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
20073 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
20074     if test $gl_cv_cc_visibility = yes; then
20075       CFLAG_VISIBILITY="-fvisibility=hidden"
20076       HAVE_VISIBILITY=1
20077     fi
20078   fi
20079
20080
20081
20082 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
20083
20084
20085
20086   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
20087 printf %s "checking whether the compiler supports the __inline keyword... " >&6; }
20088 if test ${gl_cv_c___inline+y}
20089 then :
20090   printf %s "(cached) " >&6
20091 else $as_nop
20092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093 /* end confdefs.h.  */
20094 typedef int foo_t;
20095            static __inline foo_t foo (void) { return 0; }
20096 int
20097 main (void)
20098 {
20099 return foo ();
20100   ;
20101   return 0;
20102 }
20103 _ACEOF
20104 if ac_fn_c_try_compile "$LINENO"
20105 then :
20106   gl_cv_c___inline=yes
20107 else $as_nop
20108   gl_cv_c___inline=no
20109 fi
20110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20111 fi
20112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
20113 printf "%s\n" "$gl_cv_c___inline" >&6; }
20114   if test $gl_cv_c___inline = yes; then
20115
20116 printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h
20117
20118   fi
20119
20120
20121
20122
20123
20124
20125   case "$GL_GENERATE_LIMITS_H" in
20126     false) LIMITS_H='' ;;
20127     true)
20128                   if test -z "$LIMITS_H"; then
20129         LIMITS_H="${gl_source_base_prefix}limits.h"
20130       fi
20131       ;;
20132     *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
20133   esac
20134
20135
20136      if $GL_GENERATE_LIMITS_H; then
20137   GL_GENERATE_LIMITS_H_TRUE=
20138   GL_GENERATE_LIMITS_H_FALSE='#'
20139 else
20140   GL_GENERATE_LIMITS_H_TRUE='#'
20141   GL_GENERATE_LIMITS_H_FALSE=
20142 fi
20143 :
20144     if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20145     GL_GENERATE_LIMITS_H_TRUE='#'
20146     GL_GENERATE_LIMITS_H_FALSE='#'
20147   fi
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20163 printf %s "checking for ssize_t... " >&6; }
20164 if test ${gt_cv_ssize_t+y}
20165 then :
20166   printf %s "(cached) " >&6
20167 else $as_nop
20168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h.  */
20170 #include <sys/types.h>
20171 int
20172 main (void)
20173 {
20174 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20175             return !x;
20176   ;
20177   return 0;
20178 }
20179 _ACEOF
20180 if ac_fn_c_try_compile "$LINENO"
20181 then :
20182   gt_cv_ssize_t=yes
20183 else $as_nop
20184   gt_cv_ssize_t=no
20185 fi
20186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20187 fi
20188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20189 printf "%s\n" "$gt_cv_ssize_t" >&6; }
20190   if test $gt_cv_ssize_t = no; then
20191
20192 printf "%s\n" "#define ssize_t int" >>confdefs.h
20193
20194   fi
20195
20196
20197
20198
20199
20200           if test "$ac_cv_header_stdbool_h" = yes; then
20201     case "$host_os" in
20202       solaris*)
20203         if test -z "$GCC"; then
20204           GL_GENERATE_STDBOOL_H=true
20205         else
20206           GL_GENERATE_STDBOOL_H=false
20207         fi
20208         ;;
20209       *)
20210         GL_GENERATE_STDBOOL_H=false
20211         ;;
20212     esac
20213   else
20214     GL_GENERATE_STDBOOL_H=true
20215   fi
20216
20217   if test "$ac_cv_type__Bool" = yes; then
20218     HAVE__BOOL=1
20219   else
20220     HAVE__BOOL=0
20221   fi
20222
20223
20224
20225
20226
20227
20228   case "$GL_GENERATE_STDBOOL_H" in
20229     false) STDBOOL_H='' ;;
20230     true)
20231                   if test -z "$STDBOOL_H"; then
20232         STDBOOL_H="${gl_source_base_prefix}stdbool.h"
20233       fi
20234       ;;
20235     *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;;
20236   esac
20237
20238
20239      if $GL_GENERATE_STDBOOL_H; then
20240   GL_GENERATE_STDBOOL_H_TRUE=
20241   GL_GENERATE_STDBOOL_H_FALSE='#'
20242 else
20243   GL_GENERATE_STDBOOL_H_TRUE='#'
20244   GL_GENERATE_STDBOOL_H_FALSE=
20245 fi
20246 :
20247     if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20248     GL_GENERATE_STDBOOL_H_TRUE='#'
20249     GL_GENERATE_STDBOOL_H_FALSE='#'
20250   fi
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267   case "$GL_GENERATE_STDDEF_H" in
20268     false) STDDEF_H='' ;;
20269     true)
20270                   if test -z "$STDDEF_H"; then
20271         STDDEF_H="${gl_source_base_prefix}stddef.h"
20272       fi
20273       ;;
20274     *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
20275   esac
20276
20277
20278      if $GL_GENERATE_STDDEF_H; then
20279   GL_GENERATE_STDDEF_H_TRUE=
20280   GL_GENERATE_STDDEF_H_FALSE='#'
20281 else
20282   GL_GENERATE_STDDEF_H_TRUE='#'
20283   GL_GENERATE_STDDEF_H_FALSE=
20284 fi
20285 :
20286     if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20287     GL_GENERATE_STDDEF_H_TRUE='#'
20288     GL_GENERATE_STDDEF_H_FALSE='#'
20289   fi
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301   case "$GL_GENERATE_STDINT_H" in
20302     false) STDINT_H='' ;;
20303     true)
20304                   if test -z "$STDINT_H"; then
20305         STDINT_H="${gl_source_base_prefix}stdint.h"
20306       fi
20307       ;;
20308     *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
20309   esac
20310
20311
20312      if $GL_GENERATE_STDINT_H; then
20313   GL_GENERATE_STDINT_H_TRUE=
20314   GL_GENERATE_STDINT_H_FALSE='#'
20315 else
20316   GL_GENERATE_STDINT_H_TRUE='#'
20317   GL_GENERATE_STDINT_H_FALSE=
20318 fi
20319 :
20320     if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20321     GL_GENERATE_STDINT_H_TRUE='#'
20322     GL_GENERATE_STDINT_H_FALSE='#'
20323   fi
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333   case "$GL_GENERATE_LIMITS_H" in
20334     false) LIMITS_H='' ;;
20335     true)
20336                   if test -z "$LIMITS_H"; then
20337         LIMITS_H="${gl_source_base_prefix}limits.h"
20338       fi
20339       ;;
20340     *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
20341   esac
20342
20343
20344      if $GL_GENERATE_LIMITS_H; then
20345   GL_GENERATE_LIMITS_H_TRUE=
20346   GL_GENERATE_LIMITS_H_FALSE='#'
20347 else
20348   GL_GENERATE_LIMITS_H_TRUE='#'
20349   GL_GENERATE_LIMITS_H_FALSE=
20350 fi
20351 :
20352     if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20353     GL_GENERATE_LIMITS_H_TRUE='#'
20354     GL_GENERATE_LIMITS_H_FALSE='#'
20355   fi
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385   ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
20386 if test "x$ac_cv_func_strverscmp" = xyes
20387 then :
20388   printf "%s\n" "#define HAVE_STRVERSCMP 1" >>confdefs.h
20389
20390 fi
20391
20392   if test $ac_cv_func_strverscmp = no; then
20393     HAVE_STRVERSCMP=0
20394   fi
20395
20396
20397      if test $HAVE_STRVERSCMP = 0; then
20398   GL_COND_OBJ_STRVERSCMP_TRUE=
20399   GL_COND_OBJ_STRVERSCMP_FALSE='#'
20400 else
20401   GL_COND_OBJ_STRVERSCMP_TRUE='#'
20402   GL_COND_OBJ_STRVERSCMP_FALSE=
20403 fi
20404 :
20405     if test -z "${GL_COND_OBJ_STRVERSCMP_TRUE}" && test -z "${GL_COND_OBJ_STRVERSCMP_FALSE}"; then
20406     GL_COND_OBJ_STRVERSCMP_TRUE='#'
20407     GL_COND_OBJ_STRVERSCMP_FALSE='#'
20408   fi
20409
20410   if test -z "$GL_COND_OBJ_STRVERSCMP_TRUE"; then :
20411
20412
20413   :
20414
20415
20416 fi
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431           GL_GNULIB_STRVERSCMP=1
20432
20433
20434
20435
20436
20437 printf "%s\n" "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456   # End of code from modules
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466   gltests_libdeps=
20467   gltests_ltlibdeps=
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482   gl_source_base='lib/gl/tests'
20483   gl_source_base_prefix=
20484   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
20485
20486   gl_module_indicator_condition=$gltests_WITNESS
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500   LIBTESTS_LIBDEPS="$gltests_libdeps"
20501
20502
20503 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20504 if test "x$ac_cv_type_size_t" = xyes
20505 then :
20506
20507 else $as_nop
20508
20509 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
20510
20511 fi
20512
20513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20514 # for constant arguments.  Useless!
20515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20516 printf %s "checking for working alloca.h... " >&6; }
20517 if test ${ac_cv_working_alloca_h+y}
20518 then :
20519   printf %s "(cached) " >&6
20520 else $as_nop
20521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h.  */
20523 #include <alloca.h>
20524 int
20525 main (void)
20526 {
20527 char *p = (char *) alloca (2 * sizeof (int));
20528                           if (p) return 0;
20529   ;
20530   return 0;
20531 }
20532 _ACEOF
20533 if ac_fn_c_try_link "$LINENO"
20534 then :
20535   ac_cv_working_alloca_h=yes
20536 else $as_nop
20537   ac_cv_working_alloca_h=no
20538 fi
20539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20540     conftest$ac_exeext conftest.$ac_ext
20541 fi
20542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20543 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
20544 if test $ac_cv_working_alloca_h = yes; then
20545
20546 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
20547
20548 fi
20549
20550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20551 printf %s "checking for alloca... " >&6; }
20552 if test ${ac_cv_func_alloca_works+y}
20553 then :
20554   printf %s "(cached) " >&6
20555 else $as_nop
20556   if test $ac_cv_working_alloca_h = yes; then
20557   ac_cv_func_alloca_works=yes
20558 else
20559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20560 /* end confdefs.h.  */
20561 #include <stdlib.h>
20562 #include <stddef.h>
20563 #ifndef alloca
20564 # ifdef __GNUC__
20565 #  define alloca __builtin_alloca
20566 # elif defined _MSC_VER
20567 #  include <malloc.h>
20568 #  define alloca _alloca
20569 # else
20570 #  ifdef  __cplusplus
20571 extern "C"
20572 #  endif
20573 void *alloca (size_t);
20574 # endif
20575 #endif
20576
20577 int
20578 main (void)
20579 {
20580 char *p = (char *) alloca (1);
20581                                     if (p) return 0;
20582   ;
20583   return 0;
20584 }
20585 _ACEOF
20586 if ac_fn_c_try_link "$LINENO"
20587 then :
20588   ac_cv_func_alloca_works=yes
20589 else $as_nop
20590   ac_cv_func_alloca_works=no
20591 fi
20592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20593     conftest$ac_exeext conftest.$ac_ext
20594 fi
20595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20596 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
20597 fi
20598
20599 if test $ac_cv_func_alloca_works = yes; then
20600
20601 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
20602
20603 else
20604   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20605 # that cause trouble.  Some versions do not even contain alloca or
20606 # contain a buggy version.  If you still want to use their alloca,
20607 # use ar to extract alloca.o from them instead of compiling alloca.c.
20608
20609
20610
20611
20612
20613 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20614
20615 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
20616
20617
20618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20619 printf %s "checking stack direction for C alloca... " >&6; }
20620 if test ${ac_cv_c_stack_direction+y}
20621 then :
20622   printf %s "(cached) " >&6
20623 else $as_nop
20624   if test "$cross_compiling" = yes
20625 then :
20626   ac_cv_c_stack_direction=0
20627 else $as_nop
20628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20629 /* end confdefs.h.  */
20630 $ac_includes_default
20631 int
20632 find_stack_direction (int *addr, int depth)
20633 {
20634   int dir, dummy = 0;
20635   if (! addr)
20636     addr = &dummy;
20637   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
20638   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
20639   return dir + dummy;
20640 }
20641
20642 int
20643 main (int argc, char **argv)
20644 {
20645   return find_stack_direction (0, argc + !argv + 20) < 0;
20646 }
20647 _ACEOF
20648 if ac_fn_c_try_run "$LINENO"
20649 then :
20650   ac_cv_c_stack_direction=1
20651 else $as_nop
20652   ac_cv_c_stack_direction=-1
20653 fi
20654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20655   conftest.$ac_objext conftest.beam conftest.$ac_ext
20656 fi
20657
20658 fi
20659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20660 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
20661 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
20662
20663
20664 fi
20665
20666 ac_func=
20667 for ac_item in $ac_func_c_list
20668 do
20669   if test $ac_func; then
20670     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
20671     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
20672       echo "#define $ac_item 1" >> confdefs.h
20673     fi
20674     ac_func=
20675   else
20676     ac_func=$ac_item
20677   fi
20678 done
20679
20680
20681   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20682     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
20683
20684 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20685
20686   else
20687     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
20688   fi
20689
20690
20691
20692
20693
20694   GL_SGL_GNULIB_ACCESS=0
20695
20696
20697
20698   GL_SGL_GNULIB_CHDIR=0
20699
20700
20701
20702   GL_SGL_GNULIB_CHOWN=0
20703
20704
20705
20706   GL_SGL_GNULIB_CLOSE=0
20707
20708
20709
20710   GL_SGL_GNULIB_COPY_FILE_RANGE=0
20711
20712
20713
20714   GL_SGL_GNULIB_DUP=0
20715
20716
20717
20718   GL_SGL_GNULIB_DUP2=0
20719
20720
20721
20722   GL_SGL_GNULIB_DUP3=0
20723
20724
20725
20726   GL_SGL_GNULIB_ENVIRON=0
20727
20728
20729
20730   GL_SGL_GNULIB_EUIDACCESS=0
20731
20732
20733
20734   GL_SGL_GNULIB_EXECL=0
20735
20736
20737
20738   GL_SGL_GNULIB_EXECLE=0
20739
20740
20741
20742   GL_SGL_GNULIB_EXECLP=0
20743
20744
20745
20746   GL_SGL_GNULIB_EXECV=0
20747
20748
20749
20750   GL_SGL_GNULIB_EXECVE=0
20751
20752
20753
20754   GL_SGL_GNULIB_EXECVP=0
20755
20756
20757
20758   GL_SGL_GNULIB_EXECVPE=0
20759
20760
20761
20762   GL_SGL_GNULIB_FACCESSAT=0
20763
20764
20765
20766   GL_SGL_GNULIB_FCHDIR=0
20767
20768
20769
20770   GL_SGL_GNULIB_FCHOWNAT=0
20771
20772
20773
20774   GL_SGL_GNULIB_FDATASYNC=0
20775
20776
20777
20778   GL_SGL_GNULIB_FSYNC=0
20779
20780
20781
20782   GL_SGL_GNULIB_FTRUNCATE=0
20783
20784
20785
20786   GL_SGL_GNULIB_GETCWD=0
20787
20788
20789
20790   GL_SGL_GNULIB_GETDOMAINNAME=0
20791
20792
20793
20794   GL_SGL_GNULIB_GETDTABLESIZE=0
20795
20796
20797
20798   GL_SGL_GNULIB_GETENTROPY=0
20799
20800
20801
20802   GL_SGL_GNULIB_GETGROUPS=0
20803
20804
20805
20806   GL_SGL_GNULIB_GETHOSTNAME=0
20807
20808
20809
20810   GL_SGL_GNULIB_GETLOGIN=0
20811
20812
20813
20814   GL_SGL_GNULIB_GETLOGIN_R=0
20815
20816
20817
20818   GL_SGL_GNULIB_GETOPT_POSIX=0
20819
20820
20821
20822   GL_SGL_GNULIB_GETPAGESIZE=0
20823
20824
20825
20826   GL_SGL_GNULIB_GETPASS=0
20827
20828
20829
20830   GL_SGL_GNULIB_GETPASS_GNU=0
20831
20832
20833
20834   GL_SGL_GNULIB_GETUSERSHELL=0
20835
20836
20837
20838   GL_SGL_GNULIB_GROUP_MEMBER=0
20839
20840
20841
20842   GL_SGL_GNULIB_ISATTY=0
20843
20844
20845
20846   GL_SGL_GNULIB_LCHOWN=0
20847
20848
20849
20850   GL_SGL_GNULIB_LINK=0
20851
20852
20853
20854   GL_SGL_GNULIB_LINKAT=0
20855
20856
20857
20858   GL_SGL_GNULIB_LSEEK=0
20859
20860
20861
20862   GL_SGL_GNULIB_PIPE=0
20863
20864
20865
20866   GL_SGL_GNULIB_PIPE2=0
20867
20868
20869
20870   GL_SGL_GNULIB_PREAD=0
20871
20872
20873
20874   GL_SGL_GNULIB_PWRITE=0
20875
20876
20877
20878   GL_SGL_GNULIB_READ=0
20879
20880
20881
20882   GL_SGL_GNULIB_READLINK=0
20883
20884
20885
20886   GL_SGL_GNULIB_READLINKAT=0
20887
20888
20889
20890   GL_SGL_GNULIB_RMDIR=0
20891
20892
20893
20894   GL_SGL_GNULIB_SETHOSTNAME=0
20895
20896
20897
20898   GL_SGL_GNULIB_SLEEP=0
20899
20900
20901
20902   GL_SGL_GNULIB_SYMLINK=0
20903
20904
20905
20906   GL_SGL_GNULIB_SYMLINKAT=0
20907
20908
20909
20910   GL_SGL_GNULIB_TRUNCATE=0
20911
20912
20913
20914   GL_SGL_GNULIB_TTYNAME_R=0
20915
20916
20917
20918   GL_SGL_GNULIB_UNISTD_H_GETOPT=0
20919
20920
20921
20922   GL_SGL_GNULIB_UNISTD_H_NONBLOCKING=0
20923
20924
20925
20926   GL_SGL_GNULIB_UNISTD_H_SIGPIPE=0
20927
20928
20929
20930   GL_SGL_GNULIB_UNLINK=0
20931
20932
20933
20934   GL_SGL_GNULIB_UNLINKAT=0
20935
20936
20937
20938   GL_SGL_GNULIB_USLEEP=0
20939
20940
20941
20942   GL_SGL_GNULIB_WRITE=0
20943
20944
20945
20946   GL_SGL_GNULIB_MDA_ACCESS=1
20947
20948
20949
20950   GL_SGL_GNULIB_MDA_CHDIR=1
20951
20952
20953
20954   GL_SGL_GNULIB_MDA_CLOSE=1
20955
20956
20957
20958   GL_SGL_GNULIB_MDA_DUP=1
20959
20960
20961
20962   GL_SGL_GNULIB_MDA_DUP2=1
20963
20964
20965
20966   GL_SGL_GNULIB_MDA_EXECL=1
20967
20968
20969
20970   GL_SGL_GNULIB_MDA_EXECLE=1
20971
20972
20973
20974   GL_SGL_GNULIB_MDA_EXECLP=1
20975
20976
20977
20978   GL_SGL_GNULIB_MDA_EXECV=1
20979
20980
20981
20982   GL_SGL_GNULIB_MDA_EXECVE=1
20983
20984
20985
20986   GL_SGL_GNULIB_MDA_EXECVP=1
20987
20988
20989
20990   GL_SGL_GNULIB_MDA_EXECVPE=1
20991
20992
20993
20994   GL_SGL_GNULIB_MDA_GETCWD=1
20995
20996
20997
20998   GL_SGL_GNULIB_MDA_GETPID=1
20999
21000
21001
21002   GL_SGL_GNULIB_MDA_ISATTY=1
21003
21004
21005
21006   GL_SGL_GNULIB_MDA_LSEEK=1
21007
21008
21009
21010   GL_SGL_GNULIB_MDA_READ=1
21011
21012
21013
21014   GL_SGL_GNULIB_MDA_RMDIR=1
21015
21016
21017
21018   GL_SGL_GNULIB_MDA_SWAB=1
21019
21020
21021
21022   GL_SGL_GNULIB_MDA_UNLINK=1
21023
21024
21025
21026   GL_SGL_GNULIB_MDA_WRITE=1
21027
21028
21029
21030 gl_mda_defines='
21031 #if defined _WIN32 && !defined __CYGWIN__
21032 #define access    _access
21033 #define chdir     _chdir
21034 #define chmod     _chmod
21035 #define close     _close
21036 #define creat     _creat
21037 #define dup       _dup
21038 #define dup2      _dup2
21039 #define ecvt      _ecvt
21040 #define execl     _execl
21041 #define execle    _execle
21042 #define execlp    _execlp
21043 #define execv     _execv
21044 #define execve    _execve
21045 #define execvp    _execvp
21046 #define execvpe   _execvpe
21047 #define fcloseall _fcloseall
21048 #define fcvt      _fcvt
21049 #define fdopen    _fdopen
21050 #define fileno    _fileno
21051 #define gcvt      _gcvt
21052 #define getcwd    _getcwd
21053 #define getpid    _getpid
21054 #define getw      _getw
21055 #define isatty    _isatty
21056 #define j0        _j0
21057 #define j1        _j1
21058 #define jn        _jn
21059 #define lfind     _lfind
21060 #define lsearch   _lsearch
21061 #define lseek     _lseek
21062 #define memccpy   _memccpy
21063 #define mkdir     _mkdir
21064 #define mktemp    _mktemp
21065 #define open      _open
21066 #define putenv    _putenv
21067 #define putw      _putw
21068 #define read      _read
21069 #define rmdir     _rmdir
21070 #define strdup    _strdup
21071 #define swab      _swab
21072 #define tempnam   _tempnam
21073 #define tzset     _tzset
21074 #define umask     _umask
21075 #define unlink    _unlink
21076 #define utime     _utime
21077 #define wcsdup    _wcsdup
21078 #define write     _write
21079 #define y0        _y0
21080 #define y1        _y1
21081 #define yn        _yn
21082 #endif
21083 '
21084
21085
21086
21087   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
21088 printf %s "checking for complete errno.h... " >&6; }
21089 if test ${gl_cv_header_errno_h_complete+y}
21090 then :
21091   printf %s "(cached) " >&6
21092 else $as_nop
21093
21094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21095 /* end confdefs.h.  */
21096
21097 #include <errno.h>
21098 #if !defined ETXTBSY
21099 booboo
21100 #endif
21101 #if !defined ENOMSG
21102 booboo
21103 #endif
21104 #if !defined EIDRM
21105 booboo
21106 #endif
21107 #if !defined ENOLINK
21108 booboo
21109 #endif
21110 #if !defined EPROTO
21111 booboo
21112 #endif
21113 #if !defined EMULTIHOP
21114 booboo
21115 #endif
21116 #if !defined EBADMSG
21117 booboo
21118 #endif
21119 #if !defined EOVERFLOW
21120 booboo
21121 #endif
21122 #if !defined ENOTSUP
21123 booboo
21124 #endif
21125 #if !defined ENETRESET
21126 booboo
21127 #endif
21128 #if !defined ECONNABORTED
21129 booboo
21130 #endif
21131 #if !defined ESTALE
21132 booboo
21133 #endif
21134 #if !defined EDQUOT
21135 booboo
21136 #endif
21137 #if !defined ECANCELED
21138 booboo
21139 #endif
21140 #if !defined EOWNERDEAD
21141 booboo
21142 #endif
21143 #if !defined ENOTRECOVERABLE
21144 booboo
21145 #endif
21146 #if !defined EILSEQ
21147 booboo
21148 #endif
21149
21150 _ACEOF
21151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21152   $EGREP "booboo" >/dev/null 2>&1
21153 then :
21154   gl_cv_header_errno_h_complete=no
21155 else $as_nop
21156   gl_cv_header_errno_h_complete=yes
21157 fi
21158 rm -rf conftest*
21159
21160
21161 fi
21162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
21163 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
21164   if test $gl_cv_header_errno_h_complete = yes; then
21165     GL_GENERATE_ERRNO_H=false
21166   else
21167
21168
21169
21170
21171
21172
21173
21174
21175      if test $gl_cv_have_include_next = yes; then
21176        gl_cv_next_errno_h='<'errno.h'>'
21177      else
21178        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
21179 printf %s "checking absolute name of <errno.h>... " >&6; }
21180 if test ${gl_cv_next_errno_h+y}
21181 then :
21182   printf %s "(cached) " >&6
21183 else $as_nop
21184
21185
21186
21187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21188 /* end confdefs.h.  */
21189 #include <errno.h>
21190 _ACEOF
21191                 case "$host_os" in
21192     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21193     *)    gl_absname_cpp="$ac_cpp" ;;
21194   esac
21195
21196   case "$host_os" in
21197     mingw*)
21198                                           gl_dirsep_regex='[/\\]'
21199       ;;
21200     *)
21201       gl_dirsep_regex='\/'
21202       ;;
21203   esac
21204       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21205   gl_header_literal_regex=`echo 'errno.h' \
21206                            | sed -e "$gl_make_literal_regex_sed"`
21207   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21208       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21209       s|^/[^/]|//&|
21210       p
21211       q
21212     }'
21213
21214         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21215   sed -n "$gl_absolute_header_sed"`
21216
21217           gl_header=$gl_cv_absolute_errno_h
21218           gl_cv_next_errno_h='"'$gl_header'"'
21219
21220
21221 fi
21222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
21223 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
21224      fi
21225      NEXT_ERRNO_H=$gl_cv_next_errno_h
21226
21227      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21228        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21229        gl_next_as_first_directive='<'errno.h'>'
21230      else
21231        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21232        gl_next_as_first_directive=$gl_cv_next_errno_h
21233      fi
21234      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
21235
21236
21237
21238
21239     GL_GENERATE_ERRNO_H=true
21240   fi
21241
21242   if $GL_GENERATE_ERRNO_H; then
21243     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
21244 printf %s "checking for EMULTIHOP value... " >&6; }
21245 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
21246 then :
21247   printf %s "(cached) " >&6
21248 else $as_nop
21249
21250       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h.  */
21252
21253 #include <errno.h>
21254 #ifdef EMULTIHOP
21255 yes
21256 #endif
21257
21258 _ACEOF
21259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21260   $EGREP "yes" >/dev/null 2>&1
21261 then :
21262   gl_cv_header_errno_h_EMULTIHOP=yes
21263 else $as_nop
21264   gl_cv_header_errno_h_EMULTIHOP=no
21265 fi
21266 rm -rf conftest*
21267
21268       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
21269         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21270 /* end confdefs.h.  */
21271
21272 #define _XOPEN_SOURCE_EXTENDED 1
21273 #include <errno.h>
21274 #ifdef EMULTIHOP
21275 yes
21276 #endif
21277
21278 _ACEOF
21279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21280   $EGREP "yes" >/dev/null 2>&1
21281 then :
21282   gl_cv_header_errno_h_EMULTIHOP=hidden
21283 fi
21284 rm -rf conftest*
21285
21286         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
21287                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
21288 #define _XOPEN_SOURCE_EXTENDED 1
21289 #include <errno.h>
21290 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
21291 #include <stdio.h>
21292 #include <stdlib.h>
21293 "
21294 then :
21295
21296 fi
21297
21298         fi
21299       fi
21300
21301 fi
21302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
21303 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
21304     case $gl_cv_header_errno_h_EMULTIHOP in
21305       yes | no)
21306         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
21307         ;;
21308       *)
21309         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
21310         ;;
21311     esac
21312
21313
21314   fi
21315
21316
21317   if $GL_GENERATE_ERRNO_H; then
21318     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
21319 printf %s "checking for ENOLINK value... " >&6; }
21320 if test ${gl_cv_header_errno_h_ENOLINK+y}
21321 then :
21322   printf %s "(cached) " >&6
21323 else $as_nop
21324
21325       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326 /* end confdefs.h.  */
21327
21328 #include <errno.h>
21329 #ifdef ENOLINK
21330 yes
21331 #endif
21332
21333 _ACEOF
21334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21335   $EGREP "yes" >/dev/null 2>&1
21336 then :
21337   gl_cv_header_errno_h_ENOLINK=yes
21338 else $as_nop
21339   gl_cv_header_errno_h_ENOLINK=no
21340 fi
21341 rm -rf conftest*
21342
21343       if test $gl_cv_header_errno_h_ENOLINK = no; then
21344         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21345 /* end confdefs.h.  */
21346
21347 #define _XOPEN_SOURCE_EXTENDED 1
21348 #include <errno.h>
21349 #ifdef ENOLINK
21350 yes
21351 #endif
21352
21353 _ACEOF
21354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21355   $EGREP "yes" >/dev/null 2>&1
21356 then :
21357   gl_cv_header_errno_h_ENOLINK=hidden
21358 fi
21359 rm -rf conftest*
21360
21361         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
21362                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
21363 #define _XOPEN_SOURCE_EXTENDED 1
21364 #include <errno.h>
21365 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
21366 #include <stdio.h>
21367 #include <stdlib.h>
21368 "
21369 then :
21370
21371 fi
21372
21373         fi
21374       fi
21375
21376 fi
21377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
21378 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
21379     case $gl_cv_header_errno_h_ENOLINK in
21380       yes | no)
21381         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
21382         ;;
21383       *)
21384         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
21385         ;;
21386     esac
21387
21388
21389   fi
21390
21391
21392   if $GL_GENERATE_ERRNO_H; then
21393     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
21394 printf %s "checking for EOVERFLOW value... " >&6; }
21395 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
21396 then :
21397   printf %s "(cached) " >&6
21398 else $as_nop
21399
21400       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h.  */
21402
21403 #include <errno.h>
21404 #ifdef EOVERFLOW
21405 yes
21406 #endif
21407
21408 _ACEOF
21409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21410   $EGREP "yes" >/dev/null 2>&1
21411 then :
21412   gl_cv_header_errno_h_EOVERFLOW=yes
21413 else $as_nop
21414   gl_cv_header_errno_h_EOVERFLOW=no
21415 fi
21416 rm -rf conftest*
21417
21418       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
21419         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21420 /* end confdefs.h.  */
21421
21422 #define _XOPEN_SOURCE_EXTENDED 1
21423 #include <errno.h>
21424 #ifdef EOVERFLOW
21425 yes
21426 #endif
21427
21428 _ACEOF
21429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21430   $EGREP "yes" >/dev/null 2>&1
21431 then :
21432   gl_cv_header_errno_h_EOVERFLOW=hidden
21433 fi
21434 rm -rf conftest*
21435
21436         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
21437                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
21438 #define _XOPEN_SOURCE_EXTENDED 1
21439 #include <errno.h>
21440 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
21441 #include <stdio.h>
21442 #include <stdlib.h>
21443 "
21444 then :
21445
21446 fi
21447
21448         fi
21449       fi
21450
21451 fi
21452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
21453 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
21454     case $gl_cv_header_errno_h_EOVERFLOW in
21455       yes | no)
21456         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
21457         ;;
21458       *)
21459         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
21460         ;;
21461     esac
21462
21463
21464   fi
21465
21466
21467
21468
21469
21470
21471   GL_SGL_GNULIB_EXPLICIT_BZERO=0
21472
21473
21474
21475   GL_SGL_GNULIB_FFSL=0
21476
21477
21478
21479   GL_SGL_GNULIB_FFSLL=0
21480
21481
21482
21483   GL_SGL_GNULIB_MEMCHR=0
21484
21485
21486
21487   GL_SGL_GNULIB_MEMMEM=0
21488
21489
21490
21491   GL_SGL_GNULIB_MEMPCPY=0
21492
21493
21494
21495   GL_SGL_GNULIB_MEMRCHR=0
21496
21497
21498
21499   GL_SGL_GNULIB_RAWMEMCHR=0
21500
21501
21502
21503   GL_SGL_GNULIB_STPCPY=0
21504
21505
21506
21507   GL_SGL_GNULIB_STPNCPY=0
21508
21509
21510
21511   GL_SGL_GNULIB_STRCHRNUL=0
21512
21513
21514
21515   GL_SGL_GNULIB_STRDUP=0
21516
21517
21518
21519   GL_SGL_GNULIB_STRNCAT=0
21520
21521
21522
21523   GL_SGL_GNULIB_STRNDUP=0
21524
21525
21526
21527   GL_SGL_GNULIB_STRNLEN=0
21528
21529
21530
21531   GL_SGL_GNULIB_STRPBRK=0
21532
21533
21534
21535   GL_SGL_GNULIB_STRSEP=0
21536
21537
21538
21539   GL_SGL_GNULIB_STRSTR=0
21540
21541
21542
21543   GL_SGL_GNULIB_STRCASESTR=0
21544
21545
21546
21547   GL_SGL_GNULIB_STRTOK_R=0
21548
21549
21550
21551   GL_SGL_GNULIB_MBSLEN=0
21552
21553
21554
21555   GL_SGL_GNULIB_MBSNLEN=0
21556
21557
21558
21559   GL_SGL_GNULIB_MBSCHR=0
21560
21561
21562
21563   GL_SGL_GNULIB_MBSRCHR=0
21564
21565
21566
21567   GL_SGL_GNULIB_MBSSTR=0
21568
21569
21570
21571   GL_SGL_GNULIB_MBSCASECMP=0
21572
21573
21574
21575   GL_SGL_GNULIB_MBSNCASECMP=0
21576
21577
21578
21579   GL_SGL_GNULIB_MBSPCASECMP=0
21580
21581
21582
21583   GL_SGL_GNULIB_MBSCASESTR=0
21584
21585
21586
21587   GL_SGL_GNULIB_MBSCSPN=0
21588
21589
21590
21591   GL_SGL_GNULIB_MBSPBRK=0
21592
21593
21594
21595   GL_SGL_GNULIB_MBSSPN=0
21596
21597
21598
21599   GL_SGL_GNULIB_MBSSEP=0
21600
21601
21602
21603   GL_SGL_GNULIB_MBSTOK_R=0
21604
21605
21606
21607   GL_SGL_GNULIB_STRERROR=0
21608
21609
21610
21611   GL_SGL_GNULIB_STRERROR_R=0
21612
21613
21614
21615   GL_SGL_GNULIB_STRERRORNAME_NP=0
21616
21617
21618
21619   GL_SGL_GNULIB_SIGABBREV_NP=0
21620
21621
21622
21623   GL_SGL_GNULIB_SIGDESCR_NP=0
21624
21625
21626
21627   GL_SGL_GNULIB_STRSIGNAL=0
21628
21629
21630
21631   GL_SGL_GNULIB_STRVERSCMP=0
21632
21633
21634
21635   GL_SGL_GNULIB_MDA_MEMCCPY=1
21636
21637
21638
21639   GL_SGL_GNULIB_MDA_STRDUP=1
21640
21641
21642
21643
21644
21645   GL_SGL_GNULIB__EXIT=0
21646
21647
21648
21649   GL_SGL_GNULIB_ALIGNED_ALLOC=0
21650
21651
21652
21653   GL_SGL_GNULIB_ATOLL=0
21654
21655
21656
21657   GL_SGL_GNULIB_CALLOC_GNU=0
21658
21659
21660
21661   GL_SGL_GNULIB_CALLOC_POSIX=0
21662
21663
21664
21665   GL_SGL_GNULIB_CANONICALIZE_FILE_NAME=0
21666
21667
21668
21669   GL_SGL_GNULIB_FREE_POSIX=0
21670
21671
21672
21673   GL_SGL_GNULIB_GETLOADAVG=0
21674
21675
21676
21677   GL_SGL_GNULIB_GETSUBOPT=0
21678
21679
21680
21681   GL_SGL_GNULIB_GRANTPT=0
21682
21683
21684
21685   GL_SGL_GNULIB_MALLOC_GNU=0
21686
21687
21688
21689   GL_SGL_GNULIB_MALLOC_POSIX=0
21690
21691
21692
21693   GL_SGL_GNULIB_MBTOWC=0
21694
21695
21696
21697   GL_SGL_GNULIB_MKDTEMP=0
21698
21699
21700
21701   GL_SGL_GNULIB_MKOSTEMP=0
21702
21703
21704
21705   GL_SGL_GNULIB_MKOSTEMPS=0
21706
21707
21708
21709   GL_SGL_GNULIB_MKSTEMP=0
21710
21711
21712
21713   GL_SGL_GNULIB_MKSTEMPS=0
21714
21715
21716
21717   GL_SGL_GNULIB_POSIX_MEMALIGN=0
21718
21719
21720
21721   GL_SGL_GNULIB_POSIX_OPENPT=0
21722
21723
21724
21725   GL_SGL_GNULIB_PTSNAME=0
21726
21727
21728
21729   GL_SGL_GNULIB_PTSNAME_R=0
21730
21731
21732
21733   GL_SGL_GNULIB_PUTENV=0
21734
21735
21736
21737   GL_SGL_GNULIB_QSORT_R=0
21738
21739
21740
21741   GL_SGL_GNULIB_RANDOM=0
21742
21743
21744
21745   GL_SGL_GNULIB_RANDOM_R=0
21746
21747
21748
21749   GL_SGL_GNULIB_REALLOCARRAY=0
21750
21751
21752
21753   GL_SGL_GNULIB_REALLOC_GNU=0
21754
21755
21756
21757   GL_SGL_GNULIB_REALLOC_POSIX=0
21758
21759
21760
21761   GL_SGL_GNULIB_REALPATH=0
21762
21763
21764
21765   GL_SGL_GNULIB_RPMATCH=0
21766
21767
21768
21769   GL_SGL_GNULIB_SECURE_GETENV=0
21770
21771
21772
21773   GL_SGL_GNULIB_SETENV=0
21774
21775
21776
21777   GL_SGL_GNULIB_STRTOD=0
21778
21779
21780
21781   GL_SGL_GNULIB_STRTOL=0
21782
21783
21784
21785   GL_SGL_GNULIB_STRTOLD=0
21786
21787
21788
21789   GL_SGL_GNULIB_STRTOLL=0
21790
21791
21792
21793   GL_SGL_GNULIB_STRTOUL=0
21794
21795
21796
21797   GL_SGL_GNULIB_STRTOULL=0
21798
21799
21800
21801   GL_SGL_GNULIB_SYSTEM_POSIX=0
21802
21803
21804
21805   GL_SGL_GNULIB_UNLOCKPT=0
21806
21807
21808
21809   GL_SGL_GNULIB_UNSETENV=0
21810
21811
21812
21813   GL_SGL_GNULIB_WCTOMB=0
21814
21815
21816
21817   GL_SGL_GNULIB_MDA_ECVT=1
21818
21819
21820
21821   GL_SGL_GNULIB_MDA_FCVT=1
21822
21823
21824
21825   GL_SGL_GNULIB_MDA_GCVT=1
21826
21827
21828
21829   GL_SGL_GNULIB_MDA_MKTEMP=1
21830
21831
21832
21833   GL_SGL_GNULIB_MDA_PUTENV=1
21834
21835
21836
21837
21838     HAVE_FCNTL=1;
21839   HAVE_OPENAT=1;
21840   REPLACE_CREAT=0;
21841   REPLACE_FCNTL=0;
21842   REPLACE_OPEN=0;
21843   REPLACE_OPENAT=0;
21844
21845
21846
21847
21848   GL_SGL_GNULIB_CREAT=0
21849
21850
21851
21852   GL_SGL_GNULIB_FCNTL=0
21853
21854
21855
21856   GL_SGL_GNULIB_NONBLOCKING=0
21857
21858
21859
21860   GL_SGL_GNULIB_OPEN=0
21861
21862
21863
21864   GL_SGL_GNULIB_OPENAT=0
21865
21866
21867
21868   GL_SGL_GNULIB_MDA_CREAT=1
21869
21870
21871
21872   GL_SGL_GNULIB_MDA_OPEN=1
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
21883 printf %s "checking for working fcntl.h... " >&6; }
21884 if test ${gl_cv_header_working_fcntl_h+y}
21885 then :
21886   printf %s "(cached) " >&6
21887 else $as_nop
21888   if test "$cross_compiling" = yes
21889 then :
21890   case "$host_os" in
21891                   # Guess 'no' on native Windows.
21892           mingw*) gl_cv_header_working_fcntl_h='no' ;;
21893           *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
21894         esac
21895
21896 else $as_nop
21897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21898 /* end confdefs.h.  */
21899 #include <sys/types.h>
21900            #include <sys/stat.h>
21901            #if HAVE_UNISTD_H
21902            # include <unistd.h>
21903            #else /* on Windows with MSVC */
21904            # include <io.h>
21905            # include <stdlib.h>
21906            # defined sleep(n) _sleep ((n) * 1000)
21907            #endif
21908            #include <fcntl.h>
21909
21910
21911 $gl_mda_defines
21912
21913            #ifndef O_NOATIME
21914             #define O_NOATIME 0
21915            #endif
21916            #ifndef O_NOFOLLOW
21917             #define O_NOFOLLOW 0
21918            #endif
21919            static int const constants[] =
21920             {
21921               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
21922               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
21923             };
21924
21925 int
21926 main (void)
21927 {
21928
21929             int result = !constants;
21930             #if HAVE_SYMLINK
21931             {
21932               static char const sym[] = "conftest.sym";
21933               if (symlink ("/dev/null", sym) != 0)
21934                 result |= 2;
21935               else
21936                 {
21937                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
21938                   if (fd >= 0)
21939                     {
21940                       close (fd);
21941                       result |= 4;
21942                     }
21943                 }
21944               if (unlink (sym) != 0 || symlink (".", sym) != 0)
21945                 result |= 2;
21946               else
21947                 {
21948                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
21949                   if (fd >= 0)
21950                     {
21951                       close (fd);
21952                       result |= 4;
21953                     }
21954                 }
21955               unlink (sym);
21956             }
21957             #endif
21958             {
21959               static char const file[] = "confdefs.h";
21960               int fd = open (file, O_RDONLY | O_NOATIME);
21961               if (fd < 0)
21962                 result |= 8;
21963               else
21964                 {
21965                   struct stat st0;
21966                   if (fstat (fd, &st0) != 0)
21967                     result |= 16;
21968                   else
21969                     {
21970                       char c;
21971                       sleep (1);
21972                       if (read (fd, &c, 1) != 1)
21973                         result |= 24;
21974                       else
21975                         {
21976                           if (close (fd) != 0)
21977                             result |= 32;
21978                           else
21979                             {
21980                               struct stat st1;
21981                               if (stat (file, &st1) != 0)
21982                                 result |= 40;
21983                               else
21984                                 if (st0.st_atime != st1.st_atime)
21985                                   result |= 64;
21986                             }
21987                         }
21988                     }
21989                 }
21990             }
21991             return result;
21992   ;
21993   return 0;
21994 }
21995 _ACEOF
21996 if ac_fn_c_try_run "$LINENO"
21997 then :
21998   gl_cv_header_working_fcntl_h=yes
21999 else $as_nop
22000   case $? in #(
22001         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
22002         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
22003         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
22004          *) gl_cv_header_working_fcntl_h='no';;
22005         esac
22006 fi
22007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22008   conftest.$ac_objext conftest.beam conftest.$ac_ext
22009 fi
22010
22011
22012 fi
22013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
22014 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
22015
22016   case $gl_cv_header_working_fcntl_h in #(
22017   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
22018   *) ac_val=1;;
22019   esac
22020
22021 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
22022
22023
22024   case $gl_cv_header_working_fcntl_h in #(
22025   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
22026   *) ac_val=1;;
22027   esac
22028
22029 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043      if test $gl_cv_have_include_next = yes; then
22044        gl_cv_next_fcntl_h='<'fcntl.h'>'
22045      else
22046        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22047 printf %s "checking absolute name of <fcntl.h>... " >&6; }
22048 if test ${gl_cv_next_fcntl_h+y}
22049 then :
22050   printf %s "(cached) " >&6
22051 else $as_nop
22052
22053
22054
22055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22056 /* end confdefs.h.  */
22057 #include <fcntl.h>
22058 _ACEOF
22059                 case "$host_os" in
22060     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22061     *)    gl_absname_cpp="$ac_cpp" ;;
22062   esac
22063
22064   case "$host_os" in
22065     mingw*)
22066                                           gl_dirsep_regex='[/\\]'
22067       ;;
22068     *)
22069       gl_dirsep_regex='\/'
22070       ;;
22071   esac
22072       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22073   gl_header_literal_regex=`echo 'fcntl.h' \
22074                            | sed -e "$gl_make_literal_regex_sed"`
22075   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22076       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22077       s|^/[^/]|//&|
22078       p
22079       q
22080     }'
22081
22082         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22083   sed -n "$gl_absolute_header_sed"`
22084
22085           gl_header=$gl_cv_absolute_fcntl_h
22086           gl_cv_next_fcntl_h='"'$gl_header'"'
22087
22088
22089 fi
22090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22091 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
22092      fi
22093      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22094
22095      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22096        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22097        gl_next_as_first_directive='<'fcntl.h'>'
22098      else
22099        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22100        gl_next_as_first_directive=$gl_cv_next_fcntl_h
22101      fi
22102      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117     HAVE_DECL_FCLOSEALL=1;
22118   HAVE_DECL_FPURGE=1;
22119   HAVE_DECL_FSEEKO=1;
22120   HAVE_DECL_FTELLO=1;
22121   HAVE_DECL_GETDELIM=1;
22122   HAVE_DECL_GETLINE=1;
22123   HAVE_DECL_OBSTACK_PRINTF=1;
22124   HAVE_DECL_SNPRINTF=1;
22125   HAVE_DECL_VSNPRINTF=1;
22126   HAVE_DPRINTF=1;
22127   HAVE_FSEEKO=1;
22128   HAVE_FTELLO=1;
22129   HAVE_PCLOSE=1;
22130   HAVE_POPEN=1;
22131   HAVE_RENAMEAT=1;
22132   HAVE_VASPRINTF=1;
22133   HAVE_VDPRINTF=1;
22134   REPLACE_DPRINTF=0;
22135   REPLACE_FCLOSE=0;
22136   REPLACE_FDOPEN=0;
22137   REPLACE_FFLUSH=0;
22138   REPLACE_FOPEN=0;
22139   REPLACE_FOPEN_FOR_FOPEN_GNU=0;
22140   REPLACE_FPRINTF=0;
22141   REPLACE_FPURGE=0;
22142   REPLACE_FREOPEN=0;
22143   REPLACE_FSEEK=0;
22144   REPLACE_FSEEKO=0;
22145   REPLACE_FTELL=0;
22146   REPLACE_FTELLO=0;
22147   REPLACE_GETDELIM=0;
22148   REPLACE_GETLINE=0;
22149   REPLACE_OBSTACK_PRINTF=0;
22150   REPLACE_PERROR=0;
22151   REPLACE_POPEN=0;
22152   REPLACE_PRINTF=0;
22153   REPLACE_REMOVE=0;
22154   REPLACE_RENAME=0;
22155   REPLACE_RENAMEAT=0;
22156   REPLACE_SNPRINTF=0;
22157   REPLACE_SPRINTF=0;
22158   REPLACE_STDIO_READ_FUNCS=0;
22159   REPLACE_STDIO_WRITE_FUNCS=0;
22160   REPLACE_TMPFILE=0;
22161   REPLACE_VASPRINTF=0;
22162   REPLACE_VDPRINTF=0;
22163   REPLACE_VFPRINTF=0;
22164   REPLACE_VPRINTF=0;
22165   REPLACE_VSNPRINTF=0;
22166   REPLACE_VSPRINTF=0;
22167
22168
22169
22170   GL_SGL_GNULIB_DPRINTF=0
22171
22172
22173
22174   GL_SGL_GNULIB_FCLOSE=0
22175
22176
22177
22178   GL_SGL_GNULIB_FDOPEN=0
22179
22180
22181
22182   GL_SGL_GNULIB_FFLUSH=0
22183
22184
22185
22186   GL_SGL_GNULIB_FGETC=0
22187
22188
22189
22190   GL_SGL_GNULIB_FGETS=0
22191
22192
22193
22194   GL_SGL_GNULIB_FOPEN=0
22195
22196
22197
22198   GL_SGL_GNULIB_FOPEN_GNU=0
22199
22200
22201
22202   GL_SGL_GNULIB_FPRINTF=0
22203
22204
22205
22206   GL_SGL_GNULIB_FPRINTF_POSIX=0
22207
22208
22209
22210   GL_SGL_GNULIB_FPURGE=0
22211
22212
22213
22214   GL_SGL_GNULIB_FPUTC=0
22215
22216
22217
22218   GL_SGL_GNULIB_FPUTS=0
22219
22220
22221
22222   GL_SGL_GNULIB_FREAD=0
22223
22224
22225
22226   GL_SGL_GNULIB_FREOPEN=0
22227
22228
22229
22230   GL_SGL_GNULIB_FSCANF=0
22231
22232
22233
22234   GL_SGL_GNULIB_FSEEK=0
22235
22236
22237
22238   GL_SGL_GNULIB_FSEEKO=0
22239
22240
22241
22242   GL_SGL_GNULIB_FTELL=0
22243
22244
22245
22246   GL_SGL_GNULIB_FTELLO=0
22247
22248
22249
22250   GL_SGL_GNULIB_FWRITE=0
22251
22252
22253
22254   GL_SGL_GNULIB_GETC=0
22255
22256
22257
22258   GL_SGL_GNULIB_GETCHAR=0
22259
22260
22261
22262   GL_SGL_GNULIB_GETDELIM=0
22263
22264
22265
22266   GL_SGL_GNULIB_GETLINE=0
22267
22268
22269
22270   GL_SGL_GNULIB_OBSTACK_PRINTF=0
22271
22272
22273
22274   GL_SGL_GNULIB_OBSTACK_PRINTF_POSIX=0
22275
22276
22277
22278   GL_SGL_GNULIB_PCLOSE=0
22279
22280
22281
22282   GL_SGL_GNULIB_PERROR=0
22283
22284
22285
22286   GL_SGL_GNULIB_POPEN=0
22287
22288
22289
22290   GL_SGL_GNULIB_PRINTF=0
22291
22292
22293
22294   GL_SGL_GNULIB_PRINTF_POSIX=0
22295
22296
22297
22298   GL_SGL_GNULIB_PUTC=0
22299
22300
22301
22302   GL_SGL_GNULIB_PUTCHAR=0
22303
22304
22305
22306   GL_SGL_GNULIB_PUTS=0
22307
22308
22309
22310   GL_SGL_GNULIB_REMOVE=0
22311
22312
22313
22314   GL_SGL_GNULIB_RENAME=0
22315
22316
22317
22318   GL_SGL_GNULIB_RENAMEAT=0
22319
22320
22321
22322   GL_SGL_GNULIB_SCANF=0
22323
22324
22325
22326   GL_SGL_GNULIB_SNPRINTF=0
22327
22328
22329
22330   GL_SGL_GNULIB_SPRINTF_POSIX=0
22331
22332
22333
22334   GL_SGL_GNULIB_STDIO_H_NONBLOCKING=0
22335
22336
22337
22338   GL_SGL_GNULIB_STDIO_H_SIGPIPE=0
22339
22340
22341
22342   GL_SGL_GNULIB_TMPFILE=0
22343
22344
22345
22346   GL_SGL_GNULIB_VASPRINTF=0
22347
22348
22349
22350   GL_SGL_GNULIB_VFSCANF=0
22351
22352
22353
22354   GL_SGL_GNULIB_VSCANF=0
22355
22356
22357
22358   GL_SGL_GNULIB_VDPRINTF=0
22359
22360
22361
22362   GL_SGL_GNULIB_VFPRINTF=0
22363
22364
22365
22366   GL_SGL_GNULIB_VFPRINTF_POSIX=0
22367
22368
22369
22370   GL_SGL_GNULIB_VPRINTF=0
22371
22372
22373
22374   GL_SGL_GNULIB_VPRINTF_POSIX=0
22375
22376
22377
22378   GL_SGL_GNULIB_VSNPRINTF=0
22379
22380
22381
22382   GL_SGL_GNULIB_VSPRINTF_POSIX=0
22383
22384
22385
22386   GL_SGL_GNULIB_MDA_FCLOSEALL=1
22387
22388
22389
22390   GL_SGL_GNULIB_MDA_FDOPEN=1
22391
22392
22393
22394   GL_SGL_GNULIB_MDA_FILENO=1
22395
22396
22397
22398   GL_SGL_GNULIB_MDA_GETW=1
22399
22400
22401
22402   GL_SGL_GNULIB_MDA_PUTW=1
22403
22404
22405
22406   GL_SGL_GNULIB_MDA_TEMPNAM=1
22407
22408
22409
22410
22411     HAVE_FCHMODAT=1;
22412   HAVE_FSTATAT=1;
22413   HAVE_FUTIMENS=1;
22414   HAVE_GETUMASK=1;
22415   HAVE_LCHMOD=1;
22416   HAVE_LSTAT=1;
22417   HAVE_MKDIRAT=1;
22418   HAVE_MKFIFO=1;
22419   HAVE_MKFIFOAT=1;
22420   HAVE_MKNOD=1;
22421   HAVE_MKNODAT=1;
22422   HAVE_UTIMENSAT=1;
22423   REPLACE_CHMOD=0;
22424   REPLACE_FCHMODAT=0;
22425   REPLACE_FSTAT=0;
22426   REPLACE_FSTATAT=0;
22427   REPLACE_FUTIMENS=0;
22428   REPLACE_LSTAT=0;
22429   REPLACE_MKDIR=0;
22430   REPLACE_MKFIFO=0;
22431   REPLACE_MKFIFOAT=0;
22432   REPLACE_MKNOD=0;
22433   REPLACE_MKNODAT=0;
22434   REPLACE_STAT=0;
22435   REPLACE_UTIMENSAT=0;
22436
22437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22438 printf %s "checking whether stat file-mode macros are broken... " >&6; }
22439 if test ${ac_cv_header_stat_broken+y}
22440 then :
22441   printf %s "(cached) " >&6
22442 else $as_nop
22443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h.  */
22445 #include <sys/types.h>
22446 #include <sys/stat.h>
22447
22448 #if defined S_ISBLK && defined S_IFDIR
22449 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22450 #endif
22451
22452 #if defined S_ISBLK && defined S_IFCHR
22453 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22454 #endif
22455
22456 #if defined S_ISLNK && defined S_IFREG
22457 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22458 #endif
22459
22460 #if defined S_ISSOCK && defined S_IFREG
22461 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22462 #endif
22463
22464 _ACEOF
22465 if ac_fn_c_try_compile "$LINENO"
22466 then :
22467   ac_cv_header_stat_broken=no
22468 else $as_nop
22469   ac_cv_header_stat_broken=yes
22470 fi
22471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22472 fi
22473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22474 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
22475 if test $ac_cv_header_stat_broken = yes; then
22476
22477 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22478
22479 fi
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495      if test $gl_cv_have_include_next = yes; then
22496        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22497      else
22498        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22499 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
22500 if test ${gl_cv_next_sys_stat_h+y}
22501 then :
22502   printf %s "(cached) " >&6
22503 else $as_nop
22504
22505              if test $ac_cv_header_sys_stat_h = yes; then
22506
22507
22508
22509
22510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22511 /* end confdefs.h.  */
22512 #include <sys/stat.h>
22513 _ACEOF
22514                 case "$host_os" in
22515     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22516     *)    gl_absname_cpp="$ac_cpp" ;;
22517   esac
22518
22519   case "$host_os" in
22520     mingw*)
22521                                           gl_dirsep_regex='[/\\]'
22522       ;;
22523     *)
22524       gl_dirsep_regex='\/'
22525       ;;
22526   esac
22527       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22528   gl_header_literal_regex=`echo 'sys/stat.h' \
22529                            | sed -e "$gl_make_literal_regex_sed"`
22530   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22531       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22532       s|^/[^/]|//&|
22533       p
22534       q
22535     }'
22536
22537         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22538   sed -n "$gl_absolute_header_sed"`
22539
22540           gl_header=$gl_cv_absolute_sys_stat_h
22541           gl_cv_next_sys_stat_h='"'$gl_header'"'
22542           else
22543                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
22544              fi
22545
22546
22547 fi
22548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22549 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
22550      fi
22551      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
22552
22553      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22554        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22555        gl_next_as_first_directive='<'sys/stat.h'>'
22556      else
22557        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22558        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
22559      fi
22560      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
22561
22562
22563
22564
22565
22566
22567
22568
22569     WINDOWS_STAT_TIMESPEC=0
22570
22571
22572
22573
22574
22575
22576
22577
22578       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22579      #include <sys/stat.h>
22580 "
22581 if test "x$ac_cv_type_nlink_t" = xyes
22582 then :
22583
22584 else $as_nop
22585
22586 printf "%s\n" "#define nlink_t int" >>confdefs.h
22587
22588 fi
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599   case "$host_os" in
22600     mingw*)
22601       ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
22602 if test "x$ac_cv_header_sdkddkver_h" = xyes
22603 then :
22604   printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
22605
22606 fi
22607
22608       ;;
22609   esac
22610
22611
22612
22613
22614
22615
22616
22617   GL_SGL_GNULIB_CHMOD=0
22618
22619
22620
22621   GL_SGL_GNULIB_FCHMODAT=0
22622
22623
22624
22625   GL_SGL_GNULIB_FSTAT=0
22626
22627
22628
22629   GL_SGL_GNULIB_FSTATAT=0
22630
22631
22632
22633   GL_SGL_GNULIB_FUTIMENS=0
22634
22635
22636
22637   GL_SGL_GNULIB_GETUMASK=0
22638
22639
22640
22641   GL_SGL_GNULIB_LCHMOD=0
22642
22643
22644
22645   GL_SGL_GNULIB_LSTAT=0
22646
22647
22648
22649   GL_SGL_GNULIB_MKDIR=0
22650
22651
22652
22653   GL_SGL_GNULIB_MKDIRAT=0
22654
22655
22656
22657   GL_SGL_GNULIB_MKFIFO=0
22658
22659
22660
22661   GL_SGL_GNULIB_MKFIFOAT=0
22662
22663
22664
22665   GL_SGL_GNULIB_MKNOD=0
22666
22667
22668
22669   GL_SGL_GNULIB_MKNODAT=0
22670
22671
22672
22673   GL_SGL_GNULIB_STAT=0
22674
22675
22676
22677   GL_SGL_GNULIB_UTIMENSAT=0
22678
22679
22680
22681   GL_SGL_GNULIB_OVERRIDES_STRUCT_STAT=0
22682
22683
22684
22685   GL_SGL_GNULIB_MDA_CHMOD=1
22686
22687
22688
22689   GL_SGL_GNULIB_MDA_MKDIR=1
22690
22691
22692
22693   GL_SGL_GNULIB_MDA_UMASK=1
22694
22695
22696
22697
22698     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
22699 printf %s "checking whether stdin defaults to large file offsets... " >&6; }
22700 if test ${gl_cv_var_stdin_large_offset+y}
22701 then :
22702   printf %s "(cached) " >&6
22703 else $as_nop
22704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22705 /* end confdefs.h.  */
22706 #include <stdio.h>
22707 int
22708 main (void)
22709 {
22710 #if defined __SL64 && defined __SCLE /* cygwin */
22711   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
22712      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
22713      it is easier to do a version check than building a runtime test.  */
22714 # include <cygwin/version.h>
22715 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
22716   choke me
22717 # endif
22718 #endif
22719   ;
22720   return 0;
22721 }
22722 _ACEOF
22723 if ac_fn_c_try_link "$LINENO"
22724 then :
22725   gl_cv_var_stdin_large_offset=yes
22726 else $as_nop
22727   gl_cv_var_stdin_large_offset=no
22728 fi
22729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22730     conftest$ac_exeext conftest.$ac_ext
22731 fi
22732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
22733 printf "%s\n" "$gl_cv_var_stdin_large_offset" >&6; }
22734
22735 ac_fn_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22736 if test "x$ac_cv_have_decl_ftello" = xyes
22737 then :
22738   ac_have_decl=1
22739 else $as_nop
22740   ac_have_decl=0
22741 fi
22742 printf "%s\n" "#define HAVE_DECL_FTELLO $ac_have_decl" >>confdefs.h
22743
22744
22745
22746
22747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
22748 printf %s "checking whether ungetc works on arbitrary bytes... " >&6; }
22749 if test ${gl_cv_func_ungetc_works+y}
22750 then :
22751   printf %s "(cached) " >&6
22752 else $as_nop
22753   if test "$cross_compiling" = yes
22754 then :
22755   case "$host_os" in
22756                           # Guess yes on glibc systems.
22757            *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
22758                           # Guess yes on musl systems.
22759            *-musl*)       gl_cv_func_ungetc_works="guessing yes" ;;
22760                           # Guess yes on bionic systems.
22761            *-android*)    gl_cv_func_ungetc_works="guessing yes" ;;
22762                           # Guess yes on native Windows.
22763            mingw*)        gl_cv_func_ungetc_works="guessing yes" ;;
22764                           # If we don't know, obey --enable-cross-guesses.
22765            *)             gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;;
22766          esac
22767
22768 else $as_nop
22769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22770 /* end confdefs.h.  */
22771
22772 #include <stdio.h>
22773
22774 int
22775 main (void)
22776 {
22777 FILE *f;
22778             if (!(f = fopen ("conftest.tmp", "w+")))
22779               return 1;
22780             if (fputs ("abc", f) < 0)
22781               { fclose (f); return 2; }
22782             rewind (f);
22783             if (fgetc (f) != 'a')
22784               { fclose (f); return 3; }
22785             if (fgetc (f) != 'b')
22786               { fclose (f); return 4; }
22787             if (ungetc ('d', f) != 'd')
22788               { fclose (f); return 5; }
22789             if (ftell (f) != 1)
22790               { fclose (f); return 6; }
22791             if (fgetc (f) != 'd')
22792               { fclose (f); return 7; }
22793             if (ftell (f) != 2)
22794               { fclose (f); return 8; }
22795             if (fseek (f, 0, SEEK_CUR) != 0)
22796               { fclose (f); return 9; }
22797             if (ftell (f) != 2)
22798               { fclose (f); return 10; }
22799             if (fgetc (f) != 'c')
22800               { fclose (f); return 11; }
22801             fclose (f);
22802             remove ("conftest.tmp");
22803
22804   ;
22805   return 0;
22806 }
22807 _ACEOF
22808 if ac_fn_c_try_run "$LINENO"
22809 then :
22810   gl_cv_func_ungetc_works=yes
22811 else $as_nop
22812   gl_cv_func_ungetc_works=no
22813 fi
22814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22815   conftest.$ac_objext conftest.beam conftest.$ac_ext
22816 fi
22817
22818
22819 fi
22820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
22821 printf "%s\n" "$gl_cv_func_ungetc_works" >&6; }
22822   gl_ftello_broken_after_ungetc=no
22823   case "$gl_cv_func_ungetc_works" in
22824     *yes) ;;
22825     *)
22826                   case "$host_os" in
22827         darwin*) gl_ftello_broken_after_ungetc=yes ;;
22828         *)
22829
22830 printf "%s\n" "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
22831
22832           ;;
22833       esac
22834       ;;
22835   esac
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846   if test $ac_cv_have_decl_ftello = no; then
22847     HAVE_DECL_FTELLO=0
22848   fi
22849
22850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
22851 printf %s "checking for ftello... " >&6; }
22852 if test ${gl_cv_func_ftello+y}
22853 then :
22854   printf %s "(cached) " >&6
22855 else $as_nop
22856
22857       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22858 /* end confdefs.h.  */
22859 #include <stdio.h>
22860 int
22861 main (void)
22862 {
22863 ftello (stdin);
22864   ;
22865   return 0;
22866 }
22867 _ACEOF
22868 if ac_fn_c_try_link "$LINENO"
22869 then :
22870   gl_cv_func_ftello=yes
22871 else $as_nop
22872   gl_cv_func_ftello=no
22873 fi
22874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22875     conftest$ac_exeext conftest.$ac_ext
22876
22877 fi
22878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
22879 printf "%s\n" "$gl_cv_func_ftello" >&6; }
22880   if test $gl_cv_func_ftello = no; then
22881     HAVE_FTELLO=0
22882   else
22883     if test $WINDOWS_64_BIT_OFF_T = 1; then
22884       REPLACE_FTELLO=1
22885     fi
22886     if test $gl_cv_var_stdin_large_offset = no; then
22887       REPLACE_FTELLO=1
22888     fi
22889     if test $REPLACE_FTELLO = 0; then
22890
22891       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
22892 printf %s "checking whether ftello works... " >&6; }
22893 if test ${gl_cv_func_ftello_works+y}
22894 then :
22895   printf %s "(cached) " >&6
22896 else $as_nop
22897
22898                               case "$host_os" in
22899                       # Guess no on Solaris.
22900             solaris*) gl_cv_func_ftello_works="guessing no" ;;
22901                       # Guess yes on native Windows.
22902             mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
22903                       # Guess yes otherwise.
22904             *)        gl_cv_func_ftello_works="guessing yes" ;;
22905           esac
22906           if test "$cross_compiling" = yes
22907 then :
22908   :
22909 else $as_nop
22910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h.  */
22912
22913 #include <stdio.h>
22914 #include <stdlib.h>
22915 #include <string.h>
22916 #define TESTFILE "conftest.tmp"
22917 int
22918 main (void)
22919 {
22920   FILE *fp;
22921
22922   /* Create a file with some contents.  */
22923   fp = fopen (TESTFILE, "w");
22924   if (fp == NULL)
22925     return 70;
22926   if (fwrite ("foogarsh", 1, 8, fp) < 8)
22927     { fclose (fp); return 71; }
22928   if (fclose (fp))
22929     return 72;
22930
22931   /* The file's contents is now "foogarsh".  */
22932
22933   /* Try writing after reading to EOF.  */
22934   fp = fopen (TESTFILE, "r+");
22935   if (fp == NULL)
22936     return 73;
22937   if (fseek (fp, -1, SEEK_END))
22938     { fclose (fp); return 74; }
22939   if (!(getc (fp) == 'h'))
22940     { fclose (fp); return 1; }
22941   if (!(getc (fp) == EOF))
22942     { fclose (fp); return 2; }
22943   if (!(ftell (fp) == 8))
22944     { fclose (fp); return 3; }
22945   if (!(ftell (fp) == 8))
22946     { fclose (fp); return 4; }
22947   if (!(putc ('!', fp) == '!'))
22948     { fclose (fp); return 5; }
22949   if (!(ftell (fp) == 9))
22950     { fclose (fp); return 6; }
22951   if (!(fclose (fp) == 0))
22952     return 7;
22953   fp = fopen (TESTFILE, "r");
22954   if (fp == NULL)
22955     return 75;
22956   {
22957     char buf[10];
22958     if (!(fread (buf, 1, 10, fp) == 9))
22959       { fclose (fp); return 10; }
22960     if (!(memcmp (buf, "foogarsh!", 9) == 0))
22961       { fclose (fp); return 11; }
22962   }
22963   if (!(fclose (fp) == 0))
22964     return 12;
22965
22966   /* The file's contents is now "foogarsh!".  */
22967
22968   return 0;
22969 }
22970 _ACEOF
22971 if ac_fn_c_try_run "$LINENO"
22972 then :
22973   gl_cv_func_ftello_works=yes
22974 else $as_nop
22975   gl_cv_func_ftello_works=no
22976 fi
22977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22978   conftest.$ac_objext conftest.beam conftest.$ac_ext
22979 fi
22980
22981
22982 fi
22983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
22984 printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
22985       case "$gl_cv_func_ftello_works" in
22986         *yes) ;;
22987         *)
22988           REPLACE_FTELLO=1
22989
22990 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
22991
22992           ;;
22993       esac
22994     fi
22995     if test $REPLACE_FTELLO = 0; then
22996
22997       if test $gl_ftello_broken_after_ungetc = yes; then
22998         REPLACE_FTELLO=1
22999
23000 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h
23001
23002       fi
23003     fi
23004   fi
23005
23006
23007 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23008 if test "x$ac_cv_have_decl_getdtablesize" = xyes
23009 then :
23010   ac_have_decl=1
23011 else $as_nop
23012   ac_have_decl=0
23013 fi
23014 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030      if test $gl_cv_have_include_next = yes; then
23031        gl_cv_next_getopt_h='<'getopt.h'>'
23032      else
23033        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
23034 printf %s "checking absolute name of <getopt.h>... " >&6; }
23035 if test ${gl_cv_next_getopt_h+y}
23036 then :
23037   printf %s "(cached) " >&6
23038 else $as_nop
23039
23040              if test $ac_cv_header_getopt_h = yes; then
23041
23042
23043
23044
23045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h.  */
23047 #include <getopt.h>
23048 _ACEOF
23049                 case "$host_os" in
23050     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23051     *)    gl_absname_cpp="$ac_cpp" ;;
23052   esac
23053
23054   case "$host_os" in
23055     mingw*)
23056                                           gl_dirsep_regex='[/\\]'
23057       ;;
23058     *)
23059       gl_dirsep_regex='\/'
23060       ;;
23061   esac
23062       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23063   gl_header_literal_regex=`echo 'getopt.h' \
23064                            | sed -e "$gl_make_literal_regex_sed"`
23065   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23066       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23067       s|^/[^/]|//&|
23068       p
23069       q
23070     }'
23071
23072         gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23073   sed -n "$gl_absolute_header_sed"`
23074
23075           gl_header=$gl_cv_absolute_getopt_h
23076           gl_cv_next_getopt_h='"'$gl_header'"'
23077           else
23078                gl_cv_next_getopt_h='<'getopt.h'>'
23079              fi
23080
23081
23082 fi
23083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
23084 printf "%s\n" "$gl_cv_next_getopt_h" >&6; }
23085      fi
23086      NEXT_GETOPT_H=$gl_cv_next_getopt_h
23087
23088      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23089        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23090        gl_next_as_first_directive='<'getopt.h'>'
23091      else
23092        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23093        gl_next_as_first_directive=$gl_cv_next_getopt_h
23094      fi
23095      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
23096
23097
23098
23099
23100   if test $ac_cv_header_getopt_h = yes; then
23101     HAVE_GETOPT_H=1
23102   else
23103     HAVE_GETOPT_H=0
23104   fi
23105
23106
23107   gl_replace_getopt=
23108
23109     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
23110            for ac_header in getopt.h
23111 do :
23112   ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
23113 if test "x$ac_cv_header_getopt_h" = xyes
23114 then :
23115   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
23116
23117 else $as_nop
23118   gl_replace_getopt=yes
23119 fi
23120
23121 done
23122   fi
23123
23124     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
23125
23126   for ac_func in getopt_long_only
23127 do :
23128   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
23129 if test "x$ac_cv_func_getopt_long_only" = xyes
23130 then :
23131   printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
23132
23133 else $as_nop
23134   gl_replace_getopt=yes
23135 fi
23136
23137 done
23138   fi
23139
23140           if test -z "$gl_replace_getopt"; then
23141     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
23142 printf %s "checking whether getopt is POSIX compatible... " >&6; }
23143 if test ${gl_cv_func_getopt_posix+y}
23144 then :
23145   printf %s "(cached) " >&6
23146 else $as_nop
23147
23148                                                 if test $cross_compiling = no; then
23149                               if test "$cross_compiling" = yes
23150 then :
23151   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23152 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23153 as_fn_error $? "cannot run test program while cross compiling
23154 See \`config.log' for more details" "$LINENO" 5; }
23155 else $as_nop
23156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23157 /* end confdefs.h.  */
23158
23159 #include <unistd.h>
23160 #include <stdlib.h>
23161 #include <string.h>
23162
23163 int
23164 main ()
23165 {
23166   static char program[] = "program";
23167   static char a[] = "-a";
23168   static char foo[] = "foo";
23169   static char bar[] = "bar";
23170   char *argv[] = { program, a, foo, bar, NULL };
23171   int c;
23172
23173   c = getopt (4, argv, "ab");
23174   if (!(c == 'a'))
23175     return 1;
23176   c = getopt (4, argv, "ab");
23177   if (!(c == -1))
23178     return 2;
23179   if (!(optind == 2))
23180     return 3;
23181   return 0;
23182 }
23183
23184 _ACEOF
23185 if ac_fn_c_try_run "$LINENO"
23186 then :
23187   gl_cv_func_getopt_posix=maybe
23188 else $as_nop
23189   gl_cv_func_getopt_posix=no
23190 fi
23191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23192   conftest.$ac_objext conftest.beam conftest.$ac_ext
23193 fi
23194
23195           if test $gl_cv_func_getopt_posix = maybe; then
23196                                     if test "$cross_compiling" = yes
23197 then :
23198   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23199 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23200 as_fn_error $? "cannot run test program while cross compiling
23201 See \`config.log' for more details" "$LINENO" 5; }
23202 else $as_nop
23203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h.  */
23205
23206 #include <unistd.h>
23207 #include <stdlib.h>
23208 #include <string.h>
23209
23210 int
23211 main ()
23212 {
23213   static char program[] = "program";
23214   static char donald[] = "donald";
23215   static char p[] = "-p";
23216   static char billy[] = "billy";
23217   static char duck[] = "duck";
23218   static char a[] = "-a";
23219   static char bar[] = "bar";
23220   char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
23221   int c;
23222
23223   c = getopt (7, argv, "+abp:q:");
23224   if (!(c == -1))
23225     return 4;
23226   if (!(strcmp (argv[0], "program") == 0))
23227     return 5;
23228   if (!(strcmp (argv[1], "donald") == 0))
23229     return 6;
23230   if (!(strcmp (argv[2], "-p") == 0))
23231     return 7;
23232   if (!(strcmp (argv[3], "billy") == 0))
23233     return 8;
23234   if (!(strcmp (argv[4], "duck") == 0))
23235     return 9;
23236   if (!(strcmp (argv[5], "-a") == 0))
23237     return 10;
23238   if (!(strcmp (argv[6], "bar") == 0))
23239     return 11;
23240   if (!(optind == 1))
23241     return 12;
23242   return 0;
23243 }
23244
23245 _ACEOF
23246 if ac_fn_c_try_run "$LINENO"
23247 then :
23248   gl_cv_func_getopt_posix=maybe
23249 else $as_nop
23250   gl_cv_func_getopt_posix=no
23251 fi
23252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23253   conftest.$ac_objext conftest.beam conftest.$ac_ext
23254 fi
23255
23256           fi
23257           if test $gl_cv_func_getopt_posix = maybe; then
23258                         if test "$cross_compiling" = yes
23259 then :
23260   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23261 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23262 as_fn_error $? "cannot run test program while cross compiling
23263 See \`config.log' for more details" "$LINENO" 5; }
23264 else $as_nop
23265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23266 /* end confdefs.h.  */
23267
23268 #include <unistd.h>
23269 #include <stdlib.h>
23270 #include <string.h>
23271
23272 int
23273 main ()
23274 {
23275   static char program[] = "program";
23276   static char ab[] = "-ab";
23277   char *argv[3] = { program, ab, NULL };
23278   if (getopt (2, argv, "ab:") != 'a')
23279     return 13;
23280   if (getopt (2, argv, "ab:") != '?')
23281     return 14;
23282   if (optopt != 'b')
23283     return 15;
23284   if (optind != 2)
23285     return 16;
23286   return 0;
23287 }
23288
23289 _ACEOF
23290 if ac_fn_c_try_run "$LINENO"
23291 then :
23292   gl_cv_func_getopt_posix=yes
23293 else $as_nop
23294   gl_cv_func_getopt_posix=no
23295 fi
23296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23297   conftest.$ac_objext conftest.beam conftest.$ac_ext
23298 fi
23299
23300           fi
23301         else
23302           case "$host_os" in
23303             darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
23304             *)                       gl_cv_func_getopt_posix="guessing yes";;
23305           esac
23306         fi
23307
23308 fi
23309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
23310 printf "%s\n" "$gl_cv_func_getopt_posix" >&6; }
23311     case "$gl_cv_func_getopt_posix" in
23312       *no) gl_replace_getopt=yes ;;
23313     esac
23314   fi
23315
23316   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
23317     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
23318 printf %s "checking for working GNU getopt function... " >&6; }
23319 if test ${gl_cv_func_getopt_gnu+y}
23320 then :
23321   printf %s "(cached) " >&6
23322 else $as_nop
23323   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
23324        # optstring is necessary for programs like m4 that have POSIX-mandated
23325        # semantics for supporting options interspersed with files.
23326        # Also, since getopt_long is a GNU extension, we require optind=0.
23327        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
23328        # so take care to revert to the correct (non-)export state.
23329        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
23330        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
23331          xx) gl_had_POSIXLY_CORRECT=exported ;;
23332          x)  gl_had_POSIXLY_CORRECT=yes      ;;
23333          *)  gl_had_POSIXLY_CORRECT=         ;;
23334        esac
23335        POSIXLY_CORRECT=1
23336        export POSIXLY_CORRECT
23337        if test "$cross_compiling" = yes
23338 then :
23339                              gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
23340
23341 else $as_nop
23342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h.  */
23344 #include <getopt.h>
23345                            #include <stddef.h>
23346                            #include <string.h>
23347
23348 #include <stdlib.h>
23349 #if defined __MACH__ && defined __APPLE__
23350 /* Avoid a crash on Mac OS X.  */
23351 #include <mach/mach.h>
23352 #include <mach/mach_error.h>
23353 #include <mach/thread_status.h>
23354 #include <mach/exception.h>
23355 #include <mach/task.h>
23356 #include <pthread.h>
23357 /* The exception port on which our thread listens.  */
23358 static mach_port_t our_exception_port;
23359 /* The main function of the thread listening for exceptions of type
23360    EXC_BAD_ACCESS.  */
23361 static void *
23362 mach_exception_thread (void *arg)
23363 {
23364   /* Buffer for a message to be received.  */
23365   struct {
23366     mach_msg_header_t head;
23367     mach_msg_body_t msgh_body;
23368     char data[1024];
23369   } msg;
23370   mach_msg_return_t retval;
23371   /* Wait for a message on the exception port.  */
23372   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
23373                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
23374   if (retval != MACH_MSG_SUCCESS)
23375     abort ();
23376   exit (1);
23377 }
23378 static void
23379 nocrash_init (void)
23380 {
23381   mach_port_t self = mach_task_self ();
23382   /* Allocate a port on which the thread shall listen for exceptions.  */
23383   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
23384       == KERN_SUCCESS) {
23385     /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
23386     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
23387                                 MACH_MSG_TYPE_MAKE_SEND)
23388         == KERN_SUCCESS) {
23389       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
23390          for us.  */
23391       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
23392       /* Create the thread listening on the exception port.  */
23393       pthread_attr_t attr;
23394       pthread_t thread;
23395       if (pthread_attr_init (&attr) == 0
23396           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
23397           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
23398         pthread_attr_destroy (&attr);
23399         /* Replace the exception port info for these exceptions with our own.
23400            Note that we replace the exception port for the entire task, not only
23401            for a particular thread.  This has the effect that when our exception
23402            port gets the message, the thread specific exception port has already
23403            been asked, and we don't need to bother about it.
23404            See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
23405         task_set_exception_ports (self, mask, our_exception_port,
23406                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
23407       }
23408     }
23409   }
23410 }
23411 #elif defined _WIN32 && ! defined __CYGWIN__
23412 /* Avoid a crash on native Windows.  */
23413 #define WIN32_LEAN_AND_MEAN
23414 #include <windows.h>
23415 #include <winerror.h>
23416 static LONG WINAPI
23417 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
23418 {
23419   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
23420     {
23421     case EXCEPTION_ACCESS_VIOLATION:
23422     case EXCEPTION_IN_PAGE_ERROR:
23423     case EXCEPTION_STACK_OVERFLOW:
23424     case EXCEPTION_GUARD_PAGE:
23425     case EXCEPTION_PRIV_INSTRUCTION:
23426     case EXCEPTION_ILLEGAL_INSTRUCTION:
23427     case EXCEPTION_DATATYPE_MISALIGNMENT:
23428     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
23429     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
23430       exit (1);
23431     }
23432   return EXCEPTION_CONTINUE_SEARCH;
23433 }
23434 static void
23435 nocrash_init (void)
23436 {
23437   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
23438 }
23439 #else
23440 /* Avoid a crash on POSIX systems.  */
23441 #include <signal.h>
23442 #include <unistd.h>
23443 /* A POSIX signal handler.  */
23444 static void
23445 exception_handler (int sig)
23446 {
23447   _exit (1);
23448 }
23449 static void
23450 nocrash_init (void)
23451 {
23452 #ifdef SIGSEGV
23453   signal (SIGSEGV, exception_handler);
23454 #endif
23455 #ifdef SIGBUS
23456   signal (SIGBUS, exception_handler);
23457 #endif
23458 }
23459 #endif
23460
23461
23462 int
23463 main (void)
23464 {
23465
23466              int result = 0;
23467
23468              nocrash_init();
23469
23470              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
23471                 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
23472                 OSF/1 5.1, Solaris 10.  */
23473              {
23474                static char conftest[] = "conftest";
23475                static char plus[] = "-+";
23476                char *argv[3] = { conftest, plus, NULL };
23477                opterr = 0;
23478                if (getopt (2, argv, "+a") != '?')
23479                  result |= 1;
23480              }
23481              /* This code succeeds on glibc 2.8, mingw,
23482                 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
23483                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
23484              {
23485                static char program[] = "program";
23486                static char p[] = "-p";
23487                static char foo[] = "foo";
23488                static char bar[] = "bar";
23489                char *argv[] = { program, p, foo, bar, NULL };
23490
23491                optind = 1;
23492                if (getopt (4, argv, "p::") != 'p')
23493                  result |= 2;
23494                else if (optarg != NULL)
23495                  result |= 4;
23496                else if (getopt (4, argv, "p::") != -1)
23497                  result |= 6;
23498                else if (optind != 2)
23499                  result |= 8;
23500              }
23501              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
23502              {
23503                static char program[] = "program";
23504                static char foo[] = "foo";
23505                static char p[] = "-p";
23506                char *argv[] = { program, foo, p, NULL };
23507                optind = 0;
23508                if (getopt (3, argv, "-p") != 1)
23509                  result |= 16;
23510                else if (getopt (3, argv, "-p") != 'p')
23511                  result |= 16;
23512              }
23513              /* This code fails on glibc 2.11.  */
23514              {
23515                static char program[] = "program";
23516                static char b[] = "-b";
23517                static char a[] = "-a";
23518                char *argv[] = { program, b, a, NULL };
23519                optind = opterr = 0;
23520                if (getopt (3, argv, "+:a:b") != 'b')
23521                  result |= 32;
23522                else if (getopt (3, argv, "+:a:b") != ':')
23523                  result |= 32;
23524              }
23525              /* This code dumps core on glibc 2.14.  */
23526              {
23527                static char program[] = "program";
23528                static char w[] = "-W";
23529                static char dummy[] = "dummy";
23530                char *argv[] = { program, w, dummy, NULL };
23531                optind = opterr = 1;
23532                if (getopt (3, argv, "W;") != 'W')
23533                  result |= 64;
23534              }
23535              return result;
23536
23537   ;
23538   return 0;
23539 }
23540 _ACEOF
23541 if ac_fn_c_try_run "$LINENO"
23542 then :
23543   gl_cv_func_getopt_gnu=yes
23544 else $as_nop
23545   gl_cv_func_getopt_gnu=no
23546 fi
23547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23548   conftest.$ac_objext conftest.beam conftest.$ac_ext
23549 fi
23550
23551        case $gl_had_POSIXLY_CORRECT in
23552          exported) ;;
23553          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
23554          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
23555        esac
23556
23557 fi
23558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
23559 printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; }
23560     if test "$gl_cv_func_getopt_gnu" != yes; then
23561       gl_replace_getopt=yes
23562     else
23563       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
23564 printf %s "checking for working GNU getopt_long function... " >&6; }
23565 if test ${gl_cv_func_getopt_long_gnu+y}
23566 then :
23567   printf %s "(cached) " >&6
23568 else $as_nop
23569   if test "$cross_compiling" = yes
23570 then :
23571               case "$host_os" in
23572               openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
23573               *)        gl_cv_func_getopt_long_gnu="guessing yes";;
23574             esac
23575
23576 else $as_nop
23577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578 /* end confdefs.h.  */
23579 #include <getopt.h>
23580                 #include <stddef.h>
23581                 #include <string.h>
23582
23583 int
23584 main (void)
23585 {
23586 static const struct option long_options[] =
23587                   {
23588                     { "xtremely-",no_argument,       NULL, 1003 },
23589                     { "xtra",     no_argument,       NULL, 1001 },
23590                     { "xtreme",   no_argument,       NULL, 1002 },
23591                     { "xtremely", no_argument,       NULL, 1003 },
23592                     { NULL,       0,                 NULL, 0 }
23593                   };
23594                 /* This code fails on OpenBSD 5.0.  */
23595                 {
23596                   static char program[] = "program";
23597                   static char xtremel[] = "--xtremel";
23598                   char *argv[] = { program, xtremel, NULL };
23599                   int option_index;
23600                   optind = 1; opterr = 0;
23601                   if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
23602                     return 1;
23603                 }
23604                 return 0;
23605
23606   ;
23607   return 0;
23608 }
23609 _ACEOF
23610 if ac_fn_c_try_run "$LINENO"
23611 then :
23612   gl_cv_func_getopt_long_gnu=yes
23613 else $as_nop
23614   gl_cv_func_getopt_long_gnu=no
23615 fi
23616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23617   conftest.$ac_objext conftest.beam conftest.$ac_ext
23618 fi
23619
23620
23621 fi
23622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
23623 printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; }
23624       case "$gl_cv_func_getopt_long_gnu" in
23625         *yes) ;;
23626         *) gl_replace_getopt=yes ;;
23627       esac
23628     fi
23629   fi
23630
23631
23632 :
23633
23634
23635     HAVE_GETTIMEOFDAY=1;
23636   HAVE_STRUCT_TIMEVAL=1;
23637   HAVE_SYS_TIME_H=1;
23638   REPLACE_GETTIMEOFDAY=0;
23639   REPLACE_STRUCT_TIMEVAL=0;
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655      if test $gl_cv_have_include_next = yes; then
23656        gl_cv_next_sys_time_h='<'sys/time.h'>'
23657      else
23658        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
23659 printf %s "checking absolute name of <sys/time.h>... " >&6; }
23660 if test ${gl_cv_next_sys_time_h+y}
23661 then :
23662   printf %s "(cached) " >&6
23663 else $as_nop
23664
23665              if test $ac_cv_header_sys_time_h = yes; then
23666
23667
23668
23669
23670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h.  */
23672 #include <sys/time.h>
23673 _ACEOF
23674                 case "$host_os" in
23675     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23676     *)    gl_absname_cpp="$ac_cpp" ;;
23677   esac
23678
23679   case "$host_os" in
23680     mingw*)
23681                                           gl_dirsep_regex='[/\\]'
23682       ;;
23683     *)
23684       gl_dirsep_regex='\/'
23685       ;;
23686   esac
23687       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23688   gl_header_literal_regex=`echo 'sys/time.h' \
23689                            | sed -e "$gl_make_literal_regex_sed"`
23690   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23691       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23692       s|^/[^/]|//&|
23693       p
23694       q
23695     }'
23696
23697         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23698   sed -n "$gl_absolute_header_sed"`
23699
23700           gl_header=$gl_cv_absolute_sys_time_h
23701           gl_cv_next_sys_time_h='"'$gl_header'"'
23702           else
23703                gl_cv_next_sys_time_h='<'sys/time.h'>'
23704              fi
23705
23706
23707 fi
23708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
23709 printf "%s\n" "$gl_cv_next_sys_time_h" >&6; }
23710      fi
23711      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
23712
23713      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23714        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23715        gl_next_as_first_directive='<'sys/time.h'>'
23716      else
23717        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23718        gl_next_as_first_directive=$gl_cv_next_sys_time_h
23719      fi
23720      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
23721
23722
23723
23724
23725
23726   if test $ac_cv_header_sys_time_h != yes; then
23727     HAVE_SYS_TIME_H=0
23728   fi
23729
23730
23731
23732
23733
23734   if test $ac_cv_header_sys_socket_h != yes; then
23735                     ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23736 if test "x$ac_cv_header_winsock2_h" = xyes
23737 then :
23738   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23739
23740 fi
23741
23742   fi
23743   if test "$ac_cv_header_winsock2_h" = yes; then
23744     HAVE_WINSOCK2_H=1
23745     UNISTD_H_HAVE_WINSOCK2_H=1
23746     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23747   else
23748     HAVE_WINSOCK2_H=0
23749   fi
23750
23751
23752   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
23753 printf %s "checking for struct timeval... " >&6; }
23754 if test ${gl_cv_sys_struct_timeval+y}
23755 then :
23756   printf %s "(cached) " >&6
23757 else $as_nop
23758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23759 /* end confdefs.h.  */
23760 #if HAVE_SYS_TIME_H
23761              #include <sys/time.h>
23762             #endif
23763             #include <time.h>
23764             #if HAVE_WINSOCK2_H
23765             # include <winsock2.h>
23766             #endif
23767
23768 int
23769 main (void)
23770 {
23771 static struct timeval x; x.tv_sec = x.tv_usec;
23772   ;
23773   return 0;
23774 }
23775 _ACEOF
23776 if ac_fn_c_try_compile "$LINENO"
23777 then :
23778   gl_cv_sys_struct_timeval=yes
23779 else $as_nop
23780   gl_cv_sys_struct_timeval=no
23781 fi
23782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23783
23784 fi
23785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
23786 printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; }
23787   if test $gl_cv_sys_struct_timeval != yes; then
23788     HAVE_STRUCT_TIMEVAL=0
23789   else
23790                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
23791 printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; }
23792 if test ${gl_cv_sys_struct_timeval_tv_sec+y}
23793 then :
23794   printf %s "(cached) " >&6
23795 else $as_nop
23796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h.  */
23798 #if HAVE_SYS_TIME_H
23799                #include <sys/time.h>
23800               #endif
23801               #include <time.h>
23802               #if HAVE_WINSOCK2_H
23803               # include <winsock2.h>
23804               #endif
23805
23806 int
23807 main (void)
23808 {
23809 static struct timeval x;
23810               typedef int verify_tv_sec_type[
23811                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
23812               ];
23813
23814   ;
23815   return 0;
23816 }
23817 _ACEOF
23818 if ac_fn_c_try_compile "$LINENO"
23819 then :
23820   gl_cv_sys_struct_timeval_tv_sec=yes
23821 else $as_nop
23822   gl_cv_sys_struct_timeval_tv_sec=no
23823 fi
23824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23825
23826 fi
23827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
23828 printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
23829     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
23830       REPLACE_STRUCT_TIMEVAL=1
23831     fi
23832   fi
23833
23834
23835
23836
23837
23838
23839
23840
23841   GL_SGL_GNULIB_GETTIMEOFDAY=0
23842
23843
23844
23845
23846     HAVE_DECL_IMAXABS=1;
23847   HAVE_DECL_IMAXDIV=1;
23848   HAVE_DECL_STRTOIMAX=1;
23849   HAVE_DECL_STRTOUMAX=1;
23850   HAVE_IMAXDIV_T=1;
23851   REPLACE_STRTOIMAX=0;
23852   REPLACE_STRTOUMAX=0;
23853   INT32_MAX_LT_INTMAX_MAX=1;
23854   INT64_MAX_EQ_LONG_MAX='defined _LP64';
23855   PRIPTR_PREFIX=__PRIPTR_PREFIX;
23856   UINT32_MAX_LT_UINTMAX_MAX=1;
23857   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873      if test $gl_cv_have_include_next = yes; then
23874        gl_cv_next_inttypes_h='<'inttypes.h'>'
23875      else
23876        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
23877 printf %s "checking absolute name of <inttypes.h>... " >&6; }
23878 if test ${gl_cv_next_inttypes_h+y}
23879 then :
23880   printf %s "(cached) " >&6
23881 else $as_nop
23882
23883              if test $ac_cv_header_inttypes_h = yes; then
23884
23885
23886
23887
23888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23889 /* end confdefs.h.  */
23890 #include <inttypes.h>
23891 _ACEOF
23892                 case "$host_os" in
23893     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23894     *)    gl_absname_cpp="$ac_cpp" ;;
23895   esac
23896
23897   case "$host_os" in
23898     mingw*)
23899                                           gl_dirsep_regex='[/\\]'
23900       ;;
23901     *)
23902       gl_dirsep_regex='\/'
23903       ;;
23904   esac
23905       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23906   gl_header_literal_regex=`echo 'inttypes.h' \
23907                            | sed -e "$gl_make_literal_regex_sed"`
23908   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23909       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23910       s|^/[^/]|//&|
23911       p
23912       q
23913     }'
23914
23915         gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23916   sed -n "$gl_absolute_header_sed"`
23917
23918           gl_header=$gl_cv_absolute_inttypes_h
23919           gl_cv_next_inttypes_h='"'$gl_header'"'
23920           else
23921                gl_cv_next_inttypes_h='<'inttypes.h'>'
23922              fi
23923
23924
23925 fi
23926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
23927 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
23928      fi
23929      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
23930
23931      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23932        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23933        gl_next_as_first_directive='<'inttypes.h'>'
23934      else
23935        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23936        gl_next_as_first_directive=$gl_cv_next_inttypes_h
23937      fi
23938      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954   GL_SGL_GNULIB_IMAXABS=0
23955
23956
23957
23958   GL_SGL_GNULIB_IMAXDIV=0
23959
23960
23961
23962   GL_SGL_GNULIB_STRTOIMAX=0
23963
23964
23965
23966   GL_SGL_GNULIB_STRTOUMAX=0
23967
23968
23969
23970
23971   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
23972 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
23973 if test ${gl_cv_malloc_ptrdiff+y}
23974 then :
23975   printf %s "(cached) " >&6
23976 else $as_nop
23977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23978 /* end confdefs.h.  */
23979 #include <stdint.h>
23980
23981 int
23982 main (void)
23983 {
23984 /* 64-bit ptrdiff_t is so wide that no practical platform
23985                can exceed it.  */
23986             #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
23987
23988             /* On rare machines where size_t fits in ptrdiff_t there
23989                is no problem.  */
23990             #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
23991
23992             /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
23993                bounds even on 32-bit platforms.  We don't know which
23994                non-glibc systems are safe.  */
23995             #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
23996
23997             #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
23998               return 0;
23999             #else
24000               #error "malloc might not be ptrdiff_t safe"
24001               syntax error
24002             #endif
24003
24004   ;
24005   return 0;
24006 }
24007 _ACEOF
24008 if ac_fn_c_try_compile "$LINENO"
24009 then :
24010   gl_cv_malloc_ptrdiff=yes
24011 else $as_nop
24012   gl_cv_malloc_ptrdiff=no
24013 fi
24014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24015
24016 fi
24017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
24018 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
24019
24020
24021
24022
24023   test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
24024
24025
24026
24027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
24028 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
24029 if test ${gl_cv_func_malloc_posix+y}
24030 then :
24031   printf %s "(cached) " >&6
24032 else $as_nop
24033
24034                                     case "$host_os" in
24035         mingw*)
24036           gl_cv_func_malloc_posix=no ;;
24037         irix* | solaris*)
24038
24039           gl_cv_func_malloc_posix=no ;;
24040         *)
24041           gl_cv_func_malloc_posix=yes ;;
24042       esac
24043
24044 fi
24045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
24046 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
24047
24048
24049
24050
24051
24052   if test "$gl_cv_func_malloc_posix" = yes; then
24053
24054 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24055
24056   else
24057     REPLACE_MALLOC_FOR_MALLOC_POSIX=1
24058   fi
24059
24060
24061
24062     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
24063 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
24064 if test ${ac_cv_func_malloc_0_nonnull+y}
24065 then :
24066   printf %s "(cached) " >&6
24067 else $as_nop
24068   if test "$cross_compiling" = yes
24069 then :
24070   case "$host_os" in
24071           # Guess yes on platforms where we know the result.
24072           *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
24073           | gnu* | *-musl* | midnightbsd* \
24074           | hpux* | solaris* | cygwin* | mingw* | msys* )
24075             ac_cv_func_malloc_0_nonnull="guessing yes" ;;
24076           # If we don't know, obey --enable-cross-guesses.
24077           *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
24078         esac
24079
24080 else $as_nop
24081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24082 /* end confdefs.h.  */
24083 #include <stdlib.h>
24084
24085 int
24086 main (void)
24087 {
24088 void *p = malloc (0);
24089             int result = !p;
24090             free (p);
24091             return result;
24092   ;
24093   return 0;
24094 }
24095
24096 _ACEOF
24097 if ac_fn_c_try_run "$LINENO"
24098 then :
24099   ac_cv_func_malloc_0_nonnull=yes
24100 else $as_nop
24101   ac_cv_func_malloc_0_nonnull=no
24102 fi
24103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24104   conftest.$ac_objext conftest.beam conftest.$ac_ext
24105 fi
24106
24107
24108 fi
24109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
24110 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
24111   case $ac_cv_func_malloc_0_nonnull in #(
24112   *yes) :
24113     gl_cv_func_malloc_0_nonnull=1 ;; #(
24114   *) :
24115     gl_cv_func_malloc_0_nonnull=0 ;;
24116 esac
24117
24118
24119 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
24120
24121
24122
24123
24124
24125
24126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
24127 printf %s "checking for O_CLOEXEC... " >&6; }
24128 if test ${gl_cv_macro_O_CLOEXEC+y}
24129 then :
24130   printf %s "(cached) " >&6
24131 else $as_nop
24132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h.  */
24134 #include <fcntl.h>
24135                           #ifndef O_CLOEXEC
24136                             choke me;
24137                           #endif
24138
24139 int
24140 main (void)
24141 {
24142 return O_CLOEXEC;
24143   ;
24144   return 0;
24145 }
24146 _ACEOF
24147 if ac_fn_c_try_compile "$LINENO"
24148 then :
24149   gl_cv_macro_O_CLOEXEC=yes
24150 else $as_nop
24151   gl_cv_macro_O_CLOEXEC=no
24152 fi
24153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24154 fi
24155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
24156 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
24157
24158
24159
24160
24161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
24162 printf %s "checking for promoted mode_t type... " >&6; }
24163 if test ${gl_cv_promoted_mode_t+y}
24164 then :
24165   printf %s "(cached) " >&6
24166 else $as_nop
24167
24168                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169 /* end confdefs.h.  */
24170 #include <sys/types.h>
24171 int
24172 main (void)
24173 {
24174 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
24175   ;
24176   return 0;
24177 }
24178 _ACEOF
24179 if ac_fn_c_try_compile "$LINENO"
24180 then :
24181   gl_cv_promoted_mode_t='int'
24182 else $as_nop
24183   gl_cv_promoted_mode_t='mode_t'
24184 fi
24185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24186
24187 fi
24188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
24189 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
24190
24191 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
24192
24193
24194
24195
24196
24197
24198 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
24199 if test "x$ac_cv_have_decl_fcloseall" = xyes
24200 then :
24201   ac_have_decl=1
24202 else $as_nop
24203   ac_have_decl=0
24204 fi
24205 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
24206
24207
24208
24209
24210   printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220      if test $gl_cv_have_include_next = yes; then
24221        gl_cv_next_stdio_h='<'stdio.h'>'
24222      else
24223        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24224 printf %s "checking absolute name of <stdio.h>... " >&6; }
24225 if test ${gl_cv_next_stdio_h+y}
24226 then :
24227   printf %s "(cached) " >&6
24228 else $as_nop
24229
24230
24231
24232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24233 /* end confdefs.h.  */
24234 #include <stdio.h>
24235 _ACEOF
24236                 case "$host_os" in
24237     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24238     *)    gl_absname_cpp="$ac_cpp" ;;
24239   esac
24240
24241   case "$host_os" in
24242     mingw*)
24243                                           gl_dirsep_regex='[/\\]'
24244       ;;
24245     *)
24246       gl_dirsep_regex='\/'
24247       ;;
24248   esac
24249       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24250   gl_header_literal_regex=`echo 'stdio.h' \
24251                            | sed -e "$gl_make_literal_regex_sed"`
24252   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24253       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24254       s|^/[^/]|//&|
24255       p
24256       q
24257     }'
24258
24259         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24260   sed -n "$gl_absolute_header_sed"`
24261
24262           gl_header=$gl_cv_absolute_stdio_h
24263           gl_cv_next_stdio_h='"'$gl_header'"'
24264
24265
24266 fi
24267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24268 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
24269      fi
24270      NEXT_STDIO_H=$gl_cv_next_stdio_h
24271
24272      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24273        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24274        gl_next_as_first_directive='<'stdio.h'>'
24275      else
24276        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24277        gl_next_as_first_directive=$gl_cv_next_stdio_h
24278      fi
24279      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24280
24281
24282
24283
24284
24285         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
24286 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
24287 if test ${gl_cv_func_printf_attribute_flavor+y}
24288 then :
24289   printf %s "(cached) " >&6
24290 else $as_nop
24291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24292 /* end confdefs.h.  */
24293
24294        #define __STDC_FORMAT_MACROS 1
24295        #include <stdio.h>
24296        #include <inttypes.h>
24297        /* For non-mingw systems, compilation will trivially succeed.
24298           For mingw, compilation will succeed for older mingw (system
24299           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
24300        #if (defined _WIN32 && ! defined __CYGWIN__) && \
24301          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
24302        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
24303        #endif
24304
24305 int
24306 main (void)
24307 {
24308
24309   ;
24310   return 0;
24311 }
24312 _ACEOF
24313 if ac_fn_c_try_compile "$LINENO"
24314 then :
24315   gl_cv_func_printf_attribute_flavor=system
24316 else $as_nop
24317   gl_cv_func_printf_attribute_flavor=gnu
24318 fi
24319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24320 fi
24321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
24322 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
24323   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
24324
24325 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
24326
24327   fi
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341   if test $ac_cv_have_decl_fcloseall = no; then
24342     HAVE_DECL_FCLOSEALL=0
24343   fi
24344
24345
24346
24347
24348     HAVE_DECL_LOCALTIME_R=1;
24349   HAVE_NANOSLEEP=1;
24350   HAVE_STRPTIME=1;
24351   HAVE_TIMEGM=1;
24352   HAVE_TIMESPEC_GET=1;
24353   HAVE_TIMESPEC_GETRES=1;
24354     HAVE_TIMEZONE_T=0;
24355         REPLACE_CTIME=GNULIB_PORTCHECK;
24356   REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
24357   REPLACE_MKTIME=GNULIB_PORTCHECK;
24358   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
24359   REPLACE_STRFTIME=GNULIB_PORTCHECK;
24360   REPLACE_TIMEGM=GNULIB_PORTCHECK;
24361   REPLACE_TZSET=GNULIB_PORTCHECK;
24362
24363       : ${GNULIB_GETTIMEOFDAY=0};
24364         REPLACE_GMTIME=0;
24365   REPLACE_LOCALTIME=0;
24366
24367
24368
24369   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
24370 printf %s "checking for struct timespec in <time.h>... " >&6; }
24371 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
24372 then :
24373   printf %s "(cached) " >&6
24374 else $as_nop
24375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h.  */
24377 #include <time.h>
24378
24379 int
24380 main (void)
24381 {
24382 static struct timespec x; x.tv_sec = x.tv_nsec;
24383   ;
24384   return 0;
24385 }
24386 _ACEOF
24387 if ac_fn_c_try_compile "$LINENO"
24388 then :
24389   gl_cv_sys_struct_timespec_in_time_h=yes
24390 else $as_nop
24391   gl_cv_sys_struct_timespec_in_time_h=no
24392 fi
24393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24394 fi
24395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
24396 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
24397
24398   TIME_H_DEFINES_STRUCT_TIMESPEC=0
24399   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
24400   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
24401   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
24402   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
24403     TIME_H_DEFINES_STRUCT_TIMESPEC=1
24404   else
24405     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
24406 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
24407 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
24408 then :
24409   printf %s "(cached) " >&6
24410 else $as_nop
24411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24412 /* end confdefs.h.  */
24413 #include <sys/time.h>
24414
24415 int
24416 main (void)
24417 {
24418 static struct timespec x; x.tv_sec = x.tv_nsec;
24419   ;
24420   return 0;
24421 }
24422 _ACEOF
24423 if ac_fn_c_try_compile "$LINENO"
24424 then :
24425   gl_cv_sys_struct_timespec_in_sys_time_h=yes
24426 else $as_nop
24427   gl_cv_sys_struct_timespec_in_sys_time_h=no
24428 fi
24429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24430 fi
24431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
24432 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
24433     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
24434       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
24435     else
24436       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
24437 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
24438 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
24439 then :
24440   printf %s "(cached) " >&6
24441 else $as_nop
24442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24443 /* end confdefs.h.  */
24444 #include <pthread.h>
24445
24446 int
24447 main (void)
24448 {
24449 static struct timespec x; x.tv_sec = x.tv_nsec;
24450   ;
24451   return 0;
24452 }
24453 _ACEOF
24454 if ac_fn_c_try_compile "$LINENO"
24455 then :
24456   gl_cv_sys_struct_timespec_in_pthread_h=yes
24457 else $as_nop
24458   gl_cv_sys_struct_timespec_in_pthread_h=no
24459 fi
24460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24461 fi
24462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
24463 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
24464       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
24465         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
24466       else
24467         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
24468 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
24469 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
24470 then :
24471   printf %s "(cached) " >&6
24472 else $as_nop
24473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24474 /* end confdefs.h.  */
24475 #include <unistd.h>
24476
24477 int
24478 main (void)
24479 {
24480 static struct timespec x; x.tv_sec = x.tv_nsec;
24481   ;
24482   return 0;
24483 }
24484 _ACEOF
24485 if ac_fn_c_try_compile "$LINENO"
24486 then :
24487   gl_cv_sys_struct_timespec_in_unistd_h=yes
24488 else $as_nop
24489   gl_cv_sys_struct_timespec_in_unistd_h=no
24490 fi
24491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24492 fi
24493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
24494 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
24495         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
24496           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
24497         fi
24498       fi
24499     fi
24500   fi
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517      if test $gl_cv_have_include_next = yes; then
24518        gl_cv_next_time_h='<'time.h'>'
24519      else
24520        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
24521 printf %s "checking absolute name of <time.h>... " >&6; }
24522 if test ${gl_cv_next_time_h+y}
24523 then :
24524   printf %s "(cached) " >&6
24525 else $as_nop
24526
24527
24528
24529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24530 /* end confdefs.h.  */
24531 #include <time.h>
24532 _ACEOF
24533                 case "$host_os" in
24534     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24535     *)    gl_absname_cpp="$ac_cpp" ;;
24536   esac
24537
24538   case "$host_os" in
24539     mingw*)
24540                                           gl_dirsep_regex='[/\\]'
24541       ;;
24542     *)
24543       gl_dirsep_regex='\/'
24544       ;;
24545   esac
24546       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24547   gl_header_literal_regex=`echo 'time.h' \
24548                            | sed -e "$gl_make_literal_regex_sed"`
24549   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24550       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24551       s|^/[^/]|//&|
24552       p
24553       q
24554     }'
24555
24556         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24557   sed -n "$gl_absolute_header_sed"`
24558
24559           gl_header=$gl_cv_absolute_time_h
24560           gl_cv_next_time_h='"'$gl_header'"'
24561
24562
24563 fi
24564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
24565 printf "%s\n" "$gl_cv_next_time_h" >&6; }
24566      fi
24567      NEXT_TIME_H=$gl_cv_next_time_h
24568
24569      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24570        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24571        gl_next_as_first_directive='<'time.h'>'
24572      else
24573        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24574        gl_next_as_first_directive=$gl_cv_next_time_h
24575      fi
24576      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
24577
24578
24579
24580
24581
24582
24583
24584
24585   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
24586 printf %s "checking for TIME_UTC in <time.h>... " >&6; }
24587 if test ${gl_cv_time_h_has_TIME_UTC+y}
24588 then :
24589   printf %s "(cached) " >&6
24590 else $as_nop
24591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24592 /* end confdefs.h.  */
24593 #include <time.h>
24594
24595 int
24596 main (void)
24597 {
24598 static int x = TIME_UTC; x++;
24599   ;
24600   return 0;
24601 }
24602 _ACEOF
24603 if ac_fn_c_try_compile "$LINENO"
24604 then :
24605   gl_cv_time_h_has_TIME_UTC=yes
24606 else $as_nop
24607   gl_cv_time_h_has_TIME_UTC=no
24608 fi
24609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24610 fi
24611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
24612 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
24613   if test $gl_cv_time_h_has_TIME_UTC = yes; then
24614     TIME_H_DEFINES_TIME_UTC=1
24615   else
24616     TIME_H_DEFINES_TIME_UTC=0
24617   fi
24618
24619
24620
24621
24622   GL_SGL_GNULIB_CTIME=0
24623
24624
24625
24626   GL_SGL_GNULIB_MKTIME=0
24627
24628
24629
24630   GL_SGL_GNULIB_LOCALTIME=0
24631
24632
24633
24634   GL_SGL_GNULIB_NANOSLEEP=0
24635
24636
24637
24638   GL_SGL_GNULIB_STRFTIME=0
24639
24640
24641
24642   GL_SGL_GNULIB_STRPTIME=0
24643
24644
24645
24646   GL_SGL_GNULIB_TIMEGM=0
24647
24648
24649
24650   GL_SGL_GNULIB_TIMESPEC_GET=0
24651
24652
24653
24654   GL_SGL_GNULIB_TIMESPEC_GETRES=0
24655
24656
24657
24658   GL_SGL_GNULIB_TIME_R=0
24659
24660
24661
24662   GL_SGL_GNULIB_TIME_RZ=0
24663
24664
24665
24666   GL_SGL_GNULIB_TZSET=0
24667
24668
24669
24670   GL_SGL_GNULIB_MDA_TZSET=1
24671
24672
24673
24674
24675     HAVE_BTOWC=1;
24676   HAVE_MBSINIT=1;
24677   HAVE_MBRTOWC=1;
24678   HAVE_MBRLEN=1;
24679   HAVE_MBSRTOWCS=1;
24680   HAVE_MBSNRTOWCS=1;
24681   HAVE_WCRTOMB=1;
24682   HAVE_WCSRTOMBS=1;
24683   HAVE_WCSNRTOMBS=1;
24684   HAVE_WMEMCHR=1;
24685   HAVE_WMEMCMP=1;
24686   HAVE_WMEMCPY=1;
24687   HAVE_WMEMMOVE=1;
24688   HAVE_WMEMPCPY=1;
24689   HAVE_WMEMSET=1;
24690   HAVE_WCSLEN=1;
24691   HAVE_WCSNLEN=1;
24692   HAVE_WCSCPY=1;
24693   HAVE_WCPCPY=1;
24694   HAVE_WCSNCPY=1;
24695   HAVE_WCPNCPY=1;
24696   HAVE_WCSCAT=1;
24697   HAVE_WCSNCAT=1;
24698   HAVE_WCSCMP=1;
24699   HAVE_WCSNCMP=1;
24700   HAVE_WCSCASECMP=1;
24701   HAVE_WCSNCASECMP=1;
24702   HAVE_WCSCOLL=1;
24703   HAVE_WCSXFRM=1;
24704   HAVE_WCSDUP=1;
24705   HAVE_WCSCHR=1;
24706   HAVE_WCSRCHR=1;
24707   HAVE_WCSCSPN=1;
24708   HAVE_WCSSPN=1;
24709   HAVE_WCSPBRK=1;
24710   HAVE_WCSSTR=1;
24711   HAVE_WCSTOK=1;
24712   HAVE_WCSWIDTH=1;
24713   HAVE_WCSFTIME=1;
24714   HAVE_DECL_WCTOB=1;
24715   HAVE_DECL_WCSDUP=1;
24716   HAVE_DECL_WCWIDTH=1;
24717   REPLACE_MBSTATE_T=0;
24718   REPLACE_BTOWC=0;
24719   REPLACE_WCTOB=0;
24720   REPLACE_MBSINIT=0;
24721   REPLACE_MBRTOWC=0;
24722   REPLACE_MBRLEN=0;
24723   REPLACE_MBSRTOWCS=0;
24724   REPLACE_MBSNRTOWCS=0;
24725   REPLACE_WCRTOMB=0;
24726   REPLACE_WCSRTOMBS=0;
24727   REPLACE_WCSNRTOMBS=0;
24728   REPLACE_WCWIDTH=0;
24729   REPLACE_WCSWIDTH=0;
24730   REPLACE_WCSFTIME=0;
24731   REPLACE_WCSTOK=0;
24732
24733
24734
24735   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
24736 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
24737 if test ${gl_cv_header_wchar_h_correct_inline+y}
24738 then :
24739   printf %s "(cached) " >&6
24740 else $as_nop
24741   gl_cv_header_wchar_h_correct_inline=yes
24742      case "$host_os" in
24743        *-gnu* | gnu*)
24744          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24745 /* end confdefs.h.  */
24746
24747
24748              #define wcstod renamed_wcstod
24749              #include <wchar.h>
24750              extern int zero (void);
24751              int main () { return zero(); }
24752
24753 _ACEOF
24754                                                       save_ac_compile="$ac_compile"
24755          ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
24756          if echo '#include "conftest.c"' >conftest1.c \
24757             && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24758   (eval $ac_compile) 2>&5
24759   ac_status=$?
24760   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761   test $ac_status = 0; }; then
24762            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763 /* end confdefs.h.  */
24764
24765
24766                #define wcstod renamed_wcstod
24767                #include <wchar.h>
24768                int zero (void) { return 0; }
24769
24770 _ACEOF
24771                       ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
24772            if echo '#include "conftest.c"' >conftest2.c \
24773               && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24774   (eval $ac_compile) 2>&5
24775   ac_status=$?
24776   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24777   test $ac_status = 0; }; then
24778              if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
24779                :
24780              else
24781                gl_cv_header_wchar_h_correct_inline=no
24782              fi
24783            fi
24784          fi
24785          ac_compile="$save_ac_compile"
24786          rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
24787          ;;
24788      esac
24789
24790 fi
24791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
24792 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
24793   if test $gl_cv_header_wchar_h_correct_inline = no; then
24794     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
24795 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
24796 C99 mode. You have four options:
24797   - Add the flag -fgnu89-inline to CC and reconfigure, or
24798   - Fix your include files, using parts of
24799     <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
24800   - Use a gcc version older than 4.3, or
24801   - Don't use the flags -std=c99 or -std=gnu99.
24802 Configuration aborted." "$LINENO" 5
24803   fi
24804
24805
24806
24807
24808   if test $ac_cv_header_features_h = yes; then
24809     HAVE_FEATURES_H=1
24810   else
24811     HAVE_FEATURES_H=0
24812   fi
24813
24814
24815
24816
24817
24818   if test $ac_cv_header_crtdefs_h = yes; then
24819     HAVE_CRTDEFS_H=1
24820   else
24821     HAVE_CRTDEFS_H=0
24822   fi
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837      if test $gl_cv_have_include_next = yes; then
24838        gl_cv_next_wchar_h='<'wchar.h'>'
24839      else
24840        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24841 printf %s "checking absolute name of <wchar.h>... " >&6; }
24842 if test ${gl_cv_next_wchar_h+y}
24843 then :
24844   printf %s "(cached) " >&6
24845 else $as_nop
24846
24847              if test $ac_cv_header_wchar_h = yes; then
24848
24849
24850
24851
24852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853 /* end confdefs.h.  */
24854 #include <wchar.h>
24855 _ACEOF
24856                 case "$host_os" in
24857     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24858     *)    gl_absname_cpp="$ac_cpp" ;;
24859   esac
24860
24861   case "$host_os" in
24862     mingw*)
24863                                           gl_dirsep_regex='[/\\]'
24864       ;;
24865     *)
24866       gl_dirsep_regex='\/'
24867       ;;
24868   esac
24869       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24870   gl_header_literal_regex=`echo 'wchar.h' \
24871                            | sed -e "$gl_make_literal_regex_sed"`
24872   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24873       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24874       s|^/[^/]|//&|
24875       p
24876       q
24877     }'
24878
24879         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24880   sed -n "$gl_absolute_header_sed"`
24881
24882           gl_header=$gl_cv_absolute_wchar_h
24883           gl_cv_next_wchar_h='"'$gl_header'"'
24884           else
24885                gl_cv_next_wchar_h='<'wchar.h'>'
24886              fi
24887
24888
24889 fi
24890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24891 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
24892      fi
24893      NEXT_WCHAR_H=$gl_cv_next_wchar_h
24894
24895      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24896        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24897        gl_next_as_first_directive='<'wchar.h'>'
24898      else
24899        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24900        gl_next_as_first_directive=$gl_cv_next_wchar_h
24901      fi
24902      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24903
24904
24905
24906
24907   if test $ac_cv_header_wchar_h = yes; then
24908     HAVE_WCHAR_H=1
24909   else
24910     HAVE_WCHAR_H=0
24911   fi
24912
24913
24914
24915
24916
24917   if test $gt_cv_c_wint_t = yes; then
24918     HAVE_WINT_T=1
24919   else
24920     HAVE_WINT_T=0
24921   fi
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932   ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
24933       #include <wchar.h>
24934
24935 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24936 if test "x$ac_cv_have_decl_wcsdup" = xyes
24937 then :
24938   ac_have_decl=1
24939 else $as_nop
24940   ac_have_decl=0
24941 fi
24942 printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h
24943
24944   if test $ac_cv_have_decl_wcsdup = no; then
24945     HAVE_DECL_WCSDUP=0
24946   fi
24947
24948
24949
24950   GL_SGL_GNULIB_BTOWC=0
24951
24952
24953
24954   GL_SGL_GNULIB_WCTOB=0
24955
24956
24957
24958   GL_SGL_GNULIB_MBSINIT=0
24959
24960
24961
24962   GL_SGL_GNULIB_MBRTOWC=0
24963
24964
24965
24966   GL_SGL_GNULIB_MBRLEN=0
24967
24968
24969
24970   GL_SGL_GNULIB_MBSRTOWCS=0
24971
24972
24973
24974   GL_SGL_GNULIB_MBSNRTOWCS=0
24975
24976
24977
24978   GL_SGL_GNULIB_WCRTOMB=0
24979
24980
24981
24982   GL_SGL_GNULIB_WCSRTOMBS=0
24983
24984
24985
24986   GL_SGL_GNULIB_WCSNRTOMBS=0
24987
24988
24989
24990   GL_SGL_GNULIB_WCWIDTH=0
24991
24992
24993
24994   GL_SGL_GNULIB_WMEMCHR=0
24995
24996
24997
24998   GL_SGL_GNULIB_WMEMCMP=0
24999
25000
25001
25002   GL_SGL_GNULIB_WMEMCPY=0
25003
25004
25005
25006   GL_SGL_GNULIB_WMEMMOVE=0
25007
25008
25009
25010   GL_SGL_GNULIB_WMEMPCPY=0
25011
25012
25013
25014   GL_SGL_GNULIB_WMEMSET=0
25015
25016
25017
25018   GL_SGL_GNULIB_WCSLEN=0
25019
25020
25021
25022   GL_SGL_GNULIB_WCSNLEN=0
25023
25024
25025
25026   GL_SGL_GNULIB_WCSCPY=0
25027
25028
25029
25030   GL_SGL_GNULIB_WCPCPY=0
25031
25032
25033
25034   GL_SGL_GNULIB_WCSNCPY=0
25035
25036
25037
25038   GL_SGL_GNULIB_WCPNCPY=0
25039
25040
25041
25042   GL_SGL_GNULIB_WCSCAT=0
25043
25044
25045
25046   GL_SGL_GNULIB_WCSNCAT=0
25047
25048
25049
25050   GL_SGL_GNULIB_WCSCMP=0
25051
25052
25053
25054   GL_SGL_GNULIB_WCSNCMP=0
25055
25056
25057
25058   GL_SGL_GNULIB_WCSCASECMP=0
25059
25060
25061
25062   GL_SGL_GNULIB_WCSNCASECMP=0
25063
25064
25065
25066   GL_SGL_GNULIB_WCSCOLL=0
25067
25068
25069
25070   GL_SGL_GNULIB_WCSXFRM=0
25071
25072
25073
25074   GL_SGL_GNULIB_WCSDUP=0
25075
25076
25077
25078   GL_SGL_GNULIB_WCSCHR=0
25079
25080
25081
25082   GL_SGL_GNULIB_WCSRCHR=0
25083
25084
25085
25086   GL_SGL_GNULIB_WCSCSPN=0
25087
25088
25089
25090   GL_SGL_GNULIB_WCSSPN=0
25091
25092
25093
25094   GL_SGL_GNULIB_WCSPBRK=0
25095
25096
25097
25098   GL_SGL_GNULIB_WCSSTR=0
25099
25100
25101
25102   GL_SGL_GNULIB_WCSTOK=0
25103
25104
25105
25106   GL_SGL_GNULIB_WCSWIDTH=0
25107
25108
25109
25110   GL_SGL_GNULIB_WCSFTIME=0
25111
25112
25113
25114   GL_SGL_GNULIB_MDA_WCSDUP=1
25115
25116
25117
25118
25119    if true; then
25120   GL_COND_LIBTOOL_TRUE=
25121   GL_COND_LIBTOOL_FALSE='#'
25122 else
25123   GL_COND_LIBTOOL_TRUE='#'
25124   GL_COND_LIBTOOL_FALSE=
25125 fi
25126
25127   gl_cond_libtool=true
25128   gl_m4_base='src/gl/m4'
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141   gl_source_base='src/gl'
25142   gl_source_base_prefix=
25143
25144
25145   if test $ac_cv_func_alloca_works = no; then
25146     :
25147   fi
25148
25149   # Define an additional variable used in the Makefile substitution.
25150   if test $ac_cv_working_alloca_h = yes; then
25151     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
25152 printf %s "checking for alloca as a compiler built-in... " >&6; }
25153 if test ${gl_cv_rpl_alloca+y}
25154 then :
25155   printf %s "(cached) " >&6
25156 else $as_nop
25157
25158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25159 /* end confdefs.h.  */
25160
25161 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
25162         Need own alloca
25163 #endif
25164
25165 _ACEOF
25166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25167   $EGREP "Need own alloca" >/dev/null 2>&1
25168 then :
25169   gl_cv_rpl_alloca=yes
25170 else $as_nop
25171   gl_cv_rpl_alloca=no
25172 fi
25173 rm -rf conftest*
25174
25175
25176 fi
25177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
25178 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
25179     if test $gl_cv_rpl_alloca = yes; then
25180
25181 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
25182
25183       GL_GENERATE_ALLOCA_H=true
25184     else
25185                   GL_GENERATE_ALLOCA_H=false
25186     fi
25187   else
25188     GL_GENERATE_ALLOCA_H=true
25189   fi
25190
25191   if test $ac_cv_working_alloca_h = yes; then
25192     HAVE_ALLOCA_H=1
25193   else
25194     HAVE_ALLOCA_H=0
25195   fi
25196
25197
25198
25199
25200
25201
25202   case "$GL_GENERATE_ALLOCA_H" in
25203     false) ALLOCA_H='' ;;
25204     true)
25205                   if test -z "$ALLOCA_H"; then
25206         ALLOCA_H="${gl_source_base_prefix}alloca.h"
25207       fi
25208       ;;
25209     *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
25210   esac
25211
25212
25213      if $GL_GENERATE_ALLOCA_H; then
25214   GL_GENERATE_ALLOCA_H_TRUE=
25215   GL_GENERATE_ALLOCA_H_FALSE='#'
25216 else
25217   GL_GENERATE_ALLOCA_H_TRUE='#'
25218   GL_GENERATE_ALLOCA_H_FALSE=
25219 fi
25220 :
25221     if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25222     GL_GENERATE_ALLOCA_H_TRUE='#'
25223     GL_GENERATE_ALLOCA_H_FALSE='#'
25224   fi
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
25235   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
25236
25237   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
25238   # programs in the package would end up linked with that potentially-shared
25239   # library, inducing unnecessary run-time overhead.
25240   LIB_CLOCK_GETTIME=
25241
25242   gl_saved_libs=$LIBS
25243     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
25244 printf %s "checking for library containing clock_gettime... " >&6; }
25245 if test ${ac_cv_search_clock_gettime+y}
25246 then :
25247   printf %s "(cached) " >&6
25248 else $as_nop
25249   ac_func_search_save_LIBS=$LIBS
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h.  */
25252
25253 /* Override any GCC internal prototype to avoid an error.
25254    Use char because int might match the return type of a GCC
25255    builtin and then its argument prototype would still apply.  */
25256 char clock_gettime ();
25257 int
25258 main (void)
25259 {
25260 return clock_gettime ();
25261   ;
25262   return 0;
25263 }
25264 _ACEOF
25265 for ac_lib in '' rt posix4
25266 do
25267   if test -z "$ac_lib"; then
25268     ac_res="none required"
25269   else
25270     ac_res=-l$ac_lib
25271     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25272   fi
25273   if ac_fn_c_try_link "$LINENO"
25274 then :
25275   ac_cv_search_clock_gettime=$ac_res
25276 fi
25277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25278     conftest$ac_exeext
25279   if test ${ac_cv_search_clock_gettime+y}
25280 then :
25281   break
25282 fi
25283 done
25284 if test ${ac_cv_search_clock_gettime+y}
25285 then :
25286
25287 else $as_nop
25288   ac_cv_search_clock_gettime=no
25289 fi
25290 rm conftest.$ac_ext
25291 LIBS=$ac_func_search_save_LIBS
25292 fi
25293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25294 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
25295 ac_res=$ac_cv_search_clock_gettime
25296 if test "$ac_res" != no
25297 then :
25298   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25299   test "$ac_cv_search_clock_gettime" = "none required" ||
25300                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
25301 fi
25302
25303     ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
25304 if test "x$ac_cv_func_clock_getres" = xyes
25305 then :
25306   printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
25307
25308 fi
25309 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
25310 if test "x$ac_cv_func_clock_gettime" = xyes
25311 then :
25312   printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25313
25314 fi
25315 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
25316 if test "x$ac_cv_func_clock_settime" = xyes
25317 then :
25318   printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
25319
25320 fi
25321
25322   LIBS=$gl_saved_libs
25323
25324
25325
25326 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
25327
25328
25329
25330
25331
25332
25333     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25334       REPLACE_CLOSE=1
25335     fi
25336
25337
25338
25339
25340
25341
25342   if test $ac_cv_header_sys_socket_h != yes; then
25343                     ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25344 if test "x$ac_cv_header_winsock2_h" = xyes
25345 then :
25346   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
25347
25348 fi
25349
25350   fi
25351   if test "$ac_cv_header_winsock2_h" = yes; then
25352     HAVE_WINSOCK2_H=1
25353     UNISTD_H_HAVE_WINSOCK2_H=1
25354     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25355   else
25356     HAVE_WINSOCK2_H=0
25357   fi
25358
25359
25360     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
25361                         REPLACE_CLOSE=1
25362     fi
25363
25364
25365
25366
25367      if test $REPLACE_CLOSE = 1; then
25368   GL_COND_OBJ_CLOSE_TRUE=
25369   GL_COND_OBJ_CLOSE_FALSE='#'
25370 else
25371   GL_COND_OBJ_CLOSE_TRUE='#'
25372   GL_COND_OBJ_CLOSE_FALSE=
25373 fi
25374 :
25375     if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
25376     GL_COND_OBJ_CLOSE_TRUE='#'
25377     GL_COND_OBJ_CLOSE_FALSE='#'
25378   fi
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389           GL_SGL_GNULIB_CLOSE=1
25390
25391
25392
25393
25394
25395 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
25396
25397
25398
25399
25400
25401
25402   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
25403 printf %s "checking whether dup2 works... " >&6; }
25404 if test ${gl_cv_func_dup2_works+y}
25405 then :
25406   printf %s "(cached) " >&6
25407 else $as_nop
25408   if test "$cross_compiling" = yes
25409 then :
25410   case "$host_os" in
25411          mingw*) # on this platform, dup2 always returns 0 for success
25412            gl_cv_func_dup2_works="guessing no" ;;
25413          cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
25414            gl_cv_func_dup2_works="guessing no" ;;
25415          aix* | freebsd*)
25416                  # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
25417                  # not EBADF.
25418            gl_cv_func_dup2_works="guessing no" ;;
25419          haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
25420            gl_cv_func_dup2_works="guessing no" ;;
25421          *-android*) # implemented using dup3(), which fails if oldfd == newfd
25422            gl_cv_func_dup2_works="guessing no" ;;
25423          os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
25424            gl_cv_func_dup2_works="guessing no" ;;
25425          *) gl_cv_func_dup2_works="guessing yes" ;;
25426        esac
25427 else $as_nop
25428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429 /* end confdefs.h.  */
25430
25431        #include <errno.h>
25432            #include <fcntl.h>
25433            #include <limits.h>
25434            #include <sys/resource.h>
25435            #include <unistd.h>
25436
25437
25438 $gl_mda_defines
25439
25440            #ifndef RLIM_SAVED_CUR
25441            # define RLIM_SAVED_CUR RLIM_INFINITY
25442            #endif
25443            #ifndef RLIM_SAVED_MAX
25444            # define RLIM_SAVED_MAX RLIM_INFINITY
25445            #endif
25446
25447 int
25448 main (void)
25449 {
25450 int result = 0;
25451            int bad_fd = INT_MAX;
25452            struct rlimit rlim;
25453            if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
25454                && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
25455                && rlim.rlim_cur != RLIM_INFINITY
25456                && rlim.rlim_cur != RLIM_SAVED_MAX
25457                && rlim.rlim_cur != RLIM_SAVED_CUR)
25458              bad_fd = rlim.rlim_cur;
25459            #ifdef FD_CLOEXEC
25460              if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
25461                result |= 1;
25462            #endif
25463            if (dup2 (1, 1) != 1)
25464              result |= 2;
25465            #ifdef FD_CLOEXEC
25466              if (fcntl (1, F_GETFD) != FD_CLOEXEC)
25467                result |= 4;
25468            #endif
25469            close (0);
25470            if (dup2 (0, 0) != -1)
25471              result |= 8;
25472            /* Many gnulib modules require POSIX conformance of EBADF.  */
25473            if (dup2 (2, bad_fd) == -1 && errno != EBADF)
25474              result |= 16;
25475            /* Flush out some cygwin core dumps.  */
25476            if (dup2 (2, -1) != -1 || errno != EBADF)
25477              result |= 32;
25478            dup2 (2, 255);
25479            dup2 (2, 256);
25480            /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
25481            {
25482              int fd = open (".", O_RDONLY);
25483              if (fd == -1)
25484                result |= 64;
25485              else if (dup2 (fd, fd + 1) == -1)
25486                result |= 128;
25487              close (fd);
25488            }
25489            return result;
25490   ;
25491   return 0;
25492 }
25493
25494 _ACEOF
25495 if ac_fn_c_try_run "$LINENO"
25496 then :
25497   gl_cv_func_dup2_works=yes
25498 else $as_nop
25499   gl_cv_func_dup2_works=no
25500 fi
25501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25502   conftest.$ac_objext conftest.beam conftest.$ac_ext
25503 fi
25504
25505
25506 fi
25507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
25508 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
25509   case "$gl_cv_func_dup2_works" in
25510     *yes) ;;
25511     *)
25512       REPLACE_DUP2=1
25513       ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
25514 if test "x$ac_cv_func_setdtablesize" = xyes
25515 then :
25516   printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
25517
25518 fi
25519
25520       ;;
25521   esac
25522
25523
25524
25525      if test $REPLACE_DUP2 = 1; then
25526   GL_COND_OBJ_DUP2_TRUE=
25527   GL_COND_OBJ_DUP2_FALSE='#'
25528 else
25529   GL_COND_OBJ_DUP2_TRUE='#'
25530   GL_COND_OBJ_DUP2_FALSE=
25531 fi
25532 :
25533     if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
25534     GL_COND_OBJ_DUP2_TRUE='#'
25535     GL_COND_OBJ_DUP2_FALSE='#'
25536   fi
25537
25538   if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
25539
25540
25541
25542 fi
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552           GL_SGL_GNULIB_DUP2=1
25553
25554
25555
25556
25557
25558 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
25559
25560
25561
25562
25563
25564
25565
25566
25567   case "$GL_GENERATE_ERRNO_H" in
25568     false) ERRNO_H='' ;;
25569     true)
25570                   if test -z "$ERRNO_H"; then
25571         ERRNO_H="${gl_source_base_prefix}errno.h"
25572       fi
25573       ;;
25574     *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
25575   esac
25576
25577
25578      if $GL_GENERATE_ERRNO_H; then
25579   GL_GENERATE_ERRNO_H_TRUE=
25580   GL_GENERATE_ERRNO_H_FALSE='#'
25581 else
25582   GL_GENERATE_ERRNO_H_TRUE='#'
25583   GL_GENERATE_ERRNO_H_FALSE=
25584 fi
25585 :
25586     if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25587     GL_GENERATE_ERRNO_H_TRUE='#'
25588     GL_GENERATE_ERRNO_H_FALSE='#'
25589   fi
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602   if test $ac_cv_func_explicit_bzero = no; then
25603     HAVE_EXPLICIT_BZERO=0
25604   fi
25605
25606
25607      if test $HAVE_EXPLICIT_BZERO = 0; then
25608   GL_COND_OBJ_EXPLICIT_BZERO_TRUE=
25609   GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#'
25610 else
25611   GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#'
25612   GL_COND_OBJ_EXPLICIT_BZERO_FALSE=
25613 fi
25614 :
25615     if test -z "${GL_COND_OBJ_EXPLICIT_BZERO_TRUE}" && test -z "${GL_COND_OBJ_EXPLICIT_BZERO_FALSE}"; then
25616     GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#'
25617     GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#'
25618   fi
25619
25620   if test -z "$GL_COND_OBJ_EXPLICIT_BZERO_TRUE"; then :
25621
25622
25623   ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
25624 if test "x$ac_cv_func_explicit_memset" = xyes
25625 then :
25626   printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
25627
25628 fi
25629
25630
25631
25632
25633 fi
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648           GL_SGL_GNULIB_EXPLICIT_BZERO=1
25649
25650
25651
25652
25653
25654 printf "%s\n" "#define GNULIB_TEST_EXPLICIT_BZERO 1" >>confdefs.h
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664   if test $ac_cv_func_fcntl = no; then
25665
25666
25667
25668   if test $ac_cv_func_fcntl = no; then
25669     HAVE_FCNTL=0
25670   else
25671     REPLACE_FCNTL=1
25672   fi
25673
25674   else
25675             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
25676 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
25677 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
25678 then :
25679   printf %s "(cached) " >&6
25680 else $as_nop
25681   if test "$cross_compiling" = yes
25682 then :
25683   case $host_os in
25684             aix* | cygwin* | haiku*)
25685                gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
25686             *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
25687           esac
25688 else $as_nop
25689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h.  */
25691 #include <errno.h>
25692               #include <fcntl.h>
25693               #include <limits.h>
25694               #include <sys/resource.h>
25695               #include <unistd.h>
25696
25697
25698 $gl_mda_defines
25699
25700               #ifndef RLIM_SAVED_CUR
25701               # define RLIM_SAVED_CUR RLIM_INFINITY
25702               #endif
25703               #ifndef RLIM_SAVED_MAX
25704               # define RLIM_SAVED_MAX RLIM_INFINITY
25705               #endif
25706
25707 int
25708 main (void)
25709 {
25710 int result = 0;
25711               int bad_fd = INT_MAX;
25712               struct rlimit rlim;
25713               if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
25714                   && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
25715                   && rlim.rlim_cur != RLIM_INFINITY
25716                   && rlim.rlim_cur != RLIM_SAVED_MAX
25717                   && rlim.rlim_cur != RLIM_SAVED_CUR)
25718                 bad_fd = rlim.rlim_cur;
25719               if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
25720               if (errno != EINVAL) result |= 2;
25721               if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
25722               if (errno != EINVAL) result |= 8;
25723               /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
25724               {
25725                 int fd;
25726                 fd = open (".", O_RDONLY);
25727                 if (fd == -1)
25728                   result |= 16;
25729                 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
25730                   result |= 32;
25731
25732                 close (fd);
25733               }
25734               return result;
25735   ;
25736   return 0;
25737 }
25738 _ACEOF
25739 if ac_fn_c_try_run "$LINENO"
25740 then :
25741   gl_cv_func_fcntl_f_dupfd_works=yes
25742 else $as_nop
25743   gl_cv_func_fcntl_f_dupfd_works=no
25744 fi
25745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25746   conftest.$ac_objext conftest.beam conftest.$ac_ext
25747 fi
25748
25749 fi
25750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
25751 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
25752     case $gl_cv_func_fcntl_f_dupfd_works in
25753       *yes) ;;
25754       *)
25755
25756
25757   if test $ac_cv_func_fcntl = no; then
25758     HAVE_FCNTL=0
25759   else
25760     REPLACE_FCNTL=1
25761   fi
25762
25763
25764 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
25765  ;;
25766     esac
25767
25768             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
25769 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
25770 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
25771 then :
25772   printf %s "(cached) " >&6
25773 else $as_nop
25774   if test "$cross_compiling" = yes
25775 then :
25776   case "$host_os" in
25777                      # Guess no on NetBSD.
25778             netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
25779             *)       gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
25780           esac
25781
25782 else $as_nop
25783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25784 /* end confdefs.h.  */
25785 #include <fcntl.h>
25786               #include <unistd.h>
25787               int main (int argc, char *argv[])
25788               {
25789                 if (argc == 1)
25790                   /* parent process */
25791                   {
25792                     if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
25793                       return 1;
25794                     return execl ("./conftest", "./conftest", "child", NULL);
25795                   }
25796                 else
25797                   /* child process */
25798                   return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
25799               }
25800
25801
25802 _ACEOF
25803 if ac_fn_c_try_run "$LINENO"
25804 then :
25805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25806 /* end confdefs.h.  */
25807
25808 #ifdef __linux__
25809 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
25810    it to support the semantics on older kernels that failed with EINVAL.  */
25811 choke me
25812 #endif
25813
25814 int
25815 main (void)
25816 {
25817
25818   ;
25819   return 0;
25820 }
25821 _ACEOF
25822 if ac_fn_c_try_compile "$LINENO"
25823 then :
25824   gl_cv_func_fcntl_f_dupfd_cloexec=yes
25825 else $as_nop
25826   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
25827 fi
25828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25829
25830 else $as_nop
25831   gl_cv_func_fcntl_f_dupfd_cloexec=no
25832 fi
25833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25834   conftest.$ac_objext conftest.beam conftest.$ac_ext
25835 fi
25836
25837
25838 fi
25839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
25840 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
25841     case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
25842       *yes) ;;
25843       *)
25844
25845
25846   if test $ac_cv_func_fcntl = no; then
25847     HAVE_FCNTL=0
25848   else
25849     REPLACE_FCNTL=1
25850   fi
25851
25852                         ;;
25853     esac
25854   fi
25855
25856
25857
25858      if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
25859   GL_COND_OBJ_FCNTL_TRUE=
25860   GL_COND_OBJ_FCNTL_FALSE='#'
25861 else
25862   GL_COND_OBJ_FCNTL_TRUE='#'
25863   GL_COND_OBJ_FCNTL_FALSE=
25864 fi
25865 :
25866     if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
25867     GL_COND_OBJ_FCNTL_TRUE='#'
25868     GL_COND_OBJ_FCNTL_FALSE='#'
25869   fi
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880           GL_SGL_GNULIB_FCNTL=1
25881
25882
25883
25884
25885
25886 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900   case "$host_os" in
25901     mingw* | pw*)
25902             REPLACE_FOPEN=1
25903             gl_cv_func_fopen_slash="guessing no"
25904       ;;
25905     *)
25906                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
25907 printf %s "checking whether fopen recognizes a trailing slash... " >&6; }
25908 if test ${gl_cv_func_fopen_slash+y}
25909 then :
25910   printf %s "(cached) " >&6
25911 else $as_nop
25912
25913           if test "$cross_compiling" = yes
25914 then :
25915
25916              case "$host_os" in
25917                aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
25918                  gl_cv_func_fopen_slash="guessing no" ;;
25919                *)
25920                  gl_cv_func_fopen_slash="guessing yes" ;;
25921              esac
25922
25923 else $as_nop
25924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25925 /* end confdefs.h.  */
25926
25927 #include <stddef.h>
25928 #include <stdio.h>
25929 int main ()
25930 {
25931   FILE *fp = fopen ("conftest.sl/", "w");
25932   int result = (fp != NULL);
25933   if (fp != NULL)
25934     fclose (fp);
25935   return result;
25936 }
25937 _ACEOF
25938 if ac_fn_c_try_run "$LINENO"
25939 then :
25940   gl_cv_func_fopen_slash=yes
25941 else $as_nop
25942   gl_cv_func_fopen_slash=no
25943 fi
25944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25945   conftest.$ac_objext conftest.beam conftest.$ac_ext
25946 fi
25947
25948           rm -f conftest.sl
25949
25950 fi
25951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
25952 printf "%s\n" "$gl_cv_func_fopen_slash" >&6; }
25953       ;;
25954   esac
25955   case "$gl_cv_func_fopen_slash" in
25956     *no)
25957
25958 printf "%s\n" "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
25959
25960       REPLACE_FOPEN=1
25961       ;;
25962   esac
25963
25964   if test $REPLACE_FOPEN = 1; then
25965
25966
25967
25968
25969
25970
25971
25972
25973   sgl_LIBOBJS="$sgl_LIBOBJS fopen.$ac_objext"
25974
25975     :
25976   fi
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986           GL_SGL_GNULIB_FOPEN=1
25987
25988
25989
25990
25991
25992 printf "%s\n" "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
25993
25994
25995
25996
25997
25998   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5
25999 printf %s "checking whether fopen supports the mode character 'x'... " >&6; }
26000 if test ${gl_cv_func_fopen_mode_x+y}
26001 then :
26002   printf %s "(cached) " >&6
26003 else $as_nop
26004   rm -f conftest.x
26005      if test "$cross_compiling" = yes
26006 then :
26007   case "$host_os" in
26008           # Guess yes on glibc and musl systems.
26009           linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
26010             gl_cv_func_fopen_mode_x="guessing yes" ;;
26011           # If we don't know, obey --enable-cross-guesses.
26012           *)
26013             gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;;
26014         esac
26015
26016 else $as_nop
26017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26018 /* end confdefs.h.  */
26019
26020 #include <stdio.h>
26021 #include <errno.h>
26022 int main ()
26023 {
26024   FILE *fp;
26025   fp = fopen ("conftest.x", "w");
26026   fclose (fp);
26027   fp = fopen ("conftest.x", "wx");
26028   if (fp != NULL)
26029     /* 'x' ignored */
26030     return 1;
26031   else if (errno == EEXIST)
26032     return 0;
26033   else
26034     /* 'x' rejected */
26035     return 2;
26036 }
26037 _ACEOF
26038 if ac_fn_c_try_run "$LINENO"
26039 then :
26040   gl_cv_func_fopen_mode_x=yes
26041 else $as_nop
26042   gl_cv_func_fopen_mode_x=no
26043 fi
26044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26045   conftest.$ac_objext conftest.beam conftest.$ac_ext
26046 fi
26047
26048      rm -f conftest.x
26049
26050 fi
26051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5
26052 printf "%s\n" "$gl_cv_func_fopen_mode_x" >&6; }
26053   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5
26054 printf %s "checking whether fopen supports the mode character 'e'... " >&6; }
26055 if test ${gl_cv_func_fopen_mode_e+y}
26056 then :
26057   printf %s "(cached) " >&6
26058 else $as_nop
26059   echo foo > conftest.x
26060      if test "$cross_compiling" = yes
26061 then :
26062   case "$host_os" in
26063           # Guess yes on glibc and musl systems.
26064           linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
26065             gl_cv_func_fopen_mode_e="guessing yes" ;;
26066           # Guess no on native Windows.
26067           mingw*)
26068             gl_cv_func_fopen_mode_e="guessing no" ;;
26069           # If we don't know, obey --enable-cross-guesses.
26070           *)
26071             gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;;
26072         esac
26073
26074 else $as_nop
26075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076 /* end confdefs.h.  */
26077
26078 #include <stdio.h>
26079 #include <errno.h>
26080 #include <fcntl.h>
26081
26082
26083 $gl_mda_defines
26084
26085 int main ()
26086 {
26087   FILE *fp = fopen ("conftest.x", "re");
26088   if (fp != NULL)
26089     {
26090       if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC)
26091         return 0;
26092       else
26093         /* 'e' ignored */
26094         return 1;
26095     }
26096   else
26097     /* 'e' rejected */
26098     return 2;
26099 }
26100 _ACEOF
26101 if ac_fn_c_try_run "$LINENO"
26102 then :
26103   gl_cv_func_fopen_mode_e=yes
26104 else $as_nop
26105   gl_cv_func_fopen_mode_e=no
26106 fi
26107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26108   conftest.$ac_objext conftest.beam conftest.$ac_ext
26109 fi
26110
26111      rm -f conftest.x
26112
26113 fi
26114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5
26115 printf "%s\n" "$gl_cv_func_fopen_mode_e" >&6; }
26116   REPLACE_FOPEN_FOR_FOPEN_GNU="$REPLACE_FOPEN"
26117   case "$gl_cv_func_fopen_mode_x" in
26118     *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
26119   esac
26120   case "$gl_cv_func_fopen_mode_e" in
26121     *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
26122   esac
26123
26124   if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then
26125
26126
26127
26128
26129
26130
26131
26132
26133   sgl_LIBOBJS="$sgl_LIBOBJS fopen.$ac_objext"
26134
26135     :
26136   fi
26137
26138
26139 printf "%s\n" "#define GNULIB_FOPEN_GNU 1" >>confdefs.h
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151           GL_SGL_GNULIB_FOPEN_GNU=1
26152
26153
26154
26155
26156
26157 printf "%s\n" "#define GNULIB_TEST_FOPEN_GNU 1" >>confdefs.h
26158
26159
26160
26161
26162
26163
26164                           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
26165 printf %s "checking whether free is known to preserve errno... " >&6; }
26166 if test ${gl_cv_func_free_preserves_errno+y}
26167 then :
26168   printf %s "(cached) " >&6
26169 else $as_nop
26170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26171 /* end confdefs.h.  */
26172 #include <stdlib.h>
26173
26174 int
26175 main (void)
26176 {
26177 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
26178             #elif defined __OpenBSD__
26179             #elif defined __sun
26180             #else
26181               #error "'free' is not known to preserve errno"
26182             #endif
26183
26184   ;
26185   return 0;
26186 }
26187 _ACEOF
26188 if ac_fn_c_try_compile "$LINENO"
26189 then :
26190   gl_cv_func_free_preserves_errno=yes
26191 else $as_nop
26192   gl_cv_func_free_preserves_errno=no
26193 fi
26194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26195
26196 fi
26197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
26198 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
26199
26200   case $gl_cv_func_free_preserves_errno in
26201    *yes)
26202
26203 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
26204
26205     ;;
26206    *) REPLACE_FREE=1 ;;
26207   esac
26208
26209
26210      if test $REPLACE_FREE = 1; then
26211   GL_COND_OBJ_FREE_TRUE=
26212   GL_COND_OBJ_FREE_FALSE='#'
26213 else
26214   GL_COND_OBJ_FREE_TRUE='#'
26215   GL_COND_OBJ_FREE_FALSE=
26216 fi
26217 :
26218     if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
26219     GL_COND_OBJ_FREE_TRUE='#'
26220     GL_COND_OBJ_FREE_FALSE='#'
26221   fi
26222
26223   if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
26224
26225     :
26226
26227 fi
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237           GL_SGL_GNULIB_FREE_POSIX=1
26238
26239
26240
26241
26242
26243 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
26244
26245
26246
26247
26248
26249
26250
26251   case "$host_os" in
26252     mingw* | solaris*)
26253                         REPLACE_FSTAT=1
26254       ;;
26255   esac
26256
26257
26258
26259
26260      if test $REPLACE_FSTAT = 1; then
26261   GL_COND_OBJ_FSTAT_TRUE=
26262   GL_COND_OBJ_FSTAT_FALSE='#'
26263 else
26264   GL_COND_OBJ_FSTAT_TRUE='#'
26265   GL_COND_OBJ_FSTAT_FALSE=
26266 fi
26267 :
26268     if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
26269     GL_COND_OBJ_FSTAT_TRUE='#'
26270     GL_COND_OBJ_FSTAT_FALSE='#'
26271   fi
26272
26273   if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
26274
26275     case "$host_os" in
26276       mingw*)
26277
26278
26279
26280
26281
26282
26283
26284
26285   sgl_LIBOBJS="$sgl_LIBOBJS stat-w32.$ac_objext"
26286
26287         ;;
26288     esac
26289
26290
26291
26292   :
26293
26294
26295 fi
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305           GL_SGL_GNULIB_FSTAT=1
26306
26307
26308
26309
26310
26311 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
26312
26313
26314
26315
26316
26317
26318     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
26319     REPLACE_FTELL=1
26320   fi
26321
26322
26323      if test $REPLACE_FTELL = 1; then
26324   GL_COND_OBJ_FTELL_TRUE=
26325   GL_COND_OBJ_FTELL_FALSE='#'
26326 else
26327   GL_COND_OBJ_FTELL_TRUE='#'
26328   GL_COND_OBJ_FTELL_FALSE=
26329 fi
26330 :
26331     if test -z "${GL_COND_OBJ_FTELL_TRUE}" && test -z "${GL_COND_OBJ_FTELL_FALSE}"; then
26332     GL_COND_OBJ_FTELL_TRUE='#'
26333     GL_COND_OBJ_FTELL_FALSE='#'
26334   fi
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345           GL_SGL_GNULIB_FTELL=1
26346
26347
26348
26349
26350
26351 printf "%s\n" "#define GNULIB_TEST_FTELL 1" >>confdefs.h
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364   if test $ac_cv_have_decl_ftello = no; then
26365     HAVE_DECL_FTELLO=0
26366   fi
26367
26368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
26369 printf %s "checking for ftello... " >&6; }
26370 if test ${gl_cv_func_ftello+y}
26371 then :
26372   printf %s "(cached) " >&6
26373 else $as_nop
26374
26375       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26376 /* end confdefs.h.  */
26377 #include <stdio.h>
26378 int
26379 main (void)
26380 {
26381 ftello (stdin);
26382   ;
26383   return 0;
26384 }
26385 _ACEOF
26386 if ac_fn_c_try_link "$LINENO"
26387 then :
26388   gl_cv_func_ftello=yes
26389 else $as_nop
26390   gl_cv_func_ftello=no
26391 fi
26392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26393     conftest$ac_exeext conftest.$ac_ext
26394
26395 fi
26396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
26397 printf "%s\n" "$gl_cv_func_ftello" >&6; }
26398   if test $gl_cv_func_ftello = no; then
26399     HAVE_FTELLO=0
26400   else
26401     if test $WINDOWS_64_BIT_OFF_T = 1; then
26402       REPLACE_FTELLO=1
26403     fi
26404     if test $gl_cv_var_stdin_large_offset = no; then
26405       REPLACE_FTELLO=1
26406     fi
26407     if test $REPLACE_FTELLO = 0; then
26408
26409       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
26410 printf %s "checking whether ftello works... " >&6; }
26411 if test ${gl_cv_func_ftello_works+y}
26412 then :
26413   printf %s "(cached) " >&6
26414 else $as_nop
26415
26416                               case "$host_os" in
26417                       # Guess no on Solaris.
26418             solaris*) gl_cv_func_ftello_works="guessing no" ;;
26419                       # Guess yes on native Windows.
26420             mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
26421                       # Guess yes otherwise.
26422             *)        gl_cv_func_ftello_works="guessing yes" ;;
26423           esac
26424           if test "$cross_compiling" = yes
26425 then :
26426   :
26427 else $as_nop
26428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26429 /* end confdefs.h.  */
26430
26431 #include <stdio.h>
26432 #include <stdlib.h>
26433 #include <string.h>
26434 #define TESTFILE "conftest.tmp"
26435 int
26436 main (void)
26437 {
26438   FILE *fp;
26439
26440   /* Create a file with some contents.  */
26441   fp = fopen (TESTFILE, "w");
26442   if (fp == NULL)
26443     return 70;
26444   if (fwrite ("foogarsh", 1, 8, fp) < 8)
26445     { fclose (fp); return 71; }
26446   if (fclose (fp))
26447     return 72;
26448
26449   /* The file's contents is now "foogarsh".  */
26450
26451   /* Try writing after reading to EOF.  */
26452   fp = fopen (TESTFILE, "r+");
26453   if (fp == NULL)
26454     return 73;
26455   if (fseek (fp, -1, SEEK_END))
26456     { fclose (fp); return 74; }
26457   if (!(getc (fp) == 'h'))
26458     { fclose (fp); return 1; }
26459   if (!(getc (fp) == EOF))
26460     { fclose (fp); return 2; }
26461   if (!(ftell (fp) == 8))
26462     { fclose (fp); return 3; }
26463   if (!(ftell (fp) == 8))
26464     { fclose (fp); return 4; }
26465   if (!(putc ('!', fp) == '!'))
26466     { fclose (fp); return 5; }
26467   if (!(ftell (fp) == 9))
26468     { fclose (fp); return 6; }
26469   if (!(fclose (fp) == 0))
26470     return 7;
26471   fp = fopen (TESTFILE, "r");
26472   if (fp == NULL)
26473     return 75;
26474   {
26475     char buf[10];
26476     if (!(fread (buf, 1, 10, fp) == 9))
26477       { fclose (fp); return 10; }
26478     if (!(memcmp (buf, "foogarsh!", 9) == 0))
26479       { fclose (fp); return 11; }
26480   }
26481   if (!(fclose (fp) == 0))
26482     return 12;
26483
26484   /* The file's contents is now "foogarsh!".  */
26485
26486   return 0;
26487 }
26488 _ACEOF
26489 if ac_fn_c_try_run "$LINENO"
26490 then :
26491   gl_cv_func_ftello_works=yes
26492 else $as_nop
26493   gl_cv_func_ftello_works=no
26494 fi
26495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26496   conftest.$ac_objext conftest.beam conftest.$ac_ext
26497 fi
26498
26499
26500 fi
26501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
26502 printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
26503       case "$gl_cv_func_ftello_works" in
26504         *yes) ;;
26505         *)
26506           REPLACE_FTELLO=1
26507
26508 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
26509
26510           ;;
26511       esac
26512     fi
26513     if test $REPLACE_FTELLO = 0; then
26514
26515       if test $gl_ftello_broken_after_ungetc = yes; then
26516         REPLACE_FTELLO=1
26517
26518 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h
26519
26520       fi
26521     fi
26522   fi
26523
26524
26525      if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
26526   GL_COND_OBJ_FTELLO_TRUE=
26527   GL_COND_OBJ_FTELLO_FALSE='#'
26528 else
26529   GL_COND_OBJ_FTELLO_TRUE='#'
26530   GL_COND_OBJ_FTELLO_FALSE=
26531 fi
26532 :
26533     if test -z "${GL_COND_OBJ_FTELLO_TRUE}" && test -z "${GL_COND_OBJ_FTELLO_FALSE}"; then
26534     GL_COND_OBJ_FTELLO_TRUE='#'
26535     GL_COND_OBJ_FTELLO_FALSE='#'
26536   fi
26537
26538   if test -z "$GL_COND_OBJ_FTELLO_TRUE"; then :
26539
26540
26541       ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
26542 if test "x$ac_cv_func__ftelli64" = xyes
26543 then :
26544   printf "%s\n" "#define HAVE__FTELLI64 1" >>confdefs.h
26545
26546 fi
26547
26548
26549
26550 fi
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560           GL_SGL_GNULIB_FTELLO=1
26561
26562
26563
26564
26565
26566 printf "%s\n" "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
26567
26568
26569
26570
26571
26572
26573
26574
26575   if test $ac_cv_func_getdtablesize = yes &&
26576      test $ac_cv_have_decl_getdtablesize = yes; then
26577     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
26578 printf %s "checking whether getdtablesize works... " >&6; }
26579 if test ${gl_cv_func_getdtablesize_works+y}
26580 then :
26581   printf %s "(cached) " >&6
26582 else $as_nop
26583                                                    case "$host_os" in
26584          vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
26585          *)
26586                                                        if test "$cross_compiling" = yes
26587 then :
26588   case "$host_os" in
26589                 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
26590                   gl_cv_func_getdtablesize_works="guessing no" ;;
26591                 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
26592               esac
26593
26594 else $as_nop
26595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26596 /* end confdefs.h.  */
26597
26598              #include <unistd.h>
26599
26600
26601 $gl_mda_defines
26602
26603
26604 int
26605 main (void)
26606 {
26607 int size = getdtablesize();
26608                  if (dup2 (0, getdtablesize()) != -1)
26609                    return 1;
26610                  if (size != getdtablesize())
26611                    return 2;
26612
26613   ;
26614   return 0;
26615 }
26616 _ACEOF
26617 if ac_fn_c_try_run "$LINENO"
26618 then :
26619   gl_cv_func_getdtablesize_works=yes
26620 else $as_nop
26621   gl_cv_func_getdtablesize_works=no
26622 fi
26623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26624   conftest.$ac_objext conftest.beam conftest.$ac_ext
26625 fi
26626
26627            ;;
26628        esac
26629
26630 fi
26631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
26632 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
26633     case "$gl_cv_func_getdtablesize_works" in
26634       *yes | "no (limitation)") ;;
26635       *) REPLACE_GETDTABLESIZE=1 ;;
26636     esac
26637   else
26638     HAVE_GETDTABLESIZE=0
26639   fi
26640
26641
26642      if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
26643   GL_COND_OBJ_GETDTABLESIZE_TRUE=
26644   GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
26645 else
26646   GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
26647   GL_COND_OBJ_GETDTABLESIZE_FALSE=
26648 fi
26649 :
26650     if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
26651     GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
26652     GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
26653   fi
26654
26655   if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
26656
26657     :
26658
26659 fi
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669           GL_SGL_GNULIB_GETDTABLESIZE=1
26670
26671
26672
26673
26674
26675 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688     REPLACE_GETOPT=0
26689     if test -n "$gl_replace_getopt"; then
26690       REPLACE_GETOPT=1
26691     fi
26692
26693   GL_GENERATE_GETOPT_H=false
26694   GL_GENERATE_GETOPT_CDEFS_H=false
26695   if test $REPLACE_GETOPT = 1; then
26696
26697
26698   if test $ac_cv_header_sys_cdefs_h = yes; then
26699     HAVE_SYS_CDEFS_H=1
26700   else
26701     HAVE_SYS_CDEFS_H=0
26702   fi
26703
26704
26705
26706 printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h
26707
26708   GL_GENERATE_GETOPT_H=true
26709   GL_GENERATE_GETOPT_CDEFS_H=true
26710
26711   fi
26712
26713
26714
26715
26716
26717   case "$GL_GENERATE_GETOPT_H" in
26718     false) GETOPT_H='' ;;
26719     true)
26720                   if test -z "$GETOPT_H"; then
26721         GETOPT_H="${gl_source_base_prefix}getopt.h"
26722       fi
26723       ;;
26724     *) echo "*** GL_GENERATE_GETOPT_H is not set correctly" 1>&2; exit 1 ;;
26725   esac
26726
26727
26728      if $GL_GENERATE_GETOPT_H; then
26729   GL_GENERATE_GETOPT_H_TRUE=
26730   GL_GENERATE_GETOPT_H_FALSE='#'
26731 else
26732   GL_GENERATE_GETOPT_H_TRUE='#'
26733   GL_GENERATE_GETOPT_H_FALSE=
26734 fi
26735 :
26736     if test -z "${GL_GENERATE_GETOPT_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_H_FALSE}"; then
26737     GL_GENERATE_GETOPT_H_TRUE='#'
26738     GL_GENERATE_GETOPT_H_FALSE='#'
26739   fi
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749   case "$GL_GENERATE_GETOPT_CDEFS_H" in
26750     false) GETOPT_CDEFS_H='' ;;
26751     true)
26752                   if test -z "$GETOPT_CDEFS_H"; then
26753         GETOPT_CDEFS_H="${gl_source_base_prefix}getopt-cdefs.h"
26754       fi
26755       ;;
26756     *) echo "*** GL_GENERATE_GETOPT_CDEFS_H is not set correctly" 1>&2; exit 1 ;;
26757   esac
26758
26759
26760      if $GL_GENERATE_GETOPT_CDEFS_H; then
26761   GL_GENERATE_GETOPT_CDEFS_H_TRUE=
26762   GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
26763 else
26764   GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
26765   GL_GENERATE_GETOPT_CDEFS_H_FALSE=
26766 fi
26767 :
26768     if test -z "${GL_GENERATE_GETOPT_CDEFS_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_CDEFS_H_FALSE}"; then
26769     GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
26770     GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
26771   fi
26772
26773
26774
26775
26776
26777
26778
26779      if test $REPLACE_GETOPT = 1; then
26780   GL_COND_OBJ_GETOPT_TRUE=
26781   GL_COND_OBJ_GETOPT_FALSE='#'
26782 else
26783   GL_COND_OBJ_GETOPT_TRUE='#'
26784   GL_COND_OBJ_GETOPT_FALSE=
26785 fi
26786 :
26787     if test -z "${GL_COND_OBJ_GETOPT_TRUE}" && test -z "${GL_COND_OBJ_GETOPT_FALSE}"; then
26788     GL_COND_OBJ_GETOPT_TRUE='#'
26789     GL_COND_OBJ_GETOPT_FALSE='#'
26790   fi
26791
26792   if test -z "$GL_COND_OBJ_GETOPT_TRUE"; then :
26793
26794
26795
26796
26797
26798
26799
26800   GL_SGL_GNULIB_UNISTD_H_GETOPT=1
26801
26802
26803
26804 fi
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814           GL_SGL_GNULIB_GETOPT_POSIX=1
26815
26816
26817
26818
26819
26820 printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838   gl_gettimeofday_timezone=void
26839   if test $ac_cv_func_gettimeofday != yes; then
26840     HAVE_GETTIMEOFDAY=0
26841   else
26842     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
26843 printf %s "checking for gettimeofday with POSIX signature... " >&6; }
26844 if test ${gl_cv_func_gettimeofday_posix_signature+y}
26845 then :
26846   printf %s "(cached) " >&6
26847 else $as_nop
26848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26849 /* end confdefs.h.  */
26850 #include <sys/time.h>
26851               struct timeval c;
26852               int gettimeofday (struct timeval *restrict, void *restrict);
26853
26854 int
26855 main (void)
26856 {
26857 /* glibc uses struct timezone * rather than the POSIX void *
26858                  if _GNU_SOURCE is defined.  However, since the only portable
26859                  use of gettimeofday uses NULL as the second parameter, and
26860                  since the glibc definition is actually more typesafe, it is
26861                  not worth wrapping this to get a compliant signature.  */
26862               int (*f) (struct timeval *restrict, void *restrict)
26863                 = gettimeofday;
26864               int x = f (&c, 0);
26865               return !(x | c.tv_sec | c.tv_usec);
26866
26867   ;
26868   return 0;
26869 }
26870 _ACEOF
26871 if ac_fn_c_try_compile "$LINENO"
26872 then :
26873   gl_cv_func_gettimeofday_posix_signature=yes
26874 else $as_nop
26875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26876 /* end confdefs.h.  */
26877 #include <sys/time.h>
26878 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
26879
26880 int
26881 main (void)
26882 {
26883
26884   ;
26885   return 0;
26886 }
26887 _ACEOF
26888 if ac_fn_c_try_compile "$LINENO"
26889 then :
26890   gl_cv_func_gettimeofday_posix_signature=almost
26891 else $as_nop
26892   gl_cv_func_gettimeofday_posix_signature=no
26893 fi
26894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26895 fi
26896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26897 fi
26898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
26899 printf "%s\n" "$gl_cv_func_gettimeofday_posix_signature" >&6; }
26900     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
26901       gl_gettimeofday_timezone='struct timezone'
26902     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
26903       REPLACE_GETTIMEOFDAY=1
26904     fi
26905         if test $REPLACE_STRUCT_TIMEVAL = 1; then
26906       REPLACE_GETTIMEOFDAY=1
26907     fi
26908             case "$host_os" in
26909       mingw*) REPLACE_GETTIMEOFDAY=1 ;;
26910     esac
26911   fi
26912
26913 printf "%s\n" "#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone" >>confdefs.h
26914
26915
26916
26917      if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
26918   GL_COND_OBJ_GETTIMEOFDAY_TRUE=
26919   GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
26920 else
26921   GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
26922   GL_COND_OBJ_GETTIMEOFDAY_FALSE=
26923 fi
26924 :
26925     if test -z "${GL_COND_OBJ_GETTIMEOFDAY_TRUE}" && test -z "${GL_COND_OBJ_GETTIMEOFDAY_FALSE}"; then
26926     GL_COND_OBJ_GETTIMEOFDAY_TRUE='#'
26927     GL_COND_OBJ_GETTIMEOFDAY_FALSE='#'
26928   fi
26929
26930   if test -z "$GL_COND_OBJ_GETTIMEOFDAY_TRUE"; then :
26931
26932     :
26933
26934 fi
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944           GL_SGL_GNULIB_GETTIMEOFDAY=1
26945
26946
26947
26948
26949
26950 printf "%s\n" "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967   case "$GL_GENERATE_LIMITS_H" in
26968     false) LIMITS_H='' ;;
26969     true)
26970                   if test -z "$LIMITS_H"; then
26971         LIMITS_H="${gl_source_base_prefix}limits.h"
26972       fi
26973       ;;
26974     *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
26975   esac
26976
26977
26978      if $GL_GENERATE_LIMITS_H; then
26979   GL_GENERATE_LIMITS_H_TRUE=
26980   GL_GENERATE_LIMITS_H_FALSE='#'
26981 else
26982   GL_GENERATE_LIMITS_H_TRUE='#'
26983   GL_GENERATE_LIMITS_H_FALSE=
26984 fi
26985 :
26986     if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
26987     GL_GENERATE_LIMITS_H_TRUE='#'
26988     GL_GENERATE_LIMITS_H_FALSE='#'
26989   fi
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
27003 printf %s "checking whether lseek detects pipes... " >&6; }
27004 if test ${gl_cv_func_lseek_pipe+y}
27005 then :
27006   printf %s "(cached) " >&6
27007 else $as_nop
27008   case "$host_os" in
27009        mingw*)
27010                                                                gl_cv_func_lseek_pipe=no
27011          ;;
27012        *)
27013          if test $cross_compiling = no; then
27014            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27015 /* end confdefs.h.  */
27016
27017 #include <sys/types.h> /* for off_t */
27018 #include <stdio.h> /* for SEEK_CUR */
27019 #if HAVE_UNISTD_H
27020 # include <unistd.h>
27021 #else /* on Windows with MSVC */
27022 # include <io.h>
27023 #endif
27024
27025
27026 $gl_mda_defines
27027
27028 int
27029 main (void)
27030 {
27031
27032   /* Exit with success only if stdin is seekable.  */
27033   return lseek (0, (off_t)0, SEEK_CUR) < 0;
27034
27035   ;
27036   return 0;
27037 }
27038 _ACEOF
27039 if ac_fn_c_try_link "$LINENO"
27040 then :
27041   if test -s conftest$ac_exeext \
27042                  && ./conftest$ac_exeext < conftest.$ac_ext \
27043                  && test 1 = "`echo hi \
27044                    | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
27045                 gl_cv_func_lseek_pipe=yes
27046               else
27047                 gl_cv_func_lseek_pipe=no
27048               fi
27049
27050 else $as_nop
27051   gl_cv_func_lseek_pipe=no
27052 fi
27053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27054     conftest$ac_exeext conftest.$ac_ext
27055          else
27056            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h.  */
27058
27059 #if defined __BEOS__
27060 /* BeOS mistakenly return 0 when trying to seek on pipes.  */
27061   Choke me.
27062 #endif
27063 _ACEOF
27064 if ac_fn_c_try_compile "$LINENO"
27065 then :
27066   gl_cv_func_lseek_pipe=yes
27067 else $as_nop
27068   gl_cv_func_lseek_pipe=no
27069 fi
27070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27071          fi
27072          ;;
27073      esac
27074
27075 fi
27076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
27077 printf "%s\n" "$gl_cv_func_lseek_pipe" >&6; }
27078   if test "$gl_cv_func_lseek_pipe" = no; then
27079     REPLACE_LSEEK=1
27080
27081 printf "%s\n" "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
27082
27083   fi
27084
27085
27086   if test $WINDOWS_64_BIT_OFF_T = 1; then
27087     REPLACE_LSEEK=1
27088   fi
27089
27090     case $host_os in
27091     darwin*)
27092       REPLACE_LSEEK=1;;
27093   esac
27094
27095
27096      if test $REPLACE_LSEEK = 1; then
27097   GL_COND_OBJ_LSEEK_TRUE=
27098   GL_COND_OBJ_LSEEK_FALSE='#'
27099 else
27100   GL_COND_OBJ_LSEEK_TRUE='#'
27101   GL_COND_OBJ_LSEEK_FALSE=
27102 fi
27103 :
27104     if test -z "${GL_COND_OBJ_LSEEK_TRUE}" && test -z "${GL_COND_OBJ_LSEEK_FALSE}"; then
27105     GL_COND_OBJ_LSEEK_TRUE='#'
27106     GL_COND_OBJ_LSEEK_FALSE='#'
27107   fi
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118           GL_SGL_GNULIB_LSEEK=1
27119
27120
27121
27122
27123
27124 printf "%s\n" "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
27125
27126
27127
27128
27129   if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
27130
27131
27132
27133
27134
27135
27136
27137
27138   sgl_LIBOBJS="$sgl_LIBOBJS malloc.$ac_objext"
27139
27140   fi
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150           GL_SGL_GNULIB_MALLOC_POSIX=1
27151
27152
27153
27154
27155
27156 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
27157
27158
27159
27160
27161
27162
27163
27164
27165      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27166   GL_COND_OBJ_MSVC_INVAL_TRUE=
27167   GL_COND_OBJ_MSVC_INVAL_FALSE='#'
27168 else
27169   GL_COND_OBJ_MSVC_INVAL_TRUE='#'
27170   GL_COND_OBJ_MSVC_INVAL_FALSE=
27171 fi
27172 :
27173     if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
27174     GL_COND_OBJ_MSVC_INVAL_TRUE='#'
27175     GL_COND_OBJ_MSVC_INVAL_FALSE='#'
27176   fi
27177
27178
27179
27180      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27181   GL_COND_OBJ_MSVC_NOTHROW_TRUE=
27182   GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
27183 else
27184   GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
27185   GL_COND_OBJ_MSVC_NOTHROW_FALSE=
27186 fi
27187 :
27188     if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
27189     GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
27190     GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
27191   fi
27192
27193
27194
27195 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
27196
27197
27198
27199
27200
27201
27202   case "$host_os" in
27203     mingw* | pw*)
27204       REPLACE_OPEN=1
27205       ;;
27206     *)
27207
27208       if test "$gl_cv_macro_O_CLOEXEC" != yes; then
27209         REPLACE_OPEN=1
27210       fi
27211
27212
27213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
27214 printf %s "checking whether open recognizes a trailing slash... " >&6; }
27215 if test ${gl_cv_func_open_slash+y}
27216 then :
27217   printf %s "(cached) " >&6
27218 else $as_nop
27219   # Assume that if we have lstat, we can also check symlinks.
27220      if test $ac_cv_func_lstat = yes; then
27221        touch conftest.tmp
27222        ln -s conftest.tmp conftest.lnk
27223      fi
27224      if test "$cross_compiling" = yes
27225 then :
27226
27227         case "$host_os" in
27228           freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
27229             gl_cv_func_open_slash="guessing no" ;;
27230           *)
27231             gl_cv_func_open_slash="guessing yes" ;;
27232         esac
27233
27234 else $as_nop
27235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27236 /* end confdefs.h.  */
27237
27238 #include <fcntl.h>
27239 #if HAVE_UNISTD_H
27240 # include <unistd.h>
27241 #endif
27242
27243
27244 $gl_mda_defines
27245
27246 int main ()
27247 {
27248   int result = 0;
27249 #if HAVE_LSTAT
27250   if (open ("conftest.lnk/", O_RDONLY) != -1)
27251     result |= 1;
27252 #endif
27253   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
27254     result |= 2;
27255   return result;
27256 }
27257 _ACEOF
27258 if ac_fn_c_try_run "$LINENO"
27259 then :
27260   gl_cv_func_open_slash=yes
27261 else $as_nop
27262   gl_cv_func_open_slash=no
27263 fi
27264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27265   conftest.$ac_objext conftest.beam conftest.$ac_ext
27266 fi
27267
27268      rm -f conftest.sl conftest.tmp conftest.lnk
27269
27270 fi
27271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
27272 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
27273   case "$gl_cv_func_open_slash" in
27274     *no)
27275
27276 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
27277
27278       ;;
27279   esac
27280
27281       case "$gl_cv_func_open_slash" in
27282         *no)
27283           REPLACE_OPEN=1
27284           ;;
27285       esac
27286       ;;
27287   esac
27288
27289
27290
27291
27292      if test $REPLACE_OPEN = 1; then
27293   GL_COND_OBJ_OPEN_TRUE=
27294   GL_COND_OBJ_OPEN_FALSE='#'
27295 else
27296   GL_COND_OBJ_OPEN_TRUE='#'
27297   GL_COND_OBJ_OPEN_FALSE=
27298 fi
27299 :
27300     if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
27301     GL_COND_OBJ_OPEN_TRUE='#'
27302     GL_COND_OBJ_OPEN_FALSE='#'
27303   fi
27304
27305   if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
27306
27307
27308
27309   :
27310
27311
27312 fi
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322           GL_SGL_GNULIB_OPEN=1
27323
27324
27325
27326
27327
27328 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
27329
27330
27331
27332
27333
27334
27335   ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
27336 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27337 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
27338 then :
27339   ac_have_decl=1
27340 else $as_nop
27341   ac_have_decl=0
27342 fi
27343 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
27344
27345   ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
27346 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27347 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
27348 then :
27349   ac_have_decl=1
27350 else $as_nop
27351   ac_have_decl=0
27352 fi
27353 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
27354
27355   :
27356
27357
27358
27359   if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
27360     REPLACE_REALLOC_FOR_REALLOC_POSIX=1
27361   fi
27362
27363   if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
27364
27365
27366
27367
27368
27369
27370
27371
27372   sgl_LIBOBJS="$sgl_LIBOBJS realloc.$ac_objext"
27373
27374   fi
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384           GL_SGL_GNULIB_REALLOC_POSIX=1
27385
27386
27387
27388
27389
27390 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
27391
27392
27393
27394
27395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
27396 printf %s "checking for ssize_t... " >&6; }
27397 if test ${gt_cv_ssize_t+y}
27398 then :
27399   printf %s "(cached) " >&6
27400 else $as_nop
27401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27402 /* end confdefs.h.  */
27403 #include <sys/types.h>
27404 int
27405 main (void)
27406 {
27407 int x = sizeof (ssize_t *) + sizeof (ssize_t);
27408             return !x;
27409   ;
27410   return 0;
27411 }
27412 _ACEOF
27413 if ac_fn_c_try_compile "$LINENO"
27414 then :
27415   gt_cv_ssize_t=yes
27416 else $as_nop
27417   gt_cv_ssize_t=no
27418 fi
27419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27420 fi
27421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
27422 printf "%s\n" "$gt_cv_ssize_t" >&6; }
27423   if test $gt_cv_ssize_t = no; then
27424
27425 printf "%s\n" "#define ssize_t int" >>confdefs.h
27426
27427   fi
27428
27429
27430
27431
27432
27433   case "$host_os" in
27434     mingw*)
27435                   REPLACE_STAT=1
27436       ;;
27437     *)
27438                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
27439 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
27440 if test ${gl_cv_func_stat_file_slash+y}
27441 then :
27442   printf %s "(cached) " >&6
27443 else $as_nop
27444   touch conftest.tmp
27445          # Assume that if we have lstat, we can also check symlinks.
27446          if test $ac_cv_func_lstat = yes; then
27447            ln -s conftest.tmp conftest.lnk
27448          fi
27449          if test "$cross_compiling" = yes
27450 then :
27451   case "$host_os" in
27452                                # Guess yes on Linux systems.
27453               linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
27454                                # Guess yes on glibc systems.
27455               *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
27456                                # If we don't know, obey --enable-cross-guesses.
27457               *)               gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
27458             esac
27459
27460 else $as_nop
27461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27462 /* end confdefs.h.  */
27463 #include <sys/stat.h>
27464
27465 int
27466 main (void)
27467 {
27468 int result = 0;
27469                struct stat st;
27470                if (!stat ("conftest.tmp/", &st))
27471                  result |= 1;
27472 #if HAVE_LSTAT
27473                if (!stat ("conftest.lnk/", &st))
27474                  result |= 2;
27475 #endif
27476                return result;
27477
27478   ;
27479   return 0;
27480 }
27481 _ACEOF
27482 if ac_fn_c_try_run "$LINENO"
27483 then :
27484   gl_cv_func_stat_file_slash=yes
27485 else $as_nop
27486   gl_cv_func_stat_file_slash=no
27487 fi
27488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27489   conftest.$ac_objext conftest.beam conftest.$ac_ext
27490 fi
27491
27492          rm -f conftest.tmp conftest.lnk
27493 fi
27494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
27495 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
27496       case $gl_cv_func_stat_file_slash in
27497         *no)
27498           REPLACE_STAT=1
27499
27500 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
27501 ;;
27502       esac
27503       case $host_os in
27504                 solaris*)
27505           REPLACE_FSTAT=1 ;;
27506       esac
27507       ;;
27508   esac
27509
27510
27511      if test $REPLACE_STAT = 1; then
27512   GL_COND_OBJ_STAT_TRUE=
27513   GL_COND_OBJ_STAT_FALSE='#'
27514 else
27515   GL_COND_OBJ_STAT_TRUE='#'
27516   GL_COND_OBJ_STAT_FALSE=
27517 fi
27518 :
27519     if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
27520     GL_COND_OBJ_STAT_TRUE='#'
27521     GL_COND_OBJ_STAT_FALSE='#'
27522   fi
27523
27524   if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
27525
27526     case "$host_os" in
27527       mingw*)
27528
27529
27530
27531
27532
27533
27534
27535
27536   sgl_LIBOBJS="$sgl_LIBOBJS stat-w32.$ac_objext"
27537
27538         ;;
27539     esac
27540
27541
27542
27543   :
27544
27545
27546 fi
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556           GL_SGL_GNULIB_STAT=1
27557
27558
27559
27560
27561
27562 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
27563
27564
27565
27566
27567
27568
27569
27570   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>
27571      #include <sys/stat.h>
27572 "
27573 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
27574 then :
27575
27576 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
27577
27578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
27579 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
27580 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
27581 then :
27582   printf %s "(cached) " >&6
27583 else $as_nop
27584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27585 /* end confdefs.h.  */
27586
27587             #include <sys/types.h>
27588             #include <sys/stat.h>
27589             #if HAVE_SYS_TIME_H
27590             # include <sys/time.h>
27591             #endif
27592             #include <time.h>
27593             struct timespec ts;
27594             struct stat st;
27595
27596 int
27597 main (void)
27598 {
27599
27600             st.st_atim = ts;
27601
27602   ;
27603   return 0;
27604 }
27605 _ACEOF
27606 if ac_fn_c_try_compile "$LINENO"
27607 then :
27608   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
27609 else $as_nop
27610   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
27611 fi
27612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27613 fi
27614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
27615 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
27616      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
27617
27618 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
27619
27620      fi
27621 else $as_nop
27622   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>
27623         #include <sys/stat.h>
27624 "
27625 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
27626 then :
27627
27628 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
27629
27630
27631 else $as_nop
27632   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
27633            #include <sys/stat.h>
27634 "
27635 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
27636 then :
27637
27638 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
27639
27640
27641 else $as_nop
27642   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>
27643               #include <sys/stat.h>
27644 "
27645 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
27646 then :
27647
27648 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
27649
27650
27651 fi
27652
27653 fi
27654
27655 fi
27656
27657 fi
27658
27659
27660
27661
27662
27663   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>
27664      #include <sys/stat.h>
27665 "
27666 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
27667 then :
27668
27669 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
27670
27671
27672 else $as_nop
27673   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
27674         #include <sys/stat.h>
27675 "
27676 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
27677 then :
27678
27679 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
27680
27681
27682 else $as_nop
27683   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>
27684           #include <sys/stat.h>
27685 "
27686 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
27687 then :
27688
27689 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
27690
27691
27692 fi
27693
27694 fi
27695
27696 fi
27697
27698
27699
27700   GL_GENERATE_STDARG_H=false
27701   NEXT_STDARG_H='<stdarg.h>'
27702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27703 printf %s "checking for va_copy... " >&6; }
27704 if test ${gl_cv_func_va_copy+y}
27705 then :
27706   printf %s "(cached) " >&6
27707 else $as_nop
27708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27709 /* end confdefs.h.  */
27710 #include <stdarg.h>
27711 int
27712 main (void)
27713 {
27714
27715 #ifndef va_copy
27716 void (*func) (va_list, va_list) = va_copy;
27717 #endif
27718
27719   ;
27720   return 0;
27721 }
27722 _ACEOF
27723 if ac_fn_c_try_compile "$LINENO"
27724 then :
27725   gl_cv_func_va_copy=yes
27726 else $as_nop
27727   gl_cv_func_va_copy=no
27728 fi
27729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27730
27731 fi
27732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
27733 printf "%s\n" "$gl_cv_func_va_copy" >&6; }
27734   if test $gl_cv_func_va_copy = no; then
27735                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27736 /* end confdefs.h.  */
27737 #if defined _AIX && !defined __GNUC__
27738         AIX vaccine
27739        #endif
27740
27741 _ACEOF
27742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27743   $EGREP "vaccine" >/dev/null 2>&1
27744 then :
27745   gl_aixcc=yes
27746 else $as_nop
27747   gl_aixcc=no
27748 fi
27749 rm -rf conftest*
27750
27751     if test $gl_aixcc = yes; then
27752             GL_GENERATE_STDARG_H=true
27753
27754
27755
27756
27757
27758
27759
27760
27761      if test $gl_cv_have_include_next = yes; then
27762        gl_cv_next_stdarg_h='<'stdarg.h'>'
27763      else
27764        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
27765 printf %s "checking absolute name of <stdarg.h>... " >&6; }
27766 if test ${gl_cv_next_stdarg_h+y}
27767 then :
27768   printf %s "(cached) " >&6
27769 else $as_nop
27770
27771
27772
27773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27774 /* end confdefs.h.  */
27775 #include <stdarg.h>
27776 _ACEOF
27777                 case "$host_os" in
27778     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27779     *)    gl_absname_cpp="$ac_cpp" ;;
27780   esac
27781
27782   case "$host_os" in
27783     mingw*)
27784                                           gl_dirsep_regex='[/\\]'
27785       ;;
27786     *)
27787       gl_dirsep_regex='\/'
27788       ;;
27789   esac
27790       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27791   gl_header_literal_regex=`echo 'stdarg.h' \
27792                            | sed -e "$gl_make_literal_regex_sed"`
27793   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27794       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27795       s|^/[^/]|//&|
27796       p
27797       q
27798     }'
27799
27800         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27801   sed -n "$gl_absolute_header_sed"`
27802
27803           gl_header=$gl_cv_absolute_stdarg_h
27804           gl_cv_next_stdarg_h='"'$gl_header'"'
27805
27806
27807 fi
27808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
27809 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; }
27810      fi
27811      NEXT_STDARG_H=$gl_cv_next_stdarg_h
27812
27813      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27814        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27815        gl_next_as_first_directive='<'stdarg.h'>'
27816      else
27817        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27818        gl_next_as_first_directive=$gl_cv_next_stdarg_h
27819      fi
27820      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
27821
27822
27823
27824
27825             if test "$gl_cv_next_stdarg_h" = '""'; then
27826         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
27827         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
27828       fi
27829     else
27830
27831
27832   exec 9>&6 6>/dev/null
27833
27834     if test ${gl_cv_func___va_copy+y}
27835 then :
27836   printf %s "(cached) " >&6
27837 else $as_nop
27838
27839         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27840 /* end confdefs.h.  */
27841 #include <stdarg.h>
27842 int
27843 main (void)
27844 {
27845
27846 #ifndef __va_copy
27847 error, bail out
27848 #endif
27849
27850   ;
27851   return 0;
27852 }
27853 _ACEOF
27854 if ac_fn_c_try_compile "$LINENO"
27855 then :
27856   gl_cv_func___va_copy=yes
27857 else $as_nop
27858   gl_cv_func___va_copy=no
27859 fi
27860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27861 fi
27862
27863
27864   exec 6>&9 9>&-
27865
27866
27867       if test $gl_cv_func___va_copy = yes; then
27868
27869 printf "%s\n" "#define va_copy __va_copy" >>confdefs.h
27870
27871       else
27872
27873
27874 printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h
27875
27876       fi
27877     fi
27878   fi
27879
27880
27881
27882
27883
27884
27885   case "$GL_GENERATE_STDARG_H" in
27886     false) STDARG_H='' ;;
27887     true)
27888                   if test -z "$STDARG_H"; then
27889         STDARG_H="${gl_source_base_prefix}stdarg.h"
27890       fi
27891       ;;
27892     *) echo "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;;
27893   esac
27894
27895
27896      if $GL_GENERATE_STDARG_H; then
27897   GL_GENERATE_STDARG_H_TRUE=
27898   GL_GENERATE_STDARG_H_FALSE='#'
27899 else
27900   GL_GENERATE_STDARG_H_TRUE='#'
27901   GL_GENERATE_STDARG_H_FALSE=
27902 fi
27903 :
27904     if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
27905     GL_GENERATE_STDARG_H_TRUE='#'
27906     GL_GENERATE_STDARG_H_FALSE='#'
27907   fi
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918           if test "$ac_cv_header_stdbool_h" = yes; then
27919     case "$host_os" in
27920       solaris*)
27921         if test -z "$GCC"; then
27922           GL_GENERATE_STDBOOL_H=true
27923         else
27924           GL_GENERATE_STDBOOL_H=false
27925         fi
27926         ;;
27927       *)
27928         GL_GENERATE_STDBOOL_H=false
27929         ;;
27930     esac
27931   else
27932     GL_GENERATE_STDBOOL_H=true
27933   fi
27934
27935   if test "$ac_cv_type__Bool" = yes; then
27936     HAVE__BOOL=1
27937   else
27938     HAVE__BOOL=0
27939   fi
27940
27941
27942
27943
27944
27945
27946   case "$GL_GENERATE_STDBOOL_H" in
27947     false) STDBOOL_H='' ;;
27948     true)
27949                   if test -z "$STDBOOL_H"; then
27950         STDBOOL_H="${gl_source_base_prefix}stdbool.h"
27951       fi
27952       ;;
27953     *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;;
27954   esac
27955
27956
27957      if $GL_GENERATE_STDBOOL_H; then
27958   GL_GENERATE_STDBOOL_H_TRUE=
27959   GL_GENERATE_STDBOOL_H_FALSE='#'
27960 else
27961   GL_GENERATE_STDBOOL_H_TRUE='#'
27962   GL_GENERATE_STDBOOL_H_FALSE=
27963 fi
27964 :
27965     if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27966     GL_GENERATE_STDBOOL_H_TRUE='#'
27967     GL_GENERATE_STDBOOL_H_FALSE='#'
27968   fi
27969
27970
27971
27972
27973
27974
27975
27976   if test $ac_cv_header_stdckdint_h = yes; then
27977     GL_GENERATE_STDCKDINT_H=false
27978   else
27979     GL_GENERATE_STDCKDINT_H=true
27980   fi
27981
27982
27983
27984
27985   case "$GL_GENERATE_STDCKDINT_H" in
27986     false) STDCKDINT_H='' ;;
27987     true)
27988                   if test -z "$STDCKDINT_H"; then
27989         STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
27990       fi
27991       ;;
27992     *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
27993   esac
27994
27995
27996      if $GL_GENERATE_STDCKDINT_H; then
27997   GL_GENERATE_STDCKDINT_H_TRUE=
27998   GL_GENERATE_STDCKDINT_H_FALSE='#'
27999 else
28000   GL_GENERATE_STDCKDINT_H_TRUE='#'
28001   GL_GENERATE_STDCKDINT_H_FALSE=
28002 fi
28003 :
28004     if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then
28005     GL_GENERATE_STDCKDINT_H_TRUE='#'
28006     GL_GENERATE_STDCKDINT_H_FALSE='#'
28007   fi
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024   case "$GL_GENERATE_STDDEF_H" in
28025     false) STDDEF_H='' ;;
28026     true)
28027                   if test -z "$STDDEF_H"; then
28028         STDDEF_H="${gl_source_base_prefix}stddef.h"
28029       fi
28030       ;;
28031     *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
28032   esac
28033
28034
28035      if $GL_GENERATE_STDDEF_H; then
28036   GL_GENERATE_STDDEF_H_TRUE=
28037   GL_GENERATE_STDDEF_H_FALSE='#'
28038 else
28039   GL_GENERATE_STDDEF_H_TRUE='#'
28040   GL_GENERATE_STDDEF_H_FALSE=
28041 fi
28042 :
28043     if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28044     GL_GENERATE_STDDEF_H_TRUE='#'
28045     GL_GENERATE_STDDEF_H_FALSE='#'
28046   fi
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058   case "$GL_GENERATE_STDINT_H" in
28059     false) STDINT_H='' ;;
28060     true)
28061                   if test -z "$STDINT_H"; then
28062         STDINT_H="${gl_source_base_prefix}stdint.h"
28063       fi
28064       ;;
28065     *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
28066   esac
28067
28068
28069      if $GL_GENERATE_STDINT_H; then
28070   GL_GENERATE_STDINT_H_TRUE=
28071   GL_GENERATE_STDINT_H_FALSE='#'
28072 else
28073   GL_GENERATE_STDINT_H_TRUE='#'
28074   GL_GENERATE_STDINT_H_FALSE=
28075 fi
28076 :
28077     if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28078     GL_GENERATE_STDINT_H_TRUE='#'
28079     GL_GENERATE_STDINT_H_FALSE='#'
28080   fi
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090   case "$GL_GENERATE_LIMITS_H" in
28091     false) LIMITS_H='' ;;
28092     true)
28093                   if test -z "$LIMITS_H"; then
28094         LIMITS_H="${gl_source_base_prefix}limits.h"
28095       fi
28096       ;;
28097     *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
28098   esac
28099
28100
28101      if $GL_GENERATE_LIMITS_H; then
28102   GL_GENERATE_LIMITS_H_TRUE=
28103   GL_GENERATE_LIMITS_H_FALSE='#'
28104 else
28105   GL_GENERATE_LIMITS_H_TRUE='#'
28106   GL_GENERATE_LIMITS_H_FALSE=
28107 fi
28108 :
28109     if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28110     GL_GENERATE_LIMITS_H_TRUE='#'
28111     GL_GENERATE_LIMITS_H_FALSE='#'
28112   fi
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127      if test $REPLACE_STDIO_READ_FUNCS = 1; then
28128   GL_COND_OBJ_STDIO_READ_TRUE=
28129   GL_COND_OBJ_STDIO_READ_FALSE='#'
28130 else
28131   GL_COND_OBJ_STDIO_READ_TRUE='#'
28132   GL_COND_OBJ_STDIO_READ_FALSE=
28133 fi
28134 :
28135     if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
28136     GL_COND_OBJ_STDIO_READ_TRUE='#'
28137     GL_COND_OBJ_STDIO_READ_FALSE='#'
28138   fi
28139
28140
28141      if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
28142   GL_COND_OBJ_STDIO_WRITE_TRUE=
28143   GL_COND_OBJ_STDIO_WRITE_FALSE='#'
28144 else
28145   GL_COND_OBJ_STDIO_WRITE_TRUE='#'
28146   GL_COND_OBJ_STDIO_WRITE_FALSE=
28147 fi
28148 :
28149     if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
28150     GL_COND_OBJ_STDIO_WRITE_TRUE='#'
28151     GL_COND_OBJ_STDIO_WRITE_FALSE='#'
28152   fi
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163           GL_SGL_GNULIB_FSCANF=1
28164
28165
28166
28167
28168
28169 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
28170
28171
28172
28173
28174
28175 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187           GL_SGL_GNULIB_SCANF=1
28188
28189
28190
28191
28192
28193 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
28194
28195
28196
28197
28198
28199 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211           GL_SGL_GNULIB_FGETC=1
28212
28213
28214
28215
28216
28217 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230           GL_SGL_GNULIB_GETC=1
28231
28232
28233
28234
28235
28236 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249           GL_SGL_GNULIB_GETCHAR=1
28250
28251
28252
28253
28254
28255 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268           GL_SGL_GNULIB_FGETS=1
28269
28270
28271
28272
28273
28274 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287           GL_SGL_GNULIB_FREAD=1
28288
28289
28290
28291
28292
28293 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306           GL_SGL_GNULIB_FPRINTF=1
28307
28308
28309
28310
28311
28312 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325           GL_SGL_GNULIB_PRINTF=1
28326
28327
28328
28329
28330
28331 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344           GL_SGL_GNULIB_VFPRINTF=1
28345
28346
28347
28348
28349
28350 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363           GL_SGL_GNULIB_VPRINTF=1
28364
28365
28366
28367
28368
28369 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382           GL_SGL_GNULIB_FPUTC=1
28383
28384
28385
28386
28387
28388 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401           GL_SGL_GNULIB_PUTC=1
28402
28403
28404
28405
28406
28407 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420           GL_SGL_GNULIB_PUTCHAR=1
28421
28422
28423
28424
28425
28426 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439           GL_SGL_GNULIB_FPUTS=1
28440
28441
28442
28443
28444
28445 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458           GL_SGL_GNULIB_PUTS=1
28459
28460
28461
28462
28463
28464 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477           GL_SGL_GNULIB_FWRITE=1
28478
28479
28480
28481
28482
28483 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534   :
28535
28536
28537
28538
28539
28540
28541
28542
28543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
28544 printf %s "checking for variable-length arrays... " >&6; }
28545 if test ${ac_cv_c_vararrays+y}
28546 then :
28547   printf %s "(cached) " >&6
28548 else $as_nop
28549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28550 /* end confdefs.h.  */
28551 #ifdef __STDC_NO_VLA__
28552         defined
28553         #endif
28554
28555 _ACEOF
28556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28557   $EGREP "defined" >/dev/null 2>&1
28558 then :
28559   ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
28560 else $as_nop
28561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28562 /* end confdefs.h.  */
28563 /* Test for VLA support.  This test is partly inspired
28564                   from examples in the C standard.  Use at least two VLA
28565                   functions to detect the GCC 3.4.3 bug described in:
28566                   https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
28567                   */
28568                #ifdef __STDC_NO_VLA__
28569                 syntax error;
28570                #else
28571                  extern int n;
28572                  int B[100];
28573                  int fvla (int m, int C[m][m]);
28574
28575                  int
28576                  simple (int count, int all[static count])
28577                  {
28578                    return all[count - 1];
28579                  }
28580
28581                  int
28582                  fvla (int m, int C[m][m])
28583                  {
28584                    typedef int VLA[m][m];
28585                    VLA x;
28586                    int D[m];
28587                    static int (*q)[m] = &B;
28588                    int (*s)[n] = q;
28589                    return C && &x[0][0] == &D[0] && &D[0] == s[0];
28590                  }
28591                #endif
28592
28593 int
28594 main (void)
28595 {
28596
28597   ;
28598   return 0;
28599 }
28600 _ACEOF
28601 if ac_fn_c_try_compile "$LINENO"
28602 then :
28603   ac_cv_c_vararrays=yes
28604 else $as_nop
28605   ac_cv_c_vararrays=no
28606 fi
28607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28608 fi
28609 rm -rf conftest*
28610
28611 fi
28612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
28613 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
28614   if test "$ac_cv_c_vararrays" = yes; then
28615
28616 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
28617
28618   elif test "$ac_cv_c_vararrays" = no; then
28619
28620 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
28621
28622   fi
28623
28624
28625 # Check whether --with-packager was given.
28626 if test ${with_packager+y}
28627 then :
28628   withval=$with_packager;       case $withval in
28629         yes|no) ;;
28630         *)
28631 printf "%s\n" "#define PACKAGE_PACKAGER \"$withval\"" >>confdefs.h
28632  ;;
28633       esac
28634
28635 fi
28636
28637
28638
28639 # Check whether --with-packager-version was given.
28640 if test ${with_packager_version+y}
28641 then :
28642   withval=$with_packager_version;       case $withval in
28643         yes|no) ;;
28644         *)
28645 printf "%s\n" "#define PACKAGE_PACKAGER_VERSION \"$withval\"" >>confdefs.h
28646  ;;
28647       esac
28648
28649 fi
28650
28651
28652
28653 # Check whether --with-packager-bug-reports was given.
28654 if test ${with_packager_bug_reports+y}
28655 then :
28656   withval=$with_packager_bug_reports;       case $withval in
28657         yes|no) ;;
28658         *)
28659 printf "%s\n" "#define PACKAGE_PACKAGER_BUG_REPORTS \"$withval\"" >>confdefs.h
28660  ;;
28661       esac
28662
28663 fi
28664
28665
28666   if test "X$with_packager" = "X" && \
28667      test "X$with_packager_version$with_packager_bug_reports" != "X"
28668   then
28669     as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
28670   fi
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684   # End of code from modules
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696   gltests_libdeps=
28697   gltests_ltlibdeps=
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710   gl_source_base='src/gl/tests'
28711   gl_source_base_prefix=
28712   sgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
28713
28714   gl_module_indicator_condition=$sgltests_WITNESS
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743         # allow to override gcov location
28744
28745 # Check whether --with-gcov was given.
28746 if test ${with_gcov+y}
28747 then :
28748   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
28749 else $as_nop
28750   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
28751 fi
28752
28753
28754         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
28755 printf %s "checking whether to build with code coverage support... " >&6; }
28756         # Check whether --enable-code-coverage was given.
28757 if test ${enable_code_coverage+y}
28758 then :
28759   enableval=$enable_code_coverage;
28760 else $as_nop
28761   enable_code_coverage=no
28762 fi
28763
28764
28765          if test "x$enable_code_coverage" = xyes; then
28766   CODE_COVERAGE_ENABLED_TRUE=
28767   CODE_COVERAGE_ENABLED_FALSE='#'
28768 else
28769   CODE_COVERAGE_ENABLED_TRUE='#'
28770   CODE_COVERAGE_ENABLED_FALSE=
28771 fi
28772
28773         CODE_COVERAGE_ENABLED=$enable_code_coverage
28774
28775         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
28776 printf "%s\n" "$enable_code_coverage" >&6; }
28777
28778         if  test "x$enable_code_coverage" = xyes
28779 then :
28780
28781
28782           for ac_prog in gawk mawk nawk awk
28783 do
28784   # Extract the first word of "$ac_prog", so it can be a program name with args.
28785 set dummy $ac_prog; ac_word=$2
28786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28787 printf %s "checking for $ac_word... " >&6; }
28788 if test ${ac_cv_prog_AWK+y}
28789 then :
28790   printf %s "(cached) " >&6
28791 else $as_nop
28792   if test -n "$AWK"; then
28793   ac_cv_prog_AWK="$AWK" # Let the user override the test.
28794 else
28795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28796 for as_dir in $PATH
28797 do
28798   IFS=$as_save_IFS
28799   case $as_dir in #(((
28800     '') as_dir=./ ;;
28801     */) ;;
28802     *) as_dir=$as_dir/ ;;
28803   esac
28804     for ac_exec_ext in '' $ac_executable_extensions; do
28805   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28806     ac_cv_prog_AWK="$ac_prog"
28807     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28808     break 2
28809   fi
28810 done
28811   done
28812 IFS=$as_save_IFS
28813
28814 fi
28815 fi
28816 AWK=$ac_cv_prog_AWK
28817 if test -n "$AWK"; then
28818   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28819 printf "%s\n" "$AWK" >&6; }
28820 else
28821   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28822 printf "%s\n" "no" >&6; }
28823 fi
28824
28825
28826   test -n "$AWK" && break
28827 done
28828
28829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
28830 printf %s "checking for GNU make... " >&6; }
28831 if test ${_cv_gnu_make_command+y}
28832 then :
28833   printf %s "(cached) " >&6
28834 else $as_nop
28835       _cv_gnu_make_command="" ;
28836     for a in "$MAKE" make gmake gnumake ; do
28837       if test -z "$a" ; then continue ; fi ;
28838       if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
28839         _cv_gnu_make_command=$a ;
28840         AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
28841         ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
28842         break ;
28843       fi
28844     done ;
28845 fi
28846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
28847 printf "%s\n" "$_cv_gnu_make_command" >&6; }
28848   if test "x$_cv_gnu_make_command" = x""
28849 then :
28850   ifGNUmake="#"
28851 else $as_nop
28852   ifGNUmake=""
28853 fi
28854   if test "x$_cv_gnu_make_command" = x""
28855 then :
28856   ifnGNUmake=""
28857 else $as_nop
28858   ifnGNUmake="#"
28859 fi
28860   if test "x$_cv_gnu_make_command" = x""
28861 then :
28862   { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
28863 else $as_nop
28864   ax_cv_gnu_make_command=${_cv_gnu_make_command}
28865 fi
28866   if test "x$_cv_gnu_make_command" = x""
28867 then :
28868   as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
28869 fi
28870
28871
28872
28873
28874         # check for gcov
28875         if test -n "$ac_tool_prefix"; then
28876   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
28877 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
28878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28879 printf %s "checking for $ac_word... " >&6; }
28880 if test ${ac_cv_prog_GCOV+y}
28881 then :
28882   printf %s "(cached) " >&6
28883 else $as_nop
28884   if test -n "$GCOV"; then
28885   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
28886 else
28887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28888 for as_dir in $PATH
28889 do
28890   IFS=$as_save_IFS
28891   case $as_dir in #(((
28892     '') as_dir=./ ;;
28893     */) ;;
28894     *) as_dir=$as_dir/ ;;
28895   esac
28896     for ac_exec_ext in '' $ac_executable_extensions; do
28897   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28898     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
28899     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28900     break 2
28901   fi
28902 done
28903   done
28904 IFS=$as_save_IFS
28905
28906 fi
28907 fi
28908 GCOV=$ac_cv_prog_GCOV
28909 if test -n "$GCOV"; then
28910   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
28911 printf "%s\n" "$GCOV" >&6; }
28912 else
28913   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28914 printf "%s\n" "no" >&6; }
28915 fi
28916
28917
28918 fi
28919 if test -z "$ac_cv_prog_GCOV"; then
28920   ac_ct_GCOV=$GCOV
28921   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
28922 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
28923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28924 printf %s "checking for $ac_word... " >&6; }
28925 if test ${ac_cv_prog_ac_ct_GCOV+y}
28926 then :
28927   printf %s "(cached) " >&6
28928 else $as_nop
28929   if test -n "$ac_ct_GCOV"; then
28930   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
28931 else
28932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28933 for as_dir in $PATH
28934 do
28935   IFS=$as_save_IFS
28936   case $as_dir in #(((
28937     '') as_dir=./ ;;
28938     */) ;;
28939     *) as_dir=$as_dir/ ;;
28940   esac
28941     for ac_exec_ext in '' $ac_executable_extensions; do
28942   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28943     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
28944     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28945     break 2
28946   fi
28947 done
28948   done
28949 IFS=$as_save_IFS
28950
28951 fi
28952 fi
28953 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
28954 if test -n "$ac_ct_GCOV"; then
28955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
28956 printf "%s\n" "$ac_ct_GCOV" >&6; }
28957 else
28958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28959 printf "%s\n" "no" >&6; }
28960 fi
28961
28962   if test "x$ac_ct_GCOV" = x; then
28963     GCOV=":"
28964   else
28965     case $cross_compiling:$ac_tool_warned in
28966 yes:)
28967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28968 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28969 ac_tool_warned=yes ;;
28970 esac
28971     GCOV=$ac_ct_GCOV
28972   fi
28973 else
28974   GCOV="$ac_cv_prog_GCOV"
28975 fi
28976
28977         if test "X$GCOV" = "X:"
28978 then :
28979   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
28980 fi
28981
28982
28983                 if  test "$GCC" = "no"
28984 then :
28985
28986                 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
28987
28988 fi
28989
28990         # Extract the first word of "lcov", so it can be a program name with args.
28991 set dummy lcov; ac_word=$2
28992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28993 printf %s "checking for $ac_word... " >&6; }
28994 if test ${ac_cv_prog_LCOV+y}
28995 then :
28996   printf %s "(cached) " >&6
28997 else $as_nop
28998   if test -n "$LCOV"; then
28999   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
29000 else
29001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29002 for as_dir in $PATH
29003 do
29004   IFS=$as_save_IFS
29005   case $as_dir in #(((
29006     '') as_dir=./ ;;
29007     */) ;;
29008     *) as_dir=$as_dir/ ;;
29009   esac
29010     for ac_exec_ext in '' $ac_executable_extensions; do
29011   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29012     ac_cv_prog_LCOV="lcov"
29013     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29014     break 2
29015   fi
29016 done
29017   done
29018 IFS=$as_save_IFS
29019
29020 fi
29021 fi
29022 LCOV=$ac_cv_prog_LCOV
29023 if test -n "$LCOV"; then
29024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
29025 printf "%s\n" "$LCOV" >&6; }
29026 else
29027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29028 printf "%s\n" "no" >&6; }
29029 fi
29030
29031
29032         # Extract the first word of "genhtml", so it can be a program name with args.
29033 set dummy genhtml; ac_word=$2
29034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29035 printf %s "checking for $ac_word... " >&6; }
29036 if test ${ac_cv_prog_GENHTML+y}
29037 then :
29038   printf %s "(cached) " >&6
29039 else $as_nop
29040   if test -n "$GENHTML"; then
29041   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
29042 else
29043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29044 for as_dir in $PATH
29045 do
29046   IFS=$as_save_IFS
29047   case $as_dir in #(((
29048     '') as_dir=./ ;;
29049     */) ;;
29050     *) as_dir=$as_dir/ ;;
29051   esac
29052     for ac_exec_ext in '' $ac_executable_extensions; do
29053   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29054     ac_cv_prog_GENHTML="genhtml"
29055     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29056     break 2
29057   fi
29058 done
29059   done
29060 IFS=$as_save_IFS
29061
29062 fi
29063 fi
29064 GENHTML=$ac_cv_prog_GENHTML
29065 if test -n "$GENHTML"; then
29066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
29067 printf "%s\n" "$GENHTML" >&6; }
29068 else
29069   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29070 printf "%s\n" "no" >&6; }
29071 fi
29072
29073
29074
29075         if  test x"$LCOV" = x
29076 then :
29077
29078                 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
29079
29080 fi
29081
29082         if  test x"$GENHTML" = x
29083 then :
29084
29085                 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
29086
29087 fi
29088
29089                         CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
29090         CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
29091         CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
29092         CODE_COVERAGE_LIBS="-lgcov"
29093
29094
29095
29096
29097
29098
29099
29100 fi
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113 # Check whether --enable-gcc-warnings was given.
29114 if test ${enable_gcc_warnings+y}
29115 then :
29116   enableval=$enable_gcc_warnings; case $enableval in
29117      yes|no) ;;
29118      *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
29119    esac
29120    gl_gcc_warnings=$enableval
29121 else $as_nop
29122   gl_gcc_warnings=yes
29123
29124 fi
29125
29126
29127 if test "$gl_gcc_warnings" = yes; then
29128
29129   ac_ext=c
29130 ac_cpp='$CPP $CPPFLAGS'
29131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29134
29135
29136
29137   if test -n "$GCC"; then
29138
29139             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
29140 printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; }
29141 if test ${gl_cv_cc_nomfi_supported+y}
29142 then :
29143   printf %s "(cached) " >&6
29144 else $as_nop
29145   gl_save_CFLAGS="$CFLAGS"
29146        CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers"
29147        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29148 /* end confdefs.h.  */
29149
29150 int
29151 main (void)
29152 {
29153
29154   ;
29155   return 0;
29156 }
29157 _ACEOF
29158 if ac_fn_c_try_compile "$LINENO"
29159 then :
29160   gl_cv_cc_nomfi_supported=yes
29161 else $as_nop
29162   gl_cv_cc_nomfi_supported=no
29163 fi
29164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29165        CFLAGS="$gl_save_CFLAGS"
29166
29167 fi
29168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
29169 printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; }
29170
29171     if test "$gl_cv_cc_nomfi_supported" = yes; then
29172                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
29173 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; }
29174 if test ${gl_cv_cc_nomfi_needed+y}
29175 then :
29176   printf %s "(cached) " >&6
29177 else $as_nop
29178   gl_save_CFLAGS="$CFLAGS"
29179          CFLAGS="$CFLAGS -Wextra -Werror"
29180          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29181 /* end confdefs.h.  */
29182 int f (void)
29183                 {
29184                   typedef struct { int a; int b; } s_t;
29185                   s_t s1 = { 0, };
29186                   return s1.b;
29187                 }
29188
29189 int
29190 main (void)
29191 {
29192
29193   ;
29194   return 0;
29195 }
29196 _ACEOF
29197 if ac_fn_c_try_compile "$LINENO"
29198 then :
29199   gl_cv_cc_nomfi_needed=no
29200 else $as_nop
29201   gl_cv_cc_nomfi_needed=yes
29202 fi
29203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29204          CFLAGS="$gl_save_CFLAGS"
29205
29206 fi
29207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
29208 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; }
29209     fi
29210
29211                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
29212 printf %s "checking whether -Wuninitialized is supported... " >&6; }
29213 if test ${gl_cv_cc_uninitialized_supported+y}
29214 then :
29215   printf %s "(cached) " >&6
29216 else $as_nop
29217   gl_save_CFLAGS="$CFLAGS"
29218        CFLAGS="$CFLAGS -Werror -Wuninitialized"
29219        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29220 /* end confdefs.h.  */
29221
29222 int
29223 main (void)
29224 {
29225
29226   ;
29227   return 0;
29228 }
29229 _ACEOF
29230 if ac_fn_c_try_compile "$LINENO"
29231 then :
29232   gl_cv_cc_uninitialized_supported=yes
29233 else $as_nop
29234   gl_cv_cc_uninitialized_supported=no
29235 fi
29236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29237        CFLAGS="$gl_save_CFLAGS"
29238
29239 fi
29240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
29241 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
29242
29243   fi
29244
29245   # List all gcc warning categories.
29246   # To compare this list to your installed GCC's, run this Bash command:
29247   #
29248   # comm -3 \
29249   #  <((sed -n 's/^  *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \
29250   #     awk '/^[^#]/ {print warnings}' ../build-aux/gcc-warning.spec) | sort) \
29251   #  <(LC_ALL=C gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort)
29252
29253   warnings=
29254   for gl_manywarn_item in -fanalyzer -fno-common \
29255     -Wall \
29256     -Warith-conversion \
29257     -Wbad-function-cast \
29258     -Wcast-align=strict \
29259     -Wdate-time \
29260     -Wdisabled-optimization \
29261     -Wdouble-promotion \
29262     -Wduplicated-branches \
29263     -Wduplicated-cond \
29264     -Wextra \
29265     -Wformat-signedness \
29266     -Winit-self \
29267     -Winline \
29268     -Winvalid-pch \
29269     -Wlogical-op \
29270     -Wmissing-declarations \
29271     -Wmissing-include-dirs \
29272     -Wmissing-prototypes \
29273     -Wnested-externs \
29274     -Wnull-dereference \
29275     -Wold-style-definition \
29276     -Wopenmp-simd \
29277     -Woverlength-strings \
29278     -Wpacked \
29279     -Wpointer-arith \
29280     -Wshadow \
29281     -Wstack-protector \
29282     -Wstrict-overflow \
29283     -Wstrict-prototypes \
29284     -Wsuggest-attribute=cold \
29285     -Wsuggest-attribute=const \
29286     -Wsuggest-attribute=format \
29287     -Wsuggest-attribute=malloc \
29288     -Wsuggest-attribute=noreturn \
29289     -Wsuggest-attribute=pure \
29290     -Wsuggest-final-methods \
29291     -Wsuggest-final-types \
29292     -Wsync-nand \
29293     -Wsystem-headers \
29294     -Wtrampolines \
29295     -Wuninitialized \
29296     -Wunknown-pragmas \
29297     -Wunsafe-loop-optimizations \
29298     -Wunused-macros \
29299     -Wvariadic-macros \
29300     -Wvector-operation-performance \
29301     -Wvla \
29302     -Wwrite-strings \
29303     \
29304     ; do
29305     as_fn_append warnings " $gl_manywarn_item"
29306   done
29307
29308   # gcc --help=warnings outputs an unusual form for these options; list
29309   # them here so that the above 'comm' command doesn't report a false match.
29310   as_fn_append warnings ' -Warray-bounds=2'
29311   as_fn_append warnings ' -Wattribute-alias=2'
29312   as_fn_append warnings ' -Wbidi-chars=any,ucn'
29313   as_fn_append warnings ' -Wformat-overflow=2'
29314   as_fn_append warnings ' -Wformat=2'
29315   as_fn_append warnings ' -Wformat-truncation=2'
29316   as_fn_append warnings ' -Wimplicit-fallthrough=5'
29317   as_fn_append warnings ' -Wshift-overflow=2'
29318   as_fn_append warnings ' -Wuse-after-free=3'
29319   as_fn_append warnings ' -Wunused-const-variable=2'
29320   as_fn_append warnings ' -Wvla-larger-than=4031'
29321
29322   # These are needed for older GCC versions.
29323   if test -n "$GCC"; then
29324     case `($CC --version) 2>/dev/null` in
29325       'gcc (GCC) '[0-3].* | \
29326       'gcc (GCC) '4.[0-7].*)
29327         as_fn_append warnings ' -fdiagnostics-show-option'
29328         as_fn_append warnings ' -funit-at-a-time'
29329           ;;
29330     esac
29331   fi
29332
29333   # Disable specific options as needed.
29334   if test "$gl_cv_cc_nomfi_needed" = yes; then
29335     as_fn_append warnings ' -Wno-missing-field-initializers'
29336   fi
29337
29338   if test "$gl_cv_cc_uninitialized_supported" = no; then
29339     as_fn_append warnings ' -Wno-uninitialized'
29340   fi
29341
29342   # This warning have too many false alarms in GCC 11.2.1.
29343   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713
29344   as_fn_append warnings ' -Wno-analyzer-malloc-leak'
29345
29346   ac_ext=c
29347 ac_cpp='$CPP $CPPFLAGS'
29348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29351
29352
29353   nw=
29354   nw="$nw -Wsystem-headers"       # Don't let system headers trigger warnings
29355   nw="$nw -Wc++-compat"           # We don't care strongly about C++ compilers
29356   nw="$nw -Wundef"                # All compiler preprocessors support #if UNDEF
29357   nw="$nw -Wtraditional"          # All compilers nowadays support ANSI C
29358   nw="$nw -Wconversion"           # These warnings usually don't point to mistakes.
29359   nw="$nw -Wpadded"               # Padding internal structs doesn't help.
29360   nw="$nw -Wunused-macros"        # Lot's of warnings in ASN1.y
29361   nw="$nw -Woverlength-strings"   # Modern compilers handle strings > 4096 gracefully
29362   nw="$nw -Wsuggest-attribute=pure" # Asked for several nodes handling functions
29363
29364
29365   gl_warn_set=
29366   set x $warnings; shift
29367   for gl_warn_item
29368   do
29369     case " $nw " in
29370       *" $gl_warn_item "*)
29371         ;;
29372       *)
29373         as_fn_append gl_warn_set " $gl_warn_item"
29374         ;;
29375     esac
29376   done
29377   warnings=$gl_warn_set
29378
29379   for w in $warnings; do
29380
29381   ac_ext=c
29382 ac_cpp='$CPP $CPPFLAGS'
29383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29386
29387
29388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
29389 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
29390 if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y}
29391 then :
29392   printf %s "(cached) " >&6
29393 else $as_nop
29394
29395   gl_save_compiler_FLAGS="$CFLAGS"
29396   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
29397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29398 /* end confdefs.h.  */
29399
29400 int
29401 main (void)
29402 {
29403
29404   ;
29405   return 0;
29406 }
29407 _ACEOF
29408 if ac_fn_c_try_link "$LINENO"
29409 then :
29410   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
29411 else $as_nop
29412   gl_cv_warn_c__Werror__Wunknown_warning_option=no
29413 fi
29414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29415     conftest$ac_exeext conftest.$ac_ext
29416   CFLAGS="$gl_save_compiler_FLAGS"
29417
29418 fi
29419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
29420 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
29421 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes
29422 then :
29423   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
29424 else $as_nop
29425   gl_unknown_warnings_are_errors=
29426 fi
29427
29428   ac_ext=c
29429 ac_cpp='$CPP $CPPFLAGS'
29430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29433
29434
29435
29436
29437 as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | $as_tr_sh`
29438 gl_positive="$w"
29439 case $gl_positive in
29440   -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
29441 esac
29442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
29443 printf %s "checking whether C compiler handles $w... " >&6; }
29444 if eval test \${$as_gl_Warn+y}
29445 then :
29446   printf %s "(cached) " >&6
29447 else $as_nop
29448
29449   gl_save_compiler_FLAGS="$CFLAGS"
29450   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
29451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29452 /* end confdefs.h.  */
29453
29454 int
29455 main (void)
29456 {
29457
29458   ;
29459   return 0;
29460 }
29461 _ACEOF
29462 if ac_fn_c_try_link "$LINENO"
29463 then :
29464   eval "$as_gl_Warn=yes"
29465 else $as_nop
29466   eval "$as_gl_Warn=no"
29467 fi
29468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29469     conftest$ac_exeext conftest.$ac_ext
29470   CFLAGS="$gl_save_compiler_FLAGS"
29471
29472 fi
29473 eval ac_res=\$$as_gl_Warn
29474                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29475 printf "%s\n" "$ac_res" >&6; }
29476 if eval test \"x\$"$as_gl_Warn"\" = x"yes"
29477 then :
29478   as_fn_append WARN_CFLAGS " $w"
29479 fi
29480
29481
29482   done
29483
29484
29485
29486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
29487 printf %s "checking whether C compiler handles -Wno-type-limits... " >&6; }
29488 if test ${gl_cv_warn_c__Wno_type_limits+y}
29489 then :
29490   printf %s "(cached) " >&6
29491 else $as_nop
29492
29493   gl_save_compiler_FLAGS="$CFLAGS"
29494   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
29495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29496 /* end confdefs.h.  */
29497
29498 int
29499 main (void)
29500 {
29501
29502   ;
29503   return 0;
29504 }
29505 _ACEOF
29506 if ac_fn_c_try_link "$LINENO"
29507 then :
29508   gl_cv_warn_c__Wno_type_limits=yes
29509 else $as_nop
29510   gl_cv_warn_c__Wno_type_limits=no
29511 fi
29512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29513     conftest$ac_exeext conftest.$ac_ext
29514   CFLAGS="$gl_save_compiler_FLAGS"
29515
29516 fi
29517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
29518 printf "%s\n" "$gl_cv_warn_c__Wno_type_limits" >&6; }
29519 if test "x$gl_cv_warn_c__Wno_type_limits" = xyes
29520 then :
29521   as_fn_append WARN_CFLAGS " -Wno-type-limits"
29522 fi
29523
29524  # Too many warnings from gnulib macros
29525
29526
29527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-truncation=1" >&5
29528 printf %s "checking whether C compiler handles -Wformat-truncation=1... " >&6; }
29529 if test ${gl_cv_warn_c__Wformat_truncation_1+y}
29530 then :
29531   printf %s "(cached) " >&6
29532 else $as_nop
29533
29534   gl_save_compiler_FLAGS="$CFLAGS"
29535   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-truncation=1"
29536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29537 /* end confdefs.h.  */
29538
29539 int
29540 main (void)
29541 {
29542
29543   ;
29544   return 0;
29545 }
29546 _ACEOF
29547 if ac_fn_c_try_link "$LINENO"
29548 then :
29549   gl_cv_warn_c__Wformat_truncation_1=yes
29550 else $as_nop
29551   gl_cv_warn_c__Wformat_truncation_1=no
29552 fi
29553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29554     conftest$ac_exeext conftest.$ac_ext
29555   CFLAGS="$gl_save_compiler_FLAGS"
29556
29557 fi
29558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_truncation_1" >&5
29559 printf "%s\n" "$gl_cv_warn_c__Wformat_truncation_1" >&6; }
29560 if test "x$gl_cv_warn_c__Wformat_truncation_1" = xyes
29561 then :
29562   as_fn_append WARN_CFLAGS " -Wformat-truncation=1"
29563 fi
29564
29565
29566
29567
29568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wimplicit-fallthrough=2" >&5
29569 printf %s "checking whether C compiler handles -Wimplicit-fallthrough=2... " >&6; }
29570 if test ${gl_cv_warn_c__Wimplicit_fallthrough_2+y}
29571 then :
29572   printf %s "(cached) " >&6
29573 else $as_nop
29574
29575   gl_save_compiler_FLAGS="$CFLAGS"
29576   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wimplicit-fallthrough=2"
29577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29578 /* end confdefs.h.  */
29579
29580 int
29581 main (void)
29582 {
29583
29584   ;
29585   return 0;
29586 }
29587 _ACEOF
29588 if ac_fn_c_try_link "$LINENO"
29589 then :
29590   gl_cv_warn_c__Wimplicit_fallthrough_2=yes
29591 else $as_nop
29592   gl_cv_warn_c__Wimplicit_fallthrough_2=no
29593 fi
29594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29595     conftest$ac_exeext conftest.$ac_ext
29596   CFLAGS="$gl_save_compiler_FLAGS"
29597
29598 fi
29599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wimplicit_fallthrough_2" >&5
29600 printf "%s\n" "$gl_cv_warn_c__Wimplicit_fallthrough_2" >&6; }
29601 if test "x$gl_cv_warn_c__Wimplicit_fallthrough_2" = xyes
29602 then :
29603   as_fn_append WARN_CFLAGS " -Wimplicit-fallthrough=2"
29604 fi
29605
29606
29607
29608
29609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
29610 printf %s "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
29611 if test ${gl_cv_warn_c__Wno_unused_parameter+y}
29612 then :
29613   printf %s "(cached) " >&6
29614 else $as_nop
29615
29616   gl_save_compiler_FLAGS="$CFLAGS"
29617   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
29618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29619 /* end confdefs.h.  */
29620
29621 int
29622 main (void)
29623 {
29624
29625   ;
29626   return 0;
29627 }
29628 _ACEOF
29629 if ac_fn_c_try_link "$LINENO"
29630 then :
29631   gl_cv_warn_c__Wno_unused_parameter=yes
29632 else $as_nop
29633   gl_cv_warn_c__Wno_unused_parameter=no
29634 fi
29635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29636     conftest$ac_exeext conftest.$ac_ext
29637   CFLAGS="$gl_save_compiler_FLAGS"
29638
29639 fi
29640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
29641 printf "%s\n" "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
29642 if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes
29643 then :
29644   as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
29645 fi
29646
29647
29648
29649
29650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
29651 printf %s "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
29652 if test ${gl_cv_warn_c__fdiagnostics_show_option+y}
29653 then :
29654   printf %s "(cached) " >&6
29655 else $as_nop
29656
29657   gl_save_compiler_FLAGS="$CFLAGS"
29658   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
29659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29660 /* end confdefs.h.  */
29661
29662 int
29663 main (void)
29664 {
29665
29666   ;
29667   return 0;
29668 }
29669 _ACEOF
29670 if ac_fn_c_try_link "$LINENO"
29671 then :
29672   gl_cv_warn_c__fdiagnostics_show_option=yes
29673 else $as_nop
29674   gl_cv_warn_c__fdiagnostics_show_option=no
29675 fi
29676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29677     conftest$ac_exeext conftest.$ac_ext
29678   CFLAGS="$gl_save_compiler_FLAGS"
29679
29680 fi
29681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
29682 printf "%s\n" "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
29683 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes
29684 then :
29685   as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
29686 fi
29687
29688
29689
29690
29691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-color=always" >&5
29692 printf %s "checking whether C compiler handles -fdiagnostics-color=always... " >&6; }
29693 if test ${gl_cv_warn_c__fdiagnostics_color_always+y}
29694 then :
29695   printf %s "(cached) " >&6
29696 else $as_nop
29697
29698   gl_save_compiler_FLAGS="$CFLAGS"
29699   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-color=always"
29700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29701 /* end confdefs.h.  */
29702
29703 int
29704 main (void)
29705 {
29706
29707   ;
29708   return 0;
29709 }
29710 _ACEOF
29711 if ac_fn_c_try_link "$LINENO"
29712 then :
29713   gl_cv_warn_c__fdiagnostics_color_always=yes
29714 else $as_nop
29715   gl_cv_warn_c__fdiagnostics_color_always=no
29716 fi
29717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29718     conftest$ac_exeext conftest.$ac_ext
29719   CFLAGS="$gl_save_compiler_FLAGS"
29720
29721 fi
29722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_color_always" >&5
29723 printf "%s\n" "$gl_cv_warn_c__fdiagnostics_color_always" >&6; }
29724 if test "x$gl_cv_warn_c__fdiagnostics_color_always" = xyes
29725 then :
29726   as_fn_append WARN_CFLAGS " -fdiagnostics-color=always"
29727 fi
29728
29729       # colors even when using ccache
29730 fi
29731
29732 # Check whether --enable-fuzzing was given.
29733 if test ${enable_fuzzing+y}
29734 then :
29735   enableval=$enable_fuzzing; enable_fuzzing=yes;
29736 else $as_nop
29737   enable_fuzzing=no; LIB_FUZZING_ENGINE=""
29738 fi
29739
29740  if test "$enable_fuzzing" = "yes"; then
29741   FUZZING_TRUE=
29742   FUZZING_FALSE='#'
29743 else
29744   FUZZING_TRUE='#'
29745   FUZZING_FALSE=
29746 fi
29747
29748
29749 OLD_LIBS=$LIBS
29750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
29751 printf %s "checking for library containing dlsym... " >&6; }
29752 if test ${ac_cv_search_dlsym+y}
29753 then :
29754   printf %s "(cached) " >&6
29755 else $as_nop
29756   ac_func_search_save_LIBS=$LIBS
29757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29758 /* end confdefs.h.  */
29759
29760 /* Override any GCC internal prototype to avoid an error.
29761    Use char because int might match the return type of a GCC
29762    builtin and then its argument prototype would still apply.  */
29763 char dlsym ();
29764 int
29765 main (void)
29766 {
29767 return dlsym ();
29768   ;
29769   return 0;
29770 }
29771 _ACEOF
29772 for ac_lib in '' dl dld
29773 do
29774   if test -z "$ac_lib"; then
29775     ac_res="none required"
29776   else
29777     ac_res=-l$ac_lib
29778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29779   fi
29780   if ac_fn_c_try_link "$LINENO"
29781 then :
29782   ac_cv_search_dlsym=$ac_res
29783 fi
29784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29785     conftest$ac_exeext
29786   if test ${ac_cv_search_dlsym+y}
29787 then :
29788   break
29789 fi
29790 done
29791 if test ${ac_cv_search_dlsym+y}
29792 then :
29793
29794 else $as_nop
29795   ac_cv_search_dlsym=no
29796 fi
29797 rm conftest.$ac_ext
29798 LIBS=$ac_func_search_save_LIBS
29799 fi
29800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
29801 printf "%s\n" "$ac_cv_search_dlsym" >&6; }
29802 ac_res=$ac_cv_search_dlsym
29803 if test "$ac_res" != no
29804 then :
29805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29806
29807 fi
29808
29809 FUZZ_LIBS=$LIBS
29810 LIBS=$OLD_LIBS
29811
29812
29813 ac_config_files="$ac_config_files Makefile doc/Makefile doc/reference/Makefile examples/Makefile fuzz/Makefile lib/Makefile lib/gl/Makefile lib/includes/libtasn1.h lib/libtasn1.pc src/Makefile src/gl/Makefile tests/Makefile"
29814
29815 cat >confcache <<\_ACEOF
29816 # This file is a shell script that caches the results of configure
29817 # tests run on this system so they can be shared between configure
29818 # scripts and configure runs, see configure's option --config-cache.
29819 # It is not useful on other systems.  If it contains results you don't
29820 # want to keep, you may remove or edit it.
29821 #
29822 # config.status only pays attention to the cache file if you give it
29823 # the --recheck option to rerun configure.
29824 #
29825 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29826 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29827 # following values.
29828
29829 _ACEOF
29830
29831 # The following way of writing the cache mishandles newlines in values,
29832 # but we know of no workaround that is simple, portable, and efficient.
29833 # So, we kill variables containing newlines.
29834 # Ultrix sh set writes to stderr and can't be redirected directly,
29835 # and sets the high bit in the cache file unless we assign to the vars.
29836 (
29837   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29838     eval ac_val=\$$ac_var
29839     case $ac_val in #(
29840     *${as_nl}*)
29841       case $ac_var in #(
29842       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29843 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29844       esac
29845       case $ac_var in #(
29846       _ | IFS | as_nl) ;; #(
29847       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29848       *) { eval $ac_var=; unset $ac_var;} ;;
29849       esac ;;
29850     esac
29851   done
29852
29853   (set) 2>&1 |
29854     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29855     *${as_nl}ac_space=\ *)
29856       # `set' does not quote correctly, so add quotes: double-quote
29857       # substitution turns \\\\ into \\, and sed turns \\ into \.
29858       sed -n \
29859         "s/'/'\\\\''/g;
29860           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29861       ;; #(
29862     *)
29863       # `set' quotes correctly as required by POSIX, so do not add quotes.
29864       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29865       ;;
29866     esac |
29867     sort
29868 ) |
29869   sed '
29870      /^ac_cv_env_/b end
29871      t clear
29872      :clear
29873      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
29874      t end
29875      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29876      :end' >>confcache
29877 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29878   if test -w "$cache_file"; then
29879     if test "x$cache_file" != "x/dev/null"; then
29880       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29881 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
29882       if test ! -f "$cache_file" || test -h "$cache_file"; then
29883         cat confcache >"$cache_file"
29884       else
29885         case $cache_file in #(
29886         */* | ?:*)
29887           mv -f confcache "$cache_file"$$ &&
29888           mv -f "$cache_file"$$ "$cache_file" ;; #(
29889         *)
29890           mv -f confcache "$cache_file" ;;
29891         esac
29892       fi
29893     fi
29894   else
29895     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29896 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
29897   fi
29898 fi
29899 rm -f confcache
29900
29901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29902 # Let make expand exec_prefix.
29903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29904
29905 DEFS=-DHAVE_CONFIG_H
29906
29907 ac_libobjs=
29908 ac_ltlibobjs=
29909 U=
29910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29911   # 1. Remove the extension, and $U if already installed.
29912   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29913   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
29914   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29915   #    will be set to the directory where LIBOBJS objects are built.
29916   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29917   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29918 done
29919 LIBOBJS=$ac_libobjs
29920
29921 LTLIBOBJS=$ac_ltlibobjs
29922
29923
29924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
29925 printf %s "checking that generated files are newer than configure... " >&6; }
29926    if test -n "$am_sleep_pid"; then
29927      # Hide warnings about reused PIDs.
29928      wait $am_sleep_pid 2>/dev/null
29929    fi
29930    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
29931 printf "%s\n" "done" >&6; }
29932  if test -n "$EXEEXT"; then
29933   am__EXEEXT_TRUE=
29934   am__EXEEXT_FALSE='#'
29935 else
29936   am__EXEEXT_TRUE='#'
29937   am__EXEEXT_FALSE=
29938 fi
29939
29940 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29941   as_fn_error $? "conditional \"AMDEP\" was never defined.
29942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29943 fi
29944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29945   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
29946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29947 fi
29948 if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
29949   as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
29950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29951 fi
29952 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
29953   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
29954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29955 fi
29956 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
29957   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
29958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29959 fi
29960 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
29961   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
29962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29963 fi
29964 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
29965   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
29966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29967 fi
29968 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
29969   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
29970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29971 fi
29972 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
29973   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
29974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29975 fi
29976 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29977   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
29978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29979 fi
29980 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
29981   as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
29982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29983 fi
29984 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
29985   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
29986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29987 fi
29988 CONFIG_INCLUDE=config.h
29989
29990
29991     gl_libobjs=
29992     gl_ltlibobjs=
29993     gl_libobjdeps=
29994     if test -n "$gl_LIBOBJS"; then
29995       # Remove the extension.
29996       sed_drop_objext='s/\.o$//;s/\.obj$//'
29997       sed_dirname1='s,//*,/,g'
29998       sed_dirname2='s,\(.\)/$,\1,'
29999       sed_dirname3='s,^[^/]*$,.,'
30000       sed_dirname4='s,\(.\)/[^/]*$,\1,'
30001       sed_basename1='s,.*/,,'
30002       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30003         gl_libobjs="$gl_libobjs $i.$ac_objext"
30004         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
30005         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
30006         i_base=`echo "$i" | sed -e "$sed_basename1"`
30007         gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
30008       done
30009     fi
30010     gl_LIBOBJS=$gl_libobjs
30011
30012     gl_LTLIBOBJS=$gl_ltlibobjs
30013
30014     gl_LIBOBJDEPS=$gl_libobjdeps
30015
30016
30017
30018     gltests_libobjs=
30019     gltests_ltlibobjs=
30020     gltests_libobjdeps=
30021     if test -n "$gltests_LIBOBJS"; then
30022       # Remove the extension.
30023       sed_drop_objext='s/\.o$//;s/\.obj$//'
30024       sed_dirname1='s,//*,/,g'
30025       sed_dirname2='s,\(.\)/$,\1,'
30026       sed_dirname3='s,^[^/]*$,.,'
30027       sed_dirname4='s,\(.\)/[^/]*$,\1,'
30028       sed_basename1='s,.*/,,'
30029       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30030         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
30031         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
30032         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
30033         i_base=`echo "$i" | sed -e "$sed_basename1"`
30034         gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
30035       done
30036     fi
30037     gltests_LIBOBJS=$gltests_libobjs
30038
30039     gltests_LTLIBOBJS=$gltests_ltlibobjs
30040
30041     gltests_LIBOBJDEPS=$gltests_libobjdeps
30042
30043
30044 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
30045   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
30046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30047 fi
30048
30049     sgl_libobjs=
30050     sgl_ltlibobjs=
30051     sgl_libobjdeps=
30052     if test -n "$sgl_LIBOBJS"; then
30053       # Remove the extension.
30054       sed_drop_objext='s/\.o$//;s/\.obj$//'
30055       sed_dirname1='s,//*,/,g'
30056       sed_dirname2='s,\(.\)/$,\1,'
30057       sed_dirname3='s,^[^/]*$,.,'
30058       sed_dirname4='s,\(.\)/[^/]*$,\1,'
30059       sed_basename1='s,.*/,,'
30060       for i in `for i in $sgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30061         sgl_libobjs="$sgl_libobjs $i.$ac_objext"
30062         sgl_ltlibobjs="$sgl_ltlibobjs $i.lo"
30063         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
30064         i_base=`echo "$i" | sed -e "$sed_basename1"`
30065         sgl_libobjdeps="$sgl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
30066       done
30067     fi
30068     sgl_LIBOBJS=$sgl_libobjs
30069
30070     sgl_LTLIBOBJS=$sgl_ltlibobjs
30071
30072     sgl_LIBOBJDEPS=$sgl_libobjdeps
30073
30074
30075
30076     sgltests_libobjs=
30077     sgltests_ltlibobjs=
30078     sgltests_libobjdeps=
30079     if test -n "$sgltests_LIBOBJS"; then
30080       # Remove the extension.
30081       sed_drop_objext='s/\.o$//;s/\.obj$//'
30082       sed_dirname1='s,//*,/,g'
30083       sed_dirname2='s,\(.\)/$,\1,'
30084       sed_dirname3='s,^[^/]*$,.,'
30085       sed_dirname4='s,\(.\)/[^/]*$,\1,'
30086       sed_basename1='s,.*/,,'
30087       for i in `for i in $sgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30088         sgltests_libobjs="$sgltests_libobjs $i.$ac_objext"
30089         sgltests_ltlibobjs="$sgltests_ltlibobjs $i.lo"
30090         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
30091         i_base=`echo "$i" | sed -e "$sed_basename1"`
30092         sgltests_libobjdeps="$sgltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo"
30093       done
30094     fi
30095     sgltests_LIBOBJS=$sgltests_libobjs
30096
30097     sgltests_LTLIBOBJS=$sgltests_ltlibobjs
30098
30099     sgltests_LIBOBJDEPS=$sgltests_libobjdeps
30100
30101
30102 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
30103   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
30104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30105 fi
30106 if test -z "${FUZZING_TRUE}" && test -z "${FUZZING_FALSE}"; then
30107   as_fn_error $? "conditional \"FUZZING\" was never defined.
30108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30109 fi
30110
30111 : "${CONFIG_STATUS=./config.status}"
30112 ac_write_fail=0
30113 ac_clean_files_save=$ac_clean_files
30114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30116 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
30117 as_write_fail=0
30118 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30119 #! $SHELL
30120 # Generated by $as_me.
30121 # Run this file to recreate the current configuration.
30122 # Compiler output produced by configure, useful for debugging
30123 # configure, is in config.log if it exists.
30124
30125 debug=false
30126 ac_cs_recheck=false
30127 ac_cs_silent=false
30128
30129 SHELL=\${CONFIG_SHELL-$SHELL}
30130 export SHELL
30131 _ASEOF
30132 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30133 ## -------------------- ##
30134 ## M4sh Initialization. ##
30135 ## -------------------- ##
30136
30137 # Be more Bourne compatible
30138 DUALCASE=1; export DUALCASE # for MKS sh
30139 as_nop=:
30140 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
30141 then :
30142   emulate sh
30143   NULLCMD=:
30144   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30145   # is contrary to our usage.  Disable this feature.
30146   alias -g '${1+"$@"}'='"$@"'
30147   setopt NO_GLOB_SUBST
30148 else $as_nop
30149   case `(set -o) 2>/dev/null` in #(
30150   *posix*) :
30151     set -o posix ;; #(
30152   *) :
30153      ;;
30154 esac
30155 fi
30156
30157
30158
30159 # Reset variables that may have inherited troublesome values from
30160 # the environment.
30161
30162 # IFS needs to be set, to space, tab, and newline, in precisely that order.
30163 # (If _AS_PATH_WALK were called with IFS unset, it would have the
30164 # side effect of setting IFS to empty, thus disabling word splitting.)
30165 # Quoting is to prevent editors from complaining about space-tab.
30166 as_nl='
30167 '
30168 export as_nl
30169 IFS=" ""        $as_nl"
30170
30171 PS1='$ '
30172 PS2='> '
30173 PS4='+ '
30174
30175 # Ensure predictable behavior from utilities with locale-dependent output.
30176 LC_ALL=C
30177 export LC_ALL
30178 LANGUAGE=C
30179 export LANGUAGE
30180
30181 # We cannot yet rely on "unset" to work, but we need these variables
30182 # to be unset--not just set to an empty or harmless value--now, to
30183 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
30184 # also avoids known problems related to "unset" and subshell syntax
30185 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
30186 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
30187 do eval test \${$as_var+y} \
30188   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30189 done
30190
30191 # Ensure that fds 0, 1, and 2 are open.
30192 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
30193 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
30194 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
30195
30196 # The user is always right.
30197 if ${PATH_SEPARATOR+false} :; then
30198   PATH_SEPARATOR=:
30199   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30200     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30201       PATH_SEPARATOR=';'
30202   }
30203 fi
30204
30205
30206 # Find who we are.  Look in the path if we contain no directory separator.
30207 as_myself=
30208 case $0 in #((
30209   *[\\/]* ) as_myself=$0 ;;
30210   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211 for as_dir in $PATH
30212 do
30213   IFS=$as_save_IFS
30214   case $as_dir in #(((
30215     '') as_dir=./ ;;
30216     */) ;;
30217     *) as_dir=$as_dir/ ;;
30218   esac
30219     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
30220   done
30221 IFS=$as_save_IFS
30222
30223      ;;
30224 esac
30225 # We did not find ourselves, most probably we were run as `sh COMMAND'
30226 # in which case we are not to be found in the path.
30227 if test "x$as_myself" = x; then
30228   as_myself=$0
30229 fi
30230 if test ! -f "$as_myself"; then
30231   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30232   exit 1
30233 fi
30234
30235
30236
30237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30238 # ----------------------------------------
30239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30241 # script with STATUS, using 1 if that was 0.
30242 as_fn_error ()
30243 {
30244   as_status=$1; test $as_status -eq 0 && as_status=1
30245   if test "$4"; then
30246     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30247     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30248   fi
30249   printf "%s\n" "$as_me: error: $2" >&2
30250   as_fn_exit $as_status
30251 } # as_fn_error
30252
30253
30254
30255 # as_fn_set_status STATUS
30256 # -----------------------
30257 # Set $? to STATUS, without forking.
30258 as_fn_set_status ()
30259 {
30260   return $1
30261 } # as_fn_set_status
30262
30263 # as_fn_exit STATUS
30264 # -----------------
30265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30266 as_fn_exit ()
30267 {
30268   set +e
30269   as_fn_set_status $1
30270   exit $1
30271 } # as_fn_exit
30272
30273 # as_fn_unset VAR
30274 # ---------------
30275 # Portably unset VAR.
30276 as_fn_unset ()
30277 {
30278   { eval $1=; unset $1;}
30279 }
30280 as_unset=as_fn_unset
30281
30282 # as_fn_append VAR VALUE
30283 # ----------------------
30284 # Append the text in VALUE to the end of the definition contained in VAR. Take
30285 # advantage of any shell optimizations that allow amortized linear growth over
30286 # repeated appends, instead of the typical quadratic growth present in naive
30287 # implementations.
30288 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
30289 then :
30290   eval 'as_fn_append ()
30291   {
30292     eval $1+=\$2
30293   }'
30294 else $as_nop
30295   as_fn_append ()
30296   {
30297     eval $1=\$$1\$2
30298   }
30299 fi # as_fn_append
30300
30301 # as_fn_arith ARG...
30302 # ------------------
30303 # Perform arithmetic evaluation on the ARGs, and store the result in the
30304 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30305 # must be portable across $(()) and expr.
30306 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
30307 then :
30308   eval 'as_fn_arith ()
30309   {
30310     as_val=$(( $* ))
30311   }'
30312 else $as_nop
30313   as_fn_arith ()
30314   {
30315     as_val=`expr "$@" || test $? -eq 1`
30316   }
30317 fi # as_fn_arith
30318
30319
30320 if expr a : '\(a\)' >/dev/null 2>&1 &&
30321    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30322   as_expr=expr
30323 else
30324   as_expr=false
30325 fi
30326
30327 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30328   as_basename=basename
30329 else
30330   as_basename=false
30331 fi
30332
30333 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30334   as_dirname=dirname
30335 else
30336   as_dirname=false
30337 fi
30338
30339 as_me=`$as_basename -- "$0" ||
30340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30341          X"$0" : 'X\(//\)$' \| \
30342          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30343 printf "%s\n" X/"$0" |
30344     sed '/^.*\/\([^/][^/]*\)\/*$/{
30345             s//\1/
30346             q
30347           }
30348           /^X\/\(\/\/\)$/{
30349             s//\1/
30350             q
30351           }
30352           /^X\/\(\/\).*/{
30353             s//\1/
30354             q
30355           }
30356           s/.*/./; q'`
30357
30358 # Avoid depending upon Character Ranges.
30359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30362 as_cr_digits='0123456789'
30363 as_cr_alnum=$as_cr_Letters$as_cr_digits
30364
30365
30366 # Determine whether it's possible to make 'echo' print without a newline.
30367 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
30368 # for compatibility with existing Makefiles.
30369 ECHO_C= ECHO_N= ECHO_T=
30370 case `echo -n x` in #(((((
30371 -n*)
30372   case `echo 'xy\c'` in
30373   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30374   xy)  ECHO_C='\c';;
30375   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30376        ECHO_T=' ';;
30377   esac;;
30378 *)
30379   ECHO_N='-n';;
30380 esac
30381
30382 # For backward compatibility with old third-party macros, we provide
30383 # the shell variables $as_echo and $as_echo_n.  New code should use
30384 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
30385 as_echo='printf %s\n'
30386 as_echo_n='printf %s'
30387
30388 rm -f conf$$ conf$$.exe conf$$.file
30389 if test -d conf$$.dir; then
30390   rm -f conf$$.dir/conf$$.file
30391 else
30392   rm -f conf$$.dir
30393   mkdir conf$$.dir 2>/dev/null
30394 fi
30395 if (echo >conf$$.file) 2>/dev/null; then
30396   if ln -s conf$$.file conf$$ 2>/dev/null; then
30397     as_ln_s='ln -s'
30398     # ... but there are two gotchas:
30399     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30400     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30401     # In both cases, we have to default to `cp -pR'.
30402     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30403       as_ln_s='cp -pR'
30404   elif ln conf$$.file conf$$ 2>/dev/null; then
30405     as_ln_s=ln
30406   else
30407     as_ln_s='cp -pR'
30408   fi
30409 else
30410   as_ln_s='cp -pR'
30411 fi
30412 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30413 rmdir conf$$.dir 2>/dev/null
30414
30415
30416 # as_fn_mkdir_p
30417 # -------------
30418 # Create "$as_dir" as a directory, including parents if necessary.
30419 as_fn_mkdir_p ()
30420 {
30421
30422   case $as_dir in #(
30423   -*) as_dir=./$as_dir;;
30424   esac
30425   test -d "$as_dir" || eval $as_mkdir_p || {
30426     as_dirs=
30427     while :; do
30428       case $as_dir in #(
30429       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30430       *) as_qdir=$as_dir;;
30431       esac
30432       as_dirs="'$as_qdir' $as_dirs"
30433       as_dir=`$as_dirname -- "$as_dir" ||
30434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30435          X"$as_dir" : 'X\(//\)[^/]' \| \
30436          X"$as_dir" : 'X\(//\)$' \| \
30437          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30438 printf "%s\n" X"$as_dir" |
30439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30440             s//\1/
30441             q
30442           }
30443           /^X\(\/\/\)[^/].*/{
30444             s//\1/
30445             q
30446           }
30447           /^X\(\/\/\)$/{
30448             s//\1/
30449             q
30450           }
30451           /^X\(\/\).*/{
30452             s//\1/
30453             q
30454           }
30455           s/.*/./; q'`
30456       test -d "$as_dir" && break
30457     done
30458     test -z "$as_dirs" || eval "mkdir $as_dirs"
30459   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30460
30461
30462 } # as_fn_mkdir_p
30463 if mkdir -p . 2>/dev/null; then
30464   as_mkdir_p='mkdir -p "$as_dir"'
30465 else
30466   test -d ./-p && rmdir ./-p
30467   as_mkdir_p=false
30468 fi
30469
30470
30471 # as_fn_executable_p FILE
30472 # -----------------------
30473 # Test if FILE is an executable regular file.
30474 as_fn_executable_p ()
30475 {
30476   test -f "$1" && test -x "$1"
30477 } # as_fn_executable_p
30478 as_test_x='test -x'
30479 as_executable_p=as_fn_executable_p
30480
30481 # Sed expression to map a string onto a valid CPP name.
30482 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30483
30484 # Sed expression to map a string onto a valid variable name.
30485 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30486
30487
30488 exec 6>&1
30489 ## ----------------------------------- ##
30490 ## Main body of $CONFIG_STATUS script. ##
30491 ## ----------------------------------- ##
30492 _ASEOF
30493 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30494
30495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30496 # Save the log message, to keep $0 and so on meaningful, and to
30497 # report actual input values of CONFIG_FILES etc. instead of their
30498 # values after options handling.
30499 ac_log="
30500 This file was extended by GNU Libtasn1 $as_me 4.19.0, which was
30501 generated by GNU Autoconf 2.71.  Invocation command line was
30502
30503   CONFIG_FILES    = $CONFIG_FILES
30504   CONFIG_HEADERS  = $CONFIG_HEADERS
30505   CONFIG_LINKS    = $CONFIG_LINKS
30506   CONFIG_COMMANDS = $CONFIG_COMMANDS
30507   $ $0 $@
30508
30509 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30510 "
30511
30512 _ACEOF
30513
30514 case $ac_config_files in *"
30515 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30516 esac
30517
30518 case $ac_config_headers in *"
30519 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30520 esac
30521
30522
30523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30524 # Files that config.status was made for.
30525 config_files="$ac_config_files"
30526 config_headers="$ac_config_headers"
30527 config_links="$ac_config_links"
30528 config_commands="$ac_config_commands"
30529
30530 _ACEOF
30531
30532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30533 ac_cs_usage="\
30534 \`$as_me' instantiates files and other configuration actions
30535 from templates according to the current configuration.  Unless the files
30536 and actions are specified as TAGs, all are instantiated by default.
30537
30538 Usage: $0 [OPTION]... [TAG]...
30539
30540   -h, --help       print this help, then exit
30541   -V, --version    print version number and configuration settings, then exit
30542       --config     print configuration, then exit
30543   -q, --quiet, --silent
30544                    do not print progress messages
30545   -d, --debug      don't remove temporary files
30546       --recheck    update $as_me by reconfiguring in the same conditions
30547       --file=FILE[:TEMPLATE]
30548                    instantiate the configuration file FILE
30549       --header=FILE[:TEMPLATE]
30550                    instantiate the configuration header FILE
30551
30552 Configuration files:
30553 $config_files
30554
30555 Configuration headers:
30556 $config_headers
30557
30558 Configuration links:
30559 $config_links
30560
30561 Configuration commands:
30562 $config_commands
30563
30564 Report bugs to <help-libtasn1@gnu.org>.
30565 GNU Libtasn1 home page: <https://www.gnu.org/software/libtasn1/>.
30566 General help using GNU software: <https://www.gnu.org/gethelp/>."
30567
30568 _ACEOF
30569 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
30570 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
30571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30572 ac_cs_config='$ac_cs_config_escaped'
30573 ac_cs_version="\\
30574 GNU Libtasn1 config.status 4.19.0
30575 configured by $0, generated by GNU Autoconf 2.71,
30576   with options \\"\$ac_cs_config\\"
30577
30578 Copyright (C) 2021 Free Software Foundation, Inc.
30579 This config.status script is free software; the Free Software Foundation
30580 gives unlimited permission to copy, distribute and modify it."
30581
30582 ac_pwd='$ac_pwd'
30583 srcdir='$srcdir'
30584 INSTALL='$INSTALL'
30585 MKDIR_P='$MKDIR_P'
30586 AWK='$AWK'
30587 test -n "\$AWK" || AWK=awk
30588 _ACEOF
30589
30590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30591 # The default lists apply if the user does not specify any file.
30592 ac_need_defaults=:
30593 while test $# != 0
30594 do
30595   case $1 in
30596   --*=?*)
30597     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30598     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30599     ac_shift=:
30600     ;;
30601   --*=)
30602     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30603     ac_optarg=
30604     ac_shift=:
30605     ;;
30606   *)
30607     ac_option=$1
30608     ac_optarg=$2
30609     ac_shift=shift
30610     ;;
30611   esac
30612
30613   case $ac_option in
30614   # Handling of the options.
30615   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30616     ac_cs_recheck=: ;;
30617   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30618     printf "%s\n" "$ac_cs_version"; exit ;;
30619   --config | --confi | --conf | --con | --co | --c )
30620     printf "%s\n" "$ac_cs_config"; exit ;;
30621   --debug | --debu | --deb | --de | --d | -d )
30622     debug=: ;;
30623   --file | --fil | --fi | --f )
30624     $ac_shift
30625     case $ac_optarg in
30626     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30627     '') as_fn_error $? "missing file argument" ;;
30628     esac
30629     as_fn_append CONFIG_FILES " '$ac_optarg'"
30630     ac_need_defaults=false;;
30631   --header | --heade | --head | --hea )
30632     $ac_shift
30633     case $ac_optarg in
30634     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30635     esac
30636     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30637     ac_need_defaults=false;;
30638   --he | --h)
30639     # Conflict between --help and --header
30640     as_fn_error $? "ambiguous option: \`$1'
30641 Try \`$0 --help' for more information.";;
30642   --help | --hel | -h )
30643     printf "%s\n" "$ac_cs_usage"; exit ;;
30644   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30645   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30646     ac_cs_silent=: ;;
30647
30648   # This is an error.
30649   -*) as_fn_error $? "unrecognized option: \`$1'
30650 Try \`$0 --help' for more information." ;;
30651
30652   *) as_fn_append ac_config_targets " $1"
30653      ac_need_defaults=false ;;
30654
30655   esac
30656   shift
30657 done
30658
30659 ac_configure_extra_args=
30660
30661 if $ac_cs_silent; then
30662   exec 6>/dev/null
30663   ac_configure_extra_args="$ac_configure_extra_args --silent"
30664 fi
30665
30666 _ACEOF
30667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30668 if \$ac_cs_recheck; then
30669   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30670   shift
30671   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
30672   CONFIG_SHELL='$SHELL'
30673   export CONFIG_SHELL
30674   exec "\$@"
30675 fi
30676
30677 _ACEOF
30678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30679 exec 5>>config.log
30680 {
30681   echo
30682   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30683 ## Running $as_me. ##
30684 _ASBOX
30685   printf "%s\n" "$ac_log"
30686 } >&5
30687
30688 _ACEOF
30689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30690 #
30691 # INIT-COMMANDS
30692 #
30693 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
30694
30695
30696 # The HP-UX ksh and POSIX shell print the target directory to stdout
30697 # if CDPATH is set.
30698 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30699
30700 sed_quote_subst='$sed_quote_subst'
30701 double_quote_subst='$double_quote_subst'
30702 delay_variable_subst='$delay_variable_subst'
30703 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
30704 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
30705 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
30706 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
30707 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
30708 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
30709 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
30710 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
30711 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
30712 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
30713 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
30714 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
30715 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
30716 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
30717 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
30718 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
30719 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
30720 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
30721 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
30722 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
30723 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
30724 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
30725 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
30726 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
30727 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
30728 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
30729 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
30730 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
30731 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
30732 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
30733 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
30734 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
30735 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
30736 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
30737 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
30738 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
30739 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
30740 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
30741 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
30742 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
30743 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
30744 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
30745 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
30746 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
30747 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
30748 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
30749 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
30750 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30751 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30752 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
30753 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
30754 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
30755 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
30756 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
30757 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
30758 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
30759 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
30760 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
30761 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
30762 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"`'
30763 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
30764 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
30765 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
30766 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
30767 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
30768 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
30769 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
30770 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
30771 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
30772 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
30773 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
30774 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
30775 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
30776 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
30777 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
30778 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
30779 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
30780 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
30781 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
30782 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
30783 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30784 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
30785 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
30786 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
30787 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
30788 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
30789 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
30790 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
30791 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
30792 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30793 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
30794 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
30795 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
30796 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
30797 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
30798 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
30799 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
30800 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
30801 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
30802 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
30803 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
30804 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
30805 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
30806 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
30807 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
30808 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
30809 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
30810 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
30811 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
30812 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
30813 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
30814 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
30815 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
30816 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
30817 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
30818 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
30819 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
30820 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
30821 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
30822 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
30823 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
30824 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
30825 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
30826 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
30827 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
30828 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
30829 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
30830 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
30831 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
30832 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
30833 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
30834 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
30835 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
30836 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
30837 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
30838 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
30839
30840 LTCC='$LTCC'
30841 LTCFLAGS='$LTCFLAGS'
30842 compiler='$compiler_DEFAULT'
30843
30844 # A function that is used when there is no print builtin or printf.
30845 func_fallback_echo ()
30846 {
30847   eval 'cat <<_LTECHO_EOF
30848 \$1
30849 _LTECHO_EOF'
30850 }
30851
30852 # Quote evaled strings.
30853 for var in AS \
30854 DLLTOOL \
30855 OBJDUMP \
30856 SHELL \
30857 ECHO \
30858 PATH_SEPARATOR \
30859 SED \
30860 GREP \
30861 EGREP \
30862 FGREP \
30863 LD \
30864 NM \
30865 LN_S \
30866 lt_SP2NL \
30867 lt_NL2SP \
30868 reload_flag \
30869 deplibs_check_method \
30870 file_magic_cmd \
30871 file_magic_glob \
30872 want_nocaseglob \
30873 sharedlib_from_linklib_cmd \
30874 AR \
30875 AR_FLAGS \
30876 archiver_list_spec \
30877 STRIP \
30878 RANLIB \
30879 CC \
30880 CFLAGS \
30881 compiler \
30882 lt_cv_sys_global_symbol_pipe \
30883 lt_cv_sys_global_symbol_to_cdecl \
30884 lt_cv_sys_global_symbol_to_import \
30885 lt_cv_sys_global_symbol_to_c_name_address \
30886 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30887 lt_cv_nm_interface \
30888 nm_file_list_spec \
30889 lt_cv_truncate_bin \
30890 lt_prog_compiler_no_builtin_flag \
30891 lt_prog_compiler_pic \
30892 lt_prog_compiler_wl \
30893 lt_prog_compiler_static \
30894 lt_cv_prog_compiler_c_o \
30895 need_locks \
30896 MANIFEST_TOOL \
30897 DSYMUTIL \
30898 NMEDIT \
30899 LIPO \
30900 OTOOL \
30901 OTOOL64 \
30902 shrext_cmds \
30903 export_dynamic_flag_spec \
30904 whole_archive_flag_spec \
30905 compiler_needs_object \
30906 with_gnu_ld \
30907 allow_undefined_flag \
30908 no_undefined_flag \
30909 hardcode_libdir_flag_spec \
30910 hardcode_libdir_separator \
30911 exclude_expsyms \
30912 include_expsyms \
30913 file_list_spec \
30914 variables_saved_for_relink \
30915 libname_spec \
30916 library_names_spec \
30917 soname_spec \
30918 install_override_mode \
30919 finish_eval \
30920 old_striplib \
30921 striplib; do
30922     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30923     *[\\\\\\\`\\"\\\$]*)
30924       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
30925       ;;
30926     *)
30927       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30928       ;;
30929     esac
30930 done
30931
30932 # Double-quote double-evaled strings.
30933 for var in reload_cmds \
30934 old_postinstall_cmds \
30935 old_postuninstall_cmds \
30936 old_archive_cmds \
30937 extract_expsyms_cmds \
30938 old_archive_from_new_cmds \
30939 old_archive_from_expsyms_cmds \
30940 archive_cmds \
30941 archive_expsym_cmds \
30942 module_cmds \
30943 module_expsym_cmds \
30944 export_symbols_cmds \
30945 prelink_cmds \
30946 postlink_cmds \
30947 postinstall_cmds \
30948 postuninstall_cmds \
30949 finish_cmds \
30950 sys_lib_search_path_spec \
30951 configure_time_dlsearch_path \
30952 configure_time_lt_sys_library_path; do
30953     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30954     *[\\\\\\\`\\"\\\$]*)
30955       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
30956       ;;
30957     *)
30958       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30959       ;;
30960     esac
30961 done
30962
30963 ac_aux_dir='$ac_aux_dir'
30964
30965 # See if we are running on zsh, and set the options that allow our
30966 # commands through without removal of \ escapes INIT.
30967 if test -n "\${ZSH_VERSION+set}"; then
30968    setopt NO_GLOB_SUBST
30969 fi
30970
30971
30972     PACKAGE='$PACKAGE'
30973     VERSION='$VERSION'
30974     RM='$RM'
30975     ofile='$ofile'
30976
30977
30978
30979 GNUmakefile=$GNUmakefile
30980
30981 _ACEOF
30982
30983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30984
30985 # Handling of arguments.
30986 for ac_config_target in $ac_config_targets
30987 do
30988   case $ac_config_target in
30989     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30990     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30991     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30992     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
30993     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30994     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30995     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
30996     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
30997     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
30998     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30999     "lib/gl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gl/Makefile" ;;
31000     "lib/includes/libtasn1.h") CONFIG_FILES="$CONFIG_FILES lib/includes/libtasn1.h" ;;
31001     "lib/libtasn1.pc") CONFIG_FILES="$CONFIG_FILES lib/libtasn1.pc" ;;
31002     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31003     "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;;
31004     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31005
31006   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31007   esac
31008 done
31009
31010
31011 # If the user did not use the arguments to specify the items to instantiate,
31012 # then the envvar interface is used.  Set only those that are not.
31013 # We use the long form for the default assignment because of an extremely
31014 # bizarre bug on SunOS 4.1.3.
31015 if $ac_need_defaults; then
31016   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
31017   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
31018   test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
31019   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
31020 fi
31021
31022 # Have a temporary directory for convenience.  Make it in the build tree
31023 # simply because there is no reason against having it here, and in addition,
31024 # creating and moving files from /tmp can sometimes cause problems.
31025 # Hook for its removal unless debugging.
31026 # Note that there is a small window in which the directory will not be cleaned:
31027 # after its creation but before its name has been assigned to `$tmp'.
31028 $debug ||
31029 {
31030   tmp= ac_tmp=
31031   trap 'exit_status=$?
31032   : "${ac_tmp:=$tmp}"
31033   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31034 ' 0
31035   trap 'as_fn_exit 1' 1 2 13 15
31036 }
31037 # Create a (secure) tmp directory for tmp files.
31038
31039 {
31040   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31041   test -d "$tmp"
31042 }  ||
31043 {
31044   tmp=./conf$$-$RANDOM
31045   (umask 077 && mkdir "$tmp")
31046 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31047 ac_tmp=$tmp
31048
31049 # Set up the scripts for CONFIG_FILES section.
31050 # No need to generate them if there are no CONFIG_FILES.
31051 # This happens for instance with `./config.status config.h'.
31052 if test -n "$CONFIG_FILES"; then
31053
31054
31055 ac_cr=`echo X | tr X '\015'`
31056 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31057 # But we know of no other shell where ac_cr would be empty at this
31058 # point, so we can use a bashism as a fallback.
31059 if test "x$ac_cr" = x; then
31060   eval ac_cr=\$\'\\r\'
31061 fi
31062 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31063 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31064   ac_cs_awk_cr='\\r'
31065 else
31066   ac_cs_awk_cr=$ac_cr
31067 fi
31068
31069 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31070 _ACEOF
31071
31072
31073 {
31074   echo "cat >conf$$subs.awk <<_ACEOF" &&
31075   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31076   echo "_ACEOF"
31077 } >conf$$subs.sh ||
31078   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31079 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31080 ac_delim='%!_!# '
31081 for ac_last_try in false false false false false :; do
31082   . ./conf$$subs.sh ||
31083     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31084
31085   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31086   if test $ac_delim_n = $ac_delim_num; then
31087     break
31088   elif $ac_last_try; then
31089     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31090   else
31091     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31092   fi
31093 done
31094 rm -f conf$$subs.sh
31095
31096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31097 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31098 _ACEOF
31099 sed -n '
31100 h
31101 s/^/S["/; s/!.*/"]=/
31102 p
31103 g
31104 s/^[^!]*!//
31105 :repl
31106 t repl
31107 s/'"$ac_delim"'$//
31108 t delim
31109 :nl
31110 h
31111 s/\(.\{148\}\)..*/\1/
31112 t more1
31113 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31114 p
31115 n
31116 b repl
31117 :more1
31118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31119 p
31120 g
31121 s/.\{148\}//
31122 t nl
31123 :delim
31124 h
31125 s/\(.\{148\}\)..*/\1/
31126 t more2
31127 s/["\\]/\\&/g; s/^/"/; s/$/"/
31128 p
31129 b
31130 :more2
31131 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31132 p
31133 g
31134 s/.\{148\}//
31135 t delim
31136 ' <conf$$subs.awk | sed '
31137 /^[^""]/{
31138   N
31139   s/\n//
31140 }
31141 ' >>$CONFIG_STATUS || ac_write_fail=1
31142 rm -f conf$$subs.awk
31143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31144 _ACAWK
31145 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31146   for (key in S) S_is_set[key] = 1
31147   FS = "\a"
31148
31149 }
31150 {
31151   line = $ 0
31152   nfields = split(line, field, "@")
31153   substed = 0
31154   len = length(field[1])
31155   for (i = 2; i < nfields; i++) {
31156     key = field[i]
31157     keylen = length(key)
31158     if (S_is_set[key]) {
31159       value = S[key]
31160       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31161       len += length(value) + length(field[++i])
31162       substed = 1
31163     } else
31164       len += 1 + keylen
31165   }
31166
31167   print line
31168 }
31169
31170 _ACAWK
31171 _ACEOF
31172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31173 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31174   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31175 else
31176   cat
31177 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31178   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31179 _ACEOF
31180
31181 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31182 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31183 # trailing colons and then remove the whole line if VPATH becomes empty
31184 # (actually we leave an empty line to preserve line numbers).
31185 if test "x$srcdir" = x.; then
31186   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
31187 h
31188 s///
31189 s/^/:/
31190 s/[      ]*$/:/
31191 s/:\$(srcdir):/:/g
31192 s/:\${srcdir}:/:/g
31193 s/:@srcdir@:/:/g
31194 s/^:*//
31195 s/:*$//
31196 x
31197 s/\(=[   ]*\).*/\1/
31198 G
31199 s/\n//
31200 s/^[^=]*=[       ]*$//
31201 }'
31202 fi
31203
31204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31205 fi # test -n "$CONFIG_FILES"
31206
31207 # Set up the scripts for CONFIG_HEADERS section.
31208 # No need to generate them if there are no CONFIG_HEADERS.
31209 # This happens for instance with `./config.status Makefile'.
31210 if test -n "$CONFIG_HEADERS"; then
31211 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31212 BEGIN {
31213 _ACEOF
31214
31215 # Transform confdefs.h into an awk script `defines.awk', embedded as
31216 # here-document in config.status, that substitutes the proper values into
31217 # config.h.in to produce config.h.
31218
31219 # Create a delimiter string that does not exist in confdefs.h, to ease
31220 # handling of long lines.
31221 ac_delim='%!_!# '
31222 for ac_last_try in false false :; do
31223   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31224   if test -z "$ac_tt"; then
31225     break
31226   elif $ac_last_try; then
31227     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31228   else
31229     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31230   fi
31231 done
31232
31233 # For the awk script, D is an array of macro values keyed by name,
31234 # likewise P contains macro parameters if any.  Preserve backslash
31235 # newline sequences.
31236
31237 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31238 sed -n '
31239 s/.\{148\}/&'"$ac_delim"'/g
31240 t rset
31241 :rset
31242 s/^[     ]*#[    ]*define[       ][      ]*/ /
31243 t def
31244 d
31245 :def
31246 s/\\$//
31247 t bsnl
31248 s/["\\]/\\&/g
31249 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31250 D["\1"]=" \3"/p
31251 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31252 d
31253 :bsnl
31254 s/["\\]/\\&/g
31255 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31256 D["\1"]=" \3\\\\\\n"\\/p
31257 t cont
31258 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31259 t cont
31260 d
31261 :cont
31262 n
31263 s/.\{148\}/&'"$ac_delim"'/g
31264 t clear
31265 :clear
31266 s/\\$//
31267 t bsnlc
31268 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31269 d
31270 :bsnlc
31271 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31272 b cont
31273 ' <confdefs.h | sed '
31274 s/'"$ac_delim"'/"\\\
31275 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31276
31277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31278   for (key in D) D_is_set[key] = 1
31279   FS = "\a"
31280 }
31281 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31282   line = \$ 0
31283   split(line, arg, " ")
31284   if (arg[1] == "#") {
31285     defundef = arg[2]
31286     mac1 = arg[3]
31287   } else {
31288     defundef = substr(arg[1], 2)
31289     mac1 = arg[2]
31290   }
31291   split(mac1, mac2, "(") #)
31292   macro = mac2[1]
31293   prefix = substr(line, 1, index(line, defundef) - 1)
31294   if (D_is_set[macro]) {
31295     # Preserve the white space surrounding the "#".
31296     print prefix "define", macro P[macro] D[macro]
31297     next
31298   } else {
31299     # Replace #undef with comments.  This is necessary, for example,
31300     # in the case of _POSIX_SOURCE, which is predefined and required
31301     # on some systems where configure will not decide to define it.
31302     if (defundef == "undef") {
31303       print "/*", prefix defundef, macro, "*/"
31304       next
31305     }
31306   }
31307 }
31308 { print }
31309 _ACAWK
31310 _ACEOF
31311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31312   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31313 fi # test -n "$CONFIG_HEADERS"
31314
31315
31316 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31317 shift
31318 for ac_tag
31319 do
31320   case $ac_tag in
31321   :[FHLC]) ac_mode=$ac_tag; continue;;
31322   esac
31323   case $ac_mode$ac_tag in
31324   :[FHL]*:*);;
31325   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31326   :[FH]-) ac_tag=-:-;;
31327   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31328   esac
31329   ac_save_IFS=$IFS
31330   IFS=:
31331   set x $ac_tag
31332   IFS=$ac_save_IFS
31333   shift
31334   ac_file=$1
31335   shift
31336
31337   case $ac_mode in
31338   :L) ac_source=$1;;
31339   :[FH])
31340     ac_file_inputs=
31341     for ac_f
31342     do
31343       case $ac_f in
31344       -) ac_f="$ac_tmp/stdin";;
31345       *) # Look for the file first in the build tree, then in the source tree
31346          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31347          # because $ac_f cannot contain `:'.
31348          test -f "$ac_f" ||
31349            case $ac_f in
31350            [\\/$]*) false;;
31351            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31352            esac ||
31353            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31354       esac
31355       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31356       as_fn_append ac_file_inputs " '$ac_f'"
31357     done
31358
31359     # Let's still pretend it is `configure' which instantiates (i.e., don't
31360     # use $as_me), people would be surprised to read:
31361     #    /* config.h.  Generated by config.status.  */
31362     configure_input='Generated from '`
31363           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31364         `' by configure.'
31365     if test x"$ac_file" != x-; then
31366       configure_input="$ac_file.  $configure_input"
31367       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31368 printf "%s\n" "$as_me: creating $ac_file" >&6;}
31369     fi
31370     # Neutralize special characters interpreted by sed in replacement strings.
31371     case $configure_input in #(
31372     *\&* | *\|* | *\\* )
31373        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
31374        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31375     *) ac_sed_conf_input=$configure_input;;
31376     esac
31377
31378     case $ac_tag in
31379     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31380       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31381     esac
31382     ;;
31383   esac
31384
31385   ac_dir=`$as_dirname -- "$ac_file" ||
31386 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31387          X"$ac_file" : 'X\(//\)[^/]' \| \
31388          X"$ac_file" : 'X\(//\)$' \| \
31389          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31390 printf "%s\n" X"$ac_file" |
31391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31392             s//\1/
31393             q
31394           }
31395           /^X\(\/\/\)[^/].*/{
31396             s//\1/
31397             q
31398           }
31399           /^X\(\/\/\)$/{
31400             s//\1/
31401             q
31402           }
31403           /^X\(\/\).*/{
31404             s//\1/
31405             q
31406           }
31407           s/.*/./; q'`
31408   as_dir="$ac_dir"; as_fn_mkdir_p
31409   ac_builddir=.
31410
31411 case "$ac_dir" in
31412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31413 *)
31414   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
31415   # A ".." for each directory in $ac_dir_suffix.
31416   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31417   case $ac_top_builddir_sub in
31418   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31419   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31420   esac ;;
31421 esac
31422 ac_abs_top_builddir=$ac_pwd
31423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31424 # for backward compatibility:
31425 ac_top_builddir=$ac_top_build_prefix
31426
31427 case $srcdir in
31428   .)  # We are building in place.
31429     ac_srcdir=.
31430     ac_top_srcdir=$ac_top_builddir_sub
31431     ac_abs_top_srcdir=$ac_pwd ;;
31432   [\\/]* | ?:[\\/]* )  # Absolute name.
31433     ac_srcdir=$srcdir$ac_dir_suffix;
31434     ac_top_srcdir=$srcdir
31435     ac_abs_top_srcdir=$srcdir ;;
31436   *) # Relative name.
31437     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31438     ac_top_srcdir=$ac_top_build_prefix$srcdir
31439     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31440 esac
31441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31442
31443
31444   case $ac_mode in
31445   :F)
31446   #
31447   # CONFIG_FILE
31448   #
31449
31450   case $INSTALL in
31451   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31452   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31453   esac
31454   ac_MKDIR_P=$MKDIR_P
31455   case $MKDIR_P in
31456   [\\/$]* | ?:[\\/]* ) ;;
31457   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31458   esac
31459 _ACEOF
31460
31461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31462 # If the template does not know about datarootdir, expand it.
31463 # FIXME: This hack should be removed a few years after 2.60.
31464 ac_datarootdir_hack=; ac_datarootdir_seen=
31465 ac_sed_dataroot='
31466 /datarootdir/ {
31467   p
31468   q
31469 }
31470 /@datadir@/p
31471 /@docdir@/p
31472 /@infodir@/p
31473 /@localedir@/p
31474 /@mandir@/p'
31475 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31476 *datarootdir*) ac_datarootdir_seen=yes;;
31477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31478   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31479 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31480 _ACEOF
31481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31482   ac_datarootdir_hack='
31483   s&@datadir@&$datadir&g
31484   s&@docdir@&$docdir&g
31485   s&@infodir@&$infodir&g
31486   s&@localedir@&$localedir&g
31487   s&@mandir@&$mandir&g
31488   s&\\\${datarootdir}&$datarootdir&g' ;;
31489 esac
31490 _ACEOF
31491
31492 # Neutralize VPATH when `$srcdir' = `.'.
31493 # Shell code in configure.ac might set extrasub.
31494 # FIXME: do we really want to maintain this feature?
31495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31496 ac_sed_extra="$ac_vpsub
31497 $extrasub
31498 _ACEOF
31499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31500 :t
31501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31502 s|@configure_input@|$ac_sed_conf_input|;t t
31503 s&@top_builddir@&$ac_top_builddir_sub&;t t
31504 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31505 s&@srcdir@&$ac_srcdir&;t t
31506 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31507 s&@top_srcdir@&$ac_top_srcdir&;t t
31508 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31509 s&@builddir@&$ac_builddir&;t t
31510 s&@abs_builddir@&$ac_abs_builddir&;t t
31511 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31512 s&@INSTALL@&$ac_INSTALL&;t t
31513 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31514 $ac_datarootdir_hack
31515 "
31516 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31517   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31518
31519 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31520   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31521   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31522       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31523   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31524 which seems to be undefined.  Please make sure it is defined" >&5
31525 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31526 which seems to be undefined.  Please make sure it is defined" >&2;}
31527
31528   rm -f "$ac_tmp/stdin"
31529   case $ac_file in
31530   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31531   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31532   esac \
31533   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31534  ;;
31535   :H)
31536   #
31537   # CONFIG_HEADER
31538   #
31539   if test x"$ac_file" != x-; then
31540     {
31541       printf "%s\n" "/* $configure_input  */" >&1 \
31542       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31543     } >"$ac_tmp/config.h" \
31544       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31545     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31546       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31547 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
31548     else
31549       rm -f "$ac_file"
31550       mv "$ac_tmp/config.h" "$ac_file" \
31551         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31552     fi
31553   else
31554     printf "%s\n" "/* $configure_input  */" >&1 \
31555       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31556       || as_fn_error $? "could not create -" "$LINENO" 5
31557   fi
31558 # Compute "$ac_file"'s index in $config_headers.
31559 _am_arg="$ac_file"
31560 _am_stamp_count=1
31561 for _am_header in $config_headers :; do
31562   case $_am_header in
31563     $_am_arg | $_am_arg:* )
31564       break ;;
31565     * )
31566       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31567   esac
31568 done
31569 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31570 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31571          X"$_am_arg" : 'X\(//\)[^/]' \| \
31572          X"$_am_arg" : 'X\(//\)$' \| \
31573          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31574 printf "%s\n" X"$_am_arg" |
31575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31576             s//\1/
31577             q
31578           }
31579           /^X\(\/\/\)[^/].*/{
31580             s//\1/
31581             q
31582           }
31583           /^X\(\/\/\)$/{
31584             s//\1/
31585             q
31586           }
31587           /^X\(\/\).*/{
31588             s//\1/
31589             q
31590           }
31591           s/.*/./; q'`/stamp-h$_am_stamp_count
31592  ;;
31593   :L)
31594   #
31595   # CONFIG_LINK
31596   #
31597
31598   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31599     :
31600   else
31601     # Prefer the file from the source tree if names are identical.
31602     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31603       ac_source=$srcdir/$ac_source
31604     fi
31605
31606     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31607 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
31608
31609     if test ! -r "$ac_source"; then
31610       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31611     fi
31612     rm -f "$ac_file"
31613
31614     # Try a relative symlink, then a hard link, then a copy.
31615     case $ac_source in
31616     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31617         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31618     esac
31619     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31620       ln "$ac_source" "$ac_file" 2>/dev/null ||
31621       cp -p "$ac_source" "$ac_file" ||
31622       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31623   fi
31624  ;;
31625   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31626 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
31627  ;;
31628   esac
31629
31630
31631   case $ac_file$ac_mode in
31632     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31633   # Older Autoconf quotes --file arguments for eval, but not when files
31634   # are listed without --file.  Let's play safe and only enable the eval
31635   # if we detect the quoting.
31636   # TODO: see whether this extra hack can be removed once we start
31637   # requiring Autoconf 2.70 or later.
31638   case $CONFIG_FILES in #(
31639   *\'*) :
31640     eval set x "$CONFIG_FILES" ;; #(
31641   *) :
31642     set x $CONFIG_FILES ;; #(
31643   *) :
31644      ;;
31645 esac
31646   shift
31647   # Used to flag and report bootstrapping failures.
31648   am_rc=0
31649   for am_mf
31650   do
31651     # Strip MF so we end up with the name of the file.
31652     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
31653     # Check whether this is an Automake generated Makefile which includes
31654     # dependency-tracking related rules and includes.
31655     # Grep'ing the whole file directly is not great: AIX grep has a line
31656     # limit of 2048, but all sed's we know have understand at least 4000.
31657     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
31658       || continue
31659     am_dirpart=`$as_dirname -- "$am_mf" ||
31660 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31661          X"$am_mf" : 'X\(//\)[^/]' \| \
31662          X"$am_mf" : 'X\(//\)$' \| \
31663          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
31664 printf "%s\n" X"$am_mf" |
31665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31666             s//\1/
31667             q
31668           }
31669           /^X\(\/\/\)[^/].*/{
31670             s//\1/
31671             q
31672           }
31673           /^X\(\/\/\)$/{
31674             s//\1/
31675             q
31676           }
31677           /^X\(\/\).*/{
31678             s//\1/
31679             q
31680           }
31681           s/.*/./; q'`
31682     am_filepart=`$as_basename -- "$am_mf" ||
31683 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
31684          X"$am_mf" : 'X\(//\)$' \| \
31685          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
31686 printf "%s\n" X/"$am_mf" |
31687     sed '/^.*\/\([^/][^/]*\)\/*$/{
31688             s//\1/
31689             q
31690           }
31691           /^X\/\(\/\/\)$/{
31692             s//\1/
31693             q
31694           }
31695           /^X\/\(\/\).*/{
31696             s//\1/
31697             q
31698           }
31699           s/.*/./; q'`
31700     { echo "$as_me:$LINENO: cd "$am_dirpart" \
31701       && sed -e '/# am--include-marker/d' "$am_filepart" \
31702         | $MAKE -f - am--depfiles" >&5
31703    (cd "$am_dirpart" \
31704       && sed -e '/# am--include-marker/d' "$am_filepart" \
31705         | $MAKE -f - am--depfiles) >&5 2>&5
31706    ac_status=$?
31707    echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708    (exit $ac_status); } || am_rc=$?
31709   done
31710   if test $am_rc -ne 0; then
31711     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
31713 as_fn_error $? "Something went wrong bootstrapping makefile fragments
31714     for automatic dependency tracking.  If GNU make was not used, consider
31715     re-running the configure script with MAKE=\"gmake\" (or whatever is
31716     necessary).  You can also try re-running configure with the
31717     '--disable-dependency-tracking' option to at least be able to build
31718     the package (albeit without support for automatic dependency tracking).
31719 See \`config.log' for more details" "$LINENO" 5; }
31720   fi
31721   { am_dirpart=; unset am_dirpart;}
31722   { am_filepart=; unset am_filepart;}
31723   { am_mf=; unset am_mf;}
31724   { am_rc=; unset am_rc;}
31725   rm -f conftest-deps.mk
31726 }
31727  ;;
31728     "libtool":C)
31729
31730     # See if we are running on zsh, and set the options that allow our
31731     # commands through without removal of \ escapes.
31732     if test -n "${ZSH_VERSION+set}"; then
31733       setopt NO_GLOB_SUBST
31734     fi
31735
31736     cfgfile=${ofile}T
31737     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31738     $RM "$cfgfile"
31739
31740     cat <<_LT_EOF >> "$cfgfile"
31741 #! $SHELL
31742 # Generated automatically by $as_me ($PACKAGE) $VERSION
31743 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31744
31745 # Provide generalized library-building support services.
31746 # Written by Gordon Matzigkeit, 1996
31747
31748 # Copyright (C) 2014 Free Software Foundation, Inc.
31749 # This is free software; see the source for copying conditions.  There is NO
31750 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
31751
31752 # GNU Libtool is free software; you can redistribute it and/or modify
31753 # it under the terms of the GNU General Public License as published by
31754 # the Free Software Foundation; either version 2 of of the License, or
31755 # (at your option) any later version.
31756 #
31757 # As a special exception to the GNU General Public License, if you
31758 # distribute this file as part of a program or library that is built
31759 # using GNU Libtool, you may include this file under the  same
31760 # distribution terms that you use for the rest of that program.
31761 #
31762 # GNU Libtool is distributed in the hope that it will be useful, but
31763 # WITHOUT ANY WARRANTY; without even the implied warranty of
31764 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31765 # GNU General Public License for more details.
31766 #
31767 # You should have received a copy of the GNU General Public License
31768 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
31769
31770
31771 # The names of the tagged configurations supported by this script.
31772 available_tags=''
31773
31774 # Configured defaults for sys_lib_dlsearch_path munging.
31775 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
31776
31777 # ### BEGIN LIBTOOL CONFIG
31778
31779 # Which release of libtool.m4 was used?
31780 macro_version=$macro_version
31781 macro_revision=$macro_revision
31782
31783 # Assembler program.
31784 AS=$lt_AS
31785
31786 # DLL creation program.
31787 DLLTOOL=$lt_DLLTOOL
31788
31789 # Object dumper program.
31790 OBJDUMP=$lt_OBJDUMP
31791
31792 # Whether or not to build shared libraries.
31793 build_libtool_libs=$enable_shared
31794
31795 # Whether or not to build static libraries.
31796 build_old_libs=$enable_static
31797
31798 # What type of objects to build.
31799 pic_mode=$pic_mode
31800
31801 # Whether or not to optimize for fast installation.
31802 fast_install=$enable_fast_install
31803
31804 # Shared archive member basename,for filename based shared library versioning on AIX.
31805 shared_archive_member_spec=$shared_archive_member_spec
31806
31807 # Shell to use when invoking shell scripts.
31808 SHELL=$lt_SHELL
31809
31810 # An echo program that protects backslashes.
31811 ECHO=$lt_ECHO
31812
31813 # The PATH separator for the build system.
31814 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31815
31816 # The host system.
31817 host_alias=$host_alias
31818 host=$host
31819 host_os=$host_os
31820
31821 # The build system.
31822 build_alias=$build_alias
31823 build=$build
31824 build_os=$build_os
31825
31826 # A sed program that does not truncate output.
31827 SED=$lt_SED
31828
31829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31830 Xsed="\$SED -e 1s/^X//"
31831
31832 # A grep program that handles long lines.
31833 GREP=$lt_GREP
31834
31835 # An ERE matcher.
31836 EGREP=$lt_EGREP
31837
31838 # A literal string matcher.
31839 FGREP=$lt_FGREP
31840
31841 # A BSD- or MS-compatible name lister.
31842 NM=$lt_NM
31843
31844 # Whether we need soft or hard links.
31845 LN_S=$lt_LN_S
31846
31847 # What is the maximum length of a command?
31848 max_cmd_len=$max_cmd_len
31849
31850 # Object file suffix (normally "o").
31851 objext=$ac_objext
31852
31853 # Executable file suffix (normally "").
31854 exeext=$exeext
31855
31856 # whether the shell understands "unset".
31857 lt_unset=$lt_unset
31858
31859 # turn spaces into newlines.
31860 SP2NL=$lt_lt_SP2NL
31861
31862 # turn newlines into spaces.
31863 NL2SP=$lt_lt_NL2SP
31864
31865 # convert \$build file names to \$host format.
31866 to_host_file_cmd=$lt_cv_to_host_file_cmd
31867
31868 # convert \$build files to toolchain format.
31869 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31870
31871 # Method to check whether dependent libraries are shared objects.
31872 deplibs_check_method=$lt_deplibs_check_method
31873
31874 # Command to use when deplibs_check_method = "file_magic".
31875 file_magic_cmd=$lt_file_magic_cmd
31876
31877 # How to find potential files when deplibs_check_method = "file_magic".
31878 file_magic_glob=$lt_file_magic_glob
31879
31880 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31881 want_nocaseglob=$lt_want_nocaseglob
31882
31883 # Command to associate shared and link libraries.
31884 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31885
31886 # The archiver.
31887 AR=$lt_AR
31888
31889 # Flags to create an archive.
31890 AR_FLAGS=$lt_AR_FLAGS
31891
31892 # How to feed a file listing to the archiver.
31893 archiver_list_spec=$lt_archiver_list_spec
31894
31895 # A symbol stripping program.
31896 STRIP=$lt_STRIP
31897
31898 # Commands used to install an old-style archive.
31899 RANLIB=$lt_RANLIB
31900 old_postinstall_cmds=$lt_old_postinstall_cmds
31901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31902
31903 # Whether to use a lock for old archive extraction.
31904 lock_old_archive_extraction=$lock_old_archive_extraction
31905
31906 # A C compiler.
31907 LTCC=$lt_CC
31908
31909 # LTCC compiler flags.
31910 LTCFLAGS=$lt_CFLAGS
31911
31912 # Take the output of nm and produce a listing of raw symbols and C names.
31913 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31914
31915 # Transform the output of nm in a proper C declaration.
31916 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31917
31918 # Transform the output of nm into a list of symbols to manually relocate.
31919 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
31920
31921 # Transform the output of nm in a C name address pair.
31922 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31923
31924 # Transform the output of nm in a C name address pair when lib prefix is needed.
31925 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31926
31927 # The name lister interface.
31928 nm_interface=$lt_lt_cv_nm_interface
31929
31930 # Specify filename containing input files for \$NM.
31931 nm_file_list_spec=$lt_nm_file_list_spec
31932
31933 # The root where to search for dependent libraries,and where our libraries should be installed.
31934 lt_sysroot=$lt_sysroot
31935
31936 # Command to truncate a binary pipe.
31937 lt_truncate_bin=$lt_lt_cv_truncate_bin
31938
31939 # The name of the directory that contains temporary libtool files.
31940 objdir=$objdir
31941
31942 # Used to examine libraries when file_magic_cmd begins with "file".
31943 MAGIC_CMD=$MAGIC_CMD
31944
31945 # Must we lock files when doing compilation?
31946 need_locks=$lt_need_locks
31947
31948 # Manifest tool.
31949 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31950
31951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31952 DSYMUTIL=$lt_DSYMUTIL
31953
31954 # Tool to change global to local symbols on Mac OS X.
31955 NMEDIT=$lt_NMEDIT
31956
31957 # Tool to manipulate fat objects and archives on Mac OS X.
31958 LIPO=$lt_LIPO
31959
31960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31961 OTOOL=$lt_OTOOL
31962
31963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31964 OTOOL64=$lt_OTOOL64
31965
31966 # Old archive suffix (normally "a").
31967 libext=$libext
31968
31969 # Shared library suffix (normally ".so").
31970 shrext_cmds=$lt_shrext_cmds
31971
31972 # The commands to extract the exported symbol list from a shared archive.
31973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31974
31975 # Variables whose values should be saved in libtool wrapper scripts and
31976 # restored at link time.
31977 variables_saved_for_relink=$lt_variables_saved_for_relink
31978
31979 # Do we need the "lib" prefix for modules?
31980 need_lib_prefix=$need_lib_prefix
31981
31982 # Do we need a version for libraries?
31983 need_version=$need_version
31984
31985 # Library versioning type.
31986 version_type=$version_type
31987
31988 # Shared library runtime path variable.
31989 runpath_var=$runpath_var
31990
31991 # Shared library path variable.
31992 shlibpath_var=$shlibpath_var
31993
31994 # Is shlibpath searched before the hard-coded library search path?
31995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31996
31997 # Format of library name prefix.
31998 libname_spec=$lt_libname_spec
31999
32000 # List of archive names.  First name is the real one, the rest are links.
32001 # The last name is the one that the linker finds with -lNAME
32002 library_names_spec=$lt_library_names_spec
32003
32004 # The coded name of the library, if different from the real name.
32005 soname_spec=$lt_soname_spec
32006
32007 # Permission mode override for installation of shared libraries.
32008 install_override_mode=$lt_install_override_mode
32009
32010 # Command to use after installation of a shared archive.
32011 postinstall_cmds=$lt_postinstall_cmds
32012
32013 # Command to use after uninstallation of a shared archive.
32014 postuninstall_cmds=$lt_postuninstall_cmds
32015
32016 # Commands used to finish a libtool library installation in a directory.
32017 finish_cmds=$lt_finish_cmds
32018
32019 # As "finish_cmds", except a single script fragment to be evaled but
32020 # not shown.
32021 finish_eval=$lt_finish_eval
32022
32023 # Whether we should hardcode library paths into libraries.
32024 hardcode_into_libs=$hardcode_into_libs
32025
32026 # Compile-time system search path for libraries.
32027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32028
32029 # Detected run-time system search path for libraries.
32030 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
32031
32032 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
32033 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
32034
32035 # Whether dlopen is supported.
32036 dlopen_support=$enable_dlopen
32037
32038 # Whether dlopen of programs is supported.
32039 dlopen_self=$enable_dlopen_self
32040
32041 # Whether dlopen of statically linked programs is supported.
32042 dlopen_self_static=$enable_dlopen_self_static
32043
32044 # Commands to strip libraries.
32045 old_striplib=$lt_old_striplib
32046 striplib=$lt_striplib
32047
32048
32049 # The linker used to build libraries.
32050 LD=$lt_LD
32051
32052 # How to create reloadable object files.
32053 reload_flag=$lt_reload_flag
32054 reload_cmds=$lt_reload_cmds
32055
32056 # Commands used to build an old-style archive.
32057 old_archive_cmds=$lt_old_archive_cmds
32058
32059 # A language specific compiler.
32060 CC=$lt_compiler
32061
32062 # Is the compiler the GNU compiler?
32063 with_gcc=$GCC
32064
32065 # Compiler flag to turn off builtin functions.
32066 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32067
32068 # Additional compiler flags for building library objects.
32069 pic_flag=$lt_lt_prog_compiler_pic
32070
32071 # How to pass a linker flag through the compiler.
32072 wl=$lt_lt_prog_compiler_wl
32073
32074 # Compiler flag to prevent dynamic linking.
32075 link_static_flag=$lt_lt_prog_compiler_static
32076
32077 # Does compiler simultaneously support -c and -o options?
32078 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32079
32080 # Whether or not to add -lc for building shared libraries.
32081 build_libtool_need_lc=$archive_cmds_need_lc
32082
32083 # Whether or not to disallow shared libs when runtime libs are static.
32084 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32085
32086 # Compiler flag to allow reflexive dlopens.
32087 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32088
32089 # Compiler flag to generate shared objects directly from archives.
32090 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32091
32092 # Whether the compiler copes with passing no objects directly.
32093 compiler_needs_object=$lt_compiler_needs_object
32094
32095 # Create an old-style archive from a shared archive.
32096 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32097
32098 # Create a temporary old-style archive to link instead of a shared archive.
32099 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32100
32101 # Commands used to build a shared archive.
32102 archive_cmds=$lt_archive_cmds
32103 archive_expsym_cmds=$lt_archive_expsym_cmds
32104
32105 # Commands used to build a loadable module if different from building
32106 # a shared archive.
32107 module_cmds=$lt_module_cmds
32108 module_expsym_cmds=$lt_module_expsym_cmds
32109
32110 # Whether we are building with GNU ld or not.
32111 with_gnu_ld=$lt_with_gnu_ld
32112
32113 # Flag that allows shared libraries with undefined symbols to be built.
32114 allow_undefined_flag=$lt_allow_undefined_flag
32115
32116 # Flag that enforces no undefined symbols.
32117 no_undefined_flag=$lt_no_undefined_flag
32118
32119 # Flag to hardcode \$libdir into a binary during linking.
32120 # This must work even if \$libdir does not exist
32121 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32122
32123 # Whether we need a single "-rpath" flag with a separated argument.
32124 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32125
32126 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32127 # DIR into the resulting binary.
32128 hardcode_direct=$hardcode_direct
32129
32130 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32131 # DIR into the resulting binary and the resulting library dependency is
32132 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
32133 # library is relocated.
32134 hardcode_direct_absolute=$hardcode_direct_absolute
32135
32136 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32137 # into the resulting binary.
32138 hardcode_minus_L=$hardcode_minus_L
32139
32140 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32141 # into the resulting binary.
32142 hardcode_shlibpath_var=$hardcode_shlibpath_var
32143
32144 # Set to "yes" if building a shared library automatically hardcodes DIR
32145 # into the library and all subsequent libraries and executables linked
32146 # against it.
32147 hardcode_automatic=$hardcode_automatic
32148
32149 # Set to yes if linker adds runtime paths of dependent libraries
32150 # to runtime path list.
32151 inherit_rpath=$inherit_rpath
32152
32153 # Whether libtool must link a program against all its dependency libraries.
32154 link_all_deplibs=$link_all_deplibs
32155
32156 # Set to "yes" if exported symbols are required.
32157 always_export_symbols=$always_export_symbols
32158
32159 # The commands to list exported symbols.
32160 export_symbols_cmds=$lt_export_symbols_cmds
32161
32162 # Symbols that should not be listed in the preloaded symbols.
32163 exclude_expsyms=$lt_exclude_expsyms
32164
32165 # Symbols that must always be exported.
32166 include_expsyms=$lt_include_expsyms
32167
32168 # Commands necessary for linking programs (against libraries) with templates.
32169 prelink_cmds=$lt_prelink_cmds
32170
32171 # Commands necessary for finishing linking programs.
32172 postlink_cmds=$lt_postlink_cmds
32173
32174 # Specify filename containing input files.
32175 file_list_spec=$lt_file_list_spec
32176
32177 # How to hardcode a shared library path into an executable.
32178 hardcode_action=$hardcode_action
32179
32180 # ### END LIBTOOL CONFIG
32181
32182 _LT_EOF
32183
32184     cat <<'_LT_EOF' >> "$cfgfile"
32185
32186 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
32187
32188 # func_munge_path_list VARIABLE PATH
32189 # -----------------------------------
32190 # VARIABLE is name of variable containing _space_ separated list of
32191 # directories to be munged by the contents of PATH, which is string
32192 # having a format:
32193 # "DIR[:DIR]:"
32194 #       string "DIR[ DIR]" will be prepended to VARIABLE
32195 # ":DIR[:DIR]"
32196 #       string "DIR[ DIR]" will be appended to VARIABLE
32197 # "DIRP[:DIRP]::[DIRA:]DIRA"
32198 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
32199 #       "DIRA[ DIRA]" will be appended to VARIABLE
32200 # "DIR[:DIR]"
32201 #       VARIABLE will be replaced by "DIR[ DIR]"
32202 func_munge_path_list ()
32203 {
32204     case x$2 in
32205     x)
32206         ;;
32207     *:)
32208         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
32209         ;;
32210     x:*)
32211         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
32212         ;;
32213     *::*)
32214         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
32215         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
32216         ;;
32217     *)
32218         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
32219         ;;
32220     esac
32221 }
32222
32223
32224 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
32225 func_cc_basename ()
32226 {
32227     for cc_temp in $*""; do
32228       case $cc_temp in
32229         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32230         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32231         \-*) ;;
32232         *) break;;
32233       esac
32234     done
32235     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32236 }
32237
32238
32239 # ### END FUNCTIONS SHARED WITH CONFIGURE
32240
32241 _LT_EOF
32242
32243   case $host_os in
32244   aix3*)
32245     cat <<\_LT_EOF >> "$cfgfile"
32246 # AIX sometimes has problems with the GCC collect2 program.  For some
32247 # reason, if we set the COLLECT_NAMES environment variable, the problems
32248 # vanish in a puff of smoke.
32249 if test set != "${COLLECT_NAMES+set}"; then
32250   COLLECT_NAMES=
32251   export COLLECT_NAMES
32252 fi
32253 _LT_EOF
32254     ;;
32255   esac
32256
32257
32258
32259 ltmain=$ac_aux_dir/ltmain.sh
32260
32261
32262   # We use sed instead of cat because bash on DJGPP gets confused if
32263   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32264   # text mode, it properly converts lines to CR/LF.  This bash problem
32265   # is reportedly fixed, but why not run on old versions too?
32266   sed '$q' "$ltmain" >> "$cfgfile" \
32267      || (rm -f "$cfgfile"; exit 1)
32268
32269    mv -f "$cfgfile" "$ofile" ||
32270     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32271   chmod +x "$ofile"
32272
32273  ;;
32274
32275   esac
32276 done # for ac_tag
32277
32278
32279 as_fn_exit 0
32280 _ACEOF
32281 ac_clean_files=$ac_clean_files_save
32282
32283 test $ac_write_fail = 0 ||
32284   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32285
32286
32287 # configure is writing to config.log, and then calls config.status.
32288 # config.status does its own redirection, appending to config.log.
32289 # Unfortunately, on DOS this fails, as config.log is still kept open
32290 # by configure, so config.status won't be able to write to it; its
32291 # output is simply discarded.  So we exec the FD to /dev/null,
32292 # effectively closing config.log, so it can be properly (re)opened and
32293 # appended to by config.status.  When coming back to configure, we
32294 # need to make the FD available again.
32295 if test "$no_create" != yes; then
32296   ac_cs_success=:
32297   ac_config_status_args=
32298   test "$silent" = yes &&
32299     ac_config_status_args="$ac_config_status_args --quiet"
32300   exec 5>/dev/null
32301   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32302   exec 5>>config.log
32303   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32304   # would make configure fail if this is the last instruction.
32305   $ac_cs_success || as_fn_exit 1
32306 fi
32307 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32309 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32310 fi
32311
32312
32313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Summary of build options:
32314
32315   Version:           ${VERSION}
32316   Libtool version    $LT_CURRENT:$LT_REVISION:$LT_AGE
32317   DLL version:       $DLL_VERSION
32318   Header version:    major $MAJOR_VERSION minor $MINOR_VERSION patch $PATCH_VERSION number $NUMBER_VERSION
32319   Build/host system: ${build} / ${host}
32320   Install prefix:    ${prefix}
32321   Compiler:          ${CC}
32322   Warning flags:     ${WARN_CFLAGS}
32323   CFLAGS:            ${CFLAGS} ${CPPFLAGS}
32324   LDFlags:           ${LDFLAGS}
32325   Documentation:     ${enable_doc}
32326   Library types:     Shared=${enable_shared}, Static=${enable_static}
32327   Valgrind:          $gl_cv_prog_valgrind_works ${VALGRIND}
32328   Version script:    $have_ld_version_script
32329   Fuzzing build:     $enable_fuzzing $LIB_FUZZING_ENGINE
32330 " >&5
32331 printf "%s\n" "$as_me: Summary of build options:
32332
32333   Version:           ${VERSION}
32334   Libtool version    $LT_CURRENT:$LT_REVISION:$LT_AGE
32335   DLL version:       $DLL_VERSION
32336   Header version:    major $MAJOR_VERSION minor $MINOR_VERSION patch $PATCH_VERSION number $NUMBER_VERSION
32337   Build/host system: ${build} / ${host}
32338   Install prefix:    ${prefix}
32339   Compiler:          ${CC}
32340   Warning flags:     ${WARN_CFLAGS}
32341   CFLAGS:            ${CFLAGS} ${CPPFLAGS}
32342   LDFlags:           ${LDFLAGS}
32343   Documentation:     ${enable_doc}
32344   Library types:     Shared=${enable_shared}, Static=${enable_static}
32345   Valgrind:          $gl_cv_prog_valgrind_works ${VALGRIND}
32346   Version script:    $have_ld_version_script
32347   Fuzzing build:     $enable_fuzzing $LIB_FUZZING_ENGINE
32348 " >&6;}
32349