1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for GnuTLS 3.6.16.
4#
5# Report bugs to <bugs@gnutls.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and bugs@gnutls.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='GnuTLS'
592PACKAGE_TARNAME='gnutls'
593PACKAGE_VERSION='3.6.16'
594PACKAGE_STRING='GnuTLS 3.6.16'
595PACKAGE_BUGREPORT='bugs@gnutls.org'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634gl_use_threads_default=
635gl_use_winpthreads_default=
636ac_header_list=
637gt_needs=
638ac_func_list=
639ac_subst_vars='unistringtests_LTLIBOBJS
640unistringtests_LIBOBJS
641unistring_LTLIBOBJS
642unistring_LIBOBJS
643ggltests_LTLIBOBJS
644ggltests_LIBOBJS
645ggl_LTLIBOBJS
646ggl_LIBOBJS
647gltests_LTLIBOBJS
648gltests_LIBOBJS
649gl_LTLIBOBJS
650gl_LIBOBJS
651CONFIG_INCLUDE
652am__EXEEXT_FALSE
653am__EXEEXT_TRUE
654LTLIBOBJS
655LIBOBJS
656NEEDS_LIBRT_FALSE
657NEEDS_LIBRT_TRUE
658LIBGNUTLS_CFLAGS
659LIBGNUTLS_LIBS
660CROSS_COMPILING_FALSE
661CROSS_COMPILING_TRUE
662HAVE_GUILD_FALSE
663HAVE_GUILD_TRUE
664HAVE_GUILE_FALSE
665HAVE_GUILE_TRUE
666maybe_guileextensiondir
667GUILE_LDFLAGS
668GUILE_LTLIBS
669GUILE_LIBS
670GUILE_CFLAGS
671GUILE_EXTENSION
672GUILE_SITE_CCACHE
673GUILE_SITE
674GUILE_TOOLS
675GUILE_CONFIG
676GUILE
677GUILE_EFFECTIVE_VERSION
678GUILD
679guile_snarf
680guileextensiondir
681guilesiteccachedir
682guilesitedir
683HAVE_PKCS11_TRUST_STORE_FALSE
684HAVE_PKCS11_TRUST_STORE_TRUE
685GNUTLS_REQUIRES_PRIVATE
686GNUTLS_LIBS_PRIVATE
687ac_cv_sizeof_time_t
688LIBOPTS_DIR
689LIBOPTS_CFLAGS
690LIBOPTS_LDADD
691NEED_LIBOPTS_FALSE
692NEED_LIBOPTS_TRUE
693INSTALL_LIBOPTS_FALSE
694INSTALL_LIBOPTS_TRUE
695POSIX_SHELL
696GL_GENERATE_STDNORETURN_H_FALSE
697GL_GENERATE_STDNORETURN_H_TRUE
698STDNORETURN_H
699autogen
700AUTOGEN
701TROUSERS_LIB
702ENABLE_TROUSERS_FALSE
703ENABLE_TROUSERS_TRUE
704TSS_CFLAGS
705TSS_LIBS
706ENABLE_PKCS11_FALSE
707ENABLE_PKCS11_TRUE
708P11KIT_0_23_11_API_FALSE
709P11KIT_0_23_11_API_TRUE
710P11_KIT_LIBS
711P11_KIT_CFLAGS
712DISABLE_SYSTEM_CONFIG_FALSE
713DISABLE_SYSTEM_CONFIG_TRUE
714ENABLE_DANE_FALSE
715ENABLE_DANE_TRUE
716UNBOUND_CFLAGS
717UNBOUND_LIBS
718NEED_SIV_FALSE
719NEED_SIV_TRUE
720NEED_CHACHA_FALSE
721NEED_CHACHA_TRUE
722NEED_INT_ECC_FALSE
723NEED_INT_ECC_TRUE
724NEED_XTS_FALSE
725NEED_XTS_TRUE
726NEED_CMAC_FALSE
727NEED_CMAC_TRUE
728NEED_CFB_FALSE
729NEED_CFB_TRUE
730ENABLE_NON_SUITEB_CURVES_FALSE
731ENABLE_NON_SUITEB_CURVES_TRUE
732HAVE_BCRYPT_FALSE
733HAVE_BCRYPT_TRUE
734HAVE_LIBIDN2_FALSE
735HAVE_LIBIDN2_TRUE
736LIBIDN2_LIBS
737LIBIDN2_CFLAGS
738HAVE_CMOCKA_FALSE
739HAVE_CMOCKA_TRUE
740CMOCKA_LIBS
741CMOCKA_CFLAGS
742FIPS140_LIBS
743ENABLE_FIPS140_FALSE
744ENABLE_FIPS140_TRUE
745LIBDL_PREFIX
746LTLIBDL
747LIBDL
748HAVE_LIBDL
749CXXCPP
750LT_SYS_LIBRARY_PATH
751OTOOL64
752OTOOL
753LIPO
754NMEDIT
755DSYMUTIL
756MANIFEST_TOOL
757DLLTOOL
758NM
759ac_ct_DUMPBIN
760DUMPBIN
761LD
762FGREP
763LIBTOOL
764LN_S
765WERROR_CFLAGS
766WARN_CFLAGS
767WSTACK_CFLAGS
768LIBEV_LIBS
769LIBEV_PREFIX
770LTLIBEV
771LIBEV
772HAVE_LIBEV
773ENABLE_OLDGNUTLS_INTEROP_FALSE
774ENABLE_OLDGNUTLS_INTEROP_TRUE
775pkgpyexecdir
776pyexecdir
777pkgpythondir
778pythondir
779PYTHON_PLATFORM
780PYTHON_EXEC_PREFIX
781PYTHON_PREFIX
782PYTHON_VERSION
783PYTHON
784WANT_TEST_SUITE_FALSE
785WANT_TEST_SUITE_TRUE
786unistringtests_WITNESS
787LIBUNISTRING_UNITYPES_H
788LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
789LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
790LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_FALSE
791LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_TRUE
792LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_FALSE
793LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_TRUE
794LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
795LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
796LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE
797LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE
798LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE
799LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE
800LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE
801LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE
802LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_FALSE
803LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_TRUE
804LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_FALSE
805LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_TRUE
806LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_FALSE
807LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_TRUE
808LIBUNISTRING_COMPILE_UNISTR_U32_CPY_FALSE
809LIBUNISTRING_COMPILE_UNISTR_U32_CPY_TRUE
810LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_FALSE
811LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_TRUE
812LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_FALSE
813LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_TRUE
814LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_FALSE
815LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_TRUE
816LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_FALSE
817LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_TRUE
818LIBUNISTRING_COMPILE_UNISTR_U16_CPY_FALSE
819LIBUNISTRING_COMPILE_UNISTR_U16_CPY_TRUE
820LIBUNISTRING_UNISTR_H
821LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE
822LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE
823LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_FALSE
824LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_TRUE
825LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_FALSE
826LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_TRUE
827LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE
828LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE
829LIBUNISTRING_COMPILE_UNINORM_NFKC_FALSE
830LIBUNISTRING_COMPILE_UNINORM_NFKC_TRUE
831LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE
832LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE
833LIBUNISTRING_COMPILE_UNINORM_NFC_FALSE
834LIBUNISTRING_COMPILE_UNINORM_NFC_TRUE
835LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE
836LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE
837LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_FALSE
838LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_TRUE
839LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE
840LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE
841LIBUNISTRING_UNINORM_H
842LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_FALSE
843LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_TRUE
844LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_FALSE
845LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_TRUE
846LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_FALSE
847LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_TRUE
848LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE
849LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE
850LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_FALSE
851LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_TRUE
852LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_FALSE
853LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_TRUE
854LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE
855LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE
856LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE
857LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE
858LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_FALSE
859LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_TRUE
860LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_FALSE
861LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_TRUE
862LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_FALSE
863LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_TRUE
864LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_FALSE
865LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_TRUE
866LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_FALSE
867LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_TRUE
868LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_FALSE
869LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_TRUE
870LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_FALSE
871LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_TRUE
872LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_FALSE
873LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_TRUE
874LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_FALSE
875LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_TRUE
876LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_FALSE
877LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_TRUE
878LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_FALSE
879LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_TRUE
880LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_FALSE
881LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_TRUE
882LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_FALSE
883LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_TRUE
884LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_FALSE
885LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_TRUE
886LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_FALSE
887LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_TRUE
888LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_FALSE
889LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_TRUE
890LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_FALSE
891LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_TRUE
892LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_FALSE
893LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_TRUE
894LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_FALSE
895LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_TRUE
896LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_FALSE
897LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_TRUE
898LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_FALSE
899LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_TRUE
900LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_FALSE
901LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_TRUE
902LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_FALSE
903LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_TRUE
904LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_FALSE
905LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_TRUE
906LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_FALSE
907LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_TRUE
908LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_FALSE
909LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_TRUE
910LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_FALSE
911LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_TRUE
912LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_FALSE
913LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_TRUE
914LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_FALSE
915LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_TRUE
916LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_FALSE
917LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_TRUE
918LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_FALSE
919LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_TRUE
920LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_FALSE
921LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_TRUE
922LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_FALSE
923LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_TRUE
924LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_FALSE
925LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_TRUE
926LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_FALSE
927LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_TRUE
928LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_FALSE
929LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_TRUE
930LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_FALSE
931LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_TRUE
932LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_FALSE
933LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_TRUE
934LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_FALSE
935LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_TRUE
936LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_FALSE
937LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_TRUE
938LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_FALSE
939LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_TRUE
940LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_FALSE
941LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_TRUE
942LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_FALSE
943LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_TRUE
944LIBUNISTRING_UNICTYPE_H
945ggltests_WITNESS
946PARSE_DATETIME_BISON
947GETADDRINFO_LIB
948SERVENT_LIB
949HOSTENT_LIB
950LIB_CLOCK_GETTIME
951LIBTESTS_LIBDEPS
952abs_aux_dir
953NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H
954NEXT_SYS_IOCTL_H
955HAVE_SYS_IOCTL_H
956NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
957NEXT_SIGNAL_H
958LOCALE_ZH_CN
959LOCALE_JA
960LOCALE_FR_UTF8
961HAVE_VISIBILITY
962CFLAG_VISIBILITY
963LIB_SETLOCALE
964LIB_SETLOCALE_NULL
965HAVE_SYS_CDEFS_H
966HAVE_STRUCT_SCHED_PARAM
967HAVE_SCHED_H
968NEXT_AS_FIRST_DIRECTIVE_SCHED_H
969NEXT_SCHED_H
970REPLACE_SCHED_YIELD
971HAVE_SCHED_YIELD
972GNULIB_SCHED_YIELD
973LIB_PTHREAD_SIGMASK
974REPLACE_RAISE
975REPLACE_PTHREAD_SIGMASK
976HAVE_SIGHANDLER_T
977HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
978HAVE_STRUCT_SIGACTION_SA_SIGACTION
979HAVE_SIGACTION
980HAVE_SIGINFO_T
981HAVE_SIGSET_T
982HAVE_RAISE
983HAVE_PTHREAD_SIGMASK
984HAVE_POSIX_SIGNALBLOCKING
985GNULIB_SIGACTION
986GNULIB_SIGPROCMASK
987GNULIB_SIGNAL_H_SIGPIPE
988GNULIB_RAISE
989GNULIB_PTHREAD_SIGMASK
990LIB_PTHREAD
991HAVE_PTHREAD_H
992NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H
993NEXT_PTHREAD_H
994REPLACE_PTHREAD_SPIN_DESTROY
995REPLACE_PTHREAD_SPIN_UNLOCK
996REPLACE_PTHREAD_SPIN_TRYLOCK
997REPLACE_PTHREAD_SPIN_LOCK
998REPLACE_PTHREAD_SPIN_INIT
999REPLACE_PTHREAD_KEY_DELETE
1000REPLACE_PTHREAD_GETSPECIFIC
1001REPLACE_PTHREAD_SETSPECIFIC
1002REPLACE_PTHREAD_KEY_CREATE
1003REPLACE_PTHREAD_COND_DESTROY
1004REPLACE_PTHREAD_COND_BROADCAST
1005REPLACE_PTHREAD_COND_SIGNAL
1006REPLACE_PTHREAD_COND_TIMEDWAIT
1007REPLACE_PTHREAD_COND_WAIT
1008REPLACE_PTHREAD_CONDATTR_DESTROY
1009REPLACE_PTHREAD_CONDATTR_INIT
1010REPLACE_PTHREAD_COND_INIT
1011REPLACE_PTHREAD_RWLOCK_DESTROY
1012REPLACE_PTHREAD_RWLOCK_UNLOCK
1013REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK
1014REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK
1015REPLACE_PTHREAD_RWLOCK_TRYWRLOCK
1016REPLACE_PTHREAD_RWLOCK_TRYRDLOCK
1017REPLACE_PTHREAD_RWLOCK_WRLOCK
1018REPLACE_PTHREAD_RWLOCK_RDLOCK
1019REPLACE_PTHREAD_RWLOCKATTR_DESTROY
1020REPLACE_PTHREAD_RWLOCKATTR_INIT
1021REPLACE_PTHREAD_RWLOCK_INIT
1022REPLACE_PTHREAD_MUTEX_DESTROY
1023REPLACE_PTHREAD_MUTEX_UNLOCK
1024REPLACE_PTHREAD_MUTEX_TIMEDLOCK
1025REPLACE_PTHREAD_MUTEX_TRYLOCK
1026REPLACE_PTHREAD_MUTEX_LOCK
1027REPLACE_PTHREAD_MUTEXATTR_DESTROY
1028REPLACE_PTHREAD_MUTEXATTR_SETROBUST
1029REPLACE_PTHREAD_MUTEXATTR_GETROBUST
1030REPLACE_PTHREAD_MUTEXATTR_SETTYPE
1031REPLACE_PTHREAD_MUTEXATTR_GETTYPE
1032REPLACE_PTHREAD_MUTEXATTR_INIT
1033REPLACE_PTHREAD_MUTEX_INIT
1034REPLACE_PTHREAD_ONCE
1035REPLACE_PTHREAD_EXIT
1036REPLACE_PTHREAD_JOIN
1037REPLACE_PTHREAD_DETACH
1038REPLACE_PTHREAD_EQUAL
1039REPLACE_PTHREAD_SELF
1040REPLACE_PTHREAD_ATTR_DESTROY
1041REPLACE_PTHREAD_ATTR_SETDETACHSTATE
1042REPLACE_PTHREAD_ATTR_GETDETACHSTATE
1043REPLACE_PTHREAD_ATTR_INIT
1044REPLACE_PTHREAD_CREATE
1045HAVE_PTHREAD_SPIN_DESTROY
1046HAVE_PTHREAD_SPIN_UNLOCK
1047HAVE_PTHREAD_SPIN_TRYLOCK
1048HAVE_PTHREAD_SPIN_LOCK
1049HAVE_PTHREAD_SPIN_INIT
1050HAVE_PTHREAD_KEY_DELETE
1051HAVE_PTHREAD_GETSPECIFIC
1052HAVE_PTHREAD_SETSPECIFIC
1053HAVE_PTHREAD_KEY_CREATE
1054HAVE_PTHREAD_COND_DESTROY
1055HAVE_PTHREAD_COND_BROADCAST
1056HAVE_PTHREAD_COND_SIGNAL
1057HAVE_PTHREAD_COND_TIMEDWAIT
1058HAVE_PTHREAD_COND_WAIT
1059HAVE_PTHREAD_CONDATTR_DESTROY
1060HAVE_PTHREAD_CONDATTR_INIT
1061HAVE_PTHREAD_COND_INIT
1062HAVE_PTHREAD_RWLOCK_DESTROY
1063HAVE_PTHREAD_RWLOCK_UNLOCK
1064HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK
1065HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK
1066HAVE_PTHREAD_RWLOCK_TRYWRLOCK
1067HAVE_PTHREAD_RWLOCK_TRYRDLOCK
1068HAVE_PTHREAD_RWLOCK_WRLOCK
1069HAVE_PTHREAD_RWLOCK_RDLOCK
1070HAVE_PTHREAD_RWLOCKATTR_DESTROY
1071HAVE_PTHREAD_RWLOCKATTR_INIT
1072HAVE_PTHREAD_RWLOCK_INIT
1073HAVE_PTHREAD_MUTEX_DESTROY
1074HAVE_PTHREAD_MUTEX_UNLOCK
1075HAVE_PTHREAD_MUTEX_TIMEDLOCK
1076HAVE_PTHREAD_MUTEX_TRYLOCK
1077HAVE_PTHREAD_MUTEX_LOCK
1078HAVE_PTHREAD_MUTEXATTR_DESTROY
1079HAVE_PTHREAD_MUTEXATTR_SETROBUST
1080HAVE_PTHREAD_MUTEXATTR_GETROBUST
1081HAVE_PTHREAD_MUTEXATTR_SETTYPE
1082HAVE_PTHREAD_MUTEXATTR_GETTYPE
1083HAVE_PTHREAD_MUTEXATTR_INIT
1084HAVE_PTHREAD_MUTEX_INIT
1085HAVE_PTHREAD_ONCE
1086HAVE_PTHREAD_EXIT
1087HAVE_PTHREAD_JOIN
1088HAVE_PTHREAD_DETACH
1089HAVE_PTHREAD_EQUAL
1090HAVE_PTHREAD_SELF
1091HAVE_PTHREAD_ATTR_DESTROY
1092HAVE_PTHREAD_ATTR_SETDETACHSTATE
1093HAVE_PTHREAD_ATTR_GETDETACHSTATE
1094HAVE_PTHREAD_ATTR_INIT
1095HAVE_PTHREAD_CREATE
1096HAVE_PTHREAD_PROCESS_SHARED
1097HAVE_PTHREAD_MUTEX_ROBUST
1098HAVE_PTHREAD_MUTEX_RECURSIVE
1099HAVE_PTHREAD_CREATE_DETACHED
1100HAVE_PTHREAD_SPINLOCK_T
1101HAVE_PTHREAD_T
1102GNULIB_PTHREAD_MUTEX_TIMEDLOCK
1103GNULIB_PTHREAD_SPIN
1104GNULIB_PTHREAD_TSS
1105GNULIB_PTHREAD_COND
1106GNULIB_PTHREAD_RWLOCK
1107GNULIB_PTHREAD_MUTEX
1108GNULIB_PTHREAD_ONCE
1109GNULIB_PTHREAD_THREAD
1110LIB_NANOSLEEP
1111LIB_SELECT
1112HAVE_SYS_SELECT_H
1113NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
1114NEXT_SYS_SELECT_H
1115REPLACE_SELECT
1116REPLACE_PSELECT
1117HAVE_PSELECT
1118GNULIB_SELECT
1119GNULIB_PSELECT
1120NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1121NEXT_LOCALE_H
1122HAVE_XLOCALE_H
1123REPLACE_STRUCT_LCONV
1124REPLACE_FREELOCALE
1125REPLACE_DUPLOCALE
1126REPLACE_NEWLOCALE
1127REPLACE_SETLOCALE
1128REPLACE_LOCALECONV
1129HAVE_FREELOCALE
1130HAVE_DUPLOCALE
1131HAVE_NEWLOCALE
1132GNULIB_LOCALENAME
1133GNULIB_DUPLOCALE
1134GNULIB_SETLOCALE_NULL
1135GNULIB_SETLOCALE
1136GNULIB_LOCALECONV
1137HAVE_LANGINFO_YESEXPR
1138HAVE_LANGINFO_ERA
1139HAVE_LANGINFO_ALTMON
1140HAVE_LANGINFO_T_FMT_AMPM
1141HAVE_LANGINFO_CODESET
1142HAVE_LANGINFO_H
1143NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1144NEXT_LANGINFO_H
1145REPLACE_NL_LANGINFO
1146HAVE_NL_LANGINFO
1147GNULIB_NL_LANGINFO
1148NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
1149NEXT_CTYPE_H
1150HAVE_ISBLANK
1151GNULIB_ISBLANK
1152LOCALE_TR_UTF8
1153LOCALE_FR
1154gltests_WITNESS
1155HAVE_CRTDEFS_H
1156HAVE_WINT_T
1157NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
1158NEXT_WCHAR_H
1159REPLACE_WCSTOK
1160REPLACE_WCSFTIME
1161REPLACE_WCSWIDTH
1162REPLACE_WCWIDTH
1163REPLACE_WCSNRTOMBS
1164REPLACE_WCSRTOMBS
1165REPLACE_WCRTOMB
1166REPLACE_MBSNRTOWCS
1167REPLACE_MBSRTOWCS
1168REPLACE_MBRLEN
1169REPLACE_MBRTOWC
1170REPLACE_MBSINIT
1171REPLACE_WCTOB
1172REPLACE_BTOWC
1173REPLACE_MBSTATE_T
1174HAVE_DECL_WCWIDTH
1175HAVE_DECL_WCTOB
1176HAVE_WCSFTIME
1177HAVE_WCSWIDTH
1178HAVE_WCSTOK
1179HAVE_WCSSTR
1180HAVE_WCSPBRK
1181HAVE_WCSSPN
1182HAVE_WCSCSPN
1183HAVE_WCSRCHR
1184HAVE_WCSCHR
1185HAVE_WCSDUP
1186HAVE_WCSXFRM
1187HAVE_WCSCOLL
1188HAVE_WCSNCASECMP
1189HAVE_WCSCASECMP
1190HAVE_WCSNCMP
1191HAVE_WCSCMP
1192HAVE_WCSNCAT
1193HAVE_WCSCAT
1194HAVE_WCPNCPY
1195HAVE_WCSNCPY
1196HAVE_WCPCPY
1197HAVE_WCSCPY
1198HAVE_WCSNLEN
1199HAVE_WCSLEN
1200HAVE_WMEMSET
1201HAVE_WMEMMOVE
1202HAVE_WMEMCPY
1203HAVE_WMEMCMP
1204HAVE_WMEMCHR
1205HAVE_WCSNRTOMBS
1206HAVE_WCSRTOMBS
1207HAVE_WCRTOMB
1208HAVE_MBSNRTOWCS
1209HAVE_MBSRTOWCS
1210HAVE_MBRLEN
1211HAVE_MBRTOWC
1212HAVE_MBSINIT
1213HAVE_BTOWC
1214GNULIB_WCSFTIME
1215GNULIB_WCSWIDTH
1216GNULIB_WCSTOK
1217GNULIB_WCSSTR
1218GNULIB_WCSPBRK
1219GNULIB_WCSSPN
1220GNULIB_WCSCSPN
1221GNULIB_WCSRCHR
1222GNULIB_WCSCHR
1223GNULIB_WCSDUP
1224GNULIB_WCSXFRM
1225GNULIB_WCSCOLL
1226GNULIB_WCSNCASECMP
1227GNULIB_WCSCASECMP
1228GNULIB_WCSNCMP
1229GNULIB_WCSCMP
1230GNULIB_WCSNCAT
1231GNULIB_WCSCAT
1232GNULIB_WCPNCPY
1233GNULIB_WCSNCPY
1234GNULIB_WCPCPY
1235GNULIB_WCSCPY
1236GNULIB_WCSNLEN
1237GNULIB_WCSLEN
1238GNULIB_WMEMSET
1239GNULIB_WMEMMOVE
1240GNULIB_WMEMCPY
1241GNULIB_WMEMCMP
1242GNULIB_WMEMCHR
1243GNULIB_WCWIDTH
1244GNULIB_WCSNRTOMBS
1245GNULIB_WCSRTOMBS
1246GNULIB_WCRTOMB
1247GNULIB_MBSNRTOWCS
1248GNULIB_MBSRTOWCS
1249GNULIB_MBRLEN
1250GNULIB_MBRTOWC
1251GNULIB_MBSINIT
1252GNULIB_WCTOB
1253GNULIB_BTOWC
1254VALGRIND
1255HAVE_UNISTD_H
1256NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
1257NEXT_UNISTD_H
1258UNISTD_H_DEFINES_STRUCT_TIMESPEC
1259PTHREAD_H_DEFINES_STRUCT_TIMESPEC
1260SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1261TIME_H_DEFINES_STRUCT_TIMESPEC
1262NEXT_AS_FIRST_DIRECTIVE_TIME_H
1263NEXT_TIME_H
1264LTLIBMULTITHREAD
1265LIBMULTITHREAD
1266LTLIBTHREAD
1267LIBTHREAD
1268LIBSTDTHREAD
1269LIB_SCHED_YIELD
1270LIBPMULTITHREAD
1271HAVE_SYS_UIO_H
1272NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
1273NEXT_SYS_UIO_H
1274HAVE_STRINGS_H
1275NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
1276NEXT_STRINGS_H
1277NEXT_AS_FIRST_DIRECTIVE_STRING_H
1278NEXT_STRING_H
1279HAVE_DECL_STRNCASECMP
1280HAVE_STRCASECMP
1281HAVE_FFS
1282GNULIB_FFS
1283NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
1284NEXT_STDLIB_H
1285NEXT_AS_FIRST_DIRECTIVE_STDIO_H
1286NEXT_STDIO_H
1287NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1288NEXT_STDDEF_H
1289GL_GENERATE_STDDEF_H_FALSE
1290GL_GENERATE_STDDEF_H_TRUE
1291STDDEF_H
1292HAVE_WCHAR_T
1293HAVE_MAX_ALIGN_T
1294REPLACE_NULL
1295HAVE__BOOL
1296GL_GENERATE_STDBOOL_H_FALSE
1297GL_GENERATE_STDBOOL_H_TRUE
1298STDBOOL_H
1299GL_GENERATE_STDALIGN_H_FALSE
1300GL_GENERATE_STDALIGN_H_TRUE
1301STDALIGN_H
1302PMCCABE
1303GL_GENERATE_NETINET_IN_H_FALSE
1304GL_GENERATE_NETINET_IN_H_TRUE
1305NETINET_IN_H
1306HAVE_NETINET_IN_H
1307NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1308NEXT_NETINET_IN_H
1309HAVE_NETDB_H
1310NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1311NEXT_NETDB_H
1312REPLACE_GETADDRINFO
1313REPLACE_GAI_STRERROR
1314HAVE_DECL_GETNAMEINFO
1315HAVE_DECL_GETADDRINFO
1316HAVE_DECL_GAI_STRERROR
1317HAVE_DECL_FREEADDRINFO
1318HAVE_STRUCT_ADDRINFO
1319GNULIB_GETADDRINFO
1320REPLACE_WCTOMB
1321REPLACE_UNSETENV
1322REPLACE_STRTOLD
1323REPLACE_STRTOD
1324REPLACE_SETSTATE
1325REPLACE_SETENV
1326REPLACE_REALPATH
1327REPLACE_REALLOC
1328REPLACE_RANDOM_R
1329REPLACE_RANDOM
1330REPLACE_QSORT_R
1331REPLACE_PUTENV
1332REPLACE_PTSNAME_R
1333REPLACE_PTSNAME
1334REPLACE_MKSTEMP
1335REPLACE_MBTOWC
1336REPLACE_MALLOC
1337REPLACE_INITSTATE
1338REPLACE_CANONICALIZE_FILE_NAME
1339REPLACE_CALLOC
1340HAVE_DECL_UNSETENV
1341HAVE_UNLOCKPT
1342HAVE_SYS_LOADAVG_H
1343HAVE_STRUCT_RANDOM_DATA
1344HAVE_STRTOULL
1345HAVE_STRTOLL
1346HAVE_STRTOLD
1347HAVE_STRTOD
1348HAVE_DECL_SETSTATE
1349HAVE_SETSTATE
1350HAVE_DECL_SETENV
1351HAVE_SETENV
1352HAVE_SECURE_GETENV
1353HAVE_RPMATCH
1354HAVE_REALPATH
1355HAVE_REALLOCARRAY
1356HAVE_RANDOM_R
1357HAVE_RANDOM_H
1358HAVE_RANDOM
1359HAVE_QSORT_R
1360HAVE_PTSNAME_R
1361HAVE_PTSNAME
1362HAVE_POSIX_OPENPT
1363HAVE_MKSTEMPS
1364HAVE_MKSTEMP
1365HAVE_MKOSTEMPS
1366HAVE_MKOSTEMP
1367HAVE_MKDTEMP
1368HAVE_MBTOWC
1369HAVE_DECL_INITSTATE
1370HAVE_INITSTATE
1371HAVE_GRANTPT
1372HAVE_GETSUBOPT
1373HAVE_DECL_GETLOADAVG
1374HAVE_CANONICALIZE_FILE_NAME
1375HAVE_ATOLL
1376HAVE__EXIT
1377GNULIB_WCTOMB
1378GNULIB_UNSETENV
1379GNULIB_UNLOCKPT
1380GNULIB_SYSTEM_POSIX
1381GNULIB_STRTOULL
1382GNULIB_STRTOLL
1383GNULIB_STRTOLD
1384GNULIB_STRTOD
1385GNULIB_SETENV
1386GNULIB_SECURE_GETENV
1387GNULIB_RPMATCH
1388GNULIB_REALPATH
1389GNULIB_REALLOC_POSIX
1390GNULIB_REALLOCARRAY
1391GNULIB_RANDOM_R
1392GNULIB_RANDOM
1393GNULIB_QSORT_R
1394GNULIB_PUTENV
1395GNULIB_PTSNAME_R
1396GNULIB_PTSNAME
1397GNULIB_POSIX_OPENPT
1398GNULIB_MKSTEMPS
1399GNULIB_MKSTEMP
1400GNULIB_MKOSTEMPS
1401GNULIB_MKOSTEMP
1402GNULIB_MKDTEMP
1403GNULIB_MBTOWC
1404GNULIB_MALLOC_POSIX
1405GNULIB_GRANTPT
1406GNULIB_GETSUBOPT
1407GNULIB_GETLOADAVG
1408GNULIB_CANONICALIZE_FILE_NAME
1409GNULIB_CALLOC_POSIX
1410GNULIB_ATOLL
1411GNULIB__EXIT
1412HAVE_LD_VERSION_SCRIPT_FALSE
1413HAVE_LD_VERSION_SCRIPT_TRUE
1414HAVE_LD_OUTPUT_DEF_FALSE
1415HAVE_LD_OUTPUT_DEF_TRUE
1416LDDPOSTPROC
1417LDDPROG
1418OBJDUMP
1419NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1420NEXT_INTTYPES_H
1421UINT64_MAX_EQ_ULONG_MAX
1422UINT32_MAX_LT_UINTMAX_MAX
1423PRIPTR_PREFIX
1424PRI_MACROS_BROKEN
1425INT64_MAX_EQ_LONG_MAX
1426INT32_MAX_LT_INTMAX_MAX
1427REPLACE_STRTOUMAX
1428REPLACE_STRTOIMAX
1429HAVE_IMAXDIV_T
1430HAVE_DECL_STRTOUMAX
1431HAVE_DECL_STRTOIMAX
1432HAVE_DECL_IMAXDIV
1433HAVE_DECL_IMAXABS
1434GNULIB_STRTOUMAX
1435GNULIB_STRTOIMAX
1436GNULIB_IMAXDIV
1437GNULIB_IMAXABS
1438GL_GENERATE_STDINT_H_FALSE
1439GL_GENERATE_STDINT_H_TRUE
1440STDINT_H
1441HAVE_SYS_INTTYPES_H
1442HAVE_SYS_BITYPES_H
1443HAVE_C99_STDINT_H
1444WINT_T_SUFFIX
1445WCHAR_T_SUFFIX
1446SIG_ATOMIC_T_SUFFIX
1447SIZE_T_SUFFIX
1448PTRDIFF_T_SUFFIX
1449HAVE_SIGNED_WINT_T
1450HAVE_SIGNED_WCHAR_T
1451HAVE_SIGNED_SIG_ATOMIC_T
1452BITSIZEOF_WINT_T
1453BITSIZEOF_WCHAR_T
1454BITSIZEOF_SIG_ATOMIC_T
1455BITSIZEOF_SIZE_T
1456BITSIZEOF_PTRDIFF_T
1457APPLE_UNIVERSAL_BUILD
1458HAVE_STDINT_H
1459NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1460NEXT_STDINT_H
1461HAVE_SYS_TYPES_H
1462HAVE_INTTYPES_H
1463HAVE_WCHAR_H
1464GNULIB_OVERRIDES_WINT_T
1465GL_GENERATE_LIMITS_H_FALSE
1466GL_GENERATE_LIMITS_H_TRUE
1467LIMITS_H
1468NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1469NEXT_LIMITS_H
1470INET_PTON_LIB
1471HAVE_SYS_SOCKET_H
1472NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1473NEXT_SYS_SOCKET_H
1474HAVE_ACCEPT4
1475HAVE_SA_FAMILY_T
1476HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1477HAVE_STRUCT_SOCKADDR_STORAGE
1478GNULIB_ACCEPT4
1479GNULIB_SHUTDOWN
1480GNULIB_SETSOCKOPT
1481GNULIB_SENDTO
1482GNULIB_RECVFROM
1483GNULIB_SEND
1484GNULIB_RECV
1485GNULIB_LISTEN
1486GNULIB_GETSOCKOPT
1487GNULIB_GETSOCKNAME
1488GNULIB_GETPEERNAME
1489GNULIB_BIND
1490GNULIB_ACCEPT
1491GNULIB_CONNECT
1492GNULIB_SOCKET
1493INET_NTOP_LIB
1494REPLACE_LOCALTIME
1495REPLACE_GMTIME
1496REPLACE_TZSET
1497REPLACE_TIMEGM
1498REPLACE_STRFTIME
1499REPLACE_NANOSLEEP
1500REPLACE_MKTIME
1501REPLACE_LOCALTIME_R
1502REPLACE_CTIME
1503HAVE_TIMEZONE_T
1504HAVE_TZSET
1505HAVE_TIMEGM
1506HAVE_STRPTIME
1507HAVE_NANOSLEEP
1508HAVE_DECL_LOCALTIME_R
1509GNULIB_TZSET
1510GNULIB_TIME_RZ
1511GNULIB_TIME_R
1512GNULIB_TIMEGM
1513GNULIB_STRPTIME
1514GNULIB_STRFTIME
1515GNULIB_NANOSLEEP
1516GNULIB_LOCALTIME
1517GNULIB_MKTIME
1518GNULIB_CTIME
1519NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1520NEXT_SYS_TIME_H
1521REPLACE_STRUCT_TIMEVAL
1522REPLACE_GETTIMEOFDAY
1523HAVE_SYS_TIME_H
1524HAVE_STRUCT_TIMEVAL
1525HAVE_GETTIMEOFDAY
1526GNULIB_GETTIMEOFDAY
1527WINDOWS_STAT_INODES
1528WINDOWS_64_BIT_OFF_T
1529NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1530NEXT_SYS_TYPES_H
1531WINDOWS_64_BIT_ST_SIZE
1532WINDOWS_STAT_TIMESPEC
1533NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1534NEXT_SYS_STAT_H
1535REPLACE_UTIMENSAT
1536REPLACE_STAT
1537REPLACE_MKNOD
1538REPLACE_MKFIFO
1539REPLACE_MKDIR
1540REPLACE_LSTAT
1541REPLACE_FUTIMENS
1542REPLACE_FSTATAT
1543REPLACE_FSTAT
1544REPLACE_FCHMODAT
1545HAVE_UTIMENSAT
1546HAVE_MKNODAT
1547HAVE_MKNOD
1548HAVE_MKFIFOAT
1549HAVE_MKFIFO
1550HAVE_MKDIRAT
1551HAVE_LSTAT
1552HAVE_LCHMOD
1553HAVE_FUTIMENS
1554HAVE_FSTATAT
1555HAVE_FCHMODAT
1556GNULIB_OVERRIDES_STRUCT_STAT
1557GNULIB_UTIMENSAT
1558GNULIB_STAT
1559GNULIB_MKNODAT
1560GNULIB_MKNOD
1561GNULIB_MKFIFOAT
1562GNULIB_MKFIFO
1563GNULIB_MKDIRAT
1564GNULIB_LSTAT
1565GNULIB_LCHMOD
1566GNULIB_FUTIMENS
1567GNULIB_FSTATAT
1568GNULIB_FSTAT
1569GNULIB_FCHMODAT
1570REPLACE_VSPRINTF
1571REPLACE_VSNPRINTF
1572REPLACE_VPRINTF
1573REPLACE_VFPRINTF
1574REPLACE_VDPRINTF
1575REPLACE_VASPRINTF
1576REPLACE_TMPFILE
1577REPLACE_STDIO_WRITE_FUNCS
1578REPLACE_STDIO_READ_FUNCS
1579REPLACE_SPRINTF
1580REPLACE_SNPRINTF
1581REPLACE_RENAMEAT
1582REPLACE_RENAME
1583REPLACE_REMOVE
1584REPLACE_PRINTF
1585REPLACE_POPEN
1586REPLACE_PERROR
1587REPLACE_OBSTACK_PRINTF
1588REPLACE_GETLINE
1589REPLACE_GETDELIM
1590REPLACE_FTELLO
1591REPLACE_FTELL
1592REPLACE_FSEEKO
1593REPLACE_FSEEK
1594REPLACE_FREOPEN
1595REPLACE_FPURGE
1596REPLACE_FPRINTF
1597REPLACE_FOPEN
1598REPLACE_FFLUSH
1599REPLACE_FDOPEN
1600REPLACE_FCLOSE
1601REPLACE_DPRINTF
1602HAVE_VDPRINTF
1603HAVE_VASPRINTF
1604HAVE_RENAMEAT
1605HAVE_POPEN
1606HAVE_PCLOSE
1607HAVE_FTELLO
1608HAVE_FSEEKO
1609HAVE_DPRINTF
1610HAVE_DECL_VSNPRINTF
1611HAVE_DECL_SNPRINTF
1612HAVE_DECL_OBSTACK_PRINTF
1613HAVE_DECL_GETLINE
1614HAVE_DECL_GETDELIM
1615HAVE_DECL_FTELLO
1616HAVE_DECL_FSEEKO
1617HAVE_DECL_FPURGE
1618GNULIB_VSPRINTF_POSIX
1619GNULIB_VSNPRINTF
1620GNULIB_VPRINTF_POSIX
1621GNULIB_VPRINTF
1622GNULIB_VFPRINTF_POSIX
1623GNULIB_VFPRINTF
1624GNULIB_VDPRINTF
1625GNULIB_VSCANF
1626GNULIB_VFSCANF
1627GNULIB_VASPRINTF
1628GNULIB_TMPFILE
1629GNULIB_STDIO_H_SIGPIPE
1630GNULIB_STDIO_H_NONBLOCKING
1631GNULIB_SPRINTF_POSIX
1632GNULIB_SNPRINTF
1633GNULIB_SCANF
1634GNULIB_RENAMEAT
1635GNULIB_RENAME
1636GNULIB_REMOVE
1637GNULIB_PUTS
1638GNULIB_PUTCHAR
1639GNULIB_PUTC
1640GNULIB_PRINTF_POSIX
1641GNULIB_PRINTF
1642GNULIB_POPEN
1643GNULIB_PERROR
1644GNULIB_PCLOSE
1645GNULIB_OBSTACK_PRINTF_POSIX
1646GNULIB_OBSTACK_PRINTF
1647GNULIB_GETLINE
1648GNULIB_GETDELIM
1649GNULIB_GETCHAR
1650GNULIB_GETC
1651GNULIB_FWRITE
1652GNULIB_FTELLO
1653GNULIB_FTELL
1654GNULIB_FSEEKO
1655GNULIB_FSEEK
1656GNULIB_FSCANF
1657GNULIB_FREOPEN
1658GNULIB_FREAD
1659GNULIB_FPUTS
1660GNULIB_FPUTC
1661GNULIB_FPURGE
1662GNULIB_FPRINTF_POSIX
1663GNULIB_FPRINTF
1664GNULIB_FOPEN
1665GNULIB_FGETS
1666GNULIB_FGETC
1667GNULIB_FFLUSH
1668GNULIB_FDOPEN
1669GNULIB_FCLOSE
1670GNULIB_DPRINTF
1671REPLACE_ITOLD
1672GL_GENERATE_FLOAT_H_FALSE
1673GL_GENERATE_FLOAT_H_TRUE
1674FLOAT_H
1675NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1676NEXT_FLOAT_H
1677NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1678NEXT_FCNTL_H
1679REPLACE_OPENAT
1680REPLACE_OPEN
1681REPLACE_FCNTL
1682REPLACE_CREAT
1683HAVE_OPENAT
1684HAVE_FCNTL
1685GNULIB_OPENAT
1686GNULIB_OPEN
1687GNULIB_NONBLOCKING
1688GNULIB_FCNTL
1689GNULIB_CREAT
1690UNDEFINE_STRTOK_R
1691REPLACE_STRSIGNAL
1692REPLACE_STRERROR_R
1693REPLACE_STRERROR
1694REPLACE_STRTOK_R
1695REPLACE_STRCASESTR
1696REPLACE_STRSTR
1697REPLACE_STRNLEN
1698REPLACE_STRNDUP
1699REPLACE_STRNCAT
1700REPLACE_STRDUP
1701REPLACE_STRCHRNUL
1702REPLACE_STPNCPY
1703REPLACE_MEMMEM
1704REPLACE_MEMCHR
1705HAVE_STRVERSCMP
1706HAVE_DECL_STRSIGNAL
1707HAVE_DECL_STRERROR_R
1708HAVE_DECL_STRTOK_R
1709HAVE_STRCASESTR
1710HAVE_STRSEP
1711HAVE_STRPBRK
1712HAVE_DECL_STRNLEN
1713HAVE_DECL_STRNDUP
1714HAVE_DECL_STRDUP
1715HAVE_STRCHRNUL
1716HAVE_STPNCPY
1717HAVE_STPCPY
1718HAVE_RAWMEMCHR
1719HAVE_DECL_MEMRCHR
1720HAVE_MEMPCPY
1721HAVE_DECL_MEMMEM
1722HAVE_MEMCHR
1723HAVE_FFSLL
1724HAVE_FFSL
1725HAVE_EXPLICIT_BZERO
1726HAVE_MBSLEN
1727GNULIB_STRVERSCMP
1728GNULIB_STRSIGNAL
1729GNULIB_STRERROR_R
1730GNULIB_STRERROR
1731GNULIB_MBSTOK_R
1732GNULIB_MBSSEP
1733GNULIB_MBSSPN
1734GNULIB_MBSPBRK
1735GNULIB_MBSCSPN
1736GNULIB_MBSCASESTR
1737GNULIB_MBSPCASECMP
1738GNULIB_MBSNCASECMP
1739GNULIB_MBSCASECMP
1740GNULIB_MBSSTR
1741GNULIB_MBSRCHR
1742GNULIB_MBSCHR
1743GNULIB_MBSNLEN
1744GNULIB_MBSLEN
1745GNULIB_STRTOK_R
1746GNULIB_STRCASESTR
1747GNULIB_STRSTR
1748GNULIB_STRSEP
1749GNULIB_STRPBRK
1750GNULIB_STRNLEN
1751GNULIB_STRNDUP
1752GNULIB_STRNCAT
1753GNULIB_STRDUP
1754GNULIB_STRCHRNUL
1755GNULIB_STPNCPY
1756GNULIB_STPCPY
1757GNULIB_RAWMEMCHR
1758GNULIB_MEMRCHR
1759GNULIB_MEMPCPY
1760GNULIB_MEMMEM
1761GNULIB_MEMCHR
1762GNULIB_FFSLL
1763GNULIB_FFSL
1764GNULIB_EXPLICIT_BZERO
1765EOVERFLOW_VALUE
1766EOVERFLOW_HIDDEN
1767ENOLINK_VALUE
1768ENOLINK_HIDDEN
1769EMULTIHOP_VALUE
1770EMULTIHOP_HIDDEN
1771GL_GENERATE_ERRNO_H_FALSE
1772GL_GENERATE_ERRNO_H_TRUE
1773ERRNO_H
1774NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1775NEXT_ERRNO_H
1776HAVE_MSVC_INVALID_PARAMETER_HANDLER
1777GL_GENERATE_BYTESWAP_H_FALSE
1778GL_GENERATE_BYTESWAP_H_TRUE
1779BYTESWAP_H
1780HAVE_WS2TCPIP_H
1781HAVE_FEATURES_H
1782NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1783NEXT_ARPA_INET_H
1784PRAGMA_COLUMNS
1785PRAGMA_SYSTEM_HEADER
1786INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1787INCLUDE_NEXT
1788HAVE_ARPA_INET_H
1789REPLACE_INET_PTON
1790REPLACE_INET_NTOP
1791HAVE_DECL_INET_PTON
1792HAVE_DECL_INET_NTOP
1793GNULIB_INET_PTON
1794GNULIB_INET_NTOP
1795HAVE_ALLOCA_H
1796GL_GENERATE_ALLOCA_H_FALSE
1797GL_GENERATE_ALLOCA_H_TRUE
1798ALLOCA_H
1799ALLOCA
1800LTALLOCA
1801GL_COND_LIBTOOL_FALSE
1802GL_COND_LIBTOOL_TRUE
1803HAVE_LIBUNISTRING_FALSE
1804HAVE_LIBUNISTRING_TRUE
1805LIBUNISTRING
1806LIBPTHREAD_PREFIX
1807LTLIBPTHREAD
1808LIBPTHREAD
1809HAVE_LIBPTHREAD
1810LIBRT_PREFIX
1811LTLIBRT
1812LIBRT
1813HAVE_LIBRT
1814HAVE_LIBCRYPTO_FALSE
1815HAVE_LIBCRYPTO_TRUE
1816LIBCRYPTO_PREFIX
1817LTLIBCRYPTO
1818LIBCRYPTO
1819HAVE_LIBCRYPTO
1820LIBSECCOMP_PREFIX
1821LTLIBSECCOMP
1822LIBSECCOMP
1823HAVE_LIBSECCOMP
1824HAVE_SECCOMP_TESTS_FALSE
1825HAVE_SECCOMP_TESTS_TRUE
1826HAVE_FORK_FALSE
1827HAVE_FORK_TRUE
1828POSUB
1829LTLIBINTL
1830LIBINTL
1831INTLLIBS
1832LTLIBICONV
1833LIBICONV
1834INTL_MACOSX_LIBS
1835XGETTEXT_EXTRA_OPTIONS
1836MSGMERGE_FOR_MSGFMT_OPTION
1837MSGMERGE
1838XGETTEXT_015
1839XGETTEXT
1840GMSGFMT_015
1841GMSGFMT
1842MSGFMT
1843GETTEXT_MACRO_VERSION
1844USE_NLS
1845GTK_DOC_USE_REBASE_FALSE
1846GTK_DOC_USE_REBASE_TRUE
1847GTK_DOC_USE_LIBTOOL_FALSE
1848GTK_DOC_USE_LIBTOOL_TRUE
1849GTK_DOC_BUILD_PDF_FALSE
1850GTK_DOC_BUILD_PDF_TRUE
1851GTK_DOC_BUILD_HTML_FALSE
1852GTK_DOC_BUILD_HTML_TRUE
1853ENABLE_GTK_DOC_FALSE
1854ENABLE_GTK_DOC_TRUE
1855HAVE_GTK_DOC_FALSE
1856HAVE_GTK_DOC_TRUE
1857GTKDOC_DEPS_LIBS
1858GTKDOC_DEPS_CFLAGS
1859HTML_DIR
1860GTKDOC_MKPDF
1861GTKDOC_REBASE
1862GTKDOC_CHECK_PATH
1863GTKDOC_CHECK
1864ENABLE_TESTS_FALSE
1865ENABLE_TESTS_TRUE
1866LIBSOCKET
1867HAVE_WINSOCK2_H
1868REPLACE_IOCTL
1869SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1870SYS_IOCTL_H_HAVE_WINSOCK2_H
1871GNULIB_IOCTL
1872UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1873UNISTD_H_HAVE_WINSOCK2_H
1874REPLACE_WRITE
1875REPLACE_USLEEP
1876REPLACE_UNLINKAT
1877REPLACE_UNLINK
1878REPLACE_TTYNAME_R
1879REPLACE_TRUNCATE
1880REPLACE_SYMLINKAT
1881REPLACE_SYMLINK
1882REPLACE_SLEEP
1883REPLACE_RMDIR
1884REPLACE_READLINKAT
1885REPLACE_READLINK
1886REPLACE_READ
1887REPLACE_PWRITE
1888REPLACE_PREAD
1889REPLACE_LSEEK
1890REPLACE_LINKAT
1891REPLACE_LINK
1892REPLACE_LCHOWN
1893REPLACE_ISATTY
1894REPLACE_GETPASS
1895REPLACE_GETPAGESIZE
1896REPLACE_GETGROUPS
1897REPLACE_GETLOGIN_R
1898REPLACE_GETDTABLESIZE
1899REPLACE_GETDOMAINNAME
1900REPLACE_GETCWD
1901REPLACE_FTRUNCATE
1902REPLACE_FCHOWNAT
1903REPLACE_FACCESSAT
1904REPLACE_DUP2
1905REPLACE_DUP
1906REPLACE_CLOSE
1907REPLACE_CHOWN
1908REPLACE_ACCESS
1909HAVE_SYS_PARAM_H
1910HAVE_OS_H
1911HAVE_DECL_TTYNAME_R
1912HAVE_DECL_TRUNCATE
1913HAVE_DECL_SETHOSTNAME
1914HAVE_DECL_GETUSERSHELL
1915HAVE_DECL_GETPAGESIZE
1916HAVE_DECL_GETLOGIN_R
1917HAVE_DECL_GETLOGIN
1918HAVE_DECL_GETDOMAINNAME
1919HAVE_DECL_FDATASYNC
1920HAVE_DECL_FCHDIR
1921HAVE_DECL_ENVIRON
1922HAVE_USLEEP
1923HAVE_UNLINKAT
1924HAVE_SYMLINKAT
1925HAVE_SYMLINK
1926HAVE_SLEEP
1927HAVE_SETHOSTNAME
1928HAVE_READLINKAT
1929HAVE_READLINK
1930HAVE_PWRITE
1931HAVE_PREAD
1932HAVE_PIPE2
1933HAVE_PIPE
1934HAVE_LINKAT
1935HAVE_LINK
1936HAVE_LCHOWN
1937HAVE_GROUP_MEMBER
1938HAVE_GETRANDOM
1939HAVE_GETPASS
1940HAVE_GETPAGESIZE
1941HAVE_GETLOGIN
1942HAVE_GETHOSTNAME
1943HAVE_GETGROUPS
1944HAVE_GETENTROPY
1945HAVE_GETDTABLESIZE
1946HAVE_FTRUNCATE
1947HAVE_FSYNC
1948HAVE_FDATASYNC
1949HAVE_FCHOWNAT
1950HAVE_FCHDIR
1951HAVE_FACCESSAT
1952HAVE_EUIDACCESS
1953HAVE_DUP3
1954HAVE_DUP2
1955HAVE_COPY_FILE_RANGE
1956HAVE_CHOWN
1957GNULIB_WRITE
1958GNULIB_USLEEP
1959GNULIB_UNLINKAT
1960GNULIB_UNLINK
1961GNULIB_UNISTD_H_SIGPIPE
1962GNULIB_UNISTD_H_NONBLOCKING
1963GNULIB_TTYNAME_R
1964GNULIB_TRUNCATE
1965GNULIB_SYMLINKAT
1966GNULIB_SYMLINK
1967GNULIB_SLEEP
1968GNULIB_SETHOSTNAME
1969GNULIB_RMDIR
1970GNULIB_READLINKAT
1971GNULIB_READLINK
1972GNULIB_READ
1973GNULIB_PWRITE
1974GNULIB_PREAD
1975GNULIB_PIPE2
1976GNULIB_PIPE
1977GNULIB_LSEEK
1978GNULIB_LINKAT
1979GNULIB_LINK
1980GNULIB_LCHOWN
1981GNULIB_ISATTY
1982GNULIB_GROUP_MEMBER
1983GNULIB_GETUSERSHELL
1984GNULIB_GETRANDOM
1985GNULIB_GETPASS
1986GNULIB_GETPAGESIZE
1987GNULIB_GETOPT_POSIX
1988GNULIB_GETLOGIN_R
1989GNULIB_GETLOGIN
1990GNULIB_GETHOSTNAME
1991GNULIB_GETGROUPS
1992GNULIB_GETENTROPY
1993GNULIB_GETDTABLESIZE
1994GNULIB_GETDOMAINNAME
1995GNULIB_GETCWD
1996GNULIB_FTRUNCATE
1997GNULIB_FSYNC
1998GNULIB_FDATASYNC
1999GNULIB_FCHOWNAT
2000GNULIB_FCHDIR
2001GNULIB_FACCESSAT
2002GNULIB_EUIDACCESS
2003GNULIB_ENVIRON
2004GNULIB_DUP3
2005GNULIB_DUP2
2006GNULIB_DUP
2007GNULIB_COPY_FILE_RANGE
2008GNULIB_CLOSE
2009GNULIB_CHOWN
2010GNULIB_CHDIR
2011GNULIB_ACCESS
2012ENABLE_OPENSSL_FALSE
2013ENABLE_OPENSSL_TRUE
2014ENABLE_OCSP_FALSE
2015ENABLE_OCSP_TRUE
2016ENABLE_GOST_FALSE
2017ENABLE_GOST_TRUE
2018ENABLE_ECDHE_FALSE
2019ENABLE_ECDHE_TRUE
2020ENABLE_DHE_FALSE
2021ENABLE_DHE_TRUE
2022ENABLE_ANON_FALSE
2023ENABLE_ANON_TRUE
2024ENABLE_PSK_FALSE
2025ENABLE_PSK_TRUE
2026ENABLE_SRP_FALSE
2027ENABLE_SRP_TRUE
2028ENABLE_HEARTBEAT_FALSE
2029ENABLE_HEARTBEAT_TRUE
2030ENABLE_ALPN_FALSE
2031ENABLE_ALPN_TRUE
2032ENABLE_DTLS_SRTP_FALSE
2033ENABLE_DTLS_SRTP_TRUE
2034ENABLE_SSL2_FALSE
2035ENABLE_SSL2_TRUE
2036ENABLE_SSL3_FALSE
2037ENABLE_SSL3_TRUE
2038ALLOW_SHA1_FALSE
2039ALLOW_SHA1_TRUE
2040STRICT_DER_TIME_FALSE
2041STRICT_DER_TIME_TRUE
2042ENABLE_MINITASN1_FALSE
2043ENABLE_MINITASN1_TRUE
2044LIBTASN1_LIBS
2045LIBTASN1_CFLAGS
2046GMP_LIBS
2047GMP_CFLAGS
2048ENABLE_NETTLE_FALSE
2049ENABLE_NETTLE_TRUE
2050HOGWEED_LIBS
2051HOGWEED_CFLAGS
2052NETTLE_LIBS
2053NETTLE_CFLAGS
2054DLL_SSL_VERSION
2055DLL_VERSION
2056CRYWRAP_PATCHLEVEL
2057CXX_LT_AGE
2058CXX_LT_REVISION
2059CXX_LT_CURRENT
2060LT_XSSL_AGE
2061LT_XSSL_REVISION
2062LT_XSSL_CURRENT
2063LT_DANE_AGE
2064LT_DANE_REVISION
2065LT_DANE_CURRENT
2066LT_SSL_AGE
2067LT_SSL_REVISION
2068LT_SSL_CURRENT
2069LT_AGE
2070LT_REVISION
2071LT_CURRENT
2072HAVE_GETENTROPY_FALSE
2073HAVE_GETENTROPY_TRUE
2074HAVE_KERN_ARND_FALSE
2075HAVE_KERN_ARND_TRUE
2076HAVE_GCC_FALSE
2077HAVE_GCC_TRUE
2078HAVE_GCC_GNU89_INLINE_OPTION_FALSE
2079HAVE_GCC_GNU89_INLINE_OPTION_TRUE
2080ASM_X86_FALSE
2081ASM_X86_TRUE
2082ASM_X86_32_FALSE
2083ASM_X86_32_TRUE
2084ASM_X86_64_FALSE
2085ASM_X86_64_TRUE
2086ASM_AARCH64_FALSE
2087ASM_AARCH64_TRUE
2088ENABLE_PADLOCK_FALSE
2089ENABLE_PADLOCK_TRUE
2090ENABLE_PADLOCK
2091LIBATOMIC_LIBS
2092DEFINE_IOVEC_T
2093ENABLE_TLS13_INTEROP_FALSE
2094ENABLE_TLS13_INTEROP_TRUE
2095ELF_FALSE
2096ELF_TRUE
2097MACOSX_FALSE
2098MACOSX_TRUE
2099WINDOWS_FALSE
2100WINDOWS_TRUE
2101ANDROID_FALSE
2102ANDROID_TRUE
2103ENABLE_CXX_FALSE
2104ENABLE_CXX_TRUE
2105NUMBER_VERSION
2106PATCH_VERSION
2107MINOR_VERSION
2108MAJOR_VERSION
2109ENABLE_TOOLS_FALSE
2110ENABLE_TOOLS_TRUE
2111ENABLE_MANPAGES_FALSE
2112ENABLE_MANPAGES_TRUE
2113ENABLE_DOC_FALSE
2114ENABLE_DOC_TRUE
2115DISABLE_BASH_TESTS_FALSE
2116DISABLE_BASH_TESTS_TRUE
2117MAINT
2118MAINTAINER_MODE_FALSE
2119MAINTAINER_MODE_TRUE
2120CODE_COVERAGE_LIBS
2121CODE_COVERAGE_CXXFLAGS
2122CODE_COVERAGE_CFLAGS
2123CODE_COVERAGE_CPPFLAGS
2124GENHTML
2125LCOV
2126GCOV
2127ifnGNUmake
2128ifGNUmake
2129CODE_COVERAGE_ENABLED
2130CODE_COVERAGE_ENABLED_FALSE
2131CODE_COVERAGE_ENABLED_TRUE
2132SED
2133YFLAGS
2134YACC
2135am__fastdepCXX_FALSE
2136am__fastdepCXX_TRUE
2137CXXDEPMODE
2138ac_ct_CXX
2139CXXFLAGS
2140CXX
2141am__fastdepCCAS_FALSE
2142am__fastdepCCAS_TRUE
2143CCASDEPMODE
2144CCASFLAGS
2145CCAS
2146RANLIB
2147ARFLAGS
2148ac_ct_AR
2149AR
2150EGREP
2151GREP
2152CPP
2153am__fastdepCC_FALSE
2154am__fastdepCC_TRUE
2155CCDEPMODE
2156am__nodep
2157AMDEPBACKSLASH
2158AMDEP_FALSE
2159AMDEP_TRUE
2160am__include
2161DEPDIR
2162OBJEXT
2163EXEEXT
2164ac_ct_CC
2165CPPFLAGS
2166LDFLAGS
2167CFLAGS
2168CC
2169PKG_CONFIG_LIBDIR
2170PKG_CONFIG_PATH
2171PKG_CONFIG
2172AM_BACKSLASH
2173AM_DEFAULT_VERBOSITY
2174AM_DEFAULT_V
2175AM_V
2176am__untar
2177am__tar
2178AMTAR
2179am__leading_dot
2180SET_MAKE
2181AWK
2182mkdir_p
2183MKDIR_P
2184INSTALL_STRIP_PROGRAM
2185STRIP
2186install_sh
2187MAKEINFO
2188AUTOHEADER
2189AUTOMAKE
2190AUTOCONF
2191ACLOCAL
2192VERSION
2193PACKAGE
2194CYGPATH_W
2195am__isrc
2196INSTALL_DATA
2197INSTALL_SCRIPT
2198INSTALL_PROGRAM
2199host_os
2200host_vendor
2201host_cpu
2202host
2203build_os
2204build_vendor
2205build_cpu
2206build
2207target_alias
2208host_alias
2209build_alias
2210LIBS
2211ECHO_T
2212ECHO_N
2213ECHO_C
2214DEFS
2215mandir
2216localedir
2217libdir
2218psdir
2219pdfdir
2220dvidir
2221htmldir
2222infodir
2223docdir
2224oldincludedir
2225includedir
2226runstatedir
2227localstatedir
2228sharedstatedir
2229sysconfdir
2230datadir
2231datarootdir
2232libexecdir
2233sbindir
2234bindir
2235program_transform_name
2236prefix
2237exec_prefix
2238PACKAGE_URL
2239PACKAGE_BUGREPORT
2240PACKAGE_STRING
2241PACKAGE_VERSION
2242PACKAGE_TARNAME
2243PACKAGE_NAME
2244PATH_SEPARATOR
2245SHELL
2246am__quote'
2247ac_subst_files=''
2248ac_user_opts='
2249enable_option_checking
2250enable_silent_rules
2251enable_dependency_tracking
2252enable_largefile
2253enable_threads
2254with_gcov
2255enable_code_coverage
2256enable_maintainer_mode
2257enable_bash_tests
2258enable_doc
2259enable_manpages
2260enable_tools
2261enable_cxx
2262enable_dyn_ncrypt
2263enable_hardware_acceleration
2264enable_tls13_interop
2265enable_padlock
2266with_nettle_mini
2267with_included_libtasn1
2268enable_strict_der_time
2269enable_sha1_support
2270enable_ssl3_support
2271enable_ssl2_support
2272enable_dtls_srtp_support
2273enable_alpn_support
2274enable_heartbeat_support
2275enable_srp_authentication
2276enable_psk_authentication
2277enable_anon_authentication
2278enable_dhe
2279enable_ecdhe
2280enable_gost
2281enable_cryptodev
2282enable_ocsp
2283enable_openssl_compatibility
2284enable_tests
2285enable_fuzzer_target
2286with_html_dir
2287enable_gtk_doc
2288enable_gtk_doc_html
2289enable_gtk_doc_pdf
2290enable_nls
2291with_gnu_ld
2292enable_rpath
2293with_libiconv_prefix
2294with_libintl_prefix
2295enable_seccomp_tests
2296with_libseccomp_prefix
2297with_libcrypto_prefix
2298with_librt_prefix
2299with_libpthread_prefix
2300with_included_unistring
2301enable_cross_guesses
2302enable_ld_version_script
2303enable_valgrind_tests
2304enable_full_test_suite
2305enable_oldgnutls_interop
2306with_libev_prefix
2307enable_gcc_warnings
2308enable_static
2309enable_shared
2310with_pic
2311enable_fast_install
2312with_aix_soname
2313with_sysroot
2314enable_libtool_lock
2315with_libdl_prefix
2316enable_fips140_mode
2317with_fips140_key
2318with_idn
2319enable_non_suiteb_curves
2320enable_libdane
2321with_unbound_root_key_file
2322with_system_priority_file
2323with_default_priority_string
2324with_p11_kit
2325with_tpm
2326with_trousers_lib
2327enable_local_libopts
2328enable_libopts_install
2329with_autoopts_config
2330with_regex_header
2331with_libregex
2332with_libregex_cflags
2333with_libregex_libs
2334enable_optional_args
2335with_default_trust_store_pkcs11
2336with_default_trust_store_dir
2337with_default_trust_store_file
2338with_default_crl_file
2339with_default_blacklist_file
2340enable_guile
2341with_guile_site_dir
2342with_guile_site_ccache_dir
2343with_guile_extension_dir
2344'
2345      ac_precious_vars='build_alias
2346host_alias
2347target_alias
2348PKG_CONFIG
2349PKG_CONFIG_PATH
2350PKG_CONFIG_LIBDIR
2351CC
2352CFLAGS
2353LDFLAGS
2354LIBS
2355CPPFLAGS
2356CPP
2357CCAS
2358CCASFLAGS
2359CXX
2360CXXFLAGS
2361CCC
2362YACC
2363YFLAGS
2364NETTLE_CFLAGS
2365NETTLE_LIBS
2366HOGWEED_CFLAGS
2367HOGWEED_LIBS
2368GMP_CFLAGS
2369GMP_LIBS
2370LIBTASN1_CFLAGS
2371LIBTASN1_LIBS
2372GTKDOC_DEPS_CFLAGS
2373GTKDOC_DEPS_LIBS
2374PYTHON
2375LT_SYS_LIBRARY_PATH
2376CXXCPP
2377CMOCKA_CFLAGS
2378CMOCKA_LIBS
2379LIBIDN2_CFLAGS
2380LIBIDN2_LIBS
2381P11_KIT_CFLAGS
2382P11_KIT_LIBS
2383GUILE_CFLAGS
2384GUILE_LIBS'
2385
2386
2387# Initialize some variables set by options.
2388ac_init_help=
2389ac_init_version=false
2390ac_unrecognized_opts=
2391ac_unrecognized_sep=
2392# The variables have the same names as the options, with
2393# dashes changed to underlines.
2394cache_file=/dev/null
2395exec_prefix=NONE
2396no_create=
2397no_recursion=
2398prefix=NONE
2399program_prefix=NONE
2400program_suffix=NONE
2401program_transform_name=s,x,x,
2402silent=
2403site=
2404srcdir=
2405verbose=
2406x_includes=NONE
2407x_libraries=NONE
2408
2409# Installation directory options.
2410# These are left unexpanded so users can "make install exec_prefix=/foo"
2411# and all the variables that are supposed to be based on exec_prefix
2412# by default will actually change.
2413# Use braces instead of parens because sh, perl, etc. also accept them.
2414# (The list follows the same order as the GNU Coding Standards.)
2415bindir='${exec_prefix}/bin'
2416sbindir='${exec_prefix}/sbin'
2417libexecdir='${exec_prefix}/libexec'
2418datarootdir='${prefix}/share'
2419datadir='${datarootdir}'
2420sysconfdir='${prefix}/etc'
2421sharedstatedir='${prefix}/com'
2422localstatedir='${prefix}/var'
2423runstatedir='${localstatedir}/run'
2424includedir='${prefix}/include'
2425oldincludedir='/usr/include'
2426docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2427infodir='${datarootdir}/info'
2428htmldir='${docdir}'
2429dvidir='${docdir}'
2430pdfdir='${docdir}'
2431psdir='${docdir}'
2432libdir='${exec_prefix}/lib'
2433localedir='${datarootdir}/locale'
2434mandir='${datarootdir}/man'
2435
2436ac_prev=
2437ac_dashdash=
2438for ac_option
2439do
2440  # If the previous option needs an argument, assign it.
2441  if test -n "$ac_prev"; then
2442    eval $ac_prev=\$ac_option
2443    ac_prev=
2444    continue
2445  fi
2446
2447  case $ac_option in
2448  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2449  *=)   ac_optarg= ;;
2450  *)    ac_optarg=yes ;;
2451  esac
2452
2453  # Accept the important Cygnus configure options, so we can diagnose typos.
2454
2455  case $ac_dashdash$ac_option in
2456  --)
2457    ac_dashdash=yes ;;
2458
2459  -bindir | --bindir | --bindi | --bind | --bin | --bi)
2460    ac_prev=bindir ;;
2461  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2462    bindir=$ac_optarg ;;
2463
2464  -build | --build | --buil | --bui | --bu)
2465    ac_prev=build_alias ;;
2466  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2467    build_alias=$ac_optarg ;;
2468
2469  -cache-file | --cache-file | --cache-fil | --cache-fi \
2470  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2471    ac_prev=cache_file ;;
2472  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2473  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2474    cache_file=$ac_optarg ;;
2475
2476  --config-cache | -C)
2477    cache_file=config.cache ;;
2478
2479  -datadir | --datadir | --datadi | --datad)
2480    ac_prev=datadir ;;
2481  -datadir=* | --datadir=* | --datadi=* | --datad=*)
2482    datadir=$ac_optarg ;;
2483
2484  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2485  | --dataroo | --dataro | --datar)
2486    ac_prev=datarootdir ;;
2487  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2488  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2489    datarootdir=$ac_optarg ;;
2490
2491  -disable-* | --disable-*)
2492    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2493    # Reject names that are not valid shell variable names.
2494    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2495      as_fn_error $? "invalid feature name: $ac_useropt"
2496    ac_useropt_orig=$ac_useropt
2497    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2498    case $ac_user_opts in
2499      *"
2500"enable_$ac_useropt"
2501"*) ;;
2502      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2503	 ac_unrecognized_sep=', ';;
2504    esac
2505    eval enable_$ac_useropt=no ;;
2506
2507  -docdir | --docdir | --docdi | --doc | --do)
2508    ac_prev=docdir ;;
2509  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2510    docdir=$ac_optarg ;;
2511
2512  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2513    ac_prev=dvidir ;;
2514  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2515    dvidir=$ac_optarg ;;
2516
2517  -enable-* | --enable-*)
2518    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2519    # Reject names that are not valid shell variable names.
2520    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2521      as_fn_error $? "invalid feature name: $ac_useropt"
2522    ac_useropt_orig=$ac_useropt
2523    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2524    case $ac_user_opts in
2525      *"
2526"enable_$ac_useropt"
2527"*) ;;
2528      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2529	 ac_unrecognized_sep=', ';;
2530    esac
2531    eval enable_$ac_useropt=\$ac_optarg ;;
2532
2533  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2534  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2535  | --exec | --exe | --ex)
2536    ac_prev=exec_prefix ;;
2537  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2538  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2539  | --exec=* | --exe=* | --ex=*)
2540    exec_prefix=$ac_optarg ;;
2541
2542  -gas | --gas | --ga | --g)
2543    # Obsolete; use --with-gas.
2544    with_gas=yes ;;
2545
2546  -help | --help | --hel | --he | -h)
2547    ac_init_help=long ;;
2548  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2549    ac_init_help=recursive ;;
2550  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2551    ac_init_help=short ;;
2552
2553  -host | --host | --hos | --ho)
2554    ac_prev=host_alias ;;
2555  -host=* | --host=* | --hos=* | --ho=*)
2556    host_alias=$ac_optarg ;;
2557
2558  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2559    ac_prev=htmldir ;;
2560  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2561  | --ht=*)
2562    htmldir=$ac_optarg ;;
2563
2564  -includedir | --includedir | --includedi | --included | --include \
2565  | --includ | --inclu | --incl | --inc)
2566    ac_prev=includedir ;;
2567  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2568  | --includ=* | --inclu=* | --incl=* | --inc=*)
2569    includedir=$ac_optarg ;;
2570
2571  -infodir | --infodir | --infodi | --infod | --info | --inf)
2572    ac_prev=infodir ;;
2573  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2574    infodir=$ac_optarg ;;
2575
2576  -libdir | --libdir | --libdi | --libd)
2577    ac_prev=libdir ;;
2578  -libdir=* | --libdir=* | --libdi=* | --libd=*)
2579    libdir=$ac_optarg ;;
2580
2581  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2582  | --libexe | --libex | --libe)
2583    ac_prev=libexecdir ;;
2584  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2585  | --libexe=* | --libex=* | --libe=*)
2586    libexecdir=$ac_optarg ;;
2587
2588  -localedir | --localedir | --localedi | --localed | --locale)
2589    ac_prev=localedir ;;
2590  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2591    localedir=$ac_optarg ;;
2592
2593  -localstatedir | --localstatedir | --localstatedi | --localstated \
2594  | --localstate | --localstat | --localsta | --localst | --locals)
2595    ac_prev=localstatedir ;;
2596  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2597  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2598    localstatedir=$ac_optarg ;;
2599
2600  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2601    ac_prev=mandir ;;
2602  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2603    mandir=$ac_optarg ;;
2604
2605  -nfp | --nfp | --nf)
2606    # Obsolete; use --without-fp.
2607    with_fp=no ;;
2608
2609  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2610  | --no-cr | --no-c | -n)
2611    no_create=yes ;;
2612
2613  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2614  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2615    no_recursion=yes ;;
2616
2617  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2618  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2619  | --oldin | --oldi | --old | --ol | --o)
2620    ac_prev=oldincludedir ;;
2621  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2622  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2623  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2624    oldincludedir=$ac_optarg ;;
2625
2626  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2627    ac_prev=prefix ;;
2628  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2629    prefix=$ac_optarg ;;
2630
2631  -program-prefix | --program-prefix | --program-prefi | --program-pref \
2632  | --program-pre | --program-pr | --program-p)
2633    ac_prev=program_prefix ;;
2634  -program-prefix=* | --program-prefix=* | --program-prefi=* \
2635  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2636    program_prefix=$ac_optarg ;;
2637
2638  -program-suffix | --program-suffix | --program-suffi | --program-suff \
2639  | --program-suf | --program-su | --program-s)
2640    ac_prev=program_suffix ;;
2641  -program-suffix=* | --program-suffix=* | --program-suffi=* \
2642  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2643    program_suffix=$ac_optarg ;;
2644
2645  -program-transform-name | --program-transform-name \
2646  | --program-transform-nam | --program-transform-na \
2647  | --program-transform-n | --program-transform- \
2648  | --program-transform | --program-transfor \
2649  | --program-transfo | --program-transf \
2650  | --program-trans | --program-tran \
2651  | --progr-tra | --program-tr | --program-t)
2652    ac_prev=program_transform_name ;;
2653  -program-transform-name=* | --program-transform-name=* \
2654  | --program-transform-nam=* | --program-transform-na=* \
2655  | --program-transform-n=* | --program-transform-=* \
2656  | --program-transform=* | --program-transfor=* \
2657  | --program-transfo=* | --program-transf=* \
2658  | --program-trans=* | --program-tran=* \
2659  | --progr-tra=* | --program-tr=* | --program-t=*)
2660    program_transform_name=$ac_optarg ;;
2661
2662  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2663    ac_prev=pdfdir ;;
2664  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2665    pdfdir=$ac_optarg ;;
2666
2667  -psdir | --psdir | --psdi | --psd | --ps)
2668    ac_prev=psdir ;;
2669  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2670    psdir=$ac_optarg ;;
2671
2672  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2673  | -silent | --silent | --silen | --sile | --sil)
2674    silent=yes ;;
2675
2676  -runstatedir | --runstatedir | --runstatedi | --runstated \
2677  | --runstate | --runstat | --runsta | --runst | --runs \
2678  | --run | --ru | --r)
2679    ac_prev=runstatedir ;;
2680  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2681  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2682  | --run=* | --ru=* | --r=*)
2683    runstatedir=$ac_optarg ;;
2684
2685  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2686    ac_prev=sbindir ;;
2687  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2688  | --sbi=* | --sb=*)
2689    sbindir=$ac_optarg ;;
2690
2691  -sharedstatedir | --sharedstatedir | --sharedstatedi \
2692  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2693  | --sharedst | --shareds | --shared | --share | --shar \
2694  | --sha | --sh)
2695    ac_prev=sharedstatedir ;;
2696  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2697  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2698  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2699  | --sha=* | --sh=*)
2700    sharedstatedir=$ac_optarg ;;
2701
2702  -site | --site | --sit)
2703    ac_prev=site ;;
2704  -site=* | --site=* | --sit=*)
2705    site=$ac_optarg ;;
2706
2707  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2708    ac_prev=srcdir ;;
2709  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2710    srcdir=$ac_optarg ;;
2711
2712  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2713  | --syscon | --sysco | --sysc | --sys | --sy)
2714    ac_prev=sysconfdir ;;
2715  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2716  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2717    sysconfdir=$ac_optarg ;;
2718
2719  -target | --target | --targe | --targ | --tar | --ta | --t)
2720    ac_prev=target_alias ;;
2721  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2722    target_alias=$ac_optarg ;;
2723
2724  -v | -verbose | --verbose | --verbos | --verbo | --verb)
2725    verbose=yes ;;
2726
2727  -version | --version | --versio | --versi | --vers | -V)
2728    ac_init_version=: ;;
2729
2730  -with-* | --with-*)
2731    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2732    # Reject names that are not valid shell variable names.
2733    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2734      as_fn_error $? "invalid package name: $ac_useropt"
2735    ac_useropt_orig=$ac_useropt
2736    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2737    case $ac_user_opts in
2738      *"
2739"with_$ac_useropt"
2740"*) ;;
2741      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2742	 ac_unrecognized_sep=', ';;
2743    esac
2744    eval with_$ac_useropt=\$ac_optarg ;;
2745
2746  -without-* | --without-*)
2747    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2748    # Reject names that are not valid shell variable names.
2749    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2750      as_fn_error $? "invalid package name: $ac_useropt"
2751    ac_useropt_orig=$ac_useropt
2752    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2753    case $ac_user_opts in
2754      *"
2755"with_$ac_useropt"
2756"*) ;;
2757      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2758	 ac_unrecognized_sep=', ';;
2759    esac
2760    eval with_$ac_useropt=no ;;
2761
2762  --x)
2763    # Obsolete; use --with-x.
2764    with_x=yes ;;
2765
2766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2767  | --x-incl | --x-inc | --x-in | --x-i)
2768    ac_prev=x_includes ;;
2769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2771    x_includes=$ac_optarg ;;
2772
2773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2775    ac_prev=x_libraries ;;
2776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2778    x_libraries=$ac_optarg ;;
2779
2780  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2781Try \`$0 --help' for more information"
2782    ;;
2783
2784  *=*)
2785    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2786    # Reject names that are not valid shell variable names.
2787    case $ac_envvar in #(
2788      '' | [0-9]* | *[!_$as_cr_alnum]* )
2789      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2790    esac
2791    eval $ac_envvar=\$ac_optarg
2792    export $ac_envvar ;;
2793
2794  *)
2795    # FIXME: should be removed in autoconf 3.0.
2796    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2797    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2798      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2799    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2800    ;;
2801
2802  esac
2803done
2804
2805if test -n "$ac_prev"; then
2806  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2807  as_fn_error $? "missing argument to $ac_option"
2808fi
2809
2810if test -n "$ac_unrecognized_opts"; then
2811  case $enable_option_checking in
2812    no) ;;
2813    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2814    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2815  esac
2816fi
2817
2818# Check all directory arguments for consistency.
2819for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2820		datadir sysconfdir sharedstatedir localstatedir includedir \
2821		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2822		libdir localedir mandir runstatedir
2823do
2824  eval ac_val=\$$ac_var
2825  # Remove trailing slashes.
2826  case $ac_val in
2827    */ )
2828      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2829      eval $ac_var=\$ac_val;;
2830  esac
2831  # Be sure to have absolute directory names.
2832  case $ac_val in
2833    [\\/$]* | ?:[\\/]* )  continue;;
2834    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2835  esac
2836  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2837done
2838
2839# There might be people who depend on the old broken behavior: `$host'
2840# used to hold the argument of --host etc.
2841# FIXME: To remove some day.
2842build=$build_alias
2843host=$host_alias
2844target=$target_alias
2845
2846# FIXME: To remove some day.
2847if test "x$host_alias" != x; then
2848  if test "x$build_alias" = x; then
2849    cross_compiling=maybe
2850  elif test "x$build_alias" != "x$host_alias"; then
2851    cross_compiling=yes
2852  fi
2853fi
2854
2855ac_tool_prefix=
2856test -n "$host_alias" && ac_tool_prefix=$host_alias-
2857
2858test "$silent" = yes && exec 6>/dev/null
2859
2860
2861ac_pwd=`pwd` && test -n "$ac_pwd" &&
2862ac_ls_di=`ls -di .` &&
2863ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2864  as_fn_error $? "working directory cannot be determined"
2865test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2866  as_fn_error $? "pwd does not report name of working directory"
2867
2868
2869# Find the source files, if location was not specified.
2870if test -z "$srcdir"; then
2871  ac_srcdir_defaulted=yes
2872  # Try the directory containing this script, then the parent directory.
2873  ac_confdir=`$as_dirname -- "$as_myself" ||
2874$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2875	 X"$as_myself" : 'X\(//\)[^/]' \| \
2876	 X"$as_myself" : 'X\(//\)$' \| \
2877	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2878$as_echo X"$as_myself" |
2879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2880	    s//\1/
2881	    q
2882	  }
2883	  /^X\(\/\/\)[^/].*/{
2884	    s//\1/
2885	    q
2886	  }
2887	  /^X\(\/\/\)$/{
2888	    s//\1/
2889	    q
2890	  }
2891	  /^X\(\/\).*/{
2892	    s//\1/
2893	    q
2894	  }
2895	  s/.*/./; q'`
2896  srcdir=$ac_confdir
2897  if test ! -r "$srcdir/$ac_unique_file"; then
2898    srcdir=..
2899  fi
2900else
2901  ac_srcdir_defaulted=no
2902fi
2903if test ! -r "$srcdir/$ac_unique_file"; then
2904  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2905  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2906fi
2907ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2908ac_abs_confdir=`(
2909	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2910	pwd)`
2911# When building in place, set srcdir=.
2912if test "$ac_abs_confdir" = "$ac_pwd"; then
2913  srcdir=.
2914fi
2915# Remove unnecessary trailing slashes from srcdir.
2916# Double slashes in file names in object file debugging info
2917# mess up M-x gdb in Emacs.
2918case $srcdir in
2919*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2920esac
2921for ac_var in $ac_precious_vars; do
2922  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2923  eval ac_env_${ac_var}_value=\$${ac_var}
2924  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2925  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2926done
2927
2928#
2929# Report the --help message.
2930#
2931if test "$ac_init_help" = "long"; then
2932  # Omit some internal or obsolete options to make the list less imposing.
2933  # This message is too long to be a string in the A/UX 3.1 sh.
2934  cat <<_ACEOF
2935\`configure' configures GnuTLS 3.6.16 to adapt to many kinds of systems.
2936
2937Usage: $0 [OPTION]... [VAR=VALUE]...
2938
2939To assign environment variables (e.g., CC, CFLAGS...), specify them as
2940VAR=VALUE.  See below for descriptions of some of the useful variables.
2941
2942Defaults for the options are specified in brackets.
2943
2944Configuration:
2945  -h, --help              display this help and exit
2946      --help=short        display options specific to this package
2947      --help=recursive    display the short help of all the included packages
2948  -V, --version           display version information and exit
2949  -q, --quiet, --silent   do not print \`checking ...' messages
2950      --cache-file=FILE   cache test results in FILE [disabled]
2951  -C, --config-cache      alias for \`--cache-file=config.cache'
2952  -n, --no-create         do not create output files
2953      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2954
2955Installation directories:
2956  --prefix=PREFIX         install architecture-independent files in PREFIX
2957                          [$ac_default_prefix]
2958  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2959                          [PREFIX]
2960
2961By default, \`make install' will install all the files in
2962\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2963an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2964for instance \`--prefix=\$HOME'.
2965
2966For better control, use the options below.
2967
2968Fine tuning of the installation directories:
2969  --bindir=DIR            user executables [EPREFIX/bin]
2970  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2971  --libexecdir=DIR        program executables [EPREFIX/libexec]
2972  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2973  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2974  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2975  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2976  --libdir=DIR            object code libraries [EPREFIX/lib]
2977  --includedir=DIR        C header files [PREFIX/include]
2978  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2979  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2980  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2981  --infodir=DIR           info documentation [DATAROOTDIR/info]
2982  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2983  --mandir=DIR            man documentation [DATAROOTDIR/man]
2984  --docdir=DIR            documentation root [DATAROOTDIR/doc/gnutls]
2985  --htmldir=DIR           html documentation [DOCDIR]
2986  --dvidir=DIR            dvi documentation [DOCDIR]
2987  --pdfdir=DIR            pdf documentation [DOCDIR]
2988  --psdir=DIR             ps documentation [DOCDIR]
2989_ACEOF
2990
2991  cat <<\_ACEOF
2992
2993Program names:
2994  --program-prefix=PREFIX            prepend PREFIX to installed program names
2995  --program-suffix=SUFFIX            append SUFFIX to installed program names
2996  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2997
2998System types:
2999  --build=BUILD     configure for building on BUILD [guessed]
3000  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
3001_ACEOF
3002fi
3003
3004if test -n "$ac_init_help"; then
3005  case $ac_init_help in
3006     short | recursive ) echo "Configuration of GnuTLS 3.6.16:";;
3007   esac
3008  cat <<\_ACEOF
3009
3010Optional Features:
3011  --disable-option-checking  ignore unrecognized --enable/--with options
3012  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
3013  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
3014  --enable-silent-rules   less verbose build output (undo: "make V=1")
3015  --disable-silent-rules  verbose build output (undo: "make V=0")
3016  --enable-dependency-tracking
3017                          do not reject slow dependency extractors
3018  --disable-dependency-tracking
3019                          speeds up one-time build
3020  --disable-largefile     omit support for large files
3021  --enable-threads={isoc|posix|isoc+posix|windows}
3022                          specify multithreading API
3023  --disable-threads       build without multithread safety
3024  --enable-code-coverage  Whether to enable code coverage support
3025  --disable-maintainer-mode
3026                          disable make rules and dependencies not useful (and
3027                          sometimes confusing) to the casual installer
3028  --disable-bash-tests    skip some tests that badly need bash
3029  --disable-doc           don't generate any documentation
3030  --enable-manpages       install manpages even if disable-doc is given
3031  --disable-tools         don't compile any tools
3032  --disable-cxx           unconditionally disable the C++ library
3033  --enable-dyn-ncrypt     use ncrypt dynamically
3034  --disable-hardware-acceleration
3035                          unconditionally disable hardware acceleration
3036  --disable-tls13-interop disable TLS1.3 interoperability testing with openssl
3037  --disable-padlock       unconditionally disable padlock acceleration
3038  --disable-strict-der-time
3039                          allow non compliant DER time values
3040  --enable-sha1-support   allow SHA1 as an acceptable hash for cert digital
3041                          signatures
3042  --enable-ssl3-support   enable support for the SSL 3.0 protocol
3043  --disable-ssl2-support  disable support for the SSL 2.0 client hello
3044  --disable-dtls-srtp-support
3045                          disable support for the DTLS-SRTP extension
3046  --disable-alpn-support  disable support for the Application Layer Protocol
3047                          Negotiation (ALPN) extension
3048  --disable-heartbeat-support
3049                          disable support for the heartbeat extension
3050  --disable-srp-authentication
3051                          disable the SRP authentication support
3052  --disable-psk-authentication
3053                          disable the PSK authentication support
3054  --disable-anon-authentication
3055                          disable the anonymous authentication support
3056  --disable-dhe           disable the DHE support
3057  --disable-ecdhe         disable the ECDHE support
3058  --disable-gost          disable the GOST support
3059  --enable-cryptodev      enable cryptodev support
3060  --disable-ocsp          disable OCSP support
3061  --enable-openssl-compatibility
3062                          enable the OpenSSL compatibility library
3063  --disable-tests         don't compile or run any tests
3064  --enable-fuzzer-target  make a library intended for testing - not production
3065  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
3066  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
3067  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
3068  --disable-nls           do not use Native Language Support
3069  --disable-rpath         do not hardcode runtime library paths
3070  --enable-seccomp-tests  unconditionally enable tests with seccomp
3071  --enable-cross-guesses={conservative|risky}
3072                          specify policy for cross-compilation guesses
3073  --enable-ld-version-script
3074                          enable linker version script (default is enabled
3075                          when possible)
3076  --enable-valgrind-tests try to run self tests under valgrind
3077  --disable-full-test-suite
3078                          disable running very slow components of test suite
3079  --enable-oldgnutls-interop
3080                          enable interoperability testing with old gnutls
3081                          version
3082  --disable-gcc-warnings  turn off lots of GCC warnings (for developers)
3083  --enable-static[=PKGS]  build static libraries [default=no]
3084  --enable-shared[=PKGS]  build shared libraries [default=yes]
3085  --enable-fast-install[=PKGS]
3086                          optimize for fast installation [default=yes]
3087  --disable-libtool-lock  avoid locking (might break parallel builds)
3088  --enable-fips140-mode   enable FIPS140-2 mode
3089  --disable-non-suiteb-curves
3090                          disable curves not in SuiteB
3091  --disable-libdane       disable the built of libdane
3092  --disable-nls           disable nls support in libopts
3093  --enable-local-libopts  Use the supplied libopts tearoff code
3094  --enable-libopts-install
3095                          Install libopts with client installation
3096  --disable-optional-args not wanting optional option args
3097  --enable-guile          build GNU Guile bindings
3098
3099Optional Packages:
3100  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
3101  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
3102  --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
3103  --with-nettle-mini      Link against a mini-nettle (that includes mini-gmp)
3104  --with-included-libtasn1
3105                          use the included libtasn1
3106  --with-html-dir=PATH    path to installed docs
3107  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
3108  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
3109  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
3110  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
3111  --without-libintl-prefix     don't search for libintl in includedir and libdir
3112  --with-libseccomp-prefix[=DIR]  search for libseccomp in DIR/include and DIR/lib
3113  --without-libseccomp-prefix     don't search for libseccomp in includedir and libdir
3114  --with-libcrypto-prefix[=DIR]  search for libcrypto in DIR/include and DIR/lib
3115  --without-libcrypto-prefix     don't search for libcrypto in includedir and libdir
3116  --with-librt-prefix[=DIR]  search for librt in DIR/include and DIR/lib
3117  --without-librt-prefix     don't search for librt in includedir and libdir
3118  --with-libpthread-prefix[=DIR]  search for libpthread in DIR/include and DIR/lib
3119  --without-libpthread-prefix     don't search for libpthread in includedir and libdir
3120  --with-included-unistring
3121                          disable linking with system libunistring
3122  --with-libev-prefix[=DIR]  search for libev in DIR/include and DIR/lib
3123  --without-libev-prefix     don't search for libev in includedir and libdir
3124  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
3125                          both]
3126  --with-aix-soname=aix|svr4|both
3127                          shared library versioning (aka "SONAME") variant to
3128                          provide on AIX, [default=aix].
3129  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
3130  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
3131                          compiler's sysroot if not specified).
3132  --with-libdl-prefix[=DIR]  search for libdl in DIR/include and DIR/lib
3133  --without-libdl-prefix     don't search for libdl in includedir and libdir
3134  --with-fips140-key      specify the FIPS140 HMAC key for integrity
3135  --without-idn           disable support for IDNA
3136  --with-unbound-root-key-file
3137                          specify the unbound root key file
3138  --with-system-priority-file
3139                          specify the system-wide config file (set empty to
3140                          disable)
3141  --with-default-priority-string
3142                          specify the default priority string used by
3143                          gnutls_set_default_priority (default is NORMAL)
3144  --without-p11-kit       Build without p11-kit and PKCS#11 support
3145  --without-tpm           Disable TPM (trousers) support.
3146  --with-trousers-lib=LIB set the location of the trousers library
3147  --with-autoopts-config  specify the config-info script
3148  --with-regex-header     a reg expr header is specified
3149  --with-libregex         libregex installation prefix
3150  --with-libregex-cflags  libregex compile flags
3151  --with-libregex-libs    libregex link command arguments
3152  --with-default-trust-store-pkcs11=URI
3153                          use the given pkcs11 uri as default trust store
3154  --with-default-trust-store-dir=DIR
3155                          use the given directory as default trust store
3156  --with-default-trust-store-file=FILE
3157                          use the given file default trust store
3158  --with-default-crl-file=FILE
3159                          use the given CRL file as default
3160  --with-default-blacklist-file=FILE
3161                          use the given certificate blacklist file as default
3162  --with-guile-site-dir=DIR
3163                          guile site directory for gnutls, default is guile
3164                          system settings
3165  --with-guile-site-ccache-dir=DIR
3166                          guile ccache directory for gnutls, default is guile
3167                          system settings
3168  --with-guile-extension-dir=DIR
3169                          guile extension directory for gnutls, default is
3170                          guile system settings
3171
3172Some influential environment variables:
3173  PKG_CONFIG  path to pkg-config utility
3174  PKG_CONFIG_PATH
3175              directories to add to pkg-config's search path
3176  PKG_CONFIG_LIBDIR
3177              path overriding pkg-config's built-in search path
3178  CC          C compiler command
3179  CFLAGS      C compiler flags
3180  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
3181              nonstandard directory <lib dir>
3182  LIBS        libraries to pass to the linker, e.g. -l<library>
3183  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
3184              you have headers in a nonstandard directory <include dir>
3185  CPP         C preprocessor
3186  CCAS        assembler compiler command (defaults to CC)
3187  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
3188  CXX         C++ compiler command
3189  CXXFLAGS    C++ compiler flags
3190  YACC        The `Yet Another Compiler Compiler' implementation to use.
3191              Defaults to the first program found out of: `bison -y', `byacc',
3192              `yacc'.
3193  YFLAGS      The list of arguments that will be passed by default to $YACC.
3194              This script will default YFLAGS to the empty string to avoid a
3195              default value of `-d' given by some make applications.
3196  NETTLE_CFLAGS
3197              C compiler flags for NETTLE, overriding pkg-config
3198  NETTLE_LIBS linker flags for NETTLE, overriding pkg-config
3199  HOGWEED_CFLAGS
3200              C compiler flags for HOGWEED, overriding pkg-config
3201  HOGWEED_LIBS
3202              linker flags for HOGWEED, overriding pkg-config
3203  GMP_CFLAGS  C compiler flags for gmp
3204  GMP_LIBS    linker flags for gmp
3205  LIBTASN1_CFLAGS
3206              C compiler flags for LIBTASN1, overriding pkg-config
3207  LIBTASN1_LIBS
3208              linker flags for LIBTASN1, overriding pkg-config
3209  GTKDOC_DEPS_CFLAGS
3210              C compiler flags for GTKDOC_DEPS, overriding pkg-config
3211  GTKDOC_DEPS_LIBS
3212              linker flags for GTKDOC_DEPS, overriding pkg-config
3213  PYTHON      the Python interpreter
3214  LT_SYS_LIBRARY_PATH
3215              User-defined run-time library search path.
3216  CXXCPP      C++ preprocessor
3217  CMOCKA_CFLAGS
3218              C compiler flags for CMOCKA, overriding pkg-config
3219  CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
3220  LIBIDN2_CFLAGS
3221              C compiler flags for LIBIDN2, overriding pkg-config
3222  LIBIDN2_LIBS
3223              linker flags for LIBIDN2, overriding pkg-config
3224  P11_KIT_CFLAGS
3225              C compiler flags for P11_KIT, overriding pkg-config
3226  P11_KIT_LIBS
3227              linker flags for P11_KIT, overriding pkg-config
3228  GUILE_CFLAGS
3229              C compiler flags for GUILE, overriding pkg-config
3230  GUILE_LIBS  linker flags for GUILE, overriding pkg-config
3231
3232Use these variables to override the choices made by `configure' or to help
3233it to find libraries and programs with nonstandard names/locations.
3234
3235Report bugs to <bugs@gnutls.org>.
3236_ACEOF
3237ac_status=$?
3238fi
3239
3240if test "$ac_init_help" = "recursive"; then
3241  # If there are subdirs, report their specific --help.
3242  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
3243    test -d "$ac_dir" ||
3244      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
3245      continue
3246    ac_builddir=.
3247
3248case "$ac_dir" in
3249.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3250*)
3251  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3252  # A ".." for each directory in $ac_dir_suffix.
3253  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3254  case $ac_top_builddir_sub in
3255  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3256  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3257  esac ;;
3258esac
3259ac_abs_top_builddir=$ac_pwd
3260ac_abs_builddir=$ac_pwd$ac_dir_suffix
3261# for backward compatibility:
3262ac_top_builddir=$ac_top_build_prefix
3263
3264case $srcdir in
3265  .)  # We are building in place.
3266    ac_srcdir=.
3267    ac_top_srcdir=$ac_top_builddir_sub
3268    ac_abs_top_srcdir=$ac_pwd ;;
3269  [\\/]* | ?:[\\/]* )  # Absolute name.
3270    ac_srcdir=$srcdir$ac_dir_suffix;
3271    ac_top_srcdir=$srcdir
3272    ac_abs_top_srcdir=$srcdir ;;
3273  *) # Relative name.
3274    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3275    ac_top_srcdir=$ac_top_build_prefix$srcdir
3276    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3277esac
3278ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3279
3280    cd "$ac_dir" || { ac_status=$?; continue; }
3281    # Check for guested configure.
3282    if test -f "$ac_srcdir/configure.gnu"; then
3283      echo &&
3284      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
3285    elif test -f "$ac_srcdir/configure"; then
3286      echo &&
3287      $SHELL "$ac_srcdir/configure" --help=recursive
3288    else
3289      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
3290    fi || ac_status=$?
3291    cd "$ac_pwd" || { ac_status=$?; break; }
3292  done
3293fi
3294
3295test -n "$ac_init_help" && exit $ac_status
3296if $ac_init_version; then
3297  cat <<\_ACEOF
3298GnuTLS configure 3.6.16
3299generated by GNU Autoconf 2.69
3300
3301Copyright (C) 2012 Free Software Foundation, Inc.
3302This configure script is free software; the Free Software Foundation
3303gives unlimited permission to copy, distribute and modify it.
3304_ACEOF
3305  exit
3306fi
3307
3308## ------------------------ ##
3309## Autoconf initialization. ##
3310## ------------------------ ##
3311
3312# ac_fn_c_try_compile LINENO
3313# --------------------------
3314# Try to compile conftest.$ac_ext, and return whether this succeeded.
3315ac_fn_c_try_compile ()
3316{
3317  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3318  rm -f conftest.$ac_objext
3319  if { { ac_try="$ac_compile"
3320case "(($ac_try" in
3321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322  *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325$as_echo "$ac_try_echo"; } >&5
3326  (eval "$ac_compile") 2>conftest.err
3327  ac_status=$?
3328  if test -s conftest.err; then
3329    grep -v '^ *+' conftest.err >conftest.er1
3330    cat conftest.er1 >&5
3331    mv -f conftest.er1 conftest.err
3332  fi
3333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334  test $ac_status = 0; } && {
3335	 test -z "$ac_c_werror_flag" ||
3336	 test ! -s conftest.err
3337       } && test -s conftest.$ac_objext; then :
3338  ac_retval=0
3339else
3340  $as_echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343	ac_retval=1
3344fi
3345  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3346  as_fn_set_status $ac_retval
3347
3348} # ac_fn_c_try_compile
3349
3350# ac_fn_c_try_cpp LINENO
3351# ----------------------
3352# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3353ac_fn_c_try_cpp ()
3354{
3355  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3356  if { { ac_try="$ac_cpp conftest.$ac_ext"
3357case "(($ac_try" in
3358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359  *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362$as_echo "$ac_try_echo"; } >&5
3363  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3364  ac_status=$?
3365  if test -s conftest.err; then
3366    grep -v '^ *+' conftest.err >conftest.er1
3367    cat conftest.er1 >&5
3368    mv -f conftest.er1 conftest.err
3369  fi
3370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371  test $ac_status = 0; } > conftest.i && {
3372	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3373	 test ! -s conftest.err
3374       }; then :
3375  ac_retval=0
3376else
3377  $as_echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380    ac_retval=1
3381fi
3382  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3383  as_fn_set_status $ac_retval
3384
3385} # ac_fn_c_try_cpp
3386
3387# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3388# -------------------------------------------------------
3389# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3390# the include files in INCLUDES and setting the cache variable VAR
3391# accordingly.
3392ac_fn_c_check_header_mongrel ()
3393{
3394  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3395  if eval \${$3+:} false; then :
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3397$as_echo_n "checking for $2... " >&6; }
3398if eval \${$3+:} false; then :
3399  $as_echo_n "(cached) " >&6
3400fi
3401eval ac_res=\$$3
3402	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3403$as_echo "$ac_res" >&6; }
3404else
3405  # Is the header compilable?
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3407$as_echo_n "checking $2 usability... " >&6; }
3408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409/* end confdefs.h.  */
3410$4
3411#include <$2>
3412_ACEOF
3413if ac_fn_c_try_compile "$LINENO"; then :
3414  ac_header_compiler=yes
3415else
3416  ac_header_compiler=no
3417fi
3418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3420$as_echo "$ac_header_compiler" >&6; }
3421
3422# Is the header present?
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3424$as_echo_n "checking $2 presence... " >&6; }
3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h.  */
3427#include <$2>
3428_ACEOF
3429if ac_fn_c_try_cpp "$LINENO"; then :
3430  ac_header_preproc=yes
3431else
3432  ac_header_preproc=no
3433fi
3434rm -f conftest.err conftest.i conftest.$ac_ext
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3436$as_echo "$ac_header_preproc" >&6; }
3437
3438# So?  What about this header?
3439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3440  yes:no: )
3441    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3442$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3443    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3444$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3445    ;;
3446  no:yes:* )
3447    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3448$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3449    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3450$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3451    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3452$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3453    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3454$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3455    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3456$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3457( $as_echo "## ------------------------------ ##
3458## Report this to bugs@gnutls.org ##
3459## ------------------------------ ##"
3460     ) | sed "s/^/$as_me: WARNING:     /" >&2
3461    ;;
3462esac
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3464$as_echo_n "checking for $2... " >&6; }
3465if eval \${$3+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  eval "$3=\$ac_header_compiler"
3469fi
3470eval ac_res=\$$3
3471	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3472$as_echo "$ac_res" >&6; }
3473fi
3474  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3475
3476} # ac_fn_c_check_header_mongrel
3477
3478# ac_fn_c_try_run LINENO
3479# ----------------------
3480# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3481# that executables *can* be run.
3482ac_fn_c_try_run ()
3483{
3484  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3485  if { { ac_try="$ac_link"
3486case "(($ac_try" in
3487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488  *) ac_try_echo=$ac_try;;
3489esac
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
3492  (eval "$ac_link") 2>&5
3493  ac_status=$?
3494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3496  { { case "(($ac_try" in
3497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498  *) ac_try_echo=$ac_try;;
3499esac
3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501$as_echo "$ac_try_echo"; } >&5
3502  (eval "$ac_try") 2>&5
3503  ac_status=$?
3504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505  test $ac_status = 0; }; }; then :
3506  ac_retval=0
3507else
3508  $as_echo "$as_me: program exited with status $ac_status" >&5
3509       $as_echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512       ac_retval=$ac_status
3513fi
3514  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3515  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3516  as_fn_set_status $ac_retval
3517
3518} # ac_fn_c_try_run
3519
3520# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3521# -------------------------------------------------------
3522# Tests whether HEADER exists and can be compiled using the include files in
3523# INCLUDES, setting the cache variable VAR accordingly.
3524ac_fn_c_check_header_compile ()
3525{
3526  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3528$as_echo_n "checking for $2... " >&6; }
3529if eval \${$3+:} false; then :
3530  $as_echo_n "(cached) " >&6
3531else
3532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534$4
3535#include <$2>
3536_ACEOF
3537if ac_fn_c_try_compile "$LINENO"; then :
3538  eval "$3=yes"
3539else
3540  eval "$3=no"
3541fi
3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543fi
3544eval ac_res=\$$3
3545	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3546$as_echo "$ac_res" >&6; }
3547  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3548
3549} # ac_fn_c_check_header_compile
3550
3551# ac_fn_c_try_link LINENO
3552# -----------------------
3553# Try to link conftest.$ac_ext, and return whether this succeeded.
3554ac_fn_c_try_link ()
3555{
3556  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3557  rm -f conftest.$ac_objext conftest$ac_exeext
3558  if { { ac_try="$ac_link"
3559case "(($ac_try" in
3560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561  *) ac_try_echo=$ac_try;;
3562esac
3563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564$as_echo "$ac_try_echo"; } >&5
3565  (eval "$ac_link") 2>conftest.err
3566  ac_status=$?
3567  if test -s conftest.err; then
3568    grep -v '^ *+' conftest.err >conftest.er1
3569    cat conftest.er1 >&5
3570    mv -f conftest.er1 conftest.err
3571  fi
3572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573  test $ac_status = 0; } && {
3574	 test -z "$ac_c_werror_flag" ||
3575	 test ! -s conftest.err
3576       } && test -s conftest$ac_exeext && {
3577	 test "$cross_compiling" = yes ||
3578	 test -x conftest$ac_exeext
3579       }; then :
3580  ac_retval=0
3581else
3582  $as_echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
3585	ac_retval=1
3586fi
3587  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3588  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3589  # interfere with the next link command; also delete a directory that is
3590  # left behind by Apple's compiler.  We do this before executing the actions.
3591  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3592  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3593  as_fn_set_status $ac_retval
3594
3595} # ac_fn_c_try_link
3596
3597# ac_fn_cxx_try_compile LINENO
3598# ----------------------------
3599# Try to compile conftest.$ac_ext, and return whether this succeeded.
3600ac_fn_cxx_try_compile ()
3601{
3602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3603  rm -f conftest.$ac_objext
3604  if { { ac_try="$ac_compile"
3605case "(($ac_try" in
3606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607  *) ac_try_echo=$ac_try;;
3608esac
3609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610$as_echo "$ac_try_echo"; } >&5
3611  (eval "$ac_compile") 2>conftest.err
3612  ac_status=$?
3613  if test -s conftest.err; then
3614    grep -v '^ *+' conftest.err >conftest.er1
3615    cat conftest.er1 >&5
3616    mv -f conftest.er1 conftest.err
3617  fi
3618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619  test $ac_status = 0; } && {
3620	 test -z "$ac_cxx_werror_flag" ||
3621	 test ! -s conftest.err
3622       } && test -s conftest.$ac_objext; then :
3623  ac_retval=0
3624else
3625  $as_echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628	ac_retval=1
3629fi
3630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3631  as_fn_set_status $ac_retval
3632
3633} # ac_fn_cxx_try_compile
3634
3635# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3636# ----------------------------------------------------
3637# Tries to find if the field MEMBER exists in type AGGR, after including
3638# INCLUDES, setting cache variable VAR accordingly.
3639ac_fn_c_check_member ()
3640{
3641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3643$as_echo_n "checking for $2.$3... " >&6; }
3644if eval \${$4+:} false; then :
3645  $as_echo_n "(cached) " >&6
3646else
3647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649$5
3650int
3651main ()
3652{
3653static $2 ac_aggr;
3654if (ac_aggr.$3)
3655return 0;
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660if ac_fn_c_try_compile "$LINENO"; then :
3661  eval "$4=yes"
3662else
3663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h.  */
3665$5
3666int
3667main ()
3668{
3669static $2 ac_aggr;
3670if (sizeof ac_aggr.$3)
3671return 0;
3672  ;
3673  return 0;
3674}
3675_ACEOF
3676if ac_fn_c_try_compile "$LINENO"; then :
3677  eval "$4=yes"
3678else
3679  eval "$4=no"
3680fi
3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682fi
3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684fi
3685eval ac_res=\$$4
3686	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3687$as_echo "$ac_res" >&6; }
3688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3689
3690} # ac_fn_c_check_member
3691
3692# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3693# --------------------------------------------
3694# Tries to find the compile-time value of EXPR in a program that includes
3695# INCLUDES, setting VAR accordingly. Returns whether the value could be
3696# computed
3697ac_fn_c_compute_int ()
3698{
3699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3700  if test "$cross_compiling" = yes; then
3701    # Depending upon the size, compute the lo and hi bounds.
3702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704$4
3705int
3706main ()
3707{
3708static int test_array [1 - 2 * !(($2) >= 0)];
3709test_array [0] = 0;
3710return test_array [0];
3711
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716if ac_fn_c_try_compile "$LINENO"; then :
3717  ac_lo=0 ac_mid=0
3718  while :; do
3719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721$4
3722int
3723main ()
3724{
3725static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3726test_array [0] = 0;
3727return test_array [0];
3728
3729  ;
3730  return 0;
3731}
3732_ACEOF
3733if ac_fn_c_try_compile "$LINENO"; then :
3734  ac_hi=$ac_mid; break
3735else
3736  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3737			if test $ac_lo -le $ac_mid; then
3738			  ac_lo= ac_hi=
3739			  break
3740			fi
3741			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744  done
3745else
3746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h.  */
3748$4
3749int
3750main ()
3751{
3752static int test_array [1 - 2 * !(($2) < 0)];
3753test_array [0] = 0;
3754return test_array [0];
3755
3756  ;
3757  return 0;
3758}
3759_ACEOF
3760if ac_fn_c_try_compile "$LINENO"; then :
3761  ac_hi=-1 ac_mid=-1
3762  while :; do
3763    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h.  */
3765$4
3766int
3767main ()
3768{
3769static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3770test_array [0] = 0;
3771return test_array [0];
3772
3773  ;
3774  return 0;
3775}
3776_ACEOF
3777if ac_fn_c_try_compile "$LINENO"; then :
3778  ac_lo=$ac_mid; break
3779else
3780  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3781			if test $ac_mid -le $ac_hi; then
3782			  ac_lo= ac_hi=
3783			  break
3784			fi
3785			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3786fi
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788  done
3789else
3790  ac_lo= ac_hi=
3791fi
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793fi
3794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795# Binary search between lo and hi bounds.
3796while test "x$ac_lo" != "x$ac_hi"; do
3797  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h.  */
3800$4
3801int
3802main ()
3803{
3804static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3805test_array [0] = 0;
3806return test_array [0];
3807
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812if ac_fn_c_try_compile "$LINENO"; then :
3813  ac_hi=$ac_mid
3814else
3815  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3816fi
3817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818done
3819case $ac_lo in #((
3820?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3821'') ac_retval=1 ;;
3822esac
3823  else
3824    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826$4
3827static long int longval () { return $2; }
3828static unsigned long int ulongval () { return $2; }
3829#include <stdio.h>
3830#include <stdlib.h>
3831int
3832main ()
3833{
3834
3835  FILE *f = fopen ("conftest.val", "w");
3836  if (! f)
3837    return 1;
3838  if (($2) < 0)
3839    {
3840      long int i = longval ();
3841      if (i != ($2))
3842	return 1;
3843      fprintf (f, "%ld", i);
3844    }
3845  else
3846    {
3847      unsigned long int i = ulongval ();
3848      if (i != ($2))
3849	return 1;
3850      fprintf (f, "%lu", i);
3851    }
3852  /* Do not output a trailing newline, as this causes \r\n confusion
3853     on some platforms.  */
3854  return ferror (f) || fclose (f) != 0;
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860if ac_fn_c_try_run "$LINENO"; then :
3861  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3862else
3863  ac_retval=1
3864fi
3865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3866  conftest.$ac_objext conftest.beam conftest.$ac_ext
3867rm -f conftest.val
3868
3869  fi
3870  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3871  as_fn_set_status $ac_retval
3872
3873} # ac_fn_c_compute_int
3874
3875# ac_fn_c_check_func LINENO FUNC VAR
3876# ----------------------------------
3877# Tests whether FUNC exists, setting the cache variable VAR accordingly
3878ac_fn_c_check_func ()
3879{
3880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3882$as_echo_n "checking for $2... " >&6; }
3883if eval \${$3+:} false; then :
3884  $as_echo_n "(cached) " >&6
3885else
3886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h.  */
3888/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3889   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3890#define $2 innocuous_$2
3891
3892/* System header to define __stub macros and hopefully few prototypes,
3893    which can conflict with char $2 (); below.
3894    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3895    <limits.h> exists even on freestanding compilers.  */
3896
3897#ifdef __STDC__
3898# include <limits.h>
3899#else
3900# include <assert.h>
3901#endif
3902
3903#undef $2
3904
3905/* Override any GCC internal prototype to avoid an error.
3906   Use char because int might match the return type of a GCC
3907   builtin and then its argument prototype would still apply.  */
3908#ifdef __cplusplus
3909extern "C"
3910#endif
3911char $2 ();
3912/* The GNU C library defines this for functions which it implements
3913    to always fail with ENOSYS.  Some functions are actually named
3914    something starting with __ and the normal name is an alias.  */
3915#if defined __stub_$2 || defined __stub___$2
3916choke me
3917#endif
3918
3919int
3920main ()
3921{
3922return $2 ();
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927if ac_fn_c_try_link "$LINENO"; then :
3928  eval "$3=yes"
3929else
3930  eval "$3=no"
3931fi
3932rm -f core conftest.err conftest.$ac_objext \
3933    conftest$ac_exeext conftest.$ac_ext
3934fi
3935eval ac_res=\$$3
3936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3937$as_echo "$ac_res" >&6; }
3938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3939
3940} # ac_fn_c_check_func
3941
3942# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3943# -------------------------------------------
3944# Tests whether TYPE exists after having included INCLUDES, setting cache
3945# variable VAR accordingly.
3946ac_fn_c_check_type ()
3947{
3948  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3950$as_echo_n "checking for $2... " >&6; }
3951if eval \${$3+:} false; then :
3952  $as_echo_n "(cached) " >&6
3953else
3954  eval "$3=no"
3955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h.  */
3957$4
3958int
3959main ()
3960{
3961if (sizeof ($2))
3962	 return 0;
3963  ;
3964  return 0;
3965}
3966_ACEOF
3967if ac_fn_c_try_compile "$LINENO"; then :
3968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h.  */
3970$4
3971int
3972main ()
3973{
3974if (sizeof (($2)))
3975	    return 0;
3976  ;
3977  return 0;
3978}
3979_ACEOF
3980if ac_fn_c_try_compile "$LINENO"; then :
3981
3982else
3983  eval "$3=yes"
3984fi
3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986fi
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988fi
3989eval ac_res=\$$3
3990	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3991$as_echo "$ac_res" >&6; }
3992  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3993
3994} # ac_fn_c_check_type
3995
3996# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3997# ---------------------------------------------
3998# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3999# accordingly.
4000ac_fn_c_check_decl ()
4001{
4002  ac_save_ac_compile="$ac_compile"
4003  if test -n "$ac_compile_for_check_decl"; then
4004    ac_compile="$ac_compile_for_check_decl"
4005  fi
4006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4007  as_decl_name=`echo $2|sed 's/ *(.*//'`
4008  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
4009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
4010$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
4011if eval \${$3+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h.  */
4016$4
4017int
4018main ()
4019{
4020#ifndef $as_decl_name
4021#ifdef __cplusplus
4022  (void) $as_decl_use;
4023#else
4024  (void) $as_decl_name;
4025#endif
4026#endif
4027
4028  ;
4029  return 0;
4030}
4031_ACEOF
4032if ac_fn_c_try_compile "$LINENO"; then :
4033  eval "$3=yes"
4034else
4035  eval "$3=no"
4036fi
4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038fi
4039eval ac_res=\$$3
4040	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4041$as_echo "$ac_res" >&6; }
4042  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4043  ac_compile="$ac_save_ac_compile"
4044
4045} # ac_fn_c_check_decl
4046
4047# ac_fn_cxx_try_cpp LINENO
4048# ------------------------
4049# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
4050ac_fn_cxx_try_cpp ()
4051{
4052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4053  if { { ac_try="$ac_cpp conftest.$ac_ext"
4054case "(($ac_try" in
4055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056  *) ac_try_echo=$ac_try;;
4057esac
4058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059$as_echo "$ac_try_echo"; } >&5
4060  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
4061  ac_status=$?
4062  if test -s conftest.err; then
4063    grep -v '^ *+' conftest.err >conftest.er1
4064    cat conftest.er1 >&5
4065    mv -f conftest.er1 conftest.err
4066  fi
4067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068  test $ac_status = 0; } > conftest.i && {
4069	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4070	 test ! -s conftest.err
4071       }; then :
4072  ac_retval=0
4073else
4074  $as_echo "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
4077    ac_retval=1
4078fi
4079  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4080  as_fn_set_status $ac_retval
4081
4082} # ac_fn_cxx_try_cpp
4083
4084# ac_fn_cxx_try_link LINENO
4085# -------------------------
4086# Try to link conftest.$ac_ext, and return whether this succeeded.
4087ac_fn_cxx_try_link ()
4088{
4089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4090  rm -f conftest.$ac_objext conftest$ac_exeext
4091  if { { ac_try="$ac_link"
4092case "(($ac_try" in
4093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094  *) ac_try_echo=$ac_try;;
4095esac
4096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097$as_echo "$ac_try_echo"; } >&5
4098  (eval "$ac_link") 2>conftest.err
4099  ac_status=$?
4100  if test -s conftest.err; then
4101    grep -v '^ *+' conftest.err >conftest.er1
4102    cat conftest.er1 >&5
4103    mv -f conftest.er1 conftest.err
4104  fi
4105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106  test $ac_status = 0; } && {
4107	 test -z "$ac_cxx_werror_flag" ||
4108	 test ! -s conftest.err
4109       } && test -s conftest$ac_exeext && {
4110	 test "$cross_compiling" = yes ||
4111	 test -x conftest$ac_exeext
4112       }; then :
4113  ac_retval=0
4114else
4115  $as_echo "$as_me: failed program was:" >&5
4116sed 's/^/| /' conftest.$ac_ext >&5
4117
4118	ac_retval=1
4119fi
4120  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
4121  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
4122  # interfere with the next link command; also delete a directory that is
4123  # left behind by Apple's compiler.  We do this before executing the actions.
4124  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
4125  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4126  as_fn_set_status $ac_retval
4127
4128} # ac_fn_cxx_try_link
4129cat >config.log <<_ACEOF
4130This file contains any messages produced by compilers while
4131running configure, to aid debugging if configure makes a mistake.
4132
4133It was created by GnuTLS $as_me 3.6.16, which was
4134generated by GNU Autoconf 2.69.  Invocation command line was
4135
4136  $ $0 $@
4137
4138_ACEOF
4139exec 5>>config.log
4140{
4141cat <<_ASUNAME
4142## --------- ##
4143## Platform. ##
4144## --------- ##
4145
4146hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
4147uname -m = `(uname -m) 2>/dev/null || echo unknown`
4148uname -r = `(uname -r) 2>/dev/null || echo unknown`
4149uname -s = `(uname -s) 2>/dev/null || echo unknown`
4150uname -v = `(uname -v) 2>/dev/null || echo unknown`
4151
4152/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
4153/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
4154
4155/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
4156/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
4157/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
4158/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
4159/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
4160/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
4161/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
4162
4163_ASUNAME
4164
4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166for as_dir in $PATH
4167do
4168  IFS=$as_save_IFS
4169  test -z "$as_dir" && as_dir=.
4170    $as_echo "PATH: $as_dir"
4171  done
4172IFS=$as_save_IFS
4173
4174} >&5
4175
4176cat >&5 <<_ACEOF
4177
4178
4179## ----------- ##
4180## Core tests. ##
4181## ----------- ##
4182
4183_ACEOF
4184
4185
4186# Keep a trace of the command line.
4187# Strip out --no-create and --no-recursion so they do not pile up.
4188# Strip out --silent because we don't want to record it for future runs.
4189# Also quote any args containing shell meta-characters.
4190# Make two passes to allow for proper duplicate-argument suppression.
4191ac_configure_args=
4192ac_configure_args0=
4193ac_configure_args1=
4194ac_must_keep_next=false
4195for ac_pass in 1 2
4196do
4197  for ac_arg
4198  do
4199    case $ac_arg in
4200    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
4201    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4202    | -silent | --silent | --silen | --sile | --sil)
4203      continue ;;
4204    *\'*)
4205      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4206    esac
4207    case $ac_pass in
4208    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
4209    2)
4210      as_fn_append ac_configure_args1 " '$ac_arg'"
4211      if test $ac_must_keep_next = true; then
4212	ac_must_keep_next=false # Got value, back to normal.
4213      else
4214	case $ac_arg in
4215	  *=* | --config-cache | -C | -disable-* | --disable-* \
4216	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
4217	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
4218	  | -with-* | --with-* | -without-* | --without-* | --x)
4219	    case "$ac_configure_args0 " in
4220	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
4221	    esac
4222	    ;;
4223	  -* ) ac_must_keep_next=true ;;
4224	esac
4225      fi
4226      as_fn_append ac_configure_args " '$ac_arg'"
4227      ;;
4228    esac
4229  done
4230done
4231{ ac_configure_args0=; unset ac_configure_args0;}
4232{ ac_configure_args1=; unset ac_configure_args1;}
4233
4234# When interrupted or exit'd, cleanup temporary files, and complete
4235# config.log.  We remove comments because anyway the quotes in there
4236# would cause problems or look ugly.
4237# WARNING: Use '\'' to represent an apostrophe within the trap.
4238# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
4239trap 'exit_status=$?
4240  # Save into config.log some information that might help in debugging.
4241  {
4242    echo
4243
4244    $as_echo "## ---------------- ##
4245## Cache variables. ##
4246## ---------------- ##"
4247    echo
4248    # The following way of writing the cache mishandles newlines in values,
4249(
4250  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
4251    eval ac_val=\$$ac_var
4252    case $ac_val in #(
4253    *${as_nl}*)
4254      case $ac_var in #(
4255      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4256$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4257      esac
4258      case $ac_var in #(
4259      _ | IFS | as_nl) ;; #(
4260      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4261      *) { eval $ac_var=; unset $ac_var;} ;;
4262      esac ;;
4263    esac
4264  done
4265  (set) 2>&1 |
4266    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
4267    *${as_nl}ac_space=\ *)
4268      sed -n \
4269	"s/'\''/'\''\\\\'\'''\''/g;
4270	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
4271      ;; #(
4272    *)
4273      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4274      ;;
4275    esac |
4276    sort
4277)
4278    echo
4279
4280    $as_echo "## ----------------- ##
4281## Output variables. ##
4282## ----------------- ##"
4283    echo
4284    for ac_var in $ac_subst_vars
4285    do
4286      eval ac_val=\$$ac_var
4287      case $ac_val in
4288      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
4289      esac
4290      $as_echo "$ac_var='\''$ac_val'\''"
4291    done | sort
4292    echo
4293
4294    if test -n "$ac_subst_files"; then
4295      $as_echo "## ------------------- ##
4296## File substitutions. ##
4297## ------------------- ##"
4298      echo
4299      for ac_var in $ac_subst_files
4300      do
4301	eval ac_val=\$$ac_var
4302	case $ac_val in
4303	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
4304	esac
4305	$as_echo "$ac_var='\''$ac_val'\''"
4306      done | sort
4307      echo
4308    fi
4309
4310    if test -s confdefs.h; then
4311      $as_echo "## ----------- ##
4312## confdefs.h. ##
4313## ----------- ##"
4314      echo
4315      cat confdefs.h
4316      echo
4317    fi
4318    test "$ac_signal" != 0 &&
4319      $as_echo "$as_me: caught signal $ac_signal"
4320    $as_echo "$as_me: exit $exit_status"
4321  } >&5
4322  rm -f core *.core core.conftest.* &&
4323    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
4324    exit $exit_status
4325' 0
4326for ac_signal in 1 2 13 15; do
4327  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
4328done
4329ac_signal=0
4330
4331# confdefs.h avoids OS command line length limits that DEFS can exceed.
4332rm -f -r conftest* confdefs.h
4333
4334$as_echo "/* confdefs.h */" > confdefs.h
4335
4336# Predefined preprocessor variables.
4337
4338cat >>confdefs.h <<_ACEOF
4339#define PACKAGE_NAME "$PACKAGE_NAME"
4340_ACEOF
4341
4342cat >>confdefs.h <<_ACEOF
4343#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
4344_ACEOF
4345
4346cat >>confdefs.h <<_ACEOF
4347#define PACKAGE_VERSION "$PACKAGE_VERSION"
4348_ACEOF
4349
4350cat >>confdefs.h <<_ACEOF
4351#define PACKAGE_STRING "$PACKAGE_STRING"
4352_ACEOF
4353
4354cat >>confdefs.h <<_ACEOF
4355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
4356_ACEOF
4357
4358cat >>confdefs.h <<_ACEOF
4359#define PACKAGE_URL "$PACKAGE_URL"
4360_ACEOF
4361
4362
4363# Let the site file select an alternate cache file if it wants to.
4364# Prefer an explicitly selected file to automatically selected ones.
4365ac_site_file1=NONE
4366ac_site_file2=NONE
4367if test -n "$CONFIG_SITE"; then
4368  # We do not want a PATH search for config.site.
4369  case $CONFIG_SITE in #((
4370    -*)  ac_site_file1=./$CONFIG_SITE;;
4371    */*) ac_site_file1=$CONFIG_SITE;;
4372    *)   ac_site_file1=./$CONFIG_SITE;;
4373  esac
4374elif test "x$prefix" != xNONE; then
4375  ac_site_file1=$prefix/share/config.site
4376  ac_site_file2=$prefix/etc/config.site
4377else
4378  ac_site_file1=$ac_default_prefix/share/config.site
4379  ac_site_file2=$ac_default_prefix/etc/config.site
4380fi
4381for ac_site_file in "$ac_site_file1" "$ac_site_file2"
4382do
4383  test "x$ac_site_file" = xNONE && continue
4384  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
4385    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
4386$as_echo "$as_me: loading site script $ac_site_file" >&6;}
4387    sed 's/^/| /' "$ac_site_file" >&5
4388    . "$ac_site_file" \
4389      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4391as_fn_error $? "failed to load site script $ac_site_file
4392See \`config.log' for more details" "$LINENO" 5; }
4393  fi
4394done
4395
4396if test -r "$cache_file"; then
4397  # Some versions of bash will fail to source /dev/null (special files
4398  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
4399  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4400    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4401$as_echo "$as_me: loading cache $cache_file" >&6;}
4402    case $cache_file in
4403      [\\/]* | ?:[\\/]* ) . "$cache_file";;
4404      *)                      . "./$cache_file";;
4405    esac
4406  fi
4407else
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4409$as_echo "$as_me: creating cache $cache_file" >&6;}
4410  >$cache_file
4411fi
4412
4413as_fn_append ac_header_list " sys/socket.h"
4414gt_needs="$gt_needs "
4415as_fn_append ac_header_list " arpa/inet.h"
4416as_fn_append ac_header_list " features.h"
4417as_fn_append ac_func_list " _set_invalid_parameter_handler"
4418as_fn_append ac_func_list " explicit_bzero"
4419as_fn_append ac_func_list " memset_s"
4420as_fn_append ac_func_list " fcntl"
4421as_fn_append ac_header_list " unistd.h"
4422as_fn_append ac_func_list " symlink"
4423as_fn_append ac_header_list " sys/stat.h"
4424as_fn_append ac_func_list " getdelim"
4425as_fn_append ac_func_list " getdtablesize"
4426as_fn_append ac_header_list " sys/time.h"
4427as_fn_append ac_func_list " gettimeofday"
4428as_fn_append ac_header_list " netdb.h"
4429as_fn_append ac_header_list " netinet/in.h"
4430as_fn_append ac_header_list " limits.h"
4431as_fn_append ac_header_list " wchar.h"
4432as_fn_append ac_header_list " stdint.h"
4433as_fn_append ac_header_list " inttypes.h"
4434as_fn_append ac_header_list " sys/mman.h"
4435as_fn_append ac_func_list " mprotect"
4436as_fn_append ac_func_list " lstat"
4437as_fn_append ac_header_list " sys/param.h"
4438as_fn_append ac_func_list " secure_getenv"
4439as_fn_append ac_func_list " getuid"
4440as_fn_append ac_func_list " geteuid"
4441as_fn_append ac_func_list " getgid"
4442as_fn_append ac_func_list " getegid"
4443as_fn_append ac_func_list " snprintf"
4444as_fn_append ac_func_list " strdup"
4445as_fn_append ac_header_list " strings.h"
4446as_fn_append ac_func_list " strndup"
4447as_fn_append ac_header_list " sys/uio.h"
4448as_fn_append ac_header_list " threads.h"
4449as_fn_append ac_func_list " localtime_r"
4450as_fn_append ac_func_list " vasnprintf"
4451as_fn_append ac_header_list " crtdefs.h"
4452as_fn_append ac_func_list " ftruncate"
4453as_fn_append ac_func_list " isblank"
4454as_fn_append ac_header_list " langinfo.h"
4455as_fn_append ac_header_list " xlocale.h"
4456as_fn_append ac_func_list " newlocale"
4457as_fn_append ac_func_list " uselocale"
4458as_fn_append ac_func_list " duplocale"
4459as_fn_append ac_func_list " freelocale"
4460as_fn_append ac_header_list " sys/select.h"
4461as_fn_append ac_func_list " strerror_r"
4462as_fn_append ac_func_list " __xpg_strerror_r"
4463as_fn_append ac_func_list " pipe"
4464as_fn_append ac_header_list " pthread.h"
4465as_fn_append ac_func_list " pthread_sigmask"
4466as_fn_append ac_header_list " sys/cdefs.h"
4467as_fn_append ac_header_list " sys/wait.h"
4468as_fn_append ac_func_list " setenv"
4469as_fn_append ac_func_list " sigaction"
4470as_fn_append ac_func_list " sigaltstack"
4471as_fn_append ac_func_list " siginterrupt"
4472as_fn_append ac_func_list " sleep"
4473as_fn_append ac_func_list " catgets"
4474as_fn_append ac_header_list " sys/ioctl.h"
4475as_fn_append ac_func_list " shutdown"
4476as_fn_append ac_func_list " mquery"
4477as_fn_append ac_func_list " pstat_getprocvm"
4478as_fn_append ac_func_list " getpass"
4479as_fn_append ac_header_list " stdio_ext.h"
4480as_fn_append ac_header_list " termios.h"
4481as_fn_append ac_func_list " __fsetlocking"
4482as_fn_append ac_func_list " tzset"
4483as_fn_append ac_func_list " timegm"
4484# Check that the precious variables saved in the cache have kept the same
4485# value.
4486ac_cache_corrupted=false
4487for ac_var in $ac_precious_vars; do
4488  eval ac_old_set=\$ac_cv_env_${ac_var}_set
4489  eval ac_new_set=\$ac_env_${ac_var}_set
4490  eval ac_old_val=\$ac_cv_env_${ac_var}_value
4491  eval ac_new_val=\$ac_env_${ac_var}_value
4492  case $ac_old_set,$ac_new_set in
4493    set,)
4494      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4495$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4496      ac_cache_corrupted=: ;;
4497    ,set)
4498      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4499$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4500      ac_cache_corrupted=: ;;
4501    ,);;
4502    *)
4503      if test "x$ac_old_val" != "x$ac_new_val"; then
4504	# differences in whitespace do not lead to failure.
4505	ac_old_val_w=`echo x $ac_old_val`
4506	ac_new_val_w=`echo x $ac_new_val`
4507	if test "$ac_old_val_w" != "$ac_new_val_w"; then
4508	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4509$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4510	  ac_cache_corrupted=:
4511	else
4512	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4513$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4514	  eval $ac_var=\$ac_old_val
4515	fi
4516	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
4517$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
4518	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
4519$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
4520      fi;;
4521  esac
4522  # Pass precious variables to config.status.
4523  if test "$ac_new_set" = set; then
4524    case $ac_new_val in
4525    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4526    *) ac_arg=$ac_var=$ac_new_val ;;
4527    esac
4528    case " $ac_configure_args " in
4529      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
4530      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4531    esac
4532  fi
4533done
4534if $ac_cache_corrupted; then
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4538$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
4539  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
4540fi
4541## -------------------- ##
4542## Main body of script. ##
4543## -------------------- ##
4544
4545ac_ext=c
4546ac_cpp='$CPP $CPPFLAGS'
4547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
4551
4552ac_aux_dir=
4553for ac_dir in build-aux "$srcdir"/build-aux; do
4554  if test -f "$ac_dir/install-sh"; then
4555    ac_aux_dir=$ac_dir
4556    ac_install_sh="$ac_aux_dir/install-sh -c"
4557    break
4558  elif test -f "$ac_dir/install.sh"; then
4559    ac_aux_dir=$ac_dir
4560    ac_install_sh="$ac_aux_dir/install.sh -c"
4561    break
4562  elif test -f "$ac_dir/shtool"; then
4563    ac_aux_dir=$ac_dir
4564    ac_install_sh="$ac_aux_dir/shtool install -c"
4565    break
4566  fi
4567done
4568if test -z "$ac_aux_dir"; then
4569  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
4570fi
4571
4572# These three variables are undocumented and unsupported,
4573# and are intended to be withdrawn in a future Autoconf release.
4574# They can cause serious problems if a builder's source tree is in a directory
4575# whose full name contains unusual characters.
4576ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4577ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4578ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4579
4580
4581
4582# Make sure we can run config.sub.
4583$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4584  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4587$as_echo_n "checking build system type... " >&6; }
4588if ${ac_cv_build+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  ac_build_alias=$build_alias
4592test "x$ac_build_alias" = x &&
4593  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4594test "x$ac_build_alias" = x &&
4595  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4596ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4597  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4598
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4601$as_echo "$ac_cv_build" >&6; }
4602case $ac_cv_build in
4603*-*-*) ;;
4604*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4605esac
4606build=$ac_cv_build
4607ac_save_IFS=$IFS; IFS='-'
4608set x $ac_cv_build
4609shift
4610build_cpu=$1
4611build_vendor=$2
4612shift; shift
4613# Remember, the first character of IFS is used to create $*,
4614# except with old shells:
4615build_os=$*
4616IFS=$ac_save_IFS
4617case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4618
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4621$as_echo_n "checking host system type... " >&6; }
4622if ${ac_cv_host+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  if test "x$host_alias" = x; then
4626  ac_cv_host=$ac_cv_build
4627else
4628  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4629    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4630fi
4631
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4634$as_echo "$ac_cv_host" >&6; }
4635case $ac_cv_host in
4636*-*-*) ;;
4637*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4638esac
4639host=$ac_cv_host
4640ac_save_IFS=$IFS; IFS='-'
4641set x $ac_cv_host
4642shift
4643host_cpu=$1
4644host_vendor=$2
4645shift; shift
4646# Remember, the first character of IFS is used to create $*,
4647# except with old shells:
4648host_os=$*
4649IFS=$ac_save_IFS
4650case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4651
4652
4653
4654am__api_version='1.16'
4655
4656# Find a good install program.  We prefer a C program (faster),
4657# so one script is as good as another.  But avoid the broken or
4658# incompatible versions:
4659# SysV /etc/install, /usr/sbin/install
4660# SunOS /usr/etc/install
4661# IRIX /sbin/install
4662# AIX /bin/install
4663# AmigaOS /C/install, which installs bootblocks on floppy discs
4664# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4665# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4666# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4667# OS/2's system install, which has a completely different semantic
4668# ./install, which can be erroneously created by make from ./install.sh.
4669# Reject install programs that cannot install multiple files.
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4671$as_echo_n "checking for a BSD-compatible install... " >&6; }
4672if test -z "$INSTALL"; then
4673if ${ac_cv_path_install+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
4678do
4679  IFS=$as_save_IFS
4680  test -z "$as_dir" && as_dir=.
4681    # Account for people who put trailing slashes in PATH elements.
4682case $as_dir/ in #((
4683  ./ | .// | /[cC]/* | \
4684  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4685  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4686  /usr/ucb/* ) ;;
4687  *)
4688    # OSF1 and SCO ODT 3.0 have their own names for install.
4689    # Don't use installbsd from OSF since it installs stuff as root
4690    # by default.
4691    for ac_prog in ginstall scoinst install; do
4692      for ac_exec_ext in '' $ac_executable_extensions; do
4693	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4694	  if test $ac_prog = install &&
4695	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4696	    # AIX install.  It has an incompatible calling convention.
4697	    :
4698	  elif test $ac_prog = install &&
4699	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4700	    # program-specific install script used by HP pwplus--don't use.
4701	    :
4702	  else
4703	    rm -rf conftest.one conftest.two conftest.dir
4704	    echo one > conftest.one
4705	    echo two > conftest.two
4706	    mkdir conftest.dir
4707	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4708	      test -s conftest.one && test -s conftest.two &&
4709	      test -s conftest.dir/conftest.one &&
4710	      test -s conftest.dir/conftest.two
4711	    then
4712	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4713	      break 3
4714	    fi
4715	  fi
4716	fi
4717      done
4718    done
4719    ;;
4720esac
4721
4722  done
4723IFS=$as_save_IFS
4724
4725rm -rf conftest.one conftest.two conftest.dir
4726
4727fi
4728  if test "${ac_cv_path_install+set}" = set; then
4729    INSTALL=$ac_cv_path_install
4730  else
4731    # As a last resort, use the slow shell script.  Don't cache a
4732    # value for INSTALL within a source directory, because that will
4733    # break other packages using the cache if that directory is
4734    # removed, or if the value is a relative name.
4735    INSTALL=$ac_install_sh
4736  fi
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4739$as_echo "$INSTALL" >&6; }
4740
4741# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4742# It thinks the first close brace ends the variable substitution.
4743test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4744
4745test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4746
4747test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4750$as_echo_n "checking whether build environment is sane... " >&6; }
4751# Reject unsafe characters in $srcdir or the absolute working directory
4752# name.  Accept space and tab only in the latter.
4753am_lf='
4754'
4755case `pwd` in
4756  *[\\\"\#\$\&\'\`$am_lf]*)
4757    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4758esac
4759case $srcdir in
4760  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4761    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4762esac
4763
4764# Do 'set' in a subshell so we don't clobber the current shell's
4765# arguments.  Must try -L first in case configure is actually a
4766# symlink; some systems play weird games with the mod time of symlinks
4767# (eg FreeBSD returns the mod time of the symlink's containing
4768# directory).
4769if (
4770   am_has_slept=no
4771   for am_try in 1 2; do
4772     echo "timestamp, slept: $am_has_slept" > conftest.file
4773     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4774     if test "$*" = "X"; then
4775	# -L didn't work.
4776	set X `ls -t "$srcdir/configure" conftest.file`
4777     fi
4778     if test "$*" != "X $srcdir/configure conftest.file" \
4779	&& test "$*" != "X conftest.file $srcdir/configure"; then
4780
4781	# If neither matched, then we have a broken ls.  This can happen
4782	# if, for instance, CONFIG_SHELL is bash and it inherits a
4783	# broken ls alias from the environment.  This has actually
4784	# happened.  Such a system could not be considered "sane".
4785	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4786  alias in your environment" "$LINENO" 5
4787     fi
4788     if test "$2" = conftest.file || test $am_try -eq 2; then
4789       break
4790     fi
4791     # Just in case.
4792     sleep 1
4793     am_has_slept=yes
4794   done
4795   test "$2" = conftest.file
4796   )
4797then
4798   # Ok.
4799   :
4800else
4801   as_fn_error $? "newly created file is older than distributed files!
4802Check your system clock" "$LINENO" 5
4803fi
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4805$as_echo "yes" >&6; }
4806# If we didn't sleep, we still need to ensure time stamps of config.status and
4807# generated files are strictly newer.
4808am_sleep_pid=
4809if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4810  ( sleep 1 ) &
4811  am_sleep_pid=$!
4812fi
4813
4814rm -f conftest.file
4815
4816test "$program_prefix" != NONE &&
4817  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4818# Use a double $ so make ignores it.
4819test "$program_suffix" != NONE &&
4820  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4821# Double any \ or $.
4822# By default was `s,x,x', remove it if useless.
4823ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4824program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4825
4826# Expand $ac_aux_dir to an absolute path.
4827am_aux_dir=`cd "$ac_aux_dir" && pwd`
4828
4829if test x"${MISSING+set}" != xset; then
4830  case $am_aux_dir in
4831  *\ * | *\	*)
4832    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4833  *)
4834    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4835  esac
4836fi
4837# Use eval to expand $SHELL
4838if eval "$MISSING --is-lightweight"; then
4839  am_missing_run="$MISSING "
4840else
4841  am_missing_run=
4842  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4843$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4844fi
4845
4846if test x"${install_sh+set}" != xset; then
4847  case $am_aux_dir in
4848  *\ * | *\	*)
4849    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4850  *)
4851    install_sh="\${SHELL} $am_aux_dir/install-sh"
4852  esac
4853fi
4854
4855# Installed binaries are usually stripped using 'strip' when the user
4856# run "make install-strip".  However 'strip' might not be the right
4857# tool to use in cross-compilation environments, therefore Automake
4858# will honor the 'STRIP' environment variable to overrule this program.
4859if test "$cross_compiling" != no; then
4860  if test -n "$ac_tool_prefix"; then
4861  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4862set dummy ${ac_tool_prefix}strip; ac_word=$2
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864$as_echo_n "checking for $ac_word... " >&6; }
4865if ${ac_cv_prog_STRIP+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if test -n "$STRIP"; then
4869  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874  IFS=$as_save_IFS
4875  test -z "$as_dir" && as_dir=.
4876    for ac_exec_ext in '' $ac_executable_extensions; do
4877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880    break 2
4881  fi
4882done
4883  done
4884IFS=$as_save_IFS
4885
4886fi
4887fi
4888STRIP=$ac_cv_prog_STRIP
4889if test -n "$STRIP"; then
4890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4891$as_echo "$STRIP" >&6; }
4892else
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897
4898fi
4899if test -z "$ac_cv_prog_STRIP"; then
4900  ac_ct_STRIP=$STRIP
4901  # Extract the first word of "strip", so it can be a program name with args.
4902set dummy strip; ac_word=$2
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904$as_echo_n "checking for $ac_word... " >&6; }
4905if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4906  $as_echo_n "(cached) " >&6
4907else
4908  if test -n "$ac_ct_STRIP"; then
4909  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914  IFS=$as_save_IFS
4915  test -z "$as_dir" && as_dir=.
4916    for ac_exec_ext in '' $ac_executable_extensions; do
4917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918    ac_cv_prog_ac_ct_STRIP="strip"
4919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920    break 2
4921  fi
4922done
4923  done
4924IFS=$as_save_IFS
4925
4926fi
4927fi
4928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4929if test -n "$ac_ct_STRIP"; then
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4931$as_echo "$ac_ct_STRIP" >&6; }
4932else
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934$as_echo "no" >&6; }
4935fi
4936
4937  if test "x$ac_ct_STRIP" = x; then
4938    STRIP=":"
4939  else
4940    case $cross_compiling:$ac_tool_warned in
4941yes:)
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4944ac_tool_warned=yes ;;
4945esac
4946    STRIP=$ac_ct_STRIP
4947  fi
4948else
4949  STRIP="$ac_cv_prog_STRIP"
4950fi
4951
4952fi
4953INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4954
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4956$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4957if test -z "$MKDIR_P"; then
4958  if ${ac_cv_path_mkdir+:} false; then :
4959  $as_echo_n "(cached) " >&6
4960else
4961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4963do
4964  IFS=$as_save_IFS
4965  test -z "$as_dir" && as_dir=.
4966    for ac_prog in mkdir gmkdir; do
4967	 for ac_exec_ext in '' $ac_executable_extensions; do
4968	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4969	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4970	     'mkdir (GNU coreutils) '* | \
4971	     'mkdir (coreutils) '* | \
4972	     'mkdir (fileutils) '4.1*)
4973	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4974	       break 3;;
4975	   esac
4976	 done
4977       done
4978  done
4979IFS=$as_save_IFS
4980
4981fi
4982
4983  test -d ./--version && rmdir ./--version
4984  if test "${ac_cv_path_mkdir+set}" = set; then
4985    MKDIR_P="$ac_cv_path_mkdir -p"
4986  else
4987    # As a last resort, use the slow shell script.  Don't cache a
4988    # value for MKDIR_P within a source directory, because that will
4989    # break other packages using the cache if that directory is
4990    # removed, or if the value is a relative name.
4991    MKDIR_P="$ac_install_sh -d"
4992  fi
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4995$as_echo "$MKDIR_P" >&6; }
4996
4997for ac_prog in gawk mawk nawk awk
4998do
4999  # Extract the first word of "$ac_prog", so it can be a program name with args.
5000set dummy $ac_prog; ac_word=$2
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002$as_echo_n "checking for $ac_word... " >&6; }
5003if ${ac_cv_prog_AWK+:} false; then :
5004  $as_echo_n "(cached) " >&6
5005else
5006  if test -n "$AWK"; then
5007  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5008else
5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010for as_dir in $PATH
5011do
5012  IFS=$as_save_IFS
5013  test -z "$as_dir" && as_dir=.
5014    for ac_exec_ext in '' $ac_executable_extensions; do
5015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016    ac_cv_prog_AWK="$ac_prog"
5017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018    break 2
5019  fi
5020done
5021  done
5022IFS=$as_save_IFS
5023
5024fi
5025fi
5026AWK=$ac_cv_prog_AWK
5027if test -n "$AWK"; then
5028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5029$as_echo "$AWK" >&6; }
5030else
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032$as_echo "no" >&6; }
5033fi
5034
5035
5036  test -n "$AWK" && break
5037done
5038
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5040$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5041set x ${MAKE-make}
5042ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5043if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046  cat >conftest.make <<\_ACEOF
5047SHELL = /bin/sh
5048all:
5049	@echo '@@@%%%=$(MAKE)=@@@%%%'
5050_ACEOF
5051# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5052case `${MAKE-make} -f conftest.make 2>/dev/null` in
5053  *@@@%%%=?*=@@@%%%*)
5054    eval ac_cv_prog_make_${ac_make}_set=yes;;
5055  *)
5056    eval ac_cv_prog_make_${ac_make}_set=no;;
5057esac
5058rm -f conftest.make
5059fi
5060if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5062$as_echo "yes" >&6; }
5063  SET_MAKE=
5064else
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066$as_echo "no" >&6; }
5067  SET_MAKE="MAKE=${MAKE-make}"
5068fi
5069
5070rm -rf .tst 2>/dev/null
5071mkdir .tst 2>/dev/null
5072if test -d .tst; then
5073  am__leading_dot=.
5074else
5075  am__leading_dot=_
5076fi
5077rmdir .tst 2>/dev/null
5078
5079# Check whether --enable-silent-rules was given.
5080if test "${enable_silent_rules+set}" = set; then :
5081  enableval=$enable_silent_rules;
5082fi
5083
5084case $enable_silent_rules in # (((
5085  yes) AM_DEFAULT_VERBOSITY=0;;
5086   no) AM_DEFAULT_VERBOSITY=1;;
5087    *) AM_DEFAULT_VERBOSITY=1;;
5088esac
5089am_make=${MAKE-make}
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5091$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5092if ${am_cv_make_support_nested_variables+:} false; then :
5093  $as_echo_n "(cached) " >&6
5094else
5095  if $as_echo 'TRUE=$(BAR$(V))
5096BAR0=false
5097BAR1=true
5098V=1
5099am__doit:
5100	@$(TRUE)
5101.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5102  am_cv_make_support_nested_variables=yes
5103else
5104  am_cv_make_support_nested_variables=no
5105fi
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5108$as_echo "$am_cv_make_support_nested_variables" >&6; }
5109if test $am_cv_make_support_nested_variables = yes; then
5110    AM_V='$(V)'
5111  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5112else
5113  AM_V=$AM_DEFAULT_VERBOSITY
5114  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5115fi
5116AM_BACKSLASH='\'
5117
5118if test "`cd $srcdir && pwd`" != "`pwd`"; then
5119  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5120  # is not polluted with repeated "-I."
5121  am__isrc=' -I$(srcdir)'
5122  # test to see if srcdir already configured
5123  if test -f $srcdir/config.status; then
5124    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5125  fi
5126fi
5127
5128# test whether we have cygpath
5129if test -z "$CYGPATH_W"; then
5130  if (cygpath --version) >/dev/null 2>/dev/null; then
5131    CYGPATH_W='cygpath -w'
5132  else
5133    CYGPATH_W=echo
5134  fi
5135fi
5136
5137
5138# Define the identity of the package.
5139 PACKAGE='gnutls'
5140 VERSION='3.6.16'
5141
5142
5143cat >>confdefs.h <<_ACEOF
5144#define PACKAGE "$PACKAGE"
5145_ACEOF
5146
5147
5148cat >>confdefs.h <<_ACEOF
5149#define VERSION "$VERSION"
5150_ACEOF
5151
5152# Some tools Automake needs.
5153
5154ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5155
5156
5157AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5158
5159
5160AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5161
5162
5163AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5164
5165
5166MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5167
5168# For better backward compatibility.  To be removed once Automake 1.9.x
5169# dies out for good.  For more background, see:
5170# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5171# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5172mkdir_p='$(MKDIR_P)'
5173
5174# We need awk for the "check" target (and possibly the TAP driver).  The
5175# system "awk" is bad on some platforms.
5176# Always define AMTAR for backward compatibility.  Yes, it's still used
5177# in the wild :-(  We should find a proper way to deprecate it ...
5178AMTAR='$${TAR-tar}'
5179
5180
5181# We'll loop over all known methods to create a tar archive until one works.
5182_am_tools='gnutar  pax cpio none'
5183
5184am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5185
5186
5187
5188
5189
5190
5191# POSIX will say in a future version that running "rm -f" with no argument
5192# is OK; and we want to be able to make that assumption in our Makefile
5193# recipes.  So use an aggressive probe to check that the usage we want is
5194# actually supported "in the wild" to an acceptable degree.
5195# See automake bug#10828.
5196# To make any issue more visible, cause the running configure to be aborted
5197# by default if the 'rm' program in use doesn't match our expectations; the
5198# user can still override this though.
5199if rm -f && rm -fr && rm -rf; then : OK; else
5200  cat >&2 <<'END'
5201Oops!
5202
5203Your 'rm' program seems unable to run without file operands specified
5204on the command line, even when the '-f' option is present.  This is contrary
5205to the behaviour of most rm programs out there, and not conforming with
5206the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5207
5208Please tell bug-automake@gnu.org about your system, including the value
5209of your $PATH and any error possibly output before this message.  This
5210can help us improve future automake versions.
5211
5212END
5213  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5214    echo 'Configuration will proceed anyway, since you have set the' >&2
5215    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5216    echo >&2
5217  else
5218    cat >&2 <<'END'
5219Aborting the configuration process, to ensure you take notice of the issue.
5220
5221You can download and install GNU coreutils to get an 'rm' implementation
5222that behaves properly: <https://www.gnu.org/software/coreutils/>.
5223
5224If you want to complete the configuration process using your problematic
5225'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5226to "yes", and re-run configure.
5227
5228END
5229    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5230  fi
5231fi
5232
5233# Check whether --enable-silent-rules was given.
5234if test "${enable_silent_rules+set}" = set; then :
5235  enableval=$enable_silent_rules;
5236fi
5237
5238case $enable_silent_rules in # (((
5239  yes) AM_DEFAULT_VERBOSITY=0;;
5240   no) AM_DEFAULT_VERBOSITY=1;;
5241    *) AM_DEFAULT_VERBOSITY=0;;
5242esac
5243am_make=${MAKE-make}
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5245$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5246if ${am_cv_make_support_nested_variables+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  if $as_echo 'TRUE=$(BAR$(V))
5250BAR0=false
5251BAR1=true
5252V=1
5253am__doit:
5254	@$(TRUE)
5255.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5256  am_cv_make_support_nested_variables=yes
5257else
5258  am_cv_make_support_nested_variables=no
5259fi
5260fi
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5262$as_echo "$am_cv_make_support_nested_variables" >&6; }
5263if test $am_cv_make_support_nested_variables = yes; then
5264    AM_V='$(V)'
5265  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5266else
5267  AM_V=$AM_DEFAULT_VERBOSITY
5268  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5269fi
5270AM_BACKSLASH='\'
5271
5272ac_config_headers="$ac_config_headers config.h"
5273
5274
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
5276*** Checking for compilation programs...
5277" >&5
5278$as_echo "***
5279*** Checking for compilation programs...
5280" >&6; }
5281
5282
5283
5284
5285
5286
5287
5288
5289if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5290	if test -n "$ac_tool_prefix"; then
5291  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5292set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294$as_echo_n "checking for $ac_word... " >&6; }
5295if ${ac_cv_path_PKG_CONFIG+:} false; then :
5296  $as_echo_n "(cached) " >&6
5297else
5298  case $PKG_CONFIG in
5299  [\\/]* | ?:[\\/]*)
5300  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5301  ;;
5302  *)
5303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306  IFS=$as_save_IFS
5307  test -z "$as_dir" && as_dir=.
5308    for ac_exec_ext in '' $ac_executable_extensions; do
5309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312    break 2
5313  fi
5314done
5315  done
5316IFS=$as_save_IFS
5317
5318  ;;
5319esac
5320fi
5321PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5322if test -n "$PKG_CONFIG"; then
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5324$as_echo "$PKG_CONFIG" >&6; }
5325else
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327$as_echo "no" >&6; }
5328fi
5329
5330
5331fi
5332if test -z "$ac_cv_path_PKG_CONFIG"; then
5333  ac_pt_PKG_CONFIG=$PKG_CONFIG
5334  # Extract the first word of "pkg-config", so it can be a program name with args.
5335set dummy pkg-config; ac_word=$2
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  case $ac_pt_PKG_CONFIG in
5342  [\\/]* | ?:[\\/]*)
5343  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5344  ;;
5345  *)
5346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349  IFS=$as_save_IFS
5350  test -z "$as_dir" && as_dir=.
5351    for ac_exec_ext in '' $ac_executable_extensions; do
5352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355    break 2
5356  fi
5357done
5358  done
5359IFS=$as_save_IFS
5360
5361  ;;
5362esac
5363fi
5364ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5365if test -n "$ac_pt_PKG_CONFIG"; then
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5367$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5368else
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370$as_echo "no" >&6; }
5371fi
5372
5373  if test "x$ac_pt_PKG_CONFIG" = x; then
5374    PKG_CONFIG=""
5375  else
5376    case $cross_compiling:$ac_tool_warned in
5377yes:)
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5380ac_tool_warned=yes ;;
5381esac
5382    PKG_CONFIG=$ac_pt_PKG_CONFIG
5383  fi
5384else
5385  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5386fi
5387
5388fi
5389if test -n "$PKG_CONFIG"; then
5390	_pkg_min_version=0.9.0
5391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5392$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5393	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5394		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5395$as_echo "yes" >&6; }
5396	else
5397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
5399		PKG_CONFIG=""
5400	fi
5401fi
5402ac_ext=c
5403ac_cpp='$CPP $CPPFLAGS'
5404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407if test -n "$ac_tool_prefix"; then
5408  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5409set dummy ${ac_tool_prefix}gcc; ac_word=$2
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411$as_echo_n "checking for $ac_word... " >&6; }
5412if ${ac_cv_prog_CC+:} false; then :
5413  $as_echo_n "(cached) " >&6
5414else
5415  if test -n "$CC"; then
5416  ac_cv_prog_CC="$CC" # Let the user override the test.
5417else
5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421  IFS=$as_save_IFS
5422  test -z "$as_dir" && as_dir=.
5423    for ac_exec_ext in '' $ac_executable_extensions; do
5424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427    break 2
5428  fi
5429done
5430  done
5431IFS=$as_save_IFS
5432
5433fi
5434fi
5435CC=$ac_cv_prog_CC
5436if test -n "$CC"; then
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5438$as_echo "$CC" >&6; }
5439else
5440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441$as_echo "no" >&6; }
5442fi
5443
5444
5445fi
5446if test -z "$ac_cv_prog_CC"; then
5447  ac_ct_CC=$CC
5448  # Extract the first word of "gcc", so it can be a program name with args.
5449set dummy gcc; ac_word=$2
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
5452if ${ac_cv_prog_ac_ct_CC+:} false; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  if test -n "$ac_ct_CC"; then
5456  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  test -z "$as_dir" && as_dir=.
5463    for ac_exec_ext in '' $ac_executable_extensions; do
5464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465    ac_cv_prog_ac_ct_CC="gcc"
5466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467    break 2
5468  fi
5469done
5470  done
5471IFS=$as_save_IFS
5472
5473fi
5474fi
5475ac_ct_CC=$ac_cv_prog_ac_ct_CC
5476if test -n "$ac_ct_CC"; then
5477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5478$as_echo "$ac_ct_CC" >&6; }
5479else
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481$as_echo "no" >&6; }
5482fi
5483
5484  if test "x$ac_ct_CC" = x; then
5485    CC=""
5486  else
5487    case $cross_compiling:$ac_tool_warned in
5488yes:)
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5491ac_tool_warned=yes ;;
5492esac
5493    CC=$ac_ct_CC
5494  fi
5495else
5496  CC="$ac_cv_prog_CC"
5497fi
5498
5499if test -z "$CC"; then
5500          if test -n "$ac_tool_prefix"; then
5501    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5502set dummy ${ac_tool_prefix}cc; ac_word=$2
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504$as_echo_n "checking for $ac_word... " >&6; }
5505if ${ac_cv_prog_CC+:} false; then :
5506  $as_echo_n "(cached) " >&6
5507else
5508  if test -n "$CC"; then
5509  ac_cv_prog_CC="$CC" # Let the user override the test.
5510else
5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514  IFS=$as_save_IFS
5515  test -z "$as_dir" && as_dir=.
5516    for ac_exec_ext in '' $ac_executable_extensions; do
5517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518    ac_cv_prog_CC="${ac_tool_prefix}cc"
5519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520    break 2
5521  fi
5522done
5523  done
5524IFS=$as_save_IFS
5525
5526fi
5527fi
5528CC=$ac_cv_prog_CC
5529if test -n "$CC"; then
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5531$as_echo "$CC" >&6; }
5532else
5533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534$as_echo "no" >&6; }
5535fi
5536
5537
5538  fi
5539fi
5540if test -z "$CC"; then
5541  # Extract the first word of "cc", so it can be a program name with args.
5542set dummy cc; ac_word=$2
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544$as_echo_n "checking for $ac_word... " >&6; }
5545if ${ac_cv_prog_CC+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  if test -n "$CC"; then
5549  ac_cv_prog_CC="$CC" # Let the user override the test.
5550else
5551  ac_prog_rejected=no
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555  IFS=$as_save_IFS
5556  test -z "$as_dir" && as_dir=.
5557    for ac_exec_ext in '' $ac_executable_extensions; do
5558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5560       ac_prog_rejected=yes
5561       continue
5562     fi
5563    ac_cv_prog_CC="cc"
5564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565    break 2
5566  fi
5567done
5568  done
5569IFS=$as_save_IFS
5570
5571if test $ac_prog_rejected = yes; then
5572  # We found a bogon in the path, so make sure we never use it.
5573  set dummy $ac_cv_prog_CC
5574  shift
5575  if test $# != 0; then
5576    # We chose a different compiler from the bogus one.
5577    # However, it has the same basename, so the bogon will be chosen
5578    # first if we set CC to just the basename; use the full file name.
5579    shift
5580    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5581  fi
5582fi
5583fi
5584fi
5585CC=$ac_cv_prog_CC
5586if test -n "$CC"; then
5587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5588$as_echo "$CC" >&6; }
5589else
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591$as_echo "no" >&6; }
5592fi
5593
5594
5595fi
5596if test -z "$CC"; then
5597  if test -n "$ac_tool_prefix"; then
5598  for ac_prog in cl.exe
5599  do
5600    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
5604if ${ac_cv_prog_CC+:} false; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  if test -n "$CC"; then
5608  ac_cv_prog_CC="$CC" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613  IFS=$as_save_IFS
5614  test -z "$as_dir" && as_dir=.
5615    for ac_exec_ext in '' $ac_executable_extensions; do
5616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619    break 2
5620  fi
5621done
5622  done
5623IFS=$as_save_IFS
5624
5625fi
5626fi
5627CC=$ac_cv_prog_CC
5628if test -n "$CC"; then
5629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5630$as_echo "$CC" >&6; }
5631else
5632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634fi
5635
5636
5637    test -n "$CC" && break
5638  done
5639fi
5640if test -z "$CC"; then
5641  ac_ct_CC=$CC
5642  for ac_prog in cl.exe
5643do
5644  # Extract the first word of "$ac_prog", so it can be a program name with args.
5645set dummy $ac_prog; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if ${ac_cv_prog_ac_ct_CC+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  if test -n "$ac_ct_CC"; then
5652  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657  IFS=$as_save_IFS
5658  test -z "$as_dir" && as_dir=.
5659    for ac_exec_ext in '' $ac_executable_extensions; do
5660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661    ac_cv_prog_ac_ct_CC="$ac_prog"
5662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663    break 2
5664  fi
5665done
5666  done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671ac_ct_CC=$ac_cv_prog_ac_ct_CC
5672if test -n "$ac_ct_CC"; then
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5674$as_echo "$ac_ct_CC" >&6; }
5675else
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680
5681  test -n "$ac_ct_CC" && break
5682done
5683
5684  if test "x$ac_ct_CC" = x; then
5685    CC=""
5686  else
5687    case $cross_compiling:$ac_tool_warned in
5688yes:)
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691ac_tool_warned=yes ;;
5692esac
5693    CC=$ac_ct_CC
5694  fi
5695fi
5696
5697fi
5698if test -z "$CC"; then
5699  if test -n "$ac_tool_prefix"; then
5700  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5701set dummy ${ac_tool_prefix}clang; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if ${ac_cv_prog_CC+:} false; then :
5705  $as_echo_n "(cached) " >&6
5706else
5707  if test -n "$CC"; then
5708  ac_cv_prog_CC="$CC" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713  IFS=$as_save_IFS
5714  test -z "$as_dir" && as_dir=.
5715    for ac_exec_ext in '' $ac_executable_extensions; do
5716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717    ac_cv_prog_CC="${ac_tool_prefix}clang"
5718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719    break 2
5720  fi
5721done
5722  done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727CC=$ac_cv_prog_CC
5728if test -n "$CC"; then
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5730$as_echo "$CC" >&6; }
5731else
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736
5737fi
5738if test -z "$ac_cv_prog_CC"; then
5739  ac_ct_CC=$CC
5740  # Extract the first word of "clang", so it can be a program name with args.
5741set dummy clang; ac_word=$2
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743$as_echo_n "checking for $ac_word... " >&6; }
5744if ${ac_cv_prog_ac_ct_CC+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747  if test -n "$ac_ct_CC"; then
5748  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755    for ac_exec_ext in '' $ac_executable_extensions; do
5756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757    ac_cv_prog_ac_ct_CC="clang"
5758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762  done
5763IFS=$as_save_IFS
5764
5765fi
5766fi
5767ac_ct_CC=$ac_cv_prog_ac_ct_CC
5768if test -n "$ac_ct_CC"; then
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5770$as_echo "$ac_ct_CC" >&6; }
5771else
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773$as_echo "no" >&6; }
5774fi
5775
5776  if test "x$ac_ct_CC" = x; then
5777    CC=""
5778  else
5779    case $cross_compiling:$ac_tool_warned in
5780yes:)
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783ac_tool_warned=yes ;;
5784esac
5785    CC=$ac_ct_CC
5786  fi
5787else
5788  CC="$ac_cv_prog_CC"
5789fi
5790
5791fi
5792
5793
5794test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5796as_fn_error $? "no acceptable C compiler found in \$PATH
5797See \`config.log' for more details" "$LINENO" 5; }
5798
5799# Provide some information about the compiler.
5800$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5801set X $ac_compile
5802ac_compiler=$2
5803for ac_option in --version -v -V -qversion -version; do
5804  { { ac_try="$ac_compiler $ac_option >&5"
5805case "(($ac_try" in
5806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807  *) ac_try_echo=$ac_try;;
5808esac
5809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5810$as_echo "$ac_try_echo"; } >&5
5811  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5812  ac_status=$?
5813  if test -s conftest.err; then
5814    sed '10a\
5815... rest of stderr output deleted ...
5816         10q' conftest.err >conftest.er1
5817    cat conftest.er1 >&5
5818  fi
5819  rm -f conftest.er1 conftest.err
5820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821  test $ac_status = 0; }
5822done
5823
5824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h.  */
5826
5827int
5828main ()
5829{
5830
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835ac_clean_files_save=$ac_clean_files
5836ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5837# Try to create an executable without -o first, disregard a.out.
5838# It will help us diagnose broken compilers, and finding out an intuition
5839# of exeext.
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5841$as_echo_n "checking whether the C compiler works... " >&6; }
5842ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5843
5844# The possible output files:
5845ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5846
5847ac_rmfiles=
5848for ac_file in $ac_files
5849do
5850  case $ac_file in
5851    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5852    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5853  esac
5854done
5855rm -f $ac_rmfiles
5856
5857if { { ac_try="$ac_link_default"
5858case "(($ac_try" in
5859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860  *) ac_try_echo=$ac_try;;
5861esac
5862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5863$as_echo "$ac_try_echo"; } >&5
5864  (eval "$ac_link_default") 2>&5
5865  ac_status=$?
5866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867  test $ac_status = 0; }; then :
5868  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5869# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5870# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5871# so that the user can short-circuit this test for compilers unknown to
5872# Autoconf.
5873for ac_file in $ac_files ''
5874do
5875  test -f "$ac_file" || continue
5876  case $ac_file in
5877    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5878	;;
5879    [ab].out )
5880	# We found the default executable, but exeext='' is most
5881	# certainly right.
5882	break;;
5883    *.* )
5884	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5885	then :; else
5886	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5887	fi
5888	# We set ac_cv_exeext here because the later test for it is not
5889	# safe: cross compilers may not add the suffix if given an `-o'
5890	# argument, so we may need to know it at that point already.
5891	# Even if this section looks crufty: it has the advantage of
5892	# actually working.
5893	break;;
5894    * )
5895	break;;
5896  esac
5897done
5898test "$ac_cv_exeext" = no && ac_cv_exeext=
5899
5900else
5901  ac_file=''
5902fi
5903if test -z "$ac_file"; then :
5904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905$as_echo "no" >&6; }
5906$as_echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5911as_fn_error 77 "C compiler cannot create executables
5912See \`config.log' for more details" "$LINENO" 5; }
5913else
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5915$as_echo "yes" >&6; }
5916fi
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5918$as_echo_n "checking for C compiler default output file name... " >&6; }
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5920$as_echo "$ac_file" >&6; }
5921ac_exeext=$ac_cv_exeext
5922
5923rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5924ac_clean_files=$ac_clean_files_save
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5926$as_echo_n "checking for suffix of executables... " >&6; }
5927if { { ac_try="$ac_link"
5928case "(($ac_try" in
5929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930  *) ac_try_echo=$ac_try;;
5931esac
5932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5933$as_echo "$ac_try_echo"; } >&5
5934  (eval "$ac_link") 2>&5
5935  ac_status=$?
5936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937  test $ac_status = 0; }; then :
5938  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5939# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5940# work properly (i.e., refer to `conftest.exe'), while it won't with
5941# `rm'.
5942for ac_file in conftest.exe conftest conftest.*; do
5943  test -f "$ac_file" || continue
5944  case $ac_file in
5945    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5946    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5947	  break;;
5948    * ) break;;
5949  esac
5950done
5951else
5952  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5954as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5955See \`config.log' for more details" "$LINENO" 5; }
5956fi
5957rm -f conftest conftest$ac_cv_exeext
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5959$as_echo "$ac_cv_exeext" >&6; }
5960
5961rm -f conftest.$ac_ext
5962EXEEXT=$ac_cv_exeext
5963ac_exeext=$EXEEXT
5964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h.  */
5966#include <stdio.h>
5967int
5968main ()
5969{
5970FILE *f = fopen ("conftest.out", "w");
5971 return ferror (f) || fclose (f) != 0;
5972
5973  ;
5974  return 0;
5975}
5976_ACEOF
5977ac_clean_files="$ac_clean_files conftest.out"
5978# Check that the compiler produces executables we can run.  If not, either
5979# the compiler is broken, or we cross compile.
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5981$as_echo_n "checking whether we are cross compiling... " >&6; }
5982if test "$cross_compiling" != yes; then
5983  { { ac_try="$ac_link"
5984case "(($ac_try" in
5985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986  *) ac_try_echo=$ac_try;;
5987esac
5988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5989$as_echo "$ac_try_echo"; } >&5
5990  (eval "$ac_link") 2>&5
5991  ac_status=$?
5992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993  test $ac_status = 0; }
5994  if { ac_try='./conftest$ac_cv_exeext'
5995  { { case "(($ac_try" in
5996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997  *) ac_try_echo=$ac_try;;
5998esac
5999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6000$as_echo "$ac_try_echo"; } >&5
6001  (eval "$ac_try") 2>&5
6002  ac_status=$?
6003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004  test $ac_status = 0; }; }; then
6005    cross_compiling=no
6006  else
6007    if test "$cross_compiling" = maybe; then
6008	cross_compiling=yes
6009    else
6010	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012as_fn_error $? "cannot run C compiled programs.
6013If you meant to cross compile, use \`--host'.
6014See \`config.log' for more details" "$LINENO" 5; }
6015    fi
6016  fi
6017fi
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6019$as_echo "$cross_compiling" >&6; }
6020
6021rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
6022ac_clean_files=$ac_clean_files_save
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6024$as_echo_n "checking for suffix of object files... " >&6; }
6025if ${ac_cv_objext+:} false; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030
6031int
6032main ()
6033{
6034
6035  ;
6036  return 0;
6037}
6038_ACEOF
6039rm -f conftest.o conftest.obj
6040if { { ac_try="$ac_compile"
6041case "(($ac_try" in
6042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043  *) ac_try_echo=$ac_try;;
6044esac
6045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6046$as_echo "$ac_try_echo"; } >&5
6047  (eval "$ac_compile") 2>&5
6048  ac_status=$?
6049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6050  test $ac_status = 0; }; then :
6051  for ac_file in conftest.o conftest.obj conftest.*; do
6052  test -f "$ac_file" || continue;
6053  case $ac_file in
6054    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6055    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6056       break;;
6057  esac
6058done
6059else
6060  $as_echo "$as_me: failed program was:" >&5
6061sed 's/^/| /' conftest.$ac_ext >&5
6062
6063{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6065as_fn_error $? "cannot compute suffix of object files: cannot compile
6066See \`config.log' for more details" "$LINENO" 5; }
6067fi
6068rm -f conftest.$ac_cv_objext conftest.$ac_ext
6069fi
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6071$as_echo "$ac_cv_objext" >&6; }
6072OBJEXT=$ac_cv_objext
6073ac_objext=$OBJEXT
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6075$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6076if ${ac_cv_c_compiler_gnu+:} false; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081
6082int
6083main ()
6084{
6085#ifndef __GNUC__
6086       choke me
6087#endif
6088
6089  ;
6090  return 0;
6091}
6092_ACEOF
6093if ac_fn_c_try_compile "$LINENO"; then :
6094  ac_compiler_gnu=yes
6095else
6096  ac_compiler_gnu=no
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099ac_cv_c_compiler_gnu=$ac_compiler_gnu
6100
6101fi
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6103$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6104if test $ac_compiler_gnu = yes; then
6105  GCC=yes
6106else
6107  GCC=
6108fi
6109ac_test_CFLAGS=${CFLAGS+set}
6110ac_save_CFLAGS=$CFLAGS
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6112$as_echo_n "checking whether $CC accepts -g... " >&6; }
6113if ${ac_cv_prog_cc_g+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116  ac_save_c_werror_flag=$ac_c_werror_flag
6117   ac_c_werror_flag=yes
6118   ac_cv_prog_cc_g=no
6119   CFLAGS="-g"
6120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h.  */
6122
6123int
6124main ()
6125{
6126
6127  ;
6128  return 0;
6129}
6130_ACEOF
6131if ac_fn_c_try_compile "$LINENO"; then :
6132  ac_cv_prog_cc_g=yes
6133else
6134  CFLAGS=""
6135      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136/* end confdefs.h.  */
6137
6138int
6139main ()
6140{
6141
6142  ;
6143  return 0;
6144}
6145_ACEOF
6146if ac_fn_c_try_compile "$LINENO"; then :
6147
6148else
6149  ac_c_werror_flag=$ac_save_c_werror_flag
6150	 CFLAGS="-g"
6151	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153
6154int
6155main ()
6156{
6157
6158  ;
6159  return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_compile "$LINENO"; then :
6163  ac_cv_prog_cc_g=yes
6164fi
6165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166fi
6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168fi
6169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170   ac_c_werror_flag=$ac_save_c_werror_flag
6171fi
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6173$as_echo "$ac_cv_prog_cc_g" >&6; }
6174if test "$ac_test_CFLAGS" = set; then
6175  CFLAGS=$ac_save_CFLAGS
6176elif test $ac_cv_prog_cc_g = yes; then
6177  if test "$GCC" = yes; then
6178    CFLAGS="-g -O2"
6179  else
6180    CFLAGS="-g"
6181  fi
6182else
6183  if test "$GCC" = yes; then
6184    CFLAGS="-O2"
6185  else
6186    CFLAGS=
6187  fi
6188fi
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6190$as_echo_n "checking for $CC option to enable C11 features... " >&6; }
6191if ${ac_cv_prog_cc_c11+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  ac_cv_prog_cc_c11=no
6195ac_save_CC=$CC
6196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h.  */
6198#include <stdarg.h>
6199#include <stdbool.h>
6200#include <stddef.h>
6201#include <stdlib.h>
6202#include <wchar.h>
6203#include <stdio.h>
6204
6205// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6206#define debug(...) fprintf (stderr, __VA_ARGS__)
6207#define showlist(...) puts (#__VA_ARGS__)
6208#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6209static void
6210test_varargs_macros (void)
6211{
6212  int x = 1234;
6213  int y = 5678;
6214  debug ("Flag");
6215  debug ("X = %d\n", x);
6216  showlist (The first, second, and third items.);
6217  report (x>y, "x is %d but y is %d", x, y);
6218}
6219
6220// Check long long types.
6221#define BIG64 18446744073709551615ull
6222#define BIG32 4294967295ul
6223#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6224#if !BIG_OK
6225  your preprocessor is broken;
6226#endif
6227#if BIG_OK
6228#else
6229  your preprocessor is broken;
6230#endif
6231static long long int bignum = -9223372036854775807LL;
6232static unsigned long long int ubignum = BIG64;
6233
6234struct incomplete_array
6235{
6236  int datasize;
6237  double data[];
6238};
6239
6240struct named_init {
6241  int number;
6242  const wchar_t *name;
6243  double average;
6244};
6245
6246typedef const char *ccp;
6247
6248static inline int
6249test_restrict (ccp restrict text)
6250{
6251  // See if C++-style comments work.
6252  // Iterate through items via the restricted pointer.
6253  // Also check for declarations in for loops.
6254  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6255    continue;
6256  return 0;
6257}
6258
6259// Check varargs and va_copy.
6260static bool
6261test_varargs (const char *format, ...)
6262{
6263  va_list args;
6264  va_start (args, format);
6265  va_list args_copy;
6266  va_copy (args_copy, args);
6267
6268  const char *str = "";
6269  int number = 0;
6270  float fnumber = 0;
6271
6272  while (*format)
6273    {
6274      switch (*format++)
6275	{
6276	case 's': // string
6277	  str = va_arg (args_copy, const char *);
6278	  break;
6279	case 'd': // int
6280	  number = va_arg (args_copy, int);
6281	  break;
6282	case 'f': // float
6283	  fnumber = va_arg (args_copy, double);
6284	  break;
6285	default:
6286	  break;
6287	}
6288    }
6289  va_end (args_copy);
6290  va_end (args);
6291
6292  return *str && number && fnumber;
6293}
6294// Check _Alignas.
6295char _Alignas (double) aligned_as_double;
6296char _Alignas (0) no_special_alignment;
6297extern char aligned_as_int;
6298char _Alignas (0) _Alignas (int) aligned_as_int;
6299
6300// Check _Alignof.
6301enum
6302{
6303  int_alignment = _Alignof (int),
6304  int_array_alignment = _Alignof (int[100]),
6305  char_alignment = _Alignof (char)
6306};
6307_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
6308
6309// Check _Noreturn.
6310int _Noreturn does_not_return (void) { for (;;) continue; }
6311
6312// Check _Static_assert.
6313struct test_static_assert
6314{
6315  int x;
6316  _Static_assert (sizeof (int) <= sizeof (long int),
6317                  "_Static_assert does not work in struct");
6318  long int y;
6319};
6320
6321// Check UTF-8 literals.
6322#define u8 syntax error!
6323char const utf8_literal[] = u8"happens to be ASCII" "another string";
6324
6325// Check duplicate typedefs.
6326typedef long *long_ptr;
6327typedef long int *long_ptr;
6328typedef long_ptr long_ptr;
6329
6330// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
6331struct anonymous
6332{
6333  union {
6334    struct { int i; int j; };
6335    struct { int k; long int l; } w;
6336  };
6337  int m;
6338} v1;
6339
6340int
6341main ()
6342{
6343
6344  // Check bool.
6345  _Bool success = false;
6346
6347  // Check restrict.
6348  if (test_restrict ("String literal") == 0)
6349    success = true;
6350  char *restrict newvar = "Another string";
6351
6352  // Check varargs.
6353  success &= test_varargs ("s, d' f .", "string", 65, 34.234);
6354  test_varargs_macros ();
6355
6356  // Check flexible array members.
6357  struct incomplete_array *ia =
6358    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6359  ia->datasize = 10;
6360  for (int i = 0; i < ia->datasize; ++i)
6361    ia->data[i] = i * 1.234;
6362
6363  // Check named initializers.
6364  struct named_init ni = {
6365    .number = 34,
6366    .name = L"Test wide string",
6367    .average = 543.34343,
6368  };
6369
6370  ni.number = 58;
6371
6372  int dynamic_array[ni.number];
6373  dynamic_array[ni.number - 1] = 543;
6374
6375  // work around unused variable warnings
6376  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6377	  || dynamic_array[ni.number - 1] != 543);
6378
6379  v1.i = 2;
6380  v1.w.k = 5;
6381  _Static_assert ((offsetof (struct anonymous, i)
6382		   == offsetof (struct anonymous, w.k)),
6383		  "Anonymous union alignment botch");
6384
6385  ;
6386  return 0;
6387}
6388_ACEOF
6389for ac_arg in '' -std=gnu11
6390do
6391  CC="$ac_save_CC $ac_arg"
6392  if ac_fn_c_try_compile "$LINENO"; then :
6393  ac_cv_prog_cc_c11=$ac_arg
6394fi
6395rm -f core conftest.err conftest.$ac_objext
6396  test "x$ac_cv_prog_cc_c11" != "xno" && break
6397done
6398rm -f conftest.$ac_ext
6399CC=$ac_save_CC
6400
6401fi
6402# AC_CACHE_VAL
6403ac_prog_cc_stdc_options=
6404case "x$ac_cv_prog_cc_c11" in
6405  x)
6406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6407$as_echo "none needed" >&6; } ;;
6408  xno)
6409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6410$as_echo "unsupported" >&6; } ;;
6411  *)
6412    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
6413    CC=$CC$ac_prog_cc_stdc_options
6414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6415$as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
6416esac
6417if test "x$ac_cv_prog_cc_c11" != xno; then :
6418  ac_prog_cc_stdc=c11
6419		 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6420else
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6422$as_echo_n "checking for $CC option to enable C99 features... " >&6; }
6423if ${ac_cv_prog_cc_c99+:} false; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  ac_cv_prog_cc_c99=no
6427ac_save_CC=$CC
6428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h.  */
6430#include <stdarg.h>
6431#include <stdbool.h>
6432#include <stddef.h>
6433#include <stdlib.h>
6434#include <wchar.h>
6435#include <stdio.h>
6436
6437// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6438#define debug(...) fprintf (stderr, __VA_ARGS__)
6439#define showlist(...) puts (#__VA_ARGS__)
6440#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6441static void
6442test_varargs_macros (void)
6443{
6444  int x = 1234;
6445  int y = 5678;
6446  debug ("Flag");
6447  debug ("X = %d\n", x);
6448  showlist (The first, second, and third items.);
6449  report (x>y, "x is %d but y is %d", x, y);
6450}
6451
6452// Check long long types.
6453#define BIG64 18446744073709551615ull
6454#define BIG32 4294967295ul
6455#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6456#if !BIG_OK
6457  your preprocessor is broken;
6458#endif
6459#if BIG_OK
6460#else
6461  your preprocessor is broken;
6462#endif
6463static long long int bignum = -9223372036854775807LL;
6464static unsigned long long int ubignum = BIG64;
6465
6466struct incomplete_array
6467{
6468  int datasize;
6469  double data[];
6470};
6471
6472struct named_init {
6473  int number;
6474  const wchar_t *name;
6475  double average;
6476};
6477
6478typedef const char *ccp;
6479
6480static inline int
6481test_restrict (ccp restrict text)
6482{
6483  // See if C++-style comments work.
6484  // Iterate through items via the restricted pointer.
6485  // Also check for declarations in for loops.
6486  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6487    continue;
6488  return 0;
6489}
6490
6491// Check varargs and va_copy.
6492static bool
6493test_varargs (const char *format, ...)
6494{
6495  va_list args;
6496  va_start (args, format);
6497  va_list args_copy;
6498  va_copy (args_copy, args);
6499
6500  const char *str = "";
6501  int number = 0;
6502  float fnumber = 0;
6503
6504  while (*format)
6505    {
6506      switch (*format++)
6507	{
6508	case 's': // string
6509	  str = va_arg (args_copy, const char *);
6510	  break;
6511	case 'd': // int
6512	  number = va_arg (args_copy, int);
6513	  break;
6514	case 'f': // float
6515	  fnumber = va_arg (args_copy, double);
6516	  break;
6517	default:
6518	  break;
6519	}
6520    }
6521  va_end (args_copy);
6522  va_end (args);
6523
6524  return *str && number && fnumber;
6525}
6526int
6527main ()
6528{
6529
6530  // Check bool.
6531  _Bool success = false;
6532
6533  // Check restrict.
6534  if (test_restrict ("String literal") == 0)
6535    success = true;
6536  char *restrict newvar = "Another string";
6537
6538  // Check varargs.
6539  success &= test_varargs ("s, d' f .", "string", 65, 34.234);
6540  test_varargs_macros ();
6541
6542  // Check flexible array members.
6543  struct incomplete_array *ia =
6544    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6545  ia->datasize = 10;
6546  for (int i = 0; i < ia->datasize; ++i)
6547    ia->data[i] = i * 1.234;
6548
6549  // Check named initializers.
6550  struct named_init ni = {
6551    .number = 34,
6552    .name = L"Test wide string",
6553    .average = 543.34343,
6554  };
6555
6556  ni.number = 58;
6557
6558  int dynamic_array[ni.number];
6559  dynamic_array[ni.number - 1] = 543;
6560
6561  // work around unused variable warnings
6562  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6563	  || dynamic_array[ni.number - 1] != 543);
6564
6565  ;
6566  return 0;
6567}
6568_ACEOF
6569for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
6570do
6571  CC="$ac_save_CC $ac_arg"
6572  if ac_fn_c_try_compile "$LINENO"; then :
6573  ac_cv_prog_cc_c99=$ac_arg
6574fi
6575rm -f core conftest.err conftest.$ac_objext
6576  test "x$ac_cv_prog_cc_c99" != "xno" && break
6577done
6578rm -f conftest.$ac_ext
6579CC=$ac_save_CC
6580
6581fi
6582# AC_CACHE_VAL
6583ac_prog_cc_stdc_options=
6584case "x$ac_cv_prog_cc_c99" in
6585  x)
6586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6587$as_echo "none needed" >&6; } ;;
6588  xno)
6589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6590$as_echo "unsupported" >&6; } ;;
6591  *)
6592    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
6593    CC=$CC$ac_prog_cc_stdc_options
6594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6595$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6596esac
6597if test "x$ac_cv_prog_cc_c99" != xno; then :
6598  ac_prog_cc_stdc=c99
6599		    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6600else
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6602$as_echo_n "checking for $CC option to enable C89 features... " >&6; }
6603if ${ac_cv_prog_cc_c89+:} false; then :
6604  $as_echo_n "(cached) " >&6
6605else
6606  ac_cv_prog_cc_c89=no
6607ac_save_CC=$CC
6608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h.  */
6610#include <stdarg.h>
6611#include <stdio.h>
6612struct stat;
6613/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6614struct buf { int x; };
6615FILE * (*rcsopen) (struct buf *, struct stat *, int);
6616static char *e (p, i)
6617     char **p;
6618     int i;
6619{
6620  return p[i];
6621}
6622static char *f (char * (*g) (char **, int), char **p, ...)
6623{
6624  char *s;
6625  va_list v;
6626  va_start (v,p);
6627  s = g (p, va_arg (v,int));
6628  va_end (v);
6629  return s;
6630}
6631
6632/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6633   function prototypes and stuff, but not '\xHH' hex character constants.
6634   These don't provoke an error unfortunately, instead are silently treated
6635   as 'x'.  The following induces an error, until -std is added to get
6636   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6637   array size at least.  It's necessary to write '\x00'==0 to get something
6638   that's true only with -std.  */
6639int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6640
6641/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6642   inside strings and character constants.  */
6643#define FOO(x) 'x'
6644int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6645
6646int test (int i, double x);
6647struct s1 {int (*f) (int a);};
6648struct s2 {int (*f) (double a);};
6649int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6650int argc;
6651char **argv;
6652int
6653main ()
6654{
6655return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6656  ;
6657  return 0;
6658}
6659_ACEOF
6660for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6661	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6662do
6663  CC="$ac_save_CC $ac_arg"
6664  if ac_fn_c_try_compile "$LINENO"; then :
6665  ac_cv_prog_cc_c89=$ac_arg
6666fi
6667rm -f core conftest.err conftest.$ac_objext
6668  test "x$ac_cv_prog_cc_c89" != "xno" && break
6669done
6670rm -f conftest.$ac_ext
6671CC=$ac_save_CC
6672
6673fi
6674# AC_CACHE_VAL
6675ac_prog_cc_stdc_options=
6676case "x$ac_cv_prog_cc_c89" in
6677  x)
6678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6679$as_echo "none needed" >&6; } ;;
6680  xno)
6681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6682$as_echo "unsupported" >&6; } ;;
6683  *)
6684    ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
6685    CC=$CC$ac_prog_cc_stdc_options
6686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6687$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6688esac
6689if test "x$ac_cv_prog_cc_c89" != xno; then :
6690  ac_prog_cc_stdc=c89
6691		       ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6692else
6693  ac_prog_cc_stdc=no
6694		       ac_cv_prog_cc_stdc=no
6695fi
6696
6697fi
6698
6699fi
6700
6701ac_ext=c
6702ac_cpp='$CPP $CPPFLAGS'
6703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6705ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706
6707
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
6709$as_echo_n "checking whether the compiler is clang... " >&6; }
6710if ${gl_cv_compiler_clang+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h.  */
6715
6716           #ifdef __clang__
6717           barfbarf
6718           #endif
6719
6720int
6721main ()
6722{
6723
6724  ;
6725  return 0;
6726}
6727
6728_ACEOF
6729if ac_fn_c_try_compile "$LINENO"; then :
6730  gl_cv_compiler_clang=no
6731else
6732  gl_cv_compiler_clang=yes
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735
6736fi
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
6738$as_echo "$gl_cv_compiler_clang" >&6; }
6739
6740
6741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
6742$as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
6743if ${gl_cv_compiler_check_decl_option+:} false; then :
6744  $as_echo_n "(cached) " >&6
6745else
6746  if test $gl_cv_compiler_clang = yes; then
6747                     save_ac_compile="$ac_compile"
6748       ac_compile="$ac_compile -Werror=implicit-function-declaration"
6749                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750/* end confdefs.h.  */
6751
6752int
6753main ()
6754{
6755
6756  ;
6757  return 0;
6758}
6759_ACEOF
6760if ac_fn_c_try_compile "$LINENO"; then :
6761  gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
6762else
6763  gl_cv_compiler_check_decl_option=none
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766       ac_compile="$save_ac_compile"
6767     else
6768       gl_cv_compiler_check_decl_option=none
6769     fi
6770
6771fi
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
6773$as_echo "$gl_cv_compiler_check_decl_option" >&6; }
6774  if test "x$gl_cv_compiler_check_decl_option" != xnone; then
6775    ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
6776  else
6777    ac_compile_for_check_decl="$ac_compile"
6778  fi
6779
6780DEPDIR="${am__leading_dot}deps"
6781
6782ac_config_commands="$ac_config_commands depfiles"
6783
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6785$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
6786cat > confinc.mk << 'END'
6787am__doit:
6788	@echo this is the am__doit target >confinc.out
6789.PHONY: am__doit
6790END
6791am__include="#"
6792am__quote=
6793# BSD make does it like this.
6794echo '.include "confinc.mk" # ignored' > confmf.BSD
6795# Other make implementations (GNU, Solaris 10, AIX) do it like this.
6796echo 'include confinc.mk # ignored' > confmf.GNU
6797_am_result=no
6798for s in GNU BSD; do
6799  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6800   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); }
6804  case $?:`cat confinc.out 2>/dev/null` in #(
6805  '0:this is the am__doit target') :
6806    case $s in #(
6807  BSD) :
6808    am__include='.include' am__quote='"' ;; #(
6809  *) :
6810    am__include='include' am__quote='' ;;
6811esac ;; #(
6812  *) :
6813     ;;
6814esac
6815  if test "$am__include" != "#"; then
6816    _am_result="yes ($s style)"
6817    break
6818  fi
6819done
6820rm -f confinc.* confmf.*
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6822$as_echo "${_am_result}" >&6; }
6823
6824# Check whether --enable-dependency-tracking was given.
6825if test "${enable_dependency_tracking+set}" = set; then :
6826  enableval=$enable_dependency_tracking;
6827fi
6828
6829if test "x$enable_dependency_tracking" != xno; then
6830  am_depcomp="$ac_aux_dir/depcomp"
6831  AMDEPBACKSLASH='\'
6832  am__nodep='_no'
6833fi
6834 if test "x$enable_dependency_tracking" != xno; then
6835  AMDEP_TRUE=
6836  AMDEP_FALSE='#'
6837else
6838  AMDEP_TRUE='#'
6839  AMDEP_FALSE=
6840fi
6841
6842
6843
6844depcc="$CC"   am_compiler_list=
6845
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6847$as_echo_n "checking dependency style of $depcc... " >&6; }
6848if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6849  $as_echo_n "(cached) " >&6
6850else
6851  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6852  # We make a subdir and do the tests there.  Otherwise we can end up
6853  # making bogus files that we don't know about and never remove.  For
6854  # instance it was reported that on HP-UX the gcc test will end up
6855  # making a dummy file named 'D' -- because '-MD' means "put the output
6856  # in D".
6857  rm -rf conftest.dir
6858  mkdir conftest.dir
6859  # Copy depcomp to subdir because otherwise we won't find it if we're
6860  # using a relative directory.
6861  cp "$am_depcomp" conftest.dir
6862  cd conftest.dir
6863  # We will build objects and dependencies in a subdirectory because
6864  # it helps to detect inapplicable dependency modes.  For instance
6865  # both Tru64's cc and ICC support -MD to output dependencies as a
6866  # side effect of compilation, but ICC will put the dependencies in
6867  # the current directory while Tru64 will put them in the object
6868  # directory.
6869  mkdir sub
6870
6871  am_cv_CC_dependencies_compiler_type=none
6872  if test "$am_compiler_list" = ""; then
6873     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6874  fi
6875  am__universal=false
6876  case " $depcc " in #(
6877     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6878     esac
6879
6880  for depmode in $am_compiler_list; do
6881    # Setup a source with many dependencies, because some compilers
6882    # like to wrap large dependency lists on column 80 (with \), and
6883    # we should not choose a depcomp mode which is confused by this.
6884    #
6885    # We need to recreate these files for each test, as the compiler may
6886    # overwrite some of them when testing with obscure command lines.
6887    # This happens at least with the AIX C compiler.
6888    : > sub/conftest.c
6889    for i in 1 2 3 4 5 6; do
6890      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6891      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6892      # Solaris 10 /bin/sh.
6893      echo '/* dummy */' > sub/conftst$i.h
6894    done
6895    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6896
6897    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6898    # mode.  It turns out that the SunPro C++ compiler does not properly
6899    # handle '-M -o', and we need to detect this.  Also, some Intel
6900    # versions had trouble with output in subdirs.
6901    am__obj=sub/conftest.${OBJEXT-o}
6902    am__minus_obj="-o $am__obj"
6903    case $depmode in
6904    gcc)
6905      # This depmode causes a compiler race in universal mode.
6906      test "$am__universal" = false || continue
6907      ;;
6908    nosideeffect)
6909      # After this tag, mechanisms are not by side-effect, so they'll
6910      # only be used when explicitly requested.
6911      if test "x$enable_dependency_tracking" = xyes; then
6912	continue
6913      else
6914	break
6915      fi
6916      ;;
6917    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6918      # This compiler won't grok '-c -o', but also, the minuso test has
6919      # not run yet.  These depmodes are late enough in the game, and
6920      # so weak that their functioning should not be impacted.
6921      am__obj=conftest.${OBJEXT-o}
6922      am__minus_obj=
6923      ;;
6924    none) break ;;
6925    esac
6926    if depmode=$depmode \
6927       source=sub/conftest.c object=$am__obj \
6928       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6929       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6930         >/dev/null 2>conftest.err &&
6931       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6932       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6933       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6934       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6935      # icc doesn't choke on unknown options, it will just issue warnings
6936      # or remarks (even with -Werror).  So we grep stderr for any message
6937      # that says an option was ignored or not supported.
6938      # When given -MP, icc 7.0 and 7.1 complain thusly:
6939      #   icc: Command line warning: ignoring option '-M'; no argument required
6940      # The diagnosis changed in icc 8.0:
6941      #   icc: Command line remark: option '-MP' not supported
6942      if (grep 'ignoring option' conftest.err ||
6943          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6944        am_cv_CC_dependencies_compiler_type=$depmode
6945        break
6946      fi
6947    fi
6948  done
6949
6950  cd ..
6951  rm -rf conftest.dir
6952else
6953  am_cv_CC_dependencies_compiler_type=none
6954fi
6955
6956fi
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6958$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6959CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6960
6961 if
6962  test "x$enable_dependency_tracking" != xno \
6963  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6964  am__fastdepCC_TRUE=
6965  am__fastdepCC_FALSE='#'
6966else
6967  am__fastdepCC_TRUE='#'
6968  am__fastdepCC_FALSE=
6969fi
6970
6971
6972
6973ac_ext=c
6974ac_cpp='$CPP $CPPFLAGS'
6975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6979$as_echo_n "checking how to run the C preprocessor... " >&6; }
6980# On Suns, sometimes $CPP names a directory.
6981if test -n "$CPP" && test -d "$CPP"; then
6982  CPP=
6983fi
6984if test -z "$CPP"; then
6985  if ${ac_cv_prog_CPP+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988      # Double quotes because CPP needs to be expanded
6989    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6990    do
6991      ac_preproc_ok=false
6992for ac_c_preproc_warn_flag in '' yes
6993do
6994  # Use a header file that comes with gcc, so configuring glibc
6995  # with a fresh cross-compiler works.
6996  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6997  # <limits.h> exists even on freestanding compilers.
6998  # On the NeXT, cc -E runs the code through the compiler's parser,
6999  # not just through cpp. "Syntax error" is here to catch this case.
7000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002#ifdef __STDC__
7003# include <limits.h>
7004#else
7005# include <assert.h>
7006#endif
7007		     Syntax error
7008_ACEOF
7009if ac_fn_c_try_cpp "$LINENO"; then :
7010
7011else
7012  # Broken: fails on valid input.
7013continue
7014fi
7015rm -f conftest.err conftest.i conftest.$ac_ext
7016
7017  # OK, works on sane cases.  Now check whether nonexistent headers
7018  # can be detected and how.
7019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020/* end confdefs.h.  */
7021#include <ac_nonexistent.h>
7022_ACEOF
7023if ac_fn_c_try_cpp "$LINENO"; then :
7024  # Broken: success on invalid input.
7025continue
7026else
7027  # Passes both tests.
7028ac_preproc_ok=:
7029break
7030fi
7031rm -f conftest.err conftest.i conftest.$ac_ext
7032
7033done
7034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7035rm -f conftest.i conftest.err conftest.$ac_ext
7036if $ac_preproc_ok; then :
7037  break
7038fi
7039
7040    done
7041    ac_cv_prog_CPP=$CPP
7042
7043fi
7044  CPP=$ac_cv_prog_CPP
7045else
7046  ac_cv_prog_CPP=$CPP
7047fi
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7049$as_echo "$CPP" >&6; }
7050ac_preproc_ok=false
7051for ac_c_preproc_warn_flag in '' yes
7052do
7053  # Use a header file that comes with gcc, so configuring glibc
7054  # with a fresh cross-compiler works.
7055  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7056  # <limits.h> exists even on freestanding compilers.
7057  # On the NeXT, cc -E runs the code through the compiler's parser,
7058  # not just through cpp. "Syntax error" is here to catch this case.
7059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060/* end confdefs.h.  */
7061#ifdef __STDC__
7062# include <limits.h>
7063#else
7064# include <assert.h>
7065#endif
7066		     Syntax error
7067_ACEOF
7068if ac_fn_c_try_cpp "$LINENO"; then :
7069
7070else
7071  # Broken: fails on valid input.
7072continue
7073fi
7074rm -f conftest.err conftest.i conftest.$ac_ext
7075
7076  # OK, works on sane cases.  Now check whether nonexistent headers
7077  # can be detected and how.
7078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079/* end confdefs.h.  */
7080#include <ac_nonexistent.h>
7081_ACEOF
7082if ac_fn_c_try_cpp "$LINENO"; then :
7083  # Broken: success on invalid input.
7084continue
7085else
7086  # Passes both tests.
7087ac_preproc_ok=:
7088break
7089fi
7090rm -f conftest.err conftest.i conftest.$ac_ext
7091
7092done
7093# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7094rm -f conftest.i conftest.err conftest.$ac_ext
7095if $ac_preproc_ok; then :
7096
7097else
7098  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7100as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7101See \`config.log' for more details" "$LINENO" 5; }
7102fi
7103
7104ac_ext=c
7105ac_cpp='$CPP $CPPFLAGS'
7106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7108ac_compiler_gnu=$ac_cv_c_compiler_gnu
7109
7110
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7112$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7113if ${ac_cv_path_GREP+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  if test -z "$GREP"; then
7117  ac_path_GREP_found=false
7118  # Loop through the user's path and test for each of PROGNAME-LIST
7119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7121do
7122  IFS=$as_save_IFS
7123  test -z "$as_dir" && as_dir=.
7124    for ac_prog in grep ggrep; do
7125    for ac_exec_ext in '' $ac_executable_extensions; do
7126      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7127      as_fn_executable_p "$ac_path_GREP" || continue
7128# Check for GNU ac_path_GREP and select it if it is found.
7129  # Check for GNU $ac_path_GREP
7130case `"$ac_path_GREP" --version 2>&1` in
7131*GNU*)
7132  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7133*)
7134  ac_count=0
7135  $as_echo_n 0123456789 >"conftest.in"
7136  while :
7137  do
7138    cat "conftest.in" "conftest.in" >"conftest.tmp"
7139    mv "conftest.tmp" "conftest.in"
7140    cp "conftest.in" "conftest.nl"
7141    $as_echo 'GREP' >> "conftest.nl"
7142    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7143    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7144    as_fn_arith $ac_count + 1 && ac_count=$as_val
7145    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7146      # Best one so far, save it but keep looking for a better one
7147      ac_cv_path_GREP="$ac_path_GREP"
7148      ac_path_GREP_max=$ac_count
7149    fi
7150    # 10*(2^10) chars as input seems more than enough
7151    test $ac_count -gt 10 && break
7152  done
7153  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7154esac
7155
7156      $ac_path_GREP_found && break 3
7157    done
7158  done
7159  done
7160IFS=$as_save_IFS
7161  if test -z "$ac_cv_path_GREP"; then
7162    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7163  fi
7164else
7165  ac_cv_path_GREP=$GREP
7166fi
7167
7168fi
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7170$as_echo "$ac_cv_path_GREP" >&6; }
7171 GREP="$ac_cv_path_GREP"
7172
7173
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7175$as_echo_n "checking for egrep... " >&6; }
7176if ${ac_cv_path_EGREP+:} false; then :
7177  $as_echo_n "(cached) " >&6
7178else
7179  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7180   then ac_cv_path_EGREP="$GREP -E"
7181   else
7182     if test -z "$EGREP"; then
7183  ac_path_EGREP_found=false
7184  # Loop through the user's path and test for each of PROGNAME-LIST
7185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190    for ac_prog in egrep; do
7191    for ac_exec_ext in '' $ac_executable_extensions; do
7192      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7193      as_fn_executable_p "$ac_path_EGREP" || continue
7194# Check for GNU ac_path_EGREP and select it if it is found.
7195  # Check for GNU $ac_path_EGREP
7196case `"$ac_path_EGREP" --version 2>&1` in
7197*GNU*)
7198  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7199*)
7200  ac_count=0
7201  $as_echo_n 0123456789 >"conftest.in"
7202  while :
7203  do
7204    cat "conftest.in" "conftest.in" >"conftest.tmp"
7205    mv "conftest.tmp" "conftest.in"
7206    cp "conftest.in" "conftest.nl"
7207    $as_echo 'EGREP' >> "conftest.nl"
7208    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7209    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7210    as_fn_arith $ac_count + 1 && ac_count=$as_val
7211    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7212      # Best one so far, save it but keep looking for a better one
7213      ac_cv_path_EGREP="$ac_path_EGREP"
7214      ac_path_EGREP_max=$ac_count
7215    fi
7216    # 10*(2^10) chars as input seems more than enough
7217    test $ac_count -gt 10 && break
7218  done
7219  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7220esac
7221
7222      $ac_path_EGREP_found && break 3
7223    done
7224  done
7225  done
7226IFS=$as_save_IFS
7227  if test -z "$ac_cv_path_EGREP"; then
7228    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7229  fi
7230else
7231  ac_cv_path_EGREP=$EGREP
7232fi
7233
7234   fi
7235fi
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7237$as_echo "$ac_cv_path_EGREP" >&6; }
7238 EGREP="$ac_cv_path_EGREP"
7239
7240
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7242$as_echo_n "checking for ANSI C header files... " >&6; }
7243if ${ac_cv_header_stdc+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h.  */
7248#include <stdlib.h>
7249#include <stdarg.h>
7250#include <string.h>
7251#include <float.h>
7252
7253int
7254main ()
7255{
7256
7257  ;
7258  return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_compile "$LINENO"; then :
7262  ac_cv_header_stdc=yes
7263else
7264  ac_cv_header_stdc=no
7265fi
7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267
7268if test $ac_cv_header_stdc = yes; then
7269  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271/* end confdefs.h.  */
7272#include <string.h>
7273
7274_ACEOF
7275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276  $EGREP "memchr" >/dev/null 2>&1; then :
7277
7278else
7279  ac_cv_header_stdc=no
7280fi
7281rm -f conftest*
7282
7283fi
7284
7285if test $ac_cv_header_stdc = yes; then
7286  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288/* end confdefs.h.  */
7289#include <stdlib.h>
7290
7291_ACEOF
7292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293  $EGREP "free" >/dev/null 2>&1; then :
7294
7295else
7296  ac_cv_header_stdc=no
7297fi
7298rm -f conftest*
7299
7300fi
7301
7302if test $ac_cv_header_stdc = yes; then
7303  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7304  if test "$cross_compiling" = yes; then :
7305  :
7306else
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309#include <ctype.h>
7310#include <stdlib.h>
7311#if ((' ' & 0x0FF) == 0x020)
7312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7314#else
7315# define ISLOWER(c) \
7316		   (('a' <= (c) && (c) <= 'i') \
7317		     || ('j' <= (c) && (c) <= 'r') \
7318		     || ('s' <= (c) && (c) <= 'z'))
7319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7320#endif
7321
7322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7323int
7324main ()
7325{
7326  int i;
7327  for (i = 0; i < 256; i++)
7328    if (XOR (islower (i), ISLOWER (i))
7329	|| toupper (i) != TOUPPER (i))
7330      return 2;
7331  return 0;
7332}
7333_ACEOF
7334if ac_fn_c_try_run "$LINENO"; then :
7335
7336else
7337  ac_cv_header_stdc=no
7338fi
7339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7340  conftest.$ac_objext conftest.beam conftest.$ac_ext
7341fi
7342
7343fi
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7346$as_echo "$ac_cv_header_stdc" >&6; }
7347if test $ac_cv_header_stdc = yes; then
7348
7349$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7350
7351fi
7352
7353# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7354for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7355		  inttypes.h stdint.h unistd.h
7356do :
7357  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7358ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7359"
7360if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7361  cat >>confdefs.h <<_ACEOF
7362#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7363_ACEOF
7364
7365fi
7366
7367done
7368
7369
7370
7371  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7372if test "x$ac_cv_header_minix_config_h" = xyes; then :
7373  MINIX=yes
7374else
7375  MINIX=
7376fi
7377
7378
7379  if test "$MINIX" = yes; then
7380
7381$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7382
7383
7384$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7385
7386
7387$as_echo "#define _MINIX 1" >>confdefs.h
7388
7389
7390$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7391
7392  fi
7393
7394
7395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7396$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7397if ${ac_cv_safe_to_define___extensions__+:} false; then :
7398  $as_echo_n "(cached) " >&6
7399else
7400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401/* end confdefs.h.  */
7402
7403#         define __EXTENSIONS__ 1
7404          $ac_includes_default
7405int
7406main ()
7407{
7408
7409  ;
7410  return 0;
7411}
7412_ACEOF
7413if ac_fn_c_try_compile "$LINENO"; then :
7414  ac_cv_safe_to_define___extensions__=yes
7415else
7416  ac_cv_safe_to_define___extensions__=no
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419fi
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7421$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7422  test $ac_cv_safe_to_define___extensions__ = yes &&
7423    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7424
7425  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7426
7427  $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7428
7429  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7430
7431  $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7432
7433  $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
7434
7435  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7436
7437  $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
7438
7439  $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
7440
7441  $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
7442
7443  $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
7444
7445  $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
7446
7447  $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
7448
7449  $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
7450
7451  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7452
7453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7454$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7455if ${ac_cv_should_define__xopen_source+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  ac_cv_should_define__xopen_source=no
7459     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461
7462          #include <wchar.h>
7463          mbstate_t x;
7464int
7465main ()
7466{
7467
7468  ;
7469  return 0;
7470}
7471_ACEOF
7472if ac_fn_c_try_compile "$LINENO"; then :
7473
7474else
7475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476/* end confdefs.h.  */
7477
7478             #define _XOPEN_SOURCE 500
7479             #include <wchar.h>
7480             mbstate_t x;
7481int
7482main ()
7483{
7484
7485  ;
7486  return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_compile "$LINENO"; then :
7490  ac_cv_should_define__xopen_source=yes
7491fi
7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493fi
7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7497$as_echo "$ac_cv_should_define__xopen_source" >&6; }
7498  test $ac_cv_should_define__xopen_source = yes &&
7499    $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7500
7501  $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7514$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
7515if ${gl_cv_c_amsterdam_compiler+:} false; then :
7516  $as_echo_n "(cached) " >&6
7517else
7518
7519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520/* end confdefs.h.  */
7521
7522#ifdef __ACK__
7523Amsterdam
7524#endif
7525
7526_ACEOF
7527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7528  $EGREP "Amsterdam" >/dev/null 2>&1; then :
7529  gl_cv_c_amsterdam_compiler=yes
7530else
7531  gl_cv_c_amsterdam_compiler=no
7532fi
7533rm -f conftest*
7534
7535
7536fi
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7538$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
7539
7540      if test $gl_cv_c_amsterdam_compiler = yes; then
7541    if test -z "$AR"; then
7542      AR='cc -c.a'
7543    fi
7544    if test -z "$ARFLAGS"; then
7545      ARFLAGS='-o'
7546    fi
7547  else
7548                                                if test -n "$ac_tool_prefix"; then
7549  for ac_prog in ar lib "link -lib"
7550  do
7551    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554$as_echo_n "checking for $ac_word... " >&6; }
7555if ${ac_cv_prog_AR+:} false; then :
7556  $as_echo_n "(cached) " >&6
7557else
7558  if test -n "$AR"; then
7559  ac_cv_prog_AR="$AR" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564  IFS=$as_save_IFS
7565  test -z "$as_dir" && as_dir=.
7566    for ac_exec_ext in '' $ac_executable_extensions; do
7567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570    break 2
7571  fi
7572done
7573  done
7574IFS=$as_save_IFS
7575
7576fi
7577fi
7578AR=$ac_cv_prog_AR
7579if test -n "$AR"; then
7580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7581$as_echo "$AR" >&6; }
7582else
7583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585fi
7586
7587
7588    test -n "$AR" && break
7589  done
7590fi
7591if test -z "$AR"; then
7592  ac_ct_AR=$AR
7593  for ac_prog in ar lib "link -lib"
7594do
7595  # Extract the first word of "$ac_prog", so it can be a program name with args.
7596set dummy $ac_prog; ac_word=$2
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598$as_echo_n "checking for $ac_word... " >&6; }
7599if ${ac_cv_prog_ac_ct_AR+:} false; then :
7600  $as_echo_n "(cached) " >&6
7601else
7602  if test -n "$ac_ct_AR"; then
7603  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7604else
7605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606for as_dir in $PATH
7607do
7608  IFS=$as_save_IFS
7609  test -z "$as_dir" && as_dir=.
7610    for ac_exec_ext in '' $ac_executable_extensions; do
7611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612    ac_cv_prog_ac_ct_AR="$ac_prog"
7613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614    break 2
7615  fi
7616done
7617  done
7618IFS=$as_save_IFS
7619
7620fi
7621fi
7622ac_ct_AR=$ac_cv_prog_ac_ct_AR
7623if test -n "$ac_ct_AR"; then
7624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7625$as_echo "$ac_ct_AR" >&6; }
7626else
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
7629fi
7630
7631
7632  test -n "$ac_ct_AR" && break
7633done
7634
7635  if test "x$ac_ct_AR" = x; then
7636    AR="false"
7637  else
7638    case $cross_compiling:$ac_tool_warned in
7639yes:)
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642ac_tool_warned=yes ;;
7643esac
7644    AR=$ac_ct_AR
7645  fi
7646fi
7647
7648: ${AR=ar}
7649
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7651$as_echo_n "checking the archiver ($AR) interface... " >&6; }
7652if ${am_cv_ar_interface+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  ac_ext=c
7656ac_cpp='$CPP $CPPFLAGS'
7657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660
7661   am_cv_ar_interface=ar
7662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663/* end confdefs.h.  */
7664int some_variable = 0;
7665_ACEOF
7666if ac_fn_c_try_compile "$LINENO"; then :
7667  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7668      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7669  (eval $am_ar_try) 2>&5
7670  ac_status=$?
7671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7672  test $ac_status = 0; }
7673      if test "$ac_status" -eq 0; then
7674        am_cv_ar_interface=ar
7675      else
7676        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7677        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7678  (eval $am_ar_try) 2>&5
7679  ac_status=$?
7680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681  test $ac_status = 0; }
7682        if test "$ac_status" -eq 0; then
7683          am_cv_ar_interface=lib
7684        else
7685          am_cv_ar_interface=unknown
7686        fi
7687      fi
7688      rm -f conftest.lib libconftest.a
7689
7690fi
7691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692   ac_ext=c
7693ac_cpp='$CPP $CPPFLAGS'
7694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7696ac_compiler_gnu=$ac_cv_c_compiler_gnu
7697
7698fi
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7700$as_echo "$am_cv_ar_interface" >&6; }
7701
7702case $am_cv_ar_interface in
7703ar)
7704  ;;
7705lib)
7706  # Microsoft lib, so override with the ar-lib wrapper script.
7707  # FIXME: It is wrong to rewrite AR.
7708  # But if we don't then we get into trouble of one sort or another.
7709  # A longer-term fix would be to have automake use am__AR in this case,
7710  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7711  # similar.
7712  AR="$am_aux_dir/ar-lib $AR"
7713  ;;
7714unknown)
7715  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7716  ;;
7717esac
7718
7719  fi
7720
7721        if test -n "$ac_tool_prefix"; then
7722  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7723set dummy ${ac_tool_prefix}ar; ac_word=$2
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725$as_echo_n "checking for $ac_word... " >&6; }
7726if ${ac_cv_prog_AR+:} false; then :
7727  $as_echo_n "(cached) " >&6
7728else
7729  if test -n "$AR"; then
7730  ac_cv_prog_AR="$AR" # Let the user override the test.
7731else
7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735  IFS=$as_save_IFS
7736  test -z "$as_dir" && as_dir=.
7737    for ac_exec_ext in '' $ac_executable_extensions; do
7738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739    ac_cv_prog_AR="${ac_tool_prefix}ar"
7740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741    break 2
7742  fi
7743done
7744  done
7745IFS=$as_save_IFS
7746
7747fi
7748fi
7749AR=$ac_cv_prog_AR
7750if test -n "$AR"; then
7751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7752$as_echo "$AR" >&6; }
7753else
7754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755$as_echo "no" >&6; }
7756fi
7757
7758
7759fi
7760if test -z "$ac_cv_prog_AR"; then
7761  ac_ct_AR=$AR
7762  # Extract the first word of "ar", so it can be a program name with args.
7763set dummy ar; ac_word=$2
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765$as_echo_n "checking for $ac_word... " >&6; }
7766if ${ac_cv_prog_ac_ct_AR+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  if test -n "$ac_ct_AR"; then
7770  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7771else
7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775  IFS=$as_save_IFS
7776  test -z "$as_dir" && as_dir=.
7777    for ac_exec_ext in '' $ac_executable_extensions; do
7778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779    ac_cv_prog_ac_ct_AR="ar"
7780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781    break 2
7782  fi
7783done
7784  done
7785IFS=$as_save_IFS
7786
7787fi
7788fi
7789ac_ct_AR=$ac_cv_prog_ac_ct_AR
7790if test -n "$ac_ct_AR"; then
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7792$as_echo "$ac_ct_AR" >&6; }
7793else
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795$as_echo "no" >&6; }
7796fi
7797
7798  if test "x$ac_ct_AR" = x; then
7799    AR="ar"
7800  else
7801    case $cross_compiling:$ac_tool_warned in
7802yes:)
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805ac_tool_warned=yes ;;
7806esac
7807    AR=$ac_ct_AR
7808  fi
7809else
7810  AR="$ac_cv_prog_AR"
7811fi
7812
7813  if test -z "$ARFLAGS"; then
7814    ARFLAGS='cr'
7815  fi
7816
7817
7818
7819  if test -z "$RANLIB"; then
7820    if test $gl_cv_c_amsterdam_compiler = yes; then
7821      RANLIB=':'
7822    else
7823            if test -n "$ac_tool_prefix"; then
7824  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7825set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827$as_echo_n "checking for $ac_word... " >&6; }
7828if ${ac_cv_prog_RANLIB+:} false; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  if test -n "$RANLIB"; then
7832  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7833else
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837  IFS=$as_save_IFS
7838  test -z "$as_dir" && as_dir=.
7839    for ac_exec_ext in '' $ac_executable_extensions; do
7840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843    break 2
7844  fi
7845done
7846  done
7847IFS=$as_save_IFS
7848
7849fi
7850fi
7851RANLIB=$ac_cv_prog_RANLIB
7852if test -n "$RANLIB"; then
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7854$as_echo "$RANLIB" >&6; }
7855else
7856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
7858fi
7859
7860
7861fi
7862if test -z "$ac_cv_prog_RANLIB"; then
7863  ac_ct_RANLIB=$RANLIB
7864  # Extract the first word of "ranlib", so it can be a program name with args.
7865set dummy ranlib; ac_word=$2
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867$as_echo_n "checking for $ac_word... " >&6; }
7868if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  if test -n "$ac_ct_RANLIB"; then
7872  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7873else
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877  IFS=$as_save_IFS
7878  test -z "$as_dir" && as_dir=.
7879    for ac_exec_ext in '' $ac_executable_extensions; do
7880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881    ac_cv_prog_ac_ct_RANLIB="ranlib"
7882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883    break 2
7884  fi
7885done
7886  done
7887IFS=$as_save_IFS
7888
7889fi
7890fi
7891ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7892if test -n "$ac_ct_RANLIB"; then
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7894$as_echo "$ac_ct_RANLIB" >&6; }
7895else
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898fi
7899
7900  if test "x$ac_ct_RANLIB" = x; then
7901    RANLIB=":"
7902  else
7903    case $cross_compiling:$ac_tool_warned in
7904yes:)
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907ac_tool_warned=yes ;;
7908esac
7909    RANLIB=$ac_ct_RANLIB
7910  fi
7911else
7912  RANLIB="$ac_cv_prog_RANLIB"
7913fi
7914
7915    fi
7916  fi
7917
7918
7919
7920
7921
7922
7923  # IEEE behaviour is the default on all CPUs except Alpha and SH
7924  # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
7925  # and the GCC 4.1.2 manual).
7926  case "$host_cpu" in
7927    alpha*)
7928      # On Alpha systems, a compiler option provides the behaviour.
7929      # See the ieee(3) manual page, also available at
7930      # <https://backdrift.org/man/tru64/man3/ieee.3.html>
7931      if test -n "$GCC"; then
7932        # GCC has the option -mieee.
7933        # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
7934        CPPFLAGS="$CPPFLAGS -mieee"
7935      else
7936        # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
7937        # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
7938        CPPFLAGS="$CPPFLAGS -ieee"
7939      fi
7940      ;;
7941    sh*)
7942      if test -n "$GCC"; then
7943        # GCC has the option -mieee.
7944        CPPFLAGS="$CPPFLAGS -mieee"
7945      fi
7946      ;;
7947  esac
7948
7949
7950
7951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7952$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7953if ${ac_cv_sys_largefile_source+:} false; then :
7954  $as_echo_n "(cached) " >&6
7955else
7956  while :; do
7957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h.  */
7959#include <sys/types.h> /* for off_t */
7960     #include <stdio.h>
7961int
7962main ()
7963{
7964int (*fp) (FILE *, off_t, int) = fseeko;
7965     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7966  ;
7967  return 0;
7968}
7969_ACEOF
7970if ac_fn_c_try_link "$LINENO"; then :
7971  ac_cv_sys_largefile_source=no; break
7972fi
7973rm -f core conftest.err conftest.$ac_objext \
7974    conftest$ac_exeext conftest.$ac_ext
7975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h.  */
7977#define _LARGEFILE_SOURCE 1
7978#include <sys/types.h> /* for off_t */
7979     #include <stdio.h>
7980int
7981main ()
7982{
7983int (*fp) (FILE *, off_t, int) = fseeko;
7984     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7985  ;
7986  return 0;
7987}
7988_ACEOF
7989if ac_fn_c_try_link "$LINENO"; then :
7990  ac_cv_sys_largefile_source=1; break
7991fi
7992rm -f core conftest.err conftest.$ac_objext \
7993    conftest$ac_exeext conftest.$ac_ext
7994  ac_cv_sys_largefile_source=unknown
7995  break
7996done
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7999$as_echo "$ac_cv_sys_largefile_source" >&6; }
8000case $ac_cv_sys_largefile_source in #(
8001  no | unknown) ;;
8002  *)
8003cat >>confdefs.h <<_ACEOF
8004#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8005_ACEOF
8006;;
8007esac
8008rm -rf conftest*
8009
8010# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8011# in glibc 2.1.3, but that breaks too many other things.
8012# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8013if test $ac_cv_sys_largefile_source != unknown; then
8014
8015$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
8016
8017fi
8018
8019  case "$host_os" in
8020    hpux*)
8021
8022$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
8023
8024      ;;
8025  esac
8026
8027# Check whether --enable-largefile was given.
8028if test "${enable_largefile+set}" = set; then :
8029  enableval=$enable_largefile;
8030fi
8031
8032if test "$enable_largefile" != no; then
8033
8034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8035$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8036if ${ac_cv_sys_largefile_CC+:} false; then :
8037  $as_echo_n "(cached) " >&6
8038else
8039  ac_cv_sys_largefile_CC=no
8040     if test "$GCC" != yes; then
8041       ac_save_CC=$CC
8042       while :; do
8043         # IRIX 6.2 and later do not support large files by default,
8044         # so use the C compiler's -n32 option if that helps.
8045         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047#include <sys/types.h>
8048 /* Check that off_t can represent 2**63 - 1 correctly.
8049    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8050    since some C++ compilers masquerading as C compilers
8051    incorrectly reject 9223372036854775807.  */
8052#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8053  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8054                       && LARGE_OFF_T % 2147483647 == 1)
8055                      ? 1 : -1];
8056int
8057main ()
8058{
8059
8060  ;
8061  return 0;
8062}
8063_ACEOF
8064         if ac_fn_c_try_compile "$LINENO"; then :
8065  break
8066fi
8067rm -f core conftest.err conftest.$ac_objext
8068         CC="$CC -n32"
8069         if ac_fn_c_try_compile "$LINENO"; then :
8070  ac_cv_sys_largefile_CC=' -n32'; break
8071fi
8072rm -f core conftest.err conftest.$ac_objext
8073         break
8074       done
8075       CC=$ac_save_CC
8076       rm -f conftest.$ac_ext
8077    fi
8078fi
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8080$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8081  if test "$ac_cv_sys_largefile_CC" != no; then
8082    CC=$CC$ac_cv_sys_largefile_CC
8083  fi
8084
8085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8086$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8087if ${ac_cv_sys_file_offset_bits+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090  while :; do
8091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092/* end confdefs.h.  */
8093#include <sys/types.h>
8094 /* Check that off_t can represent 2**63 - 1 correctly.
8095    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8096    since some C++ compilers masquerading as C compilers
8097    incorrectly reject 9223372036854775807.  */
8098#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8099  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8100                       && LARGE_OFF_T % 2147483647 == 1)
8101                      ? 1 : -1];
8102int
8103main ()
8104{
8105
8106  ;
8107  return 0;
8108}
8109_ACEOF
8110if ac_fn_c_try_compile "$LINENO"; then :
8111  ac_cv_sys_file_offset_bits=no; break
8112fi
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116#define _FILE_OFFSET_BITS 64
8117#include <sys/types.h>
8118 /* Check that off_t can represent 2**63 - 1 correctly.
8119    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8120    since some C++ compilers masquerading as C compilers
8121    incorrectly reject 9223372036854775807.  */
8122#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8123  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8124                       && LARGE_OFF_T % 2147483647 == 1)
8125                      ? 1 : -1];
8126int
8127main ()
8128{
8129
8130  ;
8131  return 0;
8132}
8133_ACEOF
8134if ac_fn_c_try_compile "$LINENO"; then :
8135  ac_cv_sys_file_offset_bits=64; break
8136fi
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138  ac_cv_sys_file_offset_bits=unknown
8139  break
8140done
8141fi
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8143$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8144case $ac_cv_sys_file_offset_bits in #(
8145  no | unknown) ;;
8146  *)
8147cat >>confdefs.h <<_ACEOF
8148#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8149_ACEOF
8150;;
8151esac
8152rm -rf conftest*
8153  if test $ac_cv_sys_file_offset_bits = unknown; then
8154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8155$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8156if ${ac_cv_sys_large_files+:} false; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  while :; do
8160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161/* end confdefs.h.  */
8162#include <sys/types.h>
8163 /* Check that off_t can represent 2**63 - 1 correctly.
8164    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8165    since some C++ compilers masquerading as C compilers
8166    incorrectly reject 9223372036854775807.  */
8167#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8168  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8169                       && LARGE_OFF_T % 2147483647 == 1)
8170                      ? 1 : -1];
8171int
8172main ()
8173{
8174
8175  ;
8176  return 0;
8177}
8178_ACEOF
8179if ac_fn_c_try_compile "$LINENO"; then :
8180  ac_cv_sys_large_files=no; break
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185#define _LARGE_FILES 1
8186#include <sys/types.h>
8187 /* Check that off_t can represent 2**63 - 1 correctly.
8188    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8189    since some C++ compilers masquerading as C compilers
8190    incorrectly reject 9223372036854775807.  */
8191#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8192  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8193                       && LARGE_OFF_T % 2147483647 == 1)
8194                      ? 1 : -1];
8195int
8196main ()
8197{
8198
8199  ;
8200  return 0;
8201}
8202_ACEOF
8203if ac_fn_c_try_compile "$LINENO"; then :
8204  ac_cv_sys_large_files=1; break
8205fi
8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207  ac_cv_sys_large_files=unknown
8208  break
8209done
8210fi
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8212$as_echo "$ac_cv_sys_large_files" >&6; }
8213case $ac_cv_sys_large_files in #(
8214  no | unknown) ;;
8215  *)
8216cat >>confdefs.h <<_ACEOF
8217#define _LARGE_FILES $ac_cv_sys_large_files
8218_ACEOF
8219;;
8220esac
8221rm -rf conftest*
8222  fi
8223fi
8224
8225
8226
8227
8228
8229
8230
8231  # Check whether --enable-threads was given.
8232if test "${enable_threads+set}" = set; then :
8233  enableval=$enable_threads; gl_use_threads=$enableval
8234else
8235  if test -n "$gl_use_threads_default"; then
8236       gl_use_threads="$gl_use_threads_default"
8237     else
8238       case "$host_os" in
8239                                    osf*) gl_use_threads=no ;;
8240                                    cygwin*)
8241               case `uname -r` in
8242                 1.[0-5].*) gl_use_threads=no ;;
8243                 *)         gl_use_threads=yes ;;
8244               esac
8245               ;;
8246                  mingw*)
8247               case "$gl_use_winpthreads_default" in
8248                 yes) gl_use_threads=posix ;;
8249                 no)  gl_use_threads=windows ;;
8250                 *)   gl_use_threads=yes ;;
8251               esac
8252               ;;
8253         *)    gl_use_threads=yes ;;
8254       esac
8255     fi
8256
8257fi
8258
8259  if test "$gl_use_threads" = yes \
8260     || test "$gl_use_threads" = isoc \
8261     || test "$gl_use_threads" = posix \
8262     || test "$gl_use_threads" = isoc+posix; then
8263    # For using <threads.h> or <pthread.h>:
8264
8265
8266  if test -z "$gl_anythreadlib_early_done"; then
8267    case "$host_os" in
8268      osf*)
8269        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8270        # groks <pthread.h>. cc also understands the flag -pthread, but
8271        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8272        # 2. putting a flag into CPPFLAGS that has an effect on the linker
8273        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8274        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8275        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8276        ;;
8277    esac
8278    # Some systems optimize for single-threaded programs by default, and
8279    # need special flags to disable these optimizations. For example, the
8280    # definition of 'errno' in <errno.h>.
8281    case "$host_os" in
8282      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8283      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8284    esac
8285    gl_anythreadlib_early_done=done
8286  fi
8287
8288  fi
8289
8290
8291
8292  # Pre-early section.
8293
8294
8295
8296
8297  # Code from module absolute-header:
8298  # Code from module accept:
8299  # Code from module accept-tests:
8300  # Code from module alloca:
8301  # Code from module alloca-opt:
8302  # Code from module alloca-opt-tests:
8303  # Code from module arpa_inet:
8304  # Code from module arpa_inet-tests:
8305  # Code from module attribute:
8306  # Code from module binary-io:
8307  # Code from module binary-io-tests:
8308  # Code from module bind:
8309  # Code from module bind-tests:
8310  # Code from module bitrotate:
8311  # Code from module bitrotate-tests:
8312  # Code from module builtin-expect:
8313  # Code from module byteswap:
8314  # Code from module byteswap-tests:
8315  # Code from module c-ctype:
8316  # Code from module c-ctype-tests:
8317  # Code from module c-strcase:
8318  # Code from module c-strcase-tests:
8319  # Code from module c99:
8320  # Code from module cloexec:
8321  # Code from module cloexec-tests:
8322  # Code from module close:
8323  # Code from module close-tests:
8324  # Code from module connect:
8325  # Code from module connect-tests:
8326  # Code from module ctype:
8327  # Code from module ctype-tests:
8328  # Code from module dup2:
8329  # Code from module dup2-tests:
8330  # Code from module environ:
8331  # Code from module environ-tests:
8332  # Code from module errno:
8333  # Code from module errno-tests:
8334  # Code from module explicit_bzero:
8335  # Code from module explicit_bzero-tests:
8336  # Code from module extensions:
8337  # Code from module extern-inline:
8338  # Code from module fcntl:
8339  # Code from module fcntl-h:
8340  # Code from module fcntl-h-tests:
8341  # Code from module fcntl-tests:
8342  # Code from module fd-hook:
8343  # Code from module fdopen:
8344  # Code from module fdopen-tests:
8345  # Code from module fgetc-tests:
8346  # Code from module filename:
8347  # Code from module flexmember:
8348  # Code from module float:
8349  # Code from module float-tests:
8350  # Code from module fopen:
8351  # Code from module fopen-gnu:
8352  # Code from module fopen-gnu-tests:
8353  # Code from module fopen-tests:
8354  # Code from module fpieee:
8355
8356  # Code from module fpucw:
8357  # Code from module fputc-tests:
8358  # Code from module fread-tests:
8359  # Code from module fstat:
8360  # Code from module fstat-tests:
8361  # Code from module ftell:
8362  # Code from module ftell-tests:
8363  # Code from module ftello:
8364
8365  # Code from module ftello-tests:
8366  # Code from module ftruncate:
8367  # Code from module ftruncate-tests:
8368  # Code from module func:
8369  # Code from module func-tests:
8370  # Code from module fwrite-tests:
8371  # Code from module gendocs:
8372  # Code from module getcwd-lgpl:
8373  # Code from module getcwd-lgpl-tests:
8374  # Code from module getdelim:
8375  # Code from module getdelim-tests:
8376  # Code from module getdtablesize:
8377  # Code from module getdtablesize-tests:
8378  # Code from module getline:
8379  # Code from module getline-tests:
8380  # Code from module getpagesize:
8381  # Code from module gettext-h:
8382  # Code from module gettimeofday:
8383  # Code from module gettimeofday-tests:
8384  # Code from module gnumakefile:
8385  # Code from module hash:
8386  # Code from module hash-pjw:
8387  # Code from module hash-pjw-bare:
8388  # Code from module hash-tests:
8389  # Code from module havelib:
8390  # Code from module ignore-value:
8391  # Code from module ignore-value-tests:
8392  # Code from module include_next:
8393  # Code from module inet_ntop:
8394  # Code from module inet_ntop-tests:
8395  # Code from module inet_pton:
8396  # Code from module inet_pton-tests:
8397  # Code from module intprops:
8398  # Code from module intprops-tests:
8399  # Code from module inttostr:
8400  # Code from module inttostr-tests:
8401  # Code from module inttypes:
8402  # Code from module inttypes-incomplete:
8403  # Code from module inttypes-tests:
8404  # Code from module ioctl:
8405  # Code from module ioctl-tests:
8406  # Code from module isblank:
8407  # Code from module isblank-tests:
8408  # Code from module langinfo:
8409  # Code from module langinfo-tests:
8410  # Code from module largefile:
8411
8412  # Code from module ldd:
8413  # Code from module lib-msvc-compat:
8414  # Code from module lib-symbol-versions:
8415  # Code from module libc-config:
8416  # Code from module limits-h:
8417  # Code from module limits-h-tests:
8418  # Code from module listen:
8419  # Code from module listen-tests:
8420  # Code from module locale:
8421  # Code from module locale-tests:
8422  # Code from module localename:
8423  # Code from module localename-tests:
8424  # Code from module localtime-buffer:
8425  # Code from module lock:
8426  # Code from module lseek:
8427  # Code from module lstat:
8428  # Code from module lstat-tests:
8429  # Code from module maintainer-makefile:
8430  # Code from module malloc-posix:
8431  # Code from module malloca:
8432  # Code from module malloca-tests:
8433  # Code from module manywarnings:
8434  # Code from module memchr:
8435  # Code from module memchr-tests:
8436  # Code from module memmem-simple:
8437  # Code from module minmax:
8438  # Code from module msvc-inval:
8439  # Code from module msvc-nothrow:
8440  # Code from module multiarch:
8441  # Code from module nanosleep:
8442  # Code from module nanosleep-tests:
8443  # Code from module netdb:
8444  # Code from module netdb-tests:
8445  # Code from module netinet_in:
8446  # Code from module netinet_in-tests:
8447  # Code from module open:
8448  # Code from module open-tests:
8449  # Code from module pathmax:
8450  # Code from module pathmax-tests:
8451  # Code from module perror:
8452  # Code from module perror-tests:
8453  # Code from module pipe-posix:
8454  # Code from module pipe-posix-tests:
8455  # Code from module pmccabe2html:
8456  # Code from module pthread-h:
8457
8458
8459  if test -z "$gl_anythreadlib_early_done"; then
8460    case "$host_os" in
8461      osf*)
8462        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8463        # groks <pthread.h>. cc also understands the flag -pthread, but
8464        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8465        # 2. putting a flag into CPPFLAGS that has an effect on the linker
8466        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
8467        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8468        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8469        ;;
8470    esac
8471    # Some systems optimize for single-threaded programs by default, and
8472    # need special flags to disable these optimizations. For example, the
8473    # definition of 'errno' in <errno.h>.
8474    case "$host_os" in
8475      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8476      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8477    esac
8478    gl_anythreadlib_early_done=done
8479  fi
8480
8481  # Code from module pthread-h-tests:
8482  # Code from module pthread-thread:
8483  # Code from module pthread-thread-tests:
8484  # Code from module pthread_sigmask:
8485  # Code from module pthread_sigmask-tests:
8486  # Code from module putenv:
8487  # Code from module raise:
8488  # Code from module raise-tests:
8489  # Code from module read-file:
8490  # Code from module read-file-tests:
8491  # Code from module realloc-posix:
8492  # Code from module same-inode:
8493  # Code from module sched:
8494  # Code from module sched-tests:
8495  # Code from module secure_getenv:
8496  # Code from module select:
8497  # Code from module select-tests:
8498  # Code from module setenv:
8499  # Code from module setenv-tests:
8500  # Code from module setlocale:
8501  # Code from module setlocale-null:
8502  # Code from module setlocale-null-tests:
8503  # Code from module setlocale-tests:
8504  # Code from module setsockopt:
8505  # Code from module setsockopt-tests:
8506  # Code from module sigaction:
8507  # Code from module sigaction-tests:
8508  # Code from module signal-h:
8509  # Code from module signal-h-tests:
8510  # Code from module sigprocmask:
8511  # Code from module sigprocmask-tests:
8512  # Code from module size_max:
8513  # Code from module sleep:
8514  # Code from module sleep-tests:
8515  # Code from module snippet/_Noreturn:
8516  # Code from module snippet/arg-nonnull:
8517  # Code from module snippet/c++defs:
8518  # Code from module snippet/warn-on-use:
8519  # Code from module snprintf:
8520  # Code from module snprintf-tests:
8521  # Code from module socket:
8522  # Code from module socketlib:
8523  # Code from module sockets:
8524  # Code from module sockets-tests:
8525  # Code from module socklen:
8526  # Code from module ssize_t:
8527  # Code from module stat:
8528  # Code from module stat-tests:
8529  # Code from module stat-time:
8530  # Code from module stat-time-tests:
8531  # Code from module std-gnu11:
8532  # Code from module stdalign:
8533  # Code from module stdalign-tests:
8534  # Code from module stdbool:
8535  # Code from module stdbool-tests:
8536  # Code from module stddef:
8537  # Code from module stddef-tests:
8538  # Code from module stdint:
8539  # Code from module stdint-tests:
8540  # Code from module stdio:
8541  # Code from module stdio-tests:
8542  # Code from module stdlib:
8543  # Code from module stdlib-tests:
8544  # Code from module strcase:
8545  # Code from module strdup-posix:
8546  # Code from module strerror:
8547  # Code from module strerror-override:
8548  # Code from module strerror-tests:
8549  # Code from module strerror_r-posix:
8550  # Code from module strerror_r-posix-tests:
8551  # Code from module string:
8552  # Code from module string-tests:
8553  # Code from module strings:
8554  # Code from module strings-tests:
8555  # Code from module strndup:
8556  # Code from module strnlen:
8557  # Code from module strnlen-tests:
8558  # Code from module strtok_r:
8559  # Code from module strverscmp:
8560  # Code from module strverscmp-tests:
8561  # Code from module symlink:
8562  # Code from module symlink-tests:
8563  # Code from module sys_ioctl:
8564  # Code from module sys_ioctl-tests:
8565  # Code from module sys_select:
8566  # Code from module sys_select-tests:
8567  # Code from module sys_socket:
8568  # Code from module sys_socket-tests:
8569  # Code from module sys_stat:
8570  # Code from module sys_stat-tests:
8571  # Code from module sys_time:
8572  # Code from module sys_time-tests:
8573  # Code from module sys_types:
8574  # Code from module sys_types-tests:
8575  # Code from module sys_uio:
8576  # Code from module sys_uio-tests:
8577  # Code from module test-framework-sh:
8578  # Code from module test-framework-sh-tests:
8579  # Code from module thread:
8580  # Code from module thread-tests:
8581  # Code from module threadlib:
8582
8583
8584
8585  # Code from module time:
8586  # Code from module time-tests:
8587  # Code from module time_r:
8588  # Code from module unistd:
8589  # Code from module unistd-tests:
8590  # Code from module unsetenv:
8591  # Code from module unsetenv-tests:
8592  # Code from module useless-if-before-free:
8593  # Code from module valgrind-tests:
8594  # Code from module vasnprintf:
8595  # Code from module vasnprintf-tests:
8596  # Code from module vasprintf:
8597  # Code from module vasprintf-tests:
8598  # Code from module vc-list-files:
8599  # Code from module vc-list-files-tests:
8600  # Code from module verify:
8601  # Code from module verify-tests:
8602  # Code from module vma-iter:
8603  # Code from module vsnprintf:
8604  # Code from module vsnprintf-tests:
8605  # Code from module warnings:
8606  # Code from module wchar:
8607  # Code from module wchar-tests:
8608  # Code from module windows-mutex:
8609  # Code from module windows-once:
8610  # Code from module windows-recmutex:
8611  # Code from module windows-rwlock:
8612  # Code from module windows-thread:
8613  # Code from module windows-tls:
8614  # Code from module xalloc-oversized:
8615  # Code from module xsize:
8616
8617
8618
8619  # Pre-early section.
8620
8621
8622
8623  # Code from module absolute-header:
8624  # Code from module accept:
8625  # Code from module alloca:
8626  # Code from module alloca-opt:
8627  # Code from module arpa_inet:
8628  # Code from module attribute:
8629  # Code from module bind:
8630  # Code from module bison:
8631  # Code from module c-ctype:
8632  # Code from module c99:
8633  # Code from module clock-time:
8634  # Code from module cloexec:
8635  # Code from module close:
8636  # Code from module connect:
8637  # Code from module dup2:
8638  # Code from module environ:
8639  # Code from module errno:
8640  # Code from module explicit_bzero:
8641  # Code from module extensions:
8642  # Code from module extern-inline:
8643  # Code from module fcntl:
8644  # Code from module fcntl-h:
8645  # Code from module fd-hook:
8646  # Code from module filename:
8647  # Code from module flexmember:
8648  # Code from module float:
8649  # Code from module fopen:
8650  # Code from module fopen-gnu:
8651  # Code from module fseek:
8652  # Code from module fseeko:
8653
8654  # Code from module fstat:
8655  # Code from module ftell:
8656  # Code from module ftello:
8657
8658  # Code from module getaddrinfo:
8659  # Code from module getdelim:
8660  # Code from module getdtablesize:
8661  # Code from module getline:
8662  # Code from module getpass:
8663  # Code from module getpeername:
8664  # Code from module gettext-h:
8665  # Code from module gettime:
8666  # Code from module gettimeofday:
8667  # Code from module hostent:
8668  # Code from module include_next:
8669  # Code from module inet_ntop:
8670  # Code from module inet_pton:
8671  # Code from module intprops:
8672  # Code from module inttypes:
8673  # Code from module inttypes-incomplete:
8674  # Code from module largefile:
8675
8676  # Code from module libc-config:
8677  # Code from module limits-h:
8678  # Code from module listen:
8679  # Code from module localtime-buffer:
8680  # Code from module lseek:
8681  # Code from module malloc-posix:
8682  # Code from module malloca:
8683  # Code from module memchr:
8684  # Code from module minmax:
8685  # Code from module mktime:
8686  # Code from module mktime-internal:
8687  # Code from module msvc-inval:
8688  # Code from module msvc-nothrow:
8689  # Code from module multiarch:
8690  # Code from module netdb:
8691  # Code from module netinet_in:
8692  # Code from module nstrftime:
8693  # Code from module open:
8694  # Code from module parse-datetime:
8695  # Code from module pathmax:
8696  # Code from module progname:
8697  # Code from module read-file:
8698  # Code from module realloc-posix:
8699  # Code from module recv:
8700  # Code from module recvfrom:
8701  # Code from module select:
8702  # Code from module send:
8703  # Code from module sendto:
8704  # Code from module servent:
8705  # Code from module setenv:
8706  # Code from module setsockopt:
8707  # Code from module shutdown:
8708  # Code from module signal-h:
8709  # Code from module size_max:
8710  # Code from module snippet/_Noreturn:
8711  # Code from module snippet/arg-nonnull:
8712  # Code from module snippet/c++defs:
8713  # Code from module snippet/warn-on-use:
8714  # Code from module snprintf:
8715  # Code from module socket:
8716  # Code from module socketlib:
8717  # Code from module sockets:
8718  # Code from module socklen:
8719  # Code from module ssize_t:
8720  # Code from module stat:
8721  # Code from module stat-time:
8722  # Code from module std-gnu11:
8723  # Code from module stdalign:
8724  # Code from module stdbool:
8725  # Code from module stddef:
8726  # Code from module stdint:
8727  # Code from module stdio:
8728  # Code from module stdlib:
8729  # Code from module strdup-posix:
8730  # Code from module string:
8731  # Code from module sys_select:
8732  # Code from module sys_socket:
8733  # Code from module sys_stat:
8734  # Code from module sys_time:
8735  # Code from module sys_types:
8736  # Code from module sys_uio:
8737  # Code from module time:
8738  # Code from module time_r:
8739  # Code from module time_rz:
8740  # Code from module timegm:
8741  # Code from module timespec:
8742  # Code from module tzset:
8743  # Code from module unistd:
8744  # Code from module unsetenv:
8745  # Code from module vasnprintf:
8746  # Code from module verify:
8747  # Code from module wchar:
8748  # Code from module xalloc-oversized:
8749  # Code from module xsize:
8750
8751
8752
8753  # Pre-early section.
8754
8755
8756
8757  # Code from module absolute-header:
8758  # Code from module array-mergesort:
8759  # Code from module attribute:
8760  # Code from module gperf:
8761  # Code from module include_next:
8762  # Code from module inline:
8763  # Code from module limits-h:
8764  # Code from module multiarch:
8765  # Code from module snippet/unused-parameter:
8766  # Code from module ssize_t:
8767  # Code from module stdbool:
8768  # Code from module stdint:
8769  # Code from module sys_types:
8770  # Code from module unictype/base:
8771  # Code from module unictype/category-C:
8772  # Code from module unictype/category-Cc:
8773  # Code from module unictype/category-Cf:
8774  # Code from module unictype/category-Cn:
8775  # Code from module unictype/category-Co:
8776  # Code from module unictype/category-Cs:
8777  # Code from module unictype/category-L:
8778  # Code from module unictype/category-LC:
8779  # Code from module unictype/category-Ll:
8780  # Code from module unictype/category-Lm:
8781  # Code from module unictype/category-Lo:
8782  # Code from module unictype/category-Lt:
8783  # Code from module unictype/category-Lu:
8784  # Code from module unictype/category-M:
8785  # Code from module unictype/category-Mc:
8786  # Code from module unictype/category-Me:
8787  # Code from module unictype/category-Mn:
8788  # Code from module unictype/category-N:
8789  # Code from module unictype/category-Nd:
8790  # Code from module unictype/category-Nl:
8791  # Code from module unictype/category-No:
8792  # Code from module unictype/category-P:
8793  # Code from module unictype/category-Pc:
8794  # Code from module unictype/category-Pd:
8795  # Code from module unictype/category-Pe:
8796  # Code from module unictype/category-Pf:
8797  # Code from module unictype/category-Pi:
8798  # Code from module unictype/category-Po:
8799  # Code from module unictype/category-Ps:
8800  # Code from module unictype/category-S:
8801  # Code from module unictype/category-Sc:
8802  # Code from module unictype/category-Sk:
8803  # Code from module unictype/category-Sm:
8804  # Code from module unictype/category-So:
8805  # Code from module unictype/category-Z:
8806  # Code from module unictype/category-Zl:
8807  # Code from module unictype/category-Zp:
8808  # Code from module unictype/category-Zs:
8809  # Code from module unictype/category-all:
8810  # Code from module unictype/category-and:
8811  # Code from module unictype/category-and-not:
8812  # Code from module unictype/category-byname:
8813  # Code from module unictype/category-longname:
8814  # Code from module unictype/category-name:
8815  # Code from module unictype/category-none:
8816  # Code from module unictype/category-of:
8817  # Code from module unictype/category-or:
8818  # Code from module unictype/category-test:
8819  # Code from module unictype/category-test-withtable:
8820  # Code from module unictype/combining-class:
8821  # Code from module unictype/property-default-ignorable-code-point:
8822  # Code from module unictype/property-join-control:
8823  # Code from module unictype/property-not-a-character:
8824  # Code from module uninorm/base:
8825  # Code from module uninorm/canonical-decomposition:
8826  # Code from module uninorm/compat-decomposition:
8827  # Code from module uninorm/composition:
8828  # Code from module uninorm/decompose-internal:
8829  # Code from module uninorm/decomposition:
8830  # Code from module uninorm/decomposition-table:
8831  # Code from module uninorm/nfc:
8832  # Code from module uninorm/nfd:
8833  # Code from module uninorm/nfkc:
8834  # Code from module uninorm/nfkd:
8835  # Code from module uninorm/u16-normalize:
8836  # Code from module uninorm/u32-normalize:
8837  # Code from module uninorm/u8-normalize:
8838  # Code from module unistr/base:
8839  # Code from module unistr/u16-cpy:
8840  # Code from module unistr/u16-mbtouc-unsafe:
8841  # Code from module unistr/u16-mbtoucr:
8842  # Code from module unistr/u16-to-u8:
8843  # Code from module unistr/u16-uctomb:
8844  # Code from module unistr/u32-cpy:
8845  # Code from module unistr/u32-mbtouc-unsafe:
8846  # Code from module unistr/u32-to-u8:
8847  # Code from module unistr/u32-uctomb:
8848  # Code from module unistr/u8-check:
8849  # Code from module unistr/u8-cpy:
8850  # Code from module unistr/u8-mbtouc-unsafe:
8851  # Code from module unistr/u8-mbtoucr:
8852  # Code from module unistr/u8-to-u16:
8853  # Code from module unistr/u8-to-u32:
8854  # Code from module unistr/u8-uctomb:
8855  # Code from module unitypes:
8856
8857# By default we simply use the C compiler to build assembly code.
8858
8859test "${CCAS+set}" = set || CCAS=$CC
8860test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8861
8862
8863
8864depcc="$CCAS"   am_compiler_list=
8865
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8867$as_echo_n "checking dependency style of $depcc... " >&6; }
8868if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8872  # We make a subdir and do the tests there.  Otherwise we can end up
8873  # making bogus files that we don't know about and never remove.  For
8874  # instance it was reported that on HP-UX the gcc test will end up
8875  # making a dummy file named 'D' -- because '-MD' means "put the output
8876  # in D".
8877  rm -rf conftest.dir
8878  mkdir conftest.dir
8879  # Copy depcomp to subdir because otherwise we won't find it if we're
8880  # using a relative directory.
8881  cp "$am_depcomp" conftest.dir
8882  cd conftest.dir
8883  # We will build objects and dependencies in a subdirectory because
8884  # it helps to detect inapplicable dependency modes.  For instance
8885  # both Tru64's cc and ICC support -MD to output dependencies as a
8886  # side effect of compilation, but ICC will put the dependencies in
8887  # the current directory while Tru64 will put them in the object
8888  # directory.
8889  mkdir sub
8890
8891  am_cv_CCAS_dependencies_compiler_type=none
8892  if test "$am_compiler_list" = ""; then
8893     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8894  fi
8895  am__universal=false
8896
8897
8898  for depmode in $am_compiler_list; do
8899    # Setup a source with many dependencies, because some compilers
8900    # like to wrap large dependency lists on column 80 (with \), and
8901    # we should not choose a depcomp mode which is confused by this.
8902    #
8903    # We need to recreate these files for each test, as the compiler may
8904    # overwrite some of them when testing with obscure command lines.
8905    # This happens at least with the AIX C compiler.
8906    : > sub/conftest.c
8907    for i in 1 2 3 4 5 6; do
8908      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8909      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8910      # Solaris 10 /bin/sh.
8911      echo '/* dummy */' > sub/conftst$i.h
8912    done
8913    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8914
8915    # We check with '-c' and '-o' for the sake of the "dashmstdout"
8916    # mode.  It turns out that the SunPro C++ compiler does not properly
8917    # handle '-M -o', and we need to detect this.  Also, some Intel
8918    # versions had trouble with output in subdirs.
8919    am__obj=sub/conftest.${OBJEXT-o}
8920    am__minus_obj="-o $am__obj"
8921    case $depmode in
8922    gcc)
8923      # This depmode causes a compiler race in universal mode.
8924      test "$am__universal" = false || continue
8925      ;;
8926    nosideeffect)
8927      # After this tag, mechanisms are not by side-effect, so they'll
8928      # only be used when explicitly requested.
8929      if test "x$enable_dependency_tracking" = xyes; then
8930	continue
8931      else
8932	break
8933      fi
8934      ;;
8935    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8936      # This compiler won't grok '-c -o', but also, the minuso test has
8937      # not run yet.  These depmodes are late enough in the game, and
8938      # so weak that their functioning should not be impacted.
8939      am__obj=conftest.${OBJEXT-o}
8940      am__minus_obj=
8941      ;;
8942    none) break ;;
8943    esac
8944    if depmode=$depmode \
8945       source=sub/conftest.c object=$am__obj \
8946       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8947       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8948         >/dev/null 2>conftest.err &&
8949       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8950       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8951       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8952       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8953      # icc doesn't choke on unknown options, it will just issue warnings
8954      # or remarks (even with -Werror).  So we grep stderr for any message
8955      # that says an option was ignored or not supported.
8956      # When given -MP, icc 7.0 and 7.1 complain thusly:
8957      #   icc: Command line warning: ignoring option '-M'; no argument required
8958      # The diagnosis changed in icc 8.0:
8959      #   icc: Command line remark: option '-MP' not supported
8960      if (grep 'ignoring option' conftest.err ||
8961          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8962        am_cv_CCAS_dependencies_compiler_type=$depmode
8963        break
8964      fi
8965    fi
8966  done
8967
8968  cd ..
8969  rm -rf conftest.dir
8970else
8971  am_cv_CCAS_dependencies_compiler_type=none
8972fi
8973
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8976$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8977CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8978
8979 if
8980  test "x$enable_dependency_tracking" != xno \
8981  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8982  am__fastdepCCAS_TRUE=
8983  am__fastdepCCAS_FALSE='#'
8984else
8985  am__fastdepCCAS_TRUE='#'
8986  am__fastdepCCAS_FALSE=
8987fi
8988
8989
8990if test -n "$ac_tool_prefix"; then
8991  for ac_prog in ar lib "link -lib"
8992  do
8993    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996$as_echo_n "checking for $ac_word... " >&6; }
8997if ${ac_cv_prog_AR+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  if test -n "$AR"; then
9001  ac_cv_prog_AR="$AR" # Let the user override the test.
9002else
9003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004for as_dir in $PATH
9005do
9006  IFS=$as_save_IFS
9007  test -z "$as_dir" && as_dir=.
9008    for ac_exec_ext in '' $ac_executable_extensions; do
9009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9010    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012    break 2
9013  fi
9014done
9015  done
9016IFS=$as_save_IFS
9017
9018fi
9019fi
9020AR=$ac_cv_prog_AR
9021if test -n "$AR"; then
9022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9023$as_echo "$AR" >&6; }
9024else
9025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027fi
9028
9029
9030    test -n "$AR" && break
9031  done
9032fi
9033if test -z "$AR"; then
9034  ac_ct_AR=$AR
9035  for ac_prog in ar lib "link -lib"
9036do
9037  # Extract the first word of "$ac_prog", so it can be a program name with args.
9038set dummy $ac_prog; ac_word=$2
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040$as_echo_n "checking for $ac_word... " >&6; }
9041if ${ac_cv_prog_ac_ct_AR+:} false; then :
9042  $as_echo_n "(cached) " >&6
9043else
9044  if test -n "$ac_ct_AR"; then
9045  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9046else
9047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048for as_dir in $PATH
9049do
9050  IFS=$as_save_IFS
9051  test -z "$as_dir" && as_dir=.
9052    for ac_exec_ext in '' $ac_executable_extensions; do
9053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9054    ac_cv_prog_ac_ct_AR="$ac_prog"
9055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056    break 2
9057  fi
9058done
9059  done
9060IFS=$as_save_IFS
9061
9062fi
9063fi
9064ac_ct_AR=$ac_cv_prog_ac_ct_AR
9065if test -n "$ac_ct_AR"; then
9066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9067$as_echo "$ac_ct_AR" >&6; }
9068else
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070$as_echo "no" >&6; }
9071fi
9072
9073
9074  test -n "$ac_ct_AR" && break
9075done
9076
9077  if test "x$ac_ct_AR" = x; then
9078    AR="false"
9079  else
9080    case $cross_compiling:$ac_tool_warned in
9081yes:)
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9084ac_tool_warned=yes ;;
9085esac
9086    AR=$ac_ct_AR
9087  fi
9088fi
9089
9090: ${AR=ar}
9091
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9093$as_echo_n "checking the archiver ($AR) interface... " >&6; }
9094if ${am_cv_ar_interface+:} false; then :
9095  $as_echo_n "(cached) " >&6
9096else
9097  ac_ext=c
9098ac_cpp='$CPP $CPPFLAGS'
9099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9101ac_compiler_gnu=$ac_cv_c_compiler_gnu
9102
9103   am_cv_ar_interface=ar
9104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h.  */
9106int some_variable = 0;
9107_ACEOF
9108if ac_fn_c_try_compile "$LINENO"; then :
9109  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
9110      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9111  (eval $am_ar_try) 2>&5
9112  ac_status=$?
9113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9114  test $ac_status = 0; }
9115      if test "$ac_status" -eq 0; then
9116        am_cv_ar_interface=ar
9117      else
9118        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9119        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9120  (eval $am_ar_try) 2>&5
9121  ac_status=$?
9122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9123  test $ac_status = 0; }
9124        if test "$ac_status" -eq 0; then
9125          am_cv_ar_interface=lib
9126        else
9127          am_cv_ar_interface=unknown
9128        fi
9129      fi
9130      rm -f conftest.lib libconftest.a
9131
9132fi
9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134   ac_ext=c
9135ac_cpp='$CPP $CPPFLAGS'
9136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138ac_compiler_gnu=$ac_cv_c_compiler_gnu
9139
9140fi
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9142$as_echo "$am_cv_ar_interface" >&6; }
9143
9144case $am_cv_ar_interface in
9145ar)
9146  ;;
9147lib)
9148  # Microsoft lib, so override with the ar-lib wrapper script.
9149  # FIXME: It is wrong to rewrite AR.
9150  # But if we don't then we get into trouble of one sort or another.
9151  # A longer-term fix would be to have automake use am__AR in this case,
9152  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9153  # similar.
9154  AR="$am_aux_dir/ar-lib $AR"
9155  ;;
9156unknown)
9157  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9158  ;;
9159esac
9160
9161ac_ext=cpp
9162ac_cpp='$CXXCPP $CPPFLAGS'
9163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9166if test -z "$CXX"; then
9167  if test -n "$CCC"; then
9168    CXX=$CCC
9169  else
9170    if test -n "$ac_tool_prefix"; then
9171  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
9172  do
9173    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176$as_echo_n "checking for $ac_word... " >&6; }
9177if ${ac_cv_prog_CXX+:} false; then :
9178  $as_echo_n "(cached) " >&6
9179else
9180  if test -n "$CXX"; then
9181  ac_cv_prog_CXX="$CXX" # Let the user override the test.
9182else
9183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184for as_dir in $PATH
9185do
9186  IFS=$as_save_IFS
9187  test -z "$as_dir" && as_dir=.
9188    for ac_exec_ext in '' $ac_executable_extensions; do
9189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9190    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192    break 2
9193  fi
9194done
9195  done
9196IFS=$as_save_IFS
9197
9198fi
9199fi
9200CXX=$ac_cv_prog_CXX
9201if test -n "$CXX"; then
9202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9203$as_echo "$CXX" >&6; }
9204else
9205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206$as_echo "no" >&6; }
9207fi
9208
9209
9210    test -n "$CXX" && break
9211  done
9212fi
9213if test -z "$CXX"; then
9214  ac_ct_CXX=$CXX
9215  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
9216do
9217  # Extract the first word of "$ac_prog", so it can be a program name with args.
9218set dummy $ac_prog; ac_word=$2
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220$as_echo_n "checking for $ac_word... " >&6; }
9221if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9222  $as_echo_n "(cached) " >&6
9223else
9224  if test -n "$ac_ct_CXX"; then
9225  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9226else
9227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228for as_dir in $PATH
9229do
9230  IFS=$as_save_IFS
9231  test -z "$as_dir" && as_dir=.
9232    for ac_exec_ext in '' $ac_executable_extensions; do
9233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9234    ac_cv_prog_ac_ct_CXX="$ac_prog"
9235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236    break 2
9237  fi
9238done
9239  done
9240IFS=$as_save_IFS
9241
9242fi
9243fi
9244ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9245if test -n "$ac_ct_CXX"; then
9246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9247$as_echo "$ac_ct_CXX" >&6; }
9248else
9249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250$as_echo "no" >&6; }
9251fi
9252
9253
9254  test -n "$ac_ct_CXX" && break
9255done
9256
9257  if test "x$ac_ct_CXX" = x; then
9258    CXX="g++"
9259  else
9260    case $cross_compiling:$ac_tool_warned in
9261yes:)
9262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9264ac_tool_warned=yes ;;
9265esac
9266    CXX=$ac_ct_CXX
9267  fi
9268fi
9269
9270  fi
9271fi
9272# Provide some information about the compiler.
9273$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9274set X $ac_compile
9275ac_compiler=$2
9276for ac_option in --version -v -V -qversion; do
9277  { { ac_try="$ac_compiler $ac_option >&5"
9278case "(($ac_try" in
9279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280  *) ac_try_echo=$ac_try;;
9281esac
9282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9283$as_echo "$ac_try_echo"; } >&5
9284  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9285  ac_status=$?
9286  if test -s conftest.err; then
9287    sed '10a\
9288... rest of stderr output deleted ...
9289         10q' conftest.err >conftest.er1
9290    cat conftest.er1 >&5
9291  fi
9292  rm -f conftest.er1 conftest.err
9293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9294  test $ac_status = 0; }
9295done
9296
9297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9298$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9299if ${ac_cv_cxx_compiler_gnu+:} false; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h.  */
9304
9305int
9306main ()
9307{
9308#ifndef __GNUC__
9309       choke me
9310#endif
9311
9312  ;
9313  return 0;
9314}
9315_ACEOF
9316if ac_fn_cxx_try_compile "$LINENO"; then :
9317  ac_compiler_gnu=yes
9318else
9319  ac_compiler_gnu=no
9320fi
9321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9323
9324fi
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9326$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9327if test $ac_compiler_gnu = yes; then
9328  GXX=yes
9329else
9330  GXX=
9331fi
9332ac_test_CXXFLAGS=${CXXFLAGS+set}
9333ac_save_CXXFLAGS=$CXXFLAGS
9334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9335$as_echo_n "checking whether $CXX accepts -g... " >&6; }
9336if ${ac_cv_prog_cxx_g+:} false; then :
9337  $as_echo_n "(cached) " >&6
9338else
9339  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9340   ac_cxx_werror_flag=yes
9341   ac_cv_prog_cxx_g=no
9342   CXXFLAGS="-g"
9343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h.  */
9345
9346int
9347main ()
9348{
9349
9350  ;
9351  return 0;
9352}
9353_ACEOF
9354if ac_fn_cxx_try_compile "$LINENO"; then :
9355  ac_cv_prog_cxx_g=yes
9356else
9357  CXXFLAGS=""
9358      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h.  */
9360
9361int
9362main ()
9363{
9364
9365  ;
9366  return 0;
9367}
9368_ACEOF
9369if ac_fn_cxx_try_compile "$LINENO"; then :
9370
9371else
9372  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9373	 CXXFLAGS="-g"
9374	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375/* end confdefs.h.  */
9376
9377int
9378main ()
9379{
9380
9381  ;
9382  return 0;
9383}
9384_ACEOF
9385if ac_fn_cxx_try_compile "$LINENO"; then :
9386  ac_cv_prog_cxx_g=yes
9387fi
9388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389fi
9390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391fi
9392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9394fi
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9396$as_echo "$ac_cv_prog_cxx_g" >&6; }
9397if test "$ac_test_CXXFLAGS" = set; then
9398  CXXFLAGS=$ac_save_CXXFLAGS
9399elif test $ac_cv_prog_cxx_g = yes; then
9400  if test "$GXX" = yes; then
9401    CXXFLAGS="-g -O2"
9402  else
9403    CXXFLAGS="-g"
9404  fi
9405else
9406  if test "$GXX" = yes; then
9407    CXXFLAGS="-O2"
9408  else
9409    CXXFLAGS=
9410  fi
9411fi
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
9413$as_echo_n "checking for $CXX option to enable C++11 features... " >&6; }
9414ac_ext=cpp
9415ac_cpp='$CXXCPP $CPPFLAGS'
9416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9419if ${ac_cv_prog_cxx_cxx11+:} false; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  ac_cv_prog_cxx_cxx11=no
9423ac_save_CXX=$CXX
9424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h.  */
9426
9427#include <deque>
9428#include <functional>
9429#include <memory>
9430#include <tuple>
9431#include <array>
9432#include <regex>
9433#include <iostream>
9434
9435namespace cxx11test
9436{
9437  typedef std::shared_ptr<std::string> sptr;
9438  typedef std::weak_ptr<std::string> wptr;
9439
9440  typedef std::tuple<std::string,int,double> tp;
9441  typedef std::array<int, 20> int_array;
9442
9443  constexpr int get_val() { return 20; }
9444
9445  struct testinit
9446  {
9447    int i;
9448    double d;
9449  };
9450
9451  class delegate  {
9452  public:
9453    delegate(int n) : n(n) {}
9454    delegate(): delegate(2354) {}
9455
9456    virtual int getval() { return this->n; };
9457  protected:
9458    int n;
9459  };
9460
9461  class overridden : public delegate {
9462  public:
9463    overridden(int n): delegate(n) {}
9464    virtual int getval() override final { return this->n * 2; }
9465  };
9466
9467  class nocopy {
9468  public:
9469    nocopy(int i): i(i) {}
9470    nocopy() = default;
9471    nocopy(const nocopy&) = delete;
9472    nocopy & operator=(const nocopy&) = delete;
9473  private:
9474    int i;
9475  };
9476}
9477
9478
9479#include <algorithm>
9480#include <cstdlib>
9481#include <fstream>
9482#include <iomanip>
9483#include <iostream>
9484#include <list>
9485#include <map>
9486#include <set>
9487#include <sstream>
9488#include <stdexcept>
9489#include <string>
9490#include <utility>
9491#include <vector>
9492
9493namespace test {
9494  typedef std::vector<std::string> string_vec;
9495  typedef std::pair<int,bool> map_value;
9496  typedef std::map<std::string,map_value> map_type;
9497  typedef std::set<int> set_type;
9498
9499  template<typename T>
9500  class printer {
9501  public:
9502    printer(std::ostringstream& os): os(os) {}
9503    void operator() (T elem) { os << elem << std::endl; }
9504  private:
9505    std::ostringstream& os;
9506  };
9507}
9508
9509int
9510main ()
9511{
9512
9513{
9514  // Test auto and decltype
9515  std::deque<int> d;
9516  d.push_front(43);
9517  d.push_front(484);
9518  d.push_front(3);
9519  d.push_front(844);
9520  int total = 0;
9521  for (auto i = d.begin(); i != d.end(); ++i) { total += *i; }
9522
9523  auto a1 = 6538;
9524  auto a2 = 48573953.4;
9525  auto a3 = "String literal";
9526
9527  decltype(a2) a4 = 34895.034;
9528}
9529{
9530  // Test constexpr
9531  short sa[cxx11test::get_val()] = { 0 };
9532}
9533{
9534  // Test initializer lists
9535  cxx11test::testinit il = { 4323, 435234.23544 };
9536}
9537{
9538  // Test range-based for and lambda
9539  cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
9540  for (int &x : array) { x += 23; }
9541  std::for_each(array.begin(), array.end(), [](int v1){ std::cout << v1; });
9542}
9543{
9544  using cxx11test::sptr;
9545  using cxx11test::wptr;
9546
9547  sptr sp(new std::string("ASCII string"));
9548  wptr wp(sp);
9549  sptr sp2(wp);
9550}
9551{
9552  cxx11test::tp tuple("test", 54, 45.53434);
9553  double d = std::get<2>(tuple);
9554  std::string s;
9555  int i;
9556  std::tie(s,i,d) = tuple;
9557}
9558{
9559  static std::regex filename_regex("^_?([a-z0-9_.]+-)+[a-z0-9]+$");
9560  std::string testmatch("Test if this string matches");
9561  bool match = std::regex_search(testmatch, filename_regex);
9562}
9563{
9564  cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
9565  cxx11test::int_array::size_type size = array.size();
9566}
9567{
9568  // Test constructor delegation
9569  cxx11test::delegate d1;
9570  cxx11test::delegate d2();
9571  cxx11test::delegate d3(45);
9572}
9573{
9574  // Test override and final
9575  cxx11test::overridden o1(55464);
9576}
9577{
9578  // Test nullptr
9579  char *c = nullptr;
9580}
9581{
9582  // Test template brackets
9583  std::vector<std::pair<int,char*>> v1;
9584}
9585{
9586  // Unicode literals
9587  char const *utf8 = u8"UTF-8 string \u2500";
9588  char16_t const *utf16 = u"UTF-8 string \u2500";
9589  char32_t const *utf32 = U"UTF-32 string \u2500";
9590}
9591
9592
9593
9594try {
9595  // Basic string.
9596  std::string teststr("ASCII text");
9597  teststr += " string";
9598
9599  // Simple vector.
9600  test::string_vec testvec;
9601  testvec.push_back(teststr);
9602  testvec.push_back("foo");
9603  testvec.push_back("bar");
9604  if (testvec.size() != 3) {
9605    throw std::runtime_error("vector size is not 1");
9606  }
9607
9608  // Dump vector into stringstream and obtain string.
9609  std::ostringstream os;
9610  for (test::string_vec::const_iterator i = testvec.begin();
9611       i != testvec.end(); ++i) {
9612    if (i + 1 != testvec.end()) {
9613      os << teststr << '\n';
9614    }
9615  }
9616  // Check algorithms work.
9617  std::for_each(testvec.begin(), testvec.end(), test::printer<std::string>(os));
9618  std::string os_out = os.str();
9619
9620  // Test pair and map.
9621  test::map_type testmap;
9622  testmap.insert(std::make_pair(std::string("key"),
9623                                std::make_pair(53,false)));
9624
9625  // Test set.
9626  int values[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
9627  test::set_type testset(values, values + sizeof(values)/sizeof(values[0]));
9628  std::list<int> testlist(testset.begin(), testset.end());
9629  std::copy(testset.begin(), testset.end(), std::back_inserter(testlist));
9630} catch (const std::exception& e) {
9631  std::cerr << "Caught exception: " << e.what() << std::endl;
9632
9633  // Test fstream
9634  std::ofstream of("test.txt");
9635  of << "Test ASCII text\n" << std::flush;
9636  of << "N= " << std::hex << std::setw(8) << std::left << 534 << std::endl;
9637  of.close();
9638}
9639std::exit(0);
9640
9641  ;
9642  return 0;
9643}
9644_ACEOF
9645for ac_arg in '' -std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA
9646do
9647  CXX="$ac_save_CXX $ac_arg"
9648  if ac_fn_cxx_try_compile "$LINENO"; then :
9649  ac_cv_prog_cxx_cxx11=$ac_arg
9650fi
9651rm -f core conftest.err conftest.$ac_objext
9652  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
9653done
9654rm -f conftest.$ac_ext
9655CXX=$ac_save_CXX
9656
9657fi
9658# AC_CACHE_VAL
9659ac_prog_cxx_stdcxx_options=
9660case "x$ac_cv_prog_cxx_cxx11" in
9661  x)
9662    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9663$as_echo "none needed" >&6; } ;;
9664  xno)
9665    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9666$as_echo "unsupported" >&6; } ;;
9667  *)
9668    ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx11"
9669    CXX=$CXX$ac_prog_cxx_stdcxx_options
9670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
9671$as_echo "$ac_cv_prog_cxx_cxx11" >&6; } ;;
9672esac
9673ac_ext=cpp
9674ac_cpp='$CXXCPP $CPPFLAGS'
9675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9678if test "x$ac_cv_prog_cxx_cxx11" != xno; then :
9679  ac_prog_cxx_stdcxx=cxx11
9680		    ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
9681		    ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11
9682else
9683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
9684$as_echo_n "checking for $CXX option to enable C++98 features... " >&6; }
9685ac_ext=cpp
9686ac_cpp='$CXXCPP $CPPFLAGS'
9687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9690if ${ac_cv_prog_cxx_cxx98+:} false; then :
9691  $as_echo_n "(cached) " >&6
9692else
9693  ac_cv_prog_cxx_cxx98=no
9694ac_save_CXX=$CXX
9695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697
9698#include <algorithm>
9699#include <cstdlib>
9700#include <fstream>
9701#include <iomanip>
9702#include <iostream>
9703#include <list>
9704#include <map>
9705#include <set>
9706#include <sstream>
9707#include <stdexcept>
9708#include <string>
9709#include <utility>
9710#include <vector>
9711
9712namespace test {
9713  typedef std::vector<std::string> string_vec;
9714  typedef std::pair<int,bool> map_value;
9715  typedef std::map<std::string,map_value> map_type;
9716  typedef std::set<int> set_type;
9717
9718  template<typename T>
9719  class printer {
9720  public:
9721    printer(std::ostringstream& os): os(os) {}
9722    void operator() (T elem) { os << elem << std::endl; }
9723  private:
9724    std::ostringstream& os;
9725  };
9726}
9727
9728int
9729main ()
9730{
9731
9732
9733try {
9734  // Basic string.
9735  std::string teststr("ASCII text");
9736  teststr += " string";
9737
9738  // Simple vector.
9739  test::string_vec testvec;
9740  testvec.push_back(teststr);
9741  testvec.push_back("foo");
9742  testvec.push_back("bar");
9743  if (testvec.size() != 3) {
9744    throw std::runtime_error("vector size is not 1");
9745  }
9746
9747  // Dump vector into stringstream and obtain string.
9748  std::ostringstream os;
9749  for (test::string_vec::const_iterator i = testvec.begin();
9750       i != testvec.end(); ++i) {
9751    if (i + 1 != testvec.end()) {
9752      os << teststr << '\n';
9753    }
9754  }
9755  // Check algorithms work.
9756  std::for_each(testvec.begin(), testvec.end(), test::printer<std::string>(os));
9757  std::string os_out = os.str();
9758
9759  // Test pair and map.
9760  test::map_type testmap;
9761  testmap.insert(std::make_pair(std::string("key"),
9762                                std::make_pair(53,false)));
9763
9764  // Test set.
9765  int values[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
9766  test::set_type testset(values, values + sizeof(values)/sizeof(values[0]));
9767  std::list<int> testlist(testset.begin(), testset.end());
9768  std::copy(testset.begin(), testset.end(), std::back_inserter(testlist));
9769} catch (const std::exception& e) {
9770  std::cerr << "Caught exception: " << e.what() << std::endl;
9771
9772  // Test fstream
9773  std::ofstream of("test.txt");
9774  of << "Test ASCII text\n" << std::flush;
9775  of << "N= " << std::hex << std::setw(8) << std::left << 534 << std::endl;
9776  of.close();
9777}
9778std::exit(0);
9779
9780  ;
9781  return 0;
9782}
9783_ACEOF
9784for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
9785do
9786  CXX="$ac_save_CXX $ac_arg"
9787  if ac_fn_cxx_try_compile "$LINENO"; then :
9788  ac_cv_prog_cxx_cxx98=$ac_arg
9789fi
9790rm -f core conftest.err conftest.$ac_objext
9791  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
9792done
9793rm -f conftest.$ac_ext
9794CXX=$ac_save_CXX
9795
9796fi
9797# AC_CACHE_VAL
9798ac_prog_cxx_stdcxx_options=
9799case "x$ac_cv_prog_cxx_cxx98" in
9800  x)
9801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9802$as_echo "none needed" >&6; } ;;
9803  xno)
9804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9805$as_echo "unsupported" >&6; } ;;
9806  *)
9807    ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx98"
9808    CXX=$CXX$ac_prog_cxx_stdcxx_options
9809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
9810$as_echo "$ac_cv_prog_cxx_cxx98" >&6; } ;;
9811esac
9812ac_ext=cpp
9813ac_cpp='$CXXCPP $CPPFLAGS'
9814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9817if test "x$ac_cv_prog_cxx_cxx98" != xno; then :
9818  ac_prog_cxx_stdcxx=cxx98
9819		        ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
9820else
9821  ac_prog_cxx_stdcxx=no
9822		        ac_cv_prog_cxx_stdcxx=no
9823fi
9824
9825fi
9826
9827ac_ext=c
9828ac_cpp='$CPP $CPPFLAGS'
9829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9831ac_compiler_gnu=$ac_cv_c_compiler_gnu
9832
9833depcc="$CXX"  am_compiler_list=
9834
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9836$as_echo_n "checking dependency style of $depcc... " >&6; }
9837if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9838  $as_echo_n "(cached) " >&6
9839else
9840  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9841  # We make a subdir and do the tests there.  Otherwise we can end up
9842  # making bogus files that we don't know about and never remove.  For
9843  # instance it was reported that on HP-UX the gcc test will end up
9844  # making a dummy file named 'D' -- because '-MD' means "put the output
9845  # in D".
9846  rm -rf conftest.dir
9847  mkdir conftest.dir
9848  # Copy depcomp to subdir because otherwise we won't find it if we're
9849  # using a relative directory.
9850  cp "$am_depcomp" conftest.dir
9851  cd conftest.dir
9852  # We will build objects and dependencies in a subdirectory because
9853  # it helps to detect inapplicable dependency modes.  For instance
9854  # both Tru64's cc and ICC support -MD to output dependencies as a
9855  # side effect of compilation, but ICC will put the dependencies in
9856  # the current directory while Tru64 will put them in the object
9857  # directory.
9858  mkdir sub
9859
9860  am_cv_CXX_dependencies_compiler_type=none
9861  if test "$am_compiler_list" = ""; then
9862     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9863  fi
9864  am__universal=false
9865  case " $depcc " in #(
9866     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9867     esac
9868
9869  for depmode in $am_compiler_list; do
9870    # Setup a source with many dependencies, because some compilers
9871    # like to wrap large dependency lists on column 80 (with \), and
9872    # we should not choose a depcomp mode which is confused by this.
9873    #
9874    # We need to recreate these files for each test, as the compiler may
9875    # overwrite some of them when testing with obscure command lines.
9876    # This happens at least with the AIX C compiler.
9877    : > sub/conftest.c
9878    for i in 1 2 3 4 5 6; do
9879      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9880      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9881      # Solaris 10 /bin/sh.
9882      echo '/* dummy */' > sub/conftst$i.h
9883    done
9884    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9885
9886    # We check with '-c' and '-o' for the sake of the "dashmstdout"
9887    # mode.  It turns out that the SunPro C++ compiler does not properly
9888    # handle '-M -o', and we need to detect this.  Also, some Intel
9889    # versions had trouble with output in subdirs.
9890    am__obj=sub/conftest.${OBJEXT-o}
9891    am__minus_obj="-o $am__obj"
9892    case $depmode in
9893    gcc)
9894      # This depmode causes a compiler race in universal mode.
9895      test "$am__universal" = false || continue
9896      ;;
9897    nosideeffect)
9898      # After this tag, mechanisms are not by side-effect, so they'll
9899      # only be used when explicitly requested.
9900      if test "x$enable_dependency_tracking" = xyes; then
9901	continue
9902      else
9903	break
9904      fi
9905      ;;
9906    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9907      # This compiler won't grok '-c -o', but also, the minuso test has
9908      # not run yet.  These depmodes are late enough in the game, and
9909      # so weak that their functioning should not be impacted.
9910      am__obj=conftest.${OBJEXT-o}
9911      am__minus_obj=
9912      ;;
9913    none) break ;;
9914    esac
9915    if depmode=$depmode \
9916       source=sub/conftest.c object=$am__obj \
9917       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9918       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9919         >/dev/null 2>conftest.err &&
9920       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9921       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9922       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9923       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9924      # icc doesn't choke on unknown options, it will just issue warnings
9925      # or remarks (even with -Werror).  So we grep stderr for any message
9926      # that says an option was ignored or not supported.
9927      # When given -MP, icc 7.0 and 7.1 complain thusly:
9928      #   icc: Command line warning: ignoring option '-M'; no argument required
9929      # The diagnosis changed in icc 8.0:
9930      #   icc: Command line remark: option '-MP' not supported
9931      if (grep 'ignoring option' conftest.err ||
9932          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9933        am_cv_CXX_dependencies_compiler_type=$depmode
9934        break
9935      fi
9936    fi
9937  done
9938
9939  cd ..
9940  rm -rf conftest.dir
9941else
9942  am_cv_CXX_dependencies_compiler_type=none
9943fi
9944
9945fi
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9947$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9948CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9949
9950 if
9951  test "x$enable_dependency_tracking" != xno \
9952  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9953  am__fastdepCXX_TRUE=
9954  am__fastdepCXX_FALSE='#'
9955else
9956  am__fastdepCXX_TRUE='#'
9957  am__fastdepCXX_FALSE=
9958fi
9959
9960
9961
9962for ac_prog in 'bison -y' byacc
9963do
9964  # Extract the first word of "$ac_prog", so it can be a program name with args.
9965set dummy $ac_prog; ac_word=$2
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967$as_echo_n "checking for $ac_word... " >&6; }
9968if ${ac_cv_prog_YACC+:} false; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  if test -n "$YACC"; then
9972  ac_cv_prog_YACC="$YACC" # Let the user override the test.
9973else
9974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975for as_dir in $PATH
9976do
9977  IFS=$as_save_IFS
9978  test -z "$as_dir" && as_dir=.
9979    for ac_exec_ext in '' $ac_executable_extensions; do
9980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9981    ac_cv_prog_YACC="$ac_prog"
9982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9983    break 2
9984  fi
9985done
9986  done
9987IFS=$as_save_IFS
9988
9989fi
9990fi
9991YACC=$ac_cv_prog_YACC
9992if test -n "$YACC"; then
9993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9994$as_echo "$YACC" >&6; }
9995else
9996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997$as_echo "no" >&6; }
9998fi
9999
10000
10001  test -n "$YACC" && break
10002done
10003test -n "$YACC" || YACC="yacc"
10004
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10006$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10007if ${ac_cv_path_SED+:} false; then :
10008  $as_echo_n "(cached) " >&6
10009else
10010            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10011     for ac_i in 1 2 3 4 5 6 7; do
10012       ac_script="$ac_script$as_nl$ac_script"
10013     done
10014     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10015     { ac_script=; unset ac_script;}
10016     if test -z "$SED"; then
10017  ac_path_SED_found=false
10018  # Loop through the user's path and test for each of PROGNAME-LIST
10019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020for as_dir in $PATH
10021do
10022  IFS=$as_save_IFS
10023  test -z "$as_dir" && as_dir=.
10024    for ac_prog in sed gsed; do
10025    for ac_exec_ext in '' $ac_executable_extensions; do
10026      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10027      as_fn_executable_p "$ac_path_SED" || continue
10028# Check for GNU ac_path_SED and select it if it is found.
10029  # Check for GNU $ac_path_SED
10030case `"$ac_path_SED" --version 2>&1` in
10031*GNU*)
10032  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10033*)
10034  ac_count=0
10035  $as_echo_n 0123456789 >"conftest.in"
10036  while :
10037  do
10038    cat "conftest.in" "conftest.in" >"conftest.tmp"
10039    mv "conftest.tmp" "conftest.in"
10040    cp "conftest.in" "conftest.nl"
10041    $as_echo '' >> "conftest.nl"
10042    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10043    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10044    as_fn_arith $ac_count + 1 && ac_count=$as_val
10045    if test $ac_count -gt ${ac_path_SED_max-0}; then
10046      # Best one so far, save it but keep looking for a better one
10047      ac_cv_path_SED="$ac_path_SED"
10048      ac_path_SED_max=$ac_count
10049    fi
10050    # 10*(2^10) chars as input seems more than enough
10051    test $ac_count -gt 10 && break
10052  done
10053  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10054esac
10055
10056      $ac_path_SED_found && break 3
10057    done
10058  done
10059  done
10060IFS=$as_save_IFS
10061  if test -z "$ac_cv_path_SED"; then
10062    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10063  fi
10064else
10065  ac_cv_path_SED=$SED
10066fi
10067
10068fi
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10070$as_echo "$ac_cv_path_SED" >&6; }
10071 SED="$ac_cv_path_SED"
10072  rm -f conftest.sed
10073
10074
10075
10076
10077#
10078# Require C99 support
10079#
10080
10081if test "$ac_cv_prog_cc_c99" = "no"; then
10082  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support C99. It may not be able to compile the project." >&5
10083$as_echo "$as_me: WARNING: Compiler does not support C99. It may not be able to compile the project." >&2;}
10084fi
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100	# allow to override gcov location
10101
10102# Check whether --with-gcov was given.
10103if test "${with_gcov+set}" = set; then :
10104  withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
10105else
10106  _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
10107fi
10108
10109
10110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
10111$as_echo_n "checking whether to build with code coverage support... " >&6; }
10112	# Check whether --enable-code-coverage was given.
10113if test "${enable_code_coverage+set}" = set; then :
10114  enableval=$enable_code_coverage;
10115else
10116  enable_code_coverage=no
10117fi
10118
10119
10120	 if test "x$enable_code_coverage" = xyes; then
10121  CODE_COVERAGE_ENABLED_TRUE=
10122  CODE_COVERAGE_ENABLED_FALSE='#'
10123else
10124  CODE_COVERAGE_ENABLED_TRUE='#'
10125  CODE_COVERAGE_ENABLED_FALSE=
10126fi
10127
10128	CODE_COVERAGE_ENABLED=$enable_code_coverage
10129
10130	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
10131$as_echo "$enable_code_coverage" >&6; }
10132
10133	if  test "x$enable_code_coverage" = xyes ; then :
10134
10135
10136	  for ac_prog in gawk mawk nawk awk
10137do
10138  # Extract the first word of "$ac_prog", so it can be a program name with args.
10139set dummy $ac_prog; ac_word=$2
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141$as_echo_n "checking for $ac_word... " >&6; }
10142if ${ac_cv_prog_AWK+:} false; then :
10143  $as_echo_n "(cached) " >&6
10144else
10145  if test -n "$AWK"; then
10146  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10147else
10148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149for as_dir in $PATH
10150do
10151  IFS=$as_save_IFS
10152  test -z "$as_dir" && as_dir=.
10153    for ac_exec_ext in '' $ac_executable_extensions; do
10154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10155    ac_cv_prog_AWK="$ac_prog"
10156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10157    break 2
10158  fi
10159done
10160  done
10161IFS=$as_save_IFS
10162
10163fi
10164fi
10165AWK=$ac_cv_prog_AWK
10166if test -n "$AWK"; then
10167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10168$as_echo "$AWK" >&6; }
10169else
10170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171$as_echo "no" >&6; }
10172fi
10173
10174
10175  test -n "$AWK" && break
10176done
10177
10178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10179$as_echo_n "checking for GNU make... " >&6; }
10180if ${_cv_gnu_make_command+:} false; then :
10181  $as_echo_n "(cached) " >&6
10182else
10183      _cv_gnu_make_command="" ;
10184    for a in "$MAKE" make gmake gnumake ; do
10185      if test -z "$a" ; then continue ; fi ;
10186      if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
10187        _cv_gnu_make_command=$a ;
10188        AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
10189        ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
10190        break ;
10191      fi
10192    done ;
10193fi
10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10195$as_echo "$_cv_gnu_make_command" >&6; }
10196  if test "x$_cv_gnu_make_command" = x""; then :
10197  ifGNUmake="#"
10198else
10199  ifGNUmake=""
10200fi
10201  if test "x$_cv_gnu_make_command" = x""; then :
10202  ifnGNUmake=""
10203else
10204  ifGNUmake="#"
10205fi
10206  if test "x$_cv_gnu_make_command" = x""; then :
10207  { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
10208else
10209  ax_cv_gnu_make_command=${_cv_gnu_make_command}
10210fi
10211  if test "x$_cv_gnu_make_command" = x""; then :
10212  as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
10213fi
10214
10215
10216
10217
10218	# check for gcov
10219	if test -n "$ac_tool_prefix"; then
10220  # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
10221set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223$as_echo_n "checking for $ac_word... " >&6; }
10224if ${ac_cv_prog_GCOV+:} false; then :
10225  $as_echo_n "(cached) " >&6
10226else
10227  if test -n "$GCOV"; then
10228  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
10229else
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233  IFS=$as_save_IFS
10234  test -z "$as_dir" && as_dir=.
10235    for ac_exec_ext in '' $ac_executable_extensions; do
10236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237    ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
10238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239    break 2
10240  fi
10241done
10242  done
10243IFS=$as_save_IFS
10244
10245fi
10246fi
10247GCOV=$ac_cv_prog_GCOV
10248if test -n "$GCOV"; then
10249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
10250$as_echo "$GCOV" >&6; }
10251else
10252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
10254fi
10255
10256
10257fi
10258if test -z "$ac_cv_prog_GCOV"; then
10259  ac_ct_GCOV=$GCOV
10260  # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
10261set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
10262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263$as_echo_n "checking for $ac_word... " >&6; }
10264if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
10265  $as_echo_n "(cached) " >&6
10266else
10267  if test -n "$ac_ct_GCOV"; then
10268  ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
10269else
10270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271for as_dir in $PATH
10272do
10273  IFS=$as_save_IFS
10274  test -z "$as_dir" && as_dir=.
10275    for ac_exec_ext in '' $ac_executable_extensions; do
10276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277    ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
10278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279    break 2
10280  fi
10281done
10282  done
10283IFS=$as_save_IFS
10284
10285fi
10286fi
10287ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
10288if test -n "$ac_ct_GCOV"; then
10289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
10290$as_echo "$ac_ct_GCOV" >&6; }
10291else
10292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293$as_echo "no" >&6; }
10294fi
10295
10296  if test "x$ac_ct_GCOV" = x; then
10297    GCOV=":"
10298  else
10299    case $cross_compiling:$ac_tool_warned in
10300yes:)
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10303ac_tool_warned=yes ;;
10304esac
10305    GCOV=$ac_ct_GCOV
10306  fi
10307else
10308  GCOV="$ac_cv_prog_GCOV"
10309fi
10310
10311	if test "X$GCOV" = "X:"; then :
10312  as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
10313fi
10314
10315
10316		if  test "$GCC" = "no" ; then :
10317
10318		as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
10319
10320fi
10321
10322	# Extract the first word of "lcov", so it can be a program name with args.
10323set dummy lcov; ac_word=$2
10324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325$as_echo_n "checking for $ac_word... " >&6; }
10326if ${ac_cv_prog_LCOV+:} false; then :
10327  $as_echo_n "(cached) " >&6
10328else
10329  if test -n "$LCOV"; then
10330  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
10331else
10332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333for as_dir in $PATH
10334do
10335  IFS=$as_save_IFS
10336  test -z "$as_dir" && as_dir=.
10337    for ac_exec_ext in '' $ac_executable_extensions; do
10338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10339    ac_cv_prog_LCOV="lcov"
10340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341    break 2
10342  fi
10343done
10344  done
10345IFS=$as_save_IFS
10346
10347fi
10348fi
10349LCOV=$ac_cv_prog_LCOV
10350if test -n "$LCOV"; then
10351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
10352$as_echo "$LCOV" >&6; }
10353else
10354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355$as_echo "no" >&6; }
10356fi
10357
10358
10359	# Extract the first word of "genhtml", so it can be a program name with args.
10360set dummy genhtml; ac_word=$2
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362$as_echo_n "checking for $ac_word... " >&6; }
10363if ${ac_cv_prog_GENHTML+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  if test -n "$GENHTML"; then
10367  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
10368else
10369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370for as_dir in $PATH
10371do
10372  IFS=$as_save_IFS
10373  test -z "$as_dir" && as_dir=.
10374    for ac_exec_ext in '' $ac_executable_extensions; do
10375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376    ac_cv_prog_GENHTML="genhtml"
10377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378    break 2
10379  fi
10380done
10381  done
10382IFS=$as_save_IFS
10383
10384fi
10385fi
10386GENHTML=$ac_cv_prog_GENHTML
10387if test -n "$GENHTML"; then
10388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
10389$as_echo "$GENHTML" >&6; }
10390else
10391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
10393fi
10394
10395
10396
10397	if  test x"$LCOV" = x ; then :
10398
10399		as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
10400
10401fi
10402
10403	if  test x"$GENHTML" = x ; then :
10404
10405		as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
10406
10407fi
10408
10409			CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
10410	CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
10411	CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
10412	CODE_COVERAGE_LIBS="-lgcov"
10413
10414
10415
10416
10417
10418
10419
10420fi
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10435$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10436    # Check whether --enable-maintainer-mode was given.
10437if test "${enable_maintainer_mode+set}" = set; then :
10438  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10439else
10440  USE_MAINTAINER_MODE=yes
10441fi
10442
10443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10444$as_echo "$USE_MAINTAINER_MODE" >&6; }
10445   if test $USE_MAINTAINER_MODE = yes; then
10446  MAINTAINER_MODE_TRUE=
10447  MAINTAINER_MODE_FALSE='#'
10448else
10449  MAINTAINER_MODE_TRUE='#'
10450  MAINTAINER_MODE_FALSE=
10451fi
10452
10453  MAINT=$MAINTAINER_MODE_TRUE
10454
10455
10456
10457# Check whether --enable-bash-tests was given.
10458if test "${enable_bash_tests+set}" = set; then :
10459  enableval=$enable_bash_tests; enable_bash_tests=$enableval
10460else
10461  enable_bash_tests=yes
10462fi
10463
10464 if test "$enable_bash_tests" != "yes"; then
10465  DISABLE_BASH_TESTS_TRUE=
10466  DISABLE_BASH_TESTS_FALSE='#'
10467else
10468  DISABLE_BASH_TESTS_TRUE='#'
10469  DISABLE_BASH_TESTS_FALSE=
10470fi
10471
10472
10473# Check whether --enable-doc was given.
10474if test "${enable_doc+set}" = set; then :
10475  enableval=$enable_doc; enable_doc=$enableval
10476else
10477  enable_doc=yes
10478fi
10479
10480 if test "$enable_doc" != "no"; then
10481  ENABLE_DOC_TRUE=
10482  ENABLE_DOC_FALSE='#'
10483else
10484  ENABLE_DOC_TRUE='#'
10485  ENABLE_DOC_FALSE=
10486fi
10487
10488
10489# Check whether --enable-manpages was given.
10490if test "${enable_manpages+set}" = set; then :
10491  enableval=$enable_manpages; enable_manpages=$enableval
10492else
10493  enable_manpages=auto
10494fi
10495
10496
10497if test "${enable_manpages}" = "auto";then
10498  enable_manpages="${enable_doc}"
10499fi
10500
10501 if test "$enable_manpages" != "no"; then
10502  ENABLE_MANPAGES_TRUE=
10503  ENABLE_MANPAGES_FALSE='#'
10504else
10505  ENABLE_MANPAGES_TRUE='#'
10506  ENABLE_MANPAGES_FALSE=
10507fi
10508
10509
10510# Check whether --enable-tools was given.
10511if test "${enable_tools+set}" = set; then :
10512  enableval=$enable_tools; enable_tools=$enableval
10513else
10514  enable_tools=yes
10515fi
10516
10517 if test "$enable_tools" != "no"; then
10518  ENABLE_TOOLS_TRUE=
10519  ENABLE_TOOLS_FALSE='#'
10520else
10521  ENABLE_TOOLS_TRUE='#'
10522  ENABLE_TOOLS_FALSE=
10523fi
10524
10525
10526# For includes/gnutls/gnutls.h.in.
10527MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
10528
10529MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
10530
10531PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\([0-9]*\).*/\1/g'`
10532
10533NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
10534
10535
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10537$as_echo_n "checking for inline... " >&6; }
10538if ${ac_cv_c_inline+:} false; then :
10539  $as_echo_n "(cached) " >&6
10540else
10541  ac_cv_c_inline=no
10542for ac_kw in inline __inline__ __inline; do
10543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545#ifndef __cplusplus
10546typedef int foo_t;
10547static $ac_kw foo_t static_foo () {return 0; }
10548$ac_kw foo_t foo () {return 0; }
10549#endif
10550
10551_ACEOF
10552if ac_fn_c_try_compile "$LINENO"; then :
10553  ac_cv_c_inline=$ac_kw
10554fi
10555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556  test "$ac_cv_c_inline" != no && break
10557done
10558
10559fi
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10561$as_echo "$ac_cv_c_inline" >&6; }
10562
10563case $ac_cv_c_inline in
10564  inline | yes) ;;
10565  *)
10566    case $ac_cv_c_inline in
10567      no) ac_val=;;
10568      *) ac_val=$ac_cv_c_inline;;
10569    esac
10570    cat >>confdefs.h <<_ACEOF
10571#ifndef __cplusplus
10572#define inline $ac_val
10573#endif
10574_ACEOF
10575    ;;
10576esac
10577
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10579$as_echo_n "checking for ANSI C header files... " >&6; }
10580if ${ac_cv_header_stdc+:} false; then :
10581  $as_echo_n "(cached) " >&6
10582else
10583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584/* end confdefs.h.  */
10585#include <stdlib.h>
10586#include <stdarg.h>
10587#include <string.h>
10588#include <float.h>
10589
10590int
10591main ()
10592{
10593
10594  ;
10595  return 0;
10596}
10597_ACEOF
10598if ac_fn_c_try_compile "$LINENO"; then :
10599  ac_cv_header_stdc=yes
10600else
10601  ac_cv_header_stdc=no
10602fi
10603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10604
10605if test $ac_cv_header_stdc = yes; then
10606  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608/* end confdefs.h.  */
10609#include <string.h>
10610
10611_ACEOF
10612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10613  $EGREP "memchr" >/dev/null 2>&1; then :
10614
10615else
10616  ac_cv_header_stdc=no
10617fi
10618rm -f conftest*
10619
10620fi
10621
10622if test $ac_cv_header_stdc = yes; then
10623  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h.  */
10626#include <stdlib.h>
10627
10628_ACEOF
10629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10630  $EGREP "free" >/dev/null 2>&1; then :
10631
10632else
10633  ac_cv_header_stdc=no
10634fi
10635rm -f conftest*
10636
10637fi
10638
10639if test $ac_cv_header_stdc = yes; then
10640  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10641  if test "$cross_compiling" = yes; then :
10642  :
10643else
10644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645/* end confdefs.h.  */
10646#include <ctype.h>
10647#include <stdlib.h>
10648#if ((' ' & 0x0FF) == 0x020)
10649# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10650# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10651#else
10652# define ISLOWER(c) \
10653		   (('a' <= (c) && (c) <= 'i') \
10654		     || ('j' <= (c) && (c) <= 'r') \
10655		     || ('s' <= (c) && (c) <= 'z'))
10656# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10657#endif
10658
10659#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10660int
10661main ()
10662{
10663  int i;
10664  for (i = 0; i < 256; i++)
10665    if (XOR (islower (i), ISLOWER (i))
10666	|| toupper (i) != TOUPPER (i))
10667      return 2;
10668  return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_run "$LINENO"; then :
10672
10673else
10674  ac_cv_header_stdc=no
10675fi
10676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10677  conftest.$ac_objext conftest.beam conftest.$ac_ext
10678fi
10679
10680fi
10681fi
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10683$as_echo "$ac_cv_header_stdc" >&6; }
10684if test $ac_cv_header_stdc = yes; then
10685
10686$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10687
10688fi
10689
10690
10691# For the C++ code
10692# Check whether --enable-cxx was given.
10693if test "${enable_cxx+set}" = set; then :
10694  enableval=$enable_cxx; use_cxx=$enableval
10695else
10696  use_cxx=yes
10697fi
10698
10699if test "$use_cxx" != "no"; then
10700  ac_ext=cpp
10701ac_cpp='$CXXCPP $CPPFLAGS'
10702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10705
10706
10707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708/* end confdefs.h.  */
10709
10710int
10711main ()
10712{
10713
10714  ;
10715  return 0;
10716}
10717_ACEOF
10718if ac_fn_cxx_try_compile "$LINENO"; then :
10719  use_cxx=yes
10720else
10721  use_cxx=no
10722fi
10723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724  ac_ext=c
10725ac_cpp='$CPP $CPPFLAGS'
10726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10728ac_compiler_gnu=$ac_cv_c_compiler_gnu
10729
10730fi
10731 if test "$use_cxx" != "no"; then
10732  ENABLE_CXX_TRUE=
10733  ENABLE_CXX_FALSE='#'
10734else
10735  ENABLE_CXX_TRUE='#'
10736  ENABLE_CXX_FALSE=
10737fi
10738
10739
10740use_accel=yes
10741have_vista_dynamic=yes
10742case "$host" in
10743  *android*)
10744    have_android=yes
10745    have_elf=yes
10746  ;;
10747  *mingw32* | *mingw64*)
10748    have_win=yes
10749
10750$as_echo "#define _UNICODE 1" >>confdefs.h
10751
10752    GNUTLS_LIBS_PRIVATE="${GNUTLS_LIBS_PRIVATE} -lcrypt32"
10753    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h.  */
10755#include <windows.h>
10756       #if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0600
10757       # error Vista APIs allowed statically
10758       #endif
10759
10760int
10761main ()
10762{
10763;
10764  ;
10765  return 0;
10766}
10767_ACEOF
10768if ac_fn_c_try_cpp "$LINENO"; then :
10769  have_vista_dynamic=yes
10770else
10771  have_vista_dynamic=no
10772fi
10773rm -f conftest.err conftest.i conftest.$ac_ext
10774    # Check whether --enable-dyn_ncrypt was given.
10775if test "${enable_dyn_ncrypt+set}" = set; then :
10776  enableval=$enable_dyn_ncrypt; enable_dyn_ncrypt=$enableval
10777else
10778  enable_dyn_ncrypt=$have_vista_dynamic
10779
10780fi
10781
10782    if test "x$enable_dyn_ncrypt" = "xyes"; then
10783
10784$as_echo "#define DYN_NCRYPT 1" >>confdefs.h
10785
10786    else
10787      GNUTLS_LIBS_PRIVATE="${GNUTLS_LIBS_PRIVATE} -lncrypt"
10788    fi
10789  ;;
10790  *darwin*)
10791    have_macosx=yes
10792    save_LDFLAGS="$LDFLAGS"
10793                LDFLAGS="$LDFLAGS -Wl,-no_weak_imports"
10794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -Wl,-no_weak_imports" >&5
10795$as_echo_n "checking whether the linker supports -Wl,-no_weak_imports... " >&6; }
10796    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h.  */
10798#include <sys/select.h>
10799int
10800main ()
10801{
10802fd_set rfds; FD_ZERO(&rfds); FD_SET(0, &rfds);
10803  ;
10804  return 0;
10805}
10806_ACEOF
10807if ac_fn_c_try_link "$LINENO"; then :
10808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809$as_echo "yes" >&6; }
10810else
10811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812$as_echo "no" >&6; }; LDFLAGS="$save_LDFLAGS"
10813fi
10814rm -f core conftest.err conftest.$ac_objext \
10815    conftest$ac_exeext conftest.$ac_ext
10816  ;;
10817  *solaris*)
10818    have_elf=yes
10819    use_accel=no
10820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10821***
10822*** In solaris hardware acceleration is disabled by default due to issues
10823*** with the assembler. Use --enable-hardware-acceleration to enable it.
10824*** " >&5
10825$as_echo "$as_me: WARNING:
10826***
10827*** In solaris hardware acceleration is disabled by default due to issues
10828*** with the assembler. Use --enable-hardware-acceleration to enable it.
10829*** " >&2;}
10830  ;;
10831  *)
10832    have_elf=yes
10833  ;;
10834esac
10835
10836 if test "$have_android" = yes; then
10837  ANDROID_TRUE=
10838  ANDROID_FALSE='#'
10839else
10840  ANDROID_TRUE='#'
10841  ANDROID_FALSE=
10842fi
10843
10844 if test "$have_win" = yes; then
10845  WINDOWS_TRUE=
10846  WINDOWS_FALSE='#'
10847else
10848  WINDOWS_TRUE='#'
10849  WINDOWS_FALSE=
10850fi
10851
10852 if test "$have_macosx" = yes; then
10853  MACOSX_TRUE=
10854  MACOSX_FALSE='#'
10855else
10856  MACOSX_TRUE='#'
10857  MACOSX_FALSE=
10858fi
10859
10860 if test "$have_elf" = yes; then
10861  ELF_TRUE=
10862  ELF_FALSE='#'
10863else
10864  ELF_TRUE='#'
10865  ELF_FALSE=
10866fi
10867
10868
10869# Check whether --enable-hardware-acceleration was given.
10870if test "${enable_hardware_acceleration+set}" = set; then :
10871  enableval=$enable_hardware_acceleration; use_accel=$enableval
10872fi
10873
10874hw_accel=none
10875
10876
10877use_padlock=no
10878if test "$use_accel" != "no"; then
10879case $host_cpu in
10880  armv8 | aarch64)
10881      hw_accel="aarch64"
10882      case $host_os in
10883        *_ilp32)
10884	  	  hw_accel="none"
10885        ;;
10886      esac
10887  ;;
10888  i?86 | x86_64 | amd64)
10889      for ac_header in cpuid.h
10890do :
10891  ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
10892if test "x$ac_cv_header_cpuid_h" = xyes; then :
10893  cat >>confdefs.h <<_ACEOF
10894#define HAVE_CPUID_H 1
10895_ACEOF
10896
10897fi
10898
10899done
10900
10901      if test "$host_cpu" = "x86_64" || test "$host_cpu" = "amd64"; then
10902        hw_accel="x86-64"
10903      else
10904        hw_accel="x86"
10905      fi
10906      use_padlock=yes
10907  ;;
10908  *)
10909  ;;
10910esac
10911
10912# check for gcc's __get_cpuid_count functionality
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid_count" >&5
10914$as_echo_n "checking for __get_cpuid_count... " >&6; }
10915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916/* end confdefs.h.  */
10917
10918    #include <cpuid.h>
10919    int main(void) { unsigned t1; return __get_cpuid_count(7, 0, &t1, &t1, &t1, &t1); }
10920
10921_ACEOF
10922if ac_fn_c_try_link "$LINENO"; then :
10923
10924$as_echo "#define HAVE_GET_CPUID_COUNT 1" >>confdefs.h
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10926$as_echo "yes" >&6; }
10927else
10928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929$as_echo "no" >&6; }
10930
10931fi
10932rm -f core conftest.err conftest.$ac_objext \
10933    conftest$ac_exeext conftest.$ac_ext
10934
10935fi
10936
10937# Check whether --enable-tls13-interop was given.
10938if test "${enable_tls13_interop+set}" = set; then :
10939  enableval=$enable_tls13_interop; enable_tls13_interop=$enableval
10940else
10941  enable_tls13_interop=yes
10942fi
10943
10944
10945 if test "$enable_tls13_interop" != "no"; then
10946  ENABLE_TLS13_INTEROP_TRUE=
10947  ENABLE_TLS13_INTEROP_FALSE='#'
10948else
10949  ENABLE_TLS13_INTEROP_TRUE='#'
10950  ENABLE_TLS13_INTEROP_FALSE=
10951fi
10952
10953
10954ac_fn_c_check_member "$LINENO" "struct iovec" "iov_base" "ac_cv_member_struct_iovec_iov_base" "#include <sys/uio.h>
10955
10956"
10957if test "x$ac_cv_member_struct_iovec_iov_base" = xyes; then :
10958
10959cat >>confdefs.h <<_ACEOF
10960#define HAVE_STRUCT_IOVEC_IOV_BASE 1
10961_ACEOF
10962
10963
10964        DEFINE_IOVEC_T="#include <sys/uio.h>
10965typedef struct iovec giovec_t;"
10966
10967
10968else
10969
10970        DEFINE_IOVEC_T="typedef struct {
10971    void *iov_base;
10972    size_t iov_len;
10973} giovec_t;"
10974
10975
10976fi
10977
10978
10979
10980for ac_header in netinet/tcp.h
10981do :
10982  ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
10983if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
10984  cat >>confdefs.h <<_ACEOF
10985#define HAVE_NETINET_TCP_H 1
10986_ACEOF
10987
10988fi
10989
10990done
10991
10992for ac_header in stdatomic.h
10993do :
10994  ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
10995if test "x$ac_cv_header_stdatomic_h" = xyes; then :
10996  cat >>confdefs.h <<_ACEOF
10997#define HAVE_STDATOMIC_H 1
10998_ACEOF
10999
11000fi
11001
11002done
11003
11004
11005save_LIBS=$LIBS
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __atomic_load_4" >&5
11007$as_echo_n "checking for library containing __atomic_load_4... " >&6; }
11008if ${ac_cv_search___atomic_load_4+:} false; then :
11009  $as_echo_n "(cached) " >&6
11010else
11011  ac_func_search_save_LIBS=$LIBS
11012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014
11015/* Override any GCC internal prototype to avoid an error.
11016   Use char because int might match the return type of a GCC
11017   builtin and then its argument prototype would still apply.  */
11018#ifdef __cplusplus
11019extern "C"
11020#endif
11021char __atomic_load_4 ();
11022int
11023main ()
11024{
11025return __atomic_load_4 ();
11026  ;
11027  return 0;
11028}
11029_ACEOF
11030for ac_lib in '' atomic; do
11031  if test -z "$ac_lib"; then
11032    ac_res="none required"
11033  else
11034    ac_res=-l$ac_lib
11035    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11036  fi
11037  if ac_fn_c_try_link "$LINENO"; then :
11038  ac_cv_search___atomic_load_4=$ac_res
11039fi
11040rm -f core conftest.err conftest.$ac_objext \
11041    conftest$ac_exeext
11042  if ${ac_cv_search___atomic_load_4+:} false; then :
11043  break
11044fi
11045done
11046if ${ac_cv_search___atomic_load_4+:} false; then :
11047
11048else
11049  ac_cv_search___atomic_load_4=no
11050fi
11051rm conftest.$ac_ext
11052LIBS=$ac_func_search_save_LIBS
11053fi
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___atomic_load_4" >&5
11055$as_echo "$ac_cv_search___atomic_load_4" >&6; }
11056ac_res=$ac_cv_search___atomic_load_4
11057if test "$ac_res" != no; then :
11058  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11059
11060else
11061  { $as_echo "$as_me:${as_lineno-$LINENO}: Could not detect libatomic" >&5
11062$as_echo "$as_me: Could not detect libatomic" >&6;}
11063fi
11064
11065LIBS=$save_LIBS
11066
11067if test "$ac_cv_search___atomic_load_4" = "none required" || test "$ac_cv_search___atomic_load_4" = "no"; then :
11068
11069else
11070  LIBATOMIC_LIBS=$ac_cv_search___atomic_load_4
11071
11072fi
11073
11074for ac_header in threads.h
11075do :
11076  ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
11077if test "x$ac_cv_header_threads_h" = xyes; then :
11078  cat >>confdefs.h <<_ACEOF
11079#define HAVE_THREADS_H 1
11080_ACEOF
11081
11082fi
11083
11084done
11085
11086
11087for ac_header in valgrind/memcheck.h
11088do :
11089  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
11090if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
11091  cat >>confdefs.h <<_ACEOF
11092#define HAVE_VALGRIND_MEMCHECK_H 1
11093_ACEOF
11094
11095fi
11096
11097done
11098
11099
11100# Check whether --enable-padlock was given.
11101if test "${enable_padlock+set}" = set; then :
11102  enableval=$enable_padlock; use_padlock=$enableval
11103fi
11104
11105
11106if test "$use_padlock" != "no"; then
11107
11108$as_echo "#define ENABLE_PADLOCK 1" >>confdefs.h
11109
11110
11111fi
11112 if test "$use_padlock" = "yes"; then
11113  ENABLE_PADLOCK_TRUE=
11114  ENABLE_PADLOCK_FALSE='#'
11115else
11116  ENABLE_PADLOCK_TRUE='#'
11117  ENABLE_PADLOCK_FALSE=
11118fi
11119
11120 if test x"$hw_accel" = x"aarch64"; then
11121  ASM_AARCH64_TRUE=
11122  ASM_AARCH64_FALSE='#'
11123else
11124  ASM_AARCH64_TRUE='#'
11125  ASM_AARCH64_FALSE=
11126fi
11127
11128 if test x"$hw_accel" = x"x86-64"; then
11129  ASM_X86_64_TRUE=
11130  ASM_X86_64_FALSE='#'
11131else
11132  ASM_X86_64_TRUE='#'
11133  ASM_X86_64_FALSE=
11134fi
11135
11136 if test x"$hw_accel" = x"x86"; then
11137  ASM_X86_32_TRUE=
11138  ASM_X86_32_FALSE='#'
11139else
11140  ASM_X86_32_TRUE='#'
11141  ASM_X86_32_FALSE=
11142fi
11143
11144 if test x"$hw_accel" = x"x86" || test x"$hw_accel" = x"x86-64"; then
11145  ASM_X86_TRUE=
11146  ASM_X86_FALSE='#'
11147else
11148  ASM_X86_TRUE='#'
11149  ASM_X86_FALSE=
11150fi
11151
11152 if test "$gnu89_inline" = "yes"]; then
11153  HAVE_GCC_GNU89_INLINE_OPTION_TRUE=
11154  HAVE_GCC_GNU89_INLINE_OPTION_FALSE='#'
11155else
11156  HAVE_GCC_GNU89_INLINE_OPTION_TRUE='#'
11157  HAVE_GCC_GNU89_INLINE_OPTION_FALSE=
11158fi
11159
11160 if test "$GCC" = "yes"; then
11161  HAVE_GCC_TRUE=
11162  HAVE_GCC_FALSE='#'
11163else
11164  HAVE_GCC_TRUE='#'
11165  HAVE_GCC_FALSE=
11166fi
11167
11168
11169rnd_variant="auto-detect"
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom" >&5
11171$as_echo_n "checking for getrandom... " >&6; }
11172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174
11175	   #include <sys/random.h>
11176int
11177main ()
11178{
11179
11180		   getrandom(0, 0, 0);
11181
11182  ;
11183  return 0;
11184}
11185_ACEOF
11186if ac_fn_c_try_link "$LINENO"; then :
11187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11188$as_echo "yes" >&6; }
11189
11190$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
11191
11192		   rnd_variant=getrandom
11193else
11194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195$as_echo "no" >&6; }
11196fi
11197rm -f core conftest.err conftest.$ac_objext \
11198    conftest$ac_exeext conftest.$ac_ext
11199
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_ARND" >&5
11201$as_echo_n "checking for KERN_ARND... " >&6; }
11202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203/* end confdefs.h.  */
11204
11205	   #include <sys/sysctl.h>
11206           #ifdef __linux__
11207           #error 1
11208           #endif
11209           static int name = {CTL_KERN, KERN_ARND};
11210
11211int
11212main ()
11213{
11214
11215		   sysctl(0, 0, 0, 0, 0, 0);
11216
11217  ;
11218  return 0;
11219}
11220_ACEOF
11221if ac_fn_c_try_link "$LINENO"; then :
11222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11223$as_echo "yes" >&6; }
11224
11225$as_echo "#define HAVE_KERN_ARND 1" >>confdefs.h
11226
11227		   rnd_variant=kern_arnd
11228else
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
11231fi
11232rm -f core conftest.err conftest.$ac_objext \
11233    conftest$ac_exeext conftest.$ac_ext
11234
11235 if test "$rnd_variant" = "kern_arnd"; then
11236  HAVE_KERN_ARND_TRUE=
11237  HAVE_KERN_ARND_FALSE='#'
11238else
11239  HAVE_KERN_ARND_TRUE='#'
11240  HAVE_KERN_ARND_FALSE=
11241fi
11242
11243
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getentropy" >&5
11245$as_echo_n "checking for getentropy... " >&6; }
11246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247/* end confdefs.h.  */
11248
11249	   #include <unistd.h>
11250           #ifdef __APPLE__
11251           #include <sys/random.h>
11252           #endif
11253           #ifdef __linux__
11254           #error 1
11255           #endif
11256
11257int
11258main ()
11259{
11260
11261		   getentropy(0, 0);
11262
11263  ;
11264  return 0;
11265}
11266_ACEOF
11267if ac_fn_c_try_link "$LINENO"; then :
11268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269$as_echo "yes" >&6; }
11270
11271$as_echo "#define HAVE_GETENTROPY 1" >>confdefs.h
11272
11273		   rnd_variant=getentropy
11274else
11275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276$as_echo "no" >&6; }
11277fi
11278rm -f core conftest.err conftest.$ac_objext \
11279    conftest$ac_exeext conftest.$ac_ext
11280
11281 if test "$rnd_variant" = "getentropy"; then
11282  HAVE_GETENTROPY_TRUE=
11283  HAVE_GETENTROPY_FALSE='#'
11284else
11285  HAVE_GETENTROPY_TRUE='#'
11286  HAVE_GETENTROPY_FALSE=
11287fi
11288
11289
11290
11291  # Library code modified:                              REVISION++
11292  # Interfaces changed/added/removed:   CURRENT++       REVISION=0
11293  # Interfaces added:                             AGE++
11294  #   + add new version symbol in libgnutls.map, see Symbol and library versioning
11295  #     in CONTRIBUTION.md for more info.
11296  #
11297  # Interfaces removed:                           AGE=0 (+bump all symbol versions in .map)
11298  LT_CURRENT=58
11299
11300  LT_REVISION=2
11301
11302  LT_AGE=28
11303
11304
11305  LT_SSL_CURRENT=27
11306
11307  LT_SSL_REVISION=2
11308
11309  LT_SSL_AGE=0
11310
11311
11312  LT_DANE_CURRENT=4
11313
11314  LT_DANE_REVISION=1
11315
11316  LT_DANE_AGE=4
11317
11318
11319  LT_XSSL_CURRENT=0
11320
11321  LT_XSSL_REVISION=0
11322
11323  LT_XSSL_AGE=0
11324
11325
11326  CXX_LT_CURRENT=29
11327
11328  CXX_LT_REVISION=0
11329
11330  CXX_LT_AGE=1
11331
11332
11333  CRYWRAP_PATCHLEVEL=3
11334
11335
11336  # Used when creating the Windows libgnutls-XX.def files.
11337  DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
11338
11339  DLL_SSL_VERSION=`expr ${LT_SSL_CURRENT} - ${LT_SSL_AGE}`
11340
11341
11342NETTLE_MINIMUM=3.4.1
11343
11344pkg_failed=no
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NETTLE" >&5
11346$as_echo_n "checking for NETTLE... " >&6; }
11347
11348if test -n "$NETTLE_CFLAGS"; then
11349    pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
11350 elif test -n "$PKG_CONFIG"; then
11351    if test -n "$PKG_CONFIG" && \
11352    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= \$NETTLE_MINIMUM\""; } >&5
11353  ($PKG_CONFIG --exists --print-errors "nettle >= $NETTLE_MINIMUM") 2>&5
11354  ac_status=$?
11355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11356  test $ac_status = 0; }; then
11357  pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle >= $NETTLE_MINIMUM" 2>/dev/null`
11358		      test "x$?" != "x0" && pkg_failed=yes
11359else
11360  pkg_failed=yes
11361fi
11362 else
11363    pkg_failed=untried
11364fi
11365if test -n "$NETTLE_LIBS"; then
11366    pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
11367 elif test -n "$PKG_CONFIG"; then
11368    if test -n "$PKG_CONFIG" && \
11369    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= \$NETTLE_MINIMUM\""; } >&5
11370  ($PKG_CONFIG --exists --print-errors "nettle >= $NETTLE_MINIMUM") 2>&5
11371  ac_status=$?
11372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11373  test $ac_status = 0; }; then
11374  pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle >= $NETTLE_MINIMUM" 2>/dev/null`
11375		      test "x$?" != "x0" && pkg_failed=yes
11376else
11377  pkg_failed=yes
11378fi
11379 else
11380    pkg_failed=untried
11381fi
11382
11383
11384
11385if test $pkg_failed = yes; then
11386   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387$as_echo "no" >&6; }
11388
11389if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11390        _pkg_short_errors_supported=yes
11391else
11392        _pkg_short_errors_supported=no
11393fi
11394        if test $_pkg_short_errors_supported = yes; then
11395	        NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nettle >= $NETTLE_MINIMUM" 2>&1`
11396        else
11397	        NETTLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nettle >= $NETTLE_MINIMUM" 2>&1`
11398        fi
11399	# Put the nasty error message in config.log where it belongs
11400	echo "$NETTLE_PKG_ERRORS" >&5
11401
11402
11403as_fn_error $? "
11404  ***
11405  *** Libnettle $NETTLE_MINIMUM was not found.
11406" "$LINENO" 5
11407
11408elif test $pkg_failed = untried; then
11409     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410$as_echo "no" >&6; }
11411
11412as_fn_error $? "
11413  ***
11414  *** Libnettle $NETTLE_MINIMUM was not found.
11415" "$LINENO" 5
11416
11417else
11418	NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
11419	NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
11420        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11421$as_echo "yes" >&6; }
11422	cryptolib="nettle"
11423fi
11424
11425pkg_failed=no
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HOGWEED" >&5
11427$as_echo_n "checking for HOGWEED... " >&6; }
11428
11429if test -n "$HOGWEED_CFLAGS"; then
11430    pkg_cv_HOGWEED_CFLAGS="$HOGWEED_CFLAGS"
11431 elif test -n "$PKG_CONFIG"; then
11432    if test -n "$PKG_CONFIG" && \
11433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= \$NETTLE_MINIMUM \""; } >&5
11434  ($PKG_CONFIG --exists --print-errors "hogweed >= $NETTLE_MINIMUM ") 2>&5
11435  ac_status=$?
11436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437  test $ac_status = 0; }; then
11438  pkg_cv_HOGWEED_CFLAGS=`$PKG_CONFIG --cflags "hogweed >= $NETTLE_MINIMUM " 2>/dev/null`
11439		      test "x$?" != "x0" && pkg_failed=yes
11440else
11441  pkg_failed=yes
11442fi
11443 else
11444    pkg_failed=untried
11445fi
11446if test -n "$HOGWEED_LIBS"; then
11447    pkg_cv_HOGWEED_LIBS="$HOGWEED_LIBS"
11448 elif test -n "$PKG_CONFIG"; then
11449    if test -n "$PKG_CONFIG" && \
11450    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= \$NETTLE_MINIMUM \""; } >&5
11451  ($PKG_CONFIG --exists --print-errors "hogweed >= $NETTLE_MINIMUM ") 2>&5
11452  ac_status=$?
11453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11454  test $ac_status = 0; }; then
11455  pkg_cv_HOGWEED_LIBS=`$PKG_CONFIG --libs "hogweed >= $NETTLE_MINIMUM " 2>/dev/null`
11456		      test "x$?" != "x0" && pkg_failed=yes
11457else
11458  pkg_failed=yes
11459fi
11460 else
11461    pkg_failed=untried
11462fi
11463
11464
11465
11466if test $pkg_failed = yes; then
11467   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468$as_echo "no" >&6; }
11469
11470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11471        _pkg_short_errors_supported=yes
11472else
11473        _pkg_short_errors_supported=no
11474fi
11475        if test $_pkg_short_errors_supported = yes; then
11476	        HOGWEED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hogweed >= $NETTLE_MINIMUM " 2>&1`
11477        else
11478	        HOGWEED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hogweed >= $NETTLE_MINIMUM " 2>&1`
11479        fi
11480	# Put the nasty error message in config.log where it belongs
11481	echo "$HOGWEED_PKG_ERRORS" >&5
11482
11483
11484as_fn_error $? "
11485  ***
11486  *** Libhogweed (nettle's companion library) $NETTLE_MINIMUM was not found. Note that you must compile nettle with gmp support.
11487" "$LINENO" 5
11488
11489elif test $pkg_failed = untried; then
11490     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491$as_echo "no" >&6; }
11492
11493as_fn_error $? "
11494  ***
11495  *** Libhogweed (nettle's companion library) $NETTLE_MINIMUM was not found. Note that you must compile nettle with gmp support.
11496" "$LINENO" 5
11497
11498else
11499	HOGWEED_CFLAGS=$pkg_cv_HOGWEED_CFLAGS
11500	HOGWEED_LIBS=$pkg_cv_HOGWEED_LIBS
11501        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11502$as_echo "yes" >&6; }
11503
11504fi
11505   if test "$cryptolib" = "nettle"; then
11506  ENABLE_NETTLE_TRUE=
11507  ENABLE_NETTLE_FALSE='#'
11508else
11509  ENABLE_NETTLE_TRUE='#'
11510  ENABLE_NETTLE_FALSE=
11511fi
11512
11513
11514$as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
11515
11516
11517  GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed"
11518
11519
11520# Check whether --with-nettle-mini was given.
11521if test "${with_nettle_mini+set}" = set; then :
11522  withval=$with_nettle_mini; mini_nettle=$withval
11523else
11524  mini_nettle=no
11525fi
11526
11527
11528
11529
11530  if test "$mini_nettle" != no;then
11531    GMP_CFLAGS=""
11532    GMP_LIBS=""
11533  else
11534    if test x$GMP_LIBS = x; then
11535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_cmp in -lgmp" >&5
11536$as_echo_n "checking for __gmpz_cmp in -lgmp... " >&6; }
11537if ${ac_cv_lib_gmp___gmpz_cmp+:} false; then :
11538  $as_echo_n "(cached) " >&6
11539else
11540  ac_check_lib_save_LIBS=$LIBS
11541LIBS="-lgmp  $LIBS"
11542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543/* end confdefs.h.  */
11544
11545/* Override any GCC internal prototype to avoid an error.
11546   Use char because int might match the return type of a GCC
11547   builtin and then its argument prototype would still apply.  */
11548#ifdef __cplusplus
11549extern "C"
11550#endif
11551char __gmpz_cmp ();
11552int
11553main ()
11554{
11555return __gmpz_cmp ();
11556  ;
11557  return 0;
11558}
11559_ACEOF
11560if ac_fn_c_try_link "$LINENO"; then :
11561  ac_cv_lib_gmp___gmpz_cmp=yes
11562else
11563  ac_cv_lib_gmp___gmpz_cmp=no
11564fi
11565rm -f core conftest.err conftest.$ac_objext \
11566    conftest$ac_exeext conftest.$ac_ext
11567LIBS=$ac_check_lib_save_LIBS
11568fi
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_cmp" >&5
11570$as_echo "$ac_cv_lib_gmp___gmpz_cmp" >&6; }
11571if test "x$ac_cv_lib_gmp___gmpz_cmp" = xyes; then :
11572  GMP_LIBS="-lgmp"
11573else
11574  as_fn_error $? "
11575***
11576*** gmp was not found.
11577" "$LINENO" 5
11578fi
11579
11580    fi
11581  fi
11582
11583
11584
11585LIBTASN1_MINIMUM=4.9
11586
11587# Check whether --with-included-libtasn1 was given.
11588if test "${with_included_libtasn1+set}" = set; then :
11589  withval=$with_included_libtasn1; included_libtasn1=$withval
11590else
11591  included_libtasn1=no
11592fi
11593
11594  if test "$included_libtasn1" = "no"; then
11595
11596pkg_failed=no
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTASN1" >&5
11598$as_echo_n "checking for LIBTASN1... " >&6; }
11599
11600if test -n "$LIBTASN1_CFLAGS"; then
11601    pkg_cv_LIBTASN1_CFLAGS="$LIBTASN1_CFLAGS"
11602 elif test -n "$PKG_CONFIG"; then
11603    if test -n "$PKG_CONFIG" && \
11604    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= \$LIBTASN1_MINIMUM\""; } >&5
11605  ($PKG_CONFIG --exists --print-errors "libtasn1 >= $LIBTASN1_MINIMUM") 2>&5
11606  ac_status=$?
11607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11608  test $ac_status = 0; }; then
11609  pkg_cv_LIBTASN1_CFLAGS=`$PKG_CONFIG --cflags "libtasn1 >= $LIBTASN1_MINIMUM" 2>/dev/null`
11610		      test "x$?" != "x0" && pkg_failed=yes
11611else
11612  pkg_failed=yes
11613fi
11614 else
11615    pkg_failed=untried
11616fi
11617if test -n "$LIBTASN1_LIBS"; then
11618    pkg_cv_LIBTASN1_LIBS="$LIBTASN1_LIBS"
11619 elif test -n "$PKG_CONFIG"; then
11620    if test -n "$PKG_CONFIG" && \
11621    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= \$LIBTASN1_MINIMUM\""; } >&5
11622  ($PKG_CONFIG --exists --print-errors "libtasn1 >= $LIBTASN1_MINIMUM") 2>&5
11623  ac_status=$?
11624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11625  test $ac_status = 0; }; then
11626  pkg_cv_LIBTASN1_LIBS=`$PKG_CONFIG --libs "libtasn1 >= $LIBTASN1_MINIMUM" 2>/dev/null`
11627		      test "x$?" != "x0" && pkg_failed=yes
11628else
11629  pkg_failed=yes
11630fi
11631 else
11632    pkg_failed=untried
11633fi
11634
11635
11636
11637if test $pkg_failed = yes; then
11638   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639$as_echo "no" >&6; }
11640
11641if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11642        _pkg_short_errors_supported=yes
11643else
11644        _pkg_short_errors_supported=no
11645fi
11646        if test $_pkg_short_errors_supported = yes; then
11647	        LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtasn1 >= $LIBTASN1_MINIMUM" 2>&1`
11648        else
11649	        LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtasn1 >= $LIBTASN1_MINIMUM" 2>&1`
11650        fi
11651	# Put the nasty error message in config.log where it belongs
11652	echo "$LIBTASN1_PKG_ERRORS" >&5
11653
11654	included_libtasn1=yes
11655elif test $pkg_failed = untried; then
11656     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
11658	included_libtasn1=yes
11659else
11660	LIBTASN1_CFLAGS=$pkg_cv_LIBTASN1_CFLAGS
11661	LIBTASN1_LIBS=$pkg_cv_LIBTASN1_LIBS
11662        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11663$as_echo "yes" >&6; }
11664
11665fi
11666    if test "$included_libtasn1" = yes; then
11667      as_fn_error $? "
11668  ***
11669  *** Libtasn1 $LIBTASN1_MINIMUM was not found. To use the included one, use --with-included-libtasn1
11670  " "$LINENO" 5
11671    fi
11672  fi
11673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
11674$as_echo_n "checking whether to use the included minitasn1... " >&6; }
11675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
11676$as_echo "$included_libtasn1" >&6; }
11677   if test "$included_libtasn1" = "yes"; then
11678  ENABLE_MINITASN1_TRUE=
11679  ENABLE_MINITASN1_FALSE='#'
11680else
11681  ENABLE_MINITASN1_TRUE='#'
11682  ENABLE_MINITASN1_FALSE=
11683fi
11684
11685
11686  if test "$included_libtasn1" = "no"; then
11687    GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
11688  fi
11689
11690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
11691$as_echo_n "checking whether C99 macros are supported... " >&6; }
11692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693/* end confdefs.h.  */
11694
11695int
11696main ()
11697{
11698
11699    #define test_mac(...)
11700    int z,y,x;
11701    test_mac(x,y,z);
11702    return 0;
11703
11704  ;
11705  return 0;
11706}
11707_ACEOF
11708if ac_fn_c_try_compile "$LINENO"; then :
11709
11710
11711$as_echo "#define C99_MACROS 1" >>confdefs.h
11712
11713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11714$as_echo "yes" >&6; }
11715
11716else
11717
11718    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719$as_echo "no" >&6; }
11720    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
11721$as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
11722
11723fi
11724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725
11726  ac_strict_der_time=yes
11727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable strict DER time encodings for backwards compatibility" >&5
11728$as_echo_n "checking whether to disable strict DER time encodings for backwards compatibility... " >&6; }
11729  # Check whether --enable-strict-der-time was given.
11730if test "${enable_strict_der_time+set}" = set; then :
11731  enableval=$enable_strict_der_time; ac_strict_der_time=$enableval
11732fi
11733
11734  if test x$ac_strict_der_time != xno; then
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737
11738$as_echo "#define STRICT_DER_TIME 1" >>confdefs.h
11739
11740  else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742$as_echo "yes" >&6; }
11743  fi
11744   if test "$ac_strict_der_time" != "no"; then
11745  STRICT_DER_TIME_TRUE=
11746  STRICT_DER_TIME_FALSE='#'
11747else
11748  STRICT_DER_TIME_TRUE='#'
11749  STRICT_DER_TIME_FALSE=
11750fi
11751
11752
11753  ac_allow_sha1=no
11754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow SHA1 as an acceptable hash for cert digital signatures" >&5
11755$as_echo_n "checking whether to allow SHA1 as an acceptable hash for cert digital signatures... " >&6; }
11756  # Check whether --enable-sha1-support was given.
11757if test "${enable_sha1_support+set}" = set; then :
11758  enableval=$enable_sha1_support; ac_allow_sha1=$enableval
11759fi
11760
11761  if test x$ac_allow_sha1 != xno; then
11762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
11764
11765$as_echo "#define ALLOW_SHA1 1" >>confdefs.h
11766
11767  else
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11769$as_echo "yes" >&6; }
11770  fi
11771   if test "$ac_allow_sha1" != "no"; then
11772  ALLOW_SHA1_TRUE=
11773  ALLOW_SHA1_FALSE='#'
11774else
11775  ALLOW_SHA1_TRUE='#'
11776  ALLOW_SHA1_FALSE=
11777fi
11778
11779
11780  ac_enable_ssl3=no
11781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable the SSL 3.0 protocol" >&5
11782$as_echo_n "checking whether to disable the SSL 3.0 protocol... " >&6; }
11783  # Check whether --enable-ssl3-support was given.
11784if test "${enable_ssl3_support+set}" = set; then :
11785  enableval=$enable_ssl3_support; ac_enable_ssl3=$enableval
11786fi
11787
11788  if test x$ac_enable_ssl3 != xno; then
11789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
11791
11792$as_echo "#define ENABLE_SSL3 1" >>confdefs.h
11793
11794  else
11795   ac_full=0
11796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797$as_echo "yes" >&6; }
11798  fi
11799
11800   if test "$ac_enable_ssl3" != "no"; then
11801  ENABLE_SSL3_TRUE=
11802  ENABLE_SSL3_FALSE='#'
11803else
11804  ENABLE_SSL3_TRUE='#'
11805  ENABLE_SSL3_FALSE=
11806fi
11807
11808
11809  ac_enable_ssl2=yes
11810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable the SSL 2.0 client hello" >&5
11811$as_echo_n "checking whether to disable the SSL 2.0 client hello... " >&6; }
11812  # Check whether --enable-ssl2-support was given.
11813if test "${enable_ssl2_support+set}" = set; then :
11814  enableval=$enable_ssl2_support; ac_enable_ssl2=$enableval
11815fi
11816
11817  if test x$ac_enable_ssl2 != xno; then
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
11820
11821$as_echo "#define ENABLE_SSL2 1" >>confdefs.h
11822
11823  else
11824   ac_full=0
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11826$as_echo "yes" >&6; }
11827  fi
11828   if test "$ac_enable_ssl2" != "no"; then
11829  ENABLE_SSL2_TRUE=
11830  ENABLE_SSL2_FALSE='#'
11831else
11832  ENABLE_SSL2_TRUE='#'
11833  ENABLE_SSL2_FALSE=
11834fi
11835
11836
11837  ac_enable_srtp=yes
11838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DTLS-SRTP extension" >&5
11839$as_echo_n "checking whether to disable DTLS-SRTP extension... " >&6; }
11840  # Check whether --enable-dtls-srtp-support was given.
11841if test "${enable_dtls_srtp_support+set}" = set; then :
11842  enableval=$enable_dtls_srtp_support; ac_enable_srtp=$enableval
11843fi
11844
11845  if test x$ac_enable_srtp != xno; then
11846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847$as_echo "no" >&6; }
11848
11849$as_echo "#define ENABLE_DTLS_SRTP 1" >>confdefs.h
11850
11851  else
11852   ac_full=0
11853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11854$as_echo "yes" >&6; }
11855  fi
11856   if test "$ac_enable_srtp" != "no"; then
11857  ENABLE_DTLS_SRTP_TRUE=
11858  ENABLE_DTLS_SRTP_FALSE='#'
11859else
11860  ENABLE_DTLS_SRTP_TRUE='#'
11861  ENABLE_DTLS_SRTP_FALSE=
11862fi
11863
11864
11865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ALPN extension" >&5
11866$as_echo_n "checking whether to disable ALPN extension... " >&6; }
11867  # Check whether --enable-alpn-support was given.
11868if test "${enable_alpn_support+set}" = set; then :
11869  enableval=$enable_alpn_support; ac_enable_alpn=$enableval
11870else
11871  ac_enable_alpn=yes
11872fi
11873
11874  if test x$ac_enable_alpn != xno; then
11875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
11877
11878$as_echo "#define ENABLE_ALPN 1" >>confdefs.h
11879
11880  else
11881   ac_full=0
11882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11883$as_echo "yes" >&6; }
11884  fi
11885   if test "$ac_enable_alpn" != "no"; then
11886  ENABLE_ALPN_TRUE=
11887  ENABLE_ALPN_FALSE='#'
11888else
11889  ENABLE_ALPN_TRUE='#'
11890  ENABLE_ALPN_FALSE=
11891fi
11892
11893
11894  ac_enable_heartbeat=yes
11895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS heartbeat support" >&5
11896$as_echo_n "checking whether to enable TLS heartbeat support... " >&6; }
11897  # Check whether --enable-heartbeat-support was given.
11898if test "${enable_heartbeat_support+set}" = set; then :
11899  enableval=$enable_heartbeat_support; ac_enable_heartbeat=$enableval
11900fi
11901
11902  if test x$ac_enable_heartbeat != xno; then
11903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904$as_echo "yes" >&6; }
11905
11906$as_echo "#define ENABLE_HEARTBEAT 1" >>confdefs.h
11907
11908  else
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910$as_echo "no" >&6; }
11911  fi
11912   if test "$ac_enable_heartbeat" != "no"; then
11913  ENABLE_HEARTBEAT_TRUE=
11914  ENABLE_HEARTBEAT_FALSE='#'
11915else
11916  ENABLE_HEARTBEAT_TRUE='#'
11917  ENABLE_HEARTBEAT_FALSE=
11918fi
11919
11920
11921  ac_enable_srp=yes
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
11923$as_echo_n "checking whether to disable SRP authentication support... " >&6; }
11924  # Check whether --enable-srp-authentication was given.
11925if test "${enable_srp_authentication+set}" = set; then :
11926  enableval=$enable_srp_authentication; ac_enable_srp=$enableval
11927fi
11928
11929  if test x$ac_enable_srp != xno; then
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931$as_echo "no" >&6; }
11932
11933$as_echo "#define ENABLE_SRP 1" >>confdefs.h
11934
11935  else
11936   ac_full=0
11937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938$as_echo "yes" >&6; }
11939  fi
11940   if test "$ac_enable_srp" != "no"; then
11941  ENABLE_SRP_TRUE=
11942  ENABLE_SRP_FALSE='#'
11943else
11944  ENABLE_SRP_TRUE='#'
11945  ENABLE_SRP_FALSE=
11946fi
11947
11948
11949  ac_enable_psk=yes
11950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
11951$as_echo_n "checking whether to disable PSK authentication support... " >&6; }
11952  # Check whether --enable-psk-authentication was given.
11953if test "${enable_psk_authentication+set}" = set; then :
11954  enableval=$enable_psk_authentication; ac_enable_psk=$enableval
11955fi
11956
11957  if test x$ac_enable_psk != xno; then
11958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960
11961$as_echo "#define ENABLE_PSK 1" >>confdefs.h
11962
11963  else
11964   ac_full=0
11965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966$as_echo "yes" >&6; }
11967  fi
11968   if test "$ac_enable_psk" != "no"; then
11969  ENABLE_PSK_TRUE=
11970  ENABLE_PSK_FALSE='#'
11971else
11972  ENABLE_PSK_TRUE='#'
11973  ENABLE_PSK_FALSE=
11974fi
11975
11976
11977  ac_enable_anon=yes
11978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
11979$as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
11980  # Check whether --enable-anon-authentication was given.
11981if test "${enable_anon_authentication+set}" = set; then :
11982  enableval=$enable_anon_authentication; ac_enable_anon=$enableval
11983fi
11984
11985  if test x$ac_enable_anon != xno; then
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
11988
11989$as_echo "#define ENABLE_ANON 1" >>confdefs.h
11990
11991  else
11992   ac_full=0
11993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994$as_echo "yes" >&6; }
11995  fi
11996   if test "$ac_enable_anon" != "no"; then
11997  ENABLE_ANON_TRUE=
11998  ENABLE_ANON_FALSE='#'
11999else
12000  ENABLE_ANON_TRUE='#'
12001  ENABLE_ANON_FALSE=
12002fi
12003
12004
12005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DHE support" >&5
12006$as_echo_n "checking whether to disable DHE support... " >&6; }
12007  # Check whether --enable-dhe was given.
12008if test "${enable_dhe+set}" = set; then :
12009  enableval=$enable_dhe; ac_enable_dhe=$enableval
12010else
12011  ac_enable_dhe=yes
12012fi
12013
12014  if test x$ac_enable_dhe != xno; then
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016$as_echo "no" >&6; }
12017
12018$as_echo "#define ENABLE_DHE 1" >>confdefs.h
12019
12020  else
12021   ac_full=0
12022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12023$as_echo "yes" >&6; }
12024  fi
12025   if test "$ac_enable_dhe" != "no"; then
12026  ENABLE_DHE_TRUE=
12027  ENABLE_DHE_FALSE='#'
12028else
12029  ENABLE_DHE_TRUE='#'
12030  ENABLE_DHE_FALSE=
12031fi
12032
12033
12034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ECDHE support" >&5
12035$as_echo_n "checking whether to disable ECDHE support... " >&6; }
12036  # Check whether --enable-ecdhe was given.
12037if test "${enable_ecdhe+set}" = set; then :
12038  enableval=$enable_ecdhe; ac_enable_ecdhe=$enableval
12039else
12040  ac_enable_ecdhe=yes
12041fi
12042
12043  if test x$ac_enable_ecdhe != xno; then
12044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045$as_echo "no" >&6; }
12046
12047$as_echo "#define ENABLE_ECDHE 1" >>confdefs.h
12048
12049  else
12050   ac_full=0
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12052$as_echo "yes" >&6; }
12053  fi
12054   if test "$ac_enable_ecdhe" != "no"; then
12055  ENABLE_ECDHE_TRUE=
12056  ENABLE_ECDHE_FALSE='#'
12057else
12058  ENABLE_ECDHE_TRUE='#'
12059  ENABLE_ECDHE_FALSE=
12060fi
12061
12062
12063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable GOST support" >&5
12064$as_echo_n "checking whether to disable GOST support... " >&6; }
12065  # Check whether --enable-gost was given.
12066if test "${enable_gost+set}" = set; then :
12067  enableval=$enable_gost; ac_enable_gost=$enableval
12068else
12069  ac_enable_gost=yes
12070fi
12071
12072  if test x$ac_enable_gost != xno; then
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
12075
12076$as_echo "#define ENABLE_GOST 1" >>confdefs.h
12077
12078  else
12079   ac_full=0
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12081$as_echo "yes" >&6; }
12082  fi
12083   if test "$ac_enable_gost" != "no"; then
12084  ENABLE_GOST_TRUE=
12085  ENABLE_GOST_FALSE='#'
12086else
12087  ENABLE_GOST_TRUE='#'
12088  ENABLE_GOST_FALSE=
12089fi
12090
12091
12092  # For cryptodev
12093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
12094$as_echo_n "checking whether to add cryptodev support... " >&6; }
12095  # Check whether --enable-cryptodev was given.
12096if test "${enable_cryptodev+set}" = set; then :
12097  enableval=$enable_cryptodev; enable_cryptodev=$enableval
12098else
12099  enable_cryptodev=no
12100fi
12101
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
12103$as_echo "$enable_cryptodev" >&6; }
12104
12105  if test "$enable_cryptodev" = "yes"; then
12106
12107$as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
12108
12109  fi
12110
12111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OCSP support" >&5
12112$as_echo_n "checking whether to disable OCSP support... " >&6; }
12113  # Check whether --enable-ocsp was given.
12114if test "${enable_ocsp+set}" = set; then :
12115  enableval=$enable_ocsp; ac_enable_ocsp=$enableval
12116else
12117  ac_enable_ocsp=yes
12118fi
12119
12120  if test x$ac_enable_ocsp != xno; then
12121   ac_enable_ocsp=yes
12122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123$as_echo "no" >&6; }
12124
12125$as_echo "#define ENABLE_OCSP 1" >>confdefs.h
12126
12127  else
12128   ac_full=0
12129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12130$as_echo "yes" >&6; }
12131  fi
12132   if test "$ac_enable_ocsp" != "no"; then
12133  ENABLE_OCSP_TRUE=
12134  ENABLE_OCSP_FALSE='#'
12135else
12136  ENABLE_OCSP_TRUE='#'
12137  ENABLE_OCSP_FALSE=
12138fi
12139
12140
12141  # For storing integers in pointers without warnings
12142  # https://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
12143  # The cast to long int works around a bug in the HP C Compiler
12144# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12145# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12146# This bug is HP SR number 8606223364.
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12148$as_echo_n "checking size of void *... " >&6; }
12149if ${ac_cv_sizeof_void_p+:} false; then :
12150  $as_echo_n "(cached) " >&6
12151else
12152  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
12153
12154else
12155  if test "$ac_cv_type_void_p" = yes; then
12156     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12158as_fn_error 77 "cannot compute sizeof (void *)
12159See \`config.log' for more details" "$LINENO" 5; }
12160   else
12161     ac_cv_sizeof_void_p=0
12162   fi
12163fi
12164
12165fi
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12167$as_echo "$ac_cv_sizeof_void_p" >&6; }
12168
12169
12170
12171cat >>confdefs.h <<_ACEOF
12172#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12173_ACEOF
12174
12175
12176  # The cast to long int works around a bug in the HP C Compiler
12177# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12178# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12179# This bug is HP SR number 8606223364.
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12181$as_echo_n "checking size of long long... " >&6; }
12182if ${ac_cv_sizeof_long_long+:} false; then :
12183  $as_echo_n "(cached) " >&6
12184else
12185  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12186
12187else
12188  if test "$ac_cv_type_long_long" = yes; then
12189     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12191as_fn_error 77 "cannot compute sizeof (long long)
12192See \`config.log' for more details" "$LINENO" 5; }
12193   else
12194     ac_cv_sizeof_long_long=0
12195   fi
12196fi
12197
12198fi
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12200$as_echo "$ac_cv_sizeof_long_long" >&6; }
12201
12202
12203
12204cat >>confdefs.h <<_ACEOF
12205#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12206_ACEOF
12207
12208
12209  # The cast to long int works around a bug in the HP C Compiler
12210# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12211# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12212# This bug is HP SR number 8606223364.
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12214$as_echo_n "checking size of long... " >&6; }
12215if ${ac_cv_sizeof_long+:} false; then :
12216  $as_echo_n "(cached) " >&6
12217else
12218  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12219
12220else
12221  if test "$ac_cv_type_long" = yes; then
12222     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12224as_fn_error 77 "cannot compute sizeof (long)
12225See \`config.log' for more details" "$LINENO" 5; }
12226   else
12227     ac_cv_sizeof_long=0
12228   fi
12229fi
12230
12231fi
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12233$as_echo "$ac_cv_sizeof_long" >&6; }
12234
12235
12236
12237cat >>confdefs.h <<_ACEOF
12238#define SIZEOF_LONG $ac_cv_sizeof_long
12239_ACEOF
12240
12241
12242  # The cast to long int works around a bug in the HP C Compiler
12243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12245# This bug is HP SR number 8606223364.
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12247$as_echo_n "checking size of int... " >&6; }
12248if ${ac_cv_sizeof_int+:} false; then :
12249  $as_echo_n "(cached) " >&6
12250else
12251  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12252
12253else
12254  if test "$ac_cv_type_int" = yes; then
12255     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12257as_fn_error 77 "cannot compute sizeof (int)
12258See \`config.log' for more details" "$LINENO" 5; }
12259   else
12260     ac_cv_sizeof_int=0
12261   fi
12262fi
12263
12264fi
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12266$as_echo "$ac_cv_sizeof_int" >&6; }
12267
12268
12269
12270cat >>confdefs.h <<_ACEOF
12271#define SIZEOF_INT $ac_cv_sizeof_int
12272_ACEOF
12273
12274
12275  if test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long;then
12276
12277$as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
12278
12279  elif test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long_long;then
12280
12281$as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long long)" >>confdefs.h
12282
12283   else
12284      $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
12285
12286   fi
12287
12288
12289
12290  GNULIB_ACCESS=0;
12291  GNULIB_CHDIR=0;
12292  GNULIB_CHOWN=0;
12293  GNULIB_CLOSE=0;
12294  GNULIB_COPY_FILE_RANGE=0;
12295  GNULIB_DUP=0;
12296  GNULIB_DUP2=0;
12297  GNULIB_DUP3=0;
12298  GNULIB_ENVIRON=0;
12299  GNULIB_EUIDACCESS=0;
12300  GNULIB_FACCESSAT=0;
12301  GNULIB_FCHDIR=0;
12302  GNULIB_FCHOWNAT=0;
12303  GNULIB_FDATASYNC=0;
12304  GNULIB_FSYNC=0;
12305  GNULIB_FTRUNCATE=0;
12306  GNULIB_GETCWD=0;
12307  GNULIB_GETDOMAINNAME=0;
12308  GNULIB_GETDTABLESIZE=0;
12309  GNULIB_GETENTROPY=0;
12310  GNULIB_GETGROUPS=0;
12311  GNULIB_GETHOSTNAME=0;
12312  GNULIB_GETLOGIN=0;
12313  GNULIB_GETLOGIN_R=0;
12314  GNULIB_GETOPT_POSIX=0;
12315  GNULIB_GETPAGESIZE=0;
12316  GNULIB_GETPASS=0;
12317  GNULIB_GETRANDOM=0;
12318  GNULIB_GETUSERSHELL=0;
12319  GNULIB_GROUP_MEMBER=0;
12320  GNULIB_ISATTY=0;
12321  GNULIB_LCHOWN=0;
12322  GNULIB_LINK=0;
12323  GNULIB_LINKAT=0;
12324  GNULIB_LSEEK=0;
12325  GNULIB_PIPE=0;
12326  GNULIB_PIPE2=0;
12327  GNULIB_PREAD=0;
12328  GNULIB_PWRITE=0;
12329  GNULIB_READ=0;
12330  GNULIB_READLINK=0;
12331  GNULIB_READLINKAT=0;
12332  GNULIB_RMDIR=0;
12333  GNULIB_SETHOSTNAME=0;
12334  GNULIB_SLEEP=0;
12335  GNULIB_SYMLINK=0;
12336  GNULIB_SYMLINKAT=0;
12337  GNULIB_TRUNCATE=0;
12338  GNULIB_TTYNAME_R=0;
12339  GNULIB_UNISTD_H_NONBLOCKING=0;
12340  GNULIB_UNISTD_H_SIGPIPE=0;
12341  GNULIB_UNLINK=0;
12342  GNULIB_UNLINKAT=0;
12343  GNULIB_USLEEP=0;
12344  GNULIB_WRITE=0;
12345    HAVE_CHOWN=1;
12346  HAVE_COPY_FILE_RANGE=1;
12347  HAVE_DUP2=1;
12348  HAVE_DUP3=1;
12349  HAVE_EUIDACCESS=1;
12350  HAVE_FACCESSAT=1;
12351  HAVE_FCHDIR=1;
12352  HAVE_FCHOWNAT=1;
12353  HAVE_FDATASYNC=1;
12354  HAVE_FSYNC=1;
12355  HAVE_FTRUNCATE=1;
12356  HAVE_GETDTABLESIZE=1;
12357  HAVE_GETENTROPY=1;
12358  HAVE_GETGROUPS=1;
12359  HAVE_GETHOSTNAME=1;
12360  HAVE_GETLOGIN=1;
12361  HAVE_GETPAGESIZE=1;
12362  HAVE_GETPASS=1;
12363  HAVE_GETRANDOM=1;
12364  HAVE_GROUP_MEMBER=1;
12365  HAVE_LCHOWN=1;
12366  HAVE_LINK=1;
12367  HAVE_LINKAT=1;
12368  HAVE_PIPE=1;
12369  HAVE_PIPE2=1;
12370  HAVE_PREAD=1;
12371  HAVE_PWRITE=1;
12372  HAVE_READLINK=1;
12373  HAVE_READLINKAT=1;
12374  HAVE_SETHOSTNAME=1;
12375  HAVE_SLEEP=1;
12376  HAVE_SYMLINK=1;
12377  HAVE_SYMLINKAT=1;
12378  HAVE_UNLINKAT=1;
12379  HAVE_USLEEP=1;
12380  HAVE_DECL_ENVIRON=1;
12381  HAVE_DECL_FCHDIR=1;
12382  HAVE_DECL_FDATASYNC=1;
12383  HAVE_DECL_GETDOMAINNAME=1;
12384  HAVE_DECL_GETLOGIN=1;
12385  HAVE_DECL_GETLOGIN_R=1;
12386  HAVE_DECL_GETPAGESIZE=1;
12387  HAVE_DECL_GETUSERSHELL=1;
12388  HAVE_DECL_SETHOSTNAME=1;
12389  HAVE_DECL_TRUNCATE=1;
12390  HAVE_DECL_TTYNAME_R=1;
12391  HAVE_OS_H=0;
12392  HAVE_SYS_PARAM_H=0;
12393  REPLACE_ACCESS=0;
12394  REPLACE_CHOWN=0;
12395  REPLACE_CLOSE=0;
12396  REPLACE_DUP=0;
12397  REPLACE_DUP2=0;
12398  REPLACE_FACCESSAT=0;
12399  REPLACE_FCHOWNAT=0;
12400  REPLACE_FTRUNCATE=0;
12401  REPLACE_GETCWD=0;
12402  REPLACE_GETDOMAINNAME=0;
12403  REPLACE_GETDTABLESIZE=0;
12404  REPLACE_GETLOGIN_R=0;
12405  REPLACE_GETGROUPS=0;
12406  REPLACE_GETPAGESIZE=0;
12407  REPLACE_GETPASS=0;
12408  REPLACE_ISATTY=0;
12409  REPLACE_LCHOWN=0;
12410  REPLACE_LINK=0;
12411  REPLACE_LINKAT=0;
12412  REPLACE_LSEEK=0;
12413  REPLACE_PREAD=0;
12414  REPLACE_PWRITE=0;
12415  REPLACE_READ=0;
12416  REPLACE_READLINK=0;
12417  REPLACE_READLINKAT=0;
12418  REPLACE_RMDIR=0;
12419  REPLACE_SLEEP=0;
12420  REPLACE_SYMLINK=0;
12421  REPLACE_SYMLINKAT=0;
12422  REPLACE_TRUNCATE=0;
12423  REPLACE_TTYNAME_R=0;
12424  REPLACE_UNLINK=0;
12425  REPLACE_UNLINKAT=0;
12426  REPLACE_USLEEP=0;
12427  REPLACE_WRITE=0;
12428  UNISTD_H_HAVE_WINSOCK2_H=0;
12429  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
12430
12431
12432
12433  GNULIB_IOCTL=0;
12434    SYS_IOCTL_H_HAVE_WINSOCK2_H=0;
12435  SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
12436
12437  REPLACE_IOCTL=0;
12438
12439
12440
12441
12442  for ac_header in $ac_header_list
12443do :
12444  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12445ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12446"
12447if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12448  cat >>confdefs.h <<_ACEOF
12449#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12450_ACEOF
12451
12452fi
12453
12454done
12455
12456
12457
12458
12459
12460
12461
12462
12463  if test $ac_cv_header_sys_socket_h != yes; then
12464                    for ac_header in winsock2.h
12465do :
12466  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12467if test "x$ac_cv_header_winsock2_h" = xyes; then :
12468  cat >>confdefs.h <<_ACEOF
12469#define HAVE_WINSOCK2_H 1
12470_ACEOF
12471
12472fi
12473
12474done
12475
12476  fi
12477  if test "$ac_cv_header_winsock2_h" = yes; then
12478    HAVE_WINSOCK2_H=1
12479    UNISTD_H_HAVE_WINSOCK2_H=1
12480    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
12481  else
12482    HAVE_WINSOCK2_H=0
12483  fi
12484
12485   LIBSOCKET=
12486  if test $HAVE_WINSOCK2_H = 1; then
12487        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
12488$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
12489if ${gl_cv_func_wsastartup+:} false; then :
12490  $as_echo_n "(cached) " >&6
12491else
12492
12493      gl_save_LIBS="$LIBS"
12494      LIBS="$LIBS -lws2_32"
12495      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496/* end confdefs.h.  */
12497
12498#ifdef HAVE_WINSOCK2_H
12499# include <winsock2.h>
12500#endif
12501int
12502main ()
12503{
12504
12505          WORD wVersionRequested = MAKEWORD(1, 1);
12506          WSADATA wsaData;
12507          int err = WSAStartup(wVersionRequested, &wsaData);
12508          WSACleanup ();
12509  ;
12510  return 0;
12511}
12512_ACEOF
12513if ac_fn_c_try_link "$LINENO"; then :
12514  gl_cv_func_wsastartup=yes
12515else
12516  gl_cv_func_wsastartup=no
12517fi
12518rm -f core conftest.err conftest.$ac_objext \
12519    conftest$ac_exeext conftest.$ac_ext
12520      LIBS="$gl_save_LIBS"
12521
12522fi
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
12524$as_echo "$gl_cv_func_wsastartup" >&6; }
12525    if test "$gl_cv_func_wsastartup" = "yes"; then
12526
12527$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
12528
12529      LIBSOCKET='-lws2_32'
12530    fi
12531  else
12532                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
12533$as_echo_n "checking for library containing setsockopt... " >&6; }
12534if ${gl_cv_lib_socket+:} false; then :
12535  $as_echo_n "(cached) " >&6
12536else
12537
12538      gl_cv_lib_socket=
12539      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540/* end confdefs.h.  */
12541extern
12542#ifdef __cplusplus
12543"C"
12544#endif
12545char setsockopt();
12546int
12547main ()
12548{
12549setsockopt();
12550  ;
12551  return 0;
12552}
12553_ACEOF
12554if ac_fn_c_try_link "$LINENO"; then :
12555
12556else
12557  gl_save_LIBS="$LIBS"
12558         LIBS="$gl_save_LIBS -lsocket"
12559         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560/* end confdefs.h.  */
12561extern
12562#ifdef __cplusplus
12563"C"
12564#endif
12565char setsockopt();
12566int
12567main ()
12568{
12569setsockopt();
12570  ;
12571  return 0;
12572}
12573_ACEOF
12574if ac_fn_c_try_link "$LINENO"; then :
12575  gl_cv_lib_socket="-lsocket"
12576fi
12577rm -f core conftest.err conftest.$ac_objext \
12578    conftest$ac_exeext conftest.$ac_ext
12579         if test -z "$gl_cv_lib_socket"; then
12580           LIBS="$gl_save_LIBS -lnetwork"
12581           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582/* end confdefs.h.  */
12583extern
12584#ifdef __cplusplus
12585"C"
12586#endif
12587char setsockopt();
12588int
12589main ()
12590{
12591setsockopt();
12592  ;
12593  return 0;
12594}
12595_ACEOF
12596if ac_fn_c_try_link "$LINENO"; then :
12597  gl_cv_lib_socket="-lnetwork"
12598fi
12599rm -f core conftest.err conftest.$ac_objext \
12600    conftest$ac_exeext conftest.$ac_ext
12601           if test -z "$gl_cv_lib_socket"; then
12602             LIBS="$gl_save_LIBS -lnet"
12603             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604/* end confdefs.h.  */
12605extern
12606#ifdef __cplusplus
12607"C"
12608#endif
12609char setsockopt();
12610int
12611main ()
12612{
12613setsockopt();
12614  ;
12615  return 0;
12616}
12617_ACEOF
12618if ac_fn_c_try_link "$LINENO"; then :
12619  gl_cv_lib_socket="-lnet"
12620fi
12621rm -f core conftest.err conftest.$ac_objext \
12622    conftest$ac_exeext conftest.$ac_ext
12623           fi
12624         fi
12625         LIBS="$gl_save_LIBS"
12626
12627fi
12628rm -f core conftest.err conftest.$ac_objext \
12629    conftest$ac_exeext conftest.$ac_ext
12630      if test -z "$gl_cv_lib_socket"; then
12631        gl_cv_lib_socket="none needed"
12632      fi
12633
12634fi
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
12636$as_echo "$gl_cv_lib_socket" >&6; }
12637    if test "$gl_cv_lib_socket" != "none needed"; then
12638      LIBSOCKET="$gl_cv_lib_socket"
12639    fi
12640  fi
12641
12642
12643
12644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
12645$as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
12646  # Check whether --enable-openssl-compatibility was given.
12647if test "${enable_openssl_compatibility+set}" = set; then :
12648  enableval=$enable_openssl_compatibility; enable_openssl=$enableval
12649else
12650  enable_openssl=no
12651fi
12652
12653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
12654$as_echo "$enable_openssl" >&6; }
12655   if test "$enable_openssl" = "yes"; then
12656  ENABLE_OPENSSL_TRUE=
12657  ENABLE_OPENSSL_FALSE='#'
12658else
12659  ENABLE_OPENSSL_TRUE='#'
12660  ENABLE_OPENSSL_FALSE=
12661fi
12662
12663
12664  # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
12665
12666
12667
12668
12669  :
12670
12671
12672
12673
12674# Check whether --enable-tests was given.
12675if test "${enable_tests+set}" = set; then :
12676  enableval=$enable_tests; enable_tests=$enableval
12677else
12678  enable_tests=$enable_tools
12679fi
12680
12681 if test "$enable_tests" != "no"; then
12682  ENABLE_TESTS_TRUE=
12683  ENABLE_TESTS_FALSE='#'
12684else
12685  ENABLE_TESTS_TRUE='#'
12686  ENABLE_TESTS_FALSE=
12687fi
12688
12689
12690# Check whether --enable-fuzzer-target was given.
12691if test "${enable_fuzzer_target+set}" = set; then :
12692  enableval=$enable_fuzzer_target; enable_fuzzer_target=$enableval
12693else
12694  enable_fuzzer_target=no
12695fi
12696
12697if test "$enable_fuzzer_target" != "no";then
12698
12699$as_echo "#define FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION 1" >>confdefs.h
12700
12701fi
12702
12703
12704
12705
12706
12707  gtk_doc_requires="gtk-doc >= 1.14"
12708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
12709$as_echo_n "checking for gtk-doc... " >&6; }
12710  if test -n "$PKG_CONFIG" && \
12711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
12712  ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
12713  ac_status=$?
12714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12715  test $ac_status = 0; }; then
12716  have_gtk_doc=yes
12717else
12718  have_gtk_doc=no
12719fi
12720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
12721$as_echo "$have_gtk_doc" >&6; }
12722
12723  if test "$have_gtk_doc" = "no"; then
12724      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12725  You will not be able to create source packages with 'make dist'
12726  because $gtk_doc_requires is not found." >&5
12727$as_echo "$as_me: WARNING:
12728  You will not be able to create source packages with 'make dist'
12729  because $gtk_doc_requires is not found." >&2;}
12730  fi
12731
12732            # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12733set dummy gtkdoc-check; ac_word=$2
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735$as_echo_n "checking for $ac_word... " >&6; }
12736if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
12737  $as_echo_n "(cached) " >&6
12738else
12739  if test -n "$GTKDOC_CHECK"; then
12740  ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
12741else
12742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743for as_dir in $PATH
12744do
12745  IFS=$as_save_IFS
12746  test -z "$as_dir" && as_dir=.
12747    for ac_exec_ext in '' $ac_executable_extensions; do
12748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12749    ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
12750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751    break 2
12752  fi
12753done
12754  done
12755IFS=$as_save_IFS
12756
12757fi
12758fi
12759GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
12760if test -n "$GTKDOC_CHECK"; then
12761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12762$as_echo "$GTKDOC_CHECK" >&6; }
12763else
12764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765$as_echo "no" >&6; }
12766fi
12767
12768
12769  # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12770set dummy gtkdoc-check; ac_word=$2
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772$as_echo_n "checking for $ac_word... " >&6; }
12773if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
12774  $as_echo_n "(cached) " >&6
12775else
12776  case $GTKDOC_CHECK_PATH in
12777  [\\/]* | ?:[\\/]*)
12778  ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
12779  ;;
12780  *)
12781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784  IFS=$as_save_IFS
12785  test -z "$as_dir" && as_dir=.
12786    for ac_exec_ext in '' $ac_executable_extensions; do
12787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12788    ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
12789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790    break 2
12791  fi
12792done
12793  done
12794IFS=$as_save_IFS
12795
12796  ;;
12797esac
12798fi
12799GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
12800if test -n "$GTKDOC_CHECK_PATH"; then
12801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
12802$as_echo "$GTKDOC_CHECK_PATH" >&6; }
12803else
12804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
12806fi
12807
12808
12809  for ac_prog in gtkdoc-rebase
12810do
12811  # Extract the first word of "$ac_prog", so it can be a program name with args.
12812set dummy $ac_prog; ac_word=$2
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
12815if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12816  $as_echo_n "(cached) " >&6
12817else
12818  case $GTKDOC_REBASE in
12819  [\\/]* | ?:[\\/]*)
12820  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12821  ;;
12822  *)
12823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824for as_dir in $PATH
12825do
12826  IFS=$as_save_IFS
12827  test -z "$as_dir" && as_dir=.
12828    for ac_exec_ext in '' $ac_executable_extensions; do
12829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12830    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832    break 2
12833  fi
12834done
12835  done
12836IFS=$as_save_IFS
12837
12838  ;;
12839esac
12840fi
12841GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12842if test -n "$GTKDOC_REBASE"; then
12843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12844$as_echo "$GTKDOC_REBASE" >&6; }
12845else
12846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
12848fi
12849
12850
12851  test -n "$GTKDOC_REBASE" && break
12852done
12853test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12854
12855  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12856set dummy gtkdoc-mkpdf; ac_word=$2
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858$as_echo_n "checking for $ac_word... " >&6; }
12859if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12860  $as_echo_n "(cached) " >&6
12861else
12862  case $GTKDOC_MKPDF in
12863  [\\/]* | ?:[\\/]*)
12864  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12865  ;;
12866  *)
12867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868for as_dir in $PATH
12869do
12870  IFS=$as_save_IFS
12871  test -z "$as_dir" && as_dir=.
12872    for ac_exec_ext in '' $ac_executable_extensions; do
12873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876    break 2
12877  fi
12878done
12879  done
12880IFS=$as_save_IFS
12881
12882  ;;
12883esac
12884fi
12885GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12886if test -n "$GTKDOC_MKPDF"; then
12887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12888$as_echo "$GTKDOC_MKPDF" >&6; }
12889else
12890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891$as_echo "no" >&6; }
12892fi
12893
12894
12895
12896
12897# Check whether --with-html-dir was given.
12898if test "${with_html_dir+set}" = set; then :
12899  withval=$with_html_dir;
12900else
12901  with_html_dir='${datadir}/gtk-doc/html'
12902fi
12903
12904  HTML_DIR="$with_html_dir"
12905
12906
12907    # Check whether --enable-gtk-doc was given.
12908if test "${enable_gtk_doc+set}" = set; then :
12909  enableval=$enable_gtk_doc;
12910else
12911  enable_gtk_doc=no
12912fi
12913
12914
12915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12916$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12918$as_echo "$enable_gtk_doc" >&6; }
12919
12920  if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
12921    as_fn_error $? "
12922  You must have $gtk_doc_requires installed to build documentation for
12923  $PACKAGE_NAME. Please install gtk-doc or disable building the
12924  documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
12925  fi
12926
12927    if test "x$PACKAGE_NAME" != "xglib"; then
12928
12929pkg_failed=no
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
12931$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
12932
12933if test -n "$GTKDOC_DEPS_CFLAGS"; then
12934    pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
12935 elif test -n "$PKG_CONFIG"; then
12936    if test -n "$PKG_CONFIG" && \
12937    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
12938  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12939  ac_status=$?
12940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12941  test $ac_status = 0; }; then
12942  pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12943		      test "x$?" != "x0" && pkg_failed=yes
12944else
12945  pkg_failed=yes
12946fi
12947 else
12948    pkg_failed=untried
12949fi
12950if test -n "$GTKDOC_DEPS_LIBS"; then
12951    pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
12952 elif test -n "$PKG_CONFIG"; then
12953    if test -n "$PKG_CONFIG" && \
12954    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
12955  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12956  ac_status=$?
12957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12958  test $ac_status = 0; }; then
12959  pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12960		      test "x$?" != "x0" && pkg_failed=yes
12961else
12962  pkg_failed=yes
12963fi
12964 else
12965    pkg_failed=untried
12966fi
12967
12968
12969
12970if test $pkg_failed = yes; then
12971   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972$as_echo "no" >&6; }
12973
12974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12975        _pkg_short_errors_supported=yes
12976else
12977        _pkg_short_errors_supported=no
12978fi
12979        if test $_pkg_short_errors_supported = yes; then
12980	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12981        else
12982	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12983        fi
12984	# Put the nasty error message in config.log where it belongs
12985	echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12986
12987	:
12988elif test $pkg_failed = untried; then
12989     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990$as_echo "no" >&6; }
12991	:
12992else
12993	GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
12994	GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
12995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12996$as_echo "yes" >&6; }
12997
12998fi
12999  fi
13000
13001    # Check whether --enable-gtk-doc-html was given.
13002if test "${enable_gtk_doc_html+set}" = set; then :
13003  enableval=$enable_gtk_doc_html;
13004else
13005  enable_gtk_doc_html=yes
13006fi
13007
13008    # Check whether --enable-gtk-doc-pdf was given.
13009if test "${enable_gtk_doc_pdf+set}" = set; then :
13010  enableval=$enable_gtk_doc_pdf;
13011else
13012  enable_gtk_doc_pdf=no
13013fi
13014
13015
13016  if test -z "$GTKDOC_MKPDF"; then
13017    enable_gtk_doc_pdf=no
13018  fi
13019
13020  if test -z "$AM_DEFAULT_VERBOSITY"; then
13021    AM_DEFAULT_VERBOSITY=1
13022  fi
13023
13024
13025   if test x$have_gtk_doc = xyes; then
13026  HAVE_GTK_DOC_TRUE=
13027  HAVE_GTK_DOC_FALSE='#'
13028else
13029  HAVE_GTK_DOC_TRUE='#'
13030  HAVE_GTK_DOC_FALSE=
13031fi
13032
13033   if test x$enable_gtk_doc = xyes; then
13034  ENABLE_GTK_DOC_TRUE=
13035  ENABLE_GTK_DOC_FALSE='#'
13036else
13037  ENABLE_GTK_DOC_TRUE='#'
13038  ENABLE_GTK_DOC_FALSE=
13039fi
13040
13041   if test x$enable_gtk_doc_html = xyes; then
13042  GTK_DOC_BUILD_HTML_TRUE=
13043  GTK_DOC_BUILD_HTML_FALSE='#'
13044else
13045  GTK_DOC_BUILD_HTML_TRUE='#'
13046  GTK_DOC_BUILD_HTML_FALSE=
13047fi
13048
13049   if test x$enable_gtk_doc_pdf = xyes; then
13050  GTK_DOC_BUILD_PDF_TRUE=
13051  GTK_DOC_BUILD_PDF_FALSE='#'
13052else
13053  GTK_DOC_BUILD_PDF_TRUE='#'
13054  GTK_DOC_BUILD_PDF_FALSE=
13055fi
13056
13057   if test -n "$LIBTOOL"; then
13058  GTK_DOC_USE_LIBTOOL_TRUE=
13059  GTK_DOC_USE_LIBTOOL_FALSE='#'
13060else
13061  GTK_DOC_USE_LIBTOOL_TRUE='#'
13062  GTK_DOC_USE_LIBTOOL_FALSE=
13063fi
13064
13065   if test -n "$GTKDOC_REBASE"; then
13066  GTK_DOC_USE_REBASE_TRUE=
13067  GTK_DOC_USE_REBASE_FALSE='#'
13068else
13069  GTK_DOC_USE_REBASE_TRUE='#'
13070  GTK_DOC_USE_REBASE_FALSE=
13071fi
13072
13073
13074
13075# needed for some older versions of gtk-doc
13076
13077 if false; then
13078  GTK_DOC_USE_LIBTOOL_TRUE=
13079  GTK_DOC_USE_LIBTOOL_FALSE='#'
13080else
13081  GTK_DOC_USE_LIBTOOL_TRUE='#'
13082  GTK_DOC_USE_LIBTOOL_FALSE=
13083fi
13084
13085
13086
13087
13088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13089$as_echo_n "checking whether NLS is requested... " >&6; }
13090    # Check whether --enable-nls was given.
13091if test "${enable_nls+set}" = set; then :
13092  enableval=$enable_nls; USE_NLS=$enableval
13093else
13094  USE_NLS=yes
13095fi
13096
13097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13098$as_echo "$USE_NLS" >&6; }
13099
13100
13101
13102
13103      GETTEXT_MACRO_VERSION=0.20
13104
13105
13106
13107
13108# Prepare PATH_SEPARATOR.
13109# The user is always right.
13110if test "${PATH_SEPARATOR+set}" != set; then
13111  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13112  # contains only /bin. Note that ksh looks also at the FPATH variable,
13113  # so we have to set that as well for the test.
13114  PATH_SEPARATOR=:
13115  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13116    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13117           || PATH_SEPARATOR=';'
13118       }
13119fi
13120
13121# Find out how to test for executable files. Don't use a zero-byte file,
13122# as systems may use methods other than mode bits to determine executability.
13123cat >conf$$.file <<_ASEOF
13124#! /bin/sh
13125exit 0
13126_ASEOF
13127chmod +x conf$$.file
13128if test -x conf$$.file >/dev/null 2>&1; then
13129  ac_executable_p="test -x"
13130else
13131  ac_executable_p="test -f"
13132fi
13133rm -f conf$$.file
13134
13135# Extract the first word of "msgfmt", so it can be a program name with args.
13136set dummy msgfmt; ac_word=$2
13137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138$as_echo_n "checking for $ac_word... " >&6; }
13139if ${ac_cv_path_MSGFMT+:} false; then :
13140  $as_echo_n "(cached) " >&6
13141else
13142  case "$MSGFMT" in
13143  [\\/]* | ?:[\\/]*)
13144    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13145    ;;
13146  *)
13147    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13148    for ac_dir in $PATH; do
13149      IFS="$ac_save_IFS"
13150      test -z "$ac_dir" && ac_dir=.
13151      for ac_exec_ext in '' $ac_executable_extensions; do
13152        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13153          echo "$as_me: trying $ac_dir/$ac_word..." >&5
13154          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13155     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13156            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13157            break 2
13158          fi
13159        fi
13160      done
13161    done
13162    IFS="$ac_save_IFS"
13163  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13164    ;;
13165esac
13166fi
13167MSGFMT="$ac_cv_path_MSGFMT"
13168if test "$MSGFMT" != ":"; then
13169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13170$as_echo "$MSGFMT" >&6; }
13171else
13172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173$as_echo "no" >&6; }
13174fi
13175
13176  # Extract the first word of "gmsgfmt", so it can be a program name with args.
13177set dummy gmsgfmt; ac_word=$2
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179$as_echo_n "checking for $ac_word... " >&6; }
13180if ${ac_cv_path_GMSGFMT+:} false; then :
13181  $as_echo_n "(cached) " >&6
13182else
13183  case $GMSGFMT in
13184  [\\/]* | ?:[\\/]*)
13185  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13186  ;;
13187  *)
13188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189for as_dir in $PATH
13190do
13191  IFS=$as_save_IFS
13192  test -z "$as_dir" && as_dir=.
13193    for ac_exec_ext in '' $ac_executable_extensions; do
13194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197    break 2
13198  fi
13199done
13200  done
13201IFS=$as_save_IFS
13202
13203  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13204  ;;
13205esac
13206fi
13207GMSGFMT=$ac_cv_path_GMSGFMT
13208if test -n "$GMSGFMT"; then
13209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13210$as_echo "$GMSGFMT" >&6; }
13211else
13212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213$as_echo "no" >&6; }
13214fi
13215
13216
13217
13218    case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13219    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13220    *) GMSGFMT_015=$GMSGFMT ;;
13221  esac
13222
13223
13224
13225# Prepare PATH_SEPARATOR.
13226# The user is always right.
13227if test "${PATH_SEPARATOR+set}" != set; then
13228  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13229  # contains only /bin. Note that ksh looks also at the FPATH variable,
13230  # so we have to set that as well for the test.
13231  PATH_SEPARATOR=:
13232  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13233    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13234           || PATH_SEPARATOR=';'
13235       }
13236fi
13237
13238# Find out how to test for executable files. Don't use a zero-byte file,
13239# as systems may use methods other than mode bits to determine executability.
13240cat >conf$$.file <<_ASEOF
13241#! /bin/sh
13242exit 0
13243_ASEOF
13244chmod +x conf$$.file
13245if test -x conf$$.file >/dev/null 2>&1; then
13246  ac_executable_p="test -x"
13247else
13248  ac_executable_p="test -f"
13249fi
13250rm -f conf$$.file
13251
13252# Extract the first word of "xgettext", so it can be a program name with args.
13253set dummy xgettext; ac_word=$2
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255$as_echo_n "checking for $ac_word... " >&6; }
13256if ${ac_cv_path_XGETTEXT+:} false; then :
13257  $as_echo_n "(cached) " >&6
13258else
13259  case "$XGETTEXT" in
13260  [\\/]* | ?:[\\/]*)
13261    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13262    ;;
13263  *)
13264    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13265    for ac_dir in $PATH; do
13266      IFS="$ac_save_IFS"
13267      test -z "$ac_dir" && ac_dir=.
13268      for ac_exec_ext in '' $ac_executable_extensions; do
13269        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13270          echo "$as_me: trying $ac_dir/$ac_word..." >&5
13271          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13272     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13273            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13274            break 2
13275          fi
13276        fi
13277      done
13278    done
13279    IFS="$ac_save_IFS"
13280  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13281    ;;
13282esac
13283fi
13284XGETTEXT="$ac_cv_path_XGETTEXT"
13285if test "$XGETTEXT" != ":"; then
13286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13287$as_echo "$XGETTEXT" >&6; }
13288else
13289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290$as_echo "no" >&6; }
13291fi
13292
13293    rm -f messages.po
13294
13295    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13296    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13297    *) XGETTEXT_015=$XGETTEXT ;;
13298  esac
13299
13300
13301
13302# Prepare PATH_SEPARATOR.
13303# The user is always right.
13304if test "${PATH_SEPARATOR+set}" != set; then
13305  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13306  # contains only /bin. Note that ksh looks also at the FPATH variable,
13307  # so we have to set that as well for the test.
13308  PATH_SEPARATOR=:
13309  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13310    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13311           || PATH_SEPARATOR=';'
13312       }
13313fi
13314
13315# Find out how to test for executable files. Don't use a zero-byte file,
13316# as systems may use methods other than mode bits to determine executability.
13317cat >conf$$.file <<_ASEOF
13318#! /bin/sh
13319exit 0
13320_ASEOF
13321chmod +x conf$$.file
13322if test -x conf$$.file >/dev/null 2>&1; then
13323  ac_executable_p="test -x"
13324else
13325  ac_executable_p="test -f"
13326fi
13327rm -f conf$$.file
13328
13329# Extract the first word of "msgmerge", so it can be a program name with args.
13330set dummy msgmerge; ac_word=$2
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13332$as_echo_n "checking for $ac_word... " >&6; }
13333if ${ac_cv_path_MSGMERGE+:} false; then :
13334  $as_echo_n "(cached) " >&6
13335else
13336  case "$MSGMERGE" in
13337  [\\/]* | ?:[\\/]*)
13338    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13339    ;;
13340  *)
13341    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13342    for ac_dir in $PATH; do
13343      IFS="$ac_save_IFS"
13344      test -z "$ac_dir" && ac_dir=.
13345      for ac_exec_ext in '' $ac_executable_extensions; do
13346        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13347          echo "$as_me: trying $ac_dir/$ac_word..." >&5
13348          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13349            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13350            break 2
13351          fi
13352        fi
13353      done
13354    done
13355    IFS="$ac_save_IFS"
13356  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13357    ;;
13358esac
13359fi
13360MSGMERGE="$ac_cv_path_MSGMERGE"
13361if test "$MSGMERGE" != ":"; then
13362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13363$as_echo "$MSGMERGE" >&6; }
13364else
13365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366$as_echo "no" >&6; }
13367fi
13368
13369
13370    if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
13371    MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
13372  else
13373        if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
13374      MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
13375    else
13376                        MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
13377    fi
13378  fi
13379
13380
13381    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13382
13383
13384  ac_config_commands="$ac_config_commands po-directories"
13385
13386
13387
13388      if test "X$prefix" = "XNONE"; then
13389    acl_final_prefix="$ac_default_prefix"
13390  else
13391    acl_final_prefix="$prefix"
13392  fi
13393  if test "X$exec_prefix" = "XNONE"; then
13394    acl_final_exec_prefix='${prefix}'
13395  else
13396    acl_final_exec_prefix="$exec_prefix"
13397  fi
13398  acl_save_prefix="$prefix"
13399  prefix="$acl_final_prefix"
13400  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13401  prefix="$acl_save_prefix"
13402
13403
13404
13405# Check whether --with-gnu-ld was given.
13406if test "${with_gnu_ld+set}" = set; then :
13407  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13408else
13409  with_gnu_ld=no
13410fi
13411
13412# Prepare PATH_SEPARATOR.
13413# The user is always right.
13414if test "${PATH_SEPARATOR+set}" != set; then
13415  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13416  # contains only /bin. Note that ksh looks also at the FPATH variable,
13417  # so we have to set that as well for the test.
13418  PATH_SEPARATOR=:
13419  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13420    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13421           || PATH_SEPARATOR=';'
13422       }
13423fi
13424
13425if test -n "$LD"; then
13426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
13427$as_echo_n "checking for ld... " >&6; }
13428elif test "$GCC" = yes; then
13429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13430$as_echo_n "checking for ld used by $CC... " >&6; }
13431elif test "$with_gnu_ld" = yes; then
13432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13433$as_echo_n "checking for GNU ld... " >&6; }
13434else
13435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13436$as_echo_n "checking for non-GNU ld... " >&6; }
13437fi
13438if test -n "$LD"; then
13439  # Let the user override the test with a path.
13440  :
13441else
13442  if ${acl_cv_path_LD+:} false; then :
13443  $as_echo_n "(cached) " >&6
13444else
13445
13446    acl_cv_path_LD= # Final result of this test
13447    ac_prog=ld # Program to search in $PATH
13448    if test "$GCC" = yes; then
13449      # Check if gcc -print-prog-name=ld gives a path.
13450      case $host in
13451        *-*-mingw*)
13452          # gcc leaves a trailing carriage return which upsets mingw
13453          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13454        *)
13455          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
13456      esac
13457      case $acl_output in
13458        # Accept absolute paths.
13459        [\\/]* | ?:[\\/]*)
13460          re_direlt='/[^/][^/]*/\.\./'
13461          # Canonicalize the pathname of ld
13462          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
13463          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
13464            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
13465          done
13466          # Got the pathname. No search in PATH is needed.
13467          acl_cv_path_LD="$acl_output"
13468          ac_prog=
13469          ;;
13470        "")
13471          # If it fails, then pretend we aren't using GCC.
13472          ;;
13473        *)
13474          # If it is relative, then search for the first ld in PATH.
13475          with_gnu_ld=unknown
13476          ;;
13477      esac
13478    fi
13479    if test -n "$ac_prog"; then
13480      # Search for $ac_prog in $PATH.
13481      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13482      for ac_dir in $PATH; do
13483        IFS="$acl_save_ifs"
13484        test -z "$ac_dir" && ac_dir=.
13485        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13486          acl_cv_path_LD="$ac_dir/$ac_prog"
13487          # Check to see if the program is GNU ld.  I'd rather use --version,
13488          # but apparently some variants of GNU ld only accept -v.
13489          # Break only if it was the GNU/non-GNU ld that we prefer.
13490          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13491            *GNU* | *'with BFD'*)
13492              test "$with_gnu_ld" != no && break
13493              ;;
13494            *)
13495              test "$with_gnu_ld" != yes && break
13496              ;;
13497          esac
13498        fi
13499      done
13500      IFS="$acl_save_ifs"
13501    fi
13502    case $host in
13503      *-*-aix*)
13504        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505/* end confdefs.h.  */
13506#if defined __powerpc64__ || defined _ARCH_PPC64
13507                int ok;
13508               #else
13509                error fail
13510               #endif
13511
13512_ACEOF
13513if ac_fn_c_try_compile "$LINENO"; then :
13514  # The compiler produces 64-bit code. Add option '-b64' so that the
13515           # linker groks 64-bit object files.
13516           case "$acl_cv_path_LD " in
13517             *" -b64 "*) ;;
13518             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
13519           esac
13520
13521fi
13522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523        ;;
13524      sparc64-*-netbsd*)
13525        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526/* end confdefs.h.  */
13527#if defined __sparcv9 || defined __arch64__
13528                int ok;
13529               #else
13530                error fail
13531               #endif
13532
13533_ACEOF
13534if ac_fn_c_try_compile "$LINENO"; then :
13535
13536else
13537  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
13538           # so that the linker groks 32-bit object files.
13539           case "$acl_cv_path_LD " in
13540             *" -m elf32_sparc "*) ;;
13541             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
13542           esac
13543
13544fi
13545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546        ;;
13547    esac
13548
13549fi
13550
13551  LD="$acl_cv_path_LD"
13552fi
13553if test -n "$LD"; then
13554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13555$as_echo "$LD" >&6; }
13556else
13557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558$as_echo "no" >&6; }
13559  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13560fi
13561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13562$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13563if ${acl_cv_prog_gnu_ld+:} false; then :
13564  $as_echo_n "(cached) " >&6
13565else
13566  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13567case `$LD -v 2>&1 </dev/null` in
13568*GNU* | *'with BFD'*)
13569  acl_cv_prog_gnu_ld=yes
13570  ;;
13571*)
13572  acl_cv_prog_gnu_ld=no
13573  ;;
13574esac
13575fi
13576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13577$as_echo "$acl_cv_prog_gnu_ld" >&6; }
13578with_gnu_ld=$acl_cv_prog_gnu_ld
13579
13580
13581
13582
13583                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13584$as_echo_n "checking for shared library run path origin... " >&6; }
13585if ${acl_cv_rpath+:} false; then :
13586  $as_echo_n "(cached) " >&6
13587else
13588
13589    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13590    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13591    . ./conftest.sh
13592    rm -f ./conftest.sh
13593    acl_cv_rpath=done
13594
13595fi
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13597$as_echo "$acl_cv_rpath" >&6; }
13598  wl="$acl_cv_wl"
13599  acl_libext="$acl_cv_libext"
13600  acl_shlibext="$acl_cv_shlibext"
13601  acl_libname_spec="$acl_cv_libname_spec"
13602  acl_library_names_spec="$acl_cv_library_names_spec"
13603  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13604  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13605  acl_hardcode_direct="$acl_cv_hardcode_direct"
13606  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13607    # Check whether --enable-rpath was given.
13608if test "${enable_rpath+set}" = set; then :
13609  enableval=$enable_rpath; :
13610else
13611  enable_rpath=yes
13612fi
13613
13614
13615
13616
13617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
13618$as_echo_n "checking 32-bit host C ABI... " >&6; }
13619if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
13620  $as_echo_n "(cached) " >&6
13621else
13622  if test -n "$gl_cv_host_cpu_c_abi"; then
13623       case "$gl_cv_host_cpu_c_abi" in
13624         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
13625           gl_cv_host_cpu_c_abi_32bit=yes ;;
13626         x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
13627           gl_cv_host_cpu_c_abi_32bit=no ;;
13628         *)
13629           gl_cv_host_cpu_c_abi_32bit=unknown ;;
13630       esac
13631     else
13632       case "$host_cpu" in
13633
13634         # CPUs that only support a 32-bit ABI.
13635         arc \
13636         | bfin \
13637         | cris* \
13638         | csky \
13639         | epiphany \
13640         | ft32 \
13641         | h8300 \
13642         | m68k \
13643         | microblaze | microblazeel \
13644         | nds32 | nds32le | nds32be \
13645         | nios2 | nios2eb | nios2el \
13646         | or1k* \
13647         | or32 \
13648         | sh | sh1234 | sh1234elb \
13649         | tic6x \
13650         | xtensa* )
13651           gl_cv_host_cpu_c_abi_32bit=yes
13652           ;;
13653
13654         # CPUs that only support a 64-bit ABI.
13655         alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
13656         | mmix )
13657           gl_cv_host_cpu_c_abi_32bit=no
13658           ;;
13659
13660         i[34567]86 )
13661           gl_cv_host_cpu_c_abi_32bit=yes
13662           ;;
13663
13664         x86_64 )
13665           # On x86_64 systems, the C compiler may be generating code in one of
13666           # these ABIs:
13667           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
13668           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
13669           #   with native Windows (mingw, MSVC).
13670           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
13671           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
13672           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673/* end confdefs.h.  */
13674#if (defined __x86_64__ || defined __amd64__ \
13675                       || defined _M_X64 || defined _M_AMD64) \
13676                      && !(defined __ILP32__ || defined _ILP32)
13677                   int ok;
13678                  #else
13679                   error fail
13680                  #endif
13681
13682_ACEOF
13683if ac_fn_c_try_compile "$LINENO"; then :
13684  gl_cv_host_cpu_c_abi_32bit=no
13685else
13686  gl_cv_host_cpu_c_abi_32bit=yes
13687fi
13688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689           ;;
13690
13691         arm* | aarch64 )
13692           # Assume arm with EABI.
13693           # On arm64 systems, the C compiler may be generating code in one of
13694           # these ABIs:
13695           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
13696           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
13697           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
13698           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699/* end confdefs.h.  */
13700#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
13701                   int ok;
13702                  #else
13703                   error fail
13704                  #endif
13705
13706_ACEOF
13707if ac_fn_c_try_compile "$LINENO"; then :
13708  gl_cv_host_cpu_c_abi_32bit=no
13709else
13710  gl_cv_host_cpu_c_abi_32bit=yes
13711fi
13712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13713           ;;
13714
13715         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
13716           # On hppa, the C compiler may be generating 32-bit code or 64-bit
13717           # code. In the latter case, it defines _LP64 and __LP64__.
13718           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719/* end confdefs.h.  */
13720#ifdef __LP64__
13721                   int ok;
13722                  #else
13723                   error fail
13724                  #endif
13725
13726_ACEOF
13727if ac_fn_c_try_compile "$LINENO"; then :
13728  gl_cv_host_cpu_c_abi_32bit=no
13729else
13730  gl_cv_host_cpu_c_abi_32bit=yes
13731fi
13732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733           ;;
13734
13735         ia64* )
13736           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
13737           # 32-bit code. In the latter case, it defines _ILP32.
13738           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739/* end confdefs.h.  */
13740#ifdef _ILP32
13741                   int ok;
13742                  #else
13743                   error fail
13744                  #endif
13745
13746_ACEOF
13747if ac_fn_c_try_compile "$LINENO"; then :
13748  gl_cv_host_cpu_c_abi_32bit=yes
13749else
13750  gl_cv_host_cpu_c_abi_32bit=no
13751fi
13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753           ;;
13754
13755         mips* )
13756           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
13757           # at 32.
13758           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759/* end confdefs.h.  */
13760#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
13761                   int ok;
13762                  #else
13763                   error fail
13764                  #endif
13765
13766_ACEOF
13767if ac_fn_c_try_compile "$LINENO"; then :
13768  gl_cv_host_cpu_c_abi_32bit=no
13769else
13770  gl_cv_host_cpu_c_abi_32bit=yes
13771fi
13772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773           ;;
13774
13775         powerpc* )
13776           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
13777           # No need to distinguish them here; the caller may distinguish
13778           # them based on the OS.
13779           # On powerpc64 systems, the C compiler may still be generating
13780           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
13781           # be generating 64-bit code.
13782           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783/* end confdefs.h.  */
13784#if defined __powerpc64__ || defined _ARCH_PPC64
13785                   int ok;
13786                  #else
13787                   error fail
13788                  #endif
13789
13790_ACEOF
13791if ac_fn_c_try_compile "$LINENO"; then :
13792  gl_cv_host_cpu_c_abi_32bit=no
13793else
13794  gl_cv_host_cpu_c_abi_32bit=yes
13795fi
13796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797           ;;
13798
13799         rs6000 )
13800           gl_cv_host_cpu_c_abi_32bit=yes
13801           ;;
13802
13803         riscv32 | riscv64 )
13804           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
13805           # Size of 'long' and 'void *':
13806           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807/* end confdefs.h.  */
13808#if defined __LP64__
13809                    int ok;
13810                  #else
13811                    error fail
13812                  #endif
13813
13814_ACEOF
13815if ac_fn_c_try_compile "$LINENO"; then :
13816  gl_cv_host_cpu_c_abi_32bit=no
13817else
13818  gl_cv_host_cpu_c_abi_32bit=yes
13819fi
13820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821           ;;
13822
13823         s390* )
13824           # On s390x, the C compiler may be generating 64-bit (= s390x) code
13825           # or 31-bit (= s390) code.
13826           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827/* end confdefs.h.  */
13828#if defined __LP64__ || defined __s390x__
13829                    int ok;
13830                  #else
13831                    error fail
13832                  #endif
13833
13834_ACEOF
13835if ac_fn_c_try_compile "$LINENO"; then :
13836  gl_cv_host_cpu_c_abi_32bit=no
13837else
13838  gl_cv_host_cpu_c_abi_32bit=yes
13839fi
13840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13841           ;;
13842
13843         sparc | sparc64 )
13844           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
13845           # C compiler still generates 32-bit code.
13846           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847/* end confdefs.h.  */
13848#if defined __sparcv9 || defined __arch64__
13849                   int ok;
13850                  #else
13851                   error fail
13852                  #endif
13853
13854_ACEOF
13855if ac_fn_c_try_compile "$LINENO"; then :
13856  gl_cv_host_cpu_c_abi_32bit=no
13857else
13858  gl_cv_host_cpu_c_abi_32bit=yes
13859fi
13860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861           ;;
13862
13863         *)
13864           gl_cv_host_cpu_c_abi_32bit=unknown
13865           ;;
13866       esac
13867     fi
13868
13869fi
13870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
13871$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
13872
13873  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
13874
13875
13876
13877
13878
13879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
13880$as_echo_n "checking for ELF binary format... " >&6; }
13881if ${gl_cv_elf+:} false; then :
13882  $as_echo_n "(cached) " >&6
13883else
13884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885/* end confdefs.h.  */
13886#ifdef __ELF__
13887        Extensible Linking Format
13888        #endif
13889
13890_ACEOF
13891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13892  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
13893  gl_cv_elf=yes
13894else
13895  gl_cv_elf=no
13896fi
13897rm -f conftest*
13898
13899
13900fi
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
13902$as_echo "$gl_cv_elf" >&6; }
13903  if test $gl_cv_elf; then
13904    # Extract the ELF class of a file (5th byte) in decimal.
13905    # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
13906    if od -A x < /dev/null >/dev/null 2>/dev/null; then
13907      # Use POSIX od.
13908      func_elfclass ()
13909      {
13910        od -A n -t d1 -j 4 -N 1
13911      }
13912    else
13913      # Use BSD hexdump.
13914      func_elfclass ()
13915      {
13916        dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
13917        echo
13918      }
13919    fi
13920    case $HOST_CPU_C_ABI_32BIT in
13921      yes)
13922        # 32-bit ABI.
13923        acl_is_expected_elfclass ()
13924        {
13925          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 1
13926        }
13927        ;;
13928      no)
13929        # 64-bit ABI.
13930        acl_is_expected_elfclass ()
13931        {
13932          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 2
13933        }
13934        ;;
13935      *)
13936        # Unknown.
13937        acl_is_expected_elfclass ()
13938        {
13939          :
13940        }
13941        ;;
13942    esac
13943  else
13944    acl_is_expected_elfclass ()
13945    {
13946      :
13947    }
13948  fi
13949
13950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
13951$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
13952if ${acl_cv_libdirstems+:} false; then :
13953  $as_echo_n "(cached) " >&6
13954else
13955            acl_libdirstem=lib
13956     acl_libdirstem2=
13957     acl_libdirstem3=
13958     case "$host_os" in
13959       solaris*)
13960                                                      if test $HOST_CPU_C_ABI_32BIT = no; then
13961           acl_libdirstem2=lib/64
13962           case "$host_cpu" in
13963             sparc*)        acl_libdirstem3=lib/sparcv9 ;;
13964             i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
13965           esac
13966         fi
13967         ;;
13968       *)
13969                                                                                 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
13970                     | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13971         if test $HOST_CPU_C_ABI_32BIT != no; then
13972           # 32-bit or unknown ABI.
13973           if test -d /usr/lib32; then
13974             acl_libdirstem2=lib32
13975           fi
13976         fi
13977         if test $HOST_CPU_C_ABI_32BIT != yes; then
13978           # 64-bit or unknown ABI.
13979           if test -d /usr/lib64; then
13980             acl_libdirstem3=lib64
13981           fi
13982         fi
13983         if test -n "$searchpath"; then
13984           acl_save_IFS="${IFS= 	}"; IFS=":"
13985           for searchdir in $searchpath; do
13986             if test -d "$searchdir"; then
13987               case "$searchdir" in
13988                 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
13989                 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
13990                 */../ | */.. )
13991                   # Better ignore directories of this form. They are misleading.
13992                   ;;
13993                 *) searchdir=`cd "$searchdir" && pwd`
13994                    case "$searchdir" in
13995                      */lib32 ) acl_libdirstem2=lib32 ;;
13996                      */lib64 ) acl_libdirstem3=lib64 ;;
13997                    esac ;;
13998               esac
13999             fi
14000           done
14001           IFS="$acl_save_IFS"
14002           if test $HOST_CPU_C_ABI_32BIT = yes; then
14003             # 32-bit ABI.
14004             acl_libdirstem3=
14005           fi
14006           if test $HOST_CPU_C_ABI_32BIT = no; then
14007             # 64-bit ABI.
14008             acl_libdirstem2=
14009           fi
14010         fi
14011         ;;
14012     esac
14013     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14014     test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
14015     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
14016
14017fi
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
14019$as_echo "$acl_cv_libdirstems" >&6; }
14020      acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
14021  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
14022  acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034    use_additional=yes
14035
14036  acl_save_prefix="$prefix"
14037  prefix="$acl_final_prefix"
14038  acl_save_exec_prefix="$exec_prefix"
14039  exec_prefix="$acl_final_exec_prefix"
14040
14041    eval additional_includedir=\"$includedir\"
14042    eval additional_libdir=\"$libdir\"
14043    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
14044    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
14045
14046  exec_prefix="$acl_save_exec_prefix"
14047  prefix="$acl_save_prefix"
14048
14049
14050# Check whether --with-libiconv-prefix was given.
14051if test "${with_libiconv_prefix+set}" = set; then :
14052  withval=$with_libiconv_prefix;
14053    if test "X$withval" = "Xno"; then
14054      use_additional=no
14055    else
14056      if test "X$withval" = "X"; then
14057
14058  acl_save_prefix="$prefix"
14059  prefix="$acl_final_prefix"
14060  acl_save_exec_prefix="$exec_prefix"
14061  exec_prefix="$acl_final_exec_prefix"
14062
14063          eval additional_includedir=\"$includedir\"
14064          eval additional_libdir=\"$libdir\"
14065          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
14066          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
14067
14068  exec_prefix="$acl_save_exec_prefix"
14069  prefix="$acl_save_prefix"
14070
14071      else
14072        additional_includedir="$withval/include"
14073        additional_libdir="$withval/$acl_libdirstem"
14074        additional_libdir2="$withval/$acl_libdirstem2"
14075        additional_libdir3="$withval/$acl_libdirstem3"
14076      fi
14077    fi
14078
14079fi
14080
14081  if test "X$additional_libdir2" = "X$additional_libdir"; then
14082    additional_libdir2=
14083  fi
14084  if test "X$additional_libdir3" = "X$additional_libdir"; then
14085    additional_libdir3=
14086  fi
14087      LIBICONV=
14088  LTLIBICONV=
14089  INCICONV=
14090  LIBICONV_PREFIX=
14091      HAVE_LIBICONV=
14092  rpathdirs=
14093  ltrpathdirs=
14094  names_already_handled=
14095  names_next_round='iconv '
14096  while test -n "$names_next_round"; do
14097    names_this_round="$names_next_round"
14098    names_next_round=
14099    for name in $names_this_round; do
14100      already_handled=
14101      for n in $names_already_handled; do
14102        if test "$n" = "$name"; then
14103          already_handled=yes
14104          break
14105        fi
14106      done
14107      if test -z "$already_handled"; then
14108        names_already_handled="$names_already_handled $name"
14109                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14110        eval value=\"\$HAVE_LIB$uppername\"
14111        if test -n "$value"; then
14112          if test "$value" = yes; then
14113            eval value=\"\$LIB$uppername\"
14114            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14115            eval value=\"\$LTLIB$uppername\"
14116            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14117          else
14118                                    :
14119          fi
14120        else
14121                              found_dir=
14122          found_la=
14123          found_so=
14124          found_a=
14125          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14126          if test -n "$acl_shlibext"; then
14127            shrext=".$acl_shlibext"             # typically: shrext=.so
14128          else
14129            shrext=
14130          fi
14131          if test $use_additional = yes; then
14132            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
14133              if test "X$found_dir" = "X"; then
14134                eval dir=\$$additional_libdir_variable
14135                if test -n "$dir"; then
14136                                                      if test -n "$acl_shlibext"; then
14137                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
14138                      found_dir="$dir"
14139                      found_so="$dir/$libname$shrext"
14140                    else
14141                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14142                        ver=`(cd "$dir" && \
14143                              for f in "$libname$shrext".*; do echo "$f"; done \
14144                              | sed -e "s,^$libname$shrext\\\\.,," \
14145                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14146                              | sed 1q ) 2>/dev/null`
14147                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
14148                          found_dir="$dir"
14149                          found_so="$dir/$libname$shrext.$ver"
14150                        fi
14151                      else
14152                        eval library_names=\"$acl_library_names_spec\"
14153                        for f in $library_names; do
14154                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
14155                            found_dir="$dir"
14156                            found_so="$dir/$f"
14157                            break
14158                          fi
14159                        done
14160                      fi
14161                    fi
14162                  fi
14163                                    if test "X$found_dir" = "X"; then
14164                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
14165                      found_dir="$dir"
14166                      found_a="$dir/$libname.$acl_libext"
14167                    fi
14168                  fi
14169                  if test "X$found_dir" != "X"; then
14170                    if test -f "$dir/$libname.la"; then
14171                      found_la="$dir/$libname.la"
14172                    fi
14173                  fi
14174                fi
14175              fi
14176            done
14177          fi
14178          if test "X$found_dir" = "X"; then
14179            for x in $LDFLAGS $LTLIBICONV; do
14180
14181  acl_save_prefix="$prefix"
14182  prefix="$acl_final_prefix"
14183  acl_save_exec_prefix="$exec_prefix"
14184  exec_prefix="$acl_final_exec_prefix"
14185  eval x=\"$x\"
14186  exec_prefix="$acl_save_exec_prefix"
14187  prefix="$acl_save_prefix"
14188
14189              case "$x" in
14190                -L*)
14191                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14192                                    if test -n "$acl_shlibext"; then
14193                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
14194                      found_dir="$dir"
14195                      found_so="$dir/$libname$shrext"
14196                    else
14197                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14198                        ver=`(cd "$dir" && \
14199                              for f in "$libname$shrext".*; do echo "$f"; done \
14200                              | sed -e "s,^$libname$shrext\\\\.,," \
14201                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14202                              | sed 1q ) 2>/dev/null`
14203                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
14204                          found_dir="$dir"
14205                          found_so="$dir/$libname$shrext.$ver"
14206                        fi
14207                      else
14208                        eval library_names=\"$acl_library_names_spec\"
14209                        for f in $library_names; do
14210                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
14211                            found_dir="$dir"
14212                            found_so="$dir/$f"
14213                            break
14214                          fi
14215                        done
14216                      fi
14217                    fi
14218                  fi
14219                                    if test "X$found_dir" = "X"; then
14220                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
14221                      found_dir="$dir"
14222                      found_a="$dir/$libname.$acl_libext"
14223                    fi
14224                  fi
14225                  if test "X$found_dir" != "X"; then
14226                    if test -f "$dir/$libname.la"; then
14227                      found_la="$dir/$libname.la"
14228                    fi
14229                  fi
14230                  ;;
14231              esac
14232              if test "X$found_dir" != "X"; then
14233                break
14234              fi
14235            done
14236          fi
14237          if test "X$found_dir" != "X"; then
14238                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14239            if test "X$found_so" != "X"; then
14240                                                        if test "$enable_rpath" = no \
14241                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14242                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
14243                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
14244                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14245              else
14246                                                                                haveit=
14247                for x in $ltrpathdirs; do
14248                  if test "X$x" = "X$found_dir"; then
14249                    haveit=yes
14250                    break
14251                  fi
14252                done
14253                if test -z "$haveit"; then
14254                  ltrpathdirs="$ltrpathdirs $found_dir"
14255                fi
14256                                if test "$acl_hardcode_direct" = yes; then
14257                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14258                else
14259                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14260                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14261                                                            haveit=
14262                    for x in $rpathdirs; do
14263                      if test "X$x" = "X$found_dir"; then
14264                        haveit=yes
14265                        break
14266                      fi
14267                    done
14268                    if test -z "$haveit"; then
14269                      rpathdirs="$rpathdirs $found_dir"
14270                    fi
14271                  else
14272                                                                                haveit=
14273                    for x in $LDFLAGS $LIBICONV; do
14274
14275  acl_save_prefix="$prefix"
14276  prefix="$acl_final_prefix"
14277  acl_save_exec_prefix="$exec_prefix"
14278  exec_prefix="$acl_final_exec_prefix"
14279  eval x=\"$x\"
14280  exec_prefix="$acl_save_exec_prefix"
14281  prefix="$acl_save_prefix"
14282
14283                      if test "X$x" = "X-L$found_dir"; then
14284                        haveit=yes
14285                        break
14286                      fi
14287                    done
14288                    if test -z "$haveit"; then
14289                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14290                    fi
14291                    if test "$acl_hardcode_minus_L" != no; then
14292                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14293                    else
14294                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14295                    fi
14296                  fi
14297                fi
14298              fi
14299            else
14300              if test "X$found_a" != "X"; then
14301                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14302              else
14303                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14304              fi
14305            fi
14306                        additional_includedir=
14307            case "$found_dir" in
14308              */$acl_libdirstem | */$acl_libdirstem/)
14309                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14310                if test "$name" = 'iconv'; then
14311                  LIBICONV_PREFIX="$basedir"
14312                fi
14313                additional_includedir="$basedir/include"
14314                ;;
14315              */$acl_libdirstem2 | */$acl_libdirstem2/)
14316                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14317                if test "$name" = 'iconv'; then
14318                  LIBICONV_PREFIX="$basedir"
14319                fi
14320                additional_includedir="$basedir/include"
14321                ;;
14322              */$acl_libdirstem3 | */$acl_libdirstem3/)
14323                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
14324                if test "$name" = 'iconv'; then
14325                  LIBICONV_PREFIX="$basedir"
14326                fi
14327                additional_includedir="$basedir/include"
14328                ;;
14329            esac
14330            if test "X$additional_includedir" != "X"; then
14331                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14332                haveit=
14333                if test "X$additional_includedir" = "X/usr/local/include"; then
14334                  if test -n "$GCC"; then
14335                    case $host_os in
14336                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14337                    esac
14338                  fi
14339                fi
14340                if test -z "$haveit"; then
14341                  for x in $CPPFLAGS $INCICONV; do
14342
14343  acl_save_prefix="$prefix"
14344  prefix="$acl_final_prefix"
14345  acl_save_exec_prefix="$exec_prefix"
14346  exec_prefix="$acl_final_exec_prefix"
14347  eval x=\"$x\"
14348  exec_prefix="$acl_save_exec_prefix"
14349  prefix="$acl_save_prefix"
14350
14351                    if test "X$x" = "X-I$additional_includedir"; then
14352                      haveit=yes
14353                      break
14354                    fi
14355                  done
14356                  if test -z "$haveit"; then
14357                    if test -d "$additional_includedir"; then
14358                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14359                    fi
14360                  fi
14361                fi
14362              fi
14363            fi
14364                        if test -n "$found_la"; then
14365                                                        save_libdir="$libdir"
14366              case "$found_la" in
14367                */* | *\\*) . "$found_la" ;;
14368                *) . "./$found_la" ;;
14369              esac
14370              libdir="$save_libdir"
14371                            for dep in $dependency_libs; do
14372                case "$dep" in
14373                  -L*)
14374                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14375                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
14376                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
14377                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
14378                      haveit=
14379                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
14380                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
14381                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
14382                        if test -n "$GCC"; then
14383                          case $host_os in
14384                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14385                          esac
14386                        fi
14387                      fi
14388                      if test -z "$haveit"; then
14389                        haveit=
14390                        for x in $LDFLAGS $LIBICONV; do
14391
14392  acl_save_prefix="$prefix"
14393  prefix="$acl_final_prefix"
14394  acl_save_exec_prefix="$exec_prefix"
14395  exec_prefix="$acl_final_exec_prefix"
14396  eval x=\"$x\"
14397  exec_prefix="$acl_save_exec_prefix"
14398  prefix="$acl_save_prefix"
14399
14400                          if test "X$x" = "X-L$dependency_libdir"; then
14401                            haveit=yes
14402                            break
14403                          fi
14404                        done
14405                        if test -z "$haveit"; then
14406                          if test -d "$dependency_libdir"; then
14407                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
14408                          fi
14409                        fi
14410                        haveit=
14411                        for x in $LDFLAGS $LTLIBICONV; do
14412
14413  acl_save_prefix="$prefix"
14414  prefix="$acl_final_prefix"
14415  acl_save_exec_prefix="$exec_prefix"
14416  exec_prefix="$acl_final_exec_prefix"
14417  eval x=\"$x\"
14418  exec_prefix="$acl_save_exec_prefix"
14419  prefix="$acl_save_prefix"
14420
14421                          if test "X$x" = "X-L$dependency_libdir"; then
14422                            haveit=yes
14423                            break
14424                          fi
14425                        done
14426                        if test -z "$haveit"; then
14427                          if test -d "$dependency_libdir"; then
14428                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
14429                          fi
14430                        fi
14431                      fi
14432                    fi
14433                    ;;
14434                  -R*)
14435                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14436                    if test "$enable_rpath" != no; then
14437                                                                  haveit=
14438                      for x in $rpathdirs; do
14439                        if test "X$x" = "X$dir"; then
14440                          haveit=yes
14441                          break
14442                        fi
14443                      done
14444                      if test -z "$haveit"; then
14445                        rpathdirs="$rpathdirs $dir"
14446                      fi
14447                                                                  haveit=
14448                      for x in $ltrpathdirs; do
14449                        if test "X$x" = "X$dir"; then
14450                          haveit=yes
14451                          break
14452                        fi
14453                      done
14454                      if test -z "$haveit"; then
14455                        ltrpathdirs="$ltrpathdirs $dir"
14456                      fi
14457                    fi
14458                    ;;
14459                  -l*)
14460                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14461                    ;;
14462                  *.la)
14463                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14464                    ;;
14465                  *)
14466                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14467                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14468                    ;;
14469                esac
14470              done
14471            fi
14472          else
14473                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14474            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14475          fi
14476        fi
14477      fi
14478    done
14479  done
14480  if test "X$rpathdirs" != "X"; then
14481    if test -n "$acl_hardcode_libdir_separator"; then
14482                        alldirs=
14483      for found_dir in $rpathdirs; do
14484        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14485      done
14486            acl_save_libdir="$libdir"
14487      libdir="$alldirs"
14488      eval flag=\"$acl_hardcode_libdir_flag_spec\"
14489      libdir="$acl_save_libdir"
14490      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14491    else
14492            for found_dir in $rpathdirs; do
14493        acl_save_libdir="$libdir"
14494        libdir="$found_dir"
14495        eval flag=\"$acl_hardcode_libdir_flag_spec\"
14496        libdir="$acl_save_libdir"
14497        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14498      done
14499    fi
14500  fi
14501  if test "X$ltrpathdirs" != "X"; then
14502            for found_dir in $ltrpathdirs; do
14503      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14504    done
14505  fi
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14536$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14537if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14538  $as_echo_n "(cached) " >&6
14539else
14540  gt_save_LIBS="$LIBS"
14541     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543/* end confdefs.h.  */
14544#include <CoreFoundation/CFPreferences.h>
14545int
14546main ()
14547{
14548CFPreferencesCopyAppValue(NULL, NULL)
14549  ;
14550  return 0;
14551}
14552_ACEOF
14553if ac_fn_c_try_link "$LINENO"; then :
14554  gt_cv_func_CFPreferencesCopyAppValue=yes
14555else
14556  gt_cv_func_CFPreferencesCopyAppValue=no
14557fi
14558rm -f core conftest.err conftest.$ac_objext \
14559    conftest$ac_exeext conftest.$ac_ext
14560     LIBS="$gt_save_LIBS"
14561fi
14562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14563$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14564  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14565
14566$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14567
14568  fi
14569                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
14570$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
14571if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
14572  $as_echo_n "(cached) " >&6
14573else
14574  gt_save_LIBS="$LIBS"
14575     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14576     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577/* end confdefs.h.  */
14578#include <CoreFoundation/CFLocale.h>
14579int
14580main ()
14581{
14582CFLocaleCopyPreferredLanguages();
14583  ;
14584  return 0;
14585}
14586_ACEOF
14587if ac_fn_c_try_link "$LINENO"; then :
14588  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
14589else
14590  gt_cv_func_CFLocaleCopyPreferredLanguages=no
14591fi
14592rm -f core conftest.err conftest.$ac_objext \
14593    conftest$ac_exeext conftest.$ac_ext
14594     LIBS="$gt_save_LIBS"
14595fi
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
14597$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
14598  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
14599
14600$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
14601
14602  fi
14603  INTL_MACOSX_LIBS=
14604  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
14605     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
14606    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14607  fi
14608
14609
14610
14611
14612
14613
14614  LIBINTL=
14615  LTLIBINTL=
14616  POSUB=
14617
14618    case " $gt_needs " in
14619    *" need-formatstring-macros "*) gt_api_version=3 ;;
14620    *" need-ngettext "*) gt_api_version=2 ;;
14621    *) gt_api_version=1 ;;
14622  esac
14623  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14624  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14625
14626    if test "$USE_NLS" = "yes"; then
14627    gt_use_preinstalled_gnugettext=no
14628
14629
14630        if test $gt_api_version -ge 3; then
14631          gt_revision_test_code='
14632#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14633#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14634#endif
14635typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14636'
14637        else
14638          gt_revision_test_code=
14639        fi
14640        if test $gt_api_version -ge 2; then
14641          gt_expression_test_code=' + * ngettext ("", "", 0)'
14642        else
14643          gt_expression_test_code=
14644        fi
14645
14646        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14647$as_echo_n "checking for GNU gettext in libc... " >&6; }
14648if eval \${$gt_func_gnugettext_libc+:} false; then :
14649  $as_echo_n "(cached) " >&6
14650else
14651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652/* end confdefs.h.  */
14653
14654#include <libintl.h>
14655#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14656extern int _nl_msg_cat_cntr;
14657extern int *_nl_domain_bindings;
14658#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14659#else
14660#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14661#endif
14662$gt_revision_test_code
14663
14664int
14665main ()
14666{
14667
14668bindtextdomain ("", "");
14669return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14670
14671  ;
14672  return 0;
14673}
14674_ACEOF
14675if ac_fn_c_try_link "$LINENO"; then :
14676  eval "$gt_func_gnugettext_libc=yes"
14677else
14678  eval "$gt_func_gnugettext_libc=no"
14679fi
14680rm -f core conftest.err conftest.$ac_objext \
14681    conftest$ac_exeext conftest.$ac_ext
14682fi
14683eval ac_res=\$$gt_func_gnugettext_libc
14684	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14685$as_echo "$ac_res" >&6; }
14686
14687        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14688
14689
14690
14691
14692
14693          am_save_CPPFLAGS="$CPPFLAGS"
14694
14695  for element in $INCICONV; do
14696    haveit=
14697    for x in $CPPFLAGS; do
14698
14699  acl_save_prefix="$prefix"
14700  prefix="$acl_final_prefix"
14701  acl_save_exec_prefix="$exec_prefix"
14702  exec_prefix="$acl_final_exec_prefix"
14703  eval x=\"$x\"
14704  exec_prefix="$acl_save_exec_prefix"
14705  prefix="$acl_save_prefix"
14706
14707      if test "X$x" = "X$element"; then
14708        haveit=yes
14709        break
14710      fi
14711    done
14712    if test -z "$haveit"; then
14713      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14714    fi
14715  done
14716
14717
14718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14719$as_echo_n "checking for iconv... " >&6; }
14720if ${am_cv_func_iconv+:} false; then :
14721  $as_echo_n "(cached) " >&6
14722else
14723
14724    am_cv_func_iconv="no, consider installing GNU libiconv"
14725    am_cv_lib_iconv=no
14726    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727/* end confdefs.h.  */
14728
14729#include <stdlib.h>
14730#include <iconv.h>
14731
14732int
14733main ()
14734{
14735iconv_t cd = iconv_open("","");
14736           iconv(cd,NULL,NULL,NULL,NULL);
14737           iconv_close(cd);
14738  ;
14739  return 0;
14740}
14741_ACEOF
14742if ac_fn_c_try_link "$LINENO"; then :
14743  am_cv_func_iconv=yes
14744fi
14745rm -f core conftest.err conftest.$ac_objext \
14746    conftest$ac_exeext conftest.$ac_ext
14747    if test "$am_cv_func_iconv" != yes; then
14748      am_save_LIBS="$LIBS"
14749      LIBS="$LIBS $LIBICONV"
14750      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751/* end confdefs.h.  */
14752
14753#include <stdlib.h>
14754#include <iconv.h>
14755
14756int
14757main ()
14758{
14759iconv_t cd = iconv_open("","");
14760             iconv(cd,NULL,NULL,NULL,NULL);
14761             iconv_close(cd);
14762  ;
14763  return 0;
14764}
14765_ACEOF
14766if ac_fn_c_try_link "$LINENO"; then :
14767  am_cv_lib_iconv=yes
14768        am_cv_func_iconv=yes
14769fi
14770rm -f core conftest.err conftest.$ac_objext \
14771    conftest$ac_exeext conftest.$ac_ext
14772      LIBS="$am_save_LIBS"
14773    fi
14774
14775fi
14776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14777$as_echo "$am_cv_func_iconv" >&6; }
14778  if test "$am_cv_func_iconv" = yes; then
14779    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14780$as_echo_n "checking for working iconv... " >&6; }
14781if ${am_cv_func_iconv_works+:} false; then :
14782  $as_echo_n "(cached) " >&6
14783else
14784
14785                  am_save_LIBS="$LIBS"
14786      if test $am_cv_lib_iconv = yes; then
14787        LIBS="$LIBS $LIBICONV"
14788      fi
14789      am_cv_func_iconv_works=no
14790      for ac_iconv_const in '' 'const'; do
14791        if test "$cross_compiling" = yes; then :
14792  case "$host_os" in
14793             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14794             *)            am_cv_func_iconv_works="guessing yes" ;;
14795           esac
14796else
14797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798/* end confdefs.h.  */
14799
14800#include <iconv.h>
14801#include <string.h>
14802
14803#ifndef ICONV_CONST
14804# define ICONV_CONST $ac_iconv_const
14805#endif
14806
14807int
14808main ()
14809{
14810int result = 0;
14811  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14812     returns.  */
14813  {
14814    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14815    if (cd_utf8_to_88591 != (iconv_t)(-1))
14816      {
14817        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14818        char buf[10];
14819        ICONV_CONST char *inptr = input;
14820        size_t inbytesleft = strlen (input);
14821        char *outptr = buf;
14822        size_t outbytesleft = sizeof (buf);
14823        size_t res = iconv (cd_utf8_to_88591,
14824                            &inptr, &inbytesleft,
14825                            &outptr, &outbytesleft);
14826        if (res == 0)
14827          result |= 1;
14828        iconv_close (cd_utf8_to_88591);
14829      }
14830  }
14831  /* Test against Solaris 10 bug: Failures are not distinguishable from
14832     successful returns.  */
14833  {
14834    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14835    if (cd_ascii_to_88591 != (iconv_t)(-1))
14836      {
14837        static ICONV_CONST char input[] = "\263";
14838        char buf[10];
14839        ICONV_CONST char *inptr = input;
14840        size_t inbytesleft = strlen (input);
14841        char *outptr = buf;
14842        size_t outbytesleft = sizeof (buf);
14843        size_t res = iconv (cd_ascii_to_88591,
14844                            &inptr, &inbytesleft,
14845                            &outptr, &outbytesleft);
14846        if (res == 0)
14847          result |= 2;
14848        iconv_close (cd_ascii_to_88591);
14849      }
14850  }
14851  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
14852  {
14853    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14854    if (cd_88591_to_utf8 != (iconv_t)(-1))
14855      {
14856        static ICONV_CONST char input[] = "\304";
14857        static char buf[2] = { (char)0xDE, (char)0xAD };
14858        ICONV_CONST char *inptr = input;
14859        size_t inbytesleft = 1;
14860        char *outptr = buf;
14861        size_t outbytesleft = 1;
14862        size_t res = iconv (cd_88591_to_utf8,
14863                            &inptr, &inbytesleft,
14864                            &outptr, &outbytesleft);
14865        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14866          result |= 4;
14867        iconv_close (cd_88591_to_utf8);
14868      }
14869  }
14870#if 0 /* This bug could be worked around by the caller.  */
14871  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14872  {
14873    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14874    if (cd_88591_to_utf8 != (iconv_t)(-1))
14875      {
14876        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14877        char buf[50];
14878        ICONV_CONST char *inptr = input;
14879        size_t inbytesleft = strlen (input);
14880        char *outptr = buf;
14881        size_t outbytesleft = sizeof (buf);
14882        size_t res = iconv (cd_88591_to_utf8,
14883                            &inptr, &inbytesleft,
14884                            &outptr, &outbytesleft);
14885        if ((int)res > 0)
14886          result |= 8;
14887        iconv_close (cd_88591_to_utf8);
14888      }
14889  }
14890#endif
14891  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14892     provided.  */
14893  {
14894    /* Try standardized names.  */
14895    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14896    /* Try IRIX, OSF/1 names.  */
14897    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14898    /* Try AIX names.  */
14899    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14900    /* Try HP-UX names.  */
14901    iconv_t cd4 = iconv_open ("utf8", "eucJP");
14902    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14903        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14904      result |= 16;
14905    if (cd1 != (iconv_t)(-1))
14906      iconv_close (cd1);
14907    if (cd2 != (iconv_t)(-1))
14908      iconv_close (cd2);
14909    if (cd3 != (iconv_t)(-1))
14910      iconv_close (cd3);
14911    if (cd4 != (iconv_t)(-1))
14912      iconv_close (cd4);
14913  }
14914  return result;
14915
14916  ;
14917  return 0;
14918}
14919_ACEOF
14920if ac_fn_c_try_run "$LINENO"; then :
14921  am_cv_func_iconv_works=yes
14922fi
14923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14924  conftest.$ac_objext conftest.beam conftest.$ac_ext
14925fi
14926
14927        test "$am_cv_func_iconv_works" = no || break
14928      done
14929      LIBS="$am_save_LIBS"
14930
14931fi
14932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14933$as_echo "$am_cv_func_iconv_works" >&6; }
14934    case "$am_cv_func_iconv_works" in
14935      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14936      *)   am_func_iconv=yes ;;
14937    esac
14938  else
14939    am_func_iconv=no am_cv_lib_iconv=no
14940  fi
14941  if test "$am_func_iconv" = yes; then
14942
14943$as_echo "#define HAVE_ICONV 1" >>confdefs.h
14944
14945  fi
14946  if test "$am_cv_lib_iconv" = yes; then
14947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14948$as_echo_n "checking how to link with libiconv... " >&6; }
14949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14950$as_echo "$LIBICONV" >&6; }
14951  else
14952            CPPFLAGS="$am_save_CPPFLAGS"
14953    LIBICONV=
14954    LTLIBICONV=
14955  fi
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966    use_additional=yes
14967
14968  acl_save_prefix="$prefix"
14969  prefix="$acl_final_prefix"
14970  acl_save_exec_prefix="$exec_prefix"
14971  exec_prefix="$acl_final_exec_prefix"
14972
14973    eval additional_includedir=\"$includedir\"
14974    eval additional_libdir=\"$libdir\"
14975    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
14976    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
14977
14978  exec_prefix="$acl_save_exec_prefix"
14979  prefix="$acl_save_prefix"
14980
14981
14982# Check whether --with-libintl-prefix was given.
14983if test "${with_libintl_prefix+set}" = set; then :
14984  withval=$with_libintl_prefix;
14985    if test "X$withval" = "Xno"; then
14986      use_additional=no
14987    else
14988      if test "X$withval" = "X"; then
14989
14990  acl_save_prefix="$prefix"
14991  prefix="$acl_final_prefix"
14992  acl_save_exec_prefix="$exec_prefix"
14993  exec_prefix="$acl_final_exec_prefix"
14994
14995          eval additional_includedir=\"$includedir\"
14996          eval additional_libdir=\"$libdir\"
14997          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
14998          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
14999
15000  exec_prefix="$acl_save_exec_prefix"
15001  prefix="$acl_save_prefix"
15002
15003      else
15004        additional_includedir="$withval/include"
15005        additional_libdir="$withval/$acl_libdirstem"
15006        additional_libdir2="$withval/$acl_libdirstem2"
15007        additional_libdir3="$withval/$acl_libdirstem3"
15008      fi
15009    fi
15010
15011fi
15012
15013  if test "X$additional_libdir2" = "X$additional_libdir"; then
15014    additional_libdir2=
15015  fi
15016  if test "X$additional_libdir3" = "X$additional_libdir"; then
15017    additional_libdir3=
15018  fi
15019      LIBINTL=
15020  LTLIBINTL=
15021  INCINTL=
15022  LIBINTL_PREFIX=
15023      HAVE_LIBINTL=
15024  rpathdirs=
15025  ltrpathdirs=
15026  names_already_handled=
15027  names_next_round='intl '
15028  while test -n "$names_next_round"; do
15029    names_this_round="$names_next_round"
15030    names_next_round=
15031    for name in $names_this_round; do
15032      already_handled=
15033      for n in $names_already_handled; do
15034        if test "$n" = "$name"; then
15035          already_handled=yes
15036          break
15037        fi
15038      done
15039      if test -z "$already_handled"; then
15040        names_already_handled="$names_already_handled $name"
15041                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15042        eval value=\"\$HAVE_LIB$uppername\"
15043        if test -n "$value"; then
15044          if test "$value" = yes; then
15045            eval value=\"\$LIB$uppername\"
15046            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15047            eval value=\"\$LTLIB$uppername\"
15048            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15049          else
15050                                    :
15051          fi
15052        else
15053                              found_dir=
15054          found_la=
15055          found_so=
15056          found_a=
15057          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15058          if test -n "$acl_shlibext"; then
15059            shrext=".$acl_shlibext"             # typically: shrext=.so
15060          else
15061            shrext=
15062          fi
15063          if test $use_additional = yes; then
15064            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
15065              if test "X$found_dir" = "X"; then
15066                eval dir=\$$additional_libdir_variable
15067                if test -n "$dir"; then
15068                                                      if test -n "$acl_shlibext"; then
15069                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
15070                      found_dir="$dir"
15071                      found_so="$dir/$libname$shrext"
15072                    else
15073                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15074                        ver=`(cd "$dir" && \
15075                              for f in "$libname$shrext".*; do echo "$f"; done \
15076                              | sed -e "s,^$libname$shrext\\\\.,," \
15077                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15078                              | sed 1q ) 2>/dev/null`
15079                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
15080                          found_dir="$dir"
15081                          found_so="$dir/$libname$shrext.$ver"
15082                        fi
15083                      else
15084                        eval library_names=\"$acl_library_names_spec\"
15085                        for f in $library_names; do
15086                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
15087                            found_dir="$dir"
15088                            found_so="$dir/$f"
15089                            break
15090                          fi
15091                        done
15092                      fi
15093                    fi
15094                  fi
15095                                    if test "X$found_dir" = "X"; then
15096                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
15097                      found_dir="$dir"
15098                      found_a="$dir/$libname.$acl_libext"
15099                    fi
15100                  fi
15101                  if test "X$found_dir" != "X"; then
15102                    if test -f "$dir/$libname.la"; then
15103                      found_la="$dir/$libname.la"
15104                    fi
15105                  fi
15106                fi
15107              fi
15108            done
15109          fi
15110          if test "X$found_dir" = "X"; then
15111            for x in $LDFLAGS $LTLIBINTL; do
15112
15113  acl_save_prefix="$prefix"
15114  prefix="$acl_final_prefix"
15115  acl_save_exec_prefix="$exec_prefix"
15116  exec_prefix="$acl_final_exec_prefix"
15117  eval x=\"$x\"
15118  exec_prefix="$acl_save_exec_prefix"
15119  prefix="$acl_save_prefix"
15120
15121              case "$x" in
15122                -L*)
15123                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15124                                    if test -n "$acl_shlibext"; then
15125                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
15126                      found_dir="$dir"
15127                      found_so="$dir/$libname$shrext"
15128                    else
15129                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15130                        ver=`(cd "$dir" && \
15131                              for f in "$libname$shrext".*; do echo "$f"; done \
15132                              | sed -e "s,^$libname$shrext\\\\.,," \
15133                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15134                              | sed 1q ) 2>/dev/null`
15135                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
15136                          found_dir="$dir"
15137                          found_so="$dir/$libname$shrext.$ver"
15138                        fi
15139                      else
15140                        eval library_names=\"$acl_library_names_spec\"
15141                        for f in $library_names; do
15142                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
15143                            found_dir="$dir"
15144                            found_so="$dir/$f"
15145                            break
15146                          fi
15147                        done
15148                      fi
15149                    fi
15150                  fi
15151                                    if test "X$found_dir" = "X"; then
15152                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
15153                      found_dir="$dir"
15154                      found_a="$dir/$libname.$acl_libext"
15155                    fi
15156                  fi
15157                  if test "X$found_dir" != "X"; then
15158                    if test -f "$dir/$libname.la"; then
15159                      found_la="$dir/$libname.la"
15160                    fi
15161                  fi
15162                  ;;
15163              esac
15164              if test "X$found_dir" != "X"; then
15165                break
15166              fi
15167            done
15168          fi
15169          if test "X$found_dir" != "X"; then
15170                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15171            if test "X$found_so" != "X"; then
15172                                                        if test "$enable_rpath" = no \
15173                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15174                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
15175                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
15176                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15177              else
15178                                                                                haveit=
15179                for x in $ltrpathdirs; do
15180                  if test "X$x" = "X$found_dir"; then
15181                    haveit=yes
15182                    break
15183                  fi
15184                done
15185                if test -z "$haveit"; then
15186                  ltrpathdirs="$ltrpathdirs $found_dir"
15187                fi
15188                                if test "$acl_hardcode_direct" = yes; then
15189                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15190                else
15191                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15192                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15193                                                            haveit=
15194                    for x in $rpathdirs; do
15195                      if test "X$x" = "X$found_dir"; then
15196                        haveit=yes
15197                        break
15198                      fi
15199                    done
15200                    if test -z "$haveit"; then
15201                      rpathdirs="$rpathdirs $found_dir"
15202                    fi
15203                  else
15204                                                                                haveit=
15205                    for x in $LDFLAGS $LIBINTL; do
15206
15207  acl_save_prefix="$prefix"
15208  prefix="$acl_final_prefix"
15209  acl_save_exec_prefix="$exec_prefix"
15210  exec_prefix="$acl_final_exec_prefix"
15211  eval x=\"$x\"
15212  exec_prefix="$acl_save_exec_prefix"
15213  prefix="$acl_save_prefix"
15214
15215                      if test "X$x" = "X-L$found_dir"; then
15216                        haveit=yes
15217                        break
15218                      fi
15219                    done
15220                    if test -z "$haveit"; then
15221                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15222                    fi
15223                    if test "$acl_hardcode_minus_L" != no; then
15224                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15225                    else
15226                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15227                    fi
15228                  fi
15229                fi
15230              fi
15231            else
15232              if test "X$found_a" != "X"; then
15233                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15234              else
15235                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15236              fi
15237            fi
15238                        additional_includedir=
15239            case "$found_dir" in
15240              */$acl_libdirstem | */$acl_libdirstem/)
15241                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15242                if test "$name" = 'intl'; then
15243                  LIBINTL_PREFIX="$basedir"
15244                fi
15245                additional_includedir="$basedir/include"
15246                ;;
15247              */$acl_libdirstem2 | */$acl_libdirstem2/)
15248                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15249                if test "$name" = 'intl'; then
15250                  LIBINTL_PREFIX="$basedir"
15251                fi
15252                additional_includedir="$basedir/include"
15253                ;;
15254              */$acl_libdirstem3 | */$acl_libdirstem3/)
15255                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
15256                if test "$name" = 'intl'; then
15257                  LIBINTL_PREFIX="$basedir"
15258                fi
15259                additional_includedir="$basedir/include"
15260                ;;
15261            esac
15262            if test "X$additional_includedir" != "X"; then
15263                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15264                haveit=
15265                if test "X$additional_includedir" = "X/usr/local/include"; then
15266                  if test -n "$GCC"; then
15267                    case $host_os in
15268                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15269                    esac
15270                  fi
15271                fi
15272                if test -z "$haveit"; then
15273                  for x in $CPPFLAGS $INCINTL; do
15274
15275  acl_save_prefix="$prefix"
15276  prefix="$acl_final_prefix"
15277  acl_save_exec_prefix="$exec_prefix"
15278  exec_prefix="$acl_final_exec_prefix"
15279  eval x=\"$x\"
15280  exec_prefix="$acl_save_exec_prefix"
15281  prefix="$acl_save_prefix"
15282
15283                    if test "X$x" = "X-I$additional_includedir"; then
15284                      haveit=yes
15285                      break
15286                    fi
15287                  done
15288                  if test -z "$haveit"; then
15289                    if test -d "$additional_includedir"; then
15290                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15291                    fi
15292                  fi
15293                fi
15294              fi
15295            fi
15296                        if test -n "$found_la"; then
15297                                                        save_libdir="$libdir"
15298              case "$found_la" in
15299                */* | *\\*) . "$found_la" ;;
15300                *) . "./$found_la" ;;
15301              esac
15302              libdir="$save_libdir"
15303                            for dep in $dependency_libs; do
15304                case "$dep" in
15305                  -L*)
15306                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15307                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
15308                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
15309                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
15310                      haveit=
15311                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
15312                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
15313                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
15314                        if test -n "$GCC"; then
15315                          case $host_os in
15316                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15317                          esac
15318                        fi
15319                      fi
15320                      if test -z "$haveit"; then
15321                        haveit=
15322                        for x in $LDFLAGS $LIBINTL; do
15323
15324  acl_save_prefix="$prefix"
15325  prefix="$acl_final_prefix"
15326  acl_save_exec_prefix="$exec_prefix"
15327  exec_prefix="$acl_final_exec_prefix"
15328  eval x=\"$x\"
15329  exec_prefix="$acl_save_exec_prefix"
15330  prefix="$acl_save_prefix"
15331
15332                          if test "X$x" = "X-L$dependency_libdir"; then
15333                            haveit=yes
15334                            break
15335                          fi
15336                        done
15337                        if test -z "$haveit"; then
15338                          if test -d "$dependency_libdir"; then
15339                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
15340                          fi
15341                        fi
15342                        haveit=
15343                        for x in $LDFLAGS $LTLIBINTL; do
15344
15345  acl_save_prefix="$prefix"
15346  prefix="$acl_final_prefix"
15347  acl_save_exec_prefix="$exec_prefix"
15348  exec_prefix="$acl_final_exec_prefix"
15349  eval x=\"$x\"
15350  exec_prefix="$acl_save_exec_prefix"
15351  prefix="$acl_save_prefix"
15352
15353                          if test "X$x" = "X-L$dependency_libdir"; then
15354                            haveit=yes
15355                            break
15356                          fi
15357                        done
15358                        if test -z "$haveit"; then
15359                          if test -d "$dependency_libdir"; then
15360                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
15361                          fi
15362                        fi
15363                      fi
15364                    fi
15365                    ;;
15366                  -R*)
15367                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15368                    if test "$enable_rpath" != no; then
15369                                                                  haveit=
15370                      for x in $rpathdirs; do
15371                        if test "X$x" = "X$dir"; then
15372                          haveit=yes
15373                          break
15374                        fi
15375                      done
15376                      if test -z "$haveit"; then
15377                        rpathdirs="$rpathdirs $dir"
15378                      fi
15379                                                                  haveit=
15380                      for x in $ltrpathdirs; do
15381                        if test "X$x" = "X$dir"; then
15382                          haveit=yes
15383                          break
15384                        fi
15385                      done
15386                      if test -z "$haveit"; then
15387                        ltrpathdirs="$ltrpathdirs $dir"
15388                      fi
15389                    fi
15390                    ;;
15391                  -l*)
15392                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15393                    ;;
15394                  *.la)
15395                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15396                    ;;
15397                  *)
15398                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15399                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15400                    ;;
15401                esac
15402              done
15403            fi
15404          else
15405                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15406            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15407          fi
15408        fi
15409      fi
15410    done
15411  done
15412  if test "X$rpathdirs" != "X"; then
15413    if test -n "$acl_hardcode_libdir_separator"; then
15414                        alldirs=
15415      for found_dir in $rpathdirs; do
15416        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15417      done
15418            acl_save_libdir="$libdir"
15419      libdir="$alldirs"
15420      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15421      libdir="$acl_save_libdir"
15422      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15423    else
15424            for found_dir in $rpathdirs; do
15425        acl_save_libdir="$libdir"
15426        libdir="$found_dir"
15427        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15428        libdir="$acl_save_libdir"
15429        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15430      done
15431    fi
15432  fi
15433  if test "X$ltrpathdirs" != "X"; then
15434            for found_dir in $ltrpathdirs; do
15435      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15436    done
15437  fi
15438
15439
15440
15441
15442
15443          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15444$as_echo_n "checking for GNU gettext in libintl... " >&6; }
15445if eval \${$gt_func_gnugettext_libintl+:} false; then :
15446  $as_echo_n "(cached) " >&6
15447else
15448  gt_save_CPPFLAGS="$CPPFLAGS"
15449            CPPFLAGS="$CPPFLAGS $INCINTL"
15450            gt_save_LIBS="$LIBS"
15451            LIBS="$LIBS $LIBINTL"
15452                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453/* end confdefs.h.  */
15454
15455#include <libintl.h>
15456#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15457extern int _nl_msg_cat_cntr;
15458extern
15459#ifdef __cplusplus
15460"C"
15461#endif
15462const char *_nl_expand_alias (const char *);
15463#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
15464#else
15465#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15466#endif
15467$gt_revision_test_code
15468
15469int
15470main ()
15471{
15472
15473bindtextdomain ("", "");
15474return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15475
15476  ;
15477  return 0;
15478}
15479_ACEOF
15480if ac_fn_c_try_link "$LINENO"; then :
15481  eval "$gt_func_gnugettext_libintl=yes"
15482else
15483  eval "$gt_func_gnugettext_libintl=no"
15484fi
15485rm -f core conftest.err conftest.$ac_objext \
15486    conftest$ac_exeext conftest.$ac_ext
15487                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15488              LIBS="$LIBS $LIBICONV"
15489              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490/* end confdefs.h.  */
15491
15492#include <libintl.h>
15493#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15494extern int _nl_msg_cat_cntr;
15495extern
15496#ifdef __cplusplus
15497"C"
15498#endif
15499const char *_nl_expand_alias (const char *);
15500#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
15501#else
15502#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15503#endif
15504$gt_revision_test_code
15505
15506int
15507main ()
15508{
15509
15510bindtextdomain ("", "");
15511return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15512
15513  ;
15514  return 0;
15515}
15516_ACEOF
15517if ac_fn_c_try_link "$LINENO"; then :
15518  LIBINTL="$LIBINTL $LIBICONV"
15519                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15520                 eval "$gt_func_gnugettext_libintl=yes"
15521
15522fi
15523rm -f core conftest.err conftest.$ac_objext \
15524    conftest$ac_exeext conftest.$ac_ext
15525            fi
15526            CPPFLAGS="$gt_save_CPPFLAGS"
15527            LIBS="$gt_save_LIBS"
15528fi
15529eval ac_res=\$$gt_func_gnugettext_libintl
15530	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15531$as_echo "$ac_res" >&6; }
15532        fi
15533
15534                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15535           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15536                && test "$PACKAGE" != gettext-runtime \
15537                && test "$PACKAGE" != gettext-tools; }; then
15538          gt_use_preinstalled_gnugettext=yes
15539        else
15540                    LIBINTL=
15541          LTLIBINTL=
15542          INCINTL=
15543        fi
15544
15545
15546
15547    if test -n "$INTL_MACOSX_LIBS"; then
15548      if test "$gt_use_preinstalled_gnugettext" = "yes" \
15549         || test "$nls_cv_use_gnu_gettext" = "yes"; then
15550                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15551        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15552      fi
15553    fi
15554
15555    if test "$gt_use_preinstalled_gnugettext" = "yes" \
15556       || test "$nls_cv_use_gnu_gettext" = "yes"; then
15557
15558$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15559
15560    else
15561      USE_NLS=no
15562    fi
15563  fi
15564
15565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15566$as_echo_n "checking whether to use NLS... " >&6; }
15567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15568$as_echo "$USE_NLS" >&6; }
15569  if test "$USE_NLS" = "yes"; then
15570    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15571$as_echo_n "checking where the gettext function comes from... " >&6; }
15572    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15573      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15574        gt_source="external libintl"
15575      else
15576        gt_source="libc"
15577      fi
15578    else
15579      gt_source="included intl directory"
15580    fi
15581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15582$as_echo "$gt_source" >&6; }
15583  fi
15584
15585  if test "$USE_NLS" = "yes"; then
15586
15587    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15588      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15589        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15590$as_echo_n "checking how to link with libintl... " >&6; }
15591        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15592$as_echo "$LIBINTL" >&6; }
15593
15594  for element in $INCINTL; do
15595    haveit=
15596    for x in $CPPFLAGS; do
15597
15598  acl_save_prefix="$prefix"
15599  prefix="$acl_final_prefix"
15600  acl_save_exec_prefix="$exec_prefix"
15601  exec_prefix="$acl_final_exec_prefix"
15602  eval x=\"$x\"
15603  exec_prefix="$acl_save_exec_prefix"
15604  prefix="$acl_save_prefix"
15605
15606      if test "X$x" = "X$element"; then
15607        haveit=yes
15608        break
15609      fi
15610    done
15611    if test -z "$haveit"; then
15612      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15613    fi
15614  done
15615
15616      fi
15617
15618
15619$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15620
15621
15622$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15623
15624    fi
15625
15626        POSUB=po
15627  fi
15628
15629
15630
15631    INTLLIBS="$LIBINTL"
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15644$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15645if ${ac_cv_c_bigendian+:} false; then :
15646  $as_echo_n "(cached) " >&6
15647else
15648  ac_cv_c_bigendian=unknown
15649    # See if we're dealing with a universal compiler.
15650    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651/* end confdefs.h.  */
15652#ifndef __APPLE_CC__
15653	       not a universal capable compiler
15654	     #endif
15655	     typedef int dummy;
15656
15657_ACEOF
15658if ac_fn_c_try_compile "$LINENO"; then :
15659
15660	# Check for potential -arch flags.  It is not universal unless
15661	# there are at least two -arch flags with different values.
15662	ac_arch=
15663	ac_prev=
15664	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15665	 if test -n "$ac_prev"; then
15666	   case $ac_word in
15667	     i?86 | x86_64 | ppc | ppc64)
15668	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15669		 ac_arch=$ac_word
15670	       else
15671		 ac_cv_c_bigendian=universal
15672		 break
15673	       fi
15674	       ;;
15675	   esac
15676	   ac_prev=
15677	 elif test "x$ac_word" = "x-arch"; then
15678	   ac_prev=arch
15679	 fi
15680       done
15681fi
15682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683    if test $ac_cv_c_bigendian = unknown; then
15684      # See if sys/param.h defines the BYTE_ORDER macro.
15685      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686/* end confdefs.h.  */
15687#include <sys/types.h>
15688	     #include <sys/param.h>
15689
15690int
15691main ()
15692{
15693#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15694		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15695		     && LITTLE_ENDIAN)
15696	      bogus endian macros
15697	     #endif
15698
15699  ;
15700  return 0;
15701}
15702_ACEOF
15703if ac_fn_c_try_compile "$LINENO"; then :
15704  # It does; now see whether it defined to BIG_ENDIAN or not.
15705	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706/* end confdefs.h.  */
15707#include <sys/types.h>
15708		#include <sys/param.h>
15709
15710int
15711main ()
15712{
15713#if BYTE_ORDER != BIG_ENDIAN
15714		 not big endian
15715		#endif
15716
15717  ;
15718  return 0;
15719}
15720_ACEOF
15721if ac_fn_c_try_compile "$LINENO"; then :
15722  ac_cv_c_bigendian=yes
15723else
15724  ac_cv_c_bigendian=no
15725fi
15726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727fi
15728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729    fi
15730    if test $ac_cv_c_bigendian = unknown; then
15731      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15732      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733/* end confdefs.h.  */
15734#include <limits.h>
15735
15736int
15737main ()
15738{
15739#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15740	      bogus endian macros
15741	     #endif
15742
15743  ;
15744  return 0;
15745}
15746_ACEOF
15747if ac_fn_c_try_compile "$LINENO"; then :
15748  # It does; now see whether it defined to _BIG_ENDIAN or not.
15749	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750/* end confdefs.h.  */
15751#include <limits.h>
15752
15753int
15754main ()
15755{
15756#ifndef _BIG_ENDIAN
15757		 not big endian
15758		#endif
15759
15760  ;
15761  return 0;
15762}
15763_ACEOF
15764if ac_fn_c_try_compile "$LINENO"; then :
15765  ac_cv_c_bigendian=yes
15766else
15767  ac_cv_c_bigendian=no
15768fi
15769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770fi
15771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772    fi
15773    if test $ac_cv_c_bigendian = unknown; then
15774      # Compile a test program.
15775      if test "$cross_compiling" = yes; then :
15776  # Try to guess by grepping values from an object file.
15777	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778/* end confdefs.h.  */
15779short int ascii_mm[] =
15780		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15781		short int ascii_ii[] =
15782		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15783		int use_ascii (int i) {
15784		  return ascii_mm[i] + ascii_ii[i];
15785		}
15786		short int ebcdic_ii[] =
15787		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15788		short int ebcdic_mm[] =
15789		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15790		int use_ebcdic (int i) {
15791		  return ebcdic_mm[i] + ebcdic_ii[i];
15792		}
15793		extern int foo;
15794
15795int
15796main ()
15797{
15798return use_ascii (foo) == use_ebcdic (foo);
15799  ;
15800  return 0;
15801}
15802_ACEOF
15803if ac_fn_c_try_compile "$LINENO"; then :
15804  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15805	      ac_cv_c_bigendian=yes
15806	    fi
15807	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15808	      if test "$ac_cv_c_bigendian" = unknown; then
15809		ac_cv_c_bigendian=no
15810	      else
15811		# finding both strings is unlikely to happen, but who knows?
15812		ac_cv_c_bigendian=unknown
15813	      fi
15814	    fi
15815fi
15816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817else
15818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h.  */
15820$ac_includes_default
15821int
15822main ()
15823{
15824
15825	     /* Are we little or big endian?  From Harbison&Steele.  */
15826	     union
15827	     {
15828	       long int l;
15829	       char c[sizeof (long int)];
15830	     } u;
15831	     u.l = 1;
15832	     return u.c[sizeof (long int) - 1] == 1;
15833
15834  ;
15835  return 0;
15836}
15837_ACEOF
15838if ac_fn_c_try_run "$LINENO"; then :
15839  ac_cv_c_bigendian=no
15840else
15841  ac_cv_c_bigendian=yes
15842fi
15843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15844  conftest.$ac_objext conftest.beam conftest.$ac_ext
15845fi
15846
15847    fi
15848fi
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15850$as_echo "$ac_cv_c_bigendian" >&6; }
15851 case $ac_cv_c_bigendian in #(
15852   yes)
15853     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15854;; #(
15855   no)
15856      ;; #(
15857   universal)
15858
15859$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15860
15861     ;; #(
15862   *)
15863     as_fn_error $? "unknown endianness
15864 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15865 esac
15866
15867
15868for ac_func in fork setitimer getrusage getpwuid_r nanosleep daemon getpid localtime mmap explicit_bzero
15869do :
15870  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15871ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15872if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15873  cat >>confdefs.h <<_ACEOF
15874#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15875_ACEOF
15876
15877fi
15878done
15879
15880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5
15881$as_echo_n "checking for clock_gettime... " >&6; }
15882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883/* end confdefs.h.  */
15884#include <time.h>
15885int
15886main ()
15887{
15888clock_gettime(0, 0);
15889  ;
15890  return 0;
15891}
15892_ACEOF
15893if ac_fn_c_try_link "$LINENO"; then :
15894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15895$as_echo "yes" >&6; }; ac_cv_func_clock_gettime=yes
15896
15897$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15898
15899else
15900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901$as_echo "no" >&6; }; ac_cv_func_clock_gettime=no
15902fi
15903rm -f core conftest.err conftest.$ac_objext \
15904    conftest$ac_exeext conftest.$ac_ext
15905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmemopen" >&5
15906$as_echo_n "checking for fmemopen... " >&6; }
15907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908/* end confdefs.h.  */
15909#include <stdio.h>
15910int
15911main ()
15912{
15913fmemopen(0, 0, 0);
15914  ;
15915  return 0;
15916}
15917_ACEOF
15918if ac_fn_c_try_link "$LINENO"; then :
15919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15920$as_echo "yes" >&6; }; ac_cv_func_fmemopen=yes
15921
15922$as_echo "#define HAVE_FMEMOPEN 1" >>confdefs.h
15923
15924else
15925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15926$as_echo "no" >&6; }; ac_cv_func_fmemopen=no
15927fi
15928rm -f core conftest.err conftest.$ac_objext \
15929    conftest$ac_exeext conftest.$ac_ext
15930
15931 if test "$ac_cv_func_fork" != "no"; then
15932  HAVE_FORK_TRUE=
15933  HAVE_FORK_FALSE='#'
15934else
15935  HAVE_FORK_TRUE='#'
15936  HAVE_FORK_FALSE=
15937fi
15938
15939
15940for ac_func in __register_atfork secure_getenv getauxval
15941do :
15942  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15943ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15944if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15945  cat >>confdefs.h <<_ACEOF
15946#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15947_ACEOF
15948
15949fi
15950done
15951
15952
15953# Check whether --enable-seccomp-tests was given.
15954if test "${enable_seccomp_tests+set}" = set; then :
15955  enableval=$enable_seccomp_tests; seccomp_tests=$enableval
15956else
15957  seccomp_tests=no
15958fi
15959
15960
15961 if test "$seccomp_tests" = "yes"; then
15962  HAVE_SECCOMP_TESTS_TRUE=
15963  HAVE_SECCOMP_TESTS_FALSE='#'
15964else
15965  HAVE_SECCOMP_TESTS_TRUE='#'
15966  HAVE_SECCOMP_TESTS_FALSE=
15967fi
15968
15969
15970# check for libseccomp - used in test programs
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983    use_additional=yes
15984
15985  acl_save_prefix="$prefix"
15986  prefix="$acl_final_prefix"
15987  acl_save_exec_prefix="$exec_prefix"
15988  exec_prefix="$acl_final_exec_prefix"
15989
15990    eval additional_includedir=\"$includedir\"
15991    eval additional_libdir=\"$libdir\"
15992    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
15993    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
15994
15995  exec_prefix="$acl_save_exec_prefix"
15996  prefix="$acl_save_prefix"
15997
15998
15999# Check whether --with-libseccomp-prefix was given.
16000if test "${with_libseccomp_prefix+set}" = set; then :
16001  withval=$with_libseccomp_prefix;
16002    if test "X$withval" = "Xno"; then
16003      use_additional=no
16004    else
16005      if test "X$withval" = "X"; then
16006
16007  acl_save_prefix="$prefix"
16008  prefix="$acl_final_prefix"
16009  acl_save_exec_prefix="$exec_prefix"
16010  exec_prefix="$acl_final_exec_prefix"
16011
16012          eval additional_includedir=\"$includedir\"
16013          eval additional_libdir=\"$libdir\"
16014          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16015          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16016
16017  exec_prefix="$acl_save_exec_prefix"
16018  prefix="$acl_save_prefix"
16019
16020      else
16021        additional_includedir="$withval/include"
16022        additional_libdir="$withval/$acl_libdirstem"
16023        additional_libdir2="$withval/$acl_libdirstem2"
16024        additional_libdir3="$withval/$acl_libdirstem3"
16025      fi
16026    fi
16027
16028fi
16029
16030  if test "X$additional_libdir2" = "X$additional_libdir"; then
16031    additional_libdir2=
16032  fi
16033  if test "X$additional_libdir3" = "X$additional_libdir"; then
16034    additional_libdir3=
16035  fi
16036      LIBSECCOMP=
16037  LTLIBSECCOMP=
16038  INCSECCOMP=
16039  LIBSECCOMP_PREFIX=
16040      HAVE_LIBSECCOMP=
16041  rpathdirs=
16042  ltrpathdirs=
16043  names_already_handled=
16044  names_next_round='seccomp '
16045  while test -n "$names_next_round"; do
16046    names_this_round="$names_next_round"
16047    names_next_round=
16048    for name in $names_this_round; do
16049      already_handled=
16050      for n in $names_already_handled; do
16051        if test "$n" = "$name"; then
16052          already_handled=yes
16053          break
16054        fi
16055      done
16056      if test -z "$already_handled"; then
16057        names_already_handled="$names_already_handled $name"
16058                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16059        eval value=\"\$HAVE_LIB$uppername\"
16060        if test -n "$value"; then
16061          if test "$value" = yes; then
16062            eval value=\"\$LIB$uppername\"
16063            test -z "$value" || LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$value"
16064            eval value=\"\$LTLIB$uppername\"
16065            test -z "$value" || LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }$value"
16066          else
16067                                    :
16068          fi
16069        else
16070                              found_dir=
16071          found_la=
16072          found_so=
16073          found_a=
16074          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16075          if test -n "$acl_shlibext"; then
16076            shrext=".$acl_shlibext"             # typically: shrext=.so
16077          else
16078            shrext=
16079          fi
16080          if test $use_additional = yes; then
16081            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
16082              if test "X$found_dir" = "X"; then
16083                eval dir=\$$additional_libdir_variable
16084                if test -n "$dir"; then
16085                                                      if test -n "$acl_shlibext"; then
16086                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16087                      found_dir="$dir"
16088                      found_so="$dir/$libname$shrext"
16089                    else
16090                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16091                        ver=`(cd "$dir" && \
16092                              for f in "$libname$shrext".*; do echo "$f"; done \
16093                              | sed -e "s,^$libname$shrext\\\\.,," \
16094                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16095                              | sed 1q ) 2>/dev/null`
16096                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16097                          found_dir="$dir"
16098                          found_so="$dir/$libname$shrext.$ver"
16099                        fi
16100                      else
16101                        eval library_names=\"$acl_library_names_spec\"
16102                        for f in $library_names; do
16103                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16104                            found_dir="$dir"
16105                            found_so="$dir/$f"
16106                            break
16107                          fi
16108                        done
16109                      fi
16110                    fi
16111                  fi
16112                                    if test "X$found_dir" = "X"; then
16113                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16114                      found_dir="$dir"
16115                      found_a="$dir/$libname.$acl_libext"
16116                    fi
16117                  fi
16118                  if test "X$found_dir" != "X"; then
16119                    if test -f "$dir/$libname.la"; then
16120                      found_la="$dir/$libname.la"
16121                    fi
16122                  fi
16123                fi
16124              fi
16125            done
16126          fi
16127          if test "X$found_dir" = "X"; then
16128            for x in $LDFLAGS $LTLIBSECCOMP; do
16129
16130  acl_save_prefix="$prefix"
16131  prefix="$acl_final_prefix"
16132  acl_save_exec_prefix="$exec_prefix"
16133  exec_prefix="$acl_final_exec_prefix"
16134  eval x=\"$x\"
16135  exec_prefix="$acl_save_exec_prefix"
16136  prefix="$acl_save_prefix"
16137
16138              case "$x" in
16139                -L*)
16140                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16141                                    if test -n "$acl_shlibext"; then
16142                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16143                      found_dir="$dir"
16144                      found_so="$dir/$libname$shrext"
16145                    else
16146                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16147                        ver=`(cd "$dir" && \
16148                              for f in "$libname$shrext".*; do echo "$f"; done \
16149                              | sed -e "s,^$libname$shrext\\\\.,," \
16150                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16151                              | sed 1q ) 2>/dev/null`
16152                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16153                          found_dir="$dir"
16154                          found_so="$dir/$libname$shrext.$ver"
16155                        fi
16156                      else
16157                        eval library_names=\"$acl_library_names_spec\"
16158                        for f in $library_names; do
16159                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16160                            found_dir="$dir"
16161                            found_so="$dir/$f"
16162                            break
16163                          fi
16164                        done
16165                      fi
16166                    fi
16167                  fi
16168                                    if test "X$found_dir" = "X"; then
16169                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16170                      found_dir="$dir"
16171                      found_a="$dir/$libname.$acl_libext"
16172                    fi
16173                  fi
16174                  if test "X$found_dir" != "X"; then
16175                    if test -f "$dir/$libname.la"; then
16176                      found_la="$dir/$libname.la"
16177                    fi
16178                  fi
16179                  ;;
16180              esac
16181              if test "X$found_dir" != "X"; then
16182                break
16183              fi
16184            done
16185          fi
16186          if test "X$found_dir" != "X"; then
16187                        LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }-L$found_dir -l$name"
16188            if test "X$found_so" != "X"; then
16189                                                        if test "$enable_rpath" = no \
16190                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16191                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
16192                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
16193                                LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_so"
16194              else
16195                                                                                haveit=
16196                for x in $ltrpathdirs; do
16197                  if test "X$x" = "X$found_dir"; then
16198                    haveit=yes
16199                    break
16200                  fi
16201                done
16202                if test -z "$haveit"; then
16203                  ltrpathdirs="$ltrpathdirs $found_dir"
16204                fi
16205                                if test "$acl_hardcode_direct" = yes; then
16206                                                      LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_so"
16207                else
16208                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16209                                                            LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_so"
16210                                                            haveit=
16211                    for x in $rpathdirs; do
16212                      if test "X$x" = "X$found_dir"; then
16213                        haveit=yes
16214                        break
16215                      fi
16216                    done
16217                    if test -z "$haveit"; then
16218                      rpathdirs="$rpathdirs $found_dir"
16219                    fi
16220                  else
16221                                                                                haveit=
16222                    for x in $LDFLAGS $LIBSECCOMP; do
16223
16224  acl_save_prefix="$prefix"
16225  prefix="$acl_final_prefix"
16226  acl_save_exec_prefix="$exec_prefix"
16227  exec_prefix="$acl_final_exec_prefix"
16228  eval x=\"$x\"
16229  exec_prefix="$acl_save_exec_prefix"
16230  prefix="$acl_save_prefix"
16231
16232                      if test "X$x" = "X-L$found_dir"; then
16233                        haveit=yes
16234                        break
16235                      fi
16236                    done
16237                    if test -z "$haveit"; then
16238                      LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-L$found_dir"
16239                    fi
16240                    if test "$acl_hardcode_minus_L" != no; then
16241                                                                                        LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_so"
16242                    else
16243                                                                                                                                                                                LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-l$name"
16244                    fi
16245                  fi
16246                fi
16247              fi
16248            else
16249              if test "X$found_a" != "X"; then
16250                                LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$found_a"
16251              else
16252                                                LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-L$found_dir -l$name"
16253              fi
16254            fi
16255                        additional_includedir=
16256            case "$found_dir" in
16257              */$acl_libdirstem | */$acl_libdirstem/)
16258                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16259                if test "$name" = 'seccomp'; then
16260                  LIBSECCOMP_PREFIX="$basedir"
16261                fi
16262                additional_includedir="$basedir/include"
16263                ;;
16264              */$acl_libdirstem2 | */$acl_libdirstem2/)
16265                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16266                if test "$name" = 'seccomp'; then
16267                  LIBSECCOMP_PREFIX="$basedir"
16268                fi
16269                additional_includedir="$basedir/include"
16270                ;;
16271              */$acl_libdirstem3 | */$acl_libdirstem3/)
16272                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
16273                if test "$name" = 'seccomp'; then
16274                  LIBSECCOMP_PREFIX="$basedir"
16275                fi
16276                additional_includedir="$basedir/include"
16277                ;;
16278            esac
16279            if test "X$additional_includedir" != "X"; then
16280                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16281                haveit=
16282                if test "X$additional_includedir" = "X/usr/local/include"; then
16283                  if test -n "$GCC"; then
16284                    case $host_os in
16285                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16286                    esac
16287                  fi
16288                fi
16289                if test -z "$haveit"; then
16290                  for x in $CPPFLAGS $INCSECCOMP; do
16291
16292  acl_save_prefix="$prefix"
16293  prefix="$acl_final_prefix"
16294  acl_save_exec_prefix="$exec_prefix"
16295  exec_prefix="$acl_final_exec_prefix"
16296  eval x=\"$x\"
16297  exec_prefix="$acl_save_exec_prefix"
16298  prefix="$acl_save_prefix"
16299
16300                    if test "X$x" = "X-I$additional_includedir"; then
16301                      haveit=yes
16302                      break
16303                    fi
16304                  done
16305                  if test -z "$haveit"; then
16306                    if test -d "$additional_includedir"; then
16307                                            INCSECCOMP="${INCSECCOMP}${INCSECCOMP:+ }-I$additional_includedir"
16308                    fi
16309                  fi
16310                fi
16311              fi
16312            fi
16313                        if test -n "$found_la"; then
16314                                                        save_libdir="$libdir"
16315              case "$found_la" in
16316                */* | *\\*) . "$found_la" ;;
16317                *) . "./$found_la" ;;
16318              esac
16319              libdir="$save_libdir"
16320                            for dep in $dependency_libs; do
16321                case "$dep" in
16322                  -L*)
16323                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16324                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
16325                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
16326                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
16327                      haveit=
16328                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
16329                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
16330                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
16331                        if test -n "$GCC"; then
16332                          case $host_os in
16333                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16334                          esac
16335                        fi
16336                      fi
16337                      if test -z "$haveit"; then
16338                        haveit=
16339                        for x in $LDFLAGS $LIBSECCOMP; do
16340
16341  acl_save_prefix="$prefix"
16342  prefix="$acl_final_prefix"
16343  acl_save_exec_prefix="$exec_prefix"
16344  exec_prefix="$acl_final_exec_prefix"
16345  eval x=\"$x\"
16346  exec_prefix="$acl_save_exec_prefix"
16347  prefix="$acl_save_prefix"
16348
16349                          if test "X$x" = "X-L$dependency_libdir"; then
16350                            haveit=yes
16351                            break
16352                          fi
16353                        done
16354                        if test -z "$haveit"; then
16355                          if test -d "$dependency_libdir"; then
16356                                                        LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-L$dependency_libdir"
16357                          fi
16358                        fi
16359                        haveit=
16360                        for x in $LDFLAGS $LTLIBSECCOMP; do
16361
16362  acl_save_prefix="$prefix"
16363  prefix="$acl_final_prefix"
16364  acl_save_exec_prefix="$exec_prefix"
16365  exec_prefix="$acl_final_exec_prefix"
16366  eval x=\"$x\"
16367  exec_prefix="$acl_save_exec_prefix"
16368  prefix="$acl_save_prefix"
16369
16370                          if test "X$x" = "X-L$dependency_libdir"; then
16371                            haveit=yes
16372                            break
16373                          fi
16374                        done
16375                        if test -z "$haveit"; then
16376                          if test -d "$dependency_libdir"; then
16377                                                        LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }-L$dependency_libdir"
16378                          fi
16379                        fi
16380                      fi
16381                    fi
16382                    ;;
16383                  -R*)
16384                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16385                    if test "$enable_rpath" != no; then
16386                                                                  haveit=
16387                      for x in $rpathdirs; do
16388                        if test "X$x" = "X$dir"; then
16389                          haveit=yes
16390                          break
16391                        fi
16392                      done
16393                      if test -z "$haveit"; then
16394                        rpathdirs="$rpathdirs $dir"
16395                      fi
16396                                                                  haveit=
16397                      for x in $ltrpathdirs; do
16398                        if test "X$x" = "X$dir"; then
16399                          haveit=yes
16400                          break
16401                        fi
16402                      done
16403                      if test -z "$haveit"; then
16404                        ltrpathdirs="$ltrpathdirs $dir"
16405                      fi
16406                    fi
16407                    ;;
16408                  -l*)
16409                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16410                    ;;
16411                  *.la)
16412                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16413                    ;;
16414                  *)
16415                                        LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$dep"
16416                    LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }$dep"
16417                    ;;
16418                esac
16419              done
16420            fi
16421          else
16422                                                            LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }-l$name"
16423            LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }-l$name"
16424          fi
16425        fi
16426      fi
16427    done
16428  done
16429  if test "X$rpathdirs" != "X"; then
16430    if test -n "$acl_hardcode_libdir_separator"; then
16431                        alldirs=
16432      for found_dir in $rpathdirs; do
16433        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16434      done
16435            acl_save_libdir="$libdir"
16436      libdir="$alldirs"
16437      eval flag=\"$acl_hardcode_libdir_flag_spec\"
16438      libdir="$acl_save_libdir"
16439      LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$flag"
16440    else
16441            for found_dir in $rpathdirs; do
16442        acl_save_libdir="$libdir"
16443        libdir="$found_dir"
16444        eval flag=\"$acl_hardcode_libdir_flag_spec\"
16445        libdir="$acl_save_libdir"
16446        LIBSECCOMP="${LIBSECCOMP}${LIBSECCOMP:+ }$flag"
16447      done
16448    fi
16449  fi
16450  if test "X$ltrpathdirs" != "X"; then
16451            for found_dir in $ltrpathdirs; do
16452      LTLIBSECCOMP="${LTLIBSECCOMP}${LTLIBSECCOMP:+ }-R$found_dir"
16453    done
16454  fi
16455
16456
16457
16458
16459
16460
16461        ac_save_CPPFLAGS="$CPPFLAGS"
16462
16463  for element in $INCSECCOMP; do
16464    haveit=
16465    for x in $CPPFLAGS; do
16466
16467  acl_save_prefix="$prefix"
16468  prefix="$acl_final_prefix"
16469  acl_save_exec_prefix="$exec_prefix"
16470  exec_prefix="$acl_final_exec_prefix"
16471  eval x=\"$x\"
16472  exec_prefix="$acl_save_exec_prefix"
16473  prefix="$acl_save_prefix"
16474
16475      if test "X$x" = "X$element"; then
16476        haveit=yes
16477        break
16478      fi
16479    done
16480    if test -z "$haveit"; then
16481      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16482    fi
16483  done
16484
16485
16486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp" >&5
16487$as_echo_n "checking for libseccomp... " >&6; }
16488if ${ac_cv_libseccomp+:} false; then :
16489  $as_echo_n "(cached) " >&6
16490else
16491
16492    ac_save_LIBS="$LIBS"
16493                                case " $LIBSECCOMP" in
16494      *" -l"*) LIBS="$LIBS $LIBSECCOMP" ;;
16495      *)       LIBS="$LIBSECCOMP $LIBS" ;;
16496    esac
16497    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498/* end confdefs.h.  */
16499#include <seccomp.h>
16500
16501int
16502main ()
16503{
16504seccomp_init(0);
16505  ;
16506  return 0;
16507}
16508_ACEOF
16509if ac_fn_c_try_link "$LINENO"; then :
16510  ac_cv_libseccomp=yes
16511else
16512  ac_cv_libseccomp='no'
16513fi
16514rm -f core conftest.err conftest.$ac_objext \
16515    conftest$ac_exeext conftest.$ac_ext
16516    LIBS="$ac_save_LIBS"
16517
16518fi
16519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libseccomp" >&5
16520$as_echo "$ac_cv_libseccomp" >&6; }
16521  if test "$ac_cv_libseccomp" = yes; then
16522    HAVE_LIBSECCOMP=yes
16523
16524$as_echo "#define HAVE_LIBSECCOMP 1" >>confdefs.h
16525
16526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libseccomp" >&5
16527$as_echo_n "checking how to link with libseccomp... " >&6; }
16528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSECCOMP" >&5
16529$as_echo "$LIBSECCOMP" >&6; }
16530  else
16531    HAVE_LIBSECCOMP=no
16532            CPPFLAGS="$ac_save_CPPFLAGS"
16533    LIBSECCOMP=
16534    LTLIBSECCOMP=
16535    LIBSECCOMP_PREFIX=
16536  fi
16537
16538
16539
16540
16541
16542
16543
16544
16545# check for libcrypto - used in test programs
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558    use_additional=yes
16559
16560  acl_save_prefix="$prefix"
16561  prefix="$acl_final_prefix"
16562  acl_save_exec_prefix="$exec_prefix"
16563  exec_prefix="$acl_final_exec_prefix"
16564
16565    eval additional_includedir=\"$includedir\"
16566    eval additional_libdir=\"$libdir\"
16567    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16568    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16569
16570  exec_prefix="$acl_save_exec_prefix"
16571  prefix="$acl_save_prefix"
16572
16573
16574# Check whether --with-libcrypto-prefix was given.
16575if test "${with_libcrypto_prefix+set}" = set; then :
16576  withval=$with_libcrypto_prefix;
16577    if test "X$withval" = "Xno"; then
16578      use_additional=no
16579    else
16580      if test "X$withval" = "X"; then
16581
16582  acl_save_prefix="$prefix"
16583  prefix="$acl_final_prefix"
16584  acl_save_exec_prefix="$exec_prefix"
16585  exec_prefix="$acl_final_exec_prefix"
16586
16587          eval additional_includedir=\"$includedir\"
16588          eval additional_libdir=\"$libdir\"
16589          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
16590          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
16591
16592  exec_prefix="$acl_save_exec_prefix"
16593  prefix="$acl_save_prefix"
16594
16595      else
16596        additional_includedir="$withval/include"
16597        additional_libdir="$withval/$acl_libdirstem"
16598        additional_libdir2="$withval/$acl_libdirstem2"
16599        additional_libdir3="$withval/$acl_libdirstem3"
16600      fi
16601    fi
16602
16603fi
16604
16605  if test "X$additional_libdir2" = "X$additional_libdir"; then
16606    additional_libdir2=
16607  fi
16608  if test "X$additional_libdir3" = "X$additional_libdir"; then
16609    additional_libdir3=
16610  fi
16611      LIBCRYPTO=
16612  LTLIBCRYPTO=
16613  INCCRYPTO=
16614  LIBCRYPTO_PREFIX=
16615      HAVE_LIBCRYPTO=
16616  rpathdirs=
16617  ltrpathdirs=
16618  names_already_handled=
16619  names_next_round='crypto '
16620  while test -n "$names_next_round"; do
16621    names_this_round="$names_next_round"
16622    names_next_round=
16623    for name in $names_this_round; do
16624      already_handled=
16625      for n in $names_already_handled; do
16626        if test "$n" = "$name"; then
16627          already_handled=yes
16628          break
16629        fi
16630      done
16631      if test -z "$already_handled"; then
16632        names_already_handled="$names_already_handled $name"
16633                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16634        eval value=\"\$HAVE_LIB$uppername\"
16635        if test -n "$value"; then
16636          if test "$value" = yes; then
16637            eval value=\"\$LIB$uppername\"
16638            test -z "$value" || LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$value"
16639            eval value=\"\$LTLIB$uppername\"
16640            test -z "$value" || LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }$value"
16641          else
16642                                    :
16643          fi
16644        else
16645                              found_dir=
16646          found_la=
16647          found_so=
16648          found_a=
16649          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16650          if test -n "$acl_shlibext"; then
16651            shrext=".$acl_shlibext"             # typically: shrext=.so
16652          else
16653            shrext=
16654          fi
16655          if test $use_additional = yes; then
16656            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
16657              if test "X$found_dir" = "X"; then
16658                eval dir=\$$additional_libdir_variable
16659                if test -n "$dir"; then
16660                                                      if test -n "$acl_shlibext"; then
16661                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16662                      found_dir="$dir"
16663                      found_so="$dir/$libname$shrext"
16664                    else
16665                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16666                        ver=`(cd "$dir" && \
16667                              for f in "$libname$shrext".*; do echo "$f"; done \
16668                              | sed -e "s,^$libname$shrext\\\\.,," \
16669                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16670                              | sed 1q ) 2>/dev/null`
16671                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16672                          found_dir="$dir"
16673                          found_so="$dir/$libname$shrext.$ver"
16674                        fi
16675                      else
16676                        eval library_names=\"$acl_library_names_spec\"
16677                        for f in $library_names; do
16678                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16679                            found_dir="$dir"
16680                            found_so="$dir/$f"
16681                            break
16682                          fi
16683                        done
16684                      fi
16685                    fi
16686                  fi
16687                                    if test "X$found_dir" = "X"; then
16688                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16689                      found_dir="$dir"
16690                      found_a="$dir/$libname.$acl_libext"
16691                    fi
16692                  fi
16693                  if test "X$found_dir" != "X"; then
16694                    if test -f "$dir/$libname.la"; then
16695                      found_la="$dir/$libname.la"
16696                    fi
16697                  fi
16698                fi
16699              fi
16700            done
16701          fi
16702          if test "X$found_dir" = "X"; then
16703            for x in $LDFLAGS $LTLIBCRYPTO; do
16704
16705  acl_save_prefix="$prefix"
16706  prefix="$acl_final_prefix"
16707  acl_save_exec_prefix="$exec_prefix"
16708  exec_prefix="$acl_final_exec_prefix"
16709  eval x=\"$x\"
16710  exec_prefix="$acl_save_exec_prefix"
16711  prefix="$acl_save_prefix"
16712
16713              case "$x" in
16714                -L*)
16715                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16716                                    if test -n "$acl_shlibext"; then
16717                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
16718                      found_dir="$dir"
16719                      found_so="$dir/$libname$shrext"
16720                    else
16721                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16722                        ver=`(cd "$dir" && \
16723                              for f in "$libname$shrext".*; do echo "$f"; done \
16724                              | sed -e "s,^$libname$shrext\\\\.,," \
16725                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16726                              | sed 1q ) 2>/dev/null`
16727                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
16728                          found_dir="$dir"
16729                          found_so="$dir/$libname$shrext.$ver"
16730                        fi
16731                      else
16732                        eval library_names=\"$acl_library_names_spec\"
16733                        for f in $library_names; do
16734                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
16735                            found_dir="$dir"
16736                            found_so="$dir/$f"
16737                            break
16738                          fi
16739                        done
16740                      fi
16741                    fi
16742                  fi
16743                                    if test "X$found_dir" = "X"; then
16744                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
16745                      found_dir="$dir"
16746                      found_a="$dir/$libname.$acl_libext"
16747                    fi
16748                  fi
16749                  if test "X$found_dir" != "X"; then
16750                    if test -f "$dir/$libname.la"; then
16751                      found_la="$dir/$libname.la"
16752                    fi
16753                  fi
16754                  ;;
16755              esac
16756              if test "X$found_dir" != "X"; then
16757                break
16758              fi
16759            done
16760          fi
16761          if test "X$found_dir" != "X"; then
16762                        LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }-L$found_dir -l$name"
16763            if test "X$found_so" != "X"; then
16764                                                        if test "$enable_rpath" = no \
16765                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16766                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
16767                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
16768                                LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_so"
16769              else
16770                                                                                haveit=
16771                for x in $ltrpathdirs; do
16772                  if test "X$x" = "X$found_dir"; then
16773                    haveit=yes
16774                    break
16775                  fi
16776                done
16777                if test -z "$haveit"; then
16778                  ltrpathdirs="$ltrpathdirs $found_dir"
16779                fi
16780                                if test "$acl_hardcode_direct" = yes; then
16781                                                      LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_so"
16782                else
16783                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16784                                                            LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_so"
16785                                                            haveit=
16786                    for x in $rpathdirs; do
16787                      if test "X$x" = "X$found_dir"; then
16788                        haveit=yes
16789                        break
16790                      fi
16791                    done
16792                    if test -z "$haveit"; then
16793                      rpathdirs="$rpathdirs $found_dir"
16794                    fi
16795                  else
16796                                                                                haveit=
16797                    for x in $LDFLAGS $LIBCRYPTO; do
16798
16799  acl_save_prefix="$prefix"
16800  prefix="$acl_final_prefix"
16801  acl_save_exec_prefix="$exec_prefix"
16802  exec_prefix="$acl_final_exec_prefix"
16803  eval x=\"$x\"
16804  exec_prefix="$acl_save_exec_prefix"
16805  prefix="$acl_save_prefix"
16806
16807                      if test "X$x" = "X-L$found_dir"; then
16808                        haveit=yes
16809                        break
16810                      fi
16811                    done
16812                    if test -z "$haveit"; then
16813                      LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-L$found_dir"
16814                    fi
16815                    if test "$acl_hardcode_minus_L" != no; then
16816                                                                                        LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_so"
16817                    else
16818                                                                                                                                                                                LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-l$name"
16819                    fi
16820                  fi
16821                fi
16822              fi
16823            else
16824              if test "X$found_a" != "X"; then
16825                                LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$found_a"
16826              else
16827                                                LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-L$found_dir -l$name"
16828              fi
16829            fi
16830                        additional_includedir=
16831            case "$found_dir" in
16832              */$acl_libdirstem | */$acl_libdirstem/)
16833                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16834                if test "$name" = 'crypto'; then
16835                  LIBCRYPTO_PREFIX="$basedir"
16836                fi
16837                additional_includedir="$basedir/include"
16838                ;;
16839              */$acl_libdirstem2 | */$acl_libdirstem2/)
16840                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16841                if test "$name" = 'crypto'; then
16842                  LIBCRYPTO_PREFIX="$basedir"
16843                fi
16844                additional_includedir="$basedir/include"
16845                ;;
16846              */$acl_libdirstem3 | */$acl_libdirstem3/)
16847                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
16848                if test "$name" = 'crypto'; then
16849                  LIBCRYPTO_PREFIX="$basedir"
16850                fi
16851                additional_includedir="$basedir/include"
16852                ;;
16853            esac
16854            if test "X$additional_includedir" != "X"; then
16855                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16856                haveit=
16857                if test "X$additional_includedir" = "X/usr/local/include"; then
16858                  if test -n "$GCC"; then
16859                    case $host_os in
16860                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16861                    esac
16862                  fi
16863                fi
16864                if test -z "$haveit"; then
16865                  for x in $CPPFLAGS $INCCRYPTO; do
16866
16867  acl_save_prefix="$prefix"
16868  prefix="$acl_final_prefix"
16869  acl_save_exec_prefix="$exec_prefix"
16870  exec_prefix="$acl_final_exec_prefix"
16871  eval x=\"$x\"
16872  exec_prefix="$acl_save_exec_prefix"
16873  prefix="$acl_save_prefix"
16874
16875                    if test "X$x" = "X-I$additional_includedir"; then
16876                      haveit=yes
16877                      break
16878                    fi
16879                  done
16880                  if test -z "$haveit"; then
16881                    if test -d "$additional_includedir"; then
16882                                            INCCRYPTO="${INCCRYPTO}${INCCRYPTO:+ }-I$additional_includedir"
16883                    fi
16884                  fi
16885                fi
16886              fi
16887            fi
16888                        if test -n "$found_la"; then
16889                                                        save_libdir="$libdir"
16890              case "$found_la" in
16891                */* | *\\*) . "$found_la" ;;
16892                *) . "./$found_la" ;;
16893              esac
16894              libdir="$save_libdir"
16895                            for dep in $dependency_libs; do
16896                case "$dep" in
16897                  -L*)
16898                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16899                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
16900                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
16901                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
16902                      haveit=
16903                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
16904                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
16905                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
16906                        if test -n "$GCC"; then
16907                          case $host_os in
16908                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16909                          esac
16910                        fi
16911                      fi
16912                      if test -z "$haveit"; then
16913                        haveit=
16914                        for x in $LDFLAGS $LIBCRYPTO; do
16915
16916  acl_save_prefix="$prefix"
16917  prefix="$acl_final_prefix"
16918  acl_save_exec_prefix="$exec_prefix"
16919  exec_prefix="$acl_final_exec_prefix"
16920  eval x=\"$x\"
16921  exec_prefix="$acl_save_exec_prefix"
16922  prefix="$acl_save_prefix"
16923
16924                          if test "X$x" = "X-L$dependency_libdir"; then
16925                            haveit=yes
16926                            break
16927                          fi
16928                        done
16929                        if test -z "$haveit"; then
16930                          if test -d "$dependency_libdir"; then
16931                                                        LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-L$dependency_libdir"
16932                          fi
16933                        fi
16934                        haveit=
16935                        for x in $LDFLAGS $LTLIBCRYPTO; do
16936
16937  acl_save_prefix="$prefix"
16938  prefix="$acl_final_prefix"
16939  acl_save_exec_prefix="$exec_prefix"
16940  exec_prefix="$acl_final_exec_prefix"
16941  eval x=\"$x\"
16942  exec_prefix="$acl_save_exec_prefix"
16943  prefix="$acl_save_prefix"
16944
16945                          if test "X$x" = "X-L$dependency_libdir"; then
16946                            haveit=yes
16947                            break
16948                          fi
16949                        done
16950                        if test -z "$haveit"; then
16951                          if test -d "$dependency_libdir"; then
16952                                                        LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }-L$dependency_libdir"
16953                          fi
16954                        fi
16955                      fi
16956                    fi
16957                    ;;
16958                  -R*)
16959                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16960                    if test "$enable_rpath" != no; then
16961                                                                  haveit=
16962                      for x in $rpathdirs; do
16963                        if test "X$x" = "X$dir"; then
16964                          haveit=yes
16965                          break
16966                        fi
16967                      done
16968                      if test -z "$haveit"; then
16969                        rpathdirs="$rpathdirs $dir"
16970                      fi
16971                                                                  haveit=
16972                      for x in $ltrpathdirs; do
16973                        if test "X$x" = "X$dir"; then
16974                          haveit=yes
16975                          break
16976                        fi
16977                      done
16978                      if test -z "$haveit"; then
16979                        ltrpathdirs="$ltrpathdirs $dir"
16980                      fi
16981                    fi
16982                    ;;
16983                  -l*)
16984                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16985                    ;;
16986                  *.la)
16987                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16988                    ;;
16989                  *)
16990                                        LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$dep"
16991                    LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }$dep"
16992                    ;;
16993                esac
16994              done
16995            fi
16996          else
16997                                                            LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }-l$name"
16998            LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }-l$name"
16999          fi
17000        fi
17001      fi
17002    done
17003  done
17004  if test "X$rpathdirs" != "X"; then
17005    if test -n "$acl_hardcode_libdir_separator"; then
17006                        alldirs=
17007      for found_dir in $rpathdirs; do
17008        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17009      done
17010            acl_save_libdir="$libdir"
17011      libdir="$alldirs"
17012      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17013      libdir="$acl_save_libdir"
17014      LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$flag"
17015    else
17016            for found_dir in $rpathdirs; do
17017        acl_save_libdir="$libdir"
17018        libdir="$found_dir"
17019        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17020        libdir="$acl_save_libdir"
17021        LIBCRYPTO="${LIBCRYPTO}${LIBCRYPTO:+ }$flag"
17022      done
17023    fi
17024  fi
17025  if test "X$ltrpathdirs" != "X"; then
17026            for found_dir in $ltrpathdirs; do
17027      LTLIBCRYPTO="${LTLIBCRYPTO}${LTLIBCRYPTO:+ }-R$found_dir"
17028    done
17029  fi
17030
17031
17032
17033
17034
17035
17036        ac_save_CPPFLAGS="$CPPFLAGS"
17037
17038  for element in $INCCRYPTO; do
17039    haveit=
17040    for x in $CPPFLAGS; do
17041
17042  acl_save_prefix="$prefix"
17043  prefix="$acl_final_prefix"
17044  acl_save_exec_prefix="$exec_prefix"
17045  exec_prefix="$acl_final_exec_prefix"
17046  eval x=\"$x\"
17047  exec_prefix="$acl_save_exec_prefix"
17048  prefix="$acl_save_prefix"
17049
17050      if test "X$x" = "X$element"; then
17051        haveit=yes
17052        break
17053      fi
17054    done
17055    if test -z "$haveit"; then
17056      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17057    fi
17058  done
17059
17060
17061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5
17062$as_echo_n "checking for libcrypto... " >&6; }
17063if ${ac_cv_libcrypto+:} false; then :
17064  $as_echo_n "(cached) " >&6
17065else
17066
17067    ac_save_LIBS="$LIBS"
17068                                case " $LIBCRYPTO" in
17069      *" -l"*) LIBS="$LIBS $LIBCRYPTO" ;;
17070      *)       LIBS="$LIBCRYPTO $LIBS" ;;
17071    esac
17072    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073/* end confdefs.h.  */
17074#include <openssl/evp.h>
17075
17076int
17077main ()
17078{
17079EVP_CIPHER_CTX_init(NULL);
17080  ;
17081  return 0;
17082}
17083_ACEOF
17084if ac_fn_c_try_link "$LINENO"; then :
17085  ac_cv_libcrypto=yes
17086else
17087  ac_cv_libcrypto='no'
17088fi
17089rm -f core conftest.err conftest.$ac_objext \
17090    conftest$ac_exeext conftest.$ac_ext
17091    LIBS="$ac_save_LIBS"
17092
17093fi
17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libcrypto" >&5
17095$as_echo "$ac_cv_libcrypto" >&6; }
17096  if test "$ac_cv_libcrypto" = yes; then
17097    HAVE_LIBCRYPTO=yes
17098
17099$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17100
17101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libcrypto" >&5
17102$as_echo_n "checking how to link with libcrypto... " >&6; }
17103    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBCRYPTO" >&5
17104$as_echo "$LIBCRYPTO" >&6; }
17105  else
17106    HAVE_LIBCRYPTO=no
17107            CPPFLAGS="$ac_save_CPPFLAGS"
17108    LIBCRYPTO=
17109    LTLIBCRYPTO=
17110    LIBCRYPTO_PREFIX=
17111  fi
17112
17113
17114
17115
17116
17117
17118
17119
17120 if test "$HAVE_LIBCRYPTO" = "yes"; then
17121  HAVE_LIBCRYPTO_TRUE=
17122  HAVE_LIBCRYPTO_FALSE='#'
17123else
17124  HAVE_LIBCRYPTO_TRUE='#'
17125  HAVE_LIBCRYPTO_FALSE=
17126fi
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141    use_additional=yes
17142
17143  acl_save_prefix="$prefix"
17144  prefix="$acl_final_prefix"
17145  acl_save_exec_prefix="$exec_prefix"
17146  exec_prefix="$acl_final_exec_prefix"
17147
17148    eval additional_includedir=\"$includedir\"
17149    eval additional_libdir=\"$libdir\"
17150    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17151    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17152
17153  exec_prefix="$acl_save_exec_prefix"
17154  prefix="$acl_save_prefix"
17155
17156
17157# Check whether --with-librt-prefix was given.
17158if test "${with_librt_prefix+set}" = set; then :
17159  withval=$with_librt_prefix;
17160    if test "X$withval" = "Xno"; then
17161      use_additional=no
17162    else
17163      if test "X$withval" = "X"; then
17164
17165  acl_save_prefix="$prefix"
17166  prefix="$acl_final_prefix"
17167  acl_save_exec_prefix="$exec_prefix"
17168  exec_prefix="$acl_final_exec_prefix"
17169
17170          eval additional_includedir=\"$includedir\"
17171          eval additional_libdir=\"$libdir\"
17172          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17173          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17174
17175  exec_prefix="$acl_save_exec_prefix"
17176  prefix="$acl_save_prefix"
17177
17178      else
17179        additional_includedir="$withval/include"
17180        additional_libdir="$withval/$acl_libdirstem"
17181        additional_libdir2="$withval/$acl_libdirstem2"
17182        additional_libdir3="$withval/$acl_libdirstem3"
17183      fi
17184    fi
17185
17186fi
17187
17188  if test "X$additional_libdir2" = "X$additional_libdir"; then
17189    additional_libdir2=
17190  fi
17191  if test "X$additional_libdir3" = "X$additional_libdir"; then
17192    additional_libdir3=
17193  fi
17194      LIBRT=
17195  LTLIBRT=
17196  INCRT=
17197  LIBRT_PREFIX=
17198      HAVE_LIBRT=
17199  rpathdirs=
17200  ltrpathdirs=
17201  names_already_handled=
17202  names_next_round='rt '
17203  while test -n "$names_next_round"; do
17204    names_this_round="$names_next_round"
17205    names_next_round=
17206    for name in $names_this_round; do
17207      already_handled=
17208      for n in $names_already_handled; do
17209        if test "$n" = "$name"; then
17210          already_handled=yes
17211          break
17212        fi
17213      done
17214      if test -z "$already_handled"; then
17215        names_already_handled="$names_already_handled $name"
17216                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17217        eval value=\"\$HAVE_LIB$uppername\"
17218        if test -n "$value"; then
17219          if test "$value" = yes; then
17220            eval value=\"\$LIB$uppername\"
17221            test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
17222            eval value=\"\$LTLIB$uppername\"
17223            test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
17224          else
17225                                    :
17226          fi
17227        else
17228                              found_dir=
17229          found_la=
17230          found_so=
17231          found_a=
17232          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17233          if test -n "$acl_shlibext"; then
17234            shrext=".$acl_shlibext"             # typically: shrext=.so
17235          else
17236            shrext=
17237          fi
17238          if test $use_additional = yes; then
17239            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
17240              if test "X$found_dir" = "X"; then
17241                eval dir=\$$additional_libdir_variable
17242                if test -n "$dir"; then
17243                                                      if test -n "$acl_shlibext"; then
17244                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17245                      found_dir="$dir"
17246                      found_so="$dir/$libname$shrext"
17247                    else
17248                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17249                        ver=`(cd "$dir" && \
17250                              for f in "$libname$shrext".*; do echo "$f"; done \
17251                              | sed -e "s,^$libname$shrext\\\\.,," \
17252                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17253                              | sed 1q ) 2>/dev/null`
17254                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17255                          found_dir="$dir"
17256                          found_so="$dir/$libname$shrext.$ver"
17257                        fi
17258                      else
17259                        eval library_names=\"$acl_library_names_spec\"
17260                        for f in $library_names; do
17261                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17262                            found_dir="$dir"
17263                            found_so="$dir/$f"
17264                            break
17265                          fi
17266                        done
17267                      fi
17268                    fi
17269                  fi
17270                                    if test "X$found_dir" = "X"; then
17271                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17272                      found_dir="$dir"
17273                      found_a="$dir/$libname.$acl_libext"
17274                    fi
17275                  fi
17276                  if test "X$found_dir" != "X"; then
17277                    if test -f "$dir/$libname.la"; then
17278                      found_la="$dir/$libname.la"
17279                    fi
17280                  fi
17281                fi
17282              fi
17283            done
17284          fi
17285          if test "X$found_dir" = "X"; then
17286            for x in $LDFLAGS $LTLIBRT; do
17287
17288  acl_save_prefix="$prefix"
17289  prefix="$acl_final_prefix"
17290  acl_save_exec_prefix="$exec_prefix"
17291  exec_prefix="$acl_final_exec_prefix"
17292  eval x=\"$x\"
17293  exec_prefix="$acl_save_exec_prefix"
17294  prefix="$acl_save_prefix"
17295
17296              case "$x" in
17297                -L*)
17298                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17299                                    if test -n "$acl_shlibext"; then
17300                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17301                      found_dir="$dir"
17302                      found_so="$dir/$libname$shrext"
17303                    else
17304                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17305                        ver=`(cd "$dir" && \
17306                              for f in "$libname$shrext".*; do echo "$f"; done \
17307                              | sed -e "s,^$libname$shrext\\\\.,," \
17308                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17309                              | sed 1q ) 2>/dev/null`
17310                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17311                          found_dir="$dir"
17312                          found_so="$dir/$libname$shrext.$ver"
17313                        fi
17314                      else
17315                        eval library_names=\"$acl_library_names_spec\"
17316                        for f in $library_names; do
17317                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17318                            found_dir="$dir"
17319                            found_so="$dir/$f"
17320                            break
17321                          fi
17322                        done
17323                      fi
17324                    fi
17325                  fi
17326                                    if test "X$found_dir" = "X"; then
17327                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17328                      found_dir="$dir"
17329                      found_a="$dir/$libname.$acl_libext"
17330                    fi
17331                  fi
17332                  if test "X$found_dir" != "X"; then
17333                    if test -f "$dir/$libname.la"; then
17334                      found_la="$dir/$libname.la"
17335                    fi
17336                  fi
17337                  ;;
17338              esac
17339              if test "X$found_dir" != "X"; then
17340                break
17341              fi
17342            done
17343          fi
17344          if test "X$found_dir" != "X"; then
17345                        LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
17346            if test "X$found_so" != "X"; then
17347                                                        if test "$enable_rpath" = no \
17348                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17349                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
17350                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
17351                                LIBRT="${LIBRT}${LIBRT:+ }$found_so"
17352              else
17353                                                                                haveit=
17354                for x in $ltrpathdirs; do
17355                  if test "X$x" = "X$found_dir"; then
17356                    haveit=yes
17357                    break
17358                  fi
17359                done
17360                if test -z "$haveit"; then
17361                  ltrpathdirs="$ltrpathdirs $found_dir"
17362                fi
17363                                if test "$acl_hardcode_direct" = yes; then
17364                                                      LIBRT="${LIBRT}${LIBRT:+ }$found_so"
17365                else
17366                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17367                                                            LIBRT="${LIBRT}${LIBRT:+ }$found_so"
17368                                                            haveit=
17369                    for x in $rpathdirs; do
17370                      if test "X$x" = "X$found_dir"; then
17371                        haveit=yes
17372                        break
17373                      fi
17374                    done
17375                    if test -z "$haveit"; then
17376                      rpathdirs="$rpathdirs $found_dir"
17377                    fi
17378                  else
17379                                                                                haveit=
17380                    for x in $LDFLAGS $LIBRT; do
17381
17382  acl_save_prefix="$prefix"
17383  prefix="$acl_final_prefix"
17384  acl_save_exec_prefix="$exec_prefix"
17385  exec_prefix="$acl_final_exec_prefix"
17386  eval x=\"$x\"
17387  exec_prefix="$acl_save_exec_prefix"
17388  prefix="$acl_save_prefix"
17389
17390                      if test "X$x" = "X-L$found_dir"; then
17391                        haveit=yes
17392                        break
17393                      fi
17394                    done
17395                    if test -z "$haveit"; then
17396                      LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
17397                    fi
17398                    if test "$acl_hardcode_minus_L" != no; then
17399                                                                                        LIBRT="${LIBRT}${LIBRT:+ }$found_so"
17400                    else
17401                                                                                                                                                                                LIBRT="${LIBRT}${LIBRT:+ }-l$name"
17402                    fi
17403                  fi
17404                fi
17405              fi
17406            else
17407              if test "X$found_a" != "X"; then
17408                                LIBRT="${LIBRT}${LIBRT:+ }$found_a"
17409              else
17410                                                LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
17411              fi
17412            fi
17413                        additional_includedir=
17414            case "$found_dir" in
17415              */$acl_libdirstem | */$acl_libdirstem/)
17416                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17417                if test "$name" = 'rt'; then
17418                  LIBRT_PREFIX="$basedir"
17419                fi
17420                additional_includedir="$basedir/include"
17421                ;;
17422              */$acl_libdirstem2 | */$acl_libdirstem2/)
17423                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17424                if test "$name" = 'rt'; then
17425                  LIBRT_PREFIX="$basedir"
17426                fi
17427                additional_includedir="$basedir/include"
17428                ;;
17429              */$acl_libdirstem3 | */$acl_libdirstem3/)
17430                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
17431                if test "$name" = 'rt'; then
17432                  LIBRT_PREFIX="$basedir"
17433                fi
17434                additional_includedir="$basedir/include"
17435                ;;
17436            esac
17437            if test "X$additional_includedir" != "X"; then
17438                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17439                haveit=
17440                if test "X$additional_includedir" = "X/usr/local/include"; then
17441                  if test -n "$GCC"; then
17442                    case $host_os in
17443                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17444                    esac
17445                  fi
17446                fi
17447                if test -z "$haveit"; then
17448                  for x in $CPPFLAGS $INCRT; do
17449
17450  acl_save_prefix="$prefix"
17451  prefix="$acl_final_prefix"
17452  acl_save_exec_prefix="$exec_prefix"
17453  exec_prefix="$acl_final_exec_prefix"
17454  eval x=\"$x\"
17455  exec_prefix="$acl_save_exec_prefix"
17456  prefix="$acl_save_prefix"
17457
17458                    if test "X$x" = "X-I$additional_includedir"; then
17459                      haveit=yes
17460                      break
17461                    fi
17462                  done
17463                  if test -z "$haveit"; then
17464                    if test -d "$additional_includedir"; then
17465                                            INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
17466                    fi
17467                  fi
17468                fi
17469              fi
17470            fi
17471                        if test -n "$found_la"; then
17472                                                        save_libdir="$libdir"
17473              case "$found_la" in
17474                */* | *\\*) . "$found_la" ;;
17475                *) . "./$found_la" ;;
17476              esac
17477              libdir="$save_libdir"
17478                            for dep in $dependency_libs; do
17479                case "$dep" in
17480                  -L*)
17481                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17482                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
17483                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
17484                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
17485                      haveit=
17486                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
17487                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
17488                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
17489                        if test -n "$GCC"; then
17490                          case $host_os in
17491                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17492                          esac
17493                        fi
17494                      fi
17495                      if test -z "$haveit"; then
17496                        haveit=
17497                        for x in $LDFLAGS $LIBRT; do
17498
17499  acl_save_prefix="$prefix"
17500  prefix="$acl_final_prefix"
17501  acl_save_exec_prefix="$exec_prefix"
17502  exec_prefix="$acl_final_exec_prefix"
17503  eval x=\"$x\"
17504  exec_prefix="$acl_save_exec_prefix"
17505  prefix="$acl_save_prefix"
17506
17507                          if test "X$x" = "X-L$dependency_libdir"; then
17508                            haveit=yes
17509                            break
17510                          fi
17511                        done
17512                        if test -z "$haveit"; then
17513                          if test -d "$dependency_libdir"; then
17514                                                        LIBRT="${LIBRT}${LIBRT:+ }-L$dependency_libdir"
17515                          fi
17516                        fi
17517                        haveit=
17518                        for x in $LDFLAGS $LTLIBRT; do
17519
17520  acl_save_prefix="$prefix"
17521  prefix="$acl_final_prefix"
17522  acl_save_exec_prefix="$exec_prefix"
17523  exec_prefix="$acl_final_exec_prefix"
17524  eval x=\"$x\"
17525  exec_prefix="$acl_save_exec_prefix"
17526  prefix="$acl_save_prefix"
17527
17528                          if test "X$x" = "X-L$dependency_libdir"; then
17529                            haveit=yes
17530                            break
17531                          fi
17532                        done
17533                        if test -z "$haveit"; then
17534                          if test -d "$dependency_libdir"; then
17535                                                        LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$dependency_libdir"
17536                          fi
17537                        fi
17538                      fi
17539                    fi
17540                    ;;
17541                  -R*)
17542                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17543                    if test "$enable_rpath" != no; then
17544                                                                  haveit=
17545                      for x in $rpathdirs; do
17546                        if test "X$x" = "X$dir"; then
17547                          haveit=yes
17548                          break
17549                        fi
17550                      done
17551                      if test -z "$haveit"; then
17552                        rpathdirs="$rpathdirs $dir"
17553                      fi
17554                                                                  haveit=
17555                      for x in $ltrpathdirs; do
17556                        if test "X$x" = "X$dir"; then
17557                          haveit=yes
17558                          break
17559                        fi
17560                      done
17561                      if test -z "$haveit"; then
17562                        ltrpathdirs="$ltrpathdirs $dir"
17563                      fi
17564                    fi
17565                    ;;
17566                  -l*)
17567                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17568                    ;;
17569                  *.la)
17570                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17571                    ;;
17572                  *)
17573                                        LIBRT="${LIBRT}${LIBRT:+ }$dep"
17574                    LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
17575                    ;;
17576                esac
17577              done
17578            fi
17579          else
17580                                                            LIBRT="${LIBRT}${LIBRT:+ }-l$name"
17581            LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
17582          fi
17583        fi
17584      fi
17585    done
17586  done
17587  if test "X$rpathdirs" != "X"; then
17588    if test -n "$acl_hardcode_libdir_separator"; then
17589                        alldirs=
17590      for found_dir in $rpathdirs; do
17591        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17592      done
17593            acl_save_libdir="$libdir"
17594      libdir="$alldirs"
17595      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17596      libdir="$acl_save_libdir"
17597      LIBRT="${LIBRT}${LIBRT:+ }$flag"
17598    else
17599            for found_dir in $rpathdirs; do
17600        acl_save_libdir="$libdir"
17601        libdir="$found_dir"
17602        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17603        libdir="$acl_save_libdir"
17604        LIBRT="${LIBRT}${LIBRT:+ }$flag"
17605      done
17606    fi
17607  fi
17608  if test "X$ltrpathdirs" != "X"; then
17609            for found_dir in $ltrpathdirs; do
17610      LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
17611    done
17612  fi
17613
17614
17615
17616
17617
17618
17619        ac_save_CPPFLAGS="$CPPFLAGS"
17620
17621  for element in $INCRT; do
17622    haveit=
17623    for x in $CPPFLAGS; do
17624
17625  acl_save_prefix="$prefix"
17626  prefix="$acl_final_prefix"
17627  acl_save_exec_prefix="$exec_prefix"
17628  exec_prefix="$acl_final_exec_prefix"
17629  eval x=\"$x\"
17630  exec_prefix="$acl_save_exec_prefix"
17631  prefix="$acl_save_prefix"
17632
17633      if test "X$x" = "X$element"; then
17634        haveit=yes
17635        break
17636      fi
17637    done
17638    if test -z "$haveit"; then
17639      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17640    fi
17641  done
17642
17643
17644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
17645$as_echo_n "checking for librt... " >&6; }
17646if ${ac_cv_librt+:} false; then :
17647  $as_echo_n "(cached) " >&6
17648else
17649
17650    ac_save_LIBS="$LIBS"
17651                                case " $LIBRT" in
17652      *" -l"*) LIBS="$LIBS $LIBRT" ;;
17653      *)       LIBS="$LIBRT $LIBS" ;;
17654    esac
17655    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17656/* end confdefs.h.  */
17657#include <time.h>
17658#include <signal.h>
17659
17660int
17661main ()
17662{
17663timer_create (0,0,0);
17664  ;
17665  return 0;
17666}
17667_ACEOF
17668if ac_fn_c_try_link "$LINENO"; then :
17669  ac_cv_librt=yes
17670else
17671  ac_cv_librt='no'
17672fi
17673rm -f core conftest.err conftest.$ac_objext \
17674    conftest$ac_exeext conftest.$ac_ext
17675    LIBS="$ac_save_LIBS"
17676
17677fi
17678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
17679$as_echo "$ac_cv_librt" >&6; }
17680  if test "$ac_cv_librt" = yes; then
17681    HAVE_LIBRT=yes
17682
17683$as_echo "#define HAVE_LIBRT 1" >>confdefs.h
17684
17685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
17686$as_echo_n "checking how to link with librt... " >&6; }
17687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
17688$as_echo "$LIBRT" >&6; }
17689  else
17690    HAVE_LIBRT=no
17691            CPPFLAGS="$ac_save_CPPFLAGS"
17692    LIBRT=
17693    LTLIBRT=
17694    LIBRT_PREFIX=
17695  fi
17696
17697
17698
17699
17700
17701
17702
17703
17704if test "$have_win" != "yes";then
17705  for ac_func in pthread_mutex_lock
17706do :
17707  ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
17708if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
17709  cat >>confdefs.h <<_ACEOF
17710#define HAVE_PTHREAD_MUTEX_LOCK 1
17711_ACEOF
17712
17713fi
17714done
17715
17716  if test "$ac_cv_func_pthread_mutex_lock" != "yes";then
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729    use_additional=yes
17730
17731  acl_save_prefix="$prefix"
17732  prefix="$acl_final_prefix"
17733  acl_save_exec_prefix="$exec_prefix"
17734  exec_prefix="$acl_final_exec_prefix"
17735
17736    eval additional_includedir=\"$includedir\"
17737    eval additional_libdir=\"$libdir\"
17738    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17739    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17740
17741  exec_prefix="$acl_save_exec_prefix"
17742  prefix="$acl_save_prefix"
17743
17744
17745# Check whether --with-libpthread-prefix was given.
17746if test "${with_libpthread_prefix+set}" = set; then :
17747  withval=$with_libpthread_prefix;
17748    if test "X$withval" = "Xno"; then
17749      use_additional=no
17750    else
17751      if test "X$withval" = "X"; then
17752
17753  acl_save_prefix="$prefix"
17754  prefix="$acl_final_prefix"
17755  acl_save_exec_prefix="$exec_prefix"
17756  exec_prefix="$acl_final_exec_prefix"
17757
17758          eval additional_includedir=\"$includedir\"
17759          eval additional_libdir=\"$libdir\"
17760          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17761          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17762
17763  exec_prefix="$acl_save_exec_prefix"
17764  prefix="$acl_save_prefix"
17765
17766      else
17767        additional_includedir="$withval/include"
17768        additional_libdir="$withval/$acl_libdirstem"
17769        additional_libdir2="$withval/$acl_libdirstem2"
17770        additional_libdir3="$withval/$acl_libdirstem3"
17771      fi
17772    fi
17773
17774fi
17775
17776  if test "X$additional_libdir2" = "X$additional_libdir"; then
17777    additional_libdir2=
17778  fi
17779  if test "X$additional_libdir3" = "X$additional_libdir"; then
17780    additional_libdir3=
17781  fi
17782      LIBPTHREAD=
17783  LTLIBPTHREAD=
17784  INCPTHREAD=
17785  LIBPTHREAD_PREFIX=
17786      HAVE_LIBPTHREAD=
17787  rpathdirs=
17788  ltrpathdirs=
17789  names_already_handled=
17790  names_next_round='pthread '
17791  while test -n "$names_next_round"; do
17792    names_this_round="$names_next_round"
17793    names_next_round=
17794    for name in $names_this_round; do
17795      already_handled=
17796      for n in $names_already_handled; do
17797        if test "$n" = "$name"; then
17798          already_handled=yes
17799          break
17800        fi
17801      done
17802      if test -z "$already_handled"; then
17803        names_already_handled="$names_already_handled $name"
17804                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17805        eval value=\"\$HAVE_LIB$uppername\"
17806        if test -n "$value"; then
17807          if test "$value" = yes; then
17808            eval value=\"\$LIB$uppername\"
17809            test -z "$value" || LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$value"
17810            eval value=\"\$LTLIB$uppername\"
17811            test -z "$value" || LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$value"
17812          else
17813                                    :
17814          fi
17815        else
17816                              found_dir=
17817          found_la=
17818          found_so=
17819          found_a=
17820          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17821          if test -n "$acl_shlibext"; then
17822            shrext=".$acl_shlibext"             # typically: shrext=.so
17823          else
17824            shrext=
17825          fi
17826          if test $use_additional = yes; then
17827            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
17828              if test "X$found_dir" = "X"; then
17829                eval dir=\$$additional_libdir_variable
17830                if test -n "$dir"; then
17831                                                      if test -n "$acl_shlibext"; then
17832                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17833                      found_dir="$dir"
17834                      found_so="$dir/$libname$shrext"
17835                    else
17836                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17837                        ver=`(cd "$dir" && \
17838                              for f in "$libname$shrext".*; do echo "$f"; done \
17839                              | sed -e "s,^$libname$shrext\\\\.,," \
17840                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17841                              | sed 1q ) 2>/dev/null`
17842                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17843                          found_dir="$dir"
17844                          found_so="$dir/$libname$shrext.$ver"
17845                        fi
17846                      else
17847                        eval library_names=\"$acl_library_names_spec\"
17848                        for f in $library_names; do
17849                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17850                            found_dir="$dir"
17851                            found_so="$dir/$f"
17852                            break
17853                          fi
17854                        done
17855                      fi
17856                    fi
17857                  fi
17858                                    if test "X$found_dir" = "X"; then
17859                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17860                      found_dir="$dir"
17861                      found_a="$dir/$libname.$acl_libext"
17862                    fi
17863                  fi
17864                  if test "X$found_dir" != "X"; then
17865                    if test -f "$dir/$libname.la"; then
17866                      found_la="$dir/$libname.la"
17867                    fi
17868                  fi
17869                fi
17870              fi
17871            done
17872          fi
17873          if test "X$found_dir" = "X"; then
17874            for x in $LDFLAGS $LTLIBPTHREAD; do
17875
17876  acl_save_prefix="$prefix"
17877  prefix="$acl_final_prefix"
17878  acl_save_exec_prefix="$exec_prefix"
17879  exec_prefix="$acl_final_exec_prefix"
17880  eval x=\"$x\"
17881  exec_prefix="$acl_save_exec_prefix"
17882  prefix="$acl_save_prefix"
17883
17884              case "$x" in
17885                -L*)
17886                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17887                                    if test -n "$acl_shlibext"; then
17888                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
17889                      found_dir="$dir"
17890                      found_so="$dir/$libname$shrext"
17891                    else
17892                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17893                        ver=`(cd "$dir" && \
17894                              for f in "$libname$shrext".*; do echo "$f"; done \
17895                              | sed -e "s,^$libname$shrext\\\\.,," \
17896                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17897                              | sed 1q ) 2>/dev/null`
17898                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
17899                          found_dir="$dir"
17900                          found_so="$dir/$libname$shrext.$ver"
17901                        fi
17902                      else
17903                        eval library_names=\"$acl_library_names_spec\"
17904                        for f in $library_names; do
17905                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
17906                            found_dir="$dir"
17907                            found_so="$dir/$f"
17908                            break
17909                          fi
17910                        done
17911                      fi
17912                    fi
17913                  fi
17914                                    if test "X$found_dir" = "X"; then
17915                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
17916                      found_dir="$dir"
17917                      found_a="$dir/$libname.$acl_libext"
17918                    fi
17919                  fi
17920                  if test "X$found_dir" != "X"; then
17921                    if test -f "$dir/$libname.la"; then
17922                      found_la="$dir/$libname.la"
17923                    fi
17924                  fi
17925                  ;;
17926              esac
17927              if test "X$found_dir" != "X"; then
17928                break
17929              fi
17930            done
17931          fi
17932          if test "X$found_dir" != "X"; then
17933                        LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$found_dir -l$name"
17934            if test "X$found_so" != "X"; then
17935                                                        if test "$enable_rpath" = no \
17936                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17937                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
17938                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
17939                                LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
17940              else
17941                                                                                haveit=
17942                for x in $ltrpathdirs; do
17943                  if test "X$x" = "X$found_dir"; then
17944                    haveit=yes
17945                    break
17946                  fi
17947                done
17948                if test -z "$haveit"; then
17949                  ltrpathdirs="$ltrpathdirs $found_dir"
17950                fi
17951                                if test "$acl_hardcode_direct" = yes; then
17952                                                      LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
17953                else
17954                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17955                                                            LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
17956                                                            haveit=
17957                    for x in $rpathdirs; do
17958                      if test "X$x" = "X$found_dir"; then
17959                        haveit=yes
17960                        break
17961                      fi
17962                    done
17963                    if test -z "$haveit"; then
17964                      rpathdirs="$rpathdirs $found_dir"
17965                    fi
17966                  else
17967                                                                                haveit=
17968                    for x in $LDFLAGS $LIBPTHREAD; do
17969
17970  acl_save_prefix="$prefix"
17971  prefix="$acl_final_prefix"
17972  acl_save_exec_prefix="$exec_prefix"
17973  exec_prefix="$acl_final_exec_prefix"
17974  eval x=\"$x\"
17975  exec_prefix="$acl_save_exec_prefix"
17976  prefix="$acl_save_prefix"
17977
17978                      if test "X$x" = "X-L$found_dir"; then
17979                        haveit=yes
17980                        break
17981                      fi
17982                    done
17983                    if test -z "$haveit"; then
17984                      LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir"
17985                    fi
17986                    if test "$acl_hardcode_minus_L" != no; then
17987                                                                                        LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
17988                    else
17989                                                                                                                                                                                LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
17990                    fi
17991                  fi
17992                fi
17993              fi
17994            else
17995              if test "X$found_a" != "X"; then
17996                                LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_a"
17997              else
17998                                                LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir -l$name"
17999              fi
18000            fi
18001                        additional_includedir=
18002            case "$found_dir" in
18003              */$acl_libdirstem | */$acl_libdirstem/)
18004                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18005                if test "$name" = 'pthread'; then
18006                  LIBPTHREAD_PREFIX="$basedir"
18007                fi
18008                additional_includedir="$basedir/include"
18009                ;;
18010              */$acl_libdirstem2 | */$acl_libdirstem2/)
18011                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18012                if test "$name" = 'pthread'; then
18013                  LIBPTHREAD_PREFIX="$basedir"
18014                fi
18015                additional_includedir="$basedir/include"
18016                ;;
18017              */$acl_libdirstem3 | */$acl_libdirstem3/)
18018                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
18019                if test "$name" = 'pthread'; then
18020                  LIBPTHREAD_PREFIX="$basedir"
18021                fi
18022                additional_includedir="$basedir/include"
18023                ;;
18024            esac
18025            if test "X$additional_includedir" != "X"; then
18026                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
18027                haveit=
18028                if test "X$additional_includedir" = "X/usr/local/include"; then
18029                  if test -n "$GCC"; then
18030                    case $host_os in
18031                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18032                    esac
18033                  fi
18034                fi
18035                if test -z "$haveit"; then
18036                  for x in $CPPFLAGS $INCPTHREAD; do
18037
18038  acl_save_prefix="$prefix"
18039  prefix="$acl_final_prefix"
18040  acl_save_exec_prefix="$exec_prefix"
18041  exec_prefix="$acl_final_exec_prefix"
18042  eval x=\"$x\"
18043  exec_prefix="$acl_save_exec_prefix"
18044  prefix="$acl_save_prefix"
18045
18046                    if test "X$x" = "X-I$additional_includedir"; then
18047                      haveit=yes
18048                      break
18049                    fi
18050                  done
18051                  if test -z "$haveit"; then
18052                    if test -d "$additional_includedir"; then
18053                                            INCPTHREAD="${INCPTHREAD}${INCPTHREAD:+ }-I$additional_includedir"
18054                    fi
18055                  fi
18056                fi
18057              fi
18058            fi
18059                        if test -n "$found_la"; then
18060                                                        save_libdir="$libdir"
18061              case "$found_la" in
18062                */* | *\\*) . "$found_la" ;;
18063                *) . "./$found_la" ;;
18064              esac
18065              libdir="$save_libdir"
18066                            for dep in $dependency_libs; do
18067                case "$dep" in
18068                  -L*)
18069                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18070                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
18071                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
18072                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
18073                      haveit=
18074                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
18075                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
18076                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
18077                        if test -n "$GCC"; then
18078                          case $host_os in
18079                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18080                          esac
18081                        fi
18082                      fi
18083                      if test -z "$haveit"; then
18084                        haveit=
18085                        for x in $LDFLAGS $LIBPTHREAD; do
18086
18087  acl_save_prefix="$prefix"
18088  prefix="$acl_final_prefix"
18089  acl_save_exec_prefix="$exec_prefix"
18090  exec_prefix="$acl_final_exec_prefix"
18091  eval x=\"$x\"
18092  exec_prefix="$acl_save_exec_prefix"
18093  prefix="$acl_save_prefix"
18094
18095                          if test "X$x" = "X-L$dependency_libdir"; then
18096                            haveit=yes
18097                            break
18098                          fi
18099                        done
18100                        if test -z "$haveit"; then
18101                          if test -d "$dependency_libdir"; then
18102                                                        LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$dependency_libdir"
18103                          fi
18104                        fi
18105                        haveit=
18106                        for x in $LDFLAGS $LTLIBPTHREAD; do
18107
18108  acl_save_prefix="$prefix"
18109  prefix="$acl_final_prefix"
18110  acl_save_exec_prefix="$exec_prefix"
18111  exec_prefix="$acl_final_exec_prefix"
18112  eval x=\"$x\"
18113  exec_prefix="$acl_save_exec_prefix"
18114  prefix="$acl_save_prefix"
18115
18116                          if test "X$x" = "X-L$dependency_libdir"; then
18117                            haveit=yes
18118                            break
18119                          fi
18120                        done
18121                        if test -z "$haveit"; then
18122                          if test -d "$dependency_libdir"; then
18123                                                        LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$dependency_libdir"
18124                          fi
18125                        fi
18126                      fi
18127                    fi
18128                    ;;
18129                  -R*)
18130                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
18131                    if test "$enable_rpath" != no; then
18132                                                                  haveit=
18133                      for x in $rpathdirs; do
18134                        if test "X$x" = "X$dir"; then
18135                          haveit=yes
18136                          break
18137                        fi
18138                      done
18139                      if test -z "$haveit"; then
18140                        rpathdirs="$rpathdirs $dir"
18141                      fi
18142                                                                  haveit=
18143                      for x in $ltrpathdirs; do
18144                        if test "X$x" = "X$dir"; then
18145                          haveit=yes
18146                          break
18147                        fi
18148                      done
18149                      if test -z "$haveit"; then
18150                        ltrpathdirs="$ltrpathdirs $dir"
18151                      fi
18152                    fi
18153                    ;;
18154                  -l*)
18155                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18156                    ;;
18157                  *.la)
18158                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18159                    ;;
18160                  *)
18161                                        LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$dep"
18162                    LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$dep"
18163                    ;;
18164                esac
18165              done
18166            fi
18167          else
18168                                                            LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
18169            LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-l$name"
18170          fi
18171        fi
18172      fi
18173    done
18174  done
18175  if test "X$rpathdirs" != "X"; then
18176    if test -n "$acl_hardcode_libdir_separator"; then
18177                        alldirs=
18178      for found_dir in $rpathdirs; do
18179        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18180      done
18181            acl_save_libdir="$libdir"
18182      libdir="$alldirs"
18183      eval flag=\"$acl_hardcode_libdir_flag_spec\"
18184      libdir="$acl_save_libdir"
18185      LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
18186    else
18187            for found_dir in $rpathdirs; do
18188        acl_save_libdir="$libdir"
18189        libdir="$found_dir"
18190        eval flag=\"$acl_hardcode_libdir_flag_spec\"
18191        libdir="$acl_save_libdir"
18192        LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
18193      done
18194    fi
18195  fi
18196  if test "X$ltrpathdirs" != "X"; then
18197            for found_dir in $ltrpathdirs; do
18198      LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-R$found_dir"
18199    done
18200  fi
18201
18202
18203
18204
18205
18206
18207        ac_save_CPPFLAGS="$CPPFLAGS"
18208
18209  for element in $INCPTHREAD; do
18210    haveit=
18211    for x in $CPPFLAGS; do
18212
18213  acl_save_prefix="$prefix"
18214  prefix="$acl_final_prefix"
18215  acl_save_exec_prefix="$exec_prefix"
18216  exec_prefix="$acl_final_exec_prefix"
18217  eval x=\"$x\"
18218  exec_prefix="$acl_save_exec_prefix"
18219  prefix="$acl_save_prefix"
18220
18221      if test "X$x" = "X$element"; then
18222        haveit=yes
18223        break
18224      fi
18225    done
18226    if test -z "$haveit"; then
18227      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18228    fi
18229  done
18230
18231
18232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpthread" >&5
18233$as_echo_n "checking for libpthread... " >&6; }
18234if ${ac_cv_libpthread+:} false; then :
18235  $as_echo_n "(cached) " >&6
18236else
18237
18238    ac_save_LIBS="$LIBS"
18239                                case " $LIBPTHREAD" in
18240      *" -l"*) LIBS="$LIBS $LIBPTHREAD" ;;
18241      *)       LIBS="$LIBPTHREAD $LIBS" ;;
18242    esac
18243    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244/* end confdefs.h.  */
18245#include <pthread.h>
18246int
18247main ()
18248{
18249pthread_mutex_lock (0);
18250  ;
18251  return 0;
18252}
18253_ACEOF
18254if ac_fn_c_try_link "$LINENO"; then :
18255  ac_cv_libpthread=yes
18256else
18257  ac_cv_libpthread='no'
18258fi
18259rm -f core conftest.err conftest.$ac_objext \
18260    conftest$ac_exeext conftest.$ac_ext
18261    LIBS="$ac_save_LIBS"
18262
18263fi
18264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpthread" >&5
18265$as_echo "$ac_cv_libpthread" >&6; }
18266  if test "$ac_cv_libpthread" = yes; then
18267    HAVE_LIBPTHREAD=yes
18268
18269$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
18270
18271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpthread" >&5
18272$as_echo_n "checking how to link with libpthread... " >&6; }
18273    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPTHREAD" >&5
18274$as_echo "$LIBPTHREAD" >&6; }
18275  else
18276    HAVE_LIBPTHREAD=no
18277            CPPFLAGS="$ac_save_CPPFLAGS"
18278    LIBPTHREAD=
18279    LTLIBPTHREAD=
18280    LIBPTHREAD_PREFIX=
18281  fi
18282
18283
18284
18285
18286
18287
18288
18289  fi
18290fi
18291
18292if test "$ac_cv_func_nanosleep" != "yes";then
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305    use_additional=yes
18306
18307  acl_save_prefix="$prefix"
18308  prefix="$acl_final_prefix"
18309  acl_save_exec_prefix="$exec_prefix"
18310  exec_prefix="$acl_final_exec_prefix"
18311
18312    eval additional_includedir=\"$includedir\"
18313    eval additional_libdir=\"$libdir\"
18314    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18315    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18316
18317  exec_prefix="$acl_save_exec_prefix"
18318  prefix="$acl_save_prefix"
18319
18320
18321# Check whether --with-librt-prefix was given.
18322if test "${with_librt_prefix+set}" = set; then :
18323  withval=$with_librt_prefix;
18324    if test "X$withval" = "Xno"; then
18325      use_additional=no
18326    else
18327      if test "X$withval" = "X"; then
18328
18329  acl_save_prefix="$prefix"
18330  prefix="$acl_final_prefix"
18331  acl_save_exec_prefix="$exec_prefix"
18332  exec_prefix="$acl_final_exec_prefix"
18333
18334          eval additional_includedir=\"$includedir\"
18335          eval additional_libdir=\"$libdir\"
18336          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18337          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18338
18339  exec_prefix="$acl_save_exec_prefix"
18340  prefix="$acl_save_prefix"
18341
18342      else
18343        additional_includedir="$withval/include"
18344        additional_libdir="$withval/$acl_libdirstem"
18345        additional_libdir2="$withval/$acl_libdirstem2"
18346        additional_libdir3="$withval/$acl_libdirstem3"
18347      fi
18348    fi
18349
18350fi
18351
18352  if test "X$additional_libdir2" = "X$additional_libdir"; then
18353    additional_libdir2=
18354  fi
18355  if test "X$additional_libdir3" = "X$additional_libdir"; then
18356    additional_libdir3=
18357  fi
18358      LIBRT=
18359  LTLIBRT=
18360  INCRT=
18361  LIBRT_PREFIX=
18362      HAVE_LIBRT=
18363  rpathdirs=
18364  ltrpathdirs=
18365  names_already_handled=
18366  names_next_round='rt '
18367  while test -n "$names_next_round"; do
18368    names_this_round="$names_next_round"
18369    names_next_round=
18370    for name in $names_this_round; do
18371      already_handled=
18372      for n in $names_already_handled; do
18373        if test "$n" = "$name"; then
18374          already_handled=yes
18375          break
18376        fi
18377      done
18378      if test -z "$already_handled"; then
18379        names_already_handled="$names_already_handled $name"
18380                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18381        eval value=\"\$HAVE_LIB$uppername\"
18382        if test -n "$value"; then
18383          if test "$value" = yes; then
18384            eval value=\"\$LIB$uppername\"
18385            test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
18386            eval value=\"\$LTLIB$uppername\"
18387            test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
18388          else
18389                                    :
18390          fi
18391        else
18392                              found_dir=
18393          found_la=
18394          found_so=
18395          found_a=
18396          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18397          if test -n "$acl_shlibext"; then
18398            shrext=".$acl_shlibext"             # typically: shrext=.so
18399          else
18400            shrext=
18401          fi
18402          if test $use_additional = yes; then
18403            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
18404              if test "X$found_dir" = "X"; then
18405                eval dir=\$$additional_libdir_variable
18406                if test -n "$dir"; then
18407                                                      if test -n "$acl_shlibext"; then
18408                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18409                      found_dir="$dir"
18410                      found_so="$dir/$libname$shrext"
18411                    else
18412                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18413                        ver=`(cd "$dir" && \
18414                              for f in "$libname$shrext".*; do echo "$f"; done \
18415                              | sed -e "s,^$libname$shrext\\\\.,," \
18416                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18417                              | sed 1q ) 2>/dev/null`
18418                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18419                          found_dir="$dir"
18420                          found_so="$dir/$libname$shrext.$ver"
18421                        fi
18422                      else
18423                        eval library_names=\"$acl_library_names_spec\"
18424                        for f in $library_names; do
18425                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18426                            found_dir="$dir"
18427                            found_so="$dir/$f"
18428                            break
18429                          fi
18430                        done
18431                      fi
18432                    fi
18433                  fi
18434                                    if test "X$found_dir" = "X"; then
18435                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18436                      found_dir="$dir"
18437                      found_a="$dir/$libname.$acl_libext"
18438                    fi
18439                  fi
18440                  if test "X$found_dir" != "X"; then
18441                    if test -f "$dir/$libname.la"; then
18442                      found_la="$dir/$libname.la"
18443                    fi
18444                  fi
18445                fi
18446              fi
18447            done
18448          fi
18449          if test "X$found_dir" = "X"; then
18450            for x in $LDFLAGS $LTLIBRT; do
18451
18452  acl_save_prefix="$prefix"
18453  prefix="$acl_final_prefix"
18454  acl_save_exec_prefix="$exec_prefix"
18455  exec_prefix="$acl_final_exec_prefix"
18456  eval x=\"$x\"
18457  exec_prefix="$acl_save_exec_prefix"
18458  prefix="$acl_save_prefix"
18459
18460              case "$x" in
18461                -L*)
18462                  dir=`echo "X$x" | sed -e 's/^X-L//'`
18463                                    if test -n "$acl_shlibext"; then
18464                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18465                      found_dir="$dir"
18466                      found_so="$dir/$libname$shrext"
18467                    else
18468                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18469                        ver=`(cd "$dir" && \
18470                              for f in "$libname$shrext".*; do echo "$f"; done \
18471                              | sed -e "s,^$libname$shrext\\\\.,," \
18472                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18473                              | sed 1q ) 2>/dev/null`
18474                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18475                          found_dir="$dir"
18476                          found_so="$dir/$libname$shrext.$ver"
18477                        fi
18478                      else
18479                        eval library_names=\"$acl_library_names_spec\"
18480                        for f in $library_names; do
18481                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18482                            found_dir="$dir"
18483                            found_so="$dir/$f"
18484                            break
18485                          fi
18486                        done
18487                      fi
18488                    fi
18489                  fi
18490                                    if test "X$found_dir" = "X"; then
18491                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18492                      found_dir="$dir"
18493                      found_a="$dir/$libname.$acl_libext"
18494                    fi
18495                  fi
18496                  if test "X$found_dir" != "X"; then
18497                    if test -f "$dir/$libname.la"; then
18498                      found_la="$dir/$libname.la"
18499                    fi
18500                  fi
18501                  ;;
18502              esac
18503              if test "X$found_dir" != "X"; then
18504                break
18505              fi
18506            done
18507          fi
18508          if test "X$found_dir" != "X"; then
18509                        LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
18510            if test "X$found_so" != "X"; then
18511                                                        if test "$enable_rpath" = no \
18512                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18513                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
18514                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
18515                                LIBRT="${LIBRT}${LIBRT:+ }$found_so"
18516              else
18517                                                                                haveit=
18518                for x in $ltrpathdirs; do
18519                  if test "X$x" = "X$found_dir"; then
18520                    haveit=yes
18521                    break
18522                  fi
18523                done
18524                if test -z "$haveit"; then
18525                  ltrpathdirs="$ltrpathdirs $found_dir"
18526                fi
18527                                if test "$acl_hardcode_direct" = yes; then
18528                                                      LIBRT="${LIBRT}${LIBRT:+ }$found_so"
18529                else
18530                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18531                                                            LIBRT="${LIBRT}${LIBRT:+ }$found_so"
18532                                                            haveit=
18533                    for x in $rpathdirs; do
18534                      if test "X$x" = "X$found_dir"; then
18535                        haveit=yes
18536                        break
18537                      fi
18538                    done
18539                    if test -z "$haveit"; then
18540                      rpathdirs="$rpathdirs $found_dir"
18541                    fi
18542                  else
18543                                                                                haveit=
18544                    for x in $LDFLAGS $LIBRT; do
18545
18546  acl_save_prefix="$prefix"
18547  prefix="$acl_final_prefix"
18548  acl_save_exec_prefix="$exec_prefix"
18549  exec_prefix="$acl_final_exec_prefix"
18550  eval x=\"$x\"
18551  exec_prefix="$acl_save_exec_prefix"
18552  prefix="$acl_save_prefix"
18553
18554                      if test "X$x" = "X-L$found_dir"; then
18555                        haveit=yes
18556                        break
18557                      fi
18558                    done
18559                    if test -z "$haveit"; then
18560                      LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
18561                    fi
18562                    if test "$acl_hardcode_minus_L" != no; then
18563                                                                                        LIBRT="${LIBRT}${LIBRT:+ }$found_so"
18564                    else
18565                                                                                                                                                                                LIBRT="${LIBRT}${LIBRT:+ }-l$name"
18566                    fi
18567                  fi
18568                fi
18569              fi
18570            else
18571              if test "X$found_a" != "X"; then
18572                                LIBRT="${LIBRT}${LIBRT:+ }$found_a"
18573              else
18574                                                LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
18575              fi
18576            fi
18577                        additional_includedir=
18578            case "$found_dir" in
18579              */$acl_libdirstem | */$acl_libdirstem/)
18580                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18581                if test "$name" = 'rt'; then
18582                  LIBRT_PREFIX="$basedir"
18583                fi
18584                additional_includedir="$basedir/include"
18585                ;;
18586              */$acl_libdirstem2 | */$acl_libdirstem2/)
18587                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18588                if test "$name" = 'rt'; then
18589                  LIBRT_PREFIX="$basedir"
18590                fi
18591                additional_includedir="$basedir/include"
18592                ;;
18593              */$acl_libdirstem3 | */$acl_libdirstem3/)
18594                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
18595                if test "$name" = 'rt'; then
18596                  LIBRT_PREFIX="$basedir"
18597                fi
18598                additional_includedir="$basedir/include"
18599                ;;
18600            esac
18601            if test "X$additional_includedir" != "X"; then
18602                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
18603                haveit=
18604                if test "X$additional_includedir" = "X/usr/local/include"; then
18605                  if test -n "$GCC"; then
18606                    case $host_os in
18607                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18608                    esac
18609                  fi
18610                fi
18611                if test -z "$haveit"; then
18612                  for x in $CPPFLAGS $INCRT; do
18613
18614  acl_save_prefix="$prefix"
18615  prefix="$acl_final_prefix"
18616  acl_save_exec_prefix="$exec_prefix"
18617  exec_prefix="$acl_final_exec_prefix"
18618  eval x=\"$x\"
18619  exec_prefix="$acl_save_exec_prefix"
18620  prefix="$acl_save_prefix"
18621
18622                    if test "X$x" = "X-I$additional_includedir"; then
18623                      haveit=yes
18624                      break
18625                    fi
18626                  done
18627                  if test -z "$haveit"; then
18628                    if test -d "$additional_includedir"; then
18629                                            INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
18630                    fi
18631                  fi
18632                fi
18633              fi
18634            fi
18635                        if test -n "$found_la"; then
18636                                                        save_libdir="$libdir"
18637              case "$found_la" in
18638                */* | *\\*) . "$found_la" ;;
18639                *) . "./$found_la" ;;
18640              esac
18641              libdir="$save_libdir"
18642                            for dep in $dependency_libs; do
18643                case "$dep" in
18644                  -L*)
18645                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18646                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
18647                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
18648                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
18649                      haveit=
18650                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
18651                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
18652                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
18653                        if test -n "$GCC"; then
18654                          case $host_os in
18655                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18656                          esac
18657                        fi
18658                      fi
18659                      if test -z "$haveit"; then
18660                        haveit=
18661                        for x in $LDFLAGS $LIBRT; do
18662
18663  acl_save_prefix="$prefix"
18664  prefix="$acl_final_prefix"
18665  acl_save_exec_prefix="$exec_prefix"
18666  exec_prefix="$acl_final_exec_prefix"
18667  eval x=\"$x\"
18668  exec_prefix="$acl_save_exec_prefix"
18669  prefix="$acl_save_prefix"
18670
18671                          if test "X$x" = "X-L$dependency_libdir"; then
18672                            haveit=yes
18673                            break
18674                          fi
18675                        done
18676                        if test -z "$haveit"; then
18677                          if test -d "$dependency_libdir"; then
18678                                                        LIBRT="${LIBRT}${LIBRT:+ }-L$dependency_libdir"
18679                          fi
18680                        fi
18681                        haveit=
18682                        for x in $LDFLAGS $LTLIBRT; do
18683
18684  acl_save_prefix="$prefix"
18685  prefix="$acl_final_prefix"
18686  acl_save_exec_prefix="$exec_prefix"
18687  exec_prefix="$acl_final_exec_prefix"
18688  eval x=\"$x\"
18689  exec_prefix="$acl_save_exec_prefix"
18690  prefix="$acl_save_prefix"
18691
18692                          if test "X$x" = "X-L$dependency_libdir"; then
18693                            haveit=yes
18694                            break
18695                          fi
18696                        done
18697                        if test -z "$haveit"; then
18698                          if test -d "$dependency_libdir"; then
18699                                                        LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$dependency_libdir"
18700                          fi
18701                        fi
18702                      fi
18703                    fi
18704                    ;;
18705                  -R*)
18706                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
18707                    if test "$enable_rpath" != no; then
18708                                                                  haveit=
18709                      for x in $rpathdirs; do
18710                        if test "X$x" = "X$dir"; then
18711                          haveit=yes
18712                          break
18713                        fi
18714                      done
18715                      if test -z "$haveit"; then
18716                        rpathdirs="$rpathdirs $dir"
18717                      fi
18718                                                                  haveit=
18719                      for x in $ltrpathdirs; do
18720                        if test "X$x" = "X$dir"; then
18721                          haveit=yes
18722                          break
18723                        fi
18724                      done
18725                      if test -z "$haveit"; then
18726                        ltrpathdirs="$ltrpathdirs $dir"
18727                      fi
18728                    fi
18729                    ;;
18730                  -l*)
18731                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18732                    ;;
18733                  *.la)
18734                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18735                    ;;
18736                  *)
18737                                        LIBRT="${LIBRT}${LIBRT:+ }$dep"
18738                    LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
18739                    ;;
18740                esac
18741              done
18742            fi
18743          else
18744                                                            LIBRT="${LIBRT}${LIBRT:+ }-l$name"
18745            LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
18746          fi
18747        fi
18748      fi
18749    done
18750  done
18751  if test "X$rpathdirs" != "X"; then
18752    if test -n "$acl_hardcode_libdir_separator"; then
18753                        alldirs=
18754      for found_dir in $rpathdirs; do
18755        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18756      done
18757            acl_save_libdir="$libdir"
18758      libdir="$alldirs"
18759      eval flag=\"$acl_hardcode_libdir_flag_spec\"
18760      libdir="$acl_save_libdir"
18761      LIBRT="${LIBRT}${LIBRT:+ }$flag"
18762    else
18763            for found_dir in $rpathdirs; do
18764        acl_save_libdir="$libdir"
18765        libdir="$found_dir"
18766        eval flag=\"$acl_hardcode_libdir_flag_spec\"
18767        libdir="$acl_save_libdir"
18768        LIBRT="${LIBRT}${LIBRT:+ }$flag"
18769      done
18770    fi
18771  fi
18772  if test "X$ltrpathdirs" != "X"; then
18773            for found_dir in $ltrpathdirs; do
18774      LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
18775    done
18776  fi
18777
18778
18779
18780
18781
18782
18783        ac_save_CPPFLAGS="$CPPFLAGS"
18784
18785  for element in $INCRT; do
18786    haveit=
18787    for x in $CPPFLAGS; do
18788
18789  acl_save_prefix="$prefix"
18790  prefix="$acl_final_prefix"
18791  acl_save_exec_prefix="$exec_prefix"
18792  exec_prefix="$acl_final_exec_prefix"
18793  eval x=\"$x\"
18794  exec_prefix="$acl_save_exec_prefix"
18795  prefix="$acl_save_prefix"
18796
18797      if test "X$x" = "X$element"; then
18798        haveit=yes
18799        break
18800      fi
18801    done
18802    if test -z "$haveit"; then
18803      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18804    fi
18805  done
18806
18807
18808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
18809$as_echo_n "checking for librt... " >&6; }
18810if ${ac_cv_librt+:} false; then :
18811  $as_echo_n "(cached) " >&6
18812else
18813
18814    ac_save_LIBS="$LIBS"
18815                                case " $LIBRT" in
18816      *" -l"*) LIBS="$LIBS $LIBRT" ;;
18817      *)       LIBS="$LIBRT $LIBS" ;;
18818    esac
18819    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820/* end confdefs.h.  */
18821#include <time.h>
18822int
18823main ()
18824{
18825nanosleep (0, 0);
18826  ;
18827  return 0;
18828}
18829_ACEOF
18830if ac_fn_c_try_link "$LINENO"; then :
18831  ac_cv_librt=yes
18832else
18833  ac_cv_librt='no'
18834fi
18835rm -f core conftest.err conftest.$ac_objext \
18836    conftest$ac_exeext conftest.$ac_ext
18837    LIBS="$ac_save_LIBS"
18838
18839fi
18840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
18841$as_echo "$ac_cv_librt" >&6; }
18842  if test "$ac_cv_librt" = yes; then
18843    HAVE_LIBRT=yes
18844
18845$as_echo "#define HAVE_LIBRT 1" >>confdefs.h
18846
18847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
18848$as_echo_n "checking how to link with librt... " >&6; }
18849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
18850$as_echo "$LIBRT" >&6; }
18851  else
18852    HAVE_LIBRT=no
18853            CPPFLAGS="$ac_save_CPPFLAGS"
18854    LIBRT=
18855    LTLIBRT=
18856    LIBRT_PREFIX=
18857  fi
18858
18859
18860
18861
18862
18863
18864
18865  gnutls_needs_librt=yes
18866fi
18867
18868if test "$ac_cv_func_clock_gettime" != "yes";then
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881    use_additional=yes
18882
18883  acl_save_prefix="$prefix"
18884  prefix="$acl_final_prefix"
18885  acl_save_exec_prefix="$exec_prefix"
18886  exec_prefix="$acl_final_exec_prefix"
18887
18888    eval additional_includedir=\"$includedir\"
18889    eval additional_libdir=\"$libdir\"
18890    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18891    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18892
18893  exec_prefix="$acl_save_exec_prefix"
18894  prefix="$acl_save_prefix"
18895
18896
18897# Check whether --with-librt-prefix was given.
18898if test "${with_librt_prefix+set}" = set; then :
18899  withval=$with_librt_prefix;
18900    if test "X$withval" = "Xno"; then
18901      use_additional=no
18902    else
18903      if test "X$withval" = "X"; then
18904
18905  acl_save_prefix="$prefix"
18906  prefix="$acl_final_prefix"
18907  acl_save_exec_prefix="$exec_prefix"
18908  exec_prefix="$acl_final_exec_prefix"
18909
18910          eval additional_includedir=\"$includedir\"
18911          eval additional_libdir=\"$libdir\"
18912          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18913          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18914
18915  exec_prefix="$acl_save_exec_prefix"
18916  prefix="$acl_save_prefix"
18917
18918      else
18919        additional_includedir="$withval/include"
18920        additional_libdir="$withval/$acl_libdirstem"
18921        additional_libdir2="$withval/$acl_libdirstem2"
18922        additional_libdir3="$withval/$acl_libdirstem3"
18923      fi
18924    fi
18925
18926fi
18927
18928  if test "X$additional_libdir2" = "X$additional_libdir"; then
18929    additional_libdir2=
18930  fi
18931  if test "X$additional_libdir3" = "X$additional_libdir"; then
18932    additional_libdir3=
18933  fi
18934      LIBRT=
18935  LTLIBRT=
18936  INCRT=
18937  LIBRT_PREFIX=
18938      HAVE_LIBRT=
18939  rpathdirs=
18940  ltrpathdirs=
18941  names_already_handled=
18942  names_next_round='rt '
18943  while test -n "$names_next_round"; do
18944    names_this_round="$names_next_round"
18945    names_next_round=
18946    for name in $names_this_round; do
18947      already_handled=
18948      for n in $names_already_handled; do
18949        if test "$n" = "$name"; then
18950          already_handled=yes
18951          break
18952        fi
18953      done
18954      if test -z "$already_handled"; then
18955        names_already_handled="$names_already_handled $name"
18956                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18957        eval value=\"\$HAVE_LIB$uppername\"
18958        if test -n "$value"; then
18959          if test "$value" = yes; then
18960            eval value=\"\$LIB$uppername\"
18961            test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
18962            eval value=\"\$LTLIB$uppername\"
18963            test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
18964          else
18965                                    :
18966          fi
18967        else
18968                              found_dir=
18969          found_la=
18970          found_so=
18971          found_a=
18972          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18973          if test -n "$acl_shlibext"; then
18974            shrext=".$acl_shlibext"             # typically: shrext=.so
18975          else
18976            shrext=
18977          fi
18978          if test $use_additional = yes; then
18979            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
18980              if test "X$found_dir" = "X"; then
18981                eval dir=\$$additional_libdir_variable
18982                if test -n "$dir"; then
18983                                                      if test -n "$acl_shlibext"; then
18984                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18985                      found_dir="$dir"
18986                      found_so="$dir/$libname$shrext"
18987                    else
18988                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18989                        ver=`(cd "$dir" && \
18990                              for f in "$libname$shrext".*; do echo "$f"; done \
18991                              | sed -e "s,^$libname$shrext\\\\.,," \
18992                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18993                              | sed 1q ) 2>/dev/null`
18994                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18995                          found_dir="$dir"
18996                          found_so="$dir/$libname$shrext.$ver"
18997                        fi
18998                      else
18999                        eval library_names=\"$acl_library_names_spec\"
19000                        for f in $library_names; do
19001                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19002                            found_dir="$dir"
19003                            found_so="$dir/$f"
19004                            break
19005                          fi
19006                        done
19007                      fi
19008                    fi
19009                  fi
19010                                    if test "X$found_dir" = "X"; then
19011                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19012                      found_dir="$dir"
19013                      found_a="$dir/$libname.$acl_libext"
19014                    fi
19015                  fi
19016                  if test "X$found_dir" != "X"; then
19017                    if test -f "$dir/$libname.la"; then
19018                      found_la="$dir/$libname.la"
19019                    fi
19020                  fi
19021                fi
19022              fi
19023            done
19024          fi
19025          if test "X$found_dir" = "X"; then
19026            for x in $LDFLAGS $LTLIBRT; do
19027
19028  acl_save_prefix="$prefix"
19029  prefix="$acl_final_prefix"
19030  acl_save_exec_prefix="$exec_prefix"
19031  exec_prefix="$acl_final_exec_prefix"
19032  eval x=\"$x\"
19033  exec_prefix="$acl_save_exec_prefix"
19034  prefix="$acl_save_prefix"
19035
19036              case "$x" in
19037                -L*)
19038                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19039                                    if test -n "$acl_shlibext"; then
19040                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19041                      found_dir="$dir"
19042                      found_so="$dir/$libname$shrext"
19043                    else
19044                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19045                        ver=`(cd "$dir" && \
19046                              for f in "$libname$shrext".*; do echo "$f"; done \
19047                              | sed -e "s,^$libname$shrext\\\\.,," \
19048                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19049                              | sed 1q ) 2>/dev/null`
19050                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19051                          found_dir="$dir"
19052                          found_so="$dir/$libname$shrext.$ver"
19053                        fi
19054                      else
19055                        eval library_names=\"$acl_library_names_spec\"
19056                        for f in $library_names; do
19057                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19058                            found_dir="$dir"
19059                            found_so="$dir/$f"
19060                            break
19061                          fi
19062                        done
19063                      fi
19064                    fi
19065                  fi
19066                                    if test "X$found_dir" = "X"; then
19067                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19068                      found_dir="$dir"
19069                      found_a="$dir/$libname.$acl_libext"
19070                    fi
19071                  fi
19072                  if test "X$found_dir" != "X"; then
19073                    if test -f "$dir/$libname.la"; then
19074                      found_la="$dir/$libname.la"
19075                    fi
19076                  fi
19077                  ;;
19078              esac
19079              if test "X$found_dir" != "X"; then
19080                break
19081              fi
19082            done
19083          fi
19084          if test "X$found_dir" != "X"; then
19085                        LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
19086            if test "X$found_so" != "X"; then
19087                                                        if test "$enable_rpath" = no \
19088                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19089                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
19090                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
19091                                LIBRT="${LIBRT}${LIBRT:+ }$found_so"
19092              else
19093                                                                                haveit=
19094                for x in $ltrpathdirs; do
19095                  if test "X$x" = "X$found_dir"; then
19096                    haveit=yes
19097                    break
19098                  fi
19099                done
19100                if test -z "$haveit"; then
19101                  ltrpathdirs="$ltrpathdirs $found_dir"
19102                fi
19103                                if test "$acl_hardcode_direct" = yes; then
19104                                                      LIBRT="${LIBRT}${LIBRT:+ }$found_so"
19105                else
19106                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19107                                                            LIBRT="${LIBRT}${LIBRT:+ }$found_so"
19108                                                            haveit=
19109                    for x in $rpathdirs; do
19110                      if test "X$x" = "X$found_dir"; then
19111                        haveit=yes
19112                        break
19113                      fi
19114                    done
19115                    if test -z "$haveit"; then
19116                      rpathdirs="$rpathdirs $found_dir"
19117                    fi
19118                  else
19119                                                                                haveit=
19120                    for x in $LDFLAGS $LIBRT; do
19121
19122  acl_save_prefix="$prefix"
19123  prefix="$acl_final_prefix"
19124  acl_save_exec_prefix="$exec_prefix"
19125  exec_prefix="$acl_final_exec_prefix"
19126  eval x=\"$x\"
19127  exec_prefix="$acl_save_exec_prefix"
19128  prefix="$acl_save_prefix"
19129
19130                      if test "X$x" = "X-L$found_dir"; then
19131                        haveit=yes
19132                        break
19133                      fi
19134                    done
19135                    if test -z "$haveit"; then
19136                      LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
19137                    fi
19138                    if test "$acl_hardcode_minus_L" != no; then
19139                                                                                        LIBRT="${LIBRT}${LIBRT:+ }$found_so"
19140                    else
19141                                                                                                                                                                                LIBRT="${LIBRT}${LIBRT:+ }-l$name"
19142                    fi
19143                  fi
19144                fi
19145              fi
19146            else
19147              if test "X$found_a" != "X"; then
19148                                LIBRT="${LIBRT}${LIBRT:+ }$found_a"
19149              else
19150                                                LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
19151              fi
19152            fi
19153                        additional_includedir=
19154            case "$found_dir" in
19155              */$acl_libdirstem | */$acl_libdirstem/)
19156                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19157                if test "$name" = 'rt'; then
19158                  LIBRT_PREFIX="$basedir"
19159                fi
19160                additional_includedir="$basedir/include"
19161                ;;
19162              */$acl_libdirstem2 | */$acl_libdirstem2/)
19163                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19164                if test "$name" = 'rt'; then
19165                  LIBRT_PREFIX="$basedir"
19166                fi
19167                additional_includedir="$basedir/include"
19168                ;;
19169              */$acl_libdirstem3 | */$acl_libdirstem3/)
19170                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
19171                if test "$name" = 'rt'; then
19172                  LIBRT_PREFIX="$basedir"
19173                fi
19174                additional_includedir="$basedir/include"
19175                ;;
19176            esac
19177            if test "X$additional_includedir" != "X"; then
19178                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19179                haveit=
19180                if test "X$additional_includedir" = "X/usr/local/include"; then
19181                  if test -n "$GCC"; then
19182                    case $host_os in
19183                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19184                    esac
19185                  fi
19186                fi
19187                if test -z "$haveit"; then
19188                  for x in $CPPFLAGS $INCRT; do
19189
19190  acl_save_prefix="$prefix"
19191  prefix="$acl_final_prefix"
19192  acl_save_exec_prefix="$exec_prefix"
19193  exec_prefix="$acl_final_exec_prefix"
19194  eval x=\"$x\"
19195  exec_prefix="$acl_save_exec_prefix"
19196  prefix="$acl_save_prefix"
19197
19198                    if test "X$x" = "X-I$additional_includedir"; then
19199                      haveit=yes
19200                      break
19201                    fi
19202                  done
19203                  if test -z "$haveit"; then
19204                    if test -d "$additional_includedir"; then
19205                                            INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
19206                    fi
19207                  fi
19208                fi
19209              fi
19210            fi
19211                        if test -n "$found_la"; then
19212                                                        save_libdir="$libdir"
19213              case "$found_la" in
19214                */* | *\\*) . "$found_la" ;;
19215                *) . "./$found_la" ;;
19216              esac
19217              libdir="$save_libdir"
19218                            for dep in $dependency_libs; do
19219                case "$dep" in
19220                  -L*)
19221                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19222                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
19223                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
19224                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
19225                      haveit=
19226                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
19227                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
19228                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
19229                        if test -n "$GCC"; then
19230                          case $host_os in
19231                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19232                          esac
19233                        fi
19234                      fi
19235                      if test -z "$haveit"; then
19236                        haveit=
19237                        for x in $LDFLAGS $LIBRT; do
19238
19239  acl_save_prefix="$prefix"
19240  prefix="$acl_final_prefix"
19241  acl_save_exec_prefix="$exec_prefix"
19242  exec_prefix="$acl_final_exec_prefix"
19243  eval x=\"$x\"
19244  exec_prefix="$acl_save_exec_prefix"
19245  prefix="$acl_save_prefix"
19246
19247                          if test "X$x" = "X-L$dependency_libdir"; then
19248                            haveit=yes
19249                            break
19250                          fi
19251                        done
19252                        if test -z "$haveit"; then
19253                          if test -d "$dependency_libdir"; then
19254                                                        LIBRT="${LIBRT}${LIBRT:+ }-L$dependency_libdir"
19255                          fi
19256                        fi
19257                        haveit=
19258                        for x in $LDFLAGS $LTLIBRT; do
19259
19260  acl_save_prefix="$prefix"
19261  prefix="$acl_final_prefix"
19262  acl_save_exec_prefix="$exec_prefix"
19263  exec_prefix="$acl_final_exec_prefix"
19264  eval x=\"$x\"
19265  exec_prefix="$acl_save_exec_prefix"
19266  prefix="$acl_save_prefix"
19267
19268                          if test "X$x" = "X-L$dependency_libdir"; then
19269                            haveit=yes
19270                            break
19271                          fi
19272                        done
19273                        if test -z "$haveit"; then
19274                          if test -d "$dependency_libdir"; then
19275                                                        LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$dependency_libdir"
19276                          fi
19277                        fi
19278                      fi
19279                    fi
19280                    ;;
19281                  -R*)
19282                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19283                    if test "$enable_rpath" != no; then
19284                                                                  haveit=
19285                      for x in $rpathdirs; do
19286                        if test "X$x" = "X$dir"; then
19287                          haveit=yes
19288                          break
19289                        fi
19290                      done
19291                      if test -z "$haveit"; then
19292                        rpathdirs="$rpathdirs $dir"
19293                      fi
19294                                                                  haveit=
19295                      for x in $ltrpathdirs; do
19296                        if test "X$x" = "X$dir"; then
19297                          haveit=yes
19298                          break
19299                        fi
19300                      done
19301                      if test -z "$haveit"; then
19302                        ltrpathdirs="$ltrpathdirs $dir"
19303                      fi
19304                    fi
19305                    ;;
19306                  -l*)
19307                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19308                    ;;
19309                  *.la)
19310                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19311                    ;;
19312                  *)
19313                                        LIBRT="${LIBRT}${LIBRT:+ }$dep"
19314                    LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
19315                    ;;
19316                esac
19317              done
19318            fi
19319          else
19320                                                            LIBRT="${LIBRT}${LIBRT:+ }-l$name"
19321            LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
19322          fi
19323        fi
19324      fi
19325    done
19326  done
19327  if test "X$rpathdirs" != "X"; then
19328    if test -n "$acl_hardcode_libdir_separator"; then
19329                        alldirs=
19330      for found_dir in $rpathdirs; do
19331        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19332      done
19333            acl_save_libdir="$libdir"
19334      libdir="$alldirs"
19335      eval flag=\"$acl_hardcode_libdir_flag_spec\"
19336      libdir="$acl_save_libdir"
19337      LIBRT="${LIBRT}${LIBRT:+ }$flag"
19338    else
19339            for found_dir in $rpathdirs; do
19340        acl_save_libdir="$libdir"
19341        libdir="$found_dir"
19342        eval flag=\"$acl_hardcode_libdir_flag_spec\"
19343        libdir="$acl_save_libdir"
19344        LIBRT="${LIBRT}${LIBRT:+ }$flag"
19345      done
19346    fi
19347  fi
19348  if test "X$ltrpathdirs" != "X"; then
19349            for found_dir in $ltrpathdirs; do
19350      LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
19351    done
19352  fi
19353
19354
19355
19356
19357
19358
19359        ac_save_CPPFLAGS="$CPPFLAGS"
19360
19361  for element in $INCRT; do
19362    haveit=
19363    for x in $CPPFLAGS; do
19364
19365  acl_save_prefix="$prefix"
19366  prefix="$acl_final_prefix"
19367  acl_save_exec_prefix="$exec_prefix"
19368  exec_prefix="$acl_final_exec_prefix"
19369  eval x=\"$x\"
19370  exec_prefix="$acl_save_exec_prefix"
19371  prefix="$acl_save_prefix"
19372
19373      if test "X$x" = "X$element"; then
19374        haveit=yes
19375        break
19376      fi
19377    done
19378    if test -z "$haveit"; then
19379      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19380    fi
19381  done
19382
19383
19384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
19385$as_echo_n "checking for librt... " >&6; }
19386if ${ac_cv_librt+:} false; then :
19387  $as_echo_n "(cached) " >&6
19388else
19389
19390    ac_save_LIBS="$LIBS"
19391                                case " $LIBRT" in
19392      *" -l"*) LIBS="$LIBS $LIBRT" ;;
19393      *)       LIBS="$LIBRT $LIBS" ;;
19394    esac
19395    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19396/* end confdefs.h.  */
19397#include <time.h>
19398int
19399main ()
19400{
19401clock_gettime (0, 0);
19402  ;
19403  return 0;
19404}
19405_ACEOF
19406if ac_fn_c_try_link "$LINENO"; then :
19407  ac_cv_librt=yes
19408else
19409  ac_cv_librt='no'
19410fi
19411rm -f core conftest.err conftest.$ac_objext \
19412    conftest$ac_exeext conftest.$ac_ext
19413    LIBS="$ac_save_LIBS"
19414
19415fi
19416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
19417$as_echo "$ac_cv_librt" >&6; }
19418  if test "$ac_cv_librt" = yes; then
19419    HAVE_LIBRT=yes
19420
19421$as_echo "#define HAVE_LIBRT 1" >>confdefs.h
19422
19423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
19424$as_echo_n "checking how to link with librt... " >&6; }
19425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
19426$as_echo "$LIBRT" >&6; }
19427  else
19428    HAVE_LIBRT=no
19429            CPPFLAGS="$ac_save_CPPFLAGS"
19430    LIBRT=
19431    LTLIBRT=
19432    LIBRT_PREFIX=
19433  fi
19434
19435
19436
19437
19438
19439
19440
19441  gnutls_needs_librt=yes
19442fi
19443
19444
19445# Check whether --with-included-unistring was given.
19446if test "${with_included_unistring+set}" = set; then :
19447  withval=$with_included_unistring; included_unistring="$withval"
19448else
19449  included_unistring=no
19450fi
19451
19452
19453if test "$included_unistring" = yes;then
19454  ac_have_unistring=no
19455else
19456  save_LIBS=$LIBS
19457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing u8_normalize" >&5
19458$as_echo_n "checking for library containing u8_normalize... " >&6; }
19459if ${ac_cv_search_u8_normalize+:} false; then :
19460  $as_echo_n "(cached) " >&6
19461else
19462  ac_func_search_save_LIBS=$LIBS
19463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464/* end confdefs.h.  */
19465
19466/* Override any GCC internal prototype to avoid an error.
19467   Use char because int might match the return type of a GCC
19468   builtin and then its argument prototype would still apply.  */
19469#ifdef __cplusplus
19470extern "C"
19471#endif
19472char u8_normalize ();
19473int
19474main ()
19475{
19476return u8_normalize ();
19477  ;
19478  return 0;
19479}
19480_ACEOF
19481for ac_lib in '' unistring; do
19482  if test -z "$ac_lib"; then
19483    ac_res="none required"
19484  else
19485    ac_res=-l$ac_lib
19486    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19487  fi
19488  if ac_fn_c_try_link "$LINENO"; then :
19489  ac_cv_search_u8_normalize=$ac_res
19490fi
19491rm -f core conftest.err conftest.$ac_objext \
19492    conftest$ac_exeext
19493  if ${ac_cv_search_u8_normalize+:} false; then :
19494  break
19495fi
19496done
19497if ${ac_cv_search_u8_normalize+:} false; then :
19498
19499else
19500  ac_cv_search_u8_normalize=no
19501fi
19502rm conftest.$ac_ext
19503LIBS=$ac_func_search_save_LIBS
19504fi
19505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_u8_normalize" >&5
19506$as_echo "$ac_cv_search_u8_normalize" >&6; }
19507ac_res=$ac_cv_search_u8_normalize
19508if test "$ac_res" != no; then :
19509  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19510
19511    included_unistring=no
19512    ac_have_unistring=yes
19513    LIBUNISTRING=$ac_cv_search_u8_normalize
19514
19515
19516else
19517
19518    ac_cv_libunistring=no
19519    as_fn_error $? "
19520  ***
19521  *** Libunistring was not found. To use the included one, use --with-included-unistring
19522    " "$LINENO" 5
19523
19524fi
19525
19526  LIBS=$save_LIBS
19527fi
19528
19529 if test "$ac_have_unistring" = "yes"; then
19530  HAVE_LIBUNISTRING_TRUE=
19531  HAVE_LIBUNISTRING_FALSE='#'
19532else
19533  HAVE_LIBUNISTRING_TRUE='#'
19534  HAVE_LIBUNISTRING_FALSE=
19535fi
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545                        # Check whether --enable-cross-guesses was given.
19546if test "${enable_cross_guesses+set}" = set; then :
19547  enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
19548       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
19549$as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
19550       enableval=conservative
19551     fi
19552     gl_cross_guesses="$enableval"
19553else
19554  gl_cross_guesses=conservative
19555fi
19556
19557  if test $gl_cross_guesses = risky; then
19558    gl_cross_guess_normal="guessing yes"
19559    gl_cross_guess_inverted="guessing no"
19560  else
19561    gl_cross_guess_normal="guessing no"
19562    gl_cross_guess_inverted="guessing yes"
19563  fi
19564          LIBC_FATAL_STDERR_=1
19565  export LIBC_FATAL_STDERR_
19566
19567
19568ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19569if test "x$ac_cv_type_size_t" = xyes; then :
19570
19571else
19572
19573cat >>confdefs.h <<_ACEOF
19574#define size_t unsigned int
19575_ACEOF
19576
19577fi
19578
19579# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19580# for constant arguments.  Useless!
19581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19582$as_echo_n "checking for working alloca.h... " >&6; }
19583if ${ac_cv_working_alloca_h+:} false; then :
19584  $as_echo_n "(cached) " >&6
19585else
19586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19587/* end confdefs.h.  */
19588#include <alloca.h>
19589int
19590main ()
19591{
19592char *p = (char *) alloca (2 * sizeof (int));
19593			  if (p) return 0;
19594  ;
19595  return 0;
19596}
19597_ACEOF
19598if ac_fn_c_try_link "$LINENO"; then :
19599  ac_cv_working_alloca_h=yes
19600else
19601  ac_cv_working_alloca_h=no
19602fi
19603rm -f core conftest.err conftest.$ac_objext \
19604    conftest$ac_exeext conftest.$ac_ext
19605fi
19606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19607$as_echo "$ac_cv_working_alloca_h" >&6; }
19608if test $ac_cv_working_alloca_h = yes; then
19609
19610$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19611
19612fi
19613
19614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19615$as_echo_n "checking for alloca... " >&6; }
19616if ${ac_cv_func_alloca_works+:} false; then :
19617  $as_echo_n "(cached) " >&6
19618else
19619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620/* end confdefs.h.  */
19621#ifdef __GNUC__
19622# define alloca __builtin_alloca
19623#else
19624# ifdef _MSC_VER
19625#  include <malloc.h>
19626#  define alloca _alloca
19627# else
19628#  ifdef HAVE_ALLOCA_H
19629#   include <alloca.h>
19630#  else
19631#   ifdef _AIX
19632 #pragma alloca
19633#   else
19634#    ifndef alloca /* predefined by HP cc +Olibcalls */
19635void *alloca (size_t);
19636#    endif
19637#   endif
19638#  endif
19639# endif
19640#endif
19641
19642int
19643main ()
19644{
19645char *p = (char *) alloca (1);
19646				    if (p) return 0;
19647  ;
19648  return 0;
19649}
19650_ACEOF
19651if ac_fn_c_try_link "$LINENO"; then :
19652  ac_cv_func_alloca_works=yes
19653else
19654  ac_cv_func_alloca_works=no
19655fi
19656rm -f core conftest.err conftest.$ac_objext \
19657    conftest$ac_exeext conftest.$ac_ext
19658fi
19659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19660$as_echo "$ac_cv_func_alloca_works" >&6; }
19661
19662if test $ac_cv_func_alloca_works = yes; then
19663
19664$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19665
19666else
19667  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19668# that cause trouble.  Some versions do not even contain alloca or
19669# contain a buggy version.  If you still want to use their alloca,
19670# use ar to extract alloca.o from them instead of compiling alloca.c.
19671
19672
19673
19674
19675
19676ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19677
19678$as_echo "#define C_ALLOCA 1" >>confdefs.h
19679
19680
19681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19682$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19683if ${ac_cv_os_cray+:} false; then :
19684  $as_echo_n "(cached) " >&6
19685else
19686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19687/* end confdefs.h.  */
19688#if defined CRAY && ! defined CRAY2
19689webecray
19690#else
19691wenotbecray
19692#endif
19693
19694_ACEOF
19695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19696  $EGREP "webecray" >/dev/null 2>&1; then :
19697  ac_cv_os_cray=yes
19698else
19699  ac_cv_os_cray=no
19700fi
19701rm -f conftest*
19702
19703fi
19704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19705$as_echo "$ac_cv_os_cray" >&6; }
19706if test $ac_cv_os_cray = yes; then
19707  for ac_func in _getb67 GETB67 getb67; do
19708    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19709ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19710if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19711
19712cat >>confdefs.h <<_ACEOF
19713#define CRAY_STACKSEG_END $ac_func
19714_ACEOF
19715
19716    break
19717fi
19718
19719  done
19720fi
19721
19722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19723$as_echo_n "checking stack direction for C alloca... " >&6; }
19724if ${ac_cv_c_stack_direction+:} false; then :
19725  $as_echo_n "(cached) " >&6
19726else
19727  if test "$cross_compiling" = yes; then :
19728  ac_cv_c_stack_direction=0
19729else
19730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731/* end confdefs.h.  */
19732$ac_includes_default
19733int
19734find_stack_direction (int *addr, int depth)
19735{
19736  int dir, dummy = 0;
19737  if (! addr)
19738    addr = &dummy;
19739  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19740  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19741  return dir + dummy;
19742}
19743
19744int
19745main (int argc, char **argv)
19746{
19747  return find_stack_direction (0, argc + !argv + 20) < 0;
19748}
19749_ACEOF
19750if ac_fn_c_try_run "$LINENO"; then :
19751  ac_cv_c_stack_direction=1
19752else
19753  ac_cv_c_stack_direction=-1
19754fi
19755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19756  conftest.$ac_objext conftest.beam conftest.$ac_ext
19757fi
19758
19759fi
19760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19761$as_echo "$ac_cv_c_stack_direction" >&6; }
19762cat >>confdefs.h <<_ACEOF
19763#define STACK_DIRECTION $ac_cv_c_stack_direction
19764_ACEOF
19765
19766
19767fi
19768
19769
19770  GNULIB_INET_NTOP=0;
19771  GNULIB_INET_PTON=0;
19772    HAVE_DECL_INET_NTOP=1;
19773  HAVE_DECL_INET_PTON=1;
19774  REPLACE_INET_NTOP=0;
19775  REPLACE_INET_PTON=0;
19776
19777
19778
19779
19780
19781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
19782$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
19783if ${gl_cv_have_include_next+:} false; then :
19784  $as_echo_n "(cached) " >&6
19785else
19786  rm -rf conftestd1a conftestd1b conftestd2
19787     mkdir conftestd1a conftestd1b conftestd2
19788                                                  cat <<EOF > conftestd1a/conftest.h
19789#define DEFINED_IN_CONFTESTD1
19790#include_next <conftest.h>
19791#ifdef DEFINED_IN_CONFTESTD2
19792int foo;
19793#else
19794#error "include_next doesn't work"
19795#endif
19796EOF
19797     cat <<EOF > conftestd1b/conftest.h
19798#define DEFINED_IN_CONFTESTD1
19799#include <stdio.h>
19800#include_next <conftest.h>
19801#ifdef DEFINED_IN_CONFTESTD2
19802int foo;
19803#else
19804#error "include_next doesn't work"
19805#endif
19806EOF
19807     cat <<EOF > conftestd2/conftest.h
19808#ifndef DEFINED_IN_CONFTESTD1
19809#error "include_next test doesn't work"
19810#endif
19811#define DEFINED_IN_CONFTESTD2
19812EOF
19813     gl_save_CPPFLAGS="$CPPFLAGS"
19814     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
19815     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19816/* end confdefs.h.  */
19817#include <conftest.h>
19818_ACEOF
19819if ac_fn_c_try_compile "$LINENO"; then :
19820  gl_cv_have_include_next=yes
19821else
19822  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
19823        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19824/* end confdefs.h.  */
19825#include <conftest.h>
19826_ACEOF
19827if ac_fn_c_try_compile "$LINENO"; then :
19828  gl_cv_have_include_next=buggy
19829else
19830  gl_cv_have_include_next=no
19831fi
19832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833
19834fi
19835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19836     CPPFLAGS="$gl_save_CPPFLAGS"
19837     rm -rf conftestd1a conftestd1b conftestd2
19838
19839fi
19840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
19841$as_echo "$gl_cv_have_include_next" >&6; }
19842  PRAGMA_SYSTEM_HEADER=
19843  if test $gl_cv_have_include_next = yes; then
19844    INCLUDE_NEXT=include_next
19845    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19846    if test -n "$GCC"; then
19847      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
19848    fi
19849  else
19850    if test $gl_cv_have_include_next = buggy; then
19851      INCLUDE_NEXT=include
19852      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19853    else
19854      INCLUDE_NEXT=include
19855      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
19856    fi
19857  fi
19858
19859
19860
19861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
19862$as_echo_n "checking whether system header files limit the line length... " >&6; }
19863if ${gl_cv_pragma_columns+:} false; then :
19864  $as_echo_n "(cached) " >&6
19865else
19866       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19867/* end confdefs.h.  */
19868
19869#ifdef __TANDEM
19870choke me
19871#endif
19872
19873_ACEOF
19874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19875  $EGREP "choke me" >/dev/null 2>&1; then :
19876  gl_cv_pragma_columns=yes
19877else
19878  gl_cv_pragma_columns=no
19879fi
19880rm -f conftest*
19881
19882
19883fi
19884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
19885$as_echo "$gl_cv_pragma_columns" >&6; }
19886  if test $gl_cv_pragma_columns = yes; then
19887    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
19888  else
19889    PRAGMA_COLUMNS=
19890  fi
19891
19892
19893
19894
19895
19896
19897  if test $ac_cv_header_features_h = yes; then
19898    HAVE_FEATURES_H=1
19899  else
19900    HAVE_FEATURES_H=0
19901  fi
19902
19903
19904
19905   if test $ac_cv_header_sys_socket_h = no; then
19906                         for ac_header in ws2tcpip.h
19907do :
19908  ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19909if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
19910  cat >>confdefs.h <<_ACEOF
19911#define HAVE_WS2TCPIP_H 1
19912_ACEOF
19913
19914fi
19915
19916done
19917
19918   fi
19919
19920
19921
19922
19923  for ac_func in $ac_func_list
19924do :
19925  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19926ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19927if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19928  cat >>confdefs.h <<_ACEOF
19929#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19930_ACEOF
19931
19932fi
19933done
19934
19935
19936
19937
19938
19939  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
19940    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
19941
19942$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
19943
19944  else
19945    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
19946  fi
19947
19948
19949
19950
19951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
19952$as_echo_n "checking for complete errno.h... " >&6; }
19953if ${gl_cv_header_errno_h_complete+:} false; then :
19954  $as_echo_n "(cached) " >&6
19955else
19956
19957    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958/* end confdefs.h.  */
19959
19960#include <errno.h>
19961#if !defined ETXTBSY
19962booboo
19963#endif
19964#if !defined ENOMSG
19965booboo
19966#endif
19967#if !defined EIDRM
19968booboo
19969#endif
19970#if !defined ENOLINK
19971booboo
19972#endif
19973#if !defined EPROTO
19974booboo
19975#endif
19976#if !defined EMULTIHOP
19977booboo
19978#endif
19979#if !defined EBADMSG
19980booboo
19981#endif
19982#if !defined EOVERFLOW
19983booboo
19984#endif
19985#if !defined ENOTSUP
19986booboo
19987#endif
19988#if !defined ENETRESET
19989booboo
19990#endif
19991#if !defined ECONNABORTED
19992booboo
19993#endif
19994#if !defined ESTALE
19995booboo
19996#endif
19997#if !defined EDQUOT
19998booboo
19999#endif
20000#if !defined ECANCELED
20001booboo
20002#endif
20003#if !defined EOWNERDEAD
20004booboo
20005#endif
20006#if !defined ENOTRECOVERABLE
20007booboo
20008#endif
20009#if !defined EILSEQ
20010booboo
20011#endif
20012
20013_ACEOF
20014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20015  $EGREP "booboo" >/dev/null 2>&1; then :
20016  gl_cv_header_errno_h_complete=no
20017else
20018  gl_cv_header_errno_h_complete=yes
20019fi
20020rm -f conftest*
20021
20022
20023fi
20024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
20025$as_echo "$gl_cv_header_errno_h_complete" >&6; }
20026  if test $gl_cv_header_errno_h_complete = yes; then
20027    ERRNO_H=''
20028  else
20029
20030
20031
20032
20033
20034
20035
20036
20037     if test $gl_cv_have_include_next = yes; then
20038       gl_cv_next_errno_h='<'errno.h'>'
20039     else
20040       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
20041$as_echo_n "checking absolute name of <errno.h>... " >&6; }
20042if ${gl_cv_next_errno_h+:} false; then :
20043  $as_echo_n "(cached) " >&6
20044else
20045
20046
20047
20048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049/* end confdefs.h.  */
20050#include <errno.h>
20051_ACEOF
20052                case "$host_os" in
20053    aix*) gl_absname_cpp="$ac_cpp -C" ;;
20054    *)    gl_absname_cpp="$ac_cpp" ;;
20055  esac
20056
20057  case "$host_os" in
20058    mingw*)
20059                                          gl_dirsep_regex='[/\\]'
20060      ;;
20061    *)
20062      gl_dirsep_regex='\/'
20063      ;;
20064  esac
20065      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20066  gl_header_literal_regex=`echo 'errno.h' \
20067                           | sed -e "$gl_make_literal_regex_sed"`
20068  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20069      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20070      s|^/[^/]|//&|
20071      p
20072      q
20073    }'
20074
20075        gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20076  sed -n "$gl_absolute_header_sed"`
20077
20078           gl_header=$gl_cv_absolute_errno_h
20079           gl_cv_next_errno_h='"'$gl_header'"'
20080
20081
20082fi
20083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
20084$as_echo "$gl_cv_next_errno_h" >&6; }
20085     fi
20086     NEXT_ERRNO_H=$gl_cv_next_errno_h
20087
20088     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20089       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20090       gl_next_as_first_directive='<'errno.h'>'
20091     else
20092       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20093       gl_next_as_first_directive=$gl_cv_next_errno_h
20094     fi
20095     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
20096
20097
20098
20099
20100    ERRNO_H='errno.h'
20101  fi
20102
20103   if test -n "$ERRNO_H"; then
20104  GL_GENERATE_ERRNO_H_TRUE=
20105  GL_GENERATE_ERRNO_H_FALSE='#'
20106else
20107  GL_GENERATE_ERRNO_H_TRUE='#'
20108  GL_GENERATE_ERRNO_H_FALSE=
20109fi
20110
20111
20112  if test -n "$ERRNO_H"; then
20113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
20114$as_echo_n "checking for EMULTIHOP value... " >&6; }
20115if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
20116  $as_echo_n "(cached) " >&6
20117else
20118
20119      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120/* end confdefs.h.  */
20121
20122#include <errno.h>
20123#ifdef EMULTIHOP
20124yes
20125#endif
20126
20127_ACEOF
20128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20129  $EGREP "yes" >/dev/null 2>&1; then :
20130  gl_cv_header_errno_h_EMULTIHOP=yes
20131else
20132  gl_cv_header_errno_h_EMULTIHOP=no
20133fi
20134rm -f conftest*
20135
20136      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
20137        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138/* end confdefs.h.  */
20139
20140#define _XOPEN_SOURCE_EXTENDED 1
20141#include <errno.h>
20142#ifdef EMULTIHOP
20143yes
20144#endif
20145
20146_ACEOF
20147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20148  $EGREP "yes" >/dev/null 2>&1; then :
20149  gl_cv_header_errno_h_EMULTIHOP=hidden
20150fi
20151rm -f conftest*
20152
20153        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
20154                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
20155#define _XOPEN_SOURCE_EXTENDED 1
20156#include <errno.h>
20157/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20158#include <stdio.h>
20159#include <stdlib.h>
20160"; then :
20161
20162fi
20163
20164        fi
20165      fi
20166
20167fi
20168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
20169$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
20170    case $gl_cv_header_errno_h_EMULTIHOP in
20171      yes | no)
20172        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
20173        ;;
20174      *)
20175        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
20176        ;;
20177    esac
20178
20179
20180  fi
20181
20182
20183  if test -n "$ERRNO_H"; then
20184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
20185$as_echo_n "checking for ENOLINK value... " >&6; }
20186if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
20187  $as_echo_n "(cached) " >&6
20188else
20189
20190      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191/* end confdefs.h.  */
20192
20193#include <errno.h>
20194#ifdef ENOLINK
20195yes
20196#endif
20197
20198_ACEOF
20199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20200  $EGREP "yes" >/dev/null 2>&1; then :
20201  gl_cv_header_errno_h_ENOLINK=yes
20202else
20203  gl_cv_header_errno_h_ENOLINK=no
20204fi
20205rm -f conftest*
20206
20207      if test $gl_cv_header_errno_h_ENOLINK = no; then
20208        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209/* end confdefs.h.  */
20210
20211#define _XOPEN_SOURCE_EXTENDED 1
20212#include <errno.h>
20213#ifdef ENOLINK
20214yes
20215#endif
20216
20217_ACEOF
20218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20219  $EGREP "yes" >/dev/null 2>&1; then :
20220  gl_cv_header_errno_h_ENOLINK=hidden
20221fi
20222rm -f conftest*
20223
20224        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
20225                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
20226#define _XOPEN_SOURCE_EXTENDED 1
20227#include <errno.h>
20228/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20229#include <stdio.h>
20230#include <stdlib.h>
20231"; then :
20232
20233fi
20234
20235        fi
20236      fi
20237
20238fi
20239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20240$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
20241    case $gl_cv_header_errno_h_ENOLINK in
20242      yes | no)
20243        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20244        ;;
20245      *)
20246        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20247        ;;
20248    esac
20249
20250
20251  fi
20252
20253
20254  if test -n "$ERRNO_H"; then
20255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20256$as_echo_n "checking for EOVERFLOW value... " >&6; }
20257if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
20258  $as_echo_n "(cached) " >&6
20259else
20260
20261      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262/* end confdefs.h.  */
20263
20264#include <errno.h>
20265#ifdef EOVERFLOW
20266yes
20267#endif
20268
20269_ACEOF
20270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20271  $EGREP "yes" >/dev/null 2>&1; then :
20272  gl_cv_header_errno_h_EOVERFLOW=yes
20273else
20274  gl_cv_header_errno_h_EOVERFLOW=no
20275fi
20276rm -f conftest*
20277
20278      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
20279        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280/* end confdefs.h.  */
20281
20282#define _XOPEN_SOURCE_EXTENDED 1
20283#include <errno.h>
20284#ifdef EOVERFLOW
20285yes
20286#endif
20287
20288_ACEOF
20289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20290  $EGREP "yes" >/dev/null 2>&1; then :
20291  gl_cv_header_errno_h_EOVERFLOW=hidden
20292fi
20293rm -f conftest*
20294
20295        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
20296                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
20297#define _XOPEN_SOURCE_EXTENDED 1
20298#include <errno.h>
20299/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20300#include <stdio.h>
20301#include <stdlib.h>
20302"; then :
20303
20304fi
20305
20306        fi
20307      fi
20308
20309fi
20310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
20311$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
20312    case $gl_cv_header_errno_h_EOVERFLOW in
20313      yes | no)
20314        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
20315        ;;
20316      *)
20317        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
20318        ;;
20319    esac
20320
20321
20322  fi
20323
20324
20325
20326  GNULIB_EXPLICIT_BZERO=0;
20327  GNULIB_FFSL=0;
20328  GNULIB_FFSLL=0;
20329  GNULIB_MEMCHR=0;
20330  GNULIB_MEMMEM=0;
20331  GNULIB_MEMPCPY=0;
20332  GNULIB_MEMRCHR=0;
20333  GNULIB_RAWMEMCHR=0;
20334  GNULIB_STPCPY=0;
20335  GNULIB_STPNCPY=0;
20336  GNULIB_STRCHRNUL=0;
20337  GNULIB_STRDUP=0;
20338  GNULIB_STRNCAT=0;
20339  GNULIB_STRNDUP=0;
20340  GNULIB_STRNLEN=0;
20341  GNULIB_STRPBRK=0;
20342  GNULIB_STRSEP=0;
20343  GNULIB_STRSTR=0;
20344  GNULIB_STRCASESTR=0;
20345  GNULIB_STRTOK_R=0;
20346  GNULIB_MBSLEN=0;
20347  GNULIB_MBSNLEN=0;
20348  GNULIB_MBSCHR=0;
20349  GNULIB_MBSRCHR=0;
20350  GNULIB_MBSSTR=0;
20351  GNULIB_MBSCASECMP=0;
20352  GNULIB_MBSNCASECMP=0;
20353  GNULIB_MBSPCASECMP=0;
20354  GNULIB_MBSCASESTR=0;
20355  GNULIB_MBSCSPN=0;
20356  GNULIB_MBSPBRK=0;
20357  GNULIB_MBSSPN=0;
20358  GNULIB_MBSSEP=0;
20359  GNULIB_MBSTOK_R=0;
20360  GNULIB_STRERROR=0;
20361  GNULIB_STRERROR_R=0;
20362  GNULIB_STRSIGNAL=0;
20363  GNULIB_STRVERSCMP=0;
20364  HAVE_MBSLEN=0;
20365    HAVE_EXPLICIT_BZERO=1;
20366  HAVE_FFSL=1;
20367  HAVE_FFSLL=1;
20368  HAVE_MEMCHR=1;
20369  HAVE_DECL_MEMMEM=1;
20370  HAVE_MEMPCPY=1;
20371  HAVE_DECL_MEMRCHR=1;
20372  HAVE_RAWMEMCHR=1;
20373  HAVE_STPCPY=1;
20374  HAVE_STPNCPY=1;
20375  HAVE_STRCHRNUL=1;
20376  HAVE_DECL_STRDUP=1;
20377  HAVE_DECL_STRNDUP=1;
20378  HAVE_DECL_STRNLEN=1;
20379  HAVE_STRPBRK=1;
20380  HAVE_STRSEP=1;
20381  HAVE_STRCASESTR=1;
20382  HAVE_DECL_STRTOK_R=1;
20383  HAVE_DECL_STRERROR_R=1;
20384  HAVE_DECL_STRSIGNAL=1;
20385  HAVE_STRVERSCMP=1;
20386  REPLACE_MEMCHR=0;
20387  REPLACE_MEMMEM=0;
20388  REPLACE_STPNCPY=0;
20389  REPLACE_STRCHRNUL=0;
20390  REPLACE_STRDUP=0;
20391  REPLACE_STRNCAT=0;
20392  REPLACE_STRNDUP=0;
20393  REPLACE_STRNLEN=0;
20394  REPLACE_STRSTR=0;
20395  REPLACE_STRCASESTR=0;
20396  REPLACE_STRTOK_R=0;
20397  REPLACE_STRERROR=0;
20398  REPLACE_STRERROR_R=0;
20399  REPLACE_STRSIGNAL=0;
20400  UNDEFINE_STRTOK_R=0;
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410  GNULIB_CREAT=0;
20411  GNULIB_FCNTL=0;
20412  GNULIB_NONBLOCKING=0;
20413  GNULIB_OPEN=0;
20414  GNULIB_OPENAT=0;
20415    HAVE_FCNTL=1;
20416  HAVE_OPENAT=1;
20417  REPLACE_CREAT=0;
20418  REPLACE_FCNTL=0;
20419  REPLACE_OPEN=0;
20420  REPLACE_OPENAT=0;
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
20434$as_echo_n "checking for working fcntl.h... " >&6; }
20435if ${gl_cv_header_working_fcntl_h+:} false; then :
20436  $as_echo_n "(cached) " >&6
20437else
20438  if test "$cross_compiling" = yes; then :
20439  case "$host_os" in
20440                  # Guess 'no' on native Windows.
20441          mingw*) gl_cv_header_working_fcntl_h='no' ;;
20442          *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
20443        esac
20444
20445else
20446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20447/* end confdefs.h.  */
20448#include <sys/types.h>
20449           #include <sys/stat.h>
20450           #if HAVE_UNISTD_H
20451           # include <unistd.h>
20452           #else /* on Windows with MSVC */
20453           # include <io.h>
20454           # include <stdlib.h>
20455           # defined sleep(n) _sleep ((n) * 1000)
20456           #endif
20457           #include <fcntl.h>
20458           #ifndef O_NOATIME
20459            #define O_NOATIME 0
20460           #endif
20461           #ifndef O_NOFOLLOW
20462            #define O_NOFOLLOW 0
20463           #endif
20464           static int const constants[] =
20465            {
20466              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20467              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20468            };
20469
20470int
20471main ()
20472{
20473
20474            int result = !constants;
20475            #if HAVE_SYMLINK
20476            {
20477              static char const sym[] = "conftest.sym";
20478              if (symlink ("/dev/null", sym) != 0)
20479                result |= 2;
20480              else
20481                {
20482                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
20483                  if (fd >= 0)
20484                    {
20485                      close (fd);
20486                      result |= 4;
20487                    }
20488                }
20489              if (unlink (sym) != 0 || symlink (".", sym) != 0)
20490                result |= 2;
20491              else
20492                {
20493                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
20494                  if (fd >= 0)
20495                    {
20496                      close (fd);
20497                      result |= 4;
20498                    }
20499                }
20500              unlink (sym);
20501            }
20502            #endif
20503            {
20504              static char const file[] = "confdefs.h";
20505              int fd = open (file, O_RDONLY | O_NOATIME);
20506              if (fd < 0)
20507                result |= 8;
20508              else
20509                {
20510                  struct stat st0;
20511                  if (fstat (fd, &st0) != 0)
20512                    result |= 16;
20513                  else
20514                    {
20515                      char c;
20516                      sleep (1);
20517                      if (read (fd, &c, 1) != 1)
20518                        result |= 24;
20519                      else
20520                        {
20521                          if (close (fd) != 0)
20522                            result |= 32;
20523                          else
20524                            {
20525                              struct stat st1;
20526                              if (stat (file, &st1) != 0)
20527                                result |= 40;
20528                              else
20529                                if (st0.st_atime != st1.st_atime)
20530                                  result |= 64;
20531                            }
20532                        }
20533                    }
20534                }
20535            }
20536            return result;
20537  ;
20538  return 0;
20539}
20540_ACEOF
20541if ac_fn_c_try_run "$LINENO"; then :
20542  gl_cv_header_working_fcntl_h=yes
20543else
20544  case $? in #(
20545        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20546        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20547        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20548         *) gl_cv_header_working_fcntl_h='no';;
20549        esac
20550fi
20551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20552  conftest.$ac_objext conftest.beam conftest.$ac_ext
20553fi
20554
20555
20556fi
20557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
20558$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
20559
20560  case $gl_cv_header_working_fcntl_h in #(
20561  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20562  *) ac_val=1;;
20563  esac
20564
20565cat >>confdefs.h <<_ACEOF
20566#define HAVE_WORKING_O_NOATIME $ac_val
20567_ACEOF
20568
20569
20570  case $gl_cv_header_working_fcntl_h in #(
20571  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20572  *) ac_val=1;;
20573  esac
20574
20575cat >>confdefs.h <<_ACEOF
20576#define HAVE_WORKING_O_NOFOLLOW $ac_val
20577_ACEOF
20578
20579
20580ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20581if test "x$ac_cv_type_pid_t" = xyes; then :
20582
20583else
20584
20585cat >>confdefs.h <<_ACEOF
20586#define pid_t int
20587_ACEOF
20588
20589fi
20590
20591ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20592if test "x$ac_cv_type_mode_t" = xyes; then :
20593
20594else
20595
20596cat >>confdefs.h <<_ACEOF
20597#define mode_t int
20598_ACEOF
20599
20600fi
20601
20602
20603  GNULIB_DPRINTF=0;
20604  GNULIB_FCLOSE=0;
20605  GNULIB_FDOPEN=0;
20606  GNULIB_FFLUSH=0;
20607  GNULIB_FGETC=0;
20608  GNULIB_FGETS=0;
20609  GNULIB_FOPEN=0;
20610  GNULIB_FPRINTF=0;
20611  GNULIB_FPRINTF_POSIX=0;
20612  GNULIB_FPURGE=0;
20613  GNULIB_FPUTC=0;
20614  GNULIB_FPUTS=0;
20615  GNULIB_FREAD=0;
20616  GNULIB_FREOPEN=0;
20617  GNULIB_FSCANF=0;
20618  GNULIB_FSEEK=0;
20619  GNULIB_FSEEKO=0;
20620  GNULIB_FTELL=0;
20621  GNULIB_FTELLO=0;
20622  GNULIB_FWRITE=0;
20623  GNULIB_GETC=0;
20624  GNULIB_GETCHAR=0;
20625  GNULIB_GETDELIM=0;
20626  GNULIB_GETLINE=0;
20627  GNULIB_OBSTACK_PRINTF=0;
20628  GNULIB_OBSTACK_PRINTF_POSIX=0;
20629  GNULIB_PCLOSE=0;
20630  GNULIB_PERROR=0;
20631  GNULIB_POPEN=0;
20632  GNULIB_PRINTF=0;
20633  GNULIB_PRINTF_POSIX=0;
20634  GNULIB_PUTC=0;
20635  GNULIB_PUTCHAR=0;
20636  GNULIB_PUTS=0;
20637  GNULIB_REMOVE=0;
20638  GNULIB_RENAME=0;
20639  GNULIB_RENAMEAT=0;
20640  GNULIB_SCANF=0;
20641  GNULIB_SNPRINTF=0;
20642  GNULIB_SPRINTF_POSIX=0;
20643  GNULIB_STDIO_H_NONBLOCKING=0;
20644  GNULIB_STDIO_H_SIGPIPE=0;
20645  GNULIB_TMPFILE=0;
20646  GNULIB_VASPRINTF=0;
20647  GNULIB_VFSCANF=0;
20648  GNULIB_VSCANF=0;
20649  GNULIB_VDPRINTF=0;
20650  GNULIB_VFPRINTF=0;
20651  GNULIB_VFPRINTF_POSIX=0;
20652  GNULIB_VPRINTF=0;
20653  GNULIB_VPRINTF_POSIX=0;
20654  GNULIB_VSNPRINTF=0;
20655  GNULIB_VSPRINTF_POSIX=0;
20656    HAVE_DECL_FPURGE=1;
20657  HAVE_DECL_FSEEKO=1;
20658  HAVE_DECL_FTELLO=1;
20659  HAVE_DECL_GETDELIM=1;
20660  HAVE_DECL_GETLINE=1;
20661  HAVE_DECL_OBSTACK_PRINTF=1;
20662  HAVE_DECL_SNPRINTF=1;
20663  HAVE_DECL_VSNPRINTF=1;
20664  HAVE_DPRINTF=1;
20665  HAVE_FSEEKO=1;
20666  HAVE_FTELLO=1;
20667  HAVE_PCLOSE=1;
20668  HAVE_POPEN=1;
20669  HAVE_RENAMEAT=1;
20670  HAVE_VASPRINTF=1;
20671  HAVE_VDPRINTF=1;
20672  REPLACE_DPRINTF=0;
20673  REPLACE_FCLOSE=0;
20674  REPLACE_FDOPEN=0;
20675  REPLACE_FFLUSH=0;
20676  REPLACE_FOPEN=0;
20677  REPLACE_FPRINTF=0;
20678  REPLACE_FPURGE=0;
20679  REPLACE_FREOPEN=0;
20680  REPLACE_FSEEK=0;
20681  REPLACE_FSEEKO=0;
20682  REPLACE_FTELL=0;
20683  REPLACE_FTELLO=0;
20684  REPLACE_GETDELIM=0;
20685  REPLACE_GETLINE=0;
20686  REPLACE_OBSTACK_PRINTF=0;
20687  REPLACE_PERROR=0;
20688  REPLACE_POPEN=0;
20689  REPLACE_PRINTF=0;
20690  REPLACE_REMOVE=0;
20691  REPLACE_RENAME=0;
20692  REPLACE_RENAMEAT=0;
20693  REPLACE_SNPRINTF=0;
20694  REPLACE_SPRINTF=0;
20695  REPLACE_STDIO_READ_FUNCS=0;
20696  REPLACE_STDIO_WRITE_FUNCS=0;
20697  REPLACE_TMPFILE=0;
20698  REPLACE_VASPRINTF=0;
20699  REPLACE_VDPRINTF=0;
20700  REPLACE_VFPRINTF=0;
20701  REPLACE_VPRINTF=0;
20702  REPLACE_VSNPRINTF=0;
20703  REPLACE_VSPRINTF=0;
20704
20705
20706     GNULIB_FCHMODAT=0;
20707  GNULIB_FSTAT=0;
20708  GNULIB_FSTATAT=0;
20709  GNULIB_FUTIMENS=0;
20710  GNULIB_LCHMOD=0;
20711  GNULIB_LSTAT=0;
20712  GNULIB_MKDIRAT=0;
20713  GNULIB_MKFIFO=0;
20714  GNULIB_MKFIFOAT=0;
20715  GNULIB_MKNOD=0;
20716  GNULIB_MKNODAT=0;
20717  GNULIB_STAT=0;
20718  GNULIB_UTIMENSAT=0;
20719  GNULIB_OVERRIDES_STRUCT_STAT=0;
20720    HAVE_FCHMODAT=1;
20721  HAVE_FSTATAT=1;
20722  HAVE_FUTIMENS=1;
20723  HAVE_LCHMOD=1;
20724  HAVE_LSTAT=1;
20725  HAVE_MKDIRAT=1;
20726  HAVE_MKFIFO=1;
20727  HAVE_MKFIFOAT=1;
20728  HAVE_MKNOD=1;
20729  HAVE_MKNODAT=1;
20730  HAVE_UTIMENSAT=1;
20731  REPLACE_FCHMODAT=0;
20732  REPLACE_FSTAT=0;
20733  REPLACE_FSTATAT=0;
20734  REPLACE_FUTIMENS=0;
20735  REPLACE_LSTAT=0;
20736  REPLACE_MKDIR=0;
20737  REPLACE_MKFIFO=0;
20738  REPLACE_MKNOD=0;
20739  REPLACE_STAT=0;
20740  REPLACE_UTIMENSAT=0;
20741
20742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20743$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20744if ${ac_cv_header_stat_broken+:} false; then :
20745  $as_echo_n "(cached) " >&6
20746else
20747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748/* end confdefs.h.  */
20749#include <sys/types.h>
20750#include <sys/stat.h>
20751
20752#if defined S_ISBLK && defined S_IFDIR
20753extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20754#endif
20755
20756#if defined S_ISBLK && defined S_IFCHR
20757extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20758#endif
20759
20760#if defined S_ISLNK && defined S_IFREG
20761extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20762#endif
20763
20764#if defined S_ISSOCK && defined S_IFREG
20765extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20766#endif
20767
20768_ACEOF
20769if ac_fn_c_try_compile "$LINENO"; then :
20770  ac_cv_header_stat_broken=no
20771else
20772  ac_cv_header_stat_broken=yes
20773fi
20774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775fi
20776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20777$as_echo "$ac_cv_header_stat_broken" >&6; }
20778if test $ac_cv_header_stat_broken = yes; then
20779
20780$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20781
20782fi
20783
20784
20785
20786
20787
20788  case "$host_os" in
20789    mingw*)
20790                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20791$as_echo_n "checking for 64-bit off_t... " >&6; }
20792if ${gl_cv_type_off_t_64+:} false; then :
20793  $as_echo_n "(cached) " >&6
20794else
20795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20796/* end confdefs.h.  */
20797#include <sys/types.h>
20798                int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20799
20800int
20801main ()
20802{
20803
20804  ;
20805  return 0;
20806}
20807_ACEOF
20808if ac_fn_c_try_compile "$LINENO"; then :
20809  gl_cv_type_off_t_64=yes
20810else
20811  gl_cv_type_off_t_64=no
20812fi
20813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20814
20815fi
20816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20817$as_echo "$gl_cv_type_off_t_64" >&6; }
20818      if test $gl_cv_type_off_t_64 = no; then
20819        WINDOWS_64_BIT_OFF_T=1
20820      else
20821        WINDOWS_64_BIT_OFF_T=0
20822      fi
20823                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
20824$as_echo_n "checking for 64-bit st_size... " >&6; }
20825if ${gl_cv_member_st_size_64+:} false; then :
20826  $as_echo_n "(cached) " >&6
20827else
20828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829/* end confdefs.h.  */
20830#include <sys/types.h>
20831                struct stat buf;
20832                int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
20833
20834int
20835main ()
20836{
20837
20838  ;
20839  return 0;
20840}
20841_ACEOF
20842if ac_fn_c_try_compile "$LINENO"; then :
20843  gl_cv_member_st_size_64=yes
20844else
20845  gl_cv_member_st_size_64=no
20846fi
20847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848
20849fi
20850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
20851$as_echo "$gl_cv_member_st_size_64" >&6; }
20852      if test $gl_cv_member_st_size_64 = no; then
20853        WINDOWS_64_BIT_ST_SIZE=1
20854      else
20855        WINDOWS_64_BIT_ST_SIZE=0
20856      fi
20857      ;;
20858    *)
20859                                                      WINDOWS_64_BIT_OFF_T=0
20860      WINDOWS_64_BIT_ST_SIZE=0
20861      ;;
20862  esac
20863
20864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
20865$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
20866if ${ac_cv_c_restrict+:} false; then :
20867  $as_echo_n "(cached) " >&6
20868else
20869  ac_cv_c_restrict=no
20870   # The order here caters to the fact that C++ does not require restrict.
20871   for ac_kw in __restrict __restrict__ _Restrict restrict; do
20872     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20873/* end confdefs.h.  */
20874typedef int *int_ptr;
20875           int foo (int_ptr $ac_kw ip) { return ip[0]; }
20876           int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
20877           int bar (int ip[$ac_kw]) { return ip[0]; }
20878
20879int
20880main ()
20881{
20882int s[1];
20883           int *$ac_kw t = s;
20884           t[0] = 0;
20885           return foo (t) + bar (t);
20886
20887  ;
20888  return 0;
20889}
20890_ACEOF
20891if ac_fn_c_try_compile "$LINENO"; then :
20892  ac_cv_c_restrict=$ac_kw
20893fi
20894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20895     test "$ac_cv_c_restrict" != no && break
20896   done
20897
20898fi
20899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
20900$as_echo "$ac_cv_c_restrict" >&6; }
20901
20902 case $ac_cv_c_restrict in
20903   restrict) ;;
20904   no) $as_echo "#define restrict /**/" >>confdefs.h
20905 ;;
20906   *)  cat >>confdefs.h <<_ACEOF
20907#define restrict $ac_cv_c_restrict
20908_ACEOF
20909 ;;
20910 esac
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926     if test $gl_cv_have_include_next = yes; then
20927       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20928     else
20929       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20930$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20931if ${gl_cv_next_sys_stat_h+:} false; then :
20932  $as_echo_n "(cached) " >&6
20933else
20934
20935             if test $ac_cv_header_sys_stat_h = yes; then
20936
20937
20938
20939
20940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20941/* end confdefs.h.  */
20942#include <sys/stat.h>
20943_ACEOF
20944                case "$host_os" in
20945    aix*) gl_absname_cpp="$ac_cpp -C" ;;
20946    *)    gl_absname_cpp="$ac_cpp" ;;
20947  esac
20948
20949  case "$host_os" in
20950    mingw*)
20951                                          gl_dirsep_regex='[/\\]'
20952      ;;
20953    *)
20954      gl_dirsep_regex='\/'
20955      ;;
20956  esac
20957      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20958  gl_header_literal_regex=`echo 'sys/stat.h' \
20959                           | sed -e "$gl_make_literal_regex_sed"`
20960  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20961      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20962      s|^/[^/]|//&|
20963      p
20964      q
20965    }'
20966
20967        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20968  sed -n "$gl_absolute_header_sed"`
20969
20970           gl_header=$gl_cv_absolute_sys_stat_h
20971           gl_cv_next_sys_stat_h='"'$gl_header'"'
20972          else
20973               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20974             fi
20975
20976
20977fi
20978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20979$as_echo "$gl_cv_next_sys_stat_h" >&6; }
20980     fi
20981     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20982
20983     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20984       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20985       gl_next_as_first_directive='<'sys/stat.h'>'
20986     else
20987       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20988       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20989     fi
20990     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20991
20992
20993
20994
20995
20996
20997
20998
20999    WINDOWS_STAT_TIMESPEC=0
21000
21001
21002
21003
21004
21005
21006
21007
21008      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21009     #include <sys/stat.h>
21010"
21011if test "x$ac_cv_type_nlink_t" = xyes; then :
21012
21013else
21014
21015$as_echo "#define nlink_t int" >>confdefs.h
21016
21017fi
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
21028$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
21029if ${gl_cv_var_stdin_large_offset+:} false; then :
21030  $as_echo_n "(cached) " >&6
21031else
21032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21033/* end confdefs.h.  */
21034#include <stdio.h>
21035int
21036main ()
21037{
21038#if defined __SL64 && defined __SCLE /* cygwin */
21039  /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
21040     fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
21041     it is easier to do a version check than building a runtime test.  */
21042# include <cygwin/version.h>
21043# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
21044  choke me
21045# endif
21046#endif
21047  ;
21048  return 0;
21049}
21050_ACEOF
21051if ac_fn_c_try_link "$LINENO"; then :
21052  gl_cv_var_stdin_large_offset=yes
21053else
21054  gl_cv_var_stdin_large_offset=no
21055fi
21056rm -f core conftest.err conftest.$ac_objext \
21057    conftest$ac_exeext conftest.$ac_ext
21058fi
21059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
21060$as_echo "$gl_cv_var_stdin_large_offset" >&6; }
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072$as_echo "#define _USE_STD_STAT 1" >>confdefs.h
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084     if test $gl_cv_have_include_next = yes; then
21085       gl_cv_next_sys_types_h='<'sys/types.h'>'
21086     else
21087       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
21088$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
21089if ${gl_cv_next_sys_types_h+:} false; then :
21090  $as_echo_n "(cached) " >&6
21091else
21092
21093
21094
21095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21096/* end confdefs.h.  */
21097#include <sys/types.h>
21098_ACEOF
21099                case "$host_os" in
21100    aix*) gl_absname_cpp="$ac_cpp -C" ;;
21101    *)    gl_absname_cpp="$ac_cpp" ;;
21102  esac
21103
21104  case "$host_os" in
21105    mingw*)
21106                                          gl_dirsep_regex='[/\\]'
21107      ;;
21108    *)
21109      gl_dirsep_regex='\/'
21110      ;;
21111  esac
21112      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21113  gl_header_literal_regex=`echo 'sys/types.h' \
21114                           | sed -e "$gl_make_literal_regex_sed"`
21115  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21116      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21117      s|^/[^/]|//&|
21118      p
21119      q
21120    }'
21121
21122        gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21123  sed -n "$gl_absolute_header_sed"`
21124
21125           gl_header=$gl_cv_absolute_sys_types_h
21126           gl_cv_next_sys_types_h='"'$gl_header'"'
21127
21128
21129fi
21130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
21131$as_echo "$gl_cv_next_sys_types_h" >&6; }
21132     fi
21133     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
21134
21135     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21136       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21137       gl_next_as_first_directive='<'sys/types.h'>'
21138     else
21139       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21140       gl_next_as_first_directive=$gl_cv_next_sys_types_h
21141     fi
21142     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155    WINDOWS_STAT_INODES=0
21156
21157
21158
21159ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
21160if test "x$ac_cv_have_decl_ftello" = xyes; then :
21161  ac_have_decl=1
21162else
21163  ac_have_decl=0
21164fi
21165
21166cat >>confdefs.h <<_ACEOF
21167#define HAVE_DECL_FTELLO $ac_have_decl
21168_ACEOF
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179  if test $ac_cv_have_decl_ftello = no; then
21180    HAVE_DECL_FTELLO=0
21181  fi
21182
21183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
21184$as_echo_n "checking for ftello... " >&6; }
21185if ${gl_cv_func_ftello+:} false; then :
21186  $as_echo_n "(cached) " >&6
21187else
21188
21189      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21190/* end confdefs.h.  */
21191#include <stdio.h>
21192int
21193main ()
21194{
21195ftello (stdin);
21196  ;
21197  return 0;
21198}
21199_ACEOF
21200if ac_fn_c_try_link "$LINENO"; then :
21201  gl_cv_func_ftello=yes
21202else
21203  gl_cv_func_ftello=no
21204fi
21205rm -f core conftest.err conftest.$ac_objext \
21206    conftest$ac_exeext conftest.$ac_ext
21207
21208fi
21209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
21210$as_echo "$gl_cv_func_ftello" >&6; }
21211  if test $gl_cv_func_ftello = no; then
21212    HAVE_FTELLO=0
21213  else
21214    if test $WINDOWS_64_BIT_OFF_T = 1; then
21215      REPLACE_FTELLO=1
21216    fi
21217    if test $gl_cv_var_stdin_large_offset = no; then
21218      REPLACE_FTELLO=1
21219    fi
21220    if test $REPLACE_FTELLO = 0; then
21221
21222      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
21223$as_echo_n "checking whether ftello works... " >&6; }
21224if ${gl_cv_func_ftello_works+:} false; then :
21225  $as_echo_n "(cached) " >&6
21226else
21227
21228                              case "$host_os" in
21229                      # Guess no on Solaris.
21230            solaris*) gl_cv_func_ftello_works="guessing no" ;;
21231                      # Guess yes on native Windows.
21232            mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
21233                      # Guess yes otherwise.
21234            *)        gl_cv_func_ftello_works="guessing yes" ;;
21235          esac
21236          if test "$cross_compiling" = yes; then :
21237  :
21238else
21239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21240/* end confdefs.h.  */
21241
21242#include <stdio.h>
21243#include <stdlib.h>
21244#include <string.h>
21245#define TESTFILE "conftest.tmp"
21246int
21247main (void)
21248{
21249  FILE *fp;
21250
21251  /* Create a file with some contents.  */
21252  fp = fopen (TESTFILE, "w");
21253  if (fp == NULL)
21254    return 70;
21255  if (fwrite ("foogarsh", 1, 8, fp) < 8)
21256    { fclose (fp); return 71; }
21257  if (fclose (fp))
21258    return 72;
21259
21260  /* The file's contents is now "foogarsh".  */
21261
21262  /* Try writing after reading to EOF.  */
21263  fp = fopen (TESTFILE, "r+");
21264  if (fp == NULL)
21265    return 73;
21266  if (fseek (fp, -1, SEEK_END))
21267    { fclose (fp); return 74; }
21268  if (!(getc (fp) == 'h'))
21269    { fclose (fp); return 1; }
21270  if (!(getc (fp) == EOF))
21271    { fclose (fp); return 2; }
21272  if (!(ftell (fp) == 8))
21273    { fclose (fp); return 3; }
21274  if (!(ftell (fp) == 8))
21275    { fclose (fp); return 4; }
21276  if (!(putc ('!', fp) == '!'))
21277    { fclose (fp); return 5; }
21278  if (!(ftell (fp) == 9))
21279    { fclose (fp); return 6; }
21280  if (!(fclose (fp) == 0))
21281    return 7;
21282  fp = fopen (TESTFILE, "r");
21283  if (fp == NULL)
21284    return 75;
21285  {
21286    char buf[10];
21287    if (!(fread (buf, 1, 10, fp) == 9))
21288      { fclose (fp); return 10; }
21289    if (!(memcmp (buf, "foogarsh!", 9) == 0))
21290      { fclose (fp); return 11; }
21291  }
21292  if (!(fclose (fp) == 0))
21293    return 12;
21294
21295  /* The file's contents is now "foogarsh!".  */
21296
21297  return 0;
21298}
21299_ACEOF
21300if ac_fn_c_try_run "$LINENO"; then :
21301  gl_cv_func_ftello_works=yes
21302else
21303  gl_cv_func_ftello_works=no
21304fi
21305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21306  conftest.$ac_objext conftest.beam conftest.$ac_ext
21307fi
21308
21309
21310fi
21311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
21312$as_echo "$gl_cv_func_ftello_works" >&6; }
21313      case "$gl_cv_func_ftello_works" in
21314        *yes) ;;
21315        *)
21316          REPLACE_FTELLO=1
21317
21318$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
21319
21320          ;;
21321      esac
21322    fi
21323  fi
21324
21325ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
21326if test "x$ac_cv_have_decl_getdelim" = xyes; then :
21327  ac_have_decl=1
21328else
21329  ac_have_decl=0
21330fi
21331
21332cat >>confdefs.h <<_ACEOF
21333#define HAVE_DECL_GETDELIM $ac_have_decl
21334_ACEOF
21335
21336
21337
21338
21339
21340ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
21341if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
21342  ac_have_decl=1
21343else
21344  ac_have_decl=0
21345fi
21346
21347cat >>confdefs.h <<_ACEOF
21348#define HAVE_DECL_GETDTABLESIZE $ac_have_decl
21349_ACEOF
21350
21351ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
21352if test "x$ac_cv_have_decl_getline" = xyes; then :
21353  ac_have_decl=1
21354else
21355  ac_have_decl=0
21356fi
21357
21358cat >>confdefs.h <<_ACEOF
21359#define HAVE_DECL_GETLINE $ac_have_decl
21360_ACEOF
21361
21362
21363  GNULIB_GETTIMEOFDAY=0;
21364    HAVE_GETTIMEOFDAY=1;
21365  HAVE_STRUCT_TIMEVAL=1;
21366  HAVE_SYS_TIME_H=1;
21367  REPLACE_GETTIMEOFDAY=0;
21368  REPLACE_STRUCT_TIMEVAL=0;
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385     if test $gl_cv_have_include_next = yes; then
21386       gl_cv_next_sys_time_h='<'sys/time.h'>'
21387     else
21388       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
21389$as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
21390if ${gl_cv_next_sys_time_h+:} false; then :
21391  $as_echo_n "(cached) " >&6
21392else
21393
21394             if test $ac_cv_header_sys_time_h = yes; then
21395
21396
21397
21398
21399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21400/* end confdefs.h.  */
21401#include <sys/time.h>
21402_ACEOF
21403                case "$host_os" in
21404    aix*) gl_absname_cpp="$ac_cpp -C" ;;
21405    *)    gl_absname_cpp="$ac_cpp" ;;
21406  esac
21407
21408  case "$host_os" in
21409    mingw*)
21410                                          gl_dirsep_regex='[/\\]'
21411      ;;
21412    *)
21413      gl_dirsep_regex='\/'
21414      ;;
21415  esac
21416      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21417  gl_header_literal_regex=`echo 'sys/time.h' \
21418                           | sed -e "$gl_make_literal_regex_sed"`
21419  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21420      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21421      s|^/[^/]|//&|
21422      p
21423      q
21424    }'
21425
21426        gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21427  sed -n "$gl_absolute_header_sed"`
21428
21429           gl_header=$gl_cv_absolute_sys_time_h
21430           gl_cv_next_sys_time_h='"'$gl_header'"'
21431          else
21432               gl_cv_next_sys_time_h='<'sys/time.h'>'
21433             fi
21434
21435
21436fi
21437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
21438$as_echo "$gl_cv_next_sys_time_h" >&6; }
21439     fi
21440     NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
21441
21442     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21443       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21444       gl_next_as_first_directive='<'sys/time.h'>'
21445     else
21446       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21447       gl_next_as_first_directive=$gl_cv_next_sys_time_h
21448     fi
21449     NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
21450
21451
21452
21453
21454
21455  if test $ac_cv_header_sys_time_h != yes; then
21456    HAVE_SYS_TIME_H=0
21457  fi
21458
21459
21460
21461
21462
21463  if test $ac_cv_header_sys_socket_h != yes; then
21464                    for ac_header in winsock2.h
21465do :
21466  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21467if test "x$ac_cv_header_winsock2_h" = xyes; then :
21468  cat >>confdefs.h <<_ACEOF
21469#define HAVE_WINSOCK2_H 1
21470_ACEOF
21471
21472fi
21473
21474done
21475
21476  fi
21477  if test "$ac_cv_header_winsock2_h" = yes; then
21478    HAVE_WINSOCK2_H=1
21479    UNISTD_H_HAVE_WINSOCK2_H=1
21480    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21481  else
21482    HAVE_WINSOCK2_H=0
21483  fi
21484
21485
21486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
21487$as_echo_n "checking for struct timeval... " >&6; }
21488if ${gl_cv_sys_struct_timeval+:} false; then :
21489  $as_echo_n "(cached) " >&6
21490else
21491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21492/* end confdefs.h.  */
21493#if HAVE_SYS_TIME_H
21494             #include <sys/time.h>
21495            #endif
21496            #include <time.h>
21497            #if HAVE_WINSOCK2_H
21498            # include <winsock2.h>
21499            #endif
21500
21501int
21502main ()
21503{
21504static struct timeval x; x.tv_sec = x.tv_usec;
21505  ;
21506  return 0;
21507}
21508_ACEOF
21509if ac_fn_c_try_compile "$LINENO"; then :
21510  gl_cv_sys_struct_timeval=yes
21511else
21512  gl_cv_sys_struct_timeval=no
21513fi
21514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515
21516fi
21517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
21518$as_echo "$gl_cv_sys_struct_timeval" >&6; }
21519  if test $gl_cv_sys_struct_timeval != yes; then
21520    HAVE_STRUCT_TIMEVAL=0
21521  else
21522                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
21523$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
21524if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
21525  $as_echo_n "(cached) " >&6
21526else
21527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21528/* end confdefs.h.  */
21529#if HAVE_SYS_TIME_H
21530               #include <sys/time.h>
21531              #endif
21532              #include <time.h>
21533              #if HAVE_WINSOCK2_H
21534              # include <winsock2.h>
21535              #endif
21536
21537int
21538main ()
21539{
21540static struct timeval x;
21541              typedef int verify_tv_sec_type[
21542                sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
21543              ];
21544
21545  ;
21546  return 0;
21547}
21548_ACEOF
21549if ac_fn_c_try_compile "$LINENO"; then :
21550  gl_cv_sys_struct_timeval_tv_sec=yes
21551else
21552  gl_cv_sys_struct_timeval_tv_sec=no
21553fi
21554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555
21556fi
21557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
21558$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
21559    if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
21560      REPLACE_STRUCT_TIMEVAL=1
21561    fi
21562  fi
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574  NEED_LOCALTIME_BUFFER=0
21575
21576
21577  GNULIB_CTIME=0;
21578  GNULIB_MKTIME=0;
21579  GNULIB_LOCALTIME=0;
21580  GNULIB_NANOSLEEP=0;
21581  GNULIB_STRFTIME=0;
21582  GNULIB_STRPTIME=0;
21583  GNULIB_TIMEGM=0;
21584  GNULIB_TIME_R=0;
21585  GNULIB_TIME_RZ=0;
21586  GNULIB_TZSET=0;
21587    HAVE_DECL_LOCALTIME_R=1;
21588  HAVE_NANOSLEEP=1;
21589  HAVE_STRPTIME=1;
21590  HAVE_TIMEGM=1;
21591  HAVE_TZSET=1;
21592    HAVE_TIMEZONE_T=0;
21593        REPLACE_CTIME=GNULIB_PORTCHECK;
21594  REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21595  REPLACE_MKTIME=GNULIB_PORTCHECK;
21596  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21597  REPLACE_STRFTIME=GNULIB_PORTCHECK;
21598  REPLACE_TIMEGM=GNULIB_PORTCHECK;
21599  REPLACE_TZSET=GNULIB_PORTCHECK;
21600
21601      : ${GNULIB_GETTIMEOFDAY=0};
21602        REPLACE_GMTIME=0;
21603  REPLACE_LOCALTIME=0;
21604
21605
21606
21607
21608  GNULIB_SOCKET=0;
21609  GNULIB_CONNECT=0;
21610  GNULIB_ACCEPT=0;
21611  GNULIB_BIND=0;
21612  GNULIB_GETPEERNAME=0;
21613  GNULIB_GETSOCKNAME=0;
21614  GNULIB_GETSOCKOPT=0;
21615  GNULIB_LISTEN=0;
21616  GNULIB_RECV=0;
21617  GNULIB_SEND=0;
21618  GNULIB_RECVFROM=0;
21619  GNULIB_SENDTO=0;
21620  GNULIB_SETSOCKOPT=0;
21621  GNULIB_SHUTDOWN=0;
21622  GNULIB_ACCEPT4=0;
21623  HAVE_STRUCT_SOCKADDR_STORAGE=1;
21624  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
21625
21626  HAVE_SA_FAMILY_T=1;
21627  HAVE_ACCEPT4=1;
21628
21629
21630
21631
21632
21633        case "$host_os" in
21634    osf*)
21635
21636$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
21637
21638      ;;
21639  esac
21640
21641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
21642$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
21643if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
21644  $as_echo_n "(cached) " >&6
21645else
21646
21647      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21648/* end confdefs.h.  */
21649#include <sys/socket.h>
21650int
21651main ()
21652{
21653
21654  ;
21655  return 0;
21656}
21657_ACEOF
21658if ac_fn_c_try_compile "$LINENO"; then :
21659  gl_cv_header_sys_socket_h_selfcontained=yes
21660else
21661  gl_cv_header_sys_socket_h_selfcontained=no
21662fi
21663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664
21665fi
21666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
21667$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
21668  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
21669            for ac_func in shutdown
21670do :
21671  ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
21672if test "x$ac_cv_func_shutdown" = xyes; then :
21673  cat >>confdefs.h <<_ACEOF
21674#define HAVE_SHUTDOWN 1
21675_ACEOF
21676
21677fi
21678done
21679
21680    if test $ac_cv_func_shutdown = yes; then
21681      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
21682$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
21683if ${gl_cv_header_sys_socket_h_shut+:} false; then :
21684  $as_echo_n "(cached) " >&6
21685else
21686
21687          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21688/* end confdefs.h.  */
21689#include <sys/socket.h>
21690int
21691main ()
21692{
21693int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
21694  ;
21695  return 0;
21696}
21697_ACEOF
21698if ac_fn_c_try_compile "$LINENO"; then :
21699  gl_cv_header_sys_socket_h_shut=yes
21700else
21701  gl_cv_header_sys_socket_h_shut=no
21702fi
21703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704
21705fi
21706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
21707$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
21708      if test $gl_cv_header_sys_socket_h_shut = no; then
21709        SYS_SOCKET_H='sys/socket.h'
21710      fi
21711    fi
21712  fi
21713  # We need to check for ws2tcpip.h now.
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725     if test $gl_cv_have_include_next = yes; then
21726       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
21727     else
21728       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
21729$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
21730if ${gl_cv_next_sys_socket_h+:} false; then :
21731  $as_echo_n "(cached) " >&6
21732else
21733
21734             if test $ac_cv_header_sys_socket_h = yes; then
21735
21736
21737
21738
21739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21740/* end confdefs.h.  */
21741#include <sys/socket.h>
21742_ACEOF
21743                case "$host_os" in
21744    aix*) gl_absname_cpp="$ac_cpp -C" ;;
21745    *)    gl_absname_cpp="$ac_cpp" ;;
21746  esac
21747
21748  case "$host_os" in
21749    mingw*)
21750                                          gl_dirsep_regex='[/\\]'
21751      ;;
21752    *)
21753      gl_dirsep_regex='\/'
21754      ;;
21755  esac
21756      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21757  gl_header_literal_regex=`echo 'sys/socket.h' \
21758                           | sed -e "$gl_make_literal_regex_sed"`
21759  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21760      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21761      s|^/[^/]|//&|
21762      p
21763      q
21764    }'
21765
21766        gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21767  sed -n "$gl_absolute_header_sed"`
21768
21769           gl_header=$gl_cv_absolute_sys_socket_h
21770           gl_cv_next_sys_socket_h='"'$gl_header'"'
21771          else
21772               gl_cv_next_sys_socket_h='<'sys/socket.h'>'
21773             fi
21774
21775
21776fi
21777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
21778$as_echo "$gl_cv_next_sys_socket_h" >&6; }
21779     fi
21780     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
21781
21782     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21783       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21784       gl_next_as_first_directive='<'sys/socket.h'>'
21785     else
21786       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21787       gl_next_as_first_directive=$gl_cv_next_sys_socket_h
21788     fi
21789     NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
21790
21791
21792
21793
21794  if test $ac_cv_header_sys_socket_h = yes; then
21795    HAVE_SYS_SOCKET_H=1
21796  else
21797    HAVE_SYS_SOCKET_H=0
21798  fi
21799
21800
21801
21802  if test $ac_cv_header_sys_socket_h = yes; then
21803    HAVE_WS2TCPIP_H=0
21804  else
21805    if test $ac_cv_header_ws2tcpip_h = yes; then
21806      HAVE_WS2TCPIP_H=1
21807    else
21808      HAVE_WS2TCPIP_H=0
21809    fi
21810  fi
21811
21812
21813
21814  ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21815  /* sys/types.h is not needed according to POSIX, but the
21816     sys/socket.h in i386-unknown-freebsd4.10 and
21817     powerpc-apple-darwin5.5 required it. */
21818#include <sys/types.h>
21819#ifdef HAVE_SYS_SOCKET_H
21820#include <sys/socket.h>
21821#endif
21822#ifdef HAVE_WS2TCPIP_H
21823#include <ws2tcpip.h>
21824#endif
21825
21826"
21827if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21828
21829cat >>confdefs.h <<_ACEOF
21830#define HAVE_STRUCT_SOCKADDR_STORAGE 1
21831_ACEOF
21832
21833
21834fi
21835ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
21836  /* sys/types.h is not needed according to POSIX, but the
21837     sys/socket.h in i386-unknown-freebsd4.10 and
21838     powerpc-apple-darwin5.5 required it. */
21839#include <sys/types.h>
21840#ifdef HAVE_SYS_SOCKET_H
21841#include <sys/socket.h>
21842#endif
21843#ifdef HAVE_WS2TCPIP_H
21844#include <ws2tcpip.h>
21845#endif
21846
21847"
21848if test "x$ac_cv_type_sa_family_t" = xyes; then :
21849
21850cat >>confdefs.h <<_ACEOF
21851#define HAVE_SA_FAMILY_T 1
21852_ACEOF
21853
21854
21855fi
21856
21857  if test $ac_cv_type_struct_sockaddr_storage = no; then
21858    HAVE_STRUCT_SOCKADDR_STORAGE=0
21859  fi
21860  if test $ac_cv_type_sa_family_t = no; then
21861    HAVE_SA_FAMILY_T=0
21862  fi
21863  if test $ac_cv_type_struct_sockaddr_storage != no; then
21864    ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
21865       #ifdef HAVE_SYS_SOCKET_H
21866       #include <sys/socket.h>
21867       #endif
21868       #ifdef HAVE_WS2TCPIP_H
21869       #include <ws2tcpip.h>
21870       #endif
21871
21872"
21873if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
21874
21875cat >>confdefs.h <<_ACEOF
21876#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
21877_ACEOF
21878
21879
21880else
21881  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
21882fi
21883
21884  fi
21885  if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
21886     || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
21887    SYS_SOCKET_H='sys/socket.h'
21888  fi
21889
21890
21891
21892
21893  if test $ac_cv_header_sys_socket_h != yes; then
21894                    for ac_header in winsock2.h
21895do :
21896  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21897if test "x$ac_cv_header_winsock2_h" = xyes; then :
21898  cat >>confdefs.h <<_ACEOF
21899#define HAVE_WINSOCK2_H 1
21900_ACEOF
21901
21902fi
21903
21904done
21905
21906  fi
21907  if test "$ac_cv_header_winsock2_h" = yes; then
21908    HAVE_WINSOCK2_H=1
21909    UNISTD_H_HAVE_WINSOCK2_H=1
21910    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21911  else
21912    HAVE_WINSOCK2_H=0
21913  fi
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
21930$as_echo_n "checking for IPv4 sockets... " >&6; }
21931if ${gl_cv_socket_ipv4+:} false; then :
21932  $as_echo_n "(cached) " >&6
21933else
21934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21935/* end confdefs.h.  */
21936#include <sys/types.h>
21937#ifdef HAVE_SYS_SOCKET_H
21938#include <sys/socket.h>
21939#endif
21940#ifdef HAVE_NETINET_IN_H
21941#include <netinet/in.h>
21942#endif
21943#ifdef HAVE_WINSOCK2_H
21944#include <winsock2.h>
21945#endif
21946int
21947main ()
21948{
21949int x = AF_INET; struct in_addr y; struct sockaddr_in z;
21950 if (&x && &y && &z) return 0;
21951  ;
21952  return 0;
21953}
21954_ACEOF
21955if ac_fn_c_try_compile "$LINENO"; then :
21956  gl_cv_socket_ipv4=yes
21957else
21958  gl_cv_socket_ipv4=no
21959fi
21960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21961fi
21962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
21963$as_echo "$gl_cv_socket_ipv4" >&6; }
21964  if test $gl_cv_socket_ipv4 = yes; then
21965
21966$as_echo "#define HAVE_IPV4 1" >>confdefs.h
21967
21968  fi
21969
21970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
21971$as_echo_n "checking for IPv6 sockets... " >&6; }
21972if ${gl_cv_socket_ipv6+:} false; then :
21973  $as_echo_n "(cached) " >&6
21974else
21975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976/* end confdefs.h.  */
21977#include <sys/types.h>
21978#ifdef HAVE_SYS_SOCKET_H
21979#include <sys/socket.h>
21980#endif
21981#ifdef HAVE_NETINET_IN_H
21982#include <netinet/in.h>
21983#endif
21984#ifdef HAVE_WINSOCK2_H
21985#include <winsock2.h>
21986#endif
21987#ifdef HAVE_WS2TCPIP_H
21988#include <ws2tcpip.h>
21989#endif
21990int
21991main ()
21992{
21993int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
21994 if (&x && &y && &z) return 0;
21995  ;
21996  return 0;
21997}
21998_ACEOF
21999if ac_fn_c_try_compile "$LINENO"; then :
22000  gl_cv_socket_ipv6=yes
22001else
22002  gl_cv_socket_ipv6=no
22003fi
22004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005fi
22006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
22007$as_echo "$gl_cv_socket_ipv6" >&6; }
22008  if test $gl_cv_socket_ipv6 = yes; then
22009
22010$as_echo "#define HAVE_IPV6 1" >>confdefs.h
22011
22012  fi
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026     if test $gl_cv_have_include_next = yes; then
22027       gl_cv_next_limits_h='<'limits.h'>'
22028     else
22029       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
22030$as_echo_n "checking absolute name of <limits.h>... " >&6; }
22031if ${gl_cv_next_limits_h+:} false; then :
22032  $as_echo_n "(cached) " >&6
22033else
22034
22035             if test $ac_cv_header_limits_h = yes; then
22036
22037
22038
22039
22040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041/* end confdefs.h.  */
22042#include <limits.h>
22043_ACEOF
22044                case "$host_os" in
22045    aix*) gl_absname_cpp="$ac_cpp -C" ;;
22046    *)    gl_absname_cpp="$ac_cpp" ;;
22047  esac
22048
22049  case "$host_os" in
22050    mingw*)
22051                                          gl_dirsep_regex='[/\\]'
22052      ;;
22053    *)
22054      gl_dirsep_regex='\/'
22055      ;;
22056  esac
22057      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22058  gl_header_literal_regex=`echo 'limits.h' \
22059                           | sed -e "$gl_make_literal_regex_sed"`
22060  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22061      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22062      s|^/[^/]|//&|
22063      p
22064      q
22065    }'
22066
22067        gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22068  sed -n "$gl_absolute_header_sed"`
22069
22070           gl_header=$gl_cv_absolute_limits_h
22071           gl_cv_next_limits_h='"'$gl_header'"'
22072          else
22073               gl_cv_next_limits_h='<'limits.h'>'
22074             fi
22075
22076
22077fi
22078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
22079$as_echo "$gl_cv_next_limits_h" >&6; }
22080     fi
22081     NEXT_LIMITS_H=$gl_cv_next_limits_h
22082
22083     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22084       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22085       gl_next_as_first_directive='<'limits.h'>'
22086     else
22087       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22088       gl_next_as_first_directive=$gl_cv_next_limits_h
22089     fi
22090     NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
22091
22092
22093
22094
22095
22096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
22097$as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
22098if ${gl_cv_header_limits_width+:} false; then :
22099  $as_echo_n "(cached) " >&6
22100else
22101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102/* end confdefs.h.  */
22103#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
22104             #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
22105            #endif
22106            #include <limits.h>
22107            long long llm = LLONG_MAX;
22108            int wb = WORD_BIT;
22109            int ullw = ULLONG_WIDTH;
22110
22111int
22112main ()
22113{
22114
22115  ;
22116  return 0;
22117}
22118_ACEOF
22119if ac_fn_c_try_compile "$LINENO"; then :
22120  gl_cv_header_limits_width=yes
22121else
22122  gl_cv_header_limits_width=no
22123fi
22124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125fi
22126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
22127$as_echo "$gl_cv_header_limits_width" >&6; }
22128  if test "$gl_cv_header_limits_width" = yes; then
22129    LIMITS_H=
22130  else
22131    LIMITS_H=limits.h
22132  fi
22133
22134   if test -n "$LIMITS_H"; then
22135  GL_GENERATE_LIMITS_H_TRUE=
22136  GL_GENERATE_LIMITS_H_FALSE='#'
22137else
22138  GL_GENERATE_LIMITS_H_TRUE='#'
22139  GL_GENERATE_LIMITS_H_FALSE=
22140fi
22141
22142
22143
22144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
22145$as_echo_n "checking for wint_t... " >&6; }
22146if ${gt_cv_c_wint_t+:} false; then :
22147  $as_echo_n "(cached) " >&6
22148else
22149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150/* end confdefs.h.  */
22151
22152/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22153   <wchar.h>.
22154   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22155   before <wchar.h>.  */
22156#include <stddef.h>
22157#include <stdio.h>
22158#include <time.h>
22159#include <wchar.h>
22160            wint_t foo = (wchar_t)'\0';
22161int
22162main ()
22163{
22164
22165  ;
22166  return 0;
22167}
22168_ACEOF
22169if ac_fn_c_try_compile "$LINENO"; then :
22170  gt_cv_c_wint_t=yes
22171else
22172  gt_cv_c_wint_t=no
22173fi
22174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22175fi
22176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
22177$as_echo "$gt_cv_c_wint_t" >&6; }
22178  if test $gt_cv_c_wint_t = yes; then
22179
22180$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
22181
22182
22183            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
22184$as_echo_n "checking whether wint_t is too small... " >&6; }
22185if ${gl_cv_type_wint_t_too_small+:} false; then :
22186  $as_echo_n "(cached) " >&6
22187else
22188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22189/* end confdefs.h.  */
22190
22191/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22192   <wchar.h>.
22193   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22194   included before <wchar.h>.  */
22195#if !(defined __GLIBC__ && !defined __UCLIBC__)
22196# include <stddef.h>
22197# include <stdio.h>
22198# include <time.h>
22199#endif
22200#include <wchar.h>
22201            int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
22202
22203int
22204main ()
22205{
22206
22207  ;
22208  return 0;
22209}
22210_ACEOF
22211if ac_fn_c_try_compile "$LINENO"; then :
22212  gl_cv_type_wint_t_too_small=no
22213else
22214  gl_cv_type_wint_t_too_small=yes
22215fi
22216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22217fi
22218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
22219$as_echo "$gl_cv_type_wint_t_too_small" >&6; }
22220    if test $gl_cv_type_wint_t_too_small = yes; then
22221      GNULIB_OVERRIDES_WINT_T=1
22222    else
22223      GNULIB_OVERRIDES_WINT_T=0
22224    fi
22225  else
22226    GNULIB_OVERRIDES_WINT_T=0
22227  fi
22228
22229
22230
22231
22232
22233
22234
22235    gl_cv_c_multiarch=no
22236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22237/* end confdefs.h.  */
22238#ifndef __APPLE_CC__
22239         not a universal capable compiler
22240        #endif
22241        typedef int dummy;
22242
22243_ACEOF
22244if ac_fn_c_try_compile "$LINENO"; then :
22245
22246               arch=
22247     prev=
22248     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
22249       if test -n "$prev"; then
22250         case $word in
22251           i?86 | x86_64 | ppc | ppc64)
22252             if test -z "$arch" || test "$arch" = "$word"; then
22253               arch="$word"
22254             else
22255               gl_cv_c_multiarch=yes
22256             fi
22257             ;;
22258         esac
22259         prev=
22260       else
22261         if test "x$word" = "x-arch"; then
22262           prev=arch
22263         fi
22264       fi
22265     done
22266
22267fi
22268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269  if test $gl_cv_c_multiarch = yes; then
22270    APPLE_UNIVERSAL_BUILD=1
22271  else
22272    APPLE_UNIVERSAL_BUILD=0
22273  fi
22274
22275
22276
22277
22278
22279
22280
22281
22282$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22283
22284
22285$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22286
22287
22288
22289  if test $ac_cv_header_wchar_h = yes; then
22290    HAVE_WCHAR_H=1
22291  else
22292    HAVE_WCHAR_H=0
22293  fi
22294
22295
22296      if test $ac_cv_header_inttypes_h = yes; then
22297    HAVE_INTTYPES_H=1
22298  else
22299    HAVE_INTTYPES_H=0
22300  fi
22301
22302
22303      if test $ac_cv_header_sys_types_h = yes; then
22304    HAVE_SYS_TYPES_H=1
22305  else
22306    HAVE_SYS_TYPES_H=0
22307  fi
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319     if test $gl_cv_have_include_next = yes; then
22320       gl_cv_next_stdint_h='<'stdint.h'>'
22321     else
22322       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
22323$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
22324if ${gl_cv_next_stdint_h+:} false; then :
22325  $as_echo_n "(cached) " >&6
22326else
22327
22328             if test $ac_cv_header_stdint_h = yes; then
22329
22330
22331
22332
22333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334/* end confdefs.h.  */
22335#include <stdint.h>
22336_ACEOF
22337                case "$host_os" in
22338    aix*) gl_absname_cpp="$ac_cpp -C" ;;
22339    *)    gl_absname_cpp="$ac_cpp" ;;
22340  esac
22341
22342  case "$host_os" in
22343    mingw*)
22344                                          gl_dirsep_regex='[/\\]'
22345      ;;
22346    *)
22347      gl_dirsep_regex='\/'
22348      ;;
22349  esac
22350      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22351  gl_header_literal_regex=`echo 'stdint.h' \
22352                           | sed -e "$gl_make_literal_regex_sed"`
22353  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22354      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22355      s|^/[^/]|//&|
22356      p
22357      q
22358    }'
22359
22360        gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22361  sed -n "$gl_absolute_header_sed"`
22362
22363           gl_header=$gl_cv_absolute_stdint_h
22364           gl_cv_next_stdint_h='"'$gl_header'"'
22365          else
22366               gl_cv_next_stdint_h='<'stdint.h'>'
22367             fi
22368
22369
22370fi
22371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
22372$as_echo "$gl_cv_next_stdint_h" >&6; }
22373     fi
22374     NEXT_STDINT_H=$gl_cv_next_stdint_h
22375
22376     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22377       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22378       gl_next_as_first_directive='<'stdint.h'>'
22379     else
22380       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22381       gl_next_as_first_directive=$gl_cv_next_stdint_h
22382     fi
22383     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
22384
22385
22386
22387
22388  if test $ac_cv_header_stdint_h = yes; then
22389    HAVE_STDINT_H=1
22390  else
22391    HAVE_STDINT_H=0
22392  fi
22393
22394
22395    if test $ac_cv_header_stdint_h = yes; then
22396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
22397$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
22398if ${gl_cv_header_working_stdint_h+:} false; then :
22399  $as_echo_n "(cached) " >&6
22400else
22401  gl_cv_header_working_stdint_h=no
22402       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22403/* end confdefs.h.  */
22404
22405
22406#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
22407#define __STDC_CONSTANT_MACROS 1
22408#define __STDC_LIMIT_MACROS 1
22409#include <stdint.h>
22410/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
22411#if !(defined WCHAR_MIN && defined WCHAR_MAX)
22412#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
22413#endif
22414
22415
22416  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22417     included before <wchar.h>.  */
22418  #include <stddef.h>
22419  #include <signal.h>
22420  #if HAVE_WCHAR_H
22421  # include <stdio.h>
22422  # include <time.h>
22423  # include <wchar.h>
22424  #endif
22425
22426
22427#ifdef INT8_MAX
22428int8_t a1 = INT8_MAX;
22429int8_t a1min = INT8_MIN;
22430#endif
22431#ifdef INT16_MAX
22432int16_t a2 = INT16_MAX;
22433int16_t a2min = INT16_MIN;
22434#endif
22435#ifdef INT32_MAX
22436int32_t a3 = INT32_MAX;
22437int32_t a3min = INT32_MIN;
22438#endif
22439#ifdef INT64_MAX
22440int64_t a4 = INT64_MAX;
22441int64_t a4min = INT64_MIN;
22442#endif
22443#ifdef UINT8_MAX
22444uint8_t b1 = UINT8_MAX;
22445#else
22446typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
22447#endif
22448#ifdef UINT16_MAX
22449uint16_t b2 = UINT16_MAX;
22450#endif
22451#ifdef UINT32_MAX
22452uint32_t b3 = UINT32_MAX;
22453#endif
22454#ifdef UINT64_MAX
22455uint64_t b4 = UINT64_MAX;
22456#endif
22457int_least8_t c1 = INT8_C (0x7f);
22458int_least8_t c1max = INT_LEAST8_MAX;
22459int_least8_t c1min = INT_LEAST8_MIN;
22460int_least16_t c2 = INT16_C (0x7fff);
22461int_least16_t c2max = INT_LEAST16_MAX;
22462int_least16_t c2min = INT_LEAST16_MIN;
22463int_least32_t c3 = INT32_C (0x7fffffff);
22464int_least32_t c3max = INT_LEAST32_MAX;
22465int_least32_t c3min = INT_LEAST32_MIN;
22466int_least64_t c4 = INT64_C (0x7fffffffffffffff);
22467int_least64_t c4max = INT_LEAST64_MAX;
22468int_least64_t c4min = INT_LEAST64_MIN;
22469uint_least8_t d1 = UINT8_C (0xff);
22470uint_least8_t d1max = UINT_LEAST8_MAX;
22471uint_least16_t d2 = UINT16_C (0xffff);
22472uint_least16_t d2max = UINT_LEAST16_MAX;
22473uint_least32_t d3 = UINT32_C (0xffffffff);
22474uint_least32_t d3max = UINT_LEAST32_MAX;
22475uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
22476uint_least64_t d4max = UINT_LEAST64_MAX;
22477int_fast8_t e1 = INT_FAST8_MAX;
22478int_fast8_t e1min = INT_FAST8_MIN;
22479int_fast16_t e2 = INT_FAST16_MAX;
22480int_fast16_t e2min = INT_FAST16_MIN;
22481int_fast32_t e3 = INT_FAST32_MAX;
22482int_fast32_t e3min = INT_FAST32_MIN;
22483int_fast64_t e4 = INT_FAST64_MAX;
22484int_fast64_t e4min = INT_FAST64_MIN;
22485uint_fast8_t f1 = UINT_FAST8_MAX;
22486uint_fast16_t f2 = UINT_FAST16_MAX;
22487uint_fast32_t f3 = UINT_FAST32_MAX;
22488uint_fast64_t f4 = UINT_FAST64_MAX;
22489#ifdef INTPTR_MAX
22490intptr_t g = INTPTR_MAX;
22491intptr_t gmin = INTPTR_MIN;
22492#endif
22493#ifdef UINTPTR_MAX
22494uintptr_t h = UINTPTR_MAX;
22495#endif
22496intmax_t i = INTMAX_MAX;
22497uintmax_t j = UINTMAX_MAX;
22498
22499/* Check that SIZE_MAX has the correct type, if possible.  */
22500#if 201112 <= __STDC_VERSION__
22501int k = _Generic (SIZE_MAX, size_t: 0);
22502#elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
22503       || (0x5110 <= __SUNPRO_C && !__STDC__))
22504extern size_t k;
22505extern __typeof__ (SIZE_MAX) k;
22506#endif
22507
22508#include <limits.h> /* for CHAR_BIT */
22509#define TYPE_MINIMUM(t) \
22510  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
22511#define TYPE_MAXIMUM(t) \
22512  ((t) ((t) 0 < (t) -1 \
22513        ? (t) -1 \
22514        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
22515struct s {
22516  int check_PTRDIFF:
22517      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
22518      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
22519      ? 1 : -1;
22520  /* Detect bug in FreeBSD 6.0 / ia64.  */
22521  int check_SIG_ATOMIC:
22522      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
22523      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
22524      ? 1 : -1;
22525  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
22526  int check_WCHAR:
22527      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
22528      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
22529      ? 1 : -1;
22530  /* Detect bug in mingw.  */
22531  int check_WINT:
22532      WINT_MIN == TYPE_MINIMUM (wint_t)
22533      && WINT_MAX == TYPE_MAXIMUM (wint_t)
22534      ? 1 : -1;
22535
22536  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
22537  int check_UINT8_C:
22538        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
22539  int check_UINT16_C:
22540        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
22541
22542  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
22543#ifdef UINT8_MAX
22544  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
22545#endif
22546#ifdef UINT16_MAX
22547  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
22548#endif
22549#ifdef UINT32_MAX
22550  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
22551#endif
22552#ifdef UINT64_MAX
22553  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
22554#endif
22555  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
22556  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
22557  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
22558  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
22559  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
22560  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
22561  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
22562  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
22563  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
22564  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
22565  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
22566};
22567
22568int
22569main ()
22570{
22571
22572  ;
22573  return 0;
22574}
22575_ACEOF
22576if ac_fn_c_try_compile "$LINENO"; then :
22577                                                    if test "$cross_compiling" = yes; then :
22578  case "$host_os" in
22579                         # Guess yes on native Windows.
22580                 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
22581                         # In general, assume it works.
22582                 *)      gl_cv_header_working_stdint_h="guessing yes" ;;
22583               esac
22584
22585else
22586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587/* end confdefs.h.  */
22588
22589
22590#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
22591#define __STDC_CONSTANT_MACROS 1
22592#define __STDC_LIMIT_MACROS 1
22593#include <stdint.h>
22594
22595
22596  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22597     included before <wchar.h>.  */
22598  #include <stddef.h>
22599  #include <signal.h>
22600  #if HAVE_WCHAR_H
22601  # include <stdio.h>
22602  # include <time.h>
22603  # include <wchar.h>
22604  #endif
22605
22606
22607#include <stdio.h>
22608#include <string.h>
22609#define MVAL(macro) MVAL1(macro)
22610#define MVAL1(expression) #expression
22611static const char *macro_values[] =
22612  {
22613#ifdef INT8_MAX
22614    MVAL (INT8_MAX),
22615#endif
22616#ifdef INT16_MAX
22617    MVAL (INT16_MAX),
22618#endif
22619#ifdef INT32_MAX
22620    MVAL (INT32_MAX),
22621#endif
22622#ifdef INT64_MAX
22623    MVAL (INT64_MAX),
22624#endif
22625#ifdef UINT8_MAX
22626    MVAL (UINT8_MAX),
22627#endif
22628#ifdef UINT16_MAX
22629    MVAL (UINT16_MAX),
22630#endif
22631#ifdef UINT32_MAX
22632    MVAL (UINT32_MAX),
22633#endif
22634#ifdef UINT64_MAX
22635    MVAL (UINT64_MAX),
22636#endif
22637    NULL
22638  };
22639
22640int
22641main ()
22642{
22643
22644  const char **mv;
22645  for (mv = macro_values; *mv != NULL; mv++)
22646    {
22647      const char *value = *mv;
22648      /* Test whether it looks like a cast expression.  */
22649      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
22650          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
22651          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
22652          || strncmp (value, "((int)"/*)*/, 6) == 0
22653          || strncmp (value, "((signed short)"/*)*/, 15) == 0
22654          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
22655        return mv - macro_values + 1;
22656    }
22657  return 0;
22658
22659  ;
22660  return 0;
22661}
22662_ACEOF
22663if ac_fn_c_try_run "$LINENO"; then :
22664  gl_cv_header_working_stdint_h=yes
22665fi
22666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22667  conftest.$ac_objext conftest.beam conftest.$ac_ext
22668fi
22669
22670
22671fi
22672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22673
22674fi
22675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
22676$as_echo "$gl_cv_header_working_stdint_h" >&6; }
22677  fi
22678
22679  HAVE_C99_STDINT_H=0
22680  HAVE_SYS_BITYPES_H=0
22681  HAVE_SYS_INTTYPES_H=0
22682  STDINT_H=stdint.h
22683  case "$gl_cv_header_working_stdint_h" in
22684    *yes)
22685      HAVE_C99_STDINT_H=1
22686                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
22687$as_echo_n "checking whether stdint.h predates C++11... " >&6; }
22688if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
22689  $as_echo_n "(cached) " >&6
22690else
22691  gl_cv_header_stdint_predates_cxx11_h=yes
22692         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22693/* end confdefs.h.  */
22694
22695
22696#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
22697#include <stdint.h>
22698
22699
22700  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22701     included before <wchar.h>.  */
22702  #include <stddef.h>
22703  #include <signal.h>
22704  #if HAVE_WCHAR_H
22705  # include <stdio.h>
22706  # include <time.h>
22707  # include <wchar.h>
22708  #endif
22709
22710
22711intmax_t im = INTMAX_MAX;
22712int32_t i32 = INT32_C (0x7fffffff);
22713
22714int
22715main ()
22716{
22717
22718  ;
22719  return 0;
22720}
22721_ACEOF
22722if ac_fn_c_try_compile "$LINENO"; then :
22723  gl_cv_header_stdint_predates_cxx11_h=no
22724fi
22725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726fi
22727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
22728$as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
22729
22730      if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
22731
22732$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
22733
22734
22735$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
22736
22737      fi
22738      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
22739$as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
22740if ${gl_cv_header_stdint_width+:} false; then :
22741  $as_echo_n "(cached) " >&6
22742else
22743  gl_cv_header_stdint_width=no
22744         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22745/* end confdefs.h.  */
22746
22747              /* Work if build is not clean.  */
22748              #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
22749              #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
22750               #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
22751              #endif
22752              #include <stdint.h>
22753
22754  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22755     included before <wchar.h>.  */
22756  #include <stddef.h>
22757  #include <signal.h>
22758  #if HAVE_WCHAR_H
22759  # include <stdio.h>
22760  # include <time.h>
22761  # include <wchar.h>
22762  #endif
22763
22764              int iw = UINTMAX_WIDTH;
22765
22766int
22767main ()
22768{
22769
22770  ;
22771  return 0;
22772}
22773_ACEOF
22774if ac_fn_c_try_compile "$LINENO"; then :
22775  gl_cv_header_stdint_width=yes
22776fi
22777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22778fi
22779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
22780$as_echo "$gl_cv_header_stdint_width" >&6; }
22781      if test "$gl_cv_header_stdint_width" = yes; then
22782        STDINT_H=
22783      fi
22784      ;;
22785    *)
22786                  for ac_header in sys/inttypes.h sys/bitypes.h
22787do :
22788  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22789ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22790if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22791  cat >>confdefs.h <<_ACEOF
22792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22793_ACEOF
22794
22795fi
22796
22797done
22798
22799      if test $ac_cv_header_sys_inttypes_h = yes; then
22800        HAVE_SYS_INTTYPES_H=1
22801      fi
22802      if test $ac_cv_header_sys_bitypes_h = yes; then
22803        HAVE_SYS_BITYPES_H=1
22804      fi
22805
22806
22807  if test $APPLE_UNIVERSAL_BUILD = 0; then
22808
22809
22810  for gltype in ptrdiff_t size_t ; do
22811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
22812$as_echo_n "checking for bit size of $gltype... " >&6; }
22813if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
22814  $as_echo_n "(cached) " >&6
22815else
22816  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
22817  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22818     included before <wchar.h>.  */
22819  #include <stddef.h>
22820  #include <signal.h>
22821  #if HAVE_WCHAR_H
22822  # include <stdio.h>
22823  # include <time.h>
22824  # include <wchar.h>
22825  #endif
22826
22827#include <limits.h>"; then :
22828
22829else
22830  result=unknown
22831fi
22832
22833       eval gl_cv_bitsizeof_${gltype}=\$result
22834
22835fi
22836eval ac_res=\$gl_cv_bitsizeof_${gltype}
22837	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22838$as_echo "$ac_res" >&6; }
22839    eval result=\$gl_cv_bitsizeof_${gltype}
22840    if test $result = unknown; then
22841                                                result=0
22842    fi
22843    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22844    cat >>confdefs.h <<_ACEOF
22845#define BITSIZEOF_${GLTYPE} $result
22846_ACEOF
22847
22848    eval BITSIZEOF_${GLTYPE}=\$result
22849  done
22850
22851
22852  fi
22853
22854
22855  for gltype in sig_atomic_t wchar_t wint_t ; do
22856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
22857$as_echo_n "checking for bit size of $gltype... " >&6; }
22858if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
22859  $as_echo_n "(cached) " >&6
22860else
22861  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
22862  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22863     included before <wchar.h>.  */
22864  #include <stddef.h>
22865  #include <signal.h>
22866  #if HAVE_WCHAR_H
22867  # include <stdio.h>
22868  # include <time.h>
22869  # include <wchar.h>
22870  #endif
22871
22872#include <limits.h>"; then :
22873
22874else
22875  result=unknown
22876fi
22877
22878       eval gl_cv_bitsizeof_${gltype}=\$result
22879
22880fi
22881eval ac_res=\$gl_cv_bitsizeof_${gltype}
22882	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22883$as_echo "$ac_res" >&6; }
22884    eval result=\$gl_cv_bitsizeof_${gltype}
22885    if test $result = unknown; then
22886                                                result=0
22887    fi
22888    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22889    cat >>confdefs.h <<_ACEOF
22890#define BITSIZEOF_${GLTYPE} $result
22891_ACEOF
22892
22893    eval BITSIZEOF_${GLTYPE}=\$result
22894  done
22895
22896
22897
22898
22899  for gltype in sig_atomic_t wchar_t wint_t ; do
22900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
22901$as_echo_n "checking whether $gltype is signed... " >&6; }
22902if eval \${gl_cv_type_${gltype}_signed+:} false; then :
22903  $as_echo_n "(cached) " >&6
22904else
22905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22906/* end confdefs.h.  */
22907
22908  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22909     included before <wchar.h>.  */
22910  #include <stddef.h>
22911  #include <signal.h>
22912  #if HAVE_WCHAR_H
22913  # include <stdio.h>
22914  # include <time.h>
22915  # include <wchar.h>
22916  #endif
22917
22918            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
22919int
22920main ()
22921{
22922
22923  ;
22924  return 0;
22925}
22926_ACEOF
22927if ac_fn_c_try_compile "$LINENO"; then :
22928  result=yes
22929else
22930  result=no
22931fi
22932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933       eval gl_cv_type_${gltype}_signed=\$result
22934
22935fi
22936eval ac_res=\$gl_cv_type_${gltype}_signed
22937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22938$as_echo "$ac_res" >&6; }
22939    eval result=\$gl_cv_type_${gltype}_signed
22940    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22941    if test "$result" = yes; then
22942      cat >>confdefs.h <<_ACEOF
22943#define HAVE_SIGNED_${GLTYPE} 1
22944_ACEOF
22945
22946      eval HAVE_SIGNED_${GLTYPE}=1
22947    else
22948      eval HAVE_SIGNED_${GLTYPE}=0
22949    fi
22950  done
22951
22952
22953  gl_cv_type_ptrdiff_t_signed=yes
22954  gl_cv_type_size_t_signed=no
22955  if test $APPLE_UNIVERSAL_BUILD = 0; then
22956
22957
22958  for gltype in ptrdiff_t size_t ; do
22959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
22960$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
22961if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
22962  $as_echo_n "(cached) " >&6
22963else
22964  eval gl_cv_type_${gltype}_suffix=no
22965       eval result=\$gl_cv_type_${gltype}_signed
22966       if test "$result" = yes; then
22967         glsufu=
22968       else
22969         glsufu=u
22970       fi
22971       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
22972         case $glsuf in
22973           '')  gltype1='int';;
22974           l)   gltype1='long int';;
22975           ll)  gltype1='long long int';;
22976           i64) gltype1='__int64';;
22977           u)   gltype1='unsigned int';;
22978           ul)  gltype1='unsigned long int';;
22979           ull) gltype1='unsigned long long int';;
22980           ui64)gltype1='unsigned __int64';;
22981         esac
22982         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22983/* end confdefs.h.  */
22984
22985  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22986     included before <wchar.h>.  */
22987  #include <stddef.h>
22988  #include <signal.h>
22989  #if HAVE_WCHAR_H
22990  # include <stdio.h>
22991  # include <time.h>
22992  # include <wchar.h>
22993  #endif
22994
22995              extern $gltype foo;
22996              extern $gltype1 foo;
22997int
22998main ()
22999{
23000
23001  ;
23002  return 0;
23003}
23004_ACEOF
23005if ac_fn_c_try_compile "$LINENO"; then :
23006  eval gl_cv_type_${gltype}_suffix=\$glsuf
23007fi
23008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009         eval result=\$gl_cv_type_${gltype}_suffix
23010         test "$result" != no && break
23011       done
23012fi
23013eval ac_res=\$gl_cv_type_${gltype}_suffix
23014	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23015$as_echo "$ac_res" >&6; }
23016    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23017    eval result=\$gl_cv_type_${gltype}_suffix
23018    test "$result" = no && result=
23019    eval ${GLTYPE}_SUFFIX=\$result
23020    cat >>confdefs.h <<_ACEOF
23021#define ${GLTYPE}_SUFFIX $result
23022_ACEOF
23023
23024  done
23025
23026
23027  fi
23028
23029
23030  for gltype in sig_atomic_t wchar_t wint_t ; do
23031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
23032$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
23033if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
23034  $as_echo_n "(cached) " >&6
23035else
23036  eval gl_cv_type_${gltype}_suffix=no
23037       eval result=\$gl_cv_type_${gltype}_signed
23038       if test "$result" = yes; then
23039         glsufu=
23040       else
23041         glsufu=u
23042       fi
23043       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
23044         case $glsuf in
23045           '')  gltype1='int';;
23046           l)   gltype1='long int';;
23047           ll)  gltype1='long long int';;
23048           i64) gltype1='__int64';;
23049           u)   gltype1='unsigned int';;
23050           ul)  gltype1='unsigned long int';;
23051           ull) gltype1='unsigned long long int';;
23052           ui64)gltype1='unsigned __int64';;
23053         esac
23054         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23055/* end confdefs.h.  */
23056
23057  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23058     included before <wchar.h>.  */
23059  #include <stddef.h>
23060  #include <signal.h>
23061  #if HAVE_WCHAR_H
23062  # include <stdio.h>
23063  # include <time.h>
23064  # include <wchar.h>
23065  #endif
23066
23067              extern $gltype foo;
23068              extern $gltype1 foo;
23069int
23070main ()
23071{
23072
23073  ;
23074  return 0;
23075}
23076_ACEOF
23077if ac_fn_c_try_compile "$LINENO"; then :
23078  eval gl_cv_type_${gltype}_suffix=\$glsuf
23079fi
23080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081         eval result=\$gl_cv_type_${gltype}_suffix
23082         test "$result" != no && break
23083       done
23084fi
23085eval ac_res=\$gl_cv_type_${gltype}_suffix
23086	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23087$as_echo "$ac_res" >&6; }
23088    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
23089    eval result=\$gl_cv_type_${gltype}_suffix
23090    test "$result" = no && result=
23091    eval ${GLTYPE}_SUFFIX=\$result
23092    cat >>confdefs.h <<_ACEOF
23093#define ${GLTYPE}_SUFFIX $result
23094_ACEOF
23095
23096  done
23097
23098
23099
23100          if test $GNULIB_OVERRIDES_WINT_T = 1; then
23101    BITSIZEOF_WINT_T=32
23102  fi
23103
23104      ;;
23105  esac
23106
23107
23108
23109  LIMITS_H='limits.h'
23110   if test -n "$LIMITS_H"; then
23111  GL_GENERATE_LIMITS_H_TRUE=
23112  GL_GENERATE_LIMITS_H_FALSE='#'
23113else
23114  GL_GENERATE_LIMITS_H_TRUE='#'
23115  GL_GENERATE_LIMITS_H_FALSE=
23116fi
23117
23118
23119
23120
23121
23122
23123
23124   if test -n "$STDINT_H"; then
23125  GL_GENERATE_STDINT_H_TRUE=
23126  GL_GENERATE_STDINT_H_FALSE='#'
23127else
23128  GL_GENERATE_STDINT_H_TRUE='#'
23129  GL_GENERATE_STDINT_H_FALSE=
23130fi
23131
23132
23133
23134
23135
23136  GNULIB_IMAXABS=0;
23137  GNULIB_IMAXDIV=0;
23138  GNULIB_STRTOIMAX=0;
23139  GNULIB_STRTOUMAX=0;
23140    HAVE_DECL_IMAXABS=1;
23141  HAVE_DECL_IMAXDIV=1;
23142  HAVE_DECL_STRTOIMAX=1;
23143  HAVE_DECL_STRTOUMAX=1;
23144  HAVE_IMAXDIV_T=1;
23145  REPLACE_STRTOIMAX=0;
23146  REPLACE_STRTOUMAX=0;
23147  INT32_MAX_LT_INTMAX_MAX=1;
23148  INT64_MAX_EQ_LONG_MAX='defined _LP64';
23149  PRI_MACROS_BROKEN=0;
23150  PRIPTR_PREFIX=__PRIPTR_PREFIX;
23151  UINT32_MAX_LT_UINTMAX_MAX=1;
23152  UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168     if test $gl_cv_have_include_next = yes; then
23169       gl_cv_next_inttypes_h='<'inttypes.h'>'
23170     else
23171       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
23172$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
23173if ${gl_cv_next_inttypes_h+:} false; then :
23174  $as_echo_n "(cached) " >&6
23175else
23176
23177             if test $ac_cv_header_inttypes_h = yes; then
23178
23179
23180
23181
23182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183/* end confdefs.h.  */
23184#include <inttypes.h>
23185_ACEOF
23186                case "$host_os" in
23187    aix*) gl_absname_cpp="$ac_cpp -C" ;;
23188    *)    gl_absname_cpp="$ac_cpp" ;;
23189  esac
23190
23191  case "$host_os" in
23192    mingw*)
23193                                          gl_dirsep_regex='[/\\]'
23194      ;;
23195    *)
23196      gl_dirsep_regex='\/'
23197      ;;
23198  esac
23199      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23200  gl_header_literal_regex=`echo 'inttypes.h' \
23201                           | sed -e "$gl_make_literal_regex_sed"`
23202  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23203      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23204      s|^/[^/]|//&|
23205      p
23206      q
23207    }'
23208
23209        gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23210  sed -n "$gl_absolute_header_sed"`
23211
23212           gl_header=$gl_cv_absolute_inttypes_h
23213           gl_cv_next_inttypes_h='"'$gl_header'"'
23214          else
23215               gl_cv_next_inttypes_h='<'inttypes.h'>'
23216             fi
23217
23218
23219fi
23220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
23221$as_echo "$gl_cv_next_inttypes_h" >&6; }
23222     fi
23223     NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
23224
23225     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23226       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23227       gl_next_as_first_directive='<'inttypes.h'>'
23228     else
23229       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23230       gl_next_as_first_directive=$gl_cv_next_inttypes_h
23231     fi
23232     NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247  GNULIB__EXIT=0;
23248  GNULIB_ATOLL=0;
23249  GNULIB_CALLOC_POSIX=0;
23250  GNULIB_CANONICALIZE_FILE_NAME=0;
23251  GNULIB_GETLOADAVG=0;
23252  GNULIB_GETSUBOPT=0;
23253  GNULIB_GRANTPT=0;
23254  GNULIB_MALLOC_POSIX=0;
23255  GNULIB_MBTOWC=0;
23256  GNULIB_MKDTEMP=0;
23257  GNULIB_MKOSTEMP=0;
23258  GNULIB_MKOSTEMPS=0;
23259  GNULIB_MKSTEMP=0;
23260  GNULIB_MKSTEMPS=0;
23261  GNULIB_POSIX_OPENPT=0;
23262  GNULIB_PTSNAME=0;
23263  GNULIB_PTSNAME_R=0;
23264  GNULIB_PUTENV=0;
23265  GNULIB_QSORT_R=0;
23266  GNULIB_RANDOM=0;
23267  GNULIB_RANDOM_R=0;
23268  GNULIB_REALLOCARRAY=0;
23269  GNULIB_REALLOC_POSIX=0;
23270  GNULIB_REALPATH=0;
23271  GNULIB_RPMATCH=0;
23272  GNULIB_SECURE_GETENV=0;
23273  GNULIB_SETENV=0;
23274  GNULIB_STRTOD=0;
23275  GNULIB_STRTOLD=0;
23276  GNULIB_STRTOLL=0;
23277  GNULIB_STRTOULL=0;
23278  GNULIB_SYSTEM_POSIX=0;
23279  GNULIB_UNLOCKPT=0;
23280  GNULIB_UNSETENV=0;
23281  GNULIB_WCTOMB=0;
23282    HAVE__EXIT=1;
23283  HAVE_ATOLL=1;
23284  HAVE_CANONICALIZE_FILE_NAME=1;
23285  HAVE_DECL_GETLOADAVG=1;
23286  HAVE_GETSUBOPT=1;
23287  HAVE_GRANTPT=1;
23288  HAVE_INITSTATE=1;
23289  HAVE_DECL_INITSTATE=1;
23290  HAVE_MBTOWC=1;
23291  HAVE_MKDTEMP=1;
23292  HAVE_MKOSTEMP=1;
23293  HAVE_MKOSTEMPS=1;
23294  HAVE_MKSTEMP=1;
23295  HAVE_MKSTEMPS=1;
23296  HAVE_POSIX_OPENPT=1;
23297  HAVE_PTSNAME=1;
23298  HAVE_PTSNAME_R=1;
23299  HAVE_QSORT_R=1;
23300  HAVE_RANDOM=1;
23301  HAVE_RANDOM_H=1;
23302  HAVE_RANDOM_R=1;
23303  HAVE_REALLOCARRAY=1;
23304  HAVE_REALPATH=1;
23305  HAVE_RPMATCH=1;
23306  HAVE_SECURE_GETENV=1;
23307  HAVE_SETENV=1;
23308  HAVE_DECL_SETENV=1;
23309  HAVE_SETSTATE=1;
23310  HAVE_DECL_SETSTATE=1;
23311  HAVE_STRTOD=1;
23312  HAVE_STRTOLD=1;
23313  HAVE_STRTOLL=1;
23314  HAVE_STRTOULL=1;
23315  HAVE_STRUCT_RANDOM_DATA=1;
23316  HAVE_SYS_LOADAVG_H=0;
23317  HAVE_UNLOCKPT=1;
23318  HAVE_DECL_UNSETENV=1;
23319  REPLACE_CALLOC=0;
23320  REPLACE_CANONICALIZE_FILE_NAME=0;
23321  REPLACE_INITSTATE=0;
23322  REPLACE_MALLOC=0;
23323  REPLACE_MBTOWC=0;
23324  REPLACE_MKSTEMP=0;
23325  REPLACE_PTSNAME=0;
23326  REPLACE_PTSNAME_R=0;
23327  REPLACE_PUTENV=0;
23328  REPLACE_QSORT_R=0;
23329  REPLACE_RANDOM=0;
23330  REPLACE_RANDOM_R=0;
23331  REPLACE_REALLOC=0;
23332  REPLACE_REALPATH=0;
23333  REPLACE_SETENV=0;
23334  REPLACE_SETSTATE=0;
23335  REPLACE_STRTOD=0;
23336  REPLACE_STRTOLD=0;
23337  REPLACE_UNSETENV=0;
23338  REPLACE_WCTOMB=0;
23339
23340
23341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
23342$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
23343if ${gl_cv_func_malloc_posix+:} false; then :
23344  $as_echo_n "(cached) " >&6
23345else
23346
23347                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23348/* end confdefs.h.  */
23349
23350int
23351main ()
23352{
23353#if defined _WIN32 && ! defined __CYGWIN__
23354             choke me
23355             #endif
23356
23357  ;
23358  return 0;
23359}
23360_ACEOF
23361if ac_fn_c_try_compile "$LINENO"; then :
23362  gl_cv_func_malloc_posix=yes
23363else
23364  gl_cv_func_malloc_posix=no
23365fi
23366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367
23368fi
23369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
23370$as_echo "$gl_cv_func_malloc_posix" >&6; }
23371
23372
23373
23374      for ac_header in stdlib.h
23375do :
23376  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23377if test "x$ac_cv_header_stdlib_h" = xyes; then :
23378  cat >>confdefs.h <<_ACEOF
23379#define HAVE_STDLIB_H 1
23380_ACEOF
23381
23382fi
23383
23384done
23385
23386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
23387$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23388if ${ac_cv_func_malloc_0_nonnull+:} false; then :
23389  $as_echo_n "(cached) " >&6
23390else
23391  if test "$cross_compiling" = yes; then :
23392  case "$host_os" in
23393          # Guess yes on platforms where we know the result.
23394          *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
23395          | hpux* | solaris* | cygwin* | mingw*)
23396            ac_cv_func_malloc_0_nonnull="guessing yes" ;;
23397          # If we don't know, obey --enable-cross-guesses.
23398          *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
23399        esac
23400
23401else
23402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23403/* end confdefs.h.  */
23404#if defined STDC_HEADERS || defined HAVE_STDLIB_H
23405            # include <stdlib.h>
23406            #else
23407            char *malloc ();
23408            #endif
23409
23410int
23411main ()
23412{
23413char *p = malloc (0);
23414            int result = !p;
23415            free (p);
23416            return result;
23417  ;
23418  return 0;
23419}
23420
23421_ACEOF
23422if ac_fn_c_try_run "$LINENO"; then :
23423  ac_cv_func_malloc_0_nonnull=yes
23424else
23425  ac_cv_func_malloc_0_nonnull=no
23426fi
23427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23428  conftest.$ac_objext conftest.beam conftest.$ac_ext
23429fi
23430
23431
23432fi
23433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
23434$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23435  case "$ac_cv_func_malloc_0_nonnull" in
23436    *yes)
23437      gl_cv_func_malloc_0_nonnull=1
23438      ;;
23439    *)
23440      gl_cv_func_malloc_0_nonnull=0
23441      ;;
23442  esac
23443
23444
23445cat >>confdefs.h <<_ACEOF
23446#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
23447_ACEOF
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
23460  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
23461  # irrelevant for anonymous mappings.
23462  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
23463if test "x$ac_cv_func_mmap" = xyes; then :
23464  gl_have_mmap=yes
23465else
23466  gl_have_mmap=no
23467fi
23468
23469
23470  # Try to allow MAP_ANONYMOUS.
23471  gl_have_mmap_anonymous=no
23472  if test $gl_have_mmap = yes; then
23473    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
23474$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
23475    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23476/* end confdefs.h.  */
23477
23478#include <sys/mman.h>
23479#ifdef MAP_ANONYMOUS
23480    I cannot identify this map
23481#endif
23482
23483_ACEOF
23484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23485  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
23486  gl_have_mmap_anonymous=yes
23487fi
23488rm -f conftest*
23489
23490    if test $gl_have_mmap_anonymous != yes; then
23491      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23492/* end confdefs.h.  */
23493
23494#include <sys/mman.h>
23495#ifdef MAP_ANON
23496    I cannot identify this map
23497#endif
23498
23499_ACEOF
23500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23501  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
23502
23503$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
23504
23505         gl_have_mmap_anonymous=yes
23506fi
23507rm -f conftest*
23508
23509    fi
23510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
23511$as_echo "$gl_have_mmap_anonymous" >&6; }
23512    if test $gl_have_mmap_anonymous = yes; then
23513
23514$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
23515
23516    fi
23517  fi
23518
23519
23520
23521
23522
23523
23524  if test $HAVE_MEMCHR = 1; then
23525    # Detect platform-specific bugs in some versions of glibc:
23526    # memchr should not dereference anything with length 0
23527    #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
23528    # memchr should not dereference overestimated length after a match
23529    #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
23530    #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
23531    # memchr should cast the second argument to 'unsigned char'.
23532    #   This bug exists in Android 4.3.
23533    # Assume that memchr works on platforms that lack mprotect.
23534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
23535$as_echo_n "checking whether memchr works... " >&6; }
23536if ${gl_cv_func_memchr_works+:} false; then :
23537  $as_echo_n "(cached) " >&6
23538else
23539  if test "$cross_compiling" = yes; then :
23540  case "$host_os" in
23541                             # Guess no on Android.
23542            linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
23543                             # Guess yes on native Windows.
23544            mingw*)          gl_cv_func_memchr_works="guessing yes" ;;
23545                             # If we don't know, obey --enable-cross-guesses.
23546            *)               gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
23547          esac
23548
23549else
23550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23551/* end confdefs.h.  */
23552
23553#include <string.h>
23554#if HAVE_SYS_MMAN_H
23555# include <fcntl.h>
23556# include <unistd.h>
23557# include <sys/types.h>
23558# include <sys/mman.h>
23559# ifndef MAP_FILE
23560#  define MAP_FILE 0
23561# endif
23562#endif
23563
23564int
23565main ()
23566{
23567
23568  int result = 0;
23569  char *fence = NULL;
23570#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
23571# if HAVE_MAP_ANONYMOUS
23572  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
23573  const int fd = -1;
23574# else /* !HAVE_MAP_ANONYMOUS */
23575  const int flags = MAP_FILE | MAP_PRIVATE;
23576  int fd = open ("/dev/zero", O_RDONLY, 0666);
23577  if (fd >= 0)
23578# endif
23579    {
23580      int pagesize = getpagesize ();
23581      char *two_pages =
23582        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
23583                       flags, fd, 0);
23584      if (two_pages != (char *)(-1)
23585          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
23586        fence = two_pages + pagesize;
23587    }
23588#endif
23589  if (fence)
23590    {
23591      if (memchr (fence, 0, 0))
23592        result |= 1;
23593      strcpy (fence - 9, "12345678");
23594      if (memchr (fence - 9, 0, 79) != fence - 1)
23595        result |= 2;
23596      if (memchr (fence - 1, 0, 3) != fence - 1)
23597        result |= 4;
23598    }
23599  /* Test against bug on Android 4.3.  */
23600  {
23601    char input[3];
23602    input[0] = 'a';
23603    input[1] = 'b';
23604    input[2] = 'c';
23605    if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
23606      result |= 8;
23607  }
23608  return result;
23609
23610  ;
23611  return 0;
23612}
23613_ACEOF
23614if ac_fn_c_try_run "$LINENO"; then :
23615  gl_cv_func_memchr_works=yes
23616else
23617  gl_cv_func_memchr_works=no
23618fi
23619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23620  conftest.$ac_objext conftest.beam conftest.$ac_ext
23621fi
23622
23623
23624fi
23625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
23626$as_echo "$gl_cv_func_memchr_works" >&6; }
23627    case "$gl_cv_func_memchr_works" in
23628      *yes) ;;
23629      *) REPLACE_MEMCHR=1 ;;
23630    esac
23631  fi
23632
23633ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
23634if test "x$ac_cv_have_decl_memmem" = xyes; then :
23635  ac_have_decl=1
23636else
23637  ac_have_decl=0
23638fi
23639
23640cat >>confdefs.h <<_ACEOF
23641#define HAVE_DECL_MEMMEM $ac_have_decl
23642_ACEOF
23643
23644
23645
23646
23647
23648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
23649$as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
23650if ${gl_cv_minmax_in_limits_h+:} false; then :
23651  $as_echo_n "(cached) " >&6
23652else
23653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23654/* end confdefs.h.  */
23655#include <limits.h>
23656            int x = MIN (42, 17);
23657int
23658main ()
23659{
23660
23661  ;
23662  return 0;
23663}
23664_ACEOF
23665if ac_fn_c_try_compile "$LINENO"; then :
23666  gl_cv_minmax_in_limits_h=yes
23667else
23668  gl_cv_minmax_in_limits_h=no
23669fi
23670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23671fi
23672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
23673$as_echo "$gl_cv_minmax_in_limits_h" >&6; }
23674  if test $gl_cv_minmax_in_limits_h = yes; then
23675
23676$as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
23677
23678  fi
23679
23680
23681
23682
23683
23684
23685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
23686$as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
23687if ${gl_cv_minmax_in_sys_param_h+:} false; then :
23688  $as_echo_n "(cached) " >&6
23689else
23690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23691/* end confdefs.h.  */
23692#include <sys/param.h>
23693            int x = MIN (42, 17);
23694int
23695main ()
23696{
23697
23698  ;
23699  return 0;
23700}
23701_ACEOF
23702if ac_fn_c_try_compile "$LINENO"; then :
23703  gl_cv_minmax_in_sys_param_h=yes
23704else
23705  gl_cv_minmax_in_sys_param_h=no
23706fi
23707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708fi
23709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
23710$as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
23711  if test $gl_cv_minmax_in_sys_param_h = yes; then
23712
23713$as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
23714
23715  fi
23716
23717
23718
23719
23720
23721
23722
23723
23724  GNULIB_GETADDRINFO=0;
23725    HAVE_STRUCT_ADDRINFO=1;
23726  HAVE_DECL_FREEADDRINFO=1;
23727  HAVE_DECL_GAI_STRERROR=1;
23728  HAVE_DECL_GETADDRINFO=1;
23729  HAVE_DECL_GETNAMEINFO=1;
23730  REPLACE_GAI_STRERROR=0;
23731  REPLACE_GETADDRINFO=0;
23732
23733
23734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
23735$as_echo_n "checking for O_CLOEXEC... " >&6; }
23736if ${gl_cv_macro_O_CLOEXEC+:} false; then :
23737  $as_echo_n "(cached) " >&6
23738else
23739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740/* end confdefs.h.  */
23741#include <fcntl.h>
23742                          #ifndef O_CLOEXEC
23743                            choke me;
23744                          #endif
23745
23746int
23747main ()
23748{
23749return O_CLOEXEC;
23750  ;
23751  return 0;
23752}
23753_ACEOF
23754if ac_fn_c_try_compile "$LINENO"; then :
23755  gl_cv_macro_O_CLOEXEC=yes
23756else
23757  gl_cv_macro_O_CLOEXEC=no
23758fi
23759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760fi
23761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
23762$as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
23763
23764
23765
23766
23767
23768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
23769$as_echo_n "checking for promoted mode_t type... " >&6; }
23770if ${gl_cv_promoted_mode_t+:} false; then :
23771  $as_echo_n "(cached) " >&6
23772else
23773
23774                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23775/* end confdefs.h.  */
23776#include <sys/types.h>
23777int
23778main ()
23779{
23780typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
23781  ;
23782  return 0;
23783}
23784_ACEOF
23785if ac_fn_c_try_compile "$LINENO"; then :
23786  gl_cv_promoted_mode_t='int'
23787else
23788  gl_cv_promoted_mode_t='mode_t'
23789fi
23790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23791
23792fi
23793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
23794$as_echo "$gl_cv_promoted_mode_t" >&6; }
23795
23796cat >>confdefs.h <<_ACEOF
23797#define PROMOTED_MODE_T $gl_cv_promoted_mode_t
23798_ACEOF
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
23822$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
23823if ${gl_cv_func_snprintf_retval_c99+:} false; then :
23824  $as_echo_n "(cached) " >&6
23825else
23826
23827      if test "$cross_compiling" = yes; then :
23828  case "$host_os" in
23829                                 # Guess yes on glibc systems.
23830           *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
23831                                 # Guess yes on musl systems.
23832           *-musl*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
23833                                 # Guess yes on FreeBSD >= 5.
23834           freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
23835           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
23836                                 # Guess yes on Mac OS X >= 10.3.
23837           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
23838           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
23839                                 # Guess yes on OpenBSD >= 3.9.
23840           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
23841                                 gl_cv_func_snprintf_retval_c99="guessing no";;
23842           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
23843                                 # Guess yes on Solaris >= 2.10.
23844           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
23845           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
23846                                 # Guess yes on AIX >= 4.
23847           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
23848           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
23849                                 # Guess yes on NetBSD >= 3.
23850           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
23851                                 gl_cv_func_snprintf_retval_c99="guessing no";;
23852           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
23853                                 # Guess yes on BeOS.
23854           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
23855                                 # Guess yes on Android.
23856           linux*-android*)      gl_cv_func_snprintf_retval_c99="guessing yes";;
23857                                 # Guess yes on MSVC, no on mingw.
23858           mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23859/* end confdefs.h.  */
23860
23861#ifdef _MSC_VER
23862 Known
23863#endif
23864
23865_ACEOF
23866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23867  $EGREP "Known" >/dev/null 2>&1; then :
23868  gl_cv_func_snprintf_retval_c99="guessing yes"
23869else
23870  gl_cv_func_snprintf_retval_c99="guessing no"
23871fi
23872rm -f conftest*
23873
23874                                 ;;
23875                                 # If we don't know, obey --enable-cross-guesses.
23876           *)                    gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
23877         esac
23878
23879else
23880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23881/* end confdefs.h.  */
23882
23883#include <stdio.h>
23884#include <string.h>
23885#if HAVE_SNPRINTF
23886# define my_snprintf snprintf
23887#else
23888# include <stdarg.h>
23889static int my_snprintf (char *buf, int size, const char *format, ...)
23890{
23891  va_list args;
23892  int ret;
23893  va_start (args, format);
23894  ret = vsnprintf (buf, size, format, args);
23895  va_end (args);
23896  return ret;
23897}
23898#endif
23899static char buf[100];
23900int main ()
23901{
23902  strcpy (buf, "ABCDEF");
23903  if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
23904    return 1;
23905  if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
23906    return 2;
23907  if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
23908    return 3;
23909  return 0;
23910}
23911_ACEOF
23912if ac_fn_c_try_run "$LINENO"; then :
23913  gl_cv_func_snprintf_retval_c99=yes
23914else
23915  gl_cv_func_snprintf_retval_c99=no
23916fi
23917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23918  conftest.$ac_objext conftest.beam conftest.$ac_ext
23919fi
23920
23921
23922fi
23923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
23924$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
23925
23926ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23927if test "x$ac_cv_have_decl_snprintf" = xyes; then :
23928  ac_have_decl=1
23929else
23930  ac_have_decl=0
23931fi
23932
23933cat >>confdefs.h <<_ACEOF
23934#define HAVE_DECL_SNPRINTF $ac_have_decl
23935_ACEOF
23936
23937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
23938$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
23939if ${ac_cv_header_stdbool_h+:} false; then :
23940  $as_echo_n "(cached) " >&6
23941else
23942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943/* end confdefs.h.  */
23944
23945             #include <stdbool.h>
23946
23947             #ifdef __cplusplus
23948              typedef bool Bool;
23949             #else
23950              typedef _Bool Bool;
23951              #ifndef bool
23952               "error: bool is not defined"
23953              #endif
23954              #ifndef false
23955               "error: false is not defined"
23956              #endif
23957              #if false
23958               "error: false is not 0"
23959              #endif
23960              #ifndef true
23961               "error: true is not defined"
23962              #endif
23963              #if true != 1
23964               "error: true is not 1"
23965              #endif
23966             #endif
23967
23968             #ifndef __bool_true_false_are_defined
23969              "error: __bool_true_false_are_defined is not defined"
23970             #endif
23971
23972             struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
23973
23974             char a[true == 1 ? 1 : -1];
23975             char b[false == 0 ? 1 : -1];
23976             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
23977             char d[(bool) 0.5 == true ? 1 : -1];
23978             /* See body of main program for 'e'.  */
23979             char f[(Bool) 0.0 == false ? 1 : -1];
23980             char g[true];
23981             char h[sizeof (Bool)];
23982             char i[sizeof s.t];
23983             enum { j = false, k = true, l = false * true, m = true * 256 };
23984             /* The following fails for
23985                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
23986             Bool n[m];
23987             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
23988             char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
23989             /* Catch a bug in an HP-UX C compiler.  See
23990                https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
23991                https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
23992              */
23993             Bool q = true;
23994             Bool *pq = &q;
23995             bool *qq = &q;
23996
23997int
23998main ()
23999{
24000
24001             bool e = &s;
24002             *pq |= q; *pq |= ! q;
24003             *qq |= q; *qq |= ! q;
24004             /* Refer to every declared value, to avoid compiler optimizations.  */
24005             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
24006                     + !m + !n + !o + !p + !q + !pq + !qq);
24007
24008  ;
24009  return 0;
24010}
24011_ACEOF
24012if ac_fn_c_try_compile "$LINENO"; then :
24013  ac_cv_header_stdbool_h=yes
24014else
24015  ac_cv_header_stdbool_h=no
24016fi
24017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24018fi
24019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
24020$as_echo "$ac_cv_header_stdbool_h" >&6; }
24021   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
24022if test "x$ac_cv_type__Bool" = xyes; then :
24023
24024cat >>confdefs.h <<_ACEOF
24025#define HAVE__BOOL 1
24026_ACEOF
24027
24028
24029fi
24030
24031
24032
24033    REPLACE_NULL=0;
24034  HAVE_MAX_ALIGN_T=1;
24035  HAVE_WCHAR_T=1;
24036
24037
24038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
24039$as_echo_n "checking for wchar_t... " >&6; }
24040if ${gt_cv_c_wchar_t+:} false; then :
24041  $as_echo_n "(cached) " >&6
24042else
24043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24044/* end confdefs.h.  */
24045#include <stddef.h>
24046            wchar_t foo = (wchar_t)'\0';
24047int
24048main ()
24049{
24050
24051  ;
24052  return 0;
24053}
24054_ACEOF
24055if ac_fn_c_try_compile "$LINENO"; then :
24056  gt_cv_c_wchar_t=yes
24057else
24058  gt_cv_c_wchar_t=no
24059fi
24060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24061fi
24062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
24063$as_echo "$gt_cv_c_wchar_t" >&6; }
24064  if test $gt_cv_c_wchar_t = yes; then
24065
24066$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
24067
24068  fi
24069
24070
24071  GNULIB_FFS=0;
24072    HAVE_FFS=1;
24073  HAVE_STRCASECMP=1;
24074  HAVE_DECL_STRNCASECMP=1;
24075
24076
24077
24078ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
24079if test "x$ac_cv_have_decl_strdup" = xyes; then :
24080  ac_have_decl=1
24081else
24082  ac_have_decl=0
24083fi
24084
24085cat >>confdefs.h <<_ACEOF
24086#define HAVE_DECL_STRDUP $ac_have_decl
24087_ACEOF
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099     if test $gl_cv_have_include_next = yes; then
24100       gl_cv_next_string_h='<'string.h'>'
24101     else
24102       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
24103$as_echo_n "checking absolute name of <string.h>... " >&6; }
24104if ${gl_cv_next_string_h+:} false; then :
24105  $as_echo_n "(cached) " >&6
24106else
24107
24108
24109
24110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111/* end confdefs.h.  */
24112#include <string.h>
24113_ACEOF
24114                case "$host_os" in
24115    aix*) gl_absname_cpp="$ac_cpp -C" ;;
24116    *)    gl_absname_cpp="$ac_cpp" ;;
24117  esac
24118
24119  case "$host_os" in
24120    mingw*)
24121                                          gl_dirsep_regex='[/\\]'
24122      ;;
24123    *)
24124      gl_dirsep_regex='\/'
24125      ;;
24126  esac
24127      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24128  gl_header_literal_regex=`echo 'string.h' \
24129                           | sed -e "$gl_make_literal_regex_sed"`
24130  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24131      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24132      s|^/[^/]|//&|
24133      p
24134      q
24135    }'
24136
24137        gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24138  sed -n "$gl_absolute_header_sed"`
24139
24140           gl_header=$gl_cv_absolute_string_h
24141           gl_cv_next_string_h='"'$gl_header'"'
24142
24143
24144fi
24145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
24146$as_echo "$gl_cv_next_string_h" >&6; }
24147     fi
24148     NEXT_STRING_H=$gl_cv_next_string_h
24149
24150     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24151       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24152       gl_next_as_first_directive='<'string.h'>'
24153     else
24154       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24155       gl_next_as_first_directive=$gl_cv_next_string_h
24156     fi
24157     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183     if test $gl_cv_have_include_next = yes; then
24184       gl_cv_next_strings_h='<'strings.h'>'
24185     else
24186       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
24187$as_echo_n "checking absolute name of <strings.h>... " >&6; }
24188if ${gl_cv_next_strings_h+:} false; then :
24189  $as_echo_n "(cached) " >&6
24190else
24191
24192             if test $ac_cv_header_strings_h = yes; then
24193
24194
24195
24196
24197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24198/* end confdefs.h.  */
24199#include <strings.h>
24200_ACEOF
24201                case "$host_os" in
24202    aix*) gl_absname_cpp="$ac_cpp -C" ;;
24203    *)    gl_absname_cpp="$ac_cpp" ;;
24204  esac
24205
24206  case "$host_os" in
24207    mingw*)
24208                                          gl_dirsep_regex='[/\\]'
24209      ;;
24210    *)
24211      gl_dirsep_regex='\/'
24212      ;;
24213  esac
24214      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24215  gl_header_literal_regex=`echo 'strings.h' \
24216                           | sed -e "$gl_make_literal_regex_sed"`
24217  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24218      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24219      s|^/[^/]|//&|
24220      p
24221      q
24222    }'
24223
24224        gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24225  sed -n "$gl_absolute_header_sed"`
24226
24227           gl_header=$gl_cv_absolute_strings_h
24228           gl_cv_next_strings_h='"'$gl_header'"'
24229          else
24230               gl_cv_next_strings_h='<'strings.h'>'
24231             fi
24232
24233
24234fi
24235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
24236$as_echo "$gl_cv_next_strings_h" >&6; }
24237     fi
24238     NEXT_STRINGS_H=$gl_cv_next_strings_h
24239
24240     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24241       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24242       gl_next_as_first_directive='<'strings.h'>'
24243     else
24244       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24245       gl_next_as_first_directive=$gl_cv_next_strings_h
24246     fi
24247     NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
24248
24249
24250
24251
24252  if test $ac_cv_header_strings_h = yes; then
24253    HAVE_STRINGS_H=1
24254  else
24255    HAVE_STRINGS_H=0
24256  fi
24257
24258
24259
24260
24261
24262
24263ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
24264if test "x$ac_cv_have_decl_strndup" = xyes; then :
24265  ac_have_decl=1
24266else
24267  ac_have_decl=0
24268fi
24269
24270cat >>confdefs.h <<_ACEOF
24271#define HAVE_DECL_STRNDUP $ac_have_decl
24272_ACEOF
24273
24274
24275
24276ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
24277if test "x$ac_cv_have_decl_strnlen" = xyes; then :
24278  ac_have_decl=1
24279else
24280  ac_have_decl=0
24281fi
24282
24283cat >>confdefs.h <<_ACEOF
24284#define HAVE_DECL_STRNLEN $ac_have_decl
24285_ACEOF
24286
24287ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
24288if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
24289  ac_have_decl=1
24290else
24291  ac_have_decl=0
24292fi
24293
24294cat >>confdefs.h <<_ACEOF
24295#define HAVE_DECL_STRTOK_R $ac_have_decl
24296_ACEOF
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306  gl_threads_api=none
24307  LIBTHREAD=
24308  LTLIBTHREAD=
24309  LIBMULTITHREAD=
24310  LTLIBMULTITHREAD=
24311  if test "$gl_use_threads" != no; then
24312
24313
24314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
24315$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
24316if ${gl_cv_have_weak+:} false; then :
24317  $as_echo_n "(cached) " >&6
24318else
24319  gl_cv_have_weak=no
24320          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24321/* end confdefs.h.  */
24322extern void xyzzy ();
24323#pragma weak xyzzy
24324int
24325main ()
24326{
24327xyzzy();
24328  ;
24329  return 0;
24330}
24331_ACEOF
24332if ac_fn_c_try_link "$LINENO"; then :
24333  gl_cv_have_weak=maybe
24334fi
24335rm -f core conftest.err conftest.$ac_objext \
24336    conftest$ac_exeext conftest.$ac_ext
24337     if test $gl_cv_have_weak = maybe; then
24338                     if test "$cross_compiling" = yes; then :
24339                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24340/* end confdefs.h.  */
24341#ifdef __ELF__
24342             Extensible Linking Format
24343             #endif
24344
24345_ACEOF
24346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24347  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
24348  gl_cv_have_weak="guessing yes"
24349else
24350  gl_cv_have_weak="guessing no"
24351fi
24352rm -f conftest*
24353
24354
24355else
24356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24357/* end confdefs.h.  */
24358
24359#include <stdio.h>
24360#pragma weak fputs
24361int main ()
24362{
24363  return (fputs == NULL);
24364}
24365_ACEOF
24366if ac_fn_c_try_run "$LINENO"; then :
24367  gl_cv_have_weak=yes
24368else
24369  gl_cv_have_weak=no
24370fi
24371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24372  conftest.$ac_objext conftest.beam conftest.$ac_ext
24373fi
24374
24375     fi
24376          case " $LDFLAGS " in
24377       *" -static "*) gl_cv_have_weak=no ;;
24378     esac
24379                    case "$gl_cv_have_weak" in
24380       *yes)
24381         case "$host_os" in
24382           freebsd* | dragonfly*)
24383             : > conftest1.c
24384             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
24385             cat <<EOF > conftest2.c
24386#include <pthread.h>
24387#pragma weak pthread_mutexattr_gettype
24388int main ()
24389{
24390  return (pthread_mutexattr_gettype != NULL);
24391}
24392EOF
24393             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
24394               || gl_cv_have_weak=no
24395             rm -f conftest1.c libempty.so conftest2.c conftest
24396             ;;
24397         esac
24398         ;;
24399     esac
24400
24401fi
24402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
24403$as_echo "$gl_cv_have_weak" >&6; }
24404  case "$gl_cv_have_weak" in
24405    *yes)
24406
24407$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
24408
24409      ;;
24410  esac
24411
24412    if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
24413
24414      :
24415    fi
24416    if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then
24417
24418      gl_have_isoc_threads="$ac_cv_header_threads_h"
24419    fi
24420    if test "$gl_use_threads" = yes \
24421       || test "$gl_use_threads" = posix \
24422       || test "$gl_use_threads" = isoc+posix; then
24423
24424
24425  if test -z "$gl_pthreadlib_body_done"; then
24426    gl_pthread_api=no
24427    LIBPTHREAD=
24428    LIBPMULTITHREAD=
24429    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
24430    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
24431    ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
24432if test "x$ac_cv_header_pthread_h" = xyes; then :
24433  gl_have_pthread_h=yes
24434else
24435  gl_have_pthread_h=no
24436fi
24437
24438
24439    if test "$gl_have_pthread_h" = yes; then
24440      # Other possible tests:
24441      #   -lpthreads (FSU threads, PCthreads)
24442      #   -lgthreads
24443      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
24444      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
24445      # the second one only in libpthread, and lock.c needs it.
24446      #
24447      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
24448      # needs -pthread for some reason.  See:
24449      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
24450      save_LIBS=$LIBS
24451      for gl_pthread in '' '-pthread'; do
24452        LIBS="$LIBS $gl_pthread"
24453        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24454/* end confdefs.h.  */
24455#include <pthread.h>
24456               pthread_mutex_t m;
24457               pthread_mutexattr_t ma;
24458
24459int
24460main ()
24461{
24462pthread_mutex_lock (&m);
24463               pthread_mutexattr_init (&ma);
24464  ;
24465  return 0;
24466}
24467_ACEOF
24468if ac_fn_c_try_link "$LINENO"; then :
24469  gl_pthread_api=yes
24470           LIBPTHREAD=$gl_pthread
24471           LIBPMULTITHREAD=$gl_pthread
24472fi
24473rm -f core conftest.err conftest.$ac_objext \
24474    conftest$ac_exeext conftest.$ac_ext
24475        LIBS=$save_LIBS
24476        test $gl_pthread_api = yes && break
24477      done
24478
24479      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
24480      # since it is defined as a macro on OSF/1.)
24481      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
24482        # The program links fine without libpthread. But it may actually
24483        # need to link with libpthread in order to create multiple threads.
24484        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
24485$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
24486if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
24487  $as_echo_n "(cached) " >&6
24488else
24489  ac_check_lib_save_LIBS=$LIBS
24490LIBS="-lpthread  $LIBS"
24491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24492/* end confdefs.h.  */
24493
24494/* Override any GCC internal prototype to avoid an error.
24495   Use char because int might match the return type of a GCC
24496   builtin and then its argument prototype would still apply.  */
24497#ifdef __cplusplus
24498extern "C"
24499#endif
24500char pthread_kill ();
24501int
24502main ()
24503{
24504return pthread_kill ();
24505  ;
24506  return 0;
24507}
24508_ACEOF
24509if ac_fn_c_try_link "$LINENO"; then :
24510  ac_cv_lib_pthread_pthread_kill=yes
24511else
24512  ac_cv_lib_pthread_pthread_kill=no
24513fi
24514rm -f core conftest.err conftest.$ac_objext \
24515    conftest$ac_exeext conftest.$ac_ext
24516LIBS=$ac_check_lib_save_LIBS
24517fi
24518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
24519$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
24520if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
24521  LIBPMULTITHREAD=-lpthread
24522           # On Solaris and HP-UX, most pthread functions exist also in libc.
24523           # Therefore pthread_in_use() needs to actually try to create a
24524           # thread: pthread_create from libc will fail, whereas
24525           # pthread_create will actually create a thread.
24526           # On Solaris 10 or newer, this test is no longer needed, because
24527           # libc contains the fully functional pthread functions.
24528           case "$host_os" in
24529             solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
24530
24531$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
24532
24533           esac
24534
24535fi
24536
24537      elif test $gl_pthread_api != yes; then
24538        # Some library is needed. Try libpthread and libc_r.
24539        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
24540$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
24541if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
24542  $as_echo_n "(cached) " >&6
24543else
24544  ac_check_lib_save_LIBS=$LIBS
24545LIBS="-lpthread  $LIBS"
24546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24547/* end confdefs.h.  */
24548
24549/* Override any GCC internal prototype to avoid an error.
24550   Use char because int might match the return type of a GCC
24551   builtin and then its argument prototype would still apply.  */
24552#ifdef __cplusplus
24553extern "C"
24554#endif
24555char pthread_kill ();
24556int
24557main ()
24558{
24559return pthread_kill ();
24560  ;
24561  return 0;
24562}
24563_ACEOF
24564if ac_fn_c_try_link "$LINENO"; then :
24565  ac_cv_lib_pthread_pthread_kill=yes
24566else
24567  ac_cv_lib_pthread_pthread_kill=no
24568fi
24569rm -f core conftest.err conftest.$ac_objext \
24570    conftest$ac_exeext conftest.$ac_ext
24571LIBS=$ac_check_lib_save_LIBS
24572fi
24573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
24574$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
24575if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
24576  gl_pthread_api=yes
24577           LIBPTHREAD=-lpthread
24578           LIBPMULTITHREAD=-lpthread
24579fi
24580
24581        if test $gl_pthread_api != yes; then
24582          # For FreeBSD 4.
24583          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
24584$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
24585if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
24586  $as_echo_n "(cached) " >&6
24587else
24588  ac_check_lib_save_LIBS=$LIBS
24589LIBS="-lc_r  $LIBS"
24590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24591/* end confdefs.h.  */
24592
24593/* Override any GCC internal prototype to avoid an error.
24594   Use char because int might match the return type of a GCC
24595   builtin and then its argument prototype would still apply.  */
24596#ifdef __cplusplus
24597extern "C"
24598#endif
24599char pthread_kill ();
24600int
24601main ()
24602{
24603return pthread_kill ();
24604  ;
24605  return 0;
24606}
24607_ACEOF
24608if ac_fn_c_try_link "$LINENO"; then :
24609  ac_cv_lib_c_r_pthread_kill=yes
24610else
24611  ac_cv_lib_c_r_pthread_kill=no
24612fi
24613rm -f core conftest.err conftest.$ac_objext \
24614    conftest$ac_exeext conftest.$ac_ext
24615LIBS=$ac_check_lib_save_LIBS
24616fi
24617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
24618$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
24619if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
24620  gl_pthread_api=yes
24621             LIBPTHREAD=-lc_r
24622             LIBPMULTITHREAD=-lc_r
24623fi
24624
24625        fi
24626      fi
24627    fi
24628    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
24629$as_echo_n "checking whether POSIX threads API is available... " >&6; }
24630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
24631$as_echo "$gl_pthread_api" >&6; }
24632
24633
24634    if test $gl_pthread_api = yes; then
24635
24636$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
24637
24638    fi
24639
24640        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24641/* end confdefs.h.  */
24642#include <sched.h>
24643int
24644main ()
24645{
24646sched_yield ();
24647  ;
24648  return 0;
24649}
24650_ACEOF
24651if ac_fn_c_try_link "$LINENO"; then :
24652  LIB_SCHED_YIELD=
24653
24654else
24655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
24656$as_echo_n "checking for sched_yield in -lrt... " >&6; }
24657if ${ac_cv_lib_rt_sched_yield+:} false; then :
24658  $as_echo_n "(cached) " >&6
24659else
24660  ac_check_lib_save_LIBS=$LIBS
24661LIBS="-lrt  $LIBS"
24662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24663/* end confdefs.h.  */
24664
24665/* Override any GCC internal prototype to avoid an error.
24666   Use char because int might match the return type of a GCC
24667   builtin and then its argument prototype would still apply.  */
24668#ifdef __cplusplus
24669extern "C"
24670#endif
24671char sched_yield ();
24672int
24673main ()
24674{
24675return sched_yield ();
24676  ;
24677  return 0;
24678}
24679_ACEOF
24680if ac_fn_c_try_link "$LINENO"; then :
24681  ac_cv_lib_rt_sched_yield=yes
24682else
24683  ac_cv_lib_rt_sched_yield=no
24684fi
24685rm -f core conftest.err conftest.$ac_objext \
24686    conftest$ac_exeext conftest.$ac_ext
24687LIBS=$ac_check_lib_save_LIBS
24688fi
24689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
24690$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
24691if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
24692  LIB_SCHED_YIELD=-lrt
24693else
24694            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
24695$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
24696if ${ac_cv_lib_posix4_sched_yield+:} false; then :
24697  $as_echo_n "(cached) " >&6
24698else
24699  ac_check_lib_save_LIBS=$LIBS
24700LIBS="-lposix4  $LIBS"
24701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24702/* end confdefs.h.  */
24703
24704/* Override any GCC internal prototype to avoid an error.
24705   Use char because int might match the return type of a GCC
24706   builtin and then its argument prototype would still apply.  */
24707#ifdef __cplusplus
24708extern "C"
24709#endif
24710char sched_yield ();
24711int
24712main ()
24713{
24714return sched_yield ();
24715  ;
24716  return 0;
24717}
24718_ACEOF
24719if ac_fn_c_try_link "$LINENO"; then :
24720  ac_cv_lib_posix4_sched_yield=yes
24721else
24722  ac_cv_lib_posix4_sched_yield=no
24723fi
24724rm -f core conftest.err conftest.$ac_objext \
24725    conftest$ac_exeext conftest.$ac_ext
24726LIBS=$ac_check_lib_save_LIBS
24727fi
24728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
24729$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
24730if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
24731  LIB_SCHED_YIELD=-lposix4
24732fi
24733
24734fi
24735
24736
24737fi
24738rm -f core conftest.err conftest.$ac_objext \
24739    conftest$ac_exeext conftest.$ac_ext
24740
24741
24742    gl_pthreadlib_body_done=done
24743  fi
24744
24745      LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD
24746      LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD
24747      if test $gl_pthread_api = yes; then
24748        if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then
24749          gl_threads_api='isoc+posix'
24750
24751$as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
24752
24753          LIBTHREAD= LTLIBTHREAD=
24754        else
24755          gl_threads_api=posix
24756
24757$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
24758
24759          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
24760            if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
24761
24762$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
24763
24764              LIBTHREAD= LTLIBTHREAD=
24765            fi
24766          fi
24767        fi
24768      fi
24769    fi
24770    if test $gl_threads_api = none; then
24771      if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then
24772
24773
24774
24775  if test -z "$gl_stdthreadlib_body_done"; then
24776
24777
24778    case "$host_os" in
24779      mingw*)
24780        LIBSTDTHREAD=
24781        ;;
24782      *)
24783
24784
24785  if test -z "$gl_pthreadlib_body_done"; then
24786    gl_pthread_api=no
24787    LIBPTHREAD=
24788    LIBPMULTITHREAD=
24789    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
24790    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
24791    ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
24792if test "x$ac_cv_header_pthread_h" = xyes; then :
24793  gl_have_pthread_h=yes
24794else
24795  gl_have_pthread_h=no
24796fi
24797
24798
24799    if test "$gl_have_pthread_h" = yes; then
24800      # Other possible tests:
24801      #   -lpthreads (FSU threads, PCthreads)
24802      #   -lgthreads
24803      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
24804      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
24805      # the second one only in libpthread, and lock.c needs it.
24806      #
24807      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
24808      # needs -pthread for some reason.  See:
24809      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
24810      save_LIBS=$LIBS
24811      for gl_pthread in '' '-pthread'; do
24812        LIBS="$LIBS $gl_pthread"
24813        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814/* end confdefs.h.  */
24815#include <pthread.h>
24816               pthread_mutex_t m;
24817               pthread_mutexattr_t ma;
24818
24819int
24820main ()
24821{
24822pthread_mutex_lock (&m);
24823               pthread_mutexattr_init (&ma);
24824  ;
24825  return 0;
24826}
24827_ACEOF
24828if ac_fn_c_try_link "$LINENO"; then :
24829  gl_pthread_api=yes
24830           LIBPTHREAD=$gl_pthread
24831           LIBPMULTITHREAD=$gl_pthread
24832fi
24833rm -f core conftest.err conftest.$ac_objext \
24834    conftest$ac_exeext conftest.$ac_ext
24835        LIBS=$save_LIBS
24836        test $gl_pthread_api = yes && break
24837      done
24838
24839      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
24840      # since it is defined as a macro on OSF/1.)
24841      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
24842        # The program links fine without libpthread. But it may actually
24843        # need to link with libpthread in order to create multiple threads.
24844        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
24845$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
24846if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
24847  $as_echo_n "(cached) " >&6
24848else
24849  ac_check_lib_save_LIBS=$LIBS
24850LIBS="-lpthread  $LIBS"
24851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852/* end confdefs.h.  */
24853
24854/* Override any GCC internal prototype to avoid an error.
24855   Use char because int might match the return type of a GCC
24856   builtin and then its argument prototype would still apply.  */
24857#ifdef __cplusplus
24858extern "C"
24859#endif
24860char pthread_kill ();
24861int
24862main ()
24863{
24864return pthread_kill ();
24865  ;
24866  return 0;
24867}
24868_ACEOF
24869if ac_fn_c_try_link "$LINENO"; then :
24870  ac_cv_lib_pthread_pthread_kill=yes
24871else
24872  ac_cv_lib_pthread_pthread_kill=no
24873fi
24874rm -f core conftest.err conftest.$ac_objext \
24875    conftest$ac_exeext conftest.$ac_ext
24876LIBS=$ac_check_lib_save_LIBS
24877fi
24878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
24879$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
24880if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
24881  LIBPMULTITHREAD=-lpthread
24882           # On Solaris and HP-UX, most pthread functions exist also in libc.
24883           # Therefore pthread_in_use() needs to actually try to create a
24884           # thread: pthread_create from libc will fail, whereas
24885           # pthread_create will actually create a thread.
24886           # On Solaris 10 or newer, this test is no longer needed, because
24887           # libc contains the fully functional pthread functions.
24888           case "$host_os" in
24889             solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
24890
24891$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
24892
24893           esac
24894
24895fi
24896
24897      elif test $gl_pthread_api != yes; then
24898        # Some library is needed. Try libpthread and libc_r.
24899        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
24900$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
24901if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
24902  $as_echo_n "(cached) " >&6
24903else
24904  ac_check_lib_save_LIBS=$LIBS
24905LIBS="-lpthread  $LIBS"
24906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24907/* end confdefs.h.  */
24908
24909/* Override any GCC internal prototype to avoid an error.
24910   Use char because int might match the return type of a GCC
24911   builtin and then its argument prototype would still apply.  */
24912#ifdef __cplusplus
24913extern "C"
24914#endif
24915char pthread_kill ();
24916int
24917main ()
24918{
24919return pthread_kill ();
24920  ;
24921  return 0;
24922}
24923_ACEOF
24924if ac_fn_c_try_link "$LINENO"; then :
24925  ac_cv_lib_pthread_pthread_kill=yes
24926else
24927  ac_cv_lib_pthread_pthread_kill=no
24928fi
24929rm -f core conftest.err conftest.$ac_objext \
24930    conftest$ac_exeext conftest.$ac_ext
24931LIBS=$ac_check_lib_save_LIBS
24932fi
24933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
24934$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
24935if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
24936  gl_pthread_api=yes
24937           LIBPTHREAD=-lpthread
24938           LIBPMULTITHREAD=-lpthread
24939fi
24940
24941        if test $gl_pthread_api != yes; then
24942          # For FreeBSD 4.
24943          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
24944$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
24945if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
24946  $as_echo_n "(cached) " >&6
24947else
24948  ac_check_lib_save_LIBS=$LIBS
24949LIBS="-lc_r  $LIBS"
24950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24951/* end confdefs.h.  */
24952
24953/* Override any GCC internal prototype to avoid an error.
24954   Use char because int might match the return type of a GCC
24955   builtin and then its argument prototype would still apply.  */
24956#ifdef __cplusplus
24957extern "C"
24958#endif
24959char pthread_kill ();
24960int
24961main ()
24962{
24963return pthread_kill ();
24964  ;
24965  return 0;
24966}
24967_ACEOF
24968if ac_fn_c_try_link "$LINENO"; then :
24969  ac_cv_lib_c_r_pthread_kill=yes
24970else
24971  ac_cv_lib_c_r_pthread_kill=no
24972fi
24973rm -f core conftest.err conftest.$ac_objext \
24974    conftest$ac_exeext conftest.$ac_ext
24975LIBS=$ac_check_lib_save_LIBS
24976fi
24977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
24978$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
24979if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
24980  gl_pthread_api=yes
24981             LIBPTHREAD=-lc_r
24982             LIBPMULTITHREAD=-lc_r
24983fi
24984
24985        fi
24986      fi
24987    fi
24988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
24989$as_echo_n "checking whether POSIX threads API is available... " >&6; }
24990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
24991$as_echo "$gl_pthread_api" >&6; }
24992
24993
24994    if test $gl_pthread_api = yes; then
24995
24996$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
24997
24998    fi
24999
25000        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25001/* end confdefs.h.  */
25002#include <sched.h>
25003int
25004main ()
25005{
25006sched_yield ();
25007  ;
25008  return 0;
25009}
25010_ACEOF
25011if ac_fn_c_try_link "$LINENO"; then :
25012  LIB_SCHED_YIELD=
25013
25014else
25015         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
25016$as_echo_n "checking for sched_yield in -lrt... " >&6; }
25017if ${ac_cv_lib_rt_sched_yield+:} false; then :
25018  $as_echo_n "(cached) " >&6
25019else
25020  ac_check_lib_save_LIBS=$LIBS
25021LIBS="-lrt  $LIBS"
25022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25023/* end confdefs.h.  */
25024
25025/* Override any GCC internal prototype to avoid an error.
25026   Use char because int might match the return type of a GCC
25027   builtin and then its argument prototype would still apply.  */
25028#ifdef __cplusplus
25029extern "C"
25030#endif
25031char sched_yield ();
25032int
25033main ()
25034{
25035return sched_yield ();
25036  ;
25037  return 0;
25038}
25039_ACEOF
25040if ac_fn_c_try_link "$LINENO"; then :
25041  ac_cv_lib_rt_sched_yield=yes
25042else
25043  ac_cv_lib_rt_sched_yield=no
25044fi
25045rm -f core conftest.err conftest.$ac_objext \
25046    conftest$ac_exeext conftest.$ac_ext
25047LIBS=$ac_check_lib_save_LIBS
25048fi
25049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
25050$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
25051if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
25052  LIB_SCHED_YIELD=-lrt
25053else
25054            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
25055$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
25056if ${ac_cv_lib_posix4_sched_yield+:} false; then :
25057  $as_echo_n "(cached) " >&6
25058else
25059  ac_check_lib_save_LIBS=$LIBS
25060LIBS="-lposix4  $LIBS"
25061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25062/* end confdefs.h.  */
25063
25064/* Override any GCC internal prototype to avoid an error.
25065   Use char because int might match the return type of a GCC
25066   builtin and then its argument prototype would still apply.  */
25067#ifdef __cplusplus
25068extern "C"
25069#endif
25070char sched_yield ();
25071int
25072main ()
25073{
25074return sched_yield ();
25075  ;
25076  return 0;
25077}
25078_ACEOF
25079if ac_fn_c_try_link "$LINENO"; then :
25080  ac_cv_lib_posix4_sched_yield=yes
25081else
25082  ac_cv_lib_posix4_sched_yield=no
25083fi
25084rm -f core conftest.err conftest.$ac_objext \
25085    conftest$ac_exeext conftest.$ac_ext
25086LIBS=$ac_check_lib_save_LIBS
25087fi
25088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
25089$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
25090if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
25091  LIB_SCHED_YIELD=-lposix4
25092fi
25093
25094fi
25095
25096
25097fi
25098rm -f core conftest.err conftest.$ac_objext \
25099    conftest$ac_exeext conftest.$ac_ext
25100
25101
25102    gl_pthreadlib_body_done=done
25103  fi
25104
25105        if test $ac_cv_header_threads_h = yes; then
25106                                                  for ac_func in thrd_create
25107do :
25108  ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
25109if test "x$ac_cv_func_thrd_create" = xyes; then :
25110  cat >>confdefs.h <<_ACEOF
25111#define HAVE_THRD_CREATE 1
25112_ACEOF
25113
25114fi
25115done
25116
25117          if test $ac_cv_func_thrd_create = yes; then
25118            LIBSTDTHREAD=
25119          else
25120            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
25121$as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
25122if ${ac_cv_lib_stdthreads_thrd_create+:} false; then :
25123  $as_echo_n "(cached) " >&6
25124else
25125  ac_check_lib_save_LIBS=$LIBS
25126LIBS="-lstdthreads  $LIBS"
25127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25128/* end confdefs.h.  */
25129
25130/* Override any GCC internal prototype to avoid an error.
25131   Use char because int might match the return type of a GCC
25132   builtin and then its argument prototype would still apply.  */
25133#ifdef __cplusplus
25134extern "C"
25135#endif
25136char thrd_create ();
25137int
25138main ()
25139{
25140return thrd_create ();
25141  ;
25142  return 0;
25143}
25144_ACEOF
25145if ac_fn_c_try_link "$LINENO"; then :
25146  ac_cv_lib_stdthreads_thrd_create=yes
25147else
25148  ac_cv_lib_stdthreads_thrd_create=no
25149fi
25150rm -f core conftest.err conftest.$ac_objext \
25151    conftest$ac_exeext conftest.$ac_ext
25152LIBS=$ac_check_lib_save_LIBS
25153fi
25154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
25155$as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
25156if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes; then :
25157
25158              LIBSTDTHREAD='-lstdthreads -lpthread'
25159
25160else
25161
25162                            LIBSTDTHREAD="$LIBPMULTITHREAD"
25163
25164fi
25165
25166          fi
25167        else
25168                    LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
25169        fi
25170        ;;
25171    esac
25172
25173
25174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
25175$as_echo_n "checking whether ISO C threads API is available... " >&6; }
25176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
25177$as_echo "$ac_cv_header_threads_h" >&6; }
25178    gl_stdthreadlib_body_done=done
25179  fi
25180
25181        LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD
25182        LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD
25183        gl_threads_api=isoc
25184
25185$as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
25186
25187      fi
25188    fi
25189    if test $gl_threads_api = none; then
25190      case "$gl_use_threads" in
25191        yes | windows | win32) # The 'win32' is for backward compatibility.
25192          if { case "$host_os" in
25193                 mingw*) true;;
25194                 *) false;;
25195               esac
25196             }; then
25197            gl_threads_api=windows
25198
25199$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
25200
25201          fi
25202          ;;
25203      esac
25204    fi
25205  fi
25206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
25207$as_echo_n "checking for multithread API to use... " >&6; }
25208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
25209$as_echo "$gl_threads_api" >&6; }
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
25222$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
25223if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
25224  $as_echo_n "(cached) " >&6
25225else
25226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25227/* end confdefs.h.  */
25228#include <time.h>
25229
25230int
25231main ()
25232{
25233static struct timespec x; x.tv_sec = x.tv_nsec;
25234  ;
25235  return 0;
25236}
25237_ACEOF
25238if ac_fn_c_try_compile "$LINENO"; then :
25239  gl_cv_sys_struct_timespec_in_time_h=yes
25240else
25241  gl_cv_sys_struct_timespec_in_time_h=no
25242fi
25243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25244fi
25245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
25246$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
25247
25248  TIME_H_DEFINES_STRUCT_TIMESPEC=0
25249  SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
25250  PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
25251  UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
25252  if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
25253    TIME_H_DEFINES_STRUCT_TIMESPEC=1
25254  else
25255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
25256$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
25257if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
25258  $as_echo_n "(cached) " >&6
25259else
25260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25261/* end confdefs.h.  */
25262#include <sys/time.h>
25263
25264int
25265main ()
25266{
25267static struct timespec x; x.tv_sec = x.tv_nsec;
25268  ;
25269  return 0;
25270}
25271_ACEOF
25272if ac_fn_c_try_compile "$LINENO"; then :
25273  gl_cv_sys_struct_timespec_in_sys_time_h=yes
25274else
25275  gl_cv_sys_struct_timespec_in_sys_time_h=no
25276fi
25277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25278fi
25279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
25280$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
25281    if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
25282      SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
25283    else
25284      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
25285$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
25286if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
25287  $as_echo_n "(cached) " >&6
25288else
25289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25290/* end confdefs.h.  */
25291#include <pthread.h>
25292
25293int
25294main ()
25295{
25296static struct timespec x; x.tv_sec = x.tv_nsec;
25297  ;
25298  return 0;
25299}
25300_ACEOF
25301if ac_fn_c_try_compile "$LINENO"; then :
25302  gl_cv_sys_struct_timespec_in_pthread_h=yes
25303else
25304  gl_cv_sys_struct_timespec_in_pthread_h=no
25305fi
25306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25307fi
25308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
25309$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
25310      if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
25311        PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
25312      else
25313        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
25314$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
25315if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
25316  $as_echo_n "(cached) " >&6
25317else
25318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25319/* end confdefs.h.  */
25320#include <unistd.h>
25321
25322int
25323main ()
25324{
25325static struct timespec x; x.tv_sec = x.tv_nsec;
25326  ;
25327  return 0;
25328}
25329_ACEOF
25330if ac_fn_c_try_compile "$LINENO"; then :
25331  gl_cv_sys_struct_timespec_in_unistd_h=yes
25332else
25333  gl_cv_sys_struct_timespec_in_unistd_h=no
25334fi
25335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25336fi
25337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
25338$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
25339        if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
25340          UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
25341        fi
25342      fi
25343    fi
25344  fi
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361     if test $gl_cv_have_include_next = yes; then
25362       gl_cv_next_time_h='<'time.h'>'
25363     else
25364       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
25365$as_echo_n "checking absolute name of <time.h>... " >&6; }
25366if ${gl_cv_next_time_h+:} false; then :
25367  $as_echo_n "(cached) " >&6
25368else
25369
25370
25371
25372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373/* end confdefs.h.  */
25374#include <time.h>
25375_ACEOF
25376                case "$host_os" in
25377    aix*) gl_absname_cpp="$ac_cpp -C" ;;
25378    *)    gl_absname_cpp="$ac_cpp" ;;
25379  esac
25380
25381  case "$host_os" in
25382    mingw*)
25383                                          gl_dirsep_regex='[/\\]'
25384      ;;
25385    *)
25386      gl_dirsep_regex='\/'
25387      ;;
25388  esac
25389      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25390  gl_header_literal_regex=`echo 'time.h' \
25391                           | sed -e "$gl_make_literal_regex_sed"`
25392  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25393      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25394      s|^/[^/]|//&|
25395      p
25396      q
25397    }'
25398
25399        gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25400  sed -n "$gl_absolute_header_sed"`
25401
25402           gl_header=$gl_cv_absolute_time_h
25403           gl_cv_next_time_h='"'$gl_header'"'
25404
25405
25406fi
25407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
25408$as_echo "$gl_cv_next_time_h" >&6; }
25409     fi
25410     NEXT_TIME_H=$gl_cv_next_time_h
25411
25412     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25413       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25414       gl_next_as_first_directive='<'time.h'>'
25415     else
25416       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25417       gl_next_as_first_directive=$gl_cv_next_time_h
25418     fi
25419     NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
25434$as_echo_n "checking for inttypes.h... " >&6; }
25435if ${gl_cv_header_inttypes_h+:} false; then :
25436  $as_echo_n "(cached) " >&6
25437else
25438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25439/* end confdefs.h.  */
25440
25441#include <sys/types.h>
25442#include <inttypes.h>
25443
25444int
25445main ()
25446{
25447uintmax_t i = (uintmax_t) -1; return !i;
25448  ;
25449  return 0;
25450}
25451_ACEOF
25452if ac_fn_c_try_compile "$LINENO"; then :
25453  gl_cv_header_inttypes_h=yes
25454else
25455  gl_cv_header_inttypes_h=no
25456fi
25457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25458fi
25459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
25460$as_echo "$gl_cv_header_inttypes_h" >&6; }
25461  if test $gl_cv_header_inttypes_h = yes; then
25462
25463cat >>confdefs.h <<_ACEOF
25464#define HAVE_INTTYPES_H_WITH_UINTMAX 1
25465_ACEOF
25466
25467  fi
25468
25469
25470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
25471$as_echo_n "checking for stdint.h... " >&6; }
25472if ${gl_cv_header_stdint_h+:} false; then :
25473  $as_echo_n "(cached) " >&6
25474else
25475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25476/* end confdefs.h.  */
25477#include <sys/types.h>
25478            #include <stdint.h>
25479int
25480main ()
25481{
25482uintmax_t i = (uintmax_t) -1; return !i;
25483  ;
25484  return 0;
25485}
25486_ACEOF
25487if ac_fn_c_try_compile "$LINENO"; then :
25488  gl_cv_header_stdint_h=yes
25489else
25490  gl_cv_header_stdint_h=no
25491fi
25492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493fi
25494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
25495$as_echo "$gl_cv_header_stdint_h" >&6; }
25496  if test $gl_cv_header_stdint_h = yes; then
25497
25498cat >>confdefs.h <<_ACEOF
25499#define HAVE_STDINT_H_WITH_UINTMAX 1
25500_ACEOF
25501
25502  fi
25503
25504
25505
25506
25507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
25508$as_echo_n "checking for intmax_t... " >&6; }
25509if ${gt_cv_c_intmax_t+:} false; then :
25510  $as_echo_n "(cached) " >&6
25511else
25512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25513/* end confdefs.h.  */
25514
25515#include <stddef.h>
25516#include <stdlib.h>
25517#if HAVE_STDINT_H_WITH_UINTMAX
25518#include <stdint.h>
25519#endif
25520#if HAVE_INTTYPES_H_WITH_UINTMAX
25521#include <inttypes.h>
25522#endif
25523
25524int
25525main ()
25526{
25527intmax_t x = -1; return !x;
25528  ;
25529  return 0;
25530}
25531_ACEOF
25532if ac_fn_c_try_compile "$LINENO"; then :
25533  gt_cv_c_intmax_t=yes
25534else
25535  gt_cv_c_intmax_t=no
25536fi
25537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25538fi
25539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
25540$as_echo "$gt_cv_c_intmax_t" >&6; }
25541  if test $gt_cv_c_intmax_t = yes; then
25542
25543$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
25544
25545  else
25546
25547cat >>confdefs.h <<_ACEOF
25548#define intmax_t long long
25549_ACEOF
25550
25551  fi
25552
25553
25554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
25555$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
25556if ${gl_cv_cc_double_expbit0+:} false; then :
25557  $as_echo_n "(cached) " >&6
25558else
25559
25560      if test "$cross_compiling" = yes; then :
25561
25562                                                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563/* end confdefs.h.  */
25564
25565#if defined arm || defined __arm || defined __arm__
25566  mixed_endianness
25567#endif
25568
25569_ACEOF
25570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25571  $EGREP "mixed_endianness" >/dev/null 2>&1; then :
25572  gl_cv_cc_double_expbit0="unknown"
25573else
25574
25575                                                         :
25576if ${ac_cv_c_bigendian+:} false; then :
25577  $as_echo_n "(cached) " >&6
25578else
25579  ac_cv_c_bigendian=unknown
25580    # See if we're dealing with a universal compiler.
25581    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25582/* end confdefs.h.  */
25583#ifndef __APPLE_CC__
25584	       not a universal capable compiler
25585	     #endif
25586	     typedef int dummy;
25587
25588_ACEOF
25589if ac_fn_c_try_compile "$LINENO"; then :
25590
25591	# Check for potential -arch flags.  It is not universal unless
25592	# there are at least two -arch flags with different values.
25593	ac_arch=
25594	ac_prev=
25595	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25596	 if test -n "$ac_prev"; then
25597	   case $ac_word in
25598	     i?86 | x86_64 | ppc | ppc64)
25599	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25600		 ac_arch=$ac_word
25601	       else
25602		 ac_cv_c_bigendian=universal
25603		 break
25604	       fi
25605	       ;;
25606	   esac
25607	   ac_prev=
25608	 elif test "x$ac_word" = "x-arch"; then
25609	   ac_prev=arch
25610	 fi
25611       done
25612fi
25613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614    if test $ac_cv_c_bigendian = unknown; then
25615      # See if sys/param.h defines the BYTE_ORDER macro.
25616      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25617/* end confdefs.h.  */
25618#include <sys/types.h>
25619	     #include <sys/param.h>
25620
25621int
25622main ()
25623{
25624#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25625		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25626		     && LITTLE_ENDIAN)
25627	      bogus endian macros
25628	     #endif
25629
25630  ;
25631  return 0;
25632}
25633_ACEOF
25634if ac_fn_c_try_compile "$LINENO"; then :
25635  # It does; now see whether it defined to BIG_ENDIAN or not.
25636	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25637/* end confdefs.h.  */
25638#include <sys/types.h>
25639		#include <sys/param.h>
25640
25641int
25642main ()
25643{
25644#if BYTE_ORDER != BIG_ENDIAN
25645		 not big endian
25646		#endif
25647
25648  ;
25649  return 0;
25650}
25651_ACEOF
25652if ac_fn_c_try_compile "$LINENO"; then :
25653  ac_cv_c_bigendian=yes
25654else
25655  ac_cv_c_bigendian=no
25656fi
25657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25658fi
25659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660    fi
25661    if test $ac_cv_c_bigendian = unknown; then
25662      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25663      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664/* end confdefs.h.  */
25665#include <limits.h>
25666
25667int
25668main ()
25669{
25670#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25671	      bogus endian macros
25672	     #endif
25673
25674  ;
25675  return 0;
25676}
25677_ACEOF
25678if ac_fn_c_try_compile "$LINENO"; then :
25679  # It does; now see whether it defined to _BIG_ENDIAN or not.
25680	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25681/* end confdefs.h.  */
25682#include <limits.h>
25683
25684int
25685main ()
25686{
25687#ifndef _BIG_ENDIAN
25688		 not big endian
25689		#endif
25690
25691  ;
25692  return 0;
25693}
25694_ACEOF
25695if ac_fn_c_try_compile "$LINENO"; then :
25696  ac_cv_c_bigendian=yes
25697else
25698  ac_cv_c_bigendian=no
25699fi
25700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25701fi
25702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25703    fi
25704    if test $ac_cv_c_bigendian = unknown; then
25705      # Compile a test program.
25706      if test "$cross_compiling" = yes; then :
25707  # Try to guess by grepping values from an object file.
25708	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709/* end confdefs.h.  */
25710short int ascii_mm[] =
25711		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25712		short int ascii_ii[] =
25713		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25714		int use_ascii (int i) {
25715		  return ascii_mm[i] + ascii_ii[i];
25716		}
25717		short int ebcdic_ii[] =
25718		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25719		short int ebcdic_mm[] =
25720		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25721		int use_ebcdic (int i) {
25722		  return ebcdic_mm[i] + ebcdic_ii[i];
25723		}
25724		extern int foo;
25725
25726int
25727main ()
25728{
25729return use_ascii (foo) == use_ebcdic (foo);
25730  ;
25731  return 0;
25732}
25733_ACEOF
25734if ac_fn_c_try_compile "$LINENO"; then :
25735  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25736	      ac_cv_c_bigendian=yes
25737	    fi
25738	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25739	      if test "$ac_cv_c_bigendian" = unknown; then
25740		ac_cv_c_bigendian=no
25741	      else
25742		# finding both strings is unlikely to happen, but who knows?
25743		ac_cv_c_bigendian=unknown
25744	      fi
25745	    fi
25746fi
25747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25748else
25749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25750/* end confdefs.h.  */
25751$ac_includes_default
25752int
25753main ()
25754{
25755
25756	     /* Are we little or big endian?  From Harbison&Steele.  */
25757	     union
25758	     {
25759	       long int l;
25760	       char c[sizeof (long int)];
25761	     } u;
25762	     u.l = 1;
25763	     return u.c[sizeof (long int) - 1] == 1;
25764
25765  ;
25766  return 0;
25767}
25768_ACEOF
25769if ac_fn_c_try_run "$LINENO"; then :
25770  ac_cv_c_bigendian=no
25771else
25772  ac_cv_c_bigendian=yes
25773fi
25774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25775  conftest.$ac_objext conftest.beam conftest.$ac_ext
25776fi
25777
25778    fi
25779fi
25780:
25781 case $ac_cv_c_bigendian in #(
25782   yes)
25783     gl_cv_cc_double_expbit0="word 0 bit 20";; #(
25784   no)
25785     gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
25786   universal)
25787
25788$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25789
25790     ;; #(
25791   *)
25792     gl_cv_cc_double_expbit0="unknown" ;;
25793 esac
25794
25795
25796fi
25797rm -f conftest*
25798
25799
25800else
25801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25802/* end confdefs.h.  */
25803
25804#include <float.h>
25805#include <stddef.h>
25806#include <stdio.h>
25807#include <string.h>
25808#define NWORDS \
25809  ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
25810typedef union { double value; unsigned int word[NWORDS]; } memory_double;
25811static unsigned int ored_words[NWORDS];
25812static unsigned int anded_words[NWORDS];
25813static void add_to_ored_words (double x)
25814{
25815  memory_double m;
25816  size_t i;
25817  /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
25818  memset (&m, 0, sizeof (memory_double));
25819  m.value = x;
25820  for (i = 0; i < NWORDS; i++)
25821    {
25822      ored_words[i] |= m.word[i];
25823      anded_words[i] &= m.word[i];
25824    }
25825}
25826int main ()
25827{
25828  size_t j;
25829  FILE *fp = fopen ("conftest.out", "w");
25830  if (fp == NULL)
25831    return 1;
25832  for (j = 0; j < NWORDS; j++)
25833    anded_words[j] = ~ (unsigned int) 0;
25834  add_to_ored_words (0.25);
25835  add_to_ored_words (0.5);
25836  add_to_ored_words (1.0);
25837  add_to_ored_words (2.0);
25838  add_to_ored_words (4.0);
25839  /* Remove bits that are common (e.g. if representation of the first mantissa
25840     bit is explicit).  */
25841  for (j = 0; j < NWORDS; j++)
25842    ored_words[j] &= ~anded_words[j];
25843  /* Now find the nonzero word.  */
25844  for (j = 0; j < NWORDS; j++)
25845    if (ored_words[j] != 0)
25846      break;
25847  if (j < NWORDS)
25848    {
25849      size_t i;
25850      for (i = j + 1; i < NWORDS; i++)
25851        if (ored_words[i] != 0)
25852          {
25853            fprintf (fp, "unknown");
25854            return (fclose (fp) != 0);
25855          }
25856      for (i = 0; ; i++)
25857        if ((ored_words[j] >> i) & 1)
25858          {
25859            fprintf (fp, "word %d bit %d", (int) j, (int) i);
25860            return (fclose (fp) != 0);
25861          }
25862    }
25863  fprintf (fp, "unknown");
25864  return (fclose (fp) != 0);
25865}
25866
25867_ACEOF
25868if ac_fn_c_try_run "$LINENO"; then :
25869  gl_cv_cc_double_expbit0=`cat conftest.out`
25870else
25871  gl_cv_cc_double_expbit0="unknown"
25872fi
25873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25874  conftest.$ac_objext conftest.beam conftest.$ac_ext
25875fi
25876
25877      rm -f conftest.out
25878
25879fi
25880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
25881$as_echo "$gl_cv_cc_double_expbit0" >&6; }
25882  case "$gl_cv_cc_double_expbit0" in
25883    word*bit*)
25884      word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
25885      bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
25886
25887cat >>confdefs.h <<_ACEOF
25888#define DBL_EXPBIT0_WORD $word
25889_ACEOF
25890
25891
25892cat >>confdefs.h <<_ACEOF
25893#define DBL_EXPBIT0_BIT $bit
25894_ACEOF
25895
25896      ;;
25897  esac
25898
25899
25900
25901
25902
25903  for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
25904do :
25905  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25906ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25907if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25908  cat >>confdefs.h <<_ACEOF
25909#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25910_ACEOF
25911
25912fi
25913done
25914
25915      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
25916"
25917if test "x$ac_cv_have_decl__snprintf" = xyes; then :
25918  ac_have_decl=1
25919else
25920  ac_have_decl=0
25921fi
25922
25923cat >>confdefs.h <<_ACEOF
25924#define HAVE_DECL__SNPRINTF $ac_have_decl
25925_ACEOF
25926
25927
25928
25929  case "$gl_cv_func_snprintf_retval_c99" in
25930    *yes)
25931
25932$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
25933
25934      ;;
25935  esac
25936
25937
25938  XGETTEXT_EXTRA_OPTIONS=
25939
25940ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
25941if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
25942  ac_have_decl=1
25943else
25944  ac_have_decl=0
25945fi
25946
25947cat >>confdefs.h <<_ACEOF
25948#define HAVE_DECL_VSNPRINTF $ac_have_decl
25949_ACEOF
25950
25951
25952  GNULIB_BTOWC=0;
25953  GNULIB_WCTOB=0;
25954  GNULIB_MBSINIT=0;
25955  GNULIB_MBRTOWC=0;
25956  GNULIB_MBRLEN=0;
25957  GNULIB_MBSRTOWCS=0;
25958  GNULIB_MBSNRTOWCS=0;
25959  GNULIB_WCRTOMB=0;
25960  GNULIB_WCSRTOMBS=0;
25961  GNULIB_WCSNRTOMBS=0;
25962  GNULIB_WCWIDTH=0;
25963  GNULIB_WMEMCHR=0;
25964  GNULIB_WMEMCMP=0;
25965  GNULIB_WMEMCPY=0;
25966  GNULIB_WMEMMOVE=0;
25967  GNULIB_WMEMSET=0;
25968  GNULIB_WCSLEN=0;
25969  GNULIB_WCSNLEN=0;
25970  GNULIB_WCSCPY=0;
25971  GNULIB_WCPCPY=0;
25972  GNULIB_WCSNCPY=0;
25973  GNULIB_WCPNCPY=0;
25974  GNULIB_WCSCAT=0;
25975  GNULIB_WCSNCAT=0;
25976  GNULIB_WCSCMP=0;
25977  GNULIB_WCSNCMP=0;
25978  GNULIB_WCSCASECMP=0;
25979  GNULIB_WCSNCASECMP=0;
25980  GNULIB_WCSCOLL=0;
25981  GNULIB_WCSXFRM=0;
25982  GNULIB_WCSDUP=0;
25983  GNULIB_WCSCHR=0;
25984  GNULIB_WCSRCHR=0;
25985  GNULIB_WCSCSPN=0;
25986  GNULIB_WCSSPN=0;
25987  GNULIB_WCSPBRK=0;
25988  GNULIB_WCSSTR=0;
25989  GNULIB_WCSTOK=0;
25990  GNULIB_WCSWIDTH=0;
25991  GNULIB_WCSFTIME=0;
25992    HAVE_BTOWC=1;
25993  HAVE_MBSINIT=1;
25994  HAVE_MBRTOWC=1;
25995  HAVE_MBRLEN=1;
25996  HAVE_MBSRTOWCS=1;
25997  HAVE_MBSNRTOWCS=1;
25998  HAVE_WCRTOMB=1;
25999  HAVE_WCSRTOMBS=1;
26000  HAVE_WCSNRTOMBS=1;
26001  HAVE_WMEMCHR=1;
26002  HAVE_WMEMCMP=1;
26003  HAVE_WMEMCPY=1;
26004  HAVE_WMEMMOVE=1;
26005  HAVE_WMEMSET=1;
26006  HAVE_WCSLEN=1;
26007  HAVE_WCSNLEN=1;
26008  HAVE_WCSCPY=1;
26009  HAVE_WCPCPY=1;
26010  HAVE_WCSNCPY=1;
26011  HAVE_WCPNCPY=1;
26012  HAVE_WCSCAT=1;
26013  HAVE_WCSNCAT=1;
26014  HAVE_WCSCMP=1;
26015  HAVE_WCSNCMP=1;
26016  HAVE_WCSCASECMP=1;
26017  HAVE_WCSNCASECMP=1;
26018  HAVE_WCSCOLL=1;
26019  HAVE_WCSXFRM=1;
26020  HAVE_WCSDUP=1;
26021  HAVE_WCSCHR=1;
26022  HAVE_WCSRCHR=1;
26023  HAVE_WCSCSPN=1;
26024  HAVE_WCSSPN=1;
26025  HAVE_WCSPBRK=1;
26026  HAVE_WCSSTR=1;
26027  HAVE_WCSTOK=1;
26028  HAVE_WCSWIDTH=1;
26029  HAVE_WCSFTIME=1;
26030  HAVE_DECL_WCTOB=1;
26031  HAVE_DECL_WCWIDTH=1;
26032  REPLACE_MBSTATE_T=0;
26033  REPLACE_BTOWC=0;
26034  REPLACE_WCTOB=0;
26035  REPLACE_MBSINIT=0;
26036  REPLACE_MBRTOWC=0;
26037  REPLACE_MBRLEN=0;
26038  REPLACE_MBSRTOWCS=0;
26039  REPLACE_MBSNRTOWCS=0;
26040  REPLACE_WCRTOMB=0;
26041  REPLACE_WCSRTOMBS=0;
26042  REPLACE_WCSNRTOMBS=0;
26043  REPLACE_WCWIDTH=0;
26044  REPLACE_WCSWIDTH=0;
26045  REPLACE_WCSFTIME=0;
26046  REPLACE_WCSTOK=0;
26047
26048
26049            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
26050$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
26051if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
26052  $as_echo_n "(cached) " >&6
26053else
26054  gl_cv_header_wchar_h_correct_inline=yes
26055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056/* end confdefs.h.  */
26057
26058       #define wcstod renamed_wcstod
26059/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26060   <wchar.h>.
26061   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26062   included before <wchar.h>.  */
26063#include <stddef.h>
26064#include <stdio.h>
26065#include <time.h>
26066#include <wchar.h>
26067extern int zero (void);
26068int main () { return zero(); }
26069
26070_ACEOF
26071                              save_ac_compile="$ac_compile"
26072     ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
26073     if echo '#include "conftest.c"' >conftest1.c &&
26074        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26075  (eval $ac_compile) 2>&5
26076  ac_status=$?
26077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26078  test $ac_status = 0; }; then
26079       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26080/* end confdefs.h.  */
26081
26082         #define wcstod renamed_wcstod
26083/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26084   <wchar.h>.
26085   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26086   included before <wchar.h>.  */
26087#include <stddef.h>
26088#include <stdio.h>
26089#include <time.h>
26090#include <wchar.h>
26091int zero (void) { return 0; }
26092
26093_ACEOF
26094              ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
26095       if echo '#include "conftest.c"' >conftest2.c &&
26096          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26097  (eval $ac_compile) 2>&5
26098  ac_status=$?
26099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26100  test $ac_status = 0; }; then
26101         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
26102           :
26103         else
26104           gl_cv_header_wchar_h_correct_inline=no
26105         fi
26106       fi
26107     fi
26108     ac_compile="$save_ac_compile"
26109     rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
26110
26111fi
26112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
26113$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
26114  if test $gl_cv_header_wchar_h_correct_inline = no; then
26115    as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
26116This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
26117C99 mode. You have four options:
26118  - Add the flag -fgnu89-inline to CC and reconfigure, or
26119  - Fix your include files, using parts of
26120    <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
26121  - Use a gcc version older than 4.3, or
26122  - Don't use the flags -std=c99 or -std=gnu99.
26123Configuration aborted." "$LINENO" 5
26124  fi
26125
26126
26127
26128
26129
26130  if test $ac_cv_header_crtdefs_h = yes; then
26131    HAVE_CRTDEFS_H=1
26132  else
26133    HAVE_CRTDEFS_H=0
26134  fi
26135
26136
26137
26138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
26139$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
26140if ${am_cv_langinfo_codeset+:} false; then :
26141  $as_echo_n "(cached) " >&6
26142else
26143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26144/* end confdefs.h.  */
26145#include <langinfo.h>
26146int
26147main ()
26148{
26149char* cs = nl_langinfo(CODESET); return !cs;
26150  ;
26151  return 0;
26152}
26153_ACEOF
26154if ac_fn_c_try_link "$LINENO"; then :
26155  am_cv_langinfo_codeset=yes
26156else
26157  am_cv_langinfo_codeset=no
26158fi
26159rm -f core conftest.err conftest.$ac_objext \
26160    conftest$ac_exeext conftest.$ac_ext
26161
26162fi
26163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
26164$as_echo "$am_cv_langinfo_codeset" >&6; }
26165  if test $am_cv_langinfo_codeset = yes; then
26166
26167$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
26168
26169  fi
26170
26171
26172  GNULIB_ISBLANK=0;
26173    HAVE_ISBLANK=1;
26174
26175
26176
26177
26178
26179
26180
26181
26182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
26183$as_echo_n "checking if environ is properly declared... " >&6; }
26184if ${gt_cv_var_environ_declaration+:} false; then :
26185  $as_echo_n "(cached) " >&6
26186else
26187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26188/* end confdefs.h.  */
26189#if HAVE_UNISTD_H
26190     #include <unistd.h>
26191     #endif
26192     /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
26193     #include <stdlib.h>
26194
26195            extern struct { int foo; } environ;
26196int
26197main ()
26198{
26199environ.foo = 1;
26200  ;
26201  return 0;
26202}
26203_ACEOF
26204if ac_fn_c_try_compile "$LINENO"; then :
26205  gt_cv_var_environ_declaration=no
26206else
26207  gt_cv_var_environ_declaration=yes
26208fi
26209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210fi
26211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
26212$as_echo "$gt_cv_var_environ_declaration" >&6; }
26213  if test $gt_cv_var_environ_declaration = yes; then
26214
26215$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
26216
26217  fi
26218
26219
26220  if test $gt_cv_var_environ_declaration != yes; then
26221    HAVE_DECL_ENVIRON=0
26222  fi
26223
26224
26225
26226
26227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
26228$as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
26229if ${gl_cv_func_ungetc_works+:} false; then :
26230  $as_echo_n "(cached) " >&6
26231else
26232  if test "$cross_compiling" = yes; then :
26233  case "$host_os" in
26234                          # Guess yes on glibc systems.
26235           *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
26236                          # Guess yes on musl systems.
26237           *-musl*)       gl_cv_func_ungetc_works="guessing yes" ;;
26238                          # Guess yes on bionic systems.
26239           *-android*)    gl_cv_func_ungetc_works="guessing yes" ;;
26240                          # Guess yes on native Windows.
26241           mingw*)        gl_cv_func_ungetc_works="guessing yes" ;;
26242                          # If we don't know, obey --enable-cross-guesses.
26243           *)             gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;;
26244         esac
26245
26246else
26247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248/* end confdefs.h.  */
26249
26250#include <stdio.h>
26251
26252int
26253main ()
26254{
26255FILE *f;
26256           if (!(f = fopen ("conftest.tmp", "w+")))
26257             return 1;
26258           if (fputs ("abc", f) < 0)
26259             { fclose (f); return 2; }
26260           rewind (f);
26261           if (fgetc (f) != 'a')
26262             { fclose (f); return 3; }
26263           if (fgetc (f) != 'b')
26264             { fclose (f); return 4; }
26265           if (ungetc ('d', f) != 'd')
26266             { fclose (f); return 5; }
26267           if (ftell (f) != 1)
26268             { fclose (f); return 6; }
26269           if (fgetc (f) != 'd')
26270             { fclose (f); return 7; }
26271           if (ftell (f) != 2)
26272             { fclose (f); return 8; }
26273           if (fseek (f, 0, SEEK_CUR) != 0)
26274             { fclose (f); return 9; }
26275           if (ftell (f) != 2)
26276             { fclose (f); return 10; }
26277           if (fgetc (f) != 'c')
26278             { fclose (f); return 11; }
26279           fclose (f);
26280           remove ("conftest.tmp");
26281  ;
26282  return 0;
26283}
26284_ACEOF
26285if ac_fn_c_try_run "$LINENO"; then :
26286  gl_cv_func_ungetc_works=yes
26287else
26288  gl_cv_func_ungetc_works=no
26289fi
26290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26291  conftest.$ac_objext conftest.beam conftest.$ac_ext
26292fi
26293
26294
26295fi
26296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
26297$as_echo "$gl_cv_func_ungetc_works" >&6; }
26298  case "$gl_cv_func_ungetc_works" in
26299    *yes) ;;
26300    *)
26301
26302$as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
26303
26304      ;;
26305  esac
26306
26307
26308
26309
26310
26311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
26312$as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
26313if ${gl_cv_func_getcwd_null+:} false; then :
26314  $as_echo_n "(cached) " >&6
26315else
26316  if test "$cross_compiling" = yes; then :
26317  case "$host_os" in
26318                           # Guess yes on glibc systems.
26319            *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";;
26320                           # Guess yes on musl systems.
26321            *-musl*)       gl_cv_func_getcwd_null="guessing yes";;
26322                           # Guess yes on Cygwin.
26323            cygwin*)       gl_cv_func_getcwd_null="guessing yes";;
26324                           # If we don't know, obey --enable-cross-guesses.
26325            *)             gl_cv_func_getcwd_null="$gl_cross_guess_normal";;
26326          esac
26327
26328else
26329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26330/* end confdefs.h.  */
26331
26332#	 include <stdlib.h>
26333#        if HAVE_UNISTD_H
26334#         include <unistd.h>
26335#        else /* on Windows with MSVC */
26336#         include <direct.h>
26337#        endif
26338#        ifndef getcwd
26339         char *getcwd ();
26340#        endif
26341
26342int
26343main ()
26344{
26345
26346#if defined _WIN32 && ! defined __CYGWIN__
26347/* mingw cwd does not start with '/', but getcwd does allocate.
26348   However, mingw fails to honor non-zero size.  */
26349#else
26350           if (chdir ("/") != 0)
26351             return 1;
26352           else
26353             {
26354               char *f = getcwd (NULL, 0);
26355               if (! f)
26356                 return 2;
26357               if (f[0] != '/')
26358                 { free (f); return 3; }
26359               if (f[1] != '\0')
26360                 { free (f); return 4; }
26361               free (f);
26362               return 0;
26363             }
26364#endif
26365
26366  ;
26367  return 0;
26368}
26369_ACEOF
26370if ac_fn_c_try_run "$LINENO"; then :
26371  gl_cv_func_getcwd_null=yes
26372else
26373  gl_cv_func_getcwd_null=no
26374fi
26375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26376  conftest.$ac_objext conftest.beam conftest.$ac_ext
26377fi
26378
26379fi
26380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
26381$as_echo "$gl_cv_func_getcwd_null" >&6; }
26382
26383
26384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
26385$as_echo_n "checking for getcwd with POSIX signature... " >&6; }
26386if ${gl_cv_func_getcwd_posix_signature+:} false; then :
26387  $as_echo_n "(cached) " >&6
26388else
26389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26390/* end confdefs.h.  */
26391#include <unistd.h>
26392int
26393main ()
26394{
26395extern
26396           #ifdef __cplusplus
26397           "C"
26398           #endif
26399           char *getcwd (char *, size_t);
26400
26401  ;
26402  return 0;
26403}
26404
26405_ACEOF
26406if ac_fn_c_try_compile "$LINENO"; then :
26407  gl_cv_func_getcwd_posix_signature=yes
26408else
26409  gl_cv_func_getcwd_posix_signature=no
26410fi
26411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26412
26413fi
26414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
26415$as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
26416
26417ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26418if test "x$ac_cv_type_off_t" = xyes; then :
26419
26420else
26421
26422cat >>confdefs.h <<_ACEOF
26423#define off_t long int
26424_ACEOF
26425
26426fi
26427
26428
26429  for ac_header in inttypes.h
26430do :
26431  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
26432if test "x$ac_cv_header_inttypes_h" = xyes; then :
26433  cat >>confdefs.h <<_ACEOF
26434#define HAVE_INTTYPES_H 1
26435_ACEOF
26436
26437fi
26438
26439done
26440
26441  if test $ac_cv_header_inttypes_h = yes; then
26442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
26443$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
26444if ${gt_cv_inttypes_pri_broken+:} false; then :
26445  $as_echo_n "(cached) " >&6
26446else
26447
26448        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26449/* end confdefs.h.  */
26450
26451#include <inttypes.h>
26452#ifdef PRId32
26453char *p = PRId32;
26454#endif
26455
26456int
26457main ()
26458{
26459
26460  ;
26461  return 0;
26462}
26463_ACEOF
26464if ac_fn_c_try_compile "$LINENO"; then :
26465  gt_cv_inttypes_pri_broken=no
26466else
26467  gt_cv_inttypes_pri_broken=yes
26468fi
26469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26470
26471fi
26472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
26473$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
26474  fi
26475  if test "$gt_cv_inttypes_pri_broken" = yes; then
26476
26477cat >>confdefs.h <<_ACEOF
26478#define PRI_MACROS_BROKEN 1
26479_ACEOF
26480
26481    PRI_MACROS_BROKEN=1
26482  else
26483    PRI_MACROS_BROKEN=0
26484  fi
26485
26486
26487
26488
26489
26490  GNULIB_NL_LANGINFO=0;
26491    HAVE_NL_LANGINFO=1;
26492  REPLACE_NL_LANGINFO=0;
26493
26494
26495
26496
26497  GNULIB_LOCALECONV=0;
26498  GNULIB_SETLOCALE=0;
26499  GNULIB_SETLOCALE_NULL=0;
26500  GNULIB_DUPLOCALE=0;
26501  GNULIB_LOCALENAME=0;
26502    HAVE_NEWLOCALE=1;
26503  HAVE_DUPLOCALE=1;
26504  HAVE_FREELOCALE=1;
26505  REPLACE_LOCALECONV=0;
26506  REPLACE_SETLOCALE=0;
26507  REPLACE_NEWLOCALE=0;
26508  REPLACE_DUPLOCALE=0;
26509  REPLACE_FREELOCALE=0;
26510  REPLACE_STRUCT_LCONV=0;
26511
26512
26513
26514
26515
26516
26517        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
26518$as_echo_n "checking whether locale.h defines locale_t... " >&6; }
26519if ${gl_cv_header_locale_has_locale_t+:} false; then :
26520  $as_echo_n "(cached) " >&6
26521else
26522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26523/* end confdefs.h.  */
26524#include <locale.h>
26525            locale_t x;
26526int
26527main ()
26528{
26529
26530  ;
26531  return 0;
26532}
26533_ACEOF
26534if ac_fn_c_try_compile "$LINENO"; then :
26535  gl_cv_header_locale_has_locale_t=yes
26536else
26537  gl_cv_header_locale_has_locale_t=no
26538fi
26539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26540
26541fi
26542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
26543$as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
26544
26545
26546  if test $ac_cv_header_xlocale_h = yes; then
26547    HAVE_XLOCALE_H=1
26548    if test $gl_cv_header_locale_has_locale_t = yes; then
26549      gl_cv_header_locale_h_needs_xlocale_h=no
26550    else
26551      gl_cv_header_locale_h_needs_xlocale_h=yes
26552    fi
26553    HAVE_LOCALE_T=1
26554  else
26555    HAVE_XLOCALE_H=0
26556    gl_cv_header_locale_h_needs_xlocale_h=no
26557    if test $gl_cv_header_locale_has_locale_t = yes; then
26558      HAVE_LOCALE_T=1
26559    else
26560      HAVE_LOCALE_T=0
26561    fi
26562  fi
26563
26564
26565
26566
26567
26568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
26569$as_echo_n "checking for LC_MESSAGES... " >&6; }
26570if ${gt_cv_val_LC_MESSAGES+:} false; then :
26571  $as_echo_n "(cached) " >&6
26572else
26573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26574/* end confdefs.h.  */
26575#include <locale.h>
26576int
26577main ()
26578{
26579return LC_MESSAGES
26580  ;
26581  return 0;
26582}
26583_ACEOF
26584if ac_fn_c_try_link "$LINENO"; then :
26585  gt_cv_val_LC_MESSAGES=yes
26586else
26587  gt_cv_val_LC_MESSAGES=no
26588fi
26589rm -f core conftest.err conftest.$ac_objext \
26590    conftest$ac_exeext conftest.$ac_ext
26591fi
26592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
26593$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
26594  if test $gt_cv_val_LC_MESSAGES = yes; then
26595
26596$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
26597
26598  fi
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613          if test $ac_cv_func_uselocale = yes; then
26614
26615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5
26616$as_echo_n "checking whether uselocale works... " >&6; }
26617if ${gt_cv_func_uselocale_works+:} false; then :
26618  $as_echo_n "(cached) " >&6
26619else
26620  if test "$cross_compiling" = yes; then :
26621  # Guess no on AIX and z/OS, yes otherwise.
26622          case "$host_os" in
26623            aix* | openedition*) gt_cv_func_uselocale_works="guessing no" ;;
26624            *)                   gt_cv_func_uselocale_works="guessing yes" ;;
26625          esac
26626
26627else
26628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26629/* end confdefs.h.  */
26630
26631#include <locale.h>
26632#if HAVE_XLOCALE_H
26633# include <xlocale.h>
26634#endif
26635locale_t loc1;
26636int main ()
26637{
26638  uselocale (NULL);
26639  setlocale (LC_ALL, "en_US.UTF-8");
26640  return 0;
26641}
26642_ACEOF
26643if ac_fn_c_try_run "$LINENO"; then :
26644  gt_cv_func_uselocale_works=yes
26645else
26646  gt_cv_func_uselocale_works=no
26647fi
26648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26649  conftest.$ac_objext conftest.beam conftest.$ac_ext
26650fi
26651
26652
26653fi
26654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5
26655$as_echo "$gt_cv_func_uselocale_works" >&6; }
26656  else
26657    gt_cv_func_uselocale_works=no
26658  fi
26659  case "$gt_cv_func_uselocale_works" in
26660    *yes)
26661
26662$as_echo "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h
26663
26664      ;;
26665  esac
26666
26667
26668                            case "$gt_cv_func_uselocale_works" in
26669    *yes)
26670
26671      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5
26672$as_echo_n "checking for fake locale system (OpenBSD)... " >&6; }
26673if ${gt_cv_locale_fake+:} false; then :
26674  $as_echo_n "(cached) " >&6
26675else
26676  if test "$cross_compiling" = yes; then :
26677              case "$host_os" in
26678              openbsd*) gt_cv_locale_fake="guessing yes" ;;
26679              *)        gt_cv_locale_fake="guessing no" ;;
26680            esac
26681
26682else
26683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26684/* end confdefs.h.  */
26685
26686#include <locale.h>
26687#if HAVE_XLOCALE_H
26688# include <xlocale.h>
26689#endif
26690int main ()
26691{
26692  locale_t loc1, loc2;
26693  if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1;
26694  if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1;
26695  loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0);
26696  loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0);
26697  return !(loc1 == loc2);
26698}
26699_ACEOF
26700if ac_fn_c_try_run "$LINENO"; then :
26701  gt_cv_locale_fake=yes
26702else
26703  gt_cv_locale_fake=no
26704fi
26705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26706  conftest.$ac_objext conftest.beam conftest.$ac_ext
26707fi
26708
26709
26710fi
26711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5
26712$as_echo "$gt_cv_locale_fake" >&6; }
26713      ;;
26714    *) gt_cv_locale_fake=no ;;
26715  esac
26716  case "$gt_cv_locale_fake" in
26717    *yes)
26718
26719$as_echo "#define HAVE_FAKE_LOCALES 1" >>confdefs.h
26720
26721      ;;
26722  esac
26723
26724  case "$gt_cv_func_uselocale_works" in
26725    *yes)
26726      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5
26727$as_echo_n "checking for Solaris 11.4 locale system... " >&6; }
26728if ${gt_cv_locale_solaris114+:} false; then :
26729  $as_echo_n "(cached) " >&6
26730else
26731  case "$host_os" in
26732           solaris*)
26733                                                                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26734/* end confdefs.h.  */
26735
26736                  #include <locale.h>
26737                  struct _LC_locale_t *x;
26738                  locale_t y;
26739
26740int
26741main ()
26742{
26743*y = x;
26744  ;
26745  return 0;
26746}
26747_ACEOF
26748if ac_fn_c_try_compile "$LINENO"; then :
26749  gt_cv_locale_solaris114=yes
26750else
26751  gt_cv_locale_solaris114=no
26752fi
26753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26754             ;;
26755           *) gt_cv_locale_solaris114=no ;;
26756         esac
26757
26758fi
26759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5
26760$as_echo "$gt_cv_locale_solaris114" >&6; }
26761      ;;
26762    *) gt_cv_locale_solaris114=no ;;
26763  esac
26764  if test $gt_cv_locale_solaris114 = yes; then
26765
26766$as_echo "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h
26767
26768  fi
26769
26770        case "$gt_cv_func_uselocale_works" in
26771    *yes)
26772      for ac_func in getlocalename_l
26773do :
26774  ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
26775if test "x$ac_cv_func_getlocalename_l" = xyes; then :
26776  cat >>confdefs.h <<_ACEOF
26777#define HAVE_GETLOCALENAME_L 1
26778_ACEOF
26779
26780fi
26781done
26782
26783      ;;
26784  esac
26785
26786            gt_nameless_locales=no
26787  case "$host_os" in
26788        aix*)
26789      gt_nameless_locales=yes
26790
26791$as_echo "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h
26792
26793      ;;
26794  esac
26795
26796
26797
26798
26799
26800
26801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
26802$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
26803if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
26804  $as_echo_n "(cached) " >&6
26805else
26806  rm -f conftest.sym conftest.file
26807     echo >conftest.file
26808     if test "$cross_compiling" = yes; then :
26809  case "$host_os" in
26810          linux-* | linux)
26811            # Guess yes on Linux systems.
26812            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
26813          *-gnu* | gnu*)
26814            # Guess yes on glibc systems.
26815            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
26816          mingw*)
26817            # Guess no on native Windows.
26818            gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
26819          *)
26820            # If we don't know, obey --enable-cross-guesses.
26821            gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
26822        esac
26823
26824else
26825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26826/* end confdefs.h.  */
26827$ac_includes_default
26828int
26829main ()
26830{
26831struct stat sbuf;
26832            if (symlink ("conftest.file", "conftest.sym") != 0)
26833              return 1;
26834            /* Linux will dereference the symlink and fail, as required by
26835               POSIX.  That is better in the sense that it means we will not
26836               have to compile and use the lstat wrapper.  */
26837            return lstat ("conftest.sym/", &sbuf) == 0;
26838
26839  ;
26840  return 0;
26841}
26842_ACEOF
26843if ac_fn_c_try_run "$LINENO"; then :
26844  gl_cv_func_lstat_dereferences_slashed_symlink=yes
26845else
26846  gl_cv_func_lstat_dereferences_slashed_symlink=no
26847fi
26848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26849  conftest.$ac_objext conftest.beam conftest.$ac_ext
26850fi
26851
26852     rm -f conftest.sym conftest.file
26853
26854fi
26855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
26856$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26857  case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
26858    *yes)
26859
26860cat >>confdefs.h <<_ACEOF
26861#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26862_ACEOF
26863
26864      ;;
26865  esac
26866
26867
26868  GNULIB_PSELECT=0;
26869  GNULIB_SELECT=0;
26870    HAVE_PSELECT=1;
26871  REPLACE_PSELECT=0;
26872  REPLACE_SELECT=0;
26873
26874
26875
26876
26877
26878
26879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26880$as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26881if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
26882  $as_echo_n "(cached) " >&6
26883else
26884
26885                                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26886/* end confdefs.h.  */
26887#include <sys/select.h>
26888int
26889main ()
26890{
26891struct timeval b;
26892  ;
26893  return 0;
26894}
26895_ACEOF
26896if ac_fn_c_try_compile "$LINENO"; then :
26897  gl_cv_header_sys_select_h_selfcontained=yes
26898else
26899  gl_cv_header_sys_select_h_selfcontained=no
26900fi
26901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26902                        if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26903        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26904/* end confdefs.h.  */
26905#include <sys/select.h>
26906int
26907main ()
26908{
26909int memset; int bzero;
26910  ;
26911  return 0;
26912}
26913
26914_ACEOF
26915if ac_fn_c_try_compile "$LINENO"; then :
26916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26917/* end confdefs.h.  */
26918#include <sys/select.h>
26919int
26920main ()
26921{
26922
26923                  #undef memset
26924                  #define memset nonexistent_memset
26925                  extern
26926                  #ifdef __cplusplus
26927                  "C"
26928                  #endif
26929                  void *memset (void *, int, unsigned long);
26930                  #undef bzero
26931                  #define bzero nonexistent_bzero
26932                  extern
26933                  #ifdef __cplusplus
26934                  "C"
26935                  #endif
26936                  void bzero (void *, unsigned long);
26937                  fd_set fds;
26938                  FD_ZERO (&fds);
26939
26940  ;
26941  return 0;
26942}
26943
26944_ACEOF
26945if ac_fn_c_try_link "$LINENO"; then :
26946
26947else
26948  gl_cv_header_sys_select_h_selfcontained=no
26949fi
26950rm -f core conftest.err conftest.$ac_objext \
26951    conftest$ac_exeext conftest.$ac_ext
26952
26953fi
26954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26955      fi
26956
26957fi
26958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26959$as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969     if test $gl_cv_have_include_next = yes; then
26970       gl_cv_next_sys_select_h='<'sys/select.h'>'
26971     else
26972       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26973$as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26974if ${gl_cv_next_sys_select_h+:} false; then :
26975  $as_echo_n "(cached) " >&6
26976else
26977
26978             if test $ac_cv_header_sys_select_h = yes; then
26979
26980
26981
26982
26983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26984/* end confdefs.h.  */
26985#include <sys/select.h>
26986_ACEOF
26987                case "$host_os" in
26988    aix*) gl_absname_cpp="$ac_cpp -C" ;;
26989    *)    gl_absname_cpp="$ac_cpp" ;;
26990  esac
26991
26992  case "$host_os" in
26993    mingw*)
26994                                          gl_dirsep_regex='[/\\]'
26995      ;;
26996    *)
26997      gl_dirsep_regex='\/'
26998      ;;
26999  esac
27000      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27001  gl_header_literal_regex=`echo 'sys/select.h' \
27002                           | sed -e "$gl_make_literal_regex_sed"`
27003  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27004      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27005      s|^/[^/]|//&|
27006      p
27007      q
27008    }'
27009
27010        gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27011  sed -n "$gl_absolute_header_sed"`
27012
27013           gl_header=$gl_cv_absolute_sys_select_h
27014           gl_cv_next_sys_select_h='"'$gl_header'"'
27015          else
27016               gl_cv_next_sys_select_h='<'sys/select.h'>'
27017             fi
27018
27019
27020fi
27021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27022$as_echo "$gl_cv_next_sys_select_h" >&6; }
27023     fi
27024     NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27025
27026     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27027       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27028       gl_next_as_first_directive='<'sys/select.h'>'
27029     else
27030       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27031       gl_next_as_first_directive=$gl_cv_next_sys_select_h
27032     fi
27033     NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27034
27035
27036
27037
27038  if test $ac_cv_header_sys_select_h = yes; then
27039    HAVE_SYS_SELECT_H=1
27040  else
27041    HAVE_SYS_SELECT_H=0
27042  fi
27043
27044
27045
27046
27047
27048  if test $ac_cv_header_sys_socket_h != yes; then
27049                    for ac_header in winsock2.h
27050do :
27051  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27052if test "x$ac_cv_header_winsock2_h" = xyes; then :
27053  cat >>confdefs.h <<_ACEOF
27054#define HAVE_WINSOCK2_H 1
27055_ACEOF
27056
27057fi
27058
27059done
27060
27061  fi
27062  if test "$ac_cv_header_winsock2_h" = yes; then
27063    HAVE_WINSOCK2_H=1
27064    UNISTD_H_HAVE_WINSOCK2_H=1
27065    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27066  else
27067    HAVE_WINSOCK2_H=0
27068  fi
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080  if test "$ac_cv_header_winsock2_h" = yes; then
27081    REPLACE_SELECT=1
27082  else
27083
27084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
27085$as_echo_n "checking whether select supports a 0 argument... " >&6; }
27086if ${gl_cv_func_select_supports0+:} false; then :
27087  $as_echo_n "(cached) " >&6
27088else
27089
27090        if test "$cross_compiling" = yes; then :
27091
27092           case "$host_os" in
27093                       # Guess no on Interix.
27094             interix*) gl_cv_func_select_supports0="guessing no";;
27095                       # Guess yes otherwise.
27096             *)        gl_cv_func_select_supports0="guessing yes";;
27097           esac
27098
27099else
27100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101/* end confdefs.h.  */
27102
27103#include <sys/types.h>
27104#include <sys/time.h>
27105#if HAVE_SYS_SELECT_H
27106#include <sys/select.h>
27107#endif
27108int main ()
27109{
27110  struct timeval timeout;
27111  timeout.tv_sec = 0;
27112  timeout.tv_usec = 5;
27113  return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
27114}
27115_ACEOF
27116if ac_fn_c_try_run "$LINENO"; then :
27117  gl_cv_func_select_supports0=yes
27118else
27119  gl_cv_func_select_supports0=no
27120fi
27121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27122  conftest.$ac_objext conftest.beam conftest.$ac_ext
27123fi
27124
27125
27126fi
27127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
27128$as_echo "$gl_cv_func_select_supports0" >&6; }
27129    case "$gl_cv_func_select_supports0" in
27130      *yes) ;;
27131      *) REPLACE_SELECT=1 ;;
27132    esac
27133
27134        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
27135$as_echo_n "checking whether select detects invalid fds... " >&6; }
27136if ${gl_cv_func_select_detects_ebadf+:} false; then :
27137  $as_echo_n "(cached) " >&6
27138else
27139
27140        if test "$cross_compiling" = yes; then :
27141
27142           case "$host_os" in
27143                             # Guess yes on Linux systems.
27144            linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
27145                             # Guess yes on glibc systems.
27146            *-gnu* | gnu*)   gl_cv_func_select_detects_ebadf="guessing yes" ;;
27147                             # If we don't know, obey --enable-cross-guesses.
27148            *)               gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
27149           esac
27150
27151else
27152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27153/* end confdefs.h.  */
27154
27155#include <sys/types.h>
27156#include <sys/time.h>
27157#if HAVE_SYS_SELECT_H
27158# include <sys/select.h>
27159#endif
27160#include <unistd.h>
27161#include <errno.h>
27162
27163int
27164main ()
27165{
27166
27167  fd_set set;
27168  dup2(0, 16);
27169  FD_ZERO(&set);
27170  FD_SET(16, &set);
27171  close(16);
27172  struct timeval timeout;
27173  timeout.tv_sec = 0;
27174  timeout.tv_usec = 5;
27175  return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
27176
27177  ;
27178  return 0;
27179}
27180_ACEOF
27181if ac_fn_c_try_run "$LINENO"; then :
27182  gl_cv_func_select_detects_ebadf=yes
27183else
27184  gl_cv_func_select_detects_ebadf=no
27185fi
27186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27187  conftest.$ac_objext conftest.beam conftest.$ac_ext
27188fi
27189
27190
27191fi
27192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
27193$as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
27194    case $gl_cv_func_select_detects_ebadf in
27195      *yes) ;;
27196      *) REPLACE_SELECT=1 ;;
27197    esac
27198  fi
27199
27200    LIB_SELECT="$LIBSOCKET"
27201  if test $REPLACE_SELECT = 1; then
27202    case "$host_os" in
27203      mingw*)
27204                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27205/* end confdefs.h.  */
27206
27207#define WIN32_LEAN_AND_MEAN
27208#include <windows.h>
27209int
27210main ()
27211{
27212  MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
27213  return 0;
27214}
27215_ACEOF
27216if ac_fn_c_try_link "$LINENO"; then :
27217
27218else
27219  LIB_SELECT="$LIB_SELECT -luser32"
27220fi
27221rm -f core conftest.err conftest.$ac_objext \
27222    conftest$ac_exeext conftest.$ac_ext
27223        ;;
27224    esac
27225  fi
27226
27227
27228ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
27229if test "x$ac_cv_have_decl_alarm" = xyes; then :
27230  ac_have_decl=1
27231else
27232  ac_have_decl=0
27233fi
27234
27235cat >>confdefs.h <<_ACEOF
27236#define HAVE_DECL_ALARM $ac_have_decl
27237_ACEOF
27238
27239
27240     REPLACE_STRERROR_0=0
27241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
27242$as_echo_n "checking whether strerror(0) succeeds... " >&6; }
27243if ${gl_cv_func_strerror_0_works+:} false; then :
27244  $as_echo_n "(cached) " >&6
27245else
27246  if test "$cross_compiling" = yes; then :
27247  case "$host_os" in
27248                        # Guess yes on glibc systems.
27249         *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
27250                        # Guess yes on musl systems.
27251         *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
27252                        # Guess yes on native Windows.
27253         mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
27254                        # If we don't know, obey --enable-cross-guesses.
27255         *)             gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
27256       esac
27257
27258else
27259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27260/* end confdefs.h.  */
27261#include <string.h>
27262           #include <errno.h>
27263
27264int
27265main ()
27266{
27267int result = 0;
27268           char *str;
27269           errno = 0;
27270           str = strerror (0);
27271           if (!*str) result |= 1;
27272           if (errno) result |= 2;
27273           if (strstr (str, "nknown") || strstr (str, "ndefined"))
27274             result |= 4;
27275           return result;
27276  ;
27277  return 0;
27278}
27279_ACEOF
27280if ac_fn_c_try_run "$LINENO"; then :
27281  gl_cv_func_strerror_0_works=yes
27282else
27283  gl_cv_func_strerror_0_works=no
27284fi
27285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27286  conftest.$ac_objext conftest.beam conftest.$ac_ext
27287fi
27288
27289
27290fi
27291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
27292$as_echo "$gl_cv_func_strerror_0_works" >&6; }
27293  case "$gl_cv_func_strerror_0_works" in
27294    *yes) ;;
27295    *)
27296      REPLACE_STRERROR_0=1
27297
27298$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
27299
27300      ;;
27301  esac
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312  if test $ac_cv_func_strerror_r = yes; then
27313    if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27314                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
27315$as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
27316if ${gl_cv_func_strerror_r_posix_signature+:} false; then :
27317  $as_echo_n "(cached) " >&6
27318else
27319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27320/* end confdefs.h.  */
27321#include <string.h>
27322                int strerror_r (int, char *, size_t);
27323
27324int
27325main ()
27326{
27327
27328  ;
27329  return 0;
27330}
27331_ACEOF
27332if ac_fn_c_try_compile "$LINENO"; then :
27333  gl_cv_func_strerror_r_posix_signature=yes
27334else
27335  gl_cv_func_strerror_r_posix_signature=no
27336fi
27337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27338
27339fi
27340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
27341$as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
27342      if test $gl_cv_func_strerror_r_posix_signature = yes; then
27343                                                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
27344$as_echo_n "checking whether strerror_r works... " >&6; }
27345if ${gl_cv_func_strerror_r_works+:} false; then :
27346  $as_echo_n "(cached) " >&6
27347else
27348  if test "$cross_compiling" = yes; then :
27349
27350              case "$host_os" in
27351                       # Guess no on AIX.
27352                aix*)  gl_cv_func_strerror_r_works="guessing no";;
27353                       # Guess no on HP-UX.
27354                hpux*) gl_cv_func_strerror_r_works="guessing no";;
27355                       # Guess no on BSD variants.
27356                *bsd*)  gl_cv_func_strerror_r_works="guessing no";;
27357                       # Guess yes otherwise.
27358                *)     gl_cv_func_strerror_r_works="guessing yes";;
27359              esac
27360
27361else
27362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27363/* end confdefs.h.  */
27364#include <errno.h>
27365                  #include <string.h>
27366
27367int
27368main ()
27369{
27370int result = 0;
27371                  char buf[79];
27372                  if (strerror_r (EACCES, buf, 0) < 0)
27373                    result |= 1;
27374                  errno = 0;
27375                  if (strerror_r (EACCES, buf, sizeof buf) != 0)
27376                    result |= 2;
27377                  strcpy (buf, "Unknown");
27378                  if (strerror_r (0, buf, sizeof buf) != 0)
27379                    result |= 4;
27380                  if (errno)
27381                    result |= 8;
27382                  if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
27383                    result |= 0x10;
27384                  errno = 0;
27385                  *buf = 0;
27386                  if (strerror_r (-3, buf, sizeof buf) < 0)
27387                    result |= 0x20;
27388                  if (errno)
27389                    result |= 0x40;
27390                  if (!*buf)
27391                    result |= 0x80;
27392                  return result;
27393
27394  ;
27395  return 0;
27396}
27397_ACEOF
27398if ac_fn_c_try_run "$LINENO"; then :
27399  gl_cv_func_strerror_r_works=yes
27400else
27401  gl_cv_func_strerror_r_works=no
27402fi
27403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27404  conftest.$ac_objext conftest.beam conftest.$ac_ext
27405fi
27406
27407
27408fi
27409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
27410$as_echo "$gl_cv_func_strerror_r_works" >&6; }
27411      else
27412
27413                        if test $ac_cv_func___xpg_strerror_r = yes; then
27414          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
27415$as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
27416if ${gl_cv_func_strerror_r_works+:} false; then :
27417  $as_echo_n "(cached) " >&6
27418else
27419  if test "$cross_compiling" = yes; then :
27420                                  gl_cv_func_strerror_r_works="$gl_cross_guess_normal"
27421
27422else
27423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27424/* end confdefs.h.  */
27425#include <errno.h>
27426                    #include <string.h>
27427                    extern
27428                    #ifdef __cplusplus
27429                    "C"
27430                    #endif
27431                    int __xpg_strerror_r(int, char *, size_t);
27432
27433int
27434main ()
27435{
27436int result = 0;
27437                    char buf[256] = "^";
27438                    char copy[256];
27439                    char *str = strerror (-1);
27440                    strcpy (copy, str);
27441                    if (__xpg_strerror_r (-2, buf, 1) == 0)
27442                      result |= 1;
27443                    if (*buf)
27444                      result |= 2;
27445                    __xpg_strerror_r (-2, buf, 256);
27446                    if (strcmp (str, copy))
27447                      result |= 4;
27448                    return result;
27449
27450  ;
27451  return 0;
27452}
27453_ACEOF
27454if ac_fn_c_try_run "$LINENO"; then :
27455  gl_cv_func_strerror_r_works=yes
27456else
27457  gl_cv_func_strerror_r_works=no
27458fi
27459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27460  conftest.$ac_objext conftest.beam conftest.$ac_ext
27461fi
27462
27463
27464fi
27465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
27466$as_echo "$gl_cv_func_strerror_r_works" >&6; }
27467        fi
27468      fi
27469    fi
27470  fi
27471
27472ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
27473if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
27474  ac_have_decl=1
27475else
27476  ac_have_decl=0
27477fi
27478
27479cat >>confdefs.h <<_ACEOF
27480#define HAVE_DECL_STRERROR_R $ac_have_decl
27481_ACEOF
27482
27483
27484
27485
27486
27487
27488
27489
27490  if test $ac_cv_have_decl_strerror_r = no; then
27491    HAVE_DECL_STRERROR_R=0
27492  fi
27493
27494  if test $ac_cv_func_strerror_r = yes; then
27495    if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27496      if test $gl_cv_func_strerror_r_posix_signature = yes; then
27497        case "$gl_cv_func_strerror_r_works" in
27498                    *no) REPLACE_STRERROR_R=1 ;;
27499        esac
27500      else
27501                REPLACE_STRERROR_R=1
27502      fi
27503    else
27504                  REPLACE_STRERROR_R=1
27505    fi
27506  fi
27507
27508
27509
27510
27511  GNULIB_PTHREAD_THREAD=0;
27512  GNULIB_PTHREAD_ONCE=0;
27513  GNULIB_PTHREAD_MUTEX=0;
27514  GNULIB_PTHREAD_RWLOCK=0;
27515  GNULIB_PTHREAD_COND=0;
27516  GNULIB_PTHREAD_TSS=0;
27517  GNULIB_PTHREAD_SPIN=0;
27518  GNULIB_PTHREAD_MUTEX_TIMEDLOCK=0;
27519    HAVE_PTHREAD_T=1;
27520  HAVE_PTHREAD_SPINLOCK_T=1;
27521  HAVE_PTHREAD_CREATE_DETACHED=1;
27522  HAVE_PTHREAD_MUTEX_RECURSIVE=1;
27523  HAVE_PTHREAD_MUTEX_ROBUST=1;
27524  HAVE_PTHREAD_PROCESS_SHARED=1;
27525  HAVE_PTHREAD_CREATE=1;
27526  HAVE_PTHREAD_ATTR_INIT=1;
27527  HAVE_PTHREAD_ATTR_GETDETACHSTATE=1;
27528  HAVE_PTHREAD_ATTR_SETDETACHSTATE=1;
27529  HAVE_PTHREAD_ATTR_DESTROY=1;
27530  HAVE_PTHREAD_SELF=1;
27531  HAVE_PTHREAD_EQUAL=1;
27532  HAVE_PTHREAD_DETACH=1;
27533  HAVE_PTHREAD_JOIN=1;
27534  HAVE_PTHREAD_EXIT=1;
27535  HAVE_PTHREAD_ONCE=1;
27536  HAVE_PTHREAD_MUTEX_INIT=1;
27537  HAVE_PTHREAD_MUTEXATTR_INIT=1;
27538  HAVE_PTHREAD_MUTEXATTR_GETTYPE=1;
27539  HAVE_PTHREAD_MUTEXATTR_SETTYPE=1;
27540  HAVE_PTHREAD_MUTEXATTR_GETROBUST=1;
27541  HAVE_PTHREAD_MUTEXATTR_SETROBUST=1;
27542  HAVE_PTHREAD_MUTEXATTR_DESTROY=1;
27543  HAVE_PTHREAD_MUTEX_LOCK=1;
27544  HAVE_PTHREAD_MUTEX_TRYLOCK=1;
27545  HAVE_PTHREAD_MUTEX_TIMEDLOCK=1;
27546  HAVE_PTHREAD_MUTEX_UNLOCK=1;
27547  HAVE_PTHREAD_MUTEX_DESTROY=1;
27548  HAVE_PTHREAD_RWLOCK_INIT=1;
27549  HAVE_PTHREAD_RWLOCKATTR_INIT=1;
27550  HAVE_PTHREAD_RWLOCKATTR_DESTROY=1;
27551  HAVE_PTHREAD_RWLOCK_RDLOCK=1;
27552  HAVE_PTHREAD_RWLOCK_WRLOCK=1;
27553  HAVE_PTHREAD_RWLOCK_TRYRDLOCK=1;
27554  HAVE_PTHREAD_RWLOCK_TRYWRLOCK=1;
27555  HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK=1;
27556  HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK=1;
27557  HAVE_PTHREAD_RWLOCK_UNLOCK=1;
27558  HAVE_PTHREAD_RWLOCK_DESTROY=1;
27559  HAVE_PTHREAD_COND_INIT=1;
27560  HAVE_PTHREAD_CONDATTR_INIT=1;
27561  HAVE_PTHREAD_CONDATTR_DESTROY=1;
27562  HAVE_PTHREAD_COND_WAIT=1;
27563  HAVE_PTHREAD_COND_TIMEDWAIT=1;
27564  HAVE_PTHREAD_COND_SIGNAL=1;
27565  HAVE_PTHREAD_COND_BROADCAST=1;
27566  HAVE_PTHREAD_COND_DESTROY=1;
27567  HAVE_PTHREAD_KEY_CREATE=1;
27568  HAVE_PTHREAD_SETSPECIFIC=1;
27569  HAVE_PTHREAD_GETSPECIFIC=1;
27570  HAVE_PTHREAD_KEY_DELETE=1;
27571  HAVE_PTHREAD_SPIN_INIT=1;
27572  HAVE_PTHREAD_SPIN_LOCK=1;
27573  HAVE_PTHREAD_SPIN_TRYLOCK=1;
27574  HAVE_PTHREAD_SPIN_UNLOCK=1;
27575  HAVE_PTHREAD_SPIN_DESTROY=1;
27576  REPLACE_PTHREAD_CREATE=0;
27577  REPLACE_PTHREAD_ATTR_INIT=0;
27578  REPLACE_PTHREAD_ATTR_GETDETACHSTATE=0;
27579  REPLACE_PTHREAD_ATTR_SETDETACHSTATE=0;
27580  REPLACE_PTHREAD_ATTR_DESTROY=0;
27581  REPLACE_PTHREAD_SELF=0;
27582  REPLACE_PTHREAD_EQUAL=0;
27583  REPLACE_PTHREAD_DETACH=0;
27584  REPLACE_PTHREAD_JOIN=0;
27585  REPLACE_PTHREAD_EXIT=0;
27586  REPLACE_PTHREAD_ONCE=0;
27587  REPLACE_PTHREAD_MUTEX_INIT=0;
27588  REPLACE_PTHREAD_MUTEXATTR_INIT=0;
27589  REPLACE_PTHREAD_MUTEXATTR_GETTYPE=0;
27590  REPLACE_PTHREAD_MUTEXATTR_SETTYPE=0;
27591  REPLACE_PTHREAD_MUTEXATTR_GETROBUST=0;
27592  REPLACE_PTHREAD_MUTEXATTR_SETROBUST=0;
27593  REPLACE_PTHREAD_MUTEXATTR_DESTROY=0;
27594  REPLACE_PTHREAD_MUTEX_LOCK=0;
27595  REPLACE_PTHREAD_MUTEX_TRYLOCK=0;
27596  REPLACE_PTHREAD_MUTEX_TIMEDLOCK=0;
27597  REPLACE_PTHREAD_MUTEX_UNLOCK=0;
27598  REPLACE_PTHREAD_MUTEX_DESTROY=0;
27599  REPLACE_PTHREAD_RWLOCK_INIT=0;
27600  REPLACE_PTHREAD_RWLOCKATTR_INIT=0;
27601  REPLACE_PTHREAD_RWLOCKATTR_DESTROY=0;
27602  REPLACE_PTHREAD_RWLOCK_RDLOCK=0;
27603  REPLACE_PTHREAD_RWLOCK_WRLOCK=0;
27604  REPLACE_PTHREAD_RWLOCK_TRYRDLOCK=0;
27605  REPLACE_PTHREAD_RWLOCK_TRYWRLOCK=0;
27606  REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK=0;
27607  REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK=0;
27608  REPLACE_PTHREAD_RWLOCK_UNLOCK=0;
27609  REPLACE_PTHREAD_RWLOCK_DESTROY=0;
27610  REPLACE_PTHREAD_COND_INIT=0;
27611  REPLACE_PTHREAD_CONDATTR_INIT=0;
27612  REPLACE_PTHREAD_CONDATTR_DESTROY=0;
27613  REPLACE_PTHREAD_COND_WAIT=0;
27614  REPLACE_PTHREAD_COND_TIMEDWAIT=0;
27615  REPLACE_PTHREAD_COND_SIGNAL=0;
27616  REPLACE_PTHREAD_COND_BROADCAST=0;
27617  REPLACE_PTHREAD_COND_DESTROY=0;
27618  REPLACE_PTHREAD_KEY_CREATE=0;
27619  REPLACE_PTHREAD_SETSPECIFIC=0;
27620  REPLACE_PTHREAD_GETSPECIFIC=0;
27621  REPLACE_PTHREAD_KEY_DELETE=0;
27622  REPLACE_PTHREAD_SPIN_INIT=0;
27623  REPLACE_PTHREAD_SPIN_LOCK=0;
27624  REPLACE_PTHREAD_SPIN_TRYLOCK=0;
27625  REPLACE_PTHREAD_SPIN_UNLOCK=0;
27626  REPLACE_PTHREAD_SPIN_DESTROY=0;
27627
27628
27629
27630
27631
27632  if test -z "$gl_pthreadlib_body_done"; then
27633    gl_pthread_api=no
27634    LIBPTHREAD=
27635    LIBPMULTITHREAD=
27636    # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
27637    # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
27638    ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
27639if test "x$ac_cv_header_pthread_h" = xyes; then :
27640  gl_have_pthread_h=yes
27641else
27642  gl_have_pthread_h=no
27643fi
27644
27645
27646    if test "$gl_have_pthread_h" = yes; then
27647      # Other possible tests:
27648      #   -lpthreads (FSU threads, PCthreads)
27649      #   -lgthreads
27650      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
27651      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
27652      # the second one only in libpthread, and lock.c needs it.
27653      #
27654      # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
27655      # needs -pthread for some reason.  See:
27656      # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
27657      save_LIBS=$LIBS
27658      for gl_pthread in '' '-pthread'; do
27659        LIBS="$LIBS $gl_pthread"
27660        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27661/* end confdefs.h.  */
27662#include <pthread.h>
27663               pthread_mutex_t m;
27664               pthread_mutexattr_t ma;
27665
27666int
27667main ()
27668{
27669pthread_mutex_lock (&m);
27670               pthread_mutexattr_init (&ma);
27671  ;
27672  return 0;
27673}
27674_ACEOF
27675if ac_fn_c_try_link "$LINENO"; then :
27676  gl_pthread_api=yes
27677           LIBPTHREAD=$gl_pthread
27678           LIBPMULTITHREAD=$gl_pthread
27679fi
27680rm -f core conftest.err conftest.$ac_objext \
27681    conftest$ac_exeext conftest.$ac_ext
27682        LIBS=$save_LIBS
27683        test $gl_pthread_api = yes && break
27684      done
27685
27686      # Test for libpthread by looking for pthread_kill. (Not pthread_self,
27687      # since it is defined as a macro on OSF/1.)
27688      if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
27689        # The program links fine without libpthread. But it may actually
27690        # need to link with libpthread in order to create multiple threads.
27691        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
27692$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
27693if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
27694  $as_echo_n "(cached) " >&6
27695else
27696  ac_check_lib_save_LIBS=$LIBS
27697LIBS="-lpthread  $LIBS"
27698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27699/* end confdefs.h.  */
27700
27701/* Override any GCC internal prototype to avoid an error.
27702   Use char because int might match the return type of a GCC
27703   builtin and then its argument prototype would still apply.  */
27704#ifdef __cplusplus
27705extern "C"
27706#endif
27707char pthread_kill ();
27708int
27709main ()
27710{
27711return pthread_kill ();
27712  ;
27713  return 0;
27714}
27715_ACEOF
27716if ac_fn_c_try_link "$LINENO"; then :
27717  ac_cv_lib_pthread_pthread_kill=yes
27718else
27719  ac_cv_lib_pthread_pthread_kill=no
27720fi
27721rm -f core conftest.err conftest.$ac_objext \
27722    conftest$ac_exeext conftest.$ac_ext
27723LIBS=$ac_check_lib_save_LIBS
27724fi
27725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
27726$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
27727if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
27728  LIBPMULTITHREAD=-lpthread
27729           # On Solaris and HP-UX, most pthread functions exist also in libc.
27730           # Therefore pthread_in_use() needs to actually try to create a
27731           # thread: pthread_create from libc will fail, whereas
27732           # pthread_create will actually create a thread.
27733           # On Solaris 10 or newer, this test is no longer needed, because
27734           # libc contains the fully functional pthread functions.
27735           case "$host_os" in
27736             solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
27737
27738$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
27739
27740           esac
27741
27742fi
27743
27744      elif test $gl_pthread_api != yes; then
27745        # Some library is needed. Try libpthread and libc_r.
27746        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
27747$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
27748if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
27749  $as_echo_n "(cached) " >&6
27750else
27751  ac_check_lib_save_LIBS=$LIBS
27752LIBS="-lpthread  $LIBS"
27753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27754/* end confdefs.h.  */
27755
27756/* Override any GCC internal prototype to avoid an error.
27757   Use char because int might match the return type of a GCC
27758   builtin and then its argument prototype would still apply.  */
27759#ifdef __cplusplus
27760extern "C"
27761#endif
27762char pthread_kill ();
27763int
27764main ()
27765{
27766return pthread_kill ();
27767  ;
27768  return 0;
27769}
27770_ACEOF
27771if ac_fn_c_try_link "$LINENO"; then :
27772  ac_cv_lib_pthread_pthread_kill=yes
27773else
27774  ac_cv_lib_pthread_pthread_kill=no
27775fi
27776rm -f core conftest.err conftest.$ac_objext \
27777    conftest$ac_exeext conftest.$ac_ext
27778LIBS=$ac_check_lib_save_LIBS
27779fi
27780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
27781$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
27782if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
27783  gl_pthread_api=yes
27784           LIBPTHREAD=-lpthread
27785           LIBPMULTITHREAD=-lpthread
27786fi
27787
27788        if test $gl_pthread_api != yes; then
27789          # For FreeBSD 4.
27790          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
27791$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
27792if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
27793  $as_echo_n "(cached) " >&6
27794else
27795  ac_check_lib_save_LIBS=$LIBS
27796LIBS="-lc_r  $LIBS"
27797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27798/* end confdefs.h.  */
27799
27800/* Override any GCC internal prototype to avoid an error.
27801   Use char because int might match the return type of a GCC
27802   builtin and then its argument prototype would still apply.  */
27803#ifdef __cplusplus
27804extern "C"
27805#endif
27806char pthread_kill ();
27807int
27808main ()
27809{
27810return pthread_kill ();
27811  ;
27812  return 0;
27813}
27814_ACEOF
27815if ac_fn_c_try_link "$LINENO"; then :
27816  ac_cv_lib_c_r_pthread_kill=yes
27817else
27818  ac_cv_lib_c_r_pthread_kill=no
27819fi
27820rm -f core conftest.err conftest.$ac_objext \
27821    conftest$ac_exeext conftest.$ac_ext
27822LIBS=$ac_check_lib_save_LIBS
27823fi
27824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
27825$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
27826if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
27827  gl_pthread_api=yes
27828             LIBPTHREAD=-lc_r
27829             LIBPMULTITHREAD=-lc_r
27830fi
27831
27832        fi
27833      fi
27834    fi
27835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
27836$as_echo_n "checking whether POSIX threads API is available... " >&6; }
27837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
27838$as_echo "$gl_pthread_api" >&6; }
27839
27840
27841    if test $gl_pthread_api = yes; then
27842
27843$as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
27844
27845    fi
27846
27847        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27848/* end confdefs.h.  */
27849#include <sched.h>
27850int
27851main ()
27852{
27853sched_yield ();
27854  ;
27855  return 0;
27856}
27857_ACEOF
27858if ac_fn_c_try_link "$LINENO"; then :
27859  LIB_SCHED_YIELD=
27860
27861else
27862         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
27863$as_echo_n "checking for sched_yield in -lrt... " >&6; }
27864if ${ac_cv_lib_rt_sched_yield+:} false; then :
27865  $as_echo_n "(cached) " >&6
27866else
27867  ac_check_lib_save_LIBS=$LIBS
27868LIBS="-lrt  $LIBS"
27869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27870/* end confdefs.h.  */
27871
27872/* Override any GCC internal prototype to avoid an error.
27873   Use char because int might match the return type of a GCC
27874   builtin and then its argument prototype would still apply.  */
27875#ifdef __cplusplus
27876extern "C"
27877#endif
27878char sched_yield ();
27879int
27880main ()
27881{
27882return sched_yield ();
27883  ;
27884  return 0;
27885}
27886_ACEOF
27887if ac_fn_c_try_link "$LINENO"; then :
27888  ac_cv_lib_rt_sched_yield=yes
27889else
27890  ac_cv_lib_rt_sched_yield=no
27891fi
27892rm -f core conftest.err conftest.$ac_objext \
27893    conftest$ac_exeext conftest.$ac_ext
27894LIBS=$ac_check_lib_save_LIBS
27895fi
27896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
27897$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
27898if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
27899  LIB_SCHED_YIELD=-lrt
27900else
27901            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
27902$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
27903if ${ac_cv_lib_posix4_sched_yield+:} false; then :
27904  $as_echo_n "(cached) " >&6
27905else
27906  ac_check_lib_save_LIBS=$LIBS
27907LIBS="-lposix4  $LIBS"
27908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27909/* end confdefs.h.  */
27910
27911/* Override any GCC internal prototype to avoid an error.
27912   Use char because int might match the return type of a GCC
27913   builtin and then its argument prototype would still apply.  */
27914#ifdef __cplusplus
27915extern "C"
27916#endif
27917char sched_yield ();
27918int
27919main ()
27920{
27921return sched_yield ();
27922  ;
27923  return 0;
27924}
27925_ACEOF
27926if ac_fn_c_try_link "$LINENO"; then :
27927  ac_cv_lib_posix4_sched_yield=yes
27928else
27929  ac_cv_lib_posix4_sched_yield=no
27930fi
27931rm -f core conftest.err conftest.$ac_objext \
27932    conftest$ac_exeext conftest.$ac_ext
27933LIBS=$ac_check_lib_save_LIBS
27934fi
27935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
27936$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
27937if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
27938  LIB_SCHED_YIELD=-lposix4
27939fi
27940
27941fi
27942
27943
27944fi
27945rm -f core conftest.err conftest.$ac_objext \
27946    conftest$ac_exeext conftest.$ac_ext
27947
27948
27949    gl_pthreadlib_body_done=done
27950  fi
27951
27952
27953
27954
27955
27956  GNULIB_PTHREAD_SIGMASK=0;
27957  GNULIB_RAISE=0;
27958  GNULIB_SIGNAL_H_SIGPIPE=0;
27959  GNULIB_SIGPROCMASK=0;
27960  GNULIB_SIGACTION=0;
27961    HAVE_POSIX_SIGNALBLOCKING=1;
27962  HAVE_PTHREAD_SIGMASK=1;
27963  HAVE_RAISE=1;
27964  HAVE_SIGSET_T=1;
27965  HAVE_SIGINFO_T=1;
27966  HAVE_SIGACTION=1;
27967  HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
27968
27969  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
27970
27971  HAVE_SIGHANDLER_T=1;
27972  REPLACE_PTHREAD_SIGMASK=0;
27973  REPLACE_RAISE=0;
27974
27975
27976
27977
27978  ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
27979      #include <signal.h>
27980      /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
27981      #include <sys/types.h>
27982
27983"
27984if test "x$ac_cv_type_sigset_t" = xyes; then :
27985
27986cat >>confdefs.h <<_ACEOF
27987#define HAVE_SIGSET_T 1
27988_ACEOF
27989
27990gl_cv_type_sigset_t=yes
27991else
27992  gl_cv_type_sigset_t=no
27993fi
27994
27995  if test $gl_cv_type_sigset_t != yes; then
27996    HAVE_SIGSET_T=0
27997  fi
27998
27999
28000  GNULIB_SCHED_YIELD=0;
28001    HAVE_SCHED_YIELD=1;
28002  REPLACE_SCHED_YIELD=0;
28003
28004
28005
28006
28007
28008ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
28009if test "x$ac_cv_have_decl_setenv" = xyes; then :
28010  ac_have_decl=1
28011else
28012  ac_have_decl=0
28013fi
28014
28015cat >>confdefs.h <<_ACEOF
28016#define HAVE_DECL_SETENV $ac_have_decl
28017_ACEOF
28018
28019
28020
28021
28022
28023
28024  if test $ac_cv_have_decl_setenv = no; then
28025    HAVE_DECL_SETENV=0
28026  fi
28027
28028
28029
28030
28031
28032  for ac_header in search.h
28033do :
28034  ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
28035if test "x$ac_cv_header_search_h" = xyes; then :
28036  cat >>confdefs.h <<_ACEOF
28037#define HAVE_SEARCH_H 1
28038_ACEOF
28039
28040fi
28041
28042done
28043
28044  for ac_func in tsearch
28045do :
28046  ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
28047if test "x$ac_cv_func_tsearch" = xyes; then :
28048  cat >>confdefs.h <<_ACEOF
28049#define HAVE_TSEARCH 1
28050_ACEOF
28051
28052fi
28053done
28054
28055
28056
28057
28058
28059
28060
28061
28062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
28063$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
28064if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
28065  $as_echo_n "(cached) " >&6
28066else
28067  case "$host_os" in
28068       # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
28069       *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
28070         gl_cv_func_setlocale_null_all_mtsafe=no ;;
28071       # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
28072       *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
28073         gl_cv_func_setlocale_null_all_mtsafe=yes ;;
28074       # If we don't know, obey --enable-cross-guesses.
28075       *)
28076         gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
28077     esac
28078
28079fi
28080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
28081$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
28082    case "$host_os" in
28083    mingw*) ;;
28084    *)
28085      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
28086        gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
28087      fi
28088      ;;
28089  esac
28090  case "$gl_cv_func_setlocale_null_all_mtsafe" in
28091    *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
28092    *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
28093  esac
28094
28095cat >>confdefs.h <<_ACEOF
28096#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
28097_ACEOF
28098
28099
28100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
28101$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
28102if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
28103  $as_echo_n "(cached) " >&6
28104else
28105  case "$host_os" in
28106       # Guess no on OpenBSD, AIX.
28107       openbsd* | aix*)
28108         gl_cv_func_setlocale_null_one_mtsafe=no ;;
28109       # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
28110       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
28111         gl_cv_func_setlocale_null_one_mtsafe=yes ;;
28112       # If we don't know, obey --enable-cross-guesses.
28113       *)
28114         gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
28115     esac
28116
28117fi
28118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
28119$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
28120    case "$host_os" in
28121    mingw*) ;;
28122    *)
28123      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
28124        gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
28125      fi
28126      ;;
28127  esac
28128  case "$gl_cv_func_setlocale_null_one_mtsafe" in
28129    *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
28130    *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
28131  esac
28132
28133cat >>confdefs.h <<_ACEOF
28134#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
28135_ACEOF
28136
28137
28138    if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
28139    case "$host_os" in
28140      mingw*) LIB_SETLOCALE_NULL= ;;
28141      *)
28142
28143
28144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
28145$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
28146if ${gl_cv_have_weak+:} false; then :
28147  $as_echo_n "(cached) " >&6
28148else
28149  gl_cv_have_weak=no
28150          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28151/* end confdefs.h.  */
28152extern void xyzzy ();
28153#pragma weak xyzzy
28154int
28155main ()
28156{
28157xyzzy();
28158  ;
28159  return 0;
28160}
28161_ACEOF
28162if ac_fn_c_try_link "$LINENO"; then :
28163  gl_cv_have_weak=maybe
28164fi
28165rm -f core conftest.err conftest.$ac_objext \
28166    conftest$ac_exeext conftest.$ac_ext
28167     if test $gl_cv_have_weak = maybe; then
28168                     if test "$cross_compiling" = yes; then :
28169                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28170/* end confdefs.h.  */
28171#ifdef __ELF__
28172             Extensible Linking Format
28173             #endif
28174
28175_ACEOF
28176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28177  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
28178  gl_cv_have_weak="guessing yes"
28179else
28180  gl_cv_have_weak="guessing no"
28181fi
28182rm -f conftest*
28183
28184
28185else
28186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28187/* end confdefs.h.  */
28188
28189#include <stdio.h>
28190#pragma weak fputs
28191int main ()
28192{
28193  return (fputs == NULL);
28194}
28195_ACEOF
28196if ac_fn_c_try_run "$LINENO"; then :
28197  gl_cv_have_weak=yes
28198else
28199  gl_cv_have_weak=no
28200fi
28201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28202  conftest.$ac_objext conftest.beam conftest.$ac_ext
28203fi
28204
28205     fi
28206          case " $LDFLAGS " in
28207       *" -static "*) gl_cv_have_weak=no ;;
28208     esac
28209                    case "$gl_cv_have_weak" in
28210       *yes)
28211         case "$host_os" in
28212           freebsd* | dragonfly*)
28213             : > conftest1.c
28214             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
28215             cat <<EOF > conftest2.c
28216#include <pthread.h>
28217#pragma weak pthread_mutexattr_gettype
28218int main ()
28219{
28220  return (pthread_mutexattr_gettype != NULL);
28221}
28222EOF
28223             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
28224               || gl_cv_have_weak=no
28225             rm -f conftest1.c libempty.so conftest2.c conftest
28226             ;;
28227         esac
28228         ;;
28229     esac
28230
28231fi
28232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
28233$as_echo "$gl_cv_have_weak" >&6; }
28234  case "$gl_cv_have_weak" in
28235    *yes)
28236
28237$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
28238
28239      ;;
28240  esac
28241
28242        case "$gl_cv_have_weak" in
28243          *yes) LIB_SETLOCALE_NULL= ;;
28244          *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
28245        esac
28246        ;;
28247    esac
28248  else
28249    LIB_SETLOCALE_NULL=
28250  fi
28251
28252
28253
28254
28255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
28256$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
28257if ${ac_cv_type_uid_t+:} false; then :
28258  $as_echo_n "(cached) " >&6
28259else
28260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28261/* end confdefs.h.  */
28262#include <sys/types.h>
28263
28264_ACEOF
28265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28266  $EGREP "uid_t" >/dev/null 2>&1; then :
28267  ac_cv_type_uid_t=yes
28268else
28269  ac_cv_type_uid_t=no
28270fi
28271rm -f conftest*
28272
28273fi
28274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
28275$as_echo "$ac_cv_type_uid_t" >&6; }
28276if test $ac_cv_type_uid_t = no; then
28277
28278$as_echo "#define uid_t int" >>confdefs.h
28279
28280
28281$as_echo "#define gid_t int" >>confdefs.h
28282
28283fi
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
28298if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
28299  ac_have_decl=1
28300else
28301  ac_have_decl=0
28302fi
28303
28304cat >>confdefs.h <<_ACEOF
28305#define HAVE_DECL_UNSETENV $ac_have_decl
28306_ACEOF
28307
28308
28309
28310
28311
28312
28313   if true; then
28314  GL_COND_LIBTOOL_TRUE=
28315  GL_COND_LIBTOOL_FALSE='#'
28316else
28317  GL_COND_LIBTOOL_TRUE='#'
28318  GL_COND_LIBTOOL_FALSE=
28319fi
28320
28321  gl_cond_libtool=true
28322  gl_m4_base='m4'
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333  gl_source_base='gl'
28334LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
28335
28336
28337
28338  if test $ac_cv_func_alloca_works = no; then
28339    :
28340  fi
28341
28342  # Define an additional variable used in the Makefile substitution.
28343  if test $ac_cv_working_alloca_h = yes; then
28344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
28345$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
28346if ${gl_cv_rpl_alloca+:} false; then :
28347  $as_echo_n "(cached) " >&6
28348else
28349
28350      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28351/* end confdefs.h.  */
28352
28353#if defined __GNUC__ || defined _AIX || defined _MSC_VER
28354        Need own alloca
28355#endif
28356
28357_ACEOF
28358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28359  $EGREP "Need own alloca" >/dev/null 2>&1; then :
28360  gl_cv_rpl_alloca=yes
28361else
28362  gl_cv_rpl_alloca=no
28363fi
28364rm -f conftest*
28365
28366
28367fi
28368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
28369$as_echo "$gl_cv_rpl_alloca" >&6; }
28370    if test $gl_cv_rpl_alloca = yes; then
28371
28372$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28373
28374      ALLOCA_H=alloca.h
28375    else
28376                  ALLOCA_H=
28377    fi
28378  else
28379    ALLOCA_H=alloca.h
28380  fi
28381
28382   if test -n "$ALLOCA_H"; then
28383  GL_GENERATE_ALLOCA_H_TRUE=
28384  GL_GENERATE_ALLOCA_H_FALSE='#'
28385else
28386  GL_GENERATE_ALLOCA_H_TRUE='#'
28387  GL_GENERATE_ALLOCA_H_FALSE=
28388fi
28389
28390
28391  if test $ac_cv_working_alloca_h = yes; then
28392    HAVE_ALLOCA_H=1
28393  else
28394    HAVE_ALLOCA_H=0
28395  fi
28396
28397
28398
28399
28400
28401
28402  if test $ac_cv_header_arpa_inet_h = yes; then
28403    HAVE_ARPA_INET_H=1
28404  else
28405    HAVE_ARPA_INET_H=0
28406  fi
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417     if test $gl_cv_have_include_next = yes; then
28418       gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
28419     else
28420       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
28421$as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
28422if ${gl_cv_next_arpa_inet_h+:} false; then :
28423  $as_echo_n "(cached) " >&6
28424else
28425
28426             if test $ac_cv_header_arpa_inet_h = yes; then
28427
28428
28429
28430
28431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28432/* end confdefs.h.  */
28433#include <arpa/inet.h>
28434_ACEOF
28435                case "$host_os" in
28436    aix*) gl_absname_cpp="$ac_cpp -C" ;;
28437    *)    gl_absname_cpp="$ac_cpp" ;;
28438  esac
28439
28440  case "$host_os" in
28441    mingw*)
28442                                          gl_dirsep_regex='[/\\]'
28443      ;;
28444    *)
28445      gl_dirsep_regex='\/'
28446      ;;
28447  esac
28448      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28449  gl_header_literal_regex=`echo 'arpa/inet.h' \
28450                           | sed -e "$gl_make_literal_regex_sed"`
28451  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28452      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28453      s|^/[^/]|//&|
28454      p
28455      q
28456    }'
28457
28458        gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28459  sed -n "$gl_absolute_header_sed"`
28460
28461           gl_header=$gl_cv_absolute_arpa_inet_h
28462           gl_cv_next_arpa_inet_h='"'$gl_header'"'
28463          else
28464               gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
28465             fi
28466
28467
28468fi
28469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
28470$as_echo "$gl_cv_next_arpa_inet_h" >&6; }
28471     fi
28472     NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
28473
28474     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28475       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28476       gl_next_as_first_directive='<'arpa/inet.h'>'
28477     else
28478       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28479       gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
28480     fi
28481     NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491  if test $ac_cv_header_sys_socket_h = yes; then
28492    HAVE_WS2TCPIP_H=0
28493  else
28494    if test $ac_cv_header_ws2tcpip_h = yes; then
28495      HAVE_WS2TCPIP_H=1
28496    else
28497      HAVE_WS2TCPIP_H=0
28498    fi
28499  fi
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
28510$as_echo_n "checking for __builtin_expect... " >&6; }
28511if ${gl_cv___builtin_expect+:} false; then :
28512  $as_echo_n "(cached) " >&6
28513else
28514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28515/* end confdefs.h.  */
28516
28517         int
28518         main (int argc, char **argv)
28519         {
28520           argc = __builtin_expect (argc, 100);
28521           return argv[argc != 100][0];
28522         }
28523_ACEOF
28524if ac_fn_c_try_link "$LINENO"; then :
28525  gl_cv___builtin_expect=yes
28526else
28527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28528/* end confdefs.h.  */
28529
28530             #include <builtins.h>
28531             int
28532             main (int argc, char **argv)
28533             {
28534               argc = __builtin_expect (argc, 100);
28535               return argv[argc != 100][0];
28536             }
28537_ACEOF
28538if ac_fn_c_try_link "$LINENO"; then :
28539  gl_cv___builtin_expect="in <builtins.h>"
28540else
28541  gl_cv___builtin_expect=no
28542fi
28543rm -f core conftest.err conftest.$ac_objext \
28544    conftest$ac_exeext conftest.$ac_ext
28545fi
28546rm -f core conftest.err conftest.$ac_objext \
28547    conftest$ac_exeext conftest.$ac_ext
28548fi
28549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
28550$as_echo "$gl_cv___builtin_expect" >&6; }
28551  if test "$gl_cv___builtin_expect" = yes; then
28552    $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
28553
28554  elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
28555    $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
28556
28557  fi
28558
28559
28560
28561    for ac_header in byteswap.h
28562do :
28563  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
28564if test "x$ac_cv_header_byteswap_h" = xyes; then :
28565  cat >>confdefs.h <<_ACEOF
28566#define HAVE_BYTESWAP_H 1
28567_ACEOF
28568
28569    BYTESWAP_H=''
28570
28571else
28572
28573    BYTESWAP_H='byteswap.h'
28574
28575fi
28576
28577done
28578
28579
28580   if test -n "$BYTESWAP_H"; then
28581  GL_GENERATE_BYTESWAP_H_TRUE=
28582  GL_GENERATE_BYTESWAP_H_FALSE='#'
28583else
28584  GL_GENERATE_BYTESWAP_H_TRUE='#'
28585  GL_GENERATE_BYTESWAP_H_FALSE=
28586fi
28587
28588
28589
28590
28591$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
28592
28593
28594
28595
28596
28597
28598    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
28599      REPLACE_CLOSE=1
28600    fi
28601
28602
28603
28604
28605
28606
28607  if test $ac_cv_header_sys_socket_h != yes; then
28608                    for ac_header in winsock2.h
28609do :
28610  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28611if test "x$ac_cv_header_winsock2_h" = xyes; then :
28612  cat >>confdefs.h <<_ACEOF
28613#define HAVE_WINSOCK2_H 1
28614_ACEOF
28615
28616fi
28617
28618done
28619
28620  fi
28621  if test "$ac_cv_header_winsock2_h" = yes; then
28622    HAVE_WINSOCK2_H=1
28623    UNISTD_H_HAVE_WINSOCK2_H=1
28624    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
28625  else
28626    HAVE_WINSOCK2_H=0
28627  fi
28628
28629
28630    if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
28631                        REPLACE_CLOSE=1
28632    fi
28633
28634
28635
28636  if test $REPLACE_CLOSE = 1; then
28637
28638
28639
28640
28641
28642
28643
28644
28645  gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
28646
28647  fi
28648
28649
28650
28651
28652
28653          GNULIB_CLOSE=1
28654
28655
28656
28657
28658
28659$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
28660
28661
28662
28663
28664
28665
28666
28667
28668$as_echo "#define HAVE_DUP2 1" >>confdefs.h
28669
28670
28671  if test $HAVE_DUP2 = 1; then
28672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
28673$as_echo_n "checking whether dup2 works... " >&6; }
28674if ${gl_cv_func_dup2_works+:} false; then :
28675  $as_echo_n "(cached) " >&6
28676else
28677  if test "$cross_compiling" = yes; then :
28678  case "$host_os" in
28679           mingw*) # on this platform, dup2 always returns 0 for success
28680             gl_cv_func_dup2_works="guessing no" ;;
28681           cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
28682             gl_cv_func_dup2_works="guessing no" ;;
28683           aix* | freebsd*)
28684                   # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
28685                   # not EBADF.
28686             gl_cv_func_dup2_works="guessing no" ;;
28687           haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
28688             gl_cv_func_dup2_works="guessing no" ;;
28689           *-android*) # implemented using dup3(), which fails if oldfd == newfd
28690             gl_cv_func_dup2_works="guessing no" ;;
28691           os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
28692             gl_cv_func_dup2_works="guessing no" ;;
28693           *) gl_cv_func_dup2_works="guessing yes" ;;
28694         esac
28695else
28696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28697/* end confdefs.h.  */
28698
28699         #include <errno.h>
28700             #include <fcntl.h>
28701             #include <limits.h>
28702             #include <sys/resource.h>
28703             #include <unistd.h>
28704             #ifndef RLIM_SAVED_CUR
28705             # define RLIM_SAVED_CUR RLIM_INFINITY
28706             #endif
28707             #ifndef RLIM_SAVED_MAX
28708             # define RLIM_SAVED_MAX RLIM_INFINITY
28709             #endif
28710
28711int
28712main ()
28713{
28714int result = 0;
28715             int bad_fd = INT_MAX;
28716             struct rlimit rlim;
28717             if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
28718                 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
28719                 && rlim.rlim_cur != RLIM_INFINITY
28720                 && rlim.rlim_cur != RLIM_SAVED_MAX
28721                 && rlim.rlim_cur != RLIM_SAVED_CUR)
28722               bad_fd = rlim.rlim_cur;
28723             #ifdef FD_CLOEXEC
28724               if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
28725                 result |= 1;
28726             #endif
28727             if (dup2 (1, 1) != 1)
28728               result |= 2;
28729             #ifdef FD_CLOEXEC
28730               if (fcntl (1, F_GETFD) != FD_CLOEXEC)
28731                 result |= 4;
28732             #endif
28733             close (0);
28734             if (dup2 (0, 0) != -1)
28735               result |= 8;
28736             /* Many gnulib modules require POSIX conformance of EBADF.  */
28737             if (dup2 (2, bad_fd) == -1 && errno != EBADF)
28738               result |= 16;
28739             /* Flush out some cygwin core dumps.  */
28740             if (dup2 (2, -1) != -1 || errno != EBADF)
28741               result |= 32;
28742             dup2 (2, 255);
28743             dup2 (2, 256);
28744             /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
28745             {
28746               int fd = open (".", O_RDONLY);
28747               if (fd == -1)
28748                 result |= 64;
28749               else if (dup2 (fd, fd + 1) == -1)
28750                 result |= 128;
28751
28752               close (fd);
28753             }
28754             return result;
28755  ;
28756  return 0;
28757}
28758
28759_ACEOF
28760if ac_fn_c_try_run "$LINENO"; then :
28761  gl_cv_func_dup2_works=yes
28762else
28763  gl_cv_func_dup2_works=no
28764fi
28765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28766  conftest.$ac_objext conftest.beam conftest.$ac_ext
28767fi
28768
28769
28770fi
28771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
28772$as_echo "$gl_cv_func_dup2_works" >&6; }
28773    case "$gl_cv_func_dup2_works" in
28774      *yes) ;;
28775      *)
28776        REPLACE_DUP2=1
28777        for ac_func in setdtablesize
28778do :
28779  ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
28780if test "x$ac_cv_func_setdtablesize" = xyes; then :
28781  cat >>confdefs.h <<_ACEOF
28782#define HAVE_SETDTABLESIZE 1
28783_ACEOF
28784
28785fi
28786done
28787
28788        ;;
28789    esac
28790  fi
28791
28792
28793  if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
28794
28795
28796
28797
28798
28799
28800
28801
28802  gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
28803
28804
28805  fi
28806
28807
28808
28809
28810
28811          GNULIB_DUP2=1
28812
28813
28814
28815
28816
28817$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828  if test $ac_cv_func_explicit_bzero = no; then
28829    HAVE_EXPLICIT_BZERO=0
28830  fi
28831
28832  if test $HAVE_EXPLICIT_BZERO = 0; then
28833
28834
28835
28836
28837
28838
28839
28840
28841  gl_LIBOBJS="$gl_LIBOBJS explicit_bzero.$ac_objext"
28842
28843
28844  for ac_func in explicit_memset
28845do :
28846  ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
28847if test "x$ac_cv_func_explicit_memset" = xyes; then :
28848  cat >>confdefs.h <<_ACEOF
28849#define HAVE_EXPLICIT_MEMSET 1
28850_ACEOF
28851
28852fi
28853done
28854
28855
28856
28857  fi
28858
28859
28860
28861
28862
28863          GNULIB_EXPLICIT_BZERO=1
28864
28865
28866
28867
28868
28869$as_echo "#define GNULIB_TEST_EXPLICIT_BZERO 1" >>confdefs.h
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879  if test $ac_cv_func_fcntl = no; then
28880
28881
28882
28883  if test $ac_cv_func_fcntl = no; then
28884    HAVE_FCNTL=0
28885  else
28886    REPLACE_FCNTL=1
28887  fi
28888
28889  else
28890            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
28891$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
28892if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
28893  $as_echo_n "(cached) " >&6
28894else
28895  if test "$cross_compiling" = yes; then :
28896  case $host_os in
28897            aix* | cygwin* | haiku*)
28898               gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
28899            *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
28900          esac
28901else
28902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28903/* end confdefs.h.  */
28904#include <errno.h>
28905              #include <fcntl.h>
28906              #include <limits.h>
28907              #include <sys/resource.h>
28908              #include <unistd.h>
28909              #ifndef RLIM_SAVED_CUR
28910              # define RLIM_SAVED_CUR RLIM_INFINITY
28911              #endif
28912              #ifndef RLIM_SAVED_MAX
28913              # define RLIM_SAVED_MAX RLIM_INFINITY
28914              #endif
28915
28916int
28917main ()
28918{
28919int result = 0;
28920              int bad_fd = INT_MAX;
28921              struct rlimit rlim;
28922              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
28923                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
28924                  && rlim.rlim_cur != RLIM_INFINITY
28925                  && rlim.rlim_cur != RLIM_SAVED_MAX
28926                  && rlim.rlim_cur != RLIM_SAVED_CUR)
28927                bad_fd = rlim.rlim_cur;
28928              if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
28929              if (errno != EINVAL) result |= 2;
28930              if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
28931              if (errno != EINVAL) result |= 8;
28932              /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
28933              {
28934                int fd;
28935                fd = open (".", O_RDONLY);
28936                if (fd == -1)
28937                  result |= 16;
28938                else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
28939                  result |= 32;
28940
28941                close (fd);
28942              }
28943              return result;
28944  ;
28945  return 0;
28946}
28947_ACEOF
28948if ac_fn_c_try_run "$LINENO"; then :
28949  gl_cv_func_fcntl_f_dupfd_works=yes
28950else
28951  gl_cv_func_fcntl_f_dupfd_works=no
28952fi
28953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28954  conftest.$ac_objext conftest.beam conftest.$ac_ext
28955fi
28956
28957fi
28958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
28959$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
28960    case $gl_cv_func_fcntl_f_dupfd_works in
28961      *yes) ;;
28962      *)
28963
28964
28965  if test $ac_cv_func_fcntl = no; then
28966    HAVE_FCNTL=0
28967  else
28968    REPLACE_FCNTL=1
28969  fi
28970
28971
28972$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
28973 ;;
28974    esac
28975
28976        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
28977$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
28978if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
28979  $as_echo_n "(cached) " >&6
28980else
28981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28982/* end confdefs.h.  */
28983
28984#include <fcntl.h>
28985#ifndef F_DUPFD_CLOEXEC
28986choke me
28987#endif
28988
28989int
28990main ()
28991{
28992
28993  ;
28994  return 0;
28995}
28996_ACEOF
28997if ac_fn_c_try_compile "$LINENO"; then :
28998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28999/* end confdefs.h.  */
29000
29001#ifdef __linux__
29002/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
29003   it to support the semantics on older kernels that failed with EINVAL.  */
29004choke me
29005#endif
29006
29007int
29008main ()
29009{
29010
29011  ;
29012  return 0;
29013}
29014_ACEOF
29015if ac_fn_c_try_compile "$LINENO"; then :
29016  gl_cv_func_fcntl_f_dupfd_cloexec=yes
29017else
29018  gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
29019fi
29020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29021else
29022  gl_cv_func_fcntl_f_dupfd_cloexec=no
29023fi
29024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29025fi
29026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
29027$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
29028    if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
29029
29030
29031
29032  if test $ac_cv_func_fcntl = no; then
29033    HAVE_FCNTL=0
29034  else
29035    REPLACE_FCNTL=1
29036  fi
29037
29038          fi
29039  fi
29040
29041
29042  if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
29043
29044
29045
29046
29047
29048
29049
29050
29051  gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
29052
29053  fi
29054
29055
29056
29057
29058
29059          GNULIB_FCNTL=1
29060
29061
29062
29063
29064
29065$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080     if test $gl_cv_have_include_next = yes; then
29081       gl_cv_next_fcntl_h='<'fcntl.h'>'
29082     else
29083       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
29084$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
29085if ${gl_cv_next_fcntl_h+:} false; then :
29086  $as_echo_n "(cached) " >&6
29087else
29088
29089
29090
29091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29092/* end confdefs.h.  */
29093#include <fcntl.h>
29094_ACEOF
29095                case "$host_os" in
29096    aix*) gl_absname_cpp="$ac_cpp -C" ;;
29097    *)    gl_absname_cpp="$ac_cpp" ;;
29098  esac
29099
29100  case "$host_os" in
29101    mingw*)
29102                                          gl_dirsep_regex='[/\\]'
29103      ;;
29104    *)
29105      gl_dirsep_regex='\/'
29106      ;;
29107  esac
29108      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29109  gl_header_literal_regex=`echo 'fcntl.h' \
29110                           | sed -e "$gl_make_literal_regex_sed"`
29111  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29112      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29113      s|^/[^/]|//&|
29114      p
29115      q
29116    }'
29117
29118        gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29119  sed -n "$gl_absolute_header_sed"`
29120
29121           gl_header=$gl_cv_absolute_fcntl_h
29122           gl_cv_next_fcntl_h='"'$gl_header'"'
29123
29124
29125fi
29126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
29127$as_echo "$gl_cv_next_fcntl_h" >&6; }
29128     fi
29129     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
29130
29131     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29132       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29133       gl_next_as_first_directive='<'fcntl.h'>'
29134     else
29135       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29136       gl_next_as_first_directive=$gl_cv_next_fcntl_h
29137     fi
29138     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155  FLOAT_H=
29156  REPLACE_FLOAT_LDBL=0
29157  case "$host_os" in
29158    aix* | beos* | openbsd* | mirbsd* | irix*)
29159      FLOAT_H=float.h
29160      ;;
29161    freebsd* | dragonfly*)
29162      case "$host_cpu" in
29163        i[34567]86 )
29164          FLOAT_H=float.h
29165          ;;
29166        x86_64 )
29167          # On x86_64 systems, the C compiler may still be generating
29168          # 32-bit code.
29169          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29170/* end confdefs.h.  */
29171#if defined __LP64__ || defined __x86_64__ || defined __amd64__
29172                  int ok;
29173                 #else
29174                  error fail
29175                 #endif
29176
29177_ACEOF
29178if ac_fn_c_try_compile "$LINENO"; then :
29179
29180else
29181  FLOAT_H=float.h
29182fi
29183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29184          ;;
29185      esac
29186      ;;
29187    linux*)
29188      case "$host_cpu" in
29189        powerpc*)
29190          FLOAT_H=float.h
29191          ;;
29192      esac
29193      ;;
29194  esac
29195  case "$host_os" in
29196    aix* | freebsd* | dragonfly* | linux*)
29197      if test -n "$FLOAT_H"; then
29198        REPLACE_FLOAT_LDBL=1
29199      fi
29200      ;;
29201  esac
29202
29203    REPLACE_ITOLD=0
29204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
29205$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
29206if ${gl_cv_func_itold_works+:} false; then :
29207  $as_echo_n "(cached) " >&6
29208else
29209
29210      if test "$cross_compiling" = yes; then :
29211  case "$host" in
29212           sparc*-*-linux*)
29213             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29214/* end confdefs.h.  */
29215#if defined __LP64__ || defined __arch64__
29216                    int ok;
29217                   #else
29218                    error fail
29219                   #endif
29220
29221_ACEOF
29222if ac_fn_c_try_compile "$LINENO"; then :
29223  gl_cv_func_itold_works="guessing no"
29224else
29225  gl_cv_func_itold_works="guessing yes"
29226fi
29227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29228             ;;
29229                   # Guess yes on native Windows.
29230           mingw*) gl_cv_func_itold_works="guessing yes" ;;
29231           *)      gl_cv_func_itold_works="guessing yes" ;;
29232         esac
29233
29234else
29235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29236/* end confdefs.h.  */
29237
29238int i = -1;
29239volatile long double ld;
29240int main ()
29241{
29242  ld += i * 1.0L;
29243  if (ld > 0)
29244    return 1;
29245  return 0;
29246}
29247_ACEOF
29248if ac_fn_c_try_run "$LINENO"; then :
29249  gl_cv_func_itold_works=yes
29250else
29251  gl_cv_func_itold_works=no
29252fi
29253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29254  conftest.$ac_objext conftest.beam conftest.$ac_ext
29255fi
29256
29257
29258fi
29259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
29260$as_echo "$gl_cv_func_itold_works" >&6; }
29261  case "$gl_cv_func_itold_works" in
29262    *no)
29263      REPLACE_ITOLD=1
29264                  FLOAT_H=float.h
29265      ;;
29266  esac
29267
29268  if test -n "$FLOAT_H"; then
29269
29270
29271
29272
29273
29274
29275
29276
29277     if test $gl_cv_have_include_next = yes; then
29278       gl_cv_next_float_h='<'float.h'>'
29279     else
29280       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
29281$as_echo_n "checking absolute name of <float.h>... " >&6; }
29282if ${gl_cv_next_float_h+:} false; then :
29283  $as_echo_n "(cached) " >&6
29284else
29285
29286
29287
29288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29289/* end confdefs.h.  */
29290#include <float.h>
29291_ACEOF
29292                case "$host_os" in
29293    aix*) gl_absname_cpp="$ac_cpp -C" ;;
29294    *)    gl_absname_cpp="$ac_cpp" ;;
29295  esac
29296
29297  case "$host_os" in
29298    mingw*)
29299                                          gl_dirsep_regex='[/\\]'
29300      ;;
29301    *)
29302      gl_dirsep_regex='\/'
29303      ;;
29304  esac
29305      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29306  gl_header_literal_regex=`echo 'float.h' \
29307                           | sed -e "$gl_make_literal_regex_sed"`
29308  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29309      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29310      s|^/[^/]|//&|
29311      p
29312      q
29313    }'
29314
29315        gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29316  sed -n "$gl_absolute_header_sed"`
29317
29318           gl_header=$gl_cv_absolute_float_h
29319           gl_cv_next_float_h='"'$gl_header'"'
29320
29321
29322fi
29323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
29324$as_echo "$gl_cv_next_float_h" >&6; }
29325     fi
29326     NEXT_FLOAT_H=$gl_cv_next_float_h
29327
29328     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29329       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29330       gl_next_as_first_directive='<'float.h'>'
29331     else
29332       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29333       gl_next_as_first_directive=$gl_cv_next_float_h
29334     fi
29335     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
29336
29337
29338
29339
29340  fi
29341
29342   if test -n "$FLOAT_H"; then
29343  GL_GENERATE_FLOAT_H_TRUE=
29344  GL_GENERATE_FLOAT_H_FALSE='#'
29345else
29346  GL_GENERATE_FLOAT_H_TRUE='#'
29347  GL_GENERATE_FLOAT_H_FALSE=
29348fi
29349
29350
29351
29352  if test $REPLACE_FLOAT_LDBL = 1; then
29353
29354
29355
29356
29357
29358
29359
29360
29361  gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
29362
29363  fi
29364  if test $REPLACE_ITOLD = 1; then
29365
29366
29367
29368
29369
29370
29371
29372
29373  gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
29374
29375  fi
29376
29377
29378
29379  case "$host_os" in
29380    mingw* | pw*)
29381            REPLACE_FOPEN=1
29382            gl_cv_func_fopen_slash="guessing no"
29383      ;;
29384    *)
29385                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
29386$as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
29387if ${gl_cv_func_fopen_slash+:} false; then :
29388  $as_echo_n "(cached) " >&6
29389else
29390
29391          if test "$cross_compiling" = yes; then :
29392
29393             case "$host_os" in
29394               aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
29395                 gl_cv_func_fopen_slash="guessing no" ;;
29396               *)
29397                 gl_cv_func_fopen_slash="guessing yes" ;;
29398             esac
29399
29400else
29401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29402/* end confdefs.h.  */
29403
29404#include <stddef.h>
29405#include <stdio.h>
29406int main ()
29407{
29408  FILE *fp = fopen ("conftest.sl/", "w");
29409  int result = (fp != NULL);
29410  if (fp != NULL)
29411    fclose (fp);
29412  return result;
29413}
29414_ACEOF
29415if ac_fn_c_try_run "$LINENO"; then :
29416  gl_cv_func_fopen_slash=yes
29417else
29418  gl_cv_func_fopen_slash=no
29419fi
29420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29421  conftest.$ac_objext conftest.beam conftest.$ac_ext
29422fi
29423
29424          rm -f conftest.sl
29425
29426fi
29427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
29428$as_echo "$gl_cv_func_fopen_slash" >&6; }
29429      ;;
29430  esac
29431  case "$gl_cv_func_fopen_slash" in
29432    *no)
29433
29434$as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
29435
29436      REPLACE_FOPEN=1
29437      ;;
29438  esac
29439
29440  if test $REPLACE_FOPEN = 1; then
29441
29442
29443
29444
29445
29446
29447
29448
29449  gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
29450
29451    :
29452  fi
29453
29454
29455
29456
29457
29458          GNULIB_FOPEN=1
29459
29460
29461
29462
29463
29464$as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
29465
29466
29467
29468
29469
29470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5
29471$as_echo_n "checking whether fopen supports the mode character 'x'... " >&6; }
29472if ${gl_cv_func_fopen_mode_x+:} false; then :
29473  $as_echo_n "(cached) " >&6
29474else
29475  rm -f conftest.x
29476     if test "$cross_compiling" = yes; then :
29477  case "$host_os" in
29478          # Guess yes on glibc and musl systems.
29479          linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
29480            gl_cv_func_fopen_mode_x="guessing yes" ;;
29481          # If we don't know, obey --enable-cross-guesses.
29482          *)
29483            gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;;
29484        esac
29485
29486else
29487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29488/* end confdefs.h.  */
29489
29490#include <stdio.h>
29491#include <errno.h>
29492int main ()
29493{
29494  FILE *fp;
29495  fp = fopen ("conftest.x", "w");
29496  fclose (fp);
29497  fp = fopen ("conftest.x", "wx");
29498  if (fp != NULL)
29499    /* 'x' ignored */
29500    return 1;
29501  else if (errno == EEXIST)
29502    return 0;
29503  else
29504    /* 'x' rejected */
29505    return 2;
29506}
29507_ACEOF
29508if ac_fn_c_try_run "$LINENO"; then :
29509  gl_cv_func_fopen_mode_x=yes
29510else
29511  gl_cv_func_fopen_mode_x=no
29512fi
29513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29514  conftest.$ac_objext conftest.beam conftest.$ac_ext
29515fi
29516
29517     rm -f conftest.x
29518
29519fi
29520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5
29521$as_echo "$gl_cv_func_fopen_mode_x" >&6; }
29522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5
29523$as_echo_n "checking whether fopen supports the mode character 'e'... " >&6; }
29524if ${gl_cv_func_fopen_mode_e+:} false; then :
29525  $as_echo_n "(cached) " >&6
29526else
29527  echo foo > conftest.x
29528     if test "$cross_compiling" = yes; then :
29529  case "$host_os" in
29530          # Guess yes on glibc and musl systems.
29531          linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
29532            gl_cv_func_fopen_mode_e="guessing yes" ;;
29533          # Guess no on native Windows.
29534          mingw*)
29535            gl_cv_func_fopen_mode_e="guessing no" ;;
29536          # If we don't know, obey --enable-cross-guesses.
29537          *)
29538            gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;;
29539        esac
29540
29541else
29542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29543/* end confdefs.h.  */
29544
29545#include <stdio.h>
29546#include <errno.h>
29547#include <fcntl.h>
29548int main ()
29549{
29550  FILE *fp = fopen ("conftest.x", "re");
29551  if (fp != NULL)
29552    {
29553      if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC)
29554        return 0;
29555      else
29556        /* 'e' ignored */
29557        return 1;
29558    }
29559  else
29560    /* 'e' rejected */
29561    return 2;
29562}
29563_ACEOF
29564if ac_fn_c_try_run "$LINENO"; then :
29565  gl_cv_func_fopen_mode_e=yes
29566else
29567  gl_cv_func_fopen_mode_e=no
29568fi
29569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29570  conftest.$ac_objext conftest.beam conftest.$ac_ext
29571fi
29572
29573     rm -f conftest.x
29574
29575fi
29576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5
29577$as_echo "$gl_cv_func_fopen_mode_e" >&6; }
29578  case "$gl_cv_func_fopen_mode_x" in
29579    *no) REPLACE_FOPEN=1 ;;
29580  esac
29581  case "$gl_cv_func_fopen_mode_e" in
29582    *no) REPLACE_FOPEN=1 ;;
29583  esac
29584
29585  if test $REPLACE_FOPEN = 1; then
29586
29587
29588
29589
29590
29591
29592
29593
29594  gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
29595
29596    :
29597  fi
29598
29599
29600cat >>confdefs.h <<_ACEOF
29601#define GNULIB_FOPEN_GNU 1
29602_ACEOF
29603
29604
29605
29606
29607
29608
29609  case "$host_os" in
29610    mingw* | solaris*)
29611                        REPLACE_FSTAT=1
29612      ;;
29613  esac
29614
29615
29616
29617  if test $REPLACE_FSTAT = 1; then
29618
29619
29620
29621
29622
29623
29624
29625
29626  gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
29627
29628    case "$host_os" in
29629      mingw*)
29630
29631
29632
29633
29634
29635
29636
29637
29638  gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
29639
29640        ;;
29641    esac
29642
29643
29644  :
29645
29646  fi
29647
29648
29649
29650
29651
29652          GNULIB_FSTAT=1
29653
29654
29655
29656
29657
29658$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
29659
29660
29661
29662
29663
29664
29665    if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
29666    REPLACE_FTELL=1
29667  fi
29668
29669  if test $REPLACE_FTELL = 1; then
29670
29671
29672
29673
29674
29675
29676
29677
29678  gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
29679
29680  fi
29681
29682
29683
29684
29685
29686          GNULIB_FTELL=1
29687
29688
29689
29690
29691
29692$as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705  if test $ac_cv_have_decl_ftello = no; then
29706    HAVE_DECL_FTELLO=0
29707  fi
29708
29709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
29710$as_echo_n "checking for ftello... " >&6; }
29711if ${gl_cv_func_ftello+:} false; then :
29712  $as_echo_n "(cached) " >&6
29713else
29714
29715      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29716/* end confdefs.h.  */
29717#include <stdio.h>
29718int
29719main ()
29720{
29721ftello (stdin);
29722  ;
29723  return 0;
29724}
29725_ACEOF
29726if ac_fn_c_try_link "$LINENO"; then :
29727  gl_cv_func_ftello=yes
29728else
29729  gl_cv_func_ftello=no
29730fi
29731rm -f core conftest.err conftest.$ac_objext \
29732    conftest$ac_exeext conftest.$ac_ext
29733
29734fi
29735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
29736$as_echo "$gl_cv_func_ftello" >&6; }
29737  if test $gl_cv_func_ftello = no; then
29738    HAVE_FTELLO=0
29739  else
29740    if test $WINDOWS_64_BIT_OFF_T = 1; then
29741      REPLACE_FTELLO=1
29742    fi
29743    if test $gl_cv_var_stdin_large_offset = no; then
29744      REPLACE_FTELLO=1
29745    fi
29746    if test $REPLACE_FTELLO = 0; then
29747
29748      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
29749$as_echo_n "checking whether ftello works... " >&6; }
29750if ${gl_cv_func_ftello_works+:} false; then :
29751  $as_echo_n "(cached) " >&6
29752else
29753
29754                              case "$host_os" in
29755                      # Guess no on Solaris.
29756            solaris*) gl_cv_func_ftello_works="guessing no" ;;
29757                      # Guess yes on native Windows.
29758            mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
29759                      # Guess yes otherwise.
29760            *)        gl_cv_func_ftello_works="guessing yes" ;;
29761          esac
29762          if test "$cross_compiling" = yes; then :
29763  :
29764else
29765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29766/* end confdefs.h.  */
29767
29768#include <stdio.h>
29769#include <stdlib.h>
29770#include <string.h>
29771#define TESTFILE "conftest.tmp"
29772int
29773main (void)
29774{
29775  FILE *fp;
29776
29777  /* Create a file with some contents.  */
29778  fp = fopen (TESTFILE, "w");
29779  if (fp == NULL)
29780    return 70;
29781  if (fwrite ("foogarsh", 1, 8, fp) < 8)
29782    { fclose (fp); return 71; }
29783  if (fclose (fp))
29784    return 72;
29785
29786  /* The file's contents is now "foogarsh".  */
29787
29788  /* Try writing after reading to EOF.  */
29789  fp = fopen (TESTFILE, "r+");
29790  if (fp == NULL)
29791    return 73;
29792  if (fseek (fp, -1, SEEK_END))
29793    { fclose (fp); return 74; }
29794  if (!(getc (fp) == 'h'))
29795    { fclose (fp); return 1; }
29796  if (!(getc (fp) == EOF))
29797    { fclose (fp); return 2; }
29798  if (!(ftell (fp) == 8))
29799    { fclose (fp); return 3; }
29800  if (!(ftell (fp) == 8))
29801    { fclose (fp); return 4; }
29802  if (!(putc ('!', fp) == '!'))
29803    { fclose (fp); return 5; }
29804  if (!(ftell (fp) == 9))
29805    { fclose (fp); return 6; }
29806  if (!(fclose (fp) == 0))
29807    return 7;
29808  fp = fopen (TESTFILE, "r");
29809  if (fp == NULL)
29810    return 75;
29811  {
29812    char buf[10];
29813    if (!(fread (buf, 1, 10, fp) == 9))
29814      { fclose (fp); return 10; }
29815    if (!(memcmp (buf, "foogarsh!", 9) == 0))
29816      { fclose (fp); return 11; }
29817  }
29818  if (!(fclose (fp) == 0))
29819    return 12;
29820
29821  /* The file's contents is now "foogarsh!".  */
29822
29823  return 0;
29824}
29825_ACEOF
29826if ac_fn_c_try_run "$LINENO"; then :
29827  gl_cv_func_ftello_works=yes
29828else
29829  gl_cv_func_ftello_works=no
29830fi
29831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29832  conftest.$ac_objext conftest.beam conftest.$ac_ext
29833fi
29834
29835
29836fi
29837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
29838$as_echo "$gl_cv_func_ftello_works" >&6; }
29839      case "$gl_cv_func_ftello_works" in
29840        *yes) ;;
29841        *)
29842          REPLACE_FTELLO=1
29843
29844$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
29845
29846          ;;
29847      esac
29848    fi
29849  fi
29850
29851  if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
29852
29853
29854
29855
29856
29857
29858
29859
29860  gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
29861
29862
29863      for ac_func in _ftelli64
29864do :
29865  ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
29866if test "x$ac_cv_func__ftelli64" = xyes; then :
29867  cat >>confdefs.h <<_ACEOF
29868#define HAVE__FTELLI64 1
29869_ACEOF
29870
29871fi
29872done
29873
29874
29875  fi
29876
29877
29878
29879
29880
29881          GNULIB_FTELLO=1
29882
29883
29884
29885
29886
29887$as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
29888
29889
29890
29891
29892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __func__ is available" >&5
29893$as_echo_n "checking whether __func__ is available... " >&6; }
29894if ${gl_cv_var_func+:} false; then :
29895  $as_echo_n "(cached) " >&6
29896else
29897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29898/* end confdefs.h.  */
29899
29900int
29901main ()
29902{
29903const char *str = __func__;
29904  ;
29905  return 0;
29906}
29907_ACEOF
29908if ac_fn_c_try_compile "$LINENO"; then :
29909  gl_cv_var_func=yes
29910else
29911  gl_cv_var_func=no
29912fi
29913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29914fi
29915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_func" >&5
29916$as_echo "$gl_cv_var_func" >&6; }
29917  if test "$gl_cv_var_func" != yes; then
29918
29919$as_echo "#define __func__ \"<unknown function>\"" >>confdefs.h
29920
29921  fi
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931  if test $ac_cv_func_getdelim = yes; then
29932    HAVE_GETDELIM=1
29933        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
29934$as_echo_n "checking for working getdelim function... " >&6; }
29935if ${gl_cv_func_working_getdelim+:} false; then :
29936  $as_echo_n "(cached) " >&6
29937else
29938  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29939       if test "$cross_compiling" = yes; then :
29940                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29941/* end confdefs.h.  */
29942
29943#include <features.h>
29944#ifdef __GNU_LIBRARY__
29945 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29946  Lucky GNU user
29947 #endif
29948#endif
29949
29950_ACEOF
29951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29952  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
29953  gl_cv_func_working_getdelim="guessing yes"
29954else
29955  case "$host_os" in
29956               *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
29957               *)       gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
29958             esac
29959
29960fi
29961rm -f conftest*
29962
29963
29964else
29965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29966/* end confdefs.h.  */
29967
29968#    include <stdio.h>
29969#    include <stdlib.h>
29970#    include <string.h>
29971    int main ()
29972    {
29973      FILE *in = fopen ("./conftest.data", "r");
29974      if (!in)
29975        return 1;
29976      {
29977        /* Test result for a NULL buffer and a zero size.
29978           Based on a test program from Karl Heuer.  */
29979        char *line = NULL;
29980        size_t siz = 0;
29981        int len = getdelim (&line, &siz, '\n', in);
29982        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29983          { free (line); fclose (in); return 2; }
29984        free (line);
29985      }
29986      {
29987        /* Test result for a NULL buffer and a non-zero size.
29988           This crashes on FreeBSD 8.0.  */
29989        char *line = NULL;
29990        size_t siz = (size_t)(~0) / 4;
29991        if (getdelim (&line, &siz, '\n', in) == -1)
29992          { fclose (in); return 3; }
29993        free (line);
29994      }
29995      fclose (in);
29996      return 0;
29997    }
29998
29999_ACEOF
30000if ac_fn_c_try_run "$LINENO"; then :
30001  gl_cv_func_working_getdelim=yes
30002else
30003  gl_cv_func_working_getdelim=no
30004fi
30005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30006  conftest.$ac_objext conftest.beam conftest.$ac_ext
30007fi
30008
30009
30010fi
30011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
30012$as_echo "$gl_cv_func_working_getdelim" >&6; }
30013    case "$gl_cv_func_working_getdelim" in
30014      *yes) ;;
30015      *) REPLACE_GETDELIM=1 ;;
30016    esac
30017  else
30018    HAVE_GETDELIM=0
30019  fi
30020
30021  if test $ac_cv_have_decl_getdelim = no; then
30022    HAVE_DECL_GETDELIM=0
30023  fi
30024
30025  if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
30026
30027
30028
30029
30030
30031
30032
30033
30034  gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
30035
30036
30037  for ac_func in flockfile funlockfile
30038do :
30039  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30040ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30041if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30042  cat >>confdefs.h <<_ACEOF
30043#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30044_ACEOF
30045
30046fi
30047done
30048
30049  ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
30050if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
30051  ac_have_decl=1
30052else
30053  ac_have_decl=0
30054fi
30055
30056cat >>confdefs.h <<_ACEOF
30057#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
30058_ACEOF
30059
30060
30061  fi
30062
30063
30064
30065
30066
30067          GNULIB_GETDELIM=1
30068
30069
30070
30071
30072
30073$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
30074
30075
30076
30077
30078
30079
30080
30081
30082  if test $ac_cv_func_getdtablesize = yes &&
30083     test $ac_cv_have_decl_getdtablesize = yes; then
30084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
30085$as_echo_n "checking whether getdtablesize works... " >&6; }
30086if ${gl_cv_func_getdtablesize_works+:} false; then :
30087  $as_echo_n "(cached) " >&6
30088else
30089                                                   case "$host_os" in
30090         vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
30091         *)
30092                                                       if test "$cross_compiling" = yes; then :
30093  case "$host_os" in
30094                cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
30095                  gl_cv_func_getdtablesize_works="guessing no" ;;
30096                *) gl_cv_func_getdtablesize_works="guessing yes" ;;
30097              esac
30098
30099else
30100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30101/* end confdefs.h.  */
30102
30103             #include <unistd.h>
30104int
30105main ()
30106{
30107int size = getdtablesize();
30108                if (dup2 (0, getdtablesize()) != -1)
30109                  return 1;
30110                if (size != getdtablesize())
30111                  return 2;
30112
30113  ;
30114  return 0;
30115}
30116_ACEOF
30117if ac_fn_c_try_run "$LINENO"; then :
30118  gl_cv_func_getdtablesize_works=yes
30119else
30120  gl_cv_func_getdtablesize_works=no
30121fi
30122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30123  conftest.$ac_objext conftest.beam conftest.$ac_ext
30124fi
30125
30126           ;;
30127       esac
30128
30129fi
30130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
30131$as_echo "$gl_cv_func_getdtablesize_works" >&6; }
30132    case "$gl_cv_func_getdtablesize_works" in
30133      *yes | "no (limitation)") ;;
30134      *) REPLACE_GETDTABLESIZE=1 ;;
30135    esac
30136  else
30137    HAVE_GETDTABLESIZE=0
30138  fi
30139
30140  if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
30141
30142
30143
30144
30145
30146
30147
30148
30149  gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
30150
30151    :
30152  fi
30153
30154
30155
30156
30157
30158          GNULIB_GETDTABLESIZE=1
30159
30160
30161
30162
30163
30164$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175  gl_getline_needs_run_time_check=no
30176  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
30177if test "x$ac_cv_func_getline" = xyes; then :
30178                   gl_getline_needs_run_time_check=yes
30179else
30180  am_cv_func_working_getline=no
30181fi
30182
30183  if test $gl_getline_needs_run_time_check = yes; then
30184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
30185$as_echo_n "checking for working getline function... " >&6; }
30186if ${am_cv_func_working_getline+:} false; then :
30187  $as_echo_n "(cached) " >&6
30188else
30189  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
30190       if test "$cross_compiling" = yes; then :
30191                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30192/* end confdefs.h.  */
30193
30194#include <features.h>
30195#ifdef __GNU_LIBRARY__
30196 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
30197  Lucky GNU user
30198 #endif
30199#endif
30200
30201_ACEOF
30202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30203  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
30204  am_cv_func_working_getline="guessing yes"
30205else
30206  case "$host_os" in
30207               *-musl*) am_cv_func_working_getline="guessing yes" ;;
30208               *)       am_cv_func_working_getline="$gl_cross_guess_normal" ;;
30209             esac
30210
30211fi
30212rm -f conftest*
30213
30214
30215else
30216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30217/* end confdefs.h.  */
30218
30219#    include <stdio.h>
30220#    include <stdlib.h>
30221#    include <string.h>
30222    int main ()
30223    {
30224      FILE *in = fopen ("./conftest.data", "r");
30225      if (!in)
30226        return 1;
30227      {
30228        /* Test result for a NULL buffer and a zero size.
30229           Based on a test program from Karl Heuer.  */
30230        char *line = NULL;
30231        size_t siz = 0;
30232        int len = getline (&line, &siz, in);
30233        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
30234          { free (line); fclose (in); return 2; }
30235        free (line);
30236      }
30237      {
30238        /* Test result for a NULL buffer and a non-zero size.
30239           This crashes on FreeBSD 8.0.  */
30240        char *line = NULL;
30241        size_t siz = (size_t)(~0) / 4;
30242        if (getline (&line, &siz, in) == -1)
30243          { fclose (in); return 3; }
30244        free (line);
30245      }
30246      fclose (in);
30247      return 0;
30248    }
30249
30250_ACEOF
30251if ac_fn_c_try_run "$LINENO"; then :
30252  am_cv_func_working_getline=yes
30253else
30254  am_cv_func_working_getline=no
30255fi
30256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30257  conftest.$ac_objext conftest.beam conftest.$ac_ext
30258fi
30259
30260
30261fi
30262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
30263$as_echo "$am_cv_func_working_getline" >&6; }
30264  fi
30265
30266  if test $ac_cv_have_decl_getline = no; then
30267    HAVE_DECL_GETLINE=0
30268  fi
30269
30270  case "$am_cv_func_working_getline" in
30271    *yes) ;;
30272    *)
30273                        REPLACE_GETLINE=1
30274      ;;
30275  esac
30276
30277  if test $REPLACE_GETLINE = 1; then
30278
30279
30280
30281
30282
30283
30284
30285
30286  gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
30287
30288
30289  :
30290
30291  fi
30292
30293
30294
30295
30296
30297          GNULIB_GETLINE=1
30298
30299
30300
30301
30302
30303$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316  gl_gettimeofday_timezone=void
30317  if test $ac_cv_func_gettimeofday != yes; then
30318    HAVE_GETTIMEOFDAY=0
30319  else
30320
30321
30322
30323
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
30325$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
30326if ${gl_cv_func_gettimeofday_clobber+:} false; then :
30327  $as_echo_n "(cached) " >&6
30328else
30329  if test "$cross_compiling" = yes; then :
30330  # When cross-compiling:
30331      case "$host_os" in
30332                       # Guess all is fine on glibc systems.
30333        *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
30334                       # Guess all is fine on musl systems.
30335        *-musl*)       gl_cv_func_gettimeofday_clobber="guessing no" ;;
30336                       # Guess no on native Windows.
30337        mingw*)        gl_cv_func_gettimeofday_clobber="guessing no" ;;
30338                       # If we don't know, obey --enable-cross-guesses.
30339        *)             gl_cv_func_gettimeofday_clobber="$gl_cross_guess_inverted" ;;
30340      esac
30341
30342else
30343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30344/* end confdefs.h.  */
30345#include <string.h>
30346          #include <sys/time.h>
30347          #include <time.h>
30348          #include <stdlib.h>
30349
30350int
30351main ()
30352{
30353
30354          time_t t = 0;
30355          struct tm *lt;
30356          struct tm saved_lt;
30357          struct timeval tv;
30358          lt = localtime (&t);
30359          saved_lt = *lt;
30360          gettimeofday (&tv, NULL);
30361          return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
30362
30363  ;
30364  return 0;
30365}
30366_ACEOF
30367if ac_fn_c_try_run "$LINENO"; then :
30368  gl_cv_func_gettimeofday_clobber=no
30369else
30370  gl_cv_func_gettimeofday_clobber=yes
30371fi
30372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30373  conftest.$ac_objext conftest.beam conftest.$ac_ext
30374fi
30375
30376fi
30377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
30378$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
30379
30380 case "$gl_cv_func_gettimeofday_clobber" in
30381   *yes)
30382     REPLACE_GETTIMEOFDAY=1
30383
30384$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
30385
30386
30387
30388
30389  NEED_LOCALTIME_BUFFER=1
30390  REPLACE_GMTIME=1
30391  REPLACE_LOCALTIME=1
30392
30393     ;;
30394 esac
30395
30396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
30397$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
30398if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
30399  $as_echo_n "(cached) " >&6
30400else
30401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30402/* end confdefs.h.  */
30403#include <sys/time.h>
30404              struct timeval c;
30405              int gettimeofday (struct timeval *restrict, void *restrict);
30406
30407int
30408main ()
30409{
30410/* glibc uses struct timezone * rather than the POSIX void *
30411                 if _GNU_SOURCE is defined.  However, since the only portable
30412                 use of gettimeofday uses NULL as the second parameter, and
30413                 since the glibc definition is actually more typesafe, it is
30414                 not worth wrapping this to get a compliant signature.  */
30415              int (*f) (struct timeval *restrict, void *restrict)
30416                = gettimeofday;
30417              int x = f (&c, 0);
30418              return !(x | c.tv_sec | c.tv_usec);
30419
30420  ;
30421  return 0;
30422}
30423_ACEOF
30424if ac_fn_c_try_compile "$LINENO"; then :
30425  gl_cv_func_gettimeofday_posix_signature=yes
30426else
30427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30428/* end confdefs.h.  */
30429#include <sys/time.h>
30430int gettimeofday (struct timeval *restrict, struct timezone *restrict);
30431
30432int
30433main ()
30434{
30435
30436  ;
30437  return 0;
30438}
30439_ACEOF
30440if ac_fn_c_try_compile "$LINENO"; then :
30441  gl_cv_func_gettimeofday_posix_signature=almost
30442else
30443  gl_cv_func_gettimeofday_posix_signature=no
30444fi
30445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30446fi
30447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30448fi
30449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
30450$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
30451    if test $gl_cv_func_gettimeofday_posix_signature = almost; then
30452      gl_gettimeofday_timezone='struct timezone'
30453    elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
30454      REPLACE_GETTIMEOFDAY=1
30455    fi
30456        if test $REPLACE_STRUCT_TIMEVAL = 1; then
30457      REPLACE_GETTIMEOFDAY=1
30458    fi
30459            case "$host_os" in
30460      mingw*) REPLACE_GETTIMEOFDAY=1 ;;
30461    esac
30462  fi
30463
30464cat >>confdefs.h <<_ACEOF
30465#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
30466_ACEOF
30467
30468
30469  if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
30470
30471
30472
30473
30474
30475
30476
30477
30478  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
30479
30480    :
30481  fi
30482
30483
30484
30485
30486
30487          GNULIB_GETTIMEOFDAY=1
30488
30489
30490
30491
30492
30493$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
30494
30495
30496
30497  # Autoconf 2.61a.99 and earlier don't support linking a file only
30498  # in VPATH builds.  But since GNUmakefile is for maintainer use
30499  # only, it does not matter if we skip the link with older autoconf.
30500  # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
30501  # builds, so use a shell variable to bypass this.
30502  GNUmakefile=GNUmakefile
30503  ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
30504
30505
30506
30507
30508
30509
30510
30511
30512                HAVE_INET_NTOP=1
30513  INET_NTOP_LIB=
30514
30515
30516
30517
30518  if test $ac_cv_header_sys_socket_h != yes; then
30519                    for ac_header in winsock2.h
30520do :
30521  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30522if test "x$ac_cv_header_winsock2_h" = xyes; then :
30523  cat >>confdefs.h <<_ACEOF
30524#define HAVE_WINSOCK2_H 1
30525_ACEOF
30526
30527fi
30528
30529done
30530
30531  fi
30532  if test "$ac_cv_header_winsock2_h" = yes; then
30533    HAVE_WINSOCK2_H=1
30534    UNISTD_H_HAVE_WINSOCK2_H=1
30535    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30536  else
30537    HAVE_WINSOCK2_H=0
30538  fi
30539
30540
30541  if test $HAVE_WINSOCK2_H = 1; then
30542                    REPLACE_INET_NTOP=1
30543    ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
30544"
30545if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
30546  ac_have_decl=1
30547else
30548  ac_have_decl=0
30549fi
30550
30551cat >>confdefs.h <<_ACEOF
30552#define HAVE_DECL_INET_NTOP $ac_have_decl
30553_ACEOF
30554
30555    if test $ac_cv_have_decl_inet_ntop = yes; then
30556      INET_NTOP_LIB="-lws2_32"
30557    else
30558      HAVE_DECL_INET_NTOP=0
30559    fi
30560  else
30561    gl_save_LIBS=$LIBS
30562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
30563$as_echo_n "checking for library containing inet_ntop... " >&6; }
30564if ${ac_cv_search_inet_ntop+:} false; then :
30565  $as_echo_n "(cached) " >&6
30566else
30567  ac_func_search_save_LIBS=$LIBS
30568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30569/* end confdefs.h.  */
30570
30571/* Override any GCC internal prototype to avoid an error.
30572   Use char because int might match the return type of a GCC
30573   builtin and then its argument prototype would still apply.  */
30574#ifdef __cplusplus
30575extern "C"
30576#endif
30577char inet_ntop ();
30578int
30579main ()
30580{
30581return inet_ntop ();
30582  ;
30583  return 0;
30584}
30585_ACEOF
30586for ac_lib in '' nsl resolv network; do
30587  if test -z "$ac_lib"; then
30588    ac_res="none required"
30589  else
30590    ac_res=-l$ac_lib
30591    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30592  fi
30593  if ac_fn_c_try_link "$LINENO"; then :
30594  ac_cv_search_inet_ntop=$ac_res
30595fi
30596rm -f core conftest.err conftest.$ac_objext \
30597    conftest$ac_exeext
30598  if ${ac_cv_search_inet_ntop+:} false; then :
30599  break
30600fi
30601done
30602if ${ac_cv_search_inet_ntop+:} false; then :
30603
30604else
30605  ac_cv_search_inet_ntop=no
30606fi
30607rm conftest.$ac_ext
30608LIBS=$ac_func_search_save_LIBS
30609fi
30610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
30611$as_echo "$ac_cv_search_inet_ntop" >&6; }
30612ac_res=$ac_cv_search_inet_ntop
30613if test "$ac_res" != no; then :
30614  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30615
30616else
30617  for ac_func in inet_ntop
30618do :
30619  ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
30620if test "x$ac_cv_func_inet_ntop" = xyes; then :
30621  cat >>confdefs.h <<_ACEOF
30622#define HAVE_INET_NTOP 1
30623_ACEOF
30624
30625fi
30626done
30627
30628       if test $ac_cv_func_inet_ntop = no; then
30629         HAVE_INET_NTOP=0
30630       fi
30631
30632fi
30633
30634    LIBS=$gl_save_LIBS
30635
30636    if test "$ac_cv_search_inet_ntop" != "no" \
30637       && test "$ac_cv_search_inet_ntop" != "none required"; then
30638      INET_NTOP_LIB="$ac_cv_search_inet_ntop"
30639    fi
30640
30641
30642    ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
30643        #if HAVE_NETDB_H
30644        # include <netdb.h>
30645        #endif
30646
30647"
30648if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
30649  ac_have_decl=1
30650else
30651  ac_have_decl=0
30652fi
30653
30654cat >>confdefs.h <<_ACEOF
30655#define HAVE_DECL_INET_NTOP $ac_have_decl
30656_ACEOF
30657
30658    if test $ac_cv_have_decl_inet_ntop = no; then
30659      HAVE_DECL_INET_NTOP=0
30660    fi
30661  fi
30662
30663
30664  if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
30665
30666
30667
30668
30669
30670
30671
30672
30673  gl_LIBOBJS="$gl_LIBOBJS inet_ntop.$ac_objext"
30674
30675
30676
30677
30678  fi
30679
30680
30681
30682
30683
30684          GNULIB_INET_NTOP=1
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696                HAVE_INET_PTON=1
30697  INET_PTON_LIB=
30698
30699
30700
30701
30702  if test $ac_cv_header_sys_socket_h != yes; then
30703                    for ac_header in winsock2.h
30704do :
30705  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30706if test "x$ac_cv_header_winsock2_h" = xyes; then :
30707  cat >>confdefs.h <<_ACEOF
30708#define HAVE_WINSOCK2_H 1
30709_ACEOF
30710
30711fi
30712
30713done
30714
30715  fi
30716  if test "$ac_cv_header_winsock2_h" = yes; then
30717    HAVE_WINSOCK2_H=1
30718    UNISTD_H_HAVE_WINSOCK2_H=1
30719    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30720  else
30721    HAVE_WINSOCK2_H=0
30722  fi
30723
30724
30725  if test $HAVE_WINSOCK2_H = 1; then
30726                    REPLACE_INET_PTON=1
30727    ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
30728"
30729if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
30730  ac_have_decl=1
30731else
30732  ac_have_decl=0
30733fi
30734
30735cat >>confdefs.h <<_ACEOF
30736#define HAVE_DECL_INET_PTON $ac_have_decl
30737_ACEOF
30738
30739    if test $ac_cv_have_decl_inet_pton = yes; then
30740      INET_PTON_LIB="-lws2_32"
30741    else
30742      HAVE_DECL_INET_PTON=0
30743    fi
30744  else
30745    gl_save_LIBS=$LIBS
30746    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
30747$as_echo_n "checking for library containing inet_pton... " >&6; }
30748if ${ac_cv_search_inet_pton+:} false; then :
30749  $as_echo_n "(cached) " >&6
30750else
30751  ac_func_search_save_LIBS=$LIBS
30752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30753/* end confdefs.h.  */
30754
30755/* Override any GCC internal prototype to avoid an error.
30756   Use char because int might match the return type of a GCC
30757   builtin and then its argument prototype would still apply.  */
30758#ifdef __cplusplus
30759extern "C"
30760#endif
30761char inet_pton ();
30762int
30763main ()
30764{
30765return inet_pton ();
30766  ;
30767  return 0;
30768}
30769_ACEOF
30770for ac_lib in '' nsl resolv network; do
30771  if test -z "$ac_lib"; then
30772    ac_res="none required"
30773  else
30774    ac_res=-l$ac_lib
30775    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30776  fi
30777  if ac_fn_c_try_link "$LINENO"; then :
30778  ac_cv_search_inet_pton=$ac_res
30779fi
30780rm -f core conftest.err conftest.$ac_objext \
30781    conftest$ac_exeext
30782  if ${ac_cv_search_inet_pton+:} false; then :
30783  break
30784fi
30785done
30786if ${ac_cv_search_inet_pton+:} false; then :
30787
30788else
30789  ac_cv_search_inet_pton=no
30790fi
30791rm conftest.$ac_ext
30792LIBS=$ac_func_search_save_LIBS
30793fi
30794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
30795$as_echo "$ac_cv_search_inet_pton" >&6; }
30796ac_res=$ac_cv_search_inet_pton
30797if test "$ac_res" != no; then :
30798  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30799
30800else
30801  for ac_func in inet_pton
30802do :
30803  ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
30804if test "x$ac_cv_func_inet_pton" = xyes; then :
30805  cat >>confdefs.h <<_ACEOF
30806#define HAVE_INET_PTON 1
30807_ACEOF
30808
30809fi
30810done
30811
30812       if test $ac_cv_func_inet_pton = no; then
30813         HAVE_INET_PTON=0
30814       fi
30815
30816fi
30817
30818    LIBS=$gl_save_LIBS
30819
30820    if test "$ac_cv_search_inet_pton" != "no" \
30821       && test "$ac_cv_search_inet_pton" != "none required"; then
30822      INET_PTON_LIB="$ac_cv_search_inet_pton"
30823    fi
30824
30825
30826    ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
30827        #if HAVE_NETDB_H
30828        # include <netdb.h>
30829        #endif
30830
30831"
30832if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
30833  ac_have_decl=1
30834else
30835  ac_have_decl=0
30836fi
30837
30838cat >>confdefs.h <<_ACEOF
30839#define HAVE_DECL_INET_PTON $ac_have_decl
30840_ACEOF
30841
30842    if test $ac_cv_have_decl_inet_pton = no; then
30843      HAVE_DECL_INET_PTON=0
30844    fi
30845  fi
30846
30847
30848  if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
30849
30850
30851
30852
30853
30854
30855
30856
30857  gl_LIBOBJS="$gl_LIBOBJS inet_pton.$ac_objext"
30858
30859
30860
30861
30862  fi
30863
30864
30865
30866
30867
30868          GNULIB_INET_PTON=1
30869
30870
30871
30872
30873
30874
30875
30876
30877
30878    LDDPROG=':'
30879  LDDPOSTPROC=
30880    if test -n "$ac_tool_prefix"; then
30881  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
30882set dummy ${ac_tool_prefix}objdump; ac_word=$2
30883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30884$as_echo_n "checking for $ac_word... " >&6; }
30885if ${ac_cv_prog_OBJDUMP+:} false; then :
30886  $as_echo_n "(cached) " >&6
30887else
30888  if test -n "$OBJDUMP"; then
30889  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
30890else
30891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30892for as_dir in $PATH
30893do
30894  IFS=$as_save_IFS
30895  test -z "$as_dir" && as_dir=.
30896    for ac_exec_ext in '' $ac_executable_extensions; do
30897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30898    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
30899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30900    break 2
30901  fi
30902done
30903  done
30904IFS=$as_save_IFS
30905
30906fi
30907fi
30908OBJDUMP=$ac_cv_prog_OBJDUMP
30909if test -n "$OBJDUMP"; then
30910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
30911$as_echo "$OBJDUMP" >&6; }
30912else
30913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30914$as_echo "no" >&6; }
30915fi
30916
30917
30918fi
30919if test -z "$ac_cv_prog_OBJDUMP"; then
30920  ac_ct_OBJDUMP=$OBJDUMP
30921  # Extract the first word of "objdump", so it can be a program name with args.
30922set dummy objdump; ac_word=$2
30923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30924$as_echo_n "checking for $ac_word... " >&6; }
30925if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
30926  $as_echo_n "(cached) " >&6
30927else
30928  if test -n "$ac_ct_OBJDUMP"; then
30929  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
30930else
30931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30932for as_dir in $PATH
30933do
30934  IFS=$as_save_IFS
30935  test -z "$as_dir" && as_dir=.
30936    for ac_exec_ext in '' $ac_executable_extensions; do
30937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30938    ac_cv_prog_ac_ct_OBJDUMP="objdump"
30939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30940    break 2
30941  fi
30942done
30943  done
30944IFS=$as_save_IFS
30945
30946fi
30947fi
30948ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
30949if test -n "$ac_ct_OBJDUMP"; then
30950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
30951$as_echo "$ac_ct_OBJDUMP" >&6; }
30952else
30953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30954$as_echo "no" >&6; }
30955fi
30956
30957  if test "x$ac_ct_OBJDUMP" = x; then
30958    OBJDUMP="false"
30959  else
30960    case $cross_compiling:$ac_tool_warned in
30961yes:)
30962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30964ac_tool_warned=yes ;;
30965esac
30966    OBJDUMP=$ac_ct_OBJDUMP
30967  fi
30968else
30969  OBJDUMP="$ac_cv_prog_OBJDUMP"
30970fi
30971
30972  if test "$OBJDUMP" != "false"; then
30973    LDDPROG="$OBJDUMP -p"
30974                                                                                                                                LDDPOSTPROC="2>/dev/null | sed -n -e 's,^  NEEDED *\\([^ ].*\\)\$,\\1,p'"
30975  else
30976    if test "$cross_compiling" = no; then
30977            case "$host_os" in
30978        aix*)
30979          LDDPROG="dump -H"
30980                                                                                                                                                                                              LDDPOSTPROC="2>/dev/null | sed -e '/^[^0-9]/d' -e '/^0x/d' | sed -n -e 's,^[0-9]*         *\\([^ 	]*\\).*\$,\\1,p' | sed -e 's,^.*/,,'"
30981          ;;
30982        darwin*)
30983          LDDPROG="otool -L"
30984                                        LDDPOSTPROC="2>/dev/null | sed -n -e 's,^	\\([^ 	]*\\).*\$,\\1,p' | sed -e 's,^.*/,,'"
30985          ;;
30986        hpux*)
30987          LDDPROG="chatr"
30988                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              LDDPOSTPROC="2>/dev/null | sed -e '1,/shared library list:/d' -e '/shared library binding:/,\$d' | sed -e 's,^.*[ 	]\\([^ 	][^ 	]*\\)\$,\\1,' | sed -e 's,^.*/,,'"
30989          ;;
30990        irix*)
30991          LDDPROG="elfdump -Dl"
30992                                                                                                    LDDPOSTPROC="2>/dev/null | sed -n -e 's,^[[][0-9]*[]].*	0x[^	]*	[^	][^	]*	\\([^	][^	]*\\).*\$,\\1,p' | sed -e 's,^.*/,,'"
30993          ;;
30994        linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu) # glibc-based systems
30995          LDDPROG="ldd"
30996                                        LDDPOSTPROC="2>/dev/null | sed -n -e 's,^	\\([^ 	][^ 	]*\\).*\$,\\1,p' | sed -e 's,^.*/,,'"
30997          ;;
30998        osf*)
30999          LDDPROG="odump -Dl"
31000                                                                                LDDPOSTPROC="2>/dev/null | sed -n -e 's,^	\\([^ 	][^ 	]*\\).*,\\1,p' | sed -e '/^Name\$/d' | sed -e 's,^.*/,,'"
31001          ;;
31002        solaris*)
31003          LDDPROG="ldd"
31004                                                                                LDDPOSTPROC="2>/dev/null | sed -n -e 's,^	\\([^ ].*\\)\$,\\1,p' | sed -e 's, =>.*\$,,' | sed -e 's,^.*/,,'"
31005          ;;
31006      esac
31007    fi
31008  fi
31009    if test "$LDDPROG" != ":"; then
31010    LDDPROG="LC_ALL=C $LDDPROG"
31011  fi
31012
31013
31014
31015  ac_config_files="$ac_config_files ldd.sh:build-aux/ldd.sh.in"
31016
31017
31018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
31019$as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
31020if ${gl_cv_ld_output_def+:} false; then :
31021  $as_echo_n "(cached) " >&6
31022else
31023  if test "$enable_shared" = no; then
31024       gl_cv_ld_output_def="not needed, shared libraries are disabled"
31025     else
31026       gl_ldflags_save=$LDFLAGS
31027       LDFLAGS="-Wl,--output-def,conftest.def"
31028       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31029/* end confdefs.h.  */
31030
31031int
31032main ()
31033{
31034
31035  ;
31036  return 0;
31037}
31038_ACEOF
31039if ac_fn_c_try_link "$LINENO"; then :
31040  gl_cv_ld_output_def=yes
31041else
31042  gl_cv_ld_output_def=no
31043fi
31044rm -f core conftest.err conftest.$ac_objext \
31045    conftest$ac_exeext conftest.$ac_ext
31046       rm -f conftest.def
31047       LDFLAGS="$gl_ldflags_save"
31048     fi
31049fi
31050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
31051$as_echo "$gl_cv_ld_output_def" >&6; }
31052   if test "x$gl_cv_ld_output_def" = "xyes"; then
31053  HAVE_LD_OUTPUT_DEF_TRUE=
31054  HAVE_LD_OUTPUT_DEF_FALSE='#'
31055else
31056  HAVE_LD_OUTPUT_DEF_TRUE='#'
31057  HAVE_LD_OUTPUT_DEF_FALSE=
31058fi
31059
31060
31061
31062  # Check whether --enable-ld-version-script was given.
31063if test "${enable_ld_version_script+set}" = set; then :
31064  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
31065else
31066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
31067$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
31068if ${gl_cv_sys_ld_version_script+:} false; then :
31069  $as_echo_n "(cached) " >&6
31070else
31071  gl_cv_sys_ld_version_script=no
31072        save_LDFLAGS=$LDFLAGS
31073        LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
31074        echo foo >conftest.map
31075        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31076/* end confdefs.h.  */
31077
31078int
31079main ()
31080{
31081
31082  ;
31083  return 0;
31084}
31085_ACEOF
31086if ac_fn_c_try_link "$LINENO"; then :
31087
31088else
31089  cat > conftest.map <<EOF
31090VERS_1 {
31091        global: sym;
31092};
31093
31094VERS_2 {
31095        global: sym;
31096} VERS_1;
31097EOF
31098           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31099/* end confdefs.h.  */
31100
31101int
31102main ()
31103{
31104
31105  ;
31106  return 0;
31107}
31108_ACEOF
31109if ac_fn_c_try_link "$LINENO"; then :
31110  gl_cv_sys_ld_version_script=yes
31111fi
31112rm -f core conftest.err conftest.$ac_objext \
31113    conftest$ac_exeext conftest.$ac_ext
31114fi
31115rm -f core conftest.err conftest.$ac_objext \
31116    conftest$ac_exeext conftest.$ac_ext
31117        rm -f conftest.map
31118        LDFLAGS=$save_LDFLAGS
31119fi
31120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
31121$as_echo "$gl_cv_sys_ld_version_script" >&6; }
31122     have_ld_version_script=$gl_cv_sys_ld_version_script
31123fi
31124
31125   if test "$have_ld_version_script" = yes; then
31126  HAVE_LD_VERSION_SCRIPT_TRUE=
31127  HAVE_LD_VERSION_SCRIPT_FALSE='#'
31128else
31129  HAVE_LD_VERSION_SCRIPT_TRUE='#'
31130  HAVE_LD_VERSION_SCRIPT_FALSE=
31131fi
31132
31133
31134
31135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
31136$as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
31137if ${gl_cv_c___inline+:} false; then :
31138  $as_echo_n "(cached) " >&6
31139else
31140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31141/* end confdefs.h.  */
31142typedef int foo_t;
31143           static __inline foo_t foo (void) { return 0; }
31144int
31145main ()
31146{
31147return foo ();
31148  ;
31149  return 0;
31150}
31151_ACEOF
31152if ac_fn_c_try_compile "$LINENO"; then :
31153  gl_cv_c___inline=yes
31154else
31155  gl_cv_c___inline=no
31156fi
31157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31158fi
31159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
31160$as_echo "$gl_cv_c___inline" >&6; }
31161  if test $gl_cv_c___inline = yes; then
31162
31163$as_echo "#define HAVE___INLINE 1" >>confdefs.h
31164
31165  fi
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176
31177  gl_LIBOBJS="$gl_LIBOBJS localtime-buffer.$ac_objext"
31178
31179
31180
31181
31182
31183
31184
31185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
31186$as_echo_n "checking whether lseek detects pipes... " >&6; }
31187if ${gl_cv_func_lseek_pipe+:} false; then :
31188  $as_echo_n "(cached) " >&6
31189else
31190  case "$host_os" in
31191       mingw*)
31192                                                               gl_cv_func_lseek_pipe=no
31193         ;;
31194       *)
31195         if test $cross_compiling = no; then
31196           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31197/* end confdefs.h.  */
31198
31199#include <sys/types.h> /* for off_t */
31200#include <stdio.h> /* for SEEK_CUR */
31201#if HAVE_UNISTD_H
31202# include <unistd.h>
31203#else /* on Windows with MSVC */
31204# include <io.h>
31205#endif
31206
31207int
31208main ()
31209{
31210
31211  /* Exit with success only if stdin is seekable.  */
31212  return lseek (0, (off_t)0, SEEK_CUR) < 0;
31213
31214  ;
31215  return 0;
31216}
31217_ACEOF
31218if ac_fn_c_try_link "$LINENO"; then :
31219  if test -s conftest$ac_exeext \
31220                 && ./conftest$ac_exeext < conftest.$ac_ext \
31221                 && test 1 = "`echo hi \
31222                   | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
31223                gl_cv_func_lseek_pipe=yes
31224              else
31225                gl_cv_func_lseek_pipe=no
31226              fi
31227
31228else
31229  gl_cv_func_lseek_pipe=no
31230fi
31231rm -f core conftest.err conftest.$ac_objext \
31232    conftest$ac_exeext conftest.$ac_ext
31233         else
31234           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235/* end confdefs.h.  */
31236
31237#if defined __BEOS__
31238/* BeOS mistakenly return 0 when trying to seek on pipes.  */
31239  Choke me.
31240#endif
31241_ACEOF
31242if ac_fn_c_try_compile "$LINENO"; then :
31243  gl_cv_func_lseek_pipe=yes
31244else
31245  gl_cv_func_lseek_pipe=no
31246fi
31247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31248         fi
31249         ;;
31250     esac
31251
31252fi
31253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
31254$as_echo "$gl_cv_func_lseek_pipe" >&6; }
31255  if test $gl_cv_func_lseek_pipe = no; then
31256    REPLACE_LSEEK=1
31257
31258$as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
31259
31260  fi
31261
31262
31263  if test $WINDOWS_64_BIT_OFF_T = 1; then
31264    REPLACE_LSEEK=1
31265  fi
31266
31267  if test $REPLACE_LSEEK = 1; then
31268
31269
31270
31271
31272
31273
31274
31275
31276  gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
31277
31278  fi
31279
31280
31281
31282
31283
31284          GNULIB_LSEEK=1
31285
31286
31287
31288
31289
31290$as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300  if test $gl_cv_func_malloc_posix = yes; then
31301
31302$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
31303
31304  else
31305    REPLACE_MALLOC=1
31306  fi
31307
31308  if test $REPLACE_MALLOC = 1; then
31309
31310
31311
31312
31313
31314
31315
31316
31317  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
31318
31319  fi
31320
31321
31322
31323
31324
31325          GNULIB_MALLOC_POSIX=1
31326
31327
31328
31329
31330
31331$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
31332
31333
31334
31335
31336
31337
31338
31339  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
31340
31341
31342
31343
31344
31345
31346
31347
31348  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
31349
31350
31351  for ac_header in bp-sym.h
31352do :
31353  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
31354if test "x$ac_cv_header_bp_sym_h" = xyes; then :
31355  cat >>confdefs.h <<_ACEOF
31356#define HAVE_BP_SYM_H 1
31357_ACEOF
31358
31359fi
31360
31361done
31362
31363
31364  fi
31365
31366
31367
31368
31369
31370          GNULIB_MEMCHR=1
31371
31372
31373
31374
31375
31376$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
31377
31378
31379
31380
31381
31382
31383
31384  for ac_func in memmem
31385do :
31386  ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
31387if test "x$ac_cv_func_memmem" = xyes; then :
31388  cat >>confdefs.h <<_ACEOF
31389#define HAVE_MEMMEM 1
31390_ACEOF
31391
31392fi
31393done
31394
31395  if test $ac_cv_func_memmem = yes; then
31396    HAVE_MEMMEM=1
31397  else
31398    HAVE_MEMMEM=0
31399  fi
31400
31401  if test $ac_cv_have_decl_memmem = no; then
31402    HAVE_DECL_MEMMEM=0
31403  else
31404            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
31405$as_echo_n "checking whether memmem works... " >&6; }
31406if ${gl_cv_func_memmem_works_always+:} false; then :
31407  $as_echo_n "(cached) " >&6
31408else
31409  if test "$cross_compiling" = yes; then :
31410                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31411/* end confdefs.h.  */
31412
31413#ifdef __GNU_LIBRARY__
31414 #include <features.h>
31415 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
31416                          || __GLIBC_MINOR__ > 12)) \
31417      || (__GLIBC__ > 2)) \
31418     || defined __UCLIBC__
31419  Lucky user
31420 #endif
31421#elif defined __CYGWIN__
31422 #include <cygwin/version.h>
31423 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
31424  Lucky user
31425 #endif
31426#else
31427  Lucky user
31428#endif
31429
31430_ACEOF
31431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31432  $EGREP "Lucky user" >/dev/null 2>&1; then :
31433  gl_cv_func_memmem_works_always="guessing yes"
31434else
31435  gl_cv_func_memmem_works_always="$gl_cross_guess_normal"
31436fi
31437rm -f conftest*
31438
31439
31440else
31441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31442/* end confdefs.h.  */
31443
31444#include <string.h> /* for memmem */
31445#define P "_EF_BF_BD"
31446#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
31447#define NEEDLE P P P P P
31448
31449int
31450main ()
31451{
31452
31453    int result = 0;
31454    if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
31455      result |= 1;
31456    /* Check for empty needle behavior.  */
31457    {
31458      const char *haystack = "AAA";
31459      if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
31460        result |= 2;
31461    }
31462    return result;
31463
31464  ;
31465  return 0;
31466}
31467_ACEOF
31468if ac_fn_c_try_run "$LINENO"; then :
31469  gl_cv_func_memmem_works_always=yes
31470else
31471  gl_cv_func_memmem_works_always=no
31472fi
31473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31474  conftest.$ac_objext conftest.beam conftest.$ac_ext
31475fi
31476
31477
31478fi
31479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
31480$as_echo "$gl_cv_func_memmem_works_always" >&6; }
31481    case "$gl_cv_func_memmem_works_always" in
31482      *yes) ;;
31483      *)
31484        REPLACE_MEMMEM=1
31485        ;;
31486    esac
31487  fi
31488  :
31489
31490  if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
31491
31492
31493
31494
31495
31496
31497
31498
31499  gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
31500
31501  fi
31502
31503
31504
31505
31506
31507          GNULIB_MEMMEM=1
31508
31509
31510
31511
31512
31513$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
31514
31515
31516
31517
31518
31519
31520
31521  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
31522
31523
31524
31525
31526
31527
31528
31529
31530  gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
31531
31532  fi
31533
31534  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
31535
31536
31537
31538
31539
31540
31541
31542
31543  gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
31544
31545  fi
31546
31547
31548cat >>confdefs.h <<_ACEOF
31549#define GNULIB_MSVC_NOTHROW 1
31550_ACEOF
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565     if test $gl_cv_have_include_next = yes; then
31566       gl_cv_next_netdb_h='<'netdb.h'>'
31567     else
31568       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
31569$as_echo_n "checking absolute name of <netdb.h>... " >&6; }
31570if ${gl_cv_next_netdb_h+:} false; then :
31571  $as_echo_n "(cached) " >&6
31572else
31573
31574             if test $ac_cv_header_netdb_h = yes; then
31575
31576
31577
31578
31579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31580/* end confdefs.h.  */
31581#include <netdb.h>
31582_ACEOF
31583                case "$host_os" in
31584    aix*) gl_absname_cpp="$ac_cpp -C" ;;
31585    *)    gl_absname_cpp="$ac_cpp" ;;
31586  esac
31587
31588  case "$host_os" in
31589    mingw*)
31590                                          gl_dirsep_regex='[/\\]'
31591      ;;
31592    *)
31593      gl_dirsep_regex='\/'
31594      ;;
31595  esac
31596      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31597  gl_header_literal_regex=`echo 'netdb.h' \
31598                           | sed -e "$gl_make_literal_regex_sed"`
31599  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31600      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31601      s|^/[^/]|//&|
31602      p
31603      q
31604    }'
31605
31606        gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31607  sed -n "$gl_absolute_header_sed"`
31608
31609           gl_header=$gl_cv_absolute_netdb_h
31610           gl_cv_next_netdb_h='"'$gl_header'"'
31611          else
31612               gl_cv_next_netdb_h='<'netdb.h'>'
31613             fi
31614
31615
31616fi
31617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
31618$as_echo "$gl_cv_next_netdb_h" >&6; }
31619     fi
31620     NEXT_NETDB_H=$gl_cv_next_netdb_h
31621
31622     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31623       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31624       gl_next_as_first_directive='<'netdb.h'>'
31625     else
31626       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31627       gl_next_as_first_directive=$gl_cv_next_netdb_h
31628     fi
31629     NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
31630
31631
31632
31633
31634  if test $ac_cv_header_netdb_h = yes; then
31635    HAVE_NETDB_H=1
31636  else
31637    HAVE_NETDB_H=0
31638  fi
31639
31640
31641
31642
31643
31644
31645
31646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
31647$as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
31648if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
31649  $as_echo_n "(cached) " >&6
31650else
31651
31652      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31653/* end confdefs.h.  */
31654#include <netinet/in.h>
31655int
31656main ()
31657{
31658
31659  ;
31660  return 0;
31661}
31662_ACEOF
31663if ac_fn_c_try_compile "$LINENO"; then :
31664  gl_cv_header_netinet_in_h_selfcontained=yes
31665else
31666  gl_cv_header_netinet_in_h_selfcontained=no
31667fi
31668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31669
31670fi
31671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
31672$as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
31673  if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
31674    NETINET_IN_H=''
31675  else
31676    NETINET_IN_H='netinet/in.h'
31677    for ac_header in netinet/in.h
31678do :
31679  ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
31680if test "x$ac_cv_header_netinet_in_h" = xyes; then :
31681  cat >>confdefs.h <<_ACEOF
31682#define HAVE_NETINET_IN_H 1
31683_ACEOF
31684
31685fi
31686
31687done
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698     if test $gl_cv_have_include_next = yes; then
31699       gl_cv_next_netinet_in_h='<'netinet/in.h'>'
31700     else
31701       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
31702$as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
31703if ${gl_cv_next_netinet_in_h+:} false; then :
31704  $as_echo_n "(cached) " >&6
31705else
31706
31707             if test $ac_cv_header_netinet_in_h = yes; then
31708
31709
31710
31711
31712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31713/* end confdefs.h.  */
31714#include <netinet/in.h>
31715_ACEOF
31716                case "$host_os" in
31717    aix*) gl_absname_cpp="$ac_cpp -C" ;;
31718    *)    gl_absname_cpp="$ac_cpp" ;;
31719  esac
31720
31721  case "$host_os" in
31722    mingw*)
31723                                          gl_dirsep_regex='[/\\]'
31724      ;;
31725    *)
31726      gl_dirsep_regex='\/'
31727      ;;
31728  esac
31729      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31730  gl_header_literal_regex=`echo 'netinet/in.h' \
31731                           | sed -e "$gl_make_literal_regex_sed"`
31732  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31733      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31734      s|^/[^/]|//&|
31735      p
31736      q
31737    }'
31738
31739        gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31740  sed -n "$gl_absolute_header_sed"`
31741
31742           gl_header=$gl_cv_absolute_netinet_in_h
31743           gl_cv_next_netinet_in_h='"'$gl_header'"'
31744          else
31745               gl_cv_next_netinet_in_h='<'netinet/in.h'>'
31746             fi
31747
31748
31749fi
31750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
31751$as_echo "$gl_cv_next_netinet_in_h" >&6; }
31752     fi
31753     NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
31754
31755     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31756       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31757       gl_next_as_first_directive='<'netinet/in.h'>'
31758     else
31759       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31760       gl_next_as_first_directive=$gl_cv_next_netinet_in_h
31761     fi
31762     NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
31763
31764
31765
31766
31767    if test $ac_cv_header_netinet_in_h = yes; then
31768      HAVE_NETINET_IN_H=1
31769    else
31770      HAVE_NETINET_IN_H=0
31771    fi
31772
31773  fi
31774
31775   if test -n "$NETINET_IN_H"; then
31776  GL_GENERATE_NETINET_IN_H_TRUE=
31777  GL_GENERATE_NETINET_IN_H_FALSE='#'
31778else
31779  GL_GENERATE_NETINET_IN_H_TRUE='#'
31780  GL_GENERATE_NETINET_IN_H_FALSE=
31781fi
31782
31783
31784
31785
31786
31787
31788  case "$host_os" in
31789    mingw* | pw*)
31790      REPLACE_OPEN=1
31791      ;;
31792    *)
31793
31794      if test "$gl_cv_macro_O_CLOEXEC" != yes; then
31795        REPLACE_OPEN=1
31796      fi
31797
31798
31799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
31800$as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
31801if ${gl_cv_func_open_slash+:} false; then :
31802  $as_echo_n "(cached) " >&6
31803else
31804  # Assume that if we have lstat, we can also check symlinks.
31805     if test $ac_cv_func_lstat = yes; then
31806       touch conftest.tmp
31807       ln -s conftest.tmp conftest.lnk
31808     fi
31809     if test "$cross_compiling" = yes; then :
31810
31811        case "$host_os" in
31812          freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
31813            gl_cv_func_open_slash="guessing no" ;;
31814          *)
31815            gl_cv_func_open_slash="guessing yes" ;;
31816        esac
31817
31818else
31819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31820/* end confdefs.h.  */
31821
31822#include <fcntl.h>
31823#if HAVE_UNISTD_H
31824# include <unistd.h>
31825#endif
31826int main ()
31827{
31828  int result = 0;
31829#if HAVE_LSTAT
31830  if (open ("conftest.lnk/", O_RDONLY) != -1)
31831    result |= 1;
31832#endif
31833  if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
31834    result |= 2;
31835  return result;
31836}
31837_ACEOF
31838if ac_fn_c_try_run "$LINENO"; then :
31839  gl_cv_func_open_slash=yes
31840else
31841  gl_cv_func_open_slash=no
31842fi
31843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31844  conftest.$ac_objext conftest.beam conftest.$ac_ext
31845fi
31846
31847     rm -f conftest.sl conftest.tmp conftest.lnk
31848
31849fi
31850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
31851$as_echo "$gl_cv_func_open_slash" >&6; }
31852  case "$gl_cv_func_open_slash" in
31853    *no)
31854
31855$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
31856
31857      ;;
31858  esac
31859
31860      case "$gl_cv_func_open_slash" in
31861        *no)
31862          REPLACE_OPEN=1
31863          ;;
31864      esac
31865      ;;
31866  esac
31867
31868
31869
31870  if test $REPLACE_OPEN = 1; then
31871
31872
31873
31874
31875
31876
31877
31878
31879  gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
31880
31881
31882
31883  :
31884
31885  fi
31886
31887
31888
31889
31890
31891          GNULIB_OPEN=1
31892
31893
31894
31895
31896
31897$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
31898
31899
31900
31901
31902
31903
31904  # Extract the first word of "pmccabe", so it can be a program name with args.
31905set dummy pmccabe; ac_word=$2
31906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31907$as_echo_n "checking for $ac_word... " >&6; }
31908if ${ac_cv_path_PMCCABE+:} false; then :
31909  $as_echo_n "(cached) " >&6
31910else
31911  case $PMCCABE in
31912  [\\/]* | ?:[\\/]*)
31913  ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
31914  ;;
31915  *)
31916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31917for as_dir in $PATH
31918do
31919  IFS=$as_save_IFS
31920  test -z "$as_dir" && as_dir=.
31921    for ac_exec_ext in '' $ac_executable_extensions; do
31922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31923    ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
31924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31925    break 2
31926  fi
31927done
31928  done
31929IFS=$as_save_IFS
31930
31931  test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
31932  ;;
31933esac
31934fi
31935PMCCABE=$ac_cv_path_PMCCABE
31936if test -n "$PMCCABE"; then
31937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
31938$as_echo "$PMCCABE" >&6; }
31939else
31940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31941$as_echo "no" >&6; }
31942fi
31943
31944
31945  :
31946
31947
31948
31949  if test $gl_cv_func_malloc_posix = yes; then
31950
31951$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
31952
31953  else
31954    REPLACE_REALLOC=1
31955  fi
31956
31957  if test $REPLACE_REALLOC = 1; then
31958
31959
31960
31961
31962
31963
31964
31965
31966  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
31967
31968  fi
31969
31970
31971
31972
31973
31974          GNULIB_REALLOC_POSIX=1
31975
31976
31977
31978
31979
31980$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
31981
31982
31983
31984
31985
31986
31987
31988
31989  if test $ac_cv_func_secure_getenv = no; then
31990    HAVE_SECURE_GETENV=0
31991  fi
31992
31993  if test $HAVE_SECURE_GETENV = 0; then
31994
31995
31996
31997
31998
31999
32000
32001
32002  gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
32003
32004
32005  for ac_func in __secure_getenv
32006do :
32007  ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
32008if test "x$ac_cv_func___secure_getenv" = xyes; then :
32009  cat >>confdefs.h <<_ACEOF
32010#define HAVE___SECURE_GETENV 1
32011_ACEOF
32012
32013fi
32014done
32015
32016  if test $ac_cv_func___secure_getenv = no; then
32017    for ac_func in issetugid
32018do :
32019  ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
32020if test "x$ac_cv_func_issetugid" = xyes; then :
32021  cat >>confdefs.h <<_ACEOF
32022#define HAVE_ISSETUGID 1
32023_ACEOF
32024
32025fi
32026done
32027
32028  fi
32029
32030
32031  fi
32032
32033
32034
32035
32036
32037          GNULIB_SECURE_GETENV=1
32038
32039
32040
32041
32042
32043$as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
32044
32045
32046
32047
32048  if test "$ac_cv_header_winsock2_h" = yes; then
32049
32050
32051
32052
32053
32054
32055
32056
32057  gl_LIBOBJS="$gl_LIBOBJS setsockopt.$ac_objext"
32058
32059  fi
32060
32061
32062
32063
32064
32065          GNULIB_SETSOCKOPT=1
32066
32067
32068
32069
32070
32071$as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
32072
32073
32074
32075
32076  for ac_header in stdint.h
32077do :
32078  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
32079if test "x$ac_cv_header_stdint_h" = xyes; then :
32080  cat >>confdefs.h <<_ACEOF
32081#define HAVE_STDINT_H 1
32082_ACEOF
32083
32084fi
32085
32086done
32087
32088    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
32089$as_echo_n "checking for SIZE_MAX... " >&6; }
32090if ${gl_cv_size_max+:} false; then :
32091  $as_echo_n "(cached) " >&6
32092else
32093
32094    gl_cv_size_max=
32095    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32096/* end confdefs.h.  */
32097
32098#include <limits.h>
32099#if HAVE_STDINT_H
32100#include <stdint.h>
32101#endif
32102#ifdef SIZE_MAX
32103Found it
32104#endif
32105
32106_ACEOF
32107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32108  $EGREP "Found it" >/dev/null 2>&1; then :
32109  gl_cv_size_max=yes
32110fi
32111rm -f conftest*
32112
32113    if test -z "$gl_cv_size_max"; then
32114                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
32115#include <limits.h>"; then :
32116
32117else
32118  size_t_bits_minus_1=
32119fi
32120
32121      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
32122
32123else
32124  fits_in_uint=
32125fi
32126
32127      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
32128        if test $fits_in_uint = 1; then
32129                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32130/* end confdefs.h.  */
32131#include <stddef.h>
32132                 extern size_t foo;
32133                 extern unsigned long foo;
32134
32135int
32136main ()
32137{
32138
32139  ;
32140  return 0;
32141}
32142_ACEOF
32143if ac_fn_c_try_compile "$LINENO"; then :
32144  fits_in_uint=0
32145fi
32146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32147        fi
32148                                if test $fits_in_uint = 1; then
32149          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
32150        else
32151          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
32152        fi
32153      else
32154                gl_cv_size_max='((size_t)~(size_t)0)'
32155      fi
32156    fi
32157
32158fi
32159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
32160$as_echo "$gl_cv_size_max" >&6; }
32161  if test "$gl_cv_size_max" != yes; then
32162
32163cat >>confdefs.h <<_ACEOF
32164#define SIZE_MAX $gl_cv_size_max
32165_ACEOF
32166
32167  fi
32168
32169
32170
32171
32172  gl_cv_func_snprintf_usable=no
32173  for ac_func in snprintf
32174do :
32175  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
32176if test "x$ac_cv_func_snprintf" = xyes; then :
32177  cat >>confdefs.h <<_ACEOF
32178#define HAVE_SNPRINTF 1
32179_ACEOF
32180
32181fi
32182done
32183
32184  if test $ac_cv_func_snprintf = yes; then
32185
32186
32187
32188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
32189$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
32190if ${gl_cv_func_snprintf_size1+:} false; then :
32191  $as_echo_n "(cached) " >&6
32192else
32193
32194      if test "$cross_compiling" = yes; then :
32195  case "$host_os" in
32196                            # Guess yes on Android.
32197           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
32198                            # Guess yes on native Windows.
32199           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
32200           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
32201         esac
32202
32203else
32204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32205/* end confdefs.h.  */
32206
32207#include <stdio.h>
32208#if HAVE_SNPRINTF
32209# define my_snprintf snprintf
32210#else
32211# include <stdarg.h>
32212static int my_snprintf (char *buf, int size, const char *format, ...)
32213{
32214  va_list args;
32215  int ret;
32216  va_start (args, format);
32217  ret = vsnprintf (buf, size, format, args);
32218  va_end (args);
32219  return ret;
32220}
32221#endif
32222int main()
32223{
32224  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
32225  my_snprintf (buf, 1, "%d", 12345);
32226  return buf[1] != 'E';
32227}
32228_ACEOF
32229if ac_fn_c_try_run "$LINENO"; then :
32230  gl_cv_func_snprintf_size1=yes
32231else
32232  gl_cv_func_snprintf_size1=no
32233fi
32234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32235  conftest.$ac_objext conftest.beam conftest.$ac_ext
32236fi
32237
32238
32239fi
32240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
32241$as_echo "$gl_cv_func_snprintf_size1" >&6; }
32242
32243    case "$gl_cv_func_snprintf_size1" in
32244      *yes)
32245
32246        case "$gl_cv_func_snprintf_retval_c99" in
32247          *yes)
32248
32249
32250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
32251$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
32252if ${gl_cv_func_printf_positions+:} false; then :
32253  $as_echo_n "(cached) " >&6
32254else
32255
32256      if test "$cross_compiling" = yes; then :
32257
32258         case "$host_os" in
32259           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
32260                            gl_cv_func_printf_positions="guessing no";;
32261           beos*)           gl_cv_func_printf_positions="guessing no";;
32262                            # Guess yes on Android.
32263           linux*-android*) gl_cv_func_printf_positions="guessing yes";;
32264                            # Guess no on native Windows.
32265           mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
32266           *)               gl_cv_func_printf_positions="guessing yes";;
32267         esac
32268
32269else
32270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32271/* end confdefs.h.  */
32272
32273#include <stdio.h>
32274#include <string.h>
32275/* The string "%2$d %1$d", with dollar characters protected from the shell's
32276   dollar expansion (possibly an autoconf bug).  */
32277static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
32278static char buf[100];
32279int main ()
32280{
32281  sprintf (buf, format, 33, 55);
32282  return (strcmp (buf, "55 33") != 0);
32283}
32284_ACEOF
32285if ac_fn_c_try_run "$LINENO"; then :
32286  gl_cv_func_printf_positions=yes
32287else
32288  gl_cv_func_printf_positions=no
32289fi
32290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32291  conftest.$ac_objext conftest.beam conftest.$ac_ext
32292fi
32293
32294
32295fi
32296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
32297$as_echo "$gl_cv_func_printf_positions" >&6; }
32298
32299            case "$gl_cv_func_printf_positions" in
32300              *yes)
32301                gl_cv_func_snprintf_usable=yes
32302                ;;
32303            esac
32304            ;;
32305        esac
32306        ;;
32307    esac
32308  fi
32309  if test $gl_cv_func_snprintf_usable = no; then
32310
32311
32312
32313
32314
32315
32316
32317
32318
32319
32320  gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
32321
32322  if test $ac_cv_func_snprintf = yes; then
32323    REPLACE_SNPRINTF=1
32324  else
32325
32326    if test $ac_cv_have_decl_snprintf = yes; then
32327                        REPLACE_SNPRINTF=1
32328    fi
32329  fi
32330  :
32331
32332  fi
32333
32334  if test $ac_cv_have_decl_snprintf = no; then
32335    HAVE_DECL_SNPRINTF=0
32336  fi
32337
32338
32339
32340
32341
32342
32343          GNULIB_SNPRINTF=1
32344
32345
32346
32347
32348
32349$as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
32350
32351
32352
32353
32354
32355cat >>confdefs.h <<_ACEOF
32356#define GNULIB_SNPRINTF 1
32357_ACEOF
32358
32359
32360
32361     ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
32362/* <sys/types.h> is not needed according to POSIX, but the
32363   <sys/socket.h> in i386-unknown-freebsd4.10 and
32364   powerpc-apple-darwin5.5 required it. */
32365#include <sys/types.h>
32366#if HAVE_SYS_SOCKET_H
32367# include <sys/socket.h>
32368#elif HAVE_WS2TCPIP_H
32369# include <ws2tcpip.h>
32370#endif
32371
32372"
32373if test "x$ac_cv_type_socklen_t" = xyes; then :
32374
32375else
32376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
32377$as_echo_n "checking for socklen_t equivalent... " >&6; }
32378if ${gl_cv_socklen_t_equiv+:} false; then :
32379  $as_echo_n "(cached) " >&6
32380else
32381  # Systems have either "struct sockaddr *" or
32382         # "void *" as the second argument to getpeername
32383         gl_cv_socklen_t_equiv=
32384         for arg2 in "struct sockaddr" void; do
32385           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
32386             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32387/* end confdefs.h.  */
32388#include <sys/types.h>
32389                   #include <sys/socket.h>
32390
32391                   int getpeername (int, $arg2 *, $t *);
32392int
32393main ()
32394{
32395$t len;
32396                  getpeername (0, 0, &len);
32397  ;
32398  return 0;
32399}
32400_ACEOF
32401if ac_fn_c_try_compile "$LINENO"; then :
32402  gl_cv_socklen_t_equiv="$t"
32403fi
32404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32405             test "$gl_cv_socklen_t_equiv" != "" && break
32406           done
32407           test "$gl_cv_socklen_t_equiv" != "" && break
32408         done
32409         if test "$gl_cv_socklen_t_equiv" = ""; then
32410           as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
32411         fi
32412
32413fi
32414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
32415$as_echo "$gl_cv_socklen_t_equiv" >&6; }
32416
32417cat >>confdefs.h <<_ACEOF
32418#define socklen_t $gl_cv_socklen_t_equiv
32419_ACEOF
32420
32421fi
32422
32423
32424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
32425$as_echo_n "checking for ssize_t... " >&6; }
32426if ${gt_cv_ssize_t+:} false; then :
32427  $as_echo_n "(cached) " >&6
32428else
32429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32430/* end confdefs.h.  */
32431#include <sys/types.h>
32432int
32433main ()
32434{
32435int x = sizeof (ssize_t *) + sizeof (ssize_t);
32436            return !x;
32437  ;
32438  return 0;
32439}
32440_ACEOF
32441if ac_fn_c_try_compile "$LINENO"; then :
32442  gt_cv_ssize_t=yes
32443else
32444  gt_cv_ssize_t=no
32445fi
32446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32447fi
32448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
32449$as_echo "$gt_cv_ssize_t" >&6; }
32450  if test $gt_cv_ssize_t = no; then
32451
32452$as_echo "#define ssize_t int" >>confdefs.h
32453
32454  fi
32455
32456
32457
32458
32459
32460  case "$host_os" in
32461    mingw*)
32462                  REPLACE_STAT=1
32463      ;;
32464    *)
32465                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
32466$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
32467if ${gl_cv_func_stat_file_slash+:} false; then :
32468  $as_echo_n "(cached) " >&6
32469else
32470  touch conftest.tmp
32471         # Assume that if we have lstat, we can also check symlinks.
32472         if test $ac_cv_func_lstat = yes; then
32473           ln -s conftest.tmp conftest.lnk
32474         fi
32475         if test "$cross_compiling" = yes; then :
32476  case "$host_os" in
32477                               # Guess yes on Linux systems.
32478              linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
32479                               # Guess yes on glibc systems.
32480              *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
32481                               # If we don't know, obey --enable-cross-guesses.
32482              *)               gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
32483            esac
32484
32485else
32486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32487/* end confdefs.h.  */
32488#include <sys/stat.h>
32489
32490int
32491main ()
32492{
32493int result = 0;
32494               struct stat st;
32495               if (!stat ("conftest.tmp/", &st))
32496                 result |= 1;
32497#if HAVE_LSTAT
32498               if (!stat ("conftest.lnk/", &st))
32499                 result |= 2;
32500#endif
32501               return result;
32502
32503  ;
32504  return 0;
32505}
32506_ACEOF
32507if ac_fn_c_try_run "$LINENO"; then :
32508  gl_cv_func_stat_file_slash=yes
32509else
32510  gl_cv_func_stat_file_slash=no
32511fi
32512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32513  conftest.$ac_objext conftest.beam conftest.$ac_ext
32514fi
32515
32516         rm -f conftest.tmp conftest.lnk
32517fi
32518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
32519$as_echo "$gl_cv_func_stat_file_slash" >&6; }
32520      case $gl_cv_func_stat_file_slash in
32521        *no)
32522          REPLACE_STAT=1
32523
32524$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
32525;;
32526      esac
32527      case $host_os in
32528                solaris*)
32529          REPLACE_FSTAT=1 ;;
32530      esac
32531      ;;
32532  esac
32533
32534  if test $REPLACE_STAT = 1; then
32535
32536
32537
32538
32539
32540
32541
32542
32543  gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
32544
32545    case "$host_os" in
32546      mingw*)
32547
32548
32549
32550
32551
32552
32553
32554
32555  gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
32556
32557        ;;
32558    esac
32559
32560
32561  :
32562
32563  fi
32564
32565
32566
32567
32568
32569          GNULIB_STAT=1
32570
32571
32572
32573
32574
32575$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
32576
32577
32578
32579
32580
32581
32582
32583  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>
32584     #include <sys/stat.h>
32585"
32586if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
32587
32588cat >>confdefs.h <<_ACEOF
32589#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
32590_ACEOF
32591
32592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
32593$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
32594if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
32595  $as_echo_n "(cached) " >&6
32596else
32597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32598/* end confdefs.h.  */
32599
32600            #include <sys/types.h>
32601            #include <sys/stat.h>
32602            #if HAVE_SYS_TIME_H
32603            # include <sys/time.h>
32604            #endif
32605            #include <time.h>
32606            struct timespec ts;
32607            struct stat st;
32608
32609int
32610main ()
32611{
32612
32613            st.st_atim = ts;
32614
32615  ;
32616  return 0;
32617}
32618_ACEOF
32619if ac_fn_c_try_compile "$LINENO"; then :
32620  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
32621else
32622  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
32623fi
32624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32625fi
32626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
32627$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
32628     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
32629
32630$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
32631
32632     fi
32633else
32634  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>
32635        #include <sys/stat.h>
32636"
32637if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
32638
32639cat >>confdefs.h <<_ACEOF
32640#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
32641_ACEOF
32642
32643
32644else
32645  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
32646           #include <sys/stat.h>
32647"
32648if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
32649
32650cat >>confdefs.h <<_ACEOF
32651#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
32652_ACEOF
32653
32654
32655else
32656  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>
32657              #include <sys/stat.h>
32658"
32659if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
32660
32661cat >>confdefs.h <<_ACEOF
32662#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
32663_ACEOF
32664
32665
32666fi
32667
32668fi
32669
32670fi
32671
32672fi
32673
32674
32675
32676
32677
32678  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>
32679     #include <sys/stat.h>
32680"
32681if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
32682
32683cat >>confdefs.h <<_ACEOF
32684#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
32685_ACEOF
32686
32687
32688else
32689  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
32690        #include <sys/stat.h>
32691"
32692if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
32693
32694cat >>confdefs.h <<_ACEOF
32695#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
32696_ACEOF
32697
32698
32699else
32700  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>
32701          #include <sys/stat.h>
32702"
32703if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
32704
32705cat >>confdefs.h <<_ACEOF
32706#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
32707_ACEOF
32708
32709
32710fi
32711
32712fi
32713
32714fi
32715
32716
32717
32718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
32719$as_echo_n "checking for working stdalign.h... " >&6; }
32720if ${gl_cv_header_working_stdalign_h+:} false; then :
32721  $as_echo_n "(cached) " >&6
32722else
32723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32724/* end confdefs.h.  */
32725#include <stdalign.h>
32726            #include <stddef.h>
32727
32728            /* Test that alignof yields a result consistent with offsetof.
32729               This catches GCC bug 52023
32730               <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
32731            #ifdef __cplusplus
32732               template <class t> struct alignof_helper { char a; t b; };
32733            # define ao(type) offsetof (alignof_helper<type>, b)
32734            #else
32735            # define ao(type) offsetof (struct { char a; type b; }, b)
32736            #endif
32737            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
32738            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
32739            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
32740
32741            /* Test _Alignas only on platforms where gnulib can help.  */
32742            #if \
32743                ((defined __cplusplus && 201103 <= __cplusplus) \
32744                 || (defined __APPLE__ && defined __MACH__ \
32745                     ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
32746                     : __GNUC__) \
32747                 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
32748                 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
32749                 || 1300 <= _MSC_VER)
32750              struct alignas_test { char c; char alignas (8) alignas_8; };
32751              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
32752                                ? 1 : -1];
32753            #endif
32754
32755int
32756main ()
32757{
32758
32759  ;
32760  return 0;
32761}
32762_ACEOF
32763if ac_fn_c_try_compile "$LINENO"; then :
32764  gl_cv_header_working_stdalign_h=yes
32765else
32766  gl_cv_header_working_stdalign_h=no
32767fi
32768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32769fi
32770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
32771$as_echo "$gl_cv_header_working_stdalign_h" >&6; }
32772
32773  if test $gl_cv_header_working_stdalign_h = yes; then
32774    STDALIGN_H=''
32775  else
32776    STDALIGN_H='stdalign.h'
32777  fi
32778
32779
32780   if test -n "$STDALIGN_H"; then
32781  GL_GENERATE_STDALIGN_H_TRUE=
32782  GL_GENERATE_STDALIGN_H_FALSE='#'
32783else
32784  GL_GENERATE_STDALIGN_H_TRUE='#'
32785  GL_GENERATE_STDALIGN_H_FALSE=
32786fi
32787
32788
32789
32790
32791
32792
32793          if test "$ac_cv_header_stdbool_h" = yes; then
32794    case "$host_os" in
32795      solaris*)
32796        if test -z "$GCC"; then
32797          STDBOOL_H='stdbool.h'
32798        else
32799          STDBOOL_H=''
32800        fi
32801        ;;
32802      *)
32803        STDBOOL_H=''
32804        ;;
32805    esac
32806  else
32807    STDBOOL_H='stdbool.h'
32808  fi
32809
32810   if test -n "$STDBOOL_H"; then
32811  GL_GENERATE_STDBOOL_H_TRUE=
32812  GL_GENERATE_STDBOOL_H_FALSE='#'
32813else
32814  GL_GENERATE_STDBOOL_H_TRUE='#'
32815  GL_GENERATE_STDBOOL_H_FALSE=
32816fi
32817
32818
32819  if test "$ac_cv_type__Bool" = yes; then
32820    HAVE__BOOL=1
32821  else
32822    HAVE__BOOL=0
32823  fi
32824
32825
32826
32827
32828
32829  STDDEF_H=
32830
32831      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
32832$as_echo_n "checking for good max_align_t... " >&6; }
32833if ${gl_cv_type_max_align_t+:} false; then :
32834  $as_echo_n "(cached) " >&6
32835else
32836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32837/* end confdefs.h.  */
32838#include <stddef.h>
32839            unsigned int s = sizeof (max_align_t);
32840            #if defined __GNUC__ || defined __IBM__ALIGNOF__
32841            int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
32842            int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
32843            #endif
32844
32845int
32846main ()
32847{
32848
32849  ;
32850  return 0;
32851}
32852_ACEOF
32853if ac_fn_c_try_compile "$LINENO"; then :
32854  gl_cv_type_max_align_t=yes
32855else
32856  gl_cv_type_max_align_t=no
32857fi
32858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32859
32860fi
32861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
32862$as_echo "$gl_cv_type_max_align_t" >&6; }
32863  if test $gl_cv_type_max_align_t = no; then
32864    HAVE_MAX_ALIGN_T=0
32865    STDDEF_H=stddef.h
32866  fi
32867
32868  if test $gt_cv_c_wchar_t = no; then
32869    HAVE_WCHAR_T=0
32870    STDDEF_H=stddef.h
32871  fi
32872
32873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
32874$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
32875if ${gl_cv_decl_null_works+:} false; then :
32876  $as_echo_n "(cached) " >&6
32877else
32878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32879/* end confdefs.h.  */
32880#include <stddef.h>
32881      int test[2 * (sizeof NULL == sizeof (void *)) -1];
32882
32883int
32884main ()
32885{
32886
32887  ;
32888  return 0;
32889}
32890_ACEOF
32891if ac_fn_c_try_compile "$LINENO"; then :
32892  gl_cv_decl_null_works=yes
32893else
32894  gl_cv_decl_null_works=no
32895fi
32896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32897fi
32898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
32899$as_echo "$gl_cv_decl_null_works" >&6; }
32900  if test $gl_cv_decl_null_works = no; then
32901    REPLACE_NULL=1
32902    STDDEF_H=stddef.h
32903  fi
32904
32905
32906   if test -n "$STDDEF_H"; then
32907  GL_GENERATE_STDDEF_H_TRUE=
32908  GL_GENERATE_STDDEF_H_FALSE='#'
32909else
32910  GL_GENERATE_STDDEF_H_TRUE='#'
32911  GL_GENERATE_STDDEF_H_FALSE=
32912fi
32913
32914  if test -n "$STDDEF_H"; then
32915
32916
32917
32918
32919
32920
32921
32922
32923     if test $gl_cv_have_include_next = yes; then
32924       gl_cv_next_stddef_h='<'stddef.h'>'
32925     else
32926       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
32927$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
32928if ${gl_cv_next_stddef_h+:} false; then :
32929  $as_echo_n "(cached) " >&6
32930else
32931
32932
32933
32934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32935/* end confdefs.h.  */
32936#include <stddef.h>
32937_ACEOF
32938                case "$host_os" in
32939    aix*) gl_absname_cpp="$ac_cpp -C" ;;
32940    *)    gl_absname_cpp="$ac_cpp" ;;
32941  esac
32942
32943  case "$host_os" in
32944    mingw*)
32945                                          gl_dirsep_regex='[/\\]'
32946      ;;
32947    *)
32948      gl_dirsep_regex='\/'
32949      ;;
32950  esac
32951      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32952  gl_header_literal_regex=`echo 'stddef.h' \
32953                           | sed -e "$gl_make_literal_regex_sed"`
32954  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32955      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32956      s|^/[^/]|//&|
32957      p
32958      q
32959    }'
32960
32961        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32962  sed -n "$gl_absolute_header_sed"`
32963
32964           gl_header=$gl_cv_absolute_stddef_h
32965           gl_cv_next_stddef_h='"'$gl_header'"'
32966
32967
32968fi
32969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
32970$as_echo "$gl_cv_next_stddef_h" >&6; }
32971     fi
32972     NEXT_STDDEF_H=$gl_cv_next_stddef_h
32973
32974     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32975       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32976       gl_next_as_first_directive='<'stddef.h'>'
32977     else
32978       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32979       gl_next_as_first_directive=$gl_cv_next_stddef_h
32980     fi
32981     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
32982
32983
32984
32985
32986  fi
32987
32988
32989
32990
32991  $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
32992
32993
32994
32995
32996
32997
32998
32999
33000
33001
33002     if test $gl_cv_have_include_next = yes; then
33003       gl_cv_next_stdio_h='<'stdio.h'>'
33004     else
33005       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
33006$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
33007if ${gl_cv_next_stdio_h+:} false; then :
33008  $as_echo_n "(cached) " >&6
33009else
33010
33011
33012
33013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33014/* end confdefs.h.  */
33015#include <stdio.h>
33016_ACEOF
33017                case "$host_os" in
33018    aix*) gl_absname_cpp="$ac_cpp -C" ;;
33019    *)    gl_absname_cpp="$ac_cpp" ;;
33020  esac
33021
33022  case "$host_os" in
33023    mingw*)
33024                                          gl_dirsep_regex='[/\\]'
33025      ;;
33026    *)
33027      gl_dirsep_regex='\/'
33028      ;;
33029  esac
33030      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33031  gl_header_literal_regex=`echo 'stdio.h' \
33032                           | sed -e "$gl_make_literal_regex_sed"`
33033  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33034      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33035      s|^/[^/]|//&|
33036      p
33037      q
33038    }'
33039
33040        gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33041  sed -n "$gl_absolute_header_sed"`
33042
33043           gl_header=$gl_cv_absolute_stdio_h
33044           gl_cv_next_stdio_h='"'$gl_header'"'
33045
33046
33047fi
33048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
33049$as_echo "$gl_cv_next_stdio_h" >&6; }
33050     fi
33051     NEXT_STDIO_H=$gl_cv_next_stdio_h
33052
33053     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33054       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33055       gl_next_as_first_directive='<'stdio.h'>'
33056     else
33057       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33058       gl_next_as_first_directive=$gl_cv_next_stdio_h
33059     fi
33060     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
33061
33062
33063
33064
33065
33066        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
33067$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
33068if ${gl_cv_func_printf_attribute_flavor+:} false; then :
33069  $as_echo_n "(cached) " >&6
33070else
33071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33072/* end confdefs.h.  */
33073
33074       #define __STDC_FORMAT_MACROS 1
33075       #include <stdio.h>
33076       #include <inttypes.h>
33077       /* For non-mingw systems, compilation will trivially succeed.
33078          For mingw, compilation will succeed for older mingw (system
33079          printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
33080       #if (defined _WIN32 && ! defined __CYGWIN__) && \
33081         (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
33082       extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
33083       #endif
33084
33085int
33086main ()
33087{
33088
33089  ;
33090  return 0;
33091}
33092_ACEOF
33093if ac_fn_c_try_compile "$LINENO"; then :
33094  gl_cv_func_printf_attribute_flavor=system
33095else
33096  gl_cv_func_printf_attribute_flavor=gnu
33097fi
33098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33099fi
33100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
33101$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
33102  if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
33103
33104$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
33105
33106  fi
33107
33108      GNULIB_FSCANF=1
33109
33110
33111cat >>confdefs.h <<_ACEOF
33112#define GNULIB_FSCANF 1
33113_ACEOF
33114
33115
33116  GNULIB_SCANF=1
33117
33118
33119cat >>confdefs.h <<_ACEOF
33120#define GNULIB_SCANF 1
33121_ACEOF
33122
33123
33124  GNULIB_FGETC=1
33125  GNULIB_GETC=1
33126  GNULIB_GETCHAR=1
33127  GNULIB_FGETS=1
33128  GNULIB_FREAD=1
33129
33130
33131      GNULIB_FPRINTF=1
33132  GNULIB_PRINTF=1
33133  GNULIB_VFPRINTF=1
33134  GNULIB_VPRINTF=1
33135  GNULIB_FPUTC=1
33136  GNULIB_PUTC=1
33137  GNULIB_PUTCHAR=1
33138  GNULIB_FPUTS=1
33139  GNULIB_PUTS=1
33140  GNULIB_FWRITE=1
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160     if test $gl_cv_have_include_next = yes; then
33161       gl_cv_next_stdlib_h='<'stdlib.h'>'
33162     else
33163       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
33164$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
33165if ${gl_cv_next_stdlib_h+:} false; then :
33166  $as_echo_n "(cached) " >&6
33167else
33168
33169
33170
33171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33172/* end confdefs.h.  */
33173#include <stdlib.h>
33174_ACEOF
33175                case "$host_os" in
33176    aix*) gl_absname_cpp="$ac_cpp -C" ;;
33177    *)    gl_absname_cpp="$ac_cpp" ;;
33178  esac
33179
33180  case "$host_os" in
33181    mingw*)
33182                                          gl_dirsep_regex='[/\\]'
33183      ;;
33184    *)
33185      gl_dirsep_regex='\/'
33186      ;;
33187  esac
33188      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33189  gl_header_literal_regex=`echo 'stdlib.h' \
33190                           | sed -e "$gl_make_literal_regex_sed"`
33191  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33192      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33193      s|^/[^/]|//&|
33194      p
33195      q
33196    }'
33197
33198        gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33199  sed -n "$gl_absolute_header_sed"`
33200
33201           gl_header=$gl_cv_absolute_stdlib_h
33202           gl_cv_next_stdlib_h='"'$gl_header'"'
33203
33204
33205fi
33206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
33207$as_echo "$gl_cv_next_stdlib_h" >&6; }
33208     fi
33209     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
33210
33211     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33212       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33213       gl_next_as_first_directive='<'stdlib.h'>'
33214     else
33215       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33216       gl_next_as_first_directive=$gl_cv_next_stdlib_h
33217     fi
33218     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233  for ac_func in strcasecmp
33234do :
33235  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
33236if test "x$ac_cv_func_strcasecmp" = xyes; then :
33237  cat >>confdefs.h <<_ACEOF
33238#define HAVE_STRCASECMP 1
33239_ACEOF
33240
33241fi
33242done
33243
33244  if test $ac_cv_func_strcasecmp = no; then
33245    HAVE_STRCASECMP=0
33246  fi
33247
33248
33249
33250  for ac_func in strncasecmp
33251do :
33252  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
33253if test "x$ac_cv_func_strncasecmp" = xyes; then :
33254  cat >>confdefs.h <<_ACEOF
33255#define HAVE_STRNCASECMP 1
33256_ACEOF
33257
33258fi
33259done
33260
33261  if test $ac_cv_func_strncasecmp = yes; then
33262    HAVE_STRNCASECMP=1
33263  else
33264    HAVE_STRNCASECMP=0
33265  fi
33266  ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
33267if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
33268  ac_have_decl=1
33269else
33270  ac_have_decl=0
33271fi
33272
33273cat >>confdefs.h <<_ACEOF
33274#define HAVE_DECL_STRNCASECMP $ac_have_decl
33275_ACEOF
33276
33277  if test $ac_cv_have_decl_strncasecmp = no; then
33278    HAVE_DECL_STRNCASECMP=0
33279  fi
33280
33281
33282  if test $HAVE_STRCASECMP = 0; then
33283
33284
33285
33286
33287
33288
33289
33290
33291  gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
33292
33293
33294  :
33295
33296  fi
33297  if test $HAVE_STRNCASECMP = 0; then
33298
33299
33300
33301
33302
33303
33304
33305
33306  gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
33307
33308
33309  :
33310
33311  fi
33312
33313
33314
33315
33316  if test $ac_cv_func_strdup = yes; then
33317    if test $gl_cv_func_malloc_posix != yes; then
33318      REPLACE_STRDUP=1
33319    fi
33320  fi
33321
33322  if test $ac_cv_have_decl_strdup = no; then
33323    HAVE_DECL_STRDUP=0
33324  fi
33325
33326  if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
33327
33328
33329
33330
33331
33332
33333
33334
33335  gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
33336
33337    :
33338  fi
33339
33340
33341
33342
33343
33344          GNULIB_STRDUP=1
33345
33346
33347
33348
33349
33350$as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
33351
33352
33353
33354
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366  if test $ac_cv_have_decl_strndup = no; then
33367    HAVE_DECL_STRNDUP=0
33368  fi
33369
33370  if test $ac_cv_func_strndup = yes; then
33371    HAVE_STRNDUP=1
33372    # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
33373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
33374$as_echo_n "checking for working strndup... " >&6; }
33375if ${gl_cv_func_strndup_works+:} false; then :
33376  $as_echo_n "(cached) " >&6
33377else
33378  if test "$cross_compiling" = yes; then :
33379
33380          case $host_os in
33381            aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
33382            *)               gl_cv_func_strndup_works="guessing yes";;
33383          esac
33384
33385else
33386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33387/* end confdefs.h.  */
33388
33389         #include <string.h>
33390                           #include <stdlib.h>
33391int
33392main ()
33393{
33394
33395#if !HAVE_DECL_STRNDUP
33396  extern
33397  #ifdef __cplusplus
33398  "C"
33399  #endif
33400  char *strndup (const char *, size_t);
33401#endif
33402  int result;
33403  char *s;
33404  s = strndup ("some longer string", 15);
33405  free (s);
33406  s = strndup ("shorter string", 13);
33407  result = s[13] != '\0';
33408  free (s);
33409  return result;
33410  ;
33411  return 0;
33412}
33413_ACEOF
33414if ac_fn_c_try_run "$LINENO"; then :
33415  gl_cv_func_strndup_works=yes
33416else
33417  gl_cv_func_strndup_works=no
33418fi
33419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33420  conftest.$ac_objext conftest.beam conftest.$ac_ext
33421fi
33422
33423fi
33424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
33425$as_echo "$gl_cv_func_strndup_works" >&6; }
33426    case $gl_cv_func_strndup_works in
33427      *no) REPLACE_STRNDUP=1 ;;
33428    esac
33429  else
33430    HAVE_STRNDUP=0
33431  fi
33432
33433  if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
33434
33435
33436
33437
33438
33439
33440
33441
33442  gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
33443
33444  fi
33445
33446
33447
33448
33449
33450          GNULIB_STRNDUP=1
33451
33452
33453
33454
33455
33456$as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466  if test $ac_cv_have_decl_strnlen = no; then
33467    HAVE_DECL_STRNLEN=0
33468  else
33469
33470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
33471$as_echo_n "checking for working strnlen... " >&6; }
33472if ${ac_cv_func_strnlen_working+:} false; then :
33473  $as_echo_n "(cached) " >&6
33474else
33475  if test "$cross_compiling" = yes; then :
33476  # Guess no on AIX systems, yes otherwise.
33477		case "$host_os" in
33478		  aix*) ac_cv_func_strnlen_working=no;;
33479		  *)    ac_cv_func_strnlen_working=yes;;
33480		esac
33481else
33482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33483/* end confdefs.h.  */
33484$ac_includes_default
33485int
33486main ()
33487{
33488
33489#define S "foobar"
33490#define S_LEN (sizeof S - 1)
33491
33492  /* At least one implementation is buggy: that of AIX 4.3 would
33493     give strnlen (S, 1) == 3.  */
33494
33495  int i;
33496  for (i = 0; i < S_LEN + 1; ++i)
33497    {
33498      int expected = i <= S_LEN ? i : S_LEN;
33499      if (strnlen (S, i) != expected)
33500	return 1;
33501    }
33502  return 0;
33503
33504  ;
33505  return 0;
33506}
33507_ACEOF
33508if ac_fn_c_try_run "$LINENO"; then :
33509  ac_cv_func_strnlen_working=yes
33510else
33511  ac_cv_func_strnlen_working=no
33512fi
33513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33514  conftest.$ac_objext conftest.beam conftest.$ac_ext
33515fi
33516
33517fi
33518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
33519$as_echo "$ac_cv_func_strnlen_working" >&6; }
33520test $ac_cv_func_strnlen_working = no && :
33521
33522
33523    if test $ac_cv_func_strnlen_working = no; then
33524      REPLACE_STRNLEN=1
33525    fi
33526  fi
33527
33528  if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
33529
33530
33531
33532
33533
33534
33535
33536
33537  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
33538
33539    :
33540  fi
33541
33542
33543
33544
33545
33546          GNULIB_STRNLEN=1
33547
33548
33549
33550
33551
33552$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
33553
33554
33555
33556
33557
33558
33559
33560     for ac_func in strtok_r
33561do :
33562  ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
33563if test "x$ac_cv_func_strtok_r" = xyes; then :
33564  cat >>confdefs.h <<_ACEOF
33565#define HAVE_STRTOK_R 1
33566_ACEOF
33567
33568fi
33569done
33570
33571  if test $ac_cv_func_strtok_r = yes; then
33572    HAVE_STRTOK_R=1
33573                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
33574$as_echo_n "checking whether strtok_r works... " >&6; }
33575if ${gl_cv_func_strtok_r_works+:} false; then :
33576  $as_echo_n "(cached) " >&6
33577else
33578  if test "$cross_compiling" = yes; then :
33579  case "$host_os" in
33580                           # Guess no on glibc systems.
33581            *-gnu* | gnu*) gl_cv_func_strtok_r_works="guessing no" ;;
33582                           # Guess yes on native Windows.
33583            mingw*)        gl_cv_func_strtok_r_works="guessing yes" ;;
33584            *)             gl_cv_func_strtok_r_works="guessing yes" ;;
33585          esac
33586
33587else
33588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33589/* end confdefs.h.  */
33590
33591              #ifndef __OPTIMIZE__
33592              # define __OPTIMIZE__ 1
33593              #endif
33594              #undef __OPTIMIZE_SIZE__
33595              #undef __NO_INLINE__
33596              #include <stdlib.h>
33597              #include <string.h>
33598
33599int
33600main ()
33601{
33602static const char dummy[] = "\177\01a";
33603              char delimiters[] = "xxxxxxxx";
33604              char *save_ptr = (char *) dummy;
33605              strtok_r (delimiters, "x", &save_ptr);
33606              strtok_r (NULL, "x", &save_ptr);
33607              return 0;
33608
33609  ;
33610  return 0;
33611}
33612
33613_ACEOF
33614if ac_fn_c_try_run "$LINENO"; then :
33615  gl_cv_func_strtok_r_works=yes
33616else
33617  gl_cv_func_strtok_r_works=no
33618fi
33619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33620  conftest.$ac_objext conftest.beam conftest.$ac_ext
33621fi
33622
33623
33624fi
33625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
33626$as_echo "$gl_cv_func_strtok_r_works" >&6; }
33627    case "$gl_cv_func_strtok_r_works" in
33628      *no)
33629                                UNDEFINE_STRTOK_R=1
33630        ;;
33631    esac
33632  else
33633    HAVE_STRTOK_R=0
33634  fi
33635
33636  if test $ac_cv_have_decl_strtok_r = no; then
33637    HAVE_DECL_STRTOK_R=0
33638  fi
33639
33640  if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
33641
33642
33643
33644
33645
33646
33647
33648
33649  gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
33650
33651
33652  :
33653
33654  fi
33655
33656
33657
33658
33659
33660          GNULIB_STRTOK_R=1
33661
33662
33663
33664
33665
33666$as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
33667
33668
33669
33670
33671
33672
33673
33674  for ac_func in strverscmp
33675do :
33676  ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
33677if test "x$ac_cv_func_strverscmp" = xyes; then :
33678  cat >>confdefs.h <<_ACEOF
33679#define HAVE_STRVERSCMP 1
33680_ACEOF
33681
33682fi
33683done
33684
33685  if test $ac_cv_func_strverscmp = no; then
33686    HAVE_STRVERSCMP=0
33687  fi
33688
33689  if test $HAVE_STRVERSCMP = 0; then
33690
33691
33692
33693
33694
33695
33696
33697
33698  gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
33699
33700
33701  :
33702
33703  fi
33704
33705
33706
33707
33708
33709          GNULIB_STRVERSCMP=1
33710
33711
33712
33713
33714
33715$as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735     if test $gl_cv_have_include_next = yes; then
33736       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33737     else
33738       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
33739$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
33740if ${gl_cv_next_sys_stat_h+:} false; then :
33741  $as_echo_n "(cached) " >&6
33742else
33743
33744             if test $ac_cv_header_sys_stat_h = yes; then
33745
33746
33747
33748
33749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33750/* end confdefs.h.  */
33751#include <sys/stat.h>
33752_ACEOF
33753                case "$host_os" in
33754    aix*) gl_absname_cpp="$ac_cpp -C" ;;
33755    *)    gl_absname_cpp="$ac_cpp" ;;
33756  esac
33757
33758  case "$host_os" in
33759    mingw*)
33760                                          gl_dirsep_regex='[/\\]'
33761      ;;
33762    *)
33763      gl_dirsep_regex='\/'
33764      ;;
33765  esac
33766      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33767  gl_header_literal_regex=`echo 'sys/stat.h' \
33768                           | sed -e "$gl_make_literal_regex_sed"`
33769  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33770      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33771      s|^/[^/]|//&|
33772      p
33773      q
33774    }'
33775
33776        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33777  sed -n "$gl_absolute_header_sed"`
33778
33779           gl_header=$gl_cv_absolute_sys_stat_h
33780           gl_cv_next_sys_stat_h='"'$gl_header'"'
33781          else
33782               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33783             fi
33784
33785
33786fi
33787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
33788$as_echo "$gl_cv_next_sys_stat_h" >&6; }
33789     fi
33790     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
33791
33792     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33793       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33794       gl_next_as_first_directive='<'sys/stat.h'>'
33795     else
33796       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33797       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
33798     fi
33799     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
33800
33801
33802
33803
33804
33805
33806
33807
33808    WINDOWS_STAT_TIMESPEC=0
33809
33810
33811
33812
33813
33814
33815
33816
33817      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
33818     #include <sys/stat.h>
33819"
33820if test "x$ac_cv_type_nlink_t" = xyes; then :
33821
33822else
33823
33824$as_echo "#define nlink_t int" >>confdefs.h
33825
33826fi
33827
33828
33829
33830
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853     if test $gl_cv_have_include_next = yes; then
33854       gl_cv_next_sys_uio_h='<'sys/uio.h'>'
33855     else
33856       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
33857$as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
33858if ${gl_cv_next_sys_uio_h+:} false; then :
33859  $as_echo_n "(cached) " >&6
33860else
33861
33862             if test $ac_cv_header_sys_uio_h = yes; then
33863
33864
33865
33866
33867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33868/* end confdefs.h.  */
33869#include <sys/uio.h>
33870_ACEOF
33871                case "$host_os" in
33872    aix*) gl_absname_cpp="$ac_cpp -C" ;;
33873    *)    gl_absname_cpp="$ac_cpp" ;;
33874  esac
33875
33876  case "$host_os" in
33877    mingw*)
33878                                          gl_dirsep_regex='[/\\]'
33879      ;;
33880    *)
33881      gl_dirsep_regex='\/'
33882      ;;
33883  esac
33884      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33885  gl_header_literal_regex=`echo 'sys/uio.h' \
33886                           | sed -e "$gl_make_literal_regex_sed"`
33887  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33888      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33889      s|^/[^/]|//&|
33890      p
33891      q
33892    }'
33893
33894        gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33895  sed -n "$gl_absolute_header_sed"`
33896
33897           gl_header=$gl_cv_absolute_sys_uio_h
33898           gl_cv_next_sys_uio_h='"'$gl_header'"'
33899          else
33900               gl_cv_next_sys_uio_h='<'sys/uio.h'>'
33901             fi
33902
33903
33904fi
33905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
33906$as_echo "$gl_cv_next_sys_uio_h" >&6; }
33907     fi
33908     NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
33909
33910     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33911       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33912       gl_next_as_first_directive='<'sys/uio.h'>'
33913     else
33914       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33915       gl_next_as_first_directive=$gl_cv_next_sys_uio_h
33916     fi
33917     NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
33918
33919
33920
33921
33922  if test $ac_cv_header_sys_uio_h = yes; then
33923    HAVE_SYS_UIO_H=1
33924  else
33925    HAVE_SYS_UIO_H=0
33926  fi
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940      ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's <time.h> provides the functions asctime_r, ctime_r,
33941         gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
33942         been included before.  */
33943      #if defined __MINGW32__
33944      # include <unistd.h>
33945      #endif
33946      #include <time.h>
33947
33948"
33949if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
33950  ac_have_decl=1
33951else
33952  ac_have_decl=0
33953fi
33954
33955cat >>confdefs.h <<_ACEOF
33956#define HAVE_DECL_LOCALTIME_R $ac_have_decl
33957_ACEOF
33958
33959  if test $ac_cv_have_decl_localtime_r = no; then
33960    HAVE_DECL_LOCALTIME_R=0
33961  fi
33962
33963
33964  if test $ac_cv_func_localtime_r = yes; then
33965    HAVE_LOCALTIME_R=1
33966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
33967$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
33968if ${gl_cv_time_r_posix+:} false; then :
33969  $as_echo_n "(cached) " >&6
33970else
33971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33972/* end confdefs.h.  */
33973/* mingw's <time.h> provides the functions asctime_r, ctime_r,
33974                 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
33975                 been included before.  */
33976              #if defined __MINGW32__
33977              # include <unistd.h>
33978              #endif
33979              #include <time.h>
33980
33981int
33982main ()
33983{
33984/* We don't need to append 'restrict's to the argument types,
33985                 even though the POSIX signature has the 'restrict's,
33986                 since C99 says they can't affect type compatibility.  */
33987              struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
33988              if (ptr) return 0;
33989              /* Check the return type is a pointer.
33990                 On HP-UX 10 it is 'int'.  */
33991              *localtime_r (0, 0);
33992  ;
33993  return 0;
33994}
33995
33996_ACEOF
33997if ac_fn_c_try_compile "$LINENO"; then :
33998  gl_cv_time_r_posix=yes
33999else
34000  gl_cv_time_r_posix=no
34001fi
34002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34003
34004fi
34005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
34006$as_echo "$gl_cv_time_r_posix" >&6; }
34007    if test $gl_cv_time_r_posix = yes; then
34008      REPLACE_LOCALTIME_R=0
34009    else
34010      REPLACE_LOCALTIME_R=1
34011    fi
34012  else
34013    HAVE_LOCALTIME_R=0
34014                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
34015$as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
34016if ${gl_cv_func_localtime_r_inline+:} false; then :
34017  $as_echo_n "(cached) " >&6
34018else
34019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34020/* end confdefs.h.  */
34021/* mingw's <time.h> provides the functions asctime_r, ctime_r,
34022                 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
34023                 been included before.  */
34024              #if defined __MINGW32__
34025              # include <unistd.h>
34026              #endif
34027              #include <time.h>
34028
34029int
34030main ()
34031{
34032time_t a;
34033              struct tm r;
34034              localtime_r (&a, &r);
34035
34036  ;
34037  return 0;
34038}
34039
34040_ACEOF
34041if ac_fn_c_try_link "$LINENO"; then :
34042  gl_cv_func_localtime_r_inline=yes
34043else
34044  gl_cv_func_localtime_r_inline=no
34045fi
34046rm -f core conftest.err conftest.$ac_objext \
34047    conftest$ac_exeext conftest.$ac_ext
34048
34049fi
34050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
34051$as_echo "$gl_cv_func_localtime_r_inline" >&6; }
34052    if test $gl_cv_func_localtime_r_inline = yes; then
34053      REPLACE_LOCALTIME_R=1
34054    fi
34055  fi
34056
34057  if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
34058
34059
34060
34061
34062
34063
34064
34065
34066  gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
34067
34068
34069  :
34070
34071  fi
34072
34073
34074
34075
34076
34077          GNULIB_TIME_R=1
34078
34079
34080
34081
34082
34083$as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099     if test $gl_cv_have_include_next = yes; then
34100       gl_cv_next_unistd_h='<'unistd.h'>'
34101     else
34102       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
34103$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
34104if ${gl_cv_next_unistd_h+:} false; then :
34105  $as_echo_n "(cached) " >&6
34106else
34107
34108             if test $ac_cv_header_unistd_h = yes; then
34109
34110
34111
34112
34113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34114/* end confdefs.h.  */
34115#include <unistd.h>
34116_ACEOF
34117                case "$host_os" in
34118    aix*) gl_absname_cpp="$ac_cpp -C" ;;
34119    *)    gl_absname_cpp="$ac_cpp" ;;
34120  esac
34121
34122  case "$host_os" in
34123    mingw*)
34124                                          gl_dirsep_regex='[/\\]'
34125      ;;
34126    *)
34127      gl_dirsep_regex='\/'
34128      ;;
34129  esac
34130      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34131  gl_header_literal_regex=`echo 'unistd.h' \
34132                           | sed -e "$gl_make_literal_regex_sed"`
34133  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34134      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34135      s|^/[^/]|//&|
34136      p
34137      q
34138    }'
34139
34140        gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34141  sed -n "$gl_absolute_header_sed"`
34142
34143           gl_header=$gl_cv_absolute_unistd_h
34144           gl_cv_next_unistd_h='"'$gl_header'"'
34145          else
34146               gl_cv_next_unistd_h='<'unistd.h'>'
34147             fi
34148
34149
34150fi
34151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
34152$as_echo "$gl_cv_next_unistd_h" >&6; }
34153     fi
34154     NEXT_UNISTD_H=$gl_cv_next_unistd_h
34155
34156     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34157       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34158       gl_next_as_first_directive='<'unistd.h'>'
34159     else
34160       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34161       gl_next_as_first_directive=$gl_cv_next_unistd_h
34162     fi
34163     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
34164
34165
34166
34167
34168  if test $ac_cv_header_unistd_h = yes; then
34169    HAVE_UNISTD_H=1
34170  else
34171    HAVE_UNISTD_H=0
34172  fi
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186  # Check whether --enable-valgrind-tests was given.
34187if test "${enable_valgrind_tests+set}" = set; then :
34188  enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
34189else
34190  opt_valgrind_tests=no
34191fi
34192
34193
34194  # Run self-tests under valgrind?
34195  if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
34196    for ac_prog in valgrind
34197do
34198  # Extract the first word of "$ac_prog", so it can be a program name with args.
34199set dummy $ac_prog; ac_word=$2
34200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34201$as_echo_n "checking for $ac_word... " >&6; }
34202if ${ac_cv_prog_VALGRIND+:} false; then :
34203  $as_echo_n "(cached) " >&6
34204else
34205  if test -n "$VALGRIND"; then
34206  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
34207else
34208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34209for as_dir in $PATH
34210do
34211  IFS=$as_save_IFS
34212  test -z "$as_dir" && as_dir=.
34213    for ac_exec_ext in '' $ac_executable_extensions; do
34214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34215    ac_cv_prog_VALGRIND="$ac_prog"
34216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34217    break 2
34218  fi
34219done
34220  done
34221IFS=$as_save_IFS
34222
34223fi
34224fi
34225VALGRIND=$ac_cv_prog_VALGRIND
34226if test -n "$VALGRIND"; then
34227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
34228$as_echo "$VALGRIND" >&6; }
34229else
34230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34231$as_echo "no" >&6; }
34232fi
34233
34234
34235  test -n "$VALGRIND" && break
34236done
34237
34238
34239    if test "$VALGRIND"; then
34240      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5
34241$as_echo_n "checking for valgrind options for tests... " >&6; }
34242if ${gl_cv_opt_valgrind_tests+:} false; then :
34243  $as_echo_n "(cached) " >&6
34244else
34245  gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full --track-origins=yes --gen-suppressions=all --suppressions=\$(srcdir)/suppressions.valgrind"
34246         $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 ||
34247           gl_cv_opt_valgrind_tests=no
34248fi
34249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5
34250$as_echo "$gl_cv_opt_valgrind_tests" >&6; }
34251
34252      if test "$gl_cv_opt_valgrind_tests" != no; then
34253        VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests"
34254      else
34255        VALGRIND=
34256      fi
34257    fi
34258  fi
34259
34260
34261
34262
34263  if test $ac_cv_func_vasnprintf = no; then
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
34305
34306  if test $ac_cv_func_vasnprintf = yes; then
34307
34308$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
34309
34310  fi
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
34321if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
34322
34323else
34324
34325$as_echo "#define ptrdiff_t long" >>confdefs.h
34326
34327
34328fi
34329
34330
34331
34332
34333
34334
34335
34336  fi
34337
34338
34339  for ac_func in vasprintf
34340do :
34341  ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
34342if test "x$ac_cv_func_vasprintf" = xyes; then :
34343  cat >>confdefs.h <<_ACEOF
34344#define HAVE_VASPRINTF 1
34345_ACEOF
34346
34347fi
34348done
34349
34350  if test $ac_cv_func_vasprintf = no; then
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360  gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
34361
34362
34363
34364
34365
34366
34367
34368
34369
34370  gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
34371
34372
34373  if test $ac_cv_func_vasprintf = yes; then
34374    REPLACE_VASPRINTF=1
34375  else
34376    HAVE_VASPRINTF=0
34377  fi
34378
34379
34380
34381
34382
34383
34384
34385
34386  fi
34387
34388
34389
34390
34391
34392
34393          GNULIB_VASPRINTF=1
34394
34395
34396
34397
34398
34399$as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
34400
34401
34402
34403
34404
34405  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
34406
34407
34408
34409  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
34410
34411
34412
34413  gl_cv_func_vsnprintf_usable=no
34414  for ac_func in vsnprintf
34415do :
34416  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
34417if test "x$ac_cv_func_vsnprintf" = xyes; then :
34418  cat >>confdefs.h <<_ACEOF
34419#define HAVE_VSNPRINTF 1
34420_ACEOF
34421
34422fi
34423done
34424
34425  if test $ac_cv_func_vsnprintf = yes; then
34426
34427
34428
34429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
34430$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
34431if ${gl_cv_func_snprintf_size1+:} false; then :
34432  $as_echo_n "(cached) " >&6
34433else
34434
34435      if test "$cross_compiling" = yes; then :
34436  case "$host_os" in
34437                            # Guess yes on Android.
34438           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
34439                            # Guess yes on native Windows.
34440           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
34441           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
34442         esac
34443
34444else
34445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34446/* end confdefs.h.  */
34447
34448#include <stdio.h>
34449#if HAVE_SNPRINTF
34450# define my_snprintf snprintf
34451#else
34452# include <stdarg.h>
34453static int my_snprintf (char *buf, int size, const char *format, ...)
34454{
34455  va_list args;
34456  int ret;
34457  va_start (args, format);
34458  ret = vsnprintf (buf, size, format, args);
34459  va_end (args);
34460  return ret;
34461}
34462#endif
34463int main()
34464{
34465  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
34466  my_snprintf (buf, 1, "%d", 12345);
34467  return buf[1] != 'E';
34468}
34469_ACEOF
34470if ac_fn_c_try_run "$LINENO"; then :
34471  gl_cv_func_snprintf_size1=yes
34472else
34473  gl_cv_func_snprintf_size1=no
34474fi
34475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34476  conftest.$ac_objext conftest.beam conftest.$ac_ext
34477fi
34478
34479
34480fi
34481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
34482$as_echo "$gl_cv_func_snprintf_size1" >&6; }
34483
34484    case "$gl_cv_func_snprintf_size1" in
34485      *yes)
34486
34487        case "$gl_cv_func_snprintf_retval_c99" in
34488          *yes)
34489
34490
34491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
34492$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
34493if ${gl_cv_func_printf_positions+:} false; then :
34494  $as_echo_n "(cached) " >&6
34495else
34496
34497      if test "$cross_compiling" = yes; then :
34498
34499         case "$host_os" in
34500           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
34501                            gl_cv_func_printf_positions="guessing no";;
34502           beos*)           gl_cv_func_printf_positions="guessing no";;
34503                            # Guess yes on Android.
34504           linux*-android*) gl_cv_func_printf_positions="guessing yes";;
34505                            # Guess no on native Windows.
34506           mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
34507           *)               gl_cv_func_printf_positions="guessing yes";;
34508         esac
34509
34510else
34511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34512/* end confdefs.h.  */
34513
34514#include <stdio.h>
34515#include <string.h>
34516/* The string "%2$d %1$d", with dollar characters protected from the shell's
34517   dollar expansion (possibly an autoconf bug).  */
34518static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
34519static char buf[100];
34520int main ()
34521{
34522  sprintf (buf, format, 33, 55);
34523  return (strcmp (buf, "55 33") != 0);
34524}
34525_ACEOF
34526if ac_fn_c_try_run "$LINENO"; then :
34527  gl_cv_func_printf_positions=yes
34528else
34529  gl_cv_func_printf_positions=no
34530fi
34531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34532  conftest.$ac_objext conftest.beam conftest.$ac_ext
34533fi
34534
34535
34536fi
34537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
34538$as_echo "$gl_cv_func_printf_positions" >&6; }
34539
34540            case "$gl_cv_func_printf_positions" in
34541              *yes)
34542                gl_cv_func_vsnprintf_usable=yes
34543                ;;
34544            esac
34545            ;;
34546        esac
34547        ;;
34548    esac
34549  fi
34550  if test $gl_cv_func_vsnprintf_usable = no; then
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
34562
34563  if test $ac_cv_func_vsnprintf = yes; then
34564    REPLACE_VSNPRINTF=1
34565  else
34566
34567    if test $ac_cv_have_decl_vsnprintf = yes; then
34568                        REPLACE_VSNPRINTF=1
34569    fi
34570  fi
34571  :
34572
34573  fi
34574
34575  if test $ac_cv_have_decl_vsnprintf = no; then
34576    HAVE_DECL_VSNPRINTF=0
34577  fi
34578
34579
34580
34581
34582
34583
34584          GNULIB_VSNPRINTF=1
34585
34586
34587
34588
34589
34590$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606     if test $gl_cv_have_include_next = yes; then
34607       gl_cv_next_wchar_h='<'wchar.h'>'
34608     else
34609       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
34610$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
34611if ${gl_cv_next_wchar_h+:} false; then :
34612  $as_echo_n "(cached) " >&6
34613else
34614
34615             if test $ac_cv_header_wchar_h = yes; then
34616
34617
34618
34619
34620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34621/* end confdefs.h.  */
34622#include <wchar.h>
34623_ACEOF
34624                case "$host_os" in
34625    aix*) gl_absname_cpp="$ac_cpp -C" ;;
34626    *)    gl_absname_cpp="$ac_cpp" ;;
34627  esac
34628
34629  case "$host_os" in
34630    mingw*)
34631                                          gl_dirsep_regex='[/\\]'
34632      ;;
34633    *)
34634      gl_dirsep_regex='\/'
34635      ;;
34636  esac
34637      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34638  gl_header_literal_regex=`echo 'wchar.h' \
34639                           | sed -e "$gl_make_literal_regex_sed"`
34640  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34641      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34642      s|^/[^/]|//&|
34643      p
34644      q
34645    }'
34646
34647        gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34648  sed -n "$gl_absolute_header_sed"`
34649
34650           gl_header=$gl_cv_absolute_wchar_h
34651           gl_cv_next_wchar_h='"'$gl_header'"'
34652          else
34653               gl_cv_next_wchar_h='<'wchar.h'>'
34654             fi
34655
34656
34657fi
34658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
34659$as_echo "$gl_cv_next_wchar_h" >&6; }
34660     fi
34661     NEXT_WCHAR_H=$gl_cv_next_wchar_h
34662
34663     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34664       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34665       gl_next_as_first_directive='<'wchar.h'>'
34666     else
34667       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34668       gl_next_as_first_directive=$gl_cv_next_wchar_h
34669     fi
34670     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
34671
34672
34673
34674
34675  if test $ac_cv_header_wchar_h = yes; then
34676    HAVE_WCHAR_H=1
34677  else
34678    HAVE_WCHAR_H=0
34679  fi
34680
34681
34682
34683
34684
34685  if test $gt_cv_c_wint_t = yes; then
34686    HAVE_WINT_T=1
34687  else
34688    HAVE_WINT_T=0
34689  fi
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702  for ac_header in stdint.h
34703do :
34704  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
34705if test "x$ac_cv_header_stdint_h" = xyes; then :
34706  cat >>confdefs.h <<_ACEOF
34707#define HAVE_STDINT_H 1
34708_ACEOF
34709
34710fi
34711
34712done
34713
34714
34715  # End of code from modules
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725  gltests_libdeps=
34726  gltests_ltlibdeps=
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737  gl_source_base='gl/tests'
34738  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
34739
34740  gl_module_indicator_condition=$gltests_WITNESS
34741
34742
34743  if test "$ac_cv_header_winsock2_h" = yes; then
34744
34745
34746
34747
34748
34749
34750
34751
34752  gltests_LIBOBJS="$gltests_LIBOBJS accept.$ac_objext"
34753
34754  fi
34755
34756
34757
34758
34759
34760    if test "$GNULIB_ACCEPT" != 1; then
34761        if test "$GNULIB_ACCEPT" = 0; then
34762      GNULIB_ACCEPT=$gl_module_indicator_condition
34763    else
34764      GNULIB_ACCEPT="($GNULIB_ACCEPT || $gl_module_indicator_condition)"
34765    fi
34766  fi
34767
34768
34769
34770
34771
34772$as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
34773
34774
34775
34776
34777  if test "$ac_cv_header_winsock2_h" = yes; then
34778
34779
34780
34781
34782
34783
34784
34785
34786  gltests_LIBOBJS="$gltests_LIBOBJS bind.$ac_objext"
34787
34788  fi
34789
34790
34791
34792
34793
34794    if test "$GNULIB_BIND" != 1; then
34795        if test "$GNULIB_BIND" = 0; then
34796      GNULIB_BIND=$gl_module_indicator_condition
34797    else
34798      GNULIB_BIND="($GNULIB_BIND || $gl_module_indicator_condition)"
34799    fi
34800  fi
34801
34802
34803
34804
34805
34806$as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
34807
34808
34809
34810
34811
34812
34813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
34814$as_echo_n "checking for a traditional french locale... " >&6; }
34815if ${gt_cv_locale_fr+:} false; then :
34816  $as_echo_n "(cached) " >&6
34817else
34818
34819    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34820/* end confdefs.h.  */
34821
34822#include <locale.h>
34823#include <time.h>
34824#if HAVE_LANGINFO_CODESET
34825# include <langinfo.h>
34826#endif
34827#include <stdlib.h>
34828#include <string.h>
34829struct tm t;
34830char buf[16];
34831int main () {
34832  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
34833     imitates locale dependent behaviour by looking at the environment
34834     variables, and all locales use the UTF-8 encoding.  */
34835#if defined __BEOS__ || defined __HAIKU__
34836  return 1;
34837#else
34838  /* Check whether the given locale name is recognized by the system.  */
34839# if defined _WIN32 && !defined __CYGWIN__
34840  /* On native Windows, setlocale(category, "") looks at the system settings,
34841     not at the environment variables.  Also, when an encoding suffix such
34842     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
34843     category of the locale to "C".  */
34844  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
34845      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
34846    return 1;
34847# else
34848  if (setlocale (LC_ALL, "") == NULL) return 1;
34849# endif
34850  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
34851     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
34852     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
34853     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
34854     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
34855     some unit tests fail.
34856     On MirBSD 10, when an unsupported locale is specified, setlocale()
34857     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
34858# if HAVE_LANGINFO_CODESET
34859  {
34860    const char *cs = nl_langinfo (CODESET);
34861    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
34862        || strcmp (cs, "UTF-8") == 0)
34863      return 1;
34864  }
34865# endif
34866# ifdef __CYGWIN__
34867  /* On Cygwin, avoid locale names without encoding suffix, because the
34868     locale_charset() function relies on the encoding suffix.  Note that
34869     LC_ALL is set on the command line.  */
34870  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
34871# endif
34872  /* Check whether in the abbreviation of the second month, the second
34873     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
34874     one byte long. This excludes the UTF-8 encoding.  */
34875  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
34876  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
34877# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
34878  /* Check whether the decimal separator is a comma.
34879     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
34880     are nl_langinfo(RADIXCHAR) are both ".".  */
34881  if (localeconv () ->decimal_point[0] != ',') return 1;
34882# endif
34883  return 0;
34884#endif
34885}
34886
34887_ACEOF
34888    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
34889  (eval $ac_link) 2>&5
34890  ac_status=$?
34891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34892  test $ac_status = 0; } && test -s conftest$ac_exeext; then
34893      case "$host_os" in
34894        # Handle native Windows specially, because there setlocale() interprets
34895        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
34896        # "fr" or "fra" as "French" or "French_France.1252",
34897        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
34898        # "ja" as "Japanese" or "Japanese_Japan.932",
34899        # and similar.
34900        mingw*)
34901          # Test for the native Windows locale name.
34902          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
34903            gt_cv_locale_fr=French_France.1252
34904          else
34905            # None found.
34906            gt_cv_locale_fr=none
34907          fi
34908          ;;
34909        *)
34910          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
34911          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
34912          # configure script would override the LC_ALL setting. Likewise for
34913          # LC_CTYPE, which is also set at the beginning of the configure script.
34914          # Test for the usual locale name.
34915          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
34916            gt_cv_locale_fr=fr_FR
34917          else
34918            # Test for the locale name with explicit encoding suffix.
34919            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
34920              gt_cv_locale_fr=fr_FR.ISO-8859-1
34921            else
34922              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
34923              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
34924                gt_cv_locale_fr=fr_FR.ISO8859-1
34925              else
34926                # Test for the HP-UX locale name.
34927                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
34928                  gt_cv_locale_fr=fr_FR.iso88591
34929                else
34930                  # Test for the Solaris 7 locale name.
34931                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
34932                    gt_cv_locale_fr=fr
34933                  else
34934                    # None found.
34935                    gt_cv_locale_fr=none
34936                  fi
34937                fi
34938              fi
34939            fi
34940          fi
34941          ;;
34942      esac
34943    fi
34944    rm -fr conftest*
34945
34946fi
34947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
34948$as_echo "$gt_cv_locale_fr" >&6; }
34949  LOCALE_FR=$gt_cv_locale_fr
34950
34951
34952
34953
34954
34955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
34956$as_echo_n "checking for a turkish Unicode locale... " >&6; }
34957if ${gt_cv_locale_tr_utf8+:} false; then :
34958  $as_echo_n "(cached) " >&6
34959else
34960
34961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34962/* end confdefs.h.  */
34963
34964#include <locale.h>
34965#include <time.h>
34966#if HAVE_LANGINFO_CODESET
34967# include <langinfo.h>
34968#endif
34969#include <stdlib.h>
34970#include <string.h>
34971#include <wctype.h>
34972struct tm t;
34973char buf[16];
34974int main () {
34975  /* On BeOS, locales are not implemented in libc.  Rather, libintl
34976     imitates locale dependent behaviour by looking at the environment
34977     variables, and all locales use the UTF-8 encoding.  But BeOS does not
34978     implement the Turkish upper-/lowercase mappings.  Therefore, let this
34979     program return 1 on BeOS.  */
34980  /* Check whether the given locale name is recognized by the system.  */
34981#if defined _WIN32 && !defined __CYGWIN__
34982  /* On native Windows, setlocale(category, "") looks at the system settings,
34983     not at the environment variables.  Also, when an encoding suffix such
34984     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
34985     category of the locale to "C".  */
34986  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
34987      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
34988    return 1;
34989#else
34990  if (setlocale (LC_ALL, "") == NULL) return 1;
34991#endif
34992  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
34993     On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
34994     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
34995     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
34996     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
34997     some unit tests fail.  */
34998#if HAVE_LANGINFO_CODESET
34999  {
35000    const char *cs = nl_langinfo (CODESET);
35001    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
35002      return 1;
35003  }
35004#endif
35005#ifdef __CYGWIN__
35006  /* On Cygwin, avoid locale names without encoding suffix, because the
35007     locale_charset() function relies on the encoding suffix.  Note that
35008     LC_ALL is set on the command line.  */
35009  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
35010#endif
35011  /* Check whether in the abbreviation of the eighth month, the second
35012     character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
35013     two bytes long, with UTF-8 encoding.  */
35014  t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
35015  if (strftime (buf, sizeof (buf), "%b", &t) < 4
35016      || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
35017    return 1;
35018  /* Check whether the upper-/lowercase mappings are as expected for
35019     Turkish.  */
35020  if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
35021      || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
35022    return 1;
35023  return 0;
35024}
35025
35026_ACEOF
35027    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
35028  (eval $ac_link) 2>&5
35029  ac_status=$?
35030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35031  test $ac_status = 0; } && test -s conftest$ac_exeext; then
35032      case "$host_os" in
35033        # Handle native Windows specially, because there setlocale() interprets
35034        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
35035        # "fr" or "fra" as "French" or "French_France.1252",
35036        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
35037        # "ja" as "Japanese" or "Japanese_Japan.932",
35038        # and similar.
35039        mingw*)
35040          # Test for the hypothetical native Windows locale name.
35041          if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
35042            gt_cv_locale_tr_utf8=Turkish_Turkey.65001
35043          else
35044            # None found.
35045            gt_cv_locale_tr_utf8=none
35046          fi
35047          ;;
35048        *)
35049          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
35050          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
35051          # configure script would override the LC_ALL setting. Likewise for
35052          # LC_CTYPE, which is also set at the beginning of the configure script.
35053          # Test for the usual locale name.
35054          if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
35055            gt_cv_locale_tr_utf8=tr_TR
35056          else
35057            # Test for the locale name with explicit encoding suffix.
35058            if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
35059              gt_cv_locale_tr_utf8=tr_TR.UTF-8
35060            else
35061              # Test for the Solaris 7 locale name.
35062              if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
35063                gt_cv_locale_tr_utf8=tr.UTF-8
35064              else
35065                # None found.
35066                gt_cv_locale_tr_utf8=none
35067              fi
35068            fi
35069          fi
35070          ;;
35071      esac
35072    else
35073      gt_cv_locale_tr_utf8=none
35074    fi
35075    rm -fr conftest*
35076
35077fi
35078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
35079$as_echo "$gt_cv_locale_tr_utf8" >&6; }
35080  LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
35081
35082
35083
35084  if test "$ac_cv_header_winsock2_h" = yes; then
35085
35086
35087
35088
35089
35090
35091
35092
35093  gltests_LIBOBJS="$gltests_LIBOBJS connect.$ac_objext"
35094
35095  fi
35096
35097
35098
35099
35100
35101    if test "$GNULIB_CONNECT" != 1; then
35102        if test "$GNULIB_CONNECT" = 0; then
35103      GNULIB_CONNECT=$gl_module_indicator_condition
35104    else
35105      GNULIB_CONNECT="($GNULIB_CONNECT || $gl_module_indicator_condition)"
35106    fi
35107  fi
35108
35109
35110
35111
35112
35113$as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128     if test $gl_cv_have_include_next = yes; then
35129       gl_cv_next_ctype_h='<'ctype.h'>'
35130     else
35131       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
35132$as_echo_n "checking absolute name of <ctype.h>... " >&6; }
35133if ${gl_cv_next_ctype_h+:} false; then :
35134  $as_echo_n "(cached) " >&6
35135else
35136
35137
35138
35139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35140/* end confdefs.h.  */
35141#include <ctype.h>
35142_ACEOF
35143                case "$host_os" in
35144    aix*) gl_absname_cpp="$ac_cpp -C" ;;
35145    *)    gl_absname_cpp="$ac_cpp" ;;
35146  esac
35147
35148  case "$host_os" in
35149    mingw*)
35150                                          gl_dirsep_regex='[/\\]'
35151      ;;
35152    *)
35153      gl_dirsep_regex='\/'
35154      ;;
35155  esac
35156      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35157  gl_header_literal_regex=`echo 'ctype.h' \
35158                           | sed -e "$gl_make_literal_regex_sed"`
35159  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35160      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35161      s|^/[^/]|//&|
35162      p
35163      q
35164    }'
35165
35166        gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35167  sed -n "$gl_absolute_header_sed"`
35168
35169           gl_header=$gl_cv_absolute_ctype_h
35170           gl_cv_next_ctype_h='"'$gl_header'"'
35171
35172
35173fi
35174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
35175$as_echo "$gl_cv_next_ctype_h" >&6; }
35176     fi
35177     NEXT_CTYPE_H=$gl_cv_next_ctype_h
35178
35179     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35180       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35181       gl_next_as_first_directive='<'ctype.h'>'
35182     else
35183       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35184       gl_next_as_first_directive=$gl_cv_next_ctype_h
35185     fi
35186     NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive
35187
35188
35189
35190
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200
35201
35202    if test "$GNULIB_ENVIRON" != 1; then
35203        if test "$GNULIB_ENVIRON" = 0; then
35204      GNULIB_ENVIRON=$gl_module_indicator_condition
35205    else
35206      GNULIB_ENVIRON="($GNULIB_ENVIRON || $gl_module_indicator_condition)"
35207    fi
35208  fi
35209
35210
35211
35212
35213
35214$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
35215
35216
35217
35218
35219
35220
35221
35222    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
35223      REPLACE_FDOPEN=1
35224    fi
35225
35226  if test $REPLACE_FDOPEN = 0; then
35227        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
35228$as_echo_n "checking whether fdopen sets errno... " >&6; }
35229if ${gl_cv_func_fdopen_works+:} false; then :
35230  $as_echo_n "(cached) " >&6
35231else
35232
35233        if test "$cross_compiling" = yes; then :
35234  case "$host_os" in
35235             mingw*) gl_cv_func_fdopen_works="guessing no" ;;
35236             *)      gl_cv_func_fdopen_works="guessing yes" ;;
35237           esac
35238
35239else
35240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35241/* end confdefs.h.  */
35242
35243#include <stdio.h>
35244#include <errno.h>
35245int
35246main (void)
35247{
35248  FILE *fp;
35249  errno = 0;
35250  fp = fdopen (-1, "r");
35251  if (fp == NULL && errno == 0)
35252    return 1;
35253  return 0;
35254}
35255_ACEOF
35256if ac_fn_c_try_run "$LINENO"; then :
35257  gl_cv_func_fdopen_works=yes
35258else
35259  gl_cv_func_fdopen_works=no
35260fi
35261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35262  conftest.$ac_objext conftest.beam conftest.$ac_ext
35263fi
35264
35265
35266fi
35267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
35268$as_echo "$gl_cv_func_fdopen_works" >&6; }
35269    case "$gl_cv_func_fdopen_works" in
35270      *no) REPLACE_FDOPEN=1 ;;
35271    esac
35272  fi
35273
35274  if test $REPLACE_FDOPEN = 1; then
35275
35276
35277
35278
35279
35280
35281
35282
35283  gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
35284
35285
35286  fi
35287
35288
35289
35290
35291
35292    if test "$GNULIB_FDOPEN" != 1; then
35293        if test "$GNULIB_FDOPEN" = 0; then
35294      GNULIB_FDOPEN=$gl_module_indicator_condition
35295    else
35296      GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
35297    fi
35298  fi
35299
35300
35301
35302
35303
35304$as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
35305
35306
35307
35308
35309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
35310$as_echo_n "checking for flexible array member... " >&6; }
35311if ${ac_cv_c_flexmember+:} false; then :
35312  $as_echo_n "(cached) " >&6
35313else
35314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35315/* end confdefs.h.  */
35316#include <stdlib.h>
35317            #include <stdio.h>
35318            #include <stddef.h>
35319            struct m { struct m *next, **list; char name[]; };
35320            struct s { struct s *p; struct m *m; int n; double d[]; };
35321int
35322main ()
35323{
35324int m = getchar ();
35325            size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
35326            nbytes += sizeof (struct s) - 1;
35327            nbytes -= nbytes % sizeof (struct s);
35328            struct s *p = malloc (nbytes);
35329            p->p = p;
35330            p->m = NULL;
35331            p->d[0] = 0.0;
35332            return p->d != (double *) NULL;
35333  ;
35334  return 0;
35335}
35336_ACEOF
35337if ac_fn_c_try_compile "$LINENO"; then :
35338  ac_cv_c_flexmember=yes
35339else
35340  ac_cv_c_flexmember=no
35341fi
35342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35343fi
35344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
35345$as_echo "$ac_cv_c_flexmember" >&6; }
35346  if test $ac_cv_c_flexmember = yes; then
35347
35348$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
35349
35350  else
35351    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
35352
35353  fi
35354
35355
35356
35357
35358
35359
35360  if test $ac_cv_func_ftruncate = yes; then
35361
35362
35363      case "$host_os" in
35364        mingw*)
35365                                                                      REPLACE_FTRUNCATE=1
35366          ;;
35367      esac
35368
35369  else
35370    HAVE_FTRUNCATE=0
35371  fi
35372
35373  if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
35374
35375
35376
35377
35378
35379
35380
35381
35382  gltests_LIBOBJS="$gltests_LIBOBJS ftruncate.$ac_objext"
35383
35384
35385  for ac_func in chsize
35386do :
35387  ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
35388if test "x$ac_cv_func_chsize" = xyes; then :
35389  cat >>confdefs.h <<_ACEOF
35390#define HAVE_CHSIZE 1
35391_ACEOF
35392
35393fi
35394done
35395
35396
35397  fi
35398
35399
35400
35401
35402
35403    if test "$GNULIB_FTRUNCATE" != 1; then
35404        if test "$GNULIB_FTRUNCATE" = 0; then
35405      GNULIB_FTRUNCATE=$gl_module_indicator_condition
35406    else
35407      GNULIB_FTRUNCATE="($GNULIB_FTRUNCATE || $gl_module_indicator_condition)"
35408    fi
35409  fi
35410
35411
35412
35413
35414
35415$as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
35416
35417
35418
35419
35420
35421
35422
35423
35424  case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
35425  *yes,yes) ;;
35426  *)
35427        REPLACE_GETCWD=1
35428    ;;
35429  esac
35430
35431  if test $REPLACE_GETCWD = 1; then
35432
35433
35434
35435
35436
35437
35438
35439
35440  gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext"
35441
35442  fi
35443
35444
35445
35446
35447
35448    if test "$GNULIB_GETCWD" != 1; then
35449        if test "$GNULIB_GETCWD" = 0; then
35450      GNULIB_GETCWD=$gl_module_indicator_condition
35451    else
35452      GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)"
35453    fi
35454  fi
35455
35456
35457
35458
35459
35460$as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
35461
35462
35463
35464
35465
35466
35467
35468      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
35469$as_echo_n "checking for getpagesize... " >&6; }
35470if ${gl_cv_func_getpagesize+:} false; then :
35471  $as_echo_n "(cached) " >&6
35472else
35473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35474/* end confdefs.h.  */
35475#include <unistd.h>
35476int
35477main ()
35478{
35479return getpagesize();
35480  ;
35481  return 0;
35482}
35483
35484_ACEOF
35485if ac_fn_c_try_link "$LINENO"; then :
35486  gl_cv_func_getpagesize=yes
35487else
35488  gl_cv_func_getpagesize=no
35489fi
35490rm -f core conftest.err conftest.$ac_objext \
35491    conftest$ac_exeext conftest.$ac_ext
35492
35493fi
35494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
35495$as_echo "$gl_cv_func_getpagesize" >&6; }
35496
35497  if test $gl_cv_func_getpagesize = no; then
35498    HAVE_GETPAGESIZE=0
35499    for ac_header in OS.h
35500do :
35501  ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
35502if test "x$ac_cv_header_OS_h" = xyes; then :
35503  cat >>confdefs.h <<_ACEOF
35504#define HAVE_OS_H 1
35505_ACEOF
35506
35507fi
35508
35509done
35510
35511    if test $ac_cv_header_OS_h = yes; then
35512      HAVE_OS_H=1
35513    fi
35514    for ac_header in sys/param.h
35515do :
35516  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
35517if test "x$ac_cv_header_sys_param_h" = xyes; then :
35518  cat >>confdefs.h <<_ACEOF
35519#define HAVE_SYS_PARAM_H 1
35520_ACEOF
35521
35522fi
35523
35524done
35525
35526    if test $ac_cv_header_sys_param_h = yes; then
35527      HAVE_SYS_PARAM_H=1
35528    fi
35529  fi
35530  case "$host_os" in
35531    mingw*)
35532      REPLACE_GETPAGESIZE=1
35533      ;;
35534  esac
35535      ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
35536if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
35537
35538else
35539  HAVE_DECL_GETPAGESIZE=0
35540fi
35541
35542
35543  if test $REPLACE_GETPAGESIZE = 1; then
35544
35545
35546
35547
35548
35549
35550
35551
35552  gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
35553
35554  fi
35555
35556
35557
35558
35559
35560    if test "$GNULIB_GETPAGESIZE" != 1; then
35561        if test "$GNULIB_GETPAGESIZE" = 0; then
35562      GNULIB_GETPAGESIZE=$gl_module_indicator_condition
35563    else
35564      GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
35565    fi
35566  fi
35567
35568
35569
35570
35571
35572$as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
35573
35574
35575
35576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
35577$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
35578if ${ac_cv_c_bigendian+:} false; then :
35579  $as_echo_n "(cached) " >&6
35580else
35581  ac_cv_c_bigendian=unknown
35582    # See if we're dealing with a universal compiler.
35583    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35584/* end confdefs.h.  */
35585#ifndef __APPLE_CC__
35586	       not a universal capable compiler
35587	     #endif
35588	     typedef int dummy;
35589
35590_ACEOF
35591if ac_fn_c_try_compile "$LINENO"; then :
35592
35593	# Check for potential -arch flags.  It is not universal unless
35594	# there are at least two -arch flags with different values.
35595	ac_arch=
35596	ac_prev=
35597	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
35598	 if test -n "$ac_prev"; then
35599	   case $ac_word in
35600	     i?86 | x86_64 | ppc | ppc64)
35601	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
35602		 ac_arch=$ac_word
35603	       else
35604		 ac_cv_c_bigendian=universal
35605		 break
35606	       fi
35607	       ;;
35608	   esac
35609	   ac_prev=
35610	 elif test "x$ac_word" = "x-arch"; then
35611	   ac_prev=arch
35612	 fi
35613       done
35614fi
35615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35616    if test $ac_cv_c_bigendian = unknown; then
35617      # See if sys/param.h defines the BYTE_ORDER macro.
35618      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35619/* end confdefs.h.  */
35620#include <sys/types.h>
35621	     #include <sys/param.h>
35622
35623int
35624main ()
35625{
35626#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
35627		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
35628		     && LITTLE_ENDIAN)
35629	      bogus endian macros
35630	     #endif
35631
35632  ;
35633  return 0;
35634}
35635_ACEOF
35636if ac_fn_c_try_compile "$LINENO"; then :
35637  # It does; now see whether it defined to BIG_ENDIAN or not.
35638	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35639/* end confdefs.h.  */
35640#include <sys/types.h>
35641		#include <sys/param.h>
35642
35643int
35644main ()
35645{
35646#if BYTE_ORDER != BIG_ENDIAN
35647		 not big endian
35648		#endif
35649
35650  ;
35651  return 0;
35652}
35653_ACEOF
35654if ac_fn_c_try_compile "$LINENO"; then :
35655  ac_cv_c_bigendian=yes
35656else
35657  ac_cv_c_bigendian=no
35658fi
35659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35660fi
35661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35662    fi
35663    if test $ac_cv_c_bigendian = unknown; then
35664      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
35665      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35666/* end confdefs.h.  */
35667#include <limits.h>
35668
35669int
35670main ()
35671{
35672#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
35673	      bogus endian macros
35674	     #endif
35675
35676  ;
35677  return 0;
35678}
35679_ACEOF
35680if ac_fn_c_try_compile "$LINENO"; then :
35681  # It does; now see whether it defined to _BIG_ENDIAN or not.
35682	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35683/* end confdefs.h.  */
35684#include <limits.h>
35685
35686int
35687main ()
35688{
35689#ifndef _BIG_ENDIAN
35690		 not big endian
35691		#endif
35692
35693  ;
35694  return 0;
35695}
35696_ACEOF
35697if ac_fn_c_try_compile "$LINENO"; then :
35698  ac_cv_c_bigendian=yes
35699else
35700  ac_cv_c_bigendian=no
35701fi
35702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35703fi
35704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35705    fi
35706    if test $ac_cv_c_bigendian = unknown; then
35707      # Compile a test program.
35708      if test "$cross_compiling" = yes; then :
35709  # Try to guess by grepping values from an object file.
35710	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35711/* end confdefs.h.  */
35712short int ascii_mm[] =
35713		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35714		short int ascii_ii[] =
35715		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35716		int use_ascii (int i) {
35717		  return ascii_mm[i] + ascii_ii[i];
35718		}
35719		short int ebcdic_ii[] =
35720		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35721		short int ebcdic_mm[] =
35722		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35723		int use_ebcdic (int i) {
35724		  return ebcdic_mm[i] + ebcdic_ii[i];
35725		}
35726		extern int foo;
35727
35728int
35729main ()
35730{
35731return use_ascii (foo) == use_ebcdic (foo);
35732  ;
35733  return 0;
35734}
35735_ACEOF
35736if ac_fn_c_try_compile "$LINENO"; then :
35737  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
35738	      ac_cv_c_bigendian=yes
35739	    fi
35740	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35741	      if test "$ac_cv_c_bigendian" = unknown; then
35742		ac_cv_c_bigendian=no
35743	      else
35744		# finding both strings is unlikely to happen, but who knows?
35745		ac_cv_c_bigendian=unknown
35746	      fi
35747	    fi
35748fi
35749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35750else
35751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35752/* end confdefs.h.  */
35753$ac_includes_default
35754int
35755main ()
35756{
35757
35758	     /* Are we little or big endian?  From Harbison&Steele.  */
35759	     union
35760	     {
35761	       long int l;
35762	       char c[sizeof (long int)];
35763	     } u;
35764	     u.l = 1;
35765	     return u.c[sizeof (long int) - 1] == 1;
35766
35767  ;
35768  return 0;
35769}
35770_ACEOF
35771if ac_fn_c_try_run "$LINENO"; then :
35772  ac_cv_c_bigendian=no
35773else
35774  ac_cv_c_bigendian=yes
35775fi
35776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35777  conftest.$ac_objext conftest.beam conftest.$ac_ext
35778fi
35779
35780    fi
35781fi
35782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
35783$as_echo "$ac_cv_c_bigendian" >&6; }
35784 case $ac_cv_c_bigendian in #(
35785   yes)
35786     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
35787;; #(
35788   no)
35789      ;; #(
35790   universal)
35791
35792$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
35793
35794     ;; #(
35795   *)
35796     as_fn_error $? "unknown endianness
35797 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
35798 esac
35799
35800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
35801$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
35802if ${ac_cv_c_bigendian+:} false; then :
35803  $as_echo_n "(cached) " >&6
35804else
35805  ac_cv_c_bigendian=unknown
35806    # See if we're dealing with a universal compiler.
35807    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35808/* end confdefs.h.  */
35809#ifndef __APPLE_CC__
35810	       not a universal capable compiler
35811	     #endif
35812	     typedef int dummy;
35813
35814_ACEOF
35815if ac_fn_c_try_compile "$LINENO"; then :
35816
35817	# Check for potential -arch flags.  It is not universal unless
35818	# there are at least two -arch flags with different values.
35819	ac_arch=
35820	ac_prev=
35821	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
35822	 if test -n "$ac_prev"; then
35823	   case $ac_word in
35824	     i?86 | x86_64 | ppc | ppc64)
35825	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
35826		 ac_arch=$ac_word
35827	       else
35828		 ac_cv_c_bigendian=universal
35829		 break
35830	       fi
35831	       ;;
35832	   esac
35833	   ac_prev=
35834	 elif test "x$ac_word" = "x-arch"; then
35835	   ac_prev=arch
35836	 fi
35837       done
35838fi
35839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35840    if test $ac_cv_c_bigendian = unknown; then
35841      # See if sys/param.h defines the BYTE_ORDER macro.
35842      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35843/* end confdefs.h.  */
35844#include <sys/types.h>
35845	     #include <sys/param.h>
35846
35847int
35848main ()
35849{
35850#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
35851		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
35852		     && LITTLE_ENDIAN)
35853	      bogus endian macros
35854	     #endif
35855
35856  ;
35857  return 0;
35858}
35859_ACEOF
35860if ac_fn_c_try_compile "$LINENO"; then :
35861  # It does; now see whether it defined to BIG_ENDIAN or not.
35862	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35863/* end confdefs.h.  */
35864#include <sys/types.h>
35865		#include <sys/param.h>
35866
35867int
35868main ()
35869{
35870#if BYTE_ORDER != BIG_ENDIAN
35871		 not big endian
35872		#endif
35873
35874  ;
35875  return 0;
35876}
35877_ACEOF
35878if ac_fn_c_try_compile "$LINENO"; then :
35879  ac_cv_c_bigendian=yes
35880else
35881  ac_cv_c_bigendian=no
35882fi
35883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35884fi
35885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35886    fi
35887    if test $ac_cv_c_bigendian = unknown; then
35888      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
35889      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35890/* end confdefs.h.  */
35891#include <limits.h>
35892
35893int
35894main ()
35895{
35896#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
35897	      bogus endian macros
35898	     #endif
35899
35900  ;
35901  return 0;
35902}
35903_ACEOF
35904if ac_fn_c_try_compile "$LINENO"; then :
35905  # It does; now see whether it defined to _BIG_ENDIAN or not.
35906	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35907/* end confdefs.h.  */
35908#include <limits.h>
35909
35910int
35911main ()
35912{
35913#ifndef _BIG_ENDIAN
35914		 not big endian
35915		#endif
35916
35917  ;
35918  return 0;
35919}
35920_ACEOF
35921if ac_fn_c_try_compile "$LINENO"; then :
35922  ac_cv_c_bigendian=yes
35923else
35924  ac_cv_c_bigendian=no
35925fi
35926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35927fi
35928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35929    fi
35930    if test $ac_cv_c_bigendian = unknown; then
35931      # Compile a test program.
35932      if test "$cross_compiling" = yes; then :
35933  # Try to guess by grepping values from an object file.
35934	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35935/* end confdefs.h.  */
35936short int ascii_mm[] =
35937		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35938		short int ascii_ii[] =
35939		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35940		int use_ascii (int i) {
35941		  return ascii_mm[i] + ascii_ii[i];
35942		}
35943		short int ebcdic_ii[] =
35944		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35945		short int ebcdic_mm[] =
35946		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35947		int use_ebcdic (int i) {
35948		  return ebcdic_mm[i] + ebcdic_ii[i];
35949		}
35950		extern int foo;
35951
35952int
35953main ()
35954{
35955return use_ascii (foo) == use_ebcdic (foo);
35956  ;
35957  return 0;
35958}
35959_ACEOF
35960if ac_fn_c_try_compile "$LINENO"; then :
35961  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
35962	      ac_cv_c_bigendian=yes
35963	    fi
35964	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35965	      if test "$ac_cv_c_bigendian" = unknown; then
35966		ac_cv_c_bigendian=no
35967	      else
35968		# finding both strings is unlikely to happen, but who knows?
35969		ac_cv_c_bigendian=unknown
35970	      fi
35971	    fi
35972fi
35973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974else
35975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35976/* end confdefs.h.  */
35977$ac_includes_default
35978int
35979main ()
35980{
35981
35982	     /* Are we little or big endian?  From Harbison&Steele.  */
35983	     union
35984	     {
35985	       long int l;
35986	       char c[sizeof (long int)];
35987	     } u;
35988	     u.l = 1;
35989	     return u.c[sizeof (long int) - 1] == 1;
35990
35991  ;
35992  return 0;
35993}
35994_ACEOF
35995if ac_fn_c_try_run "$LINENO"; then :
35996  ac_cv_c_bigendian=no
35997else
35998  ac_cv_c_bigendian=yes
35999fi
36000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36001  conftest.$ac_objext conftest.beam conftest.$ac_ext
36002fi
36003
36004    fi
36005fi
36006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
36007$as_echo "$ac_cv_c_bigendian" >&6; }
36008 case $ac_cv_c_bigendian in #(
36009   yes)
36010     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
36011;; #(
36012   no)
36013      ;; #(
36014   universal)
36015
36016$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
36017
36018     ;; #(
36019   *)
36020     as_fn_error $? "unknown endianness
36021 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
36022 esac
36023
36024
36025
36026
36027  :
36028
36029  :
36030  :
36031  :
36032  :
36033
36034
36035
36036
36037
36038
36039  PRIPTR_PREFIX=
36040  if test -n "$STDINT_H"; then
36041        PRIPTR_PREFIX='"l"'
36042  else
36043        for glpfx in '' l ll I64; do
36044      case $glpfx in
36045        '')  gltype1='int';;
36046        l)   gltype1='long int';;
36047        ll)  gltype1='long long int';;
36048        I64) gltype1='__int64';;
36049      esac
36050      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36051/* end confdefs.h.  */
36052#include <stdint.h>
36053           extern intptr_t foo;
36054           extern $gltype1 foo;
36055int
36056main ()
36057{
36058
36059  ;
36060  return 0;
36061}
36062_ACEOF
36063if ac_fn_c_try_compile "$LINENO"; then :
36064  PRIPTR_PREFIX='"'$glpfx'"'
36065fi
36066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36067      test -n "$PRIPTR_PREFIX" && break
36068    done
36069  fi
36070
36071
36072
36073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
36074$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
36075if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
36076  $as_echo_n "(cached) " >&6
36077else
36078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36079/* end confdefs.h.  */
36080/* Work also in C++ mode.  */
36081            #define __STDC_LIMIT_MACROS 1
36082
36083            /* Work if build is not clean.  */
36084            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
36085
36086            #include <limits.h>
36087            #if HAVE_STDINT_H
36088             #include <stdint.h>
36089            #endif
36090
36091            #if defined INT32_MAX && defined INTMAX_MAX
36092             #define CONDITION (INT32_MAX < INTMAX_MAX)
36093            #else
36094             #define CONDITION (sizeof (int) < sizeof (long long int))
36095            #endif
36096            int test[CONDITION ? 1 : -1];
36097int
36098main ()
36099{
36100
36101  ;
36102  return 0;
36103}
36104_ACEOF
36105if ac_fn_c_try_compile "$LINENO"; then :
36106  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
36107else
36108  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
36109fi
36110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36111fi
36112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
36113$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
36114  if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
36115    INT32_MAX_LT_INTMAX_MAX=1;
36116  else
36117    INT32_MAX_LT_INTMAX_MAX=0;
36118  fi
36119
36120
36121  if test $APPLE_UNIVERSAL_BUILD = 0; then
36122
36123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
36124$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
36125if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
36126  $as_echo_n "(cached) " >&6
36127else
36128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36129/* end confdefs.h.  */
36130/* Work also in C++ mode.  */
36131            #define __STDC_LIMIT_MACROS 1
36132
36133            /* Work if build is not clean.  */
36134            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
36135
36136            #include <limits.h>
36137            #if HAVE_STDINT_H
36138             #include <stdint.h>
36139            #endif
36140
36141            #if defined INT64_MAX
36142             #define CONDITION (INT64_MAX == LONG_MAX)
36143            #else
36144             #define CONDITION (sizeof (long long int) == sizeof (long int))
36145            #endif
36146            int test[CONDITION ? 1 : -1];
36147int
36148main ()
36149{
36150
36151  ;
36152  return 0;
36153}
36154_ACEOF
36155if ac_fn_c_try_compile "$LINENO"; then :
36156  gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
36157else
36158  gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
36159fi
36160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36161fi
36162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
36163$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
36164  if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
36165    INT64_MAX_EQ_LONG_MAX=1;
36166  else
36167    INT64_MAX_EQ_LONG_MAX=0;
36168  fi
36169
36170
36171  else
36172    INT64_MAX_EQ_LONG_MAX=-1
36173  fi
36174
36175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
36176$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
36177if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
36178  $as_echo_n "(cached) " >&6
36179else
36180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36181/* end confdefs.h.  */
36182/* Work also in C++ mode.  */
36183            #define __STDC_LIMIT_MACROS 1
36184
36185            /* Work if build is not clean.  */
36186            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
36187
36188            #include <limits.h>
36189            #if HAVE_STDINT_H
36190             #include <stdint.h>
36191            #endif
36192
36193            #if defined UINT32_MAX && defined UINTMAX_MAX
36194             #define CONDITION (UINT32_MAX < UINTMAX_MAX)
36195            #else
36196             #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
36197            #endif
36198            int test[CONDITION ? 1 : -1];
36199int
36200main ()
36201{
36202
36203  ;
36204  return 0;
36205}
36206_ACEOF
36207if ac_fn_c_try_compile "$LINENO"; then :
36208  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
36209else
36210  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
36211fi
36212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36213fi
36214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
36215$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
36216  if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
36217    UINT32_MAX_LT_UINTMAX_MAX=1;
36218  else
36219    UINT32_MAX_LT_UINTMAX_MAX=0;
36220  fi
36221
36222
36223  if test $APPLE_UNIVERSAL_BUILD = 0; then
36224
36225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
36226$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
36227if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
36228  $as_echo_n "(cached) " >&6
36229else
36230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36231/* end confdefs.h.  */
36232/* Work also in C++ mode.  */
36233            #define __STDC_LIMIT_MACROS 1
36234
36235            /* Work if build is not clean.  */
36236            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
36237
36238            #include <limits.h>
36239            #if HAVE_STDINT_H
36240             #include <stdint.h>
36241            #endif
36242
36243            #if defined UINT64_MAX
36244             #define CONDITION (UINT64_MAX == ULONG_MAX)
36245            #else
36246             #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
36247            #endif
36248            int test[CONDITION ? 1 : -1];
36249int
36250main ()
36251{
36252
36253  ;
36254  return 0;
36255}
36256_ACEOF
36257if ac_fn_c_try_compile "$LINENO"; then :
36258  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
36259else
36260  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
36261fi
36262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36263fi
36264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
36265$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
36266  if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
36267    UINT64_MAX_EQ_ULONG_MAX=1;
36268  else
36269    UINT64_MAX_EQ_ULONG_MAX=0;
36270  fi
36271
36272
36273  else
36274    UINT64_MAX_EQ_ULONG_MAX=-1
36275  fi
36276
36277
36278
36279
36280
36281  HAVE_IOCTL=1
36282  if test "$ac_cv_header_winsock2_h" = yes; then
36283                HAVE_IOCTL=0
36284  else
36285    for ac_func in ioctl
36286do :
36287  ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
36288if test "x$ac_cv_func_ioctl" = xyes; then :
36289  cat >>confdefs.h <<_ACEOF
36290#define HAVE_IOCTL 1
36291_ACEOF
36292
36293fi
36294done
36295
36296                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5
36297$as_echo_n "checking for ioctl with POSIX signature... " >&6; }
36298if ${gl_cv_func_ioctl_posix_signature+:} false; then :
36299  $as_echo_n "(cached) " >&6
36300else
36301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36302/* end confdefs.h.  */
36303#include <sys/ioctl.h>
36304              /* On some platforms, ioctl() is declared in <unistd.h>.  */
36305              #include <unistd.h>
36306
36307int
36308main ()
36309{
36310extern
36311              #ifdef __cplusplus
36312              "C"
36313              #endif
36314              int ioctl (int, int, ...);
36315
36316  ;
36317  return 0;
36318}
36319
36320_ACEOF
36321if ac_fn_c_try_compile "$LINENO"; then :
36322  gl_cv_func_ioctl_posix_signature=yes
36323else
36324  gl_cv_func_ioctl_posix_signature=no
36325fi
36326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36327
36328fi
36329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5
36330$as_echo "$gl_cv_func_ioctl_posix_signature" >&6; }
36331    if test $gl_cv_func_ioctl_posix_signature != yes; then
36332      REPLACE_IOCTL=1
36333    fi
36334  fi
36335
36336  if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
36337
36338
36339
36340
36341
36342
36343
36344
36345  gltests_LIBOBJS="$gltests_LIBOBJS ioctl.$ac_objext"
36346
36347  fi
36348
36349
36350
36351
36352
36353    if test "$GNULIB_IOCTL" != 1; then
36354        if test "$GNULIB_IOCTL" = 0; then
36355      GNULIB_IOCTL=$gl_module_indicator_condition
36356    else
36357      GNULIB_IOCTL="($GNULIB_IOCTL || $gl_module_indicator_condition)"
36358    fi
36359  fi
36360
36361
36362
36363
36364
36365$as_echo "#define GNULIB_TEST_IOCTL 1" >>confdefs.h
36366
36367
36368
36369
36370
36371
36372
36373
36374  if test $ac_cv_func_isblank = no; then
36375    HAVE_ISBLANK=0
36376  fi
36377
36378  if test $HAVE_ISBLANK = 0; then
36379
36380
36381
36382
36383
36384
36385
36386
36387  gltests_LIBOBJS="$gltests_LIBOBJS isblank.$ac_objext"
36388
36389  fi
36390
36391
36392cat >>confdefs.h <<_ACEOF
36393#define GNULIB_ISBLANK $gl_module_indicator_condition
36394_ACEOF
36395
36396
36397
36398
36399
36400
36401
36402    if test "$GNULIB_ISBLANK" != 1; then
36403        if test "$GNULIB_ISBLANK" = 0; then
36404      GNULIB_ISBLANK=$gl_module_indicator_condition
36405    else
36406      GNULIB_ISBLANK="($GNULIB_ISBLANK || $gl_module_indicator_condition)"
36407    fi
36408  fi
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
36419
36420
36421
36422
36423
36424
36425
36426
36427     if test $gl_cv_have_include_next = yes; then
36428       gl_cv_next_langinfo_h='<'langinfo.h'>'
36429     else
36430       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
36431$as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
36432if ${gl_cv_next_langinfo_h+:} false; then :
36433  $as_echo_n "(cached) " >&6
36434else
36435
36436             if test $ac_cv_header_langinfo_h = yes; then
36437
36438
36439
36440
36441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36442/* end confdefs.h.  */
36443#include <langinfo.h>
36444_ACEOF
36445                case "$host_os" in
36446    aix*) gl_absname_cpp="$ac_cpp -C" ;;
36447    *)    gl_absname_cpp="$ac_cpp" ;;
36448  esac
36449
36450  case "$host_os" in
36451    mingw*)
36452                                          gl_dirsep_regex='[/\\]'
36453      ;;
36454    *)
36455      gl_dirsep_regex='\/'
36456      ;;
36457  esac
36458      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36459  gl_header_literal_regex=`echo 'langinfo.h' \
36460                           | sed -e "$gl_make_literal_regex_sed"`
36461  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36462      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36463      s|^/[^/]|//&|
36464      p
36465      q
36466    }'
36467
36468        gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36469  sed -n "$gl_absolute_header_sed"`
36470
36471           gl_header=$gl_cv_absolute_langinfo_h
36472           gl_cv_next_langinfo_h='"'$gl_header'"'
36473          else
36474               gl_cv_next_langinfo_h='<'langinfo.h'>'
36475             fi
36476
36477
36478fi
36479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
36480$as_echo "$gl_cv_next_langinfo_h" >&6; }
36481     fi
36482     NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
36483
36484     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36485       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36486       gl_next_as_first_directive='<'langinfo.h'>'
36487     else
36488       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36489       gl_next_as_first_directive=$gl_cv_next_langinfo_h
36490     fi
36491     NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
36492
36493
36494
36495
36496
36497    HAVE_LANGINFO_CODESET=0
36498  HAVE_LANGINFO_T_FMT_AMPM=0
36499  HAVE_LANGINFO_ALTMON=0
36500  HAVE_LANGINFO_ERA=0
36501  HAVE_LANGINFO_YESEXPR=0
36502
36503  if test $ac_cv_header_langinfo_h = yes; then
36504    HAVE_LANGINFO_H=1
36505                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
36506$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
36507if ${gl_cv_header_langinfo_codeset+:} false; then :
36508  $as_echo_n "(cached) " >&6
36509else
36510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36511/* end confdefs.h.  */
36512#include <langinfo.h>
36513int a = CODESET;
36514
36515int
36516main ()
36517{
36518
36519  ;
36520  return 0;
36521}
36522_ACEOF
36523if ac_fn_c_try_compile "$LINENO"; then :
36524  gl_cv_header_langinfo_codeset=yes
36525else
36526  gl_cv_header_langinfo_codeset=no
36527fi
36528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36529
36530fi
36531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
36532$as_echo "$gl_cv_header_langinfo_codeset" >&6; }
36533    if test $gl_cv_header_langinfo_codeset = yes; then
36534      HAVE_LANGINFO_CODESET=1
36535    fi
36536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
36537$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
36538if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
36539  $as_echo_n "(cached) " >&6
36540else
36541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36542/* end confdefs.h.  */
36543#include <langinfo.h>
36544int a = T_FMT_AMPM;
36545
36546int
36547main ()
36548{
36549
36550  ;
36551  return 0;
36552}
36553_ACEOF
36554if ac_fn_c_try_compile "$LINENO"; then :
36555  gl_cv_header_langinfo_t_fmt_ampm=yes
36556else
36557  gl_cv_header_langinfo_t_fmt_ampm=no
36558fi
36559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36560
36561fi
36562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
36563$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
36564    if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
36565      HAVE_LANGINFO_T_FMT_AMPM=1
36566    fi
36567    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5
36568$as_echo_n "checking whether langinfo.h defines ALTMON_1... " >&6; }
36569if ${gl_cv_header_langinfo_altmon+:} false; then :
36570  $as_echo_n "(cached) " >&6
36571else
36572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36573/* end confdefs.h.  */
36574#include <langinfo.h>
36575int a = ALTMON_1;
36576
36577int
36578main ()
36579{
36580
36581  ;
36582  return 0;
36583}
36584_ACEOF
36585if ac_fn_c_try_compile "$LINENO"; then :
36586  gl_cv_header_langinfo_altmon=yes
36587else
36588  gl_cv_header_langinfo_altmon=no
36589fi
36590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36591
36592fi
36593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5
36594$as_echo "$gl_cv_header_langinfo_altmon" >&6; }
36595    if test $gl_cv_header_langinfo_altmon = yes; then
36596      HAVE_LANGINFO_ALTMON=1
36597    fi
36598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
36599$as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
36600if ${gl_cv_header_langinfo_era+:} false; then :
36601  $as_echo_n "(cached) " >&6
36602else
36603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36604/* end confdefs.h.  */
36605#include <langinfo.h>
36606int a = ERA;
36607
36608int
36609main ()
36610{
36611
36612  ;
36613  return 0;
36614}
36615_ACEOF
36616if ac_fn_c_try_compile "$LINENO"; then :
36617  gl_cv_header_langinfo_era=yes
36618else
36619  gl_cv_header_langinfo_era=no
36620fi
36621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36622
36623fi
36624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
36625$as_echo "$gl_cv_header_langinfo_era" >&6; }
36626    if test $gl_cv_header_langinfo_era = yes; then
36627      HAVE_LANGINFO_ERA=1
36628    fi
36629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
36630$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
36631if ${gl_cv_header_langinfo_yesexpr+:} false; then :
36632  $as_echo_n "(cached) " >&6
36633else
36634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36635/* end confdefs.h.  */
36636#include <langinfo.h>
36637int a = YESEXPR;
36638
36639int
36640main ()
36641{
36642
36643  ;
36644  return 0;
36645}
36646_ACEOF
36647if ac_fn_c_try_compile "$LINENO"; then :
36648  gl_cv_header_langinfo_yesexpr=yes
36649else
36650  gl_cv_header_langinfo_yesexpr=no
36651fi
36652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36653
36654fi
36655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
36656$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
36657    if test $gl_cv_header_langinfo_yesexpr = yes; then
36658      HAVE_LANGINFO_YESEXPR=1
36659    fi
36660  else
36661    HAVE_LANGINFO_H=0
36662  fi
36663
36664
36665
36666
36667
36668
36669
36670
36671
36672
36673
36674
36675  if test "$ac_cv_header_winsock2_h" = yes; then
36676
36677
36678
36679
36680
36681
36682
36683
36684  gltests_LIBOBJS="$gltests_LIBOBJS listen.$ac_objext"
36685
36686  fi
36687
36688
36689
36690
36691
36692    if test "$GNULIB_LISTEN" != 1; then
36693        if test "$GNULIB_LISTEN" = 0; then
36694      GNULIB_LISTEN=$gl_module_indicator_condition
36695    else
36696      GNULIB_LISTEN="($GNULIB_LISTEN || $gl_module_indicator_condition)"
36697    fi
36698  fi
36699
36700
36701
36702
36703
36704$as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
36705
36706
36707
36708
36709
36710
36711
36712
36713
36714
36715
36716
36717
36718  case "$host_os" in
36719    solaris*)
36720
36721$as_echo "#define _LCONV_C99 1" >>confdefs.h
36722
36723      ;;
36724  esac
36725
36726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
36727$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
36728if ${gl_cv_header_locale_h_posix2001+:} false; then :
36729  $as_echo_n "(cached) " >&6
36730else
36731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36732/* end confdefs.h.  */
36733#include <locale.h>
36734            int x = LC_MESSAGES;
36735            int y = sizeof (((struct lconv *) 0)->decimal_point);
36736int
36737main ()
36738{
36739
36740  ;
36741  return 0;
36742}
36743_ACEOF
36744if ac_fn_c_try_compile "$LINENO"; then :
36745  gl_cv_header_locale_h_posix2001=yes
36746else
36747  gl_cv_header_locale_h_posix2001=no
36748fi
36749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36750fi
36751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
36752$as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
36753
36754          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
36755$as_echo_n "checking whether struct lconv is properly defined... " >&6; }
36756if ${gl_cv_sys_struct_lconv_ok+:} false; then :
36757  $as_echo_n "(cached) " >&6
36758else
36759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36760/* end confdefs.h.  */
36761#include <locale.h>
36762            struct lconv l;
36763            int x = sizeof (l.decimal_point);
36764            int y = sizeof (l.int_p_cs_precedes);
36765int
36766main ()
36767{
36768
36769  ;
36770  return 0;
36771}
36772_ACEOF
36773if ac_fn_c_try_compile "$LINENO"; then :
36774  gl_cv_sys_struct_lconv_ok=yes
36775else
36776  gl_cv_sys_struct_lconv_ok=no
36777fi
36778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36779
36780fi
36781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
36782$as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
36783  if test $gl_cv_sys_struct_lconv_ok = no; then
36784            case "$host_os" in
36785      mingw*)
36786        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36787/* end confdefs.h.  */
36788
36789#ifdef _MSC_VER
36790 Special
36791#endif
36792
36793_ACEOF
36794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36795  $EGREP "Special" >/dev/null 2>&1; then :
36796
36797else
36798  REPLACE_STRUCT_LCONV=1
36799fi
36800rm -f conftest*
36801
36802        ;;
36803      *) REPLACE_STRUCT_LCONV=1 ;;
36804    esac
36805  fi
36806
36807
36808
36809
36810
36811
36812
36813
36814
36815     if test $gl_cv_have_include_next = yes; then
36816       gl_cv_next_locale_h='<'locale.h'>'
36817     else
36818       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
36819$as_echo_n "checking absolute name of <locale.h>... " >&6; }
36820if ${gl_cv_next_locale_h+:} false; then :
36821  $as_echo_n "(cached) " >&6
36822else
36823
36824
36825
36826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36827/* end confdefs.h.  */
36828#include <locale.h>
36829_ACEOF
36830                case "$host_os" in
36831    aix*) gl_absname_cpp="$ac_cpp -C" ;;
36832    *)    gl_absname_cpp="$ac_cpp" ;;
36833  esac
36834
36835  case "$host_os" in
36836    mingw*)
36837                                          gl_dirsep_regex='[/\\]'
36838      ;;
36839    *)
36840      gl_dirsep_regex='\/'
36841      ;;
36842  esac
36843      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
36844  gl_header_literal_regex=`echo 'locale.h' \
36845                           | sed -e "$gl_make_literal_regex_sed"`
36846  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
36847      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
36848      s|^/[^/]|//&|
36849      p
36850      q
36851    }'
36852
36853        gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
36854  sed -n "$gl_absolute_header_sed"`
36855
36856           gl_header=$gl_cv_absolute_locale_h
36857           gl_cv_next_locale_h='"'$gl_header'"'
36858
36859
36860fi
36861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
36862$as_echo "$gl_cv_next_locale_h" >&6; }
36863     fi
36864     NEXT_LOCALE_H=$gl_cv_next_locale_h
36865
36866     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36867       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36868       gl_next_as_first_directive='<'locale.h'>'
36869     else
36870       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36871       gl_next_as_first_directive=$gl_cv_next_locale_h
36872     fi
36873     NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
36874
36875
36876
36877
36878
36879
36880
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891  if test $HAVE_LOCALE_T = 1; then
36892
36893    gl_func_newlocale="$ac_cv_func_newlocale"
36894    gl_func_duplocale="$ac_cv_func_duplocale"
36895    gl_func_freelocale="$ac_cv_func_freelocale"
36896  else
36897            gl_func_newlocale=no
36898    gl_func_duplocale=no
36899    gl_func_freelocale=no
36900  fi
36901  if test $gl_func_newlocale != yes; then
36902    HAVE_NEWLOCALE=0
36903  fi
36904  if test $gl_func_duplocale != yes; then
36905    HAVE_DUPLOCALE=0
36906  fi
36907  if test $gl_func_freelocale != yes; then
36908    HAVE_FREELOCALE=0
36909  fi
36910  if test $gt_nameless_locales = yes; then
36911    REPLACE_NEWLOCALE=1
36912    REPLACE_DUPLOCALE=1
36913    REPLACE_FREELOCALE=1
36914  fi
36915
36916
36917
36918
36919
36920
36921    if test "$GNULIB_LOCALENAME" != 1; then
36922        if test "$GNULIB_LOCALENAME" = 0; then
36923      GNULIB_LOCALENAME=$gl_module_indicator_condition
36924    else
36925      GNULIB_LOCALENAME="($GNULIB_LOCALENAME || $gl_module_indicator_condition)"
36926    fi
36927  fi
36928
36929
36930
36931
36932
36933$as_echo "#define GNULIB_TEST_LOCALENAME 1" >>confdefs.h
36934
36935
36936
36937
36938
36939
36940  if test "$gl_threads_api" = posix; then
36941    # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
36942    # pthread_rwlock_* functions.
36943    has_rwlock=false
36944    ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
36945"
36946if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
36947  has_rwlock=true
36948
36949$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
36950
36951fi
36952
36953    if $has_rwlock; then
36954
36955
36956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
36957$as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
36958if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
36959  $as_echo_n "(cached) " >&6
36960else
36961  save_LIBS="$LIBS"
36962     LIBS="$LIBS $LIBMULTITHREAD"
36963     if test "$cross_compiling" = yes; then :
36964  case "$host_os" in
36965                         # Guess no on glibc systems.
36966          *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
36967                         # Guess no on musl systems.
36968          *-musl*)       gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
36969                         # Guess no on bionic systems.
36970          *-android*)    gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
36971                         # Guess yes on native Windows with the mingw-w64 winpthreads library.
36972                         # Guess no on native Windows with the gnulib windows-rwlock module.
36973          mingw*)        if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
36974                           gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
36975                         else
36976                           gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
36977                         fi
36978                         ;;
36979                         # If we don't know, obey --enable-cross-guesses.
36980          *)             gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
36981         esac
36982
36983else
36984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36985/* end confdefs.h.  */
36986
36987#include <errno.h>
36988#include <pthread.h>
36989#include <stdlib.h>
36990#include <unistd.h>
36991
36992#define SUCCEED() exit (0)
36993#define FAILURE() exit (1)
36994#define UNEXPECTED(n) (exit (10 + (n)))
36995
36996/* The main thread creates the waiting writer and the requesting reader threads
36997   in the default way; this guarantees that they have the same priority.
36998   We can reuse the main thread as first reader thread.  */
36999
37000static pthread_rwlock_t lock;
37001static pthread_t reader1;
37002static pthread_t writer;
37003static pthread_t reader2;
37004static pthread_t timer;
37005/* Used to pass control from writer to reader2 and from reader2 to timer,
37006   as in a relay race.
37007   Passing control from one running thread to another running thread
37008   is most likely faster than to create the second thread.  */
37009static pthread_mutex_t baton;
37010
37011static void *
37012timer_func (void *ignored)
37013{
37014  /* Step 13 (can be before or after step 12):
37015     The timer thread takes the baton, then waits a moment to make sure
37016     it can tell whether the second reader thread is blocked at step 12.  */
37017  if (pthread_mutex_lock (&baton))
37018    UNEXPECTED (13);
37019  usleep (100000);
37020  /* By the time we get here, it's clear that the second reader thread is
37021     blocked at step 12.  This is the desired behaviour.  */
37022  SUCCEED ();
37023}
37024
37025static void *
37026reader2_func (void *ignored)
37027{
37028  int err;
37029
37030  /* Step 8 (can be before or after step 7):
37031     The second reader thread takes the baton, then waits a moment to make sure
37032     the writer thread has reached step 7.  */
37033  if (pthread_mutex_lock (&baton))
37034    UNEXPECTED (8);
37035  usleep (100000);
37036  /* Step 9: The second reader thread requests the lock.  */
37037  err = pthread_rwlock_tryrdlock (&lock);
37038  if (err == 0)
37039    FAILURE ();
37040  else if (err != EBUSY)
37041    UNEXPECTED (9);
37042  /* Step 10: Launch a timer, to test whether the next call blocks.  */
37043  if (pthread_create (&timer, NULL, timer_func, NULL))
37044    UNEXPECTED (10);
37045  /* Step 11: Release the baton.  */
37046  if (pthread_mutex_unlock (&baton))
37047    UNEXPECTED (11);
37048  /* Step 12: The second reader thread requests the lock.  */
37049  err = pthread_rwlock_rdlock (&lock);
37050  if (err == 0)
37051    FAILURE ();
37052  else
37053    UNEXPECTED (12);
37054}
37055
37056static void *
37057writer_func (void *ignored)
37058{
37059  /* Step 4: Take the baton, so that the second reader thread does not go ahead
37060     too early.  */
37061  if (pthread_mutex_lock (&baton))
37062    UNEXPECTED (4);
37063  /* Step 5: Create the second reader thread.  */
37064  if (pthread_create (&reader2, NULL, reader2_func, NULL))
37065    UNEXPECTED (5);
37066  /* Step 6: Release the baton.  */
37067  if (pthread_mutex_unlock (&baton))
37068    UNEXPECTED (6);
37069  /* Step 7: The writer thread requests the lock.  */
37070  if (pthread_rwlock_wrlock (&lock))
37071    UNEXPECTED (7);
37072  return NULL;
37073}
37074
37075int
37076main ()
37077{
37078  reader1 = pthread_self ();
37079
37080  /* Step 1: The main thread initializes the lock and the baton.  */
37081  if (pthread_rwlock_init (&lock, NULL))
37082    UNEXPECTED (1);
37083  if (pthread_mutex_init (&baton, NULL))
37084    UNEXPECTED (1);
37085  /* Step 2: The main thread acquires the lock as a reader.  */
37086  if (pthread_rwlock_rdlock (&lock))
37087    UNEXPECTED (2);
37088  /* Step 3: Create the writer thread.  */
37089  if (pthread_create (&writer, NULL, writer_func, NULL))
37090    UNEXPECTED (3);
37091  /* Job done.  Go to sleep.  */
37092  for (;;)
37093    {
37094      sleep (1);
37095    }
37096}
37097
37098_ACEOF
37099if ac_fn_c_try_run "$LINENO"; then :
37100  gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
37101else
37102  gl_cv_pthread_rwlock_rdlock_prefer_writer=no
37103fi
37104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37105  conftest.$ac_objext conftest.beam conftest.$ac_ext
37106fi
37107
37108     LIBS="$save_LIBS"
37109
37110fi
37111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
37112$as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
37113  case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
37114    *yes)
37115
37116$as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
37117
37118      ;;
37119  esac
37120
37121    fi
37122    # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
37123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37124/* end confdefs.h.  */
37125
37126      #include <pthread.h>
37127int
37128main ()
37129{
37130
37131#if __FreeBSD__ == 4
37132error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
37133#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
37134       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
37135error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
37136#else
37137int x = (int)PTHREAD_MUTEX_RECURSIVE;
37138return !x;
37139#endif
37140
37141  ;
37142  return 0;
37143}
37144_ACEOF
37145if ac_fn_c_try_compile "$LINENO"; then :
37146
37147$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
37148
37149fi
37150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37151  fi
37152  :
37153
37154
37155
37156cat >>confdefs.h <<_ACEOF
37157#define GNULIB_LOCK $gl_module_indicator_condition
37158_ACEOF
37159
37160
37161
37162
37163
37164
37165  if test $ac_cv_func_lstat = yes; then
37166
37167    case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
37168      solaris* | *no)
37169        REPLACE_LSTAT=1
37170        ;;
37171    esac
37172  else
37173    HAVE_LSTAT=0
37174  fi
37175
37176  if test $REPLACE_LSTAT = 1; then
37177
37178
37179
37180
37181
37182
37183
37184
37185  gltests_LIBOBJS="$gltests_LIBOBJS lstat.$ac_objext"
37186
37187    :
37188  fi
37189
37190
37191
37192
37193
37194    if test "$GNULIB_LSTAT" != 1; then
37195        if test "$GNULIB_LSTAT" = 0; then
37196      GNULIB_LSTAT=$gl_module_indicator_condition
37197    else
37198      GNULIB_LSTAT="($GNULIB_LSTAT || $gl_module_indicator_condition)"
37199    fi
37200  fi
37201
37202
37203
37204
37205
37206$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
37207
37208
37209
37210
37211
37212
37213  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
37214  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
37215  # irrelevant for anonymous mappings.
37216  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
37217if test "x$ac_cv_func_mmap" = xyes; then :
37218  gl_have_mmap=yes
37219else
37220  gl_have_mmap=no
37221fi
37222
37223
37224  # Try to allow MAP_ANONYMOUS.
37225  gl_have_mmap_anonymous=no
37226  if test $gl_have_mmap = yes; then
37227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
37228$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
37229    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37230/* end confdefs.h.  */
37231
37232#include <sys/mman.h>
37233#ifdef MAP_ANONYMOUS
37234    I cannot identify this map
37235#endif
37236
37237_ACEOF
37238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37239  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
37240  gl_have_mmap_anonymous=yes
37241fi
37242rm -f conftest*
37243
37244    if test $gl_have_mmap_anonymous != yes; then
37245      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37246/* end confdefs.h.  */
37247
37248#include <sys/mman.h>
37249#ifdef MAP_ANON
37250    I cannot identify this map
37251#endif
37252
37253_ACEOF
37254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37255  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
37256
37257$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
37258
37259         gl_have_mmap_anonymous=yes
37260fi
37261rm -f conftest*
37262
37263    fi
37264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
37265$as_echo "$gl_have_mmap_anonymous" >&6; }
37266    if test $gl_have_mmap_anonymous = yes; then
37267
37268$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
37269
37270    fi
37271  fi
37272
37273
37274
37275
37276
37277
37278
37279
37280
37281
37282
37283
37284
37285 nanosleep_save_libs=$LIBS
37286
37287 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
37288 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
37289 LIB_NANOSLEEP=
37290
37291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
37292$as_echo_n "checking for library containing nanosleep... " >&6; }
37293if ${ac_cv_search_nanosleep+:} false; then :
37294  $as_echo_n "(cached) " >&6
37295else
37296  ac_func_search_save_LIBS=$LIBS
37297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37298/* end confdefs.h.  */
37299
37300/* Override any GCC internal prototype to avoid an error.
37301   Use char because int might match the return type of a GCC
37302   builtin and then its argument prototype would still apply.  */
37303#ifdef __cplusplus
37304extern "C"
37305#endif
37306char nanosleep ();
37307int
37308main ()
37309{
37310return nanosleep ();
37311  ;
37312  return 0;
37313}
37314_ACEOF
37315for ac_lib in '' rt posix4; do
37316  if test -z "$ac_lib"; then
37317    ac_res="none required"
37318  else
37319    ac_res=-l$ac_lib
37320    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37321  fi
37322  if ac_fn_c_try_link "$LINENO"; then :
37323  ac_cv_search_nanosleep=$ac_res
37324fi
37325rm -f core conftest.err conftest.$ac_objext \
37326    conftest$ac_exeext
37327  if ${ac_cv_search_nanosleep+:} false; then :
37328  break
37329fi
37330done
37331if ${ac_cv_search_nanosleep+:} false; then :
37332
37333else
37334  ac_cv_search_nanosleep=no
37335fi
37336rm conftest.$ac_ext
37337LIBS=$ac_func_search_save_LIBS
37338fi
37339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
37340$as_echo "$ac_cv_search_nanosleep" >&6; }
37341ac_res=$ac_cv_search_nanosleep
37342if test "$ac_res" != no; then :
37343  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37344  test "$ac_cv_search_nanosleep" = "none required" ||
37345                 LIB_NANOSLEEP=$ac_cv_search_nanosleep
37346fi
37347
37348 if test "x$ac_cv_search_nanosleep" != xno; then
37349
37350
37351   if test $APPLE_UNIVERSAL_BUILD = 1; then
37352     # A universal build on Apple Mac OS X platforms.
37353     # The test result would be 'no (mishandles large arguments)' in 64-bit
37354     # mode but 'yes' in 32-bit mode. But we need a configuration result that
37355     # is valid in both modes.
37356     gl_cv_func_nanosleep='no (mishandles large arguments)'
37357   fi
37358
37359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5
37360$as_echo_n "checking for working nanosleep... " >&6; }
37361if ${gl_cv_func_nanosleep+:} false; then :
37362  $as_echo_n "(cached) " >&6
37363else
37364
37365     if test "$cross_compiling" = yes; then :
37366  case "$host_os" in           linux*) # Guess it halfway works when the kernel is Linux.
37367            gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
37368          mingw*) # Guess no on native Windows.
37369            gl_cv_func_nanosleep='guessing no' ;;
37370          *)      # If we don't know, obey --enable-cross-guesses.
37371            gl_cv_func_nanosleep="$gl_cross_guess_normal" ;;
37372        esac
37373
37374else
37375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37376/* end confdefs.h.  */
37377
37378          #include <errno.h>
37379          #include <limits.h>
37380          #include <signal.h>
37381          #if HAVE_SYS_TIME_H
37382           #include <sys/time.h>
37383          #endif
37384          #include <time.h>
37385          #include <unistd.h>
37386          #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
37387          #define TYPE_MAXIMUM(t) \
37388            ((t) (! TYPE_SIGNED (t) \
37389                  ? (t) -1 \
37390                  : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
37391
37392          #if HAVE_DECL_ALARM
37393          static void
37394          check_for_SIGALRM (int sig)
37395          {
37396            if (sig != SIGALRM)
37397              _exit (1);
37398          }
37399          #endif
37400
37401          int
37402          main ()
37403          {
37404            static struct timespec ts_sleep;
37405            static struct timespec ts_remaining;
37406            /* Test for major problems first.  */
37407            if (! nanosleep)
37408              return 2;
37409            ts_sleep.tv_sec = 0;
37410            ts_sleep.tv_nsec = 1;
37411            #if HAVE_DECL_ALARM
37412            {
37413              static struct sigaction act;
37414              act.sa_handler = check_for_SIGALRM;
37415              sigemptyset (&act.sa_mask);
37416              sigaction (SIGALRM, &act, NULL);
37417              alarm (1);
37418              if (nanosleep (&ts_sleep, NULL) != 0)
37419                return 3;
37420              /* Test for a minor problem: the handling of large arguments.  */
37421              ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
37422              ts_sleep.tv_nsec = 999999999;
37423              alarm (1);
37424              if (nanosleep (&ts_sleep, &ts_remaining) != -1)
37425                return 4;
37426              if (errno != EINTR)
37427                return 5;
37428              if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10)
37429                return 6;
37430            }
37431            #else /* A simpler test for native Windows.  */
37432            if (nanosleep (&ts_sleep, &ts_remaining) < 0)
37433              return 3;
37434            #endif
37435            return 0;
37436          }
37437_ACEOF
37438if ac_fn_c_try_run "$LINENO"; then :
37439  gl_cv_func_nanosleep=yes
37440else
37441  case $? in         4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)';;         *)   gl_cv_func_nanosleep=no;;
37442        esac
37443fi
37444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37445  conftest.$ac_objext conftest.beam conftest.$ac_ext
37446fi
37447
37448
37449fi
37450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5
37451$as_echo "$gl_cv_func_nanosleep" >&6; }
37452   case "$gl_cv_func_nanosleep" in
37453     *yes)
37454       REPLACE_NANOSLEEP=0
37455       ;;
37456     *)
37457       REPLACE_NANOSLEEP=1
37458       case "$gl_cv_func_nanosleep" in
37459         *"mishandles large arguments"*)
37460
37461$as_echo "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h
37462
37463           ;;
37464         *)
37465           # The replacement uses select(). Add $LIBSOCKET to $LIB_NANOSLEEP.
37466           for ac_lib in $LIBSOCKET; do
37467             case " $LIB_NANOSLEEP " in
37468               *" $ac_lib "*) ;;
37469               *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";;
37470             esac
37471           done
37472           ;;
37473       esac
37474       ;;
37475   esac
37476 else
37477   HAVE_NANOSLEEP=0
37478 fi
37479 LIBS=$nanosleep_save_libs
37480
37481  if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
37482
37483
37484
37485
37486
37487
37488
37489
37490  gltests_LIBOBJS="$gltests_LIBOBJS nanosleep.$ac_objext"
37491
37492
37493
37494  :
37495
37496  fi
37497
37498
37499
37500
37501
37502    if test "$GNULIB_NANOSLEEP" != 1; then
37503        if test "$GNULIB_NANOSLEEP" = 0; then
37504      GNULIB_NANOSLEEP=$gl_module_indicator_condition
37505    else
37506      GNULIB_NANOSLEEP="($GNULIB_NANOSLEEP || $gl_module_indicator_condition)"
37507    fi
37508  fi
37509
37510
37511
37512
37513
37514$as_echo "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524             if test "$ERRNO_H:$REPLACE_STRERROR_0" != :0; then
37525            REPLACE_PERROR=1
37526  fi
37527  case ${gl_cv_func_strerror_r_works-unset} in
37528    unset|*yes)
37529      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5
37530$as_echo_n "checking whether perror matches strerror... " >&6; }
37531if ${gl_cv_func_perror_works+:} false; then :
37532  $as_echo_n "(cached) " >&6
37533else
37534  if test "$cross_compiling" = yes; then :
37535  case "$host_os" in
37536                       # Guess yes on musl systems.
37537              *-musl*) gl_cv_func_perror_works="guessing yes" ;;
37538                       # Guess yes on native Windows.
37539              mingw*)  gl_cv_func_perror_works="guessing yes" ;;
37540                       # Otherwise obey --enable-cross-guesses.
37541              *)       gl_cv_func_perror_works="$gl_cross_guess_normal" ;;
37542            esac
37543
37544else
37545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37546/* end confdefs.h.  */
37547#include <errno.h>
37548                #include <stdio.h>
37549                #include <stdlib.h>
37550                #include <string.h>
37551
37552int
37553main ()
37554{
37555char *str = strerror (-1);
37556                if (!getenv("CONFTEST_OUTPUT")) return 0;
37557                if (!str) str = "";
37558                puts (str);
37559                errno = -1;
37560                perror ("");
37561                return 0;
37562
37563  ;
37564  return 0;
37565}
37566_ACEOF
37567if ac_fn_c_try_run "$LINENO"; then :
37568  if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \
37569               && cmp conftest.txt1 conftest.txt2 >/dev/null; then
37570              gl_cv_func_perror_works=yes
37571            else
37572              gl_cv_func_perror_works=no
37573            fi
37574            rm -rf conftest.txt1 conftest.txt2
37575else
37576  gl_cv_func_perror_works=no
37577fi
37578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37579  conftest.$ac_objext conftest.beam conftest.$ac_ext
37580fi
37581
37582
37583fi
37584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5
37585$as_echo "$gl_cv_func_perror_works" >&6; }
37586      case "$gl_cv_func_perror_works" in
37587        *yes) ;;
37588        *) REPLACE_PERROR=1 ;;
37589      esac
37590      ;;
37591    *)
37592                  REPLACE_PERROR=1
37593      ;;
37594  esac
37595
37596  if test $REPLACE_PERROR = 1; then
37597
37598
37599
37600
37601
37602
37603
37604
37605  gltests_LIBOBJS="$gltests_LIBOBJS perror.$ac_objext"
37606
37607  fi
37608
37609
37610
37611
37612
37613    if test "$GNULIB_PERROR" != 1; then
37614        if test "$GNULIB_PERROR" = 0; then
37615      GNULIB_PERROR=$gl_module_indicator_condition
37616    else
37617      GNULIB_PERROR="($GNULIB_PERROR || $gl_module_indicator_condition)"
37618    fi
37619  fi
37620
37621
37622
37623
37624
37625$as_echo "#define GNULIB_TEST_PERROR 1" >>confdefs.h
37626
37627
37628
37629
37630
37631
37632
37633  if test $ac_cv_func_pipe != yes; then
37634    HAVE_PIPE=0
37635  fi
37636
37637  if test $HAVE_PIPE = 0; then
37638
37639
37640
37641
37642
37643
37644
37645
37646  gltests_LIBOBJS="$gltests_LIBOBJS pipe.$ac_objext"
37647
37648  fi
37649
37650
37651
37652
37653
37654    if test "$GNULIB_PIPE" != 1; then
37655        if test "$GNULIB_PIPE" = 0; then
37656      GNULIB_PIPE=$gl_module_indicator_condition
37657    else
37658      GNULIB_PIPE="($GNULIB_PIPE || $gl_module_indicator_condition)"
37659    fi
37660  fi
37661
37662
37663
37664
37665
37666$as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
37667
37668
37669
37670
37671
37672
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683
37684
37685     if test $gl_cv_have_include_next = yes; then
37686       gl_cv_next_pthread_h='<'pthread.h'>'
37687     else
37688       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5
37689$as_echo_n "checking absolute name of <pthread.h>... " >&6; }
37690if ${gl_cv_next_pthread_h+:} false; then :
37691  $as_echo_n "(cached) " >&6
37692else
37693
37694             if test $ac_cv_header_pthread_h = yes; then
37695
37696
37697
37698
37699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37700/* end confdefs.h.  */
37701#include <pthread.h>
37702_ACEOF
37703                case "$host_os" in
37704    aix*) gl_absname_cpp="$ac_cpp -C" ;;
37705    *)    gl_absname_cpp="$ac_cpp" ;;
37706  esac
37707
37708  case "$host_os" in
37709    mingw*)
37710                                          gl_dirsep_regex='[/\\]'
37711      ;;
37712    *)
37713      gl_dirsep_regex='\/'
37714      ;;
37715  esac
37716      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
37717  gl_header_literal_regex=`echo 'pthread.h' \
37718                           | sed -e "$gl_make_literal_regex_sed"`
37719  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
37720      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
37721      s|^/[^/]|//&|
37722      p
37723      q
37724    }'
37725
37726        gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
37727  sed -n "$gl_absolute_header_sed"`
37728
37729           gl_header=$gl_cv_absolute_pthread_h
37730           gl_cv_next_pthread_h='"'$gl_header'"'
37731          else
37732               gl_cv_next_pthread_h='<'pthread.h'>'
37733             fi
37734
37735
37736fi
37737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5
37738$as_echo "$gl_cv_next_pthread_h" >&6; }
37739     fi
37740     NEXT_PTHREAD_H=$gl_cv_next_pthread_h
37741
37742     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
37743       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
37744       gl_next_as_first_directive='<'pthread.h'>'
37745     else
37746       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
37747       gl_next_as_first_directive=$gl_cv_next_pthread_h
37748     fi
37749     NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive
37750
37751
37752
37753
37754  if test $ac_cv_header_pthread_h = yes; then
37755    HAVE_PTHREAD_H=1
37756
37757
37758      if { case "$host_os" in mingw*) true;; *) false;; esac; } \
37759         && test $gl_threads_api = windows; then
37760        HAVE_PTHREAD_H=0
37761      fi
37762
37763  else
37764    HAVE_PTHREAD_H=0
37765  fi
37766
37767
37768  ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default
37769     #if HAVE_PTHREAD_H
37770      #include <pthread.h>
37771     #endif
37772"
37773if test "x$ac_cv_type_pthread_t" = xyes; then :
37774
37775cat >>confdefs.h <<_ACEOF
37776#define HAVE_PTHREAD_T 1
37777_ACEOF
37778
37779
37780fi
37781ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default
37782     #if HAVE_PTHREAD_H
37783      #include <pthread.h>
37784     #endif
37785"
37786if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
37787
37788cat >>confdefs.h <<_ACEOF
37789#define HAVE_PTHREAD_SPINLOCK_T 1
37790_ACEOF
37791
37792
37793fi
37794
37795  if test $ac_cv_type_pthread_t != yes; then
37796    HAVE_PTHREAD_T=0
37797  fi
37798  if test $ac_cv_type_pthread_spinlock_t != yes; then
37799    HAVE_PTHREAD_SPINLOCK_T=0
37800  fi
37801
37802
37803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_CREATE_DETACHED" >&5
37804$as_echo_n "checking for PTHREAD_CREATE_DETACHED... " >&6; }
37805if ${gl_cv_const_PTHREAD_CREATE_DETACHED+:} false; then :
37806  $as_echo_n "(cached) " >&6
37807else
37808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37809/* end confdefs.h.  */
37810#include <pthread.h>
37811            int x = PTHREAD_CREATE_DETACHED;
37812
37813int
37814main ()
37815{
37816
37817  ;
37818  return 0;
37819}
37820_ACEOF
37821if ac_fn_c_try_compile "$LINENO"; then :
37822  gl_cv_const_PTHREAD_CREATE_DETACHED=yes
37823else
37824  gl_cv_const_PTHREAD_CREATE_DETACHED=no
37825fi
37826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37827
37828fi
37829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_CREATE_DETACHED" >&5
37830$as_echo "$gl_cv_const_PTHREAD_CREATE_DETACHED" >&6; }
37831  if test $gl_cv_const_PTHREAD_CREATE_DETACHED != yes; then
37832    HAVE_PTHREAD_CREATE_DETACHED=0
37833  fi
37834
37835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE" >&5
37836$as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE... " >&6; }
37837if ${gl_cv_const_PTHREAD_MUTEX_RECURSIVE+:} false; then :
37838  $as_echo_n "(cached) " >&6
37839else
37840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37841/* end confdefs.h.  */
37842#include <pthread.h>
37843            int x = PTHREAD_MUTEX_RECURSIVE;
37844
37845int
37846main ()
37847{
37848
37849  ;
37850  return 0;
37851}
37852_ACEOF
37853if ac_fn_c_try_compile "$LINENO"; then :
37854  gl_cv_const_PTHREAD_MUTEX_RECURSIVE=yes
37855else
37856  gl_cv_const_PTHREAD_MUTEX_RECURSIVE=no
37857fi
37858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37859
37860fi
37861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&5
37862$as_echo "$gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&6; }
37863  if test $gl_cv_const_PTHREAD_MUTEX_RECURSIVE != yes; then
37864    HAVE_PTHREAD_MUTEX_RECURSIVE=0
37865  fi
37866
37867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ROBUST" >&5
37868$as_echo_n "checking for PTHREAD_MUTEX_ROBUST... " >&6; }
37869if ${gl_cv_const_PTHREAD_MUTEX_ROBUST+:} false; then :
37870  $as_echo_n "(cached) " >&6
37871else
37872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37873/* end confdefs.h.  */
37874#include <pthread.h>
37875            int x = PTHREAD_MUTEX_ROBUST;
37876
37877int
37878main ()
37879{
37880
37881  ;
37882  return 0;
37883}
37884_ACEOF
37885if ac_fn_c_try_compile "$LINENO"; then :
37886  gl_cv_const_PTHREAD_MUTEX_ROBUST=yes
37887else
37888  gl_cv_const_PTHREAD_MUTEX_ROBUST=no
37889fi
37890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37891
37892fi
37893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_ROBUST" >&5
37894$as_echo "$gl_cv_const_PTHREAD_MUTEX_ROBUST" >&6; }
37895  if test $gl_cv_const_PTHREAD_MUTEX_ROBUST != yes; then
37896    HAVE_PTHREAD_MUTEX_ROBUST=0
37897  fi
37898
37899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED" >&5
37900$as_echo_n "checking for PTHREAD_PROCESS_SHARED... " >&6; }
37901if ${gl_cv_const_PTHREAD_PROCESS_SHARED+:} false; then :
37902  $as_echo_n "(cached) " >&6
37903else
37904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37905/* end confdefs.h.  */
37906#include <pthread.h>
37907            int x = PTHREAD_PROCESS_SHARED;
37908
37909int
37910main ()
37911{
37912
37913  ;
37914  return 0;
37915}
37916_ACEOF
37917if ac_fn_c_try_compile "$LINENO"; then :
37918  gl_cv_const_PTHREAD_PROCESS_SHARED=yes
37919else
37920  gl_cv_const_PTHREAD_PROCESS_SHARED=no
37921fi
37922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37923
37924fi
37925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_PROCESS_SHARED" >&5
37926$as_echo "$gl_cv_const_PTHREAD_PROCESS_SHARED" >&6; }
37927  if test $gl_cv_const_PTHREAD_PROCESS_SHARED != yes; then
37928    HAVE_PTHREAD_PROCESS_SHARED=0
37929  fi
37930
37931
37932
37933
37934
37935
37936
37937    LIB_PTHREAD="$LIBPMULTITHREAD"
37938
37939
37940
37941
37942
37943
37944  if { case "$host_os" in mingw*) true;; *) false;; esac; } \
37945     && test $gl_threads_api = windows; then
37946            REPLACE_PTHREAD_CREATE=1
37947    REPLACE_PTHREAD_ATTR_INIT=1
37948    REPLACE_PTHREAD_ATTR_GETDETACHSTATE=1
37949    REPLACE_PTHREAD_ATTR_SETDETACHSTATE=1
37950    REPLACE_PTHREAD_ATTR_DESTROY=1
37951    REPLACE_PTHREAD_SELF=1
37952    REPLACE_PTHREAD_EQUAL=1
37953    REPLACE_PTHREAD_DETACH=1
37954    REPLACE_PTHREAD_JOIN=1
37955    REPLACE_PTHREAD_EXIT=1
37956  else
37957    if test $HAVE_PTHREAD_H = 0; then
37958      HAVE_PTHREAD_CREATE=0
37959      HAVE_PTHREAD_ATTR_INIT=0
37960      HAVE_PTHREAD_ATTR_GETDETACHSTATE=0
37961      HAVE_PTHREAD_ATTR_SETDETACHSTATE=0
37962      HAVE_PTHREAD_ATTR_DESTROY=0
37963      HAVE_PTHREAD_SELF=0
37964      HAVE_PTHREAD_EQUAL=0
37965      HAVE_PTHREAD_DETACH=0
37966      HAVE_PTHREAD_JOIN=0
37967      HAVE_PTHREAD_EXIT=0
37968    else
37969                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create exists as a global function" >&5
37970$as_echo_n "checking whether pthread_create exists as a global function... " >&6; }
37971if ${gl_cv_func_pthread_create+:} false; then :
37972  $as_echo_n "(cached) " >&6
37973else
37974  saved_LIBS="$LIBS"
37975         LIBS="$LIBS $LIBPMULTITHREAD"
37976         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37977/* end confdefs.h.  */
37978extern
37979                #ifdef __cplusplus
37980                "C"
37981                #endif
37982                int pthread_create (void);
37983                int main ()
37984                {
37985                  return pthread_create ();
37986                }
37987
37988_ACEOF
37989if ac_fn_c_try_link "$LINENO"; then :
37990  gl_cv_func_pthread_create=yes
37991else
37992  gl_cv_func_pthread_create=no
37993fi
37994rm -f core conftest.err conftest.$ac_objext \
37995    conftest$ac_exeext conftest.$ac_ext
37996         LIBS="$saved_LIBS"
37997
37998fi
37999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_create" >&5
38000$as_echo "$gl_cv_func_pthread_create" >&6; }
38001      if test $gl_cv_func_pthread_create = no; then
38002        REPLACE_PTHREAD_CREATE=1
38003        REPLACE_PTHREAD_ATTR_INIT=1
38004
38005$as_echo "#define PTHREAD_CREATE_IS_INLINE 1" >>confdefs.h
38006
38007      fi
38008    fi
38009  fi
38010
38011  if test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1; then
38012
38013
38014
38015
38016
38017
38018
38019
38020  gltests_LIBOBJS="$gltests_LIBOBJS pthread-thread.$ac_objext"
38021
38022  fi
38023
38024
38025
38026
38027
38028    if test "$GNULIB_PTHREAD_THREAD" != 1; then
38029        if test "$GNULIB_PTHREAD_THREAD" = 0; then
38030      GNULIB_PTHREAD_THREAD=$gl_module_indicator_condition
38031    else
38032      GNULIB_PTHREAD_THREAD="($GNULIB_PTHREAD_THREAD || $gl_module_indicator_condition)"
38033    fi
38034  fi
38035
38036
38037
38038
38039
38040$as_echo "#define GNULIB_TEST_PTHREAD_THREAD 1" >>confdefs.h
38041
38042
38043
38044
38045
38046
38047
38048
38049      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask is a macro" >&5
38050$as_echo_n "checking whether pthread_sigmask is a macro... " >&6; }
38051if ${gl_cv_func_pthread_sigmask_macro+:} false; then :
38052  $as_echo_n "(cached) " >&6
38053else
38054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38055/* end confdefs.h.  */
38056
38057#include <pthread.h>
38058#include <signal.h>
38059#ifdef pthread_sigmask
38060 headers_define_pthread_sigmask
38061#endif
38062_ACEOF
38063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38064  $EGREP "headers_define_pthread_sigmask" >/dev/null 2>&1; then :
38065  gl_cv_func_pthread_sigmask_macro=yes
38066else
38067  gl_cv_func_pthread_sigmask_macro=no
38068fi
38069rm -f conftest*
38070
38071
38072fi
38073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_macro" >&5
38074$as_echo "$gl_cv_func_pthread_sigmask_macro" >&6; }
38075
38076  LIB_PTHREAD_SIGMASK=
38077
38078  if test $gl_cv_func_pthread_sigmask_macro = yes; then
38079        HAVE_PTHREAD_SIGMASK=0
38080        REPLACE_PTHREAD_SIGMASK=1
38081  else
38082
38083
38084
38085      if test "$gl_threads_api" = posix; then
38086        if test $ac_cv_func_pthread_sigmask = yes; then
38087                    :
38088        else
38089          if test -n "$LIBMULTITHREAD"; then
38090            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
38091$as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
38092if ${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+:} false; then :
38093  $as_echo_n "(cached) " >&6
38094else
38095  gl_save_LIBS="$LIBS"
38096               LIBS="$LIBS $LIBMULTITHREAD"
38097               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38098/* end confdefs.h.  */
38099#include <pthread.h>
38100                      #include <signal.h>
38101
38102int
38103main ()
38104{
38105return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
38106  ;
38107  return 0;
38108}
38109
38110_ACEOF
38111if ac_fn_c_try_link "$LINENO"; then :
38112  gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
38113else
38114  gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
38115fi
38116rm -f core conftest.err conftest.$ac_objext \
38117    conftest$ac_exeext conftest.$ac_ext
38118               LIBS="$gl_save_LIBS"
38119
38120fi
38121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
38122$as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
38123            if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
38124                            LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
38125            else
38126                            HAVE_PTHREAD_SIGMASK=0
38127            fi
38128          else
38129                        HAVE_PTHREAD_SIGMASK=0
38130          fi
38131        fi
38132      else
38133                        if test $ac_cv_func_pthread_sigmask = yes; then
38134          REPLACE_PTHREAD_SIGMASK=1
38135        else
38136          HAVE_PTHREAD_SIGMASK=0
38137        fi
38138      fi
38139
38140  fi
38141
38142
38143
38144    if test $HAVE_PTHREAD_SIGMASK = 1; then
38145
38146
38147                if test -z "$LIB_PTHREAD_SIGMASK"; then
38148      case " $LIBS " in
38149        *' -pthread '*) ;;
38150        *' -lpthread '*) ;;
38151        *)
38152          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
38153$as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
38154if ${gl_cv_func_pthread_sigmask_in_libc_works+:} false; then :
38155  $as_echo_n "(cached) " >&6
38156else
38157
38158              if test "$cross_compiling" = yes; then :
38159
38160                                  case "$host_os" in
38161                   freebsd* | hpux* | solaris | solaris2.[2-9]*)
38162                     gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
38163                   *)
38164                     gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
38165                 esac
38166
38167else
38168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38169/* end confdefs.h.  */
38170
38171                   #include <pthread.h>
38172                   #include <signal.h>
38173                   #include <stddef.h>
38174                   int main ()
38175                   {
38176                     sigset_t set;
38177                     sigemptyset (&set);
38178                     return pthread_sigmask (1729, &set, NULL) != 0;
38179                   }
38180_ACEOF
38181if ac_fn_c_try_run "$LINENO"; then :
38182  gl_cv_func_pthread_sigmask_in_libc_works=no
38183else
38184  gl_cv_func_pthread_sigmask_in_libc_works=yes
38185fi
38186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38187  conftest.$ac_objext conftest.beam conftest.$ac_ext
38188fi
38189
38190
38191fi
38192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
38193$as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
38194          case "$gl_cv_func_pthread_sigmask_in_libc_works" in
38195            *no)
38196              REPLACE_PTHREAD_SIGMASK=1
38197
38198$as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
38199
38200              ;;
38201          esac;;
38202      esac
38203    fi
38204
38205            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
38206$as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
38207if ${gl_cv_func_pthread_sigmask_return_works+:} false; then :
38208  $as_echo_n "(cached) " >&6
38209else
38210
38211        gl_save_LIBS="$LIBS"
38212        LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
38213        if test "$cross_compiling" = yes; then :
38214  case "$host_os" in
38215             cygwin*)
38216               gl_cv_func_pthread_sigmask_return_works="guessing no";;
38217             *)
38218               gl_cv_func_pthread_sigmask_return_works="guessing yes";;
38219           esac
38220
38221else
38222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38223/* end confdefs.h.  */
38224
38225#include <pthread.h>
38226#include <signal.h>
38227#include <stddef.h>
38228int main ()
38229{
38230  sigset_t set;
38231  sigemptyset (&set);
38232  if (pthread_sigmask (1729, &set, NULL) == -1)
38233    return 1;
38234  return 0;
38235}
38236_ACEOF
38237if ac_fn_c_try_run "$LINENO"; then :
38238  gl_cv_func_pthread_sigmask_return_works=yes
38239else
38240  gl_cv_func_pthread_sigmask_return_works=no
38241fi
38242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38243  conftest.$ac_objext conftest.beam conftest.$ac_ext
38244fi
38245
38246        LIBS="$gl_save_LIBS"
38247
38248fi
38249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
38250$as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
38251    case "$gl_cv_func_pthread_sigmask_return_works" in
38252      *no)
38253        REPLACE_PTHREAD_SIGMASK=1
38254
38255$as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
38256
38257        ;;
38258    esac
38259
38260                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
38261$as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
38262if ${gl_cv_func_pthread_sigmask_unblock_works+:} false; then :
38263  $as_echo_n "(cached) " >&6
38264else
38265
38266        case "$host_os" in
38267          irix*)
38268            gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
38269          *)
38270            gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
38271        esac
38272                                         gl_save_LIBS=$LIBS
38273           LIBS="$LIBS $LIBMULTITHREAD"
38274        if test "$cross_compiling" = yes; then :
38275  :
38276else
38277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38278/* end confdefs.h.  */
38279
38280#include <pthread.h>
38281#include <signal.h>
38282#include <stdio.h>
38283#include <stdlib.h>
38284#include <unistd.h>
38285static volatile int sigint_occurred;
38286static void
38287sigint_handler (int sig)
38288{
38289  sigint_occurred++;
38290}
38291int main ()
38292{
38293  sigset_t set;
38294  int pid = getpid ();
38295  char command[80];
38296  signal (SIGINT, sigint_handler);
38297  sigemptyset (&set);
38298  sigaddset (&set, SIGINT);
38299  if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
38300    return 1;
38301  sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
38302  if (!(system (command) == 0))
38303    return 2;
38304  sleep (2);
38305  if (!(sigint_occurred == 0))
38306    return 3;
38307  if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
38308    return 4;
38309  if (!(sigint_occurred == 1)) /* This fails on IRIX.  */
38310    return 5;
38311  return 0;
38312}
38313_ACEOF
38314if ac_fn_c_try_run "$LINENO"; then :
38315  :
38316else
38317  gl_cv_func_pthread_sigmask_unblock_works=no
38318fi
38319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38320  conftest.$ac_objext conftest.beam conftest.$ac_ext
38321fi
38322
38323        LIBS=$gl_save_LIBS
38324
38325fi
38326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
38327$as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
38328    case "$gl_cv_func_pthread_sigmask_unblock_works" in
38329      *no)
38330        REPLACE_PTHREAD_SIGMASK=1
38331
38332$as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
38333
38334        ;;
38335    esac
38336  fi
38337
38338  if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
38339
38340
38341
38342
38343
38344
38345
38346
38347  gltests_LIBOBJS="$gltests_LIBOBJS pthread_sigmask.$ac_objext"
38348
38349
38350  if test $HAVE_PTHREAD_SIGMASK = 1; then
38351
38352$as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
38353
38354  fi
38355
38356  fi
38357
38358
38359
38360
38361
38362    if test "$GNULIB_PTHREAD_SIGMASK" != 1; then
38363        if test "$GNULIB_PTHREAD_SIGMASK" = 0; then
38364      GNULIB_PTHREAD_SIGMASK=$gl_module_indicator_condition
38365    else
38366      GNULIB_PTHREAD_SIGMASK="($GNULIB_PTHREAD_SIGMASK || $gl_module_indicator_condition)"
38367    fi
38368  fi
38369
38370
38371
38372
38373
38374$as_echo "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h
38375
38376
38377
38378
38379
38380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
38381$as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
38382if ${gl_cv_func_svid_putenv+:} false; then :
38383  $as_echo_n "(cached) " >&6
38384else
38385  if test "$cross_compiling" = yes; then :
38386               case "$host_os" in
38387                               # Guess yes on glibc systems.
38388                *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
38389                               # Guess yes on musl systems.
38390                *-musl*)       gl_cv_func_svid_putenv="guessing yes" ;;
38391                               # Guess no on native Windows.
38392                mingw*)        gl_cv_func_svid_putenv="guessing no" ;;
38393                               # If we don't know, obey --enable-cross-guesses.
38394                *)             gl_cv_func_svid_putenv="$gl_cross_guess_normal" ;;
38395              esac
38396
38397else
38398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38399/* end confdefs.h.  */
38400$ac_includes_default
38401int
38402main ()
38403{
38404
38405    /* Put it in env.  */
38406    if (putenv ("CONFTEST_putenv=val"))
38407      return 1;
38408
38409    /* Try to remove it.  */
38410    if (putenv ("CONFTEST_putenv"))
38411      return 2;
38412
38413    /* Make sure it was deleted.  */
38414    if (getenv ("CONFTEST_putenv") != 0)
38415      return 3;
38416
38417    return 0;
38418
38419  ;
38420  return 0;
38421}
38422_ACEOF
38423if ac_fn_c_try_run "$LINENO"; then :
38424  gl_cv_func_svid_putenv=yes
38425else
38426  gl_cv_func_svid_putenv=no
38427fi
38428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38429  conftest.$ac_objext conftest.beam conftest.$ac_ext
38430fi
38431
38432
38433fi
38434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
38435$as_echo "$gl_cv_func_svid_putenv" >&6; }
38436  case "$gl_cv_func_svid_putenv" in
38437    *yes) ;;
38438    *)
38439      REPLACE_PUTENV=1
38440      ;;
38441  esac
38442
38443  if test $REPLACE_PUTENV = 1; then
38444
38445
38446
38447
38448
38449
38450
38451
38452  gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext"
38453
38454
38455  ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
38456if test "x$ac_cv_have_decl__putenv" = xyes; then :
38457  ac_have_decl=1
38458else
38459  ac_have_decl=0
38460fi
38461
38462cat >>confdefs.h <<_ACEOF
38463#define HAVE_DECL__PUTENV $ac_have_decl
38464_ACEOF
38465
38466
38467  fi
38468
38469
38470
38471
38472
38473    if test "$GNULIB_PUTENV" != 1; then
38474        if test "$GNULIB_PUTENV" = 0; then
38475      GNULIB_PUTENV=$gl_module_indicator_condition
38476    else
38477      GNULIB_PUTENV="($GNULIB_PUTENV || $gl_module_indicator_condition)"
38478    fi
38479  fi
38480
38481
38482
38483
38484
38485$as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
38486
38487
38488
38489
38490
38491
38492  for ac_func in raise
38493do :
38494  ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
38495if test "x$ac_cv_func_raise" = xyes; then :
38496  cat >>confdefs.h <<_ACEOF
38497#define HAVE_RAISE 1
38498_ACEOF
38499
38500fi
38501done
38502
38503  if test $ac_cv_func_raise = no; then
38504    HAVE_RAISE=0
38505  else
38506
38507
38508      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
38509        REPLACE_RAISE=1
38510      fi
38511
38512
38513
38514
38515
38516  if test $gl_cv_type_sigset_t = yes; then
38517    ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
38518if test "x$ac_cv_func_sigprocmask" = xyes; then :
38519  gl_cv_func_sigprocmask=1
38520fi
38521
38522  fi
38523  if test -z "$gl_cv_func_sigprocmask"; then
38524    HAVE_POSIX_SIGNALBLOCKING=0
38525  fi
38526
38527      if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
38528        :
38529      fi
38530
38531  fi
38532
38533  if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
38534
38535
38536
38537
38538
38539
38540
38541
38542  gltests_LIBOBJS="$gltests_LIBOBJS raise.$ac_objext"
38543
38544    :
38545  fi
38546
38547
38548
38549
38550
38551    if test "$GNULIB_RAISE" != 1; then
38552        if test "$GNULIB_RAISE" = 0; then
38553      GNULIB_RAISE=$gl_module_indicator_condition
38554    else
38555      GNULIB_RAISE="($GNULIB_RAISE || $gl_module_indicator_condition)"
38556    fi
38557  fi
38558
38559
38560
38561
38562
38563$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573  for ac_header in sched.h
38574do :
38575  ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "#if HAVE_SYS_CDEFS_H
38576       #include <sys/cdefs.h>
38577      #endif
38578
38579"
38580if test "x$ac_cv_header_sched_h" = xyes; then :
38581  cat >>confdefs.h <<_ACEOF
38582#define HAVE_SCHED_H 1
38583_ACEOF
38584
38585fi
38586
38587done
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597     if test $gl_cv_have_include_next = yes; then
38598       gl_cv_next_sched_h='<'sched.h'>'
38599     else
38600       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
38601$as_echo_n "checking absolute name of <sched.h>... " >&6; }
38602if ${gl_cv_next_sched_h+:} false; then :
38603  $as_echo_n "(cached) " >&6
38604else
38605
38606
38607
38608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38609/* end confdefs.h.  */
38610#include <sched.h>
38611_ACEOF
38612                case "$host_os" in
38613    aix*) gl_absname_cpp="$ac_cpp -C" ;;
38614    *)    gl_absname_cpp="$ac_cpp" ;;
38615  esac
38616
38617  case "$host_os" in
38618    mingw*)
38619                                          gl_dirsep_regex='[/\\]'
38620      ;;
38621    *)
38622      gl_dirsep_regex='\/'
38623      ;;
38624  esac
38625      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
38626  gl_header_literal_regex=`echo 'sched.h' \
38627                           | sed -e "$gl_make_literal_regex_sed"`
38628  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
38629      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
38630      s|^/[^/]|//&|
38631      p
38632      q
38633    }'
38634
38635        gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38636  sed -n "$gl_absolute_header_sed"`
38637
38638           gl_header=$gl_cv_absolute_sched_h
38639           gl_cv_next_sched_h='"'$gl_header'"'
38640
38641
38642fi
38643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
38644$as_echo "$gl_cv_next_sched_h" >&6; }
38645     fi
38646     NEXT_SCHED_H=$gl_cv_next_sched_h
38647
38648     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38649       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38650       gl_next_as_first_directive='<'sched.h'>'
38651     else
38652       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38653       gl_next_as_first_directive=$gl_cv_next_sched_h
38654     fi
38655     NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
38656
38657
38658
38659
38660
38661  if test "$ac_cv_header_sched_h" = yes; then
38662    HAVE_SCHED_H=1
38663  else
38664    HAVE_SCHED_H=0
38665  fi
38666
38667
38668  if test "$HAVE_SCHED_H" = 1; then
38669    ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#if HAVE_SYS_CDEFS_H
38670         #include <sys/cdefs.h>
38671        #endif
38672        #include <sched.h>
38673
38674"
38675if test "x$ac_cv_type_struct_sched_param" = xyes; then :
38676  HAVE_STRUCT_SCHED_PARAM=1
38677else
38678  HAVE_STRUCT_SCHED_PARAM=0
38679fi
38680
38681  else
38682    HAVE_STRUCT_SCHED_PARAM=0
38683    case "$host_os" in
38684      os2*)
38685                ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h>
38686"
38687if test "x$ac_cv_type_struct_sched_param" = xyes; then :
38688  HAVE_STRUCT_SCHED_PARAM=1
38689fi
38690
38691        ;;
38692      vms)
38693                ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <pthread.h>
38694"
38695if test "x$ac_cv_type_struct_sched_param" = xyes; then :
38696  HAVE_STRUCT_SCHED_PARAM=1
38697fi
38698
38699        ;;
38700    esac
38701  fi
38702
38703
38704  if test "$ac_cv_header_sys_cdefs_h" = yes; then
38705    HAVE_SYS_CDEFS_H=1
38706  else
38707    HAVE_SYS_CDEFS_H=0
38708  fi
38709
38710
38711
38712
38713
38714
38715
38716
38717
38718
38719
38720
38721  if test "$ac_cv_header_winsock2_h" = yes; then
38722    REPLACE_SELECT=1
38723  else
38724
38725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
38726$as_echo_n "checking whether select supports a 0 argument... " >&6; }
38727if ${gl_cv_func_select_supports0+:} false; then :
38728  $as_echo_n "(cached) " >&6
38729else
38730
38731        if test "$cross_compiling" = yes; then :
38732
38733           case "$host_os" in
38734                       # Guess no on Interix.
38735             interix*) gl_cv_func_select_supports0="guessing no";;
38736                       # Guess yes otherwise.
38737             *)        gl_cv_func_select_supports0="guessing yes";;
38738           esac
38739
38740else
38741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38742/* end confdefs.h.  */
38743
38744#include <sys/types.h>
38745#include <sys/time.h>
38746#if HAVE_SYS_SELECT_H
38747#include <sys/select.h>
38748#endif
38749int main ()
38750{
38751  struct timeval timeout;
38752  timeout.tv_sec = 0;
38753  timeout.tv_usec = 5;
38754  return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
38755}
38756_ACEOF
38757if ac_fn_c_try_run "$LINENO"; then :
38758  gl_cv_func_select_supports0=yes
38759else
38760  gl_cv_func_select_supports0=no
38761fi
38762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38763  conftest.$ac_objext conftest.beam conftest.$ac_ext
38764fi
38765
38766
38767fi
38768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
38769$as_echo "$gl_cv_func_select_supports0" >&6; }
38770    case "$gl_cv_func_select_supports0" in
38771      *yes) ;;
38772      *) REPLACE_SELECT=1 ;;
38773    esac
38774
38775        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
38776$as_echo_n "checking whether select detects invalid fds... " >&6; }
38777if ${gl_cv_func_select_detects_ebadf+:} false; then :
38778  $as_echo_n "(cached) " >&6
38779else
38780
38781        if test "$cross_compiling" = yes; then :
38782
38783           case "$host_os" in
38784                             # Guess yes on Linux systems.
38785            linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
38786                             # Guess yes on glibc systems.
38787            *-gnu* | gnu*)   gl_cv_func_select_detects_ebadf="guessing yes" ;;
38788                             # If we don't know, obey --enable-cross-guesses.
38789            *)               gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
38790           esac
38791
38792else
38793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38794/* end confdefs.h.  */
38795
38796#include <sys/types.h>
38797#include <sys/time.h>
38798#if HAVE_SYS_SELECT_H
38799# include <sys/select.h>
38800#endif
38801#include <unistd.h>
38802#include <errno.h>
38803
38804int
38805main ()
38806{
38807
38808  fd_set set;
38809  dup2(0, 16);
38810  FD_ZERO(&set);
38811  FD_SET(16, &set);
38812  close(16);
38813  struct timeval timeout;
38814  timeout.tv_sec = 0;
38815  timeout.tv_usec = 5;
38816  return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
38817
38818  ;
38819  return 0;
38820}
38821_ACEOF
38822if ac_fn_c_try_run "$LINENO"; then :
38823  gl_cv_func_select_detects_ebadf=yes
38824else
38825  gl_cv_func_select_detects_ebadf=no
38826fi
38827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38828  conftest.$ac_objext conftest.beam conftest.$ac_ext
38829fi
38830
38831
38832fi
38833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
38834$as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
38835    case $gl_cv_func_select_detects_ebadf in
38836      *yes) ;;
38837      *) REPLACE_SELECT=1 ;;
38838    esac
38839  fi
38840
38841    LIB_SELECT="$LIBSOCKET"
38842  if test $REPLACE_SELECT = 1; then
38843    case "$host_os" in
38844      mingw*)
38845                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38846/* end confdefs.h.  */
38847
38848#define WIN32_LEAN_AND_MEAN
38849#include <windows.h>
38850int
38851main ()
38852{
38853  MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
38854  return 0;
38855}
38856_ACEOF
38857if ac_fn_c_try_link "$LINENO"; then :
38858
38859else
38860  LIB_SELECT="$LIB_SELECT -luser32"
38861fi
38862rm -f core conftest.err conftest.$ac_objext \
38863    conftest$ac_exeext conftest.$ac_ext
38864        ;;
38865    esac
38866  fi
38867
38868
38869  if test $REPLACE_SELECT = 1; then
38870
38871
38872
38873
38874
38875
38876
38877
38878  gltests_LIBOBJS="$gltests_LIBOBJS select.$ac_objext"
38879
38880  fi
38881
38882
38883
38884
38885
38886    if test "$GNULIB_SELECT" != 1; then
38887        if test "$GNULIB_SELECT" = 0; then
38888      GNULIB_SELECT=$gl_module_indicator_condition
38889    else
38890      GNULIB_SELECT="($GNULIB_SELECT || $gl_module_indicator_condition)"
38891    fi
38892  fi
38893
38894
38895
38896
38897
38898$as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
38899
38900
38901
38902
38903
38904
38905     if test $ac_cv_func_setenv = no; then
38906    HAVE_SETENV=0
38907  else
38908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
38909$as_echo_n "checking whether setenv validates arguments... " >&6; }
38910if ${gl_cv_func_setenv_works+:} false; then :
38911  $as_echo_n "(cached) " >&6
38912else
38913  if test "$cross_compiling" = yes; then :
38914  case "$host_os" in
38915                        # Guess yes on glibc systems.
38916         *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
38917                        # Guess yes on musl systems.
38918         *-musl*)       gl_cv_func_setenv_works="guessing yes" ;;
38919                        # If we don't know, obey --enable-cross-guesses.
38920         *)             gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
38921       esac
38922
38923else
38924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38925/* end confdefs.h.  */
38926
38927       #include <stdlib.h>
38928       #include <errno.h>
38929       #include <string.h>
38930
38931int
38932main ()
38933{
38934
38935       int result = 0;
38936       {
38937         if (setenv ("", "", 0) != -1)
38938           result |= 1;
38939         else if (errno != EINVAL)
38940           result |= 2;
38941       }
38942       {
38943         if (setenv ("a", "=", 1) != 0)
38944           result |= 4;
38945         else if (strcmp (getenv ("a"), "=") != 0)
38946           result |= 8;
38947       }
38948       return result;
38949
38950  ;
38951  return 0;
38952}
38953_ACEOF
38954if ac_fn_c_try_run "$LINENO"; then :
38955  gl_cv_func_setenv_works=yes
38956else
38957  gl_cv_func_setenv_works=no
38958fi
38959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38960  conftest.$ac_objext conftest.beam conftest.$ac_ext
38961fi
38962
38963fi
38964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
38965$as_echo "$gl_cv_func_setenv_works" >&6; }
38966    case "$gl_cv_func_setenv_works" in
38967      *yes) ;;
38968      *)
38969        REPLACE_SETENV=1
38970        ;;
38971    esac
38972  fi
38973
38974  if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
38975
38976
38977
38978
38979
38980
38981
38982
38983  gltests_LIBOBJS="$gltests_LIBOBJS setenv.$ac_objext"
38984
38985  fi
38986
38987
38988
38989
38990
38991    if test "$GNULIB_SETENV" != 1; then
38992        if test "$GNULIB_SETENV" = 0; then
38993      GNULIB_SETENV=$gl_module_indicator_condition
38994    else
38995      GNULIB_SETENV="($GNULIB_SETENV || $gl_module_indicator_condition)"
38996    fi
38997  fi
38998
38999
39000
39001
39002
39003$as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
39004
39005
39006
39007
39008
39009
39010
39011
39012    NEED_SETLOCALE_IMPROVED=0
39013  case "$host_os" in
39014            mingw*) NEED_SETLOCALE_IMPROVED=1 ;;
39015            cygwin*)
39016      case `uname -r` in
39017        1.5.*) NEED_SETLOCALE_IMPROVED=1 ;;
39018      esac
39019      ;;
39020        *)
39021      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale supports the C locale" >&5
39022$as_echo_n "checking whether setlocale supports the C locale... " >&6; }
39023if ${gl_cv_func_setlocale_works+:} false; then :
39024  $as_echo_n "(cached) " >&6
39025else
39026  if test "$cross_compiling" = yes; then :
39027  case "$host_os" in
39028                               # Guess no on Android.
39029              linux*-android*) gl_cv_func_setlocale_works="guessing no";;
39030                               # Guess yes otherwise.
39031              *)               gl_cv_func_setlocale_works="guessing yes";;
39032            esac
39033
39034else
39035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39036/* end confdefs.h.  */
39037
39038#include <locale.h>
39039int main ()
39040{
39041  return setlocale (LC_ALL, "C") == NULL;
39042}
39043_ACEOF
39044if ac_fn_c_try_run "$LINENO"; then :
39045  gl_cv_func_setlocale_works=yes
39046else
39047  gl_cv_func_setlocale_works=no
39048fi
39049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39050  conftest.$ac_objext conftest.beam conftest.$ac_ext
39051fi
39052
39053
39054fi
39055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_works" >&5
39056$as_echo "$gl_cv_func_setlocale_works" >&6; }
39057      case "$gl_cv_func_setlocale_works" in
39058        *yes) ;;
39059        *) NEED_SETLOCALE_IMPROVED=1 ;;
39060      esac
39061      ;;
39062  esac
39063
39064cat >>confdefs.h <<_ACEOF
39065#define NEED_SETLOCALE_IMPROVED $NEED_SETLOCALE_IMPROVED
39066_ACEOF
39067
39068
39069    NEED_SETLOCALE_MTSAFE=0
39070  if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
39071    NEED_SETLOCALE_MTSAFE=1
39072  fi
39073
39074cat >>confdefs.h <<_ACEOF
39075#define NEED_SETLOCALE_MTSAFE $NEED_SETLOCALE_MTSAFE
39076_ACEOF
39077
39078
39079  if test $NEED_SETLOCALE_IMPROVED = 1 || test $NEED_SETLOCALE_MTSAFE = 1; then
39080    REPLACE_SETLOCALE=1
39081  fi
39082
39083  if test $NEED_SETLOCALE_MTSAFE = 1; then
39084    LIB_SETLOCALE="$LIB_SETLOCALE_NULL"
39085  else
39086    LIB_SETLOCALE=
39087  fi
39088
39089
39090  if test $REPLACE_SETLOCALE = 1; then
39091
39092
39093
39094
39095
39096
39097
39098
39099  gltests_LIBOBJS="$gltests_LIBOBJS setlocale.$ac_objext"
39100
39101
39102        :
39103
39104  fi
39105
39106
39107
39108
39109
39110    if test "$GNULIB_SETLOCALE" != 1; then
39111        if test "$GNULIB_SETLOCALE" = 0; then
39112      GNULIB_SETLOCALE=$gl_module_indicator_condition
39113    else
39114      GNULIB_SETLOCALE="($GNULIB_SETLOCALE || $gl_module_indicator_condition)"
39115    fi
39116  fi
39117
39118
39119
39120
39121
39122$as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
39123
39124
39125
39126
39127
39128
39129
39130
39131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
39132$as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
39133if ${gl_cv_func_setlocale_null_all_mtsafe+:} false; then :
39134  $as_echo_n "(cached) " >&6
39135else
39136  case "$host_os" in
39137       # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
39138       *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*)
39139         gl_cv_func_setlocale_null_all_mtsafe=no ;;
39140       # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
39141       *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*)
39142         gl_cv_func_setlocale_null_all_mtsafe=yes ;;
39143       # If we don't know, obey --enable-cross-guesses.
39144       *)
39145         gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;;
39146     esac
39147
39148fi
39149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
39150$as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
39151    case "$host_os" in
39152    mingw*) ;;
39153    *)
39154      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
39155        gl_cv_func_setlocale_null_all_mtsafe="trivially yes"
39156      fi
39157      ;;
39158  esac
39159  case "$gl_cv_func_setlocale_null_all_mtsafe" in
39160    *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;;
39161    *)    SETLOCALE_NULL_ALL_MTSAFE=0 ;;
39162  esac
39163
39164cat >>confdefs.h <<_ACEOF
39165#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
39166_ACEOF
39167
39168
39169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
39170$as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
39171if ${gl_cv_func_setlocale_null_one_mtsafe+:} false; then :
39172  $as_echo_n "(cached) " >&6
39173else
39174  case "$host_os" in
39175       # Guess no on OpenBSD, AIX.
39176       openbsd* | aix*)
39177         gl_cv_func_setlocale_null_one_mtsafe=no ;;
39178       # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
39179       *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*)
39180         gl_cv_func_setlocale_null_one_mtsafe=yes ;;
39181       # If we don't know, obey --enable-cross-guesses.
39182       *)
39183         gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;;
39184     esac
39185
39186fi
39187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
39188$as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
39189    case "$host_os" in
39190    mingw*) ;;
39191    *)
39192      if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then
39193        gl_cv_func_setlocale_null_one_mtsafe="trivially yes"
39194      fi
39195      ;;
39196  esac
39197  case "$gl_cv_func_setlocale_null_one_mtsafe" in
39198    *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;;
39199    *)    SETLOCALE_NULL_ONE_MTSAFE=0 ;;
39200  esac
39201
39202cat >>confdefs.h <<_ACEOF
39203#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
39204_ACEOF
39205
39206
39207    if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
39208    case "$host_os" in
39209      mingw*) LIB_SETLOCALE_NULL= ;;
39210      *)
39211
39212
39213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
39214$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
39215if ${gl_cv_have_weak+:} false; then :
39216  $as_echo_n "(cached) " >&6
39217else
39218  gl_cv_have_weak=no
39219          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39220/* end confdefs.h.  */
39221extern void xyzzy ();
39222#pragma weak xyzzy
39223int
39224main ()
39225{
39226xyzzy();
39227  ;
39228  return 0;
39229}
39230_ACEOF
39231if ac_fn_c_try_link "$LINENO"; then :
39232  gl_cv_have_weak=maybe
39233fi
39234rm -f core conftest.err conftest.$ac_objext \
39235    conftest$ac_exeext conftest.$ac_ext
39236     if test $gl_cv_have_weak = maybe; then
39237                     if test "$cross_compiling" = yes; then :
39238                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39239/* end confdefs.h.  */
39240#ifdef __ELF__
39241             Extensible Linking Format
39242             #endif
39243
39244_ACEOF
39245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39246  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
39247  gl_cv_have_weak="guessing yes"
39248else
39249  gl_cv_have_weak="guessing no"
39250fi
39251rm -f conftest*
39252
39253
39254else
39255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39256/* end confdefs.h.  */
39257
39258#include <stdio.h>
39259#pragma weak fputs
39260int main ()
39261{
39262  return (fputs == NULL);
39263}
39264_ACEOF
39265if ac_fn_c_try_run "$LINENO"; then :
39266  gl_cv_have_weak=yes
39267else
39268  gl_cv_have_weak=no
39269fi
39270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39271  conftest.$ac_objext conftest.beam conftest.$ac_ext
39272fi
39273
39274     fi
39275          case " $LDFLAGS " in
39276       *" -static "*) gl_cv_have_weak=no ;;
39277     esac
39278                    case "$gl_cv_have_weak" in
39279       *yes)
39280         case "$host_os" in
39281           freebsd* | dragonfly*)
39282             : > conftest1.c
39283             $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
39284             cat <<EOF > conftest2.c
39285#include <pthread.h>
39286#pragma weak pthread_mutexattr_gettype
39287int main ()
39288{
39289  return (pthread_mutexattr_gettype != NULL);
39290}
39291EOF
39292             $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
39293               || gl_cv_have_weak=no
39294             rm -f conftest1.c libempty.so conftest2.c conftest
39295             ;;
39296         esac
39297         ;;
39298     esac
39299
39300fi
39301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
39302$as_echo "$gl_cv_have_weak" >&6; }
39303  case "$gl_cv_have_weak" in
39304    *yes)
39305
39306$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
39307
39308      ;;
39309  esac
39310
39311        case "$gl_cv_have_weak" in
39312          *yes) LIB_SETLOCALE_NULL= ;;
39313          *)    LIB_SETLOCALE_NULL="$LIBPTHREAD" ;;
39314        esac
39315        ;;
39316    esac
39317  else
39318    LIB_SETLOCALE_NULL=
39319  fi
39320
39321
39322  if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
39323
39324
39325
39326
39327
39328
39329
39330
39331  gltests_LIBOBJS="$gltests_LIBOBJS setlocale-lock.$ac_objext"
39332
39333
39334
39335
39336  CFLAG_VISIBILITY=
39337  HAVE_VISIBILITY=0
39338  if test -n "$GCC"; then
39339                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
39340$as_echo_n "checking whether the -Werror option is usable... " >&6; }
39341if ${gl_cv_cc_vis_werror+:} false; then :
39342  $as_echo_n "(cached) " >&6
39343else
39344  gl_save_CFLAGS="$CFLAGS"
39345       CFLAGS="$CFLAGS -Werror"
39346       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39347/* end confdefs.h.  */
39348
39349int
39350main ()
39351{
39352
39353  ;
39354  return 0;
39355}
39356_ACEOF
39357if ac_fn_c_try_compile "$LINENO"; then :
39358  gl_cv_cc_vis_werror=yes
39359else
39360  gl_cv_cc_vis_werror=no
39361fi
39362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39363       CFLAGS="$gl_save_CFLAGS"
39364
39365fi
39366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
39367$as_echo "$gl_cv_cc_vis_werror" >&6; }
39368        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
39369$as_echo_n "checking for simple visibility declarations... " >&6; }
39370if ${gl_cv_cc_visibility+:} false; then :
39371  $as_echo_n "(cached) " >&6
39372else
39373  gl_save_CFLAGS="$CFLAGS"
39374       CFLAGS="$CFLAGS -fvisibility=hidden"
39375                                          if test $gl_cv_cc_vis_werror = yes; then
39376         CFLAGS="$CFLAGS -Werror"
39377       fi
39378       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39379/* end confdefs.h.  */
39380extern __attribute__((__visibility__("hidden"))) int hiddenvar;
39381              extern __attribute__((__visibility__("default"))) int exportedvar;
39382              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
39383              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
39384              void dummyfunc (void) {}
39385
39386int
39387main ()
39388{
39389
39390  ;
39391  return 0;
39392}
39393_ACEOF
39394if ac_fn_c_try_compile "$LINENO"; then :
39395  gl_cv_cc_visibility=yes
39396else
39397  gl_cv_cc_visibility=no
39398fi
39399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39400       CFLAGS="$gl_save_CFLAGS"
39401
39402fi
39403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
39404$as_echo "$gl_cv_cc_visibility" >&6; }
39405    if test $gl_cv_cc_visibility = yes; then
39406      CFLAG_VISIBILITY="-fvisibility=hidden"
39407      HAVE_VISIBILITY=1
39408    fi
39409  fi
39410
39411
39412
39413cat >>confdefs.h <<_ACEOF
39414#define HAVE_VISIBILITY $HAVE_VISIBILITY
39415_ACEOF
39416
39417
39418
39419  fi
39420
39421
39422
39423
39424
39425    if test "$GNULIB_SETLOCALE_NULL" != 1; then
39426        if test "$GNULIB_SETLOCALE_NULL" = 0; then
39427      GNULIB_SETLOCALE_NULL=$gl_module_indicator_condition
39428    else
39429      GNULIB_SETLOCALE_NULL="($GNULIB_SETLOCALE_NULL || $gl_module_indicator_condition)"
39430    fi
39431  fi
39432
39433
39434
39435
39436
39437$as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
39438
39439
39440
39441
39442
39443
39444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
39445$as_echo_n "checking for a traditional french locale... " >&6; }
39446if ${gt_cv_locale_fr+:} false; then :
39447  $as_echo_n "(cached) " >&6
39448else
39449
39450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39451/* end confdefs.h.  */
39452
39453#include <locale.h>
39454#include <time.h>
39455#if HAVE_LANGINFO_CODESET
39456# include <langinfo.h>
39457#endif
39458#include <stdlib.h>
39459#include <string.h>
39460struct tm t;
39461char buf[16];
39462int main () {
39463  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
39464     imitates locale dependent behaviour by looking at the environment
39465     variables, and all locales use the UTF-8 encoding.  */
39466#if defined __BEOS__ || defined __HAIKU__
39467  return 1;
39468#else
39469  /* Check whether the given locale name is recognized by the system.  */
39470# if defined _WIN32 && !defined __CYGWIN__
39471  /* On native Windows, setlocale(category, "") looks at the system settings,
39472     not at the environment variables.  Also, when an encoding suffix such
39473     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
39474     category of the locale to "C".  */
39475  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
39476      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
39477    return 1;
39478# else
39479  if (setlocale (LC_ALL, "") == NULL) return 1;
39480# endif
39481  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
39482     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
39483     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
39484     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
39485     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
39486     some unit tests fail.
39487     On MirBSD 10, when an unsupported locale is specified, setlocale()
39488     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
39489# if HAVE_LANGINFO_CODESET
39490  {
39491    const char *cs = nl_langinfo (CODESET);
39492    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
39493        || strcmp (cs, "UTF-8") == 0)
39494      return 1;
39495  }
39496# endif
39497# ifdef __CYGWIN__
39498  /* On Cygwin, avoid locale names without encoding suffix, because the
39499     locale_charset() function relies on the encoding suffix.  Note that
39500     LC_ALL is set on the command line.  */
39501  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
39502# endif
39503  /* Check whether in the abbreviation of the second month, the second
39504     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
39505     one byte long. This excludes the UTF-8 encoding.  */
39506  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
39507  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
39508# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
39509  /* Check whether the decimal separator is a comma.
39510     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
39511     are nl_langinfo(RADIXCHAR) are both ".".  */
39512  if (localeconv () ->decimal_point[0] != ',') return 1;
39513# endif
39514  return 0;
39515#endif
39516}
39517
39518_ACEOF
39519    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
39520  (eval $ac_link) 2>&5
39521  ac_status=$?
39522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39523  test $ac_status = 0; } && test -s conftest$ac_exeext; then
39524      case "$host_os" in
39525        # Handle native Windows specially, because there setlocale() interprets
39526        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
39527        # "fr" or "fra" as "French" or "French_France.1252",
39528        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
39529        # "ja" as "Japanese" or "Japanese_Japan.932",
39530        # and similar.
39531        mingw*)
39532          # Test for the native Windows locale name.
39533          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39534            gt_cv_locale_fr=French_France.1252
39535          else
39536            # None found.
39537            gt_cv_locale_fr=none
39538          fi
39539          ;;
39540        *)
39541          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
39542          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
39543          # configure script would override the LC_ALL setting. Likewise for
39544          # LC_CTYPE, which is also set at the beginning of the configure script.
39545          # Test for the usual locale name.
39546          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39547            gt_cv_locale_fr=fr_FR
39548          else
39549            # Test for the locale name with explicit encoding suffix.
39550            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39551              gt_cv_locale_fr=fr_FR.ISO-8859-1
39552            else
39553              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
39554              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39555                gt_cv_locale_fr=fr_FR.ISO8859-1
39556              else
39557                # Test for the HP-UX locale name.
39558                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39559                  gt_cv_locale_fr=fr_FR.iso88591
39560                else
39561                  # Test for the Solaris 7 locale name.
39562                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39563                    gt_cv_locale_fr=fr
39564                  else
39565                    # None found.
39566                    gt_cv_locale_fr=none
39567                  fi
39568                fi
39569              fi
39570            fi
39571          fi
39572          ;;
39573      esac
39574    fi
39575    rm -fr conftest*
39576
39577fi
39578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
39579$as_echo "$gt_cv_locale_fr" >&6; }
39580  LOCALE_FR=$gt_cv_locale_fr
39581
39582
39583
39584
39585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
39586$as_echo_n "checking for a french Unicode locale... " >&6; }
39587if ${gt_cv_locale_fr_utf8+:} false; then :
39588  $as_echo_n "(cached) " >&6
39589else
39590
39591    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39592/* end confdefs.h.  */
39593
39594#include <locale.h>
39595#include <time.h>
39596#if HAVE_LANGINFO_CODESET
39597# include <langinfo.h>
39598#endif
39599#include <stdlib.h>
39600#include <string.h>
39601struct tm t;
39602char buf[16];
39603int main () {
39604  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
39605     imitates locale dependent behaviour by looking at the environment
39606     variables, and all locales use the UTF-8 encoding.  */
39607#if !(defined __BEOS__ || defined __HAIKU__)
39608  /* Check whether the given locale name is recognized by the system.  */
39609# if defined _WIN32 && !defined __CYGWIN__
39610  /* On native Windows, setlocale(category, "") looks at the system settings,
39611     not at the environment variables.  Also, when an encoding suffix such
39612     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
39613     category of the locale to "C".  */
39614  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
39615      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
39616    return 1;
39617# else
39618  if (setlocale (LC_ALL, "") == NULL) return 1;
39619# endif
39620  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
39621     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
39622     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
39623     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
39624     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
39625     some unit tests fail.  */
39626# if HAVE_LANGINFO_CODESET
39627  {
39628    const char *cs = nl_langinfo (CODESET);
39629    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
39630      return 1;
39631  }
39632# endif
39633# ifdef __CYGWIN__
39634  /* On Cygwin, avoid locale names without encoding suffix, because the
39635     locale_charset() function relies on the encoding suffix.  Note that
39636     LC_ALL is set on the command line.  */
39637  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
39638# endif
39639  /* Check whether in the abbreviation of the second month, the second
39640     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
39641     two bytes long, with UTF-8 encoding.  */
39642  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
39643  if (strftime (buf, sizeof (buf), "%b", &t) < 4
39644      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
39645    return 1;
39646#endif
39647#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
39648  /* Check whether the decimal separator is a comma.
39649     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
39650     are nl_langinfo(RADIXCHAR) are both ".".  */
39651  if (localeconv () ->decimal_point[0] != ',') return 1;
39652#endif
39653  return 0;
39654}
39655
39656_ACEOF
39657    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
39658  (eval $ac_link) 2>&5
39659  ac_status=$?
39660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39661  test $ac_status = 0; } && test -s conftest$ac_exeext; then
39662      case "$host_os" in
39663        # Handle native Windows specially, because there setlocale() interprets
39664        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
39665        # "fr" or "fra" as "French" or "French_France.1252",
39666        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
39667        # "ja" as "Japanese" or "Japanese_Japan.932",
39668        # and similar.
39669        mingw*)
39670          # Test for the hypothetical native Windows locale name.
39671          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39672            gt_cv_locale_fr_utf8=French_France.65001
39673          else
39674            # None found.
39675            gt_cv_locale_fr_utf8=none
39676          fi
39677          ;;
39678        *)
39679          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
39680          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
39681          # configure script would override the LC_ALL setting. Likewise for
39682          # LC_CTYPE, which is also set at the beginning of the configure script.
39683          # Test for the usual locale name.
39684          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39685            gt_cv_locale_fr_utf8=fr_FR
39686          else
39687            # Test for the locale name with explicit encoding suffix.
39688            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39689              gt_cv_locale_fr_utf8=fr_FR.UTF-8
39690            else
39691              # Test for the Solaris 7 locale name.
39692              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39693                gt_cv_locale_fr_utf8=fr.UTF-8
39694              else
39695                # None found.
39696                gt_cv_locale_fr_utf8=none
39697              fi
39698            fi
39699          fi
39700          ;;
39701      esac
39702    fi
39703    rm -fr conftest*
39704
39705fi
39706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
39707$as_echo "$gt_cv_locale_fr_utf8" >&6; }
39708  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
39709
39710
39711
39712
39713
39714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
39715$as_echo_n "checking for a traditional japanese locale... " >&6; }
39716if ${gt_cv_locale_ja+:} false; then :
39717  $as_echo_n "(cached) " >&6
39718else
39719
39720    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39721/* end confdefs.h.  */
39722
39723#include <locale.h>
39724#include <time.h>
39725#if HAVE_LANGINFO_CODESET
39726# include <langinfo.h>
39727#endif
39728#include <stdlib.h>
39729#include <string.h>
39730struct tm t;
39731char buf[16];
39732int main ()
39733{
39734  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
39735     imitates locale dependent behaviour by looking at the environment
39736     variables, and all locales use the UTF-8 encoding.  */
39737#if defined __BEOS__ || defined __HAIKU__
39738  return 1;
39739#else
39740  /* Check whether the given locale name is recognized by the system.  */
39741# if defined _WIN32 && !defined __CYGWIN__
39742  /* On native Windows, setlocale(category, "") looks at the system settings,
39743     not at the environment variables.  Also, when an encoding suffix such
39744     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
39745     category of the locale to "C".  */
39746  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
39747      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
39748    return 1;
39749# else
39750  if (setlocale (LC_ALL, "") == NULL) return 1;
39751# endif
39752  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
39753     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
39754     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
39755     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
39756     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
39757     some unit tests fail.
39758     On MirBSD 10, when an unsupported locale is specified, setlocale()
39759     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
39760# if HAVE_LANGINFO_CODESET
39761  {
39762    const char *cs = nl_langinfo (CODESET);
39763    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
39764        || strcmp (cs, "UTF-8") == 0)
39765      return 1;
39766  }
39767# endif
39768# ifdef __CYGWIN__
39769  /* On Cygwin, avoid locale names without encoding suffix, because the
39770     locale_charset() function relies on the encoding suffix.  Note that
39771     LC_ALL is set on the command line.  */
39772  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
39773# endif
39774  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
39775     on Cygwin 1.5.x.  */
39776  if (MB_CUR_MAX == 1)
39777    return 1;
39778  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
39779     This excludes the UTF-8 encoding (except on MirBSD).  */
39780  {
39781    const char *p;
39782    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
39783    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
39784    for (p = buf; *p != '\0'; p++)
39785      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
39786        return 1;
39787  }
39788  return 0;
39789#endif
39790}
39791
39792_ACEOF
39793    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
39794  (eval $ac_link) 2>&5
39795  ac_status=$?
39796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39797  test $ac_status = 0; } && test -s conftest$ac_exeext; then
39798      case "$host_os" in
39799        # Handle native Windows specially, because there setlocale() interprets
39800        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
39801        # "fr" or "fra" as "French" or "French_France.1252",
39802        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
39803        # "ja" as "Japanese" or "Japanese_Japan.932",
39804        # and similar.
39805        mingw*)
39806          # Note that on native Windows, the Japanese locale is
39807          # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
39808          # cannot use it here.
39809          gt_cv_locale_ja=none
39810          ;;
39811        *)
39812          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
39813          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
39814          # configure script would override the LC_ALL setting. Likewise for
39815          # LC_CTYPE, which is also set at the beginning of the configure script.
39816          # Test for the AIX locale name.
39817          if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39818            gt_cv_locale_ja=ja_JP
39819          else
39820            # Test for the locale name with explicit encoding suffix.
39821            if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39822              gt_cv_locale_ja=ja_JP.EUC-JP
39823            else
39824              # Test for the HP-UX, OSF/1, NetBSD locale name.
39825              if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39826                gt_cv_locale_ja=ja_JP.eucJP
39827              else
39828                # Test for the IRIX, FreeBSD locale name.
39829                if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39830                  gt_cv_locale_ja=ja_JP.EUC
39831                else
39832                  # Test for the Solaris 7 locale name.
39833                  if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39834                    gt_cv_locale_ja=ja
39835                  else
39836                    # Special test for NetBSD 1.6.
39837                    if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
39838                      gt_cv_locale_ja=ja_JP.eucJP
39839                    else
39840                      # None found.
39841                      gt_cv_locale_ja=none
39842                    fi
39843                  fi
39844                fi
39845              fi
39846            fi
39847          fi
39848          ;;
39849      esac
39850    fi
39851    rm -fr conftest*
39852
39853fi
39854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
39855$as_echo "$gt_cv_locale_ja" >&6; }
39856  LOCALE_JA=$gt_cv_locale_ja
39857
39858
39859
39860
39861
39862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
39863$as_echo_n "checking for a transitional chinese locale... " >&6; }
39864if ${gt_cv_locale_zh_CN+:} false; then :
39865  $as_echo_n "(cached) " >&6
39866else
39867
39868    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39869/* end confdefs.h.  */
39870
39871#include <locale.h>
39872#include <stdlib.h>
39873#include <time.h>
39874#if HAVE_LANGINFO_CODESET
39875# include <langinfo.h>
39876#endif
39877#include <stdlib.h>
39878#include <string.h>
39879struct tm t;
39880char buf[16];
39881int main ()
39882{
39883  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
39884     imitates locale dependent behaviour by looking at the environment
39885     variables, and all locales use the UTF-8 encoding.  */
39886#if defined __BEOS__ || defined __HAIKU__
39887  return 1;
39888#else
39889  /* Check whether the given locale name is recognized by the system.  */
39890# if defined _WIN32 && !defined __CYGWIN__
39891  /* On native Windows, setlocale(category, "") looks at the system settings,
39892     not at the environment variables.  Also, when an encoding suffix such
39893     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
39894     category of the locale to "C".  */
39895  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
39896      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
39897    return 1;
39898# else
39899  if (setlocale (LC_ALL, "") == NULL) return 1;
39900# endif
39901  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
39902     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
39903     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
39904     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
39905     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
39906     some unit tests fail.
39907     On MirBSD 10, when an unsupported locale is specified, setlocale()
39908     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
39909# if HAVE_LANGINFO_CODESET
39910  {
39911    const char *cs = nl_langinfo (CODESET);
39912    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
39913        || strcmp (cs, "UTF-8") == 0)
39914      return 1;
39915  }
39916# endif
39917# ifdef __CYGWIN__
39918  /* On Cygwin, avoid locale names without encoding suffix, because the
39919     locale_charset() function relies on the encoding suffix.  Note that
39920     LC_ALL is set on the command line.  */
39921  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
39922# endif
39923  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
39924     This excludes the UTF-8 encoding (except on MirBSD).  */
39925  {
39926    const char *p;
39927    t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
39928    if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
39929    for (p = buf; *p != '\0'; p++)
39930      if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
39931        return 1;
39932  }
39933  /* Check whether a typical GB18030 multibyte sequence is recognized as a
39934     single wide character.  This excludes the GB2312 and GBK encodings.  */
39935  if (mblen ("\203\062\332\066", 5) != 4)
39936    return 1;
39937  return 0;
39938#endif
39939}
39940
39941_ACEOF
39942    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
39943  (eval $ac_link) 2>&5
39944  ac_status=$?
39945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39946  test $ac_status = 0; } && test -s conftest$ac_exeext; then
39947      case "$host_os" in
39948        # Handle native Windows specially, because there setlocale() interprets
39949        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
39950        # "fr" or "fra" as "French" or "French_France.1252",
39951        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
39952        # "ja" as "Japanese" or "Japanese_Japan.932",
39953        # and similar.
39954        mingw*)
39955          # Test for the hypothetical native Windows locale name.
39956          if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39957            gt_cv_locale_zh_CN=Chinese_China.54936
39958          else
39959            # None found.
39960            gt_cv_locale_zh_CN=none
39961          fi
39962          ;;
39963        solaris2.8)
39964          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
39965          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
39966          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
39967          gt_cv_locale_zh_CN=none
39968          ;;
39969        *)
39970          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
39971          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
39972          # configure script would override the LC_ALL setting. Likewise for
39973          # LC_CTYPE, which is also set at the beginning of the configure script.
39974          # Test for the locale name without encoding suffix.
39975          if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39976            gt_cv_locale_zh_CN=zh_CN
39977          else
39978            # Test for the locale name with explicit encoding suffix.
39979            if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
39980              gt_cv_locale_zh_CN=zh_CN.GB18030
39981            else
39982              # None found.
39983              gt_cv_locale_zh_CN=none
39984            fi
39985          fi
39986          ;;
39987      esac
39988    else
39989      # If there was a link error, due to mblen(), the system is so old that
39990      # it certainly doesn't have a chinese locale.
39991      gt_cv_locale_zh_CN=none
39992    fi
39993    rm -fr conftest*
39994
39995fi
39996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
39997$as_echo "$gt_cv_locale_zh_CN" >&6; }
39998  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
39999
40000
40001
40002
40003
40004  if test $ac_cv_func_sigaction = yes; then
40005    ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
40006"
40007if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
40008
40009cat >>confdefs.h <<_ACEOF
40010#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
40011_ACEOF
40012
40013
40014fi
40015
40016    if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
40017      HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
40018    fi
40019  else
40020    HAVE_SIGACTION=0
40021  fi
40022
40023  if test $HAVE_SIGACTION = 0; then
40024
40025
40026
40027
40028
40029
40030
40031
40032  gltests_LIBOBJS="$gltests_LIBOBJS sigaction.$ac_objext"
40033
40034
40035
40036
40037
40038
40039
40040  ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
40041#include <signal.h>
40042
40043"
40044if test "x$ac_cv_type_siginfo_t" = xyes; then :
40045
40046cat >>confdefs.h <<_ACEOF
40047#define HAVE_SIGINFO_T 1
40048_ACEOF
40049
40050
40051fi
40052
40053  if test $ac_cv_type_siginfo_t = no; then
40054    HAVE_SIGINFO_T=0
40055  fi
40056
40057  fi
40058
40059
40060
40061
40062
40063    if test "$GNULIB_SIGACTION" != 1; then
40064        if test "$GNULIB_SIGACTION" = 0; then
40065      GNULIB_SIGACTION=$gl_module_indicator_condition
40066    else
40067      GNULIB_SIGACTION="($GNULIB_SIGACTION || $gl_module_indicator_condition)"
40068    fi
40069  fi
40070
40071
40072
40073
40074
40075$as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
40076
40077
40078
40079
40080
40081
40082
40083
40084
40085
40086
40087
40088
40089
40090     if test $gl_cv_have_include_next = yes; then
40091       gl_cv_next_signal_h='<'signal.h'>'
40092     else
40093       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
40094$as_echo_n "checking absolute name of <signal.h>... " >&6; }
40095if ${gl_cv_next_signal_h+:} false; then :
40096  $as_echo_n "(cached) " >&6
40097else
40098
40099
40100
40101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40102/* end confdefs.h.  */
40103#include <signal.h>
40104_ACEOF
40105                case "$host_os" in
40106    aix*) gl_absname_cpp="$ac_cpp -C" ;;
40107    *)    gl_absname_cpp="$ac_cpp" ;;
40108  esac
40109
40110  case "$host_os" in
40111    mingw*)
40112                                          gl_dirsep_regex='[/\\]'
40113      ;;
40114    *)
40115      gl_dirsep_regex='\/'
40116      ;;
40117  esac
40118      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
40119  gl_header_literal_regex=`echo 'signal.h' \
40120                           | sed -e "$gl_make_literal_regex_sed"`
40121  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
40122      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
40123      s|^/[^/]|//&|
40124      p
40125      q
40126    }'
40127
40128        gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40129  sed -n "$gl_absolute_header_sed"`
40130
40131           gl_header=$gl_cv_absolute_signal_h
40132           gl_cv_next_signal_h='"'$gl_header'"'
40133
40134
40135fi
40136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
40137$as_echo "$gl_cv_next_signal_h" >&6; }
40138     fi
40139     NEXT_SIGNAL_H=$gl_cv_next_signal_h
40140
40141     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40142       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40143       gl_next_as_first_directive='<'signal.h'>'
40144     else
40145       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40146       gl_next_as_first_directive=$gl_cv_next_signal_h
40147     fi
40148     NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
40149
40150
40151
40152
40153
40154# AIX declares sig_atomic_t to already include volatile, and C89 compilers
40155# then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
40156  ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
40157#include <signal.h>
40158
40159"
40160if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
40161
40162else
40163  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
40164fi
40165
40166
40167
40168
40169
40170
40171
40172  ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
40173#include <signal.h>
40174
40175"
40176if test "x$ac_cv_type_sighandler_t" = xyes; then :
40177
40178else
40179  HAVE_SIGHANDLER_T=0
40180fi
40181
40182
40183
40184
40185
40186
40187
40188
40189
40190
40191
40192  if test $gl_cv_type_sigset_t = yes; then
40193    ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
40194if test "x$ac_cv_func_sigprocmask" = xyes; then :
40195  gl_cv_func_sigprocmask=1
40196fi
40197
40198  fi
40199  if test -z "$gl_cv_func_sigprocmask"; then
40200    HAVE_POSIX_SIGNALBLOCKING=0
40201  fi
40202
40203  if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
40204
40205
40206
40207
40208
40209
40210
40211
40212  gltests_LIBOBJS="$gltests_LIBOBJS sigprocmask.$ac_objext"
40213
40214    :
40215  fi
40216
40217
40218
40219
40220
40221    if test "$GNULIB_SIGPROCMASK" != 1; then
40222        if test "$GNULIB_SIGPROCMASK" = 0; then
40223      GNULIB_SIGPROCMASK=$gl_module_indicator_condition
40224    else
40225      GNULIB_SIGPROCMASK="($GNULIB_SIGPROCMASK || $gl_module_indicator_condition)"
40226    fi
40227  fi
40228
40229
40230
40231
40232
40233$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
40234
40235
40236
40237
40238
40239               ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
40240"
40241if test "x$ac_cv_have_decl_sleep" = xyes; then :
40242  ac_have_decl=1
40243else
40244  ac_have_decl=0
40245fi
40246
40247cat >>confdefs.h <<_ACEOF
40248#define HAVE_DECL_SLEEP $ac_have_decl
40249_ACEOF
40250
40251
40252  if test $ac_cv_have_decl_sleep != yes; then
40253    HAVE_SLEEP=0
40254  else
40255        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
40256$as_echo_n "checking for working sleep... " >&6; }
40257if ${gl_cv_func_sleep_works+:} false; then :
40258  $as_echo_n "(cached) " >&6
40259else
40260  if test "$cross_compiling" = yes; then :
40261  case "$host_os" in
40262                        # Guess yes on glibc systems.
40263         *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;;
40264                        # Guess yes on musl systems.
40265         *-musl*)       gl_cv_func_sleep_works="guessing yes" ;;
40266                        # Guess no on native Windows.
40267         mingw*)        gl_cv_func_sleep_works="guessing no" ;;
40268                        # If we don't know, obey --enable-cross-guesses.
40269         *)             gl_cv_func_sleep_works="$gl_cross_guess_normal" ;;
40270       esac
40271
40272else
40273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40274/* end confdefs.h.  */
40275
40276#include <errno.h>
40277#include <unistd.h>
40278#include <signal.h>
40279static void
40280handle_alarm (int sig)
40281{
40282  if (sig != SIGALRM)
40283    _exit (2);
40284}
40285
40286int
40287main ()
40288{
40289
40290    /* Failure to compile this test due to missing alarm is okay,
40291       since all such platforms (mingw) also lack sleep.  */
40292    unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
40293    unsigned int remaining;
40294    signal (SIGALRM, handle_alarm);
40295    alarm (1);
40296    remaining = sleep (pentecost);
40297    if (remaining > pentecost)
40298      return 3;
40299    if (remaining <= pentecost - 10)
40300      return 4;
40301    return 0;
40302
40303  ;
40304  return 0;
40305}
40306_ACEOF
40307if ac_fn_c_try_run "$LINENO"; then :
40308  gl_cv_func_sleep_works=yes
40309else
40310  gl_cv_func_sleep_works=no
40311fi
40312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40313  conftest.$ac_objext conftest.beam conftest.$ac_ext
40314fi
40315
40316fi
40317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
40318$as_echo "$gl_cv_func_sleep_works" >&6; }
40319    case "$gl_cv_func_sleep_works" in
40320      *yes) ;;
40321      *)
40322        REPLACE_SLEEP=1
40323        ;;
40324    esac
40325  fi
40326
40327  if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
40328
40329
40330
40331
40332
40333
40334
40335
40336  gltests_LIBOBJS="$gltests_LIBOBJS sleep.$ac_objext"
40337
40338  fi
40339
40340
40341
40342
40343
40344    if test "$GNULIB_SLEEP" != 1; then
40345        if test "$GNULIB_SLEEP" = 0; then
40346      GNULIB_SLEEP=$gl_module_indicator_condition
40347    else
40348      GNULIB_SLEEP="($GNULIB_SLEEP || $gl_module_indicator_condition)"
40349    fi
40350  fi
40351
40352
40353
40354
40355
40356$as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
40357
40358
40359
40360
40361
40362  if test "$ac_cv_header_winsock2_h" = yes; then
40363
40364
40365
40366
40367
40368
40369
40370
40371  gltests_LIBOBJS="$gltests_LIBOBJS socket.$ac_objext"
40372
40373  fi
40374  # When this module is used, sockets may actually occur as file descriptors,
40375  # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
40376
40377
40378
40379  if test "$ac_cv_header_winsock2_h" = yes; then
40380    UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
40381    SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
40382  fi
40383
40384
40385
40386
40387
40388    if test "$GNULIB_SOCKET" != 1; then
40389        if test "$GNULIB_SOCKET" = 0; then
40390      GNULIB_SOCKET=$gl_module_indicator_condition
40391    else
40392      GNULIB_SOCKET="($GNULIB_SOCKET || $gl_module_indicator_condition)"
40393    fi
40394  fi
40395
40396
40397
40398
40399
40400$as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
40401
40402
40403
40404
40405
40406
40407
40408
40409
40410
40411
40412
40413
40414  if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
40415    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
40416$as_echo_n "checking for working strerror function... " >&6; }
40417if ${gl_cv_func_working_strerror+:} false; then :
40418  $as_echo_n "(cached) " >&6
40419else
40420  if test "$cross_compiling" = yes; then :
40421  case "$host_os" in
40422                          # Guess yes on glibc systems.
40423           *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
40424                          # Guess yes on musl systems.
40425           *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
40426                          # If we don't know, obey --enable-cross-guesses.
40427           *)             gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
40428         esac
40429
40430else
40431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40432/* end confdefs.h.  */
40433#include <string.h>
40434
40435int
40436main ()
40437{
40438if (!*strerror (-2)) return 1;
40439  ;
40440  return 0;
40441}
40442_ACEOF
40443if ac_fn_c_try_run "$LINENO"; then :
40444  gl_cv_func_working_strerror=yes
40445else
40446  gl_cv_func_working_strerror=no
40447fi
40448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40449  conftest.$ac_objext conftest.beam conftest.$ac_ext
40450fi
40451
40452
40453fi
40454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
40455$as_echo "$gl_cv_func_working_strerror" >&6; }
40456    case "$gl_cv_func_working_strerror" in
40457      *yes) ;;
40458      *)
40459                        REPLACE_STRERROR=1
40460        ;;
40461    esac
40462
40463                  case "$gl_cv_func_strerror_r_works" in
40464        *no) REPLACE_STRERROR=1 ;;
40465      esac
40466
40467  else
40468            REPLACE_STRERROR=1
40469  fi
40470
40471  if test $REPLACE_STRERROR = 1; then
40472
40473
40474
40475
40476
40477
40478
40479
40480  gltests_LIBOBJS="$gltests_LIBOBJS strerror.$ac_objext"
40481
40482  fi
40483
40484
40485cat >>confdefs.h <<_ACEOF
40486#define GNULIB_STRERROR $gl_module_indicator_condition
40487_ACEOF
40488
40489
40490
40491
40492
40493
40494
40495    if test "$GNULIB_STRERROR" != 1; then
40496        if test "$GNULIB_STRERROR" = 0; then
40497      GNULIB_STRERROR=$gl_module_indicator_condition
40498    else
40499      GNULIB_STRERROR="($GNULIB_STRERROR || $gl_module_indicator_condition)"
40500    fi
40501  fi
40502
40503
40504
40505
40506
40507$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
40508
40509
40510
40511
40512
40513  if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
40514
40515
40516
40517
40518
40519
40520
40521
40522  gltests_LIBOBJS="$gltests_LIBOBJS strerror-override.$ac_objext"
40523
40524
40525
40526
40527
40528  if test $ac_cv_header_sys_socket_h != yes; then
40529                    for ac_header in winsock2.h
40530do :
40531  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
40532if test "x$ac_cv_header_winsock2_h" = xyes; then :
40533  cat >>confdefs.h <<_ACEOF
40534#define HAVE_WINSOCK2_H 1
40535_ACEOF
40536
40537fi
40538
40539done
40540
40541  fi
40542  if test "$ac_cv_header_winsock2_h" = yes; then
40543    HAVE_WINSOCK2_H=1
40544    UNISTD_H_HAVE_WINSOCK2_H=1
40545    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
40546  else
40547    HAVE_WINSOCK2_H=0
40548  fi
40549
40550
40551  fi
40552
40553
40554
40555
40556
40557
40558
40559  if test $ac_cv_have_decl_strerror_r = no; then
40560    HAVE_DECL_STRERROR_R=0
40561  fi
40562
40563  if test $ac_cv_func_strerror_r = yes; then
40564    if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
40565      if test $gl_cv_func_strerror_r_posix_signature = yes; then
40566        case "$gl_cv_func_strerror_r_works" in
40567                    *no) REPLACE_STRERROR_R=1 ;;
40568        esac
40569      else
40570                REPLACE_STRERROR_R=1
40571      fi
40572    else
40573                  REPLACE_STRERROR_R=1
40574    fi
40575  fi
40576
40577  if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
40578
40579
40580
40581
40582
40583
40584
40585
40586  gltests_LIBOBJS="$gltests_LIBOBJS strerror_r.$ac_objext"
40587
40588
40589
40590
40591
40592
40593  fi
40594
40595
40596
40597
40598
40599    if test "$GNULIB_STRERROR_R" != 1; then
40600        if test "$GNULIB_STRERROR_R" = 0; then
40601      GNULIB_STRERROR_R=$gl_module_indicator_condition
40602    else
40603      GNULIB_STRERROR_R="($GNULIB_STRERROR_R || $gl_module_indicator_condition)"
40604    fi
40605  fi
40606
40607
40608
40609
40610
40611$as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
40612
40613
40614
40615
40616
40617cat >>confdefs.h <<_ACEOF
40618#define GNULIB_STRERROR_R_POSIX $gl_module_indicator_condition
40619_ACEOF
40620
40621
40622
40623
40624
40625  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
40626  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
40627  # irrelevant for anonymous mappings.
40628  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
40629if test "x$ac_cv_func_mmap" = xyes; then :
40630  gl_have_mmap=yes
40631else
40632  gl_have_mmap=no
40633fi
40634
40635
40636  # Try to allow MAP_ANONYMOUS.
40637  gl_have_mmap_anonymous=no
40638  if test $gl_have_mmap = yes; then
40639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
40640$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
40641    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40642/* end confdefs.h.  */
40643
40644#include <sys/mman.h>
40645#ifdef MAP_ANONYMOUS
40646    I cannot identify this map
40647#endif
40648
40649_ACEOF
40650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40651  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
40652  gl_have_mmap_anonymous=yes
40653fi
40654rm -f conftest*
40655
40656    if test $gl_have_mmap_anonymous != yes; then
40657      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40658/* end confdefs.h.  */
40659
40660#include <sys/mman.h>
40661#ifdef MAP_ANON
40662    I cannot identify this map
40663#endif
40664
40665_ACEOF
40666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40667  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
40668
40669$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
40670
40671         gl_have_mmap_anonymous=yes
40672fi
40673rm -f conftest*
40674
40675    fi
40676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
40677$as_echo "$gl_have_mmap_anonymous" >&6; }
40678    if test $gl_have_mmap_anonymous = yes; then
40679
40680$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
40681
40682    fi
40683  fi
40684
40685
40686
40687
40688
40689
40690        if test $ac_cv_func_symlink = no; then
40691    HAVE_SYMLINK=0
40692  else
40693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
40694$as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
40695if ${gl_cv_func_symlink_works+:} false; then :
40696  $as_echo_n "(cached) " >&6
40697else
40698  if test "$cross_compiling" = yes; then :
40699  case "$host_os" in
40700                             # Guess yes on Linux systems.
40701            linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;;
40702                             # Guess yes on glibc systems.
40703            *-gnu* | gnu*)   gl_cv_func_symlink_works="guessing yes" ;;
40704                             # If we don't know, obey --enable-cross-guesses.
40705            *)               gl_cv_func_symlink_works="$gl_cross_guess_normal" ;;
40706          esac
40707
40708else
40709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40710/* end confdefs.h.  */
40711#include <unistd.h>
40712
40713int
40714main ()
40715{
40716int result = 0;
40717             if (!symlink ("a", "conftest.link/"))
40718               result |= 1;
40719             if (symlink ("conftest.f", "conftest.lnk2"))
40720               result |= 2;
40721             else if (!symlink ("a", "conftest.lnk2/"))
40722               result |= 4;
40723             return result;
40724
40725  ;
40726  return 0;
40727}
40728_ACEOF
40729if ac_fn_c_try_run "$LINENO"; then :
40730  gl_cv_func_symlink_works=yes
40731else
40732  gl_cv_func_symlink_works=no
40733fi
40734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40735  conftest.$ac_objext conftest.beam conftest.$ac_ext
40736fi
40737
40738      rm -f conftest.f conftest.link conftest.lnk2
40739fi
40740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
40741$as_echo "$gl_cv_func_symlink_works" >&6; }
40742    case "$gl_cv_func_symlink_works" in
40743      *yes) ;;
40744      *)
40745        REPLACE_SYMLINK=1
40746        ;;
40747    esac
40748  fi
40749
40750  if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
40751
40752
40753
40754
40755
40756
40757
40758
40759  gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
40760
40761  fi
40762
40763
40764
40765
40766
40767    if test "$GNULIB_SYMLINK" != 1; then
40768        if test "$GNULIB_SYMLINK" = 0; then
40769      GNULIB_SYMLINK=$gl_module_indicator_condition
40770    else
40771      GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)"
40772    fi
40773  fi
40774
40775
40776
40777
40778
40779$as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
40780
40781
40782
40783
40784
40785
40786
40787  if test $ac_cv_header_sys_ioctl_h = yes; then
40788    HAVE_SYS_IOCTL_H=1
40789            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5
40790$as_echo_n "checking whether <sys/ioctl.h> declares ioctl... " >&6; }
40791if ${gl_cv_decl_ioctl_in_sys_ioctl_h+:} false; then :
40792  $as_echo_n "(cached) " >&6
40793else
40794         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40795/* end confdefs.h.  */
40796#include <sys/ioctl.h>
40797
40798int
40799main ()
40800{
40801(void) ioctl;
40802  ;
40803  return 0;
40804}
40805_ACEOF
40806if ac_fn_c_try_compile "$LINENO"; then :
40807  gl_cv_decl_ioctl_in_sys_ioctl_h=yes
40808else
40809  gl_cv_decl_ioctl_in_sys_ioctl_h=no
40810fi
40811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40812
40813fi
40814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5
40815$as_echo "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; }
40816  else
40817    HAVE_SYS_IOCTL_H=0
40818  fi
40819
40820
40821
40822
40823
40824
40825
40826
40827
40828
40829     if test $gl_cv_have_include_next = yes; then
40830       gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
40831     else
40832       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5
40833$as_echo_n "checking absolute name of <sys/ioctl.h>... " >&6; }
40834if ${gl_cv_next_sys_ioctl_h+:} false; then :
40835  $as_echo_n "(cached) " >&6
40836else
40837
40838             if test $ac_cv_header_sys_ioctl_h = yes; then
40839
40840
40841
40842
40843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40844/* end confdefs.h.  */
40845#include <sys/ioctl.h>
40846_ACEOF
40847                case "$host_os" in
40848    aix*) gl_absname_cpp="$ac_cpp -C" ;;
40849    *)    gl_absname_cpp="$ac_cpp" ;;
40850  esac
40851
40852  case "$host_os" in
40853    mingw*)
40854                                          gl_dirsep_regex='[/\\]'
40855      ;;
40856    *)
40857      gl_dirsep_regex='\/'
40858      ;;
40859  esac
40860      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
40861  gl_header_literal_regex=`echo 'sys/ioctl.h' \
40862                           | sed -e "$gl_make_literal_regex_sed"`
40863  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
40864      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
40865      s|^/[^/]|//&|
40866      p
40867      q
40868    }'
40869
40870        gl_cv_absolute_sys_ioctl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40871  sed -n "$gl_absolute_header_sed"`
40872
40873           gl_header=$gl_cv_absolute_sys_ioctl_h
40874           gl_cv_next_sys_ioctl_h='"'$gl_header'"'
40875          else
40876               gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
40877             fi
40878
40879
40880fi
40881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5
40882$as_echo "$gl_cv_next_sys_ioctl_h" >&6; }
40883     fi
40884     NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h
40885
40886     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40887       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40888       gl_next_as_first_directive='<'sys/ioctl.h'>'
40889     else
40890       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40891       gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h
40892     fi
40893     NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903
40904
40905
40906
40907
40908
40909
40910  if test $gl_threads_api = posix; then
40911    gl_save_LIBS="$LIBS"
40912    LIBS="$LIBS $LIBMULTITHREAD"
40913    for ac_func in pthread_atfork
40914do :
40915  ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
40916if test "x$ac_cv_func_pthread_atfork" = xyes; then :
40917  cat >>confdefs.h <<_ACEOF
40918#define HAVE_PTHREAD_ATFORK 1
40919_ACEOF
40920
40921fi
40922done
40923
40924    LIBS="$gl_save_LIBS"
40925  fi
40926
40927
40928
40929
40930  if test $ac_cv_have_decl_unsetenv = no; then
40931    HAVE_DECL_UNSETENV=0
40932  fi
40933  for ac_func in unsetenv
40934do :
40935  ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
40936if test "x$ac_cv_func_unsetenv" = xyes; then :
40937  cat >>confdefs.h <<_ACEOF
40938#define HAVE_UNSETENV 1
40939_ACEOF
40940
40941fi
40942done
40943
40944  if test $ac_cv_func_unsetenv = no; then
40945    HAVE_UNSETENV=0
40946  else
40947    HAVE_UNSETENV=1
40948        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
40949$as_echo_n "checking for unsetenv() return type... " >&6; }
40950if ${gt_cv_func_unsetenv_ret+:} false; then :
40951  $as_echo_n "(cached) " >&6
40952else
40953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40954/* end confdefs.h.  */
40955
40956#undef _BSD
40957#define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
40958#include <stdlib.h>
40959extern
40960#ifdef __cplusplus
40961"C"
40962#endif
40963int unsetenv (const char *name);
40964
40965int
40966main ()
40967{
40968
40969  ;
40970  return 0;
40971}
40972_ACEOF
40973if ac_fn_c_try_compile "$LINENO"; then :
40974  gt_cv_func_unsetenv_ret='int'
40975else
40976  gt_cv_func_unsetenv_ret='void'
40977fi
40978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40979fi
40980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
40981$as_echo "$gt_cv_func_unsetenv_ret" >&6; }
40982    if test $gt_cv_func_unsetenv_ret = 'void'; then
40983
40984$as_echo "#define VOID_UNSETENV 1" >>confdefs.h
40985
40986      REPLACE_UNSETENV=1
40987    fi
40988
40989                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
40990$as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
40991if ${gl_cv_func_unsetenv_works+:} false; then :
40992  $as_echo_n "(cached) " >&6
40993else
40994  if test "$cross_compiling" = yes; then :
40995  case "$host_os" in
40996                 # Guess yes on glibc systems.
40997         *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
40998                 # If we don't know, obey --enable-cross-guesses.
40999         *)      gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
41000       esac
41001
41002else
41003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41004/* end confdefs.h.  */
41005
41006       #include <stdlib.h>
41007       #include <errno.h>
41008       extern char **environ;
41009
41010int
41011main ()
41012{
41013
41014       char entry1[] = "a=1";
41015       char entry2[] = "b=2";
41016       char *env[] = { entry1, entry2, NULL };
41017       if (putenv ((char *) "a=1")) return 1;
41018       if (putenv (entry2)) return 2;
41019       entry2[0] = 'a';
41020       unsetenv ("a");
41021       if (getenv ("a")) return 3;
41022       if (!unsetenv ("") || errno != EINVAL) return 4;
41023       entry2[0] = 'b';
41024       environ = env;
41025       if (!getenv ("a")) return 5;
41026       entry2[0] = 'a';
41027       unsetenv ("a");
41028       if (getenv ("a")) return 6;
41029
41030  ;
41031  return 0;
41032}
41033_ACEOF
41034if ac_fn_c_try_run "$LINENO"; then :
41035  gl_cv_func_unsetenv_works=yes
41036else
41037  gl_cv_func_unsetenv_works=no
41038fi
41039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41040  conftest.$ac_objext conftest.beam conftest.$ac_ext
41041fi
41042
41043fi
41044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
41045$as_echo "$gl_cv_func_unsetenv_works" >&6; }
41046    case "$gl_cv_func_unsetenv_works" in
41047      *yes) ;;
41048      *)
41049        REPLACE_UNSETENV=1
41050        ;;
41051    esac
41052  fi
41053
41054  if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
41055
41056
41057
41058
41059
41060
41061
41062
41063  gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext"
41064
41065
41066
41067
41068
41069  fi
41070
41071
41072
41073
41074
41075    if test "$GNULIB_UNSETENV" != 1; then
41076        if test "$GNULIB_UNSETENV" = 0; then
41077      GNULIB_UNSETENV=$gl_module_indicator_condition
41078    else
41079      GNULIB_UNSETENV="($GNULIB_UNSETENV || $gl_module_indicator_condition)"
41080    fi
41081  fi
41082
41083
41084
41085
41086
41087$as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
41088
41089
41090
41091
41092  # Check whether --enable-valgrind-tests was given.
41093if test "${enable_valgrind_tests+set}" = set; then :
41094  enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
41095else
41096  opt_valgrind_tests=no
41097fi
41098
41099
41100  # Run self-tests under valgrind?
41101  if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
41102    for ac_prog in valgrind
41103do
41104  # Extract the first word of "$ac_prog", so it can be a program name with args.
41105set dummy $ac_prog; ac_word=$2
41106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41107$as_echo_n "checking for $ac_word... " >&6; }
41108if ${ac_cv_prog_VALGRIND+:} false; then :
41109  $as_echo_n "(cached) " >&6
41110else
41111  if test -n "$VALGRIND"; then
41112  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
41113else
41114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41115for as_dir in $PATH
41116do
41117  IFS=$as_save_IFS
41118  test -z "$as_dir" && as_dir=.
41119    for ac_exec_ext in '' $ac_executable_extensions; do
41120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41121    ac_cv_prog_VALGRIND="$ac_prog"
41122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41123    break 2
41124  fi
41125done
41126  done
41127IFS=$as_save_IFS
41128
41129fi
41130fi
41131VALGRIND=$ac_cv_prog_VALGRIND
41132if test -n "$VALGRIND"; then
41133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
41134$as_echo "$VALGRIND" >&6; }
41135else
41136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41137$as_echo "no" >&6; }
41138fi
41139
41140
41141  test -n "$VALGRIND" && break
41142done
41143
41144
41145    if test "$VALGRIND"; then
41146      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5
41147$as_echo_n "checking for valgrind options for tests... " >&6; }
41148if ${gl_cv_opt_valgrind_tests+:} false; then :
41149  $as_echo_n "(cached) " >&6
41150else
41151  gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full --track-origins=yes --gen-suppressions=all --suppressions=\$(srcdir)/suppressions.valgrind"
41152         $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 ||
41153           gl_cv_opt_valgrind_tests=no
41154fi
41155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5
41156$as_echo "$gl_cv_opt_valgrind_tests" >&6; }
41157
41158      if test "$gl_cv_opt_valgrind_tests" != no; then
41159        VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests"
41160      else
41161        VALGRIND=
41162      fi
41163    fi
41164  fi
41165
41166  abs_aux_dir=`cd "$ac_aux_dir"; pwd`
41167
41168
41169
41170
41171  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
41172  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
41173  # irrelevant for anonymous mappings.
41174  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
41175if test "x$ac_cv_func_mmap" = xyes; then :
41176  gl_have_mmap=yes
41177else
41178  gl_have_mmap=no
41179fi
41180
41181
41182  # Try to allow MAP_ANONYMOUS.
41183  gl_have_mmap_anonymous=no
41184  if test $gl_have_mmap = yes; then
41185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
41186$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
41187    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41188/* end confdefs.h.  */
41189
41190#include <sys/mman.h>
41191#ifdef MAP_ANONYMOUS
41192    I cannot identify this map
41193#endif
41194
41195_ACEOF
41196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41197  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
41198  gl_have_mmap_anonymous=yes
41199fi
41200rm -f conftest*
41201
41202    if test $gl_have_mmap_anonymous != yes; then
41203      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41204/* end confdefs.h.  */
41205
41206#include <sys/mman.h>
41207#ifdef MAP_ANON
41208    I cannot identify this map
41209#endif
41210
41211_ACEOF
41212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41213  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
41214
41215$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
41216
41217         gl_have_mmap_anonymous=yes
41218fi
41219rm -f conftest*
41220
41221    fi
41222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
41223$as_echo "$gl_have_mmap_anonymous" >&6; }
41224    if test $gl_have_mmap_anonymous = yes; then
41225
41226$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
41227
41228    fi
41229  fi
41230
41231
41232
41233
41234  case "$host_os" in
41235    mingw*)
41236
41237
41238
41239
41240
41241
41242
41243
41244  gltests_LIBOBJS="$gltests_LIBOBJS windows-mutex.$ac_objext"
41245
41246      ;;
41247  esac
41248
41249  case "$host_os" in
41250    mingw*)
41251
41252
41253
41254
41255
41256
41257
41258
41259  gltests_LIBOBJS="$gltests_LIBOBJS windows-once.$ac_objext"
41260
41261      ;;
41262  esac
41263
41264  case "$host_os" in
41265    mingw*)
41266
41267
41268
41269
41270
41271
41272
41273
41274  gltests_LIBOBJS="$gltests_LIBOBJS windows-recmutex.$ac_objext"
41275
41276      ;;
41277  esac
41278
41279  case "$host_os" in
41280    mingw*)
41281
41282
41283
41284
41285
41286
41287
41288
41289  gltests_LIBOBJS="$gltests_LIBOBJS windows-rwlock.$ac_objext"
41290
41291      ;;
41292  esac
41293
41294  case "$host_os" in
41295    mingw*)
41296
41297
41298
41299
41300
41301
41302
41303
41304  gltests_LIBOBJS="$gltests_LIBOBJS windows-thread.$ac_objext"
41305
41306      ;;
41307  esac
41308
41309  case "$host_os" in
41310    mingw*)
41311
41312
41313
41314
41315
41316
41317
41318
41319  gltests_LIBOBJS="$gltests_LIBOBJS windows-tls.$ac_objext"
41320
41321      ;;
41322  esac
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333  LIBTESTS_LIBDEPS="$gltests_libdeps"
41334
41335
41336ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
41337if test "x$ac_cv_have_decl_fseeko" = xyes; then :
41338  ac_have_decl=1
41339else
41340  ac_have_decl=0
41341fi
41342
41343cat >>confdefs.h <<_ACEOF
41344#define HAVE_DECL_FSEEKO $ac_have_decl
41345_ACEOF
41346
41347
41348
41349
41350
41351
41352
41353
41354
41355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
41356$as_echo_n "checking for fseeko... " >&6; }
41357if ${gl_cv_func_fseeko+:} false; then :
41358  $as_echo_n "(cached) " >&6
41359else
41360
41361      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41362/* end confdefs.h.  */
41363#include <stdio.h>
41364
41365int
41366main ()
41367{
41368fseeko (stdin, 0, 0);
41369  ;
41370  return 0;
41371}
41372_ACEOF
41373if ac_fn_c_try_link "$LINENO"; then :
41374  gl_cv_func_fseeko=yes
41375else
41376  gl_cv_func_fseeko=no
41377fi
41378rm -f core conftest.err conftest.$ac_objext \
41379    conftest$ac_exeext conftest.$ac_ext
41380
41381fi
41382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
41383$as_echo "$gl_cv_func_fseeko" >&6; }
41384
41385
41386  if test $ac_cv_have_decl_fseeko = no; then
41387    HAVE_DECL_FSEEKO=0
41388  fi
41389
41390  if test $gl_cv_func_fseeko = no; then
41391    HAVE_FSEEKO=0
41392  else
41393    if test $WINDOWS_64_BIT_OFF_T = 1; then
41394      REPLACE_FSEEKO=1
41395    fi
41396    if test $gl_cv_var_stdin_large_offset = no; then
41397      REPLACE_FSEEKO=1
41398    fi
41399
41400  fi
41401
41402
41403                  HOSTENT_LIB=
41404  gl_saved_libs="$LIBS"
41405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
41406$as_echo_n "checking for library containing gethostbyname... " >&6; }
41407if ${ac_cv_search_gethostbyname+:} false; then :
41408  $as_echo_n "(cached) " >&6
41409else
41410  ac_func_search_save_LIBS=$LIBS
41411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41412/* end confdefs.h.  */
41413
41414/* Override any GCC internal prototype to avoid an error.
41415   Use char because int might match the return type of a GCC
41416   builtin and then its argument prototype would still apply.  */
41417#ifdef __cplusplus
41418extern "C"
41419#endif
41420char gethostbyname ();
41421int
41422main ()
41423{
41424return gethostbyname ();
41425  ;
41426  return 0;
41427}
41428_ACEOF
41429for ac_lib in '' nsl network net; do
41430  if test -z "$ac_lib"; then
41431    ac_res="none required"
41432  else
41433    ac_res=-l$ac_lib
41434    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
41435  fi
41436  if ac_fn_c_try_link "$LINENO"; then :
41437  ac_cv_search_gethostbyname=$ac_res
41438fi
41439rm -f core conftest.err conftest.$ac_objext \
41440    conftest$ac_exeext
41441  if ${ac_cv_search_gethostbyname+:} false; then :
41442  break
41443fi
41444done
41445if ${ac_cv_search_gethostbyname+:} false; then :
41446
41447else
41448  ac_cv_search_gethostbyname=no
41449fi
41450rm conftest.$ac_ext
41451LIBS=$ac_func_search_save_LIBS
41452fi
41453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
41454$as_echo "$ac_cv_search_gethostbyname" >&6; }
41455ac_res=$ac_cv_search_gethostbyname
41456if test "$ac_res" != no; then :
41457  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41458  if test "$ac_cv_search_gethostbyname" != "none required"; then
41459       HOSTENT_LIB="$ac_cv_search_gethostbyname"
41460     fi
41461fi
41462
41463  LIBS="$gl_saved_libs"
41464  if test -z "$HOSTENT_LIB"; then
41465    for ac_func in gethostbyname
41466do :
41467  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
41468if test "x$ac_cv_func_gethostbyname" = xyes; then :
41469  cat >>confdefs.h <<_ACEOF
41470#define HAVE_GETHOSTBYNAME 1
41471_ACEOF
41472
41473else
41474
41475      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
41476$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
41477if ${gl_cv_w32_gethostbyname+:} false; then :
41478  $as_echo_n "(cached) " >&6
41479else
41480  gl_cv_w32_gethostbyname=no
41481         gl_save_LIBS="$LIBS"
41482         LIBS="$LIBS -lws2_32"
41483         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41484/* end confdefs.h.  */
41485
41486#ifdef HAVE_WINSOCK2_H
41487#include <winsock2.h>
41488#endif
41489#include <stddef.h>
41490
41491int
41492main ()
41493{
41494gethostbyname(NULL);
41495  ;
41496  return 0;
41497}
41498_ACEOF
41499if ac_fn_c_try_link "$LINENO"; then :
41500  gl_cv_w32_gethostbyname=yes
41501fi
41502rm -f core conftest.err conftest.$ac_objext \
41503    conftest$ac_exeext conftest.$ac_ext
41504         LIBS="$gl_save_LIBS"
41505
41506fi
41507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
41508$as_echo "$gl_cv_w32_gethostbyname" >&6; }
41509      if test "$gl_cv_w32_gethostbyname" = "yes"; then
41510        HOSTENT_LIB="-lws2_32"
41511      fi
41512
41513fi
41514done
41515
41516  fi
41517
41518
41519
41520                      SERVENT_LIB=
41521  gl_saved_libs="$LIBS"
41522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
41523$as_echo_n "checking for library containing getservbyname... " >&6; }
41524if ${ac_cv_search_getservbyname+:} false; then :
41525  $as_echo_n "(cached) " >&6
41526else
41527  ac_func_search_save_LIBS=$LIBS
41528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41529/* end confdefs.h.  */
41530
41531/* Override any GCC internal prototype to avoid an error.
41532   Use char because int might match the return type of a GCC
41533   builtin and then its argument prototype would still apply.  */
41534#ifdef __cplusplus
41535extern "C"
41536#endif
41537char getservbyname ();
41538int
41539main ()
41540{
41541return getservbyname ();
41542  ;
41543  return 0;
41544}
41545_ACEOF
41546for ac_lib in '' socket network net; do
41547  if test -z "$ac_lib"; then
41548    ac_res="none required"
41549  else
41550    ac_res=-l$ac_lib
41551    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
41552  fi
41553  if ac_fn_c_try_link "$LINENO"; then :
41554  ac_cv_search_getservbyname=$ac_res
41555fi
41556rm -f core conftest.err conftest.$ac_objext \
41557    conftest$ac_exeext
41558  if ${ac_cv_search_getservbyname+:} false; then :
41559  break
41560fi
41561done
41562if ${ac_cv_search_getservbyname+:} false; then :
41563
41564else
41565  ac_cv_search_getservbyname=no
41566fi
41567rm conftest.$ac_ext
41568LIBS=$ac_func_search_save_LIBS
41569fi
41570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
41571$as_echo "$ac_cv_search_getservbyname" >&6; }
41572ac_res=$ac_cv_search_getservbyname
41573if test "$ac_res" != no; then :
41574  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41575  if test "$ac_cv_search_getservbyname" != "none required"; then
41576       SERVENT_LIB="$ac_cv_search_getservbyname"
41577     fi
41578fi
41579
41580  LIBS="$gl_saved_libs"
41581  if test -z "$SERVENT_LIB"; then
41582    for ac_func in getservbyname
41583do :
41584  ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
41585if test "x$ac_cv_func_getservbyname" = xyes; then :
41586  cat >>confdefs.h <<_ACEOF
41587#define HAVE_GETSERVBYNAME 1
41588_ACEOF
41589
41590else
41591
41592      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
41593$as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
41594if ${gl_cv_w32_getservbyname+:} false; then :
41595  $as_echo_n "(cached) " >&6
41596else
41597  gl_cv_w32_getservbyname=no
41598         gl_save_LIBS="$LIBS"
41599         LIBS="$LIBS -lws2_32"
41600         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41601/* end confdefs.h.  */
41602
41603#ifdef HAVE_WINSOCK2_H
41604#include <winsock2.h>
41605#endif
41606#include <stddef.h>
41607
41608int
41609main ()
41610{
41611getservbyname(NULL,NULL);
41612  ;
41613  return 0;
41614}
41615_ACEOF
41616if ac_fn_c_try_link "$LINENO"; then :
41617  gl_cv_w32_getservbyname=yes
41618fi
41619rm -f core conftest.err conftest.$ac_objext \
41620    conftest$ac_exeext conftest.$ac_ext
41621         LIBS="$gl_save_LIBS"
41622
41623fi
41624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
41625$as_echo "$gl_cv_w32_getservbyname" >&6; }
41626      if test "$gl_cv_w32_getservbyname" = "yes"; then
41627        SERVENT_LIB="-lws2_32"
41628      fi
41629
41630fi
41631done
41632
41633  fi
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
41644  if test $ac_cv_func_getpass = no; then
41645    HAVE_GETPASS=0
41646  fi
41647
41648
41649
41650
41651
41652
41653
41654ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
41655if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
41656  ac_have_decl=1
41657else
41658  ac_have_decl=0
41659fi
41660
41661cat >>confdefs.h <<_ACEOF
41662#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
41663_ACEOF
41664
41665ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
41666if test "x$ac_cv_have_decl_flockfile" = xyes; then :
41667  ac_have_decl=1
41668else
41669  ac_have_decl=0
41670fi
41671
41672cat >>confdefs.h <<_ACEOF
41673#define HAVE_DECL_FLOCKFILE $ac_have_decl
41674_ACEOF
41675
41676ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
41677if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
41678  ac_have_decl=1
41679else
41680  ac_have_decl=0
41681fi
41682
41683cat >>confdefs.h <<_ACEOF
41684#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
41685_ACEOF
41686
41687ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
41688if test "x$ac_cv_have_decl_funlockfile" = xyes; then :
41689  ac_have_decl=1
41690else
41691  ac_have_decl=0
41692fi
41693
41694cat >>confdefs.h <<_ACEOF
41695#define HAVE_DECL_FUNLOCKFILE $ac_have_decl
41696_ACEOF
41697
41698ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
41699if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
41700  ac_have_decl=1
41701else
41702  ac_have_decl=0
41703fi
41704
41705cat >>confdefs.h <<_ACEOF
41706#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
41707_ACEOF
41708
41709:
41710
41711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5
41712$as_echo_n "checking whether time_t is signed... " >&6; }
41713if ${gl_cv_time_t_is_signed+:} false; then :
41714  $as_echo_n "(cached) " >&6
41715else
41716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41717/* end confdefs.h.  */
41718#include <time.h>
41719                          char time_t_signed[(time_t) -1 < 0 ? 1 : -1];
41720int
41721main ()
41722{
41723
41724  ;
41725  return 0;
41726}
41727_ACEOF
41728if ac_fn_c_try_compile "$LINENO"; then :
41729  gl_cv_time_t_is_signed=yes
41730else
41731  gl_cv_time_t_is_signed=no
41732fi
41733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41734fi
41735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_t_is_signed" >&5
41736$as_echo "$gl_cv_time_t_is_signed" >&6; }
41737  if test $gl_cv_time_t_is_signed = yes; then
41738
41739$as_echo "#define TIME_T_IS_SIGNED 1" >>confdefs.h
41740
41741  fi
41742
41743
41744
41745
41746
41747
41748
41749
41750
41751
41752  if test $APPLE_UNIVERSAL_BUILD = 1; then
41753    # A universal build on Apple Mac OS X platforms.
41754    # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
41755    # But we need a configuration result that is valid in both modes.
41756    gl_cv_func_working_mktime=no
41757  fi
41758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
41759$as_echo_n "checking for working mktime... " >&6; }
41760if ${gl_cv_func_working_mktime+:} false; then :
41761  $as_echo_n "(cached) " >&6
41762else
41763  if test "$cross_compiling" = yes; then :
41764  case "$host_os" in
41765                  # Guess no on native Windows.
41766          mingw*) gl_cv_func_working_mktime="guessing no" ;;
41767          *)      gl_cv_func_working_mktime="$gl_cross_guess_normal" ;;
41768        esac
41769
41770else
41771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41772/* end confdefs.h.  */
41773/* Test program from Paul Eggert and Tony Leneis.  */
41774#include <limits.h>
41775#include <stdlib.h>
41776#include <time.h>
41777
41778#ifdef HAVE_UNISTD_H
41779# include <unistd.h>
41780#endif
41781
41782#if HAVE_DECL_ALARM
41783# include <signal.h>
41784#endif
41785
41786#ifndef TIME_T_IS_SIGNED
41787# define TIME_T_IS_SIGNED 0
41788#endif
41789
41790/* Work around redefinition to rpl_putenv by other config tests.  */
41791#undef putenv
41792
41793static time_t time_t_max;
41794static time_t time_t_min;
41795
41796/* Values we'll use to set the TZ environment variable.  */
41797static char *tz_strings[] = {
41798  (char *) 0, "TZ=GMT0", "TZ=JST-9",
41799  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
41800};
41801#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
41802
41803/* Return 0 if mktime fails to convert a date in the spring-forward gap.
41804   Based on a problem report from Andreas Jaeger.  */
41805static int
41806spring_forward_gap ()
41807{
41808  /* glibc (up to about 1998-10-07) failed this test. */
41809  struct tm tm;
41810
41811  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
41812     instead of "TZ=America/Vancouver" in order to detect the bug even
41813     on systems that don't support the Olson extension, or don't have the
41814     full zoneinfo tables installed.  */
41815  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
41816
41817  tm.tm_year = 98;
41818  tm.tm_mon = 3;
41819  tm.tm_mday = 5;
41820  tm.tm_hour = 2;
41821  tm.tm_min = 0;
41822  tm.tm_sec = 0;
41823  tm.tm_isdst = -1;
41824  return mktime (&tm) != (time_t) -1;
41825}
41826
41827static int
41828mktime_test1 (time_t now)
41829{
41830  struct tm *lt;
41831  return ! (lt = localtime (&now)) || mktime (lt) == now;
41832}
41833
41834static int
41835mktime_test (time_t now)
41836{
41837  return (mktime_test1 (now)
41838          && mktime_test1 ((time_t) (time_t_max - now))
41839          && mktime_test1 ((time_t) (time_t_min + now)));
41840}
41841
41842static int
41843irix_6_4_bug ()
41844{
41845  /* Based on code from Ariel Faigon.  */
41846  struct tm tm;
41847  tm.tm_year = 96;
41848  tm.tm_mon = 3;
41849  tm.tm_mday = 0;
41850  tm.tm_hour = 0;
41851  tm.tm_min = 0;
41852  tm.tm_sec = 0;
41853  tm.tm_isdst = -1;
41854  mktime (&tm);
41855  return tm.tm_mon == 2 && tm.tm_mday == 31;
41856}
41857
41858static int
41859bigtime_test (int j)
41860{
41861  struct tm tm;
41862  time_t now;
41863  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
41864  now = mktime (&tm);
41865  if (now != (time_t) -1)
41866    {
41867      struct tm *lt = localtime (&now);
41868      if (! (lt
41869             && lt->tm_year == tm.tm_year
41870             && lt->tm_mon == tm.tm_mon
41871             && lt->tm_mday == tm.tm_mday
41872             && lt->tm_hour == tm.tm_hour
41873             && lt->tm_min == tm.tm_min
41874             && lt->tm_sec == tm.tm_sec
41875             && lt->tm_yday == tm.tm_yday
41876             && lt->tm_wday == tm.tm_wday
41877             && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
41878                  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
41879        return 0;
41880    }
41881  return 1;
41882}
41883
41884static int
41885year_2050_test ()
41886{
41887  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
41888     ignoring leap seconds.  */
41889  unsigned long int answer = 2527315200UL;
41890
41891  struct tm tm;
41892  time_t t;
41893  tm.tm_year = 2050 - 1900;
41894  tm.tm_mon = 2 - 1;
41895  tm.tm_mday = 1;
41896  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
41897  tm.tm_isdst = -1;
41898
41899  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
41900     instead of "TZ=America/Vancouver" in order to detect the bug even
41901     on systems that don't support the Olson extension, or don't have the
41902     full zoneinfo tables installed.  */
41903  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
41904
41905  t = mktime (&tm);
41906
41907  /* Check that the result is either a failure, or close enough
41908     to the correct answer that we can assume the discrepancy is
41909     due to leap seconds.  */
41910  return (t == (time_t) -1
41911          || (0 < t && answer - 120 <= t && t <= answer + 120));
41912}
41913
41914int
41915main ()
41916{
41917  int result = 0;
41918  time_t t, delta;
41919  int i, j;
41920  int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
41921
41922#if HAVE_DECL_ALARM
41923  /* This test makes some buggy mktime implementations loop.
41924     Give up after 60 seconds; a mktime slower than that
41925     isn't worth using anyway.  */
41926  signal (SIGALRM, SIG_DFL);
41927  alarm (60);
41928#endif
41929
41930  time_t_max = (! TIME_T_IS_SIGNED
41931                ? (time_t) -1
41932                : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
41933                   * 2 + 1));
41934  time_t_min = (! TIME_T_IS_SIGNED
41935                ? (time_t) 0
41936                : time_t_signed_magnitude
41937                ? ~ (time_t) 0
41938                : ~ time_t_max);
41939
41940  delta = time_t_max / 997; /* a suitable prime number */
41941  for (i = 0; i < N_STRINGS; i++)
41942    {
41943      if (tz_strings[i])
41944        putenv (tz_strings[i]);
41945
41946      for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
41947        if (! mktime_test (t))
41948          result |= 1;
41949      if ((result & 2) == 0
41950          && ! (mktime_test ((time_t) 1)
41951                && mktime_test ((time_t) (60 * 60))
41952                && mktime_test ((time_t) (60 * 60 * 24))))
41953        result |= 2;
41954
41955      for (j = 1; (result & 4) == 0; j <<= 1)
41956        {
41957          if (! bigtime_test (j))
41958            result |= 4;
41959          if (INT_MAX / 2 < j)
41960            break;
41961        }
41962      if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
41963        result |= 8;
41964    }
41965  if (! irix_6_4_bug ())
41966    result |= 16;
41967  if (! spring_forward_gap ())
41968    result |= 32;
41969  if (! year_2050_test ())
41970    result |= 64;
41971  return result;
41972}
41973_ACEOF
41974if ac_fn_c_try_run "$LINENO"; then :
41975  gl_cv_func_working_mktime=yes
41976else
41977  gl_cv_func_working_mktime=no
41978fi
41979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41980  conftest.$ac_objext conftest.beam conftest.$ac_ext
41981fi
41982
41983
41984fi
41985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
41986$as_echo "$gl_cv_func_working_mktime" >&6; }
41987
41988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
41989$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
41990if ${ac_cv_struct_tm+:} false; then :
41991  $as_echo_n "(cached) " >&6
41992else
41993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41994/* end confdefs.h.  */
41995#include <sys/types.h>
41996#include <time.h>
41997
41998int
41999main ()
42000{
42001struct tm tm;
42002				     int *p = &tm.tm_sec;
42003				     return !p;
42004  ;
42005  return 0;
42006}
42007_ACEOF
42008if ac_fn_c_try_compile "$LINENO"; then :
42009  ac_cv_struct_tm=time.h
42010else
42011  ac_cv_struct_tm=sys/time.h
42012fi
42013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42014fi
42015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
42016$as_echo "$ac_cv_struct_tm" >&6; }
42017if test $ac_cv_struct_tm = sys/time.h; then
42018
42019$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
42020
42021fi
42022
42023ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
42024#include <$ac_cv_struct_tm>
42025
42026"
42027if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
42028
42029cat >>confdefs.h <<_ACEOF
42030#define HAVE_STRUCT_TM_TM_ZONE 1
42031_ACEOF
42032
42033
42034fi
42035
42036if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
42037
42038$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
42039
42040else
42041  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
42042"
42043if test "x$ac_cv_have_decl_tzname" = xyes; then :
42044  ac_have_decl=1
42045else
42046  ac_have_decl=0
42047fi
42048
42049cat >>confdefs.h <<_ACEOF
42050#define HAVE_DECL_TZNAME $ac_have_decl
42051_ACEOF
42052
42053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
42054$as_echo_n "checking for tzname... " >&6; }
42055if ${ac_cv_var_tzname+:} false; then :
42056  $as_echo_n "(cached) " >&6
42057else
42058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42059/* end confdefs.h.  */
42060#include <time.h>
42061#if !HAVE_DECL_TZNAME
42062extern char *tzname[];
42063#endif
42064
42065int
42066main ()
42067{
42068return tzname[0][0];
42069  ;
42070  return 0;
42071}
42072_ACEOF
42073if ac_fn_c_try_link "$LINENO"; then :
42074  ac_cv_var_tzname=yes
42075else
42076  ac_cv_var_tzname=no
42077fi
42078rm -f core conftest.err conftest.$ac_objext \
42079    conftest$ac_exeext conftest.$ac_ext
42080fi
42081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
42082$as_echo "$ac_cv_var_tzname" >&6; }
42083  if test $ac_cv_var_tzname = yes; then
42084
42085$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
42086
42087  fi
42088fi
42089
42090
42091 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
42092"
42093if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
42094
42095$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
42096
42097fi
42098
42099
42100
42101  : ${YACC='bison -o y.tab.c'}
42102
42103
42104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compound literals" >&5
42105$as_echo_n "checking for compound literals... " >&6; }
42106if ${gl_cv_compound_literals+:} false; then :
42107  $as_echo_n "(cached) " >&6
42108else
42109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42110/* end confdefs.h.  */
42111struct s { int i, j; };
42112int
42113main ()
42114{
42115struct s t = (struct s) { 3, 4 };
42116        if (t.i != 0) return 0;
42117  ;
42118  return 0;
42119}
42120_ACEOF
42121if ac_fn_c_try_compile "$LINENO"; then :
42122  gl_cv_compound_literals=yes
42123else
42124  gl_cv_compound_literals=no
42125fi
42126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42127fi
42128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compound_literals" >&5
42129$as_echo "$gl_cv_compound_literals" >&6; }
42130  if test $gl_cv_compound_literals = yes; then
42131
42132$as_echo "#define HAVE_COMPOUND_LITERALS 1" >>confdefs.h
42133
42134  fi
42135
42136
42137
42138
42139   if true; then
42140  GL_COND_LIBTOOL_TRUE=
42141  GL_COND_LIBTOOL_FALSE='#'
42142else
42143  GL_COND_LIBTOOL_TRUE='#'
42144  GL_COND_LIBTOOL_FALSE=
42145fi
42146
42147  gl_cond_libtool=true
42148  gl_m4_base='src/gl/m4'
42149
42150
42151
42152
42153
42154
42155
42156
42157
42158
42159  gl_source_base='src/gl'
42160
42161  if test "$ac_cv_header_winsock2_h" = yes; then
42162
42163
42164
42165
42166
42167
42168
42169
42170  ggl_LIBOBJS="$ggl_LIBOBJS accept.$ac_objext"
42171
42172  fi
42173
42174
42175
42176
42177
42178          GNULIB_ACCEPT=1
42179
42180
42181
42182
42183
42184$as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
42185
42186
42187
42188LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
42189
42190
42191
42192  if test $ac_cv_func_alloca_works = no; then
42193    :
42194  fi
42195
42196  # Define an additional variable used in the Makefile substitution.
42197  if test $ac_cv_working_alloca_h = yes; then
42198    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
42199$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
42200if ${gl_cv_rpl_alloca+:} false; then :
42201  $as_echo_n "(cached) " >&6
42202else
42203
42204      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42205/* end confdefs.h.  */
42206
42207#if defined __GNUC__ || defined _AIX || defined _MSC_VER
42208        Need own alloca
42209#endif
42210
42211_ACEOF
42212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42213  $EGREP "Need own alloca" >/dev/null 2>&1; then :
42214  gl_cv_rpl_alloca=yes
42215else
42216  gl_cv_rpl_alloca=no
42217fi
42218rm -f conftest*
42219
42220
42221fi
42222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
42223$as_echo "$gl_cv_rpl_alloca" >&6; }
42224    if test $gl_cv_rpl_alloca = yes; then
42225
42226$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
42227
42228      ALLOCA_H=alloca.h
42229    else
42230                  ALLOCA_H=
42231    fi
42232  else
42233    ALLOCA_H=alloca.h
42234  fi
42235
42236   if test -n "$ALLOCA_H"; then
42237  GL_GENERATE_ALLOCA_H_TRUE=
42238  GL_GENERATE_ALLOCA_H_FALSE='#'
42239else
42240  GL_GENERATE_ALLOCA_H_TRUE='#'
42241  GL_GENERATE_ALLOCA_H_FALSE=
42242fi
42243
42244
42245  if test $ac_cv_working_alloca_h = yes; then
42246    HAVE_ALLOCA_H=1
42247  else
42248    HAVE_ALLOCA_H=0
42249  fi
42250
42251
42252
42253
42254
42255
42256  if test $ac_cv_header_arpa_inet_h = yes; then
42257    HAVE_ARPA_INET_H=1
42258  else
42259    HAVE_ARPA_INET_H=0
42260  fi
42261
42262
42263
42264
42265
42266
42267
42268
42269
42270
42271     if test $gl_cv_have_include_next = yes; then
42272       gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
42273     else
42274       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
42275$as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
42276if ${gl_cv_next_arpa_inet_h+:} false; then :
42277  $as_echo_n "(cached) " >&6
42278else
42279
42280             if test $ac_cv_header_arpa_inet_h = yes; then
42281
42282
42283
42284
42285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42286/* end confdefs.h.  */
42287#include <arpa/inet.h>
42288_ACEOF
42289                case "$host_os" in
42290    aix*) gl_absname_cpp="$ac_cpp -C" ;;
42291    *)    gl_absname_cpp="$ac_cpp" ;;
42292  esac
42293
42294  case "$host_os" in
42295    mingw*)
42296                                          gl_dirsep_regex='[/\\]'
42297      ;;
42298    *)
42299      gl_dirsep_regex='\/'
42300      ;;
42301  esac
42302      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42303  gl_header_literal_regex=`echo 'arpa/inet.h' \
42304                           | sed -e "$gl_make_literal_regex_sed"`
42305  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42306      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42307      s|^/[^/]|//&|
42308      p
42309      q
42310    }'
42311
42312        gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42313  sed -n "$gl_absolute_header_sed"`
42314
42315           gl_header=$gl_cv_absolute_arpa_inet_h
42316           gl_cv_next_arpa_inet_h='"'$gl_header'"'
42317          else
42318               gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
42319             fi
42320
42321
42322fi
42323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
42324$as_echo "$gl_cv_next_arpa_inet_h" >&6; }
42325     fi
42326     NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
42327
42328     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42329       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42330       gl_next_as_first_directive='<'arpa/inet.h'>'
42331     else
42332       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42333       gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
42334     fi
42335     NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
42336
42337
42338
42339
42340
42341
42342
42343
42344
42345  if test $ac_cv_header_sys_socket_h = yes; then
42346    HAVE_WS2TCPIP_H=0
42347  else
42348    if test $ac_cv_header_ws2tcpip_h = yes; then
42349      HAVE_WS2TCPIP_H=1
42350    else
42351      HAVE_WS2TCPIP_H=0
42352    fi
42353  fi
42354
42355
42356
42357
42358
42359
42360
42361
42362
42363  if test "$ac_cv_header_winsock2_h" = yes; then
42364
42365
42366
42367
42368
42369
42370
42371
42372  ggl_LIBOBJS="$ggl_LIBOBJS bind.$ac_objext"
42373
42374  fi
42375
42376
42377
42378
42379
42380          GNULIB_BIND=1
42381
42382
42383
42384
42385
42386$as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
42387
42388
42389
42390  # See the comments in bison.m4.
42391
42392
42393
42394  # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
42395  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
42396
42397  # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
42398  # programs in the package would end up linked with that potentially-shared
42399  # library, inducing unnecessary run-time overhead.
42400  LIB_CLOCK_GETTIME=
42401
42402  gl_saved_libs=$LIBS
42403    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
42404$as_echo_n "checking for library containing clock_gettime... " >&6; }
42405if ${ac_cv_search_clock_gettime+:} false; then :
42406  $as_echo_n "(cached) " >&6
42407else
42408  ac_func_search_save_LIBS=$LIBS
42409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42410/* end confdefs.h.  */
42411
42412/* Override any GCC internal prototype to avoid an error.
42413   Use char because int might match the return type of a GCC
42414   builtin and then its argument prototype would still apply.  */
42415#ifdef __cplusplus
42416extern "C"
42417#endif
42418char clock_gettime ();
42419int
42420main ()
42421{
42422return clock_gettime ();
42423  ;
42424  return 0;
42425}
42426_ACEOF
42427for ac_lib in '' rt posix4; do
42428  if test -z "$ac_lib"; then
42429    ac_res="none required"
42430  else
42431    ac_res=-l$ac_lib
42432    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
42433  fi
42434  if ac_fn_c_try_link "$LINENO"; then :
42435  ac_cv_search_clock_gettime=$ac_res
42436fi
42437rm -f core conftest.err conftest.$ac_objext \
42438    conftest$ac_exeext
42439  if ${ac_cv_search_clock_gettime+:} false; then :
42440  break
42441fi
42442done
42443if ${ac_cv_search_clock_gettime+:} false; then :
42444
42445else
42446  ac_cv_search_clock_gettime=no
42447fi
42448rm conftest.$ac_ext
42449LIBS=$ac_func_search_save_LIBS
42450fi
42451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
42452$as_echo "$ac_cv_search_clock_gettime" >&6; }
42453ac_res=$ac_cv_search_clock_gettime
42454if test "$ac_res" != no; then :
42455  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42456  test "$ac_cv_search_clock_gettime" = "none required" ||
42457                    LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
42458fi
42459
42460    for ac_func in clock_gettime clock_settime
42461do :
42462  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42463ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42464if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42465  cat >>confdefs.h <<_ACEOF
42466#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42467_ACEOF
42468
42469fi
42470done
42471
42472  LIBS=$gl_saved_libs
42473
42474
42475
42476$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
42477
42478
42479
42480
42481
42482
42483    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
42484      REPLACE_CLOSE=1
42485    fi
42486
42487
42488
42489
42490
42491
42492  if test $ac_cv_header_sys_socket_h != yes; then
42493                    for ac_header in winsock2.h
42494do :
42495  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
42496if test "x$ac_cv_header_winsock2_h" = xyes; then :
42497  cat >>confdefs.h <<_ACEOF
42498#define HAVE_WINSOCK2_H 1
42499_ACEOF
42500
42501fi
42502
42503done
42504
42505  fi
42506  if test "$ac_cv_header_winsock2_h" = yes; then
42507    HAVE_WINSOCK2_H=1
42508    UNISTD_H_HAVE_WINSOCK2_H=1
42509    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
42510  else
42511    HAVE_WINSOCK2_H=0
42512  fi
42513
42514
42515    if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
42516                        REPLACE_CLOSE=1
42517    fi
42518
42519
42520
42521  if test $REPLACE_CLOSE = 1; then
42522
42523
42524
42525
42526
42527
42528
42529
42530  ggl_LIBOBJS="$ggl_LIBOBJS close.$ac_objext"
42531
42532  fi
42533
42534
42535
42536
42537
42538          GNULIB_CLOSE=1
42539
42540
42541
42542
42543
42544$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
42545
42546
42547
42548
42549  if test "$ac_cv_header_winsock2_h" = yes; then
42550
42551
42552
42553
42554
42555
42556
42557
42558  ggl_LIBOBJS="$ggl_LIBOBJS connect.$ac_objext"
42559
42560  fi
42561
42562
42563
42564
42565
42566          GNULIB_CONNECT=1
42567
42568
42569
42570
42571
42572$as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
42573
42574
42575
42576
42577
42578
42579
42580
42581$as_echo "#define HAVE_DUP2 1" >>confdefs.h
42582
42583
42584  if test $HAVE_DUP2 = 1; then
42585    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
42586$as_echo_n "checking whether dup2 works... " >&6; }
42587if ${gl_cv_func_dup2_works+:} false; then :
42588  $as_echo_n "(cached) " >&6
42589else
42590  if test "$cross_compiling" = yes; then :
42591  case "$host_os" in
42592           mingw*) # on this platform, dup2 always returns 0 for success
42593             gl_cv_func_dup2_works="guessing no" ;;
42594           cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
42595             gl_cv_func_dup2_works="guessing no" ;;
42596           aix* | freebsd*)
42597                   # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
42598                   # not EBADF.
42599             gl_cv_func_dup2_works="guessing no" ;;
42600           haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
42601             gl_cv_func_dup2_works="guessing no" ;;
42602           *-android*) # implemented using dup3(), which fails if oldfd == newfd
42603             gl_cv_func_dup2_works="guessing no" ;;
42604           os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
42605             gl_cv_func_dup2_works="guessing no" ;;
42606           *) gl_cv_func_dup2_works="guessing yes" ;;
42607         esac
42608else
42609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42610/* end confdefs.h.  */
42611
42612         #include <errno.h>
42613             #include <fcntl.h>
42614             #include <limits.h>
42615             #include <sys/resource.h>
42616             #include <unistd.h>
42617             #ifndef RLIM_SAVED_CUR
42618             # define RLIM_SAVED_CUR RLIM_INFINITY
42619             #endif
42620             #ifndef RLIM_SAVED_MAX
42621             # define RLIM_SAVED_MAX RLIM_INFINITY
42622             #endif
42623
42624int
42625main ()
42626{
42627int result = 0;
42628             int bad_fd = INT_MAX;
42629             struct rlimit rlim;
42630             if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
42631                 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
42632                 && rlim.rlim_cur != RLIM_INFINITY
42633                 && rlim.rlim_cur != RLIM_SAVED_MAX
42634                 && rlim.rlim_cur != RLIM_SAVED_CUR)
42635               bad_fd = rlim.rlim_cur;
42636             #ifdef FD_CLOEXEC
42637               if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
42638                 result |= 1;
42639             #endif
42640             if (dup2 (1, 1) != 1)
42641               result |= 2;
42642             #ifdef FD_CLOEXEC
42643               if (fcntl (1, F_GETFD) != FD_CLOEXEC)
42644                 result |= 4;
42645             #endif
42646             close (0);
42647             if (dup2 (0, 0) != -1)
42648               result |= 8;
42649             /* Many gnulib modules require POSIX conformance of EBADF.  */
42650             if (dup2 (2, bad_fd) == -1 && errno != EBADF)
42651               result |= 16;
42652             /* Flush out some cygwin core dumps.  */
42653             if (dup2 (2, -1) != -1 || errno != EBADF)
42654               result |= 32;
42655             dup2 (2, 255);
42656             dup2 (2, 256);
42657             /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
42658             {
42659               int fd = open (".", O_RDONLY);
42660               if (fd == -1)
42661                 result |= 64;
42662               else if (dup2 (fd, fd + 1) == -1)
42663                 result |= 128;
42664
42665               close (fd);
42666             }
42667             return result;
42668  ;
42669  return 0;
42670}
42671
42672_ACEOF
42673if ac_fn_c_try_run "$LINENO"; then :
42674  gl_cv_func_dup2_works=yes
42675else
42676  gl_cv_func_dup2_works=no
42677fi
42678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42679  conftest.$ac_objext conftest.beam conftest.$ac_ext
42680fi
42681
42682
42683fi
42684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
42685$as_echo "$gl_cv_func_dup2_works" >&6; }
42686    case "$gl_cv_func_dup2_works" in
42687      *yes) ;;
42688      *)
42689        REPLACE_DUP2=1
42690        for ac_func in setdtablesize
42691do :
42692  ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
42693if test "x$ac_cv_func_setdtablesize" = xyes; then :
42694  cat >>confdefs.h <<_ACEOF
42695#define HAVE_SETDTABLESIZE 1
42696_ACEOF
42697
42698fi
42699done
42700
42701        ;;
42702    esac
42703  fi
42704
42705
42706  if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
42707
42708
42709
42710
42711
42712
42713
42714
42715  ggl_LIBOBJS="$ggl_LIBOBJS dup2.$ac_objext"
42716
42717
42718  fi
42719
42720
42721
42722
42723
42724          GNULIB_DUP2=1
42725
42726
42727
42728
42729
42730$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
42731
42732
42733
42734
42735
42736
42737
42738
42739
42740          GNULIB_ENVIRON=1
42741
42742
42743
42744
42745
42746$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
42747
42748
42749
42750
42751
42752
42753
42754
42755
42756
42757  if test $ac_cv_func_explicit_bzero = no; then
42758    HAVE_EXPLICIT_BZERO=0
42759  fi
42760
42761  if test $HAVE_EXPLICIT_BZERO = 0; then
42762
42763
42764
42765
42766
42767
42768
42769
42770  ggl_LIBOBJS="$ggl_LIBOBJS explicit_bzero.$ac_objext"
42771
42772
42773  for ac_func in explicit_memset
42774do :
42775  ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
42776if test "x$ac_cv_func_explicit_memset" = xyes; then :
42777  cat >>confdefs.h <<_ACEOF
42778#define HAVE_EXPLICIT_MEMSET 1
42779_ACEOF
42780
42781fi
42782done
42783
42784
42785
42786  fi
42787
42788
42789
42790
42791
42792          GNULIB_EXPLICIT_BZERO=1
42793
42794
42795
42796
42797
42798$as_echo "#define GNULIB_TEST_EXPLICIT_BZERO 1" >>confdefs.h
42799
42800
42801
42802
42803
42804
42805
42806
42807
42808  if test $ac_cv_func_fcntl = no; then
42809
42810
42811
42812  if test $ac_cv_func_fcntl = no; then
42813    HAVE_FCNTL=0
42814  else
42815    REPLACE_FCNTL=1
42816  fi
42817
42818  else
42819            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
42820$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
42821if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
42822  $as_echo_n "(cached) " >&6
42823else
42824  if test "$cross_compiling" = yes; then :
42825  case $host_os in
42826            aix* | cygwin* | haiku*)
42827               gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
42828            *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
42829          esac
42830else
42831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42832/* end confdefs.h.  */
42833#include <errno.h>
42834              #include <fcntl.h>
42835              #include <limits.h>
42836              #include <sys/resource.h>
42837              #include <unistd.h>
42838              #ifndef RLIM_SAVED_CUR
42839              # define RLIM_SAVED_CUR RLIM_INFINITY
42840              #endif
42841              #ifndef RLIM_SAVED_MAX
42842              # define RLIM_SAVED_MAX RLIM_INFINITY
42843              #endif
42844
42845int
42846main ()
42847{
42848int result = 0;
42849              int bad_fd = INT_MAX;
42850              struct rlimit rlim;
42851              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
42852                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
42853                  && rlim.rlim_cur != RLIM_INFINITY
42854                  && rlim.rlim_cur != RLIM_SAVED_MAX
42855                  && rlim.rlim_cur != RLIM_SAVED_CUR)
42856                bad_fd = rlim.rlim_cur;
42857              if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
42858              if (errno != EINVAL) result |= 2;
42859              if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
42860              if (errno != EINVAL) result |= 8;
42861              /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
42862              {
42863                int fd;
42864                fd = open (".", O_RDONLY);
42865                if (fd == -1)
42866                  result |= 16;
42867                else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
42868                  result |= 32;
42869
42870                close (fd);
42871              }
42872              return result;
42873  ;
42874  return 0;
42875}
42876_ACEOF
42877if ac_fn_c_try_run "$LINENO"; then :
42878  gl_cv_func_fcntl_f_dupfd_works=yes
42879else
42880  gl_cv_func_fcntl_f_dupfd_works=no
42881fi
42882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42883  conftest.$ac_objext conftest.beam conftest.$ac_ext
42884fi
42885
42886fi
42887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
42888$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
42889    case $gl_cv_func_fcntl_f_dupfd_works in
42890      *yes) ;;
42891      *)
42892
42893
42894  if test $ac_cv_func_fcntl = no; then
42895    HAVE_FCNTL=0
42896  else
42897    REPLACE_FCNTL=1
42898  fi
42899
42900
42901$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
42902 ;;
42903    esac
42904
42905        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
42906$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
42907if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
42908  $as_echo_n "(cached) " >&6
42909else
42910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42911/* end confdefs.h.  */
42912
42913#include <fcntl.h>
42914#ifndef F_DUPFD_CLOEXEC
42915choke me
42916#endif
42917
42918int
42919main ()
42920{
42921
42922  ;
42923  return 0;
42924}
42925_ACEOF
42926if ac_fn_c_try_compile "$LINENO"; then :
42927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42928/* end confdefs.h.  */
42929
42930#ifdef __linux__
42931/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
42932   it to support the semantics on older kernels that failed with EINVAL.  */
42933choke me
42934#endif
42935
42936int
42937main ()
42938{
42939
42940  ;
42941  return 0;
42942}
42943_ACEOF
42944if ac_fn_c_try_compile "$LINENO"; then :
42945  gl_cv_func_fcntl_f_dupfd_cloexec=yes
42946else
42947  gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
42948fi
42949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42950else
42951  gl_cv_func_fcntl_f_dupfd_cloexec=no
42952fi
42953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42954fi
42955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
42956$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
42957    if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
42958
42959
42960
42961  if test $ac_cv_func_fcntl = no; then
42962    HAVE_FCNTL=0
42963  else
42964    REPLACE_FCNTL=1
42965  fi
42966
42967          fi
42968  fi
42969
42970
42971  if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
42972
42973
42974
42975
42976
42977
42978
42979
42980  ggl_LIBOBJS="$ggl_LIBOBJS fcntl.$ac_objext"
42981
42982  fi
42983
42984
42985
42986
42987
42988          GNULIB_FCNTL=1
42989
42990
42991
42992
42993
42994$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
42995
42996
42997
42998
42999
43000
43001
43002
43003
43004
43005
43006
43007
43008
43009     if test $gl_cv_have_include_next = yes; then
43010       gl_cv_next_fcntl_h='<'fcntl.h'>'
43011     else
43012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
43013$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
43014if ${gl_cv_next_fcntl_h+:} false; then :
43015  $as_echo_n "(cached) " >&6
43016else
43017
43018
43019
43020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43021/* end confdefs.h.  */
43022#include <fcntl.h>
43023_ACEOF
43024                case "$host_os" in
43025    aix*) gl_absname_cpp="$ac_cpp -C" ;;
43026    *)    gl_absname_cpp="$ac_cpp" ;;
43027  esac
43028
43029  case "$host_os" in
43030    mingw*)
43031                                          gl_dirsep_regex='[/\\]'
43032      ;;
43033    *)
43034      gl_dirsep_regex='\/'
43035      ;;
43036  esac
43037      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43038  gl_header_literal_regex=`echo 'fcntl.h' \
43039                           | sed -e "$gl_make_literal_regex_sed"`
43040  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43041      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43042      s|^/[^/]|//&|
43043      p
43044      q
43045    }'
43046
43047        gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43048  sed -n "$gl_absolute_header_sed"`
43049
43050           gl_header=$gl_cv_absolute_fcntl_h
43051           gl_cv_next_fcntl_h='"'$gl_header'"'
43052
43053
43054fi
43055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
43056$as_echo "$gl_cv_next_fcntl_h" >&6; }
43057     fi
43058     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
43059
43060     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43061       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43062       gl_next_as_first_directive='<'fcntl.h'>'
43063     else
43064       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43065       gl_next_as_first_directive=$gl_cv_next_fcntl_h
43066     fi
43067     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
43068
43069
43070
43071
43072
43073
43074
43075
43076
43077
43078
43079
43080
43081
43082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
43083$as_echo_n "checking for flexible array member... " >&6; }
43084if ${ac_cv_c_flexmember+:} false; then :
43085  $as_echo_n "(cached) " >&6
43086else
43087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43088/* end confdefs.h.  */
43089#include <stdlib.h>
43090            #include <stdio.h>
43091            #include <stddef.h>
43092            struct m { struct m *next, **list; char name[]; };
43093            struct s { struct s *p; struct m *m; int n; double d[]; };
43094int
43095main ()
43096{
43097int m = getchar ();
43098            size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
43099            nbytes += sizeof (struct s) - 1;
43100            nbytes -= nbytes % sizeof (struct s);
43101            struct s *p = malloc (nbytes);
43102            p->p = p;
43103            p->m = NULL;
43104            p->d[0] = 0.0;
43105            return p->d != (double *) NULL;
43106  ;
43107  return 0;
43108}
43109_ACEOF
43110if ac_fn_c_try_compile "$LINENO"; then :
43111  ac_cv_c_flexmember=yes
43112else
43113  ac_cv_c_flexmember=no
43114fi
43115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43116fi
43117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
43118$as_echo "$ac_cv_c_flexmember" >&6; }
43119  if test $ac_cv_c_flexmember = yes; then
43120
43121$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
43122
43123  else
43124    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
43125
43126  fi
43127
43128
43129
43130
43131  FLOAT_H=
43132  REPLACE_FLOAT_LDBL=0
43133  case "$host_os" in
43134    aix* | beos* | openbsd* | mirbsd* | irix*)
43135      FLOAT_H=float.h
43136      ;;
43137    freebsd* | dragonfly*)
43138      case "$host_cpu" in
43139        i[34567]86 )
43140          FLOAT_H=float.h
43141          ;;
43142        x86_64 )
43143          # On x86_64 systems, the C compiler may still be generating
43144          # 32-bit code.
43145          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43146/* end confdefs.h.  */
43147#if defined __LP64__ || defined __x86_64__ || defined __amd64__
43148                  int ok;
43149                 #else
43150                  error fail
43151                 #endif
43152
43153_ACEOF
43154if ac_fn_c_try_compile "$LINENO"; then :
43155
43156else
43157  FLOAT_H=float.h
43158fi
43159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43160          ;;
43161      esac
43162      ;;
43163    linux*)
43164      case "$host_cpu" in
43165        powerpc*)
43166          FLOAT_H=float.h
43167          ;;
43168      esac
43169      ;;
43170  esac
43171  case "$host_os" in
43172    aix* | freebsd* | dragonfly* | linux*)
43173      if test -n "$FLOAT_H"; then
43174        REPLACE_FLOAT_LDBL=1
43175      fi
43176      ;;
43177  esac
43178
43179    REPLACE_ITOLD=0
43180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
43181$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
43182if ${gl_cv_func_itold_works+:} false; then :
43183  $as_echo_n "(cached) " >&6
43184else
43185
43186      if test "$cross_compiling" = yes; then :
43187  case "$host" in
43188           sparc*-*-linux*)
43189             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43190/* end confdefs.h.  */
43191#if defined __LP64__ || defined __arch64__
43192                    int ok;
43193                   #else
43194                    error fail
43195                   #endif
43196
43197_ACEOF
43198if ac_fn_c_try_compile "$LINENO"; then :
43199  gl_cv_func_itold_works="guessing no"
43200else
43201  gl_cv_func_itold_works="guessing yes"
43202fi
43203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43204             ;;
43205                   # Guess yes on native Windows.
43206           mingw*) gl_cv_func_itold_works="guessing yes" ;;
43207           *)      gl_cv_func_itold_works="guessing yes" ;;
43208         esac
43209
43210else
43211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43212/* end confdefs.h.  */
43213
43214int i = -1;
43215volatile long double ld;
43216int main ()
43217{
43218  ld += i * 1.0L;
43219  if (ld > 0)
43220    return 1;
43221  return 0;
43222}
43223_ACEOF
43224if ac_fn_c_try_run "$LINENO"; then :
43225  gl_cv_func_itold_works=yes
43226else
43227  gl_cv_func_itold_works=no
43228fi
43229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43230  conftest.$ac_objext conftest.beam conftest.$ac_ext
43231fi
43232
43233
43234fi
43235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
43236$as_echo "$gl_cv_func_itold_works" >&6; }
43237  case "$gl_cv_func_itold_works" in
43238    *no)
43239      REPLACE_ITOLD=1
43240                  FLOAT_H=float.h
43241      ;;
43242  esac
43243
43244  if test -n "$FLOAT_H"; then
43245
43246
43247
43248
43249
43250
43251
43252
43253     if test $gl_cv_have_include_next = yes; then
43254       gl_cv_next_float_h='<'float.h'>'
43255     else
43256       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
43257$as_echo_n "checking absolute name of <float.h>... " >&6; }
43258if ${gl_cv_next_float_h+:} false; then :
43259  $as_echo_n "(cached) " >&6
43260else
43261
43262
43263
43264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43265/* end confdefs.h.  */
43266#include <float.h>
43267_ACEOF
43268                case "$host_os" in
43269    aix*) gl_absname_cpp="$ac_cpp -C" ;;
43270    *)    gl_absname_cpp="$ac_cpp" ;;
43271  esac
43272
43273  case "$host_os" in
43274    mingw*)
43275                                          gl_dirsep_regex='[/\\]'
43276      ;;
43277    *)
43278      gl_dirsep_regex='\/'
43279      ;;
43280  esac
43281      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43282  gl_header_literal_regex=`echo 'float.h' \
43283                           | sed -e "$gl_make_literal_regex_sed"`
43284  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43285      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43286      s|^/[^/]|//&|
43287      p
43288      q
43289    }'
43290
43291        gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43292  sed -n "$gl_absolute_header_sed"`
43293
43294           gl_header=$gl_cv_absolute_float_h
43295           gl_cv_next_float_h='"'$gl_header'"'
43296
43297
43298fi
43299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
43300$as_echo "$gl_cv_next_float_h" >&6; }
43301     fi
43302     NEXT_FLOAT_H=$gl_cv_next_float_h
43303
43304     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43305       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43306       gl_next_as_first_directive='<'float.h'>'
43307     else
43308       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43309       gl_next_as_first_directive=$gl_cv_next_float_h
43310     fi
43311     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
43312
43313
43314
43315
43316  fi
43317
43318   if test -n "$FLOAT_H"; then
43319  GL_GENERATE_FLOAT_H_TRUE=
43320  GL_GENERATE_FLOAT_H_FALSE='#'
43321else
43322  GL_GENERATE_FLOAT_H_TRUE='#'
43323  GL_GENERATE_FLOAT_H_FALSE=
43324fi
43325
43326
43327
43328  if test $REPLACE_FLOAT_LDBL = 1; then
43329
43330
43331
43332
43333
43334
43335
43336
43337  ggl_LIBOBJS="$ggl_LIBOBJS float.$ac_objext"
43338
43339  fi
43340  if test $REPLACE_ITOLD = 1; then
43341
43342
43343
43344
43345
43346
43347
43348
43349  ggl_LIBOBJS="$ggl_LIBOBJS itold.$ac_objext"
43350
43351  fi
43352
43353
43354
43355  case "$host_os" in
43356    mingw* | pw*)
43357            REPLACE_FOPEN=1
43358            gl_cv_func_fopen_slash="guessing no"
43359      ;;
43360    *)
43361                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
43362$as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
43363if ${gl_cv_func_fopen_slash+:} false; then :
43364  $as_echo_n "(cached) " >&6
43365else
43366
43367          if test "$cross_compiling" = yes; then :
43368
43369             case "$host_os" in
43370               aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
43371                 gl_cv_func_fopen_slash="guessing no" ;;
43372               *)
43373                 gl_cv_func_fopen_slash="guessing yes" ;;
43374             esac
43375
43376else
43377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43378/* end confdefs.h.  */
43379
43380#include <stddef.h>
43381#include <stdio.h>
43382int main ()
43383{
43384  FILE *fp = fopen ("conftest.sl/", "w");
43385  int result = (fp != NULL);
43386  if (fp != NULL)
43387    fclose (fp);
43388  return result;
43389}
43390_ACEOF
43391if ac_fn_c_try_run "$LINENO"; then :
43392  gl_cv_func_fopen_slash=yes
43393else
43394  gl_cv_func_fopen_slash=no
43395fi
43396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43397  conftest.$ac_objext conftest.beam conftest.$ac_ext
43398fi
43399
43400          rm -f conftest.sl
43401
43402fi
43403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
43404$as_echo "$gl_cv_func_fopen_slash" >&6; }
43405      ;;
43406  esac
43407  case "$gl_cv_func_fopen_slash" in
43408    *no)
43409
43410$as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
43411
43412      REPLACE_FOPEN=1
43413      ;;
43414  esac
43415
43416  if test $REPLACE_FOPEN = 1; then
43417
43418
43419
43420
43421
43422
43423
43424
43425  ggl_LIBOBJS="$ggl_LIBOBJS fopen.$ac_objext"
43426
43427    :
43428  fi
43429
43430
43431
43432
43433
43434          GNULIB_FOPEN=1
43435
43436
43437
43438
43439
43440$as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
43441
43442
43443
43444
43445
43446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5
43447$as_echo_n "checking whether fopen supports the mode character 'x'... " >&6; }
43448if ${gl_cv_func_fopen_mode_x+:} false; then :
43449  $as_echo_n "(cached) " >&6
43450else
43451  rm -f conftest.x
43452     if test "$cross_compiling" = yes; then :
43453  case "$host_os" in
43454          # Guess yes on glibc and musl systems.
43455          linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
43456            gl_cv_func_fopen_mode_x="guessing yes" ;;
43457          # If we don't know, obey --enable-cross-guesses.
43458          *)
43459            gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;;
43460        esac
43461
43462else
43463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43464/* end confdefs.h.  */
43465
43466#include <stdio.h>
43467#include <errno.h>
43468int main ()
43469{
43470  FILE *fp;
43471  fp = fopen ("conftest.x", "w");
43472  fclose (fp);
43473  fp = fopen ("conftest.x", "wx");
43474  if (fp != NULL)
43475    /* 'x' ignored */
43476    return 1;
43477  else if (errno == EEXIST)
43478    return 0;
43479  else
43480    /* 'x' rejected */
43481    return 2;
43482}
43483_ACEOF
43484if ac_fn_c_try_run "$LINENO"; then :
43485  gl_cv_func_fopen_mode_x=yes
43486else
43487  gl_cv_func_fopen_mode_x=no
43488fi
43489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43490  conftest.$ac_objext conftest.beam conftest.$ac_ext
43491fi
43492
43493     rm -f conftest.x
43494
43495fi
43496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5
43497$as_echo "$gl_cv_func_fopen_mode_x" >&6; }
43498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5
43499$as_echo_n "checking whether fopen supports the mode character 'e'... " >&6; }
43500if ${gl_cv_func_fopen_mode_e+:} false; then :
43501  $as_echo_n "(cached) " >&6
43502else
43503  echo foo > conftest.x
43504     if test "$cross_compiling" = yes; then :
43505  case "$host_os" in
43506          # Guess yes on glibc and musl systems.
43507          linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*)
43508            gl_cv_func_fopen_mode_e="guessing yes" ;;
43509          # Guess no on native Windows.
43510          mingw*)
43511            gl_cv_func_fopen_mode_e="guessing no" ;;
43512          # If we don't know, obey --enable-cross-guesses.
43513          *)
43514            gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;;
43515        esac
43516
43517else
43518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43519/* end confdefs.h.  */
43520
43521#include <stdio.h>
43522#include <errno.h>
43523#include <fcntl.h>
43524int main ()
43525{
43526  FILE *fp = fopen ("conftest.x", "re");
43527  if (fp != NULL)
43528    {
43529      if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC)
43530        return 0;
43531      else
43532        /* 'e' ignored */
43533        return 1;
43534    }
43535  else
43536    /* 'e' rejected */
43537    return 2;
43538}
43539_ACEOF
43540if ac_fn_c_try_run "$LINENO"; then :
43541  gl_cv_func_fopen_mode_e=yes
43542else
43543  gl_cv_func_fopen_mode_e=no
43544fi
43545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43546  conftest.$ac_objext conftest.beam conftest.$ac_ext
43547fi
43548
43549     rm -f conftest.x
43550
43551fi
43552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5
43553$as_echo "$gl_cv_func_fopen_mode_e" >&6; }
43554  case "$gl_cv_func_fopen_mode_x" in
43555    *no) REPLACE_FOPEN=1 ;;
43556  esac
43557  case "$gl_cv_func_fopen_mode_e" in
43558    *no) REPLACE_FOPEN=1 ;;
43559  esac
43560
43561  if test $REPLACE_FOPEN = 1; then
43562
43563
43564
43565
43566
43567
43568
43569
43570  ggl_LIBOBJS="$ggl_LIBOBJS fopen.$ac_objext"
43571
43572    :
43573  fi
43574
43575
43576cat >>confdefs.h <<_ACEOF
43577#define GNULIB_FOPEN_GNU 1
43578_ACEOF
43579
43580
43581
43582
43583
43584    if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
43585    REPLACE_FSEEK=1
43586  fi
43587
43588  if test $REPLACE_FSEEK = 1; then
43589
43590
43591
43592
43593
43594
43595
43596
43597  ggl_LIBOBJS="$ggl_LIBOBJS fseek.$ac_objext"
43598
43599  fi
43600
43601
43602
43603
43604
43605          GNULIB_FSEEK=1
43606
43607
43608
43609
43610
43611$as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
43612
43613
43614
43615
43616
43617
43618
43619
43620
43621
43622
43623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
43624$as_echo_n "checking for fseeko... " >&6; }
43625if ${gl_cv_func_fseeko+:} false; then :
43626  $as_echo_n "(cached) " >&6
43627else
43628
43629      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43630/* end confdefs.h.  */
43631#include <stdio.h>
43632
43633int
43634main ()
43635{
43636fseeko (stdin, 0, 0);
43637  ;
43638  return 0;
43639}
43640_ACEOF
43641if ac_fn_c_try_link "$LINENO"; then :
43642  gl_cv_func_fseeko=yes
43643else
43644  gl_cv_func_fseeko=no
43645fi
43646rm -f core conftest.err conftest.$ac_objext \
43647    conftest$ac_exeext conftest.$ac_ext
43648
43649fi
43650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
43651$as_echo "$gl_cv_func_fseeko" >&6; }
43652
43653
43654  if test $ac_cv_have_decl_fseeko = no; then
43655    HAVE_DECL_FSEEKO=0
43656  fi
43657
43658  if test $gl_cv_func_fseeko = no; then
43659    HAVE_FSEEKO=0
43660  else
43661    if test $WINDOWS_64_BIT_OFF_T = 1; then
43662      REPLACE_FSEEKO=1
43663    fi
43664    if test $gl_cv_var_stdin_large_offset = no; then
43665      REPLACE_FSEEKO=1
43666    fi
43667
43668  fi
43669
43670  if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
43671
43672
43673
43674
43675
43676
43677
43678
43679  ggl_LIBOBJS="$ggl_LIBOBJS fseeko.$ac_objext"
43680
43681
43682      for ac_func in _fseeki64
43683do :
43684  ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
43685if test "x$ac_cv_func__fseeki64" = xyes; then :
43686  cat >>confdefs.h <<_ACEOF
43687#define HAVE__FSEEKI64 1
43688_ACEOF
43689
43690fi
43691done
43692
43693  if test $ac_cv_func__fseeki64 = yes; then
43694    ac_fn_c_check_decl "$LINENO" "_fseeki64" "ac_cv_have_decl__fseeki64" "$ac_includes_default"
43695if test "x$ac_cv_have_decl__fseeki64" = xyes; then :
43696  ac_have_decl=1
43697else
43698  ac_have_decl=0
43699fi
43700
43701cat >>confdefs.h <<_ACEOF
43702#define HAVE_DECL__FSEEKI64 $ac_have_decl
43703_ACEOF
43704
43705  fi
43706
43707  fi
43708
43709
43710
43711
43712
43713          GNULIB_FSEEKO=1
43714
43715
43716
43717
43718
43719$as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
43720
43721
43722
43723
43724
43725
43726
43727  case "$host_os" in
43728    mingw* | solaris*)
43729                        REPLACE_FSTAT=1
43730      ;;
43731  esac
43732
43733
43734
43735  if test $REPLACE_FSTAT = 1; then
43736
43737
43738
43739
43740
43741
43742
43743
43744  ggl_LIBOBJS="$ggl_LIBOBJS fstat.$ac_objext"
43745
43746    case "$host_os" in
43747      mingw*)
43748
43749
43750
43751
43752
43753
43754
43755
43756  ggl_LIBOBJS="$ggl_LIBOBJS stat-w32.$ac_objext"
43757
43758        ;;
43759    esac
43760
43761
43762  :
43763
43764  fi
43765
43766
43767
43768
43769
43770          GNULIB_FSTAT=1
43771
43772
43773
43774
43775
43776$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
43777
43778
43779
43780
43781
43782
43783    if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
43784    REPLACE_FTELL=1
43785  fi
43786
43787  if test $REPLACE_FTELL = 1; then
43788
43789
43790
43791
43792
43793
43794
43795
43796  ggl_LIBOBJS="$ggl_LIBOBJS ftell.$ac_objext"
43797
43798  fi
43799
43800
43801
43802
43803
43804          GNULIB_FTELL=1
43805
43806
43807
43808
43809
43810$as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
43811
43812
43813
43814
43815
43816
43817
43818
43819
43820
43821
43822
43823  if test $ac_cv_have_decl_ftello = no; then
43824    HAVE_DECL_FTELLO=0
43825  fi
43826
43827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
43828$as_echo_n "checking for ftello... " >&6; }
43829if ${gl_cv_func_ftello+:} false; then :
43830  $as_echo_n "(cached) " >&6
43831else
43832
43833      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43834/* end confdefs.h.  */
43835#include <stdio.h>
43836int
43837main ()
43838{
43839ftello (stdin);
43840  ;
43841  return 0;
43842}
43843_ACEOF
43844if ac_fn_c_try_link "$LINENO"; then :
43845  gl_cv_func_ftello=yes
43846else
43847  gl_cv_func_ftello=no
43848fi
43849rm -f core conftest.err conftest.$ac_objext \
43850    conftest$ac_exeext conftest.$ac_ext
43851
43852fi
43853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
43854$as_echo "$gl_cv_func_ftello" >&6; }
43855  if test $gl_cv_func_ftello = no; then
43856    HAVE_FTELLO=0
43857  else
43858    if test $WINDOWS_64_BIT_OFF_T = 1; then
43859      REPLACE_FTELLO=1
43860    fi
43861    if test $gl_cv_var_stdin_large_offset = no; then
43862      REPLACE_FTELLO=1
43863    fi
43864    if test $REPLACE_FTELLO = 0; then
43865
43866      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
43867$as_echo_n "checking whether ftello works... " >&6; }
43868if ${gl_cv_func_ftello_works+:} false; then :
43869  $as_echo_n "(cached) " >&6
43870else
43871
43872                              case "$host_os" in
43873                      # Guess no on Solaris.
43874            solaris*) gl_cv_func_ftello_works="guessing no" ;;
43875                      # Guess yes on native Windows.
43876            mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
43877                      # Guess yes otherwise.
43878            *)        gl_cv_func_ftello_works="guessing yes" ;;
43879          esac
43880          if test "$cross_compiling" = yes; then :
43881  :
43882else
43883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43884/* end confdefs.h.  */
43885
43886#include <stdio.h>
43887#include <stdlib.h>
43888#include <string.h>
43889#define TESTFILE "conftest.tmp"
43890int
43891main (void)
43892{
43893  FILE *fp;
43894
43895  /* Create a file with some contents.  */
43896  fp = fopen (TESTFILE, "w");
43897  if (fp == NULL)
43898    return 70;
43899  if (fwrite ("foogarsh", 1, 8, fp) < 8)
43900    { fclose (fp); return 71; }
43901  if (fclose (fp))
43902    return 72;
43903
43904  /* The file's contents is now "foogarsh".  */
43905
43906  /* Try writing after reading to EOF.  */
43907  fp = fopen (TESTFILE, "r+");
43908  if (fp == NULL)
43909    return 73;
43910  if (fseek (fp, -1, SEEK_END))
43911    { fclose (fp); return 74; }
43912  if (!(getc (fp) == 'h'))
43913    { fclose (fp); return 1; }
43914  if (!(getc (fp) == EOF))
43915    { fclose (fp); return 2; }
43916  if (!(ftell (fp) == 8))
43917    { fclose (fp); return 3; }
43918  if (!(ftell (fp) == 8))
43919    { fclose (fp); return 4; }
43920  if (!(putc ('!', fp) == '!'))
43921    { fclose (fp); return 5; }
43922  if (!(ftell (fp) == 9))
43923    { fclose (fp); return 6; }
43924  if (!(fclose (fp) == 0))
43925    return 7;
43926  fp = fopen (TESTFILE, "r");
43927  if (fp == NULL)
43928    return 75;
43929  {
43930    char buf[10];
43931    if (!(fread (buf, 1, 10, fp) == 9))
43932      { fclose (fp); return 10; }
43933    if (!(memcmp (buf, "foogarsh!", 9) == 0))
43934      { fclose (fp); return 11; }
43935  }
43936  if (!(fclose (fp) == 0))
43937    return 12;
43938
43939  /* The file's contents is now "foogarsh!".  */
43940
43941  return 0;
43942}
43943_ACEOF
43944if ac_fn_c_try_run "$LINENO"; then :
43945  gl_cv_func_ftello_works=yes
43946else
43947  gl_cv_func_ftello_works=no
43948fi
43949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43950  conftest.$ac_objext conftest.beam conftest.$ac_ext
43951fi
43952
43953
43954fi
43955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
43956$as_echo "$gl_cv_func_ftello_works" >&6; }
43957      case "$gl_cv_func_ftello_works" in
43958        *yes) ;;
43959        *)
43960          REPLACE_FTELLO=1
43961
43962$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
43963
43964          ;;
43965      esac
43966    fi
43967  fi
43968
43969  if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
43970
43971
43972
43973
43974
43975
43976
43977
43978  ggl_LIBOBJS="$ggl_LIBOBJS ftello.$ac_objext"
43979
43980
43981      for ac_func in _ftelli64
43982do :
43983  ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
43984if test "x$ac_cv_func__ftelli64" = xyes; then :
43985  cat >>confdefs.h <<_ACEOF
43986#define HAVE__FTELLI64 1
43987_ACEOF
43988
43989fi
43990done
43991
43992
43993  fi
43994
43995
43996
43997
43998
43999          GNULIB_FTELLO=1
44000
44001
44002
44003
44004
44005$as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
44006
44007
44008
44009
44010      { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
44011$as_echo_n "checking how to do getaddrinfo, freeaddrinfo and getnameinfo... " >&6; }
44012  GETADDRINFO_LIB=
44013  gai_saved_LIBS="$LIBS"
44014
44015              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
44016$as_echo_n "checking for library containing getaddrinfo... " >&6; }
44017if ${ac_cv_search_getaddrinfo+:} false; then :
44018  $as_echo_n "(cached) " >&6
44019else
44020  ac_func_search_save_LIBS=$LIBS
44021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44022/* end confdefs.h.  */
44023
44024/* Override any GCC internal prototype to avoid an error.
44025   Use char because int might match the return type of a GCC
44026   builtin and then its argument prototype would still apply.  */
44027#ifdef __cplusplus
44028extern "C"
44029#endif
44030char getaddrinfo ();
44031int
44032main ()
44033{
44034return getaddrinfo ();
44035  ;
44036  return 0;
44037}
44038_ACEOF
44039for ac_lib in '' socket network net; do
44040  if test -z "$ac_lib"; then
44041    ac_res="none required"
44042  else
44043    ac_res=-l$ac_lib
44044    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
44045  fi
44046  if ac_fn_c_try_link "$LINENO"; then :
44047  ac_cv_search_getaddrinfo=$ac_res
44048fi
44049rm -f core conftest.err conftest.$ac_objext \
44050    conftest$ac_exeext
44051  if ${ac_cv_search_getaddrinfo+:} false; then :
44052  break
44053fi
44054done
44055if ${ac_cv_search_getaddrinfo+:} false; then :
44056
44057else
44058  ac_cv_search_getaddrinfo=no
44059fi
44060rm conftest.$ac_ext
44061LIBS=$ac_func_search_save_LIBS
44062fi
44063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
44064$as_echo "$ac_cv_search_getaddrinfo" >&6; }
44065ac_res=$ac_cv_search_getaddrinfo
44066if test "$ac_res" != no; then :
44067  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
44068  if test "$ac_cv_search_getaddrinfo" != "none required"; then
44069       GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
44070     fi
44071fi
44072
44073  LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
44074
44075  HAVE_GETADDRINFO=1
44076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
44077$as_echo_n "checking for getaddrinfo... " >&6; }
44078if ${gl_cv_func_getaddrinfo+:} false; then :
44079  $as_echo_n "(cached) " >&6
44080else
44081
44082    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44083/* end confdefs.h.  */
44084
44085#include <sys/types.h>
44086#ifdef HAVE_SYS_SOCKET_H
44087#include <sys/socket.h>
44088#endif
44089#ifdef HAVE_NETDB_H
44090#include <netdb.h>
44091#endif
44092#include <stddef.h>
44093
44094int
44095main ()
44096{
44097getaddrinfo("", "", NULL, NULL);
44098  ;
44099  return 0;
44100}
44101_ACEOF
44102if ac_fn_c_try_link "$LINENO"; then :
44103  gl_cv_func_getaddrinfo=yes
44104else
44105  gl_cv_func_getaddrinfo=no
44106fi
44107rm -f core conftest.err conftest.$ac_objext \
44108    conftest$ac_exeext conftest.$ac_ext
44109fi
44110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
44111$as_echo "$gl_cv_func_getaddrinfo" >&6; }
44112  if test $gl_cv_func_getaddrinfo = no; then
44113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
44114$as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
44115if ${gl_cv_w32_getaddrinfo+:} false; then :
44116  $as_echo_n "(cached) " >&6
44117else
44118
44119      gl_cv_w32_getaddrinfo=no
44120      am_save_LIBS="$LIBS"
44121      LIBS="$LIBS -lws2_32"
44122      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44123/* end confdefs.h.  */
44124
44125#ifdef HAVE_WS2TCPIP_H
44126#include <ws2tcpip.h>
44127#endif
44128#include <stddef.h>
44129
44130int
44131main ()
44132{
44133getaddrinfo(NULL, NULL, NULL, NULL);
44134  ;
44135  return 0;
44136}
44137_ACEOF
44138if ac_fn_c_try_link "$LINENO"; then :
44139  gl_cv_w32_getaddrinfo=yes
44140fi
44141rm -f core conftest.err conftest.$ac_objext \
44142    conftest$ac_exeext conftest.$ac_ext
44143      LIBS="$am_save_LIBS"
44144
44145fi
44146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
44147$as_echo "$gl_cv_w32_getaddrinfo" >&6; }
44148    if test "$gl_cv_w32_getaddrinfo" = "yes"; then
44149      GETADDRINFO_LIB="-lws2_32"
44150      LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
44151                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo with POSIX signature" >&5
44152$as_echo_n "checking for getaddrinfo with POSIX signature... " >&6; }
44153if ${gl_cv_func_getaddrinfo_posix_signature+:} false; then :
44154  $as_echo_n "(cached) " >&6
44155else
44156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44157/* end confdefs.h.  */
44158
44159#include <sys/types.h>
44160#ifdef HAVE_SYS_SOCKET_H
44161#include <sys/socket.h>
44162#endif
44163#ifdef HAVE_NETDB_H
44164#include <netdb.h>
44165#endif
44166#ifdef HAVE_WS2TCPIP_H
44167#include <ws2tcpip.h>
44168#endif
44169#include <stddef.h>
44170extern
44171#ifdef __cplusplus
44172"C"
44173#endif
44174int getaddrinfo (const char *, const char *, const struct addrinfo *, struct addrinfo **);
44175
44176_ACEOF
44177if ac_fn_c_try_compile "$LINENO"; then :
44178  gl_cv_func_getaddrinfo_posix_signature=yes
44179else
44180  gl_cv_func_getaddrinfo_posix_signature=no
44181fi
44182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44183
44184fi
44185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo_posix_signature" >&5
44186$as_echo "$gl_cv_func_getaddrinfo_posix_signature" >&6; }
44187      if test $gl_cv_func_getaddrinfo_posix_signature = no; then
44188        REPLACE_GETADDRINFO=1
44189      fi
44190    else
44191      HAVE_GETADDRINFO=0
44192    fi
44193  fi
44194
44195cat >>confdefs.h <<_ACEOF
44196#define HAVE_GETADDRINFO $HAVE_GETADDRINFO
44197_ACEOF
44198
44199
44200  # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
44201  # inline function declared in ws2tcpip.h, so we need to get that
44202  # header included somehow.
44203  ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
44204#include <sys/types.h>
44205#ifdef HAVE_SYS_SOCKET_H
44206#include <sys/socket.h>
44207#endif
44208#ifdef HAVE_NETDB_H
44209#include <netdb.h>
44210#endif
44211#ifdef HAVE_WS2TCPIP_H
44212#include <ws2tcpip.h>
44213#endif
44214#include <stddef.h>
44215
44216"
44217if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
44218  ac_have_decl=1
44219else
44220  ac_have_decl=0
44221fi
44222
44223cat >>confdefs.h <<_ACEOF
44224#define HAVE_DECL_GAI_STRERROR $ac_have_decl
44225_ACEOF
44226
44227  if test $ac_cv_have_decl_gai_strerror = yes; then
44228    ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" "
44229#include <sys/types.h>
44230#ifdef HAVE_SYS_SOCKET_H
44231#include <sys/socket.h>
44232#endif
44233#ifdef HAVE_NETDB_H
44234#include <netdb.h>
44235#endif
44236#ifdef HAVE_WS2TCPIP_H
44237#include <ws2tcpip.h>
44238#endif
44239#include <stddef.h>
44240
44241"
44242if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then :
44243  ac_have_decl=1
44244else
44245  ac_have_decl=0
44246fi
44247
44248cat >>confdefs.h <<_ACEOF
44249#define HAVE_DECL_GAI_STRERRORA $ac_have_decl
44250_ACEOF
44251
44252        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5
44253$as_echo_n "checking for gai_strerror with POSIX signature... " >&6; }
44254if ${gl_cv_func_gai_strerror_posix_signature+:} false; then :
44255  $as_echo_n "(cached) " >&6
44256else
44257
44258      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44259/* end confdefs.h.  */
44260
44261#include <sys/types.h>
44262#ifdef HAVE_SYS_SOCKET_H
44263#include <sys/socket.h>
44264#endif
44265#ifdef HAVE_NETDB_H
44266#include <netdb.h>
44267#endif
44268#ifdef HAVE_WS2TCPIP_H
44269#include <ws2tcpip.h>
44270#endif
44271#include <stddef.h>
44272extern
44273#ifdef __cplusplus
44274"C"
44275#endif
44276const char *gai_strerror(int);
44277_ACEOF
44278if ac_fn_c_try_compile "$LINENO"; then :
44279  gl_cv_func_gai_strerror_posix_signature=yes
44280else
44281  gl_cv_func_gai_strerror_posix_signature=no
44282fi
44283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44284fi
44285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5
44286$as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; }
44287    if test $gl_cv_func_gai_strerror_posix_signature = no; then
44288      REPLACE_GAI_STRERROR=1
44289    fi
44290  fi
44291
44292  LIBS="$gai_saved_LIBS"
44293
44294
44295
44296
44297
44298
44299
44300
44301      ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
44302#include <sys/types.h>
44303#include <sys/socket.h>
44304
44305"
44306if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
44307
44308cat >>confdefs.h <<_ACEOF
44309#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
44310_ACEOF
44311
44312
44313fi
44314
44315
44316
44317
44318  ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
44319  /* sys/types.h is not needed according to POSIX, but the
44320     sys/socket.h in i386-unknown-freebsd4.10 and
44321     powerpc-apple-darwin5.5 required it. */
44322#include <sys/types.h>
44323#ifdef HAVE_SYS_SOCKET_H
44324#include <sys/socket.h>
44325#endif
44326#ifdef HAVE_NETDB_H
44327#include <netdb.h>
44328#endif
44329#ifdef HAVE_WS2TCPIP_H
44330#include <ws2tcpip.h>
44331#endif
44332
44333"
44334if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
44335  ac_have_decl=1
44336else
44337  ac_have_decl=0
44338fi
44339
44340cat >>confdefs.h <<_ACEOF
44341#define HAVE_DECL_GETADDRINFO $ac_have_decl
44342_ACEOF
44343ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
44344  /* sys/types.h is not needed according to POSIX, but the
44345     sys/socket.h in i386-unknown-freebsd4.10 and
44346     powerpc-apple-darwin5.5 required it. */
44347#include <sys/types.h>
44348#ifdef HAVE_SYS_SOCKET_H
44349#include <sys/socket.h>
44350#endif
44351#ifdef HAVE_NETDB_H
44352#include <netdb.h>
44353#endif
44354#ifdef HAVE_WS2TCPIP_H
44355#include <ws2tcpip.h>
44356#endif
44357
44358"
44359if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
44360  ac_have_decl=1
44361else
44362  ac_have_decl=0
44363fi
44364
44365cat >>confdefs.h <<_ACEOF
44366#define HAVE_DECL_FREEADDRINFO $ac_have_decl
44367_ACEOF
44368ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
44369  /* sys/types.h is not needed according to POSIX, but the
44370     sys/socket.h in i386-unknown-freebsd4.10 and
44371     powerpc-apple-darwin5.5 required it. */
44372#include <sys/types.h>
44373#ifdef HAVE_SYS_SOCKET_H
44374#include <sys/socket.h>
44375#endif
44376#ifdef HAVE_NETDB_H
44377#include <netdb.h>
44378#endif
44379#ifdef HAVE_WS2TCPIP_H
44380#include <ws2tcpip.h>
44381#endif
44382
44383"
44384if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
44385  ac_have_decl=1
44386else
44387  ac_have_decl=0
44388fi
44389
44390cat >>confdefs.h <<_ACEOF
44391#define HAVE_DECL_GETNAMEINFO $ac_have_decl
44392_ACEOF
44393
44394  if test $ac_cv_have_decl_getaddrinfo = no; then
44395    HAVE_DECL_GETADDRINFO=0
44396  fi
44397  if test $ac_cv_have_decl_freeaddrinfo = no; then
44398    HAVE_DECL_FREEADDRINFO=0
44399  fi
44400  if test $ac_cv_have_decl_gai_strerror = no; then
44401    HAVE_DECL_GAI_STRERROR=0
44402  fi
44403  if test $ac_cv_have_decl_getnameinfo = no; then
44404    HAVE_DECL_GETNAMEINFO=0
44405  fi
44406
44407  ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
44408#include <sys/types.h>
44409#ifdef HAVE_SYS_SOCKET_H
44410#include <sys/socket.h>
44411#endif
44412#ifdef HAVE_NETDB_H
44413#include <netdb.h>
44414#endif
44415#ifdef HAVE_WS2TCPIP_H
44416#include <ws2tcpip.h>
44417#endif
44418
44419"
44420if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
44421
44422cat >>confdefs.h <<_ACEOF
44423#define HAVE_STRUCT_ADDRINFO 1
44424_ACEOF
44425
44426
44427fi
44428
44429  if test $ac_cv_type_struct_addrinfo = no; then
44430    HAVE_STRUCT_ADDRINFO=0
44431  fi
44432
44433    case " $GETADDRINFO_LIB " in
44434    *" $HOSTENT_LIB "*) ;;
44435    *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
44436  esac
44437
44438    case " $GETADDRINFO_LIB " in
44439    *" $SERVENT_LIB "*) ;;
44440    *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
44441  esac
44442
44443    case " $GETADDRINFO_LIB " in
44444    *" $INET_NTOP_LIB "*) ;;
44445    *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
44446  esac
44447
44448
44449
44450
44451  if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
44452
44453
44454
44455
44456
44457
44458
44459
44460  ggl_LIBOBJS="$ggl_LIBOBJS getaddrinfo.$ac_objext"
44461
44462  fi
44463  if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
44464
44465
44466
44467
44468
44469
44470
44471
44472  ggl_LIBOBJS="$ggl_LIBOBJS gai_strerror.$ac_objext"
44473
44474  fi
44475
44476
44477
44478
44479
44480          GNULIB_GETADDRINFO=1
44481
44482
44483
44484
44485
44486$as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h
44487
44488
44489
44490
44491
44492
44493
44494
44495
44496
44497
44498  if test $ac_cv_func_getdelim = yes; then
44499    HAVE_GETDELIM=1
44500        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
44501$as_echo_n "checking for working getdelim function... " >&6; }
44502if ${gl_cv_func_working_getdelim+:} false; then :
44503  $as_echo_n "(cached) " >&6
44504else
44505  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
44506       if test "$cross_compiling" = yes; then :
44507                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44508/* end confdefs.h.  */
44509
44510#include <features.h>
44511#ifdef __GNU_LIBRARY__
44512 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
44513  Lucky GNU user
44514 #endif
44515#endif
44516
44517_ACEOF
44518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44519  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
44520  gl_cv_func_working_getdelim="guessing yes"
44521else
44522  case "$host_os" in
44523               *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
44524               *)       gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
44525             esac
44526
44527fi
44528rm -f conftest*
44529
44530
44531else
44532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44533/* end confdefs.h.  */
44534
44535#    include <stdio.h>
44536#    include <stdlib.h>
44537#    include <string.h>
44538    int main ()
44539    {
44540      FILE *in = fopen ("./conftest.data", "r");
44541      if (!in)
44542        return 1;
44543      {
44544        /* Test result for a NULL buffer and a zero size.
44545           Based on a test program from Karl Heuer.  */
44546        char *line = NULL;
44547        size_t siz = 0;
44548        int len = getdelim (&line, &siz, '\n', in);
44549        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
44550          { free (line); fclose (in); return 2; }
44551        free (line);
44552      }
44553      {
44554        /* Test result for a NULL buffer and a non-zero size.
44555           This crashes on FreeBSD 8.0.  */
44556        char *line = NULL;
44557        size_t siz = (size_t)(~0) / 4;
44558        if (getdelim (&line, &siz, '\n', in) == -1)
44559          { fclose (in); return 3; }
44560        free (line);
44561      }
44562      fclose (in);
44563      return 0;
44564    }
44565
44566_ACEOF
44567if ac_fn_c_try_run "$LINENO"; then :
44568  gl_cv_func_working_getdelim=yes
44569else
44570  gl_cv_func_working_getdelim=no
44571fi
44572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44573  conftest.$ac_objext conftest.beam conftest.$ac_ext
44574fi
44575
44576
44577fi
44578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
44579$as_echo "$gl_cv_func_working_getdelim" >&6; }
44580    case "$gl_cv_func_working_getdelim" in
44581      *yes) ;;
44582      *) REPLACE_GETDELIM=1 ;;
44583    esac
44584  else
44585    HAVE_GETDELIM=0
44586  fi
44587
44588  if test $ac_cv_have_decl_getdelim = no; then
44589    HAVE_DECL_GETDELIM=0
44590  fi
44591
44592  if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
44593
44594
44595
44596
44597
44598
44599
44600
44601  ggl_LIBOBJS="$ggl_LIBOBJS getdelim.$ac_objext"
44602
44603
44604  for ac_func in flockfile funlockfile
44605do :
44606  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44607ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44608if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44609  cat >>confdefs.h <<_ACEOF
44610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44611_ACEOF
44612
44613fi
44614done
44615
44616  ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
44617if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
44618  ac_have_decl=1
44619else
44620  ac_have_decl=0
44621fi
44622
44623cat >>confdefs.h <<_ACEOF
44624#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
44625_ACEOF
44626
44627
44628  fi
44629
44630
44631
44632
44633
44634          GNULIB_GETDELIM=1
44635
44636
44637
44638
44639
44640$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
44641
44642
44643
44644
44645
44646
44647
44648
44649  if test $ac_cv_func_getdtablesize = yes &&
44650     test $ac_cv_have_decl_getdtablesize = yes; then
44651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
44652$as_echo_n "checking whether getdtablesize works... " >&6; }
44653if ${gl_cv_func_getdtablesize_works+:} false; then :
44654  $as_echo_n "(cached) " >&6
44655else
44656                                                   case "$host_os" in
44657         vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
44658         *)
44659                                                       if test "$cross_compiling" = yes; then :
44660  case "$host_os" in
44661                cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
44662                  gl_cv_func_getdtablesize_works="guessing no" ;;
44663                *) gl_cv_func_getdtablesize_works="guessing yes" ;;
44664              esac
44665
44666else
44667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44668/* end confdefs.h.  */
44669
44670             #include <unistd.h>
44671int
44672main ()
44673{
44674int size = getdtablesize();
44675                if (dup2 (0, getdtablesize()) != -1)
44676                  return 1;
44677                if (size != getdtablesize())
44678                  return 2;
44679
44680  ;
44681  return 0;
44682}
44683_ACEOF
44684if ac_fn_c_try_run "$LINENO"; then :
44685  gl_cv_func_getdtablesize_works=yes
44686else
44687  gl_cv_func_getdtablesize_works=no
44688fi
44689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44690  conftest.$ac_objext conftest.beam conftest.$ac_ext
44691fi
44692
44693           ;;
44694       esac
44695
44696fi
44697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
44698$as_echo "$gl_cv_func_getdtablesize_works" >&6; }
44699    case "$gl_cv_func_getdtablesize_works" in
44700      *yes | "no (limitation)") ;;
44701      *) REPLACE_GETDTABLESIZE=1 ;;
44702    esac
44703  else
44704    HAVE_GETDTABLESIZE=0
44705  fi
44706
44707  if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
44708
44709
44710
44711
44712
44713
44714
44715
44716  ggl_LIBOBJS="$ggl_LIBOBJS getdtablesize.$ac_objext"
44717
44718    :
44719  fi
44720
44721
44722
44723
44724
44725          GNULIB_GETDTABLESIZE=1
44726
44727
44728
44729
44730
44731$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
44732
44733
44734
44735
44736
44737
44738
44739
44740
44741
44742  gl_getline_needs_run_time_check=no
44743  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
44744if test "x$ac_cv_func_getline" = xyes; then :
44745                   gl_getline_needs_run_time_check=yes
44746else
44747  am_cv_func_working_getline=no
44748fi
44749
44750  if test $gl_getline_needs_run_time_check = yes; then
44751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
44752$as_echo_n "checking for working getline function... " >&6; }
44753if ${am_cv_func_working_getline+:} false; then :
44754  $as_echo_n "(cached) " >&6
44755else
44756  echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
44757       if test "$cross_compiling" = yes; then :
44758                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44759/* end confdefs.h.  */
44760
44761#include <features.h>
44762#ifdef __GNU_LIBRARY__
44763 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
44764  Lucky GNU user
44765 #endif
44766#endif
44767
44768_ACEOF
44769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44770  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
44771  am_cv_func_working_getline="guessing yes"
44772else
44773  case "$host_os" in
44774               *-musl*) am_cv_func_working_getline="guessing yes" ;;
44775               *)       am_cv_func_working_getline="$gl_cross_guess_normal" ;;
44776             esac
44777
44778fi
44779rm -f conftest*
44780
44781
44782else
44783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44784/* end confdefs.h.  */
44785
44786#    include <stdio.h>
44787#    include <stdlib.h>
44788#    include <string.h>
44789    int main ()
44790    {
44791      FILE *in = fopen ("./conftest.data", "r");
44792      if (!in)
44793        return 1;
44794      {
44795        /* Test result for a NULL buffer and a zero size.
44796           Based on a test program from Karl Heuer.  */
44797        char *line = NULL;
44798        size_t siz = 0;
44799        int len = getline (&line, &siz, in);
44800        if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
44801          { free (line); fclose (in); return 2; }
44802        free (line);
44803      }
44804      {
44805        /* Test result for a NULL buffer and a non-zero size.
44806           This crashes on FreeBSD 8.0.  */
44807        char *line = NULL;
44808        size_t siz = (size_t)(~0) / 4;
44809        if (getline (&line, &siz, in) == -1)
44810          { fclose (in); return 3; }
44811        free (line);
44812      }
44813      fclose (in);
44814      return 0;
44815    }
44816
44817_ACEOF
44818if ac_fn_c_try_run "$LINENO"; then :
44819  am_cv_func_working_getline=yes
44820else
44821  am_cv_func_working_getline=no
44822fi
44823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44824  conftest.$ac_objext conftest.beam conftest.$ac_ext
44825fi
44826
44827
44828fi
44829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
44830$as_echo "$am_cv_func_working_getline" >&6; }
44831  fi
44832
44833  if test $ac_cv_have_decl_getline = no; then
44834    HAVE_DECL_GETLINE=0
44835  fi
44836
44837  case "$am_cv_func_working_getline" in
44838    *yes) ;;
44839    *)
44840                        REPLACE_GETLINE=1
44841      ;;
44842  esac
44843
44844  if test $REPLACE_GETLINE = 1; then
44845
44846
44847
44848
44849
44850
44851
44852
44853  ggl_LIBOBJS="$ggl_LIBOBJS getline.$ac_objext"
44854
44855
44856  :
44857
44858  fi
44859
44860
44861
44862
44863
44864          GNULIB_GETLINE=1
44865
44866
44867
44868
44869
44870$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
44871
44872
44873
44874
44875  if test $HAVE_GETPASS = 0 || test $REPLACE_GETPASS = 1; then
44876
44877
44878
44879
44880
44881
44882
44883
44884  ggl_LIBOBJS="$ggl_LIBOBJS getpass.$ac_objext"
44885
44886
44887
44888
44889  ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
44890      #if HAVE_STDIO_EXT_H
44891       #include <stdio_ext.h>
44892      #endif
44893"
44894if test "x$ac_cv_have_decl___fsetlocking" = xyes; then :
44895  ac_have_decl=1
44896else
44897  ac_have_decl=0
44898fi
44899
44900cat >>confdefs.h <<_ACEOF
44901#define HAVE_DECL___FSETLOCKING $ac_have_decl
44902_ACEOF
44903
44904
44905
44906
44907
44908
44909
44910      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcgetattr" >&5
44911$as_echo_n "checking for tcgetattr... " >&6; }
44912if ${gl_cv_func_tcgetattr+:} false; then :
44913  $as_echo_n "(cached) " >&6
44914else
44915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44916/* end confdefs.h.  */
44917#include <termios.h>
44918            struct termios x;
44919
44920int
44921main ()
44922{
44923return tcgetattr(0,&x);
44924  ;
44925  return 0;
44926}
44927
44928_ACEOF
44929if ac_fn_c_try_link "$LINENO"; then :
44930  gl_cv_func_tcgetattr=yes
44931else
44932  gl_cv_func_tcgetattr=no
44933fi
44934rm -f core conftest.err conftest.$ac_objext \
44935    conftest$ac_exeext conftest.$ac_ext
44936
44937fi
44938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcgetattr" >&5
44939$as_echo "$gl_cv_func_tcgetattr" >&6; }
44940  if test $gl_cv_func_tcgetattr = yes; then
44941    HAVE_TCGETATTR=1
44942  else
44943    HAVE_TCGETATTR=0
44944  fi
44945
44946cat >>confdefs.h <<_ACEOF
44947#define HAVE_TCGETATTR $HAVE_TCGETATTR
44948_ACEOF
44949
44950
44951      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcsetattr" >&5
44952$as_echo_n "checking for tcsetattr... " >&6; }
44953if ${gl_cv_func_tcsetattr+:} false; then :
44954  $as_echo_n "(cached) " >&6
44955else
44956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44957/* end confdefs.h.  */
44958#include <termios.h>
44959            struct termios x;
44960
44961int
44962main ()
44963{
44964return tcsetattr(0,0,&x);
44965  ;
44966  return 0;
44967}
44968
44969_ACEOF
44970if ac_fn_c_try_link "$LINENO"; then :
44971  gl_cv_func_tcsetattr=yes
44972else
44973  gl_cv_func_tcsetattr=no
44974fi
44975rm -f core conftest.err conftest.$ac_objext \
44976    conftest$ac_exeext conftest.$ac_ext
44977
44978fi
44979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcsetattr" >&5
44980$as_echo "$gl_cv_func_tcsetattr" >&6; }
44981  if test $gl_cv_func_tcsetattr = yes; then
44982    HAVE_TCSETATTR=1
44983  else
44984    HAVE_TCSETATTR=0
44985  fi
44986
44987cat >>confdefs.h <<_ACEOF
44988#define HAVE_TCSETATTR $HAVE_TCSETATTR
44989_ACEOF
44990
44991
44992  fi
44993
44994
44995
44996
44997
44998          GNULIB_GETPASS=1
44999
45000
45001
45002
45003
45004$as_echo "#define GNULIB_TEST_GETPASS 1" >>confdefs.h
45005
45006
45007
45008
45009  if test "$ac_cv_header_winsock2_h" = yes; then
45010
45011
45012
45013
45014
45015
45016
45017
45018  ggl_LIBOBJS="$ggl_LIBOBJS getpeername.$ac_objext"
45019
45020  fi
45021
45022
45023
45024
45025
45026          GNULIB_GETPEERNAME=1
45027
45028
45029
45030
45031
45032$as_echo "#define GNULIB_TEST_GETPEERNAME 1" >>confdefs.h
45033
45034
45035
45036
45037
45038
45039
45040
45041
45042
45043
45044
45045
45046
45047
45048
45049
45050  gl_gettimeofday_timezone=void
45051  if test $ac_cv_func_gettimeofday != yes; then
45052    HAVE_GETTIMEOFDAY=0
45053  else
45054
45055
45056
45057
45058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
45059$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
45060if ${gl_cv_func_gettimeofday_clobber+:} false; then :
45061  $as_echo_n "(cached) " >&6
45062else
45063  if test "$cross_compiling" = yes; then :
45064  # When cross-compiling:
45065      case "$host_os" in
45066                       # Guess all is fine on glibc systems.
45067        *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
45068                       # Guess all is fine on musl systems.
45069        *-musl*)       gl_cv_func_gettimeofday_clobber="guessing no" ;;
45070                       # Guess no on native Windows.
45071        mingw*)        gl_cv_func_gettimeofday_clobber="guessing no" ;;
45072                       # If we don't know, obey --enable-cross-guesses.
45073        *)             gl_cv_func_gettimeofday_clobber="$gl_cross_guess_inverted" ;;
45074      esac
45075
45076else
45077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45078/* end confdefs.h.  */
45079#include <string.h>
45080          #include <sys/time.h>
45081          #include <time.h>
45082          #include <stdlib.h>
45083
45084int
45085main ()
45086{
45087
45088          time_t t = 0;
45089          struct tm *lt;
45090          struct tm saved_lt;
45091          struct timeval tv;
45092          lt = localtime (&t);
45093          saved_lt = *lt;
45094          gettimeofday (&tv, NULL);
45095          return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
45096
45097  ;
45098  return 0;
45099}
45100_ACEOF
45101if ac_fn_c_try_run "$LINENO"; then :
45102  gl_cv_func_gettimeofday_clobber=no
45103else
45104  gl_cv_func_gettimeofday_clobber=yes
45105fi
45106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45107  conftest.$ac_objext conftest.beam conftest.$ac_ext
45108fi
45109
45110fi
45111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
45112$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
45113
45114 case "$gl_cv_func_gettimeofday_clobber" in
45115   *yes)
45116     REPLACE_GETTIMEOFDAY=1
45117
45118$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
45119
45120
45121
45122
45123  NEED_LOCALTIME_BUFFER=1
45124  REPLACE_GMTIME=1
45125  REPLACE_LOCALTIME=1
45126
45127     ;;
45128 esac
45129
45130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
45131$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
45132if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
45133  $as_echo_n "(cached) " >&6
45134else
45135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45136/* end confdefs.h.  */
45137#include <sys/time.h>
45138              struct timeval c;
45139              int gettimeofday (struct timeval *restrict, void *restrict);
45140
45141int
45142main ()
45143{
45144/* glibc uses struct timezone * rather than the POSIX void *
45145                 if _GNU_SOURCE is defined.  However, since the only portable
45146                 use of gettimeofday uses NULL as the second parameter, and
45147                 since the glibc definition is actually more typesafe, it is
45148                 not worth wrapping this to get a compliant signature.  */
45149              int (*f) (struct timeval *restrict, void *restrict)
45150                = gettimeofday;
45151              int x = f (&c, 0);
45152              return !(x | c.tv_sec | c.tv_usec);
45153
45154  ;
45155  return 0;
45156}
45157_ACEOF
45158if ac_fn_c_try_compile "$LINENO"; then :
45159  gl_cv_func_gettimeofday_posix_signature=yes
45160else
45161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45162/* end confdefs.h.  */
45163#include <sys/time.h>
45164int gettimeofday (struct timeval *restrict, struct timezone *restrict);
45165
45166int
45167main ()
45168{
45169
45170  ;
45171  return 0;
45172}
45173_ACEOF
45174if ac_fn_c_try_compile "$LINENO"; then :
45175  gl_cv_func_gettimeofday_posix_signature=almost
45176else
45177  gl_cv_func_gettimeofday_posix_signature=no
45178fi
45179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45180fi
45181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45182fi
45183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
45184$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
45185    if test $gl_cv_func_gettimeofday_posix_signature = almost; then
45186      gl_gettimeofday_timezone='struct timezone'
45187    elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
45188      REPLACE_GETTIMEOFDAY=1
45189    fi
45190        if test $REPLACE_STRUCT_TIMEVAL = 1; then
45191      REPLACE_GETTIMEOFDAY=1
45192    fi
45193            case "$host_os" in
45194      mingw*) REPLACE_GETTIMEOFDAY=1 ;;
45195    esac
45196  fi
45197
45198cat >>confdefs.h <<_ACEOF
45199#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
45200_ACEOF
45201
45202
45203  if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
45204
45205
45206
45207
45208
45209
45210
45211
45212  ggl_LIBOBJS="$ggl_LIBOBJS gettimeofday.$ac_objext"
45213
45214    :
45215  fi
45216
45217
45218
45219
45220
45221          GNULIB_GETTIMEOFDAY=1
45222
45223
45224
45225
45226
45227$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
45228
45229
45230
45231
45232                  HOSTENT_LIB=
45233  gl_saved_libs="$LIBS"
45234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
45235$as_echo_n "checking for library containing gethostbyname... " >&6; }
45236if ${ac_cv_search_gethostbyname+:} false; then :
45237  $as_echo_n "(cached) " >&6
45238else
45239  ac_func_search_save_LIBS=$LIBS
45240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45241/* end confdefs.h.  */
45242
45243/* Override any GCC internal prototype to avoid an error.
45244   Use char because int might match the return type of a GCC
45245   builtin and then its argument prototype would still apply.  */
45246#ifdef __cplusplus
45247extern "C"
45248#endif
45249char gethostbyname ();
45250int
45251main ()
45252{
45253return gethostbyname ();
45254  ;
45255  return 0;
45256}
45257_ACEOF
45258for ac_lib in '' nsl network net; do
45259  if test -z "$ac_lib"; then
45260    ac_res="none required"
45261  else
45262    ac_res=-l$ac_lib
45263    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
45264  fi
45265  if ac_fn_c_try_link "$LINENO"; then :
45266  ac_cv_search_gethostbyname=$ac_res
45267fi
45268rm -f core conftest.err conftest.$ac_objext \
45269    conftest$ac_exeext
45270  if ${ac_cv_search_gethostbyname+:} false; then :
45271  break
45272fi
45273done
45274if ${ac_cv_search_gethostbyname+:} false; then :
45275
45276else
45277  ac_cv_search_gethostbyname=no
45278fi
45279rm conftest.$ac_ext
45280LIBS=$ac_func_search_save_LIBS
45281fi
45282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
45283$as_echo "$ac_cv_search_gethostbyname" >&6; }
45284ac_res=$ac_cv_search_gethostbyname
45285if test "$ac_res" != no; then :
45286  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45287  if test "$ac_cv_search_gethostbyname" != "none required"; then
45288       HOSTENT_LIB="$ac_cv_search_gethostbyname"
45289     fi
45290fi
45291
45292  LIBS="$gl_saved_libs"
45293  if test -z "$HOSTENT_LIB"; then
45294    for ac_func in gethostbyname
45295do :
45296  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
45297if test "x$ac_cv_func_gethostbyname" = xyes; then :
45298  cat >>confdefs.h <<_ACEOF
45299#define HAVE_GETHOSTBYNAME 1
45300_ACEOF
45301
45302else
45303
45304      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
45305$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
45306if ${gl_cv_w32_gethostbyname+:} false; then :
45307  $as_echo_n "(cached) " >&6
45308else
45309  gl_cv_w32_gethostbyname=no
45310         gl_save_LIBS="$LIBS"
45311         LIBS="$LIBS -lws2_32"
45312         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45313/* end confdefs.h.  */
45314
45315#ifdef HAVE_WINSOCK2_H
45316#include <winsock2.h>
45317#endif
45318#include <stddef.h>
45319
45320int
45321main ()
45322{
45323gethostbyname(NULL);
45324  ;
45325  return 0;
45326}
45327_ACEOF
45328if ac_fn_c_try_link "$LINENO"; then :
45329  gl_cv_w32_gethostbyname=yes
45330fi
45331rm -f core conftest.err conftest.$ac_objext \
45332    conftest$ac_exeext conftest.$ac_ext
45333         LIBS="$gl_save_LIBS"
45334
45335fi
45336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
45337$as_echo "$gl_cv_w32_gethostbyname" >&6; }
45338      if test "$gl_cv_w32_gethostbyname" = "yes"; then
45339        HOSTENT_LIB="-lws2_32"
45340      fi
45341
45342fi
45343done
45344
45345  fi
45346
45347
45348
45349
45350
45351
45352
45353
45354
45355                HAVE_INET_NTOP=1
45356  INET_NTOP_LIB=
45357
45358
45359
45360
45361  if test $ac_cv_header_sys_socket_h != yes; then
45362                    for ac_header in winsock2.h
45363do :
45364  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
45365if test "x$ac_cv_header_winsock2_h" = xyes; then :
45366  cat >>confdefs.h <<_ACEOF
45367#define HAVE_WINSOCK2_H 1
45368_ACEOF
45369
45370fi
45371
45372done
45373
45374  fi
45375  if test "$ac_cv_header_winsock2_h" = yes; then
45376    HAVE_WINSOCK2_H=1
45377    UNISTD_H_HAVE_WINSOCK2_H=1
45378    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
45379  else
45380    HAVE_WINSOCK2_H=0
45381  fi
45382
45383
45384  if test $HAVE_WINSOCK2_H = 1; then
45385                    REPLACE_INET_NTOP=1
45386    ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
45387"
45388if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
45389  ac_have_decl=1
45390else
45391  ac_have_decl=0
45392fi
45393
45394cat >>confdefs.h <<_ACEOF
45395#define HAVE_DECL_INET_NTOP $ac_have_decl
45396_ACEOF
45397
45398    if test $ac_cv_have_decl_inet_ntop = yes; then
45399      INET_NTOP_LIB="-lws2_32"
45400    else
45401      HAVE_DECL_INET_NTOP=0
45402    fi
45403  else
45404    gl_save_LIBS=$LIBS
45405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
45406$as_echo_n "checking for library containing inet_ntop... " >&6; }
45407if ${ac_cv_search_inet_ntop+:} false; then :
45408  $as_echo_n "(cached) " >&6
45409else
45410  ac_func_search_save_LIBS=$LIBS
45411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45412/* end confdefs.h.  */
45413
45414/* Override any GCC internal prototype to avoid an error.
45415   Use char because int might match the return type of a GCC
45416   builtin and then its argument prototype would still apply.  */
45417#ifdef __cplusplus
45418extern "C"
45419#endif
45420char inet_ntop ();
45421int
45422main ()
45423{
45424return inet_ntop ();
45425  ;
45426  return 0;
45427}
45428_ACEOF
45429for ac_lib in '' nsl resolv network; do
45430  if test -z "$ac_lib"; then
45431    ac_res="none required"
45432  else
45433    ac_res=-l$ac_lib
45434    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
45435  fi
45436  if ac_fn_c_try_link "$LINENO"; then :
45437  ac_cv_search_inet_ntop=$ac_res
45438fi
45439rm -f core conftest.err conftest.$ac_objext \
45440    conftest$ac_exeext
45441  if ${ac_cv_search_inet_ntop+:} false; then :
45442  break
45443fi
45444done
45445if ${ac_cv_search_inet_ntop+:} false; then :
45446
45447else
45448  ac_cv_search_inet_ntop=no
45449fi
45450rm conftest.$ac_ext
45451LIBS=$ac_func_search_save_LIBS
45452fi
45453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
45454$as_echo "$ac_cv_search_inet_ntop" >&6; }
45455ac_res=$ac_cv_search_inet_ntop
45456if test "$ac_res" != no; then :
45457  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45458
45459else
45460  for ac_func in inet_ntop
45461do :
45462  ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
45463if test "x$ac_cv_func_inet_ntop" = xyes; then :
45464  cat >>confdefs.h <<_ACEOF
45465#define HAVE_INET_NTOP 1
45466_ACEOF
45467
45468fi
45469done
45470
45471       if test $ac_cv_func_inet_ntop = no; then
45472         HAVE_INET_NTOP=0
45473       fi
45474
45475fi
45476
45477    LIBS=$gl_save_LIBS
45478
45479    if test "$ac_cv_search_inet_ntop" != "no" \
45480       && test "$ac_cv_search_inet_ntop" != "none required"; then
45481      INET_NTOP_LIB="$ac_cv_search_inet_ntop"
45482    fi
45483
45484
45485    ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
45486        #if HAVE_NETDB_H
45487        # include <netdb.h>
45488        #endif
45489
45490"
45491if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
45492  ac_have_decl=1
45493else
45494  ac_have_decl=0
45495fi
45496
45497cat >>confdefs.h <<_ACEOF
45498#define HAVE_DECL_INET_NTOP $ac_have_decl
45499_ACEOF
45500
45501    if test $ac_cv_have_decl_inet_ntop = no; then
45502      HAVE_DECL_INET_NTOP=0
45503    fi
45504  fi
45505
45506
45507  if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
45508
45509
45510
45511
45512
45513
45514
45515
45516  ggl_LIBOBJS="$ggl_LIBOBJS inet_ntop.$ac_objext"
45517
45518
45519
45520
45521  fi
45522
45523
45524
45525
45526
45527          GNULIB_INET_NTOP=1
45528
45529
45530
45531
45532
45533
45534
45535
45536
45537
45538
45539                HAVE_INET_PTON=1
45540  INET_PTON_LIB=
45541
45542
45543
45544
45545  if test $ac_cv_header_sys_socket_h != yes; then
45546                    for ac_header in winsock2.h
45547do :
45548  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
45549if test "x$ac_cv_header_winsock2_h" = xyes; then :
45550  cat >>confdefs.h <<_ACEOF
45551#define HAVE_WINSOCK2_H 1
45552_ACEOF
45553
45554fi
45555
45556done
45557
45558  fi
45559  if test "$ac_cv_header_winsock2_h" = yes; then
45560    HAVE_WINSOCK2_H=1
45561    UNISTD_H_HAVE_WINSOCK2_H=1
45562    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
45563  else
45564    HAVE_WINSOCK2_H=0
45565  fi
45566
45567
45568  if test $HAVE_WINSOCK2_H = 1; then
45569                    REPLACE_INET_PTON=1
45570    ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
45571"
45572if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
45573  ac_have_decl=1
45574else
45575  ac_have_decl=0
45576fi
45577
45578cat >>confdefs.h <<_ACEOF
45579#define HAVE_DECL_INET_PTON $ac_have_decl
45580_ACEOF
45581
45582    if test $ac_cv_have_decl_inet_pton = yes; then
45583      INET_PTON_LIB="-lws2_32"
45584    else
45585      HAVE_DECL_INET_PTON=0
45586    fi
45587  else
45588    gl_save_LIBS=$LIBS
45589    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
45590$as_echo_n "checking for library containing inet_pton... " >&6; }
45591if ${ac_cv_search_inet_pton+:} false; then :
45592  $as_echo_n "(cached) " >&6
45593else
45594  ac_func_search_save_LIBS=$LIBS
45595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45596/* end confdefs.h.  */
45597
45598/* Override any GCC internal prototype to avoid an error.
45599   Use char because int might match the return type of a GCC
45600   builtin and then its argument prototype would still apply.  */
45601#ifdef __cplusplus
45602extern "C"
45603#endif
45604char inet_pton ();
45605int
45606main ()
45607{
45608return inet_pton ();
45609  ;
45610  return 0;
45611}
45612_ACEOF
45613for ac_lib in '' nsl resolv network; do
45614  if test -z "$ac_lib"; then
45615    ac_res="none required"
45616  else
45617    ac_res=-l$ac_lib
45618    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
45619  fi
45620  if ac_fn_c_try_link "$LINENO"; then :
45621  ac_cv_search_inet_pton=$ac_res
45622fi
45623rm -f core conftest.err conftest.$ac_objext \
45624    conftest$ac_exeext
45625  if ${ac_cv_search_inet_pton+:} false; then :
45626  break
45627fi
45628done
45629if ${ac_cv_search_inet_pton+:} false; then :
45630
45631else
45632  ac_cv_search_inet_pton=no
45633fi
45634rm conftest.$ac_ext
45635LIBS=$ac_func_search_save_LIBS
45636fi
45637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
45638$as_echo "$ac_cv_search_inet_pton" >&6; }
45639ac_res=$ac_cv_search_inet_pton
45640if test "$ac_res" != no; then :
45641  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45642
45643else
45644  for ac_func in inet_pton
45645do :
45646  ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
45647if test "x$ac_cv_func_inet_pton" = xyes; then :
45648  cat >>confdefs.h <<_ACEOF
45649#define HAVE_INET_PTON 1
45650_ACEOF
45651
45652fi
45653done
45654
45655       if test $ac_cv_func_inet_pton = no; then
45656         HAVE_INET_PTON=0
45657       fi
45658
45659fi
45660
45661    LIBS=$gl_save_LIBS
45662
45663    if test "$ac_cv_search_inet_pton" != "no" \
45664       && test "$ac_cv_search_inet_pton" != "none required"; then
45665      INET_PTON_LIB="$ac_cv_search_inet_pton"
45666    fi
45667
45668
45669    ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
45670        #if HAVE_NETDB_H
45671        # include <netdb.h>
45672        #endif
45673
45674"
45675if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
45676  ac_have_decl=1
45677else
45678  ac_have_decl=0
45679fi
45680
45681cat >>confdefs.h <<_ACEOF
45682#define HAVE_DECL_INET_PTON $ac_have_decl
45683_ACEOF
45684
45685    if test $ac_cv_have_decl_inet_pton = no; then
45686      HAVE_DECL_INET_PTON=0
45687    fi
45688  fi
45689
45690
45691  if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
45692
45693
45694
45695
45696
45697
45698
45699
45700  ggl_LIBOBJS="$ggl_LIBOBJS inet_pton.$ac_objext"
45701
45702
45703
45704
45705  fi
45706
45707
45708
45709
45710
45711          GNULIB_INET_PTON=1
45712
45713
45714
45715
45716
45717
45718
45719
45720
45721  PRIPTR_PREFIX=
45722  if test -n "$STDINT_H"; then
45723        PRIPTR_PREFIX='"l"'
45724  else
45725        for glpfx in '' l ll I64; do
45726      case $glpfx in
45727        '')  gltype1='int';;
45728        l)   gltype1='long int';;
45729        ll)  gltype1='long long int';;
45730        I64) gltype1='__int64';;
45731      esac
45732      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45733/* end confdefs.h.  */
45734#include <stdint.h>
45735           extern intptr_t foo;
45736           extern $gltype1 foo;
45737int
45738main ()
45739{
45740
45741  ;
45742  return 0;
45743}
45744_ACEOF
45745if ac_fn_c_try_compile "$LINENO"; then :
45746  PRIPTR_PREFIX='"'$glpfx'"'
45747fi
45748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45749      test -n "$PRIPTR_PREFIX" && break
45750    done
45751  fi
45752
45753
45754
45755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
45756$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
45757if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
45758  $as_echo_n "(cached) " >&6
45759else
45760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45761/* end confdefs.h.  */
45762/* Work also in C++ mode.  */
45763            #define __STDC_LIMIT_MACROS 1
45764
45765            /* Work if build is not clean.  */
45766            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
45767
45768            #include <limits.h>
45769            #if HAVE_STDINT_H
45770             #include <stdint.h>
45771            #endif
45772
45773            #if defined INT32_MAX && defined INTMAX_MAX
45774             #define CONDITION (INT32_MAX < INTMAX_MAX)
45775            #else
45776             #define CONDITION (sizeof (int) < sizeof (long long int))
45777            #endif
45778            int test[CONDITION ? 1 : -1];
45779int
45780main ()
45781{
45782
45783  ;
45784  return 0;
45785}
45786_ACEOF
45787if ac_fn_c_try_compile "$LINENO"; then :
45788  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
45789else
45790  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
45791fi
45792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45793fi
45794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
45795$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
45796  if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
45797    INT32_MAX_LT_INTMAX_MAX=1;
45798  else
45799    INT32_MAX_LT_INTMAX_MAX=0;
45800  fi
45801
45802
45803  if test $APPLE_UNIVERSAL_BUILD = 0; then
45804
45805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
45806$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
45807if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
45808  $as_echo_n "(cached) " >&6
45809else
45810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45811/* end confdefs.h.  */
45812/* Work also in C++ mode.  */
45813            #define __STDC_LIMIT_MACROS 1
45814
45815            /* Work if build is not clean.  */
45816            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
45817
45818            #include <limits.h>
45819            #if HAVE_STDINT_H
45820             #include <stdint.h>
45821            #endif
45822
45823            #if defined INT64_MAX
45824             #define CONDITION (INT64_MAX == LONG_MAX)
45825            #else
45826             #define CONDITION (sizeof (long long int) == sizeof (long int))
45827            #endif
45828            int test[CONDITION ? 1 : -1];
45829int
45830main ()
45831{
45832
45833  ;
45834  return 0;
45835}
45836_ACEOF
45837if ac_fn_c_try_compile "$LINENO"; then :
45838  gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
45839else
45840  gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
45841fi
45842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45843fi
45844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
45845$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
45846  if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
45847    INT64_MAX_EQ_LONG_MAX=1;
45848  else
45849    INT64_MAX_EQ_LONG_MAX=0;
45850  fi
45851
45852
45853  else
45854    INT64_MAX_EQ_LONG_MAX=-1
45855  fi
45856
45857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
45858$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
45859if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
45860  $as_echo_n "(cached) " >&6
45861else
45862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45863/* end confdefs.h.  */
45864/* Work also in C++ mode.  */
45865            #define __STDC_LIMIT_MACROS 1
45866
45867            /* Work if build is not clean.  */
45868            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
45869
45870            #include <limits.h>
45871            #if HAVE_STDINT_H
45872             #include <stdint.h>
45873            #endif
45874
45875            #if defined UINT32_MAX && defined UINTMAX_MAX
45876             #define CONDITION (UINT32_MAX < UINTMAX_MAX)
45877            #else
45878             #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
45879            #endif
45880            int test[CONDITION ? 1 : -1];
45881int
45882main ()
45883{
45884
45885  ;
45886  return 0;
45887}
45888_ACEOF
45889if ac_fn_c_try_compile "$LINENO"; then :
45890  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
45891else
45892  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
45893fi
45894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45895fi
45896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
45897$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
45898  if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
45899    UINT32_MAX_LT_UINTMAX_MAX=1;
45900  else
45901    UINT32_MAX_LT_UINTMAX_MAX=0;
45902  fi
45903
45904
45905  if test $APPLE_UNIVERSAL_BUILD = 0; then
45906
45907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
45908$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
45909if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
45910  $as_echo_n "(cached) " >&6
45911else
45912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45913/* end confdefs.h.  */
45914/* Work also in C++ mode.  */
45915            #define __STDC_LIMIT_MACROS 1
45916
45917            /* Work if build is not clean.  */
45918            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
45919
45920            #include <limits.h>
45921            #if HAVE_STDINT_H
45922             #include <stdint.h>
45923            #endif
45924
45925            #if defined UINT64_MAX
45926             #define CONDITION (UINT64_MAX == ULONG_MAX)
45927            #else
45928             #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
45929            #endif
45930            int test[CONDITION ? 1 : -1];
45931int
45932main ()
45933{
45934
45935  ;
45936  return 0;
45937}
45938_ACEOF
45939if ac_fn_c_try_compile "$LINENO"; then :
45940  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
45941else
45942  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
45943fi
45944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45945fi
45946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
45947$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
45948  if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
45949    UINT64_MAX_EQ_ULONG_MAX=1;
45950  else
45951    UINT64_MAX_EQ_ULONG_MAX=0;
45952  fi
45953
45954
45955  else
45956    UINT64_MAX_EQ_ULONG_MAX=-1
45957  fi
45958
45959
45960
45961
45962
45963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
45964$as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
45965if ${gl_cv_c___inline+:} false; then :
45966  $as_echo_n "(cached) " >&6
45967else
45968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45969/* end confdefs.h.  */
45970typedef int foo_t;
45971           static __inline foo_t foo (void) { return 0; }
45972int
45973main ()
45974{
45975return foo ();
45976  ;
45977  return 0;
45978}
45979_ACEOF
45980if ac_fn_c_try_compile "$LINENO"; then :
45981  gl_cv_c___inline=yes
45982else
45983  gl_cv_c___inline=no
45984fi
45985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45986fi
45987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
45988$as_echo "$gl_cv_c___inline" >&6; }
45989  if test $gl_cv_c___inline = yes; then
45990
45991$as_echo "#define HAVE___INLINE 1" >>confdefs.h
45992
45993  fi
45994
45995
45996
45997  if test "$ac_cv_header_winsock2_h" = yes; then
45998
45999
46000
46001
46002
46003
46004
46005
46006  ggl_LIBOBJS="$ggl_LIBOBJS listen.$ac_objext"
46007
46008  fi
46009
46010
46011
46012
46013
46014          GNULIB_LISTEN=1
46015
46016
46017
46018
46019
46020$as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
46021
46022
46023
46024
46025
46026
46027
46028
46029
46030
46031
46032
46033  ggl_LIBOBJS="$ggl_LIBOBJS localtime-buffer.$ac_objext"
46034
46035
46036
46037
46038
46039
46040
46041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
46042$as_echo_n "checking whether lseek detects pipes... " >&6; }
46043if ${gl_cv_func_lseek_pipe+:} false; then :
46044  $as_echo_n "(cached) " >&6
46045else
46046  case "$host_os" in
46047       mingw*)
46048                                                               gl_cv_func_lseek_pipe=no
46049         ;;
46050       *)
46051         if test $cross_compiling = no; then
46052           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46053/* end confdefs.h.  */
46054
46055#include <sys/types.h> /* for off_t */
46056#include <stdio.h> /* for SEEK_CUR */
46057#if HAVE_UNISTD_H
46058# include <unistd.h>
46059#else /* on Windows with MSVC */
46060# include <io.h>
46061#endif
46062
46063int
46064main ()
46065{
46066
46067  /* Exit with success only if stdin is seekable.  */
46068  return lseek (0, (off_t)0, SEEK_CUR) < 0;
46069
46070  ;
46071  return 0;
46072}
46073_ACEOF
46074if ac_fn_c_try_link "$LINENO"; then :
46075  if test -s conftest$ac_exeext \
46076                 && ./conftest$ac_exeext < conftest.$ac_ext \
46077                 && test 1 = "`echo hi \
46078                   | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
46079                gl_cv_func_lseek_pipe=yes
46080              else
46081                gl_cv_func_lseek_pipe=no
46082              fi
46083
46084else
46085  gl_cv_func_lseek_pipe=no
46086fi
46087rm -f core conftest.err conftest.$ac_objext \
46088    conftest$ac_exeext conftest.$ac_ext
46089         else
46090           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46091/* end confdefs.h.  */
46092
46093#if defined __BEOS__
46094/* BeOS mistakenly return 0 when trying to seek on pipes.  */
46095  Choke me.
46096#endif
46097_ACEOF
46098if ac_fn_c_try_compile "$LINENO"; then :
46099  gl_cv_func_lseek_pipe=yes
46100else
46101  gl_cv_func_lseek_pipe=no
46102fi
46103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46104         fi
46105         ;;
46106     esac
46107
46108fi
46109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
46110$as_echo "$gl_cv_func_lseek_pipe" >&6; }
46111  if test $gl_cv_func_lseek_pipe = no; then
46112    REPLACE_LSEEK=1
46113
46114$as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
46115
46116  fi
46117
46118
46119  if test $WINDOWS_64_BIT_OFF_T = 1; then
46120    REPLACE_LSEEK=1
46121  fi
46122
46123  if test $REPLACE_LSEEK = 1; then
46124
46125
46126
46127
46128
46129
46130
46131
46132  ggl_LIBOBJS="$ggl_LIBOBJS lseek.$ac_objext"
46133
46134  fi
46135
46136
46137
46138
46139
46140          GNULIB_LSEEK=1
46141
46142
46143
46144
46145
46146$as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
46147
46148
46149
46150
46151
46152
46153  if test $gl_cv_func_malloc_posix = yes; then
46154
46155$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
46156
46157  else
46158    REPLACE_MALLOC=1
46159  fi
46160
46161  if test $REPLACE_MALLOC = 1; then
46162
46163
46164
46165
46166
46167
46168
46169
46170  ggl_LIBOBJS="$ggl_LIBOBJS malloc.$ac_objext"
46171
46172  fi
46173
46174
46175
46176
46177
46178          GNULIB_MALLOC_POSIX=1
46179
46180
46181
46182
46183
46184$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
46185
46186
46187
46188
46189
46190
46191
46192  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
46193
46194
46195
46196
46197
46198
46199
46200
46201  ggl_LIBOBJS="$ggl_LIBOBJS memchr.$ac_objext"
46202
46203
46204  for ac_header in bp-sym.h
46205do :
46206  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
46207if test "x$ac_cv_header_bp_sym_h" = xyes; then :
46208  cat >>confdefs.h <<_ACEOF
46209#define HAVE_BP_SYM_H 1
46210_ACEOF
46211
46212fi
46213
46214done
46215
46216
46217  fi
46218
46219
46220
46221
46222
46223          GNULIB_MEMCHR=1
46224
46225
46226
46227
46228
46229$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
46230
46231
46232
46233
46234
46235
46236
46237
46238
46239
46240
46241  REPLACE_MKTIME=0
46242  if test "$gl_cv_func_working_mktime" != yes; then
46243    REPLACE_MKTIME=1
46244
46245$as_echo "#define NEED_MKTIME_WORKING 1" >>confdefs.h
46246
46247  fi
46248  case "$host_os" in
46249    mingw*)
46250      REPLACE_MKTIME=1
46251
46252$as_echo "#define NEED_MKTIME_WINDOWS 1" >>confdefs.h
46253
46254      ;;
46255  esac
46256
46257  if test $REPLACE_MKTIME = 1; then
46258
46259
46260
46261
46262
46263
46264
46265
46266  ggl_LIBOBJS="$ggl_LIBOBJS mktime.$ac_objext"
46267
46268    :
46269  fi
46270
46271
46272
46273
46274
46275          GNULIB_MKTIME=1
46276
46277
46278
46279
46280
46281$as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
46282
46283
46284
46285
46286
46287
46288  WANT_MKTIME_INTERNAL=0
46289    ac_fn_c_check_func "$LINENO" "__mktime_internal" "ac_cv_func___mktime_internal"
46290if test "x$ac_cv_func___mktime_internal" = xyes; then :
46291
46292$as_echo "#define mktime_internal __mktime_internal" >>confdefs.h
46293
46294
46295else
46296            WANT_MKTIME_INTERNAL=1
46297
46298$as_echo "#define NEED_MKTIME_INTERNAL 1" >>confdefs.h
46299
46300
46301fi
46302
46303
46304  if test $WANT_MKTIME_INTERNAL = 1; then
46305
46306
46307
46308
46309
46310
46311
46312
46313  ggl_LIBOBJS="$ggl_LIBOBJS mktime.$ac_objext"
46314
46315    :
46316  fi
46317
46318  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
46319
46320
46321
46322
46323
46324
46325
46326
46327  ggl_LIBOBJS="$ggl_LIBOBJS msvc-inval.$ac_objext"
46328
46329  fi
46330
46331  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
46332
46333
46334
46335
46336
46337
46338
46339
46340  ggl_LIBOBJS="$ggl_LIBOBJS msvc-nothrow.$ac_objext"
46341
46342  fi
46343
46344
46345cat >>confdefs.h <<_ACEOF
46346#define GNULIB_MSVC_NOTHROW 1
46347_ACEOF
46348
46349
46350
46351
46352
46353
46354
46355
46356
46357
46358
46359
46360
46361
46362     if test $gl_cv_have_include_next = yes; then
46363       gl_cv_next_netdb_h='<'netdb.h'>'
46364     else
46365       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
46366$as_echo_n "checking absolute name of <netdb.h>... " >&6; }
46367if ${gl_cv_next_netdb_h+:} false; then :
46368  $as_echo_n "(cached) " >&6
46369else
46370
46371             if test $ac_cv_header_netdb_h = yes; then
46372
46373
46374
46375
46376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46377/* end confdefs.h.  */
46378#include <netdb.h>
46379_ACEOF
46380                case "$host_os" in
46381    aix*) gl_absname_cpp="$ac_cpp -C" ;;
46382    *)    gl_absname_cpp="$ac_cpp" ;;
46383  esac
46384
46385  case "$host_os" in
46386    mingw*)
46387                                          gl_dirsep_regex='[/\\]'
46388      ;;
46389    *)
46390      gl_dirsep_regex='\/'
46391      ;;
46392  esac
46393      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
46394  gl_header_literal_regex=`echo 'netdb.h' \
46395                           | sed -e "$gl_make_literal_regex_sed"`
46396  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
46397      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
46398      s|^/[^/]|//&|
46399      p
46400      q
46401    }'
46402
46403        gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46404  sed -n "$gl_absolute_header_sed"`
46405
46406           gl_header=$gl_cv_absolute_netdb_h
46407           gl_cv_next_netdb_h='"'$gl_header'"'
46408          else
46409               gl_cv_next_netdb_h='<'netdb.h'>'
46410             fi
46411
46412
46413fi
46414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
46415$as_echo "$gl_cv_next_netdb_h" >&6; }
46416     fi
46417     NEXT_NETDB_H=$gl_cv_next_netdb_h
46418
46419     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46420       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46421       gl_next_as_first_directive='<'netdb.h'>'
46422     else
46423       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46424       gl_next_as_first_directive=$gl_cv_next_netdb_h
46425     fi
46426     NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
46427
46428
46429
46430
46431  if test $ac_cv_header_netdb_h = yes; then
46432    HAVE_NETDB_H=1
46433  else
46434    HAVE_NETDB_H=0
46435  fi
46436
46437
46438
46439
46440
46441
46442
46443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
46444$as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
46445if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
46446  $as_echo_n "(cached) " >&6
46447else
46448
46449      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46450/* end confdefs.h.  */
46451#include <netinet/in.h>
46452int
46453main ()
46454{
46455
46456  ;
46457  return 0;
46458}
46459_ACEOF
46460if ac_fn_c_try_compile "$LINENO"; then :
46461  gl_cv_header_netinet_in_h_selfcontained=yes
46462else
46463  gl_cv_header_netinet_in_h_selfcontained=no
46464fi
46465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46466
46467fi
46468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
46469$as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
46470  if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
46471    NETINET_IN_H=''
46472  else
46473    NETINET_IN_H='netinet/in.h'
46474    for ac_header in netinet/in.h
46475do :
46476  ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
46477if test "x$ac_cv_header_netinet_in_h" = xyes; then :
46478  cat >>confdefs.h <<_ACEOF
46479#define HAVE_NETINET_IN_H 1
46480_ACEOF
46481
46482fi
46483
46484done
46485
46486
46487
46488
46489
46490
46491
46492
46493
46494
46495     if test $gl_cv_have_include_next = yes; then
46496       gl_cv_next_netinet_in_h='<'netinet/in.h'>'
46497     else
46498       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
46499$as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
46500if ${gl_cv_next_netinet_in_h+:} false; then :
46501  $as_echo_n "(cached) " >&6
46502else
46503
46504             if test $ac_cv_header_netinet_in_h = yes; then
46505
46506
46507
46508
46509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46510/* end confdefs.h.  */
46511#include <netinet/in.h>
46512_ACEOF
46513                case "$host_os" in
46514    aix*) gl_absname_cpp="$ac_cpp -C" ;;
46515    *)    gl_absname_cpp="$ac_cpp" ;;
46516  esac
46517
46518  case "$host_os" in
46519    mingw*)
46520                                          gl_dirsep_regex='[/\\]'
46521      ;;
46522    *)
46523      gl_dirsep_regex='\/'
46524      ;;
46525  esac
46526      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
46527  gl_header_literal_regex=`echo 'netinet/in.h' \
46528                           | sed -e "$gl_make_literal_regex_sed"`
46529  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
46530      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
46531      s|^/[^/]|//&|
46532      p
46533      q
46534    }'
46535
46536        gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46537  sed -n "$gl_absolute_header_sed"`
46538
46539           gl_header=$gl_cv_absolute_netinet_in_h
46540           gl_cv_next_netinet_in_h='"'$gl_header'"'
46541          else
46542               gl_cv_next_netinet_in_h='<'netinet/in.h'>'
46543             fi
46544
46545
46546fi
46547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
46548$as_echo "$gl_cv_next_netinet_in_h" >&6; }
46549     fi
46550     NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
46551
46552     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46553       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46554       gl_next_as_first_directive='<'netinet/in.h'>'
46555     else
46556       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46557       gl_next_as_first_directive=$gl_cv_next_netinet_in_h
46558     fi
46559     NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
46560
46561
46562
46563
46564    if test $ac_cv_header_netinet_in_h = yes; then
46565      HAVE_NETINET_IN_H=1
46566    else
46567      HAVE_NETINET_IN_H=0
46568    fi
46569
46570  fi
46571
46572   if test -n "$NETINET_IN_H"; then
46573  GL_GENERATE_NETINET_IN_H_TRUE=
46574  GL_GENERATE_NETINET_IN_H_FALSE='#'
46575else
46576  GL_GENERATE_NETINET_IN_H_TRUE='#'
46577  GL_GENERATE_NETINET_IN_H_FALSE=
46578fi
46579
46580
46581
46582
46583
46584
46585 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
46586
46587
46588
46589
46590
46591
46592
46593$as_echo "#define my_strftime nstrftime" >>confdefs.h
46594
46595
46596
46597
46598
46599  case "$host_os" in
46600    mingw* | pw*)
46601      REPLACE_OPEN=1
46602      ;;
46603    *)
46604
46605      if test "$gl_cv_macro_O_CLOEXEC" != yes; then
46606        REPLACE_OPEN=1
46607      fi
46608
46609
46610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
46611$as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
46612if ${gl_cv_func_open_slash+:} false; then :
46613  $as_echo_n "(cached) " >&6
46614else
46615  # Assume that if we have lstat, we can also check symlinks.
46616     if test $ac_cv_func_lstat = yes; then
46617       touch conftest.tmp
46618       ln -s conftest.tmp conftest.lnk
46619     fi
46620     if test "$cross_compiling" = yes; then :
46621
46622        case "$host_os" in
46623          freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
46624            gl_cv_func_open_slash="guessing no" ;;
46625          *)
46626            gl_cv_func_open_slash="guessing yes" ;;
46627        esac
46628
46629else
46630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46631/* end confdefs.h.  */
46632
46633#include <fcntl.h>
46634#if HAVE_UNISTD_H
46635# include <unistd.h>
46636#endif
46637int main ()
46638{
46639  int result = 0;
46640#if HAVE_LSTAT
46641  if (open ("conftest.lnk/", O_RDONLY) != -1)
46642    result |= 1;
46643#endif
46644  if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
46645    result |= 2;
46646  return result;
46647}
46648_ACEOF
46649if ac_fn_c_try_run "$LINENO"; then :
46650  gl_cv_func_open_slash=yes
46651else
46652  gl_cv_func_open_slash=no
46653fi
46654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46655  conftest.$ac_objext conftest.beam conftest.$ac_ext
46656fi
46657
46658     rm -f conftest.sl conftest.tmp conftest.lnk
46659
46660fi
46661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
46662$as_echo "$gl_cv_func_open_slash" >&6; }
46663  case "$gl_cv_func_open_slash" in
46664    *no)
46665
46666$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
46667
46668      ;;
46669  esac
46670
46671      case "$gl_cv_func_open_slash" in
46672        *no)
46673          REPLACE_OPEN=1
46674          ;;
46675      esac
46676      ;;
46677  esac
46678
46679
46680
46681  if test $REPLACE_OPEN = 1; then
46682
46683
46684
46685
46686
46687
46688
46689
46690  ggl_LIBOBJS="$ggl_LIBOBJS open.$ac_objext"
46691
46692
46693
46694  :
46695
46696  fi
46697
46698
46699
46700
46701
46702          GNULIB_OPEN=1
46703
46704
46705
46706
46707
46708$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
46709
46710
46711
46712
46713
46714  for ac_prog in bison
46715do
46716  # Extract the first word of "$ac_prog", so it can be a program name with args.
46717set dummy $ac_prog; ac_word=$2
46718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46719$as_echo_n "checking for $ac_word... " >&6; }
46720if ${ac_cv_prog_PARSE_DATETIME_BISON+:} false; then :
46721  $as_echo_n "(cached) " >&6
46722else
46723  if test -n "$PARSE_DATETIME_BISON"; then
46724  ac_cv_prog_PARSE_DATETIME_BISON="$PARSE_DATETIME_BISON" # Let the user override the test.
46725else
46726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46727for as_dir in $PATH
46728do
46729  IFS=$as_save_IFS
46730  test -z "$as_dir" && as_dir=.
46731    for ac_exec_ext in '' $ac_executable_extensions; do
46732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46733    ac_cv_prog_PARSE_DATETIME_BISON="$ac_prog"
46734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46735    break 2
46736  fi
46737done
46738  done
46739IFS=$as_save_IFS
46740
46741fi
46742fi
46743PARSE_DATETIME_BISON=$ac_cv_prog_PARSE_DATETIME_BISON
46744if test -n "$PARSE_DATETIME_BISON"; then
46745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PARSE_DATETIME_BISON" >&5
46746$as_echo "$PARSE_DATETIME_BISON" >&6; }
46747else
46748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46749$as_echo "no" >&6; }
46750fi
46751
46752
46753  test -n "$PARSE_DATETIME_BISON" && break
46754done
46755
46756  if test -z "$PARSE_DATETIME_BISON"; then
46757    ac_verc_fail=yes
46758  else
46759    cat >conftest.y <<_ACEOF
46760%require "2.4"
46761%%
46762exp:
46763_ACEOF
46764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison 2.4 or newer" >&5
46765$as_echo_n "checking for bison 2.4 or newer... " >&6; }
46766    ac_prog_version=`$PARSE_DATETIME_BISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
46767    : ${ac_prog_version:='v. ?.??'}
46768    if $PARSE_DATETIME_BISON conftest.y -o conftest.c 2>/dev/null; then
46769      ac_prog_version="$ac_prog_version, ok"
46770      ac_verc_fail=no
46771    else
46772      ac_prog_version="$ac_prog_version, bad"
46773      ac_verc_fail=yes
46774    fi
46775    rm -f conftest.y conftest.c
46776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
46777$as_echo "$ac_prog_version" >&6; }
46778  fi
46779  if test $ac_verc_fail = yes; then
46780    PARSE_DATETIME_BISON=:
46781  fi
46782
46783
46784
46785
46786
46787
46788
46789
46790
46791  ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
46792#include <$ac_cv_struct_tm>
46793
46794"
46795if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
46796
46797cat >>confdefs.h <<_ACEOF
46798#define HAVE_STRUCT_TM_TM_ZONE 1
46799_ACEOF
46800
46801
46802fi
46803
46804if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
46805
46806$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
46807
46808else
46809  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
46810"
46811if test "x$ac_cv_have_decl_tzname" = xyes; then :
46812  ac_have_decl=1
46813else
46814  ac_have_decl=0
46815fi
46816
46817cat >>confdefs.h <<_ACEOF
46818#define HAVE_DECL_TZNAME $ac_have_decl
46819_ACEOF
46820
46821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
46822$as_echo_n "checking for tzname... " >&6; }
46823if ${ac_cv_var_tzname+:} false; then :
46824  $as_echo_n "(cached) " >&6
46825else
46826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46827/* end confdefs.h.  */
46828#include <time.h>
46829#if !HAVE_DECL_TZNAME
46830extern char *tzname[];
46831#endif
46832
46833int
46834main ()
46835{
46836return tzname[0][0];
46837  ;
46838  return 0;
46839}
46840_ACEOF
46841if ac_fn_c_try_link "$LINENO"; then :
46842  ac_cv_var_tzname=yes
46843else
46844  ac_cv_var_tzname=no
46845fi
46846rm -f core conftest.err conftest.$ac_objext \
46847    conftest$ac_exeext conftest.$ac_ext
46848fi
46849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
46850$as_echo "$ac_cv_var_tzname" >&6; }
46851  if test $ac_cv_var_tzname = yes; then
46852
46853$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
46854
46855  fi
46856fi
46857
46858
46859
46860
46861
46862
46863
46864  ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
46865"
46866if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
46867  ac_have_decl=1
46868else
46869  ac_have_decl=0
46870fi
46871
46872cat >>confdefs.h <<_ACEOF
46873#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
46874_ACEOF
46875
46876  ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
46877"
46878if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
46879  ac_have_decl=1
46880else
46881  ac_have_decl=0
46882fi
46883
46884cat >>confdefs.h <<_ACEOF
46885#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
46886_ACEOF
46887
46888  :
46889
46890
46891
46892  if test $gl_cv_func_malloc_posix = yes; then
46893
46894$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
46895
46896  else
46897    REPLACE_REALLOC=1
46898  fi
46899
46900  if test $REPLACE_REALLOC = 1; then
46901
46902
46903
46904
46905
46906
46907
46908
46909  ggl_LIBOBJS="$ggl_LIBOBJS realloc.$ac_objext"
46910
46911  fi
46912
46913
46914
46915
46916
46917          GNULIB_REALLOC_POSIX=1
46918
46919
46920
46921
46922
46923$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
46924
46925
46926
46927
46928  if test "$ac_cv_header_winsock2_h" = yes; then
46929
46930
46931
46932
46933
46934
46935
46936
46937  ggl_LIBOBJS="$ggl_LIBOBJS recv.$ac_objext"
46938
46939  fi
46940
46941
46942
46943
46944
46945          GNULIB_RECV=1
46946
46947
46948
46949
46950
46951$as_echo "#define GNULIB_TEST_RECV 1" >>confdefs.h
46952
46953
46954
46955
46956  if test "$ac_cv_header_winsock2_h" = yes; then
46957
46958
46959
46960
46961
46962
46963
46964
46965  ggl_LIBOBJS="$ggl_LIBOBJS recvfrom.$ac_objext"
46966
46967  fi
46968
46969
46970
46971
46972
46973          GNULIB_RECVFROM=1
46974
46975
46976
46977
46978
46979$as_echo "#define GNULIB_TEST_RECVFROM 1" >>confdefs.h
46980
46981
46982
46983
46984
46985
46986
46987  if test "$ac_cv_header_winsock2_h" = yes; then
46988    REPLACE_SELECT=1
46989  else
46990
46991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
46992$as_echo_n "checking whether select supports a 0 argument... " >&6; }
46993if ${gl_cv_func_select_supports0+:} false; then :
46994  $as_echo_n "(cached) " >&6
46995else
46996
46997        if test "$cross_compiling" = yes; then :
46998
46999           case "$host_os" in
47000                       # Guess no on Interix.
47001             interix*) gl_cv_func_select_supports0="guessing no";;
47002                       # Guess yes otherwise.
47003             *)        gl_cv_func_select_supports0="guessing yes";;
47004           esac
47005
47006else
47007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47008/* end confdefs.h.  */
47009
47010#include <sys/types.h>
47011#include <sys/time.h>
47012#if HAVE_SYS_SELECT_H
47013#include <sys/select.h>
47014#endif
47015int main ()
47016{
47017  struct timeval timeout;
47018  timeout.tv_sec = 0;
47019  timeout.tv_usec = 5;
47020  return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
47021}
47022_ACEOF
47023if ac_fn_c_try_run "$LINENO"; then :
47024  gl_cv_func_select_supports0=yes
47025else
47026  gl_cv_func_select_supports0=no
47027fi
47028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47029  conftest.$ac_objext conftest.beam conftest.$ac_ext
47030fi
47031
47032
47033fi
47034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
47035$as_echo "$gl_cv_func_select_supports0" >&6; }
47036    case "$gl_cv_func_select_supports0" in
47037      *yes) ;;
47038      *) REPLACE_SELECT=1 ;;
47039    esac
47040
47041        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
47042$as_echo_n "checking whether select detects invalid fds... " >&6; }
47043if ${gl_cv_func_select_detects_ebadf+:} false; then :
47044  $as_echo_n "(cached) " >&6
47045else
47046
47047        if test "$cross_compiling" = yes; then :
47048
47049           case "$host_os" in
47050                             # Guess yes on Linux systems.
47051            linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
47052                             # Guess yes on glibc systems.
47053            *-gnu* | gnu*)   gl_cv_func_select_detects_ebadf="guessing yes" ;;
47054                             # If we don't know, obey --enable-cross-guesses.
47055            *)               gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;;
47056           esac
47057
47058else
47059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47060/* end confdefs.h.  */
47061
47062#include <sys/types.h>
47063#include <sys/time.h>
47064#if HAVE_SYS_SELECT_H
47065# include <sys/select.h>
47066#endif
47067#include <unistd.h>
47068#include <errno.h>
47069
47070int
47071main ()
47072{
47073
47074  fd_set set;
47075  dup2(0, 16);
47076  FD_ZERO(&set);
47077  FD_SET(16, &set);
47078  close(16);
47079  struct timeval timeout;
47080  timeout.tv_sec = 0;
47081  timeout.tv_usec = 5;
47082  return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
47083
47084  ;
47085  return 0;
47086}
47087_ACEOF
47088if ac_fn_c_try_run "$LINENO"; then :
47089  gl_cv_func_select_detects_ebadf=yes
47090else
47091  gl_cv_func_select_detects_ebadf=no
47092fi
47093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47094  conftest.$ac_objext conftest.beam conftest.$ac_ext
47095fi
47096
47097
47098fi
47099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
47100$as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
47101    case $gl_cv_func_select_detects_ebadf in
47102      *yes) ;;
47103      *) REPLACE_SELECT=1 ;;
47104    esac
47105  fi
47106
47107    LIB_SELECT="$LIBSOCKET"
47108  if test $REPLACE_SELECT = 1; then
47109    case "$host_os" in
47110      mingw*)
47111                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47112/* end confdefs.h.  */
47113
47114#define WIN32_LEAN_AND_MEAN
47115#include <windows.h>
47116int
47117main ()
47118{
47119  MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
47120  return 0;
47121}
47122_ACEOF
47123if ac_fn_c_try_link "$LINENO"; then :
47124
47125else
47126  LIB_SELECT="$LIB_SELECT -luser32"
47127fi
47128rm -f core conftest.err conftest.$ac_objext \
47129    conftest$ac_exeext conftest.$ac_ext
47130        ;;
47131    esac
47132  fi
47133
47134
47135  if test $REPLACE_SELECT = 1; then
47136
47137
47138
47139
47140
47141
47142
47143
47144  ggl_LIBOBJS="$ggl_LIBOBJS select.$ac_objext"
47145
47146  fi
47147
47148
47149
47150
47151
47152          GNULIB_SELECT=1
47153
47154
47155
47156
47157
47158$as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
47159
47160
47161
47162
47163  if test "$ac_cv_header_winsock2_h" = yes; then
47164
47165
47166
47167
47168
47169
47170
47171
47172  ggl_LIBOBJS="$ggl_LIBOBJS send.$ac_objext"
47173
47174  fi
47175
47176
47177
47178
47179
47180          GNULIB_SEND=1
47181
47182
47183
47184
47185
47186$as_echo "#define GNULIB_TEST_SEND 1" >>confdefs.h
47187
47188
47189
47190
47191  if test "$ac_cv_header_winsock2_h" = yes; then
47192
47193
47194
47195
47196
47197
47198
47199
47200  ggl_LIBOBJS="$ggl_LIBOBJS sendto.$ac_objext"
47201
47202  fi
47203
47204
47205
47206
47207
47208          GNULIB_SENDTO=1
47209
47210
47211
47212
47213
47214$as_echo "#define GNULIB_TEST_SENDTO 1" >>confdefs.h
47215
47216
47217
47218
47219                      SERVENT_LIB=
47220  gl_saved_libs="$LIBS"
47221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
47222$as_echo_n "checking for library containing getservbyname... " >&6; }
47223if ${ac_cv_search_getservbyname+:} false; then :
47224  $as_echo_n "(cached) " >&6
47225else
47226  ac_func_search_save_LIBS=$LIBS
47227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47228/* end confdefs.h.  */
47229
47230/* Override any GCC internal prototype to avoid an error.
47231   Use char because int might match the return type of a GCC
47232   builtin and then its argument prototype would still apply.  */
47233#ifdef __cplusplus
47234extern "C"
47235#endif
47236char getservbyname ();
47237int
47238main ()
47239{
47240return getservbyname ();
47241  ;
47242  return 0;
47243}
47244_ACEOF
47245for ac_lib in '' socket network net; do
47246  if test -z "$ac_lib"; then
47247    ac_res="none required"
47248  else
47249    ac_res=-l$ac_lib
47250    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
47251  fi
47252  if ac_fn_c_try_link "$LINENO"; then :
47253  ac_cv_search_getservbyname=$ac_res
47254fi
47255rm -f core conftest.err conftest.$ac_objext \
47256    conftest$ac_exeext
47257  if ${ac_cv_search_getservbyname+:} false; then :
47258  break
47259fi
47260done
47261if ${ac_cv_search_getservbyname+:} false; then :
47262
47263else
47264  ac_cv_search_getservbyname=no
47265fi
47266rm conftest.$ac_ext
47267LIBS=$ac_func_search_save_LIBS
47268fi
47269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
47270$as_echo "$ac_cv_search_getservbyname" >&6; }
47271ac_res=$ac_cv_search_getservbyname
47272if test "$ac_res" != no; then :
47273  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47274  if test "$ac_cv_search_getservbyname" != "none required"; then
47275       SERVENT_LIB="$ac_cv_search_getservbyname"
47276     fi
47277fi
47278
47279  LIBS="$gl_saved_libs"
47280  if test -z "$SERVENT_LIB"; then
47281    for ac_func in getservbyname
47282do :
47283  ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
47284if test "x$ac_cv_func_getservbyname" = xyes; then :
47285  cat >>confdefs.h <<_ACEOF
47286#define HAVE_GETSERVBYNAME 1
47287_ACEOF
47288
47289else
47290
47291      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
47292$as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
47293if ${gl_cv_w32_getservbyname+:} false; then :
47294  $as_echo_n "(cached) " >&6
47295else
47296  gl_cv_w32_getservbyname=no
47297         gl_save_LIBS="$LIBS"
47298         LIBS="$LIBS -lws2_32"
47299         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47300/* end confdefs.h.  */
47301
47302#ifdef HAVE_WINSOCK2_H
47303#include <winsock2.h>
47304#endif
47305#include <stddef.h>
47306
47307int
47308main ()
47309{
47310getservbyname(NULL,NULL);
47311  ;
47312  return 0;
47313}
47314_ACEOF
47315if ac_fn_c_try_link "$LINENO"; then :
47316  gl_cv_w32_getservbyname=yes
47317fi
47318rm -f core conftest.err conftest.$ac_objext \
47319    conftest$ac_exeext conftest.$ac_ext
47320         LIBS="$gl_save_LIBS"
47321
47322fi
47323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
47324$as_echo "$gl_cv_w32_getservbyname" >&6; }
47325      if test "$gl_cv_w32_getservbyname" = "yes"; then
47326        SERVENT_LIB="-lws2_32"
47327      fi
47328
47329fi
47330done
47331
47332  fi
47333
47334
47335
47336
47337     if test $ac_cv_func_setenv = no; then
47338    HAVE_SETENV=0
47339  else
47340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
47341$as_echo_n "checking whether setenv validates arguments... " >&6; }
47342if ${gl_cv_func_setenv_works+:} false; then :
47343  $as_echo_n "(cached) " >&6
47344else
47345  if test "$cross_compiling" = yes; then :
47346  case "$host_os" in
47347                        # Guess yes on glibc systems.
47348         *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
47349                        # Guess yes on musl systems.
47350         *-musl*)       gl_cv_func_setenv_works="guessing yes" ;;
47351                        # If we don't know, obey --enable-cross-guesses.
47352         *)             gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
47353       esac
47354
47355else
47356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47357/* end confdefs.h.  */
47358
47359       #include <stdlib.h>
47360       #include <errno.h>
47361       #include <string.h>
47362
47363int
47364main ()
47365{
47366
47367       int result = 0;
47368       {
47369         if (setenv ("", "", 0) != -1)
47370           result |= 1;
47371         else if (errno != EINVAL)
47372           result |= 2;
47373       }
47374       {
47375         if (setenv ("a", "=", 1) != 0)
47376           result |= 4;
47377         else if (strcmp (getenv ("a"), "=") != 0)
47378           result |= 8;
47379       }
47380       return result;
47381
47382  ;
47383  return 0;
47384}
47385_ACEOF
47386if ac_fn_c_try_run "$LINENO"; then :
47387  gl_cv_func_setenv_works=yes
47388else
47389  gl_cv_func_setenv_works=no
47390fi
47391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47392  conftest.$ac_objext conftest.beam conftest.$ac_ext
47393fi
47394
47395fi
47396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
47397$as_echo "$gl_cv_func_setenv_works" >&6; }
47398    case "$gl_cv_func_setenv_works" in
47399      *yes) ;;
47400      *)
47401        REPLACE_SETENV=1
47402        ;;
47403    esac
47404  fi
47405
47406  if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
47407
47408
47409
47410
47411
47412
47413
47414
47415  ggl_LIBOBJS="$ggl_LIBOBJS setenv.$ac_objext"
47416
47417  fi
47418
47419
47420
47421
47422
47423          GNULIB_SETENV=1
47424
47425
47426
47427
47428
47429$as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
47430
47431
47432
47433
47434  if test "$ac_cv_header_winsock2_h" = yes; then
47435
47436
47437
47438
47439
47440
47441
47442
47443  ggl_LIBOBJS="$ggl_LIBOBJS setsockopt.$ac_objext"
47444
47445  fi
47446
47447
47448
47449
47450
47451          GNULIB_SETSOCKOPT=1
47452
47453
47454
47455
47456
47457$as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
47458
47459
47460
47461
47462  if test "$ac_cv_header_winsock2_h" = yes; then
47463
47464
47465
47466
47467
47468
47469
47470
47471  ggl_LIBOBJS="$ggl_LIBOBJS shutdown.$ac_objext"
47472
47473  fi
47474
47475
47476
47477
47478
47479          GNULIB_SHUTDOWN=1
47480
47481
47482
47483
47484
47485$as_echo "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h
47486
47487
47488
47489
47490
47491
47492
47493
47494
47495
47496
47497
47498
47499
47500     if test $gl_cv_have_include_next = yes; then
47501       gl_cv_next_signal_h='<'signal.h'>'
47502     else
47503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
47504$as_echo_n "checking absolute name of <signal.h>... " >&6; }
47505if ${gl_cv_next_signal_h+:} false; then :
47506  $as_echo_n "(cached) " >&6
47507else
47508
47509
47510
47511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47512/* end confdefs.h.  */
47513#include <signal.h>
47514_ACEOF
47515                case "$host_os" in
47516    aix*) gl_absname_cpp="$ac_cpp -C" ;;
47517    *)    gl_absname_cpp="$ac_cpp" ;;
47518  esac
47519
47520  case "$host_os" in
47521    mingw*)
47522                                          gl_dirsep_regex='[/\\]'
47523      ;;
47524    *)
47525      gl_dirsep_regex='\/'
47526      ;;
47527  esac
47528      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
47529  gl_header_literal_regex=`echo 'signal.h' \
47530                           | sed -e "$gl_make_literal_regex_sed"`
47531  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
47532      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
47533      s|^/[^/]|//&|
47534      p
47535      q
47536    }'
47537
47538        gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47539  sed -n "$gl_absolute_header_sed"`
47540
47541           gl_header=$gl_cv_absolute_signal_h
47542           gl_cv_next_signal_h='"'$gl_header'"'
47543
47544
47545fi
47546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
47547$as_echo "$gl_cv_next_signal_h" >&6; }
47548     fi
47549     NEXT_SIGNAL_H=$gl_cv_next_signal_h
47550
47551     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47552       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47553       gl_next_as_first_directive='<'signal.h'>'
47554     else
47555       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47556       gl_next_as_first_directive=$gl_cv_next_signal_h
47557     fi
47558     NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
47559
47560
47561
47562
47563
47564# AIX declares sig_atomic_t to already include volatile, and C89 compilers
47565# then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
47566  ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
47567#include <signal.h>
47568
47569"
47570if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
47571
47572else
47573  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
47574fi
47575
47576
47577
47578
47579
47580
47581
47582  ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
47583#include <signal.h>
47584
47585"
47586if test "x$ac_cv_type_sighandler_t" = xyes; then :
47587
47588else
47589  HAVE_SIGHANDLER_T=0
47590fi
47591
47592
47593
47594
47595
47596
47597
47598
47599
47600  for ac_header in stdint.h
47601do :
47602  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
47603if test "x$ac_cv_header_stdint_h" = xyes; then :
47604  cat >>confdefs.h <<_ACEOF
47605#define HAVE_STDINT_H 1
47606_ACEOF
47607
47608fi
47609
47610done
47611
47612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
47613$as_echo_n "checking for SIZE_MAX... " >&6; }
47614if ${gl_cv_size_max+:} false; then :
47615  $as_echo_n "(cached) " >&6
47616else
47617
47618    gl_cv_size_max=
47619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47620/* end confdefs.h.  */
47621
47622#include <limits.h>
47623#if HAVE_STDINT_H
47624#include <stdint.h>
47625#endif
47626#ifdef SIZE_MAX
47627Found it
47628#endif
47629
47630_ACEOF
47631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47632  $EGREP "Found it" >/dev/null 2>&1; then :
47633  gl_cv_size_max=yes
47634fi
47635rm -f conftest*
47636
47637    if test -z "$gl_cv_size_max"; then
47638                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
47639#include <limits.h>"; then :
47640
47641else
47642  size_t_bits_minus_1=
47643fi
47644
47645      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
47646
47647else
47648  fits_in_uint=
47649fi
47650
47651      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
47652        if test $fits_in_uint = 1; then
47653                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47654/* end confdefs.h.  */
47655#include <stddef.h>
47656                 extern size_t foo;
47657                 extern unsigned long foo;
47658
47659int
47660main ()
47661{
47662
47663  ;
47664  return 0;
47665}
47666_ACEOF
47667if ac_fn_c_try_compile "$LINENO"; then :
47668  fits_in_uint=0
47669fi
47670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47671        fi
47672                                if test $fits_in_uint = 1; then
47673          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
47674        else
47675          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
47676        fi
47677      else
47678                gl_cv_size_max='((size_t)~(size_t)0)'
47679      fi
47680    fi
47681
47682fi
47683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
47684$as_echo "$gl_cv_size_max" >&6; }
47685  if test "$gl_cv_size_max" != yes; then
47686
47687cat >>confdefs.h <<_ACEOF
47688#define SIZE_MAX $gl_cv_size_max
47689_ACEOF
47690
47691  fi
47692
47693
47694
47695
47696  gl_cv_func_snprintf_usable=no
47697  for ac_func in snprintf
47698do :
47699  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
47700if test "x$ac_cv_func_snprintf" = xyes; then :
47701  cat >>confdefs.h <<_ACEOF
47702#define HAVE_SNPRINTF 1
47703_ACEOF
47704
47705fi
47706done
47707
47708  if test $ac_cv_func_snprintf = yes; then
47709
47710
47711
47712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
47713$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
47714if ${gl_cv_func_snprintf_size1+:} false; then :
47715  $as_echo_n "(cached) " >&6
47716else
47717
47718      if test "$cross_compiling" = yes; then :
47719  case "$host_os" in
47720                            # Guess yes on Android.
47721           linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
47722                            # Guess yes on native Windows.
47723           mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
47724           *)               gl_cv_func_snprintf_size1="guessing yes" ;;
47725         esac
47726
47727else
47728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47729/* end confdefs.h.  */
47730
47731#include <stdio.h>
47732#if HAVE_SNPRINTF
47733# define my_snprintf snprintf
47734#else
47735# include <stdarg.h>
47736static int my_snprintf (char *buf, int size, const char *format, ...)
47737{
47738  va_list args;
47739  int ret;
47740  va_start (args, format);
47741  ret = vsnprintf (buf, size, format, args);
47742  va_end (args);
47743  return ret;
47744}
47745#endif
47746int main()
47747{
47748  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
47749  my_snprintf (buf, 1, "%d", 12345);
47750  return buf[1] != 'E';
47751}
47752_ACEOF
47753if ac_fn_c_try_run "$LINENO"; then :
47754  gl_cv_func_snprintf_size1=yes
47755else
47756  gl_cv_func_snprintf_size1=no
47757fi
47758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47759  conftest.$ac_objext conftest.beam conftest.$ac_ext
47760fi
47761
47762
47763fi
47764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
47765$as_echo "$gl_cv_func_snprintf_size1" >&6; }
47766
47767    case "$gl_cv_func_snprintf_size1" in
47768      *yes)
47769
47770        case "$gl_cv_func_snprintf_retval_c99" in
47771          *yes)
47772
47773
47774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
47775$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
47776if ${gl_cv_func_printf_positions+:} false; then :
47777  $as_echo_n "(cached) " >&6
47778else
47779
47780      if test "$cross_compiling" = yes; then :
47781
47782         case "$host_os" in
47783           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
47784                            gl_cv_func_printf_positions="guessing no";;
47785           beos*)           gl_cv_func_printf_positions="guessing no";;
47786                            # Guess yes on Android.
47787           linux*-android*) gl_cv_func_printf_positions="guessing yes";;
47788                            # Guess no on native Windows.
47789           mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
47790           *)               gl_cv_func_printf_positions="guessing yes";;
47791         esac
47792
47793else
47794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47795/* end confdefs.h.  */
47796
47797#include <stdio.h>
47798#include <string.h>
47799/* The string "%2$d %1$d", with dollar characters protected from the shell's
47800   dollar expansion (possibly an autoconf bug).  */
47801static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
47802static char buf[100];
47803int main ()
47804{
47805  sprintf (buf, format, 33, 55);
47806  return (strcmp (buf, "55 33") != 0);
47807}
47808_ACEOF
47809if ac_fn_c_try_run "$LINENO"; then :
47810  gl_cv_func_printf_positions=yes
47811else
47812  gl_cv_func_printf_positions=no
47813fi
47814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47815  conftest.$ac_objext conftest.beam conftest.$ac_ext
47816fi
47817
47818
47819fi
47820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
47821$as_echo "$gl_cv_func_printf_positions" >&6; }
47822
47823            case "$gl_cv_func_printf_positions" in
47824              *yes)
47825                gl_cv_func_snprintf_usable=yes
47826                ;;
47827            esac
47828            ;;
47829        esac
47830        ;;
47831    esac
47832  fi
47833  if test $gl_cv_func_snprintf_usable = no; then
47834
47835
47836
47837
47838
47839
47840
47841
47842
47843
47844  ggl_LIBOBJS="$ggl_LIBOBJS snprintf.$ac_objext"
47845
47846  if test $ac_cv_func_snprintf = yes; then
47847    REPLACE_SNPRINTF=1
47848  else
47849
47850    if test $ac_cv_have_decl_snprintf = yes; then
47851                        REPLACE_SNPRINTF=1
47852    fi
47853  fi
47854  :
47855
47856  fi
47857
47858  if test $ac_cv_have_decl_snprintf = no; then
47859    HAVE_DECL_SNPRINTF=0
47860  fi
47861
47862
47863
47864
47865
47866
47867          GNULIB_SNPRINTF=1
47868
47869
47870
47871
47872
47873$as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
47874
47875
47876
47877
47878
47879cat >>confdefs.h <<_ACEOF
47880#define GNULIB_SNPRINTF 1
47881_ACEOF
47882
47883
47884
47885  if test "$ac_cv_header_winsock2_h" = yes; then
47886
47887
47888
47889
47890
47891
47892
47893
47894  ggl_LIBOBJS="$ggl_LIBOBJS socket.$ac_objext"
47895
47896  fi
47897  # When this module is used, sockets may actually occur as file descriptors,
47898  # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
47899
47900
47901
47902  if test "$ac_cv_header_winsock2_h" = yes; then
47903    UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
47904    SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
47905  fi
47906
47907
47908
47909
47910
47911          GNULIB_SOCKET=1
47912
47913
47914
47915
47916
47917$as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
47918
47919
47920
47921
47922
47923     ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
47924/* <sys/types.h> is not needed according to POSIX, but the
47925   <sys/socket.h> in i386-unknown-freebsd4.10 and
47926   powerpc-apple-darwin5.5 required it. */
47927#include <sys/types.h>
47928#if HAVE_SYS_SOCKET_H
47929# include <sys/socket.h>
47930#elif HAVE_WS2TCPIP_H
47931# include <ws2tcpip.h>
47932#endif
47933
47934"
47935if test "x$ac_cv_type_socklen_t" = xyes; then :
47936
47937else
47938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
47939$as_echo_n "checking for socklen_t equivalent... " >&6; }
47940if ${gl_cv_socklen_t_equiv+:} false; then :
47941  $as_echo_n "(cached) " >&6
47942else
47943  # Systems have either "struct sockaddr *" or
47944         # "void *" as the second argument to getpeername
47945         gl_cv_socklen_t_equiv=
47946         for arg2 in "struct sockaddr" void; do
47947           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
47948             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47949/* end confdefs.h.  */
47950#include <sys/types.h>
47951                   #include <sys/socket.h>
47952
47953                   int getpeername (int, $arg2 *, $t *);
47954int
47955main ()
47956{
47957$t len;
47958                  getpeername (0, 0, &len);
47959  ;
47960  return 0;
47961}
47962_ACEOF
47963if ac_fn_c_try_compile "$LINENO"; then :
47964  gl_cv_socklen_t_equiv="$t"
47965fi
47966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47967             test "$gl_cv_socklen_t_equiv" != "" && break
47968           done
47969           test "$gl_cv_socklen_t_equiv" != "" && break
47970         done
47971         if test "$gl_cv_socklen_t_equiv" = ""; then
47972           as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
47973         fi
47974
47975fi
47976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
47977$as_echo "$gl_cv_socklen_t_equiv" >&6; }
47978
47979cat >>confdefs.h <<_ACEOF
47980#define socklen_t $gl_cv_socklen_t_equiv
47981_ACEOF
47982
47983fi
47984
47985
47986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
47987$as_echo_n "checking for ssize_t... " >&6; }
47988if ${gt_cv_ssize_t+:} false; then :
47989  $as_echo_n "(cached) " >&6
47990else
47991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47992/* end confdefs.h.  */
47993#include <sys/types.h>
47994int
47995main ()
47996{
47997int x = sizeof (ssize_t *) + sizeof (ssize_t);
47998            return !x;
47999  ;
48000  return 0;
48001}
48002_ACEOF
48003if ac_fn_c_try_compile "$LINENO"; then :
48004  gt_cv_ssize_t=yes
48005else
48006  gt_cv_ssize_t=no
48007fi
48008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48009fi
48010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
48011$as_echo "$gt_cv_ssize_t" >&6; }
48012  if test $gt_cv_ssize_t = no; then
48013
48014$as_echo "#define ssize_t int" >>confdefs.h
48015
48016  fi
48017
48018
48019
48020
48021
48022  case "$host_os" in
48023    mingw*)
48024                  REPLACE_STAT=1
48025      ;;
48026    *)
48027                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
48028$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
48029if ${gl_cv_func_stat_file_slash+:} false; then :
48030  $as_echo_n "(cached) " >&6
48031else
48032  touch conftest.tmp
48033         # Assume that if we have lstat, we can also check symlinks.
48034         if test $ac_cv_func_lstat = yes; then
48035           ln -s conftest.tmp conftest.lnk
48036         fi
48037         if test "$cross_compiling" = yes; then :
48038  case "$host_os" in
48039                               # Guess yes on Linux systems.
48040              linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
48041                               # Guess yes on glibc systems.
48042              *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
48043                               # If we don't know, obey --enable-cross-guesses.
48044              *)               gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
48045            esac
48046
48047else
48048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48049/* end confdefs.h.  */
48050#include <sys/stat.h>
48051
48052int
48053main ()
48054{
48055int result = 0;
48056               struct stat st;
48057               if (!stat ("conftest.tmp/", &st))
48058                 result |= 1;
48059#if HAVE_LSTAT
48060               if (!stat ("conftest.lnk/", &st))
48061                 result |= 2;
48062#endif
48063               return result;
48064
48065  ;
48066  return 0;
48067}
48068_ACEOF
48069if ac_fn_c_try_run "$LINENO"; then :
48070  gl_cv_func_stat_file_slash=yes
48071else
48072  gl_cv_func_stat_file_slash=no
48073fi
48074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48075  conftest.$ac_objext conftest.beam conftest.$ac_ext
48076fi
48077
48078         rm -f conftest.tmp conftest.lnk
48079fi
48080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
48081$as_echo "$gl_cv_func_stat_file_slash" >&6; }
48082      case $gl_cv_func_stat_file_slash in
48083        *no)
48084          REPLACE_STAT=1
48085
48086$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
48087;;
48088      esac
48089      case $host_os in
48090                solaris*)
48091          REPLACE_FSTAT=1 ;;
48092      esac
48093      ;;
48094  esac
48095
48096  if test $REPLACE_STAT = 1; then
48097
48098
48099
48100
48101
48102
48103
48104
48105  ggl_LIBOBJS="$ggl_LIBOBJS stat.$ac_objext"
48106
48107    case "$host_os" in
48108      mingw*)
48109
48110
48111
48112
48113
48114
48115
48116
48117  ggl_LIBOBJS="$ggl_LIBOBJS stat-w32.$ac_objext"
48118
48119        ;;
48120    esac
48121
48122
48123  :
48124
48125  fi
48126
48127
48128
48129
48130
48131          GNULIB_STAT=1
48132
48133
48134
48135
48136
48137$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
48138
48139
48140
48141
48142
48143
48144
48145  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>
48146     #include <sys/stat.h>
48147"
48148if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
48149
48150cat >>confdefs.h <<_ACEOF
48151#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
48152_ACEOF
48153
48154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
48155$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
48156if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
48157  $as_echo_n "(cached) " >&6
48158else
48159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48160/* end confdefs.h.  */
48161
48162            #include <sys/types.h>
48163            #include <sys/stat.h>
48164            #if HAVE_SYS_TIME_H
48165            # include <sys/time.h>
48166            #endif
48167            #include <time.h>
48168            struct timespec ts;
48169            struct stat st;
48170
48171int
48172main ()
48173{
48174
48175            st.st_atim = ts;
48176
48177  ;
48178  return 0;
48179}
48180_ACEOF
48181if ac_fn_c_try_compile "$LINENO"; then :
48182  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
48183else
48184  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
48185fi
48186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48187fi
48188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
48189$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
48190     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
48191
48192$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
48193
48194     fi
48195else
48196  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>
48197        #include <sys/stat.h>
48198"
48199if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
48200
48201cat >>confdefs.h <<_ACEOF
48202#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
48203_ACEOF
48204
48205
48206else
48207  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
48208           #include <sys/stat.h>
48209"
48210if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
48211
48212cat >>confdefs.h <<_ACEOF
48213#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
48214_ACEOF
48215
48216
48217else
48218  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>
48219              #include <sys/stat.h>
48220"
48221if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
48222
48223cat >>confdefs.h <<_ACEOF
48224#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
48225_ACEOF
48226
48227
48228fi
48229
48230fi
48231
48232fi
48233
48234fi
48235
48236
48237
48238
48239
48240  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>
48241     #include <sys/stat.h>
48242"
48243if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
48244
48245cat >>confdefs.h <<_ACEOF
48246#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
48247_ACEOF
48248
48249
48250else
48251  ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
48252        #include <sys/stat.h>
48253"
48254if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
48255
48256cat >>confdefs.h <<_ACEOF
48257#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
48258_ACEOF
48259
48260
48261else
48262  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>
48263          #include <sys/stat.h>
48264"
48265if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
48266
48267cat >>confdefs.h <<_ACEOF
48268#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
48269_ACEOF
48270
48271
48272fi
48273
48274fi
48275
48276fi
48277
48278
48279
48280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
48281$as_echo_n "checking for working stdalign.h... " >&6; }
48282if ${gl_cv_header_working_stdalign_h+:} false; then :
48283  $as_echo_n "(cached) " >&6
48284else
48285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48286/* end confdefs.h.  */
48287#include <stdalign.h>
48288            #include <stddef.h>
48289
48290            /* Test that alignof yields a result consistent with offsetof.
48291               This catches GCC bug 52023
48292               <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
48293            #ifdef __cplusplus
48294               template <class t> struct alignof_helper { char a; t b; };
48295            # define ao(type) offsetof (alignof_helper<type>, b)
48296            #else
48297            # define ao(type) offsetof (struct { char a; type b; }, b)
48298            #endif
48299            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
48300            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
48301            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
48302
48303            /* Test _Alignas only on platforms where gnulib can help.  */
48304            #if \
48305                ((defined __cplusplus && 201103 <= __cplusplus) \
48306                 || (defined __APPLE__ && defined __MACH__ \
48307                     ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
48308                     : __GNUC__) \
48309                 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
48310                 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
48311                 || 1300 <= _MSC_VER)
48312              struct alignas_test { char c; char alignas (8) alignas_8; };
48313              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
48314                                ? 1 : -1];
48315            #endif
48316
48317int
48318main ()
48319{
48320
48321  ;
48322  return 0;
48323}
48324_ACEOF
48325if ac_fn_c_try_compile "$LINENO"; then :
48326  gl_cv_header_working_stdalign_h=yes
48327else
48328  gl_cv_header_working_stdalign_h=no
48329fi
48330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48331fi
48332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
48333$as_echo "$gl_cv_header_working_stdalign_h" >&6; }
48334
48335  if test $gl_cv_header_working_stdalign_h = yes; then
48336    STDALIGN_H=''
48337  else
48338    STDALIGN_H='stdalign.h'
48339  fi
48340
48341
48342   if test -n "$STDALIGN_H"; then
48343  GL_GENERATE_STDALIGN_H_TRUE=
48344  GL_GENERATE_STDALIGN_H_FALSE='#'
48345else
48346  GL_GENERATE_STDALIGN_H_TRUE='#'
48347  GL_GENERATE_STDALIGN_H_FALSE=
48348fi
48349
48350
48351
48352
48353
48354
48355          if test "$ac_cv_header_stdbool_h" = yes; then
48356    case "$host_os" in
48357      solaris*)
48358        if test -z "$GCC"; then
48359          STDBOOL_H='stdbool.h'
48360        else
48361          STDBOOL_H=''
48362        fi
48363        ;;
48364      *)
48365        STDBOOL_H=''
48366        ;;
48367    esac
48368  else
48369    STDBOOL_H='stdbool.h'
48370  fi
48371
48372   if test -n "$STDBOOL_H"; then
48373  GL_GENERATE_STDBOOL_H_TRUE=
48374  GL_GENERATE_STDBOOL_H_FALSE='#'
48375else
48376  GL_GENERATE_STDBOOL_H_TRUE='#'
48377  GL_GENERATE_STDBOOL_H_FALSE=
48378fi
48379
48380
48381  if test "$ac_cv_type__Bool" = yes; then
48382    HAVE__BOOL=1
48383  else
48384    HAVE__BOOL=0
48385  fi
48386
48387
48388
48389
48390
48391  STDDEF_H=
48392
48393      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
48394$as_echo_n "checking for good max_align_t... " >&6; }
48395if ${gl_cv_type_max_align_t+:} false; then :
48396  $as_echo_n "(cached) " >&6
48397else
48398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48399/* end confdefs.h.  */
48400#include <stddef.h>
48401            unsigned int s = sizeof (max_align_t);
48402            #if defined __GNUC__ || defined __IBM__ALIGNOF__
48403            int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
48404            int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
48405            #endif
48406
48407int
48408main ()
48409{
48410
48411  ;
48412  return 0;
48413}
48414_ACEOF
48415if ac_fn_c_try_compile "$LINENO"; then :
48416  gl_cv_type_max_align_t=yes
48417else
48418  gl_cv_type_max_align_t=no
48419fi
48420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48421
48422fi
48423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
48424$as_echo "$gl_cv_type_max_align_t" >&6; }
48425  if test $gl_cv_type_max_align_t = no; then
48426    HAVE_MAX_ALIGN_T=0
48427    STDDEF_H=stddef.h
48428  fi
48429
48430  if test $gt_cv_c_wchar_t = no; then
48431    HAVE_WCHAR_T=0
48432    STDDEF_H=stddef.h
48433  fi
48434
48435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
48436$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
48437if ${gl_cv_decl_null_works+:} false; then :
48438  $as_echo_n "(cached) " >&6
48439else
48440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48441/* end confdefs.h.  */
48442#include <stddef.h>
48443      int test[2 * (sizeof NULL == sizeof (void *)) -1];
48444
48445int
48446main ()
48447{
48448
48449  ;
48450  return 0;
48451}
48452_ACEOF
48453if ac_fn_c_try_compile "$LINENO"; then :
48454  gl_cv_decl_null_works=yes
48455else
48456  gl_cv_decl_null_works=no
48457fi
48458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48459fi
48460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
48461$as_echo "$gl_cv_decl_null_works" >&6; }
48462  if test $gl_cv_decl_null_works = no; then
48463    REPLACE_NULL=1
48464    STDDEF_H=stddef.h
48465  fi
48466
48467
48468   if test -n "$STDDEF_H"; then
48469  GL_GENERATE_STDDEF_H_TRUE=
48470  GL_GENERATE_STDDEF_H_FALSE='#'
48471else
48472  GL_GENERATE_STDDEF_H_TRUE='#'
48473  GL_GENERATE_STDDEF_H_FALSE=
48474fi
48475
48476  if test -n "$STDDEF_H"; then
48477
48478
48479
48480
48481
48482
48483
48484
48485     if test $gl_cv_have_include_next = yes; then
48486       gl_cv_next_stddef_h='<'stddef.h'>'
48487     else
48488       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
48489$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
48490if ${gl_cv_next_stddef_h+:} false; then :
48491  $as_echo_n "(cached) " >&6
48492else
48493
48494
48495
48496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48497/* end confdefs.h.  */
48498#include <stddef.h>
48499_ACEOF
48500                case "$host_os" in
48501    aix*) gl_absname_cpp="$ac_cpp -C" ;;
48502    *)    gl_absname_cpp="$ac_cpp" ;;
48503  esac
48504
48505  case "$host_os" in
48506    mingw*)
48507                                          gl_dirsep_regex='[/\\]'
48508      ;;
48509    *)
48510      gl_dirsep_regex='\/'
48511      ;;
48512  esac
48513      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
48514  gl_header_literal_regex=`echo 'stddef.h' \
48515                           | sed -e "$gl_make_literal_regex_sed"`
48516  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
48517      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
48518      s|^/[^/]|//&|
48519      p
48520      q
48521    }'
48522
48523        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48524  sed -n "$gl_absolute_header_sed"`
48525
48526           gl_header=$gl_cv_absolute_stddef_h
48527           gl_cv_next_stddef_h='"'$gl_header'"'
48528
48529
48530fi
48531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
48532$as_echo "$gl_cv_next_stddef_h" >&6; }
48533     fi
48534     NEXT_STDDEF_H=$gl_cv_next_stddef_h
48535
48536     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48537       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48538       gl_next_as_first_directive='<'stddef.h'>'
48539     else
48540       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48541       gl_next_as_first_directive=$gl_cv_next_stddef_h
48542     fi
48543     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
48544
48545
48546
48547
48548  fi
48549
48550
48551
48552
48553  $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
48554
48555
48556
48557
48558
48559
48560
48561
48562
48563
48564     if test $gl_cv_have_include_next = yes; then
48565       gl_cv_next_stdio_h='<'stdio.h'>'
48566     else
48567       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
48568$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
48569if ${gl_cv_next_stdio_h+:} false; then :
48570  $as_echo_n "(cached) " >&6
48571else
48572
48573
48574
48575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48576/* end confdefs.h.  */
48577#include <stdio.h>
48578_ACEOF
48579                case "$host_os" in
48580    aix*) gl_absname_cpp="$ac_cpp -C" ;;
48581    *)    gl_absname_cpp="$ac_cpp" ;;
48582  esac
48583
48584  case "$host_os" in
48585    mingw*)
48586                                          gl_dirsep_regex='[/\\]'
48587      ;;
48588    *)
48589      gl_dirsep_regex='\/'
48590      ;;
48591  esac
48592      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
48593  gl_header_literal_regex=`echo 'stdio.h' \
48594                           | sed -e "$gl_make_literal_regex_sed"`
48595  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
48596      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
48597      s|^/[^/]|//&|
48598      p
48599      q
48600    }'
48601
48602        gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48603  sed -n "$gl_absolute_header_sed"`
48604
48605           gl_header=$gl_cv_absolute_stdio_h
48606           gl_cv_next_stdio_h='"'$gl_header'"'
48607
48608
48609fi
48610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
48611$as_echo "$gl_cv_next_stdio_h" >&6; }
48612     fi
48613     NEXT_STDIO_H=$gl_cv_next_stdio_h
48614
48615     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48616       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48617       gl_next_as_first_directive='<'stdio.h'>'
48618     else
48619       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48620       gl_next_as_first_directive=$gl_cv_next_stdio_h
48621     fi
48622     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
48623
48624
48625
48626
48627
48628        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
48629$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
48630if ${gl_cv_func_printf_attribute_flavor+:} false; then :
48631  $as_echo_n "(cached) " >&6
48632else
48633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48634/* end confdefs.h.  */
48635
48636       #define __STDC_FORMAT_MACROS 1
48637       #include <stdio.h>
48638       #include <inttypes.h>
48639       /* For non-mingw systems, compilation will trivially succeed.
48640          For mingw, compilation will succeed for older mingw (system
48641          printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
48642       #if (defined _WIN32 && ! defined __CYGWIN__) && \
48643         (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
48644       extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
48645       #endif
48646
48647int
48648main ()
48649{
48650
48651  ;
48652  return 0;
48653}
48654_ACEOF
48655if ac_fn_c_try_compile "$LINENO"; then :
48656  gl_cv_func_printf_attribute_flavor=system
48657else
48658  gl_cv_func_printf_attribute_flavor=gnu
48659fi
48660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48661fi
48662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
48663$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
48664  if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
48665
48666$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
48667
48668  fi
48669
48670      GNULIB_FSCANF=1
48671
48672
48673cat >>confdefs.h <<_ACEOF
48674#define GNULIB_FSCANF 1
48675_ACEOF
48676
48677
48678  GNULIB_SCANF=1
48679
48680
48681cat >>confdefs.h <<_ACEOF
48682#define GNULIB_SCANF 1
48683_ACEOF
48684
48685
48686  GNULIB_FGETC=1
48687  GNULIB_GETC=1
48688  GNULIB_GETCHAR=1
48689  GNULIB_FGETS=1
48690  GNULIB_FREAD=1
48691
48692
48693      GNULIB_FPRINTF=1
48694  GNULIB_PRINTF=1
48695  GNULIB_VFPRINTF=1
48696  GNULIB_VPRINTF=1
48697  GNULIB_FPUTC=1
48698  GNULIB_PUTC=1
48699  GNULIB_PUTCHAR=1
48700  GNULIB_FPUTS=1
48701  GNULIB_PUTS=1
48702  GNULIB_FWRITE=1
48703
48704
48705
48706
48707
48708
48709
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
48722     if test $gl_cv_have_include_next = yes; then
48723       gl_cv_next_stdlib_h='<'stdlib.h'>'
48724     else
48725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
48726$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
48727if ${gl_cv_next_stdlib_h+:} false; then :
48728  $as_echo_n "(cached) " >&6
48729else
48730
48731
48732
48733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48734/* end confdefs.h.  */
48735#include <stdlib.h>
48736_ACEOF
48737                case "$host_os" in
48738    aix*) gl_absname_cpp="$ac_cpp -C" ;;
48739    *)    gl_absname_cpp="$ac_cpp" ;;
48740  esac
48741
48742  case "$host_os" in
48743    mingw*)
48744                                          gl_dirsep_regex='[/\\]'
48745      ;;
48746    *)
48747      gl_dirsep_regex='\/'
48748      ;;
48749  esac
48750      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
48751  gl_header_literal_regex=`echo 'stdlib.h' \
48752                           | sed -e "$gl_make_literal_regex_sed"`
48753  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
48754      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
48755      s|^/[^/]|//&|
48756      p
48757      q
48758    }'
48759
48760        gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48761  sed -n "$gl_absolute_header_sed"`
48762
48763           gl_header=$gl_cv_absolute_stdlib_h
48764           gl_cv_next_stdlib_h='"'$gl_header'"'
48765
48766
48767fi
48768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
48769$as_echo "$gl_cv_next_stdlib_h" >&6; }
48770     fi
48771     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
48772
48773     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48774       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48775       gl_next_as_first_directive='<'stdlib.h'>'
48776     else
48777       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48778       gl_next_as_first_directive=$gl_cv_next_stdlib_h
48779     fi
48780     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
48781
48782
48783
48784
48785
48786
48787
48788
48789
48790
48791
48792
48793
48794
48795
48796  if test $ac_cv_func_strdup = yes; then
48797    if test $gl_cv_func_malloc_posix != yes; then
48798      REPLACE_STRDUP=1
48799    fi
48800  fi
48801
48802  if test $ac_cv_have_decl_strdup = no; then
48803    HAVE_DECL_STRDUP=0
48804  fi
48805
48806  if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
48807
48808
48809
48810
48811
48812
48813
48814
48815  ggl_LIBOBJS="$ggl_LIBOBJS strdup.$ac_objext"
48816
48817    :
48818  fi
48819
48820
48821
48822
48823
48824          GNULIB_STRDUP=1
48825
48826
48827
48828
48829
48830$as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
48831
48832
48833
48834
48835
48836
48837
48838
48839
48840
48841
48842
48843
48844
48845
48846
48847
48848
48849
48850
48851
48852
48853
48854
48855     if test $gl_cv_have_include_next = yes; then
48856       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
48857     else
48858       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
48859$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
48860if ${gl_cv_next_sys_stat_h+:} false; then :
48861  $as_echo_n "(cached) " >&6
48862else
48863
48864             if test $ac_cv_header_sys_stat_h = yes; then
48865
48866
48867
48868
48869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48870/* end confdefs.h.  */
48871#include <sys/stat.h>
48872_ACEOF
48873                case "$host_os" in
48874    aix*) gl_absname_cpp="$ac_cpp -C" ;;
48875    *)    gl_absname_cpp="$ac_cpp" ;;
48876  esac
48877
48878  case "$host_os" in
48879    mingw*)
48880                                          gl_dirsep_regex='[/\\]'
48881      ;;
48882    *)
48883      gl_dirsep_regex='\/'
48884      ;;
48885  esac
48886      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
48887  gl_header_literal_regex=`echo 'sys/stat.h' \
48888                           | sed -e "$gl_make_literal_regex_sed"`
48889  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
48890      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
48891      s|^/[^/]|//&|
48892      p
48893      q
48894    }'
48895
48896        gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48897  sed -n "$gl_absolute_header_sed"`
48898
48899           gl_header=$gl_cv_absolute_sys_stat_h
48900           gl_cv_next_sys_stat_h='"'$gl_header'"'
48901          else
48902               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
48903             fi
48904
48905
48906fi
48907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
48908$as_echo "$gl_cv_next_sys_stat_h" >&6; }
48909     fi
48910     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
48911
48912     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48913       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48914       gl_next_as_first_directive='<'sys/stat.h'>'
48915     else
48916       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48917       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
48918     fi
48919     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
48920
48921
48922
48923
48924
48925
48926
48927
48928    WINDOWS_STAT_TIMESPEC=0
48929
48930
48931
48932
48933
48934
48935
48936
48937      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
48938     #include <sys/stat.h>
48939"
48940if test "x$ac_cv_type_nlink_t" = xyes; then :
48941
48942else
48943
48944$as_echo "#define nlink_t int" >>confdefs.h
48945
48946fi
48947
48948
48949
48950
48951
48952
48953
48954
48955
48956
48957
48958
48959
48960
48961
48962
48963
48964
48965
48966
48967
48968
48969
48970
48971
48972
48973     if test $gl_cv_have_include_next = yes; then
48974       gl_cv_next_sys_uio_h='<'sys/uio.h'>'
48975     else
48976       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
48977$as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
48978if ${gl_cv_next_sys_uio_h+:} false; then :
48979  $as_echo_n "(cached) " >&6
48980else
48981
48982             if test $ac_cv_header_sys_uio_h = yes; then
48983
48984
48985
48986
48987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48988/* end confdefs.h.  */
48989#include <sys/uio.h>
48990_ACEOF
48991                case "$host_os" in
48992    aix*) gl_absname_cpp="$ac_cpp -C" ;;
48993    *)    gl_absname_cpp="$ac_cpp" ;;
48994  esac
48995
48996  case "$host_os" in
48997    mingw*)
48998                                          gl_dirsep_regex='[/\\]'
48999      ;;
49000    *)
49001      gl_dirsep_regex='\/'
49002      ;;
49003  esac
49004      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
49005  gl_header_literal_regex=`echo 'sys/uio.h' \
49006                           | sed -e "$gl_make_literal_regex_sed"`
49007  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
49008      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
49009      s|^/[^/]|//&|
49010      p
49011      q
49012    }'
49013
49014        gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49015  sed -n "$gl_absolute_header_sed"`
49016
49017           gl_header=$gl_cv_absolute_sys_uio_h
49018           gl_cv_next_sys_uio_h='"'$gl_header'"'
49019          else
49020               gl_cv_next_sys_uio_h='<'sys/uio.h'>'
49021             fi
49022
49023
49024fi
49025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
49026$as_echo "$gl_cv_next_sys_uio_h" >&6; }
49027     fi
49028     NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
49029
49030     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49031       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49032       gl_next_as_first_directive='<'sys/uio.h'>'
49033     else
49034       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49035       gl_next_as_first_directive=$gl_cv_next_sys_uio_h
49036     fi
49037     NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
49038
49039
49040
49041
49042  if test $ac_cv_header_sys_uio_h = yes; then
49043    HAVE_SYS_UIO_H=1
49044  else
49045    HAVE_SYS_UIO_H=0
49046  fi
49047
49048
49049
49050
49051
49052
49053
49054
49055
49056
49057
49058
49059      ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's <time.h> provides the functions asctime_r, ctime_r,
49060         gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
49061         been included before.  */
49062      #if defined __MINGW32__
49063      # include <unistd.h>
49064      #endif
49065      #include <time.h>
49066
49067"
49068if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
49069  ac_have_decl=1
49070else
49071  ac_have_decl=0
49072fi
49073
49074cat >>confdefs.h <<_ACEOF
49075#define HAVE_DECL_LOCALTIME_R $ac_have_decl
49076_ACEOF
49077
49078  if test $ac_cv_have_decl_localtime_r = no; then
49079    HAVE_DECL_LOCALTIME_R=0
49080  fi
49081
49082
49083  if test $ac_cv_func_localtime_r = yes; then
49084    HAVE_LOCALTIME_R=1
49085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
49086$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
49087if ${gl_cv_time_r_posix+:} false; then :
49088  $as_echo_n "(cached) " >&6
49089else
49090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49091/* end confdefs.h.  */
49092/* mingw's <time.h> provides the functions asctime_r, ctime_r,
49093                 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
49094                 been included before.  */
49095              #if defined __MINGW32__
49096              # include <unistd.h>
49097              #endif
49098              #include <time.h>
49099
49100int
49101main ()
49102{
49103/* We don't need to append 'restrict's to the argument types,
49104                 even though the POSIX signature has the 'restrict's,
49105                 since C99 says they can't affect type compatibility.  */
49106              struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
49107              if (ptr) return 0;
49108              /* Check the return type is a pointer.
49109                 On HP-UX 10 it is 'int'.  */
49110              *localtime_r (0, 0);
49111  ;
49112  return 0;
49113}
49114
49115_ACEOF
49116if ac_fn_c_try_compile "$LINENO"; then :
49117  gl_cv_time_r_posix=yes
49118else
49119  gl_cv_time_r_posix=no
49120fi
49121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49122
49123fi
49124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
49125$as_echo "$gl_cv_time_r_posix" >&6; }
49126    if test $gl_cv_time_r_posix = yes; then
49127      REPLACE_LOCALTIME_R=0
49128    else
49129      REPLACE_LOCALTIME_R=1
49130    fi
49131  else
49132    HAVE_LOCALTIME_R=0
49133                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
49134$as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
49135if ${gl_cv_func_localtime_r_inline+:} false; then :
49136  $as_echo_n "(cached) " >&6
49137else
49138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49139/* end confdefs.h.  */
49140/* mingw's <time.h> provides the functions asctime_r, ctime_r,
49141                 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
49142                 been included before.  */
49143              #if defined __MINGW32__
49144              # include <unistd.h>
49145              #endif
49146              #include <time.h>
49147
49148int
49149main ()
49150{
49151time_t a;
49152              struct tm r;
49153              localtime_r (&a, &r);
49154
49155  ;
49156  return 0;
49157}
49158
49159_ACEOF
49160if ac_fn_c_try_link "$LINENO"; then :
49161  gl_cv_func_localtime_r_inline=yes
49162else
49163  gl_cv_func_localtime_r_inline=no
49164fi
49165rm -f core conftest.err conftest.$ac_objext \
49166    conftest$ac_exeext conftest.$ac_ext
49167
49168fi
49169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
49170$as_echo "$gl_cv_func_localtime_r_inline" >&6; }
49171    if test $gl_cv_func_localtime_r_inline = yes; then
49172      REPLACE_LOCALTIME_R=1
49173    fi
49174  fi
49175
49176  if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
49177
49178
49179
49180
49181
49182
49183
49184
49185  ggl_LIBOBJS="$ggl_LIBOBJS time_r.$ac_objext"
49186
49187
49188  :
49189
49190  fi
49191
49192
49193
49194
49195
49196          GNULIB_TIME_R=1
49197
49198
49199
49200
49201
49202$as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
49203
49204
49205
49206
49207
49208
49209
49210
49211  # Mac OS X 10.6 loops forever with some time_t values.
49212  # See Bug#27706, Bug#27736, and
49213  # https://lists.gnu.org/r/bug-gnulib/2017-07/msg00142.html
49214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime loops forever near extrema" >&5
49215$as_echo_n "checking whether localtime loops forever near extrema... " >&6; }
49216if ${gl_cv_func_localtime_infloop_bug+:} false; then :
49217  $as_echo_n "(cached) " >&6
49218else
49219  gl_cv_func_localtime_infloop_bug=no
49220     if test "$cross_compiling" = yes; then :
49221  gl_cv_func_localtime_infloop_bug="guessing no"
49222else
49223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49224/* end confdefs.h.  */
49225#include <stdlib.h>
49226            #include <string.h>
49227            #include <unistd.h>
49228            #include <time.h>
49229
49230int
49231main ()
49232{
49233
49234            time_t t = -67768038400666600;
49235            struct tm *tm;
49236            char *tz = getenv ("TZ");
49237            if (! (tz && strcmp (tz, "QQQ0") == 0))
49238              return 0;
49239            alarm (2);
49240            tm = localtime (&t);
49241            /* Use TM and *TM to suppress over-optimization.  */
49242            return tm && tm->tm_isdst;
49243
49244  ;
49245  return 0;
49246}
49247_ACEOF
49248if ac_fn_c_try_run "$LINENO"; then :
49249  (TZ=QQQ0 ./conftest$EXEEXT) >/dev/null 2>&1 ||
49250           gl_cv_func_localtime_infloop_bug=yes
49251fi
49252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49253  conftest.$ac_objext conftest.beam conftest.$ac_ext
49254fi
49255
49256fi
49257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_infloop_bug" >&5
49258$as_echo "$gl_cv_func_localtime_infloop_bug" >&6; }
49259  if test "$gl_cv_func_localtime_infloop_bug" = yes; then
49260
49261$as_echo "#define HAVE_LOCALTIME_INFLOOP_BUG 1" >>confdefs.h
49262
49263  fi
49264
49265  ac_fn_c_check_type "$LINENO" "timezone_t" "ac_cv_type_timezone_t" "#include <time.h>
49266"
49267if test "x$ac_cv_type_timezone_t" = xyes; then :
49268
49269cat >>confdefs.h <<_ACEOF
49270#define HAVE_TIMEZONE_T 1
49271_ACEOF
49272
49273
49274fi
49275
49276  if test "$ac_cv_type_timezone_t" = yes; then
49277    HAVE_TIMEZONE_T=1
49278  fi
49279
49280  if test $HAVE_TIMEZONE_T = 0; then
49281
49282
49283
49284
49285
49286
49287
49288
49289  ggl_LIBOBJS="$ggl_LIBOBJS time_rz.$ac_objext"
49290
49291  fi
49292
49293
49294
49295
49296
49297          GNULIB_TIME_RZ=1
49298
49299
49300
49301
49302
49303$as_echo "#define GNULIB_TEST_TIME_RZ 1" >>confdefs.h
49304
49305
49306
49307
49308
49309
49310  REPLACE_TIMEGM=0
49311
49312  if test $ac_cv_func_timegm = yes; then
49313    if test "$gl_cv_func_working_mktime" != yes; then
49314      # Assume that timegm is buggy if mktime is.
49315      REPLACE_TIMEGM=1
49316    fi
49317  else
49318    HAVE_TIMEGM=0
49319  fi
49320
49321  if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
49322
49323
49324
49325
49326
49327
49328
49329
49330  ggl_LIBOBJS="$ggl_LIBOBJS timegm.$ac_objext"
49331
49332
49333  :
49334
49335  fi
49336
49337
49338
49339
49340
49341          GNULIB_TIMEGM=1
49342
49343
49344
49345
49346
49347$as_echo "#define GNULIB_TEST_TIMEGM 1" >>confdefs.h
49348
49349
49350
49351  :
49352
49353
49354
49355
49356
49357  if test $ac_cv_func_tzset = no; then
49358    HAVE_TZSET=0
49359  fi
49360
49361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tzset clobbers localtime buffer" >&5
49362$as_echo_n "checking whether tzset clobbers localtime buffer... " >&6; }
49363if ${gl_cv_func_tzset_clobber+:} false; then :
49364  $as_echo_n "(cached) " >&6
49365else
49366  if test "$cross_compiling" = yes; then :
49367  case "$host_os" in
49368                         # Guess all is fine on glibc systems.
49369          *-gnu* | gnu*) gl_cv_func_tzset_clobber="guessing no" ;;
49370                         # Guess all is fine on musl systems.
49371          *-musl*)       gl_cv_func_tzset_clobber="guessing no" ;;
49372                         # Guess no on native Windows.
49373          mingw*)        gl_cv_func_tzset_clobber="guessing no" ;;
49374                         # If we don't know, obey --enable-cross-guesses.
49375          *)             gl_cv_func_tzset_clobber="$gl_cross_guess_inverted" ;;
49376        esac
49377
49378else
49379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49380/* end confdefs.h.  */
49381
49382#include <time.h>
49383#include <stdlib.h>
49384
49385int
49386main ()
49387{
49388  time_t t1 = 853958121;
49389  struct tm *p, s;
49390  putenv ("TZ=GMT0");
49391  p = localtime (&t1);
49392  s = *p;
49393  putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
49394  tzset ();
49395  return (p->tm_year != s.tm_year
49396          || p->tm_mon != s.tm_mon
49397          || p->tm_mday != s.tm_mday
49398          || p->tm_hour != s.tm_hour
49399          || p->tm_min != s.tm_min
49400          || p->tm_sec != s.tm_sec);
49401}
49402
49403_ACEOF
49404if ac_fn_c_try_run "$LINENO"; then :
49405  gl_cv_func_tzset_clobber=no
49406else
49407  gl_cv_func_tzset_clobber=yes
49408fi
49409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49410  conftest.$ac_objext conftest.beam conftest.$ac_ext
49411fi
49412
49413
49414fi
49415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tzset_clobber" >&5
49416$as_echo "$gl_cv_func_tzset_clobber" >&6; }
49417
49418
49419$as_echo "#define HAVE_RUN_TZSET_TEST 1" >>confdefs.h
49420
49421
49422  REPLACE_TZSET=0
49423  case "$gl_cv_func_tzset_clobber" in
49424    *yes)
49425      REPLACE_TZSET=1
49426
49427$as_echo "#define TZSET_CLOBBERS_LOCALTIME 1" >>confdefs.h
49428
49429
49430
49431
49432  NEED_LOCALTIME_BUFFER=1
49433  REPLACE_GMTIME=1
49434  REPLACE_LOCALTIME=1
49435
49436      ;;
49437  esac
49438  case "$host_os" in
49439    mingw*) REPLACE_TZSET=1 ;;
49440  esac
49441
49442  if test $HAVE_TZSET = 0 || test $REPLACE_TZSET = 1; then
49443
49444
49445
49446
49447
49448
49449
49450
49451  ggl_LIBOBJS="$ggl_LIBOBJS tzset.$ac_objext"
49452
49453  fi
49454
49455
49456
49457
49458
49459          GNULIB_TZSET=1
49460
49461
49462
49463
49464
49465$as_echo "#define GNULIB_TEST_TZSET 1" >>confdefs.h
49466
49467
49468
49469
49470
49471
49472
49473
49474
49475
49476
49477
49478
49479
49480
49481     if test $gl_cv_have_include_next = yes; then
49482       gl_cv_next_unistd_h='<'unistd.h'>'
49483     else
49484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
49485$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
49486if ${gl_cv_next_unistd_h+:} false; then :
49487  $as_echo_n "(cached) " >&6
49488else
49489
49490             if test $ac_cv_header_unistd_h = yes; then
49491
49492
49493
49494
49495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49496/* end confdefs.h.  */
49497#include <unistd.h>
49498_ACEOF
49499                case "$host_os" in
49500    aix*) gl_absname_cpp="$ac_cpp -C" ;;
49501    *)    gl_absname_cpp="$ac_cpp" ;;
49502  esac
49503
49504  case "$host_os" in
49505    mingw*)
49506                                          gl_dirsep_regex='[/\\]'
49507      ;;
49508    *)
49509      gl_dirsep_regex='\/'
49510      ;;
49511  esac
49512      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
49513  gl_header_literal_regex=`echo 'unistd.h' \
49514                           | sed -e "$gl_make_literal_regex_sed"`
49515  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
49516      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
49517      s|^/[^/]|//&|
49518      p
49519      q
49520    }'
49521
49522        gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49523  sed -n "$gl_absolute_header_sed"`
49524
49525           gl_header=$gl_cv_absolute_unistd_h
49526           gl_cv_next_unistd_h='"'$gl_header'"'
49527          else
49528               gl_cv_next_unistd_h='<'unistd.h'>'
49529             fi
49530
49531
49532fi
49533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
49534$as_echo "$gl_cv_next_unistd_h" >&6; }
49535     fi
49536     NEXT_UNISTD_H=$gl_cv_next_unistd_h
49537
49538     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49539       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49540       gl_next_as_first_directive='<'unistd.h'>'
49541     else
49542       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49543       gl_next_as_first_directive=$gl_cv_next_unistd_h
49544     fi
49545     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
49546
49547
49548
49549
49550  if test $ac_cv_header_unistd_h = yes; then
49551    HAVE_UNISTD_H=1
49552  else
49553    HAVE_UNISTD_H=0
49554  fi
49555
49556
49557
49558
49559
49560
49561
49562
49563
49564
49565
49566
49567
49568
49569
49570  if test $ac_cv_have_decl_unsetenv = no; then
49571    HAVE_DECL_UNSETENV=0
49572  fi
49573  for ac_func in unsetenv
49574do :
49575  ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
49576if test "x$ac_cv_func_unsetenv" = xyes; then :
49577  cat >>confdefs.h <<_ACEOF
49578#define HAVE_UNSETENV 1
49579_ACEOF
49580
49581fi
49582done
49583
49584  if test $ac_cv_func_unsetenv = no; then
49585    HAVE_UNSETENV=0
49586  else
49587    HAVE_UNSETENV=1
49588        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
49589$as_echo_n "checking for unsetenv() return type... " >&6; }
49590if ${gt_cv_func_unsetenv_ret+:} false; then :
49591  $as_echo_n "(cached) " >&6
49592else
49593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49594/* end confdefs.h.  */
49595
49596#undef _BSD
49597#define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
49598#include <stdlib.h>
49599extern
49600#ifdef __cplusplus
49601"C"
49602#endif
49603int unsetenv (const char *name);
49604
49605int
49606main ()
49607{
49608
49609  ;
49610  return 0;
49611}
49612_ACEOF
49613if ac_fn_c_try_compile "$LINENO"; then :
49614  gt_cv_func_unsetenv_ret='int'
49615else
49616  gt_cv_func_unsetenv_ret='void'
49617fi
49618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49619fi
49620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
49621$as_echo "$gt_cv_func_unsetenv_ret" >&6; }
49622    if test $gt_cv_func_unsetenv_ret = 'void'; then
49623
49624$as_echo "#define VOID_UNSETENV 1" >>confdefs.h
49625
49626      REPLACE_UNSETENV=1
49627    fi
49628
49629                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
49630$as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
49631if ${gl_cv_func_unsetenv_works+:} false; then :
49632  $as_echo_n "(cached) " >&6
49633else
49634  if test "$cross_compiling" = yes; then :
49635  case "$host_os" in
49636                 # Guess yes on glibc systems.
49637         *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
49638                 # If we don't know, obey --enable-cross-guesses.
49639         *)      gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
49640       esac
49641
49642else
49643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49644/* end confdefs.h.  */
49645
49646       #include <stdlib.h>
49647       #include <errno.h>
49648       extern char **environ;
49649
49650int
49651main ()
49652{
49653
49654       char entry1[] = "a=1";
49655       char entry2[] = "b=2";
49656       char *env[] = { entry1, entry2, NULL };
49657       if (putenv ((char *) "a=1")) return 1;
49658       if (putenv (entry2)) return 2;
49659       entry2[0] = 'a';
49660       unsetenv ("a");
49661       if (getenv ("a")) return 3;
49662       if (!unsetenv ("") || errno != EINVAL) return 4;
49663       entry2[0] = 'b';
49664       environ = env;
49665       if (!getenv ("a")) return 5;
49666       entry2[0] = 'a';
49667       unsetenv ("a");
49668       if (getenv ("a")) return 6;
49669
49670  ;
49671  return 0;
49672}
49673_ACEOF
49674if ac_fn_c_try_run "$LINENO"; then :
49675  gl_cv_func_unsetenv_works=yes
49676else
49677  gl_cv_func_unsetenv_works=no
49678fi
49679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49680  conftest.$ac_objext conftest.beam conftest.$ac_ext
49681fi
49682
49683fi
49684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
49685$as_echo "$gl_cv_func_unsetenv_works" >&6; }
49686    case "$gl_cv_func_unsetenv_works" in
49687      *yes) ;;
49688      *)
49689        REPLACE_UNSETENV=1
49690        ;;
49691    esac
49692  fi
49693
49694  if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
49695
49696
49697
49698
49699
49700
49701
49702
49703  ggl_LIBOBJS="$ggl_LIBOBJS unsetenv.$ac_objext"
49704
49705
49706
49707
49708
49709  fi
49710
49711
49712
49713
49714
49715          GNULIB_UNSETENV=1
49716
49717
49718
49719
49720
49721$as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
49722
49723
49724
49725
49726
49727
49728  if test $ac_cv_func_vasnprintf = no; then
49729
49730
49731
49732
49733
49734
49735
49736
49737
49738
49739  ggl_LIBOBJS="$ggl_LIBOBJS vasnprintf.$ac_objext"
49740
49741
49742
49743
49744
49745
49746
49747
49748
49749  ggl_LIBOBJS="$ggl_LIBOBJS printf-args.$ac_objext"
49750
49751
49752
49753
49754
49755
49756
49757
49758
49759  ggl_LIBOBJS="$ggl_LIBOBJS printf-parse.$ac_objext"
49760
49761
49762
49763
49764
49765
49766
49767
49768
49769  ggl_LIBOBJS="$ggl_LIBOBJS asnprintf.$ac_objext"
49770
49771  if test $ac_cv_func_vasnprintf = yes; then
49772
49773$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
49774
49775  fi
49776
49777
49778
49779
49780
49781
49782
49783
49784
49785  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
49786if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
49787
49788else
49789
49790$as_echo "#define ptrdiff_t long" >>confdefs.h
49791
49792
49793fi
49794
49795
49796
49797
49798
49799
49800
49801  fi
49802
49803
49804
49805
49806
49807
49808
49809
49810
49811
49812
49813
49814
49815     if test $gl_cv_have_include_next = yes; then
49816       gl_cv_next_wchar_h='<'wchar.h'>'
49817     else
49818       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
49819$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
49820if ${gl_cv_next_wchar_h+:} false; then :
49821  $as_echo_n "(cached) " >&6
49822else
49823
49824             if test $ac_cv_header_wchar_h = yes; then
49825
49826
49827
49828
49829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49830/* end confdefs.h.  */
49831#include <wchar.h>
49832_ACEOF
49833                case "$host_os" in
49834    aix*) gl_absname_cpp="$ac_cpp -C" ;;
49835    *)    gl_absname_cpp="$ac_cpp" ;;
49836  esac
49837
49838  case "$host_os" in
49839    mingw*)
49840                                          gl_dirsep_regex='[/\\]'
49841      ;;
49842    *)
49843      gl_dirsep_regex='\/'
49844      ;;
49845  esac
49846      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
49847  gl_header_literal_regex=`echo 'wchar.h' \
49848                           | sed -e "$gl_make_literal_regex_sed"`
49849  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
49850      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
49851      s|^/[^/]|//&|
49852      p
49853      q
49854    }'
49855
49856        gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49857  sed -n "$gl_absolute_header_sed"`
49858
49859           gl_header=$gl_cv_absolute_wchar_h
49860           gl_cv_next_wchar_h='"'$gl_header'"'
49861          else
49862               gl_cv_next_wchar_h='<'wchar.h'>'
49863             fi
49864
49865
49866fi
49867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
49868$as_echo "$gl_cv_next_wchar_h" >&6; }
49869     fi
49870     NEXT_WCHAR_H=$gl_cv_next_wchar_h
49871
49872     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49873       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49874       gl_next_as_first_directive='<'wchar.h'>'
49875     else
49876       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49877       gl_next_as_first_directive=$gl_cv_next_wchar_h
49878     fi
49879     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
49880
49881
49882
49883
49884  if test $ac_cv_header_wchar_h = yes; then
49885    HAVE_WCHAR_H=1
49886  else
49887    HAVE_WCHAR_H=0
49888  fi
49889
49890
49891
49892
49893
49894  if test $gt_cv_c_wint_t = yes; then
49895    HAVE_WINT_T=1
49896  else
49897    HAVE_WINT_T=0
49898  fi
49899
49900
49901
49902
49903
49904
49905
49906
49907
49908
49909
49910
49911  for ac_header in stdint.h
49912do :
49913  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
49914if test "x$ac_cv_header_stdint_h" = xyes; then :
49915  cat >>confdefs.h <<_ACEOF
49916#define HAVE_STDINT_H 1
49917_ACEOF
49918
49919fi
49920
49921done
49922
49923
49924  # End of code from modules
49925
49926
49927
49928
49929
49930
49931
49932
49933
49934  gltests_libdeps=
49935  gltests_ltlibdeps=
49936
49937
49938
49939
49940
49941
49942
49943
49944
49945
49946  gl_source_base='tests'
49947  ggltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
49948
49949  gl_module_indicator_condition=$ggltests_WITNESS
49950
49951
49952
49953
49954
49955
49956
49957
49958
49959
49960
49961
49962
49963
49964
49965
49966gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
49967i\
499680
49969q
49970'
49971gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
49972i\
499730
49974q
49975'
49976gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
49977i\
499780
49979q
49980'
49981
49982
49983  if test "$HAVE_LIBUNISTRING" = yes; then
49984    LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
49985    LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
49986    LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
49987  fi
49988
49989
49990   if true; then
49991  GL_COND_LIBTOOL_TRUE=
49992  GL_COND_LIBTOOL_FALSE='#'
49993else
49994  GL_COND_LIBTOOL_TRUE='#'
49995  GL_COND_LIBTOOL_FALSE=
49996fi
49997
49998  gl_cond_libtool=true
49999  gl_m4_base='lib/unistring/m4'
50000
50001
50002
50003
50004
50005
50006
50007
50008
50009
50010  gl_source_base='lib/unistring'
50011
50012
50013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
50014$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
50015if ${gl_cv_c_inline_effective+:} false; then :
50016  $as_echo_n "(cached) " >&6
50017else
50018  if test $ac_cv_c_inline = no; then
50019       gl_cv_c_inline_effective=no
50020     else
50021                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50022/* end confdefs.h.  */
50023
50024int
50025main ()
50026{
50027#ifdef __NO_INLINE__
50028               #error "inline is not effective"
50029             #endif
50030  ;
50031  return 0;
50032}
50033_ACEOF
50034if ac_fn_c_try_compile "$LINENO"; then :
50035  gl_cv_c_inline_effective=yes
50036else
50037  gl_cv_c_inline_effective=no
50038fi
50039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50040     fi
50041
50042fi
50043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
50044$as_echo "$gl_cv_c_inline_effective" >&6; }
50045  if test $gl_cv_c_inline_effective = yes; then
50046
50047$as_echo "#define HAVE_INLINE 1" >>confdefs.h
50048
50049  fi
50050
50051
50052
50053
50054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
50055$as_echo_n "checking for ssize_t... " >&6; }
50056if ${gt_cv_ssize_t+:} false; then :
50057  $as_echo_n "(cached) " >&6
50058else
50059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50060/* end confdefs.h.  */
50061#include <sys/types.h>
50062int
50063main ()
50064{
50065int x = sizeof (ssize_t *) + sizeof (ssize_t);
50066            return !x;
50067  ;
50068  return 0;
50069}
50070_ACEOF
50071if ac_fn_c_try_compile "$LINENO"; then :
50072  gt_cv_ssize_t=yes
50073else
50074  gt_cv_ssize_t=no
50075fi
50076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50077fi
50078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
50079$as_echo "$gt_cv_ssize_t" >&6; }
50080  if test $gt_cv_ssize_t = no; then
50081
50082$as_echo "#define ssize_t int" >>confdefs.h
50083
50084  fi
50085
50086
50087
50088
50089
50090          if test "$ac_cv_header_stdbool_h" = yes; then
50091    case "$host_os" in
50092      solaris*)
50093        if test -z "$GCC"; then
50094          STDBOOL_H='stdbool.h'
50095        else
50096          STDBOOL_H=''
50097        fi
50098        ;;
50099      *)
50100        STDBOOL_H=''
50101        ;;
50102    esac
50103  else
50104    STDBOOL_H='stdbool.h'
50105  fi
50106
50107   if test -n "$STDBOOL_H"; then
50108  GL_GENERATE_STDBOOL_H_TRUE=
50109  GL_GENERATE_STDBOOL_H_FALSE='#'
50110else
50111  GL_GENERATE_STDBOOL_H_TRUE='#'
50112  GL_GENERATE_STDBOOL_H_FALSE=
50113fi
50114
50115
50116  if test "$ac_cv_type__Bool" = yes; then
50117    HAVE__BOOL=1
50118  else
50119    HAVE__BOOL=0
50120  fi
50121
50122
50123
50124
50125
50126
50127
50128      if  { test "$HAVE_LIBUNISTRING" != yes \
50129    || {
50130
50131
50132
50133            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50134            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50135                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50136                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50137                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
50138                         }
50139                    }
50140               }
50141
50142
50143
50144
50145       }
50146  }; then
50147    LIBUNISTRING_UNICTYPE_H='unictype.h'
50148  else
50149    LIBUNISTRING_UNICTYPE_H=
50150  fi
50151
50152
50153
50154
50155       if  { test "$HAVE_LIBUNISTRING" != yes \
50156    || {
50157
50158
50159
50160            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50161            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50162                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50163                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50164                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50165                         }
50166                    }
50167               }
50168
50169
50170
50171
50172       }
50173  }; then
50174  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_TRUE=
50175  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_FALSE='#'
50176else
50177  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_TRUE='#'
50178  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_FALSE=
50179fi
50180
50181
50182
50183
50184       if  { test "$HAVE_LIBUNISTRING" != yes \
50185    || {
50186
50187
50188
50189            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50190            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50191                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50192                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50193                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50194                         }
50195                    }
50196               }
50197
50198
50199
50200
50201       }
50202  }; then
50203  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_TRUE=
50204  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_FALSE='#'
50205else
50206  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_TRUE='#'
50207  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_FALSE=
50208fi
50209
50210
50211
50212
50213       if  { test "$HAVE_LIBUNISTRING" != yes \
50214    || {
50215
50216
50217
50218            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50219            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50220                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50221                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50222                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50223                         }
50224                    }
50225               }
50226
50227
50228
50229
50230       }
50231  }; then
50232  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_TRUE=
50233  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_FALSE='#'
50234else
50235  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_TRUE='#'
50236  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_FALSE=
50237fi
50238
50239
50240
50241
50242       if  { test "$HAVE_LIBUNISTRING" != yes \
50243    || {
50244
50245
50246
50247            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50248            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50249                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50250                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50251                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50252                         }
50253                    }
50254               }
50255
50256
50257
50258
50259       }
50260  }; then
50261  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_TRUE=
50262  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_FALSE='#'
50263else
50264  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_TRUE='#'
50265  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_FALSE=
50266fi
50267
50268
50269
50270
50271       if  { test "$HAVE_LIBUNISTRING" != yes \
50272    || {
50273
50274
50275
50276            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50277            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50278                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50279                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50280                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50281                         }
50282                    }
50283               }
50284
50285
50286
50287
50288       }
50289  }; then
50290  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_TRUE=
50291  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_FALSE='#'
50292else
50293  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_TRUE='#'
50294  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_FALSE=
50295fi
50296
50297
50298
50299
50300       if  { test "$HAVE_LIBUNISTRING" != yes \
50301    || {
50302
50303
50304
50305            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50306            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50307                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50308                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50309                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50310                         }
50311                    }
50312               }
50313
50314
50315
50316
50317       }
50318  }; then
50319  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_TRUE=
50320  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_FALSE='#'
50321else
50322  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_TRUE='#'
50323  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_FALSE=
50324fi
50325
50326
50327
50328
50329       if  { test "$HAVE_LIBUNISTRING" != yes \
50330    || {
50331
50332
50333
50334            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50335            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50336                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50337                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50338                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50339                         }
50340                    }
50341               }
50342
50343
50344
50345
50346       }
50347  }; then
50348  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_TRUE=
50349  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_FALSE='#'
50350else
50351  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_TRUE='#'
50352  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_FALSE=
50353fi
50354
50355
50356
50357
50358       if  { test "$HAVE_LIBUNISTRING" != yes \
50359    || {
50360
50361
50362
50363            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50364            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50365                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50366                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50367                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50368                         }
50369                    }
50370               }
50371
50372
50373
50374
50375       }
50376  }; then
50377  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_TRUE=
50378  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_FALSE='#'
50379else
50380  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_TRUE='#'
50381  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_FALSE=
50382fi
50383
50384
50385
50386
50387       if  { test "$HAVE_LIBUNISTRING" != yes \
50388    || {
50389
50390
50391
50392            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50393            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50394                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50395                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50396                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50397                         }
50398                    }
50399               }
50400
50401
50402
50403
50404       }
50405  }; then
50406  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_TRUE=
50407  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_FALSE='#'
50408else
50409  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_TRUE='#'
50410  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_FALSE=
50411fi
50412
50413
50414
50415
50416       if  { test "$HAVE_LIBUNISTRING" != yes \
50417    || {
50418
50419
50420
50421            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50422            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50423                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50424                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50425                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50426                         }
50427                    }
50428               }
50429
50430
50431
50432
50433       }
50434  }; then
50435  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_TRUE=
50436  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_FALSE='#'
50437else
50438  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_TRUE='#'
50439  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_FALSE=
50440fi
50441
50442
50443
50444
50445       if  { test "$HAVE_LIBUNISTRING" != yes \
50446    || {
50447
50448
50449
50450            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50451            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50452                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50453                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50454                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50455                         }
50456                    }
50457               }
50458
50459
50460
50461
50462       }
50463  }; then
50464  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_TRUE=
50465  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_FALSE='#'
50466else
50467  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_TRUE='#'
50468  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_FALSE=
50469fi
50470
50471
50472
50473
50474       if  { test "$HAVE_LIBUNISTRING" != yes \
50475    || {
50476
50477
50478
50479            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50480            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50481                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50482                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50483                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50484                         }
50485                    }
50486               }
50487
50488
50489
50490
50491       }
50492  }; then
50493  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_TRUE=
50494  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_FALSE='#'
50495else
50496  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_TRUE='#'
50497  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_FALSE=
50498fi
50499
50500
50501
50502
50503       if  { test "$HAVE_LIBUNISTRING" != yes \
50504    || {
50505
50506
50507
50508            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50509            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50510                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50511                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50512                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50513                         }
50514                    }
50515               }
50516
50517
50518
50519
50520       }
50521  }; then
50522  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_TRUE=
50523  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_FALSE='#'
50524else
50525  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_TRUE='#'
50526  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_FALSE=
50527fi
50528
50529
50530
50531
50532       if  { test "$HAVE_LIBUNISTRING" != yes \
50533    || {
50534
50535
50536
50537            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50538            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50539                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50540                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50541                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50542                         }
50543                    }
50544               }
50545
50546
50547
50548
50549       }
50550  }; then
50551  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_TRUE=
50552  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_FALSE='#'
50553else
50554  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_TRUE='#'
50555  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_FALSE=
50556fi
50557
50558
50559
50560
50561       if  { test "$HAVE_LIBUNISTRING" != yes \
50562    || {
50563
50564
50565
50566            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50567            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50568                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50569                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50570                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50571                         }
50572                    }
50573               }
50574
50575
50576
50577
50578       }
50579  }; then
50580  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_TRUE=
50581  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_FALSE='#'
50582else
50583  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_TRUE='#'
50584  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_FALSE=
50585fi
50586
50587
50588
50589
50590       if  { test "$HAVE_LIBUNISTRING" != yes \
50591    || {
50592
50593
50594
50595            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50596            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50597                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50598                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50599                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50600                         }
50601                    }
50602               }
50603
50604
50605
50606
50607       }
50608  }; then
50609  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_TRUE=
50610  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_FALSE='#'
50611else
50612  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_TRUE='#'
50613  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_FALSE=
50614fi
50615
50616
50617
50618
50619       if  { test "$HAVE_LIBUNISTRING" != yes \
50620    || {
50621
50622
50623
50624            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50625            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50626                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50627                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50628                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50629                         }
50630                    }
50631               }
50632
50633
50634
50635
50636       }
50637  }; then
50638  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_TRUE=
50639  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_FALSE='#'
50640else
50641  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_TRUE='#'
50642  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_FALSE=
50643fi
50644
50645
50646
50647
50648       if  { test "$HAVE_LIBUNISTRING" != yes \
50649    || {
50650
50651
50652
50653            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50654            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50655                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50656                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50657                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50658                         }
50659                    }
50660               }
50661
50662
50663
50664
50665       }
50666  }; then
50667  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_TRUE=
50668  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_FALSE='#'
50669else
50670  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_TRUE='#'
50671  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_FALSE=
50672fi
50673
50674
50675
50676
50677       if  { test "$HAVE_LIBUNISTRING" != yes \
50678    || {
50679
50680
50681
50682            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50683            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50684                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50685                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50686                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50687                         }
50688                    }
50689               }
50690
50691
50692
50693
50694       }
50695  }; then
50696  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_TRUE=
50697  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_FALSE='#'
50698else
50699  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_TRUE='#'
50700  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_FALSE=
50701fi
50702
50703
50704
50705
50706       if  { test "$HAVE_LIBUNISTRING" != yes \
50707    || {
50708
50709
50710
50711            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50712            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50713                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50714                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50715                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50716                         }
50717                    }
50718               }
50719
50720
50721
50722
50723       }
50724  }; then
50725  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_TRUE=
50726  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_FALSE='#'
50727else
50728  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_TRUE='#'
50729  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_FALSE=
50730fi
50731
50732
50733
50734
50735       if  { test "$HAVE_LIBUNISTRING" != yes \
50736    || {
50737
50738
50739
50740            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50741            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50742                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50743                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50744                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50745                         }
50746                    }
50747               }
50748
50749
50750
50751
50752       }
50753  }; then
50754  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_TRUE=
50755  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_FALSE='#'
50756else
50757  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_TRUE='#'
50758  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_FALSE=
50759fi
50760
50761
50762
50763
50764       if  { test "$HAVE_LIBUNISTRING" != yes \
50765    || {
50766
50767
50768
50769            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50770            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50771                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50772                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50773                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50774                         }
50775                    }
50776               }
50777
50778
50779
50780
50781       }
50782  }; then
50783  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_TRUE=
50784  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_FALSE='#'
50785else
50786  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_TRUE='#'
50787  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_FALSE=
50788fi
50789
50790
50791
50792
50793       if  { test "$HAVE_LIBUNISTRING" != yes \
50794    || {
50795
50796
50797
50798            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50799            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50800                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50801                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50802                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50803                         }
50804                    }
50805               }
50806
50807
50808
50809
50810       }
50811  }; then
50812  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_TRUE=
50813  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_FALSE='#'
50814else
50815  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_TRUE='#'
50816  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_FALSE=
50817fi
50818
50819
50820
50821
50822       if  { test "$HAVE_LIBUNISTRING" != yes \
50823    || {
50824
50825
50826
50827            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50828            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50829                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50830                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50831                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50832                         }
50833                    }
50834               }
50835
50836
50837
50838
50839       }
50840  }; then
50841  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_TRUE=
50842  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_FALSE='#'
50843else
50844  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_TRUE='#'
50845  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_FALSE=
50846fi
50847
50848
50849
50850
50851       if  { test "$HAVE_LIBUNISTRING" != yes \
50852    || {
50853
50854
50855
50856            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50857            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50858                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50859                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50860                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50861                         }
50862                    }
50863               }
50864
50865
50866
50867
50868       }
50869  }; then
50870  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_TRUE=
50871  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_FALSE='#'
50872else
50873  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_TRUE='#'
50874  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_FALSE=
50875fi
50876
50877
50878
50879
50880       if  { test "$HAVE_LIBUNISTRING" != yes \
50881    || {
50882
50883
50884
50885            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50886            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50887                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50888                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50889                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50890                         }
50891                    }
50892               }
50893
50894
50895
50896
50897       }
50898  }; then
50899  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_TRUE=
50900  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_FALSE='#'
50901else
50902  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_TRUE='#'
50903  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_FALSE=
50904fi
50905
50906
50907
50908
50909       if  { test "$HAVE_LIBUNISTRING" != yes \
50910    || {
50911
50912
50913
50914            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50915            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50916                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50917                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50918                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50919                         }
50920                    }
50921               }
50922
50923
50924
50925
50926       }
50927  }; then
50928  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_TRUE=
50929  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_FALSE='#'
50930else
50931  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_TRUE='#'
50932  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_FALSE=
50933fi
50934
50935
50936
50937
50938       if  { test "$HAVE_LIBUNISTRING" != yes \
50939    || {
50940
50941
50942
50943            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50944            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50945                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50946                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50947                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50948                         }
50949                    }
50950               }
50951
50952
50953
50954
50955       }
50956  }; then
50957  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_TRUE=
50958  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_FALSE='#'
50959else
50960  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_TRUE='#'
50961  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_FALSE=
50962fi
50963
50964
50965
50966
50967       if  { test "$HAVE_LIBUNISTRING" != yes \
50968    || {
50969
50970
50971
50972            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
50973            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
50974                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
50975                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
50976                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
50977                         }
50978                    }
50979               }
50980
50981
50982
50983
50984       }
50985  }; then
50986  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_TRUE=
50987  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_FALSE='#'
50988else
50989  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_TRUE='#'
50990  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_FALSE=
50991fi
50992
50993
50994
50995
50996       if  { test "$HAVE_LIBUNISTRING" != yes \
50997    || {
50998
50999
51000
51001            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51002            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51003                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51004                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51005                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51006                         }
51007                    }
51008               }
51009
51010
51011
51012
51013       }
51014  }; then
51015  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_TRUE=
51016  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_FALSE='#'
51017else
51018  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_TRUE='#'
51019  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_FALSE=
51020fi
51021
51022
51023
51024
51025       if  { test "$HAVE_LIBUNISTRING" != yes \
51026    || {
51027
51028
51029
51030            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51031            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51032                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51033                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51034                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51035                         }
51036                    }
51037               }
51038
51039
51040
51041
51042       }
51043  }; then
51044  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_TRUE=
51045  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_FALSE='#'
51046else
51047  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_TRUE='#'
51048  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_FALSE=
51049fi
51050
51051
51052
51053
51054       if  { test "$HAVE_LIBUNISTRING" != yes \
51055    || {
51056
51057
51058
51059            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51060            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51061                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51062                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51063                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51064                         }
51065                    }
51066               }
51067
51068
51069
51070
51071       }
51072  }; then
51073  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_TRUE=
51074  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_FALSE='#'
51075else
51076  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_TRUE='#'
51077  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_FALSE=
51078fi
51079
51080
51081
51082
51083       if  { test "$HAVE_LIBUNISTRING" != yes \
51084    || {
51085
51086
51087
51088            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51089            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51090                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51091                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51092                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51093                         }
51094                    }
51095               }
51096
51097
51098
51099
51100       }
51101  }; then
51102  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_TRUE=
51103  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_FALSE='#'
51104else
51105  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_TRUE='#'
51106  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_FALSE=
51107fi
51108
51109
51110
51111
51112       if  { test "$HAVE_LIBUNISTRING" != yes \
51113    || {
51114
51115
51116
51117            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51118            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51119                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51120                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51121                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51122                         }
51123                    }
51124               }
51125
51126
51127
51128
51129       }
51130  }; then
51131  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_TRUE=
51132  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_FALSE='#'
51133else
51134  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_TRUE='#'
51135  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_FALSE=
51136fi
51137
51138
51139
51140
51141       if  { test "$HAVE_LIBUNISTRING" != yes \
51142    || {
51143
51144
51145
51146            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51147            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51148                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51149                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51150                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51151                         }
51152                    }
51153               }
51154
51155
51156
51157
51158       }
51159  }; then
51160  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_TRUE=
51161  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_FALSE='#'
51162else
51163  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_TRUE='#'
51164  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_FALSE=
51165fi
51166
51167
51168
51169
51170       if  { test "$HAVE_LIBUNISTRING" != yes \
51171    || {
51172
51173
51174
51175            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51176            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51177                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51178                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51179                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51180                         }
51181                    }
51182               }
51183
51184
51185
51186
51187       }
51188  }; then
51189  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_TRUE=
51190  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_FALSE='#'
51191else
51192  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_TRUE='#'
51193  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_FALSE=
51194fi
51195
51196
51197
51198
51199       if  { test "$HAVE_LIBUNISTRING" != yes \
51200    || {
51201
51202
51203
51204            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51205            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51206                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51207                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51208                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51209                         }
51210                    }
51211               }
51212
51213
51214
51215
51216       }
51217  }; then
51218  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_TRUE=
51219  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_FALSE='#'
51220else
51221  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_TRUE='#'
51222  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_FALSE=
51223fi
51224
51225
51226
51227
51228       if  { test "$HAVE_LIBUNISTRING" != yes \
51229    || {
51230
51231
51232
51233            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51234            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51235                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51236                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51237                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51238                         }
51239                    }
51240               }
51241
51242
51243
51244
51245       }
51246  }; then
51247  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_TRUE=
51248  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_FALSE='#'
51249else
51250  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_TRUE='#'
51251  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_FALSE=
51252fi
51253
51254
51255
51256
51257       if  { test "$HAVE_LIBUNISTRING" != yes \
51258    || {
51259
51260
51261
51262            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51263            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51264                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51265                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51266                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51267                         }
51268                    }
51269               }
51270
51271
51272
51273
51274       }
51275  }; then
51276  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_TRUE=
51277  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_FALSE='#'
51278else
51279  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_TRUE='#'
51280  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_FALSE=
51281fi
51282
51283
51284
51285
51286       if  { test "$HAVE_LIBUNISTRING" != yes \
51287    || {
51288
51289
51290
51291            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51292            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51293                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51294                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51295                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51296                         }
51297                    }
51298               }
51299
51300
51301
51302
51303       }
51304  }; then
51305  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_TRUE=
51306  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_FALSE='#'
51307else
51308  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_TRUE='#'
51309  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_FALSE=
51310fi
51311
51312
51313
51314
51315       if  { test "$HAVE_LIBUNISTRING" != yes \
51316    || {
51317
51318
51319
51320            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51321            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51322                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51323                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51324                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51325                         }
51326                    }
51327               }
51328
51329
51330
51331
51332       }
51333  }; then
51334  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_TRUE=
51335  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_FALSE='#'
51336else
51337  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_TRUE='#'
51338  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_FALSE=
51339fi
51340
51341
51342
51343
51344       if  { test "$HAVE_LIBUNISTRING" != yes \
51345    || {
51346
51347
51348
51349            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51350            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51351                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51352                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51353                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51354                         }
51355                    }
51356               }
51357
51358
51359
51360
51361       }
51362  }; then
51363  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_TRUE=
51364  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_FALSE='#'
51365else
51366  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_TRUE='#'
51367  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_FALSE=
51368fi
51369
51370
51371
51372
51373       if  { test "$HAVE_LIBUNISTRING" != yes \
51374    || {
51375
51376
51377
51378            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51379            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51380                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51381                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51382                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51383                         }
51384                    }
51385               }
51386
51387
51388
51389
51390       }
51391  }; then
51392  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_TRUE=
51393  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_FALSE='#'
51394else
51395  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_TRUE='#'
51396  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_FALSE=
51397fi
51398
51399
51400
51401
51402       if  { test "$HAVE_LIBUNISTRING" != yes \
51403    || {
51404
51405
51406
51407            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51408            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51409                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51410                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51411                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51412                         }
51413                    }
51414               }
51415
51416
51417
51418
51419       }
51420  }; then
51421  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE=
51422  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE='#'
51423else
51424  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE='#'
51425  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE=
51426fi
51427
51428
51429
51430
51431
51432       if  { test "$HAVE_LIBUNISTRING" != yes \
51433    || {
51434
51435
51436
51437            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51438            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51439                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51440                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51441                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51442                         }
51443                    }
51444               }
51445
51446
51447
51448
51449       }
51450  }; then
51451  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE=
51452  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE='#'
51453else
51454  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE='#'
51455  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE=
51456fi
51457
51458
51459
51460
51461       if  { test "$HAVE_LIBUNISTRING" != yes \
51462    || {
51463
51464
51465
51466            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51467            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51468                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51469                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51470                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51471                         }
51472                    }
51473               }
51474
51475
51476
51477
51478       }
51479  }; then
51480  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_TRUE=
51481  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_FALSE='#'
51482else
51483  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_TRUE='#'
51484  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_FALSE=
51485fi
51486
51487
51488
51489
51490
51491       if  { test "$HAVE_LIBUNISTRING" != yes \
51492    || {
51493
51494
51495
51496            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51497            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51498                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51499                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51500                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51501                         }
51502                    }
51503               }
51504
51505
51506
51507
51508       }
51509  }; then
51510  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_TRUE=
51511  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_FALSE='#'
51512else
51513  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_TRUE='#'
51514  LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_FALSE=
51515fi
51516
51517
51518
51519
51520       if  { test "$HAVE_LIBUNISTRING" != yes \
51521    || {
51522
51523
51524
51525            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51526            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51527                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51528                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51529                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51530                         }
51531                    }
51532               }
51533
51534
51535
51536
51537       }
51538  }; then
51539  LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE=
51540  LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE='#'
51541else
51542  LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE='#'
51543  LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE=
51544fi
51545
51546
51547
51548
51549
51550       if  { test "$HAVE_LIBUNISTRING" != yes \
51551    || {
51552
51553
51554
51555            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51556            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51557                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51558                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51559                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51560                         }
51561                    }
51562               }
51563
51564
51565
51566
51567       }
51568  }; then
51569  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_TRUE=
51570  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_FALSE='#'
51571else
51572  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_TRUE='#'
51573  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_FALSE=
51574fi
51575
51576
51577
51578
51579
51580       if  { test "$HAVE_LIBUNISTRING" != yes \
51581    || {
51582
51583
51584
51585            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51586            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51587                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51588                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51589                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51590                         }
51591                    }
51592               }
51593
51594
51595
51596
51597       }
51598  }; then
51599  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_TRUE=
51600  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_FALSE='#'
51601else
51602  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_TRUE='#'
51603  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_FALSE=
51604fi
51605
51606
51607
51608
51609
51610       if  { test "$HAVE_LIBUNISTRING" != yes \
51611    || {
51612
51613
51614
51615            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51616            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51617                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51618                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51619                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51620                         }
51621                    }
51622               }
51623
51624
51625
51626
51627       }
51628  }; then
51629  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_TRUE=
51630  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_FALSE='#'
51631else
51632  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_TRUE='#'
51633  LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_FALSE=
51634fi
51635
51636
51637
51638
51639      if  { test "$HAVE_LIBUNISTRING" != yes \
51640    || {
51641
51642
51643
51644            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51645            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51646                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51647                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51648                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
51649                         }
51650                    }
51651               }
51652
51653
51654
51655
51656       }
51657  }; then
51658    LIBUNISTRING_UNINORM_H='uninorm.h'
51659  else
51660    LIBUNISTRING_UNINORM_H=
51661  fi
51662
51663
51664
51665
51666       if  { test "$HAVE_LIBUNISTRING" != yes \
51667    || {
51668
51669
51670
51671            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51672            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51673                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51674                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51675                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51676                         }
51677                    }
51678               }
51679
51680
51681
51682
51683       }
51684  }; then
51685  LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE=
51686  LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE='#'
51687else
51688  LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE='#'
51689  LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE=
51690fi
51691
51692
51693
51694
51695       if  { test "$HAVE_LIBUNISTRING" != yes \
51696    || {
51697
51698
51699
51700            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51701            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51702                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51703                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51704                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51705                         }
51706                    }
51707               }
51708
51709
51710
51711
51712       }
51713  }; then
51714  LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_TRUE=
51715  LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_FALSE='#'
51716else
51717  LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_TRUE='#'
51718  LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_FALSE=
51719fi
51720
51721
51722
51723
51724       if  { test "$HAVE_LIBUNISTRING" != yes \
51725    || {
51726
51727
51728
51729            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51730            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51731                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51732                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51733                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51734                         }
51735                    }
51736               }
51737
51738
51739
51740
51741       }
51742  }; then
51743  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE=
51744  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE='#'
51745else
51746  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE='#'
51747  LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE=
51748fi
51749
51750
51751
51752
51753
51754       if  { test "$HAVE_LIBUNISTRING" != yes \
51755    || {
51756
51757
51758
51759            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51760            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51761                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51762                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51763                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51764                         }
51765                    }
51766               }
51767
51768
51769
51770
51771       }
51772  }; then
51773  LIBUNISTRING_COMPILE_UNINORM_NFC_TRUE=
51774  LIBUNISTRING_COMPILE_UNINORM_NFC_FALSE='#'
51775else
51776  LIBUNISTRING_COMPILE_UNINORM_NFC_TRUE='#'
51777  LIBUNISTRING_COMPILE_UNINORM_NFC_FALSE=
51778fi
51779
51780
51781
51782
51783       if  { test "$HAVE_LIBUNISTRING" != yes \
51784    || {
51785
51786
51787
51788            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51789            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51790                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51791                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51792                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51793                         }
51794                    }
51795               }
51796
51797
51798
51799
51800       }
51801  }; then
51802  LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE=
51803  LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE='#'
51804else
51805  LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE='#'
51806  LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE=
51807fi
51808
51809
51810
51811
51812       if  { test "$HAVE_LIBUNISTRING" != yes \
51813    || {
51814
51815
51816
51817            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51818            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51819                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51820                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51821                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51822                         }
51823                    }
51824               }
51825
51826
51827
51828
51829       }
51830  }; then
51831  LIBUNISTRING_COMPILE_UNINORM_NFKC_TRUE=
51832  LIBUNISTRING_COMPILE_UNINORM_NFKC_FALSE='#'
51833else
51834  LIBUNISTRING_COMPILE_UNINORM_NFKC_TRUE='#'
51835  LIBUNISTRING_COMPILE_UNINORM_NFKC_FALSE=
51836fi
51837
51838
51839
51840
51841       if  { test "$HAVE_LIBUNISTRING" != yes \
51842    || {
51843
51844
51845
51846            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51847            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51848                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51849                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51850                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51851                         }
51852                    }
51853               }
51854
51855
51856
51857
51858       }
51859  }; then
51860  LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE=
51861  LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE='#'
51862else
51863  LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE='#'
51864  LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE=
51865fi
51866
51867
51868
51869
51870$as_echo "#define GNULIB_TEST_UNINORM_U16_NORMALIZE 1" >>confdefs.h
51871
51872
51873
51874
51875       if  { test "$HAVE_LIBUNISTRING" != yes \
51876    || {
51877
51878
51879
51880            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51881            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51882                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51883                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51884                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51885                         }
51886                    }
51887               }
51888
51889
51890
51891
51892       }
51893  }; then
51894  LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_TRUE=
51895  LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_FALSE='#'
51896else
51897  LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_TRUE='#'
51898  LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_FALSE=
51899fi
51900
51901
51902
51903
51904$as_echo "#define GNULIB_TEST_UNINORM_U32_NORMALIZE 1" >>confdefs.h
51905
51906
51907
51908
51909       if  { test "$HAVE_LIBUNISTRING" != yes \
51910    || {
51911
51912
51913
51914            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51915            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51916                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51917                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51918                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51919                         }
51920                    }
51921               }
51922
51923
51924
51925
51926       }
51927  }; then
51928  LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_TRUE=
51929  LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_FALSE='#'
51930else
51931  LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_TRUE='#'
51932  LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_FALSE=
51933fi
51934
51935
51936
51937
51938$as_echo "#define GNULIB_TEST_UNINORM_U8_NORMALIZE 1" >>confdefs.h
51939
51940
51941
51942
51943       if  { test "$HAVE_LIBUNISTRING" != yes \
51944    || {
51945
51946
51947
51948            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51949            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51950                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51951                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51952                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
51953                         }
51954                    }
51955               }
51956
51957
51958
51959
51960       }
51961  }; then
51962  LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE=
51963  LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE='#'
51964else
51965  LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE='#'
51966  LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE=
51967fi
51968
51969
51970
51971
51972      if  { test "$HAVE_LIBUNISTRING" != yes \
51973    || {
51974
51975
51976
51977            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51978            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51979                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51980                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51981                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
51982                         }
51983                    }
51984               }
51985
51986
51987
51988
51989       }
51990  }; then
51991    LIBUNISTRING_UNISTR_H='unistr.h'
51992  else
51993    LIBUNISTRING_UNISTR_H=
51994  fi
51995
51996
51997
51998
51999       if  { test "$HAVE_LIBUNISTRING" != yes \
52000    || {
52001
52002
52003
52004            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52005            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52006                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52007                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52008                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52009                         }
52010                    }
52011               }
52012
52013
52014
52015
52016       }
52017  }; then
52018  LIBUNISTRING_COMPILE_UNISTR_U16_CPY_TRUE=
52019  LIBUNISTRING_COMPILE_UNISTR_U16_CPY_FALSE='#'
52020else
52021  LIBUNISTRING_COMPILE_UNISTR_U16_CPY_TRUE='#'
52022  LIBUNISTRING_COMPILE_UNISTR_U16_CPY_FALSE=
52023fi
52024
52025
52026
52027
52028cat >>confdefs.h <<_ACEOF
52029#define GNULIB_UNISTR_U16_MBTOUC_UNSAFE 1
52030_ACEOF
52031
52032
52033
52034
52035       if  { test "$HAVE_LIBUNISTRING" != yes \
52036    || {
52037
52038
52039
52040            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52041            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52042                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52043                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52044                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52045                         }
52046                    }
52047               }
52048
52049
52050
52051
52052       }
52053  }; then
52054  LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_TRUE=
52055  LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_FALSE='#'
52056else
52057  LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_TRUE='#'
52058  LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_FALSE=
52059fi
52060
52061
52062
52063
52064cat >>confdefs.h <<_ACEOF
52065#define GNULIB_UNISTR_U16_MBTOUCR 1
52066_ACEOF
52067
52068
52069
52070
52071       if  { test "$HAVE_LIBUNISTRING" != yes \
52072    || {
52073
52074
52075
52076            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52077            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52078                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52079                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52080                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52081                         }
52082                    }
52083               }
52084
52085
52086
52087
52088       }
52089  }; then
52090  LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_TRUE=
52091  LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_FALSE='#'
52092else
52093  LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_TRUE='#'
52094  LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_FALSE=
52095fi
52096
52097
52098
52099
52100       if  { test "$HAVE_LIBUNISTRING" != yes \
52101    || {
52102
52103
52104
52105            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52106            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52107                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52108                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52109                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 3
52110                         }
52111                    }
52112               }
52113
52114
52115
52116
52117       }
52118  }; then
52119  LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_TRUE=
52120  LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_FALSE='#'
52121else
52122  LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_TRUE='#'
52123  LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_FALSE=
52124fi
52125
52126
52127
52128
52129cat >>confdefs.h <<_ACEOF
52130#define GNULIB_UNISTR_U16_UCTOMB 1
52131_ACEOF
52132
52133
52134
52135
52136       if  { test "$HAVE_LIBUNISTRING" != yes \
52137    || {
52138
52139
52140
52141            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52142            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52143                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52144                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52145                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52146                         }
52147                    }
52148               }
52149
52150
52151
52152
52153       }
52154  }; then
52155  LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_TRUE=
52156  LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_FALSE='#'
52157else
52158  LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_TRUE='#'
52159  LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_FALSE=
52160fi
52161
52162
52163
52164
52165       if  { test "$HAVE_LIBUNISTRING" != yes \
52166    || {
52167
52168
52169
52170            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52171            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52172                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52173                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52174                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52175                         }
52176                    }
52177               }
52178
52179
52180
52181
52182       }
52183  }; then
52184  LIBUNISTRING_COMPILE_UNISTR_U32_CPY_TRUE=
52185  LIBUNISTRING_COMPILE_UNISTR_U32_CPY_FALSE='#'
52186else
52187  LIBUNISTRING_COMPILE_UNISTR_U32_CPY_TRUE='#'
52188  LIBUNISTRING_COMPILE_UNISTR_U32_CPY_FALSE=
52189fi
52190
52191
52192
52193
52194cat >>confdefs.h <<_ACEOF
52195#define GNULIB_UNISTR_U32_MBTOUC_UNSAFE 1
52196_ACEOF
52197
52198
52199
52200
52201       if  { test "$HAVE_LIBUNISTRING" != yes \
52202    || {
52203
52204
52205
52206            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52207            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52208                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52209                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52210                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52211                         }
52212                    }
52213               }
52214
52215
52216
52217
52218       }
52219  }; then
52220  LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_TRUE=
52221  LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_FALSE='#'
52222else
52223  LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_TRUE='#'
52224  LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_FALSE=
52225fi
52226
52227
52228
52229
52230       if  { test "$HAVE_LIBUNISTRING" != yes \
52231    || {
52232
52233
52234
52235            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52236            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52237                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52238                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52239                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52240                         }
52241                    }
52242               }
52243
52244
52245
52246
52247       }
52248  }; then
52249  LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_TRUE=
52250  LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_FALSE='#'
52251else
52252  LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_TRUE='#'
52253  LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_FALSE=
52254fi
52255
52256
52257
52258
52259cat >>confdefs.h <<_ACEOF
52260#define GNULIB_UNISTR_U32_UCTOMB 1
52261_ACEOF
52262
52263
52264
52265
52266       if  { test "$HAVE_LIBUNISTRING" != yes \
52267    || {
52268
52269
52270
52271            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52272            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52273                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52274                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52275                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52276                         }
52277                    }
52278               }
52279
52280
52281
52282
52283       }
52284  }; then
52285  LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_TRUE=
52286  LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_FALSE='#'
52287else
52288  LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_TRUE='#'
52289  LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_FALSE=
52290fi
52291
52292
52293
52294
52295       if  { test "$HAVE_LIBUNISTRING" != yes \
52296    || {
52297
52298
52299
52300            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52301            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52302                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52303                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52304                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52305                         }
52306                    }
52307               }
52308
52309
52310
52311
52312       }
52313  }; then
52314  LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
52315  LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
52316else
52317  LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
52318  LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
52319fi
52320
52321
52322
52323
52324       if  { test "$HAVE_LIBUNISTRING" != yes \
52325    || {
52326
52327
52328
52329            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52330            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52331                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52332                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52333                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52334                         }
52335                    }
52336               }
52337
52338
52339
52340
52341       }
52342  }; then
52343  LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE=
52344  LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE='#'
52345else
52346  LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE='#'
52347  LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE=
52348fi
52349
52350
52351
52352
52353cat >>confdefs.h <<_ACEOF
52354#define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
52355_ACEOF
52356
52357
52358
52359
52360       if  { test "$HAVE_LIBUNISTRING" != yes \
52361    || {
52362
52363
52364
52365            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52366            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52367                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52368                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52369                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
52370                         }
52371                    }
52372               }
52373
52374
52375
52376
52377       }
52378  }; then
52379  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
52380  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
52381else
52382  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
52383  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
52384fi
52385
52386
52387
52388
52389cat >>confdefs.h <<_ACEOF
52390#define GNULIB_UNISTR_U8_MBTOUCR 1
52391_ACEOF
52392
52393
52394
52395
52396       if  { test "$HAVE_LIBUNISTRING" != yes \
52397    || {
52398
52399
52400
52401            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52402            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52403                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52404                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52405                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52406                         }
52407                    }
52408               }
52409
52410
52411
52412
52413       }
52414  }; then
52415  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
52416  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
52417else
52418  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
52419  LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
52420fi
52421
52422
52423
52424
52425       if  { test "$HAVE_LIBUNISTRING" != yes \
52426    || {
52427
52428
52429
52430            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52431            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52432                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52433                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52434                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 3
52435                         }
52436                    }
52437               }
52438
52439
52440
52441
52442       }
52443  }; then
52444  LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_TRUE=
52445  LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_FALSE='#'
52446else
52447  LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_TRUE='#'
52448  LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_FALSE=
52449fi
52450
52451
52452
52453
52454       if  { test "$HAVE_LIBUNISTRING" != yes \
52455    || {
52456
52457
52458
52459            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52460            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52461                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52462                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52463                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 3
52464                         }
52465                    }
52466               }
52467
52468
52469
52470
52471       }
52472  }; then
52473  LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_TRUE=
52474  LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_FALSE='#'
52475else
52476  LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_TRUE='#'
52477  LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_FALSE=
52478fi
52479
52480
52481
52482
52483cat >>confdefs.h <<_ACEOF
52484#define GNULIB_UNISTR_U8_UCTOMB 1
52485_ACEOF
52486
52487
52488
52489
52490       if  { test "$HAVE_LIBUNISTRING" != yes \
52491    || {
52492
52493
52494
52495            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52496            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52497                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52498                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52499                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52500                         }
52501                    }
52502               }
52503
52504
52505
52506
52507       }
52508  }; then
52509  LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
52510  LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
52511else
52512  LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
52513  LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
52514fi
52515
52516
52517
52518
52519      if  { test "$HAVE_LIBUNISTRING" != yes \
52520    || {
52521
52522
52523
52524            test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52525            || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52526                 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52527                      || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52528                           && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
52529                         }
52530                    }
52531               }
52532
52533
52534
52535
52536       }
52537  }; then
52538    LIBUNISTRING_UNITYPES_H='unitypes.h'
52539  else
52540    LIBUNISTRING_UNITYPES_H=
52541  fi
52542
52543
52544  # End of code from modules
52545
52546
52547
52548
52549
52550
52551
52552  gltests_libdeps=
52553  gltests_ltlibdeps=
52554
52555
52556
52557
52558
52559
52560
52561
52562
52563
52564  gl_source_base='tests'
52565  unistringtests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
52566
52567  gl_module_indicator_condition=$unistringtests_WITNESS
52568
52569
52570
52571
52572
52573
52574
52575
52576
52577
52578
52579# disable the extended test suite at tests/suite if asked, or if we are not running in git master
52580# Check whether --enable-full-test-suite was given.
52581if test "${enable_full_test_suite+set}" = set; then :
52582  enableval=$enable_full_test_suite; full_test_suite=$enableval
52583else
52584  full_test_suite=yes
52585fi
52586
52587
52588# test if we are in git master or in release build. In release
52589# builds we do not use valgrind.
52590SUITE_FILE="${srcdir}/tests/suite/prime-check.c"
52591if test "$full_test_suite" = yes && test ! -f "$SUITE_FILE";then
52592	full_test_suite=no
52593fi
52594
52595 if test "$full_test_suite" = "yes"; then
52596  WANT_TEST_SUITE_TRUE=
52597  WANT_TEST_SUITE_FALSE='#'
52598else
52599  WANT_TEST_SUITE_TRUE='#'
52600  WANT_TEST_SUITE_FALSE=
52601fi
52602
52603
52604# parts of the extended test suite use Python
52605
52606
52607
52608
52609
52610
52611        # Find any Python interpreter.
52612    if test -z "$PYTHON"; then
52613      for ac_prog in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0
52614do
52615  # Extract the first word of "$ac_prog", so it can be a program name with args.
52616set dummy $ac_prog; ac_word=$2
52617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52618$as_echo_n "checking for $ac_word... " >&6; }
52619if ${ac_cv_path_PYTHON+:} false; then :
52620  $as_echo_n "(cached) " >&6
52621else
52622  case $PYTHON in
52623  [\\/]* | ?:[\\/]*)
52624  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
52625  ;;
52626  *)
52627  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52628for as_dir in $PATH
52629do
52630  IFS=$as_save_IFS
52631  test -z "$as_dir" && as_dir=.
52632    for ac_exec_ext in '' $ac_executable_extensions; do
52633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52634    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
52635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
52636    break 2
52637  fi
52638done
52639  done
52640IFS=$as_save_IFS
52641
52642  ;;
52643esac
52644fi
52645PYTHON=$ac_cv_path_PYTHON
52646if test -n "$PYTHON"; then
52647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
52648$as_echo "$PYTHON" >&6; }
52649else
52650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52651$as_echo "no" >&6; }
52652fi
52653
52654
52655  test -n "$PYTHON" && break
52656done
52657test -n "$PYTHON" || PYTHON=":"
52658
52659    fi
52660    am_display_PYTHON=python
52661
52662
52663  if test "$PYTHON" = :; then
52664      :
52665  else
52666
52667
52668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
52669$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
52670if ${am_cv_python_version+:} false; then :
52671  $as_echo_n "(cached) " >&6
52672else
52673  am_cv_python_version=`$PYTHON -c "import sys; print('%u.%u' % sys.version_info[:2])"`
52674fi
52675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
52676$as_echo "$am_cv_python_version" >&6; }
52677  PYTHON_VERSION=$am_cv_python_version
52678
52679
52680
52681  PYTHON_PREFIX='${prefix}'
52682
52683  PYTHON_EXEC_PREFIX='${exec_prefix}'
52684
52685
52686
52687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
52688$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
52689if ${am_cv_python_platform+:} false; then :
52690  $as_echo_n "(cached) " >&6
52691else
52692  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
52693fi
52694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
52695$as_echo "$am_cv_python_platform" >&6; }
52696  PYTHON_PLATFORM=$am_cv_python_platform
52697
52698
52699  # Just factor out some code duplication.
52700  am_python_setup_sysconfig="\
52701import sys
52702# Prefer sysconfig over distutils.sysconfig, for better compatibility
52703# with python 3.x.  See automake bug#10227.
52704try:
52705    import sysconfig
52706except ImportError:
52707    can_use_sysconfig = 0
52708else:
52709    can_use_sysconfig = 1
52710# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
52711# <https://github.com/pypa/virtualenv/issues/118>
52712try:
52713    from platform import python_implementation
52714    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
52715        can_use_sysconfig = 0
52716except ImportError:
52717    pass"
52718
52719
52720            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
52721$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
52722if ${am_cv_python_pythondir+:} false; then :
52723  $as_echo_n "(cached) " >&6
52724else
52725  if test "x$prefix" = xNONE
52726     then
52727       am_py_prefix=$ac_default_prefix
52728     else
52729       am_py_prefix=$prefix
52730     fi
52731     am_cv_python_pythondir=`$PYTHON -c "
52732$am_python_setup_sysconfig
52733if can_use_sysconfig:
52734    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
52735else:
52736    from distutils import sysconfig
52737    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
52738sys.stdout.write(sitedir)"`
52739     case $am_cv_python_pythondir in
52740     $am_py_prefix*)
52741       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
52742       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
52743       ;;
52744     *)
52745       case $am_py_prefix in
52746         /usr|/System*) ;;
52747         *)
52748	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
52749	  ;;
52750       esac
52751       ;;
52752     esac
52753
52754fi
52755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
52756$as_echo "$am_cv_python_pythondir" >&6; }
52757  pythondir=$am_cv_python_pythondir
52758
52759
52760
52761  pkgpythondir=\${pythondir}/$PACKAGE
52762
52763
52764        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
52765$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
52766if ${am_cv_python_pyexecdir+:} false; then :
52767  $as_echo_n "(cached) " >&6
52768else
52769  if test "x$exec_prefix" = xNONE
52770     then
52771       am_py_exec_prefix=$am_py_prefix
52772     else
52773       am_py_exec_prefix=$exec_prefix
52774     fi
52775     am_cv_python_pyexecdir=`$PYTHON -c "
52776$am_python_setup_sysconfig
52777if can_use_sysconfig:
52778    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
52779else:
52780    from distutils import sysconfig
52781    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
52782sys.stdout.write(sitedir)"`
52783     case $am_cv_python_pyexecdir in
52784     $am_py_exec_prefix*)
52785       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
52786       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
52787       ;;
52788     *)
52789       case $am_py_exec_prefix in
52790         /usr|/System*) ;;
52791         *)
52792	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
52793	   ;;
52794       esac
52795       ;;
52796     esac
52797
52798fi
52799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
52800$as_echo "$am_cv_python_pyexecdir" >&6; }
52801  pyexecdir=$am_cv_python_pyexecdir
52802
52803
52804
52805  pkgpyexecdir=\${pyexecdir}/$PACKAGE
52806
52807
52808
52809  fi
52810
52811
52812
52813# Check whether --enable-oldgnutls-interop was given.
52814if test "${enable_oldgnutls_interop+set}" = set; then :
52815  enableval=$enable_oldgnutls_interop; enable_oldgnutls_interop=$enableval
52816else
52817  enable_oldgnutls_interop=no
52818fi
52819
52820
52821if test "$enable_oldgnutls_interop" != "no" && test "$full_test_suite" != yes;then
52822	as_fn_error $? "cannot --enable-oldgnutls-interop without --enable-full-test-suite" "$LINENO" 5
52823fi
52824
52825 if test "$enable_oldgnutls_interop" != "no"; then
52826  ENABLE_OLDGNUTLS_INTEROP_TRUE=
52827  ENABLE_OLDGNUTLS_INTEROP_FALSE='#'
52828else
52829  ENABLE_OLDGNUTLS_INTEROP_TRUE='#'
52830  ENABLE_OLDGNUTLS_INTEROP_FALSE=
52831fi
52832
52833
52834# check for libev - used in full test suite
52835
52836
52837
52838
52839
52840
52841
52842
52843
52844
52845
52846
52847    use_additional=yes
52848
52849  acl_save_prefix="$prefix"
52850  prefix="$acl_final_prefix"
52851  acl_save_exec_prefix="$exec_prefix"
52852  exec_prefix="$acl_final_exec_prefix"
52853
52854    eval additional_includedir=\"$includedir\"
52855    eval additional_libdir=\"$libdir\"
52856    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
52857    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
52858
52859  exec_prefix="$acl_save_exec_prefix"
52860  prefix="$acl_save_prefix"
52861
52862
52863# Check whether --with-libev-prefix was given.
52864if test "${with_libev_prefix+set}" = set; then :
52865  withval=$with_libev_prefix;
52866    if test "X$withval" = "Xno"; then
52867      use_additional=no
52868    else
52869      if test "X$withval" = "X"; then
52870
52871  acl_save_prefix="$prefix"
52872  prefix="$acl_final_prefix"
52873  acl_save_exec_prefix="$exec_prefix"
52874  exec_prefix="$acl_final_exec_prefix"
52875
52876          eval additional_includedir=\"$includedir\"
52877          eval additional_libdir=\"$libdir\"
52878          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
52879          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
52880
52881  exec_prefix="$acl_save_exec_prefix"
52882  prefix="$acl_save_prefix"
52883
52884      else
52885        additional_includedir="$withval/include"
52886        additional_libdir="$withval/$acl_libdirstem"
52887        additional_libdir2="$withval/$acl_libdirstem2"
52888        additional_libdir3="$withval/$acl_libdirstem3"
52889      fi
52890    fi
52891
52892fi
52893
52894  if test "X$additional_libdir2" = "X$additional_libdir"; then
52895    additional_libdir2=
52896  fi
52897  if test "X$additional_libdir3" = "X$additional_libdir"; then
52898    additional_libdir3=
52899  fi
52900      LIBEV=
52901  LTLIBEV=
52902  INCEV=
52903  LIBEV_PREFIX=
52904      HAVE_LIBEV=
52905  rpathdirs=
52906  ltrpathdirs=
52907  names_already_handled=
52908  names_next_round='ev '
52909  while test -n "$names_next_round"; do
52910    names_this_round="$names_next_round"
52911    names_next_round=
52912    for name in $names_this_round; do
52913      already_handled=
52914      for n in $names_already_handled; do
52915        if test "$n" = "$name"; then
52916          already_handled=yes
52917          break
52918        fi
52919      done
52920      if test -z "$already_handled"; then
52921        names_already_handled="$names_already_handled $name"
52922                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
52923        eval value=\"\$HAVE_LIB$uppername\"
52924        if test -n "$value"; then
52925          if test "$value" = yes; then
52926            eval value=\"\$LIB$uppername\"
52927            test -z "$value" || LIBEV="${LIBEV}${LIBEV:+ }$value"
52928            eval value=\"\$LTLIB$uppername\"
52929            test -z "$value" || LTLIBEV="${LTLIBEV}${LTLIBEV:+ }$value"
52930          else
52931                                    :
52932          fi
52933        else
52934                              found_dir=
52935          found_la=
52936          found_so=
52937          found_a=
52938          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
52939          if test -n "$acl_shlibext"; then
52940            shrext=".$acl_shlibext"             # typically: shrext=.so
52941          else
52942            shrext=
52943          fi
52944          if test $use_additional = yes; then
52945            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
52946              if test "X$found_dir" = "X"; then
52947                eval dir=\$$additional_libdir_variable
52948                if test -n "$dir"; then
52949                                                      if test -n "$acl_shlibext"; then
52950                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
52951                      found_dir="$dir"
52952                      found_so="$dir/$libname$shrext"
52953                    else
52954                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
52955                        ver=`(cd "$dir" && \
52956                              for f in "$libname$shrext".*; do echo "$f"; done \
52957                              | sed -e "s,^$libname$shrext\\\\.,," \
52958                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
52959                              | sed 1q ) 2>/dev/null`
52960                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
52961                          found_dir="$dir"
52962                          found_so="$dir/$libname$shrext.$ver"
52963                        fi
52964                      else
52965                        eval library_names=\"$acl_library_names_spec\"
52966                        for f in $library_names; do
52967                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
52968                            found_dir="$dir"
52969                            found_so="$dir/$f"
52970                            break
52971                          fi
52972                        done
52973                      fi
52974                    fi
52975                  fi
52976                                    if test "X$found_dir" = "X"; then
52977                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
52978                      found_dir="$dir"
52979                      found_a="$dir/$libname.$acl_libext"
52980                    fi
52981                  fi
52982                  if test "X$found_dir" != "X"; then
52983                    if test -f "$dir/$libname.la"; then
52984                      found_la="$dir/$libname.la"
52985                    fi
52986                  fi
52987                fi
52988              fi
52989            done
52990          fi
52991          if test "X$found_dir" = "X"; then
52992            for x in $LDFLAGS $LTLIBEV; do
52993
52994  acl_save_prefix="$prefix"
52995  prefix="$acl_final_prefix"
52996  acl_save_exec_prefix="$exec_prefix"
52997  exec_prefix="$acl_final_exec_prefix"
52998  eval x=\"$x\"
52999  exec_prefix="$acl_save_exec_prefix"
53000  prefix="$acl_save_prefix"
53001
53002              case "$x" in
53003                -L*)
53004                  dir=`echo "X$x" | sed -e 's/^X-L//'`
53005                                    if test -n "$acl_shlibext"; then
53006                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
53007                      found_dir="$dir"
53008                      found_so="$dir/$libname$shrext"
53009                    else
53010                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53011                        ver=`(cd "$dir" && \
53012                              for f in "$libname$shrext".*; do echo "$f"; done \
53013                              | sed -e "s,^$libname$shrext\\\\.,," \
53014                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53015                              | sed 1q ) 2>/dev/null`
53016                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
53017                          found_dir="$dir"
53018                          found_so="$dir/$libname$shrext.$ver"
53019                        fi
53020                      else
53021                        eval library_names=\"$acl_library_names_spec\"
53022                        for f in $library_names; do
53023                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
53024                            found_dir="$dir"
53025                            found_so="$dir/$f"
53026                            break
53027                          fi
53028                        done
53029                      fi
53030                    fi
53031                  fi
53032                                    if test "X$found_dir" = "X"; then
53033                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
53034                      found_dir="$dir"
53035                      found_a="$dir/$libname.$acl_libext"
53036                    fi
53037                  fi
53038                  if test "X$found_dir" != "X"; then
53039                    if test -f "$dir/$libname.la"; then
53040                      found_la="$dir/$libname.la"
53041                    fi
53042                  fi
53043                  ;;
53044              esac
53045              if test "X$found_dir" != "X"; then
53046                break
53047              fi
53048            done
53049          fi
53050          if test "X$found_dir" != "X"; then
53051                        LTLIBEV="${LTLIBEV}${LTLIBEV:+ }-L$found_dir -l$name"
53052            if test "X$found_so" != "X"; then
53053                                                        if test "$enable_rpath" = no \
53054                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
53055                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
53056                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
53057                                LIBEV="${LIBEV}${LIBEV:+ }$found_so"
53058              else
53059                                                                                haveit=
53060                for x in $ltrpathdirs; do
53061                  if test "X$x" = "X$found_dir"; then
53062                    haveit=yes
53063                    break
53064                  fi
53065                done
53066                if test -z "$haveit"; then
53067                  ltrpathdirs="$ltrpathdirs $found_dir"
53068                fi
53069                                if test "$acl_hardcode_direct" = yes; then
53070                                                      LIBEV="${LIBEV}${LIBEV:+ }$found_so"
53071                else
53072                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
53073                                                            LIBEV="${LIBEV}${LIBEV:+ }$found_so"
53074                                                            haveit=
53075                    for x in $rpathdirs; do
53076                      if test "X$x" = "X$found_dir"; then
53077                        haveit=yes
53078                        break
53079                      fi
53080                    done
53081                    if test -z "$haveit"; then
53082                      rpathdirs="$rpathdirs $found_dir"
53083                    fi
53084                  else
53085                                                                                haveit=
53086                    for x in $LDFLAGS $LIBEV; do
53087
53088  acl_save_prefix="$prefix"
53089  prefix="$acl_final_prefix"
53090  acl_save_exec_prefix="$exec_prefix"
53091  exec_prefix="$acl_final_exec_prefix"
53092  eval x=\"$x\"
53093  exec_prefix="$acl_save_exec_prefix"
53094  prefix="$acl_save_prefix"
53095
53096                      if test "X$x" = "X-L$found_dir"; then
53097                        haveit=yes
53098                        break
53099                      fi
53100                    done
53101                    if test -z "$haveit"; then
53102                      LIBEV="${LIBEV}${LIBEV:+ }-L$found_dir"
53103                    fi
53104                    if test "$acl_hardcode_minus_L" != no; then
53105                                                                                        LIBEV="${LIBEV}${LIBEV:+ }$found_so"
53106                    else
53107                                                                                                                                                                                LIBEV="${LIBEV}${LIBEV:+ }-l$name"
53108                    fi
53109                  fi
53110                fi
53111              fi
53112            else
53113              if test "X$found_a" != "X"; then
53114                                LIBEV="${LIBEV}${LIBEV:+ }$found_a"
53115              else
53116                                                LIBEV="${LIBEV}${LIBEV:+ }-L$found_dir -l$name"
53117              fi
53118            fi
53119                        additional_includedir=
53120            case "$found_dir" in
53121              */$acl_libdirstem | */$acl_libdirstem/)
53122                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
53123                if test "$name" = 'ev'; then
53124                  LIBEV_PREFIX="$basedir"
53125                fi
53126                additional_includedir="$basedir/include"
53127                ;;
53128              */$acl_libdirstem2 | */$acl_libdirstem2/)
53129                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
53130                if test "$name" = 'ev'; then
53131                  LIBEV_PREFIX="$basedir"
53132                fi
53133                additional_includedir="$basedir/include"
53134                ;;
53135              */$acl_libdirstem3 | */$acl_libdirstem3/)
53136                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
53137                if test "$name" = 'ev'; then
53138                  LIBEV_PREFIX="$basedir"
53139                fi
53140                additional_includedir="$basedir/include"
53141                ;;
53142            esac
53143            if test "X$additional_includedir" != "X"; then
53144                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
53145                haveit=
53146                if test "X$additional_includedir" = "X/usr/local/include"; then
53147                  if test -n "$GCC"; then
53148                    case $host_os in
53149                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53150                    esac
53151                  fi
53152                fi
53153                if test -z "$haveit"; then
53154                  for x in $CPPFLAGS $INCEV; do
53155
53156  acl_save_prefix="$prefix"
53157  prefix="$acl_final_prefix"
53158  acl_save_exec_prefix="$exec_prefix"
53159  exec_prefix="$acl_final_exec_prefix"
53160  eval x=\"$x\"
53161  exec_prefix="$acl_save_exec_prefix"
53162  prefix="$acl_save_prefix"
53163
53164                    if test "X$x" = "X-I$additional_includedir"; then
53165                      haveit=yes
53166                      break
53167                    fi
53168                  done
53169                  if test -z "$haveit"; then
53170                    if test -d "$additional_includedir"; then
53171                                            INCEV="${INCEV}${INCEV:+ }-I$additional_includedir"
53172                    fi
53173                  fi
53174                fi
53175              fi
53176            fi
53177                        if test -n "$found_la"; then
53178                                                        save_libdir="$libdir"
53179              case "$found_la" in
53180                */* | *\\*) . "$found_la" ;;
53181                *) . "./$found_la" ;;
53182              esac
53183              libdir="$save_libdir"
53184                            for dep in $dependency_libs; do
53185                case "$dep" in
53186                  -L*)
53187                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
53188                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
53189                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
53190                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
53191                      haveit=
53192                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
53193                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
53194                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
53195                        if test -n "$GCC"; then
53196                          case $host_os in
53197                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53198                          esac
53199                        fi
53200                      fi
53201                      if test -z "$haveit"; then
53202                        haveit=
53203                        for x in $LDFLAGS $LIBEV; do
53204
53205  acl_save_prefix="$prefix"
53206  prefix="$acl_final_prefix"
53207  acl_save_exec_prefix="$exec_prefix"
53208  exec_prefix="$acl_final_exec_prefix"
53209  eval x=\"$x\"
53210  exec_prefix="$acl_save_exec_prefix"
53211  prefix="$acl_save_prefix"
53212
53213                          if test "X$x" = "X-L$dependency_libdir"; then
53214                            haveit=yes
53215                            break
53216                          fi
53217                        done
53218                        if test -z "$haveit"; then
53219                          if test -d "$dependency_libdir"; then
53220                                                        LIBEV="${LIBEV}${LIBEV:+ }-L$dependency_libdir"
53221                          fi
53222                        fi
53223                        haveit=
53224                        for x in $LDFLAGS $LTLIBEV; do
53225
53226  acl_save_prefix="$prefix"
53227  prefix="$acl_final_prefix"
53228  acl_save_exec_prefix="$exec_prefix"
53229  exec_prefix="$acl_final_exec_prefix"
53230  eval x=\"$x\"
53231  exec_prefix="$acl_save_exec_prefix"
53232  prefix="$acl_save_prefix"
53233
53234                          if test "X$x" = "X-L$dependency_libdir"; then
53235                            haveit=yes
53236                            break
53237                          fi
53238                        done
53239                        if test -z "$haveit"; then
53240                          if test -d "$dependency_libdir"; then
53241                                                        LTLIBEV="${LTLIBEV}${LTLIBEV:+ }-L$dependency_libdir"
53242                          fi
53243                        fi
53244                      fi
53245                    fi
53246                    ;;
53247                  -R*)
53248                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
53249                    if test "$enable_rpath" != no; then
53250                                                                  haveit=
53251                      for x in $rpathdirs; do
53252                        if test "X$x" = "X$dir"; then
53253                          haveit=yes
53254                          break
53255                        fi
53256                      done
53257                      if test -z "$haveit"; then
53258                        rpathdirs="$rpathdirs $dir"
53259                      fi
53260                                                                  haveit=
53261                      for x in $ltrpathdirs; do
53262                        if test "X$x" = "X$dir"; then
53263                          haveit=yes
53264                          break
53265                        fi
53266                      done
53267                      if test -z "$haveit"; then
53268                        ltrpathdirs="$ltrpathdirs $dir"
53269                      fi
53270                    fi
53271                    ;;
53272                  -l*)
53273                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
53274                    ;;
53275                  *.la)
53276                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
53277                    ;;
53278                  *)
53279                                        LIBEV="${LIBEV}${LIBEV:+ }$dep"
53280                    LTLIBEV="${LTLIBEV}${LTLIBEV:+ }$dep"
53281                    ;;
53282                esac
53283              done
53284            fi
53285          else
53286                                                            LIBEV="${LIBEV}${LIBEV:+ }-l$name"
53287            LTLIBEV="${LTLIBEV}${LTLIBEV:+ }-l$name"
53288          fi
53289        fi
53290      fi
53291    done
53292  done
53293  if test "X$rpathdirs" != "X"; then
53294    if test -n "$acl_hardcode_libdir_separator"; then
53295                        alldirs=
53296      for found_dir in $rpathdirs; do
53297        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
53298      done
53299            acl_save_libdir="$libdir"
53300      libdir="$alldirs"
53301      eval flag=\"$acl_hardcode_libdir_flag_spec\"
53302      libdir="$acl_save_libdir"
53303      LIBEV="${LIBEV}${LIBEV:+ }$flag"
53304    else
53305            for found_dir in $rpathdirs; do
53306        acl_save_libdir="$libdir"
53307        libdir="$found_dir"
53308        eval flag=\"$acl_hardcode_libdir_flag_spec\"
53309        libdir="$acl_save_libdir"
53310        LIBEV="${LIBEV}${LIBEV:+ }$flag"
53311      done
53312    fi
53313  fi
53314  if test "X$ltrpathdirs" != "X"; then
53315            for found_dir in $ltrpathdirs; do
53316      LTLIBEV="${LTLIBEV}${LTLIBEV:+ }-R$found_dir"
53317    done
53318  fi
53319
53320
53321
53322
53323
53324
53325        ac_save_CPPFLAGS="$CPPFLAGS"
53326
53327  for element in $INCEV; do
53328    haveit=
53329    for x in $CPPFLAGS; do
53330
53331  acl_save_prefix="$prefix"
53332  prefix="$acl_final_prefix"
53333  acl_save_exec_prefix="$exec_prefix"
53334  exec_prefix="$acl_final_exec_prefix"
53335  eval x=\"$x\"
53336  exec_prefix="$acl_save_exec_prefix"
53337  prefix="$acl_save_prefix"
53338
53339      if test "X$x" = "X$element"; then
53340        haveit=yes
53341        break
53342      fi
53343    done
53344    if test -z "$haveit"; then
53345      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
53346    fi
53347  done
53348
53349
53350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev" >&5
53351$as_echo_n "checking for libev... " >&6; }
53352if ${ac_cv_libev+:} false; then :
53353  $as_echo_n "(cached) " >&6
53354else
53355
53356    ac_save_LIBS="$LIBS"
53357                                case " $LIBEV" in
53358      *" -l"*) LIBS="$LIBS $LIBEV" ;;
53359      *)       LIBS="$LIBEV $LIBS" ;;
53360    esac
53361    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53362/* end confdefs.h.  */
53363#include <ev.h>
53364int
53365main ()
53366{
53367ev_run(0,0);
53368  ;
53369  return 0;
53370}
53371_ACEOF
53372if ac_fn_c_try_link "$LINENO"; then :
53373  ac_cv_libev=yes
53374else
53375  ac_cv_libev='no'
53376fi
53377rm -f core conftest.err conftest.$ac_objext \
53378    conftest$ac_exeext conftest.$ac_ext
53379    LIBS="$ac_save_LIBS"
53380
53381fi
53382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libev" >&5
53383$as_echo "$ac_cv_libev" >&6; }
53384  if test "$ac_cv_libev" = yes; then
53385    HAVE_LIBEV=yes
53386
53387$as_echo "#define HAVE_LIBEV 1" >>confdefs.h
53388
53389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libev" >&5
53390$as_echo_n "checking how to link with libev... " >&6; }
53391    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEV" >&5
53392$as_echo "$LIBEV" >&6; }
53393  else
53394    HAVE_LIBEV=no
53395            CPPFLAGS="$ac_save_CPPFLAGS"
53396    LIBEV=
53397    LTLIBEV=
53398    LIBEV_PREFIX=
53399  fi
53400
53401
53402
53403
53404
53405
53406
53407if test "$ac_cv_libev" = yes; then
53408        LIBEV_LIBS=$LIBEV
53409
53410elif test "$full_test_suite" = yes;then
53411        as_fn_error $? "***
53412*** libev4 was not found.
53413***" "$LINENO" 5
53414fi
53415
53416
53417# Check whether --enable-gcc-warnings was given.
53418if test "${enable_gcc_warnings+set}" = set; then :
53419  enableval=$enable_gcc_warnings; case $enableval in
53420     yes|no) ;;
53421     *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
53422   esac
53423   gl_gcc_warnings=$enableval
53424else
53425  gl_gcc_warnings=yes
53426
53427fi
53428
53429
53430if test "$gl_gcc_warnings" = yes; then
53431
53432  ac_ext=c
53433ac_cpp='$CPP $CPPFLAGS'
53434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53436ac_compiler_gnu=$ac_cv_c_compiler_gnu
53437
53438
53439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
53440$as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
53441if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
53442  $as_echo_n "(cached) " >&6
53443else
53444
53445  gl_save_compiler_FLAGS="$CFLAGS"
53446  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
53447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53448/* end confdefs.h.  */
53449
53450int
53451main ()
53452{
53453
53454  ;
53455  return 0;
53456}
53457_ACEOF
53458if ac_fn_c_try_link "$LINENO"; then :
53459  gl_cv_warn_c__Werror__Wunknown_warning_option=yes
53460else
53461  gl_cv_warn_c__Werror__Wunknown_warning_option=no
53462fi
53463rm -f core conftest.err conftest.$ac_objext \
53464    conftest$ac_exeext conftest.$ac_ext
53465  CFLAGS="$gl_save_compiler_FLAGS"
53466
53467fi
53468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
53469$as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
53470if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
53471  gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
53472else
53473  gl_unknown_warnings_are_errors=
53474fi
53475
53476  ac_ext=c
53477ac_cpp='$CPP $CPPFLAGS'
53478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53480ac_compiler_gnu=$ac_cv_c_compiler_gnu
53481
53482
53483
53484
53485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wtype-limits" >&5
53486$as_echo_n "checking whether C compiler handles -Wtype-limits... " >&6; }
53487if ${gl_cv_warn_c__Wtype_limits+:} false; then :
53488  $as_echo_n "(cached) " >&6
53489else
53490
53491  gl_save_compiler_FLAGS="$CFLAGS"
53492  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
53493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53494/* end confdefs.h.  */
53495
53496int
53497main ()
53498{
53499
53500  ;
53501  return 0;
53502}
53503_ACEOF
53504if ac_fn_c_try_link "$LINENO"; then :
53505  gl_cv_warn_c__Wtype_limits=yes
53506else
53507  gl_cv_warn_c__Wtype_limits=no
53508fi
53509rm -f core conftest.err conftest.$ac_objext \
53510    conftest$ac_exeext conftest.$ac_ext
53511  CFLAGS="$gl_save_compiler_FLAGS"
53512
53513fi
53514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wtype_limits" >&5
53515$as_echo "$gl_cv_warn_c__Wtype_limits" >&6; }
53516if test "x$gl_cv_warn_c__Wtype_limits" = xyes; then :
53517  as_fn_append WSTACK_CFLAGS " -Wtype-limits"
53518fi
53519
53520
53521
53522  nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
53523  nw="$nw -Wc++-compat"             # We don't care about C++ compilers
53524  nw="$nw -Wundef"                  # Warns on '#if GNULIB_FOO' etc in gnulib
53525  nw="$nw -Wtraditional"            # Warns on #elif which we use often
53526  nw="$nw -Wpadded"                 # Our structs are not padded
53527  nw="$nw -Wtraditional-conversion" # Too many warnings for now
53528  nw="$nw -Wswitch-default"         # Too many warnings for now
53529  nw="$nw -Wformat-y2k"             # Too many warnings for now
53530  nw="$nw -Woverlength-strings"     # We use some in tests/
53531  nw="$nw -Wvla"                    # There is no point to avoid C99 variable length arrays
53532  nw="$nw -Wformat-nonliteral"      # Incompatible with gettext _()
53533  nw="$nw -Wformat-signedness"      # Too many to handle
53534  nw="$nw -Wstrict-overflow"
53535  nw="$nw -Wmissing-noreturn"
53536  nw="$nw -Winline"                 # Too compiler dependent
53537  nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
53538  nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
53539  nw="$nw -Wsuggest-attribute=noreturn" # Is it worth using attributes?
53540  nw="$nw -Wstack-protector"        # Some functions cannot be protected
53541  nw="$nw -Wunsafe-loop-optimizations" # Warnings with no point
53542  nw="$nw -Wredundant-decls"        # Some files cannot be compiled with that (gl_fd_to_handle)
53543  nw="$nw -Wtype-limits"            # Too many warnings in gnulib macros
53544
53545
53546  ac_ext=c
53547ac_cpp='$CPP $CPPFLAGS'
53548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53550ac_compiler_gnu=$ac_cv_c_compiler_gnu
53551
53552
53553
53554  if test -n "$GCC"; then
53555
53556            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
53557$as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
53558if ${gl_cv_cc_nomfi_supported+:} false; then :
53559  $as_echo_n "(cached) " >&6
53560else
53561  gl_save_CFLAGS="$CFLAGS"
53562       CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
53563       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53564/* end confdefs.h.  */
53565
53566int
53567main ()
53568{
53569
53570  ;
53571  return 0;
53572}
53573_ACEOF
53574if ac_fn_c_try_compile "$LINENO"; then :
53575  gl_cv_cc_nomfi_supported=yes
53576else
53577  gl_cv_cc_nomfi_supported=no
53578fi
53579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53580       CFLAGS="$gl_save_CFLAGS"
53581
53582fi
53583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
53584$as_echo "$gl_cv_cc_nomfi_supported" >&6; }
53585
53586    if test "$gl_cv_cc_nomfi_supported" = yes; then
53587                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
53588$as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
53589if ${gl_cv_cc_nomfi_needed+:} false; then :
53590  $as_echo_n "(cached) " >&6
53591else
53592  gl_save_CFLAGS="$CFLAGS"
53593         CFLAGS="$CFLAGS -W -Werror"
53594         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53595/* end confdefs.h.  */
53596int f (void)
53597                {
53598                  typedef struct { int a; int b; } s_t;
53599                  s_t s1 = { 0, };
53600                  return s1.b;
53601                }
53602
53603int
53604main ()
53605{
53606
53607  ;
53608  return 0;
53609}
53610_ACEOF
53611if ac_fn_c_try_compile "$LINENO"; then :
53612  gl_cv_cc_nomfi_needed=no
53613else
53614  gl_cv_cc_nomfi_needed=yes
53615fi
53616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53617         CFLAGS="$gl_save_CFLAGS"
53618
53619fi
53620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
53621$as_echo "$gl_cv_cc_nomfi_needed" >&6; }
53622    fi
53623
53624                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
53625$as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
53626if ${gl_cv_cc_uninitialized_supported+:} false; then :
53627  $as_echo_n "(cached) " >&6
53628else
53629  gl_save_CFLAGS="$CFLAGS"
53630       CFLAGS="$CFLAGS -Werror -Wuninitialized"
53631       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53632/* end confdefs.h.  */
53633
53634int
53635main ()
53636{
53637
53638  ;
53639  return 0;
53640}
53641_ACEOF
53642if ac_fn_c_try_compile "$LINENO"; then :
53643  gl_cv_cc_uninitialized_supported=yes
53644else
53645  gl_cv_cc_uninitialized_supported=no
53646fi
53647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53648       CFLAGS="$gl_save_CFLAGS"
53649
53650fi
53651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
53652$as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
53653
53654  fi
53655
53656  # List all gcc warning categories.
53657  # To compare this list to your installed GCC's, run this Bash command:
53658  #
53659  # comm -3 \
53660  #  <((sed -n 's/^  *\(-[^ 0-9][^ ]*\) .*/\1/p' manywarnings.m4; \
53661  #     awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec) | sort) \
53662  #  <(LC_ALL=C gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort)
53663
53664  gl_manywarn_set=
53665  for gl_manywarn_item in -fno-common \
53666    -W \
53667    -Wabsolute-value \
53668    -Waddress \
53669    -Waddress-of-packed-member \
53670    -Waggressive-loop-optimizations \
53671    -Wall \
53672    -Wanalyzer-double-fclose \
53673    -Wanalyzer-double-free \
53674    -Wanalyzer-exposure-through-output-file \
53675    -Wanalyzer-file-leak \
53676    -Wanalyzer-free-of-non-heap \
53677    -Wanalyzer-malloc-leak \
53678    -Wanalyzer-null-argument \
53679    -Wanalyzer-null-dereference \
53680    -Wanalyzer-possible-null-argument \
53681    -Wanalyzer-possible-null-dereference \
53682    -Wanalyzer-stale-setjmp-buffer \
53683    -Wanalyzer-tainted-array-index \
53684    -Wanalyzer-too-complex \
53685    -Wanalyzer-unsafe-call-within-signal-handler \
53686    -Wanalyzer-use-after-free \
53687    -Wanalyzer-use-of-pointer-in-stale-stack-frame \
53688    -Warith-conversion \
53689    -Wattribute-warning \
53690    -Wattributes \
53691    -Wbad-function-cast \
53692    -Wbool-compare \
53693    -Wbool-operation \
53694    -Wbuiltin-declaration-mismatch \
53695    -Wbuiltin-macro-redefined \
53696    -Wcannot-profile \
53697    -Wcast-align \
53698    -Wcast-align=strict \
53699    -Wcast-function-type \
53700    -Wchar-subscripts \
53701    -Wclobbered \
53702    -Wcomment \
53703    -Wcomments \
53704    -Wcoverage-mismatch \
53705    -Wcpp \
53706    -Wdangling-else \
53707    -Wdate-time \
53708    -Wdeprecated \
53709    -Wdeprecated-declarations \
53710    -Wdesignated-init \
53711    -Wdisabled-optimization \
53712    -Wdiscarded-array-qualifiers \
53713    -Wdiscarded-qualifiers \
53714    -Wdiv-by-zero \
53715    -Wdouble-promotion \
53716    -Wduplicated-branches \
53717    -Wduplicated-cond \
53718    -Wduplicate-decl-specifier \
53719    -Wempty-body \
53720    -Wendif-labels \
53721    -Wenum-compare \
53722    -Wenum-conversion \
53723    -Wexpansion-to-defined \
53724    -Wextra \
53725    -Wformat-contains-nul \
53726    -Wformat-diag \
53727    -Wformat-extra-args \
53728    -Wformat-nonliteral \
53729    -Wformat-security \
53730    -Wformat-signedness \
53731    -Wformat-y2k \
53732    -Wformat-zero-length \
53733    -Wframe-address \
53734    -Wfree-nonheap-object \
53735    -Whsa \
53736    -Wif-not-aligned \
53737    -Wignored-attributes \
53738    -Wignored-qualifiers \
53739    -Wimplicit \
53740    -Wimplicit-function-declaration \
53741    -Wimplicit-int \
53742    -Wincompatible-pointer-types \
53743    -Winit-self \
53744    -Winline \
53745    -Wint-conversion \
53746    -Wint-in-bool-context \
53747    -Wint-to-pointer-cast \
53748    -Winvalid-memory-model \
53749    -Winvalid-pch \
53750    -Wlogical-not-parentheses \
53751    -Wlogical-op \
53752    -Wmain \
53753    -Wmaybe-uninitialized \
53754    -Wmemset-elt-size \
53755    -Wmemset-transposed-args \
53756    -Wmisleading-indentation \
53757    -Wmissing-attributes \
53758    -Wmissing-braces \
53759    -Wmissing-declarations \
53760    -Wmissing-field-initializers \
53761    -Wmissing-include-dirs \
53762    -Wmissing-parameter-type \
53763    -Wmissing-profile \
53764    -Wmissing-prototypes \
53765    -Wmultichar \
53766    -Wmultistatement-macros \
53767    -Wnarrowing \
53768    -Wnested-externs \
53769    -Wnonnull \
53770    -Wnonnull-compare \
53771    -Wnull-dereference \
53772    -Wodr \
53773    -Wold-style-declaration \
53774    -Wold-style-definition \
53775    -Wopenmp-simd \
53776    -Woverflow \
53777    -Woverlength-strings \
53778    -Woverride-init \
53779    -Wpacked \
53780    -Wpacked-bitfield-compat \
53781    -Wpacked-not-aligned \
53782    -Wparentheses \
53783    -Wpointer-arith \
53784    -Wpointer-compare \
53785    -Wpointer-sign \
53786    -Wpointer-to-int-cast \
53787    -Wpragmas \
53788    -Wpsabi \
53789    -Wrestrict \
53790    -Wreturn-local-addr \
53791    -Wreturn-type \
53792    -Wscalar-storage-order \
53793    -Wsequence-point \
53794    -Wshadow \
53795    -Wshift-count-negative \
53796    -Wshift-count-overflow \
53797    -Wshift-negative-value \
53798    -Wsizeof-array-argument \
53799    -Wsizeof-pointer-div \
53800    -Wsizeof-pointer-memaccess \
53801    -Wstack-protector \
53802    -Wstrict-aliasing \
53803    -Wstrict-overflow \
53804    -Wstrict-prototypes \
53805    -Wstring-compare \
53806    -Wstringop-truncation \
53807    -Wsuggest-attribute=cold \
53808    -Wsuggest-attribute=const \
53809    -Wsuggest-attribute=format \
53810    -Wsuggest-attribute=malloc \
53811    -Wsuggest-attribute=noreturn \
53812    -Wsuggest-attribute=pure \
53813    -Wsuggest-final-methods \
53814    -Wsuggest-final-types \
53815    -Wswitch \
53816    -Wswitch-bool \
53817    -Wswitch-outside-range \
53818    -Wswitch-unreachable \
53819    -Wsync-nand \
53820    -Wsystem-headers \
53821    -Wtautological-compare \
53822    -Wtrampolines \
53823    -Wtrigraphs \
53824    -Wtype-limits \
53825    -Wuninitialized \
53826    -Wunknown-pragmas \
53827    -Wunsafe-loop-optimizations \
53828    -Wunused \
53829    -Wunused-but-set-parameter \
53830    -Wunused-but-set-variable \
53831    -Wunused-function \
53832    -Wunused-label \
53833    -Wunused-local-typedefs \
53834    -Wunused-macros \
53835    -Wunused-parameter \
53836    -Wunused-result \
53837    -Wunused-value \
53838    -Wunused-variable \
53839    -Wvarargs \
53840    -Wvariadic-macros \
53841    -Wvector-operation-performance \
53842    -Wvla \
53843    -Wvolatile-register-var \
53844    -Wwrite-strings \
53845    -Wzero-length-bounds \
53846    \
53847    ; do
53848    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
53849  done
53850
53851  # gcc --help=warnings outputs an unusual form for these options; list
53852  # them here so that the above 'comm' command doesn't report a false match.
53853  # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal.
53854  # Also, AC_COMPUTE_INT requires it to fit in a long; it is 2**63 on
53855  # the only platforms where it does not fit in a long, so make that
53856  # a special case.
53857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking max safe object size" >&5
53858$as_echo_n "checking max safe object size... " >&6; }
53859  if ac_fn_c_compute_int "$LINENO" "LONG_MAX < (PTRDIFF_MAX < (size_t) -1 ? PTRDIFF_MAX : (size_t) -1)
53860     ? -1
53861     : PTRDIFF_MAX < (size_t) -1 ? (long) PTRDIFF_MAX : (long) (size_t) -1" "gl_alloc_max"        "#include <limits.h>
53862      #include <stddef.h>
53863      #include <stdint.h>
53864    "; then :
53865
53866else
53867  gl_alloc_max=2147483647
53868fi
53869
53870  case $gl_alloc_max in
53871    -1) gl_alloc_max=9223372036854775807;;
53872  esac
53873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_alloc_max" >&5
53874$as_echo "$gl_alloc_max" >&6; }
53875  gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max"
53876  gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2"
53877  gl_manywarn_set="$gl_manywarn_set -Wattribute-alias=2"
53878  gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2"
53879  gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2"
53880  gl_manywarn_set="$gl_manywarn_set -Wimplicit-fallthrough=5"
53881  gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
53882  gl_manywarn_set="$gl_manywarn_set -Wshift-overflow=2"
53883  gl_manywarn_set="$gl_manywarn_set -Wstringop-overflow=2"
53884  gl_manywarn_set="$gl_manywarn_set -Wunused-const-variable=2"
53885  gl_manywarn_set="$gl_manywarn_set -Wvla-larger-than=4031"
53886
53887  # These are needed for older GCC versions.
53888  if test -n "$GCC"; then
53889    case `($CC --version) 2>/dev/null` in
53890      'gcc (GCC) '[0-3].* | \
53891      'gcc (GCC) '4.[0-7].*)
53892        gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
53893        gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
53894          ;;
53895    esac
53896  fi
53897
53898  # Disable specific options as needed.
53899  if test "$gl_cv_cc_nomfi_needed" = yes; then
53900    gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
53901  fi
53902
53903  if test "$gl_cv_cc_uninitialized_supported" = no; then
53904    gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
53905  fi
53906
53907  ws=$gl_manywarn_set
53908
53909  ac_ext=c
53910ac_cpp='$CPP $CPPFLAGS'
53911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53913ac_compiler_gnu=$ac_cv_c_compiler_gnu
53914
53915
53916
53917  gl_warn_set=
53918  set x $ws; shift
53919  for gl_warn_item
53920  do
53921    case " $nw " in
53922      *" $gl_warn_item "*)
53923        ;;
53924      *)
53925        gl_warn_set="$gl_warn_set $gl_warn_item"
53926        ;;
53927    esac
53928  done
53929  ws=$gl_warn_set
53930
53931  for w in $ws; do
53932
53933
53934as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
53935gl_positive="$w"
53936case $gl_positive in
53937  -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
53938esac
53939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
53940$as_echo_n "checking whether C compiler handles $w... " >&6; }
53941if eval \${$as_gl_Warn+:} false; then :
53942  $as_echo_n "(cached) " >&6
53943else
53944
53945  gl_save_compiler_FLAGS="$CFLAGS"
53946  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
53947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53948/* end confdefs.h.  */
53949
53950int
53951main ()
53952{
53953
53954  ;
53955  return 0;
53956}
53957_ACEOF
53958if ac_fn_c_try_link "$LINENO"; then :
53959  eval "$as_gl_Warn=yes"
53960else
53961  eval "$as_gl_Warn=no"
53962fi
53963rm -f core conftest.err conftest.$ac_objext \
53964    conftest$ac_exeext conftest.$ac_ext
53965  CFLAGS="$gl_save_compiler_FLAGS"
53966
53967fi
53968eval ac_res=\$$as_gl_Warn
53969	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
53970$as_echo "$ac_res" >&6; }
53971if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
53972  as_fn_append WARN_CFLAGS " $w"
53973fi
53974
53975
53976  done
53977
53978
53979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
53980$as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
53981if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
53982  $as_echo_n "(cached) " >&6
53983else
53984
53985  gl_save_compiler_FLAGS="$CFLAGS"
53986  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
53987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53988/* end confdefs.h.  */
53989
53990int
53991main ()
53992{
53993
53994  ;
53995  return 0;
53996}
53997_ACEOF
53998if ac_fn_c_try_link "$LINENO"; then :
53999  gl_cv_warn_c__Wno_missing_field_initializers=yes
54000else
54001  gl_cv_warn_c__Wno_missing_field_initializers=no
54002fi
54003rm -f core conftest.err conftest.$ac_objext \
54004    conftest$ac_exeext conftest.$ac_ext
54005  CFLAGS="$gl_save_compiler_FLAGS"
54006
54007fi
54008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
54009$as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
54010if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
54011  as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
54012fi
54013
54014 # We need this one
54015
54016
54017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
54018$as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
54019if ${gl_cv_warn_c__Wno_unused_parameter+:} false; then :
54020  $as_echo_n "(cached) " >&6
54021else
54022
54023  gl_save_compiler_FLAGS="$CFLAGS"
54024  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
54025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54026/* end confdefs.h.  */
54027
54028int
54029main ()
54030{
54031
54032  ;
54033  return 0;
54034}
54035_ACEOF
54036if ac_fn_c_try_link "$LINENO"; then :
54037  gl_cv_warn_c__Wno_unused_parameter=yes
54038else
54039  gl_cv_warn_c__Wno_unused_parameter=no
54040fi
54041rm -f core conftest.err conftest.$ac_objext \
54042    conftest$ac_exeext conftest.$ac_ext
54043  CFLAGS="$gl_save_compiler_FLAGS"
54044
54045fi
54046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
54047$as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
54048if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes; then :
54049  as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
54050fi
54051
54052 # Too many warnings for now
54053
54054
54055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-truncation" >&5
54056$as_echo_n "checking whether C compiler handles -Wno-format-truncation... " >&6; }
54057if ${gl_cv_warn_c__Wno_format_truncation+:} false; then :
54058  $as_echo_n "(cached) " >&6
54059else
54060
54061  gl_save_compiler_FLAGS="$CFLAGS"
54062  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-truncation"
54063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54064/* end confdefs.h.  */
54065
54066int
54067main ()
54068{
54069
54070  ;
54071  return 0;
54072}
54073_ACEOF
54074if ac_fn_c_try_link "$LINENO"; then :
54075  gl_cv_warn_c__Wno_format_truncation=yes
54076else
54077  gl_cv_warn_c__Wno_format_truncation=no
54078fi
54079rm -f core conftest.err conftest.$ac_objext \
54080    conftest$ac_exeext conftest.$ac_ext
54081  CFLAGS="$gl_save_compiler_FLAGS"
54082
54083fi
54084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_truncation" >&5
54085$as_echo "$gl_cv_warn_c__Wno_format_truncation" >&6; }
54086if test "x$gl_cv_warn_c__Wno_format_truncation" = xyes; then :
54087  as_fn_append WARN_CFLAGS " -Wno-format-truncation"
54088fi
54089
54090 # Many warnings with no point
54091
54092
54093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wimplicit-fallthrough=2" >&5
54094$as_echo_n "checking whether C compiler handles -Wimplicit-fallthrough=2... " >&6; }
54095if ${gl_cv_warn_c__Wimplicit_fallthrough_2+:} false; then :
54096  $as_echo_n "(cached) " >&6
54097else
54098
54099  gl_save_compiler_FLAGS="$CFLAGS"
54100  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wimplicit-fallthrough=2"
54101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54102/* end confdefs.h.  */
54103
54104int
54105main ()
54106{
54107
54108  ;
54109  return 0;
54110}
54111_ACEOF
54112if ac_fn_c_try_link "$LINENO"; then :
54113  gl_cv_warn_c__Wimplicit_fallthrough_2=yes
54114else
54115  gl_cv_warn_c__Wimplicit_fallthrough_2=no
54116fi
54117rm -f core conftest.err conftest.$ac_objext \
54118    conftest$ac_exeext conftest.$ac_ext
54119  CFLAGS="$gl_save_compiler_FLAGS"
54120
54121fi
54122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wimplicit_fallthrough_2" >&5
54123$as_echo "$gl_cv_warn_c__Wimplicit_fallthrough_2" >&6; }
54124if test "x$gl_cv_warn_c__Wimplicit_fallthrough_2" = xyes; then :
54125  as_fn_append WARN_CFLAGS " -Wimplicit-fallthrough=2"
54126fi
54127
54128
54129
54130
54131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wabi=11" >&5
54132$as_echo_n "checking whether C compiler handles -Wabi=11... " >&6; }
54133if ${gl_cv_warn_c__Wabi_11+:} false; then :
54134  $as_echo_n "(cached) " >&6
54135else
54136
54137  gl_save_compiler_FLAGS="$CFLAGS"
54138  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wabi=11"
54139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54140/* end confdefs.h.  */
54141
54142int
54143main ()
54144{
54145
54146  ;
54147  return 0;
54148}
54149_ACEOF
54150if ac_fn_c_try_link "$LINENO"; then :
54151  gl_cv_warn_c__Wabi_11=yes
54152else
54153  gl_cv_warn_c__Wabi_11=no
54154fi
54155rm -f core conftest.err conftest.$ac_objext \
54156    conftest$ac_exeext conftest.$ac_ext
54157  CFLAGS="$gl_save_compiler_FLAGS"
54158
54159fi
54160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wabi_11" >&5
54161$as_echo "$gl_cv_warn_c__Wabi_11" >&6; }
54162if test "x$gl_cv_warn_c__Wabi_11" = xyes; then :
54163  as_fn_append WARN_CFLAGS " -Wabi=11"
54164fi
54165
54166
54167
54168
54169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
54170$as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
54171if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
54172  $as_echo_n "(cached) " >&6
54173else
54174
54175  gl_save_compiler_FLAGS="$CFLAGS"
54176  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
54177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54178/* end confdefs.h.  */
54179
54180int
54181main ()
54182{
54183
54184  ;
54185  return 0;
54186}
54187_ACEOF
54188if ac_fn_c_try_link "$LINENO"; then :
54189  gl_cv_warn_c__fdiagnostics_show_option=yes
54190else
54191  gl_cv_warn_c__fdiagnostics_show_option=no
54192fi
54193rm -f core conftest.err conftest.$ac_objext \
54194    conftest$ac_exeext conftest.$ac_ext
54195  CFLAGS="$gl_save_compiler_FLAGS"
54196
54197fi
54198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
54199$as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
54200if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
54201  as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
54202fi
54203
54204
54205fi
54206
54207if test "$gl_cv_opt_valgrind_tests" != no; then
54208
54209
54210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fno-builtin-strcmp" >&5
54211$as_echo_n "checking whether C compiler handles -fno-builtin-strcmp... " >&6; }
54212if ${gl_cv_warn_c__fno_builtin_strcmp+:} false; then :
54213  $as_echo_n "(cached) " >&6
54214else
54215
54216  gl_save_compiler_FLAGS="$CFLAGS"
54217  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fno-builtin-strcmp"
54218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54219/* end confdefs.h.  */
54220
54221int
54222main ()
54223{
54224
54225  ;
54226  return 0;
54227}
54228_ACEOF
54229if ac_fn_c_try_link "$LINENO"; then :
54230  gl_cv_warn_c__fno_builtin_strcmp=yes
54231else
54232  gl_cv_warn_c__fno_builtin_strcmp=no
54233fi
54234rm -f core conftest.err conftest.$ac_objext \
54235    conftest$ac_exeext conftest.$ac_ext
54236  CFLAGS="$gl_save_compiler_FLAGS"
54237
54238fi
54239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fno_builtin_strcmp" >&5
54240$as_echo "$gl_cv_warn_c__fno_builtin_strcmp" >&6; }
54241if test "x$gl_cv_warn_c__fno_builtin_strcmp" = xyes; then :
54242  as_fn_append WARN_CFLAGS " -fno-builtin-strcmp"
54243fi
54244
54245
54246fi
54247
54248
54249
54250
54251
54252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
54253$as_echo_n "checking whether ln -s works... " >&6; }
54254LN_S=$as_ln_s
54255if test "$LN_S" = "ln -s"; then
54256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54257$as_echo "yes" >&6; }
54258else
54259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
54260$as_echo "no, using $LN_S" >&6; }
54261fi
54262
54263case `pwd` in
54264  *\ * | *\	*)
54265    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
54266$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
54267esac
54268
54269
54270
54271macro_version='2.4.6'
54272macro_revision='2.4.6'
54273
54274
54275
54276
54277
54278
54279
54280
54281
54282
54283
54284
54285
54286ltmain=$ac_aux_dir/ltmain.sh
54287
54288# Backslashify metacharacters that are still active within
54289# double-quoted strings.
54290sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
54291
54292# Same as above, but do not quote variable references.
54293double_quote_subst='s/\(["`\\]\)/\\\1/g'
54294
54295# Sed substitution to delay expansion of an escaped shell variable in a
54296# double_quote_subst'ed string.
54297delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
54298
54299# Sed substitution to delay expansion of an escaped single quote.
54300delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
54301
54302# Sed substitution to avoid accidental globbing in evaled expressions
54303no_glob_subst='s/\*/\\\*/g'
54304
54305ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
54306ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
54307ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
54308
54309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
54310$as_echo_n "checking how to print strings... " >&6; }
54311# Test print first, because it will be a builtin if present.
54312if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
54313   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
54314  ECHO='print -r --'
54315elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
54316  ECHO='printf %s\n'
54317else
54318  # Use this function as a fallback that always works.
54319  func_fallback_echo ()
54320  {
54321    eval 'cat <<_LTECHO_EOF
54322$1
54323_LTECHO_EOF'
54324  }
54325  ECHO='func_fallback_echo'
54326fi
54327
54328# func_echo_all arg...
54329# Invoke $ECHO with all args, space-separated.
54330func_echo_all ()
54331{
54332    $ECHO ""
54333}
54334
54335case $ECHO in
54336  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
54337$as_echo "printf" >&6; } ;;
54338  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
54339$as_echo "print -r" >&6; } ;;
54340  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
54341$as_echo "cat" >&6; } ;;
54342esac
54343
54344
54345
54346
54347
54348
54349
54350
54351
54352
54353
54354
54355
54356
54357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
54358$as_echo_n "checking for a sed that does not truncate output... " >&6; }
54359if ${ac_cv_path_SED+:} false; then :
54360  $as_echo_n "(cached) " >&6
54361else
54362            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
54363     for ac_i in 1 2 3 4 5 6 7; do
54364       ac_script="$ac_script$as_nl$ac_script"
54365     done
54366     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
54367     { ac_script=; unset ac_script;}
54368     if test -z "$SED"; then
54369  ac_path_SED_found=false
54370  # Loop through the user's path and test for each of PROGNAME-LIST
54371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54372for as_dir in $PATH
54373do
54374  IFS=$as_save_IFS
54375  test -z "$as_dir" && as_dir=.
54376    for ac_prog in sed gsed; do
54377    for ac_exec_ext in '' $ac_executable_extensions; do
54378      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
54379      as_fn_executable_p "$ac_path_SED" || continue
54380# Check for GNU ac_path_SED and select it if it is found.
54381  # Check for GNU $ac_path_SED
54382case `"$ac_path_SED" --version 2>&1` in
54383*GNU*)
54384  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
54385*)
54386  ac_count=0
54387  $as_echo_n 0123456789 >"conftest.in"
54388  while :
54389  do
54390    cat "conftest.in" "conftest.in" >"conftest.tmp"
54391    mv "conftest.tmp" "conftest.in"
54392    cp "conftest.in" "conftest.nl"
54393    $as_echo '' >> "conftest.nl"
54394    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
54395    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
54396    as_fn_arith $ac_count + 1 && ac_count=$as_val
54397    if test $ac_count -gt ${ac_path_SED_max-0}; then
54398      # Best one so far, save it but keep looking for a better one
54399      ac_cv_path_SED="$ac_path_SED"
54400      ac_path_SED_max=$ac_count
54401    fi
54402    # 10*(2^10) chars as input seems more than enough
54403    test $ac_count -gt 10 && break
54404  done
54405  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
54406esac
54407
54408      $ac_path_SED_found && break 3
54409    done
54410  done
54411  done
54412IFS=$as_save_IFS
54413  if test -z "$ac_cv_path_SED"; then
54414    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
54415  fi
54416else
54417  ac_cv_path_SED=$SED
54418fi
54419
54420fi
54421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
54422$as_echo "$ac_cv_path_SED" >&6; }
54423 SED="$ac_cv_path_SED"
54424  rm -f conftest.sed
54425
54426test -z "$SED" && SED=sed
54427Xsed="$SED -e 1s/^X//"
54428
54429
54430
54431
54432
54433
54434
54435
54436
54437
54438
54439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
54440$as_echo_n "checking for fgrep... " >&6; }
54441if ${ac_cv_path_FGREP+:} false; then :
54442  $as_echo_n "(cached) " >&6
54443else
54444  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
54445   then ac_cv_path_FGREP="$GREP -F"
54446   else
54447     if test -z "$FGREP"; then
54448  ac_path_FGREP_found=false
54449  # Loop through the user's path and test for each of PROGNAME-LIST
54450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54451for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
54452do
54453  IFS=$as_save_IFS
54454  test -z "$as_dir" && as_dir=.
54455    for ac_prog in fgrep; do
54456    for ac_exec_ext in '' $ac_executable_extensions; do
54457      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
54458      as_fn_executable_p "$ac_path_FGREP" || continue
54459# Check for GNU ac_path_FGREP and select it if it is found.
54460  # Check for GNU $ac_path_FGREP
54461case `"$ac_path_FGREP" --version 2>&1` in
54462*GNU*)
54463  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
54464*)
54465  ac_count=0
54466  $as_echo_n 0123456789 >"conftest.in"
54467  while :
54468  do
54469    cat "conftest.in" "conftest.in" >"conftest.tmp"
54470    mv "conftest.tmp" "conftest.in"
54471    cp "conftest.in" "conftest.nl"
54472    $as_echo 'FGREP' >> "conftest.nl"
54473    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
54474    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
54475    as_fn_arith $ac_count + 1 && ac_count=$as_val
54476    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
54477      # Best one so far, save it but keep looking for a better one
54478      ac_cv_path_FGREP="$ac_path_FGREP"
54479      ac_path_FGREP_max=$ac_count
54480    fi
54481    # 10*(2^10) chars as input seems more than enough
54482    test $ac_count -gt 10 && break
54483  done
54484  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
54485esac
54486
54487      $ac_path_FGREP_found && break 3
54488    done
54489  done
54490  done
54491IFS=$as_save_IFS
54492  if test -z "$ac_cv_path_FGREP"; then
54493    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
54494  fi
54495else
54496  ac_cv_path_FGREP=$FGREP
54497fi
54498
54499   fi
54500fi
54501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
54502$as_echo "$ac_cv_path_FGREP" >&6; }
54503 FGREP="$ac_cv_path_FGREP"
54504
54505
54506test -z "$GREP" && GREP=grep
54507
54508
54509
54510
54511
54512
54513
54514
54515
54516
54517
54518
54519
54520
54521
54522
54523
54524
54525
54526# Check whether --with-gnu-ld was given.
54527if test "${with_gnu_ld+set}" = set; then :
54528  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
54529else
54530  with_gnu_ld=no
54531fi
54532
54533ac_prog=ld
54534if test yes = "$GCC"; then
54535  # Check if gcc -print-prog-name=ld gives a path.
54536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
54537$as_echo_n "checking for ld used by $CC... " >&6; }
54538  case $host in
54539  *-*-mingw*)
54540    # gcc leaves a trailing carriage return, which upsets mingw
54541    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
54542  *)
54543    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
54544  esac
54545  case $ac_prog in
54546    # Accept absolute paths.
54547    [\\/]* | ?:[\\/]*)
54548      re_direlt='/[^/][^/]*/\.\./'
54549      # Canonicalize the pathname of ld
54550      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
54551      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
54552	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
54553      done
54554      test -z "$LD" && LD=$ac_prog
54555      ;;
54556  "")
54557    # If it fails, then pretend we aren't using GCC.
54558    ac_prog=ld
54559    ;;
54560  *)
54561    # If it is relative, then search for the first ld in PATH.
54562    with_gnu_ld=unknown
54563    ;;
54564  esac
54565elif test yes = "$with_gnu_ld"; then
54566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
54567$as_echo_n "checking for GNU ld... " >&6; }
54568else
54569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
54570$as_echo_n "checking for non-GNU ld... " >&6; }
54571fi
54572if ${lt_cv_path_LD+:} false; then :
54573  $as_echo_n "(cached) " >&6
54574else
54575  if test -z "$LD"; then
54576  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
54577  for ac_dir in $PATH; do
54578    IFS=$lt_save_ifs
54579    test -z "$ac_dir" && ac_dir=.
54580    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
54581      lt_cv_path_LD=$ac_dir/$ac_prog
54582      # Check to see if the program is GNU ld.  I'd rather use --version,
54583      # but apparently some variants of GNU ld only accept -v.
54584      # Break only if it was the GNU/non-GNU ld that we prefer.
54585      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
54586      *GNU* | *'with BFD'*)
54587	test no != "$with_gnu_ld" && break
54588	;;
54589      *)
54590	test yes != "$with_gnu_ld" && break
54591	;;
54592      esac
54593    fi
54594  done
54595  IFS=$lt_save_ifs
54596else
54597  lt_cv_path_LD=$LD # Let the user override the test with a path.
54598fi
54599fi
54600
54601LD=$lt_cv_path_LD
54602if test -n "$LD"; then
54603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
54604$as_echo "$LD" >&6; }
54605else
54606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54607$as_echo "no" >&6; }
54608fi
54609test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
54610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
54611$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
54612if ${lt_cv_prog_gnu_ld+:} false; then :
54613  $as_echo_n "(cached) " >&6
54614else
54615  # I'd rather use --version here, but apparently some GNU lds only accept -v.
54616case `$LD -v 2>&1 </dev/null` in
54617*GNU* | *'with BFD'*)
54618  lt_cv_prog_gnu_ld=yes
54619  ;;
54620*)
54621  lt_cv_prog_gnu_ld=no
54622  ;;
54623esac
54624fi
54625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
54626$as_echo "$lt_cv_prog_gnu_ld" >&6; }
54627with_gnu_ld=$lt_cv_prog_gnu_ld
54628
54629
54630
54631
54632
54633
54634
54635
54636
54637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
54638$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
54639if ${lt_cv_path_NM+:} false; then :
54640  $as_echo_n "(cached) " >&6
54641else
54642  if test -n "$NM"; then
54643  # Let the user override the test.
54644  lt_cv_path_NM=$NM
54645else
54646  lt_nm_to_check=${ac_tool_prefix}nm
54647  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
54648    lt_nm_to_check="$lt_nm_to_check nm"
54649  fi
54650  for lt_tmp_nm in $lt_nm_to_check; do
54651    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
54652    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
54653      IFS=$lt_save_ifs
54654      test -z "$ac_dir" && ac_dir=.
54655      tmp_nm=$ac_dir/$lt_tmp_nm
54656      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
54657	# Check to see if the nm accepts a BSD-compat flag.
54658	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
54659	#   nm: unknown option "B" ignored
54660	# Tru64's nm complains that /dev/null is an invalid object file
54661	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
54662	case $build_os in
54663	mingw*) lt_bad_file=conftest.nm/nofile ;;
54664	*) lt_bad_file=/dev/null ;;
54665	esac
54666	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
54667	*$lt_bad_file* | *'Invalid file or object type'*)
54668	  lt_cv_path_NM="$tmp_nm -B"
54669	  break 2
54670	  ;;
54671	*)
54672	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
54673	  */dev/null*)
54674	    lt_cv_path_NM="$tmp_nm -p"
54675	    break 2
54676	    ;;
54677	  *)
54678	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
54679	    continue # so that we can try to find one that supports BSD flags
54680	    ;;
54681	  esac
54682	  ;;
54683	esac
54684      fi
54685    done
54686    IFS=$lt_save_ifs
54687  done
54688  : ${lt_cv_path_NM=no}
54689fi
54690fi
54691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
54692$as_echo "$lt_cv_path_NM" >&6; }
54693if test no != "$lt_cv_path_NM"; then
54694  NM=$lt_cv_path_NM
54695else
54696  # Didn't find any BSD compatible name lister, look for dumpbin.
54697  if test -n "$DUMPBIN"; then :
54698    # Let the user override the test.
54699  else
54700    if test -n "$ac_tool_prefix"; then
54701  for ac_prog in dumpbin "link -dump"
54702  do
54703    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
54704set dummy $ac_tool_prefix$ac_prog; ac_word=$2
54705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54706$as_echo_n "checking for $ac_word... " >&6; }
54707if ${ac_cv_prog_DUMPBIN+:} false; then :
54708  $as_echo_n "(cached) " >&6
54709else
54710  if test -n "$DUMPBIN"; then
54711  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
54712else
54713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54714for as_dir in $PATH
54715do
54716  IFS=$as_save_IFS
54717  test -z "$as_dir" && as_dir=.
54718    for ac_exec_ext in '' $ac_executable_extensions; do
54719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54720    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
54721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54722    break 2
54723  fi
54724done
54725  done
54726IFS=$as_save_IFS
54727
54728fi
54729fi
54730DUMPBIN=$ac_cv_prog_DUMPBIN
54731if test -n "$DUMPBIN"; then
54732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
54733$as_echo "$DUMPBIN" >&6; }
54734else
54735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54736$as_echo "no" >&6; }
54737fi
54738
54739
54740    test -n "$DUMPBIN" && break
54741  done
54742fi
54743if test -z "$DUMPBIN"; then
54744  ac_ct_DUMPBIN=$DUMPBIN
54745  for ac_prog in dumpbin "link -dump"
54746do
54747  # Extract the first word of "$ac_prog", so it can be a program name with args.
54748set dummy $ac_prog; ac_word=$2
54749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54750$as_echo_n "checking for $ac_word... " >&6; }
54751if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
54752  $as_echo_n "(cached) " >&6
54753else
54754  if test -n "$ac_ct_DUMPBIN"; then
54755  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
54756else
54757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54758for as_dir in $PATH
54759do
54760  IFS=$as_save_IFS
54761  test -z "$as_dir" && as_dir=.
54762    for ac_exec_ext in '' $ac_executable_extensions; do
54763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54764    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
54765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54766    break 2
54767  fi
54768done
54769  done
54770IFS=$as_save_IFS
54771
54772fi
54773fi
54774ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
54775if test -n "$ac_ct_DUMPBIN"; then
54776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
54777$as_echo "$ac_ct_DUMPBIN" >&6; }
54778else
54779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54780$as_echo "no" >&6; }
54781fi
54782
54783
54784  test -n "$ac_ct_DUMPBIN" && break
54785done
54786
54787  if test "x$ac_ct_DUMPBIN" = x; then
54788    DUMPBIN=":"
54789  else
54790    case $cross_compiling:$ac_tool_warned in
54791yes:)
54792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
54793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
54794ac_tool_warned=yes ;;
54795esac
54796    DUMPBIN=$ac_ct_DUMPBIN
54797  fi
54798fi
54799
54800    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
54801    *COFF*)
54802      DUMPBIN="$DUMPBIN -symbols -headers"
54803      ;;
54804    *)
54805      DUMPBIN=:
54806      ;;
54807    esac
54808  fi
54809
54810  if test : != "$DUMPBIN"; then
54811    NM=$DUMPBIN
54812  fi
54813fi
54814test -z "$NM" && NM=nm
54815
54816
54817
54818
54819
54820
54821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
54822$as_echo_n "checking the name lister ($NM) interface... " >&6; }
54823if ${lt_cv_nm_interface+:} false; then :
54824  $as_echo_n "(cached) " >&6
54825else
54826  lt_cv_nm_interface="BSD nm"
54827  echo "int some_variable = 0;" > conftest.$ac_ext
54828  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
54829  (eval "$ac_compile" 2>conftest.err)
54830  cat conftest.err >&5
54831  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
54832  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
54833  cat conftest.err >&5
54834  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
54835  cat conftest.out >&5
54836  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
54837    lt_cv_nm_interface="MS dumpbin"
54838  fi
54839  rm -f conftest*
54840fi
54841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
54842$as_echo "$lt_cv_nm_interface" >&6; }
54843
54844# find the maximum length of command line arguments
54845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
54846$as_echo_n "checking the maximum length of command line arguments... " >&6; }
54847if ${lt_cv_sys_max_cmd_len+:} false; then :
54848  $as_echo_n "(cached) " >&6
54849else
54850    i=0
54851  teststring=ABCD
54852
54853  case $build_os in
54854  msdosdjgpp*)
54855    # On DJGPP, this test can blow up pretty badly due to problems in libc
54856    # (any single argument exceeding 2000 bytes causes a buffer overrun
54857    # during glob expansion).  Even if it were fixed, the result of this
54858    # check would be larger than it should be.
54859    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
54860    ;;
54861
54862  gnu*)
54863    # Under GNU Hurd, this test is not required because there is
54864    # no limit to the length of command line arguments.
54865    # Libtool will interpret -1 as no limit whatsoever
54866    lt_cv_sys_max_cmd_len=-1;
54867    ;;
54868
54869  cygwin* | mingw* | cegcc*)
54870    # On Win9x/ME, this test blows up -- it succeeds, but takes
54871    # about 5 minutes as the teststring grows exponentially.
54872    # Worse, since 9x/ME are not pre-emptively multitasking,
54873    # you end up with a "frozen" computer, even though with patience
54874    # the test eventually succeeds (with a max line length of 256k).
54875    # Instead, let's just punt: use the minimum linelength reported by
54876    # all of the supported platforms: 8192 (on NT/2K/XP).
54877    lt_cv_sys_max_cmd_len=8192;
54878    ;;
54879
54880  mint*)
54881    # On MiNT this can take a long time and run out of memory.
54882    lt_cv_sys_max_cmd_len=8192;
54883    ;;
54884
54885  amigaos*)
54886    # On AmigaOS with pdksh, this test takes hours, literally.
54887    # So we just punt and use a minimum line length of 8192.
54888    lt_cv_sys_max_cmd_len=8192;
54889    ;;
54890
54891  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
54892    # This has been around since 386BSD, at least.  Likely further.
54893    if test -x /sbin/sysctl; then
54894      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
54895    elif test -x /usr/sbin/sysctl; then
54896      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
54897    else
54898      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
54899    fi
54900    # And add a safety zone
54901    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
54902    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
54903    ;;
54904
54905  interix*)
54906    # We know the value 262144 and hardcode it with a safety zone (like BSD)
54907    lt_cv_sys_max_cmd_len=196608
54908    ;;
54909
54910  os2*)
54911    # The test takes a long time on OS/2.
54912    lt_cv_sys_max_cmd_len=8192
54913    ;;
54914
54915  osf*)
54916    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
54917    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
54918    # nice to cause kernel panics so lets avoid the loop below.
54919    # First set a reasonable default.
54920    lt_cv_sys_max_cmd_len=16384
54921    #
54922    if test -x /sbin/sysconfig; then
54923      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
54924        *1*) lt_cv_sys_max_cmd_len=-1 ;;
54925      esac
54926    fi
54927    ;;
54928  sco3.2v5*)
54929    lt_cv_sys_max_cmd_len=102400
54930    ;;
54931  sysv5* | sco5v6* | sysv4.2uw2*)
54932    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
54933    if test -n "$kargmax"; then
54934      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
54935    else
54936      lt_cv_sys_max_cmd_len=32768
54937    fi
54938    ;;
54939  *)
54940    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
54941    if test -n "$lt_cv_sys_max_cmd_len" && \
54942       test undefined != "$lt_cv_sys_max_cmd_len"; then
54943      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
54944      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
54945    else
54946      # Make teststring a little bigger before we do anything with it.
54947      # a 1K string should be a reasonable start.
54948      for i in 1 2 3 4 5 6 7 8; do
54949        teststring=$teststring$teststring
54950      done
54951      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
54952      # If test is not a shell built-in, we'll probably end up computing a
54953      # maximum length that is only half of the actual maximum length, but
54954      # we can't tell.
54955      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
54956	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
54957	      test 17 != "$i" # 1/2 MB should be enough
54958      do
54959        i=`expr $i + 1`
54960        teststring=$teststring$teststring
54961      done
54962      # Only check the string length outside the loop.
54963      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
54964      teststring=
54965      # Add a significant safety factor because C++ compilers can tack on
54966      # massive amounts of additional arguments before passing them to the
54967      # linker.  It appears as though 1/2 is a usable value.
54968      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
54969    fi
54970    ;;
54971  esac
54972
54973fi
54974
54975if test -n "$lt_cv_sys_max_cmd_len"; then
54976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
54977$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
54978else
54979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
54980$as_echo "none" >&6; }
54981fi
54982max_cmd_len=$lt_cv_sys_max_cmd_len
54983
54984
54985
54986
54987
54988
54989: ${CP="cp -f"}
54990: ${MV="mv -f"}
54991: ${RM="rm -f"}
54992
54993if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54994  lt_unset=unset
54995else
54996  lt_unset=false
54997fi
54998
54999
55000
55001
55002
55003# test EBCDIC or ASCII
55004case `echo X|tr X '\101'` in
55005 A) # ASCII based system
55006    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
55007  lt_SP2NL='tr \040 \012'
55008  lt_NL2SP='tr \015\012 \040\040'
55009  ;;
55010 *) # EBCDIC based system
55011  lt_SP2NL='tr \100 \n'
55012  lt_NL2SP='tr \r\n \100\100'
55013  ;;
55014esac
55015
55016
55017
55018
55019
55020
55021
55022
55023
55024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
55025$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
55026if ${lt_cv_to_host_file_cmd+:} false; then :
55027  $as_echo_n "(cached) " >&6
55028else
55029  case $host in
55030  *-*-mingw* )
55031    case $build in
55032      *-*-mingw* ) # actually msys
55033        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
55034        ;;
55035      *-*-cygwin* )
55036        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
55037        ;;
55038      * ) # otherwise, assume *nix
55039        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
55040        ;;
55041    esac
55042    ;;
55043  *-*-cygwin* )
55044    case $build in
55045      *-*-mingw* ) # actually msys
55046        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
55047        ;;
55048      *-*-cygwin* )
55049        lt_cv_to_host_file_cmd=func_convert_file_noop
55050        ;;
55051      * ) # otherwise, assume *nix
55052        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
55053        ;;
55054    esac
55055    ;;
55056  * ) # unhandled hosts (and "normal" native builds)
55057    lt_cv_to_host_file_cmd=func_convert_file_noop
55058    ;;
55059esac
55060
55061fi
55062
55063to_host_file_cmd=$lt_cv_to_host_file_cmd
55064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
55065$as_echo "$lt_cv_to_host_file_cmd" >&6; }
55066
55067
55068
55069
55070
55071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
55072$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
55073if ${lt_cv_to_tool_file_cmd+:} false; then :
55074  $as_echo_n "(cached) " >&6
55075else
55076  #assume ordinary cross tools, or native build.
55077lt_cv_to_tool_file_cmd=func_convert_file_noop
55078case $host in
55079  *-*-mingw* )
55080    case $build in
55081      *-*-mingw* ) # actually msys
55082        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
55083        ;;
55084    esac
55085    ;;
55086esac
55087
55088fi
55089
55090to_tool_file_cmd=$lt_cv_to_tool_file_cmd
55091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
55092$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
55093
55094
55095
55096
55097
55098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
55099$as_echo_n "checking for $LD option to reload object files... " >&6; }
55100if ${lt_cv_ld_reload_flag+:} false; then :
55101  $as_echo_n "(cached) " >&6
55102else
55103  lt_cv_ld_reload_flag='-r'
55104fi
55105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
55106$as_echo "$lt_cv_ld_reload_flag" >&6; }
55107reload_flag=$lt_cv_ld_reload_flag
55108case $reload_flag in
55109"" | " "*) ;;
55110*) reload_flag=" $reload_flag" ;;
55111esac
55112reload_cmds='$LD$reload_flag -o $output$reload_objs'
55113case $host_os in
55114  cygwin* | mingw* | pw32* | cegcc*)
55115    if test yes != "$GCC"; then
55116      reload_cmds=false
55117    fi
55118    ;;
55119  darwin*)
55120    if test yes = "$GCC"; then
55121      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
55122    else
55123      reload_cmds='$LD$reload_flag -o $output$reload_objs'
55124    fi
55125    ;;
55126esac
55127
55128
55129
55130
55131
55132
55133
55134
55135
55136if test -n "$ac_tool_prefix"; then
55137  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
55138set dummy ${ac_tool_prefix}objdump; ac_word=$2
55139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55140$as_echo_n "checking for $ac_word... " >&6; }
55141if ${ac_cv_prog_OBJDUMP+:} false; then :
55142  $as_echo_n "(cached) " >&6
55143else
55144  if test -n "$OBJDUMP"; then
55145  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
55146else
55147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55148for as_dir in $PATH
55149do
55150  IFS=$as_save_IFS
55151  test -z "$as_dir" && as_dir=.
55152    for ac_exec_ext in '' $ac_executable_extensions; do
55153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55154    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
55155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55156    break 2
55157  fi
55158done
55159  done
55160IFS=$as_save_IFS
55161
55162fi
55163fi
55164OBJDUMP=$ac_cv_prog_OBJDUMP
55165if test -n "$OBJDUMP"; then
55166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
55167$as_echo "$OBJDUMP" >&6; }
55168else
55169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55170$as_echo "no" >&6; }
55171fi
55172
55173
55174fi
55175if test -z "$ac_cv_prog_OBJDUMP"; then
55176  ac_ct_OBJDUMP=$OBJDUMP
55177  # Extract the first word of "objdump", so it can be a program name with args.
55178set dummy objdump; ac_word=$2
55179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55180$as_echo_n "checking for $ac_word... " >&6; }
55181if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
55182  $as_echo_n "(cached) " >&6
55183else
55184  if test -n "$ac_ct_OBJDUMP"; then
55185  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
55186else
55187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55188for as_dir in $PATH
55189do
55190  IFS=$as_save_IFS
55191  test -z "$as_dir" && as_dir=.
55192    for ac_exec_ext in '' $ac_executable_extensions; do
55193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55194    ac_cv_prog_ac_ct_OBJDUMP="objdump"
55195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55196    break 2
55197  fi
55198done
55199  done
55200IFS=$as_save_IFS
55201
55202fi
55203fi
55204ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
55205if test -n "$ac_ct_OBJDUMP"; then
55206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
55207$as_echo "$ac_ct_OBJDUMP" >&6; }
55208else
55209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55210$as_echo "no" >&6; }
55211fi
55212
55213  if test "x$ac_ct_OBJDUMP" = x; then
55214    OBJDUMP="false"
55215  else
55216    case $cross_compiling:$ac_tool_warned in
55217yes:)
55218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
55219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
55220ac_tool_warned=yes ;;
55221esac
55222    OBJDUMP=$ac_ct_OBJDUMP
55223  fi
55224else
55225  OBJDUMP="$ac_cv_prog_OBJDUMP"
55226fi
55227
55228test -z "$OBJDUMP" && OBJDUMP=objdump
55229
55230
55231
55232
55233
55234
55235
55236
55237
55238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
55239$as_echo_n "checking how to recognize dependent libraries... " >&6; }
55240if ${lt_cv_deplibs_check_method+:} false; then :
55241  $as_echo_n "(cached) " >&6
55242else
55243  lt_cv_file_magic_cmd='$MAGIC_CMD'
55244lt_cv_file_magic_test_file=
55245lt_cv_deplibs_check_method='unknown'
55246# Need to set the preceding variable on all platforms that support
55247# interlibrary dependencies.
55248# 'none' -- dependencies not supported.
55249# 'unknown' -- same as none, but documents that we really don't know.
55250# 'pass_all' -- all dependencies passed with no checks.
55251# 'test_compile' -- check by making test program.
55252# 'file_magic [[regex]]' -- check by looking for files in library path
55253# that responds to the $file_magic_cmd with a given extended regex.
55254# If you have 'file' or equivalent on your system and you're not sure
55255# whether 'pass_all' will *always* work, you probably want this one.
55256
55257case $host_os in
55258aix[4-9]*)
55259  lt_cv_deplibs_check_method=pass_all
55260  ;;
55261
55262beos*)
55263  lt_cv_deplibs_check_method=pass_all
55264  ;;
55265
55266bsdi[45]*)
55267  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
55268  lt_cv_file_magic_cmd='/usr/bin/file -L'
55269  lt_cv_file_magic_test_file=/shlib/libc.so
55270  ;;
55271
55272cygwin*)
55273  # func_win32_libid is a shell function defined in ltmain.sh
55274  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
55275  lt_cv_file_magic_cmd='func_win32_libid'
55276  ;;
55277
55278mingw* | pw32*)
55279  # Base MSYS/MinGW do not provide the 'file' command needed by
55280  # func_win32_libid shell function, so use a weaker test based on 'objdump',
55281  # unless we find 'file', for example because we are cross-compiling.
55282  if ( file / ) >/dev/null 2>&1; then
55283    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
55284    lt_cv_file_magic_cmd='func_win32_libid'
55285  else
55286    # Keep this pattern in sync with the one in func_win32_libid.
55287    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
55288    lt_cv_file_magic_cmd='$OBJDUMP -f'
55289  fi
55290  ;;
55291
55292cegcc*)
55293  # use the weaker test based on 'objdump'. See mingw*.
55294  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
55295  lt_cv_file_magic_cmd='$OBJDUMP -f'
55296  ;;
55297
55298darwin* | rhapsody*)
55299  lt_cv_deplibs_check_method=pass_all
55300  ;;
55301
55302freebsd* | dragonfly*)
55303  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
55304    case $host_cpu in
55305    i*86 )
55306      # Not sure whether the presence of OpenBSD here was a mistake.
55307      # Let's accept both of them until this is cleared up.
55308      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
55309      lt_cv_file_magic_cmd=/usr/bin/file
55310      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
55311      ;;
55312    esac
55313  else
55314    lt_cv_deplibs_check_method=pass_all
55315  fi
55316  ;;
55317
55318haiku*)
55319  lt_cv_deplibs_check_method=pass_all
55320  ;;
55321
55322hpux10.20* | hpux11*)
55323  lt_cv_file_magic_cmd=/usr/bin/file
55324  case $host_cpu in
55325  ia64*)
55326    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
55327    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
55328    ;;
55329  hppa*64*)
55330    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]'
55331    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
55332    ;;
55333  *)
55334    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
55335    lt_cv_file_magic_test_file=/usr/lib/libc.sl
55336    ;;
55337  esac
55338  ;;
55339
55340interix[3-9]*)
55341  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
55342  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
55343  ;;
55344
55345irix5* | irix6* | nonstopux*)
55346  case $LD in
55347  *-32|*"-32 ") libmagic=32-bit;;
55348  *-n32|*"-n32 ") libmagic=N32;;
55349  *-64|*"-64 ") libmagic=64-bit;;
55350  *) libmagic=never-match;;
55351  esac
55352  lt_cv_deplibs_check_method=pass_all
55353  ;;
55354
55355# This must be glibc/ELF.
55356linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
55357  lt_cv_deplibs_check_method=pass_all
55358  ;;
55359
55360netbsd*)
55361  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
55362    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
55363  else
55364    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
55365  fi
55366  ;;
55367
55368newos6*)
55369  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
55370  lt_cv_file_magic_cmd=/usr/bin/file
55371  lt_cv_file_magic_test_file=/usr/lib/libnls.so
55372  ;;
55373
55374*nto* | *qnx*)
55375  lt_cv_deplibs_check_method=pass_all
55376  ;;
55377
55378openbsd* | bitrig*)
55379  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
55380    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
55381  else
55382    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
55383  fi
55384  ;;
55385
55386osf3* | osf4* | osf5*)
55387  lt_cv_deplibs_check_method=pass_all
55388  ;;
55389
55390rdos*)
55391  lt_cv_deplibs_check_method=pass_all
55392  ;;
55393
55394solaris*)
55395  lt_cv_deplibs_check_method=pass_all
55396  ;;
55397
55398sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
55399  lt_cv_deplibs_check_method=pass_all
55400  ;;
55401
55402sysv4 | sysv4.3*)
55403  case $host_vendor in
55404  motorola)
55405    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]'
55406    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
55407    ;;
55408  ncr)
55409    lt_cv_deplibs_check_method=pass_all
55410    ;;
55411  sequent)
55412    lt_cv_file_magic_cmd='/bin/file'
55413    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
55414    ;;
55415  sni)
55416    lt_cv_file_magic_cmd='/bin/file'
55417    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
55418    lt_cv_file_magic_test_file=/lib/libc.so
55419    ;;
55420  siemens)
55421    lt_cv_deplibs_check_method=pass_all
55422    ;;
55423  pc)
55424    lt_cv_deplibs_check_method=pass_all
55425    ;;
55426  esac
55427  ;;
55428
55429tpf*)
55430  lt_cv_deplibs_check_method=pass_all
55431  ;;
55432os2*)
55433  lt_cv_deplibs_check_method=pass_all
55434  ;;
55435esac
55436
55437fi
55438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
55439$as_echo "$lt_cv_deplibs_check_method" >&6; }
55440
55441file_magic_glob=
55442want_nocaseglob=no
55443if test "$build" = "$host"; then
55444  case $host_os in
55445  mingw* | pw32*)
55446    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
55447      want_nocaseglob=yes
55448    else
55449      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
55450    fi
55451    ;;
55452  esac
55453fi
55454
55455file_magic_cmd=$lt_cv_file_magic_cmd
55456deplibs_check_method=$lt_cv_deplibs_check_method
55457test -z "$deplibs_check_method" && deplibs_check_method=unknown
55458
55459
55460
55461
55462
55463
55464
55465
55466
55467
55468
55469
55470
55471
55472
55473
55474
55475
55476
55477
55478
55479
55480if test -n "$ac_tool_prefix"; then
55481  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
55482set dummy ${ac_tool_prefix}dlltool; ac_word=$2
55483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55484$as_echo_n "checking for $ac_word... " >&6; }
55485if ${ac_cv_prog_DLLTOOL+:} false; then :
55486  $as_echo_n "(cached) " >&6
55487else
55488  if test -n "$DLLTOOL"; then
55489  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
55490else
55491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55492for as_dir in $PATH
55493do
55494  IFS=$as_save_IFS
55495  test -z "$as_dir" && as_dir=.
55496    for ac_exec_ext in '' $ac_executable_extensions; do
55497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55498    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
55499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55500    break 2
55501  fi
55502done
55503  done
55504IFS=$as_save_IFS
55505
55506fi
55507fi
55508DLLTOOL=$ac_cv_prog_DLLTOOL
55509if test -n "$DLLTOOL"; then
55510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
55511$as_echo "$DLLTOOL" >&6; }
55512else
55513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55514$as_echo "no" >&6; }
55515fi
55516
55517
55518fi
55519if test -z "$ac_cv_prog_DLLTOOL"; then
55520  ac_ct_DLLTOOL=$DLLTOOL
55521  # Extract the first word of "dlltool", so it can be a program name with args.
55522set dummy dlltool; ac_word=$2
55523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55524$as_echo_n "checking for $ac_word... " >&6; }
55525if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
55526  $as_echo_n "(cached) " >&6
55527else
55528  if test -n "$ac_ct_DLLTOOL"; then
55529  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
55530else
55531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55532for as_dir in $PATH
55533do
55534  IFS=$as_save_IFS
55535  test -z "$as_dir" && as_dir=.
55536    for ac_exec_ext in '' $ac_executable_extensions; do
55537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55538    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
55539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55540    break 2
55541  fi
55542done
55543  done
55544IFS=$as_save_IFS
55545
55546fi
55547fi
55548ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
55549if test -n "$ac_ct_DLLTOOL"; then
55550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
55551$as_echo "$ac_ct_DLLTOOL" >&6; }
55552else
55553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55554$as_echo "no" >&6; }
55555fi
55556
55557  if test "x$ac_ct_DLLTOOL" = x; then
55558    DLLTOOL="false"
55559  else
55560    case $cross_compiling:$ac_tool_warned in
55561yes:)
55562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
55563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
55564ac_tool_warned=yes ;;
55565esac
55566    DLLTOOL=$ac_ct_DLLTOOL
55567  fi
55568else
55569  DLLTOOL="$ac_cv_prog_DLLTOOL"
55570fi
55571
55572test -z "$DLLTOOL" && DLLTOOL=dlltool
55573
55574
55575
55576
55577
55578
55579
55580
55581
55582
55583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
55584$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
55585if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
55586  $as_echo_n "(cached) " >&6
55587else
55588  lt_cv_sharedlib_from_linklib_cmd='unknown'
55589
55590case $host_os in
55591cygwin* | mingw* | pw32* | cegcc*)
55592  # two different shell functions defined in ltmain.sh;
55593  # decide which one to use based on capabilities of $DLLTOOL
55594  case `$DLLTOOL --help 2>&1` in
55595  *--identify-strict*)
55596    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
55597    ;;
55598  *)
55599    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
55600    ;;
55601  esac
55602  ;;
55603*)
55604  # fallback: assume linklib IS sharedlib
55605  lt_cv_sharedlib_from_linklib_cmd=$ECHO
55606  ;;
55607esac
55608
55609fi
55610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
55611$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
55612sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
55613test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
55614
55615
55616
55617
55618
55619
55620
55621if test -n "$ac_tool_prefix"; then
55622  for ac_prog in ar
55623  do
55624    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
55625set dummy $ac_tool_prefix$ac_prog; ac_word=$2
55626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55627$as_echo_n "checking for $ac_word... " >&6; }
55628if ${ac_cv_prog_AR+:} false; then :
55629  $as_echo_n "(cached) " >&6
55630else
55631  if test -n "$AR"; then
55632  ac_cv_prog_AR="$AR" # Let the user override the test.
55633else
55634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55635for as_dir in $PATH
55636do
55637  IFS=$as_save_IFS
55638  test -z "$as_dir" && as_dir=.
55639    for ac_exec_ext in '' $ac_executable_extensions; do
55640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55641    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
55642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55643    break 2
55644  fi
55645done
55646  done
55647IFS=$as_save_IFS
55648
55649fi
55650fi
55651AR=$ac_cv_prog_AR
55652if test -n "$AR"; then
55653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
55654$as_echo "$AR" >&6; }
55655else
55656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55657$as_echo "no" >&6; }
55658fi
55659
55660
55661    test -n "$AR" && break
55662  done
55663fi
55664if test -z "$AR"; then
55665  ac_ct_AR=$AR
55666  for ac_prog in ar
55667do
55668  # Extract the first word of "$ac_prog", so it can be a program name with args.
55669set dummy $ac_prog; ac_word=$2
55670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55671$as_echo_n "checking for $ac_word... " >&6; }
55672if ${ac_cv_prog_ac_ct_AR+:} false; then :
55673  $as_echo_n "(cached) " >&6
55674else
55675  if test -n "$ac_ct_AR"; then
55676  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
55677else
55678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55679for as_dir in $PATH
55680do
55681  IFS=$as_save_IFS
55682  test -z "$as_dir" && as_dir=.
55683    for ac_exec_ext in '' $ac_executable_extensions; do
55684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55685    ac_cv_prog_ac_ct_AR="$ac_prog"
55686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55687    break 2
55688  fi
55689done
55690  done
55691IFS=$as_save_IFS
55692
55693fi
55694fi
55695ac_ct_AR=$ac_cv_prog_ac_ct_AR
55696if test -n "$ac_ct_AR"; then
55697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
55698$as_echo "$ac_ct_AR" >&6; }
55699else
55700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55701$as_echo "no" >&6; }
55702fi
55703
55704
55705  test -n "$ac_ct_AR" && break
55706done
55707
55708  if test "x$ac_ct_AR" = x; then
55709    AR="false"
55710  else
55711    case $cross_compiling:$ac_tool_warned in
55712yes:)
55713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
55714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
55715ac_tool_warned=yes ;;
55716esac
55717    AR=$ac_ct_AR
55718  fi
55719fi
55720
55721: ${AR=ar}
55722: ${AR_FLAGS=cru}
55723
55724
55725
55726
55727
55728
55729
55730
55731
55732
55733
55734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
55735$as_echo_n "checking for archiver @FILE support... " >&6; }
55736if ${lt_cv_ar_at_file+:} false; then :
55737  $as_echo_n "(cached) " >&6
55738else
55739  lt_cv_ar_at_file=no
55740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55741/* end confdefs.h.  */
55742
55743int
55744main ()
55745{
55746
55747  ;
55748  return 0;
55749}
55750_ACEOF
55751if ac_fn_c_try_compile "$LINENO"; then :
55752  echo conftest.$ac_objext > conftest.lst
55753      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
55754      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
55755  (eval $lt_ar_try) 2>&5
55756  ac_status=$?
55757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55758  test $ac_status = 0; }
55759      if test 0 -eq "$ac_status"; then
55760	# Ensure the archiver fails upon bogus file names.
55761	rm -f conftest.$ac_objext libconftest.a
55762	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
55763  (eval $lt_ar_try) 2>&5
55764  ac_status=$?
55765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55766  test $ac_status = 0; }
55767	if test 0 -ne "$ac_status"; then
55768          lt_cv_ar_at_file=@
55769        fi
55770      fi
55771      rm -f conftest.* libconftest.a
55772
55773fi
55774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55775
55776fi
55777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
55778$as_echo "$lt_cv_ar_at_file" >&6; }
55779
55780if test no = "$lt_cv_ar_at_file"; then
55781  archiver_list_spec=
55782else
55783  archiver_list_spec=$lt_cv_ar_at_file
55784fi
55785
55786
55787
55788
55789
55790
55791
55792if test -n "$ac_tool_prefix"; then
55793  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
55794set dummy ${ac_tool_prefix}strip; ac_word=$2
55795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55796$as_echo_n "checking for $ac_word... " >&6; }
55797if ${ac_cv_prog_STRIP+:} false; then :
55798  $as_echo_n "(cached) " >&6
55799else
55800  if test -n "$STRIP"; then
55801  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
55802else
55803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55804for as_dir in $PATH
55805do
55806  IFS=$as_save_IFS
55807  test -z "$as_dir" && as_dir=.
55808    for ac_exec_ext in '' $ac_executable_extensions; do
55809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55810    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
55811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55812    break 2
55813  fi
55814done
55815  done
55816IFS=$as_save_IFS
55817
55818fi
55819fi
55820STRIP=$ac_cv_prog_STRIP
55821if test -n "$STRIP"; then
55822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
55823$as_echo "$STRIP" >&6; }
55824else
55825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55826$as_echo "no" >&6; }
55827fi
55828
55829
55830fi
55831if test -z "$ac_cv_prog_STRIP"; then
55832  ac_ct_STRIP=$STRIP
55833  # Extract the first word of "strip", so it can be a program name with args.
55834set dummy strip; ac_word=$2
55835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55836$as_echo_n "checking for $ac_word... " >&6; }
55837if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
55838  $as_echo_n "(cached) " >&6
55839else
55840  if test -n "$ac_ct_STRIP"; then
55841  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
55842else
55843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55844for as_dir in $PATH
55845do
55846  IFS=$as_save_IFS
55847  test -z "$as_dir" && as_dir=.
55848    for ac_exec_ext in '' $ac_executable_extensions; do
55849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55850    ac_cv_prog_ac_ct_STRIP="strip"
55851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55852    break 2
55853  fi
55854done
55855  done
55856IFS=$as_save_IFS
55857
55858fi
55859fi
55860ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
55861if test -n "$ac_ct_STRIP"; then
55862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
55863$as_echo "$ac_ct_STRIP" >&6; }
55864else
55865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55866$as_echo "no" >&6; }
55867fi
55868
55869  if test "x$ac_ct_STRIP" = x; then
55870    STRIP=":"
55871  else
55872    case $cross_compiling:$ac_tool_warned in
55873yes:)
55874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
55875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
55876ac_tool_warned=yes ;;
55877esac
55878    STRIP=$ac_ct_STRIP
55879  fi
55880else
55881  STRIP="$ac_cv_prog_STRIP"
55882fi
55883
55884test -z "$STRIP" && STRIP=:
55885
55886
55887
55888
55889
55890
55891if test -n "$ac_tool_prefix"; then
55892  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
55893set dummy ${ac_tool_prefix}ranlib; ac_word=$2
55894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55895$as_echo_n "checking for $ac_word... " >&6; }
55896if ${ac_cv_prog_RANLIB+:} false; then :
55897  $as_echo_n "(cached) " >&6
55898else
55899  if test -n "$RANLIB"; then
55900  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
55901else
55902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55903for as_dir in $PATH
55904do
55905  IFS=$as_save_IFS
55906  test -z "$as_dir" && as_dir=.
55907    for ac_exec_ext in '' $ac_executable_extensions; do
55908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55909    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
55910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55911    break 2
55912  fi
55913done
55914  done
55915IFS=$as_save_IFS
55916
55917fi
55918fi
55919RANLIB=$ac_cv_prog_RANLIB
55920if test -n "$RANLIB"; then
55921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
55922$as_echo "$RANLIB" >&6; }
55923else
55924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55925$as_echo "no" >&6; }
55926fi
55927
55928
55929fi
55930if test -z "$ac_cv_prog_RANLIB"; then
55931  ac_ct_RANLIB=$RANLIB
55932  # Extract the first word of "ranlib", so it can be a program name with args.
55933set dummy ranlib; ac_word=$2
55934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55935$as_echo_n "checking for $ac_word... " >&6; }
55936if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
55937  $as_echo_n "(cached) " >&6
55938else
55939  if test -n "$ac_ct_RANLIB"; then
55940  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
55941else
55942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55943for as_dir in $PATH
55944do
55945  IFS=$as_save_IFS
55946  test -z "$as_dir" && as_dir=.
55947    for ac_exec_ext in '' $ac_executable_extensions; do
55948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55949    ac_cv_prog_ac_ct_RANLIB="ranlib"
55950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55951    break 2
55952  fi
55953done
55954  done
55955IFS=$as_save_IFS
55956
55957fi
55958fi
55959ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
55960if test -n "$ac_ct_RANLIB"; then
55961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
55962$as_echo "$ac_ct_RANLIB" >&6; }
55963else
55964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55965$as_echo "no" >&6; }
55966fi
55967
55968  if test "x$ac_ct_RANLIB" = x; then
55969    RANLIB=":"
55970  else
55971    case $cross_compiling:$ac_tool_warned in
55972yes:)
55973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
55974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
55975ac_tool_warned=yes ;;
55976esac
55977    RANLIB=$ac_ct_RANLIB
55978  fi
55979else
55980  RANLIB="$ac_cv_prog_RANLIB"
55981fi
55982
55983test -z "$RANLIB" && RANLIB=:
55984
55985
55986
55987
55988
55989
55990# Determine commands to create old-style static archives.
55991old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
55992old_postinstall_cmds='chmod 644 $oldlib'
55993old_postuninstall_cmds=
55994
55995if test -n "$RANLIB"; then
55996  case $host_os in
55997  bitrig* | openbsd*)
55998    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
55999    ;;
56000  *)
56001    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
56002    ;;
56003  esac
56004  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
56005fi
56006
56007case $host_os in
56008  darwin*)
56009    lock_old_archive_extraction=yes ;;
56010  *)
56011    lock_old_archive_extraction=no ;;
56012esac
56013
56014
56015
56016
56017
56018
56019
56020
56021
56022
56023
56024
56025
56026
56027
56028
56029
56030
56031
56032
56033
56034
56035
56036
56037
56038
56039
56040
56041
56042
56043
56044
56045
56046
56047
56048
56049
56050
56051
56052# If no C compiler was specified, use CC.
56053LTCC=${LTCC-"$CC"}
56054
56055# If no C compiler flags were specified, use CFLAGS.
56056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
56057
56058# Allow CC to be a program name with arguments.
56059compiler=$CC
56060
56061
56062# Check for command to grab the raw symbol name followed by C symbol from nm.
56063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
56064$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
56065if ${lt_cv_sys_global_symbol_pipe+:} false; then :
56066  $as_echo_n "(cached) " >&6
56067else
56068
56069# These are sane defaults that work on at least a few old systems.
56070# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
56071
56072# Character class describing NM global symbol codes.
56073symcode='[BCDEGRST]'
56074
56075# Regexp to match symbols that can be accessed directly from C.
56076sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
56077
56078# Define system-specific variables.
56079case $host_os in
56080aix*)
56081  symcode='[BCDT]'
56082  ;;
56083cygwin* | mingw* | pw32* | cegcc*)
56084  symcode='[ABCDGISTW]'
56085  ;;
56086hpux*)
56087  if test ia64 = "$host_cpu"; then
56088    symcode='[ABCDEGRST]'
56089  fi
56090  ;;
56091irix* | nonstopux*)
56092  symcode='[BCDEGRST]'
56093  ;;
56094osf*)
56095  symcode='[BCDEGQRST]'
56096  ;;
56097solaris*)
56098  symcode='[BDRT]'
56099  ;;
56100sco3.2v5*)
56101  symcode='[DT]'
56102  ;;
56103sysv4.2uw2*)
56104  symcode='[DT]'
56105  ;;
56106sysv5* | sco5v6* | unixware* | OpenUNIX*)
56107  symcode='[ABDT]'
56108  ;;
56109sysv4)
56110  symcode='[DFNSTU]'
56111  ;;
56112esac
56113
56114# If we're using GNU nm, then use its standard symbol codes.
56115case `$NM -V 2>&1` in
56116*GNU* | *'with BFD'*)
56117  symcode='[ABCDGIRSTW]' ;;
56118esac
56119
56120if test "$lt_cv_nm_interface" = "MS dumpbin"; then
56121  # Gets list of data symbols to import.
56122  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
56123  # Adjust the below global symbol transforms to fixup imported variables.
56124  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
56125  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
56126  lt_c_name_lib_hook="\
56127  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
56128  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
56129else
56130  # Disable hooks by default.
56131  lt_cv_sys_global_symbol_to_import=
56132  lt_cdecl_hook=
56133  lt_c_name_hook=
56134  lt_c_name_lib_hook=
56135fi
56136
56137# Transform an extracted symbol line into a proper C declaration.
56138# Some systems (esp. on ia64) link data and code symbols differently,
56139# so use this general approach.
56140lt_cv_sys_global_symbol_to_cdecl="sed -n"\
56141$lt_cdecl_hook\
56142" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
56143" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
56144
56145# Transform an extracted symbol line into symbol name and symbol address
56146lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
56147$lt_c_name_hook\
56148" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
56149" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
56150
56151# Transform an extracted symbol line into symbol name with lib prefix and
56152# symbol address.
56153lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
56154$lt_c_name_lib_hook\
56155" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
56156" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
56157" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
56158
56159# Handle CRLF in mingw tool chain
56160opt_cr=
56161case $build_os in
56162mingw*)
56163  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
56164  ;;
56165esac
56166
56167# Try without a prefix underscore, then with it.
56168for ac_symprfx in "" "_"; do
56169
56170  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
56171  symxfrm="\\1 $ac_symprfx\\2 \\2"
56172
56173  # Write the raw and C identifiers.
56174  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
56175    # Fake it for dumpbin and say T for any non-static function,
56176    # D for any global variable and I for any imported variable.
56177    # Also find C++ and __fastcall symbols from MSVC++,
56178    # which start with @ or ?.
56179    lt_cv_sys_global_symbol_pipe="$AWK '"\
56180"     {last_section=section; section=\$ 3};"\
56181"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
56182"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
56183"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
56184"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
56185"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
56186"     \$ 0!~/External *\|/{next};"\
56187"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
56188"     {if(hide[section]) next};"\
56189"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
56190"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
56191"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
56192"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
56193"     ' prfx=^$ac_symprfx"
56194  else
56195    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
56196  fi
56197  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
56198
56199  # Check to see that the pipe works correctly.
56200  pipe_works=no
56201
56202  rm -f conftest*
56203  cat > conftest.$ac_ext <<_LT_EOF
56204#ifdef __cplusplus
56205extern "C" {
56206#endif
56207char nm_test_var;
56208void nm_test_func(void);
56209void nm_test_func(void){}
56210#ifdef __cplusplus
56211}
56212#endif
56213int main(){nm_test_var='a';nm_test_func();return(0);}
56214_LT_EOF
56215
56216  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
56217  (eval $ac_compile) 2>&5
56218  ac_status=$?
56219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56220  test $ac_status = 0; }; then
56221    # Now try to grab the symbols.
56222    nlist=conftest.nm
56223    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
56224  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
56225  ac_status=$?
56226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56227  test $ac_status = 0; } && test -s "$nlist"; then
56228      # Try sorting and uniquifying the output.
56229      if sort "$nlist" | uniq > "$nlist"T; then
56230	mv -f "$nlist"T "$nlist"
56231      else
56232	rm -f "$nlist"T
56233      fi
56234
56235      # Make sure that we snagged all the symbols we need.
56236      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
56237	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
56238	  cat <<_LT_EOF > conftest.$ac_ext
56239/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
56240#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
56241/* DATA imports from DLLs on WIN32 can't be const, because runtime
56242   relocations are performed -- see ld's documentation on pseudo-relocs.  */
56243# define LT_DLSYM_CONST
56244#elif defined __osf__
56245/* This system does not cope well with relocations in const data.  */
56246# define LT_DLSYM_CONST
56247#else
56248# define LT_DLSYM_CONST const
56249#endif
56250
56251#ifdef __cplusplus
56252extern "C" {
56253#endif
56254
56255_LT_EOF
56256	  # Now generate the symbol file.
56257	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
56258
56259	  cat <<_LT_EOF >> conftest.$ac_ext
56260
56261/* The mapping between symbol names and symbols.  */
56262LT_DLSYM_CONST struct {
56263  const char *name;
56264  void       *address;
56265}
56266lt__PROGRAM__LTX_preloaded_symbols[] =
56267{
56268  { "@PROGRAM@", (void *) 0 },
56269_LT_EOF
56270	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
56271	  cat <<\_LT_EOF >> conftest.$ac_ext
56272  {0, (void *) 0}
56273};
56274
56275/* This works around a problem in FreeBSD linker */
56276#ifdef FREEBSD_WORKAROUND
56277static const void *lt_preloaded_setup() {
56278  return lt__PROGRAM__LTX_preloaded_symbols;
56279}
56280#endif
56281
56282#ifdef __cplusplus
56283}
56284#endif
56285_LT_EOF
56286	  # Now try linking the two files.
56287	  mv conftest.$ac_objext conftstm.$ac_objext
56288	  lt_globsym_save_LIBS=$LIBS
56289	  lt_globsym_save_CFLAGS=$CFLAGS
56290	  LIBS=conftstm.$ac_objext
56291	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
56292	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
56293  (eval $ac_link) 2>&5
56294  ac_status=$?
56295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56296  test $ac_status = 0; } && test -s conftest$ac_exeext; then
56297	    pipe_works=yes
56298	  fi
56299	  LIBS=$lt_globsym_save_LIBS
56300	  CFLAGS=$lt_globsym_save_CFLAGS
56301	else
56302	  echo "cannot find nm_test_func in $nlist" >&5
56303	fi
56304      else
56305	echo "cannot find nm_test_var in $nlist" >&5
56306      fi
56307    else
56308      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
56309    fi
56310  else
56311    echo "$progname: failed program was:" >&5
56312    cat conftest.$ac_ext >&5
56313  fi
56314  rm -rf conftest* conftst*
56315
56316  # Do not use the global_symbol_pipe unless it works.
56317  if test yes = "$pipe_works"; then
56318    break
56319  else
56320    lt_cv_sys_global_symbol_pipe=
56321  fi
56322done
56323
56324fi
56325
56326if test -z "$lt_cv_sys_global_symbol_pipe"; then
56327  lt_cv_sys_global_symbol_to_cdecl=
56328fi
56329if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
56330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
56331$as_echo "failed" >&6; }
56332else
56333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
56334$as_echo "ok" >&6; }
56335fi
56336
56337# Response file support.
56338if test "$lt_cv_nm_interface" = "MS dumpbin"; then
56339  nm_file_list_spec='@'
56340elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
56341  nm_file_list_spec='@'
56342fi
56343
56344
56345
56346
56347
56348
56349
56350
56351
56352
56353
56354
56355
56356
56357
56358
56359
56360
56361
56362
56363
56364
56365
56366
56367
56368
56369
56370
56371
56372
56373
56374
56375
56376
56377
56378
56379
56380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
56381$as_echo_n "checking for sysroot... " >&6; }
56382
56383# Check whether --with-sysroot was given.
56384if test "${with_sysroot+set}" = set; then :
56385  withval=$with_sysroot;
56386else
56387  with_sysroot=no
56388fi
56389
56390
56391lt_sysroot=
56392case $with_sysroot in #(
56393 yes)
56394   if test yes = "$GCC"; then
56395     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
56396   fi
56397   ;; #(
56398 /*)
56399   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
56400   ;; #(
56401 no|'')
56402   ;; #(
56403 *)
56404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
56405$as_echo "$with_sysroot" >&6; }
56406   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
56407   ;;
56408esac
56409
56410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
56411$as_echo "${lt_sysroot:-no}" >&6; }
56412
56413
56414
56415
56416
56417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
56418$as_echo_n "checking for a working dd... " >&6; }
56419if ${ac_cv_path_lt_DD+:} false; then :
56420  $as_echo_n "(cached) " >&6
56421else
56422  printf 0123456789abcdef0123456789abcdef >conftest.i
56423cat conftest.i conftest.i >conftest2.i
56424: ${lt_DD:=$DD}
56425if test -z "$lt_DD"; then
56426  ac_path_lt_DD_found=false
56427  # Loop through the user's path and test for each of PROGNAME-LIST
56428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56429for as_dir in $PATH
56430do
56431  IFS=$as_save_IFS
56432  test -z "$as_dir" && as_dir=.
56433    for ac_prog in dd; do
56434    for ac_exec_ext in '' $ac_executable_extensions; do
56435      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
56436      as_fn_executable_p "$ac_path_lt_DD" || continue
56437if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
56438  cmp -s conftest.i conftest.out \
56439  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
56440fi
56441      $ac_path_lt_DD_found && break 3
56442    done
56443  done
56444  done
56445IFS=$as_save_IFS
56446  if test -z "$ac_cv_path_lt_DD"; then
56447    :
56448  fi
56449else
56450  ac_cv_path_lt_DD=$lt_DD
56451fi
56452
56453rm -f conftest.i conftest2.i conftest.out
56454fi
56455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
56456$as_echo "$ac_cv_path_lt_DD" >&6; }
56457
56458
56459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
56460$as_echo_n "checking how to truncate binary pipes... " >&6; }
56461if ${lt_cv_truncate_bin+:} false; then :
56462  $as_echo_n "(cached) " >&6
56463else
56464  printf 0123456789abcdef0123456789abcdef >conftest.i
56465cat conftest.i conftest.i >conftest2.i
56466lt_cv_truncate_bin=
56467if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
56468  cmp -s conftest.i conftest.out \
56469  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
56470fi
56471rm -f conftest.i conftest2.i conftest.out
56472test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
56473fi
56474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
56475$as_echo "$lt_cv_truncate_bin" >&6; }
56476
56477
56478
56479
56480
56481
56482
56483# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
56484func_cc_basename ()
56485{
56486    for cc_temp in $*""; do
56487      case $cc_temp in
56488        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
56489        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
56490        \-*) ;;
56491        *) break;;
56492      esac
56493    done
56494    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
56495}
56496
56497# Check whether --enable-libtool-lock was given.
56498if test "${enable_libtool_lock+set}" = set; then :
56499  enableval=$enable_libtool_lock;
56500fi
56501
56502test no = "$enable_libtool_lock" || enable_libtool_lock=yes
56503
56504# Some flags need to be propagated to the compiler or linker for good
56505# libtool support.
56506case $host in
56507ia64-*-hpux*)
56508  # Find out what ABI is being produced by ac_compile, and set mode
56509  # options accordingly.
56510  echo 'int i;' > conftest.$ac_ext
56511  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
56512  (eval $ac_compile) 2>&5
56513  ac_status=$?
56514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56515  test $ac_status = 0; }; then
56516    case `/usr/bin/file conftest.$ac_objext` in
56517      *ELF-32*)
56518	HPUX_IA64_MODE=32
56519	;;
56520      *ELF-64*)
56521	HPUX_IA64_MODE=64
56522	;;
56523    esac
56524  fi
56525  rm -rf conftest*
56526  ;;
56527*-*-irix6*)
56528  # Find out what ABI is being produced by ac_compile, and set linker
56529  # options accordingly.
56530  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
56531  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
56532  (eval $ac_compile) 2>&5
56533  ac_status=$?
56534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56535  test $ac_status = 0; }; then
56536    if test yes = "$lt_cv_prog_gnu_ld"; then
56537      case `/usr/bin/file conftest.$ac_objext` in
56538	*32-bit*)
56539	  LD="${LD-ld} -melf32bsmip"
56540	  ;;
56541	*N32*)
56542	  LD="${LD-ld} -melf32bmipn32"
56543	  ;;
56544	*64-bit*)
56545	  LD="${LD-ld} -melf64bmip"
56546	;;
56547      esac
56548    else
56549      case `/usr/bin/file conftest.$ac_objext` in
56550	*32-bit*)
56551	  LD="${LD-ld} -32"
56552	  ;;
56553	*N32*)
56554	  LD="${LD-ld} -n32"
56555	  ;;
56556	*64-bit*)
56557	  LD="${LD-ld} -64"
56558	  ;;
56559      esac
56560    fi
56561  fi
56562  rm -rf conftest*
56563  ;;
56564
56565mips64*-*linux*)
56566  # Find out what ABI is being produced by ac_compile, and set linker
56567  # options accordingly.
56568  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
56569  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
56570  (eval $ac_compile) 2>&5
56571  ac_status=$?
56572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56573  test $ac_status = 0; }; then
56574    emul=elf
56575    case `/usr/bin/file conftest.$ac_objext` in
56576      *32-bit*)
56577	emul="${emul}32"
56578	;;
56579      *64-bit*)
56580	emul="${emul}64"
56581	;;
56582    esac
56583    case `/usr/bin/file conftest.$ac_objext` in
56584      *MSB*)
56585	emul="${emul}btsmip"
56586	;;
56587      *LSB*)
56588	emul="${emul}ltsmip"
56589	;;
56590    esac
56591    case `/usr/bin/file conftest.$ac_objext` in
56592      *N32*)
56593	emul="${emul}n32"
56594	;;
56595    esac
56596    LD="${LD-ld} -m $emul"
56597  fi
56598  rm -rf conftest*
56599  ;;
56600
56601x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
56602s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
56603  # Find out what ABI is being produced by ac_compile, and set linker
56604  # options accordingly.  Note that the listed cases only cover the
56605  # situations where additional linker options are needed (such as when
56606  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
56607  # vice versa); the common cases where no linker options are needed do
56608  # not appear in the list.
56609  echo 'int i;' > conftest.$ac_ext
56610  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
56611  (eval $ac_compile) 2>&5
56612  ac_status=$?
56613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56614  test $ac_status = 0; }; then
56615    case `/usr/bin/file conftest.o` in
56616      *32-bit*)
56617	case $host in
56618	  x86_64-*kfreebsd*-gnu)
56619	    LD="${LD-ld} -m elf_i386_fbsd"
56620	    ;;
56621	  x86_64-*linux*)
56622	    case `/usr/bin/file conftest.o` in
56623	      *x86-64*)
56624		LD="${LD-ld} -m elf32_x86_64"
56625		;;
56626	      *)
56627		LD="${LD-ld} -m elf_i386"
56628		;;
56629	    esac
56630	    ;;
56631	  powerpc64le-*linux*)
56632	    LD="${LD-ld} -m elf32lppclinux"
56633	    ;;
56634	  powerpc64-*linux*)
56635	    LD="${LD-ld} -m elf32ppclinux"
56636	    ;;
56637	  s390x-*linux*)
56638	    LD="${LD-ld} -m elf_s390"
56639	    ;;
56640	  sparc64-*linux*)
56641	    LD="${LD-ld} -m elf32_sparc"
56642	    ;;
56643	esac
56644	;;
56645      *64-bit*)
56646	case $host in
56647	  x86_64-*kfreebsd*-gnu)
56648	    LD="${LD-ld} -m elf_x86_64_fbsd"
56649	    ;;
56650	  x86_64-*linux*)
56651	    LD="${LD-ld} -m elf_x86_64"
56652	    ;;
56653	  powerpcle-*linux*)
56654	    LD="${LD-ld} -m elf64lppc"
56655	    ;;
56656	  powerpc-*linux*)
56657	    LD="${LD-ld} -m elf64ppc"
56658	    ;;
56659	  s390*-*linux*|s390*-*tpf*)
56660	    LD="${LD-ld} -m elf64_s390"
56661	    ;;
56662	  sparc*-*linux*)
56663	    LD="${LD-ld} -m elf64_sparc"
56664	    ;;
56665	esac
56666	;;
56667    esac
56668  fi
56669  rm -rf conftest*
56670  ;;
56671
56672*-*-sco3.2v5*)
56673  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
56674  SAVE_CFLAGS=$CFLAGS
56675  CFLAGS="$CFLAGS -belf"
56676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
56677$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
56678if ${lt_cv_cc_needs_belf+:} false; then :
56679  $as_echo_n "(cached) " >&6
56680else
56681  ac_ext=c
56682ac_cpp='$CPP $CPPFLAGS'
56683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
56684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
56685ac_compiler_gnu=$ac_cv_c_compiler_gnu
56686
56687     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56688/* end confdefs.h.  */
56689
56690int
56691main ()
56692{
56693
56694  ;
56695  return 0;
56696}
56697_ACEOF
56698if ac_fn_c_try_link "$LINENO"; then :
56699  lt_cv_cc_needs_belf=yes
56700else
56701  lt_cv_cc_needs_belf=no
56702fi
56703rm -f core conftest.err conftest.$ac_objext \
56704    conftest$ac_exeext conftest.$ac_ext
56705     ac_ext=c
56706ac_cpp='$CPP $CPPFLAGS'
56707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
56708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
56709ac_compiler_gnu=$ac_cv_c_compiler_gnu
56710
56711fi
56712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
56713$as_echo "$lt_cv_cc_needs_belf" >&6; }
56714  if test yes != "$lt_cv_cc_needs_belf"; then
56715    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
56716    CFLAGS=$SAVE_CFLAGS
56717  fi
56718  ;;
56719*-*solaris*)
56720  # Find out what ABI is being produced by ac_compile, and set linker
56721  # options accordingly.
56722  echo 'int i;' > conftest.$ac_ext
56723  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
56724  (eval $ac_compile) 2>&5
56725  ac_status=$?
56726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56727  test $ac_status = 0; }; then
56728    case `/usr/bin/file conftest.o` in
56729    *64-bit*)
56730      case $lt_cv_prog_gnu_ld in
56731      yes*)
56732        case $host in
56733        i?86-*-solaris*|x86_64-*-solaris*)
56734          LD="${LD-ld} -m elf_x86_64"
56735          ;;
56736        sparc*-*-solaris*)
56737          LD="${LD-ld} -m elf64_sparc"
56738          ;;
56739        esac
56740        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
56741        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
56742          LD=${LD-ld}_sol2
56743        fi
56744        ;;
56745      *)
56746	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
56747	  LD="${LD-ld} -64"
56748	fi
56749	;;
56750      esac
56751      ;;
56752    esac
56753  fi
56754  rm -rf conftest*
56755  ;;
56756esac
56757
56758need_locks=$enable_libtool_lock
56759
56760if test -n "$ac_tool_prefix"; then
56761  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
56762set dummy ${ac_tool_prefix}mt; ac_word=$2
56763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
56764$as_echo_n "checking for $ac_word... " >&6; }
56765if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
56766  $as_echo_n "(cached) " >&6
56767else
56768  if test -n "$MANIFEST_TOOL"; then
56769  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
56770else
56771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56772for as_dir in $PATH
56773do
56774  IFS=$as_save_IFS
56775  test -z "$as_dir" && as_dir=.
56776    for ac_exec_ext in '' $ac_executable_extensions; do
56777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
56778    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
56779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56780    break 2
56781  fi
56782done
56783  done
56784IFS=$as_save_IFS
56785
56786fi
56787fi
56788MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
56789if test -n "$MANIFEST_TOOL"; then
56790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
56791$as_echo "$MANIFEST_TOOL" >&6; }
56792else
56793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56794$as_echo "no" >&6; }
56795fi
56796
56797
56798fi
56799if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
56800  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
56801  # Extract the first word of "mt", so it can be a program name with args.
56802set dummy mt; ac_word=$2
56803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
56804$as_echo_n "checking for $ac_word... " >&6; }
56805if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
56806  $as_echo_n "(cached) " >&6
56807else
56808  if test -n "$ac_ct_MANIFEST_TOOL"; then
56809  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
56810else
56811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56812for as_dir in $PATH
56813do
56814  IFS=$as_save_IFS
56815  test -z "$as_dir" && as_dir=.
56816    for ac_exec_ext in '' $ac_executable_extensions; do
56817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
56818    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
56819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56820    break 2
56821  fi
56822done
56823  done
56824IFS=$as_save_IFS
56825
56826fi
56827fi
56828ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
56829if test -n "$ac_ct_MANIFEST_TOOL"; then
56830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
56831$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
56832else
56833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56834$as_echo "no" >&6; }
56835fi
56836
56837  if test "x$ac_ct_MANIFEST_TOOL" = x; then
56838    MANIFEST_TOOL=":"
56839  else
56840    case $cross_compiling:$ac_tool_warned in
56841yes:)
56842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
56843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56844ac_tool_warned=yes ;;
56845esac
56846    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
56847  fi
56848else
56849  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
56850fi
56851
56852test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
56853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
56854$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
56855if ${lt_cv_path_mainfest_tool+:} false; then :
56856  $as_echo_n "(cached) " >&6
56857else
56858  lt_cv_path_mainfest_tool=no
56859  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
56860  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
56861  cat conftest.err >&5
56862  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
56863    lt_cv_path_mainfest_tool=yes
56864  fi
56865  rm -f conftest*
56866fi
56867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
56868$as_echo "$lt_cv_path_mainfest_tool" >&6; }
56869if test yes != "$lt_cv_path_mainfest_tool"; then
56870  MANIFEST_TOOL=:
56871fi
56872
56873
56874
56875
56876
56877
56878  case $host_os in
56879    rhapsody* | darwin*)
56880    if test -n "$ac_tool_prefix"; then
56881  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
56882set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
56883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
56884$as_echo_n "checking for $ac_word... " >&6; }
56885if ${ac_cv_prog_DSYMUTIL+:} false; then :
56886  $as_echo_n "(cached) " >&6
56887else
56888  if test -n "$DSYMUTIL"; then
56889  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
56890else
56891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56892for as_dir in $PATH
56893do
56894  IFS=$as_save_IFS
56895  test -z "$as_dir" && as_dir=.
56896    for ac_exec_ext in '' $ac_executable_extensions; do
56897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
56898    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
56899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56900    break 2
56901  fi
56902done
56903  done
56904IFS=$as_save_IFS
56905
56906fi
56907fi
56908DSYMUTIL=$ac_cv_prog_DSYMUTIL
56909if test -n "$DSYMUTIL"; then
56910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
56911$as_echo "$DSYMUTIL" >&6; }
56912else
56913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56914$as_echo "no" >&6; }
56915fi
56916
56917
56918fi
56919if test -z "$ac_cv_prog_DSYMUTIL"; then
56920  ac_ct_DSYMUTIL=$DSYMUTIL
56921  # Extract the first word of "dsymutil", so it can be a program name with args.
56922set dummy dsymutil; ac_word=$2
56923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
56924$as_echo_n "checking for $ac_word... " >&6; }
56925if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
56926  $as_echo_n "(cached) " >&6
56927else
56928  if test -n "$ac_ct_DSYMUTIL"; then
56929  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
56930else
56931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56932for as_dir in $PATH
56933do
56934  IFS=$as_save_IFS
56935  test -z "$as_dir" && as_dir=.
56936    for ac_exec_ext in '' $ac_executable_extensions; do
56937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
56938    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
56939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56940    break 2
56941  fi
56942done
56943  done
56944IFS=$as_save_IFS
56945
56946fi
56947fi
56948ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
56949if test -n "$ac_ct_DSYMUTIL"; then
56950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
56951$as_echo "$ac_ct_DSYMUTIL" >&6; }
56952else
56953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56954$as_echo "no" >&6; }
56955fi
56956
56957  if test "x$ac_ct_DSYMUTIL" = x; then
56958    DSYMUTIL=":"
56959  else
56960    case $cross_compiling:$ac_tool_warned in
56961yes:)
56962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
56963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56964ac_tool_warned=yes ;;
56965esac
56966    DSYMUTIL=$ac_ct_DSYMUTIL
56967  fi
56968else
56969  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
56970fi
56971
56972    if test -n "$ac_tool_prefix"; then
56973  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
56974set dummy ${ac_tool_prefix}nmedit; ac_word=$2
56975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
56976$as_echo_n "checking for $ac_word... " >&6; }
56977if ${ac_cv_prog_NMEDIT+:} false; then :
56978  $as_echo_n "(cached) " >&6
56979else
56980  if test -n "$NMEDIT"; then
56981  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
56982else
56983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56984for as_dir in $PATH
56985do
56986  IFS=$as_save_IFS
56987  test -z "$as_dir" && as_dir=.
56988    for ac_exec_ext in '' $ac_executable_extensions; do
56989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
56990    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
56991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56992    break 2
56993  fi
56994done
56995  done
56996IFS=$as_save_IFS
56997
56998fi
56999fi
57000NMEDIT=$ac_cv_prog_NMEDIT
57001if test -n "$NMEDIT"; then
57002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
57003$as_echo "$NMEDIT" >&6; }
57004else
57005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57006$as_echo "no" >&6; }
57007fi
57008
57009
57010fi
57011if test -z "$ac_cv_prog_NMEDIT"; then
57012  ac_ct_NMEDIT=$NMEDIT
57013  # Extract the first word of "nmedit", so it can be a program name with args.
57014set dummy nmedit; ac_word=$2
57015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57016$as_echo_n "checking for $ac_word... " >&6; }
57017if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
57018  $as_echo_n "(cached) " >&6
57019else
57020  if test -n "$ac_ct_NMEDIT"; then
57021  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
57022else
57023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57024for as_dir in $PATH
57025do
57026  IFS=$as_save_IFS
57027  test -z "$as_dir" && as_dir=.
57028    for ac_exec_ext in '' $ac_executable_extensions; do
57029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57030    ac_cv_prog_ac_ct_NMEDIT="nmedit"
57031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57032    break 2
57033  fi
57034done
57035  done
57036IFS=$as_save_IFS
57037
57038fi
57039fi
57040ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
57041if test -n "$ac_ct_NMEDIT"; then
57042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
57043$as_echo "$ac_ct_NMEDIT" >&6; }
57044else
57045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57046$as_echo "no" >&6; }
57047fi
57048
57049  if test "x$ac_ct_NMEDIT" = x; then
57050    NMEDIT=":"
57051  else
57052    case $cross_compiling:$ac_tool_warned in
57053yes:)
57054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
57055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57056ac_tool_warned=yes ;;
57057esac
57058    NMEDIT=$ac_ct_NMEDIT
57059  fi
57060else
57061  NMEDIT="$ac_cv_prog_NMEDIT"
57062fi
57063
57064    if test -n "$ac_tool_prefix"; then
57065  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
57066set dummy ${ac_tool_prefix}lipo; ac_word=$2
57067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57068$as_echo_n "checking for $ac_word... " >&6; }
57069if ${ac_cv_prog_LIPO+:} false; then :
57070  $as_echo_n "(cached) " >&6
57071else
57072  if test -n "$LIPO"; then
57073  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
57074else
57075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57076for as_dir in $PATH
57077do
57078  IFS=$as_save_IFS
57079  test -z "$as_dir" && as_dir=.
57080    for ac_exec_ext in '' $ac_executable_extensions; do
57081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57082    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
57083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57084    break 2
57085  fi
57086done
57087  done
57088IFS=$as_save_IFS
57089
57090fi
57091fi
57092LIPO=$ac_cv_prog_LIPO
57093if test -n "$LIPO"; then
57094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
57095$as_echo "$LIPO" >&6; }
57096else
57097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57098$as_echo "no" >&6; }
57099fi
57100
57101
57102fi
57103if test -z "$ac_cv_prog_LIPO"; then
57104  ac_ct_LIPO=$LIPO
57105  # Extract the first word of "lipo", so it can be a program name with args.
57106set dummy lipo; ac_word=$2
57107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57108$as_echo_n "checking for $ac_word... " >&6; }
57109if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
57110  $as_echo_n "(cached) " >&6
57111else
57112  if test -n "$ac_ct_LIPO"; then
57113  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
57114else
57115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57116for as_dir in $PATH
57117do
57118  IFS=$as_save_IFS
57119  test -z "$as_dir" && as_dir=.
57120    for ac_exec_ext in '' $ac_executable_extensions; do
57121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57122    ac_cv_prog_ac_ct_LIPO="lipo"
57123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57124    break 2
57125  fi
57126done
57127  done
57128IFS=$as_save_IFS
57129
57130fi
57131fi
57132ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
57133if test -n "$ac_ct_LIPO"; then
57134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
57135$as_echo "$ac_ct_LIPO" >&6; }
57136else
57137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57138$as_echo "no" >&6; }
57139fi
57140
57141  if test "x$ac_ct_LIPO" = x; then
57142    LIPO=":"
57143  else
57144    case $cross_compiling:$ac_tool_warned in
57145yes:)
57146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
57147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57148ac_tool_warned=yes ;;
57149esac
57150    LIPO=$ac_ct_LIPO
57151  fi
57152else
57153  LIPO="$ac_cv_prog_LIPO"
57154fi
57155
57156    if test -n "$ac_tool_prefix"; then
57157  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
57158set dummy ${ac_tool_prefix}otool; ac_word=$2
57159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57160$as_echo_n "checking for $ac_word... " >&6; }
57161if ${ac_cv_prog_OTOOL+:} false; then :
57162  $as_echo_n "(cached) " >&6
57163else
57164  if test -n "$OTOOL"; then
57165  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
57166else
57167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57168for as_dir in $PATH
57169do
57170  IFS=$as_save_IFS
57171  test -z "$as_dir" && as_dir=.
57172    for ac_exec_ext in '' $ac_executable_extensions; do
57173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57174    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
57175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57176    break 2
57177  fi
57178done
57179  done
57180IFS=$as_save_IFS
57181
57182fi
57183fi
57184OTOOL=$ac_cv_prog_OTOOL
57185if test -n "$OTOOL"; then
57186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
57187$as_echo "$OTOOL" >&6; }
57188else
57189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57190$as_echo "no" >&6; }
57191fi
57192
57193
57194fi
57195if test -z "$ac_cv_prog_OTOOL"; then
57196  ac_ct_OTOOL=$OTOOL
57197  # Extract the first word of "otool", so it can be a program name with args.
57198set dummy otool; ac_word=$2
57199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57200$as_echo_n "checking for $ac_word... " >&6; }
57201if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
57202  $as_echo_n "(cached) " >&6
57203else
57204  if test -n "$ac_ct_OTOOL"; then
57205  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
57206else
57207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57208for as_dir in $PATH
57209do
57210  IFS=$as_save_IFS
57211  test -z "$as_dir" && as_dir=.
57212    for ac_exec_ext in '' $ac_executable_extensions; do
57213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57214    ac_cv_prog_ac_ct_OTOOL="otool"
57215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57216    break 2
57217  fi
57218done
57219  done
57220IFS=$as_save_IFS
57221
57222fi
57223fi
57224ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
57225if test -n "$ac_ct_OTOOL"; then
57226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
57227$as_echo "$ac_ct_OTOOL" >&6; }
57228else
57229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57230$as_echo "no" >&6; }
57231fi
57232
57233  if test "x$ac_ct_OTOOL" = x; then
57234    OTOOL=":"
57235  else
57236    case $cross_compiling:$ac_tool_warned in
57237yes:)
57238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
57239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57240ac_tool_warned=yes ;;
57241esac
57242    OTOOL=$ac_ct_OTOOL
57243  fi
57244else
57245  OTOOL="$ac_cv_prog_OTOOL"
57246fi
57247
57248    if test -n "$ac_tool_prefix"; then
57249  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
57250set dummy ${ac_tool_prefix}otool64; ac_word=$2
57251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57252$as_echo_n "checking for $ac_word... " >&6; }
57253if ${ac_cv_prog_OTOOL64+:} false; then :
57254  $as_echo_n "(cached) " >&6
57255else
57256  if test -n "$OTOOL64"; then
57257  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
57258else
57259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57260for as_dir in $PATH
57261do
57262  IFS=$as_save_IFS
57263  test -z "$as_dir" && as_dir=.
57264    for ac_exec_ext in '' $ac_executable_extensions; do
57265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57266    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
57267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57268    break 2
57269  fi
57270done
57271  done
57272IFS=$as_save_IFS
57273
57274fi
57275fi
57276OTOOL64=$ac_cv_prog_OTOOL64
57277if test -n "$OTOOL64"; then
57278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
57279$as_echo "$OTOOL64" >&6; }
57280else
57281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57282$as_echo "no" >&6; }
57283fi
57284
57285
57286fi
57287if test -z "$ac_cv_prog_OTOOL64"; then
57288  ac_ct_OTOOL64=$OTOOL64
57289  # Extract the first word of "otool64", so it can be a program name with args.
57290set dummy otool64; ac_word=$2
57291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57292$as_echo_n "checking for $ac_word... " >&6; }
57293if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
57294  $as_echo_n "(cached) " >&6
57295else
57296  if test -n "$ac_ct_OTOOL64"; then
57297  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
57298else
57299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57300for as_dir in $PATH
57301do
57302  IFS=$as_save_IFS
57303  test -z "$as_dir" && as_dir=.
57304    for ac_exec_ext in '' $ac_executable_extensions; do
57305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57306    ac_cv_prog_ac_ct_OTOOL64="otool64"
57307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57308    break 2
57309  fi
57310done
57311  done
57312IFS=$as_save_IFS
57313
57314fi
57315fi
57316ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
57317if test -n "$ac_ct_OTOOL64"; then
57318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
57319$as_echo "$ac_ct_OTOOL64" >&6; }
57320else
57321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57322$as_echo "no" >&6; }
57323fi
57324
57325  if test "x$ac_ct_OTOOL64" = x; then
57326    OTOOL64=":"
57327  else
57328    case $cross_compiling:$ac_tool_warned in
57329yes:)
57330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
57331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57332ac_tool_warned=yes ;;
57333esac
57334    OTOOL64=$ac_ct_OTOOL64
57335  fi
57336else
57337  OTOOL64="$ac_cv_prog_OTOOL64"
57338fi
57339
57340
57341
57342
57343
57344
57345
57346
57347
57348
57349
57350
57351
57352
57353
57354
57355
57356
57357
57358
57359
57360
57361
57362
57363
57364
57365
57366    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
57367$as_echo_n "checking for -single_module linker flag... " >&6; }
57368if ${lt_cv_apple_cc_single_mod+:} false; then :
57369  $as_echo_n "(cached) " >&6
57370else
57371  lt_cv_apple_cc_single_mod=no
57372      if test -z "$LT_MULTI_MODULE"; then
57373	# By default we will add the -single_module flag. You can override
57374	# by either setting the environment variable LT_MULTI_MODULE
57375	# non-empty at configure time, or by adding -multi_module to the
57376	# link flags.
57377	rm -rf libconftest.dylib*
57378	echo "int foo(void){return 1;}" > conftest.c
57379	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
57380-dynamiclib -Wl,-single_module conftest.c" >&5
57381	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
57382	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
57383        _lt_result=$?
57384	# If there is a non-empty error log, and "single_module"
57385	# appears in it, assume the flag caused a linker warning
57386        if test -s conftest.err && $GREP single_module conftest.err; then
57387	  cat conftest.err >&5
57388	# Otherwise, if the output was created with a 0 exit code from
57389	# the compiler, it worked.
57390	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
57391	  lt_cv_apple_cc_single_mod=yes
57392	else
57393	  cat conftest.err >&5
57394	fi
57395	rm -rf libconftest.dylib*
57396	rm -f conftest.*
57397      fi
57398fi
57399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
57400$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
57401
57402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
57403$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
57404if ${lt_cv_ld_exported_symbols_list+:} false; then :
57405  $as_echo_n "(cached) " >&6
57406else
57407  lt_cv_ld_exported_symbols_list=no
57408      save_LDFLAGS=$LDFLAGS
57409      echo "_main" > conftest.sym
57410      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
57411      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57412/* end confdefs.h.  */
57413
57414int
57415main ()
57416{
57417
57418  ;
57419  return 0;
57420}
57421_ACEOF
57422if ac_fn_c_try_link "$LINENO"; then :
57423  lt_cv_ld_exported_symbols_list=yes
57424else
57425  lt_cv_ld_exported_symbols_list=no
57426fi
57427rm -f core conftest.err conftest.$ac_objext \
57428    conftest$ac_exeext conftest.$ac_ext
57429	LDFLAGS=$save_LDFLAGS
57430
57431fi
57432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
57433$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
57434
57435    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
57436$as_echo_n "checking for -force_load linker flag... " >&6; }
57437if ${lt_cv_ld_force_load+:} false; then :
57438  $as_echo_n "(cached) " >&6
57439else
57440  lt_cv_ld_force_load=no
57441      cat > conftest.c << _LT_EOF
57442int forced_loaded() { return 2;}
57443_LT_EOF
57444      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
57445      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
57446      echo "$AR cru libconftest.a conftest.o" >&5
57447      $AR cru libconftest.a conftest.o 2>&5
57448      echo "$RANLIB libconftest.a" >&5
57449      $RANLIB libconftest.a 2>&5
57450      cat > conftest.c << _LT_EOF
57451int main() { return 0;}
57452_LT_EOF
57453      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
57454      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
57455      _lt_result=$?
57456      if test -s conftest.err && $GREP force_load conftest.err; then
57457	cat conftest.err >&5
57458      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
57459	lt_cv_ld_force_load=yes
57460      else
57461	cat conftest.err >&5
57462      fi
57463        rm -f conftest.err libconftest.a conftest conftest.c
57464        rm -rf conftest.dSYM
57465
57466fi
57467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
57468$as_echo "$lt_cv_ld_force_load" >&6; }
57469    case $host_os in
57470    rhapsody* | darwin1.[012])
57471      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
57472    darwin1.*)
57473      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
57474    darwin*) # darwin 5.x on
57475      # if running on 10.5 or later, the deployment target defaults
57476      # to the OS version, if on x86, and 10.4, the deployment
57477      # target defaults to 10.4. Don't you love it?
57478      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
57479	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
57480	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
57481	10.[012][,.]*)
57482	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
57483	10.*)
57484	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
57485      esac
57486    ;;
57487  esac
57488    if test yes = "$lt_cv_apple_cc_single_mod"; then
57489      _lt_dar_single_mod='$single_module'
57490    fi
57491    if test yes = "$lt_cv_ld_exported_symbols_list"; then
57492      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
57493    else
57494      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
57495    fi
57496    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
57497      _lt_dsymutil='~$DSYMUTIL $lib || :'
57498    else
57499      _lt_dsymutil=
57500    fi
57501    ;;
57502  esac
57503
57504# func_munge_path_list VARIABLE PATH
57505# -----------------------------------
57506# VARIABLE is name of variable containing _space_ separated list of
57507# directories to be munged by the contents of PATH, which is string
57508# having a format:
57509# "DIR[:DIR]:"
57510#       string "DIR[ DIR]" will be prepended to VARIABLE
57511# ":DIR[:DIR]"
57512#       string "DIR[ DIR]" will be appended to VARIABLE
57513# "DIRP[:DIRP]::[DIRA:]DIRA"
57514#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
57515#       "DIRA[ DIRA]" will be appended to VARIABLE
57516# "DIR[:DIR]"
57517#       VARIABLE will be replaced by "DIR[ DIR]"
57518func_munge_path_list ()
57519{
57520    case x$2 in
57521    x)
57522        ;;
57523    *:)
57524        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
57525        ;;
57526    x:*)
57527        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
57528        ;;
57529    *::*)
57530        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
57531        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
57532        ;;
57533    *)
57534        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
57535        ;;
57536    esac
57537}
57538
57539for ac_header in dlfcn.h
57540do :
57541  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
57542"
57543if test "x$ac_cv_header_dlfcn_h" = xyes; then :
57544  cat >>confdefs.h <<_ACEOF
57545#define HAVE_DLFCN_H 1
57546_ACEOF
57547
57548fi
57549
57550done
57551
57552
57553
57554func_stripname_cnf ()
57555{
57556  case $2 in
57557  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
57558  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
57559  esac
57560} # func_stripname_cnf
57561
57562
57563
57564
57565
57566# Set options
57567# Check whether --enable-static was given.
57568if test "${enable_static+set}" = set; then :
57569  enableval=$enable_static; p=${PACKAGE-default}
57570    case $enableval in
57571    yes) enable_static=yes ;;
57572    no) enable_static=no ;;
57573    *)
57574     enable_static=no
57575      # Look at the argument we got.  We use all the common list separators.
57576      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
57577      for pkg in $enableval; do
57578	IFS=$lt_save_ifs
57579	if test "X$pkg" = "X$p"; then
57580	  enable_static=yes
57581	fi
57582      done
57583      IFS=$lt_save_ifs
57584      ;;
57585    esac
57586else
57587  enable_static=no
57588fi
57589
57590
57591
57592
57593
57594
57595
57596
57597
57598
57599        enable_dlopen=no
57600
57601
57602  enable_win32_dll=no
57603
57604
57605            # Check whether --enable-shared was given.
57606if test "${enable_shared+set}" = set; then :
57607  enableval=$enable_shared; p=${PACKAGE-default}
57608    case $enableval in
57609    yes) enable_shared=yes ;;
57610    no) enable_shared=no ;;
57611    *)
57612      enable_shared=no
57613      # Look at the argument we got.  We use all the common list separators.
57614      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
57615      for pkg in $enableval; do
57616	IFS=$lt_save_ifs
57617	if test "X$pkg" = "X$p"; then
57618	  enable_shared=yes
57619	fi
57620      done
57621      IFS=$lt_save_ifs
57622      ;;
57623    esac
57624else
57625  enable_shared=yes
57626fi
57627
57628
57629
57630
57631
57632
57633
57634
57635
57636
57637
57638# Check whether --with-pic was given.
57639if test "${with_pic+set}" = set; then :
57640  withval=$with_pic; lt_p=${PACKAGE-default}
57641    case $withval in
57642    yes|no) pic_mode=$withval ;;
57643    *)
57644      pic_mode=default
57645      # Look at the argument we got.  We use all the common list separators.
57646      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
57647      for lt_pkg in $withval; do
57648	IFS=$lt_save_ifs
57649	if test "X$lt_pkg" = "X$lt_p"; then
57650	  pic_mode=yes
57651	fi
57652      done
57653      IFS=$lt_save_ifs
57654      ;;
57655    esac
57656else
57657  pic_mode=default
57658fi
57659
57660
57661
57662
57663
57664
57665
57666
57667  # Check whether --enable-fast-install was given.
57668if test "${enable_fast_install+set}" = set; then :
57669  enableval=$enable_fast_install; p=${PACKAGE-default}
57670    case $enableval in
57671    yes) enable_fast_install=yes ;;
57672    no) enable_fast_install=no ;;
57673    *)
57674      enable_fast_install=no
57675      # Look at the argument we got.  We use all the common list separators.
57676      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
57677      for pkg in $enableval; do
57678	IFS=$lt_save_ifs
57679	if test "X$pkg" = "X$p"; then
57680	  enable_fast_install=yes
57681	fi
57682      done
57683      IFS=$lt_save_ifs
57684      ;;
57685    esac
57686else
57687  enable_fast_install=yes
57688fi
57689
57690
57691
57692
57693
57694
57695
57696
57697  shared_archive_member_spec=
57698case $host,$enable_shared in
57699power*-*-aix[5-9]*,yes)
57700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
57701$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
57702
57703# Check whether --with-aix-soname was given.
57704if test "${with_aix_soname+set}" = set; then :
57705  withval=$with_aix_soname; case $withval in
57706    aix|svr4|both)
57707      ;;
57708    *)
57709      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
57710      ;;
57711    esac
57712    lt_cv_with_aix_soname=$with_aix_soname
57713else
57714  if ${lt_cv_with_aix_soname+:} false; then :
57715  $as_echo_n "(cached) " >&6
57716else
57717  lt_cv_with_aix_soname=aix
57718fi
57719
57720    with_aix_soname=$lt_cv_with_aix_soname
57721fi
57722
57723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
57724$as_echo "$with_aix_soname" >&6; }
57725  if test aix != "$with_aix_soname"; then
57726    # For the AIX way of multilib, we name the shared archive member
57727    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
57728    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
57729    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
57730    # the AIX toolchain works better with OBJECT_MODE set (default 32).
57731    if test 64 = "${OBJECT_MODE-32}"; then
57732      shared_archive_member_spec=shr_64
57733    else
57734      shared_archive_member_spec=shr
57735    fi
57736  fi
57737  ;;
57738*)
57739  with_aix_soname=aix
57740  ;;
57741esac
57742
57743
57744
57745
57746
57747
57748
57749
57750
57751
57752# This can be used to rebuild libtool when needed
57753LIBTOOL_DEPS=$ltmain
57754
57755# Always use our own libtool.
57756LIBTOOL='$(SHELL) $(top_builddir)/libtool'
57757
57758
57759
57760
57761
57762
57763
57764
57765
57766
57767
57768
57769
57770
57771
57772
57773
57774
57775
57776
57777
57778
57779
57780
57781
57782
57783
57784
57785
57786
57787test -z "$LN_S" && LN_S="ln -s"
57788
57789
57790
57791
57792
57793
57794
57795
57796
57797
57798
57799
57800
57801
57802if test -n "${ZSH_VERSION+set}"; then
57803   setopt NO_GLOB_SUBST
57804fi
57805
57806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
57807$as_echo_n "checking for objdir... " >&6; }
57808if ${lt_cv_objdir+:} false; then :
57809  $as_echo_n "(cached) " >&6
57810else
57811  rm -f .libs 2>/dev/null
57812mkdir .libs 2>/dev/null
57813if test -d .libs; then
57814  lt_cv_objdir=.libs
57815else
57816  # MS-DOS does not allow filenames that begin with a dot.
57817  lt_cv_objdir=_libs
57818fi
57819rmdir .libs 2>/dev/null
57820fi
57821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
57822$as_echo "$lt_cv_objdir" >&6; }
57823objdir=$lt_cv_objdir
57824
57825
57826
57827
57828
57829cat >>confdefs.h <<_ACEOF
57830#define LT_OBJDIR "$lt_cv_objdir/"
57831_ACEOF
57832
57833
57834
57835
57836case $host_os in
57837aix3*)
57838  # AIX sometimes has problems with the GCC collect2 program.  For some
57839  # reason, if we set the COLLECT_NAMES environment variable, the problems
57840  # vanish in a puff of smoke.
57841  if test set != "${COLLECT_NAMES+set}"; then
57842    COLLECT_NAMES=
57843    export COLLECT_NAMES
57844  fi
57845  ;;
57846esac
57847
57848# Global variables:
57849ofile=libtool
57850can_build_shared=yes
57851
57852# All known linkers require a '.a' archive for static linking (except MSVC,
57853# which needs '.lib').
57854libext=a
57855
57856with_gnu_ld=$lt_cv_prog_gnu_ld
57857
57858old_CC=$CC
57859old_CFLAGS=$CFLAGS
57860
57861# Set sane defaults for various variables
57862test -z "$CC" && CC=cc
57863test -z "$LTCC" && LTCC=$CC
57864test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
57865test -z "$LD" && LD=ld
57866test -z "$ac_objext" && ac_objext=o
57867
57868func_cc_basename $compiler
57869cc_basename=$func_cc_basename_result
57870
57871
57872# Only perform the check for file, if the check method requires it
57873test -z "$MAGIC_CMD" && MAGIC_CMD=file
57874case $deplibs_check_method in
57875file_magic*)
57876  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
57877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
57878$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
57879if ${lt_cv_path_MAGIC_CMD+:} false; then :
57880  $as_echo_n "(cached) " >&6
57881else
57882  case $MAGIC_CMD in
57883[\\/*] |  ?:[\\/]*)
57884  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
57885  ;;
57886*)
57887  lt_save_MAGIC_CMD=$MAGIC_CMD
57888  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
57889  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
57890  for ac_dir in $ac_dummy; do
57891    IFS=$lt_save_ifs
57892    test -z "$ac_dir" && ac_dir=.
57893    if test -f "$ac_dir/${ac_tool_prefix}file"; then
57894      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
57895      if test -n "$file_magic_test_file"; then
57896	case $deplibs_check_method in
57897	"file_magic "*)
57898	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
57899	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
57900	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
57901	    $EGREP "$file_magic_regex" > /dev/null; then
57902	    :
57903	  else
57904	    cat <<_LT_EOF 1>&2
57905
57906*** Warning: the command libtool uses to detect shared libraries,
57907*** $file_magic_cmd, produces output that libtool cannot recognize.
57908*** The result is that libtool may fail to recognize shared libraries
57909*** as such.  This will affect the creation of libtool libraries that
57910*** depend on shared libraries, but programs linked with such libtool
57911*** libraries will work regardless of this problem.  Nevertheless, you
57912*** may want to report the problem to your system manager and/or to
57913*** bug-libtool@gnu.org
57914
57915_LT_EOF
57916	  fi ;;
57917	esac
57918      fi
57919      break
57920    fi
57921  done
57922  IFS=$lt_save_ifs
57923  MAGIC_CMD=$lt_save_MAGIC_CMD
57924  ;;
57925esac
57926fi
57927
57928MAGIC_CMD=$lt_cv_path_MAGIC_CMD
57929if test -n "$MAGIC_CMD"; then
57930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
57931$as_echo "$MAGIC_CMD" >&6; }
57932else
57933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57934$as_echo "no" >&6; }
57935fi
57936
57937
57938
57939
57940
57941if test -z "$lt_cv_path_MAGIC_CMD"; then
57942  if test -n "$ac_tool_prefix"; then
57943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
57944$as_echo_n "checking for file... " >&6; }
57945if ${lt_cv_path_MAGIC_CMD+:} false; then :
57946  $as_echo_n "(cached) " >&6
57947else
57948  case $MAGIC_CMD in
57949[\\/*] |  ?:[\\/]*)
57950  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
57951  ;;
57952*)
57953  lt_save_MAGIC_CMD=$MAGIC_CMD
57954  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
57955  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
57956  for ac_dir in $ac_dummy; do
57957    IFS=$lt_save_ifs
57958    test -z "$ac_dir" && ac_dir=.
57959    if test -f "$ac_dir/file"; then
57960      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
57961      if test -n "$file_magic_test_file"; then
57962	case $deplibs_check_method in
57963	"file_magic "*)
57964	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
57965	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
57966	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
57967	    $EGREP "$file_magic_regex" > /dev/null; then
57968	    :
57969	  else
57970	    cat <<_LT_EOF 1>&2
57971
57972*** Warning: the command libtool uses to detect shared libraries,
57973*** $file_magic_cmd, produces output that libtool cannot recognize.
57974*** The result is that libtool may fail to recognize shared libraries
57975*** as such.  This will affect the creation of libtool libraries that
57976*** depend on shared libraries, but programs linked with such libtool
57977*** libraries will work regardless of this problem.  Nevertheless, you
57978*** may want to report the problem to your system manager and/or to
57979*** bug-libtool@gnu.org
57980
57981_LT_EOF
57982	  fi ;;
57983	esac
57984      fi
57985      break
57986    fi
57987  done
57988  IFS=$lt_save_ifs
57989  MAGIC_CMD=$lt_save_MAGIC_CMD
57990  ;;
57991esac
57992fi
57993
57994MAGIC_CMD=$lt_cv_path_MAGIC_CMD
57995if test -n "$MAGIC_CMD"; then
57996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
57997$as_echo "$MAGIC_CMD" >&6; }
57998else
57999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58000$as_echo "no" >&6; }
58001fi
58002
58003
58004  else
58005    MAGIC_CMD=:
58006  fi
58007fi
58008
58009  fi
58010  ;;
58011esac
58012
58013# Use C for the default configuration in the libtool script
58014
58015lt_save_CC=$CC
58016ac_ext=c
58017ac_cpp='$CPP $CPPFLAGS'
58018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58020ac_compiler_gnu=$ac_cv_c_compiler_gnu
58021
58022
58023# Source file extension for C test sources.
58024ac_ext=c
58025
58026# Object file extension for compiled C test sources.
58027objext=o
58028objext=$objext
58029
58030# Code to be used in simple compile tests
58031lt_simple_compile_test_code="int some_variable = 0;"
58032
58033# Code to be used in simple link tests
58034lt_simple_link_test_code='int main(){return(0);}'
58035
58036
58037
58038
58039
58040
58041
58042# If no C compiler was specified, use CC.
58043LTCC=${LTCC-"$CC"}
58044
58045# If no C compiler flags were specified, use CFLAGS.
58046LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
58047
58048# Allow CC to be a program name with arguments.
58049compiler=$CC
58050
58051# Save the default compiler, since it gets overwritten when the other
58052# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
58053compiler_DEFAULT=$CC
58054
58055# save warnings/boilerplate of simple test code
58056ac_outfile=conftest.$ac_objext
58057echo "$lt_simple_compile_test_code" >conftest.$ac_ext
58058eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
58059_lt_compiler_boilerplate=`cat conftest.err`
58060$RM conftest*
58061
58062ac_outfile=conftest.$ac_objext
58063echo "$lt_simple_link_test_code" >conftest.$ac_ext
58064eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
58065_lt_linker_boilerplate=`cat conftest.err`
58066$RM -r conftest*
58067
58068
58069## CAVEAT EMPTOR:
58070## There is no encapsulation within the following macros, do not change
58071## the running order or otherwise move them around unless you know exactly
58072## what you are doing...
58073if test -n "$compiler"; then
58074
58075lt_prog_compiler_no_builtin_flag=
58076
58077if test yes = "$GCC"; then
58078  case $cc_basename in
58079  nvcc*)
58080    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
58081  *)
58082    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
58083  esac
58084
58085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
58086$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
58087if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
58088  $as_echo_n "(cached) " >&6
58089else
58090  lt_cv_prog_compiler_rtti_exceptions=no
58091   ac_outfile=conftest.$ac_objext
58092   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
58093   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
58094   # Insert the option either (1) after the last *FLAGS variable, or
58095   # (2) before a word containing "conftest.", or (3) at the end.
58096   # Note that $ac_compile itself does not contain backslashes and begins
58097   # with a dollar sign (not a hyphen), so the echo should work correctly.
58098   # The option is referenced via a variable to avoid confusing sed.
58099   lt_compile=`echo "$ac_compile" | $SED \
58100   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
58101   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
58102   -e 's:$: $lt_compiler_flag:'`
58103   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
58104   (eval "$lt_compile" 2>conftest.err)
58105   ac_status=$?
58106   cat conftest.err >&5
58107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58108   if (exit $ac_status) && test -s "$ac_outfile"; then
58109     # The compiler can only warn and ignore the option if not recognized
58110     # So say no if there are warnings other than the usual output.
58111     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
58112     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
58113     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
58114       lt_cv_prog_compiler_rtti_exceptions=yes
58115     fi
58116   fi
58117   $RM conftest*
58118
58119fi
58120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
58121$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
58122
58123if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
58124    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
58125else
58126    :
58127fi
58128
58129fi
58130
58131
58132
58133
58134
58135
58136  lt_prog_compiler_wl=
58137lt_prog_compiler_pic=
58138lt_prog_compiler_static=
58139
58140
58141  if test yes = "$GCC"; then
58142    lt_prog_compiler_wl='-Wl,'
58143    lt_prog_compiler_static='-static'
58144
58145    case $host_os in
58146      aix*)
58147      # All AIX code is PIC.
58148      if test ia64 = "$host_cpu"; then
58149	# AIX 5 now supports IA64 processor
58150	lt_prog_compiler_static='-Bstatic'
58151      fi
58152      lt_prog_compiler_pic='-fPIC'
58153      ;;
58154
58155    amigaos*)
58156      case $host_cpu in
58157      powerpc)
58158            # see comment about AmigaOS4 .so support
58159            lt_prog_compiler_pic='-fPIC'
58160        ;;
58161      m68k)
58162            # FIXME: we need at least 68020 code to build shared libraries, but
58163            # adding the '-m68020' flag to GCC prevents building anything better,
58164            # like '-m68040'.
58165            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
58166        ;;
58167      esac
58168      ;;
58169
58170    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
58171      # PIC is the default for these OSes.
58172      ;;
58173
58174    mingw* | cygwin* | pw32* | os2* | cegcc*)
58175      # This hack is so that the source file can tell whether it is being
58176      # built for inclusion in a dll (and should export symbols for example).
58177      # Although the cygwin gcc ignores -fPIC, still need this for old-style
58178      # (--disable-auto-import) libraries
58179      lt_prog_compiler_pic='-DDLL_EXPORT'
58180      case $host_os in
58181      os2*)
58182	lt_prog_compiler_static='$wl-static'
58183	;;
58184      esac
58185      ;;
58186
58187    darwin* | rhapsody*)
58188      # PIC is the default on this platform
58189      # Common symbols not allowed in MH_DYLIB files
58190      lt_prog_compiler_pic='-fno-common'
58191      ;;
58192
58193    haiku*)
58194      # PIC is the default for Haiku.
58195      # The "-static" flag exists, but is broken.
58196      lt_prog_compiler_static=
58197      ;;
58198
58199    hpux*)
58200      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
58201      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
58202      # sets the default TLS model and affects inlining.
58203      case $host_cpu in
58204      hppa*64*)
58205	# +Z the default
58206	;;
58207      *)
58208	lt_prog_compiler_pic='-fPIC'
58209	;;
58210      esac
58211      ;;
58212
58213    interix[3-9]*)
58214      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
58215      # Instead, we relocate shared libraries at runtime.
58216      ;;
58217
58218    msdosdjgpp*)
58219      # Just because we use GCC doesn't mean we suddenly get shared libraries
58220      # on systems that don't support them.
58221      lt_prog_compiler_can_build_shared=no
58222      enable_shared=no
58223      ;;
58224
58225    *nto* | *qnx*)
58226      # QNX uses GNU C++, but need to define -shared option too, otherwise
58227      # it will coredump.
58228      lt_prog_compiler_pic='-fPIC -shared'
58229      ;;
58230
58231    sysv4*MP*)
58232      if test -d /usr/nec; then
58233	lt_prog_compiler_pic=-Kconform_pic
58234      fi
58235      ;;
58236
58237    *)
58238      lt_prog_compiler_pic='-fPIC'
58239      ;;
58240    esac
58241
58242    case $cc_basename in
58243    nvcc*) # Cuda Compiler Driver 2.2
58244      lt_prog_compiler_wl='-Xlinker '
58245      if test -n "$lt_prog_compiler_pic"; then
58246        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
58247      fi
58248      ;;
58249    esac
58250  else
58251    # PORTME Check for flag to pass linker flags through the system compiler.
58252    case $host_os in
58253    aix*)
58254      lt_prog_compiler_wl='-Wl,'
58255      if test ia64 = "$host_cpu"; then
58256	# AIX 5 now supports IA64 processor
58257	lt_prog_compiler_static='-Bstatic'
58258      else
58259	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
58260      fi
58261      ;;
58262
58263    darwin* | rhapsody*)
58264      # PIC is the default on this platform
58265      # Common symbols not allowed in MH_DYLIB files
58266      lt_prog_compiler_pic='-fno-common'
58267      case $cc_basename in
58268      nagfor*)
58269        # NAG Fortran compiler
58270        lt_prog_compiler_wl='-Wl,-Wl,,'
58271        lt_prog_compiler_pic='-PIC'
58272        lt_prog_compiler_static='-Bstatic'
58273        ;;
58274      esac
58275      ;;
58276
58277    mingw* | cygwin* | pw32* | os2* | cegcc*)
58278      # This hack is so that the source file can tell whether it is being
58279      # built for inclusion in a dll (and should export symbols for example).
58280      lt_prog_compiler_pic='-DDLL_EXPORT'
58281      case $host_os in
58282      os2*)
58283	lt_prog_compiler_static='$wl-static'
58284	;;
58285      esac
58286      ;;
58287
58288    hpux9* | hpux10* | hpux11*)
58289      lt_prog_compiler_wl='-Wl,'
58290      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
58291      # not for PA HP-UX.
58292      case $host_cpu in
58293      hppa*64*|ia64*)
58294	# +Z the default
58295	;;
58296      *)
58297	lt_prog_compiler_pic='+Z'
58298	;;
58299      esac
58300      # Is there a better lt_prog_compiler_static that works with the bundled CC?
58301      lt_prog_compiler_static='$wl-a ${wl}archive'
58302      ;;
58303
58304    irix5* | irix6* | nonstopux*)
58305      lt_prog_compiler_wl='-Wl,'
58306      # PIC (with -KPIC) is the default.
58307      lt_prog_compiler_static='-non_shared'
58308      ;;
58309
58310    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
58311      case $cc_basename in
58312      # old Intel for x86_64, which still supported -KPIC.
58313      ecc*)
58314	lt_prog_compiler_wl='-Wl,'
58315	lt_prog_compiler_pic='-KPIC'
58316	lt_prog_compiler_static='-static'
58317        ;;
58318      # icc used to be incompatible with GCC.
58319      # ICC 10 doesn't accept -KPIC any more.
58320      icc* | ifort*)
58321	lt_prog_compiler_wl='-Wl,'
58322	lt_prog_compiler_pic='-fPIC'
58323	lt_prog_compiler_static='-static'
58324        ;;
58325      # Lahey Fortran 8.1.
58326      lf95*)
58327	lt_prog_compiler_wl='-Wl,'
58328	lt_prog_compiler_pic='--shared'
58329	lt_prog_compiler_static='--static'
58330	;;
58331      nagfor*)
58332	# NAG Fortran compiler
58333	lt_prog_compiler_wl='-Wl,-Wl,,'
58334	lt_prog_compiler_pic='-PIC'
58335	lt_prog_compiler_static='-Bstatic'
58336	;;
58337      tcc*)
58338	# Fabrice Bellard et al's Tiny C Compiler
58339	lt_prog_compiler_wl='-Wl,'
58340	lt_prog_compiler_pic='-fPIC'
58341	lt_prog_compiler_static='-static'
58342	;;
58343      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
58344        # Portland Group compilers (*not* the Pentium gcc compiler,
58345	# which looks to be a dead project)
58346	lt_prog_compiler_wl='-Wl,'
58347	lt_prog_compiler_pic='-fpic'
58348	lt_prog_compiler_static='-Bstatic'
58349        ;;
58350      ccc*)
58351        lt_prog_compiler_wl='-Wl,'
58352        # All Alpha code is PIC.
58353        lt_prog_compiler_static='-non_shared'
58354        ;;
58355      xl* | bgxl* | bgf* | mpixl*)
58356	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
58357	lt_prog_compiler_wl='-Wl,'
58358	lt_prog_compiler_pic='-qpic'
58359	lt_prog_compiler_static='-qstaticlink'
58360	;;
58361      *)
58362	case `$CC -V 2>&1 | sed 5q` in
58363	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
58364	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
58365	  lt_prog_compiler_pic='-KPIC'
58366	  lt_prog_compiler_static='-Bstatic'
58367	  lt_prog_compiler_wl=''
58368	  ;;
58369	*Sun\ F* | *Sun*Fortran*)
58370	  lt_prog_compiler_pic='-KPIC'
58371	  lt_prog_compiler_static='-Bstatic'
58372	  lt_prog_compiler_wl='-Qoption ld '
58373	  ;;
58374	*Sun\ C*)
58375	  # Sun C 5.9
58376	  lt_prog_compiler_pic='-KPIC'
58377	  lt_prog_compiler_static='-Bstatic'
58378	  lt_prog_compiler_wl='-Wl,'
58379	  ;;
58380        *Intel*\ [CF]*Compiler*)
58381	  lt_prog_compiler_wl='-Wl,'
58382	  lt_prog_compiler_pic='-fPIC'
58383	  lt_prog_compiler_static='-static'
58384	  ;;
58385	*Portland\ Group*)
58386	  lt_prog_compiler_wl='-Wl,'
58387	  lt_prog_compiler_pic='-fpic'
58388	  lt_prog_compiler_static='-Bstatic'
58389	  ;;
58390	esac
58391	;;
58392      esac
58393      ;;
58394
58395    newsos6)
58396      lt_prog_compiler_pic='-KPIC'
58397      lt_prog_compiler_static='-Bstatic'
58398      ;;
58399
58400    *nto* | *qnx*)
58401      # QNX uses GNU C++, but need to define -shared option too, otherwise
58402      # it will coredump.
58403      lt_prog_compiler_pic='-fPIC -shared'
58404      ;;
58405
58406    osf3* | osf4* | osf5*)
58407      lt_prog_compiler_wl='-Wl,'
58408      # All OSF/1 code is PIC.
58409      lt_prog_compiler_static='-non_shared'
58410      ;;
58411
58412    rdos*)
58413      lt_prog_compiler_static='-non_shared'
58414      ;;
58415
58416    solaris*)
58417      lt_prog_compiler_pic='-KPIC'
58418      lt_prog_compiler_static='-Bstatic'
58419      case $cc_basename in
58420      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
58421	lt_prog_compiler_wl='-Qoption ld ';;
58422      *)
58423	lt_prog_compiler_wl='-Wl,';;
58424      esac
58425      ;;
58426
58427    sunos4*)
58428      lt_prog_compiler_wl='-Qoption ld '
58429      lt_prog_compiler_pic='-PIC'
58430      lt_prog_compiler_static='-Bstatic'
58431      ;;
58432
58433    sysv4 | sysv4.2uw2* | sysv4.3*)
58434      lt_prog_compiler_wl='-Wl,'
58435      lt_prog_compiler_pic='-KPIC'
58436      lt_prog_compiler_static='-Bstatic'
58437      ;;
58438
58439    sysv4*MP*)
58440      if test -d /usr/nec; then
58441	lt_prog_compiler_pic='-Kconform_pic'
58442	lt_prog_compiler_static='-Bstatic'
58443      fi
58444      ;;
58445
58446    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
58447      lt_prog_compiler_wl='-Wl,'
58448      lt_prog_compiler_pic='-KPIC'
58449      lt_prog_compiler_static='-Bstatic'
58450      ;;
58451
58452    unicos*)
58453      lt_prog_compiler_wl='-Wl,'
58454      lt_prog_compiler_can_build_shared=no
58455      ;;
58456
58457    uts4*)
58458      lt_prog_compiler_pic='-pic'
58459      lt_prog_compiler_static='-Bstatic'
58460      ;;
58461
58462    *)
58463      lt_prog_compiler_can_build_shared=no
58464      ;;
58465    esac
58466  fi
58467
58468case $host_os in
58469  # For platforms that do not support PIC, -DPIC is meaningless:
58470  *djgpp*)
58471    lt_prog_compiler_pic=
58472    ;;
58473  *)
58474    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
58475    ;;
58476esac
58477
58478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
58479$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
58480if ${lt_cv_prog_compiler_pic+:} false; then :
58481  $as_echo_n "(cached) " >&6
58482else
58483  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
58484fi
58485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
58486$as_echo "$lt_cv_prog_compiler_pic" >&6; }
58487lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
58488
58489#
58490# Check to make sure the PIC flag actually works.
58491#
58492if test -n "$lt_prog_compiler_pic"; then
58493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
58494$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
58495if ${lt_cv_prog_compiler_pic_works+:} false; then :
58496  $as_echo_n "(cached) " >&6
58497else
58498  lt_cv_prog_compiler_pic_works=no
58499   ac_outfile=conftest.$ac_objext
58500   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
58501   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
58502   # Insert the option either (1) after the last *FLAGS variable, or
58503   # (2) before a word containing "conftest.", or (3) at the end.
58504   # Note that $ac_compile itself does not contain backslashes and begins
58505   # with a dollar sign (not a hyphen), so the echo should work correctly.
58506   # The option is referenced via a variable to avoid confusing sed.
58507   lt_compile=`echo "$ac_compile" | $SED \
58508   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
58509   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
58510   -e 's:$: $lt_compiler_flag:'`
58511   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
58512   (eval "$lt_compile" 2>conftest.err)
58513   ac_status=$?
58514   cat conftest.err >&5
58515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58516   if (exit $ac_status) && test -s "$ac_outfile"; then
58517     # The compiler can only warn and ignore the option if not recognized
58518     # So say no if there are warnings other than the usual output.
58519     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
58520     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
58521     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
58522       lt_cv_prog_compiler_pic_works=yes
58523     fi
58524   fi
58525   $RM conftest*
58526
58527fi
58528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
58529$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
58530
58531if test yes = "$lt_cv_prog_compiler_pic_works"; then
58532    case $lt_prog_compiler_pic in
58533     "" | " "*) ;;
58534     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
58535     esac
58536else
58537    lt_prog_compiler_pic=
58538     lt_prog_compiler_can_build_shared=no
58539fi
58540
58541fi
58542
58543
58544
58545
58546
58547
58548
58549
58550
58551
58552
58553#
58554# Check to make sure the static flag actually works.
58555#
58556wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
58557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
58558$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
58559if ${lt_cv_prog_compiler_static_works+:} false; then :
58560  $as_echo_n "(cached) " >&6
58561else
58562  lt_cv_prog_compiler_static_works=no
58563   save_LDFLAGS=$LDFLAGS
58564   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
58565   echo "$lt_simple_link_test_code" > conftest.$ac_ext
58566   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
58567     # The linker can only warn and ignore the option if not recognized
58568     # So say no if there are warnings
58569     if test -s conftest.err; then
58570       # Append any errors to the config.log.
58571       cat conftest.err 1>&5
58572       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
58573       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
58574       if diff conftest.exp conftest.er2 >/dev/null; then
58575         lt_cv_prog_compiler_static_works=yes
58576       fi
58577     else
58578       lt_cv_prog_compiler_static_works=yes
58579     fi
58580   fi
58581   $RM -r conftest*
58582   LDFLAGS=$save_LDFLAGS
58583
58584fi
58585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
58586$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
58587
58588if test yes = "$lt_cv_prog_compiler_static_works"; then
58589    :
58590else
58591    lt_prog_compiler_static=
58592fi
58593
58594
58595
58596
58597
58598
58599
58600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
58601$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
58602if ${lt_cv_prog_compiler_c_o+:} false; then :
58603  $as_echo_n "(cached) " >&6
58604else
58605  lt_cv_prog_compiler_c_o=no
58606   $RM -r conftest 2>/dev/null
58607   mkdir conftest
58608   cd conftest
58609   mkdir out
58610   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
58611
58612   lt_compiler_flag="-o out/conftest2.$ac_objext"
58613   # Insert the option either (1) after the last *FLAGS variable, or
58614   # (2) before a word containing "conftest.", or (3) at the end.
58615   # Note that $ac_compile itself does not contain backslashes and begins
58616   # with a dollar sign (not a hyphen), so the echo should work correctly.
58617   lt_compile=`echo "$ac_compile" | $SED \
58618   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
58619   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
58620   -e 's:$: $lt_compiler_flag:'`
58621   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
58622   (eval "$lt_compile" 2>out/conftest.err)
58623   ac_status=$?
58624   cat out/conftest.err >&5
58625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58626   if (exit $ac_status) && test -s out/conftest2.$ac_objext
58627   then
58628     # The compiler can only warn and ignore the option if not recognized
58629     # So say no if there are warnings
58630     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
58631     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
58632     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
58633       lt_cv_prog_compiler_c_o=yes
58634     fi
58635   fi
58636   chmod u+w . 2>&5
58637   $RM conftest*
58638   # SGI C++ compiler will create directory out/ii_files/ for
58639   # template instantiation
58640   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
58641   $RM out/* && rmdir out
58642   cd ..
58643   $RM -r conftest
58644   $RM conftest*
58645
58646fi
58647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
58648$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
58649
58650
58651
58652
58653
58654
58655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
58656$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
58657if ${lt_cv_prog_compiler_c_o+:} false; then :
58658  $as_echo_n "(cached) " >&6
58659else
58660  lt_cv_prog_compiler_c_o=no
58661   $RM -r conftest 2>/dev/null
58662   mkdir conftest
58663   cd conftest
58664   mkdir out
58665   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
58666
58667   lt_compiler_flag="-o out/conftest2.$ac_objext"
58668   # Insert the option either (1) after the last *FLAGS variable, or
58669   # (2) before a word containing "conftest.", or (3) at the end.
58670   # Note that $ac_compile itself does not contain backslashes and begins
58671   # with a dollar sign (not a hyphen), so the echo should work correctly.
58672   lt_compile=`echo "$ac_compile" | $SED \
58673   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
58674   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
58675   -e 's:$: $lt_compiler_flag:'`
58676   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
58677   (eval "$lt_compile" 2>out/conftest.err)
58678   ac_status=$?
58679   cat out/conftest.err >&5
58680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58681   if (exit $ac_status) && test -s out/conftest2.$ac_objext
58682   then
58683     # The compiler can only warn and ignore the option if not recognized
58684     # So say no if there are warnings
58685     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
58686     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
58687     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
58688       lt_cv_prog_compiler_c_o=yes
58689     fi
58690   fi
58691   chmod u+w . 2>&5
58692   $RM conftest*
58693   # SGI C++ compiler will create directory out/ii_files/ for
58694   # template instantiation
58695   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
58696   $RM out/* && rmdir out
58697   cd ..
58698   $RM -r conftest
58699   $RM conftest*
58700
58701fi
58702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
58703$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
58704
58705
58706
58707
58708hard_links=nottested
58709if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
58710  # do not overwrite the value of need_locks provided by the user
58711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
58712$as_echo_n "checking if we can lock with hard links... " >&6; }
58713  hard_links=yes
58714  $RM conftest*
58715  ln conftest.a conftest.b 2>/dev/null && hard_links=no
58716  touch conftest.a
58717  ln conftest.a conftest.b 2>&5 || hard_links=no
58718  ln conftest.a conftest.b 2>/dev/null && hard_links=no
58719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
58720$as_echo "$hard_links" >&6; }
58721  if test no = "$hard_links"; then
58722    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
58723$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
58724    need_locks=warn
58725  fi
58726else
58727  need_locks=no
58728fi
58729
58730
58731
58732
58733
58734
58735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
58736$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
58737
58738  runpath_var=
58739  allow_undefined_flag=
58740  always_export_symbols=no
58741  archive_cmds=
58742  archive_expsym_cmds=
58743  compiler_needs_object=no
58744  enable_shared_with_static_runtimes=no
58745  export_dynamic_flag_spec=
58746  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
58747  hardcode_automatic=no
58748  hardcode_direct=no
58749  hardcode_direct_absolute=no
58750  hardcode_libdir_flag_spec=
58751  hardcode_libdir_separator=
58752  hardcode_minus_L=no
58753  hardcode_shlibpath_var=unsupported
58754  inherit_rpath=no
58755  link_all_deplibs=unknown
58756  module_cmds=
58757  module_expsym_cmds=
58758  old_archive_from_new_cmds=
58759  old_archive_from_expsyms_cmds=
58760  thread_safe_flag_spec=
58761  whole_archive_flag_spec=
58762  # include_expsyms should be a list of space-separated symbols to be *always*
58763  # included in the symbol list
58764  include_expsyms=
58765  # exclude_expsyms can be an extended regexp of symbols to exclude
58766  # it will be wrapped by ' (' and ')$', so one must not match beginning or
58767  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
58768  # as well as any symbol that contains 'd'.
58769  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
58770  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
58771  # platforms (ab)use it in PIC code, but their linkers get confused if
58772  # the symbol is explicitly referenced.  Since portable code cannot
58773  # rely on this symbol name, it's probably fine to never include it in
58774  # preloaded symbol tables.
58775  # Exclude shared library initialization/finalization symbols.
58776  extract_expsyms_cmds=
58777
58778  case $host_os in
58779  cygwin* | mingw* | pw32* | cegcc*)
58780    # FIXME: the MSVC++ port hasn't been tested in a loooong time
58781    # When not using gcc, we currently assume that we are using
58782    # Microsoft Visual C++.
58783    if test yes != "$GCC"; then
58784      with_gnu_ld=no
58785    fi
58786    ;;
58787  interix*)
58788    # we just hope/assume this is gcc and not c89 (= MSVC++)
58789    with_gnu_ld=yes
58790    ;;
58791  openbsd* | bitrig*)
58792    with_gnu_ld=no
58793    ;;
58794  esac
58795
58796  ld_shlibs=yes
58797
58798  # On some targets, GNU ld is compatible enough with the native linker
58799  # that we're better off using the native interface for both.
58800  lt_use_gnu_ld_interface=no
58801  if test yes = "$with_gnu_ld"; then
58802    case $host_os in
58803      aix*)
58804	# The AIX port of GNU ld has always aspired to compatibility
58805	# with the native linker.  However, as the warning in the GNU ld
58806	# block says, versions before 2.19.5* couldn't really create working
58807	# shared libraries, regardless of the interface used.
58808	case `$LD -v 2>&1` in
58809	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
58810	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
58811	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
58812	  *)
58813	    lt_use_gnu_ld_interface=yes
58814	    ;;
58815	esac
58816	;;
58817      *)
58818	lt_use_gnu_ld_interface=yes
58819	;;
58820    esac
58821  fi
58822
58823  if test yes = "$lt_use_gnu_ld_interface"; then
58824    # If archive_cmds runs LD, not CC, wlarc should be empty
58825    wlarc='$wl'
58826
58827    # Set some defaults for GNU ld with shared library support. These
58828    # are reset later if shared libraries are not supported. Putting them
58829    # here allows them to be overridden if necessary.
58830    runpath_var=LD_RUN_PATH
58831    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
58832    export_dynamic_flag_spec='$wl--export-dynamic'
58833    # ancient GNU ld didn't support --whole-archive et. al.
58834    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
58835      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
58836    else
58837      whole_archive_flag_spec=
58838    fi
58839    supports_anon_versioning=no
58840    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
58841      *GNU\ gold*) supports_anon_versioning=yes ;;
58842      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
58843      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
58844      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
58845      *\ 2.11.*) ;; # other 2.11 versions
58846      *) supports_anon_versioning=yes ;;
58847    esac
58848
58849    # See if GNU ld supports shared libraries.
58850    case $host_os in
58851    aix[3-9]*)
58852      # On AIX/PPC, the GNU linker is very broken
58853      if test ia64 != "$host_cpu"; then
58854	ld_shlibs=no
58855	cat <<_LT_EOF 1>&2
58856
58857*** Warning: the GNU linker, at least up to release 2.19, is reported
58858*** to be unable to reliably create shared libraries on AIX.
58859*** Therefore, libtool is disabling shared libraries support.  If you
58860*** really care for shared libraries, you may want to install binutils
58861*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
58862*** You will then need to restart the configuration process.
58863
58864_LT_EOF
58865      fi
58866      ;;
58867
58868    amigaos*)
58869      case $host_cpu in
58870      powerpc)
58871            # see comment about AmigaOS4 .so support
58872            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
58873            archive_expsym_cmds=''
58874        ;;
58875      m68k)
58876            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)'
58877            hardcode_libdir_flag_spec='-L$libdir'
58878            hardcode_minus_L=yes
58879        ;;
58880      esac
58881      ;;
58882
58883    beos*)
58884      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
58885	allow_undefined_flag=unsupported
58886	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
58887	# support --undefined.  This deserves some investigation.  FIXME
58888	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
58889      else
58890	ld_shlibs=no
58891      fi
58892      ;;
58893
58894    cygwin* | mingw* | pw32* | cegcc*)
58895      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
58896      # as there is no search path for DLLs.
58897      hardcode_libdir_flag_spec='-L$libdir'
58898      export_dynamic_flag_spec='$wl--export-all-symbols'
58899      allow_undefined_flag=unsupported
58900      always_export_symbols=no
58901      enable_shared_with_static_runtimes=yes
58902      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'
58903      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
58904
58905      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
58906        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
58907	# If the export-symbols file already is a .def file, use it as
58908	# is; otherwise, prepend EXPORTS...
58909	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
58910          cp $export_symbols $output_objdir/$soname.def;
58911        else
58912          echo EXPORTS > $output_objdir/$soname.def;
58913          cat $export_symbols >> $output_objdir/$soname.def;
58914        fi~
58915        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
58916      else
58917	ld_shlibs=no
58918      fi
58919      ;;
58920
58921    haiku*)
58922      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
58923      link_all_deplibs=yes
58924      ;;
58925
58926    os2*)
58927      hardcode_libdir_flag_spec='-L$libdir'
58928      hardcode_minus_L=yes
58929      allow_undefined_flag=unsupported
58930      shrext_cmds=.dll
58931      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
58932	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
58933	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
58934	$ECHO EXPORTS >> $output_objdir/$libname.def~
58935	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
58936	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
58937	emximp -o $lib $output_objdir/$libname.def'
58938      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
58939	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
58940	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
58941	$ECHO EXPORTS >> $output_objdir/$libname.def~
58942	prefix_cmds="$SED"~
58943	if test EXPORTS = "`$SED 1q $export_symbols`"; then
58944	  prefix_cmds="$prefix_cmds -e 1d";
58945	fi~
58946	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
58947	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
58948	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
58949	emximp -o $lib $output_objdir/$libname.def'
58950      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
58951      enable_shared_with_static_runtimes=yes
58952      ;;
58953
58954    interix[3-9]*)
58955      hardcode_direct=no
58956      hardcode_shlibpath_var=no
58957      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
58958      export_dynamic_flag_spec='$wl-E'
58959      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
58960      # Instead, shared libraries are loaded at an image base (0x10000000 by
58961      # default) and relocated if they conflict, which is a slow very memory
58962      # consuming and fragmenting process.  To avoid this, we pick a random,
58963      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
58964      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
58965      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
58966      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'
58967      ;;
58968
58969    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
58970      tmp_diet=no
58971      if test linux-dietlibc = "$host_os"; then
58972	case $cc_basename in
58973	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
58974	esac
58975      fi
58976      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
58977	 && test no = "$tmp_diet"
58978      then
58979	tmp_addflag=' $pic_flag'
58980	tmp_sharedflag='-shared'
58981	case $cc_basename,$host_cpu in
58982        pgcc*)				# Portland Group C compiler
58983	  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'
58984	  tmp_addflag=' $pic_flag'
58985	  ;;
58986	pgf77* | pgf90* | pgf95* | pgfortran*)
58987					# Portland Group f77 and f90 compilers
58988	  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'
58989	  tmp_addflag=' $pic_flag -Mnomain' ;;
58990	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
58991	  tmp_addflag=' -i_dynamic' ;;
58992	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
58993	  tmp_addflag=' -i_dynamic -nofor_main' ;;
58994	ifc* | ifort*)			# Intel Fortran compiler
58995	  tmp_addflag=' -nofor_main' ;;
58996	lf95*)				# Lahey Fortran 8.1
58997	  whole_archive_flag_spec=
58998	  tmp_sharedflag='--shared' ;;
58999        nagfor*)                        # NAGFOR 5.3
59000          tmp_sharedflag='-Wl,-shared' ;;
59001	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
59002	  tmp_sharedflag='-qmkshrobj'
59003	  tmp_addflag= ;;
59004	nvcc*)	# Cuda Compiler Driver 2.2
59005	  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'
59006	  compiler_needs_object=yes
59007	  ;;
59008	esac
59009	case `$CC -V 2>&1 | sed 5q` in
59010	*Sun\ C*)			# Sun C 5.9
59011	  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'
59012	  compiler_needs_object=yes
59013	  tmp_sharedflag='-G' ;;
59014	*Sun\ F*)			# Sun Fortran 8.3
59015	  tmp_sharedflag='-G' ;;
59016	esac
59017	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
59018
59019        if test yes = "$supports_anon_versioning"; then
59020          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
59021            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
59022            echo "local: *; };" >> $output_objdir/$libname.ver~
59023            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
59024        fi
59025
59026	case $cc_basename in
59027	tcc*)
59028	  export_dynamic_flag_spec='-rdynamic'
59029	  ;;
59030	xlf* | bgf* | bgxlf* | mpixlf*)
59031	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
59032	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
59033	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
59034	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
59035	  if test yes = "$supports_anon_versioning"; then
59036	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
59037              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
59038              echo "local: *; };" >> $output_objdir/$libname.ver~
59039              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
59040	  fi
59041	  ;;
59042	esac
59043      else
59044        ld_shlibs=no
59045      fi
59046      ;;
59047
59048    netbsd*)
59049      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
59050	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
59051	wlarc=
59052      else
59053	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
59054	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
59055      fi
59056      ;;
59057
59058    solaris*)
59059      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
59060	ld_shlibs=no
59061	cat <<_LT_EOF 1>&2
59062
59063*** Warning: The releases 2.8.* of the GNU linker cannot reliably
59064*** create shared libraries on Solaris systems.  Therefore, libtool
59065*** is disabling shared libraries support.  We urge you to upgrade GNU
59066*** binutils to release 2.9.1 or newer.  Another option is to modify
59067*** your PATH or compiler configuration so that the native linker is
59068*** used, and then restart.
59069
59070_LT_EOF
59071      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
59072	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
59073	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
59074      else
59075	ld_shlibs=no
59076      fi
59077      ;;
59078
59079    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
59080      case `$LD -v 2>&1` in
59081        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
59082	ld_shlibs=no
59083	cat <<_LT_EOF 1>&2
59084
59085*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
59086*** reliably create shared libraries on SCO systems.  Therefore, libtool
59087*** is disabling shared libraries support.  We urge you to upgrade GNU
59088*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
59089*** your PATH or compiler configuration so that the native linker is
59090*** used, and then restart.
59091
59092_LT_EOF
59093	;;
59094	*)
59095	  # For security reasons, it is highly recommended that you always
59096	  # use absolute paths for naming shared libraries, and exclude the
59097	  # DT_RUNPATH tag from executables and libraries.  But doing so
59098	  # requires that you compile everything twice, which is a pain.
59099	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
59100	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
59101	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
59102	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
59103	  else
59104	    ld_shlibs=no
59105	  fi
59106	;;
59107      esac
59108      ;;
59109
59110    sunos4*)
59111      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
59112      wlarc=
59113      hardcode_direct=yes
59114      hardcode_shlibpath_var=no
59115      ;;
59116
59117    *)
59118      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
59119	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
59120	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
59121      else
59122	ld_shlibs=no
59123      fi
59124      ;;
59125    esac
59126
59127    if test no = "$ld_shlibs"; then
59128      runpath_var=
59129      hardcode_libdir_flag_spec=
59130      export_dynamic_flag_spec=
59131      whole_archive_flag_spec=
59132    fi
59133  else
59134    # PORTME fill in a description of your system's linker (not GNU ld)
59135    case $host_os in
59136    aix3*)
59137      allow_undefined_flag=unsupported
59138      always_export_symbols=yes
59139      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'
59140      # Note: this linker hardcodes the directories in LIBPATH if there
59141      # are no directories specified by -L.
59142      hardcode_minus_L=yes
59143      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
59144	# Neither direct hardcoding nor static linking is supported with a
59145	# broken collect2.
59146	hardcode_direct=unsupported
59147      fi
59148      ;;
59149
59150    aix[4-9]*)
59151      if test ia64 = "$host_cpu"; then
59152	# On IA64, the linker does run time linking by default, so we don't
59153	# have to do anything special.
59154	aix_use_runtimelinking=no
59155	exp_sym_flag='-Bexport'
59156	no_entry_flag=
59157      else
59158	# If we're using GNU nm, then we don't want the "-C" option.
59159	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
59160	# Without the "-l" option, or with the "-B" option, AIX nm treats
59161	# weak defined symbols like other global defined symbols, whereas
59162	# GNU nm marks them as "W".
59163	# While the 'weak' keyword is ignored in the Export File, we need
59164	# it in the Import File for the 'aix-soname' feature, so we have
59165	# to replace the "-B" option with "-P" for AIX nm.
59166	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
59167	  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'
59168	else
59169	  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'
59170	fi
59171	aix_use_runtimelinking=no
59172
59173	# Test if we are trying to use run time linking or normal
59174	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
59175	# have runtime linking enabled, and use it for executables.
59176	# For shared libraries, we enable/disable runtime linking
59177	# depending on the kind of the shared library created -
59178	# when "with_aix_soname,aix_use_runtimelinking" is:
59179	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
59180	# "aix,yes"  lib.so          shared, rtl:yes, for executables
59181	#            lib.a           static archive
59182	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
59183	#            lib.a(lib.so.V) shared, rtl:no,  for executables
59184	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
59185	#            lib.a(lib.so.V) shared, rtl:no
59186	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
59187	#            lib.a           static archive
59188	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
59189	  for ld_flag in $LDFLAGS; do
59190	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
59191	    aix_use_runtimelinking=yes
59192	    break
59193	  fi
59194	  done
59195	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
59196	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
59197	    # so we don't have lib.a shared libs to link our executables.
59198	    # We have to force runtime linking in this case.
59199	    aix_use_runtimelinking=yes
59200	    LDFLAGS="$LDFLAGS -Wl,-brtl"
59201	  fi
59202	  ;;
59203	esac
59204
59205	exp_sym_flag='-bexport'
59206	no_entry_flag='-bnoentry'
59207      fi
59208
59209      # When large executables or shared objects are built, AIX ld can
59210      # have problems creating the table of contents.  If linking a library
59211      # or program results in "error TOC overflow" add -mminimal-toc to
59212      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
59213      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
59214
59215      archive_cmds=''
59216      hardcode_direct=yes
59217      hardcode_direct_absolute=yes
59218      hardcode_libdir_separator=':'
59219      link_all_deplibs=yes
59220      file_list_spec='$wl-f,'
59221      case $with_aix_soname,$aix_use_runtimelinking in
59222      aix,*) ;; # traditional, no import file
59223      svr4,* | *,yes) # use import file
59224	# The Import File defines what to hardcode.
59225	hardcode_direct=no
59226	hardcode_direct_absolute=no
59227	;;
59228      esac
59229
59230      if test yes = "$GCC"; then
59231	case $host_os in aix4.[012]|aix4.[012].*)
59232	# We only want to do this on AIX 4.2 and lower, the check
59233	# below for broken collect2 doesn't work under 4.3+
59234	  collect2name=`$CC -print-prog-name=collect2`
59235	  if test -f "$collect2name" &&
59236	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
59237	  then
59238	  # We have reworked collect2
59239	  :
59240	  else
59241	  # We have old collect2
59242	  hardcode_direct=unsupported
59243	  # It fails to find uninstalled libraries when the uninstalled
59244	  # path is not listed in the libpath.  Setting hardcode_minus_L
59245	  # to unsupported forces relinking
59246	  hardcode_minus_L=yes
59247	  hardcode_libdir_flag_spec='-L$libdir'
59248	  hardcode_libdir_separator=
59249	  fi
59250	  ;;
59251	esac
59252	shared_flag='-shared'
59253	if test yes = "$aix_use_runtimelinking"; then
59254	  shared_flag="$shared_flag "'$wl-G'
59255	fi
59256	# Need to ensure runtime linking is disabled for the traditional
59257	# shared library, or the linker may eventually find shared libraries
59258	# /with/ Import File - we do not want to mix them.
59259	shared_flag_aix='-shared'
59260	shared_flag_svr4='-shared $wl-G'
59261      else
59262	# not using gcc
59263	if test ia64 = "$host_cpu"; then
59264	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
59265	# chokes on -Wl,-G. The following line is correct:
59266	  shared_flag='-G'
59267	else
59268	  if test yes = "$aix_use_runtimelinking"; then
59269	    shared_flag='$wl-G'
59270	  else
59271	    shared_flag='$wl-bM:SRE'
59272	  fi
59273	  shared_flag_aix='$wl-bM:SRE'
59274	  shared_flag_svr4='$wl-G'
59275	fi
59276      fi
59277
59278      export_dynamic_flag_spec='$wl-bexpall'
59279      # It seems that -bexpall does not export symbols beginning with
59280      # underscore (_), so it is better to generate a list of symbols to export.
59281      always_export_symbols=yes
59282      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
59283	# Warning - without using the other runtime loading flags (-brtl),
59284	# -berok will link without error, but may produce a broken library.
59285	allow_undefined_flag='-berok'
59286        # Determine the default libpath from the value encoded in an
59287        # empty executable.
59288        if test set = "${lt_cv_aix_libpath+set}"; then
59289  aix_libpath=$lt_cv_aix_libpath
59290else
59291  if ${lt_cv_aix_libpath_+:} false; then :
59292  $as_echo_n "(cached) " >&6
59293else
59294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59295/* end confdefs.h.  */
59296
59297int
59298main ()
59299{
59300
59301  ;
59302  return 0;
59303}
59304_ACEOF
59305if ac_fn_c_try_link "$LINENO"; then :
59306
59307  lt_aix_libpath_sed='
59308      /Import File Strings/,/^$/ {
59309	  /^0/ {
59310	      s/^0  *\([^ ]*\) *$/\1/
59311	      p
59312	  }
59313      }'
59314  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
59315  # Check for a 64-bit object if we didn't find anything.
59316  if test -z "$lt_cv_aix_libpath_"; then
59317    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
59318  fi
59319fi
59320rm -f core conftest.err conftest.$ac_objext \
59321    conftest$ac_exeext conftest.$ac_ext
59322  if test -z "$lt_cv_aix_libpath_"; then
59323    lt_cv_aix_libpath_=/usr/lib:/lib
59324  fi
59325
59326fi
59327
59328  aix_libpath=$lt_cv_aix_libpath_
59329fi
59330
59331        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
59332        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
59333      else
59334	if test ia64 = "$host_cpu"; then
59335	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
59336	  allow_undefined_flag="-z nodefs"
59337	  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"
59338	else
59339	 # Determine the default libpath from the value encoded in an
59340	 # empty executable.
59341	 if test set = "${lt_cv_aix_libpath+set}"; then
59342  aix_libpath=$lt_cv_aix_libpath
59343else
59344  if ${lt_cv_aix_libpath_+:} false; then :
59345  $as_echo_n "(cached) " >&6
59346else
59347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59348/* end confdefs.h.  */
59349
59350int
59351main ()
59352{
59353
59354  ;
59355  return 0;
59356}
59357_ACEOF
59358if ac_fn_c_try_link "$LINENO"; then :
59359
59360  lt_aix_libpath_sed='
59361      /Import File Strings/,/^$/ {
59362	  /^0/ {
59363	      s/^0  *\([^ ]*\) *$/\1/
59364	      p
59365	  }
59366      }'
59367  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
59368  # Check for a 64-bit object if we didn't find anything.
59369  if test -z "$lt_cv_aix_libpath_"; then
59370    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
59371  fi
59372fi
59373rm -f core conftest.err conftest.$ac_objext \
59374    conftest$ac_exeext conftest.$ac_ext
59375  if test -z "$lt_cv_aix_libpath_"; then
59376    lt_cv_aix_libpath_=/usr/lib:/lib
59377  fi
59378
59379fi
59380
59381  aix_libpath=$lt_cv_aix_libpath_
59382fi
59383
59384	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
59385	  # Warning - without using the other run time loading flags,
59386	  # -berok will link without error, but may produce a broken library.
59387	  no_undefined_flag=' $wl-bernotok'
59388	  allow_undefined_flag=' $wl-berok'
59389	  if test yes = "$with_gnu_ld"; then
59390	    # We only use this code for GNU lds that support --whole-archive.
59391	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
59392	  else
59393	    # Exported symbols can be pulled into shared objects from archives
59394	    whole_archive_flag_spec='$convenience'
59395	  fi
59396	  archive_cmds_need_lc=yes
59397	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
59398	  # -brtl affects multiple linker settings, -berok does not and is overridden later
59399	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
59400	  if test svr4 != "$with_aix_soname"; then
59401	    # This is similar to how AIX traditionally builds its shared libraries.
59402	    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'
59403	  fi
59404	  if test aix != "$with_aix_soname"; then
59405	    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'
59406	  else
59407	    # used by -dlpreopen to get the symbols
59408	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
59409	  fi
59410	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
59411	fi
59412      fi
59413      ;;
59414
59415    amigaos*)
59416      case $host_cpu in
59417      powerpc)
59418            # see comment about AmigaOS4 .so support
59419            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
59420            archive_expsym_cmds=''
59421        ;;
59422      m68k)
59423            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)'
59424            hardcode_libdir_flag_spec='-L$libdir'
59425            hardcode_minus_L=yes
59426        ;;
59427      esac
59428      ;;
59429
59430    bsdi[45]*)
59431      export_dynamic_flag_spec=-rdynamic
59432      ;;
59433
59434    cygwin* | mingw* | pw32* | cegcc*)
59435      # When not using gcc, we currently assume that we are using
59436      # Microsoft Visual C++.
59437      # hardcode_libdir_flag_spec is actually meaningless, as there is
59438      # no search path for DLLs.
59439      case $cc_basename in
59440      cl*)
59441	# Native MSVC
59442	hardcode_libdir_flag_spec=' '
59443	allow_undefined_flag=unsupported
59444	always_export_symbols=yes
59445	file_list_spec='@'
59446	# Tell ltmain to make .lib files, not .a files.
59447	libext=lib
59448	# Tell ltmain to make .dll files, not .so files.
59449	shrext_cmds=.dll
59450	# FIXME: Setting linknames here is a bad hack.
59451	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
59452	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
59453            cp "$export_symbols" "$output_objdir/$soname.def";
59454            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
59455          else
59456            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
59457          fi~
59458          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
59459          linknames='
59460	# The linker will not automatically build a static lib if we build a DLL.
59461	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
59462	enable_shared_with_static_runtimes=yes
59463	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
59464	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
59465	# Don't use ranlib
59466	old_postinstall_cmds='chmod 644 $oldlib'
59467	postlink_cmds='lt_outputfile="@OUTPUT@"~
59468          lt_tool_outputfile="@TOOL_OUTPUT@"~
59469          case $lt_outputfile in
59470            *.exe|*.EXE) ;;
59471            *)
59472              lt_outputfile=$lt_outputfile.exe
59473              lt_tool_outputfile=$lt_tool_outputfile.exe
59474              ;;
59475          esac~
59476          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
59477            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
59478            $RM "$lt_outputfile.manifest";
59479          fi'
59480	;;
59481      *)
59482	# Assume MSVC wrapper
59483	hardcode_libdir_flag_spec=' '
59484	allow_undefined_flag=unsupported
59485	# Tell ltmain to make .lib files, not .a files.
59486	libext=lib
59487	# Tell ltmain to make .dll files, not .so files.
59488	shrext_cmds=.dll
59489	# FIXME: Setting linknames here is a bad hack.
59490	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
59491	# The linker will automatically build a .lib file if we build a DLL.
59492	old_archive_from_new_cmds='true'
59493	# FIXME: Should let the user specify the lib program.
59494	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
59495	enable_shared_with_static_runtimes=yes
59496	;;
59497      esac
59498      ;;
59499
59500    darwin* | rhapsody*)
59501
59502
59503  archive_cmds_need_lc=no
59504  hardcode_direct=no
59505  hardcode_automatic=yes
59506  hardcode_shlibpath_var=unsupported
59507  if test yes = "$lt_cv_ld_force_load"; then
59508    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\"`'
59509
59510  else
59511    whole_archive_flag_spec=''
59512  fi
59513  link_all_deplibs=yes
59514  allow_undefined_flag=$_lt_dar_allow_undefined
59515  case $cc_basename in
59516     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
59517     *) _lt_dar_can_shared=$GCC ;;
59518  esac
59519  if test yes = "$_lt_dar_can_shared"; then
59520    output_verbose_link_cmd=func_echo_all
59521    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
59522    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
59523    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"
59524    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"
59525
59526  else
59527  ld_shlibs=no
59528  fi
59529
59530      ;;
59531
59532    dgux*)
59533      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
59534      hardcode_libdir_flag_spec='-L$libdir'
59535      hardcode_shlibpath_var=no
59536      ;;
59537
59538    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
59539    # support.  Future versions do this automatically, but an explicit c++rt0.o
59540    # does not break anything, and helps significantly (at the cost of a little
59541    # extra space).
59542    freebsd2.2*)
59543      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
59544      hardcode_libdir_flag_spec='-R$libdir'
59545      hardcode_direct=yes
59546      hardcode_shlibpath_var=no
59547      ;;
59548
59549    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
59550    freebsd2.*)
59551      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
59552      hardcode_direct=yes
59553      hardcode_minus_L=yes
59554      hardcode_shlibpath_var=no
59555      ;;
59556
59557    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
59558    freebsd* | dragonfly*)
59559      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
59560      hardcode_libdir_flag_spec='-R$libdir'
59561      hardcode_direct=yes
59562      hardcode_shlibpath_var=no
59563      ;;
59564
59565    hpux9*)
59566      if test yes = "$GCC"; then
59567	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'
59568      else
59569	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'
59570      fi
59571      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
59572      hardcode_libdir_separator=:
59573      hardcode_direct=yes
59574
59575      # hardcode_minus_L: Not really in the search PATH,
59576      # but as the default location of the library.
59577      hardcode_minus_L=yes
59578      export_dynamic_flag_spec='$wl-E'
59579      ;;
59580
59581    hpux10*)
59582      if test yes,no = "$GCC,$with_gnu_ld"; then
59583	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
59584      else
59585	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
59586      fi
59587      if test no = "$with_gnu_ld"; then
59588	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
59589	hardcode_libdir_separator=:
59590	hardcode_direct=yes
59591	hardcode_direct_absolute=yes
59592	export_dynamic_flag_spec='$wl-E'
59593	# hardcode_minus_L: Not really in the search PATH,
59594	# but as the default location of the library.
59595	hardcode_minus_L=yes
59596      fi
59597      ;;
59598
59599    hpux11*)
59600      if test yes,no = "$GCC,$with_gnu_ld"; then
59601	case $host_cpu in
59602	hppa*64*)
59603	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
59604	  ;;
59605	ia64*)
59606	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
59607	  ;;
59608	*)
59609	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
59610	  ;;
59611	esac
59612      else
59613	case $host_cpu in
59614	hppa*64*)
59615	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
59616	  ;;
59617	ia64*)
59618	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
59619	  ;;
59620	*)
59621
59622	  # Older versions of the 11.00 compiler do not understand -b yet
59623	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
59624	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
59625$as_echo_n "checking if $CC understands -b... " >&6; }
59626if ${lt_cv_prog_compiler__b+:} false; then :
59627  $as_echo_n "(cached) " >&6
59628else
59629  lt_cv_prog_compiler__b=no
59630   save_LDFLAGS=$LDFLAGS
59631   LDFLAGS="$LDFLAGS -b"
59632   echo "$lt_simple_link_test_code" > conftest.$ac_ext
59633   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
59634     # The linker can only warn and ignore the option if not recognized
59635     # So say no if there are warnings
59636     if test -s conftest.err; then
59637       # Append any errors to the config.log.
59638       cat conftest.err 1>&5
59639       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
59640       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
59641       if diff conftest.exp conftest.er2 >/dev/null; then
59642         lt_cv_prog_compiler__b=yes
59643       fi
59644     else
59645       lt_cv_prog_compiler__b=yes
59646     fi
59647   fi
59648   $RM -r conftest*
59649   LDFLAGS=$save_LDFLAGS
59650
59651fi
59652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
59653$as_echo "$lt_cv_prog_compiler__b" >&6; }
59654
59655if test yes = "$lt_cv_prog_compiler__b"; then
59656    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
59657else
59658    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
59659fi
59660
59661	  ;;
59662	esac
59663      fi
59664      if test no = "$with_gnu_ld"; then
59665	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
59666	hardcode_libdir_separator=:
59667
59668	case $host_cpu in
59669	hppa*64*|ia64*)
59670	  hardcode_direct=no
59671	  hardcode_shlibpath_var=no
59672	  ;;
59673	*)
59674	  hardcode_direct=yes
59675	  hardcode_direct_absolute=yes
59676	  export_dynamic_flag_spec='$wl-E'
59677
59678	  # hardcode_minus_L: Not really in the search PATH,
59679	  # but as the default location of the library.
59680	  hardcode_minus_L=yes
59681	  ;;
59682	esac
59683      fi
59684      ;;
59685
59686    irix5* | irix6* | nonstopux*)
59687      if test yes = "$GCC"; then
59688	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'
59689	# Try to use the -exported_symbol ld option, if it does not
59690	# work, assume that -exports_file does not work either and
59691	# implicitly export all symbols.
59692	# This should be the same for all languages, so no per-tag cache variable.
59693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
59694$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
59695if ${lt_cv_irix_exported_symbol+:} false; then :
59696  $as_echo_n "(cached) " >&6
59697else
59698  save_LDFLAGS=$LDFLAGS
59699	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
59700	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59701/* end confdefs.h.  */
59702int foo (void) { return 0; }
59703_ACEOF
59704if ac_fn_c_try_link "$LINENO"; then :
59705  lt_cv_irix_exported_symbol=yes
59706else
59707  lt_cv_irix_exported_symbol=no
59708fi
59709rm -f core conftest.err conftest.$ac_objext \
59710    conftest$ac_exeext conftest.$ac_ext
59711           LDFLAGS=$save_LDFLAGS
59712fi
59713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
59714$as_echo "$lt_cv_irix_exported_symbol" >&6; }
59715	if test yes = "$lt_cv_irix_exported_symbol"; then
59716          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'
59717	fi
59718      else
59719	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'
59720	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'
59721      fi
59722      archive_cmds_need_lc='no'
59723      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
59724      hardcode_libdir_separator=:
59725      inherit_rpath=yes
59726      link_all_deplibs=yes
59727      ;;
59728
59729    linux*)
59730      case $cc_basename in
59731      tcc*)
59732	# Fabrice Bellard et al's Tiny C Compiler
59733	ld_shlibs=yes
59734	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
59735	;;
59736      esac
59737      ;;
59738
59739    netbsd*)
59740      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
59741	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
59742      else
59743	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
59744      fi
59745      hardcode_libdir_flag_spec='-R$libdir'
59746      hardcode_direct=yes
59747      hardcode_shlibpath_var=no
59748      ;;
59749
59750    newsos6)
59751      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
59752      hardcode_direct=yes
59753      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
59754      hardcode_libdir_separator=:
59755      hardcode_shlibpath_var=no
59756      ;;
59757
59758    *nto* | *qnx*)
59759      ;;
59760
59761    openbsd* | bitrig*)
59762      if test -f /usr/libexec/ld.so; then
59763	hardcode_direct=yes
59764	hardcode_shlibpath_var=no
59765	hardcode_direct_absolute=yes
59766	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
59767	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
59768	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
59769	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
59770	  export_dynamic_flag_spec='$wl-E'
59771	else
59772	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
59773	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
59774	fi
59775      else
59776	ld_shlibs=no
59777      fi
59778      ;;
59779
59780    os2*)
59781      hardcode_libdir_flag_spec='-L$libdir'
59782      hardcode_minus_L=yes
59783      allow_undefined_flag=unsupported
59784      shrext_cmds=.dll
59785      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
59786	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
59787	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
59788	$ECHO EXPORTS >> $output_objdir/$libname.def~
59789	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
59790	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
59791	emximp -o $lib $output_objdir/$libname.def'
59792      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
59793	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
59794	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
59795	$ECHO EXPORTS >> $output_objdir/$libname.def~
59796	prefix_cmds="$SED"~
59797	if test EXPORTS = "`$SED 1q $export_symbols`"; then
59798	  prefix_cmds="$prefix_cmds -e 1d";
59799	fi~
59800	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
59801	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
59802	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
59803	emximp -o $lib $output_objdir/$libname.def'
59804      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
59805      enable_shared_with_static_runtimes=yes
59806      ;;
59807
59808    osf3*)
59809      if test yes = "$GCC"; then
59810	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
59811	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'
59812      else
59813	allow_undefined_flag=' -expect_unresolved \*'
59814	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'
59815      fi
59816      archive_cmds_need_lc='no'
59817      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
59818      hardcode_libdir_separator=:
59819      ;;
59820
59821    osf4* | osf5*)	# as osf3* with the addition of -msym flag
59822      if test yes = "$GCC"; then
59823	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
59824	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'
59825	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
59826      else
59827	allow_undefined_flag=' -expect_unresolved \*'
59828	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'
59829	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~
59830          $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'
59831
59832	# Both c and cxx compiler support -rpath directly
59833	hardcode_libdir_flag_spec='-rpath $libdir'
59834      fi
59835      archive_cmds_need_lc='no'
59836      hardcode_libdir_separator=:
59837      ;;
59838
59839    solaris*)
59840      no_undefined_flag=' -z defs'
59841      if test yes = "$GCC"; then
59842	wlarc='$wl'
59843	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
59844	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
59845          $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'
59846      else
59847	case `$CC -V 2>&1` in
59848	*"Compilers 5.0"*)
59849	  wlarc=''
59850	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
59851	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
59852            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
59853	  ;;
59854	*)
59855	  wlarc='$wl'
59856	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
59857	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
59858            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
59859	  ;;
59860	esac
59861      fi
59862      hardcode_libdir_flag_spec='-R$libdir'
59863      hardcode_shlibpath_var=no
59864      case $host_os in
59865      solaris2.[0-5] | solaris2.[0-5].*) ;;
59866      *)
59867	# The compiler driver will combine and reorder linker options,
59868	# but understands '-z linker_flag'.  GCC discards it without '$wl',
59869	# but is careful enough not to reorder.
59870	# Supported since Solaris 2.6 (maybe 2.5.1?)
59871	if test yes = "$GCC"; then
59872	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
59873	else
59874	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
59875	fi
59876	;;
59877      esac
59878      link_all_deplibs=yes
59879      ;;
59880
59881    sunos4*)
59882      if test sequent = "$host_vendor"; then
59883	# Use $CC to link under sequent, because it throws in some extra .o
59884	# files that make .init and .fini sections work.
59885	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
59886      else
59887	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
59888      fi
59889      hardcode_libdir_flag_spec='-L$libdir'
59890      hardcode_direct=yes
59891      hardcode_minus_L=yes
59892      hardcode_shlibpath_var=no
59893      ;;
59894
59895    sysv4)
59896      case $host_vendor in
59897	sni)
59898	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
59899	  hardcode_direct=yes # is this really true???
59900	;;
59901	siemens)
59902	  ## LD is ld it makes a PLAMLIB
59903	  ## CC just makes a GrossModule.
59904	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
59905	  reload_cmds='$CC -r -o $output$reload_objs'
59906	  hardcode_direct=no
59907        ;;
59908	motorola)
59909	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
59910	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
59911	;;
59912      esac
59913      runpath_var='LD_RUN_PATH'
59914      hardcode_shlibpath_var=no
59915      ;;
59916
59917    sysv4.3*)
59918      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
59919      hardcode_shlibpath_var=no
59920      export_dynamic_flag_spec='-Bexport'
59921      ;;
59922
59923    sysv4*MP*)
59924      if test -d /usr/nec; then
59925	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
59926	hardcode_shlibpath_var=no
59927	runpath_var=LD_RUN_PATH
59928	hardcode_runpath_var=yes
59929	ld_shlibs=yes
59930      fi
59931      ;;
59932
59933    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
59934      no_undefined_flag='$wl-z,text'
59935      archive_cmds_need_lc=no
59936      hardcode_shlibpath_var=no
59937      runpath_var='LD_RUN_PATH'
59938
59939      if test yes = "$GCC"; then
59940	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
59941	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
59942      else
59943	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
59944	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
59945      fi
59946      ;;
59947
59948    sysv5* | sco3.2v5* | sco5v6*)
59949      # Note: We CANNOT use -z defs as we might desire, because we do not
59950      # link with -lc, and that would cause any symbols used from libc to
59951      # always be unresolved, which means just about no library would
59952      # ever link correctly.  If we're not using GNU ld we use -z text
59953      # though, which does catch some bad symbols but isn't as heavy-handed
59954      # as -z defs.
59955      no_undefined_flag='$wl-z,text'
59956      allow_undefined_flag='$wl-z,nodefs'
59957      archive_cmds_need_lc=no
59958      hardcode_shlibpath_var=no
59959      hardcode_libdir_flag_spec='$wl-R,$libdir'
59960      hardcode_libdir_separator=':'
59961      link_all_deplibs=yes
59962      export_dynamic_flag_spec='$wl-Bexport'
59963      runpath_var='LD_RUN_PATH'
59964
59965      if test yes = "$GCC"; then
59966	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
59967	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
59968      else
59969	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
59970	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
59971      fi
59972      ;;
59973
59974    uts4*)
59975      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
59976      hardcode_libdir_flag_spec='-L$libdir'
59977      hardcode_shlibpath_var=no
59978      ;;
59979
59980    *)
59981      ld_shlibs=no
59982      ;;
59983    esac
59984
59985    if test sni = "$host_vendor"; then
59986      case $host in
59987      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
59988	export_dynamic_flag_spec='$wl-Blargedynsym'
59989	;;
59990      esac
59991    fi
59992  fi
59993
59994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
59995$as_echo "$ld_shlibs" >&6; }
59996test no = "$ld_shlibs" && can_build_shared=no
59997
59998with_gnu_ld=$with_gnu_ld
59999
60000
60001
60002
60003
60004
60005
60006
60007
60008
60009
60010
60011
60012
60013
60014#
60015# Do we need to explicitly link libc?
60016#
60017case "x$archive_cmds_need_lc" in
60018x|xyes)
60019  # Assume -lc should be added
60020  archive_cmds_need_lc=yes
60021
60022  if test yes,yes = "$GCC,$enable_shared"; then
60023    case $archive_cmds in
60024    *'~'*)
60025      # FIXME: we may have to deal with multi-command sequences.
60026      ;;
60027    '$CC '*)
60028      # Test whether the compiler implicitly links with -lc since on some
60029      # systems, -lgcc has to come before -lc. If gcc already passes -lc
60030      # to ld, don't add -lc before -lgcc.
60031      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
60032$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
60033if ${lt_cv_archive_cmds_need_lc+:} false; then :
60034  $as_echo_n "(cached) " >&6
60035else
60036  $RM conftest*
60037	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
60038
60039	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
60040  (eval $ac_compile) 2>&5
60041  ac_status=$?
60042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60043  test $ac_status = 0; } 2>conftest.err; then
60044	  soname=conftest
60045	  lib=conftest
60046	  libobjs=conftest.$ac_objext
60047	  deplibs=
60048	  wl=$lt_prog_compiler_wl
60049	  pic_flag=$lt_prog_compiler_pic
60050	  compiler_flags=-v
60051	  linker_flags=-v
60052	  verstring=
60053	  output_objdir=.
60054	  libname=conftest
60055	  lt_save_allow_undefined_flag=$allow_undefined_flag
60056	  allow_undefined_flag=
60057	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
60058  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
60059  ac_status=$?
60060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60061  test $ac_status = 0; }
60062	  then
60063	    lt_cv_archive_cmds_need_lc=no
60064	  else
60065	    lt_cv_archive_cmds_need_lc=yes
60066	  fi
60067	  allow_undefined_flag=$lt_save_allow_undefined_flag
60068	else
60069	  cat conftest.err 1>&5
60070	fi
60071	$RM conftest*
60072
60073fi
60074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
60075$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
60076      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
60077      ;;
60078    esac
60079  fi
60080  ;;
60081esac
60082
60083
60084
60085
60086
60087
60088
60089
60090
60091
60092
60093
60094
60095
60096
60097
60098
60099
60100
60101
60102
60103
60104
60105
60106
60107
60108
60109
60110
60111
60112
60113
60114
60115
60116
60117
60118
60119
60120
60121
60122
60123
60124
60125
60126
60127
60128
60129
60130
60131
60132
60133
60134
60135
60136
60137
60138
60139
60140
60141
60142
60143
60144
60145
60146
60147
60148
60149
60150
60151
60152
60153
60154
60155
60156
60157
60158
60159
60160
60161
60162
60163
60164
60165
60166
60167
60168
60169
60170
60171
60172
60173
60174
60175
60176
60177
60178
60179
60180
60181
60182
60183
60184
60185
60186
60187
60188
60189
60190
60191
60192
60193
60194
60195
60196
60197
60198
60199
60200
60201
60202
60203
60204
60205
60206
60207
60208
60209
60210
60211
60212
60213
60214
60215
60216
60217
60218
60219
60220
60221
60222
60223
60224
60225
60226
60227
60228
60229
60230
60231
60232
60233
60234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
60235$as_echo_n "checking dynamic linker characteristics... " >&6; }
60236
60237if test yes = "$GCC"; then
60238  case $host_os in
60239    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
60240    *) lt_awk_arg='/^libraries:/' ;;
60241  esac
60242  case $host_os in
60243    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
60244    *) lt_sed_strip_eq='s|=/|/|g' ;;
60245  esac
60246  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
60247  case $lt_search_path_spec in
60248  *\;*)
60249    # if the path contains ";" then we assume it to be the separator
60250    # otherwise default to the standard path separator (i.e. ":") - it is
60251    # assumed that no part of a normal pathname contains ";" but that should
60252    # okay in the real world where ";" in dirpaths is itself problematic.
60253    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
60254    ;;
60255  *)
60256    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
60257    ;;
60258  esac
60259  # Ok, now we have the path, separated by spaces, we can step through it
60260  # and add multilib dir if necessary...
60261  lt_tmp_lt_search_path_spec=
60262  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
60263  # ...but if some path component already ends with the multilib dir we assume
60264  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
60265  case "$lt_multi_os_dir; $lt_search_path_spec " in
60266  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
60267    lt_multi_os_dir=
60268    ;;
60269  esac
60270  for lt_sys_path in $lt_search_path_spec; do
60271    if test -d "$lt_sys_path$lt_multi_os_dir"; then
60272      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
60273    elif test -n "$lt_multi_os_dir"; then
60274      test -d "$lt_sys_path" && \
60275	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
60276    fi
60277  done
60278  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
60279BEGIN {RS = " "; FS = "/|\n";} {
60280  lt_foo = "";
60281  lt_count = 0;
60282  for (lt_i = NF; lt_i > 0; lt_i--) {
60283    if ($lt_i != "" && $lt_i != ".") {
60284      if ($lt_i == "..") {
60285        lt_count++;
60286      } else {
60287        if (lt_count == 0) {
60288          lt_foo = "/" $lt_i lt_foo;
60289        } else {
60290          lt_count--;
60291        }
60292      }
60293    }
60294  }
60295  if (lt_foo != "") { lt_freq[lt_foo]++; }
60296  if (lt_freq[lt_foo] == 1) { print lt_foo; }
60297}'`
60298  # AWK program above erroneously prepends '/' to C:/dos/paths
60299  # for these hosts.
60300  case $host_os in
60301    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
60302      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
60303  esac
60304  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
60305else
60306  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
60307fi
60308library_names_spec=
60309libname_spec='lib$name'
60310soname_spec=
60311shrext_cmds=.so
60312postinstall_cmds=
60313postuninstall_cmds=
60314finish_cmds=
60315finish_eval=
60316shlibpath_var=
60317shlibpath_overrides_runpath=unknown
60318version_type=none
60319dynamic_linker="$host_os ld.so"
60320sys_lib_dlsearch_path_spec="/lib /usr/lib"
60321need_lib_prefix=unknown
60322hardcode_into_libs=no
60323
60324# when you set need_version to no, make sure it does not cause -set_version
60325# flags to be left without arguments
60326need_version=unknown
60327
60328
60329
60330case $host_os in
60331aix3*)
60332  version_type=linux # correct to gnu/linux during the next big refactor
60333  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
60334  shlibpath_var=LIBPATH
60335
60336  # AIX 3 has no versioning support, so we append a major version to the name.
60337  soname_spec='$libname$release$shared_ext$major'
60338  ;;
60339
60340aix[4-9]*)
60341  version_type=linux # correct to gnu/linux during the next big refactor
60342  need_lib_prefix=no
60343  need_version=no
60344  hardcode_into_libs=yes
60345  if test ia64 = "$host_cpu"; then
60346    # AIX 5 supports IA64
60347    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
60348    shlibpath_var=LD_LIBRARY_PATH
60349  else
60350    # With GCC up to 2.95.x, collect2 would create an import file
60351    # for dependence libraries.  The import file would start with
60352    # the line '#! .'.  This would cause the generated library to
60353    # depend on '.', always an invalid library.  This was fixed in
60354    # development snapshots of GCC prior to 3.0.
60355    case $host_os in
60356      aix4 | aix4.[01] | aix4.[01].*)
60357      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
60358	   echo ' yes '
60359	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
60360	:
60361      else
60362	can_build_shared=no
60363      fi
60364      ;;
60365    esac
60366    # Using Import Files as archive members, it is possible to support
60367    # filename-based versioning of shared library archives on AIX. While
60368    # this would work for both with and without runtime linking, it will
60369    # prevent static linking of such archives. So we do filename-based
60370    # shared library versioning with .so extension only, which is used
60371    # when both runtime linking and shared linking is enabled.
60372    # Unfortunately, runtime linking may impact performance, so we do
60373    # not want this to be the default eventually. Also, we use the
60374    # versioned .so libs for executables only if there is the -brtl
60375    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
60376    # To allow for filename-based versioning support, we need to create
60377    # libNAME.so.V as an archive file, containing:
60378    # *) an Import File, referring to the versioned filename of the
60379    #    archive as well as the shared archive member, telling the
60380    #    bitwidth (32 or 64) of that shared object, and providing the
60381    #    list of exported symbols of that shared object, eventually
60382    #    decorated with the 'weak' keyword
60383    # *) the shared object with the F_LOADONLY flag set, to really avoid
60384    #    it being seen by the linker.
60385    # At run time we better use the real file rather than another symlink,
60386    # but for link time we create the symlink libNAME.so -> libNAME.so.V
60387
60388    case $with_aix_soname,$aix_use_runtimelinking in
60389    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
60390    # soname into executable. Probably we can add versioning support to
60391    # collect2, so additional links can be useful in future.
60392    aix,yes) # traditional libtool
60393      dynamic_linker='AIX unversionable lib.so'
60394      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
60395      # instead of lib<name>.a to let people know that these are not
60396      # typical AIX shared libraries.
60397      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60398      ;;
60399    aix,no) # traditional AIX only
60400      dynamic_linker='AIX lib.a(lib.so.V)'
60401      # We preserve .a as extension for shared libraries through AIX4.2
60402      # and later when we are not doing run time linking.
60403      library_names_spec='$libname$release.a $libname.a'
60404      soname_spec='$libname$release$shared_ext$major'
60405      ;;
60406    svr4,*) # full svr4 only
60407      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
60408      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
60409      # We do not specify a path in Import Files, so LIBPATH fires.
60410      shlibpath_overrides_runpath=yes
60411      ;;
60412    *,yes) # both, prefer svr4
60413      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
60414      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
60415      # unpreferred sharedlib libNAME.a needs extra handling
60416      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"'
60417      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"'
60418      # We do not specify a path in Import Files, so LIBPATH fires.
60419      shlibpath_overrides_runpath=yes
60420      ;;
60421    *,no) # both, prefer aix
60422      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
60423      library_names_spec='$libname$release.a $libname.a'
60424      soname_spec='$libname$release$shared_ext$major'
60425      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
60426      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)'
60427      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"'
60428      ;;
60429    esac
60430    shlibpath_var=LIBPATH
60431  fi
60432  ;;
60433
60434amigaos*)
60435  case $host_cpu in
60436  powerpc)
60437    # Since July 2007 AmigaOS4 officially supports .so libraries.
60438    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
60439    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60440    ;;
60441  m68k)
60442    library_names_spec='$libname.ixlibrary $libname.a'
60443    # Create ${libname}_ixlibrary.a entries in /sys/libs.
60444    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'
60445    ;;
60446  esac
60447  ;;
60448
60449beos*)
60450  library_names_spec='$libname$shared_ext'
60451  dynamic_linker="$host_os ld.so"
60452  shlibpath_var=LIBRARY_PATH
60453  ;;
60454
60455bsdi[45]*)
60456  version_type=linux # correct to gnu/linux during the next big refactor
60457  need_version=no
60458  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60459  soname_spec='$libname$release$shared_ext$major'
60460  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
60461  shlibpath_var=LD_LIBRARY_PATH
60462  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
60463  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
60464  # the default ld.so.conf also contains /usr/contrib/lib and
60465  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
60466  # libtool to hard-code these into programs
60467  ;;
60468
60469cygwin* | mingw* | pw32* | cegcc*)
60470  version_type=windows
60471  shrext_cmds=.dll
60472  need_version=no
60473  need_lib_prefix=no
60474
60475  case $GCC,$cc_basename in
60476  yes,*)
60477    # gcc
60478    library_names_spec='$libname.dll.a'
60479    # DLL is installed to $(libdir)/../bin by postinstall_cmds
60480    postinstall_cmds='base_file=`basename \$file`~
60481      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
60482      dldir=$destdir/`dirname \$dlpath`~
60483      test -d \$dldir || mkdir -p \$dldir~
60484      $install_prog $dir/$dlname \$dldir/$dlname~
60485      chmod a+x \$dldir/$dlname~
60486      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
60487        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
60488      fi'
60489    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
60490      dlpath=$dir/\$dldll~
60491       $RM \$dlpath'
60492    shlibpath_overrides_runpath=yes
60493
60494    case $host_os in
60495    cygwin*)
60496      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
60497      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
60498
60499      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
60500      ;;
60501    mingw* | cegcc*)
60502      # MinGW DLLs use traditional 'lib' prefix
60503      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
60504      ;;
60505    pw32*)
60506      # pw32 DLLs use 'pw' prefix rather than 'lib'
60507      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
60508      ;;
60509    esac
60510    dynamic_linker='Win32 ld.exe'
60511    ;;
60512
60513  *,cl*)
60514    # Native MSVC
60515    libname_spec='$name'
60516    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
60517    library_names_spec='$libname.dll.lib'
60518
60519    case $build_os in
60520    mingw*)
60521      sys_lib_search_path_spec=
60522      lt_save_ifs=$IFS
60523      IFS=';'
60524      for lt_path in $LIB
60525      do
60526        IFS=$lt_save_ifs
60527        # Let DOS variable expansion print the short 8.3 style file name.
60528        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
60529        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
60530      done
60531      IFS=$lt_save_ifs
60532      # Convert to MSYS style.
60533      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
60534      ;;
60535    cygwin*)
60536      # Convert to unix form, then to dos form, then back to unix form
60537      # but this time dos style (no spaces!) so that the unix form looks
60538      # like /cygdrive/c/PROGRA~1:/cygdr...
60539      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
60540      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
60541      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
60542      ;;
60543    *)
60544      sys_lib_search_path_spec=$LIB
60545      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
60546        # It is most probably a Windows format PATH.
60547        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
60548      else
60549        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
60550      fi
60551      # FIXME: find the short name or the path components, as spaces are
60552      # common. (e.g. "Program Files" -> "PROGRA~1")
60553      ;;
60554    esac
60555
60556    # DLL is installed to $(libdir)/../bin by postinstall_cmds
60557    postinstall_cmds='base_file=`basename \$file`~
60558      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
60559      dldir=$destdir/`dirname \$dlpath`~
60560      test -d \$dldir || mkdir -p \$dldir~
60561      $install_prog $dir/$dlname \$dldir/$dlname'
60562    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
60563      dlpath=$dir/\$dldll~
60564       $RM \$dlpath'
60565    shlibpath_overrides_runpath=yes
60566    dynamic_linker='Win32 link.exe'
60567    ;;
60568
60569  *)
60570    # Assume MSVC wrapper
60571    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
60572    dynamic_linker='Win32 ld.exe'
60573    ;;
60574  esac
60575  # FIXME: first we should search . and the directory the executable is in
60576  shlibpath_var=PATH
60577  ;;
60578
60579darwin* | rhapsody*)
60580  dynamic_linker="$host_os dyld"
60581  version_type=darwin
60582  need_lib_prefix=no
60583  need_version=no
60584  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
60585  soname_spec='$libname$release$major$shared_ext'
60586  shlibpath_overrides_runpath=yes
60587  shlibpath_var=DYLD_LIBRARY_PATH
60588  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
60589
60590  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
60591  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
60592  ;;
60593
60594dgux*)
60595  version_type=linux # correct to gnu/linux during the next big refactor
60596  need_lib_prefix=no
60597  need_version=no
60598  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60599  soname_spec='$libname$release$shared_ext$major'
60600  shlibpath_var=LD_LIBRARY_PATH
60601  ;;
60602
60603freebsd* | dragonfly*)
60604  # DragonFly does not have aout.  When/if they implement a new
60605  # versioning mechanism, adjust this.
60606  if test -x /usr/bin/objformat; then
60607    objformat=`/usr/bin/objformat`
60608  else
60609    case $host_os in
60610    freebsd[23].*) objformat=aout ;;
60611    *) objformat=elf ;;
60612    esac
60613  fi
60614  version_type=freebsd-$objformat
60615  case $version_type in
60616    freebsd-elf*)
60617      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60618      soname_spec='$libname$release$shared_ext$major'
60619      need_version=no
60620      need_lib_prefix=no
60621      ;;
60622    freebsd-*)
60623      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
60624      need_version=yes
60625      ;;
60626  esac
60627  shlibpath_var=LD_LIBRARY_PATH
60628  case $host_os in
60629  freebsd2.*)
60630    shlibpath_overrides_runpath=yes
60631    ;;
60632  freebsd3.[01]* | freebsdelf3.[01]*)
60633    shlibpath_overrides_runpath=yes
60634    hardcode_into_libs=yes
60635    ;;
60636  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
60637  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
60638    shlibpath_overrides_runpath=no
60639    hardcode_into_libs=yes
60640    ;;
60641  *) # from 4.6 on, and DragonFly
60642    shlibpath_overrides_runpath=yes
60643    hardcode_into_libs=yes
60644    ;;
60645  esac
60646  ;;
60647
60648haiku*)
60649  version_type=linux # correct to gnu/linux during the next big refactor
60650  need_lib_prefix=no
60651  need_version=no
60652  dynamic_linker="$host_os runtime_loader"
60653  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60654  soname_spec='$libname$release$shared_ext$major'
60655  shlibpath_var=LIBRARY_PATH
60656  shlibpath_overrides_runpath=no
60657  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
60658  hardcode_into_libs=yes
60659  ;;
60660
60661hpux9* | hpux10* | hpux11*)
60662  # Give a soname corresponding to the major version so that dld.sl refuses to
60663  # link against other versions.
60664  version_type=sunos
60665  need_lib_prefix=no
60666  need_version=no
60667  case $host_cpu in
60668  ia64*)
60669    shrext_cmds='.so'
60670    hardcode_into_libs=yes
60671    dynamic_linker="$host_os dld.so"
60672    shlibpath_var=LD_LIBRARY_PATH
60673    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
60674    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60675    soname_spec='$libname$release$shared_ext$major'
60676    if test 32 = "$HPUX_IA64_MODE"; then
60677      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
60678      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
60679    else
60680      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
60681      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
60682    fi
60683    ;;
60684  hppa*64*)
60685    shrext_cmds='.sl'
60686    hardcode_into_libs=yes
60687    dynamic_linker="$host_os dld.sl"
60688    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
60689    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
60690    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60691    soname_spec='$libname$release$shared_ext$major'
60692    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
60693    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
60694    ;;
60695  *)
60696    shrext_cmds='.sl'
60697    dynamic_linker="$host_os dld.sl"
60698    shlibpath_var=SHLIB_PATH
60699    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
60700    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60701    soname_spec='$libname$release$shared_ext$major'
60702    ;;
60703  esac
60704  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
60705  postinstall_cmds='chmod 555 $lib'
60706  # or fails outright, so override atomically:
60707  install_override_mode=555
60708  ;;
60709
60710interix[3-9]*)
60711  version_type=linux # correct to gnu/linux during the next big refactor
60712  need_lib_prefix=no
60713  need_version=no
60714  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60715  soname_spec='$libname$release$shared_ext$major'
60716  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
60717  shlibpath_var=LD_LIBRARY_PATH
60718  shlibpath_overrides_runpath=no
60719  hardcode_into_libs=yes
60720  ;;
60721
60722irix5* | irix6* | nonstopux*)
60723  case $host_os in
60724    nonstopux*) version_type=nonstopux ;;
60725    *)
60726	if test yes = "$lt_cv_prog_gnu_ld"; then
60727		version_type=linux # correct to gnu/linux during the next big refactor
60728	else
60729		version_type=irix
60730	fi ;;
60731  esac
60732  need_lib_prefix=no
60733  need_version=no
60734  soname_spec='$libname$release$shared_ext$major'
60735  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
60736  case $host_os in
60737  irix5* | nonstopux*)
60738    libsuff= shlibsuff=
60739    ;;
60740  *)
60741    case $LD in # libtool.m4 will add one of these switches to LD
60742    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
60743      libsuff= shlibsuff= libmagic=32-bit;;
60744    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
60745      libsuff=32 shlibsuff=N32 libmagic=N32;;
60746    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
60747      libsuff=64 shlibsuff=64 libmagic=64-bit;;
60748    *) libsuff= shlibsuff= libmagic=never-match;;
60749    esac
60750    ;;
60751  esac
60752  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
60753  shlibpath_overrides_runpath=no
60754  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
60755  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
60756  hardcode_into_libs=yes
60757  ;;
60758
60759# No shared lib support for Linux oldld, aout, or coff.
60760linux*oldld* | linux*aout* | linux*coff*)
60761  dynamic_linker=no
60762  ;;
60763
60764linux*android*)
60765  version_type=none # Android doesn't support versioned libraries.
60766  need_lib_prefix=no
60767  need_version=no
60768  library_names_spec='$libname$release$shared_ext'
60769  soname_spec='$libname$release$shared_ext'
60770  finish_cmds=
60771  shlibpath_var=LD_LIBRARY_PATH
60772  shlibpath_overrides_runpath=yes
60773
60774  # This implies no fast_install, which is unacceptable.
60775  # Some rework will be needed to allow for fast_install
60776  # before this can be enabled.
60777  hardcode_into_libs=yes
60778
60779  dynamic_linker='Android linker'
60780  # Don't embed -rpath directories since the linker doesn't support them.
60781  hardcode_libdir_flag_spec='-L$libdir'
60782  ;;
60783
60784# This must be glibc/ELF.
60785linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
60786  version_type=linux # correct to gnu/linux during the next big refactor
60787  need_lib_prefix=no
60788  need_version=no
60789  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60790  soname_spec='$libname$release$shared_ext$major'
60791  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
60792  shlibpath_var=LD_LIBRARY_PATH
60793  shlibpath_overrides_runpath=no
60794
60795  # Some binutils ld are patched to set DT_RUNPATH
60796  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
60797  $as_echo_n "(cached) " >&6
60798else
60799  lt_cv_shlibpath_overrides_runpath=no
60800    save_LDFLAGS=$LDFLAGS
60801    save_libdir=$libdir
60802    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
60803	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
60804    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60805/* end confdefs.h.  */
60806
60807int
60808main ()
60809{
60810
60811  ;
60812  return 0;
60813}
60814_ACEOF
60815if ac_fn_c_try_link "$LINENO"; then :
60816  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
60817  lt_cv_shlibpath_overrides_runpath=yes
60818fi
60819fi
60820rm -f core conftest.err conftest.$ac_objext \
60821    conftest$ac_exeext conftest.$ac_ext
60822    LDFLAGS=$save_LDFLAGS
60823    libdir=$save_libdir
60824
60825fi
60826
60827  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
60828
60829  # This implies no fast_install, which is unacceptable.
60830  # Some rework will be needed to allow for fast_install
60831  # before this can be enabled.
60832  hardcode_into_libs=yes
60833
60834  # Add ABI-specific directories to the system library path.
60835  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
60836
60837  # Ideally, we could use ldconfig to report *all* directores which are
60838  # searched for libraries, however this is still not possible.  Aside from not
60839  # being certain /sbin/ldconfig is available, command
60840  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
60841  # even though it is searched at run-time.  Try to do the best guess by
60842  # appending ld.so.conf contents (and includes) to the search path.
60843  if test -f /etc/ld.so.conf; then
60844    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' ' '`
60845    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
60846  fi
60847
60848  # We used to test for /lib/ld.so.1 and disable shared libraries on
60849  # powerpc, because MkLinux only supported shared libraries with the
60850  # GNU dynamic linker.  Since this was broken with cross compilers,
60851  # most powerpc-linux boxes support dynamic linking these days and
60852  # people can always --disable-shared, the test was removed, and we
60853  # assume the GNU/Linux dynamic linker is in use.
60854  dynamic_linker='GNU/Linux ld.so'
60855  ;;
60856
60857netbsd*)
60858  version_type=sunos
60859  need_lib_prefix=no
60860  need_version=no
60861  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
60862    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
60863    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
60864    dynamic_linker='NetBSD (a.out) ld.so'
60865  else
60866    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60867    soname_spec='$libname$release$shared_ext$major'
60868    dynamic_linker='NetBSD ld.elf_so'
60869  fi
60870  shlibpath_var=LD_LIBRARY_PATH
60871  shlibpath_overrides_runpath=yes
60872  hardcode_into_libs=yes
60873  ;;
60874
60875newsos6)
60876  version_type=linux # correct to gnu/linux during the next big refactor
60877  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60878  shlibpath_var=LD_LIBRARY_PATH
60879  shlibpath_overrides_runpath=yes
60880  ;;
60881
60882*nto* | *qnx*)
60883  version_type=qnx
60884  need_lib_prefix=no
60885  need_version=no
60886  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60887  soname_spec='$libname$release$shared_ext$major'
60888  shlibpath_var=LD_LIBRARY_PATH
60889  shlibpath_overrides_runpath=no
60890  hardcode_into_libs=yes
60891  dynamic_linker='ldqnx.so'
60892  ;;
60893
60894openbsd* | bitrig*)
60895  version_type=sunos
60896  sys_lib_dlsearch_path_spec=/usr/lib
60897  need_lib_prefix=no
60898  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
60899    need_version=no
60900  else
60901    need_version=yes
60902  fi
60903  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
60904  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
60905  shlibpath_var=LD_LIBRARY_PATH
60906  shlibpath_overrides_runpath=yes
60907  ;;
60908
60909os2*)
60910  libname_spec='$name'
60911  version_type=windows
60912  shrext_cmds=.dll
60913  need_version=no
60914  need_lib_prefix=no
60915  # OS/2 can only load a DLL with a base name of 8 characters or less.
60916  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
60917    v=$($ECHO $release$versuffix | tr -d .-);
60918    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
60919    $ECHO $n$v`$shared_ext'
60920  library_names_spec='${libname}_dll.$libext'
60921  dynamic_linker='OS/2 ld.exe'
60922  shlibpath_var=BEGINLIBPATH
60923  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
60924  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
60925  postinstall_cmds='base_file=`basename \$file`~
60926    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
60927    dldir=$destdir/`dirname \$dlpath`~
60928    test -d \$dldir || mkdir -p \$dldir~
60929    $install_prog $dir/$dlname \$dldir/$dlname~
60930    chmod a+x \$dldir/$dlname~
60931    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
60932      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
60933    fi'
60934  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
60935    dlpath=$dir/\$dldll~
60936    $RM \$dlpath'
60937  ;;
60938
60939osf3* | osf4* | osf5*)
60940  version_type=osf
60941  need_lib_prefix=no
60942  need_version=no
60943  soname_spec='$libname$release$shared_ext$major'
60944  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60945  shlibpath_var=LD_LIBRARY_PATH
60946  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
60947  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
60948  ;;
60949
60950rdos*)
60951  dynamic_linker=no
60952  ;;
60953
60954solaris*)
60955  version_type=linux # correct to gnu/linux during the next big refactor
60956  need_lib_prefix=no
60957  need_version=no
60958  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60959  soname_spec='$libname$release$shared_ext$major'
60960  shlibpath_var=LD_LIBRARY_PATH
60961  shlibpath_overrides_runpath=yes
60962  hardcode_into_libs=yes
60963  # ldd complains unless libraries are executable
60964  postinstall_cmds='chmod +x $lib'
60965  ;;
60966
60967sunos4*)
60968  version_type=sunos
60969  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
60970  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
60971  shlibpath_var=LD_LIBRARY_PATH
60972  shlibpath_overrides_runpath=yes
60973  if test yes = "$with_gnu_ld"; then
60974    need_lib_prefix=no
60975  fi
60976  need_version=yes
60977  ;;
60978
60979sysv4 | sysv4.3*)
60980  version_type=linux # correct to gnu/linux during the next big refactor
60981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
60982  soname_spec='$libname$release$shared_ext$major'
60983  shlibpath_var=LD_LIBRARY_PATH
60984  case $host_vendor in
60985    sni)
60986      shlibpath_overrides_runpath=no
60987      need_lib_prefix=no
60988      runpath_var=LD_RUN_PATH
60989      ;;
60990    siemens)
60991      need_lib_prefix=no
60992      ;;
60993    motorola)
60994      need_lib_prefix=no
60995      need_version=no
60996      shlibpath_overrides_runpath=no
60997      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
60998      ;;
60999  esac
61000  ;;
61001
61002sysv4*MP*)
61003  if test -d /usr/nec; then
61004    version_type=linux # correct to gnu/linux during the next big refactor
61005    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
61006    soname_spec='$libname$shared_ext.$major'
61007    shlibpath_var=LD_LIBRARY_PATH
61008  fi
61009  ;;
61010
61011sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
61012  version_type=sco
61013  need_lib_prefix=no
61014  need_version=no
61015  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
61016  soname_spec='$libname$release$shared_ext$major'
61017  shlibpath_var=LD_LIBRARY_PATH
61018  shlibpath_overrides_runpath=yes
61019  hardcode_into_libs=yes
61020  if test yes = "$with_gnu_ld"; then
61021    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
61022  else
61023    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
61024    case $host_os in
61025      sco3.2v5*)
61026        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
61027	;;
61028    esac
61029  fi
61030  sys_lib_dlsearch_path_spec='/usr/lib'
61031  ;;
61032
61033tpf*)
61034  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
61035  version_type=linux # correct to gnu/linux during the next big refactor
61036  need_lib_prefix=no
61037  need_version=no
61038  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
61039  shlibpath_var=LD_LIBRARY_PATH
61040  shlibpath_overrides_runpath=no
61041  hardcode_into_libs=yes
61042  ;;
61043
61044uts4*)
61045  version_type=linux # correct to gnu/linux during the next big refactor
61046  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
61047  soname_spec='$libname$release$shared_ext$major'
61048  shlibpath_var=LD_LIBRARY_PATH
61049  ;;
61050
61051*)
61052  dynamic_linker=no
61053  ;;
61054esac
61055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
61056$as_echo "$dynamic_linker" >&6; }
61057test no = "$dynamic_linker" && can_build_shared=no
61058
61059variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
61060if test yes = "$GCC"; then
61061  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
61062fi
61063
61064if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
61065  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
61066fi
61067
61068if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
61069  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
61070fi
61071
61072# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
61073configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
61074
61075# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
61076func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
61077
61078# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
61079configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
61080
61081
61082
61083
61084
61085
61086
61087
61088
61089
61090
61091
61092
61093
61094
61095
61096
61097
61098
61099
61100
61101
61102
61103
61104
61105
61106
61107
61108
61109
61110
61111
61112
61113
61114
61115
61116
61117
61118
61119
61120
61121
61122
61123
61124
61125
61126
61127
61128
61129
61130
61131
61132
61133
61134
61135
61136
61137
61138
61139
61140
61141
61142
61143
61144
61145
61146
61147
61148
61149
61150
61151
61152
61153
61154
61155
61156
61157
61158
61159
61160
61161
61162
61163
61164
61165
61166
61167
61168
61169
61170
61171
61172
61173
61174
61175
61176
61177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
61178$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
61179hardcode_action=
61180if test -n "$hardcode_libdir_flag_spec" ||
61181   test -n "$runpath_var" ||
61182   test yes = "$hardcode_automatic"; then
61183
61184  # We can hardcode non-existent directories.
61185  if test no != "$hardcode_direct" &&
61186     # If the only mechanism to avoid hardcoding is shlibpath_var, we
61187     # have to relink, otherwise we might link with an installed library
61188     # when we should be linking with a yet-to-be-installed one
61189     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
61190     test no != "$hardcode_minus_L"; then
61191    # Linking always hardcodes the temporary library directory.
61192    hardcode_action=relink
61193  else
61194    # We can link without hardcoding, and we can hardcode nonexisting dirs.
61195    hardcode_action=immediate
61196  fi
61197else
61198  # We cannot hardcode anything, or else we can only hardcode existing
61199  # directories.
61200  hardcode_action=unsupported
61201fi
61202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
61203$as_echo "$hardcode_action" >&6; }
61204
61205if test relink = "$hardcode_action" ||
61206   test yes = "$inherit_rpath"; then
61207  # Fast installation is not supported
61208  enable_fast_install=no
61209elif test yes = "$shlibpath_overrides_runpath" ||
61210     test no = "$enable_shared"; then
61211  # Fast installation is not necessary
61212  enable_fast_install=needless
61213fi
61214
61215
61216
61217
61218
61219
61220  if test yes != "$enable_dlopen"; then
61221  enable_dlopen=unknown
61222  enable_dlopen_self=unknown
61223  enable_dlopen_self_static=unknown
61224else
61225  lt_cv_dlopen=no
61226  lt_cv_dlopen_libs=
61227
61228  case $host_os in
61229  beos*)
61230    lt_cv_dlopen=load_add_on
61231    lt_cv_dlopen_libs=
61232    lt_cv_dlopen_self=yes
61233    ;;
61234
61235  mingw* | pw32* | cegcc*)
61236    lt_cv_dlopen=LoadLibrary
61237    lt_cv_dlopen_libs=
61238    ;;
61239
61240  cygwin*)
61241    lt_cv_dlopen=dlopen
61242    lt_cv_dlopen_libs=
61243    ;;
61244
61245  darwin*)
61246    # if libdl is installed we need to link against it
61247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
61248$as_echo_n "checking for dlopen in -ldl... " >&6; }
61249if ${ac_cv_lib_dl_dlopen+:} false; then :
61250  $as_echo_n "(cached) " >&6
61251else
61252  ac_check_lib_save_LIBS=$LIBS
61253LIBS="-ldl  $LIBS"
61254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61255/* end confdefs.h.  */
61256
61257/* Override any GCC internal prototype to avoid an error.
61258   Use char because int might match the return type of a GCC
61259   builtin and then its argument prototype would still apply.  */
61260#ifdef __cplusplus
61261extern "C"
61262#endif
61263char dlopen ();
61264int
61265main ()
61266{
61267return dlopen ();
61268  ;
61269  return 0;
61270}
61271_ACEOF
61272if ac_fn_c_try_link "$LINENO"; then :
61273  ac_cv_lib_dl_dlopen=yes
61274else
61275  ac_cv_lib_dl_dlopen=no
61276fi
61277rm -f core conftest.err conftest.$ac_objext \
61278    conftest$ac_exeext conftest.$ac_ext
61279LIBS=$ac_check_lib_save_LIBS
61280fi
61281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
61282$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
61283if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
61284  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
61285else
61286
61287    lt_cv_dlopen=dyld
61288    lt_cv_dlopen_libs=
61289    lt_cv_dlopen_self=yes
61290
61291fi
61292
61293    ;;
61294
61295  tpf*)
61296    # Don't try to run any link tests for TPF.  We know it's impossible
61297    # because TPF is a cross-compiler, and we know how we open DSOs.
61298    lt_cv_dlopen=dlopen
61299    lt_cv_dlopen_libs=
61300    lt_cv_dlopen_self=no
61301    ;;
61302
61303  *)
61304    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
61305if test "x$ac_cv_func_shl_load" = xyes; then :
61306  lt_cv_dlopen=shl_load
61307else
61308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
61309$as_echo_n "checking for shl_load in -ldld... " >&6; }
61310if ${ac_cv_lib_dld_shl_load+:} false; then :
61311  $as_echo_n "(cached) " >&6
61312else
61313  ac_check_lib_save_LIBS=$LIBS
61314LIBS="-ldld  $LIBS"
61315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61316/* end confdefs.h.  */
61317
61318/* Override any GCC internal prototype to avoid an error.
61319   Use char because int might match the return type of a GCC
61320   builtin and then its argument prototype would still apply.  */
61321#ifdef __cplusplus
61322extern "C"
61323#endif
61324char shl_load ();
61325int
61326main ()
61327{
61328return shl_load ();
61329  ;
61330  return 0;
61331}
61332_ACEOF
61333if ac_fn_c_try_link "$LINENO"; then :
61334  ac_cv_lib_dld_shl_load=yes
61335else
61336  ac_cv_lib_dld_shl_load=no
61337fi
61338rm -f core conftest.err conftest.$ac_objext \
61339    conftest$ac_exeext conftest.$ac_ext
61340LIBS=$ac_check_lib_save_LIBS
61341fi
61342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
61343$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
61344if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
61345  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
61346else
61347  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
61348if test "x$ac_cv_func_dlopen" = xyes; then :
61349  lt_cv_dlopen=dlopen
61350else
61351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
61352$as_echo_n "checking for dlopen in -ldl... " >&6; }
61353if ${ac_cv_lib_dl_dlopen+:} false; then :
61354  $as_echo_n "(cached) " >&6
61355else
61356  ac_check_lib_save_LIBS=$LIBS
61357LIBS="-ldl  $LIBS"
61358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61359/* end confdefs.h.  */
61360
61361/* Override any GCC internal prototype to avoid an error.
61362   Use char because int might match the return type of a GCC
61363   builtin and then its argument prototype would still apply.  */
61364#ifdef __cplusplus
61365extern "C"
61366#endif
61367char dlopen ();
61368int
61369main ()
61370{
61371return dlopen ();
61372  ;
61373  return 0;
61374}
61375_ACEOF
61376if ac_fn_c_try_link "$LINENO"; then :
61377  ac_cv_lib_dl_dlopen=yes
61378else
61379  ac_cv_lib_dl_dlopen=no
61380fi
61381rm -f core conftest.err conftest.$ac_objext \
61382    conftest$ac_exeext conftest.$ac_ext
61383LIBS=$ac_check_lib_save_LIBS
61384fi
61385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
61386$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
61387if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
61388  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
61389else
61390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
61391$as_echo_n "checking for dlopen in -lsvld... " >&6; }
61392if ${ac_cv_lib_svld_dlopen+:} false; then :
61393  $as_echo_n "(cached) " >&6
61394else
61395  ac_check_lib_save_LIBS=$LIBS
61396LIBS="-lsvld  $LIBS"
61397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61398/* end confdefs.h.  */
61399
61400/* Override any GCC internal prototype to avoid an error.
61401   Use char because int might match the return type of a GCC
61402   builtin and then its argument prototype would still apply.  */
61403#ifdef __cplusplus
61404extern "C"
61405#endif
61406char dlopen ();
61407int
61408main ()
61409{
61410return dlopen ();
61411  ;
61412  return 0;
61413}
61414_ACEOF
61415if ac_fn_c_try_link "$LINENO"; then :
61416  ac_cv_lib_svld_dlopen=yes
61417else
61418  ac_cv_lib_svld_dlopen=no
61419fi
61420rm -f core conftest.err conftest.$ac_objext \
61421    conftest$ac_exeext conftest.$ac_ext
61422LIBS=$ac_check_lib_save_LIBS
61423fi
61424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
61425$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
61426if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
61427  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
61428else
61429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
61430$as_echo_n "checking for dld_link in -ldld... " >&6; }
61431if ${ac_cv_lib_dld_dld_link+:} false; then :
61432  $as_echo_n "(cached) " >&6
61433else
61434  ac_check_lib_save_LIBS=$LIBS
61435LIBS="-ldld  $LIBS"
61436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61437/* end confdefs.h.  */
61438
61439/* Override any GCC internal prototype to avoid an error.
61440   Use char because int might match the return type of a GCC
61441   builtin and then its argument prototype would still apply.  */
61442#ifdef __cplusplus
61443extern "C"
61444#endif
61445char dld_link ();
61446int
61447main ()
61448{
61449return dld_link ();
61450  ;
61451  return 0;
61452}
61453_ACEOF
61454if ac_fn_c_try_link "$LINENO"; then :
61455  ac_cv_lib_dld_dld_link=yes
61456else
61457  ac_cv_lib_dld_dld_link=no
61458fi
61459rm -f core conftest.err conftest.$ac_objext \
61460    conftest$ac_exeext conftest.$ac_ext
61461LIBS=$ac_check_lib_save_LIBS
61462fi
61463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
61464$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
61465if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
61466  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
61467fi
61468
61469
61470fi
61471
61472
61473fi
61474
61475
61476fi
61477
61478
61479fi
61480
61481
61482fi
61483
61484    ;;
61485  esac
61486
61487  if test no = "$lt_cv_dlopen"; then
61488    enable_dlopen=no
61489  else
61490    enable_dlopen=yes
61491  fi
61492
61493  case $lt_cv_dlopen in
61494  dlopen)
61495    save_CPPFLAGS=$CPPFLAGS
61496    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
61497
61498    save_LDFLAGS=$LDFLAGS
61499    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
61500
61501    save_LIBS=$LIBS
61502    LIBS="$lt_cv_dlopen_libs $LIBS"
61503
61504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
61505$as_echo_n "checking whether a program can dlopen itself... " >&6; }
61506if ${lt_cv_dlopen_self+:} false; then :
61507  $as_echo_n "(cached) " >&6
61508else
61509  	  if test yes = "$cross_compiling"; then :
61510  lt_cv_dlopen_self=cross
61511else
61512  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
61513  lt_status=$lt_dlunknown
61514  cat > conftest.$ac_ext <<_LT_EOF
61515#line $LINENO "configure"
61516#include "confdefs.h"
61517
61518#if HAVE_DLFCN_H
61519#include <dlfcn.h>
61520#endif
61521
61522#include <stdio.h>
61523
61524#ifdef RTLD_GLOBAL
61525#  define LT_DLGLOBAL		RTLD_GLOBAL
61526#else
61527#  ifdef DL_GLOBAL
61528#    define LT_DLGLOBAL		DL_GLOBAL
61529#  else
61530#    define LT_DLGLOBAL		0
61531#  endif
61532#endif
61533
61534/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
61535   find out it does not work in some platform. */
61536#ifndef LT_DLLAZY_OR_NOW
61537#  ifdef RTLD_LAZY
61538#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
61539#  else
61540#    ifdef DL_LAZY
61541#      define LT_DLLAZY_OR_NOW		DL_LAZY
61542#    else
61543#      ifdef RTLD_NOW
61544#        define LT_DLLAZY_OR_NOW	RTLD_NOW
61545#      else
61546#        ifdef DL_NOW
61547#          define LT_DLLAZY_OR_NOW	DL_NOW
61548#        else
61549#          define LT_DLLAZY_OR_NOW	0
61550#        endif
61551#      endif
61552#    endif
61553#  endif
61554#endif
61555
61556/* When -fvisibility=hidden is used, assume the code has been annotated
61557   correspondingly for the symbols needed.  */
61558#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
61559int fnord () __attribute__((visibility("default")));
61560#endif
61561
61562int fnord () { return 42; }
61563int main ()
61564{
61565  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
61566  int status = $lt_dlunknown;
61567
61568  if (self)
61569    {
61570      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
61571      else
61572        {
61573	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
61574          else puts (dlerror ());
61575	}
61576      /* dlclose (self); */
61577    }
61578  else
61579    puts (dlerror ());
61580
61581  return status;
61582}
61583_LT_EOF
61584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
61585  (eval $ac_link) 2>&5
61586  ac_status=$?
61587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61588  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
61589    (./conftest; exit; ) >&5 2>/dev/null
61590    lt_status=$?
61591    case x$lt_status in
61592      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
61593      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
61594      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
61595    esac
61596  else :
61597    # compilation failed
61598    lt_cv_dlopen_self=no
61599  fi
61600fi
61601rm -fr conftest*
61602
61603
61604fi
61605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
61606$as_echo "$lt_cv_dlopen_self" >&6; }
61607
61608    if test yes = "$lt_cv_dlopen_self"; then
61609      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
61610      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
61611$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
61612if ${lt_cv_dlopen_self_static+:} false; then :
61613  $as_echo_n "(cached) " >&6
61614else
61615  	  if test yes = "$cross_compiling"; then :
61616  lt_cv_dlopen_self_static=cross
61617else
61618  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
61619  lt_status=$lt_dlunknown
61620  cat > conftest.$ac_ext <<_LT_EOF
61621#line $LINENO "configure"
61622#include "confdefs.h"
61623
61624#if HAVE_DLFCN_H
61625#include <dlfcn.h>
61626#endif
61627
61628#include <stdio.h>
61629
61630#ifdef RTLD_GLOBAL
61631#  define LT_DLGLOBAL		RTLD_GLOBAL
61632#else
61633#  ifdef DL_GLOBAL
61634#    define LT_DLGLOBAL		DL_GLOBAL
61635#  else
61636#    define LT_DLGLOBAL		0
61637#  endif
61638#endif
61639
61640/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
61641   find out it does not work in some platform. */
61642#ifndef LT_DLLAZY_OR_NOW
61643#  ifdef RTLD_LAZY
61644#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
61645#  else
61646#    ifdef DL_LAZY
61647#      define LT_DLLAZY_OR_NOW		DL_LAZY
61648#    else
61649#      ifdef RTLD_NOW
61650#        define LT_DLLAZY_OR_NOW	RTLD_NOW
61651#      else
61652#        ifdef DL_NOW
61653#          define LT_DLLAZY_OR_NOW	DL_NOW
61654#        else
61655#          define LT_DLLAZY_OR_NOW	0
61656#        endif
61657#      endif
61658#    endif
61659#  endif
61660#endif
61661
61662/* When -fvisibility=hidden is used, assume the code has been annotated
61663   correspondingly for the symbols needed.  */
61664#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
61665int fnord () __attribute__((visibility("default")));
61666#endif
61667
61668int fnord () { return 42; }
61669int main ()
61670{
61671  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
61672  int status = $lt_dlunknown;
61673
61674  if (self)
61675    {
61676      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
61677      else
61678        {
61679	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
61680          else puts (dlerror ());
61681	}
61682      /* dlclose (self); */
61683    }
61684  else
61685    puts (dlerror ());
61686
61687  return status;
61688}
61689_LT_EOF
61690  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
61691  (eval $ac_link) 2>&5
61692  ac_status=$?
61693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61694  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
61695    (./conftest; exit; ) >&5 2>/dev/null
61696    lt_status=$?
61697    case x$lt_status in
61698      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
61699      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
61700      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
61701    esac
61702  else :
61703    # compilation failed
61704    lt_cv_dlopen_self_static=no
61705  fi
61706fi
61707rm -fr conftest*
61708
61709
61710fi
61711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
61712$as_echo "$lt_cv_dlopen_self_static" >&6; }
61713    fi
61714
61715    CPPFLAGS=$save_CPPFLAGS
61716    LDFLAGS=$save_LDFLAGS
61717    LIBS=$save_LIBS
61718    ;;
61719  esac
61720
61721  case $lt_cv_dlopen_self in
61722  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
61723  *) enable_dlopen_self=unknown ;;
61724  esac
61725
61726  case $lt_cv_dlopen_self_static in
61727  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
61728  *) enable_dlopen_self_static=unknown ;;
61729  esac
61730fi
61731
61732
61733
61734
61735
61736
61737
61738
61739
61740
61741
61742
61743
61744
61745
61746
61747
61748striplib=
61749old_striplib=
61750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
61751$as_echo_n "checking whether stripping libraries is possible... " >&6; }
61752if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
61753  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
61754  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
61755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61756$as_echo "yes" >&6; }
61757else
61758# FIXME - insert some real tests, host_os isn't really good enough
61759  case $host_os in
61760  darwin*)
61761    if test -n "$STRIP"; then
61762      striplib="$STRIP -x"
61763      old_striplib="$STRIP -S"
61764      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61765$as_echo "yes" >&6; }
61766    else
61767      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61768$as_echo "no" >&6; }
61769    fi
61770    ;;
61771  *)
61772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61773$as_echo "no" >&6; }
61774    ;;
61775  esac
61776fi
61777
61778
61779
61780
61781
61782
61783
61784
61785
61786
61787
61788
61789  # Report what library types will actually be built
61790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
61791$as_echo_n "checking if libtool supports shared libraries... " >&6; }
61792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
61793$as_echo "$can_build_shared" >&6; }
61794
61795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
61796$as_echo_n "checking whether to build shared libraries... " >&6; }
61797  test no = "$can_build_shared" && enable_shared=no
61798
61799  # On AIX, shared libraries and static libraries use the same namespace, and
61800  # are all built from PIC.
61801  case $host_os in
61802  aix3*)
61803    test yes = "$enable_shared" && enable_static=no
61804    if test -n "$RANLIB"; then
61805      archive_cmds="$archive_cmds~\$RANLIB \$lib"
61806      postinstall_cmds='$RANLIB $lib'
61807    fi
61808    ;;
61809
61810  aix[4-9]*)
61811    if test ia64 != "$host_cpu"; then
61812      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
61813      yes,aix,yes) ;;			# shared object as lib.so file only
61814      yes,svr4,*) ;;			# shared object as lib.so archive member only
61815      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
61816      esac
61817    fi
61818    ;;
61819  esac
61820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
61821$as_echo "$enable_shared" >&6; }
61822
61823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
61824$as_echo_n "checking whether to build static libraries... " >&6; }
61825  # Make sure either enable_shared or enable_static is yes.
61826  test yes = "$enable_shared" || enable_static=yes
61827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
61828$as_echo "$enable_static" >&6; }
61829
61830
61831
61832
61833fi
61834ac_ext=c
61835ac_cpp='$CPP $CPPFLAGS'
61836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61838ac_compiler_gnu=$ac_cv_c_compiler_gnu
61839
61840CC=$lt_save_CC
61841
61842      if test -n "$CXX" && ( test no != "$CXX" &&
61843    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
61844    (test g++ != "$CXX"))); then
61845  ac_ext=cpp
61846ac_cpp='$CXXCPP $CPPFLAGS'
61847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
61850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
61851$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
61852if test -z "$CXXCPP"; then
61853  if ${ac_cv_prog_CXXCPP+:} false; then :
61854  $as_echo_n "(cached) " >&6
61855else
61856      # Double quotes because CXXCPP needs to be expanded
61857    for CXXCPP in "$CXX -E" "/lib/cpp"
61858    do
61859      ac_preproc_ok=false
61860for ac_cxx_preproc_warn_flag in '' yes
61861do
61862  # Use a header file that comes with gcc, so configuring glibc
61863  # with a fresh cross-compiler works.
61864  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61865  # <limits.h> exists even on freestanding compilers.
61866  # On the NeXT, cc -E runs the code through the compiler's parser,
61867  # not just through cpp. "Syntax error" is here to catch this case.
61868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61869/* end confdefs.h.  */
61870#ifdef __STDC__
61871# include <limits.h>
61872#else
61873# include <assert.h>
61874#endif
61875		     Syntax error
61876_ACEOF
61877if ac_fn_cxx_try_cpp "$LINENO"; then :
61878
61879else
61880  # Broken: fails on valid input.
61881continue
61882fi
61883rm -f conftest.err conftest.i conftest.$ac_ext
61884
61885  # OK, works on sane cases.  Now check whether nonexistent headers
61886  # can be detected and how.
61887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61888/* end confdefs.h.  */
61889#include <ac_nonexistent.h>
61890_ACEOF
61891if ac_fn_cxx_try_cpp "$LINENO"; then :
61892  # Broken: success on invalid input.
61893continue
61894else
61895  # Passes both tests.
61896ac_preproc_ok=:
61897break
61898fi
61899rm -f conftest.err conftest.i conftest.$ac_ext
61900
61901done
61902# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
61903rm -f conftest.i conftest.err conftest.$ac_ext
61904if $ac_preproc_ok; then :
61905  break
61906fi
61907
61908    done
61909    ac_cv_prog_CXXCPP=$CXXCPP
61910
61911fi
61912  CXXCPP=$ac_cv_prog_CXXCPP
61913else
61914  ac_cv_prog_CXXCPP=$CXXCPP
61915fi
61916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
61917$as_echo "$CXXCPP" >&6; }
61918ac_preproc_ok=false
61919for ac_cxx_preproc_warn_flag in '' yes
61920do
61921  # Use a header file that comes with gcc, so configuring glibc
61922  # with a fresh cross-compiler works.
61923  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61924  # <limits.h> exists even on freestanding compilers.
61925  # On the NeXT, cc -E runs the code through the compiler's parser,
61926  # not just through cpp. "Syntax error" is here to catch this case.
61927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61928/* end confdefs.h.  */
61929#ifdef __STDC__
61930# include <limits.h>
61931#else
61932# include <assert.h>
61933#endif
61934		     Syntax error
61935_ACEOF
61936if ac_fn_cxx_try_cpp "$LINENO"; then :
61937
61938else
61939  # Broken: fails on valid input.
61940continue
61941fi
61942rm -f conftest.err conftest.i conftest.$ac_ext
61943
61944  # OK, works on sane cases.  Now check whether nonexistent headers
61945  # can be detected and how.
61946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61947/* end confdefs.h.  */
61948#include <ac_nonexistent.h>
61949_ACEOF
61950if ac_fn_cxx_try_cpp "$LINENO"; then :
61951  # Broken: success on invalid input.
61952continue
61953else
61954  # Passes both tests.
61955ac_preproc_ok=:
61956break
61957fi
61958rm -f conftest.err conftest.i conftest.$ac_ext
61959
61960done
61961# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
61962rm -f conftest.i conftest.err conftest.$ac_ext
61963if $ac_preproc_ok; then :
61964
61965else
61966  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
61967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
61968as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
61969See \`config.log' for more details" "$LINENO" 5; }
61970fi
61971
61972ac_ext=c
61973ac_cpp='$CPP $CPPFLAGS'
61974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61976ac_compiler_gnu=$ac_cv_c_compiler_gnu
61977
61978else
61979  _lt_caught_CXX_error=yes
61980fi
61981
61982ac_ext=cpp
61983ac_cpp='$CXXCPP $CPPFLAGS'
61984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
61987
61988archive_cmds_need_lc_CXX=no
61989allow_undefined_flag_CXX=
61990always_export_symbols_CXX=no
61991archive_expsym_cmds_CXX=
61992compiler_needs_object_CXX=no
61993export_dynamic_flag_spec_CXX=
61994hardcode_direct_CXX=no
61995hardcode_direct_absolute_CXX=no
61996hardcode_libdir_flag_spec_CXX=
61997hardcode_libdir_separator_CXX=
61998hardcode_minus_L_CXX=no
61999hardcode_shlibpath_var_CXX=unsupported
62000hardcode_automatic_CXX=no
62001inherit_rpath_CXX=no
62002module_cmds_CXX=
62003module_expsym_cmds_CXX=
62004link_all_deplibs_CXX=unknown
62005old_archive_cmds_CXX=$old_archive_cmds
62006reload_flag_CXX=$reload_flag
62007reload_cmds_CXX=$reload_cmds
62008no_undefined_flag_CXX=
62009whole_archive_flag_spec_CXX=
62010enable_shared_with_static_runtimes_CXX=no
62011
62012# Source file extension for C++ test sources.
62013ac_ext=cpp
62014
62015# Object file extension for compiled C++ test sources.
62016objext=o
62017objext_CXX=$objext
62018
62019# No sense in running all these tests if we already determined that
62020# the CXX compiler isn't working.  Some variables (like enable_shared)
62021# are currently assumed to apply to all compilers on this platform,
62022# and will be corrupted by setting them based on a non-working compiler.
62023if test yes != "$_lt_caught_CXX_error"; then
62024  # Code to be used in simple compile tests
62025  lt_simple_compile_test_code="int some_variable = 0;"
62026
62027  # Code to be used in simple link tests
62028  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
62029
62030  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
62031
62032
62033
62034
62035
62036
62037# If no C compiler was specified, use CC.
62038LTCC=${LTCC-"$CC"}
62039
62040# If no C compiler flags were specified, use CFLAGS.
62041LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
62042
62043# Allow CC to be a program name with arguments.
62044compiler=$CC
62045
62046
62047  # save warnings/boilerplate of simple test code
62048  ac_outfile=conftest.$ac_objext
62049echo "$lt_simple_compile_test_code" >conftest.$ac_ext
62050eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
62051_lt_compiler_boilerplate=`cat conftest.err`
62052$RM conftest*
62053
62054  ac_outfile=conftest.$ac_objext
62055echo "$lt_simple_link_test_code" >conftest.$ac_ext
62056eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
62057_lt_linker_boilerplate=`cat conftest.err`
62058$RM -r conftest*
62059
62060
62061  # Allow CC to be a program name with arguments.
62062  lt_save_CC=$CC
62063  lt_save_CFLAGS=$CFLAGS
62064  lt_save_LD=$LD
62065  lt_save_GCC=$GCC
62066  GCC=$GXX
62067  lt_save_with_gnu_ld=$with_gnu_ld
62068  lt_save_path_LD=$lt_cv_path_LD
62069  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
62070    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
62071  else
62072    $as_unset lt_cv_prog_gnu_ld
62073  fi
62074  if test -n "${lt_cv_path_LDCXX+set}"; then
62075    lt_cv_path_LD=$lt_cv_path_LDCXX
62076  else
62077    $as_unset lt_cv_path_LD
62078  fi
62079  test -z "${LDCXX+set}" || LD=$LDCXX
62080  CC=${CXX-"c++"}
62081  CFLAGS=$CXXFLAGS
62082  compiler=$CC
62083  compiler_CXX=$CC
62084  func_cc_basename $compiler
62085cc_basename=$func_cc_basename_result
62086
62087
62088  if test -n "$compiler"; then
62089    # We don't want -fno-exception when compiling C++ code, so set the
62090    # no_builtin_flag separately
62091    if test yes = "$GXX"; then
62092      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
62093    else
62094      lt_prog_compiler_no_builtin_flag_CXX=
62095    fi
62096
62097    if test yes = "$GXX"; then
62098      # Set up default GNU C++ configuration
62099
62100
62101
62102# Check whether --with-gnu-ld was given.
62103if test "${with_gnu_ld+set}" = set; then :
62104  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
62105else
62106  with_gnu_ld=no
62107fi
62108
62109ac_prog=ld
62110if test yes = "$GCC"; then
62111  # Check if gcc -print-prog-name=ld gives a path.
62112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
62113$as_echo_n "checking for ld used by $CC... " >&6; }
62114  case $host in
62115  *-*-mingw*)
62116    # gcc leaves a trailing carriage return, which upsets mingw
62117    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
62118  *)
62119    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
62120  esac
62121  case $ac_prog in
62122    # Accept absolute paths.
62123    [\\/]* | ?:[\\/]*)
62124      re_direlt='/[^/][^/]*/\.\./'
62125      # Canonicalize the pathname of ld
62126      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
62127      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
62128	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
62129      done
62130      test -z "$LD" && LD=$ac_prog
62131      ;;
62132  "")
62133    # If it fails, then pretend we aren't using GCC.
62134    ac_prog=ld
62135    ;;
62136  *)
62137    # If it is relative, then search for the first ld in PATH.
62138    with_gnu_ld=unknown
62139    ;;
62140  esac
62141elif test yes = "$with_gnu_ld"; then
62142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
62143$as_echo_n "checking for GNU ld... " >&6; }
62144else
62145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
62146$as_echo_n "checking for non-GNU ld... " >&6; }
62147fi
62148if ${lt_cv_path_LD+:} false; then :
62149  $as_echo_n "(cached) " >&6
62150else
62151  if test -z "$LD"; then
62152  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
62153  for ac_dir in $PATH; do
62154    IFS=$lt_save_ifs
62155    test -z "$ac_dir" && ac_dir=.
62156    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
62157      lt_cv_path_LD=$ac_dir/$ac_prog
62158      # Check to see if the program is GNU ld.  I'd rather use --version,
62159      # but apparently some variants of GNU ld only accept -v.
62160      # Break only if it was the GNU/non-GNU ld that we prefer.
62161      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
62162      *GNU* | *'with BFD'*)
62163	test no != "$with_gnu_ld" && break
62164	;;
62165      *)
62166	test yes != "$with_gnu_ld" && break
62167	;;
62168      esac
62169    fi
62170  done
62171  IFS=$lt_save_ifs
62172else
62173  lt_cv_path_LD=$LD # Let the user override the test with a path.
62174fi
62175fi
62176
62177LD=$lt_cv_path_LD
62178if test -n "$LD"; then
62179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
62180$as_echo "$LD" >&6; }
62181else
62182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62183$as_echo "no" >&6; }
62184fi
62185test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
62186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
62187$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
62188if ${lt_cv_prog_gnu_ld+:} false; then :
62189  $as_echo_n "(cached) " >&6
62190else
62191  # I'd rather use --version here, but apparently some GNU lds only accept -v.
62192case `$LD -v 2>&1 </dev/null` in
62193*GNU* | *'with BFD'*)
62194  lt_cv_prog_gnu_ld=yes
62195  ;;
62196*)
62197  lt_cv_prog_gnu_ld=no
62198  ;;
62199esac
62200fi
62201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
62202$as_echo "$lt_cv_prog_gnu_ld" >&6; }
62203with_gnu_ld=$lt_cv_prog_gnu_ld
62204
62205
62206
62207
62208
62209
62210
62211      # Check if GNU C++ uses GNU ld as the underlying linker, since the
62212      # archiving commands below assume that GNU ld is being used.
62213      if test yes = "$with_gnu_ld"; then
62214        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
62215        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
62216
62217        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
62218        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
62219
62220        # If archive_cmds runs LD, not CC, wlarc should be empty
62221        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
62222        #     investigate it a little bit more. (MM)
62223        wlarc='$wl'
62224
62225        # ancient GNU ld didn't support --whole-archive et. al.
62226        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
62227	  $GREP 'no-whole-archive' > /dev/null; then
62228          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
62229        else
62230          whole_archive_flag_spec_CXX=
62231        fi
62232      else
62233        with_gnu_ld=no
62234        wlarc=
62235
62236        # A generic and very simple default shared library creation
62237        # command for GNU C++ for the case where it uses the native
62238        # linker, instead of GNU ld.  If possible, this setting should
62239        # overridden to take advantage of the native linker features on
62240        # the platform it is being used on.
62241        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
62242      fi
62243
62244      # Commands to make compiler produce verbose output that lists
62245      # what "hidden" libraries, object files and flags are used when
62246      # linking a shared library.
62247      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62248
62249    else
62250      GXX=no
62251      with_gnu_ld=no
62252      wlarc=
62253    fi
62254
62255    # PORTME: fill in a description of your system's C++ link characteristics
62256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
62257$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
62258    ld_shlibs_CXX=yes
62259    case $host_os in
62260      aix3*)
62261        # FIXME: insert proper C++ library support
62262        ld_shlibs_CXX=no
62263        ;;
62264      aix[4-9]*)
62265        if test ia64 = "$host_cpu"; then
62266          # On IA64, the linker does run time linking by default, so we don't
62267          # have to do anything special.
62268          aix_use_runtimelinking=no
62269          exp_sym_flag='-Bexport'
62270          no_entry_flag=
62271        else
62272          aix_use_runtimelinking=no
62273
62274          # Test if we are trying to use run time linking or normal
62275          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
62276          # have runtime linking enabled, and use it for executables.
62277          # For shared libraries, we enable/disable runtime linking
62278          # depending on the kind of the shared library created -
62279          # when "with_aix_soname,aix_use_runtimelinking" is:
62280          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
62281          # "aix,yes"  lib.so          shared, rtl:yes, for executables
62282          #            lib.a           static archive
62283          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
62284          #            lib.a(lib.so.V) shared, rtl:no,  for executables
62285          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
62286          #            lib.a(lib.so.V) shared, rtl:no
62287          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
62288          #            lib.a           static archive
62289          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
62290	    for ld_flag in $LDFLAGS; do
62291	      case $ld_flag in
62292	      *-brtl*)
62293	        aix_use_runtimelinking=yes
62294	        break
62295	        ;;
62296	      esac
62297	    done
62298	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
62299	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
62300	      # so we don't have lib.a shared libs to link our executables.
62301	      # We have to force runtime linking in this case.
62302	      aix_use_runtimelinking=yes
62303	      LDFLAGS="$LDFLAGS -Wl,-brtl"
62304	    fi
62305	    ;;
62306          esac
62307
62308          exp_sym_flag='-bexport'
62309          no_entry_flag='-bnoentry'
62310        fi
62311
62312        # When large executables or shared objects are built, AIX ld can
62313        # have problems creating the table of contents.  If linking a library
62314        # or program results in "error TOC overflow" add -mminimal-toc to
62315        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
62316        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
62317
62318        archive_cmds_CXX=''
62319        hardcode_direct_CXX=yes
62320        hardcode_direct_absolute_CXX=yes
62321        hardcode_libdir_separator_CXX=':'
62322        link_all_deplibs_CXX=yes
62323        file_list_spec_CXX='$wl-f,'
62324        case $with_aix_soname,$aix_use_runtimelinking in
62325        aix,*) ;;	# no import file
62326        svr4,* | *,yes) # use import file
62327          # The Import File defines what to hardcode.
62328          hardcode_direct_CXX=no
62329          hardcode_direct_absolute_CXX=no
62330          ;;
62331        esac
62332
62333        if test yes = "$GXX"; then
62334          case $host_os in aix4.[012]|aix4.[012].*)
62335          # We only want to do this on AIX 4.2 and lower, the check
62336          # below for broken collect2 doesn't work under 4.3+
62337	  collect2name=`$CC -print-prog-name=collect2`
62338	  if test -f "$collect2name" &&
62339	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
62340	  then
62341	    # We have reworked collect2
62342	    :
62343	  else
62344	    # We have old collect2
62345	    hardcode_direct_CXX=unsupported
62346	    # It fails to find uninstalled libraries when the uninstalled
62347	    # path is not listed in the libpath.  Setting hardcode_minus_L
62348	    # to unsupported forces relinking
62349	    hardcode_minus_L_CXX=yes
62350	    hardcode_libdir_flag_spec_CXX='-L$libdir'
62351	    hardcode_libdir_separator_CXX=
62352	  fi
62353          esac
62354          shared_flag='-shared'
62355	  if test yes = "$aix_use_runtimelinking"; then
62356	    shared_flag=$shared_flag' $wl-G'
62357	  fi
62358	  # Need to ensure runtime linking is disabled for the traditional
62359	  # shared library, or the linker may eventually find shared libraries
62360	  # /with/ Import File - we do not want to mix them.
62361	  shared_flag_aix='-shared'
62362	  shared_flag_svr4='-shared $wl-G'
62363        else
62364          # not using gcc
62365          if test ia64 = "$host_cpu"; then
62366	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
62367	  # chokes on -Wl,-G. The following line is correct:
62368	  shared_flag='-G'
62369          else
62370	    if test yes = "$aix_use_runtimelinking"; then
62371	      shared_flag='$wl-G'
62372	    else
62373	      shared_flag='$wl-bM:SRE'
62374	    fi
62375	    shared_flag_aix='$wl-bM:SRE'
62376	    shared_flag_svr4='$wl-G'
62377          fi
62378        fi
62379
62380        export_dynamic_flag_spec_CXX='$wl-bexpall'
62381        # It seems that -bexpall does not export symbols beginning with
62382        # underscore (_), so it is better to generate a list of symbols to
62383	# export.
62384        always_export_symbols_CXX=yes
62385	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
62386          # Warning - without using the other runtime loading flags (-brtl),
62387          # -berok will link without error, but may produce a broken library.
62388          # The "-G" linker flag allows undefined symbols.
62389          no_undefined_flag_CXX='-bernotok'
62390          # Determine the default libpath from the value encoded in an empty
62391          # executable.
62392          if test set = "${lt_cv_aix_libpath+set}"; then
62393  aix_libpath=$lt_cv_aix_libpath
62394else
62395  if ${lt_cv_aix_libpath__CXX+:} false; then :
62396  $as_echo_n "(cached) " >&6
62397else
62398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62399/* end confdefs.h.  */
62400
62401int
62402main ()
62403{
62404
62405  ;
62406  return 0;
62407}
62408_ACEOF
62409if ac_fn_cxx_try_link "$LINENO"; then :
62410
62411  lt_aix_libpath_sed='
62412      /Import File Strings/,/^$/ {
62413	  /^0/ {
62414	      s/^0  *\([^ ]*\) *$/\1/
62415	      p
62416	  }
62417      }'
62418  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
62419  # Check for a 64-bit object if we didn't find anything.
62420  if test -z "$lt_cv_aix_libpath__CXX"; then
62421    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
62422  fi
62423fi
62424rm -f core conftest.err conftest.$ac_objext \
62425    conftest$ac_exeext conftest.$ac_ext
62426  if test -z "$lt_cv_aix_libpath__CXX"; then
62427    lt_cv_aix_libpath__CXX=/usr/lib:/lib
62428  fi
62429
62430fi
62431
62432  aix_libpath=$lt_cv_aix_libpath__CXX
62433fi
62434
62435          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
62436
62437          archive_expsym_cmds_CXX='$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
62438        else
62439          if test ia64 = "$host_cpu"; then
62440	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
62441	    allow_undefined_flag_CXX="-z nodefs"
62442	    archive_expsym_cmds_CXX="\$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"
62443          else
62444	    # Determine the default libpath from the value encoded in an
62445	    # empty executable.
62446	    if test set = "${lt_cv_aix_libpath+set}"; then
62447  aix_libpath=$lt_cv_aix_libpath
62448else
62449  if ${lt_cv_aix_libpath__CXX+:} false; then :
62450  $as_echo_n "(cached) " >&6
62451else
62452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62453/* end confdefs.h.  */
62454
62455int
62456main ()
62457{
62458
62459  ;
62460  return 0;
62461}
62462_ACEOF
62463if ac_fn_cxx_try_link "$LINENO"; then :
62464
62465  lt_aix_libpath_sed='
62466      /Import File Strings/,/^$/ {
62467	  /^0/ {
62468	      s/^0  *\([^ ]*\) *$/\1/
62469	      p
62470	  }
62471      }'
62472  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
62473  # Check for a 64-bit object if we didn't find anything.
62474  if test -z "$lt_cv_aix_libpath__CXX"; then
62475    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
62476  fi
62477fi
62478rm -f core conftest.err conftest.$ac_objext \
62479    conftest$ac_exeext conftest.$ac_ext
62480  if test -z "$lt_cv_aix_libpath__CXX"; then
62481    lt_cv_aix_libpath__CXX=/usr/lib:/lib
62482  fi
62483
62484fi
62485
62486  aix_libpath=$lt_cv_aix_libpath__CXX
62487fi
62488
62489	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
62490	    # Warning - without using the other run time loading flags,
62491	    # -berok will link without error, but may produce a broken library.
62492	    no_undefined_flag_CXX=' $wl-bernotok'
62493	    allow_undefined_flag_CXX=' $wl-berok'
62494	    if test yes = "$with_gnu_ld"; then
62495	      # We only use this code for GNU lds that support --whole-archive.
62496	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
62497	    else
62498	      # Exported symbols can be pulled into shared objects from archives
62499	      whole_archive_flag_spec_CXX='$convenience'
62500	    fi
62501	    archive_cmds_need_lc_CXX=yes
62502	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
62503	    # -brtl affects multiple linker settings, -berok does not and is overridden later
62504	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
62505	    if test svr4 != "$with_aix_soname"; then
62506	      # This is similar to how AIX traditionally builds its shared
62507	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
62508	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
62509	    fi
62510	    if test aix != "$with_aix_soname"; then
62511	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
62512	    else
62513	      # used by -dlpreopen to get the symbols
62514	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
62515	    fi
62516	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
62517          fi
62518        fi
62519        ;;
62520
62521      beos*)
62522	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
62523	  allow_undefined_flag_CXX=unsupported
62524	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
62525	  # support --undefined.  This deserves some investigation.  FIXME
62526	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62527	else
62528	  ld_shlibs_CXX=no
62529	fi
62530	;;
62531
62532      chorus*)
62533        case $cc_basename in
62534          *)
62535	  # FIXME: insert proper C++ library support
62536	  ld_shlibs_CXX=no
62537	  ;;
62538        esac
62539        ;;
62540
62541      cygwin* | mingw* | pw32* | cegcc*)
62542	case $GXX,$cc_basename in
62543	,cl* | no,cl*)
62544	  # Native MSVC
62545	  # hardcode_libdir_flag_spec is actually meaningless, as there is
62546	  # no search path for DLLs.
62547	  hardcode_libdir_flag_spec_CXX=' '
62548	  allow_undefined_flag_CXX=unsupported
62549	  always_export_symbols_CXX=yes
62550	  file_list_spec_CXX='@'
62551	  # Tell ltmain to make .lib files, not .a files.
62552	  libext=lib
62553	  # Tell ltmain to make .dll files, not .so files.
62554	  shrext_cmds=.dll
62555	  # FIXME: Setting linknames here is a bad hack.
62556	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
62557	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
62558              cp "$export_symbols" "$output_objdir/$soname.def";
62559              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
62560            else
62561              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
62562            fi~
62563            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
62564            linknames='
62565	  # The linker will not automatically build a static lib if we build a DLL.
62566	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
62567	  enable_shared_with_static_runtimes_CXX=yes
62568	  # Don't use ranlib
62569	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
62570	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
62571            lt_tool_outputfile="@TOOL_OUTPUT@"~
62572            case $lt_outputfile in
62573              *.exe|*.EXE) ;;
62574              *)
62575                lt_outputfile=$lt_outputfile.exe
62576                lt_tool_outputfile=$lt_tool_outputfile.exe
62577                ;;
62578            esac~
62579            func_to_tool_file "$lt_outputfile"~
62580            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
62581              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
62582              $RM "$lt_outputfile.manifest";
62583            fi'
62584	  ;;
62585	*)
62586	  # g++
62587	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
62588	  # as there is no search path for DLLs.
62589	  hardcode_libdir_flag_spec_CXX='-L$libdir'
62590	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
62591	  allow_undefined_flag_CXX=unsupported
62592	  always_export_symbols_CXX=no
62593	  enable_shared_with_static_runtimes_CXX=yes
62594
62595	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
62596	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
62597	    # If the export-symbols file already is a .def file, use it as
62598	    # is; otherwise, prepend EXPORTS...
62599	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
62600              cp $export_symbols $output_objdir/$soname.def;
62601            else
62602              echo EXPORTS > $output_objdir/$soname.def;
62603              cat $export_symbols >> $output_objdir/$soname.def;
62604            fi~
62605            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
62606	  else
62607	    ld_shlibs_CXX=no
62608	  fi
62609	  ;;
62610	esac
62611	;;
62612      darwin* | rhapsody*)
62613
62614
62615  archive_cmds_need_lc_CXX=no
62616  hardcode_direct_CXX=no
62617  hardcode_automatic_CXX=yes
62618  hardcode_shlibpath_var_CXX=unsupported
62619  if test yes = "$lt_cv_ld_force_load"; then
62620    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
62621
62622  else
62623    whole_archive_flag_spec_CXX=''
62624  fi
62625  link_all_deplibs_CXX=yes
62626  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
62627  case $cc_basename in
62628     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
62629     *) _lt_dar_can_shared=$GCC ;;
62630  esac
62631  if test yes = "$_lt_dar_can_shared"; then
62632    output_verbose_link_cmd=func_echo_all
62633    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
62634    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
62635    archive_expsym_cmds_CXX="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"
62636    module_expsym_cmds_CXX="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"
62637       if test yes != "$lt_cv_apple_cc_single_mod"; then
62638      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
62639      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
62640    fi
62641
62642  else
62643  ld_shlibs_CXX=no
62644  fi
62645
62646	;;
62647
62648      os2*)
62649	hardcode_libdir_flag_spec_CXX='-L$libdir'
62650	hardcode_minus_L_CXX=yes
62651	allow_undefined_flag_CXX=unsupported
62652	shrext_cmds=.dll
62653	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
62654	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
62655	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
62656	  $ECHO EXPORTS >> $output_objdir/$libname.def~
62657	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
62658	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
62659	  emximp -o $lib $output_objdir/$libname.def'
62660	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
62661	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
62662	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
62663	  $ECHO EXPORTS >> $output_objdir/$libname.def~
62664	  prefix_cmds="$SED"~
62665	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
62666	    prefix_cmds="$prefix_cmds -e 1d";
62667	  fi~
62668	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
62669	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
62670	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
62671	  emximp -o $lib $output_objdir/$libname.def'
62672	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
62673	enable_shared_with_static_runtimes_CXX=yes
62674	;;
62675
62676      dgux*)
62677        case $cc_basename in
62678          ec++*)
62679	    # FIXME: insert proper C++ library support
62680	    ld_shlibs_CXX=no
62681	    ;;
62682          ghcx*)
62683	    # Green Hills C++ Compiler
62684	    # FIXME: insert proper C++ library support
62685	    ld_shlibs_CXX=no
62686	    ;;
62687          *)
62688	    # FIXME: insert proper C++ library support
62689	    ld_shlibs_CXX=no
62690	    ;;
62691        esac
62692        ;;
62693
62694      freebsd2.*)
62695        # C++ shared libraries reported to be fairly broken before
62696	# switch to ELF
62697        ld_shlibs_CXX=no
62698        ;;
62699
62700      freebsd-elf*)
62701        archive_cmds_need_lc_CXX=no
62702        ;;
62703
62704      freebsd* | dragonfly*)
62705        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
62706        # conventions
62707        ld_shlibs_CXX=yes
62708        ;;
62709
62710      haiku*)
62711        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62712        link_all_deplibs_CXX=yes
62713        ;;
62714
62715      hpux9*)
62716        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
62717        hardcode_libdir_separator_CXX=:
62718        export_dynamic_flag_spec_CXX='$wl-E'
62719        hardcode_direct_CXX=yes
62720        hardcode_minus_L_CXX=yes # Not in the search PATH,
62721				             # but as the default
62722				             # location of the library.
62723
62724        case $cc_basename in
62725          CC*)
62726            # FIXME: insert proper C++ library support
62727            ld_shlibs_CXX=no
62728            ;;
62729          aCC*)
62730            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62731            # Commands to make compiler produce verbose output that lists
62732            # what "hidden" libraries, object files and flags are used when
62733            # linking a shared library.
62734            #
62735            # There doesn't appear to be a way to prevent this compiler from
62736            # explicitly linking system object files so we need to strip them
62737            # from the output so that they don't get included in the library
62738            # dependencies.
62739            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
62740            ;;
62741          *)
62742            if test yes = "$GXX"; then
62743              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62744            else
62745              # FIXME: insert proper C++ library support
62746              ld_shlibs_CXX=no
62747            fi
62748            ;;
62749        esac
62750        ;;
62751
62752      hpux10*|hpux11*)
62753        if test no = "$with_gnu_ld"; then
62754	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
62755	  hardcode_libdir_separator_CXX=:
62756
62757          case $host_cpu in
62758            hppa*64*|ia64*)
62759              ;;
62760            *)
62761	      export_dynamic_flag_spec_CXX='$wl-E'
62762              ;;
62763          esac
62764        fi
62765        case $host_cpu in
62766          hppa*64*|ia64*)
62767            hardcode_direct_CXX=no
62768            hardcode_shlibpath_var_CXX=no
62769            ;;
62770          *)
62771            hardcode_direct_CXX=yes
62772            hardcode_direct_absolute_CXX=yes
62773            hardcode_minus_L_CXX=yes # Not in the search PATH,
62774					         # but as the default
62775					         # location of the library.
62776            ;;
62777        esac
62778
62779        case $cc_basename in
62780          CC*)
62781	    # FIXME: insert proper C++ library support
62782	    ld_shlibs_CXX=no
62783	    ;;
62784          aCC*)
62785	    case $host_cpu in
62786	      hppa*64*)
62787	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
62788	        ;;
62789	      ia64*)
62790	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
62791	        ;;
62792	      *)
62793	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
62794	        ;;
62795	    esac
62796	    # Commands to make compiler produce verbose output that lists
62797	    # what "hidden" libraries, object files and flags are used when
62798	    # linking a shared library.
62799	    #
62800	    # There doesn't appear to be a way to prevent this compiler from
62801	    # explicitly linking system object files so we need to strip them
62802	    # from the output so that they don't get included in the library
62803	    # dependencies.
62804	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
62805	    ;;
62806          *)
62807	    if test yes = "$GXX"; then
62808	      if test no = "$with_gnu_ld"; then
62809	        case $host_cpu in
62810	          hppa*64*)
62811	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
62812	            ;;
62813	          ia64*)
62814	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
62815	            ;;
62816	          *)
62817	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
62818	            ;;
62819	        esac
62820	      fi
62821	    else
62822	      # FIXME: insert proper C++ library support
62823	      ld_shlibs_CXX=no
62824	    fi
62825	    ;;
62826        esac
62827        ;;
62828
62829      interix[3-9]*)
62830	hardcode_direct_CXX=no
62831	hardcode_shlibpath_var_CXX=no
62832	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
62833	export_dynamic_flag_spec_CXX='$wl-E'
62834	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
62835	# Instead, shared libraries are loaded at an image base (0x10000000 by
62836	# default) and relocated if they conflict, which is a slow very memory
62837	# consuming and fragmenting process.  To avoid this, we pick a random,
62838	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
62839	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
62840	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
62841	archive_expsym_cmds_CXX='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'
62842	;;
62843      irix5* | irix6*)
62844        case $cc_basename in
62845          CC*)
62846	    # SGI C++
62847	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
62848
62849	    # Archives containing C++ object files must be created using
62850	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
62851	    # necessary to make sure instantiated templates are included
62852	    # in the archive.
62853	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
62854	    ;;
62855          *)
62856	    if test yes = "$GXX"; then
62857	      if test no = "$with_gnu_ld"; then
62858	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
62859	      else
62860	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
62861	      fi
62862	    fi
62863	    link_all_deplibs_CXX=yes
62864	    ;;
62865        esac
62866        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
62867        hardcode_libdir_separator_CXX=:
62868        inherit_rpath_CXX=yes
62869        ;;
62870
62871      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
62872        case $cc_basename in
62873          KCC*)
62874	    # Kuck and Associates, Inc. (KAI) C++ Compiler
62875
62876	    # KCC will only create a shared library if the output file
62877	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
62878	    # to its proper name (with version) after linking.
62879	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
62880	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
62881	    # Commands to make compiler produce verbose output that lists
62882	    # what "hidden" libraries, object files and flags are used when
62883	    # linking a shared library.
62884	    #
62885	    # There doesn't appear to be a way to prevent this compiler from
62886	    # explicitly linking system object files so we need to strip them
62887	    # from the output so that they don't get included in the library
62888	    # dependencies.
62889	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
62890
62891	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
62892	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
62893
62894	    # Archives containing C++ object files must be created using
62895	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
62896	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
62897	    ;;
62898	  icpc* | ecpc* )
62899	    # Intel C++
62900	    with_gnu_ld=yes
62901	    # version 8.0 and above of icpc choke on multiply defined symbols
62902	    # if we add $predep_objects and $postdep_objects, however 7.1 and
62903	    # earlier do not add the objects themselves.
62904	    case `$CC -V 2>&1` in
62905	      *"Version 7."*)
62906	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
62907		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
62908		;;
62909	      *)  # Version 8.0 or newer
62910	        tmp_idyn=
62911	        case $host_cpu in
62912		  ia64*) tmp_idyn=' -i_dynamic';;
62913		esac
62914	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62915		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
62916		;;
62917	    esac
62918	    archive_cmds_need_lc_CXX=no
62919	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
62920	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
62921	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
62922	    ;;
62923          pgCC* | pgcpp*)
62924            # Portland Group C++ compiler
62925	    case `$CC -V` in
62926	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
62927	      prelink_cmds_CXX='tpldir=Template.dir~
62928               rm -rf $tpldir~
62929               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
62930               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
62931	      old_archive_cmds_CXX='tpldir=Template.dir~
62932                rm -rf $tpldir~
62933                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
62934                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
62935                $RANLIB $oldlib'
62936	      archive_cmds_CXX='tpldir=Template.dir~
62937                rm -rf $tpldir~
62938                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
62939                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
62940	      archive_expsym_cmds_CXX='tpldir=Template.dir~
62941                rm -rf $tpldir~
62942                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
62943                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
62944	      ;;
62945	    *) # Version 6 and above use weak symbols
62946	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
62947	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
62948	      ;;
62949	    esac
62950
62951	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
62952	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
62953	    whole_archive_flag_spec_CXX='$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'
62954            ;;
62955	  cxx*)
62956	    # Compaq C++
62957	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
62958	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
62959
62960	    runpath_var=LD_RUN_PATH
62961	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
62962	    hardcode_libdir_separator_CXX=:
62963
62964	    # Commands to make compiler produce verbose output that lists
62965	    # what "hidden" libraries, object files and flags are used when
62966	    # linking a shared library.
62967	    #
62968	    # There doesn't appear to be a way to prevent this compiler from
62969	    # explicitly linking system object files so we need to strip them
62970	    # from the output so that they don't get included in the library
62971	    # dependencies.
62972	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
62973	    ;;
62974	  xl* | mpixl* | bgxl*)
62975	    # IBM XL 8.0 on PPC, with GNU ld
62976	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
62977	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
62978	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62979	    if test yes = "$supports_anon_versioning"; then
62980	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
62981                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
62982                echo "local: *; };" >> $output_objdir/$libname.ver~
62983                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
62984	    fi
62985	    ;;
62986	  *)
62987	    case `$CC -V 2>&1 | sed 5q` in
62988	    *Sun\ C*)
62989	      # Sun C++ 5.9
62990	      no_undefined_flag_CXX=' -zdefs'
62991	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
62992	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
62993	      hardcode_libdir_flag_spec_CXX='-R$libdir'
62994	      whole_archive_flag_spec_CXX='$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'
62995	      compiler_needs_object_CXX=yes
62996
62997	      # Not sure whether something based on
62998	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
62999	      # would be better.
63000	      output_verbose_link_cmd='func_echo_all'
63001
63002	      # Archives containing C++ object files must be created using
63003	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
63004	      # necessary to make sure instantiated templates are included
63005	      # in the archive.
63006	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
63007	      ;;
63008	    esac
63009	    ;;
63010	esac
63011	;;
63012
63013      lynxos*)
63014        # FIXME: insert proper C++ library support
63015	ld_shlibs_CXX=no
63016	;;
63017
63018      m88k*)
63019        # FIXME: insert proper C++ library support
63020        ld_shlibs_CXX=no
63021	;;
63022
63023      mvs*)
63024        case $cc_basename in
63025          cxx*)
63026	    # FIXME: insert proper C++ library support
63027	    ld_shlibs_CXX=no
63028	    ;;
63029	  *)
63030	    # FIXME: insert proper C++ library support
63031	    ld_shlibs_CXX=no
63032	    ;;
63033	esac
63034	;;
63035
63036      netbsd*)
63037        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
63038	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
63039	  wlarc=
63040	  hardcode_libdir_flag_spec_CXX='-R$libdir'
63041	  hardcode_direct_CXX=yes
63042	  hardcode_shlibpath_var_CXX=no
63043	fi
63044	# Workaround some broken pre-1.5 toolchains
63045	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
63046	;;
63047
63048      *nto* | *qnx*)
63049        ld_shlibs_CXX=yes
63050	;;
63051
63052      openbsd* | bitrig*)
63053	if test -f /usr/libexec/ld.so; then
63054	  hardcode_direct_CXX=yes
63055	  hardcode_shlibpath_var_CXX=no
63056	  hardcode_direct_absolute_CXX=yes
63057	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
63058	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
63059	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
63060	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
63061	    export_dynamic_flag_spec_CXX='$wl-E'
63062	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
63063	  fi
63064	  output_verbose_link_cmd=func_echo_all
63065	else
63066	  ld_shlibs_CXX=no
63067	fi
63068	;;
63069
63070      osf3* | osf4* | osf5*)
63071        case $cc_basename in
63072          KCC*)
63073	    # Kuck and Associates, Inc. (KAI) C++ Compiler
63074
63075	    # KCC will only create a shared library if the output file
63076	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
63077	    # to its proper name (with version) after linking.
63078	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
63079
63080	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
63081	    hardcode_libdir_separator_CXX=:
63082
63083	    # Archives containing C++ object files must be created using
63084	    # the KAI C++ compiler.
63085	    case $host in
63086	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
63087	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
63088	    esac
63089	    ;;
63090          RCC*)
63091	    # Rational C++ 2.4.1
63092	    # FIXME: insert proper C++ library support
63093	    ld_shlibs_CXX=no
63094	    ;;
63095          cxx*)
63096	    case $host in
63097	      osf3*)
63098	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
63099	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
63100	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
63101		;;
63102	      *)
63103	        allow_undefined_flag_CXX=' -expect_unresolved \*'
63104	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
63105	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
63106                  echo "-hidden">> $lib.exp~
63107                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
63108                  $RM $lib.exp'
63109	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
63110		;;
63111	    esac
63112
63113	    hardcode_libdir_separator_CXX=:
63114
63115	    # Commands to make compiler produce verbose output that lists
63116	    # what "hidden" libraries, object files and flags are used when
63117	    # linking a shared library.
63118	    #
63119	    # There doesn't appear to be a way to prevent this compiler from
63120	    # explicitly linking system object files so we need to strip them
63121	    # from the output so that they don't get included in the library
63122	    # dependencies.
63123	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
63124	    ;;
63125	  *)
63126	    if test yes,no = "$GXX,$with_gnu_ld"; then
63127	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
63128	      case $host in
63129	        osf3*)
63130	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
63131		  ;;
63132	        *)
63133	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
63134		  ;;
63135	      esac
63136
63137	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
63138	      hardcode_libdir_separator_CXX=:
63139
63140	      # Commands to make compiler produce verbose output that lists
63141	      # what "hidden" libraries, object files and flags are used when
63142	      # linking a shared library.
63143	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
63144
63145	    else
63146	      # FIXME: insert proper C++ library support
63147	      ld_shlibs_CXX=no
63148	    fi
63149	    ;;
63150        esac
63151        ;;
63152
63153      psos*)
63154        # FIXME: insert proper C++ library support
63155        ld_shlibs_CXX=no
63156        ;;
63157
63158      sunos4*)
63159        case $cc_basename in
63160          CC*)
63161	    # Sun C++ 4.x
63162	    # FIXME: insert proper C++ library support
63163	    ld_shlibs_CXX=no
63164	    ;;
63165          lcc*)
63166	    # Lucid
63167	    # FIXME: insert proper C++ library support
63168	    ld_shlibs_CXX=no
63169	    ;;
63170          *)
63171	    # FIXME: insert proper C++ library support
63172	    ld_shlibs_CXX=no
63173	    ;;
63174        esac
63175        ;;
63176
63177      solaris*)
63178        case $cc_basename in
63179          CC* | sunCC*)
63180	    # Sun C++ 4.2, 5.x and Centerline C++
63181            archive_cmds_need_lc_CXX=yes
63182	    no_undefined_flag_CXX=' -zdefs'
63183	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63184	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
63185              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
63186
63187	    hardcode_libdir_flag_spec_CXX='-R$libdir'
63188	    hardcode_shlibpath_var_CXX=no
63189	    case $host_os in
63190	      solaris2.[0-5] | solaris2.[0-5].*) ;;
63191	      *)
63192		# The compiler driver will combine and reorder linker options,
63193		# but understands '-z linker_flag'.
63194	        # Supported since Solaris 2.6 (maybe 2.5.1?)
63195		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
63196	        ;;
63197	    esac
63198	    link_all_deplibs_CXX=yes
63199
63200	    output_verbose_link_cmd='func_echo_all'
63201
63202	    # Archives containing C++ object files must be created using
63203	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
63204	    # necessary to make sure instantiated templates are included
63205	    # in the archive.
63206	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
63207	    ;;
63208          gcx*)
63209	    # Green Hills C++ Compiler
63210	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
63211
63212	    # The C++ compiler must be used to create the archive.
63213	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
63214	    ;;
63215          *)
63216	    # GNU C++ compiler with Solaris linker
63217	    if test yes,no = "$GXX,$with_gnu_ld"; then
63218	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
63219	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
63220	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
63221	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
63222                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
63223
63224	        # Commands to make compiler produce verbose output that lists
63225	        # what "hidden" libraries, object files and flags are used when
63226	        # linking a shared library.
63227	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
63228	      else
63229	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
63230	        # platform.
63231	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
63232	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
63233                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
63234
63235	        # Commands to make compiler produce verbose output that lists
63236	        # what "hidden" libraries, object files and flags are used when
63237	        # linking a shared library.
63238	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
63239	      fi
63240
63241	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
63242	      case $host_os in
63243		solaris2.[0-5] | solaris2.[0-5].*) ;;
63244		*)
63245		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
63246		  ;;
63247	      esac
63248	    fi
63249	    ;;
63250        esac
63251        ;;
63252
63253    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
63254      no_undefined_flag_CXX='$wl-z,text'
63255      archive_cmds_need_lc_CXX=no
63256      hardcode_shlibpath_var_CXX=no
63257      runpath_var='LD_RUN_PATH'
63258
63259      case $cc_basename in
63260        CC*)
63261	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63262	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63263	  ;;
63264	*)
63265	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63266	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63267	  ;;
63268      esac
63269      ;;
63270
63271      sysv5* | sco3.2v5* | sco5v6*)
63272	# Note: We CANNOT use -z defs as we might desire, because we do not
63273	# link with -lc, and that would cause any symbols used from libc to
63274	# always be unresolved, which means just about no library would
63275	# ever link correctly.  If we're not using GNU ld we use -z text
63276	# though, which does catch some bad symbols but isn't as heavy-handed
63277	# as -z defs.
63278	no_undefined_flag_CXX='$wl-z,text'
63279	allow_undefined_flag_CXX='$wl-z,nodefs'
63280	archive_cmds_need_lc_CXX=no
63281	hardcode_shlibpath_var_CXX=no
63282	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
63283	hardcode_libdir_separator_CXX=':'
63284	link_all_deplibs_CXX=yes
63285	export_dynamic_flag_spec_CXX='$wl-Bexport'
63286	runpath_var='LD_RUN_PATH'
63287
63288	case $cc_basename in
63289          CC*)
63290	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63291	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63292	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
63293              '"$old_archive_cmds_CXX"
63294	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
63295              '"$reload_cmds_CXX"
63296	    ;;
63297	  *)
63298	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63299	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63300	    ;;
63301	esac
63302      ;;
63303
63304      tandem*)
63305        case $cc_basename in
63306          NCC*)
63307	    # NonStop-UX NCC 3.20
63308	    # FIXME: insert proper C++ library support
63309	    ld_shlibs_CXX=no
63310	    ;;
63311          *)
63312	    # FIXME: insert proper C++ library support
63313	    ld_shlibs_CXX=no
63314	    ;;
63315        esac
63316        ;;
63317
63318      vxworks*)
63319        # FIXME: insert proper C++ library support
63320        ld_shlibs_CXX=no
63321        ;;
63322
63323      *)
63324        # FIXME: insert proper C++ library support
63325        ld_shlibs_CXX=no
63326        ;;
63327    esac
63328
63329    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
63330$as_echo "$ld_shlibs_CXX" >&6; }
63331    test no = "$ld_shlibs_CXX" && can_build_shared=no
63332
63333    GCC_CXX=$GXX
63334    LD_CXX=$LD
63335
63336    ## CAVEAT EMPTOR:
63337    ## There is no encapsulation within the following macros, do not change
63338    ## the running order or otherwise move them around unless you know exactly
63339    ## what you are doing...
63340    # Dependencies to place before and after the object being linked:
63341predep_objects_CXX=
63342postdep_objects_CXX=
63343predeps_CXX=
63344postdeps_CXX=
63345compiler_lib_search_path_CXX=
63346
63347cat > conftest.$ac_ext <<_LT_EOF
63348class Foo
63349{
63350public:
63351  Foo (void) { a = 0; }
63352private:
63353  int a;
63354};
63355_LT_EOF
63356
63357
63358_lt_libdeps_save_CFLAGS=$CFLAGS
63359case "$CC $CFLAGS " in #(
63360*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
63361*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
63362*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
63363esac
63364
63365if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
63366  (eval $ac_compile) 2>&5
63367  ac_status=$?
63368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63369  test $ac_status = 0; }; then
63370  # Parse the compiler output and extract the necessary
63371  # objects, libraries and library flags.
63372
63373  # Sentinel used to keep track of whether or not we are before
63374  # the conftest object file.
63375  pre_test_object_deps_done=no
63376
63377  for p in `eval "$output_verbose_link_cmd"`; do
63378    case $prev$p in
63379
63380    -L* | -R* | -l*)
63381       # Some compilers place space between "-{L,R}" and the path.
63382       # Remove the space.
63383       if test x-L = "$p" ||
63384          test x-R = "$p"; then
63385	 prev=$p
63386	 continue
63387       fi
63388
63389       # Expand the sysroot to ease extracting the directories later.
63390       if test -z "$prev"; then
63391         case $p in
63392         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
63393         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
63394         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
63395         esac
63396       fi
63397       case $p in
63398       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
63399       esac
63400       if test no = "$pre_test_object_deps_done"; then
63401	 case $prev in
63402	 -L | -R)
63403	   # Internal compiler library paths should come after those
63404	   # provided the user.  The postdeps already come after the
63405	   # user supplied libs so there is no need to process them.
63406	   if test -z "$compiler_lib_search_path_CXX"; then
63407	     compiler_lib_search_path_CXX=$prev$p
63408	   else
63409	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
63410	   fi
63411	   ;;
63412	 # The "-l" case would never come before the object being
63413	 # linked, so don't bother handling this case.
63414	 esac
63415       else
63416	 if test -z "$postdeps_CXX"; then
63417	   postdeps_CXX=$prev$p
63418	 else
63419	   postdeps_CXX="${postdeps_CXX} $prev$p"
63420	 fi
63421       fi
63422       prev=
63423       ;;
63424
63425    *.lto.$objext) ;; # Ignore GCC LTO objects
63426    *.$objext)
63427       # This assumes that the test object file only shows up
63428       # once in the compiler output.
63429       if test "$p" = "conftest.$objext"; then
63430	 pre_test_object_deps_done=yes
63431	 continue
63432       fi
63433
63434       if test no = "$pre_test_object_deps_done"; then
63435	 if test -z "$predep_objects_CXX"; then
63436	   predep_objects_CXX=$p
63437	 else
63438	   predep_objects_CXX="$predep_objects_CXX $p"
63439	 fi
63440       else
63441	 if test -z "$postdep_objects_CXX"; then
63442	   postdep_objects_CXX=$p
63443	 else
63444	   postdep_objects_CXX="$postdep_objects_CXX $p"
63445	 fi
63446       fi
63447       ;;
63448
63449    *) ;; # Ignore the rest.
63450
63451    esac
63452  done
63453
63454  # Clean up.
63455  rm -f a.out a.exe
63456else
63457  echo "libtool.m4: error: problem compiling CXX test program"
63458fi
63459
63460$RM -f confest.$objext
63461CFLAGS=$_lt_libdeps_save_CFLAGS
63462
63463# PORTME: override above test on systems where it is broken
63464case $host_os in
63465interix[3-9]*)
63466  # Interix 3.5 installs completely hosed .la files for C++, so rather than
63467  # hack all around it, let's just trust "g++" to DTRT.
63468  predep_objects_CXX=
63469  postdep_objects_CXX=
63470  postdeps_CXX=
63471  ;;
63472esac
63473
63474
63475case " $postdeps_CXX " in
63476*" -lc "*) archive_cmds_need_lc_CXX=no ;;
63477esac
63478 compiler_lib_search_dirs_CXX=
63479if test -n "${compiler_lib_search_path_CXX}"; then
63480 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
63481fi
63482
63483
63484
63485
63486
63487
63488
63489
63490
63491
63492
63493
63494
63495
63496
63497
63498
63499
63500
63501
63502
63503
63504
63505
63506
63507
63508
63509
63510
63511
63512
63513    lt_prog_compiler_wl_CXX=
63514lt_prog_compiler_pic_CXX=
63515lt_prog_compiler_static_CXX=
63516
63517
63518  # C++ specific cases for pic, static, wl, etc.
63519  if test yes = "$GXX"; then
63520    lt_prog_compiler_wl_CXX='-Wl,'
63521    lt_prog_compiler_static_CXX='-static'
63522
63523    case $host_os in
63524    aix*)
63525      # All AIX code is PIC.
63526      if test ia64 = "$host_cpu"; then
63527	# AIX 5 now supports IA64 processor
63528	lt_prog_compiler_static_CXX='-Bstatic'
63529      fi
63530      lt_prog_compiler_pic_CXX='-fPIC'
63531      ;;
63532
63533    amigaos*)
63534      case $host_cpu in
63535      powerpc)
63536            # see comment about AmigaOS4 .so support
63537            lt_prog_compiler_pic_CXX='-fPIC'
63538        ;;
63539      m68k)
63540            # FIXME: we need at least 68020 code to build shared libraries, but
63541            # adding the '-m68020' flag to GCC prevents building anything better,
63542            # like '-m68040'.
63543            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
63544        ;;
63545      esac
63546      ;;
63547
63548    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
63549      # PIC is the default for these OSes.
63550      ;;
63551    mingw* | cygwin* | os2* | pw32* | cegcc*)
63552      # This hack is so that the source file can tell whether it is being
63553      # built for inclusion in a dll (and should export symbols for example).
63554      # Although the cygwin gcc ignores -fPIC, still need this for old-style
63555      # (--disable-auto-import) libraries
63556      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
63557      case $host_os in
63558      os2*)
63559	lt_prog_compiler_static_CXX='$wl-static'
63560	;;
63561      esac
63562      ;;
63563    darwin* | rhapsody*)
63564      # PIC is the default on this platform
63565      # Common symbols not allowed in MH_DYLIB files
63566      lt_prog_compiler_pic_CXX='-fno-common'
63567      ;;
63568    *djgpp*)
63569      # DJGPP does not support shared libraries at all
63570      lt_prog_compiler_pic_CXX=
63571      ;;
63572    haiku*)
63573      # PIC is the default for Haiku.
63574      # The "-static" flag exists, but is broken.
63575      lt_prog_compiler_static_CXX=
63576      ;;
63577    interix[3-9]*)
63578      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
63579      # Instead, we relocate shared libraries at runtime.
63580      ;;
63581    sysv4*MP*)
63582      if test -d /usr/nec; then
63583	lt_prog_compiler_pic_CXX=-Kconform_pic
63584      fi
63585      ;;
63586    hpux*)
63587      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
63588      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
63589      # sets the default TLS model and affects inlining.
63590      case $host_cpu in
63591      hppa*64*)
63592	;;
63593      *)
63594	lt_prog_compiler_pic_CXX='-fPIC'
63595	;;
63596      esac
63597      ;;
63598    *qnx* | *nto*)
63599      # QNX uses GNU C++, but need to define -shared option too, otherwise
63600      # it will coredump.
63601      lt_prog_compiler_pic_CXX='-fPIC -shared'
63602      ;;
63603    *)
63604      lt_prog_compiler_pic_CXX='-fPIC'
63605      ;;
63606    esac
63607  else
63608    case $host_os in
63609      aix[4-9]*)
63610	# All AIX code is PIC.
63611	if test ia64 = "$host_cpu"; then
63612	  # AIX 5 now supports IA64 processor
63613	  lt_prog_compiler_static_CXX='-Bstatic'
63614	else
63615	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
63616	fi
63617	;;
63618      chorus*)
63619	case $cc_basename in
63620	cxch68*)
63621	  # Green Hills C++ Compiler
63622	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
63623	  ;;
63624	esac
63625	;;
63626      mingw* | cygwin* | os2* | pw32* | cegcc*)
63627	# This hack is so that the source file can tell whether it is being
63628	# built for inclusion in a dll (and should export symbols for example).
63629	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
63630	;;
63631      dgux*)
63632	case $cc_basename in
63633	  ec++*)
63634	    lt_prog_compiler_pic_CXX='-KPIC'
63635	    ;;
63636	  ghcx*)
63637	    # Green Hills C++ Compiler
63638	    lt_prog_compiler_pic_CXX='-pic'
63639	    ;;
63640	  *)
63641	    ;;
63642	esac
63643	;;
63644      freebsd* | dragonfly*)
63645	# FreeBSD uses GNU C++
63646	;;
63647      hpux9* | hpux10* | hpux11*)
63648	case $cc_basename in
63649	  CC*)
63650	    lt_prog_compiler_wl_CXX='-Wl,'
63651	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
63652	    if test ia64 != "$host_cpu"; then
63653	      lt_prog_compiler_pic_CXX='+Z'
63654	    fi
63655	    ;;
63656	  aCC*)
63657	    lt_prog_compiler_wl_CXX='-Wl,'
63658	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
63659	    case $host_cpu in
63660	    hppa*64*|ia64*)
63661	      # +Z the default
63662	      ;;
63663	    *)
63664	      lt_prog_compiler_pic_CXX='+Z'
63665	      ;;
63666	    esac
63667	    ;;
63668	  *)
63669	    ;;
63670	esac
63671	;;
63672      interix*)
63673	# This is c89, which is MS Visual C++ (no shared libs)
63674	# Anyone wants to do a port?
63675	;;
63676      irix5* | irix6* | nonstopux*)
63677	case $cc_basename in
63678	  CC*)
63679	    lt_prog_compiler_wl_CXX='-Wl,'
63680	    lt_prog_compiler_static_CXX='-non_shared'
63681	    # CC pic flag -KPIC is the default.
63682	    ;;
63683	  *)
63684	    ;;
63685	esac
63686	;;
63687      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
63688	case $cc_basename in
63689	  KCC*)
63690	    # KAI C++ Compiler
63691	    lt_prog_compiler_wl_CXX='--backend -Wl,'
63692	    lt_prog_compiler_pic_CXX='-fPIC'
63693	    ;;
63694	  ecpc* )
63695	    # old Intel C++ for x86_64, which still supported -KPIC.
63696	    lt_prog_compiler_wl_CXX='-Wl,'
63697	    lt_prog_compiler_pic_CXX='-KPIC'
63698	    lt_prog_compiler_static_CXX='-static'
63699	    ;;
63700	  icpc* )
63701	    # Intel C++, used to be incompatible with GCC.
63702	    # ICC 10 doesn't accept -KPIC any more.
63703	    lt_prog_compiler_wl_CXX='-Wl,'
63704	    lt_prog_compiler_pic_CXX='-fPIC'
63705	    lt_prog_compiler_static_CXX='-static'
63706	    ;;
63707	  pgCC* | pgcpp*)
63708	    # Portland Group C++ compiler
63709	    lt_prog_compiler_wl_CXX='-Wl,'
63710	    lt_prog_compiler_pic_CXX='-fpic'
63711	    lt_prog_compiler_static_CXX='-Bstatic'
63712	    ;;
63713	  cxx*)
63714	    # Compaq C++
63715	    # Make sure the PIC flag is empty.  It appears that all Alpha
63716	    # Linux and Compaq Tru64 Unix objects are PIC.
63717	    lt_prog_compiler_pic_CXX=
63718	    lt_prog_compiler_static_CXX='-non_shared'
63719	    ;;
63720	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
63721	    # IBM XL 8.0, 9.0 on PPC and BlueGene
63722	    lt_prog_compiler_wl_CXX='-Wl,'
63723	    lt_prog_compiler_pic_CXX='-qpic'
63724	    lt_prog_compiler_static_CXX='-qstaticlink'
63725	    ;;
63726	  *)
63727	    case `$CC -V 2>&1 | sed 5q` in
63728	    *Sun\ C*)
63729	      # Sun C++ 5.9
63730	      lt_prog_compiler_pic_CXX='-KPIC'
63731	      lt_prog_compiler_static_CXX='-Bstatic'
63732	      lt_prog_compiler_wl_CXX='-Qoption ld '
63733	      ;;
63734	    esac
63735	    ;;
63736	esac
63737	;;
63738      lynxos*)
63739	;;
63740      m88k*)
63741	;;
63742      mvs*)
63743	case $cc_basename in
63744	  cxx*)
63745	    lt_prog_compiler_pic_CXX='-W c,exportall'
63746	    ;;
63747	  *)
63748	    ;;
63749	esac
63750	;;
63751      netbsd*)
63752	;;
63753      *qnx* | *nto*)
63754        # QNX uses GNU C++, but need to define -shared option too, otherwise
63755        # it will coredump.
63756        lt_prog_compiler_pic_CXX='-fPIC -shared'
63757        ;;
63758      osf3* | osf4* | osf5*)
63759	case $cc_basename in
63760	  KCC*)
63761	    lt_prog_compiler_wl_CXX='--backend -Wl,'
63762	    ;;
63763	  RCC*)
63764	    # Rational C++ 2.4.1
63765	    lt_prog_compiler_pic_CXX='-pic'
63766	    ;;
63767	  cxx*)
63768	    # Digital/Compaq C++
63769	    lt_prog_compiler_wl_CXX='-Wl,'
63770	    # Make sure the PIC flag is empty.  It appears that all Alpha
63771	    # Linux and Compaq Tru64 Unix objects are PIC.
63772	    lt_prog_compiler_pic_CXX=
63773	    lt_prog_compiler_static_CXX='-non_shared'
63774	    ;;
63775	  *)
63776	    ;;
63777	esac
63778	;;
63779      psos*)
63780	;;
63781      solaris*)
63782	case $cc_basename in
63783	  CC* | sunCC*)
63784	    # Sun C++ 4.2, 5.x and Centerline C++
63785	    lt_prog_compiler_pic_CXX='-KPIC'
63786	    lt_prog_compiler_static_CXX='-Bstatic'
63787	    lt_prog_compiler_wl_CXX='-Qoption ld '
63788	    ;;
63789	  gcx*)
63790	    # Green Hills C++ Compiler
63791	    lt_prog_compiler_pic_CXX='-PIC'
63792	    ;;
63793	  *)
63794	    ;;
63795	esac
63796	;;
63797      sunos4*)
63798	case $cc_basename in
63799	  CC*)
63800	    # Sun C++ 4.x
63801	    lt_prog_compiler_pic_CXX='-pic'
63802	    lt_prog_compiler_static_CXX='-Bstatic'
63803	    ;;
63804	  lcc*)
63805	    # Lucid
63806	    lt_prog_compiler_pic_CXX='-pic'
63807	    ;;
63808	  *)
63809	    ;;
63810	esac
63811	;;
63812      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
63813	case $cc_basename in
63814	  CC*)
63815	    lt_prog_compiler_wl_CXX='-Wl,'
63816	    lt_prog_compiler_pic_CXX='-KPIC'
63817	    lt_prog_compiler_static_CXX='-Bstatic'
63818	    ;;
63819	esac
63820	;;
63821      tandem*)
63822	case $cc_basename in
63823	  NCC*)
63824	    # NonStop-UX NCC 3.20
63825	    lt_prog_compiler_pic_CXX='-KPIC'
63826	    ;;
63827	  *)
63828	    ;;
63829	esac
63830	;;
63831      vxworks*)
63832	;;
63833      *)
63834	lt_prog_compiler_can_build_shared_CXX=no
63835	;;
63836    esac
63837  fi
63838
63839case $host_os in
63840  # For platforms that do not support PIC, -DPIC is meaningless:
63841  *djgpp*)
63842    lt_prog_compiler_pic_CXX=
63843    ;;
63844  *)
63845    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
63846    ;;
63847esac
63848
63849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
63850$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
63851if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
63852  $as_echo_n "(cached) " >&6
63853else
63854  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
63855fi
63856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
63857$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
63858lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
63859
63860#
63861# Check to make sure the PIC flag actually works.
63862#
63863if test -n "$lt_prog_compiler_pic_CXX"; then
63864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
63865$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
63866if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
63867  $as_echo_n "(cached) " >&6
63868else
63869  lt_cv_prog_compiler_pic_works_CXX=no
63870   ac_outfile=conftest.$ac_objext
63871   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
63872   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
63873   # Insert the option either (1) after the last *FLAGS variable, or
63874   # (2) before a word containing "conftest.", or (3) at the end.
63875   # Note that $ac_compile itself does not contain backslashes and begins
63876   # with a dollar sign (not a hyphen), so the echo should work correctly.
63877   # The option is referenced via a variable to avoid confusing sed.
63878   lt_compile=`echo "$ac_compile" | $SED \
63879   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
63880   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
63881   -e 's:$: $lt_compiler_flag:'`
63882   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
63883   (eval "$lt_compile" 2>conftest.err)
63884   ac_status=$?
63885   cat conftest.err >&5
63886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63887   if (exit $ac_status) && test -s "$ac_outfile"; then
63888     # The compiler can only warn and ignore the option if not recognized
63889     # So say no if there are warnings other than the usual output.
63890     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
63891     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
63892     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
63893       lt_cv_prog_compiler_pic_works_CXX=yes
63894     fi
63895   fi
63896   $RM conftest*
63897
63898fi
63899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
63900$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
63901
63902if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
63903    case $lt_prog_compiler_pic_CXX in
63904     "" | " "*) ;;
63905     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
63906     esac
63907else
63908    lt_prog_compiler_pic_CXX=
63909     lt_prog_compiler_can_build_shared_CXX=no
63910fi
63911
63912fi
63913
63914
63915
63916
63917
63918#
63919# Check to make sure the static flag actually works.
63920#
63921wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
63922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
63923$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
63924if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
63925  $as_echo_n "(cached) " >&6
63926else
63927  lt_cv_prog_compiler_static_works_CXX=no
63928   save_LDFLAGS=$LDFLAGS
63929   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
63930   echo "$lt_simple_link_test_code" > conftest.$ac_ext
63931   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
63932     # The linker can only warn and ignore the option if not recognized
63933     # So say no if there are warnings
63934     if test -s conftest.err; then
63935       # Append any errors to the config.log.
63936       cat conftest.err 1>&5
63937       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
63938       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
63939       if diff conftest.exp conftest.er2 >/dev/null; then
63940         lt_cv_prog_compiler_static_works_CXX=yes
63941       fi
63942     else
63943       lt_cv_prog_compiler_static_works_CXX=yes
63944     fi
63945   fi
63946   $RM -r conftest*
63947   LDFLAGS=$save_LDFLAGS
63948
63949fi
63950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
63951$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
63952
63953if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
63954    :
63955else
63956    lt_prog_compiler_static_CXX=
63957fi
63958
63959
63960
63961
63962    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
63963$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
63964if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
63965  $as_echo_n "(cached) " >&6
63966else
63967  lt_cv_prog_compiler_c_o_CXX=no
63968   $RM -r conftest 2>/dev/null
63969   mkdir conftest
63970   cd conftest
63971   mkdir out
63972   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
63973
63974   lt_compiler_flag="-o out/conftest2.$ac_objext"
63975   # Insert the option either (1) after the last *FLAGS variable, or
63976   # (2) before a word containing "conftest.", or (3) at the end.
63977   # Note that $ac_compile itself does not contain backslashes and begins
63978   # with a dollar sign (not a hyphen), so the echo should work correctly.
63979   lt_compile=`echo "$ac_compile" | $SED \
63980   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
63981   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
63982   -e 's:$: $lt_compiler_flag:'`
63983   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
63984   (eval "$lt_compile" 2>out/conftest.err)
63985   ac_status=$?
63986   cat out/conftest.err >&5
63987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63988   if (exit $ac_status) && test -s out/conftest2.$ac_objext
63989   then
63990     # The compiler can only warn and ignore the option if not recognized
63991     # So say no if there are warnings
63992     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
63993     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
63994     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
63995       lt_cv_prog_compiler_c_o_CXX=yes
63996     fi
63997   fi
63998   chmod u+w . 2>&5
63999   $RM conftest*
64000   # SGI C++ compiler will create directory out/ii_files/ for
64001   # template instantiation
64002   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
64003   $RM out/* && rmdir out
64004   cd ..
64005   $RM -r conftest
64006   $RM conftest*
64007
64008fi
64009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
64010$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
64011
64012
64013
64014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
64015$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
64016if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
64017  $as_echo_n "(cached) " >&6
64018else
64019  lt_cv_prog_compiler_c_o_CXX=no
64020   $RM -r conftest 2>/dev/null
64021   mkdir conftest
64022   cd conftest
64023   mkdir out
64024   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
64025
64026   lt_compiler_flag="-o out/conftest2.$ac_objext"
64027   # Insert the option either (1) after the last *FLAGS variable, or
64028   # (2) before a word containing "conftest.", or (3) at the end.
64029   # Note that $ac_compile itself does not contain backslashes and begins
64030   # with a dollar sign (not a hyphen), so the echo should work correctly.
64031   lt_compile=`echo "$ac_compile" | $SED \
64032   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
64033   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
64034   -e 's:$: $lt_compiler_flag:'`
64035   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
64036   (eval "$lt_compile" 2>out/conftest.err)
64037   ac_status=$?
64038   cat out/conftest.err >&5
64039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64040   if (exit $ac_status) && test -s out/conftest2.$ac_objext
64041   then
64042     # The compiler can only warn and ignore the option if not recognized
64043     # So say no if there are warnings
64044     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
64045     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
64046     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
64047       lt_cv_prog_compiler_c_o_CXX=yes
64048     fi
64049   fi
64050   chmod u+w . 2>&5
64051   $RM conftest*
64052   # SGI C++ compiler will create directory out/ii_files/ for
64053   # template instantiation
64054   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
64055   $RM out/* && rmdir out
64056   cd ..
64057   $RM -r conftest
64058   $RM conftest*
64059
64060fi
64061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
64062$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
64063
64064
64065
64066
64067hard_links=nottested
64068if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
64069  # do not overwrite the value of need_locks provided by the user
64070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
64071$as_echo_n "checking if we can lock with hard links... " >&6; }
64072  hard_links=yes
64073  $RM conftest*
64074  ln conftest.a conftest.b 2>/dev/null && hard_links=no
64075  touch conftest.a
64076  ln conftest.a conftest.b 2>&5 || hard_links=no
64077  ln conftest.a conftest.b 2>/dev/null && hard_links=no
64078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
64079$as_echo "$hard_links" >&6; }
64080  if test no = "$hard_links"; then
64081    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
64082$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
64083    need_locks=warn
64084  fi
64085else
64086  need_locks=no
64087fi
64088
64089
64090
64091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
64092$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
64093
64094  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
64095  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
64096  case $host_os in
64097  aix[4-9]*)
64098    # If we're using GNU nm, then we don't want the "-C" option.
64099    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
64100    # Without the "-l" option, or with the "-B" option, AIX nm treats
64101    # weak defined symbols like other global defined symbols, whereas
64102    # GNU nm marks them as "W".
64103    # While the 'weak' keyword is ignored in the Export File, we need
64104    # it in the Import File for the 'aix-soname' feature, so we have
64105    # to replace the "-B" option with "-P" for AIX nm.
64106    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
64107      export_symbols_cmds_CXX='$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'
64108    else
64109      export_symbols_cmds_CXX='`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'
64110    fi
64111    ;;
64112  pw32*)
64113    export_symbols_cmds_CXX=$ltdll_cmds
64114    ;;
64115  cygwin* | mingw* | cegcc*)
64116    case $cc_basename in
64117    cl*)
64118      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
64119      ;;
64120    *)
64121      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
64122      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
64123      ;;
64124    esac
64125    ;;
64126  *)
64127    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
64128    ;;
64129  esac
64130
64131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
64132$as_echo "$ld_shlibs_CXX" >&6; }
64133test no = "$ld_shlibs_CXX" && can_build_shared=no
64134
64135with_gnu_ld_CXX=$with_gnu_ld
64136
64137
64138
64139
64140
64141
64142#
64143# Do we need to explicitly link libc?
64144#
64145case "x$archive_cmds_need_lc_CXX" in
64146x|xyes)
64147  # Assume -lc should be added
64148  archive_cmds_need_lc_CXX=yes
64149
64150  if test yes,yes = "$GCC,$enable_shared"; then
64151    case $archive_cmds_CXX in
64152    *'~'*)
64153      # FIXME: we may have to deal with multi-command sequences.
64154      ;;
64155    '$CC '*)
64156      # Test whether the compiler implicitly links with -lc since on some
64157      # systems, -lgcc has to come before -lc. If gcc already passes -lc
64158      # to ld, don't add -lc before -lgcc.
64159      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
64160$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
64161if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
64162  $as_echo_n "(cached) " >&6
64163else
64164  $RM conftest*
64165	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
64166
64167	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
64168  (eval $ac_compile) 2>&5
64169  ac_status=$?
64170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64171  test $ac_status = 0; } 2>conftest.err; then
64172	  soname=conftest
64173	  lib=conftest
64174	  libobjs=conftest.$ac_objext
64175	  deplibs=
64176	  wl=$lt_prog_compiler_wl_CXX
64177	  pic_flag=$lt_prog_compiler_pic_CXX
64178	  compiler_flags=-v
64179	  linker_flags=-v
64180	  verstring=
64181	  output_objdir=.
64182	  libname=conftest
64183	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
64184	  allow_undefined_flag_CXX=
64185	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
64186  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
64187  ac_status=$?
64188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64189  test $ac_status = 0; }
64190	  then
64191	    lt_cv_archive_cmds_need_lc_CXX=no
64192	  else
64193	    lt_cv_archive_cmds_need_lc_CXX=yes
64194	  fi
64195	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
64196	else
64197	  cat conftest.err 1>&5
64198	fi
64199	$RM conftest*
64200
64201fi
64202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
64203$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
64204      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
64205      ;;
64206    esac
64207  fi
64208  ;;
64209esac
64210
64211
64212
64213
64214
64215
64216
64217
64218
64219
64220
64221
64222
64223
64224
64225
64226
64227
64228
64229
64230
64231
64232
64233
64234
64235
64236
64237
64238
64239
64240
64241
64242
64243
64244
64245
64246
64247
64248
64249
64250
64251
64252
64253
64254
64255
64256
64257
64258
64259
64260
64261
64262
64263
64264
64265
64266
64267
64268
64269
64270
64271
64272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
64273$as_echo_n "checking dynamic linker characteristics... " >&6; }
64274
64275library_names_spec=
64276libname_spec='lib$name'
64277soname_spec=
64278shrext_cmds=.so
64279postinstall_cmds=
64280postuninstall_cmds=
64281finish_cmds=
64282finish_eval=
64283shlibpath_var=
64284shlibpath_overrides_runpath=unknown
64285version_type=none
64286dynamic_linker="$host_os ld.so"
64287sys_lib_dlsearch_path_spec="/lib /usr/lib"
64288need_lib_prefix=unknown
64289hardcode_into_libs=no
64290
64291# when you set need_version to no, make sure it does not cause -set_version
64292# flags to be left without arguments
64293need_version=unknown
64294
64295
64296
64297case $host_os in
64298aix3*)
64299  version_type=linux # correct to gnu/linux during the next big refactor
64300  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
64301  shlibpath_var=LIBPATH
64302
64303  # AIX 3 has no versioning support, so we append a major version to the name.
64304  soname_spec='$libname$release$shared_ext$major'
64305  ;;
64306
64307aix[4-9]*)
64308  version_type=linux # correct to gnu/linux during the next big refactor
64309  need_lib_prefix=no
64310  need_version=no
64311  hardcode_into_libs=yes
64312  if test ia64 = "$host_cpu"; then
64313    # AIX 5 supports IA64
64314    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
64315    shlibpath_var=LD_LIBRARY_PATH
64316  else
64317    # With GCC up to 2.95.x, collect2 would create an import file
64318    # for dependence libraries.  The import file would start with
64319    # the line '#! .'.  This would cause the generated library to
64320    # depend on '.', always an invalid library.  This was fixed in
64321    # development snapshots of GCC prior to 3.0.
64322    case $host_os in
64323      aix4 | aix4.[01] | aix4.[01].*)
64324      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
64325	   echo ' yes '
64326	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
64327	:
64328      else
64329	can_build_shared=no
64330      fi
64331      ;;
64332    esac
64333    # Using Import Files as archive members, it is possible to support
64334    # filename-based versioning of shared library archives on AIX. While
64335    # this would work for both with and without runtime linking, it will
64336    # prevent static linking of such archives. So we do filename-based
64337    # shared library versioning with .so extension only, which is used
64338    # when both runtime linking and shared linking is enabled.
64339    # Unfortunately, runtime linking may impact performance, so we do
64340    # not want this to be the default eventually. Also, we use the
64341    # versioned .so libs for executables only if there is the -brtl
64342    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
64343    # To allow for filename-based versioning support, we need to create
64344    # libNAME.so.V as an archive file, containing:
64345    # *) an Import File, referring to the versioned filename of the
64346    #    archive as well as the shared archive member, telling the
64347    #    bitwidth (32 or 64) of that shared object, and providing the
64348    #    list of exported symbols of that shared object, eventually
64349    #    decorated with the 'weak' keyword
64350    # *) the shared object with the F_LOADONLY flag set, to really avoid
64351    #    it being seen by the linker.
64352    # At run time we better use the real file rather than another symlink,
64353    # but for link time we create the symlink libNAME.so -> libNAME.so.V
64354
64355    case $with_aix_soname,$aix_use_runtimelinking in
64356    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
64357    # soname into executable. Probably we can add versioning support to
64358    # collect2, so additional links can be useful in future.
64359    aix,yes) # traditional libtool
64360      dynamic_linker='AIX unversionable lib.so'
64361      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
64362      # instead of lib<name>.a to let people know that these are not
64363      # typical AIX shared libraries.
64364      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64365      ;;
64366    aix,no) # traditional AIX only
64367      dynamic_linker='AIX lib.a(lib.so.V)'
64368      # We preserve .a as extension for shared libraries through AIX4.2
64369      # and later when we are not doing run time linking.
64370      library_names_spec='$libname$release.a $libname.a'
64371      soname_spec='$libname$release$shared_ext$major'
64372      ;;
64373    svr4,*) # full svr4 only
64374      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
64375      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
64376      # We do not specify a path in Import Files, so LIBPATH fires.
64377      shlibpath_overrides_runpath=yes
64378      ;;
64379    *,yes) # both, prefer svr4
64380      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
64381      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
64382      # unpreferred sharedlib libNAME.a needs extra handling
64383      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"'
64384      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"'
64385      # We do not specify a path in Import Files, so LIBPATH fires.
64386      shlibpath_overrides_runpath=yes
64387      ;;
64388    *,no) # both, prefer aix
64389      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
64390      library_names_spec='$libname$release.a $libname.a'
64391      soname_spec='$libname$release$shared_ext$major'
64392      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
64393      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)'
64394      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"'
64395      ;;
64396    esac
64397    shlibpath_var=LIBPATH
64398  fi
64399  ;;
64400
64401amigaos*)
64402  case $host_cpu in
64403  powerpc)
64404    # Since July 2007 AmigaOS4 officially supports .so libraries.
64405    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
64406    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64407    ;;
64408  m68k)
64409    library_names_spec='$libname.ixlibrary $libname.a'
64410    # Create ${libname}_ixlibrary.a entries in /sys/libs.
64411    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'
64412    ;;
64413  esac
64414  ;;
64415
64416beos*)
64417  library_names_spec='$libname$shared_ext'
64418  dynamic_linker="$host_os ld.so"
64419  shlibpath_var=LIBRARY_PATH
64420  ;;
64421
64422bsdi[45]*)
64423  version_type=linux # correct to gnu/linux during the next big refactor
64424  need_version=no
64425  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64426  soname_spec='$libname$release$shared_ext$major'
64427  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
64428  shlibpath_var=LD_LIBRARY_PATH
64429  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
64430  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
64431  # the default ld.so.conf also contains /usr/contrib/lib and
64432  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
64433  # libtool to hard-code these into programs
64434  ;;
64435
64436cygwin* | mingw* | pw32* | cegcc*)
64437  version_type=windows
64438  shrext_cmds=.dll
64439  need_version=no
64440  need_lib_prefix=no
64441
64442  case $GCC,$cc_basename in
64443  yes,*)
64444    # gcc
64445    library_names_spec='$libname.dll.a'
64446    # DLL is installed to $(libdir)/../bin by postinstall_cmds
64447    postinstall_cmds='base_file=`basename \$file`~
64448      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
64449      dldir=$destdir/`dirname \$dlpath`~
64450      test -d \$dldir || mkdir -p \$dldir~
64451      $install_prog $dir/$dlname \$dldir/$dlname~
64452      chmod a+x \$dldir/$dlname~
64453      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
64454        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
64455      fi'
64456    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
64457      dlpath=$dir/\$dldll~
64458       $RM \$dlpath'
64459    shlibpath_overrides_runpath=yes
64460
64461    case $host_os in
64462    cygwin*)
64463      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
64464      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
64465
64466      ;;
64467    mingw* | cegcc*)
64468      # MinGW DLLs use traditional 'lib' prefix
64469      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
64470      ;;
64471    pw32*)
64472      # pw32 DLLs use 'pw' prefix rather than 'lib'
64473      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
64474      ;;
64475    esac
64476    dynamic_linker='Win32 ld.exe'
64477    ;;
64478
64479  *,cl*)
64480    # Native MSVC
64481    libname_spec='$name'
64482    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
64483    library_names_spec='$libname.dll.lib'
64484
64485    case $build_os in
64486    mingw*)
64487      sys_lib_search_path_spec=
64488      lt_save_ifs=$IFS
64489      IFS=';'
64490      for lt_path in $LIB
64491      do
64492        IFS=$lt_save_ifs
64493        # Let DOS variable expansion print the short 8.3 style file name.
64494        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
64495        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
64496      done
64497      IFS=$lt_save_ifs
64498      # Convert to MSYS style.
64499      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
64500      ;;
64501    cygwin*)
64502      # Convert to unix form, then to dos form, then back to unix form
64503      # but this time dos style (no spaces!) so that the unix form looks
64504      # like /cygdrive/c/PROGRA~1:/cygdr...
64505      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
64506      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
64507      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
64508      ;;
64509    *)
64510      sys_lib_search_path_spec=$LIB
64511      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
64512        # It is most probably a Windows format PATH.
64513        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
64514      else
64515        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
64516      fi
64517      # FIXME: find the short name or the path components, as spaces are
64518      # common. (e.g. "Program Files" -> "PROGRA~1")
64519      ;;
64520    esac
64521
64522    # DLL is installed to $(libdir)/../bin by postinstall_cmds
64523    postinstall_cmds='base_file=`basename \$file`~
64524      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
64525      dldir=$destdir/`dirname \$dlpath`~
64526      test -d \$dldir || mkdir -p \$dldir~
64527      $install_prog $dir/$dlname \$dldir/$dlname'
64528    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
64529      dlpath=$dir/\$dldll~
64530       $RM \$dlpath'
64531    shlibpath_overrides_runpath=yes
64532    dynamic_linker='Win32 link.exe'
64533    ;;
64534
64535  *)
64536    # Assume MSVC wrapper
64537    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
64538    dynamic_linker='Win32 ld.exe'
64539    ;;
64540  esac
64541  # FIXME: first we should search . and the directory the executable is in
64542  shlibpath_var=PATH
64543  ;;
64544
64545darwin* | rhapsody*)
64546  dynamic_linker="$host_os dyld"
64547  version_type=darwin
64548  need_lib_prefix=no
64549  need_version=no
64550  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
64551  soname_spec='$libname$release$major$shared_ext'
64552  shlibpath_overrides_runpath=yes
64553  shlibpath_var=DYLD_LIBRARY_PATH
64554  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
64555
64556  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
64557  ;;
64558
64559dgux*)
64560  version_type=linux # correct to gnu/linux during the next big refactor
64561  need_lib_prefix=no
64562  need_version=no
64563  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64564  soname_spec='$libname$release$shared_ext$major'
64565  shlibpath_var=LD_LIBRARY_PATH
64566  ;;
64567
64568freebsd* | dragonfly*)
64569  # DragonFly does not have aout.  When/if they implement a new
64570  # versioning mechanism, adjust this.
64571  if test -x /usr/bin/objformat; then
64572    objformat=`/usr/bin/objformat`
64573  else
64574    case $host_os in
64575    freebsd[23].*) objformat=aout ;;
64576    *) objformat=elf ;;
64577    esac
64578  fi
64579  version_type=freebsd-$objformat
64580  case $version_type in
64581    freebsd-elf*)
64582      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64583      soname_spec='$libname$release$shared_ext$major'
64584      need_version=no
64585      need_lib_prefix=no
64586      ;;
64587    freebsd-*)
64588      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
64589      need_version=yes
64590      ;;
64591  esac
64592  shlibpath_var=LD_LIBRARY_PATH
64593  case $host_os in
64594  freebsd2.*)
64595    shlibpath_overrides_runpath=yes
64596    ;;
64597  freebsd3.[01]* | freebsdelf3.[01]*)
64598    shlibpath_overrides_runpath=yes
64599    hardcode_into_libs=yes
64600    ;;
64601  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
64602  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
64603    shlibpath_overrides_runpath=no
64604    hardcode_into_libs=yes
64605    ;;
64606  *) # from 4.6 on, and DragonFly
64607    shlibpath_overrides_runpath=yes
64608    hardcode_into_libs=yes
64609    ;;
64610  esac
64611  ;;
64612
64613haiku*)
64614  version_type=linux # correct to gnu/linux during the next big refactor
64615  need_lib_prefix=no
64616  need_version=no
64617  dynamic_linker="$host_os runtime_loader"
64618  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64619  soname_spec='$libname$release$shared_ext$major'
64620  shlibpath_var=LIBRARY_PATH
64621  shlibpath_overrides_runpath=no
64622  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
64623  hardcode_into_libs=yes
64624  ;;
64625
64626hpux9* | hpux10* | hpux11*)
64627  # Give a soname corresponding to the major version so that dld.sl refuses to
64628  # link against other versions.
64629  version_type=sunos
64630  need_lib_prefix=no
64631  need_version=no
64632  case $host_cpu in
64633  ia64*)
64634    shrext_cmds='.so'
64635    hardcode_into_libs=yes
64636    dynamic_linker="$host_os dld.so"
64637    shlibpath_var=LD_LIBRARY_PATH
64638    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
64639    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64640    soname_spec='$libname$release$shared_ext$major'
64641    if test 32 = "$HPUX_IA64_MODE"; then
64642      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
64643      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
64644    else
64645      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
64646      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
64647    fi
64648    ;;
64649  hppa*64*)
64650    shrext_cmds='.sl'
64651    hardcode_into_libs=yes
64652    dynamic_linker="$host_os dld.sl"
64653    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
64654    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
64655    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64656    soname_spec='$libname$release$shared_ext$major'
64657    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
64658    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
64659    ;;
64660  *)
64661    shrext_cmds='.sl'
64662    dynamic_linker="$host_os dld.sl"
64663    shlibpath_var=SHLIB_PATH
64664    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
64665    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64666    soname_spec='$libname$release$shared_ext$major'
64667    ;;
64668  esac
64669  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
64670  postinstall_cmds='chmod 555 $lib'
64671  # or fails outright, so override atomically:
64672  install_override_mode=555
64673  ;;
64674
64675interix[3-9]*)
64676  version_type=linux # correct to gnu/linux during the next big refactor
64677  need_lib_prefix=no
64678  need_version=no
64679  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64680  soname_spec='$libname$release$shared_ext$major'
64681  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
64682  shlibpath_var=LD_LIBRARY_PATH
64683  shlibpath_overrides_runpath=no
64684  hardcode_into_libs=yes
64685  ;;
64686
64687irix5* | irix6* | nonstopux*)
64688  case $host_os in
64689    nonstopux*) version_type=nonstopux ;;
64690    *)
64691	if test yes = "$lt_cv_prog_gnu_ld"; then
64692		version_type=linux # correct to gnu/linux during the next big refactor
64693	else
64694		version_type=irix
64695	fi ;;
64696  esac
64697  need_lib_prefix=no
64698  need_version=no
64699  soname_spec='$libname$release$shared_ext$major'
64700  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
64701  case $host_os in
64702  irix5* | nonstopux*)
64703    libsuff= shlibsuff=
64704    ;;
64705  *)
64706    case $LD in # libtool.m4 will add one of these switches to LD
64707    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
64708      libsuff= shlibsuff= libmagic=32-bit;;
64709    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
64710      libsuff=32 shlibsuff=N32 libmagic=N32;;
64711    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
64712      libsuff=64 shlibsuff=64 libmagic=64-bit;;
64713    *) libsuff= shlibsuff= libmagic=never-match;;
64714    esac
64715    ;;
64716  esac
64717  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
64718  shlibpath_overrides_runpath=no
64719  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
64720  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
64721  hardcode_into_libs=yes
64722  ;;
64723
64724# No shared lib support for Linux oldld, aout, or coff.
64725linux*oldld* | linux*aout* | linux*coff*)
64726  dynamic_linker=no
64727  ;;
64728
64729linux*android*)
64730  version_type=none # Android doesn't support versioned libraries.
64731  need_lib_prefix=no
64732  need_version=no
64733  library_names_spec='$libname$release$shared_ext'
64734  soname_spec='$libname$release$shared_ext'
64735  finish_cmds=
64736  shlibpath_var=LD_LIBRARY_PATH
64737  shlibpath_overrides_runpath=yes
64738
64739  # This implies no fast_install, which is unacceptable.
64740  # Some rework will be needed to allow for fast_install
64741  # before this can be enabled.
64742  hardcode_into_libs=yes
64743
64744  dynamic_linker='Android linker'
64745  # Don't embed -rpath directories since the linker doesn't support them.
64746  hardcode_libdir_flag_spec_CXX='-L$libdir'
64747  ;;
64748
64749# This must be glibc/ELF.
64750linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
64751  version_type=linux # correct to gnu/linux during the next big refactor
64752  need_lib_prefix=no
64753  need_version=no
64754  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64755  soname_spec='$libname$release$shared_ext$major'
64756  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
64757  shlibpath_var=LD_LIBRARY_PATH
64758  shlibpath_overrides_runpath=no
64759
64760  # Some binutils ld are patched to set DT_RUNPATH
64761  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
64762  $as_echo_n "(cached) " >&6
64763else
64764  lt_cv_shlibpath_overrides_runpath=no
64765    save_LDFLAGS=$LDFLAGS
64766    save_libdir=$libdir
64767    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
64768	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
64769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64770/* end confdefs.h.  */
64771
64772int
64773main ()
64774{
64775
64776  ;
64777  return 0;
64778}
64779_ACEOF
64780if ac_fn_cxx_try_link "$LINENO"; then :
64781  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
64782  lt_cv_shlibpath_overrides_runpath=yes
64783fi
64784fi
64785rm -f core conftest.err conftest.$ac_objext \
64786    conftest$ac_exeext conftest.$ac_ext
64787    LDFLAGS=$save_LDFLAGS
64788    libdir=$save_libdir
64789
64790fi
64791
64792  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
64793
64794  # This implies no fast_install, which is unacceptable.
64795  # Some rework will be needed to allow for fast_install
64796  # before this can be enabled.
64797  hardcode_into_libs=yes
64798
64799  # Add ABI-specific directories to the system library path.
64800  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
64801
64802  # Ideally, we could use ldconfig to report *all* directores which are
64803  # searched for libraries, however this is still not possible.  Aside from not
64804  # being certain /sbin/ldconfig is available, command
64805  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
64806  # even though it is searched at run-time.  Try to do the best guess by
64807  # appending ld.so.conf contents (and includes) to the search path.
64808  if test -f /etc/ld.so.conf; then
64809    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' ' '`
64810    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
64811  fi
64812
64813  # We used to test for /lib/ld.so.1 and disable shared libraries on
64814  # powerpc, because MkLinux only supported shared libraries with the
64815  # GNU dynamic linker.  Since this was broken with cross compilers,
64816  # most powerpc-linux boxes support dynamic linking these days and
64817  # people can always --disable-shared, the test was removed, and we
64818  # assume the GNU/Linux dynamic linker is in use.
64819  dynamic_linker='GNU/Linux ld.so'
64820  ;;
64821
64822netbsd*)
64823  version_type=sunos
64824  need_lib_prefix=no
64825  need_version=no
64826  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
64827    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
64828    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
64829    dynamic_linker='NetBSD (a.out) ld.so'
64830  else
64831    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64832    soname_spec='$libname$release$shared_ext$major'
64833    dynamic_linker='NetBSD ld.elf_so'
64834  fi
64835  shlibpath_var=LD_LIBRARY_PATH
64836  shlibpath_overrides_runpath=yes
64837  hardcode_into_libs=yes
64838  ;;
64839
64840newsos6)
64841  version_type=linux # correct to gnu/linux during the next big refactor
64842  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64843  shlibpath_var=LD_LIBRARY_PATH
64844  shlibpath_overrides_runpath=yes
64845  ;;
64846
64847*nto* | *qnx*)
64848  version_type=qnx
64849  need_lib_prefix=no
64850  need_version=no
64851  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64852  soname_spec='$libname$release$shared_ext$major'
64853  shlibpath_var=LD_LIBRARY_PATH
64854  shlibpath_overrides_runpath=no
64855  hardcode_into_libs=yes
64856  dynamic_linker='ldqnx.so'
64857  ;;
64858
64859openbsd* | bitrig*)
64860  version_type=sunos
64861  sys_lib_dlsearch_path_spec=/usr/lib
64862  need_lib_prefix=no
64863  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
64864    need_version=no
64865  else
64866    need_version=yes
64867  fi
64868  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
64869  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
64870  shlibpath_var=LD_LIBRARY_PATH
64871  shlibpath_overrides_runpath=yes
64872  ;;
64873
64874os2*)
64875  libname_spec='$name'
64876  version_type=windows
64877  shrext_cmds=.dll
64878  need_version=no
64879  need_lib_prefix=no
64880  # OS/2 can only load a DLL with a base name of 8 characters or less.
64881  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
64882    v=$($ECHO $release$versuffix | tr -d .-);
64883    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
64884    $ECHO $n$v`$shared_ext'
64885  library_names_spec='${libname}_dll.$libext'
64886  dynamic_linker='OS/2 ld.exe'
64887  shlibpath_var=BEGINLIBPATH
64888  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
64889  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
64890  postinstall_cmds='base_file=`basename \$file`~
64891    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
64892    dldir=$destdir/`dirname \$dlpath`~
64893    test -d \$dldir || mkdir -p \$dldir~
64894    $install_prog $dir/$dlname \$dldir/$dlname~
64895    chmod a+x \$dldir/$dlname~
64896    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
64897      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
64898    fi'
64899  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
64900    dlpath=$dir/\$dldll~
64901    $RM \$dlpath'
64902  ;;
64903
64904osf3* | osf4* | osf5*)
64905  version_type=osf
64906  need_lib_prefix=no
64907  need_version=no
64908  soname_spec='$libname$release$shared_ext$major'
64909  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64910  shlibpath_var=LD_LIBRARY_PATH
64911  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
64912  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
64913  ;;
64914
64915rdos*)
64916  dynamic_linker=no
64917  ;;
64918
64919solaris*)
64920  version_type=linux # correct to gnu/linux during the next big refactor
64921  need_lib_prefix=no
64922  need_version=no
64923  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64924  soname_spec='$libname$release$shared_ext$major'
64925  shlibpath_var=LD_LIBRARY_PATH
64926  shlibpath_overrides_runpath=yes
64927  hardcode_into_libs=yes
64928  # ldd complains unless libraries are executable
64929  postinstall_cmds='chmod +x $lib'
64930  ;;
64931
64932sunos4*)
64933  version_type=sunos
64934  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
64935  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
64936  shlibpath_var=LD_LIBRARY_PATH
64937  shlibpath_overrides_runpath=yes
64938  if test yes = "$with_gnu_ld"; then
64939    need_lib_prefix=no
64940  fi
64941  need_version=yes
64942  ;;
64943
64944sysv4 | sysv4.3*)
64945  version_type=linux # correct to gnu/linux during the next big refactor
64946  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
64947  soname_spec='$libname$release$shared_ext$major'
64948  shlibpath_var=LD_LIBRARY_PATH
64949  case $host_vendor in
64950    sni)
64951      shlibpath_overrides_runpath=no
64952      need_lib_prefix=no
64953      runpath_var=LD_RUN_PATH
64954      ;;
64955    siemens)
64956      need_lib_prefix=no
64957      ;;
64958    motorola)
64959      need_lib_prefix=no
64960      need_version=no
64961      shlibpath_overrides_runpath=no
64962      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
64963      ;;
64964  esac
64965  ;;
64966
64967sysv4*MP*)
64968  if test -d /usr/nec; then
64969    version_type=linux # correct to gnu/linux during the next big refactor
64970    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
64971    soname_spec='$libname$shared_ext.$major'
64972    shlibpath_var=LD_LIBRARY_PATH
64973  fi
64974  ;;
64975
64976sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
64977  version_type=sco
64978  need_lib_prefix=no
64979  need_version=no
64980  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
64981  soname_spec='$libname$release$shared_ext$major'
64982  shlibpath_var=LD_LIBRARY_PATH
64983  shlibpath_overrides_runpath=yes
64984  hardcode_into_libs=yes
64985  if test yes = "$with_gnu_ld"; then
64986    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
64987  else
64988    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
64989    case $host_os in
64990      sco3.2v5*)
64991        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
64992	;;
64993    esac
64994  fi
64995  sys_lib_dlsearch_path_spec='/usr/lib'
64996  ;;
64997
64998tpf*)
64999  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
65000  version_type=linux # correct to gnu/linux during the next big refactor
65001  need_lib_prefix=no
65002  need_version=no
65003  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
65004  shlibpath_var=LD_LIBRARY_PATH
65005  shlibpath_overrides_runpath=no
65006  hardcode_into_libs=yes
65007  ;;
65008
65009uts4*)
65010  version_type=linux # correct to gnu/linux during the next big refactor
65011  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
65012  soname_spec='$libname$release$shared_ext$major'
65013  shlibpath_var=LD_LIBRARY_PATH
65014  ;;
65015
65016*)
65017  dynamic_linker=no
65018  ;;
65019esac
65020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
65021$as_echo "$dynamic_linker" >&6; }
65022test no = "$dynamic_linker" && can_build_shared=no
65023
65024variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
65025if test yes = "$GCC"; then
65026  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
65027fi
65028
65029if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
65030  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
65031fi
65032
65033if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
65034  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
65035fi
65036
65037# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
65038configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
65039
65040# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
65041func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
65042
65043# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
65044configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
65045
65046
65047
65048
65049
65050
65051
65052
65053
65054
65055
65056
65057
65058
65059
65060
65061
65062
65063
65064
65065
65066
65067
65068
65069
65070
65071
65072
65073
65074
65075
65076
65077
65078
65079
65080
65081
65082
65083
65084
65085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
65086$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
65087hardcode_action_CXX=
65088if test -n "$hardcode_libdir_flag_spec_CXX" ||
65089   test -n "$runpath_var_CXX" ||
65090   test yes = "$hardcode_automatic_CXX"; then
65091
65092  # We can hardcode non-existent directories.
65093  if test no != "$hardcode_direct_CXX" &&
65094     # If the only mechanism to avoid hardcoding is shlibpath_var, we
65095     # have to relink, otherwise we might link with an installed library
65096     # when we should be linking with a yet-to-be-installed one
65097     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
65098     test no != "$hardcode_minus_L_CXX"; then
65099    # Linking always hardcodes the temporary library directory.
65100    hardcode_action_CXX=relink
65101  else
65102    # We can link without hardcoding, and we can hardcode nonexisting dirs.
65103    hardcode_action_CXX=immediate
65104  fi
65105else
65106  # We cannot hardcode anything, or else we can only hardcode existing
65107  # directories.
65108  hardcode_action_CXX=unsupported
65109fi
65110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
65111$as_echo "$hardcode_action_CXX" >&6; }
65112
65113if test relink = "$hardcode_action_CXX" ||
65114   test yes = "$inherit_rpath_CXX"; then
65115  # Fast installation is not supported
65116  enable_fast_install=no
65117elif test yes = "$shlibpath_overrides_runpath" ||
65118     test no = "$enable_shared"; then
65119  # Fast installation is not necessary
65120  enable_fast_install=needless
65121fi
65122
65123
65124
65125
65126
65127
65128
65129  fi # test -n "$compiler"
65130
65131  CC=$lt_save_CC
65132  CFLAGS=$lt_save_CFLAGS
65133  LDCXX=$LD
65134  LD=$lt_save_LD
65135  GCC=$lt_save_GCC
65136  with_gnu_ld=$lt_save_with_gnu_ld
65137  lt_cv_path_LDCXX=$lt_cv_path_LD
65138  lt_cv_path_LD=$lt_save_path_LD
65139  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
65140  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
65141fi # test yes != "$_lt_caught_CXX_error"
65142
65143ac_ext=c
65144ac_cpp='$CPP $CPPFLAGS'
65145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65147ac_compiler_gnu=$ac_cv_c_compiler_gnu
65148
65149
65150
65151
65152
65153
65154
65155
65156
65157
65158
65159
65160
65161
65162
65163        ac_config_commands="$ac_config_commands libtool"
65164
65165
65166
65167
65168# Only expand once:
65169
65170
65171
65172
65173
65174
65175
65176
65177
65178
65179
65180
65181
65182
65183
65184
65185
65186    use_additional=yes
65187
65188  acl_save_prefix="$prefix"
65189  prefix="$acl_final_prefix"
65190  acl_save_exec_prefix="$exec_prefix"
65191  exec_prefix="$acl_final_exec_prefix"
65192
65193    eval additional_includedir=\"$includedir\"
65194    eval additional_libdir=\"$libdir\"
65195    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
65196    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
65197
65198  exec_prefix="$acl_save_exec_prefix"
65199  prefix="$acl_save_prefix"
65200
65201
65202# Check whether --with-libdl-prefix was given.
65203if test "${with_libdl_prefix+set}" = set; then :
65204  withval=$with_libdl_prefix;
65205    if test "X$withval" = "Xno"; then
65206      use_additional=no
65207    else
65208      if test "X$withval" = "X"; then
65209
65210  acl_save_prefix="$prefix"
65211  prefix="$acl_final_prefix"
65212  acl_save_exec_prefix="$exec_prefix"
65213  exec_prefix="$acl_final_exec_prefix"
65214
65215          eval additional_includedir=\"$includedir\"
65216          eval additional_libdir=\"$libdir\"
65217          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
65218          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
65219
65220  exec_prefix="$acl_save_exec_prefix"
65221  prefix="$acl_save_prefix"
65222
65223      else
65224        additional_includedir="$withval/include"
65225        additional_libdir="$withval/$acl_libdirstem"
65226        additional_libdir2="$withval/$acl_libdirstem2"
65227        additional_libdir3="$withval/$acl_libdirstem3"
65228      fi
65229    fi
65230
65231fi
65232
65233  if test "X$additional_libdir2" = "X$additional_libdir"; then
65234    additional_libdir2=
65235  fi
65236  if test "X$additional_libdir3" = "X$additional_libdir"; then
65237    additional_libdir3=
65238  fi
65239      LIBDL=
65240  LTLIBDL=
65241  INCDL=
65242  LIBDL_PREFIX=
65243      HAVE_LIBDL=
65244  rpathdirs=
65245  ltrpathdirs=
65246  names_already_handled=
65247  names_next_round='dl '
65248  while test -n "$names_next_round"; do
65249    names_this_round="$names_next_round"
65250    names_next_round=
65251    for name in $names_this_round; do
65252      already_handled=
65253      for n in $names_already_handled; do
65254        if test "$n" = "$name"; then
65255          already_handled=yes
65256          break
65257        fi
65258      done
65259      if test -z "$already_handled"; then
65260        names_already_handled="$names_already_handled $name"
65261                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
65262        eval value=\"\$HAVE_LIB$uppername\"
65263        if test -n "$value"; then
65264          if test "$value" = yes; then
65265            eval value=\"\$LIB$uppername\"
65266            test -z "$value" || LIBDL="${LIBDL}${LIBDL:+ }$value"
65267            eval value=\"\$LTLIB$uppername\"
65268            test -z "$value" || LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$value"
65269          else
65270                                    :
65271          fi
65272        else
65273                              found_dir=
65274          found_la=
65275          found_so=
65276          found_a=
65277          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
65278          if test -n "$acl_shlibext"; then
65279            shrext=".$acl_shlibext"             # typically: shrext=.so
65280          else
65281            shrext=
65282          fi
65283          if test $use_additional = yes; then
65284            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
65285              if test "X$found_dir" = "X"; then
65286                eval dir=\$$additional_libdir_variable
65287                if test -n "$dir"; then
65288                                                      if test -n "$acl_shlibext"; then
65289                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
65290                      found_dir="$dir"
65291                      found_so="$dir/$libname$shrext"
65292                    else
65293                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
65294                        ver=`(cd "$dir" && \
65295                              for f in "$libname$shrext".*; do echo "$f"; done \
65296                              | sed -e "s,^$libname$shrext\\\\.,," \
65297                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
65298                              | sed 1q ) 2>/dev/null`
65299                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
65300                          found_dir="$dir"
65301                          found_so="$dir/$libname$shrext.$ver"
65302                        fi
65303                      else
65304                        eval library_names=\"$acl_library_names_spec\"
65305                        for f in $library_names; do
65306                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
65307                            found_dir="$dir"
65308                            found_so="$dir/$f"
65309                            break
65310                          fi
65311                        done
65312                      fi
65313                    fi
65314                  fi
65315                                    if test "X$found_dir" = "X"; then
65316                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
65317                      found_dir="$dir"
65318                      found_a="$dir/$libname.$acl_libext"
65319                    fi
65320                  fi
65321                  if test "X$found_dir" != "X"; then
65322                    if test -f "$dir/$libname.la"; then
65323                      found_la="$dir/$libname.la"
65324                    fi
65325                  fi
65326                fi
65327              fi
65328            done
65329          fi
65330          if test "X$found_dir" = "X"; then
65331            for x in $LDFLAGS $LTLIBDL; do
65332
65333  acl_save_prefix="$prefix"
65334  prefix="$acl_final_prefix"
65335  acl_save_exec_prefix="$exec_prefix"
65336  exec_prefix="$acl_final_exec_prefix"
65337  eval x=\"$x\"
65338  exec_prefix="$acl_save_exec_prefix"
65339  prefix="$acl_save_prefix"
65340
65341              case "$x" in
65342                -L*)
65343                  dir=`echo "X$x" | sed -e 's/^X-L//'`
65344                                    if test -n "$acl_shlibext"; then
65345                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
65346                      found_dir="$dir"
65347                      found_so="$dir/$libname$shrext"
65348                    else
65349                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
65350                        ver=`(cd "$dir" && \
65351                              for f in "$libname$shrext".*; do echo "$f"; done \
65352                              | sed -e "s,^$libname$shrext\\\\.,," \
65353                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
65354                              | sed 1q ) 2>/dev/null`
65355                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
65356                          found_dir="$dir"
65357                          found_so="$dir/$libname$shrext.$ver"
65358                        fi
65359                      else
65360                        eval library_names=\"$acl_library_names_spec\"
65361                        for f in $library_names; do
65362                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
65363                            found_dir="$dir"
65364                            found_so="$dir/$f"
65365                            break
65366                          fi
65367                        done
65368                      fi
65369                    fi
65370                  fi
65371                                    if test "X$found_dir" = "X"; then
65372                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
65373                      found_dir="$dir"
65374                      found_a="$dir/$libname.$acl_libext"
65375                    fi
65376                  fi
65377                  if test "X$found_dir" != "X"; then
65378                    if test -f "$dir/$libname.la"; then
65379                      found_la="$dir/$libname.la"
65380                    fi
65381                  fi
65382                  ;;
65383              esac
65384              if test "X$found_dir" != "X"; then
65385                break
65386              fi
65387            done
65388          fi
65389          if test "X$found_dir" != "X"; then
65390                        LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$found_dir -l$name"
65391            if test "X$found_so" != "X"; then
65392                                                        if test "$enable_rpath" = no \
65393                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
65394                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
65395                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
65396                                LIBDL="${LIBDL}${LIBDL:+ }$found_so"
65397              else
65398                                                                                haveit=
65399                for x in $ltrpathdirs; do
65400                  if test "X$x" = "X$found_dir"; then
65401                    haveit=yes
65402                    break
65403                  fi
65404                done
65405                if test -z "$haveit"; then
65406                  ltrpathdirs="$ltrpathdirs $found_dir"
65407                fi
65408                                if test "$acl_hardcode_direct" = yes; then
65409                                                      LIBDL="${LIBDL}${LIBDL:+ }$found_so"
65410                else
65411                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
65412                                                            LIBDL="${LIBDL}${LIBDL:+ }$found_so"
65413                                                            haveit=
65414                    for x in $rpathdirs; do
65415                      if test "X$x" = "X$found_dir"; then
65416                        haveit=yes
65417                        break
65418                      fi
65419                    done
65420                    if test -z "$haveit"; then
65421                      rpathdirs="$rpathdirs $found_dir"
65422                    fi
65423                  else
65424                                                                                haveit=
65425                    for x in $LDFLAGS $LIBDL; do
65426
65427  acl_save_prefix="$prefix"
65428  prefix="$acl_final_prefix"
65429  acl_save_exec_prefix="$exec_prefix"
65430  exec_prefix="$acl_final_exec_prefix"
65431  eval x=\"$x\"
65432  exec_prefix="$acl_save_exec_prefix"
65433  prefix="$acl_save_prefix"
65434
65435                      if test "X$x" = "X-L$found_dir"; then
65436                        haveit=yes
65437                        break
65438                      fi
65439                    done
65440                    if test -z "$haveit"; then
65441                      LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir"
65442                    fi
65443                    if test "$acl_hardcode_minus_L" != no; then
65444                                                                                        LIBDL="${LIBDL}${LIBDL:+ }$found_so"
65445                    else
65446                                                                                                                                                                                LIBDL="${LIBDL}${LIBDL:+ }-l$name"
65447                    fi
65448                  fi
65449                fi
65450              fi
65451            else
65452              if test "X$found_a" != "X"; then
65453                                LIBDL="${LIBDL}${LIBDL:+ }$found_a"
65454              else
65455                                                LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir -l$name"
65456              fi
65457            fi
65458                        additional_includedir=
65459            case "$found_dir" in
65460              */$acl_libdirstem | */$acl_libdirstem/)
65461                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
65462                if test "$name" = 'dl'; then
65463                  LIBDL_PREFIX="$basedir"
65464                fi
65465                additional_includedir="$basedir/include"
65466                ;;
65467              */$acl_libdirstem2 | */$acl_libdirstem2/)
65468                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
65469                if test "$name" = 'dl'; then
65470                  LIBDL_PREFIX="$basedir"
65471                fi
65472                additional_includedir="$basedir/include"
65473                ;;
65474              */$acl_libdirstem3 | */$acl_libdirstem3/)
65475                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
65476                if test "$name" = 'dl'; then
65477                  LIBDL_PREFIX="$basedir"
65478                fi
65479                additional_includedir="$basedir/include"
65480                ;;
65481            esac
65482            if test "X$additional_includedir" != "X"; then
65483                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
65484                haveit=
65485                if test "X$additional_includedir" = "X/usr/local/include"; then
65486                  if test -n "$GCC"; then
65487                    case $host_os in
65488                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
65489                    esac
65490                  fi
65491                fi
65492                if test -z "$haveit"; then
65493                  for x in $CPPFLAGS $INCDL; do
65494
65495  acl_save_prefix="$prefix"
65496  prefix="$acl_final_prefix"
65497  acl_save_exec_prefix="$exec_prefix"
65498  exec_prefix="$acl_final_exec_prefix"
65499  eval x=\"$x\"
65500  exec_prefix="$acl_save_exec_prefix"
65501  prefix="$acl_save_prefix"
65502
65503                    if test "X$x" = "X-I$additional_includedir"; then
65504                      haveit=yes
65505                      break
65506                    fi
65507                  done
65508                  if test -z "$haveit"; then
65509                    if test -d "$additional_includedir"; then
65510                                            INCDL="${INCDL}${INCDL:+ }-I$additional_includedir"
65511                    fi
65512                  fi
65513                fi
65514              fi
65515            fi
65516                        if test -n "$found_la"; then
65517                                                        save_libdir="$libdir"
65518              case "$found_la" in
65519                */* | *\\*) . "$found_la" ;;
65520                *) . "./$found_la" ;;
65521              esac
65522              libdir="$save_libdir"
65523                            for dep in $dependency_libs; do
65524                case "$dep" in
65525                  -L*)
65526                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
65527                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
65528                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
65529                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
65530                      haveit=
65531                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
65532                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
65533                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
65534                        if test -n "$GCC"; then
65535                          case $host_os in
65536                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
65537                          esac
65538                        fi
65539                      fi
65540                      if test -z "$haveit"; then
65541                        haveit=
65542                        for x in $LDFLAGS $LIBDL; do
65543
65544  acl_save_prefix="$prefix"
65545  prefix="$acl_final_prefix"
65546  acl_save_exec_prefix="$exec_prefix"
65547  exec_prefix="$acl_final_exec_prefix"
65548  eval x=\"$x\"
65549  exec_prefix="$acl_save_exec_prefix"
65550  prefix="$acl_save_prefix"
65551
65552                          if test "X$x" = "X-L$dependency_libdir"; then
65553                            haveit=yes
65554                            break
65555                          fi
65556                        done
65557                        if test -z "$haveit"; then
65558                          if test -d "$dependency_libdir"; then
65559                                                        LIBDL="${LIBDL}${LIBDL:+ }-L$dependency_libdir"
65560                          fi
65561                        fi
65562                        haveit=
65563                        for x in $LDFLAGS $LTLIBDL; do
65564
65565  acl_save_prefix="$prefix"
65566  prefix="$acl_final_prefix"
65567  acl_save_exec_prefix="$exec_prefix"
65568  exec_prefix="$acl_final_exec_prefix"
65569  eval x=\"$x\"
65570  exec_prefix="$acl_save_exec_prefix"
65571  prefix="$acl_save_prefix"
65572
65573                          if test "X$x" = "X-L$dependency_libdir"; then
65574                            haveit=yes
65575                            break
65576                          fi
65577                        done
65578                        if test -z "$haveit"; then
65579                          if test -d "$dependency_libdir"; then
65580                                                        LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$dependency_libdir"
65581                          fi
65582                        fi
65583                      fi
65584                    fi
65585                    ;;
65586                  -R*)
65587                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
65588                    if test "$enable_rpath" != no; then
65589                                                                  haveit=
65590                      for x in $rpathdirs; do
65591                        if test "X$x" = "X$dir"; then
65592                          haveit=yes
65593                          break
65594                        fi
65595                      done
65596                      if test -z "$haveit"; then
65597                        rpathdirs="$rpathdirs $dir"
65598                      fi
65599                                                                  haveit=
65600                      for x in $ltrpathdirs; do
65601                        if test "X$x" = "X$dir"; then
65602                          haveit=yes
65603                          break
65604                        fi
65605                      done
65606                      if test -z "$haveit"; then
65607                        ltrpathdirs="$ltrpathdirs $dir"
65608                      fi
65609                    fi
65610                    ;;
65611                  -l*)
65612                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
65613                    ;;
65614                  *.la)
65615                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
65616                    ;;
65617                  *)
65618                                        LIBDL="${LIBDL}${LIBDL:+ }$dep"
65619                    LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$dep"
65620                    ;;
65621                esac
65622              done
65623            fi
65624          else
65625                                                            LIBDL="${LIBDL}${LIBDL:+ }-l$name"
65626            LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-l$name"
65627          fi
65628        fi
65629      fi
65630    done
65631  done
65632  if test "X$rpathdirs" != "X"; then
65633    if test -n "$acl_hardcode_libdir_separator"; then
65634                        alldirs=
65635      for found_dir in $rpathdirs; do
65636        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
65637      done
65638            acl_save_libdir="$libdir"
65639      libdir="$alldirs"
65640      eval flag=\"$acl_hardcode_libdir_flag_spec\"
65641      libdir="$acl_save_libdir"
65642      LIBDL="${LIBDL}${LIBDL:+ }$flag"
65643    else
65644            for found_dir in $rpathdirs; do
65645        acl_save_libdir="$libdir"
65646        libdir="$found_dir"
65647        eval flag=\"$acl_hardcode_libdir_flag_spec\"
65648        libdir="$acl_save_libdir"
65649        LIBDL="${LIBDL}${LIBDL:+ }$flag"
65650      done
65651    fi
65652  fi
65653  if test "X$ltrpathdirs" != "X"; then
65654            for found_dir in $ltrpathdirs; do
65655      LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-R$found_dir"
65656    done
65657  fi
65658
65659
65660
65661
65662
65663
65664        ac_save_CPPFLAGS="$CPPFLAGS"
65665
65666  for element in $INCDL; do
65667    haveit=
65668    for x in $CPPFLAGS; do
65669
65670  acl_save_prefix="$prefix"
65671  prefix="$acl_final_prefix"
65672  acl_save_exec_prefix="$exec_prefix"
65673  exec_prefix="$acl_final_exec_prefix"
65674  eval x=\"$x\"
65675  exec_prefix="$acl_save_exec_prefix"
65676  prefix="$acl_save_prefix"
65677
65678      if test "X$x" = "X$element"; then
65679        haveit=yes
65680        break
65681      fi
65682    done
65683    if test -z "$haveit"; then
65684      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
65685    fi
65686  done
65687
65688
65689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
65690$as_echo_n "checking for libdl... " >&6; }
65691if ${ac_cv_libdl+:} false; then :
65692  $as_echo_n "(cached) " >&6
65693else
65694
65695    ac_save_LIBS="$LIBS"
65696                                case " $LIBDL" in
65697      *" -l"*) LIBS="$LIBS $LIBDL" ;;
65698      *)       LIBS="$LIBDL $LIBS" ;;
65699    esac
65700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65701/* end confdefs.h.  */
65702#include <dlfcn.h>
65703int
65704main ()
65705{
65706dladdr (0, 0);
65707  ;
65708  return 0;
65709}
65710_ACEOF
65711if ac_fn_c_try_link "$LINENO"; then :
65712  ac_cv_libdl=yes
65713else
65714  ac_cv_libdl='no'
65715fi
65716rm -f core conftest.err conftest.$ac_objext \
65717    conftest$ac_exeext conftest.$ac_ext
65718    LIBS="$ac_save_LIBS"
65719
65720fi
65721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libdl" >&5
65722$as_echo "$ac_cv_libdl" >&6; }
65723  if test "$ac_cv_libdl" = yes; then
65724    HAVE_LIBDL=yes
65725
65726$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
65727
65728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libdl" >&5
65729$as_echo_n "checking how to link with libdl... " >&6; }
65730    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBDL" >&5
65731$as_echo "$LIBDL" >&6; }
65732  else
65733    HAVE_LIBDL=no
65734            CPPFLAGS="$ac_save_CPPFLAGS"
65735    LIBDL=
65736    LTLIBDL=
65737    LIBDL_PREFIX=
65738  fi
65739
65740
65741
65742
65743
65744
65745
65746
65747# Check whether --enable-fips140-mode was given.
65748if test "${enable_fips140_mode+set}" = set; then :
65749  enableval=$enable_fips140_mode; enable_fips=$enableval
65750else
65751  enable_fips=no
65752fi
65753
65754 if test "$enable_fips" = "yes"; then
65755  ENABLE_FIPS140_TRUE=
65756  ENABLE_FIPS140_FALSE='#'
65757else
65758  ENABLE_FIPS140_TRUE='#'
65759  ENABLE_FIPS140_FALSE=
65760fi
65761
65762if  test "$enable_fips" = "yes" ;then
65763  if test "x$HAVE_LIBDL" = "xyes";then
65764
65765$as_echo "#define ENABLE_FIPS140 1" >>confdefs.h
65766
65767    FIPS140_LIBS=$LIBDL
65768
65769
65770# Check whether --with-fips140-key was given.
65771if test "${with_fips140_key+set}" = set; then :
65772  withval=$with_fips140_key; fips_key="$withval"
65773else
65774  fips_key="orboDeJITITejsirpADONivirpUkvarP"
65775fi
65776
65777
65778
65779cat >>confdefs.h <<_ACEOF
65780#define FIPS_KEY "$fips_key"
65781_ACEOF
65782
65783  else
65784    enable_fips=no
65785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
65786***
65787*** This system is not supported in FIPS140 mode.
65788*** libdl and dladdr() are required.
65789*** " >&5
65790$as_echo "$as_me: WARNING:
65791***
65792*** This system is not supported in FIPS140 mode.
65793*** libdl and dladdr() are required.
65794*** " >&2;}
65795  fi
65796fi
65797
65798
65799pkg_failed=no
65800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMOCKA" >&5
65801$as_echo_n "checking for CMOCKA... " >&6; }
65802
65803if test -n "$CMOCKA_CFLAGS"; then
65804    pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
65805 elif test -n "$PKG_CONFIG"; then
65806    if test -n "$PKG_CONFIG" && \
65807    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.1\""; } >&5
65808  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.1") 2>&5
65809  ac_status=$?
65810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65811  test $ac_status = 0; }; then
65812  pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.1" 2>/dev/null`
65813		      test "x$?" != "x0" && pkg_failed=yes
65814else
65815  pkg_failed=yes
65816fi
65817 else
65818    pkg_failed=untried
65819fi
65820if test -n "$CMOCKA_LIBS"; then
65821    pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
65822 elif test -n "$PKG_CONFIG"; then
65823    if test -n "$PKG_CONFIG" && \
65824    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.1\""; } >&5
65825  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.1") 2>&5
65826  ac_status=$?
65827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65828  test $ac_status = 0; }; then
65829  pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.1" 2>/dev/null`
65830		      test "x$?" != "x0" && pkg_failed=yes
65831else
65832  pkg_failed=yes
65833fi
65834 else
65835    pkg_failed=untried
65836fi
65837
65838
65839
65840if test $pkg_failed = yes; then
65841   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65842$as_echo "no" >&6; }
65843
65844if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65845        _pkg_short_errors_supported=yes
65846else
65847        _pkg_short_errors_supported=no
65848fi
65849        if test $_pkg_short_errors_supported = yes; then
65850	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.1" 2>&1`
65851        else
65852	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.1" 2>&1`
65853        fi
65854	# Put the nasty error message in config.log where it belongs
65855	echo "$CMOCKA_PKG_ERRORS" >&5
65856
65857	with_cmocka=no
65858elif test $pkg_failed = untried; then
65859     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65860$as_echo "no" >&6; }
65861	with_cmocka=no
65862else
65863	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
65864	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
65865        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65866$as_echo "yes" >&6; }
65867	with_cmocka=yes
65868fi
65869 if test "$with_cmocka" != "no"; then
65870  HAVE_CMOCKA_TRUE=
65871  HAVE_CMOCKA_FALSE='#'
65872else
65873  HAVE_CMOCKA_TRUE='#'
65874  HAVE_CMOCKA_FALSE=
65875fi
65876
65877
65878
65879# Check whether --with-idn was given.
65880if test "${with_idn+set}" = set; then :
65881  withval=$with_idn; try_libidn2="$withval"
65882else
65883  try_libidn2=yes
65884fi
65885
65886
65887idna_support=no
65888with_libidn2=no
65889
65890if test "$try_libidn2" = yes;then
65891
65892pkg_failed=no
65893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN2" >&5
65894$as_echo_n "checking for LIBIDN2... " >&6; }
65895
65896if test -n "$LIBIDN2_CFLAGS"; then
65897    pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
65898 elif test -n "$PKG_CONFIG"; then
65899    if test -n "$PKG_CONFIG" && \
65900    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2 >= 2.0.0\""; } >&5
65901  ($PKG_CONFIG --exists --print-errors "libidn2 >= 2.0.0") 2>&5
65902  ac_status=$?
65903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65904  test $ac_status = 0; }; then
65905  pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2 >= 2.0.0" 2>/dev/null`
65906		      test "x$?" != "x0" && pkg_failed=yes
65907else
65908  pkg_failed=yes
65909fi
65910 else
65911    pkg_failed=untried
65912fi
65913if test -n "$LIBIDN2_LIBS"; then
65914    pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
65915 elif test -n "$PKG_CONFIG"; then
65916    if test -n "$PKG_CONFIG" && \
65917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2 >= 2.0.0\""; } >&5
65918  ($PKG_CONFIG --exists --print-errors "libidn2 >= 2.0.0") 2>&5
65919  ac_status=$?
65920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65921  test $ac_status = 0; }; then
65922  pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2 >= 2.0.0" 2>/dev/null`
65923		      test "x$?" != "x0" && pkg_failed=yes
65924else
65925  pkg_failed=yes
65926fi
65927 else
65928    pkg_failed=untried
65929fi
65930
65931
65932
65933if test $pkg_failed = yes; then
65934   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65935$as_echo "no" >&6; }
65936
65937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65938        _pkg_short_errors_supported=yes
65939else
65940        _pkg_short_errors_supported=no
65941fi
65942        if test $_pkg_short_errors_supported = yes; then
65943	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2 >= 2.0.0" 2>&1`
65944        else
65945	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2 >= 2.0.0" 2>&1`
65946        fi
65947	# Put the nasty error message in config.log where it belongs
65948	echo "$LIBIDN2_PKG_ERRORS" >&5
65949
65950	with_libidn2=no
65951elif test $pkg_failed = untried; then
65952     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65953$as_echo "no" >&6; }
65954	with_libidn2=no
65955else
65956	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
65957	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
65958        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65959$as_echo "yes" >&6; }
65960	with_libidn2=yes
65961fi
65962    if test "${with_libidn2}" = "yes";then
65963      idna_support="IDNA 2008 (libidn2)"
65964
65965$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
65966
65967      if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
65968        GNUTLS_REQUIRES_PRIVATE="Requires.private: libidn2"
65969      else
65970        GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libidn2"
65971      fi
65972    else
65973      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** LIBIDN2 was not found. You will not be able to use IDN2008 support" >&5
65974$as_echo "$as_me: WARNING: *** LIBIDN2 was not found. You will not be able to use IDN2008 support" >&2;}
65975    fi
65976fi
65977
65978 if test "$with_libidn2" != "no"; then
65979  HAVE_LIBIDN2_TRUE=
65980  HAVE_LIBIDN2_FALSE='#'
65981else
65982  HAVE_LIBIDN2_TRUE='#'
65983  HAVE_LIBIDN2_FALSE=
65984fi
65985
65986
65987if test "x$have_vista_dynamic" = "xno"; then
65988  ac_fn_c_check_type "$LINENO" "BCRYPT_ALG_HANDLE" "ac_cv_type_BCRYPT_ALG_HANDLE" "#include <windows.h>
65989  #include <bcrypt.h>
65990"
65991if test "x$ac_cv_type_BCRYPT_ALG_HANDLE" = xyes; then :
65992
65993cat >>confdefs.h <<_ACEOF
65994#define HAVE_BCRYPT_ALG_HANDLE 1
65995_ACEOF
65996
65997
65998    GNUTLS_LIBS_PRIVATE="${GNUTLS_LIBS_PRIVATE} -lbcrypt"
65999
66000fi
66001
66002fi
66003 if test "$ac_cv_type_BCRYPT_ALG_HANDLE" = "yes"; then
66004  HAVE_BCRYPT_TRUE=
66005  HAVE_BCRYPT_FALSE='#'
66006else
66007  HAVE_BCRYPT_TRUE='#'
66008  HAVE_BCRYPT_FALSE=
66009fi
66010
66011
66012# Check whether --enable-non-suiteb-curves was given.
66013if test "${enable_non_suiteb_curves+set}" = set; then :
66014  enableval=$enable_non_suiteb_curves; enable_non_suiteb=$enableval
66015else
66016  enable_non_suiteb=yes
66017fi
66018
66019
66020if test "$enable_non_suiteb" = "yes";then
66021		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_get_secp_192r1 in -lhogweed" >&5
66022$as_echo_n "checking for nettle_get_secp_192r1 in -lhogweed... " >&6; }
66023if ${ac_cv_lib_hogweed_nettle_get_secp_192r1+:} false; then :
66024  $as_echo_n "(cached) " >&6
66025else
66026  ac_check_lib_save_LIBS=$LIBS
66027LIBS="-lhogweed $HOGWEED_LIBS $NETTLE_LIBS $LIBS"
66028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66029/* end confdefs.h.  */
66030
66031/* Override any GCC internal prototype to avoid an error.
66032   Use char because int might match the return type of a GCC
66033   builtin and then its argument prototype would still apply.  */
66034#ifdef __cplusplus
66035extern "C"
66036#endif
66037char nettle_get_secp_192r1 ();
66038int
66039main ()
66040{
66041return nettle_get_secp_192r1 ();
66042  ;
66043  return 0;
66044}
66045_ACEOF
66046if ac_fn_c_try_link "$LINENO"; then :
66047  ac_cv_lib_hogweed_nettle_get_secp_192r1=yes
66048else
66049  ac_cv_lib_hogweed_nettle_get_secp_192r1=no
66050fi
66051rm -f core conftest.err conftest.$ac_objext \
66052    conftest$ac_exeext conftest.$ac_ext
66053LIBS=$ac_check_lib_save_LIBS
66054fi
66055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hogweed_nettle_get_secp_192r1" >&5
66056$as_echo "$ac_cv_lib_hogweed_nettle_get_secp_192r1" >&6; }
66057if test "x$ac_cv_lib_hogweed_nettle_get_secp_192r1" = xyes; then :
66058  enable_non_suiteb=yes
66059else
66060  enable_non_suiteb=no
66061fi
66062
66063
66064	if test "$enable_non_suiteb" = "yes";then
66065
66066$as_echo "#define ENABLE_NON_SUITEB_CURVES 1" >>confdefs.h
66067
66068	fi
66069fi
66070 if test "$enable_non_suiteb" = "yes"; then
66071  ENABLE_NON_SUITEB_CURVES_TRUE=
66072  ENABLE_NON_SUITEB_CURVES_FALSE='#'
66073else
66074  ENABLE_NON_SUITEB_CURVES_TRUE='#'
66075  ENABLE_NON_SUITEB_CURVES_FALSE=
66076fi
66077
66078
66079# We MUST require a Nettle version that has rsa_sec_decrypt now.
66080save_LIBS=$LIBS
66081LIBS="$LIBS $HOGWEED_LIBS $NETTLE_LIBS"
66082for ac_func in nettle_rsa_sec_decrypt
66083do :
66084  ac_fn_c_check_func "$LINENO" "nettle_rsa_sec_decrypt" "ac_cv_func_nettle_rsa_sec_decrypt"
66085if test "x$ac_cv_func_nettle_rsa_sec_decrypt" = xyes; then :
66086  cat >>confdefs.h <<_ACEOF
66087#define HAVE_NETTLE_RSA_SEC_DECRYPT 1
66088_ACEOF
66089
66090else
66091  as_fn_error $? "Nettle lacks the required rsa_sec_decrypt function" "$LINENO" 5
66092
66093fi
66094done
66095
66096LIBS=$save_LIBS
66097
66098# Check if nettle has CFB8 support
66099if test -z "$ac_cv_func_nettle_cfb8_encrypt"; then
66100	# nettle_cfb8_decrypt in nettle upto 3.6 is known to be broken
66101	if ! $PKG_CONFIG --atleast-version=3.6 nettle; then
66102		ac_cv_func_nettle_cfb8_encrypt=no
66103	fi
66104fi
66105
66106save_LIBS=$LIBS
66107LIBS="$LIBS $NETTLE_LIBS"
66108for ac_func in nettle_cfb8_encrypt
66109do :
66110  ac_fn_c_check_func "$LINENO" "nettle_cfb8_encrypt" "ac_cv_func_nettle_cfb8_encrypt"
66111if test "x$ac_cv_func_nettle_cfb8_encrypt" = xyes; then :
66112  cat >>confdefs.h <<_ACEOF
66113#define HAVE_NETTLE_CFB8_ENCRYPT 1
66114_ACEOF
66115
66116fi
66117done
66118
66119LIBS=$save_LIBS
66120 if test "$ac_cv_func_nettle_cfb8_encrypt" != "yes"; then
66121  NEED_CFB_TRUE=
66122  NEED_CFB_FALSE='#'
66123else
66124  NEED_CFB_TRUE='#'
66125  NEED_CFB_FALSE=
66126fi
66127
66128
66129# Check if nettle has CMAC support
66130save_CFLAGS=$CFLAGS
66131CFLAGS="$CFLAGS $NETTLE_CFLAGS"
66132ac_fn_c_check_type "$LINENO" "union nettle_block8" "ac_cv_type_union_nettle_block8" "#include <nettle/nettle-types.h>
66133"
66134if test "x$ac_cv_type_union_nettle_block8" = xyes; then :
66135
66136cat >>confdefs.h <<_ACEOF
66137#define HAVE_UNION_NETTLE_BLOCK8 1
66138_ACEOF
66139
66140
66141fi
66142
66143CFLAGS=$save_CFLAGS
66144
66145save_LIBS=$LIBS
66146LIBS="$LIBS $NETTLE_LIBS"
66147for ac_func in nettle_cmac128_update
66148do :
66149  ac_fn_c_check_func "$LINENO" "nettle_cmac128_update" "ac_cv_func_nettle_cmac128_update"
66150if test "x$ac_cv_func_nettle_cmac128_update" = xyes; then :
66151  cat >>confdefs.h <<_ACEOF
66152#define HAVE_NETTLE_CMAC128_UPDATE 1
66153_ACEOF
66154
66155fi
66156done
66157
66158LIBS=$save_LIBS
66159 if test "$ac_cv_func_nettle_cmac128_update" != "yes"; then
66160  NEED_CMAC_TRUE=
66161  NEED_CMAC_FALSE='#'
66162else
66163  NEED_CMAC_TRUE='#'
66164  NEED_CMAC_FALSE=
66165fi
66166
66167
66168# Check if nettle has XTS support
66169save_LIBS=$LIBS
66170LIBS="$LIBS $NETTLE_LIBS"
66171for ac_func in nettle_xts_encrypt_message
66172do :
66173  ac_fn_c_check_func "$LINENO" "nettle_xts_encrypt_message" "ac_cv_func_nettle_xts_encrypt_message"
66174if test "x$ac_cv_func_nettle_xts_encrypt_message" = xyes; then :
66175  cat >>confdefs.h <<_ACEOF
66176#define HAVE_NETTLE_XTS_ENCRYPT_MESSAGE 1
66177_ACEOF
66178
66179fi
66180done
66181
66182LIBS=$save_LIBS
66183 if test "$ac_cv_func_nettle_xts_encrypt_message" != "yes"; then
66184  NEED_XTS_TRUE=
66185  NEED_XTS_FALSE='#'
66186else
66187  NEED_XTS_TRUE='#'
66188  NEED_XTS_FALSE=
66189fi
66190
66191
66192# Check for Gosthash94 with CryptoPro S-box support
66193save_LIBS=$LIBS
66194LIBS="$LIBS $NETTLE_LIBS"
66195for ac_func in nettle_gosthash94cp_update
66196do :
66197  ac_fn_c_check_func "$LINENO" "nettle_gosthash94cp_update" "ac_cv_func_nettle_gosthash94cp_update"
66198if test "x$ac_cv_func_nettle_gosthash94cp_update" = xyes; then :
66199  cat >>confdefs.h <<_ACEOF
66200#define HAVE_NETTLE_GOSTHASH94CP_UPDATE 1
66201_ACEOF
66202
66203fi
66204done
66205
66206LIBS=$save_LIBS
66207
66208# Check for GOST28147
66209save_LIBS=$LIBS
66210LIBS="$LIBS $NETTLE_LIBS"
66211for ac_func in nettle_gost28147_set_key
66212do :
66213  ac_fn_c_check_func "$LINENO" "nettle_gost28147_set_key" "ac_cv_func_nettle_gost28147_set_key"
66214if test "x$ac_cv_func_nettle_gost28147_set_key" = xyes; then :
66215  cat >>confdefs.h <<_ACEOF
66216#define HAVE_NETTLE_GOST28147_SET_KEY 1
66217_ACEOF
66218
66219fi
66220done
66221
66222LIBS=$save_LIBS
66223
66224# Check for Streebog support
66225save_LIBS=$LIBS
66226LIBS="$LIBS $NETTLE_LIBS"
66227for ac_func in nettle_streebog512_update
66228do :
66229  ac_fn_c_check_func "$LINENO" "nettle_streebog512_update" "ac_cv_func_nettle_streebog512_update"
66230if test "x$ac_cv_func_nettle_streebog512_update" = xyes; then :
66231  cat >>confdefs.h <<_ACEOF
66232#define HAVE_NETTLE_STREEBOG512_UPDATE 1
66233_ACEOF
66234
66235fi
66236done
66237
66238LIBS=$save_LIBS
66239
66240# Check for Curve448 and Ed448
66241have_new_ecc=yes
66242save_LIBS=$LIBS
66243LIBS="$LIBS $HOGWEED_LIBS $NETTLE_LIBS"
66244for ac_func in nettle_curve448_mul nettle_ed448_shake256_sign nettle_get_gost_gc256b nettle_get_gost_gc512a nettle_gostdsa_sign
66245do :
66246  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66247ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
66248if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
66249  cat >>confdefs.h <<_ACEOF
66250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66251_ACEOF
66252
66253else
66254  have_new_ecc=no
66255fi
66256done
66257
66258LIBS=$save_LIBS
66259if test "$have_new_ecc" != "yes"; then :
66260
66261$as_echo "#define NEED_INT_ECC 1" >>confdefs.h
66262
66263fi
66264 if test "$have_new_ecc" != "yes"; then
66265  NEED_INT_ECC_TRUE=
66266  NEED_INT_ECC_FALSE='#'
66267else
66268  NEED_INT_ECC_TRUE='#'
66269  NEED_INT_ECC_FALSE=
66270fi
66271
66272
66273# Check if nettle has ChaCha20 initial block counter support
66274have_chacha_set_counter=no
66275save_LIBS=$LIBS
66276LIBS="$LIBS $NETTLE_LIBS"
66277for ac_func in nettle_chacha_set_counter
66278do :
66279  ac_fn_c_check_func "$LINENO" "nettle_chacha_set_counter" "ac_cv_func_nettle_chacha_set_counter"
66280if test "x$ac_cv_func_nettle_chacha_set_counter" = xyes; then :
66281  cat >>confdefs.h <<_ACEOF
66282#define HAVE_NETTLE_CHACHA_SET_COUNTER 1
66283_ACEOF
66284 have_chacha_set_counter=yes
66285fi
66286done
66287
66288LIBS=$save_LIBS
66289 if test "$have_chacha_set_counter" != "yes"; then
66290  NEED_CHACHA_TRUE=
66291  NEED_CHACHA_FALSE='#'
66292else
66293  NEED_CHACHA_TRUE='#'
66294  NEED_CHACHA_FALSE=
66295fi
66296
66297
66298# Check for SIV-CMAC
66299save_LIBS=$LIBS
66300LIBS="$LIBS $NETTLE_LIBS"
66301for ac_func in nettle_siv_cmac_aes128_set_key
66302do :
66303  ac_fn_c_check_func "$LINENO" "nettle_siv_cmac_aes128_set_key" "ac_cv_func_nettle_siv_cmac_aes128_set_key"
66304if test "x$ac_cv_func_nettle_siv_cmac_aes128_set_key" = xyes; then :
66305  cat >>confdefs.h <<_ACEOF
66306#define HAVE_NETTLE_SIV_CMAC_AES128_SET_KEY 1
66307_ACEOF
66308
66309fi
66310done
66311
66312LIBS=$save_LIBS
66313 if test "$ac_cv_func_nettle_siv_cmac_aes128_set_key" != "yes"; then
66314  NEED_SIV_TRUE=
66315  NEED_SIV_FALSE='#'
66316else
66317  NEED_SIV_TRUE='#'
66318  NEED_SIV_FALSE=
66319fi
66320
66321
66322# Check sonames of the linked libraries needed for FIPS selftests.
66323save_LIBS=$LIBS
66324LIBS="$LIBS $GMP_LIBS"
66325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gmp soname" >&5
66326$as_echo_n "checking gmp soname... " >&6; }
66327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66328/* end confdefs.h.  */
66329
66330               #include <gmp.h>
66331int
66332main ()
66333{
66334
66335               mpz_t n;
66336               mpz_init(n);
66337  ;
66338  return 0;
66339}
66340_ACEOF
66341if ac_fn_c_try_link "$LINENO"; then :
66342  gmp_so=`(eval "$LDDPROG conftest$EXEEXT $LDDPOSTPROC") | grep '^libgmp\.so'`
66343else
66344  gmp_so=none
66345fi
66346rm -f core conftest.err conftest.$ac_objext \
66347    conftest$ac_exeext conftest.$ac_ext
66348if test -z "$gmp_so"; then
66349	gmp_so=none
66350fi
66351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_so" >&5
66352$as_echo "$gmp_so" >&6; }
66353
66354cat >>confdefs.h <<_ACEOF
66355#define GMP_LIBRARY_SONAME "$gmp_so"
66356_ACEOF
66357
66358LIBS=$save_LIBS
66359
66360save_LIBS=$LIBS
66361LIBS="$LIBS $NETTLE_LIBS"
66362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking nettle soname" >&5
66363$as_echo_n "checking nettle soname... " >&6; }
66364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66365/* end confdefs.h.  */
66366
66367               #include <nettle/sha2.h>
66368int
66369main ()
66370{
66371
66372               struct sha256_ctx ctx;
66373               sha256_init(&ctx);
66374  ;
66375  return 0;
66376}
66377_ACEOF
66378if ac_fn_c_try_link "$LINENO"; then :
66379  nettle_so=`(eval "$LDDPROG conftest$EXEEXT $LDDPOSTPROC") | grep '^libnettle\.so'`
66380else
66381  nettle_so=none
66382fi
66383rm -f core conftest.err conftest.$ac_objext \
66384    conftest$ac_exeext conftest.$ac_ext
66385if test -z "$nettle_so"; then
66386	nettle_so=none
66387fi
66388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_so" >&5
66389$as_echo "$nettle_so" >&6; }
66390
66391cat >>confdefs.h <<_ACEOF
66392#define NETTLE_LIBRARY_SONAME "$nettle_so"
66393_ACEOF
66394
66395LIBS=$save_LIBS
66396
66397save_LIBS=$LIBS
66398LIBS="$LIBS $HOGWEED_LIBS"
66399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking hogweed soname" >&5
66400$as_echo_n "checking hogweed soname... " >&6; }
66401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66402/* end confdefs.h.  */
66403
66404               #include <nettle/rsa.h>
66405int
66406main ()
66407{
66408
66409               struct rsa_private_key priv;
66410               nettle_rsa_private_key_init(&priv);
66411  ;
66412  return 0;
66413}
66414_ACEOF
66415if ac_fn_c_try_link "$LINENO"; then :
66416  hogweed_so=`(eval "$LDDPROG conftest$EXEEXT $LDDPOSTPROC") | grep '^libhogweed\.so'`
66417else
66418  hogweed_so=none
66419fi
66420rm -f core conftest.err conftest.$ac_objext \
66421    conftest$ac_exeext conftest.$ac_ext
66422if test -z "$hogweed_so"; then
66423	hogweed_so=none
66424fi
66425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hogweed_so" >&5
66426$as_echo "$hogweed_so" >&6; }
66427
66428cat >>confdefs.h <<_ACEOF
66429#define HOGWEED_LIBRARY_SONAME "$hogweed_so"
66430_ACEOF
66431
66432LIBS=$save_LIBS
66433
66434gnutls_so=libgnutls.so.`expr "$LT_CURRENT" - "$LT_AGE"`
66435
66436cat >>confdefs.h <<_ACEOF
66437#define GNUTLS_LIBRARY_SONAME "$gnutls_so"
66438_ACEOF
66439
66440
66441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libdane" >&5
66442$as_echo_n "checking whether to build libdane... " >&6; }
66443# Check whether --enable-libdane was given.
66444if test "${enable_libdane+set}" = set; then :
66445  enableval=$enable_libdane; enable_dane=$enableval
66446else
66447  enable_dane=yes
66448fi
66449
66450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dane" >&5
66451$as_echo "$enable_dane" >&6; }
66452
66453if test "$enable_dane" != "no"; then
66454    oldlibs="$LIBS"
66455    LIBS="$oldlibs -lunbound"
66456    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unbound library" >&5
66457$as_echo_n "checking for unbound library... " >&6; }
66458    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66459/* end confdefs.h.  */
66460
66461		   #include <unbound.h>
66462int
66463main ()
66464{
66465
66466		   struct ub_ctx* ctx;
66467		   ctx = ub_ctx_create();
66468  ;
66469  return 0;
66470}
66471_ACEOF
66472if ac_fn_c_try_link "$LINENO"; then :
66473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66474$as_echo "yes" >&6; }
66475		   UNBOUND_LIBS=-lunbound
66476
66477
66478
66479$as_echo "#define HAVE_DANE 1" >>confdefs.h
66480
66481		   enable_dane=yes
66482else
66483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66484$as_echo "no" >&6; }
66485		   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
66486***
66487*** libunbound was not found. Libdane will not be built.
66488*** " >&5
66489$as_echo "$as_me: WARNING:
66490***
66491*** libunbound was not found. Libdane will not be built.
66492*** " >&2;}
66493		  enable_dane=no
66494fi
66495rm -f core conftest.err conftest.$ac_objext \
66496    conftest$ac_exeext conftest.$ac_ext
66497    LIBS="$oldlibs"
66498fi
66499
66500 if test "$enable_dane" = "yes"; then
66501  ENABLE_DANE_TRUE=
66502  ENABLE_DANE_FALSE='#'
66503else
66504  ENABLE_DANE_TRUE='#'
66505  ENABLE_DANE_FALSE=
66506fi
66507
66508
66509
66510# Check whether --with-unbound-root-key-file was given.
66511if test "${with_unbound_root_key_file+set}" = set; then :
66512  withval=$with_unbound_root_key_file; unbound_root_key_file="$withval"
66513else
66514  if test "$have_win" = yes; then
66515    unbound_root_key_file="C:\\Program Files\\Unbound\\root.key"
66516else
66517    if test -f /var/lib/unbound/root.key;then
66518	unbound_root_key_file="/var/lib/unbound/root.key"
66519    else
66520        if test -f /usr/share/dns/root.key;then
66521	    unbound_root_key_file="/usr/share/dns/root.key"
66522        else
66523            unbound_root_key_file="/etc/unbound/root.key"
66524        fi
66525    fi
66526fi
66527
66528fi
66529
66530
66531
66532cat >>confdefs.h <<_ACEOF
66533#define UNBOUND_ROOT_KEY_FILE "$unbound_root_key_file"
66534_ACEOF
66535
66536
66537system_config_file="/etc/gnutls/config"
66538
66539# Check whether --with-system-priority-file was given.
66540if test "${with_system_priority_file+set}" = set; then :
66541  withval=$with_system_priority_file; system_config_file="$withval"
66542
66543fi
66544
66545
66546 if test -z "${system_config_file}"; then
66547  DISABLE_SYSTEM_CONFIG_TRUE=
66548  DISABLE_SYSTEM_CONFIG_FALSE='#'
66549else
66550  DISABLE_SYSTEM_CONFIG_TRUE='#'
66551  DISABLE_SYSTEM_CONFIG_FALSE=
66552fi
66553
66554
66555if test -z "${system_config_file}";then
66556
66557$as_echo "#define DISABLE_SYSTEM_CONFIG 1" >>confdefs.h
66558
66559fi
66560
66561
66562cat >>confdefs.h <<_ACEOF
66563#define SYSTEM_PRIORITY_FILE "$system_config_file"
66564_ACEOF
66565
66566
66567
66568# Check whether --with-default-priority-string was given.
66569if test "${with_default_priority_string+set}" = set; then :
66570  withval=$with_default_priority_string; prio_string="$withval"
66571else
66572  prio_string="NORMAL"
66573fi
66574
66575
66576
66577cat >>confdefs.h <<_ACEOF
66578#define DEFAULT_PRIORITY_STRING "$prio_string"
66579_ACEOF
66580
66581
66582P11_KIT_MINIMUM=0.23.1
66583
66584# Check whether --with-p11-kit was given.
66585if test "${with_p11_kit+set}" = set; then :
66586  withval=$with_p11_kit;
66587fi
66588
66589if test "$with_p11_kit" != "no"; then
66590
66591pkg_failed=no
66592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
66593$as_echo_n "checking for P11_KIT... " >&6; }
66594
66595if test -n "$P11_KIT_CFLAGS"; then
66596    pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
66597 elif test -n "$PKG_CONFIG"; then
66598    if test -n "$PKG_CONFIG" && \
66599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
66600  ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
66601  ac_status=$?
66602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66603  test $ac_status = 0; }; then
66604  pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
66605		      test "x$?" != "x0" && pkg_failed=yes
66606else
66607  pkg_failed=yes
66608fi
66609 else
66610    pkg_failed=untried
66611fi
66612if test -n "$P11_KIT_LIBS"; then
66613    pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
66614 elif test -n "$PKG_CONFIG"; then
66615    if test -n "$PKG_CONFIG" && \
66616    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
66617  ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
66618  ac_status=$?
66619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66620  test $ac_status = 0; }; then
66621  pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
66622		      test "x$?" != "x0" && pkg_failed=yes
66623else
66624  pkg_failed=yes
66625fi
66626 else
66627    pkg_failed=untried
66628fi
66629
66630
66631
66632if test $pkg_failed = yes; then
66633   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66634$as_echo "no" >&6; }
66635
66636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66637        _pkg_short_errors_supported=yes
66638else
66639        _pkg_short_errors_supported=no
66640fi
66641        if test $_pkg_short_errors_supported = yes; then
66642	        P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "p11-kit-1 >= $P11_KIT_MINIMUM" 2>&1`
66643        else
66644	        P11_KIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "p11-kit-1 >= $P11_KIT_MINIMUM" 2>&1`
66645        fi
66646	# Put the nasty error message in config.log where it belongs
66647	echo "$P11_KIT_PKG_ERRORS" >&5
66648
66649	with_p11_kit=no
66650elif test $pkg_failed = untried; then
66651     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66652$as_echo "no" >&6; }
66653	with_p11_kit=no
66654else
66655	P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
66656	P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
66657        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66658$as_echo "yes" >&6; }
66659	with_p11_kit=yes
66660fi
66661	if test "$with_p11_kit" != "no";then
66662
66663$as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
66664
66665		if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
66666			GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
66667		else
66668			GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
66669		fi
66670	else
66671	        with_p11_kit=no
66672	        as_fn_error $? "
66673***
66674*** p11-kit >= $P11_KIT_MINIMUM was not found. To disable PKCS #11 support
66675*** use --without-p11-kit, otherwise you may get p11-kit from
66676*** https://p11-glue.freedesktop.org/p11-kit.html
66677*** " "$LINENO" 5
66678	fi
66679fi
66680
66681 if $PKG_CONFIG --atleast-version=0.23.11 p11-kit-1; then
66682  P11KIT_0_23_11_API_TRUE=
66683  P11KIT_0_23_11_API_FALSE='#'
66684else
66685  P11KIT_0_23_11_API_TRUE='#'
66686  P11KIT_0_23_11_API_FALSE=
66687fi
66688
66689
66690 if test "$with_p11_kit" != "no"; then
66691  ENABLE_PKCS11_TRUE=
66692  ENABLE_PKCS11_FALSE='#'
66693else
66694  ENABLE_PKCS11_TRUE='#'
66695  ENABLE_PKCS11_FALSE=
66696fi
66697
66698
66699
66700# Check whether --with-tpm was given.
66701if test "${with_tpm+set}" = set; then :
66702  withval=$with_tpm; with_tpm=$withval
66703else
66704  with_tpm=yes
66705fi
66706
66707if test "$with_tpm" != "no"; then
66708    oldlibs="$LIBS"
66709    LIBS="$oldlibs -ltspi"
66710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tss library" >&5
66711$as_echo_n "checking for tss library... " >&6; }
66712    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66713/* end confdefs.h.  */
66714
66715		   #include <trousers/tss.h>
66716		   #include <trousers/trousers.h>
66717int
66718main ()
66719{
66720
66721		   int err = Tspi_Context_Create((void *)0);
66722		   Trspi_Error_String(err);
66723  ;
66724  return 0;
66725}
66726_ACEOF
66727if ac_fn_c_try_link "$LINENO"; then :
66728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66729$as_echo "yes" >&6; }
66730		   TSS_LIBS=-ltspi
66731
66732
66733
66734$as_echo "#define HAVE_TROUSERS 1" >>confdefs.h
66735
66736		   with_tpm=yes
66737else
66738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66739$as_echo "no" >&6; }
66740		   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
66741***
66742*** trousers was not found. TPM support will be disabled.
66743*** " >&5
66744$as_echo "$as_me: WARNING:
66745***
66746*** trousers was not found. TPM support will be disabled.
66747*** " >&2;}
66748		  with_tpm=no
66749fi
66750rm -f core conftest.err conftest.$ac_objext \
66751    conftest$ac_exeext conftest.$ac_ext
66752    LIBS="$oldlibs"
66753fi
66754
66755 if test "$with_tpm" != "no"; then
66756  ENABLE_TROUSERS_TRUE=
66757  ENABLE_TROUSERS_FALSE='#'
66758else
66759  ENABLE_TROUSERS_TRUE='#'
66760  ENABLE_TROUSERS_FALSE=
66761fi
66762
66763
66764for l in /usr/lib64 /usr/lib /lib64 /lib /usr/lib/x86_64-linux-gnu/; do
66765    if test -f "${l}/libtspi.so.1";then
66766        default_trousers_lib="${l}/libtspi.so.1"
66767        break
66768    fi
66769done
66770
66771
66772# Check whether --with-trousers-lib was given.
66773if test "${with_trousers_lib+set}" = set; then :
66774  withval=$with_trousers_lib; ac_trousers_lib=$withval
66775else
66776  ac_trousers_lib=$default_trousers_lib
66777fi
66778
66779
66780if test "$with_tpm" != "no" && test -z "$ac_trousers_lib"; then
66781    as_fn_error $? "
66782  ***
66783  *** unable to find trousers library, please specify with --with-trousers-lib=<lib file>
66784  ***
66785  " "$LINENO" 5
66786fi
66787
66788
66789cat >>confdefs.h <<_ACEOF
66790#define TROUSERS_LIB "$ac_trousers_lib"
66791_ACEOF
66792
66793
66794
66795
66796AUTOGEN=${AUTOGEN-"${am_missing_run}autogen"}
66797
66798
66799included_libopts=no
66800if test "$enable_tools" != "no" || test "$enable_doc" != "no"; then
66801	for ac_prog in autogen
66802do
66803  # Extract the first word of "$ac_prog", so it can be a program name with args.
66804set dummy $ac_prog; ac_word=$2
66805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
66806$as_echo_n "checking for $ac_word... " >&6; }
66807if ${ac_cv_prog_autogen+:} false; then :
66808  $as_echo_n "(cached) " >&6
66809else
66810  if test -n "$autogen"; then
66811  ac_cv_prog_autogen="$autogen" # Let the user override the test.
66812else
66813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66814for as_dir in $PATH
66815do
66816  IFS=$as_save_IFS
66817  test -z "$as_dir" && as_dir=.
66818    for ac_exec_ext in '' $ac_executable_extensions; do
66819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66820    ac_cv_prog_autogen="$ac_prog"
66821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
66822    break 2
66823  fi
66824done
66825  done
66826IFS=$as_save_IFS
66827
66828fi
66829fi
66830autogen=$ac_cv_prog_autogen
66831if test -n "$autogen"; then
66832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $autogen" >&5
66833$as_echo "$autogen" >&6; }
66834else
66835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66836$as_echo "no" >&6; }
66837fi
66838
66839
66840  test -n "$autogen" && break
66841done
66842
66843
66844	if test -z "$autogen"; then
66845		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
66846***
66847*** autogen not found. Will not link against system libopts.
66848*** " >&5
66849$as_echo "$as_me: WARNING:
66850***
66851*** autogen not found. Will not link against system libopts.
66852*** " >&2;}
66853				included_libopts=yes
66854	fi
66855
66856
66857  ac_header_dirent=no
66858for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
66859  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
66860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
66861$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
66862if eval \${$as_ac_Header+:} false; then :
66863  $as_echo_n "(cached) " >&6
66864else
66865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66866/* end confdefs.h.  */
66867#include <sys/types.h>
66868#include <$ac_hdr>
66869
66870int
66871main ()
66872{
66873if ((DIR *) 0)
66874return 0;
66875  ;
66876  return 0;
66877}
66878_ACEOF
66879if ac_fn_c_try_compile "$LINENO"; then :
66880  eval "$as_ac_Header=yes"
66881else
66882  eval "$as_ac_Header=no"
66883fi
66884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66885fi
66886eval ac_res=\$$as_ac_Header
66887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
66888$as_echo "$ac_res" >&6; }
66889if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
66890  cat >>confdefs.h <<_ACEOF
66891#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
66892_ACEOF
66893
66894ac_header_dirent=$ac_hdr; break
66895fi
66896
66897done
66898# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
66899if test $ac_header_dirent = dirent.h; then
66900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
66901$as_echo_n "checking for library containing opendir... " >&6; }
66902if ${ac_cv_search_opendir+:} false; then :
66903  $as_echo_n "(cached) " >&6
66904else
66905  ac_func_search_save_LIBS=$LIBS
66906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66907/* end confdefs.h.  */
66908
66909/* Override any GCC internal prototype to avoid an error.
66910   Use char because int might match the return type of a GCC
66911   builtin and then its argument prototype would still apply.  */
66912#ifdef __cplusplus
66913extern "C"
66914#endif
66915char opendir ();
66916int
66917main ()
66918{
66919return opendir ();
66920  ;
66921  return 0;
66922}
66923_ACEOF
66924for ac_lib in '' dir; do
66925  if test -z "$ac_lib"; then
66926    ac_res="none required"
66927  else
66928    ac_res=-l$ac_lib
66929    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
66930  fi
66931  if ac_fn_c_try_link "$LINENO"; then :
66932  ac_cv_search_opendir=$ac_res
66933fi
66934rm -f core conftest.err conftest.$ac_objext \
66935    conftest$ac_exeext
66936  if ${ac_cv_search_opendir+:} false; then :
66937  break
66938fi
66939done
66940if ${ac_cv_search_opendir+:} false; then :
66941
66942else
66943  ac_cv_search_opendir=no
66944fi
66945rm conftest.$ac_ext
66946LIBS=$ac_func_search_save_LIBS
66947fi
66948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
66949$as_echo "$ac_cv_search_opendir" >&6; }
66950ac_res=$ac_cv_search_opendir
66951if test "$ac_res" != no; then :
66952  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
66953
66954fi
66955
66956else
66957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
66958$as_echo_n "checking for library containing opendir... " >&6; }
66959if ${ac_cv_search_opendir+:} false; then :
66960  $as_echo_n "(cached) " >&6
66961else
66962  ac_func_search_save_LIBS=$LIBS
66963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66964/* end confdefs.h.  */
66965
66966/* Override any GCC internal prototype to avoid an error.
66967   Use char because int might match the return type of a GCC
66968   builtin and then its argument prototype would still apply.  */
66969#ifdef __cplusplus
66970extern "C"
66971#endif
66972char opendir ();
66973int
66974main ()
66975{
66976return opendir ();
66977  ;
66978  return 0;
66979}
66980_ACEOF
66981for ac_lib in '' x; do
66982  if test -z "$ac_lib"; then
66983    ac_res="none required"
66984  else
66985    ac_res=-l$ac_lib
66986    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
66987  fi
66988  if ac_fn_c_try_link "$LINENO"; then :
66989  ac_cv_search_opendir=$ac_res
66990fi
66991rm -f core conftest.err conftest.$ac_objext \
66992    conftest$ac_exeext
66993  if ${ac_cv_search_opendir+:} false; then :
66994  break
66995fi
66996done
66997if ${ac_cv_search_opendir+:} false; then :
66998
66999else
67000  ac_cv_search_opendir=no
67001fi
67002rm conftest.$ac_ext
67003LIBS=$ac_func_search_save_LIBS
67004fi
67005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
67006$as_echo "$ac_cv_search_opendir" >&6; }
67007ac_res=$ac_cv_search_opendir
67008if test "$ac_res" != no; then :
67009  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
67010
67011fi
67012
67013fi
67014
67015
67016  # =================
67017  # AC_CHECK_HEADERS
67018  # =================
67019  for ac_header in  \
67020      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
67021      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
67022      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
67023      fcntl.h       libgen.h      libintl.h     memory.h \
67024      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
67025      unistd.h      utime.h
67026do :
67027  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
67028ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
67029if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
67030  cat >>confdefs.h <<_ACEOF
67031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
67032_ACEOF
67033
67034fi
67035
67036done
67037
67038
67039  for ac_header in stdarg.h     varargs.h
67040do :
67041  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
67042ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
67043if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
67044  cat >>confdefs.h <<_ACEOF
67045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
67046_ACEOF
67047 lo_have_arg_hdr=true;break
67048else
67049  lo_have_arg_hdr=false
67050fi
67051
67052done
67053
67054
67055  for ac_header in string.h     strings.h
67056do :
67057  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
67058ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
67059if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
67060  cat >>confdefs.h <<_ACEOF
67061#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
67062_ACEOF
67063 lo_have_str_hdr=true;break
67064else
67065  lo_have_str_hdr=false
67066fi
67067
67068done
67069
67070
67071  for ac_header in limits.h     sys/limits.h  values.h
67072do :
67073  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
67074ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
67075if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
67076  cat >>confdefs.h <<_ACEOF
67077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
67078_ACEOF
67079 lo_have_lim_hdr=true;break
67080else
67081  lo_have_lim_hdr=false
67082fi
67083
67084done
67085
67086
67087  for ac_header in inttypes.h   stdint.h
67088do :
67089  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
67090ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
67091if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
67092  cat >>confdefs.h <<_ACEOF
67093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
67094_ACEOF
67095 lo_have_typ_hdr=true;break
67096else
67097  lo_have_typ_hdr=false
67098fi
67099
67100done
67101
67102
67103
67104  case "$host_os" in
67105    cygwin*)
67106                        STDNORETURN_H='stdnoreturn.h'
67107      ;;
67108    *)
67109      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
67110$as_echo_n "checking for working stdnoreturn.h... " >&6; }
67111if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
67112  $as_echo_n "(cached) " >&6
67113else
67114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67115/* end confdefs.h.  */
67116#include <stdlib.h>
67117                #include <stdnoreturn.h>
67118                /* Do not check for 'noreturn' after the return type.
67119                   C11 allows it, but it's rarely done that way
67120                   and circa-2012 bleeding-edge GCC rejects it when given
67121                   -Werror=old-style-declaration.  */
67122                noreturn void foo1 (void) { exit (0); }
67123                _Noreturn void foo2 (void) { exit (0); }
67124                int testit (int argc, char **argv)
67125                {
67126                  if (argc & 1)
67127                    return 0;
67128                  (argv[0][0] ? foo1 : foo2) ();
67129                }
67130
67131int
67132main ()
67133{
67134
67135  ;
67136  return 0;
67137}
67138_ACEOF
67139if ac_fn_c_try_compile "$LINENO"; then :
67140  gl_cv_header_working_stdnoreturn_h=yes
67141else
67142  gl_cv_header_working_stdnoreturn_h=no
67143fi
67144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67145fi
67146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
67147$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
67148      if test $gl_cv_header_working_stdnoreturn_h = yes; then
67149        STDNORETURN_H=''
67150      else
67151        STDNORETURN_H='stdnoreturn.h'
67152      fi
67153      ;;
67154  esac
67155
67156   if test -n "$STDNORETURN_H"; then
67157  GL_GENERATE_STDNORETURN_H_TRUE=
67158  GL_GENERATE_STDNORETURN_H_FALSE='#'
67159else
67160  GL_GENERATE_STDNORETURN_H_TRUE='#'
67161  GL_GENERATE_STDNORETURN_H_FALSE=
67162fi
67163
67164
67165
67166  # ----------------------------------------------------------------------
67167  # check for various programs used during the build.
67168  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
67169  # ----------------------------------------------------------------------
67170  for ac_header in runetype.h wchar.h
67171do :
67172  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
67173ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
67174  $ac_includes_default
67175  #if HAVE_RUNETYPE_H
67176  # include <runetype.h>
67177  #endif
67178
67179"
67180if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
67181  cat >>confdefs.h <<_ACEOF
67182#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
67183_ACEOF
67184
67185fi
67186
67187done
67188
67189
67190  # Check whether --enable-nls was given.
67191if test "${enable_nls+set}" = set; then :
67192  enableval=$enable_nls;
67193fi
67194
67195  if test "x$enable_nls" != "xno" && \
67196  test "X${ac_cv_header_libintl_h}" = Xyes; then :
67197
67198
67199$as_echo "#define ENABLE_NLS 1" >>confdefs.h
67200
67201fi
67202
67203  # --------------------------------------------
67204  # Verify certain entries from AC_CHECK_HEADERS
67205  # --------------------------------------------
67206  ${lo_have_arg_hdr} || \
67207    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
67208
67209  ${lo_have_str_hdr} || \
67210    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
67211
67212  ${lo_have_lim_hdr} || \
67213    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
67214
67215  ${lo_have_typ_hdr} || \
67216    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
67217
67218  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
67219  do eval as_ac_var=\${ac_cv_header_${f}_h}
67220     test "X${as_ac_var}" = Xyes || {
67221       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
67222     }
67223  done
67224  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
67225    echo '#include <stdint.h>' > inttypes.h
67226
67227  # ----------------------------------------------------------------------
67228  # Checks for typedefs
67229  # ----------------------------------------------------------------------
67230  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
67231if test "x$ac_cv_type_wchar_t" = xyes; then :
67232
67233cat >>confdefs.h <<_ACEOF
67234#define HAVE_WCHAR_T 1
67235_ACEOF
67236
67237
67238fi
67239
67240  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
67241    $ac_includes_default
67242    #if HAVE_RUNETYPE_H
67243    # include <runetype.h>
67244    #endif
67245    #if HAVE_WCHAR_H
67246    # include <wchar.h>
67247    #endif
67248
67249"
67250if test "x$ac_cv_type_wint_t" = xyes; then :
67251
67252cat >>confdefs.h <<_ACEOF
67253#define HAVE_WINT_T 1
67254_ACEOF
67255
67256
67257fi
67258
67259  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
67260if test "x$ac_cv_type_int8_t" = xyes; then :
67261
67262cat >>confdefs.h <<_ACEOF
67263#define HAVE_INT8_T 1
67264_ACEOF
67265
67266
67267fi
67268ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
67269if test "x$ac_cv_type_uint8_t" = xyes; then :
67270
67271cat >>confdefs.h <<_ACEOF
67272#define HAVE_UINT8_T 1
67273_ACEOF
67274
67275
67276fi
67277ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
67278if test "x$ac_cv_type_int16_t" = xyes; then :
67279
67280cat >>confdefs.h <<_ACEOF
67281#define HAVE_INT16_T 1
67282_ACEOF
67283
67284
67285fi
67286ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
67287if test "x$ac_cv_type_uint16_t" = xyes; then :
67288
67289cat >>confdefs.h <<_ACEOF
67290#define HAVE_UINT16_T 1
67291_ACEOF
67292
67293
67294fi
67295ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
67296if test "x$ac_cv_type_int32_t" = xyes; then :
67297
67298cat >>confdefs.h <<_ACEOF
67299#define HAVE_INT32_T 1
67300_ACEOF
67301
67302
67303fi
67304ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
67305if test "x$ac_cv_type_uint32_t" = xyes; then :
67306
67307cat >>confdefs.h <<_ACEOF
67308#define HAVE_UINT32_T 1
67309_ACEOF
67310
67311
67312fi
67313ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
67314if test "x$ac_cv_type_intptr_t" = xyes; then :
67315
67316cat >>confdefs.h <<_ACEOF
67317#define HAVE_INTPTR_T 1
67318_ACEOF
67319
67320
67321fi
67322ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
67323if test "x$ac_cv_type_uintptr_t" = xyes; then :
67324
67325cat >>confdefs.h <<_ACEOF
67326#define HAVE_UINTPTR_T 1
67327_ACEOF
67328
67329
67330fi
67331ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
67332if test "x$ac_cv_type_uint_t" = xyes; then :
67333
67334cat >>confdefs.h <<_ACEOF
67335#define HAVE_UINT_T 1
67336_ACEOF
67337
67338
67339fi
67340ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
67341if test "x$ac_cv_type_pid_t" = xyes; then :
67342
67343cat >>confdefs.h <<_ACEOF
67344#define HAVE_PID_T 1
67345_ACEOF
67346
67347
67348fi
67349ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
67350if test "x$ac_cv_type_size_t" = xyes; then :
67351
67352cat >>confdefs.h <<_ACEOF
67353#define HAVE_SIZE_T 1
67354_ACEOF
67355
67356
67357fi
67358ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
67359if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
67360
67361cat >>confdefs.h <<_ACEOF
67362#define HAVE_PTRDIFF_T 1
67363_ACEOF
67364
67365
67366fi
67367
67368  # The cast to long int works around a bug in the HP C Compiler
67369# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
67370# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
67371# This bug is HP SR number 8606223364.
67372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
67373$as_echo_n "checking size of char *... " >&6; }
67374if ${ac_cv_sizeof_char_p+:} false; then :
67375  $as_echo_n "(cached) " >&6
67376else
67377  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
67378
67379else
67380  if test "$ac_cv_type_char_p" = yes; then
67381     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
67382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
67383as_fn_error 77 "cannot compute sizeof (char *)
67384See \`config.log' for more details" "$LINENO" 5; }
67385   else
67386     ac_cv_sizeof_char_p=0
67387   fi
67388fi
67389
67390fi
67391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
67392$as_echo "$ac_cv_sizeof_char_p" >&6; }
67393
67394
67395
67396cat >>confdefs.h <<_ACEOF
67397#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
67398_ACEOF
67399
67400
67401  # The cast to long int works around a bug in the HP C Compiler
67402# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
67403# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
67404# This bug is HP SR number 8606223364.
67405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
67406$as_echo_n "checking size of int... " >&6; }
67407if ${ac_cv_sizeof_int+:} false; then :
67408  $as_echo_n "(cached) " >&6
67409else
67410  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
67411
67412else
67413  if test "$ac_cv_type_int" = yes; then
67414     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
67415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
67416as_fn_error 77 "cannot compute sizeof (int)
67417See \`config.log' for more details" "$LINENO" 5; }
67418   else
67419     ac_cv_sizeof_int=0
67420   fi
67421fi
67422
67423fi
67424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
67425$as_echo "$ac_cv_sizeof_int" >&6; }
67426
67427
67428
67429cat >>confdefs.h <<_ACEOF
67430#define SIZEOF_INT $ac_cv_sizeof_int
67431_ACEOF
67432
67433
67434  # The cast to long int works around a bug in the HP C Compiler
67435# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
67436# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
67437# This bug is HP SR number 8606223364.
67438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
67439$as_echo_n "checking size of long... " >&6; }
67440if ${ac_cv_sizeof_long+:} false; then :
67441  $as_echo_n "(cached) " >&6
67442else
67443  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
67444
67445else
67446  if test "$ac_cv_type_long" = yes; then
67447     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
67448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
67449as_fn_error 77 "cannot compute sizeof (long)
67450See \`config.log' for more details" "$LINENO" 5; }
67451   else
67452     ac_cv_sizeof_long=0
67453   fi
67454fi
67455
67456fi
67457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
67458$as_echo "$ac_cv_sizeof_long" >&6; }
67459
67460
67461
67462cat >>confdefs.h <<_ACEOF
67463#define SIZEOF_LONG $ac_cv_sizeof_long
67464_ACEOF
67465
67466
67467  # The cast to long int works around a bug in the HP C Compiler
67468# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
67469# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
67470# This bug is HP SR number 8606223364.
67471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
67472$as_echo_n "checking size of short... " >&6; }
67473if ${ac_cv_sizeof_short+:} false; then :
67474  $as_echo_n "(cached) " >&6
67475else
67476  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
67477
67478else
67479  if test "$ac_cv_type_short" = yes; then
67480     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
67481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
67482as_fn_error 77 "cannot compute sizeof (short)
67483See \`config.log' for more details" "$LINENO" 5; }
67484   else
67485     ac_cv_sizeof_short=0
67486   fi
67487fi
67488
67489fi
67490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
67491$as_echo "$ac_cv_sizeof_short" >&6; }
67492
67493
67494
67495cat >>confdefs.h <<_ACEOF
67496#define SIZEOF_SHORT $ac_cv_sizeof_short
67497_ACEOF
67498
67499
67500
67501  # ------------
67502  # AC_CHECK_LIB
67503  # ------------
67504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
67505$as_echo_n "checking for pathfind in -lgen... " >&6; }
67506if ${ac_cv_lib_gen_pathfind+:} false; then :
67507  $as_echo_n "(cached) " >&6
67508else
67509  ac_check_lib_save_LIBS=$LIBS
67510LIBS="-lgen  $LIBS"
67511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67512/* end confdefs.h.  */
67513
67514/* Override any GCC internal prototype to avoid an error.
67515   Use char because int might match the return type of a GCC
67516   builtin and then its argument prototype would still apply.  */
67517#ifdef __cplusplus
67518extern "C"
67519#endif
67520char pathfind ();
67521int
67522main ()
67523{
67524return pathfind ();
67525  ;
67526  return 0;
67527}
67528_ACEOF
67529if ac_fn_c_try_link "$LINENO"; then :
67530  ac_cv_lib_gen_pathfind=yes
67531else
67532  ac_cv_lib_gen_pathfind=no
67533fi
67534rm -f core conftest.err conftest.$ac_objext \
67535    conftest$ac_exeext conftest.$ac_ext
67536LIBS=$ac_check_lib_save_LIBS
67537fi
67538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
67539$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
67540if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
67541  cat >>confdefs.h <<_ACEOF
67542#define HAVE_LIBGEN 1
67543_ACEOF
67544
67545  LIBS="-lgen $LIBS"
67546
67547fi
67548
67549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
67550$as_echo_n "checking for gettext in -lintl... " >&6; }
67551if ${ac_cv_lib_intl_gettext+:} false; then :
67552  $as_echo_n "(cached) " >&6
67553else
67554  ac_check_lib_save_LIBS=$LIBS
67555LIBS="-lintl  $LIBS"
67556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67557/* end confdefs.h.  */
67558
67559/* Override any GCC internal prototype to avoid an error.
67560   Use char because int might match the return type of a GCC
67561   builtin and then its argument prototype would still apply.  */
67562#ifdef __cplusplus
67563extern "C"
67564#endif
67565char gettext ();
67566int
67567main ()
67568{
67569return gettext ();
67570  ;
67571  return 0;
67572}
67573_ACEOF
67574if ac_fn_c_try_link "$LINENO"; then :
67575  ac_cv_lib_intl_gettext=yes
67576else
67577  ac_cv_lib_intl_gettext=no
67578fi
67579rm -f core conftest.err conftest.$ac_objext \
67580    conftest$ac_exeext conftest.$ac_ext
67581LIBS=$ac_check_lib_save_LIBS
67582fi
67583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
67584$as_echo "$ac_cv_lib_intl_gettext" >&6; }
67585if test "x$ac_cv_lib_intl_gettext" = xyes; then :
67586  cat >>confdefs.h <<_ACEOF
67587#define HAVE_LIBINTL 1
67588_ACEOF
67589
67590  LIBS="-lintl $LIBS"
67591
67592fi
67593
67594  for ac_func in vprintf
67595do :
67596  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
67597if test "x$ac_cv_func_vprintf" = xyes; then :
67598  cat >>confdefs.h <<_ACEOF
67599#define HAVE_VPRINTF 1
67600_ACEOF
67601
67602ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
67603if test "x$ac_cv_func__doprnt" = xyes; then :
67604
67605$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
67606
67607fi
67608
67609fi
67610done
67611
67612
67613  for ac_header in vfork.h
67614do :
67615  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
67616if test "x$ac_cv_header_vfork_h" = xyes; then :
67617  cat >>confdefs.h <<_ACEOF
67618#define HAVE_VFORK_H 1
67619_ACEOF
67620
67621fi
67622
67623done
67624
67625for ac_func in fork vfork
67626do :
67627  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67628ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
67629if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
67630  cat >>confdefs.h <<_ACEOF
67631#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67632_ACEOF
67633
67634fi
67635done
67636
67637if test "x$ac_cv_func_fork" = xyes; then
67638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
67639$as_echo_n "checking for working fork... " >&6; }
67640if ${ac_cv_func_fork_works+:} false; then :
67641  $as_echo_n "(cached) " >&6
67642else
67643  if test "$cross_compiling" = yes; then :
67644  ac_cv_func_fork_works=cross
67645else
67646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67647/* end confdefs.h.  */
67648$ac_includes_default
67649int
67650main ()
67651{
67652
67653	  /* By Ruediger Kuhlmann. */
67654	  return fork () < 0;
67655
67656  ;
67657  return 0;
67658}
67659_ACEOF
67660if ac_fn_c_try_run "$LINENO"; then :
67661  ac_cv_func_fork_works=yes
67662else
67663  ac_cv_func_fork_works=no
67664fi
67665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67666  conftest.$ac_objext conftest.beam conftest.$ac_ext
67667fi
67668
67669fi
67670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
67671$as_echo "$ac_cv_func_fork_works" >&6; }
67672
67673else
67674  ac_cv_func_fork_works=$ac_cv_func_fork
67675fi
67676if test "x$ac_cv_func_fork_works" = xcross; then
67677  case $host in
67678    *-*-amigaos* | *-*-msdosdjgpp*)
67679      # Override, as these systems have only a dummy fork() stub
67680      ac_cv_func_fork_works=no
67681      ;;
67682    *)
67683      ac_cv_func_fork_works=yes
67684      ;;
67685  esac
67686  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
67687$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
67688fi
67689ac_cv_func_vfork_works=$ac_cv_func_vfork
67690if test "x$ac_cv_func_vfork" = xyes; then
67691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
67692$as_echo_n "checking for working vfork... " >&6; }
67693if ${ac_cv_func_vfork_works+:} false; then :
67694  $as_echo_n "(cached) " >&6
67695else
67696  if test "$cross_compiling" = yes; then :
67697  ac_cv_func_vfork_works=cross
67698else
67699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67700/* end confdefs.h.  */
67701/* Thanks to Paul Eggert for this test.  */
67702$ac_includes_default
67703#include <sys/wait.h>
67704#ifdef HAVE_VFORK_H
67705# include <vfork.h>
67706#endif
67707/* On some sparc systems, changes by the child to local and incoming
67708   argument registers are propagated back to the parent.  The compiler
67709   is told about this with #include <vfork.h>, but some compilers
67710   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
67711   static variable whose address is put into a register that is
67712   clobbered by the vfork.  */
67713static void
67714#ifdef __cplusplus
67715sparc_address_test (int arg)
67716# else
67717sparc_address_test (arg) int arg;
67718#endif
67719{
67720  static pid_t child;
67721  if (!child) {
67722    child = vfork ();
67723    if (child < 0) {
67724      perror ("vfork");
67725      _exit(2);
67726    }
67727    if (!child) {
67728      arg = getpid();
67729      write(-1, "", 0);
67730      _exit (arg);
67731    }
67732  }
67733}
67734
67735int
67736main ()
67737{
67738  pid_t parent = getpid ();
67739  pid_t child;
67740
67741  sparc_address_test (0);
67742
67743  child = vfork ();
67744
67745  if (child == 0) {
67746    /* Here is another test for sparc vfork register problems.  This
67747       test uses lots of local variables, at least as many local
67748       variables as main has allocated so far including compiler
67749       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
67750       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
67751       reuse the register of parent for one of the local variables,
67752       since it will think that parent can't possibly be used any more
67753       in this routine.  Assigning to the local variable will thus
67754       munge parent in the parent process.  */
67755    pid_t
67756      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
67757      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
67758    /* Convince the compiler that p..p7 are live; otherwise, it might
67759       use the same hardware register for all 8 local variables.  */
67760    if (p != p1 || p != p2 || p != p3 || p != p4
67761	|| p != p5 || p != p6 || p != p7)
67762      _exit(1);
67763
67764    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
67765       from child file descriptors.  If the child closes a descriptor
67766       before it execs or exits, this munges the parent's descriptor
67767       as well.  Test for this by closing stdout in the child.  */
67768    _exit(close(fileno(stdout)) != 0);
67769  } else {
67770    int status;
67771    struct stat st;
67772
67773    while (wait(&status) != child)
67774      ;
67775    return (
67776	 /* Was there some problem with vforking?  */
67777	 child < 0
67778
67779	 /* Did the child fail?  (This shouldn't happen.)  */
67780	 || status
67781
67782	 /* Did the vfork/compiler bug occur?  */
67783	 || parent != getpid()
67784
67785	 /* Did the file descriptor bug occur?  */
67786	 || fstat(fileno(stdout), &st) != 0
67787	 );
67788  }
67789}
67790_ACEOF
67791if ac_fn_c_try_run "$LINENO"; then :
67792  ac_cv_func_vfork_works=yes
67793else
67794  ac_cv_func_vfork_works=no
67795fi
67796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67797  conftest.$ac_objext conftest.beam conftest.$ac_ext
67798fi
67799
67800fi
67801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
67802$as_echo "$ac_cv_func_vfork_works" >&6; }
67803
67804fi;
67805if test "x$ac_cv_func_fork_works" = xcross; then
67806  ac_cv_func_vfork_works=$ac_cv_func_vfork
67807  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
67808$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
67809fi
67810
67811if test "x$ac_cv_func_vfork_works" = xyes; then
67812
67813$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
67814
67815else
67816
67817$as_echo "#define vfork fork" >>confdefs.h
67818
67819fi
67820if test "x$ac_cv_func_fork_works" = xyes; then
67821
67822$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
67823
67824fi
67825
67826  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
67827                 strrchr strsignal fchmod fstat chmod
67828do :
67829  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67830ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
67831if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
67832  cat >>confdefs.h <<_ACEOF
67833#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67834_ACEOF
67835
67836fi
67837done
67838
67839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
67840$as_echo_n "checking for a sed that does not truncate output... " >&6; }
67841if ${ac_cv_path_SED+:} false; then :
67842  $as_echo_n "(cached) " >&6
67843else
67844            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
67845     for ac_i in 1 2 3 4 5 6 7; do
67846       ac_script="$ac_script$as_nl$ac_script"
67847     done
67848     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
67849     { ac_script=; unset ac_script;}
67850     if test -z "$SED"; then
67851  ac_path_SED_found=false
67852  # Loop through the user's path and test for each of PROGNAME-LIST
67853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
67854for as_dir in $PATH
67855do
67856  IFS=$as_save_IFS
67857  test -z "$as_dir" && as_dir=.
67858    for ac_prog in sed gsed; do
67859    for ac_exec_ext in '' $ac_executable_extensions; do
67860      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
67861      as_fn_executable_p "$ac_path_SED" || continue
67862# Check for GNU ac_path_SED and select it if it is found.
67863  # Check for GNU $ac_path_SED
67864case `"$ac_path_SED" --version 2>&1` in
67865*GNU*)
67866  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
67867*)
67868  ac_count=0
67869  $as_echo_n 0123456789 >"conftest.in"
67870  while :
67871  do
67872    cat "conftest.in" "conftest.in" >"conftest.tmp"
67873    mv "conftest.tmp" "conftest.in"
67874    cp "conftest.in" "conftest.nl"
67875    $as_echo '' >> "conftest.nl"
67876    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
67877    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
67878    as_fn_arith $ac_count + 1 && ac_count=$as_val
67879    if test $ac_count -gt ${ac_path_SED_max-0}; then
67880      # Best one so far, save it but keep looking for a better one
67881      ac_cv_path_SED="$ac_path_SED"
67882      ac_path_SED_max=$ac_count
67883    fi
67884    # 10*(2^10) chars as input seems more than enough
67885    test $ac_count -gt 10 && break
67886  done
67887  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
67888esac
67889
67890      $ac_path_SED_found && break 3
67891    done
67892  done
67893  done
67894IFS=$as_save_IFS
67895  if test -z "$ac_cv_path_SED"; then
67896    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
67897  fi
67898else
67899  ac_cv_path_SED=$SED
67900fi
67901
67902fi
67903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
67904$as_echo "$ac_cv_path_SED" >&6; }
67905 SED="$ac_cv_path_SED"
67906  rm -f conftest.sed
67907
67908  while :
67909  do
67910      test -x "$POSIX_SHELL" && break
67911      POSIX_SHELL=`which bash`
67912      test -x "$POSIX_SHELL" && break
67913      POSIX_SHELL=`which dash`
67914      test -x "$POSIX_SHELL" && break
67915      POSIX_SHELL=/usr/xpg4/bin/sh
67916      test -x "$POSIX_SHELL" && break
67917      POSIX_SHELL=`/bin/sh -c '
67918          exec 2>/dev/null
67919          if ! true ; then exit 1 ; fi
67920          echo /bin/sh'`
67921      test -x "$POSIX_SHELL" && break
67922      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
67923  done
67924
67925cat >>confdefs.h <<_ACEOF
67926#define POSIX_SHELL "${POSIX_SHELL}"
67927_ACEOF
67928
67929
67930
67931
67932
67933  LIBOPTS_BUILD_BLOCKED=''
67934
67935
67936  NEED_LIBOPTS_DIR=''
67937
67938  # Check whether --enable-local-libopts was given.
67939if test "${enable_local_libopts+set}" = set; then :
67940  enableval=$enable_local_libopts;
67941    if test x$enableval = xyes ; then
67942       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
67943$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
67944       LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
67945       NEED_LIBOPTS_DIR=true
67946       LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
67947    fi
67948fi
67949
67950
67951  # Check whether --enable-libopts-install was given.
67952if test "${enable_libopts_install+set}" = set; then :
67953  enableval=$enable_libopts_install;
67954fi
67955
67956   if test "X${enable_libopts_install}" = Xyes; then
67957  INSTALL_LIBOPTS_TRUE=
67958  INSTALL_LIBOPTS_FALSE='#'
67959else
67960  INSTALL_LIBOPTS_TRUE='#'
67961  INSTALL_LIBOPTS_FALSE=
67962fi
67963
67964
67965  if test -z "${NEED_LIBOPTS_DIR}" ; then
67966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
67967$as_echo_n "checking whether autoopts-config can be found... " >&6; }
67968
67969# Check whether --with-autoopts-config was given.
67970if test "${with_autoopts_config+set}" = set; then :
67971  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
67972else
67973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
67974$as_echo_n "checking whether autoopts-config is specified... " >&6; }
67975if ${lo_cv_with_autoopts_config+:} false; then :
67976  $as_echo_n "(cached) " >&6
67977else
67978  if autoopts-config --help 2>/dev/null 1>&2
67979        then lo_cv_with_autoopts_config=autoopts-config
67980        elif libopts-config --help 2>/dev/null 1>&2
67981        then lo_cv_with_autoopts_config=libopts-config
67982        else lo_cv_with_autoopts_config=no ; fi
67983fi
67984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
67985$as_echo "$lo_cv_with_autoopts_config" >&6; }
67986
67987fi
67988 # end of AC_ARG_WITH
67989
67990     if ${lo_cv_test_autoopts+:} false; then :
67991  $as_echo_n "(cached) " >&6
67992else
67993
67994        if test -z "${lo_cv_with_autoopts_config}" \
67995                -o X"${lo_cv_with_autoopts_config}" = Xno
67996        then
67997           if autoopts-config --help 2>/dev/null 1>&2
67998           then lo_cv_with_autoopts_config=autoopts-config
67999           elif libopts-config --help 2>/dev/null 1>&2
68000           then lo_cv_with_autoopts_config=libopts-config
68001           else lo_cv_with_autoopts_config=false ; fi
68002        fi
68003        lo_cv_test_autoopts=`
68004            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
68005        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
68006        then lo_cv_test_autoopts=no ; fi
68007
68008fi
68009 # end of CACHE_VAL
68010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
68011$as_echo "${lo_cv_test_autoopts}" >&6; }
68012
68013     if test "X${lo_cv_test_autoopts}" != Xno
68014     then
68015        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
68016        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
68017     else
68018        LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
68019        LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
68020        NEED_LIBOPTS_DIR=true
68021     fi
68022  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
68023  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
68024    NEED_LIBOPTS_DIR=''
68025  fi
68026   if test -n "${NEED_LIBOPTS_DIR}"; then
68027  NEED_LIBOPTS_TRUE=
68028  NEED_LIBOPTS_FALSE='#'
68029else
68030  NEED_LIBOPTS_TRUE='#'
68031  NEED_LIBOPTS_FALSE=
68032fi
68033
68034
68035
68036  LIBOPTS_DIR=src/libopts
68037
68038
68039# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
68040
68041
68042    if test -z "$NEED_LIBOPTS_TRUE"; then :
68043
68044
68045
68046  # Check to see if a reg expr header is specified.
68047
68048
68049# Check whether --with-regex-header was given.
68050if test "${with_regex_header+set}" = set; then :
68051  withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
68052else
68053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
68054$as_echo_n "checking whether a reg expr header is specified... " >&6; }
68055if ${libopts_cv_with_regex_header+:} false; then :
68056  $as_echo_n "(cached) " >&6
68057else
68058  libopts_cv_with_regex_header=no
68059fi
68060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
68061$as_echo "$libopts_cv_with_regex_header" >&6; }
68062
68063fi
68064 # end of AC_ARG_WITH
68065  if test "X${libopts_cv_with_regex_header}" != Xno
68066  then
68067    cat >>confdefs.h <<_ACEOF
68068#define REGEX_HEADER <${libopts_cv_with_regex_header}>
68069_ACEOF
68070
68071  else
68072
68073$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
68074
68075  fi
68076
68077
68078
68079  # Check to see if a working libregex can be found.
68080
68081
68082# Check whether --with-libregex was given.
68083if test "${with_libregex+set}" = set; then :
68084  withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
68085else
68086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
68087$as_echo_n "checking whether with-libregex was specified... " >&6; }
68088if ${libopts_cv_with_libregex_root+:} false; then :
68089  $as_echo_n "(cached) " >&6
68090else
68091  libopts_cv_with_libregex_root=no
68092fi
68093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
68094$as_echo "$libopts_cv_with_libregex_root" >&6; }
68095
68096fi
68097 # end of AC_ARG_WITH libregex
68098
68099  if test "${with_libregex+set}" = set && \
68100     test "X${withval}" = Xno
68101  then ## disabled by request
68102    libopts_cv_with_libregex_root=no
68103    libopts_cv_with_libregex_cflags=no
68104    libopts_cv_with_libregex_libs=no
68105  else
68106
68107
68108# Check whether --with-libregex-cflags was given.
68109if test "${with_libregex_cflags+set}" = set; then :
68110  withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
68111else
68112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
68113$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
68114if ${libopts_cv_with_libregex_cflags+:} false; then :
68115  $as_echo_n "(cached) " >&6
68116else
68117  libopts_cv_with_libregex_cflags=no
68118fi
68119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
68120$as_echo "$libopts_cv_with_libregex_cflags" >&6; }
68121
68122fi
68123 # end of AC_ARG_WITH libregex-cflags
68124
68125
68126# Check whether --with-libregex-libs was given.
68127if test "${with_libregex_libs+set}" = set; then :
68128  withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
68129else
68130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
68131$as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
68132if ${libopts_cv_with_libregex_libs+:} false; then :
68133  $as_echo_n "(cached) " >&6
68134else
68135  libopts_cv_with_libregex_libs=no
68136fi
68137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
68138$as_echo "$libopts_cv_with_libregex_libs" >&6; }
68139
68140fi
68141 # end of AC_ARG_WITH libregex-libs
68142
68143  case "X${libopts_cv_with_libregex_cflags}" in
68144  Xyes|Xno|X )
68145    case "X${libopts_cv_with_libregex_root}" in
68146    Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
68147    * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
68148    esac
68149  esac
68150  case "X${libopts_cv_with_libregex_libs}" in
68151  Xyes|Xno|X )
68152    case "X${libopts_cv_with_libregex_root}" in
68153    Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
68154    * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
68155    esac
68156  esac
68157  libopts_save_CPPFLAGS="${CPPFLAGS}"
68158  libopts_save_LIBS="${LIBS}"
68159  case "X${libopts_cv_with_libregex_cflags}" in
68160  Xyes|Xno|X )
68161    libopts_cv_with_libregex_cflags="" ;;
68162  * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
68163  esac
68164  case "X${libopts_cv_with_libregex_libs}" in
68165  Xyes|Xno|X )
68166    libopts_cv_with_libregex_libs="" ;;
68167  * )
68168    LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
68169  esac
68170  LIBREGEX_CFLAGS=""
68171  LIBREGEX_LIBS=""
68172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
68173$as_echo_n "checking whether libregex functions properly... " >&6; }
68174  if ${libopts_cv_with_libregex+:} false; then :
68175  $as_echo_n "(cached) " >&6
68176else
68177
68178  if test "$cross_compiling" = yes; then :
68179  libopts_cv_with_libregex=no
68180else
68181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68182/* end confdefs.h.  */
68183#include <stdio.h>
68184#include <stdlib.h>
68185#include <sys/types.h>
68186#include REGEX_HEADER
68187static regex_t re;
68188void comp_re(char const * pzPat) {
68189  int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
68190  if (res == 0) return;
68191  exit( res ); }
68192int main() {
68193  regmatch_t m[2];
68194  comp_re( "^.*\$"   );
68195  comp_re( "()|no.*" );
68196  comp_re( "."       );
68197  if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
68198  if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
68199    fputs( "error: regex -->.<-- did not match\n", stderr );
68200    return 1;
68201  }
68202  return 0; }
68203_ACEOF
68204if ac_fn_c_try_run "$LINENO"; then :
68205  libopts_cv_with_libregex=yes
68206else
68207  libopts_cv_with_libregex=no
68208fi
68209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68210  conftest.$ac_objext conftest.beam conftest.$ac_ext
68211fi
68212 # end of AC_RUN_IFELSE
68213
68214fi
68215 # end of AC_CACHE_VAL for libopts_cv_with_libregex
68216  fi ## disabled by request
68217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
68218$as_echo "${libopts_cv_with_libregex}" >&6; }
68219  if test "X${libopts_cv_with_libregex}" != Xno
68220  then
68221
68222$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
68223
68224  else
68225    CPPFLAGS="${libopts_save_CPPFLAGS}"
68226    LIBS="${libopts_save_LIBS}"
68227    libopts_cv_with_libregex_root=no
68228libopts_cv_with_libregex_cflags=no
68229libopts_cv_with_libregex_libs=no
68230libopts_cv_with_libregex=no
68231  fi
68232
68233
68234
68235  # Check to see if pathfind(3) works.
68236
68237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
68238$as_echo_n "checking whether pathfind(3) works... " >&6; }
68239  if ${libopts_cv_run_pathfind+:} false; then :
68240  $as_echo_n "(cached) " >&6
68241else
68242
68243  if test "$cross_compiling" = yes; then :
68244  libopts_cv_run_pathfind=no
68245
68246else
68247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68248/* end confdefs.h.  */
68249#include <string.h>
68250#include <stdlib.h>
68251int main (int argc, char ** argv) {
68252   char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
68253   return (pz == 0) ? 1 : 0;
68254}
68255_ACEOF
68256if ac_fn_c_try_run "$LINENO"; then :
68257  libopts_cv_run_pathfind=yes
68258else
68259  libopts_cv_run_pathfind=no
68260fi
68261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68262  conftest.$ac_objext conftest.beam conftest.$ac_ext
68263fi
68264 # end of RUN_IFELSE
68265
68266fi
68267 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
68268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
68269$as_echo "${libopts_cv_run_pathfind}" >&6; }
68270  if test "X${libopts_cv_run_pathfind}" != Xno
68271  then
68272
68273$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
68274
68275  fi
68276
68277
68278
68279  # Check to see if /dev/zero is readable device.
68280
68281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
68282$as_echo_n "checking whether /dev/zero is readable device... " >&6; }
68283  if ${libopts_cv_test_dev_zero+:} false; then :
68284  $as_echo_n "(cached) " >&6
68285else
68286
68287    libopts_cv_test_dev_zero=`exec 2> /dev/null
68288dzero=\`ls -lL /dev/zero | egrep ^c......r\`
68289test -z "${dzero}" && exit 1
68290echo ${dzero}`
68291    if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
68292    then libopts_cv_test_dev_zero=no
68293    fi
68294
68295fi
68296 # end of CACHE_VAL of libopts_cv_test_dev_zero
68297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
68298$as_echo "${libopts_cv_test_dev_zero}" >&6; }
68299  if test "X${libopts_cv_test_dev_zero}" != Xno
68300  then
68301
68302$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
68303
68304  fi
68305
68306
68307
68308  # Check to see if we have a functional realpath(3C).
68309
68310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
68311$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
68312  if ${libopts_cv_run_realpath+:} false; then :
68313  $as_echo_n "(cached) " >&6
68314else
68315
68316  if test "$cross_compiling" = yes; then :
68317  libopts_cv_run_realpath=no
68318
68319else
68320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68321/* end confdefs.h.  */
68322#include <limits.h>
68323#include <stdlib.h>
68324int main (int argc, char ** argv) {
68325#ifndef PATH_MAX
68326choke me!!
68327#else
68328   char zPath[PATH_MAX+1];
68329#endif
68330   char *pz = realpath(argv[0], zPath);
68331   return (pz == zPath) ? 0 : 1;
68332}
68333_ACEOF
68334if ac_fn_c_try_run "$LINENO"; then :
68335  libopts_cv_run_realpath=yes
68336else
68337  libopts_cv_run_realpath=no
68338fi
68339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68340  conftest.$ac_objext conftest.beam conftest.$ac_ext
68341fi
68342 # end of RUN_IFELSE
68343
68344fi
68345 # end of AC_CACHE_VAL for libopts_cv_run_realpath
68346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
68347$as_echo "${libopts_cv_run_realpath}" >&6; }
68348  if test "X${libopts_cv_run_realpath}" != Xno
68349  then
68350
68351$as_echo "#define HAVE_REALPATH 1" >>confdefs.h
68352
68353  fi
68354
68355
68356
68357  # Check to see if strftime() works.
68358
68359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
68360$as_echo_n "checking whether strftime() works... " >&6; }
68361  if ${libopts_cv_run_strftime+:} false; then :
68362  $as_echo_n "(cached) " >&6
68363else
68364
68365  if test "$cross_compiling" = yes; then :
68366  libopts_cv_run_strftime=no
68367
68368else
68369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68370/* end confdefs.h.  */
68371#include <time.h>
68372#include <string.h>
68373char t_buf[ 64 ];
68374int main() {
68375  static char const z[] = "Thursday Aug 28 240";
68376  struct tm tm;
68377  tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
68378  tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
68379  tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
68380  tm.tm_mday  = 28;  /* day of the month [1, 31] */
68381  tm.tm_mon   =  7;  /* months since January [0, 11] */
68382  tm.tm_year  = 86;  /* years since 1900 */
68383  tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
68384  tm.tm_yday  = 239; /* days since January 1 [0, 365] */
68385  tm.tm_isdst =  1;  /* flag for daylight savings time */
68386  strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
68387  return (strcmp( t_buf, z ) != 0); }
68388_ACEOF
68389if ac_fn_c_try_run "$LINENO"; then :
68390  libopts_cv_run_strftime=yes
68391else
68392  libopts_cv_run_strftime=no
68393fi
68394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68395  conftest.$ac_objext conftest.beam conftest.$ac_ext
68396fi
68397 # end of RUN_IFELSE
68398
68399fi
68400 # end of AC_CACHE_VAL for libopts_cv_run_strftime
68401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
68402$as_echo "${libopts_cv_run_strftime}" >&6; }
68403  if test "X${libopts_cv_run_strftime}" != Xno
68404  then
68405
68406$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
68407
68408  fi
68409
68410
68411
68412  # Check to see if fopen accepts "b" mode.
68413
68414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
68415$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
68416  if ${libopts_cv_run_fopen_binary+:} false; then :
68417  $as_echo_n "(cached) " >&6
68418else
68419
68420  if test "$cross_compiling" = yes; then :
68421  libopts_cv_run_fopen_binary=no
68422
68423else
68424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68425/* end confdefs.h.  */
68426#include <stdio.h>
68427int main (int argc, char ** argv) {
68428FILE * fp = fopen("conftest.$ac_ext", "rb");
68429return (fp == NULL) ? 1 : fclose(fp); }
68430_ACEOF
68431if ac_fn_c_try_run "$LINENO"; then :
68432  libopts_cv_run_fopen_binary=yes
68433else
68434  libopts_cv_run_fopen_binary=no
68435fi
68436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68437  conftest.$ac_objext conftest.beam conftest.$ac_ext
68438fi
68439 # end of RUN_IFELSE
68440
68441fi
68442 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
68443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
68444$as_echo "${libopts_cv_run_fopen_binary}" >&6; }
68445  if test "X${libopts_cv_run_fopen_binary}" != Xno
68446  then
68447
68448$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
68449
68450  else
68451
68452$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
68453
68454  fi
68455
68456
68457
68458  # Check to see if fopen accepts "t" mode.
68459
68460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
68461$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
68462  if ${libopts_cv_run_fopen_text+:} false; then :
68463  $as_echo_n "(cached) " >&6
68464else
68465
68466  if test "$cross_compiling" = yes; then :
68467  libopts_cv_run_fopen_text=no
68468
68469else
68470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68471/* end confdefs.h.  */
68472#include <stdio.h>
68473int main (int argc, char ** argv) {
68474FILE * fp = fopen("conftest.$ac_ext", "rt");
68475return (fp == NULL) ? 1 : fclose(fp); }
68476_ACEOF
68477if ac_fn_c_try_run "$LINENO"; then :
68478  libopts_cv_run_fopen_text=yes
68479else
68480  libopts_cv_run_fopen_text=no
68481fi
68482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
68483  conftest.$ac_objext conftest.beam conftest.$ac_ext
68484fi
68485 # end of RUN_IFELSE
68486
68487fi
68488 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
68489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
68490$as_echo "${libopts_cv_run_fopen_text}" >&6; }
68491  if test "X${libopts_cv_run_fopen_text}" != Xno
68492  then
68493
68494$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
68495
68496  else
68497
68498$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
68499
68500  fi
68501
68502
68503
68504  # Check to see if not wanting optional option args.
68505
68506  # Check whether --enable-optional-args was given.
68507if test "${enable_optional_args+set}" = set; then :
68508  enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
68509else
68510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
68511$as_echo_n "checking whether not wanting optional option args... " >&6; }
68512if ${libopts_cv_enable_optional_args+:} false; then :
68513  $as_echo_n "(cached) " >&6
68514else
68515  libopts_cv_enable_optional_args=yes
68516fi
68517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
68518$as_echo "$libopts_cv_enable_optional_args" >&6; }
68519
68520fi
68521 # end of AC_ARG_ENABLE
68522  if test "X${libopts_cv_enable_optional_args}" = Xno
68523  then
68524
68525$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
68526
68527  fi
68528
68529
68530
68531
68532
68533          fi
68534  ac_config_files="$ac_config_files src/libopts/Makefile"
68535
68536  # end of AC_DEFUN of LIBOPTS_CHECK
68537
68538	if test "$NEED_LIBOPTS_DIR" = "true";then
68539				included_libopts=yes
68540	fi
68541else
68542	# Need to ensure the relevant conditionals get set
68543
68544
68545  case "$host_os" in
68546    cygwin*)
68547                        STDNORETURN_H='stdnoreturn.h'
68548      ;;
68549    *)
68550      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
68551$as_echo_n "checking for working stdnoreturn.h... " >&6; }
68552if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
68553  $as_echo_n "(cached) " >&6
68554else
68555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68556/* end confdefs.h.  */
68557#include <stdlib.h>
68558                #include <stdnoreturn.h>
68559                /* Do not check for 'noreturn' after the return type.
68560                   C11 allows it, but it's rarely done that way
68561                   and circa-2012 bleeding-edge GCC rejects it when given
68562                   -Werror=old-style-declaration.  */
68563                noreturn void foo1 (void) { exit (0); }
68564                _Noreturn void foo2 (void) { exit (0); }
68565                int testit (int argc, char **argv)
68566                {
68567                  if (argc & 1)
68568                    return 0;
68569                  (argv[0][0] ? foo1 : foo2) ();
68570                }
68571
68572int
68573main ()
68574{
68575
68576  ;
68577  return 0;
68578}
68579_ACEOF
68580if ac_fn_c_try_compile "$LINENO"; then :
68581  gl_cv_header_working_stdnoreturn_h=yes
68582else
68583  gl_cv_header_working_stdnoreturn_h=no
68584fi
68585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68586fi
68587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
68588$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
68589      if test $gl_cv_header_working_stdnoreturn_h = yes; then
68590        STDNORETURN_H=''
68591      else
68592        STDNORETURN_H='stdnoreturn.h'
68593      fi
68594      ;;
68595  esac
68596
68597   if test -n "$STDNORETURN_H"; then
68598  GL_GENERATE_STDNORETURN_H_TRUE=
68599  GL_GENERATE_STDNORETURN_H_FALSE='#'
68600else
68601  GL_GENERATE_STDNORETURN_H_TRUE='#'
68602  GL_GENERATE_STDNORETURN_H_FALSE=
68603fi
68604
68605
68606	 if false; then
68607  INSTALL_LIBOPTS_TRUE=
68608  INSTALL_LIBOPTS_FALSE='#'
68609else
68610  INSTALL_LIBOPTS_TRUE='#'
68611  INSTALL_LIBOPTS_FALSE=
68612fi
68613
68614fi
68615
68616 if test "$included_libopts" = "yes"; then
68617  NEED_LIBOPTS_TRUE=
68618  NEED_LIBOPTS_FALSE='#'
68619else
68620  NEED_LIBOPTS_TRUE='#'
68621  NEED_LIBOPTS_FALSE=
68622fi
68623
68624
68625# For minitasn1.
68626# The cast to long int works around a bug in the HP C Compiler
68627# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
68628# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
68629# This bug is HP SR number 8606223364.
68630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
68631$as_echo_n "checking size of unsigned long int... " >&6; }
68632if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
68633  $as_echo_n "(cached) " >&6
68634else
68635  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
68636
68637else
68638  if test "$ac_cv_type_unsigned_long_int" = yes; then
68639     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
68640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
68641as_fn_error 77 "cannot compute sizeof (unsigned long int)
68642See \`config.log' for more details" "$LINENO" 5; }
68643   else
68644     ac_cv_sizeof_unsigned_long_int=0
68645   fi
68646fi
68647
68648fi
68649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
68650$as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
68651
68652
68653
68654cat >>confdefs.h <<_ACEOF
68655#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
68656_ACEOF
68657
68658
68659# The cast to long int works around a bug in the HP C Compiler
68660# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
68661# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
68662# This bug is HP SR number 8606223364.
68663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
68664$as_echo_n "checking size of unsigned int... " >&6; }
68665if ${ac_cv_sizeof_unsigned_int+:} false; then :
68666  $as_echo_n "(cached) " >&6
68667else
68668  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
68669
68670else
68671  if test "$ac_cv_type_unsigned_int" = yes; then
68672     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
68673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
68674as_fn_error 77 "cannot compute sizeof (unsigned int)
68675See \`config.log' for more details" "$LINENO" 5; }
68676   else
68677     ac_cv_sizeof_unsigned_int=0
68678   fi
68679fi
68680
68681fi
68682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
68683$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
68684
68685
68686
68687cat >>confdefs.h <<_ACEOF
68688#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
68689_ACEOF
68690
68691
68692# The cast to long int works around a bug in the HP C Compiler
68693# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
68694# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
68695# This bug is HP SR number 8606223364.
68696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
68697$as_echo_n "checking size of time_t... " >&6; }
68698if ${ac_cv_sizeof_time_t+:} false; then :
68699  $as_echo_n "(cached) " >&6
68700else
68701  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
68702
68703else
68704  if test "$ac_cv_type_time_t" = yes; then
68705     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
68706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
68707as_fn_error 77 "cannot compute sizeof (time_t)
68708See \`config.log' for more details" "$LINENO" 5; }
68709   else
68710     ac_cv_sizeof_time_t=0
68711   fi
68712fi
68713
68714fi
68715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
68716$as_echo "$ac_cv_sizeof_time_t" >&6; }
68717
68718
68719
68720cat >>confdefs.h <<_ACEOF
68721#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
68722_ACEOF
68723
68724
68725
68726# export for use in scripts
68727
68728
68729
68730
68731
68732
68733
68734# Check whether --with-default-trust-store-pkcs11 was given.
68735if test "${with_default_trust_store_pkcs11+set}" = set; then :
68736  withval=$with_default_trust_store_pkcs11;
68737fi
68738
68739
68740if test "x$with_default_trust_store_pkcs11" != x; then
68741  if test "x$with_p11_kit" = xno; then
68742    as_fn_error $? "cannot use pkcs11 store without p11-kit" "$LINENO" 5
68743  fi
68744
68745cat >>confdefs.h <<_ACEOF
68746#define DEFAULT_TRUST_STORE_PKCS11 "$with_default_trust_store_pkcs11"
68747_ACEOF
68748
68749fi
68750
68751 if test -n "${with_default_trust_store_pkcs11}"; then
68752  HAVE_PKCS11_TRUST_STORE_TRUE=
68753  HAVE_PKCS11_TRUST_STORE_FALSE='#'
68754else
68755  HAVE_PKCS11_TRUST_STORE_TRUE='#'
68756  HAVE_PKCS11_TRUST_STORE_FALSE=
68757fi
68758
68759
68760
68761# Check whether --with-default-trust-store-dir was given.
68762if test "${with_default_trust_store_dir+set}" = set; then :
68763  withval=$with_default_trust_store_dir;
68764fi
68765
68766
68767if test "x$with_default_trust_store_dir" != x; then
68768
68769cat >>confdefs.h <<_ACEOF
68770#define DEFAULT_TRUST_STORE_DIR "$with_default_trust_store_dir"
68771_ACEOF
68772
68773fi
68774
68775
68776# Check whether --with-default-trust-store-file was given.
68777if test "${with_default_trust_store_file+set}" = set; then :
68778  withval=$with_default_trust_store_file; with_default_trust_store_file="$withval"
68779else
68780  if test "$build" = "$host" && test x$with_default_trust_store_pkcs11 = x && test x$with_default_trust_store_dir = x && test x$have_macosx = x;then
68781  for i in \
68782    /etc/ssl/ca-bundle.pem \
68783    /etc/ssl/certs/ca-certificates.crt \
68784    /etc/pki/tls/cert.pem \
68785    /usr/local/share/certs/ca-root-nss.crt \
68786    /etc/ssl/cert.pem
68787    do
68788    if test -e "$i"; then
68789      with_default_trust_store_file="$i"
68790      break
68791    fi
68792  done
68793  fi
68794
68795fi
68796
68797
68798if test "$with_default_trust_store_file" = "no";then
68799  with_default_trust_store_file=""
68800fi
68801
68802
68803# Check whether --with-default-crl-file was given.
68804if test "${with_default_crl_file+set}" = set; then :
68805  withval=$with_default_crl_file;
68806fi
68807
68808
68809
68810# Check whether --with-default-blacklist-file was given.
68811if test "${with_default_blacklist_file+set}" = set; then :
68812  withval=$with_default_blacklist_file;
68813fi
68814
68815
68816if test "x$with_default_trust_store_file" != x; then
68817
68818cat >>confdefs.h <<_ACEOF
68819#define DEFAULT_TRUST_STORE_FILE "$with_default_trust_store_file"
68820_ACEOF
68821
68822fi
68823
68824if test "x$with_default_crl_file" != x; then
68825
68826cat >>confdefs.h <<_ACEOF
68827#define DEFAULT_CRL_FILE "$with_default_crl_file"
68828_ACEOF
68829
68830fi
68831
68832if test "x$with_default_blacklist_file" != x; then
68833
68834cat >>confdefs.h <<_ACEOF
68835#define DEFAULT_BLACKLIST_FILE "$with_default_blacklist_file"
68836_ACEOF
68837
68838fi
68839
68840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building Guile bindings" >&5
68841$as_echo_n "checking whether building Guile bindings... " >&6; }
68842# Check whether --enable-guile was given.
68843if test "${enable_guile+set}" = set; then :
68844  enableval=$enable_guile; opt_guile_bindings=$enableval
68845else
68846  opt_guile_bindings=yes
68847fi
68848
68849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_guile_bindings" >&5
68850$as_echo "$opt_guile_bindings" >&6; }
68851
68852
68853# Check whether --with-guile-site-dir was given.
68854if test "${with_guile_site_dir+set}" = set; then :
68855  withval=$with_guile_site_dir; guilesitedir="${withval}"
68856else
68857  guilesitedir='$(GUILE_SITE)'
68858fi
68859
68860
68861# Check whether --with-guile-site-ccache-dir was given.
68862if test "${with_guile_site_ccache_dir+set}" = set; then :
68863  withval=$with_guile_site_ccache_dir; guilesiteccachedir="${withval}"
68864else
68865  guilesiteccachedir='$(GUILE_SITE_CCACHE)'
68866fi
68867
68868
68869# Check whether --with-guile-extension-dir was given.
68870if test "${with_guile_extension_dir+set}" = set; then :
68871  withval=$with_guile_extension_dir; guileextensiondir="${withval}"
68872else
68873  guileextensiondir='$(GUILE_EXTENSION)'
68874fi
68875
68876
68877
68878
68879maybe_guileextensiondir="\"$guileextensiondir\""
68880
68881if test "$opt_guile_bindings" = "yes"; then
68882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
68883*** Detecting GNU Guile...
68884" >&5
68885$as_echo "***
68886*** Detecting GNU Guile...
68887" >&6; }
68888
68889   # Extract the first word of "guile-snarf", so it can be a program name with args.
68890set dummy guile-snarf; ac_word=$2
68891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
68892$as_echo_n "checking for $ac_word... " >&6; }
68893if ${ac_cv_path_guile_snarf+:} false; then :
68894  $as_echo_n "(cached) " >&6
68895else
68896  case $guile_snarf in
68897  [\\/]* | ?:[\\/]*)
68898  ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
68899  ;;
68900  *)
68901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68902for as_dir in $PATH
68903do
68904  IFS=$as_save_IFS
68905  test -z "$as_dir" && as_dir=.
68906    for ac_exec_ext in '' $ac_executable_extensions; do
68907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
68908    ac_cv_path_guile_snarf="$as_dir/$ac_word$ac_exec_ext"
68909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68910    break 2
68911  fi
68912done
68913  done
68914IFS=$as_save_IFS
68915
68916  ;;
68917esac
68918fi
68919guile_snarf=$ac_cv_path_guile_snarf
68920if test -n "$guile_snarf"; then
68921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
68922$as_echo "$guile_snarf" >&6; }
68923else
68924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68925$as_echo "no" >&6; }
68926fi
68927
68928
68929   if test "x$guile_snarf" = "x"; then
68930      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`guile-snarf' from Guile not found.  Guile bindings not built." >&5
68931$as_echo "$as_me: WARNING: \`guile-snarf' from Guile not found.  Guile bindings not built." >&2;}
68932      opt_guile_bindings=no
68933   else
68934                  # Extract the first word of "guild", so it can be a program name with args.
68935set dummy guild; ac_word=$2
68936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
68937$as_echo_n "checking for $ac_word... " >&6; }
68938if ${ac_cv_path_GUILD+:} false; then :
68939  $as_echo_n "(cached) " >&6
68940else
68941  case $GUILD in
68942  [\\/]* | ?:[\\/]*)
68943  ac_cv_path_GUILD="$GUILD" # Let the user override the test with a path.
68944  ;;
68945  *)
68946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68947for as_dir in $PATH
68948do
68949  IFS=$as_save_IFS
68950  test -z "$as_dir" && as_dir=.
68951    for ac_exec_ext in '' $ac_executable_extensions; do
68952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
68953    ac_cv_path_GUILD="$as_dir/$ac_word$ac_exec_ext"
68954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68955    break 2
68956  fi
68957done
68958  done
68959IFS=$as_save_IFS
68960
68961  ;;
68962esac
68963fi
68964GUILD=$ac_cv_path_GUILD
68965if test -n "$GUILD"; then
68966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILD" >&5
68967$as_echo "$GUILD" >&6; }
68968else
68969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68970$as_echo "no" >&6; }
68971fi
68972
68973
68974
68975
68976
68977
68978
68979
68980
68981
68982
68983if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
68984	if test -n "$ac_tool_prefix"; then
68985  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
68986set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
68987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
68988$as_echo_n "checking for $ac_word... " >&6; }
68989if ${ac_cv_path_PKG_CONFIG+:} false; then :
68990  $as_echo_n "(cached) " >&6
68991else
68992  case $PKG_CONFIG in
68993  [\\/]* | ?:[\\/]*)
68994  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
68995  ;;
68996  *)
68997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68998for as_dir in $PATH
68999do
69000  IFS=$as_save_IFS
69001  test -z "$as_dir" && as_dir=.
69002    for ac_exec_ext in '' $ac_executable_extensions; do
69003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69004    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
69005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69006    break 2
69007  fi
69008done
69009  done
69010IFS=$as_save_IFS
69011
69012  ;;
69013esac
69014fi
69015PKG_CONFIG=$ac_cv_path_PKG_CONFIG
69016if test -n "$PKG_CONFIG"; then
69017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
69018$as_echo "$PKG_CONFIG" >&6; }
69019else
69020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69021$as_echo "no" >&6; }
69022fi
69023
69024
69025fi
69026if test -z "$ac_cv_path_PKG_CONFIG"; then
69027  ac_pt_PKG_CONFIG=$PKG_CONFIG
69028  # Extract the first word of "pkg-config", so it can be a program name with args.
69029set dummy pkg-config; ac_word=$2
69030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69031$as_echo_n "checking for $ac_word... " >&6; }
69032if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
69033  $as_echo_n "(cached) " >&6
69034else
69035  case $ac_pt_PKG_CONFIG in
69036  [\\/]* | ?:[\\/]*)
69037  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
69038  ;;
69039  *)
69040  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69041for as_dir in $PATH
69042do
69043  IFS=$as_save_IFS
69044  test -z "$as_dir" && as_dir=.
69045    for ac_exec_ext in '' $ac_executable_extensions; do
69046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69047    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
69048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69049    break 2
69050  fi
69051done
69052  done
69053IFS=$as_save_IFS
69054
69055  ;;
69056esac
69057fi
69058ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
69059if test -n "$ac_pt_PKG_CONFIG"; then
69060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
69061$as_echo "$ac_pt_PKG_CONFIG" >&6; }
69062else
69063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69064$as_echo "no" >&6; }
69065fi
69066
69067  if test "x$ac_pt_PKG_CONFIG" = x; then
69068    PKG_CONFIG=""
69069  else
69070    case $cross_compiling:$ac_tool_warned in
69071yes:)
69072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
69073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
69074ac_tool_warned=yes ;;
69075esac
69076    PKG_CONFIG=$ac_pt_PKG_CONFIG
69077  fi
69078else
69079  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
69080fi
69081
69082fi
69083if test -n "$PKG_CONFIG"; then
69084	_pkg_min_version=0.9.0
69085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
69086$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
69087	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
69088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69089$as_echo "yes" >&6; }
69090	else
69091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69092$as_echo "no" >&6; }
69093		PKG_CONFIG=""
69094	fi
69095fi
69096  _guile_versions_to_search="3.0 2.2 2.0 1.8"
69097  if test -n "$GUILE_EFFECTIVE_VERSION"; then
69098    _guile_tmp=""
69099    for v in $_guile_versions_to_search; do
69100      if test "$v" = "$GUILE_EFFECTIVE_VERSION"; then
69101        _guile_tmp=$v
69102      fi
69103    done
69104    if test -z "$_guile_tmp"; then
69105      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
69106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
69107as_fn_error $? "searching for guile development files for versions $_guile_versions_to_search, but previously found $GUILE version $GUILE_EFFECTIVE_VERSION
69108See \`config.log' for more details" "$LINENO" 5; }
69109    fi
69110    _guile_versions_to_search=$GUILE_EFFECTIVE_VERSION
69111  fi
69112  GUILE_EFFECTIVE_VERSION=""
69113  _guile_errors=""
69114  for v in $_guile_versions_to_search; do
69115    if test -z "$GUILE_EFFECTIVE_VERSION"; then
69116      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile $v" >&5
69117$as_echo "$as_me: checking for guile $v" >&6;}
69118      if test -n "$PKG_CONFIG" && \
69119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
69120  ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
69121  ac_status=$?
69122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69123  test $ac_status = 0; }; then
69124  GUILE_EFFECTIVE_VERSION=$v
69125fi
69126    fi
69127  done
69128
69129  if test -z "$GUILE_EFFECTIVE_VERSION"; then
69130    as_fn_error $? "
69131No Guile development packages were found.
69132
69133Please verify that you have Guile installed.  If you installed Guile
69134from a binary distribution, please verify that you have also installed
69135the development packages.  If you installed it yourself, you might need
69136to adjust your PKG_CONFIG_PATH; see the pkg-config man page for more.
69137" "$LINENO" 5
69138  fi
69139  { $as_echo "$as_me:${as_lineno-$LINENO}: found guile $GUILE_EFFECTIVE_VERSION" >&5
69140$as_echo "$as_me: found guile $GUILE_EFFECTIVE_VERSION" >&6;}
69141
69142
69143      _guile_required_version="$GUILE_EFFECTIVE_VERSION"
69144  if test -z "$_guile_required_version"; then
69145    _guile_required_version=2.2
69146  fi
69147
69148  _guile_candidates=guile
69149  _tmp=
69150  for v in `echo "$_guile_required_version" | tr . ' '`; do
69151    if test -n "$_tmp"; then _tmp=$_tmp.; fi
69152    _tmp=$_tmp$v
69153    _guile_candidates="guile-$_tmp guile$_tmp $_guile_candidates"
69154  done
69155
69156  for ac_prog in $_guile_candidates
69157do
69158  # Extract the first word of "$ac_prog", so it can be a program name with args.
69159set dummy $ac_prog; ac_word=$2
69160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69161$as_echo_n "checking for $ac_word... " >&6; }
69162if ${ac_cv_path_GUILE+:} false; then :
69163  $as_echo_n "(cached) " >&6
69164else
69165  case $GUILE in
69166  [\\/]* | ?:[\\/]*)
69167  ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
69168  ;;
69169  *)
69170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69171for as_dir in $PATH
69172do
69173  IFS=$as_save_IFS
69174  test -z "$as_dir" && as_dir=.
69175    for ac_exec_ext in '' $ac_executable_extensions; do
69176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69177    ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
69178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69179    break 2
69180  fi
69181done
69182  done
69183IFS=$as_save_IFS
69184
69185  ;;
69186esac
69187fi
69188GUILE=$ac_cv_path_GUILE
69189if test -n "$GUILE"; then
69190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
69191$as_echo "$GUILE" >&6; }
69192else
69193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69194$as_echo "no" >&6; }
69195fi
69196
69197
69198  test -n "$GUILE" && break
69199done
69200
69201  if test -z "$GUILE"; then
69202      as_fn_error $? "guile required but not found" "$LINENO" 5
69203  fi
69204
69205  _guile_suffix=`echo "$GUILE" | sed -e 's,^.*/guile\(.*\)$,\1,'`
69206  _guile_effective_version=`$GUILE -c "(display (effective-version))"`
69207  if test -z "$GUILE_EFFECTIVE_VERSION"; then
69208    GUILE_EFFECTIVE_VERSION=$_guile_effective_version
69209  elif test "$GUILE_EFFECTIVE_VERSION" != "$_guile_effective_version"; then
69210    as_fn_error $? "found development files for Guile $GUILE_EFFECTIVE_VERSION, but $GUILE has effective version $_guile_effective_version" "$LINENO" 5
69211  fi
69212
69213  _guile_major_version=`$GUILE -c "(display (major-version))"`
69214  _guile_minor_version=`$GUILE -c "(display (minor-version))"`
69215  _guile_micro_version=`$GUILE -c "(display (micro-version))"`
69216  _guile_prog_version="$_guile_major_version.$_guile_minor_version.$_guile_micro_version"
69217
69218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile version >= $_guile_required_version" >&5
69219$as_echo_n "checking for Guile version >= $_guile_required_version... " >&6; }
69220  _major_version=`echo $_guile_required_version | cut -d . -f 1`
69221  _minor_version=`echo $_guile_required_version | cut -d . -f 2`
69222  _micro_version=`echo $_guile_required_version | cut -d . -f 3`
69223  if test "$_guile_major_version" -gt "$_major_version"; then
69224    true
69225  elif test "$_guile_major_version" -eq "$_major_version"; then
69226    if test "$_guile_minor_version" -gt "$_minor_version"; then
69227      true
69228    elif test "$_guile_minor_version" -eq "$_minor_version"; then
69229      if test -n "$_micro_version"; then
69230        if test "$_guile_micro_version" -lt "$_micro_version"; then
69231          as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
69232        fi
69233      fi
69234    elif test "$GUILE_EFFECTIVE_VERSION" = "$_major_version.$_minor_version" -a -z "$_micro_version"; then
69235      # Allow prereleases that have the right effective version.
69236      true
69237    else
69238      as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
69239    fi
69240  elif test "$GUILE_EFFECTIVE_VERSION" = "$_major_version.$_minor_version" -a -z "$_micro_version"; then
69241    # Allow prereleases that have the right effective version.
69242    true
69243  else
69244    as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
69245  fi
69246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_guile_prog_version" >&5
69247$as_echo "$_guile_prog_version" >&6; }
69248
69249  # Extract the first word of "guild$_guile_suffix", so it can be a program name with args.
69250set dummy guild$_guile_suffix; ac_word=$2
69251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69252$as_echo_n "checking for $ac_word... " >&6; }
69253if ${ac_cv_path_GUILD+:} false; then :
69254  $as_echo_n "(cached) " >&6
69255else
69256  case $GUILD in
69257  [\\/]* | ?:[\\/]*)
69258  ac_cv_path_GUILD="$GUILD" # Let the user override the test with a path.
69259  ;;
69260  *)
69261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69262for as_dir in $PATH
69263do
69264  IFS=$as_save_IFS
69265  test -z "$as_dir" && as_dir=.
69266    for ac_exec_ext in '' $ac_executable_extensions; do
69267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69268    ac_cv_path_GUILD="$as_dir/$ac_word$ac_exec_ext"
69269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69270    break 2
69271  fi
69272done
69273  done
69274IFS=$as_save_IFS
69275
69276  ;;
69277esac
69278fi
69279GUILD=$ac_cv_path_GUILD
69280if test -n "$GUILD"; then
69281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILD" >&5
69282$as_echo "$GUILD" >&6; }
69283else
69284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69285$as_echo "no" >&6; }
69286fi
69287
69288
69289
69290
69291  # Extract the first word of "guile-config$_guile_suffix", so it can be a program name with args.
69292set dummy guile-config$_guile_suffix; ac_word=$2
69293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69294$as_echo_n "checking for $ac_word... " >&6; }
69295if ${ac_cv_path_GUILE_CONFIG+:} false; then :
69296  $as_echo_n "(cached) " >&6
69297else
69298  case $GUILE_CONFIG in
69299  [\\/]* | ?:[\\/]*)
69300  ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
69301  ;;
69302  *)
69303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69304for as_dir in $PATH
69305do
69306  IFS=$as_save_IFS
69307  test -z "$as_dir" && as_dir=.
69308    for ac_exec_ext in '' $ac_executable_extensions; do
69309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69310    ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
69311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69312    break 2
69313  fi
69314done
69315  done
69316IFS=$as_save_IFS
69317
69318  ;;
69319esac
69320fi
69321GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
69322if test -n "$GUILE_CONFIG"; then
69323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
69324$as_echo "$GUILE_CONFIG" >&6; }
69325else
69326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69327$as_echo "no" >&6; }
69328fi
69329
69330
69331
69332  if test -n "$GUILD"; then
69333    GUILE_TOOLS=$GUILD
69334  else
69335    # Extract the first word of "guile-tools$_guile_suffix", so it can be a program name with args.
69336set dummy guile-tools$_guile_suffix; ac_word=$2
69337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69338$as_echo_n "checking for $ac_word... " >&6; }
69339if ${ac_cv_path_GUILE_TOOLS+:} false; then :
69340  $as_echo_n "(cached) " >&6
69341else
69342  case $GUILE_TOOLS in
69343  [\\/]* | ?:[\\/]*)
69344  ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
69345  ;;
69346  *)
69347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69348for as_dir in $PATH
69349do
69350  IFS=$as_save_IFS
69351  test -z "$as_dir" && as_dir=.
69352    for ac_exec_ext in '' $ac_executable_extensions; do
69353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69354    ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
69355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69356    break 2
69357  fi
69358done
69359  done
69360IFS=$as_save_IFS
69361
69362  ;;
69363esac
69364fi
69365GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
69366if test -n "$GUILE_TOOLS"; then
69367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
69368$as_echo "$GUILE_TOOLS" >&6; }
69369else
69370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69371$as_echo "no" >&6; }
69372fi
69373
69374
69375  fi
69376
69377
69378
69379
69380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
69381$as_echo_n "checking for Guile site directory... " >&6; }
69382  GUILE_SITE=`$PKG_CONFIG --print-errors --variable=sitedir guile-$GUILE_EFFECTIVE_VERSION`
69383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
69384$as_echo "$GUILE_SITE" >&6; }
69385  if test "$GUILE_SITE" = ""; then
69386     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
69387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
69388as_fn_error $? "sitedir not found
69389See \`config.log' for more details" "$LINENO" 5; }
69390  fi
69391
69392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site-ccache directory using pkgconfig" >&5
69393$as_echo_n "checking for Guile site-ccache directory using pkgconfig... " >&6; }
69394  GUILE_SITE_CCACHE=`$PKG_CONFIG --variable=siteccachedir guile-$GUILE_EFFECTIVE_VERSION`
69395  if test "$GUILE_SITE_CCACHE" = ""; then
69396    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69397$as_echo "no" >&6; }
69398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site-ccache directory using interpreter" >&5
69399$as_echo_n "checking for Guile site-ccache directory using interpreter... " >&6; }
69400    GUILE_SITE_CCACHE=`$GUILE -c "(display (if (defined? '%site-ccache-dir) (%site-ccache-dir) \"\"))"`
69401    if test $? != "0" -o "$GUILE_SITE_CCACHE" = ""; then
69402      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69403$as_echo "no" >&6; }
69404      GUILE_SITE_CCACHE=""
69405      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: siteccachedir not found" >&5
69406$as_echo "$as_me: WARNING: siteccachedir not found" >&2;}
69407    fi
69408  fi
69409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE_CCACHE" >&5
69410$as_echo "$GUILE_SITE_CCACHE" >&6; }
69411
69412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile extensions directory" >&5
69413$as_echo_n "checking for Guile extensions directory... " >&6; }
69414  GUILE_EXTENSION=`$PKG_CONFIG --print-errors --variable=extensiondir guile-$GUILE_EFFECTIVE_VERSION`
69415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_EXTENSION" >&5
69416$as_echo "$GUILE_EXTENSION" >&6; }
69417  if test "$GUILE_EXTENSION" = ""; then
69418    GUILE_EXTENSION=""
69419    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: extensiondir not found" >&5
69420$as_echo "$as_me: WARNING: extensiondir not found" >&2;}
69421  fi
69422
69423
69424
69425
69426pkg_failed=no
69427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
69428$as_echo_n "checking for GUILE... " >&6; }
69429
69430if test -n "$GUILE_CFLAGS"; then
69431    pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
69432 elif test -n "$PKG_CONFIG"; then
69433    if test -n "$PKG_CONFIG" && \
69434    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$GUILE_EFFECTIVE_VERSION\""; } >&5
69435  ($PKG_CONFIG --exists --print-errors "guile-$GUILE_EFFECTIVE_VERSION") 2>&5
69436  ac_status=$?
69437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69438  test $ac_status = 0; }; then
69439  pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$GUILE_EFFECTIVE_VERSION" 2>/dev/null`
69440		      test "x$?" != "x0" && pkg_failed=yes
69441else
69442  pkg_failed=yes
69443fi
69444 else
69445    pkg_failed=untried
69446fi
69447if test -n "$GUILE_LIBS"; then
69448    pkg_cv_GUILE_LIBS="$GUILE_LIBS"
69449 elif test -n "$PKG_CONFIG"; then
69450    if test -n "$PKG_CONFIG" && \
69451    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$GUILE_EFFECTIVE_VERSION\""; } >&5
69452  ($PKG_CONFIG --exists --print-errors "guile-$GUILE_EFFECTIVE_VERSION") 2>&5
69453  ac_status=$?
69454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69455  test $ac_status = 0; }; then
69456  pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>/dev/null`
69457		      test "x$?" != "x0" && pkg_failed=yes
69458else
69459  pkg_failed=yes
69460fi
69461 else
69462    pkg_failed=untried
69463fi
69464
69465
69466
69467if test $pkg_failed = yes; then
69468   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69469$as_echo "no" >&6; }
69470
69471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69472        _pkg_short_errors_supported=yes
69473else
69474        _pkg_short_errors_supported=no
69475fi
69476        if test $_pkg_short_errors_supported = yes; then
69477	        GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>&1`
69478        else
69479	        GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>&1`
69480        fi
69481	# Put the nasty error message in config.log where it belongs
69482	echo "$GUILE_PKG_ERRORS" >&5
69483
69484	as_fn_error $? "Package requirements (guile-$GUILE_EFFECTIVE_VERSION) were not met:
69485
69486$GUILE_PKG_ERRORS
69487
69488Consider adjusting the PKG_CONFIG_PATH environment variable if you
69489installed software in a non-standard prefix.
69490
69491Alternatively, you may set the environment variables GUILE_CFLAGS
69492and GUILE_LIBS to avoid the need to call pkg-config.
69493See the pkg-config man page for more details." "$LINENO" 5
69494elif test $pkg_failed = untried; then
69495     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69496$as_echo "no" >&6; }
69497	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
69498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
69499as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
69500is in your PATH or set the PKG_CONFIG environment variable to the full
69501path to pkg-config.
69502
69503Alternatively, you may set the environment variables GUILE_CFLAGS
69504and GUILE_LIBS to avoid the need to call pkg-config.
69505See the pkg-config man page for more details.
69506
69507To get pkg-config, see <http://pkg-config.freedesktop.org/>.
69508See \`config.log' for more details" "$LINENO" 5; }
69509else
69510	GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
69511	GUILE_LIBS=$pkg_cv_GUILE_LIBS
69512        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69513$as_echo "yes" >&6; }
69514
69515fi
69516
69517
69518  GUILE_LDFLAGS=$GUILE_LIBS
69519
69520
69521
69522
69523  GUILE_LIBS=
69524  if test "$enable_rpath" != no; then
69525    if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
69526                  rpathdirs=
69527      next=
69528      for opt in $GUILE_LDFLAGS; do
69529        if test -n "$next"; then
69530          dir="$next"
69531                    if test "X$dir" != "X/usr/$acl_libdirstem" \
69532             && test "X$dir" != "X/usr/$acl_libdirstem2" \
69533             && test "X$dir" != "X/usr/$acl_libdirstem3"; then
69534            rpathdirs="$rpathdirs $dir"
69535          fi
69536          next=
69537        else
69538          case $opt in
69539            -L) next=yes ;;
69540            -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
69541                                  if test "X$dir" != "X/usr/$acl_libdirstem" \
69542                    && test "X$dir" != "X/usr/$acl_libdirstem2" \
69543                    && test "X$dir" != "X/usr/$acl_libdirstem3"; then
69544                   rpathdirs="$rpathdirs $dir"
69545                 fi
69546                 next= ;;
69547            *) next= ;;
69548          esac
69549        fi
69550      done
69551      if test "X$rpathdirs" != "X"; then
69552        if test -n """"; then
69553                    for dir in $rpathdirs; do
69554            GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir"
69555          done
69556        else
69557                    if test -n "$acl_hardcode_libdir_separator"; then
69558                                    alldirs=
69559            for dir in $rpathdirs; do
69560              alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
69561            done
69562            acl_save_libdir="$libdir"
69563            libdir="$alldirs"
69564            eval flag=\"$acl_hardcode_libdir_flag_spec\"
69565            libdir="$acl_save_libdir"
69566            GUILE_LIBS="$flag"
69567          else
69568                        for dir in $rpathdirs; do
69569              acl_save_libdir="$libdir"
69570              libdir="$dir"
69571              eval flag=\"$acl_hardcode_libdir_flag_spec\"
69572              libdir="$acl_save_libdir"
69573              GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag"
69574            done
69575          fi
69576        fi
69577      fi
69578    fi
69579  fi
69580
69581
69582  GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
69583
69584
69585
69586  GUILE_LTLIBS=
69587  if test "$enable_rpath" != no; then
69588    if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
69589                  rpathdirs=
69590      next=
69591      for opt in $GUILE_LDFLAGS; do
69592        if test -n "$next"; then
69593          dir="$next"
69594                    if test "X$dir" != "X/usr/$acl_libdirstem" \
69595             && test "X$dir" != "X/usr/$acl_libdirstem2" \
69596             && test "X$dir" != "X/usr/$acl_libdirstem3"; then
69597            rpathdirs="$rpathdirs $dir"
69598          fi
69599          next=
69600        else
69601          case $opt in
69602            -L) next=yes ;;
69603            -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
69604                                  if test "X$dir" != "X/usr/$acl_libdirstem" \
69605                    && test "X$dir" != "X/usr/$acl_libdirstem2" \
69606                    && test "X$dir" != "X/usr/$acl_libdirstem3"; then
69607                   rpathdirs="$rpathdirs $dir"
69608                 fi
69609                 next= ;;
69610            *) next= ;;
69611          esac
69612        fi
69613      done
69614      if test "X$rpathdirs" != "X"; then
69615        if test -n ""yes""; then
69616                    for dir in $rpathdirs; do
69617            GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir"
69618          done
69619        else
69620                    if test -n "$acl_hardcode_libdir_separator"; then
69621                                    alldirs=
69622            for dir in $rpathdirs; do
69623              alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
69624            done
69625            acl_save_libdir="$libdir"
69626            libdir="$alldirs"
69627            eval flag=\"$acl_hardcode_libdir_flag_spec\"
69628            libdir="$acl_save_libdir"
69629            GUILE_LTLIBS="$flag"
69630          else
69631                        for dir in $rpathdirs; do
69632              acl_save_libdir="$libdir"
69633              libdir="$dir"
69634              eval flag=\"$acl_hardcode_libdir_flag_spec\"
69635              libdir="$acl_save_libdir"
69636              GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag"
69637            done
69638          fi
69639        fi
69640      fi
69641    fi
69642  fi
69643
69644
69645  GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
69646
69647
69648
69649
69650
69651
69652
69653
69654      # Backward compatibility with <guile-2.2 m4 macro that is used
69655      # due to autreconf of several CI machine.
69656      # We need to guess the locations of ccache and extension
69657      if test -z "${GUILE_SITE_CCACHE}"; then
69658          { $as_echo "$as_me:${as_lineno-$LINENO}: Found <guile-2.2 m4, macro emulating" >&5
69659$as_echo "$as_me: Found <guile-2.2 m4, macro emulating" >&6;}
69660
69661          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE_SITE_CCACHE via pkg-config" >&5
69662$as_echo_n "checking for GUILE_SITE_CCACHE via pkg-config... " >&6; }
69663          GUILE_SITE_CCACHE=`$PKG_CONFIG --variable=siteccachedir guile-$GUILE_EFFECTIVE_VERSION`
69664          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GUILE_SITE_CCACHE}" >&5
69665$as_echo "${GUILE_SITE_CCACHE}" >&6; }
69666          if test -z "${GUILE_SITE_CCACHE}"; then
69667                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE_SITE_CCACHE via guile" >&5
69668$as_echo_n "checking for GUILE_SITE_CCACHE via guile... " >&6; }
69669                  GUILE_SITE_CCACHE=`$GUILE -c "(display (if (defined? '%site-ccache-dir) (%site-ccache-dir) \"\"))"`
69670                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GUILE_SITE_CCACHE}" >&5
69671$as_echo "${GUILE_SITE_CCACHE}" >&6; }
69672          fi
69673
69674
69675          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE_EXTENSION" >&5
69676$as_echo_n "checking for GUILE_EXTENSION... " >&6; }
69677          GUILE_EXTENSION=`$PKG_CONFIG --print-errors --variable=extensiondir guile-$GUILE_EFFECTIVE_VERSION`
69678          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GUILE_EXTENSION}" >&5
69679$as_echo "${GUILE_EXTENSION}" >&6; }
69680
69681      fi
69682
69683      save_CFLAGS="$CFLAGS"
69684      save_LIBS="$LIBS"
69685      CFLAGS="$CFLAGS $GUILE_CFLAGS"
69686      LIBS="$LIBS $GUILE_LDFLAGS"
69687      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU Guile is recent enough" >&5
69688$as_echo_n "checking whether GNU Guile is recent enough... " >&6; }
69689      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69690/* end confdefs.h.  */
69691
69692int
69693main ()
69694{
69695scm_from_locale_string ("")
69696  ;
69697  return 0;
69698}
69699_ACEOF
69700if ac_fn_c_try_link "$LINENO"; then :
69701
69702else
69703  opt_guile_bindings=no
69704fi
69705rm -f core conftest.err conftest.$ac_objext \
69706    conftest$ac_exeext conftest.$ac_ext
69707      CFLAGS="$save_CFLAGS"
69708      LIBS="$save_LIBS"
69709
69710      if test "$opt_guile_bindings" = "yes"; then
69711        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69712$as_echo "yes" >&6; }
69713        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fgnu89-inline" >&5
69714$as_echo_n "checking whether gcc supports -fgnu89-inline... " >&6; }
69715        _gcc_cflags_save="$CFLAGS"
69716        CFLAGS="${CFLAGS} -fgnu89-inline"
69717        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69718/* end confdefs.h.  */
69719
69720int
69721main ()
69722{
69723
69724  ;
69725  return 0;
69726}
69727_ACEOF
69728if ac_fn_c_try_compile "$LINENO"; then :
69729  gnu89_inline=yes
69730else
69731  gnu89_inline=no
69732fi
69733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69734        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnu89_inline" >&5
69735$as_echo "$gnu89_inline" >&6; }
69736        CFLAGS="$_gcc_cflags_save"
69737
69738	# Optional Guile functions.
69739	save_CFLAGS="$CFLAGS"
69740	save_LIBS="$LIBS"
69741	CFLAGS="$CFLAGS $GUILE_CFLAGS"
69742	LIBS="$LIBS $GUILE_LDFLAGS"
69743	for ac_func in scm_gc_malloc_pointerless
69744do :
69745  ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
69746if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes; then :
69747  cat >>confdefs.h <<_ACEOF
69748#define HAVE_SCM_GC_MALLOC_POINTERLESS 1
69749_ACEOF
69750
69751fi
69752done
69753
69754	CFLAGS="$save_CFLAGS"
69755	LIBS="$save_LIBS"
69756
69757	# Do we need to hard-code $guileextensiondir in gnutls.scm?
69758	# This is not necessary when $guileextensiondir is equal to
69759	# Guile's 'extensiondir' as specified in 'guile-MAJOR.MINOR.pc'.
69760	if test "$guileextensiondir" = "`$PKG_CONFIG guile-$GUILE_EFFECTIVE_VERSION --variable extensiondir`" \
69761	     || test "$guileextensiondir" = '$(GUILE_EXTENSION)'; then
69762	  maybe_guileextensiondir='#f'
69763	fi
69764      else
69765        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69766$as_echo "no" >&6; }
69767        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&5
69768$as_echo "$as_me: WARNING: A sufficiently recent GNU Guile not found.  Guile bindings not built." >&2;}
69769        opt_guile_bindings=no
69770      fi
69771   fi
69772fi
69773
69774
69775 if test "$opt_guile_bindings" = "yes"; then
69776  HAVE_GUILE_TRUE=
69777  HAVE_GUILE_FALSE='#'
69778else
69779  HAVE_GUILE_TRUE='#'
69780  HAVE_GUILE_FALSE=
69781fi
69782
69783 if test "x$GUILD" != "x"; then
69784  HAVE_GUILD_TRUE=
69785  HAVE_GUILD_FALSE='#'
69786else
69787  HAVE_GUILD_TRUE='#'
69788  HAVE_GUILD_FALSE=
69789fi
69790
69791 if test "x$cross_compiling" = "xyes"; then
69792  CROSS_COMPILING_TRUE=
69793  CROSS_COMPILING_FALSE='#'
69794else
69795  CROSS_COMPILING_TRUE='#'
69796  CROSS_COMPILING_FALSE=
69797fi
69798
69799
69800LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
69801LIBGNUTLS_CFLAGS="-I${includedir}"
69802
69803
69804
69805 if test "$gnutls_needs_librt" = "yes"; then
69806  NEEDS_LIBRT_TRUE=
69807  NEEDS_LIBRT_FALSE='#'
69808else
69809  NEEDS_LIBRT_TRUE='#'
69810  NEEDS_LIBRT_FALSE=
69811fi
69812
69813
69814
69815$as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
69816
69817
69818$as_echo "#define GNUTLS_INTERNAL_BUILD 1" >>confdefs.h
69819
69820
69821
69822$as_echo "#define fread_file _gnutls_fread_file" >>confdefs.h
69823
69824
69825$as_echo "#define read_file _gnutls_read_file" >>confdefs.h
69826
69827
69828
69829$as_echo "#define INI_MAX_LINE 2048" >>confdefs.h
69830
69831
69832$as_echo "#define INI_ALLOW_INLINE_COMMENTS 1" >>confdefs.h
69833
69834
69835$as_echo "#define INI_STOP_ON_FIRST_ERROR 1" >>confdefs.h
69836
69837
69838cat >>confdefs.h <<_ACEOF
69839#define INI_INLINE_COMMENT_PREFIXES ";#"
69840_ACEOF
69841
69842
69843cat >>confdefs.h <<_ACEOF
69844#define INI_START_COMMENT_PREFIXES ";#"
69845_ACEOF
69846
69847
69848ac_config_files="$ac_config_files guile/pre-inst-guile"
69849
69850ac_config_files="$ac_config_files Makefile doc/Makefile doc/credentials/Makefile doc/credentials/srp/Makefile doc/credentials/x509/Makefile doc/doxygen/Doxyfile doc/examples/Makefile doc/latex/Makefile doc/manpages/Makefile doc/reference/Makefile doc/reference/version.xml doc/scripts/Makefile extra/Makefile extra/includes/Makefile libdane/Makefile libdane/includes/Makefile libdane/gnutls-dane.pc gl/Makefile gl/tests/Makefile guile/Makefile guile/src/Makefile lib/Makefile lib/accelerated/Makefile lib/accelerated/x86/Makefile lib/accelerated/aarch64/Makefile lib/algorithms/Makefile lib/auth/Makefile lib/ext/Makefile lib/extras/Makefile lib/gnutls.pc lib/includes/Makefile lib/includes/gnutls/gnutls.h lib/minitasn1/Makefile lib/nettle/Makefile lib/x509/Makefile lib/unistring/Makefile po/Makefile.in src/Makefile src/args-std.def src/gl/Makefile tests/Makefile tests/windows/Makefile tests/cert-tests/Makefile tests/slow/Makefile tests/suite/Makefile fuzz/Makefile"
69851
69852
69853cat >confcache <<\_ACEOF
69854# This file is a shell script that caches the results of configure
69855# tests run on this system so they can be shared between configure
69856# scripts and configure runs, see configure's option --config-cache.
69857# It is not useful on other systems.  If it contains results you don't
69858# want to keep, you may remove or edit it.
69859#
69860# config.status only pays attention to the cache file if you give it
69861# the --recheck option to rerun configure.
69862#
69863# `ac_cv_env_foo' variables (set or unset) will be overridden when
69864# loading this file, other *unset* `ac_cv_foo' will be assigned the
69865# following values.
69866
69867_ACEOF
69868
69869# The following way of writing the cache mishandles newlines in values,
69870# but we know of no workaround that is simple, portable, and efficient.
69871# So, we kill variables containing newlines.
69872# Ultrix sh set writes to stderr and can't be redirected directly,
69873# and sets the high bit in the cache file unless we assign to the vars.
69874(
69875  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
69876    eval ac_val=\$$ac_var
69877    case $ac_val in #(
69878    *${as_nl}*)
69879      case $ac_var in #(
69880      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
69881$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
69882      esac
69883      case $ac_var in #(
69884      _ | IFS | as_nl) ;; #(
69885      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
69886      *) { eval $ac_var=; unset $ac_var;} ;;
69887      esac ;;
69888    esac
69889  done
69890
69891  (set) 2>&1 |
69892    case $as_nl`(ac_space=' '; set) 2>&1` in #(
69893    *${as_nl}ac_space=\ *)
69894      # `set' does not quote correctly, so add quotes: double-quote
69895      # substitution turns \\\\ into \\, and sed turns \\ into \.
69896      sed -n \
69897	"s/'/'\\\\''/g;
69898	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
69899      ;; #(
69900    *)
69901      # `set' quotes correctly as required by POSIX, so do not add quotes.
69902      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
69903      ;;
69904    esac |
69905    sort
69906) |
69907  sed '
69908     /^ac_cv_env_/b end
69909     t clear
69910     :clear
69911     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
69912     t end
69913     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
69914     :end' >>confcache
69915if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
69916  if test -w "$cache_file"; then
69917    if test "x$cache_file" != "x/dev/null"; then
69918      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
69919$as_echo "$as_me: updating cache $cache_file" >&6;}
69920      if test ! -f "$cache_file" || test -h "$cache_file"; then
69921	cat confcache >"$cache_file"
69922      else
69923        case $cache_file in #(
69924        */* | ?:*)
69925	  mv -f confcache "$cache_file"$$ &&
69926	  mv -f "$cache_file"$$ "$cache_file" ;; #(
69927        *)
69928	  mv -f confcache "$cache_file" ;;
69929	esac
69930      fi
69931    fi
69932  else
69933    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
69934$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
69935  fi
69936fi
69937rm -f confcache
69938
69939test "x$prefix" = xNONE && prefix=$ac_default_prefix
69940# Let make expand exec_prefix.
69941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
69942
69943DEFS=-DHAVE_CONFIG_H
69944
69945ac_libobjs=
69946ac_ltlibobjs=
69947U=
69948for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
69949  # 1. Remove the extension, and $U if already installed.
69950  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
69951  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
69952  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
69953  #    will be set to the directory where LIBOBJS objects are built.
69954  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
69955  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
69956done
69957LIBOBJS=$ac_libobjs
69958
69959LTLIBOBJS=$ac_ltlibobjs
69960
69961
69962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
69963$as_echo_n "checking that generated files are newer than configure... " >&6; }
69964   if test -n "$am_sleep_pid"; then
69965     # Hide warnings about reused PIDs.
69966     wait $am_sleep_pid 2>/dev/null
69967   fi
69968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
69969$as_echo "done" >&6; }
69970 if test -n "$EXEEXT"; then
69971  am__EXEEXT_TRUE=
69972  am__EXEEXT_FALSE='#'
69973else
69974  am__EXEEXT_TRUE='#'
69975  am__EXEEXT_FALSE=
69976fi
69977
69978if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
69979  as_fn_error $? "conditional \"AMDEP\" was never defined.
69980Usually this means the macro was only invoked conditionally." "$LINENO" 5
69981fi
69982if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
69983  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
69984Usually this means the macro was only invoked conditionally." "$LINENO" 5
69985fi
69986if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
69987  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
69988Usually this means the macro was only invoked conditionally." "$LINENO" 5
69989fi
69990if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
69991  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
69992Usually this means the macro was only invoked conditionally." "$LINENO" 5
69993fi
69994if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
69995  as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
69996Usually this means the macro was only invoked conditionally." "$LINENO" 5
69997fi
69998if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
69999  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
70000Usually this means the macro was only invoked conditionally." "$LINENO" 5
70001fi
70002if test -z "${DISABLE_BASH_TESTS_TRUE}" && test -z "${DISABLE_BASH_TESTS_FALSE}"; then
70003  as_fn_error $? "conditional \"DISABLE_BASH_TESTS\" was never defined.
70004Usually this means the macro was only invoked conditionally." "$LINENO" 5
70005fi
70006if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
70007  as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
70008Usually this means the macro was only invoked conditionally." "$LINENO" 5
70009fi
70010if test -z "${ENABLE_MANPAGES_TRUE}" && test -z "${ENABLE_MANPAGES_FALSE}"; then
70011  as_fn_error $? "conditional \"ENABLE_MANPAGES\" was never defined.
70012Usually this means the macro was only invoked conditionally." "$LINENO" 5
70013fi
70014if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
70015  as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
70016Usually this means the macro was only invoked conditionally." "$LINENO" 5
70017fi
70018if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
70019  as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
70020Usually this means the macro was only invoked conditionally." "$LINENO" 5
70021fi
70022if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
70023  as_fn_error $? "conditional \"ANDROID\" was never defined.
70024Usually this means the macro was only invoked conditionally." "$LINENO" 5
70025fi
70026if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
70027  as_fn_error $? "conditional \"WINDOWS\" was never defined.
70028Usually this means the macro was only invoked conditionally." "$LINENO" 5
70029fi
70030if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
70031  as_fn_error $? "conditional \"MACOSX\" was never defined.
70032Usually this means the macro was only invoked conditionally." "$LINENO" 5
70033fi
70034if test -z "${ELF_TRUE}" && test -z "${ELF_FALSE}"; then
70035  as_fn_error $? "conditional \"ELF\" was never defined.
70036Usually this means the macro was only invoked conditionally." "$LINENO" 5
70037fi
70038if test -z "${ENABLE_TLS13_INTEROP_TRUE}" && test -z "${ENABLE_TLS13_INTEROP_FALSE}"; then
70039  as_fn_error $? "conditional \"ENABLE_TLS13_INTEROP\" was never defined.
70040Usually this means the macro was only invoked conditionally." "$LINENO" 5
70041fi
70042if test -z "${ENABLE_PADLOCK_TRUE}" && test -z "${ENABLE_PADLOCK_FALSE}"; then
70043  as_fn_error $? "conditional \"ENABLE_PADLOCK\" was never defined.
70044Usually this means the macro was only invoked conditionally." "$LINENO" 5
70045fi
70046if test -z "${ASM_AARCH64_TRUE}" && test -z "${ASM_AARCH64_FALSE}"; then
70047  as_fn_error $? "conditional \"ASM_AARCH64\" was never defined.
70048Usually this means the macro was only invoked conditionally." "$LINENO" 5
70049fi
70050if test -z "${ASM_X86_64_TRUE}" && test -z "${ASM_X86_64_FALSE}"; then
70051  as_fn_error $? "conditional \"ASM_X86_64\" was never defined.
70052Usually this means the macro was only invoked conditionally." "$LINENO" 5
70053fi
70054if test -z "${ASM_X86_32_TRUE}" && test -z "${ASM_X86_32_FALSE}"; then
70055  as_fn_error $? "conditional \"ASM_X86_32\" was never defined.
70056Usually this means the macro was only invoked conditionally." "$LINENO" 5
70057fi
70058if test -z "${ASM_X86_TRUE}" && test -z "${ASM_X86_FALSE}"; then
70059  as_fn_error $? "conditional \"ASM_X86\" was never defined.
70060Usually this means the macro was only invoked conditionally." "$LINENO" 5
70061fi
70062if test -z "${HAVE_GCC_GNU89_INLINE_OPTION_TRUE}" && test -z "${HAVE_GCC_GNU89_INLINE_OPTION_FALSE}"; then
70063  as_fn_error $? "conditional \"HAVE_GCC_GNU89_INLINE_OPTION\" was never defined.
70064Usually this means the macro was only invoked conditionally." "$LINENO" 5
70065fi
70066if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
70067  as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
70068Usually this means the macro was only invoked conditionally." "$LINENO" 5
70069fi
70070if test -z "${HAVE_KERN_ARND_TRUE}" && test -z "${HAVE_KERN_ARND_FALSE}"; then
70071  as_fn_error $? "conditional \"HAVE_KERN_ARND\" was never defined.
70072Usually this means the macro was only invoked conditionally." "$LINENO" 5
70073fi
70074if test -z "${HAVE_GETENTROPY_TRUE}" && test -z "${HAVE_GETENTROPY_FALSE}"; then
70075  as_fn_error $? "conditional \"HAVE_GETENTROPY\" was never defined.
70076Usually this means the macro was only invoked conditionally." "$LINENO" 5
70077fi
70078if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
70079  as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
70080Usually this means the macro was only invoked conditionally." "$LINENO" 5
70081fi
70082if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
70083  as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
70084Usually this means the macro was only invoked conditionally." "$LINENO" 5
70085fi
70086if test -z "${STRICT_DER_TIME_TRUE}" && test -z "${STRICT_DER_TIME_FALSE}"; then
70087  as_fn_error $? "conditional \"STRICT_DER_TIME\" was never defined.
70088Usually this means the macro was only invoked conditionally." "$LINENO" 5
70089fi
70090if test -z "${ALLOW_SHA1_TRUE}" && test -z "${ALLOW_SHA1_FALSE}"; then
70091  as_fn_error $? "conditional \"ALLOW_SHA1\" was never defined.
70092Usually this means the macro was only invoked conditionally." "$LINENO" 5
70093fi
70094if test -z "${ENABLE_SSL3_TRUE}" && test -z "${ENABLE_SSL3_FALSE}"; then
70095  as_fn_error $? "conditional \"ENABLE_SSL3\" was never defined.
70096Usually this means the macro was only invoked conditionally." "$LINENO" 5
70097fi
70098if test -z "${ENABLE_SSL2_TRUE}" && test -z "${ENABLE_SSL2_FALSE}"; then
70099  as_fn_error $? "conditional \"ENABLE_SSL2\" was never defined.
70100Usually this means the macro was only invoked conditionally." "$LINENO" 5
70101fi
70102if test -z "${ENABLE_DTLS_SRTP_TRUE}" && test -z "${ENABLE_DTLS_SRTP_FALSE}"; then
70103  as_fn_error $? "conditional \"ENABLE_DTLS_SRTP\" was never defined.
70104Usually this means the macro was only invoked conditionally." "$LINENO" 5
70105fi
70106if test -z "${ENABLE_ALPN_TRUE}" && test -z "${ENABLE_ALPN_FALSE}"; then
70107  as_fn_error $? "conditional \"ENABLE_ALPN\" was never defined.
70108Usually this means the macro was only invoked conditionally." "$LINENO" 5
70109fi
70110if test -z "${ENABLE_HEARTBEAT_TRUE}" && test -z "${ENABLE_HEARTBEAT_FALSE}"; then
70111  as_fn_error $? "conditional \"ENABLE_HEARTBEAT\" was never defined.
70112Usually this means the macro was only invoked conditionally." "$LINENO" 5
70113fi
70114if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
70115  as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
70116Usually this means the macro was only invoked conditionally." "$LINENO" 5
70117fi
70118if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
70119  as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
70120Usually this means the macro was only invoked conditionally." "$LINENO" 5
70121fi
70122if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
70123  as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
70124Usually this means the macro was only invoked conditionally." "$LINENO" 5
70125fi
70126if test -z "${ENABLE_DHE_TRUE}" && test -z "${ENABLE_DHE_FALSE}"; then
70127  as_fn_error $? "conditional \"ENABLE_DHE\" was never defined.
70128Usually this means the macro was only invoked conditionally." "$LINENO" 5
70129fi
70130if test -z "${ENABLE_ECDHE_TRUE}" && test -z "${ENABLE_ECDHE_FALSE}"; then
70131  as_fn_error $? "conditional \"ENABLE_ECDHE\" was never defined.
70132Usually this means the macro was only invoked conditionally." "$LINENO" 5
70133fi
70134if test -z "${ENABLE_GOST_TRUE}" && test -z "${ENABLE_GOST_FALSE}"; then
70135  as_fn_error $? "conditional \"ENABLE_GOST\" was never defined.
70136Usually this means the macro was only invoked conditionally." "$LINENO" 5
70137fi
70138if test -z "${ENABLE_OCSP_TRUE}" && test -z "${ENABLE_OCSP_FALSE}"; then
70139  as_fn_error $? "conditional \"ENABLE_OCSP\" was never defined.
70140Usually this means the macro was only invoked conditionally." "$LINENO" 5
70141fi
70142if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
70143  as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
70144Usually this means the macro was only invoked conditionally." "$LINENO" 5
70145fi
70146if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
70147  as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
70148Usually this means the macro was only invoked conditionally." "$LINENO" 5
70149fi
70150if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
70151  as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
70152Usually this means the macro was only invoked conditionally." "$LINENO" 5
70153fi
70154if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
70155  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
70156Usually this means the macro was only invoked conditionally." "$LINENO" 5
70157fi
70158if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
70159  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
70160Usually this means the macro was only invoked conditionally." "$LINENO" 5
70161fi
70162if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
70163  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
70164Usually this means the macro was only invoked conditionally." "$LINENO" 5
70165fi
70166if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
70167  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
70168Usually this means the macro was only invoked conditionally." "$LINENO" 5
70169fi
70170if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
70171  as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
70172Usually this means the macro was only invoked conditionally." "$LINENO" 5
70173fi
70174if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
70175  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
70176Usually this means the macro was only invoked conditionally." "$LINENO" 5
70177fi
70178
70179if test -z "${HAVE_FORK_TRUE}" && test -z "${HAVE_FORK_FALSE}"; then
70180  as_fn_error $? "conditional \"HAVE_FORK\" was never defined.
70181Usually this means the macro was only invoked conditionally." "$LINENO" 5
70182fi
70183if test -z "${HAVE_SECCOMP_TESTS_TRUE}" && test -z "${HAVE_SECCOMP_TESTS_FALSE}"; then
70184  as_fn_error $? "conditional \"HAVE_SECCOMP_TESTS\" was never defined.
70185Usually this means the macro was only invoked conditionally." "$LINENO" 5
70186fi
70187if test -z "${HAVE_LIBCRYPTO_TRUE}" && test -z "${HAVE_LIBCRYPTO_FALSE}"; then
70188  as_fn_error $? "conditional \"HAVE_LIBCRYPTO\" was never defined.
70189Usually this means the macro was only invoked conditionally." "$LINENO" 5
70190fi
70191if test -z "${HAVE_LIBUNISTRING_TRUE}" && test -z "${HAVE_LIBUNISTRING_FALSE}"; then
70192  as_fn_error $? "conditional \"HAVE_LIBUNISTRING\" was never defined.
70193Usually this means the macro was only invoked conditionally." "$LINENO" 5
70194fi
70195if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
70196  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
70197Usually this means the macro was only invoked conditionally." "$LINENO" 5
70198fi
70199if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
70200  as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
70201Usually this means the macro was only invoked conditionally." "$LINENO" 5
70202fi
70203if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
70204  as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
70205Usually this means the macro was only invoked conditionally." "$LINENO" 5
70206fi
70207if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
70208  as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
70209Usually this means the macro was only invoked conditionally." "$LINENO" 5
70210fi
70211if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
70212  as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
70213Usually this means the macro was only invoked conditionally." "$LINENO" 5
70214fi
70215if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
70216  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
70217Usually this means the macro was only invoked conditionally." "$LINENO" 5
70218fi
70219if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
70220  as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
70221Usually this means the macro was only invoked conditionally." "$LINENO" 5
70222fi
70223if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
70224  as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
70225Usually this means the macro was only invoked conditionally." "$LINENO" 5
70226fi
70227if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
70228  as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
70229Usually this means the macro was only invoked conditionally." "$LINENO" 5
70230fi
70231if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
70232  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
70233Usually this means the macro was only invoked conditionally." "$LINENO" 5
70234fi
70235CONFIG_INCLUDE=config.h
70236
70237if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
70238  as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
70239Usually this means the macro was only invoked conditionally." "$LINENO" 5
70240fi
70241if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
70242  as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
70243Usually this means the macro was only invoked conditionally." "$LINENO" 5
70244fi
70245if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
70246  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
70247Usually this means the macro was only invoked conditionally." "$LINENO" 5
70248fi
70249if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
70250  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
70251Usually this means the macro was only invoked conditionally." "$LINENO" 5
70252fi
70253
70254
70255    gl_libobjs=
70256    gl_ltlibobjs=
70257    if test -n "$gl_LIBOBJS"; then
70258      # Remove the extension.
70259      sed_drop_objext='s/\.o$//;s/\.obj$//'
70260      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
70261        gl_libobjs="$gl_libobjs $i.$ac_objext"
70262        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
70263      done
70264    fi
70265    gl_LIBOBJS=$gl_libobjs
70266
70267    gl_LTLIBOBJS=$gl_ltlibobjs
70268
70269
70270
70271
70272
70273    gltests_libobjs=
70274    gltests_ltlibobjs=
70275    if test -n "$gltests_LIBOBJS"; then
70276      # Remove the extension.
70277      sed_drop_objext='s/\.o$//;s/\.obj$//'
70278      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
70279        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
70280        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
70281      done
70282    fi
70283    gltests_LIBOBJS=$gltests_libobjs
70284
70285    gltests_LTLIBOBJS=$gltests_ltlibobjs
70286
70287
70288if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
70289  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
70290Usually this means the macro was only invoked conditionally." "$LINENO" 5
70291fi
70292if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
70293  as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
70294Usually this means the macro was only invoked conditionally." "$LINENO" 5
70295fi
70296if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
70297  as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
70298Usually this means the macro was only invoked conditionally." "$LINENO" 5
70299fi
70300if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
70301  as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
70302Usually this means the macro was only invoked conditionally." "$LINENO" 5
70303fi
70304if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
70305  as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
70306Usually this means the macro was only invoked conditionally." "$LINENO" 5
70307fi
70308if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
70309  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
70310Usually this means the macro was only invoked conditionally." "$LINENO" 5
70311fi
70312if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
70313  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
70314Usually this means the macro was only invoked conditionally." "$LINENO" 5
70315fi
70316
70317    ggl_libobjs=
70318    ggl_ltlibobjs=
70319    if test -n "$ggl_LIBOBJS"; then
70320      # Remove the extension.
70321      sed_drop_objext='s/\.o$//;s/\.obj$//'
70322      for i in `for i in $ggl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
70323        ggl_libobjs="$ggl_libobjs $i.$ac_objext"
70324        ggl_ltlibobjs="$ggl_ltlibobjs $i.lo"
70325      done
70326    fi
70327    ggl_LIBOBJS=$ggl_libobjs
70328
70329    ggl_LTLIBOBJS=$ggl_ltlibobjs
70330
70331
70332
70333    ggltests_libobjs=
70334    ggltests_ltlibobjs=
70335    if test -n "$ggltests_LIBOBJS"; then
70336      # Remove the extension.
70337      sed_drop_objext='s/\.o$//;s/\.obj$//'
70338      for i in `for i in $ggltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
70339        ggltests_libobjs="$ggltests_libobjs $i.$ac_objext"
70340        ggltests_ltlibobjs="$ggltests_ltlibobjs $i.lo"
70341      done
70342    fi
70343    ggltests_LIBOBJS=$ggltests_libobjs
70344
70345    ggltests_LTLIBOBJS=$ggltests_ltlibobjs
70346
70347
70348if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
70349  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
70350Usually this means the macro was only invoked conditionally." "$LINENO" 5
70351fi
70352if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
70353  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
70354Usually this means the macro was only invoked conditionally." "$LINENO" 5
70355fi
70356if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C_FALSE}"; then
70357  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_C\" was never defined.
70358Usually this means the macro was only invoked conditionally." "$LINENO" 5
70359fi
70360if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC_FALSE}"; then
70361  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CC\" was never defined.
70362Usually this means the macro was only invoked conditionally." "$LINENO" 5
70363fi
70364if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF_FALSE}"; then
70365  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CF\" was never defined.
70366Usually this means the macro was only invoked conditionally." "$LINENO" 5
70367fi
70368if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN_FALSE}"; then
70369  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CN\" was never defined.
70370Usually this means the macro was only invoked conditionally." "$LINENO" 5
70371fi
70372if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO_FALSE}"; then
70373  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CO\" was never defined.
70374Usually this means the macro was only invoked conditionally." "$LINENO" 5
70375fi
70376if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS_FALSE}"; then
70377  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_CS\" was never defined.
70378Usually this means the macro was only invoked conditionally." "$LINENO" 5
70379fi
70380if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L_FALSE}"; then
70381  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_L\" was never defined.
70382Usually this means the macro was only invoked conditionally." "$LINENO" 5
70383fi
70384if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC_FALSE}"; then
70385  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LC\" was never defined.
70386Usually this means the macro was only invoked conditionally." "$LINENO" 5
70387fi
70388if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL_FALSE}"; then
70389  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LL\" was never defined.
70390Usually this means the macro was only invoked conditionally." "$LINENO" 5
70391fi
70392if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM_FALSE}"; then
70393  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LM\" was never defined.
70394Usually this means the macro was only invoked conditionally." "$LINENO" 5
70395fi
70396if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO_FALSE}"; then
70397  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LO\" was never defined.
70398Usually this means the macro was only invoked conditionally." "$LINENO" 5
70399fi
70400if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT_FALSE}"; then
70401  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LT\" was never defined.
70402Usually this means the macro was only invoked conditionally." "$LINENO" 5
70403fi
70404if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU_FALSE}"; then
70405  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LU\" was never defined.
70406Usually this means the macro was only invoked conditionally." "$LINENO" 5
70407fi
70408if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M_FALSE}"; then
70409  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_M\" was never defined.
70410Usually this means the macro was only invoked conditionally." "$LINENO" 5
70411fi
70412if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC_FALSE}"; then
70413  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MC\" was never defined.
70414Usually this means the macro was only invoked conditionally." "$LINENO" 5
70415fi
70416if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME_FALSE}"; then
70417  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ME\" was never defined.
70418Usually this means the macro was only invoked conditionally." "$LINENO" 5
70419fi
70420if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN_FALSE}"; then
70421  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_MN\" was never defined.
70422Usually this means the macro was only invoked conditionally." "$LINENO" 5
70423fi
70424if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N_FALSE}"; then
70425  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_N\" was never defined.
70426Usually this means the macro was only invoked conditionally." "$LINENO" 5
70427fi
70428if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND_FALSE}"; then
70429  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ND\" was never defined.
70430Usually this means the macro was only invoked conditionally." "$LINENO" 5
70431fi
70432if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL_FALSE}"; then
70433  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NL\" was never defined.
70434Usually this means the macro was only invoked conditionally." "$LINENO" 5
70435fi
70436if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO_FALSE}"; then
70437  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NO\" was never defined.
70438Usually this means the macro was only invoked conditionally." "$LINENO" 5
70439fi
70440if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P_FALSE}"; then
70441  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_P\" was never defined.
70442Usually this means the macro was only invoked conditionally." "$LINENO" 5
70443fi
70444if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC_FALSE}"; then
70445  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PC\" was never defined.
70446Usually this means the macro was only invoked conditionally." "$LINENO" 5
70447fi
70448if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD_FALSE}"; then
70449  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PD\" was never defined.
70450Usually this means the macro was only invoked conditionally." "$LINENO" 5
70451fi
70452if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE_FALSE}"; then
70453  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PE\" was never defined.
70454Usually this means the macro was only invoked conditionally." "$LINENO" 5
70455fi
70456if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF_FALSE}"; then
70457  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PF\" was never defined.
70458Usually this means the macro was only invoked conditionally." "$LINENO" 5
70459fi
70460if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI_FALSE}"; then
70461  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PI\" was never defined.
70462Usually this means the macro was only invoked conditionally." "$LINENO" 5
70463fi
70464if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO_FALSE}"; then
70465  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PO\" was never defined.
70466Usually this means the macro was only invoked conditionally." "$LINENO" 5
70467fi
70468if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS_FALSE}"; then
70469  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_PS\" was never defined.
70470Usually this means the macro was only invoked conditionally." "$LINENO" 5
70471fi
70472if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S_FALSE}"; then
70473  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_S\" was never defined.
70474Usually this means the macro was only invoked conditionally." "$LINENO" 5
70475fi
70476if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC_FALSE}"; then
70477  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SC\" was never defined.
70478Usually this means the macro was only invoked conditionally." "$LINENO" 5
70479fi
70480if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK_FALSE}"; then
70481  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SK\" was never defined.
70482Usually this means the macro was only invoked conditionally." "$LINENO" 5
70483fi
70484if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM_FALSE}"; then
70485  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SM\" was never defined.
70486Usually this means the macro was only invoked conditionally." "$LINENO" 5
70487fi
70488if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO_FALSE}"; then
70489  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_SO\" was never defined.
70490Usually this means the macro was only invoked conditionally." "$LINENO" 5
70491fi
70492if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z_FALSE}"; then
70493  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_Z\" was never defined.
70494Usually this means the macro was only invoked conditionally." "$LINENO" 5
70495fi
70496if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL_FALSE}"; then
70497  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZL\" was never defined.
70498Usually this means the macro was only invoked conditionally." "$LINENO" 5
70499fi
70500if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP_FALSE}"; then
70501  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZP\" was never defined.
70502Usually this means the macro was only invoked conditionally." "$LINENO" 5
70503fi
70504if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS_FALSE}"; then
70505  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_ZS\" was never defined.
70506Usually this means the macro was only invoked conditionally." "$LINENO" 5
70507fi
70508if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_FALSE}"; then
70509  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND\" was never defined.
70510Usually this means the macro was only invoked conditionally." "$LINENO" 5
70511fi
70512if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT_FALSE}"; then
70513  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_AND_NOT\" was never defined.
70514Usually this means the macro was only invoked conditionally." "$LINENO" 5
70515fi
70516if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME_FALSE}"; then
70517  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME\" was never defined.
70518Usually this means the macro was only invoked conditionally." "$LINENO" 5
70519fi
70520if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME_FALSE}"; then
70521  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_LONGNAME\" was never defined.
70522Usually this means the macro was only invoked conditionally." "$LINENO" 5
70523fi
70524if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME_FALSE}"; then
70525  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NAME\" was never defined.
70526Usually this means the macro was only invoked conditionally." "$LINENO" 5
70527fi
70528if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE_FALSE}"; then
70529  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_NONE\" was never defined.
70530Usually this means the macro was only invoked conditionally." "$LINENO" 5
70531fi
70532if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF_FALSE}"; then
70533  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OF\" was never defined.
70534Usually this means the macro was only invoked conditionally." "$LINENO" 5
70535fi
70536if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR_FALSE}"; then
70537  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_OR\" was never defined.
70538Usually this means the macro was only invoked conditionally." "$LINENO" 5
70539fi
70540if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST_FALSE}"; then
70541  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_TEST\" was never defined.
70542Usually this means the macro was only invoked conditionally." "$LINENO" 5
70543fi
70544if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS_FALSE}"; then
70545  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_COMBINING_CLASS\" was never defined.
70546Usually this means the macro was only invoked conditionally." "$LINENO" 5
70547fi
70548if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT_FALSE}"; then
70549  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT\" was never defined.
70550Usually this means the macro was only invoked conditionally." "$LINENO" 5
70551fi
70552if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL_FALSE}"; then
70553  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_JOIN_CONTROL\" was never defined.
70554Usually this means the macro was only invoked conditionally." "$LINENO" 5
70555fi
70556if test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER_FALSE}"; then
70557  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_NOT_A_CHARACTER\" was never defined.
70558Usually this means the macro was only invoked conditionally." "$LINENO" 5
70559fi
70560if test -z "${LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION_FALSE}"; then
70561  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_CANONICAL_DECOMPOSITION\" was never defined.
70562Usually this means the macro was only invoked conditionally." "$LINENO" 5
70563fi
70564if test -z "${LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_COMPOSITION_FALSE}"; then
70565  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_COMPOSITION\" was never defined.
70566Usually this means the macro was only invoked conditionally." "$LINENO" 5
70567fi
70568if test -z "${LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION_FALSE}"; then
70569  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_DECOMPOSITION\" was never defined.
70570Usually this means the macro was only invoked conditionally." "$LINENO" 5
70571fi
70572if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFC_FALSE}"; then
70573  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFC\" was never defined.
70574Usually this means the macro was only invoked conditionally." "$LINENO" 5
70575fi
70576if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFD_FALSE}"; then
70577  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFD\" was never defined.
70578Usually this means the macro was only invoked conditionally." "$LINENO" 5
70579fi
70580if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKC_FALSE}"; then
70581  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFKC\" was never defined.
70582Usually this means the macro was only invoked conditionally." "$LINENO" 5
70583fi
70584if test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKD_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_NFKD_FALSE}"; then
70585  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_NFKD\" was never defined.
70586Usually this means the macro was only invoked conditionally." "$LINENO" 5
70587fi
70588if test -z "${LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE_FALSE}"; then
70589  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_U16_NORMALIZE\" was never defined.
70590Usually this means the macro was only invoked conditionally." "$LINENO" 5
70591fi
70592if test -z "${LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE_FALSE}"; then
70593  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_U32_NORMALIZE\" was never defined.
70594Usually this means the macro was only invoked conditionally." "$LINENO" 5
70595fi
70596if test -z "${LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE_FALSE}"; then
70597  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNINORM_U8_NORMALIZE\" was never defined.
70598Usually this means the macro was only invoked conditionally." "$LINENO" 5
70599fi
70600if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_CPY_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_CPY_FALSE}"; then
70601  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_CPY\" was never defined.
70602Usually this means the macro was only invoked conditionally." "$LINENO" 5
70603fi
70604if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE_FALSE}"; then
70605  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_UNSAFE\" was never defined.
70606Usually this means the macro was only invoked conditionally." "$LINENO" 5
70607fi
70608if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR_FALSE}"; then
70609  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUCR\" was never defined.
70610Usually this means the macro was only invoked conditionally." "$LINENO" 5
70611fi
70612if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8_FALSE}"; then
70613  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_TO_U8\" was never defined.
70614Usually this means the macro was only invoked conditionally." "$LINENO" 5
70615fi
70616if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB_FALSE}"; then
70617  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_UCTOMB\" was never defined.
70618Usually this means the macro was only invoked conditionally." "$LINENO" 5
70619fi
70620if test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_CPY_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_CPY_FALSE}"; then
70621  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U32_CPY\" was never defined.
70622Usually this means the macro was only invoked conditionally." "$LINENO" 5
70623fi
70624if test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE_FALSE}"; then
70625  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U32_MBTOUC_UNSAFE\" was never defined.
70626Usually this means the macro was only invoked conditionally." "$LINENO" 5
70627fi
70628if test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8_FALSE}"; then
70629  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U32_TO_U8\" was never defined.
70630Usually this means the macro was only invoked conditionally." "$LINENO" 5
70631fi
70632if test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB_FALSE}"; then
70633  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U32_UCTOMB\" was never defined.
70634Usually this means the macro was only invoked conditionally." "$LINENO" 5
70635fi
70636if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
70637  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
70638Usually this means the macro was only invoked conditionally." "$LINENO" 5
70639fi
70640if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CPY_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CPY_FALSE}"; then
70641  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CPY\" was never defined.
70642Usually this means the macro was only invoked conditionally." "$LINENO" 5
70643fi
70644if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
70645  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
70646Usually this means the macro was only invoked conditionally." "$LINENO" 5
70647fi
70648if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
70649  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
70650Usually this means the macro was only invoked conditionally." "$LINENO" 5
70651fi
70652if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16_FALSE}"; then
70653  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_TO_U16\" was never defined.
70654Usually this means the macro was only invoked conditionally." "$LINENO" 5
70655fi
70656if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32_FALSE}"; then
70657  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_TO_U32\" was never defined.
70658Usually this means the macro was only invoked conditionally." "$LINENO" 5
70659fi
70660if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
70661  as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
70662Usually this means the macro was only invoked conditionally." "$LINENO" 5
70663fi
70664
70665    unistring_libobjs=
70666    unistring_ltlibobjs=
70667    if test -n "$unistring_LIBOBJS"; then
70668      # Remove the extension.
70669      sed_drop_objext='s/\.o$//;s/\.obj$//'
70670      for i in `for i in $unistring_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
70671        unistring_libobjs="$unistring_libobjs $i.$ac_objext"
70672        unistring_ltlibobjs="$unistring_ltlibobjs $i.lo"
70673      done
70674    fi
70675    unistring_LIBOBJS=$unistring_libobjs
70676
70677    unistring_LTLIBOBJS=$unistring_ltlibobjs
70678
70679
70680
70681    unistringtests_libobjs=
70682    unistringtests_ltlibobjs=
70683    if test -n "$unistringtests_LIBOBJS"; then
70684      # Remove the extension.
70685      sed_drop_objext='s/\.o$//;s/\.obj$//'
70686      for i in `for i in $unistringtests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
70687        unistringtests_libobjs="$unistringtests_libobjs $i.$ac_objext"
70688        unistringtests_ltlibobjs="$unistringtests_ltlibobjs $i.lo"
70689      done
70690    fi
70691    unistringtests_LIBOBJS=$unistringtests_libobjs
70692
70693    unistringtests_LTLIBOBJS=$unistringtests_ltlibobjs
70694
70695
70696if test -z "${WANT_TEST_SUITE_TRUE}" && test -z "${WANT_TEST_SUITE_FALSE}"; then
70697  as_fn_error $? "conditional \"WANT_TEST_SUITE\" was never defined.
70698Usually this means the macro was only invoked conditionally." "$LINENO" 5
70699fi
70700if test -z "${ENABLE_OLDGNUTLS_INTEROP_TRUE}" && test -z "${ENABLE_OLDGNUTLS_INTEROP_FALSE}"; then
70701  as_fn_error $? "conditional \"ENABLE_OLDGNUTLS_INTEROP\" was never defined.
70702Usually this means the macro was only invoked conditionally." "$LINENO" 5
70703fi
70704if test -z "${ENABLE_FIPS140_TRUE}" && test -z "${ENABLE_FIPS140_FALSE}"; then
70705  as_fn_error $? "conditional \"ENABLE_FIPS140\" was never defined.
70706Usually this means the macro was only invoked conditionally." "$LINENO" 5
70707fi
70708if test -z "${HAVE_CMOCKA_TRUE}" && test -z "${HAVE_CMOCKA_FALSE}"; then
70709  as_fn_error $? "conditional \"HAVE_CMOCKA\" was never defined.
70710Usually this means the macro was only invoked conditionally." "$LINENO" 5
70711fi
70712if test -z "${HAVE_LIBIDN2_TRUE}" && test -z "${HAVE_LIBIDN2_FALSE}"; then
70713  as_fn_error $? "conditional \"HAVE_LIBIDN2\" was never defined.
70714Usually this means the macro was only invoked conditionally." "$LINENO" 5
70715fi
70716if test -z "${HAVE_BCRYPT_TRUE}" && test -z "${HAVE_BCRYPT_FALSE}"; then
70717  as_fn_error $? "conditional \"HAVE_BCRYPT\" was never defined.
70718Usually this means the macro was only invoked conditionally." "$LINENO" 5
70719fi
70720if test -z "${ENABLE_NON_SUITEB_CURVES_TRUE}" && test -z "${ENABLE_NON_SUITEB_CURVES_FALSE}"; then
70721  as_fn_error $? "conditional \"ENABLE_NON_SUITEB_CURVES\" was never defined.
70722Usually this means the macro was only invoked conditionally." "$LINENO" 5
70723fi
70724if test -z "${NEED_CFB_TRUE}" && test -z "${NEED_CFB_FALSE}"; then
70725  as_fn_error $? "conditional \"NEED_CFB\" was never defined.
70726Usually this means the macro was only invoked conditionally." "$LINENO" 5
70727fi
70728if test -z "${NEED_CMAC_TRUE}" && test -z "${NEED_CMAC_FALSE}"; then
70729  as_fn_error $? "conditional \"NEED_CMAC\" was never defined.
70730Usually this means the macro was only invoked conditionally." "$LINENO" 5
70731fi
70732if test -z "${NEED_XTS_TRUE}" && test -z "${NEED_XTS_FALSE}"; then
70733  as_fn_error $? "conditional \"NEED_XTS\" was never defined.
70734Usually this means the macro was only invoked conditionally." "$LINENO" 5
70735fi
70736if test -z "${NEED_INT_ECC_TRUE}" && test -z "${NEED_INT_ECC_FALSE}"; then
70737  as_fn_error $? "conditional \"NEED_INT_ECC\" was never defined.
70738Usually this means the macro was only invoked conditionally." "$LINENO" 5
70739fi
70740if test -z "${NEED_CHACHA_TRUE}" && test -z "${NEED_CHACHA_FALSE}"; then
70741  as_fn_error $? "conditional \"NEED_CHACHA\" was never defined.
70742Usually this means the macro was only invoked conditionally." "$LINENO" 5
70743fi
70744if test -z "${NEED_SIV_TRUE}" && test -z "${NEED_SIV_FALSE}"; then
70745  as_fn_error $? "conditional \"NEED_SIV\" was never defined.
70746Usually this means the macro was only invoked conditionally." "$LINENO" 5
70747fi
70748if test -z "${ENABLE_DANE_TRUE}" && test -z "${ENABLE_DANE_FALSE}"; then
70749  as_fn_error $? "conditional \"ENABLE_DANE\" was never defined.
70750Usually this means the macro was only invoked conditionally." "$LINENO" 5
70751fi
70752if test -z "${DISABLE_SYSTEM_CONFIG_TRUE}" && test -z "${DISABLE_SYSTEM_CONFIG_FALSE}"; then
70753  as_fn_error $? "conditional \"DISABLE_SYSTEM_CONFIG\" was never defined.
70754Usually this means the macro was only invoked conditionally." "$LINENO" 5
70755fi
70756if test -z "${P11KIT_0_23_11_API_TRUE}" && test -z "${P11KIT_0_23_11_API_FALSE}"; then
70757  as_fn_error $? "conditional \"P11KIT_0_23_11_API\" was never defined.
70758Usually this means the macro was only invoked conditionally." "$LINENO" 5
70759fi
70760if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
70761  as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
70762Usually this means the macro was only invoked conditionally." "$LINENO" 5
70763fi
70764if test -z "${ENABLE_TROUSERS_TRUE}" && test -z "${ENABLE_TROUSERS_FALSE}"; then
70765  as_fn_error $? "conditional \"ENABLE_TROUSERS\" was never defined.
70766Usually this means the macro was only invoked conditionally." "$LINENO" 5
70767fi
70768if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
70769  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
70770Usually this means the macro was only invoked conditionally." "$LINENO" 5
70771fi
70772if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
70773  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
70774Usually this means the macro was only invoked conditionally." "$LINENO" 5
70775fi
70776if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
70777  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
70778Usually this means the macro was only invoked conditionally." "$LINENO" 5
70779fi
70780if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
70781  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
70782Usually this means the macro was only invoked conditionally." "$LINENO" 5
70783fi
70784if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
70785  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
70786Usually this means the macro was only invoked conditionally." "$LINENO" 5
70787fi
70788if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
70789  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
70790Usually this means the macro was only invoked conditionally." "$LINENO" 5
70791fi
70792if test -z "${HAVE_PKCS11_TRUST_STORE_TRUE}" && test -z "${HAVE_PKCS11_TRUST_STORE_FALSE}"; then
70793  as_fn_error $? "conditional \"HAVE_PKCS11_TRUST_STORE\" was never defined.
70794Usually this means the macro was only invoked conditionally." "$LINENO" 5
70795fi
70796if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
70797  as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
70798Usually this means the macro was only invoked conditionally." "$LINENO" 5
70799fi
70800if test -z "${HAVE_GUILD_TRUE}" && test -z "${HAVE_GUILD_FALSE}"; then
70801  as_fn_error $? "conditional \"HAVE_GUILD\" was never defined.
70802Usually this means the macro was only invoked conditionally." "$LINENO" 5
70803fi
70804if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
70805  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
70806Usually this means the macro was only invoked conditionally." "$LINENO" 5
70807fi
70808if test -z "${NEEDS_LIBRT_TRUE}" && test -z "${NEEDS_LIBRT_FALSE}"; then
70809  as_fn_error $? "conditional \"NEEDS_LIBRT\" was never defined.
70810Usually this means the macro was only invoked conditionally." "$LINENO" 5
70811fi
70812
70813: "${CONFIG_STATUS=./config.status}"
70814ac_write_fail=0
70815ac_clean_files_save=$ac_clean_files
70816ac_clean_files="$ac_clean_files $CONFIG_STATUS"
70817{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
70818$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
70819as_write_fail=0
70820cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
70821#! $SHELL
70822# Generated by $as_me.
70823# Run this file to recreate the current configuration.
70824# Compiler output produced by configure, useful for debugging
70825# configure, is in config.log if it exists.
70826
70827debug=false
70828ac_cs_recheck=false
70829ac_cs_silent=false
70830
70831SHELL=\${CONFIG_SHELL-$SHELL}
70832export SHELL
70833_ASEOF
70834cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
70835## -------------------- ##
70836## M4sh Initialization. ##
70837## -------------------- ##
70838
70839# Be more Bourne compatible
70840DUALCASE=1; export DUALCASE # for MKS sh
70841if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
70842  emulate sh
70843  NULLCMD=:
70844  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
70845  # is contrary to our usage.  Disable this feature.
70846  alias -g '${1+"$@"}'='"$@"'
70847  setopt NO_GLOB_SUBST
70848else
70849  case `(set -o) 2>/dev/null` in #(
70850  *posix*) :
70851    set -o posix ;; #(
70852  *) :
70853     ;;
70854esac
70855fi
70856
70857
70858as_nl='
70859'
70860export as_nl
70861# Printing a long string crashes Solaris 7 /usr/bin/printf.
70862as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
70863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
70864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
70865# Prefer a ksh shell builtin over an external printf program on Solaris,
70866# but without wasting forks for bash or zsh.
70867if test -z "$BASH_VERSION$ZSH_VERSION" \
70868    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
70869  as_echo='print -r --'
70870  as_echo_n='print -rn --'
70871elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
70872  as_echo='printf %s\n'
70873  as_echo_n='printf %s'
70874else
70875  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
70876    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
70877    as_echo_n='/usr/ucb/echo -n'
70878  else
70879    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
70880    as_echo_n_body='eval
70881      arg=$1;
70882      case $arg in #(
70883      *"$as_nl"*)
70884	expr "X$arg" : "X\\(.*\\)$as_nl";
70885	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70886      esac;
70887      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70888    '
70889    export as_echo_n_body
70890    as_echo_n='sh -c $as_echo_n_body as_echo'
70891  fi
70892  export as_echo_body
70893  as_echo='sh -c $as_echo_body as_echo'
70894fi
70895
70896# The user is always right.
70897if test "${PATH_SEPARATOR+set}" != set; then
70898  PATH_SEPARATOR=:
70899  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
70900    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
70901      PATH_SEPARATOR=';'
70902  }
70903fi
70904
70905
70906# IFS
70907# We need space, tab and new line, in precisely that order.  Quoting is
70908# there to prevent editors from complaining about space-tab.
70909# (If _AS_PATH_WALK were called with IFS unset, it would disable word
70910# splitting by setting IFS to empty value.)
70911IFS=" ""	$as_nl"
70912
70913# Find who we are.  Look in the path if we contain no directory separator.
70914as_myself=
70915case $0 in #((
70916  *[\\/]* ) as_myself=$0 ;;
70917  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70918for as_dir in $PATH
70919do
70920  IFS=$as_save_IFS
70921  test -z "$as_dir" && as_dir=.
70922    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
70923  done
70924IFS=$as_save_IFS
70925
70926     ;;
70927esac
70928# We did not find ourselves, most probably we were run as `sh COMMAND'
70929# in which case we are not to be found in the path.
70930if test "x$as_myself" = x; then
70931  as_myself=$0
70932fi
70933if test ! -f "$as_myself"; then
70934  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
70935  exit 1
70936fi
70937
70938# Unset variables that we do not need and which cause bugs (e.g. in
70939# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
70940# suppresses any "Segmentation fault" message there.  '((' could
70941# trigger a bug in pdksh 5.2.14.
70942for as_var in BASH_ENV ENV MAIL MAILPATH
70943do eval test x\${$as_var+set} = xset \
70944  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70945done
70946PS1='$ '
70947PS2='> '
70948PS4='+ '
70949
70950# NLS nuisances.
70951LC_ALL=C
70952export LC_ALL
70953LANGUAGE=C
70954export LANGUAGE
70955
70956# CDPATH.
70957(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
70958
70959
70960# as_fn_error STATUS ERROR [LINENO LOG_FD]
70961# ----------------------------------------
70962# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
70963# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
70964# script with STATUS, using 1 if that was 0.
70965as_fn_error ()
70966{
70967  as_status=$1; test $as_status -eq 0 && as_status=1
70968  if test "$4"; then
70969    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
70970    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
70971  fi
70972  $as_echo "$as_me: error: $2" >&2
70973  as_fn_exit $as_status
70974} # as_fn_error
70975
70976
70977# as_fn_set_status STATUS
70978# -----------------------
70979# Set $? to STATUS, without forking.
70980as_fn_set_status ()
70981{
70982  return $1
70983} # as_fn_set_status
70984
70985# as_fn_exit STATUS
70986# -----------------
70987# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
70988as_fn_exit ()
70989{
70990  set +e
70991  as_fn_set_status $1
70992  exit $1
70993} # as_fn_exit
70994
70995# as_fn_unset VAR
70996# ---------------
70997# Portably unset VAR.
70998as_fn_unset ()
70999{
71000  { eval $1=; unset $1;}
71001}
71002as_unset=as_fn_unset
71003# as_fn_append VAR VALUE
71004# ----------------------
71005# Append the text in VALUE to the end of the definition contained in VAR. Take
71006# advantage of any shell optimizations that allow amortized linear growth over
71007# repeated appends, instead of the typical quadratic growth present in naive
71008# implementations.
71009if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
71010  eval 'as_fn_append ()
71011  {
71012    eval $1+=\$2
71013  }'
71014else
71015  as_fn_append ()
71016  {
71017    eval $1=\$$1\$2
71018  }
71019fi # as_fn_append
71020
71021# as_fn_arith ARG...
71022# ------------------
71023# Perform arithmetic evaluation on the ARGs, and store the result in the
71024# global $as_val. Take advantage of shells that can avoid forks. The arguments
71025# must be portable across $(()) and expr.
71026if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
71027  eval 'as_fn_arith ()
71028  {
71029    as_val=$(( $* ))
71030  }'
71031else
71032  as_fn_arith ()
71033  {
71034    as_val=`expr "$@" || test $? -eq 1`
71035  }
71036fi # as_fn_arith
71037
71038
71039if expr a : '\(a\)' >/dev/null 2>&1 &&
71040   test "X`expr 00001 : '.*\(...\)'`" = X001; then
71041  as_expr=expr
71042else
71043  as_expr=false
71044fi
71045
71046if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
71047  as_basename=basename
71048else
71049  as_basename=false
71050fi
71051
71052if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
71053  as_dirname=dirname
71054else
71055  as_dirname=false
71056fi
71057
71058as_me=`$as_basename -- "$0" ||
71059$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71060	 X"$0" : 'X\(//\)$' \| \
71061	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
71062$as_echo X/"$0" |
71063    sed '/^.*\/\([^/][^/]*\)\/*$/{
71064	    s//\1/
71065	    q
71066	  }
71067	  /^X\/\(\/\/\)$/{
71068	    s//\1/
71069	    q
71070	  }
71071	  /^X\/\(\/\).*/{
71072	    s//\1/
71073	    q
71074	  }
71075	  s/.*/./; q'`
71076
71077# Avoid depending upon Character Ranges.
71078as_cr_letters='abcdefghijklmnopqrstuvwxyz'
71079as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
71080as_cr_Letters=$as_cr_letters$as_cr_LETTERS
71081as_cr_digits='0123456789'
71082as_cr_alnum=$as_cr_Letters$as_cr_digits
71083
71084ECHO_C= ECHO_N= ECHO_T=
71085case `echo -n x` in #(((((
71086-n*)
71087  case `echo 'xy\c'` in
71088  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
71089  xy)  ECHO_C='\c';;
71090  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
71091       ECHO_T='	';;
71092  esac;;
71093*)
71094  ECHO_N='-n';;
71095esac
71096
71097rm -f conf$$ conf$$.exe conf$$.file
71098if test -d conf$$.dir; then
71099  rm -f conf$$.dir/conf$$.file
71100else
71101  rm -f conf$$.dir
71102  mkdir conf$$.dir 2>/dev/null
71103fi
71104if (echo >conf$$.file) 2>/dev/null; then
71105  if ln -s conf$$.file conf$$ 2>/dev/null; then
71106    as_ln_s='ln -s'
71107    # ... but there are two gotchas:
71108    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
71109    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
71110    # In both cases, we have to default to `cp -pR'.
71111    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
71112      as_ln_s='cp -pR'
71113  elif ln conf$$.file conf$$ 2>/dev/null; then
71114    as_ln_s=ln
71115  else
71116    as_ln_s='cp -pR'
71117  fi
71118else
71119  as_ln_s='cp -pR'
71120fi
71121rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
71122rmdir conf$$.dir 2>/dev/null
71123
71124
71125# as_fn_mkdir_p
71126# -------------
71127# Create "$as_dir" as a directory, including parents if necessary.
71128as_fn_mkdir_p ()
71129{
71130
71131  case $as_dir in #(
71132  -*) as_dir=./$as_dir;;
71133  esac
71134  test -d "$as_dir" || eval $as_mkdir_p || {
71135    as_dirs=
71136    while :; do
71137      case $as_dir in #(
71138      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
71139      *) as_qdir=$as_dir;;
71140      esac
71141      as_dirs="'$as_qdir' $as_dirs"
71142      as_dir=`$as_dirname -- "$as_dir" ||
71143$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71144	 X"$as_dir" : 'X\(//\)[^/]' \| \
71145	 X"$as_dir" : 'X\(//\)$' \| \
71146	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
71147$as_echo X"$as_dir" |
71148    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71149	    s//\1/
71150	    q
71151	  }
71152	  /^X\(\/\/\)[^/].*/{
71153	    s//\1/
71154	    q
71155	  }
71156	  /^X\(\/\/\)$/{
71157	    s//\1/
71158	    q
71159	  }
71160	  /^X\(\/\).*/{
71161	    s//\1/
71162	    q
71163	  }
71164	  s/.*/./; q'`
71165      test -d "$as_dir" && break
71166    done
71167    test -z "$as_dirs" || eval "mkdir $as_dirs"
71168  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
71169
71170
71171} # as_fn_mkdir_p
71172if mkdir -p . 2>/dev/null; then
71173  as_mkdir_p='mkdir -p "$as_dir"'
71174else
71175  test -d ./-p && rmdir ./-p
71176  as_mkdir_p=false
71177fi
71178
71179
71180# as_fn_executable_p FILE
71181# -----------------------
71182# Test if FILE is an executable regular file.
71183as_fn_executable_p ()
71184{
71185  test -f "$1" && test -x "$1"
71186} # as_fn_executable_p
71187as_test_x='test -x'
71188as_executable_p=as_fn_executable_p
71189
71190# Sed expression to map a string onto a valid CPP name.
71191as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
71192
71193# Sed expression to map a string onto a valid variable name.
71194as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
71195
71196
71197exec 6>&1
71198## ----------------------------------- ##
71199## Main body of $CONFIG_STATUS script. ##
71200## ----------------------------------- ##
71201_ASEOF
71202test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
71203
71204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71205# Save the log message, to keep $0 and so on meaningful, and to
71206# report actual input values of CONFIG_FILES etc. instead of their
71207# values after options handling.
71208ac_log="
71209This file was extended by GnuTLS $as_me 3.6.16, which was
71210generated by GNU Autoconf 2.69.  Invocation command line was
71211
71212  CONFIG_FILES    = $CONFIG_FILES
71213  CONFIG_HEADERS  = $CONFIG_HEADERS
71214  CONFIG_LINKS    = $CONFIG_LINKS
71215  CONFIG_COMMANDS = $CONFIG_COMMANDS
71216  $ $0 $@
71217
71218on `(hostname || uname -n) 2>/dev/null | sed 1q`
71219"
71220
71221_ACEOF
71222
71223case $ac_config_files in *"
71224"*) set x $ac_config_files; shift; ac_config_files=$*;;
71225esac
71226
71227case $ac_config_headers in *"
71228"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
71229esac
71230
71231
71232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71233# Files that config.status was made for.
71234config_files="$ac_config_files"
71235config_headers="$ac_config_headers"
71236config_links="$ac_config_links"
71237config_commands="$ac_config_commands"
71238
71239_ACEOF
71240
71241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71242ac_cs_usage="\
71243\`$as_me' instantiates files and other configuration actions
71244from templates according to the current configuration.  Unless the files
71245and actions are specified as TAGs, all are instantiated by default.
71246
71247Usage: $0 [OPTION]... [TAG]...
71248
71249  -h, --help       print this help, then exit
71250  -V, --version    print version number and configuration settings, then exit
71251      --config     print configuration, then exit
71252  -q, --quiet, --silent
71253                   do not print progress messages
71254  -d, --debug      don't remove temporary files
71255      --recheck    update $as_me by reconfiguring in the same conditions
71256      --file=FILE[:TEMPLATE]
71257                   instantiate the configuration file FILE
71258      --header=FILE[:TEMPLATE]
71259                   instantiate the configuration header FILE
71260
71261Configuration files:
71262$config_files
71263
71264Configuration headers:
71265$config_headers
71266
71267Configuration links:
71268$config_links
71269
71270Configuration commands:
71271$config_commands
71272
71273Report bugs to <bugs@gnutls.org>."
71274
71275_ACEOF
71276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71277ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
71278ac_cs_version="\\
71279GnuTLS config.status 3.6.16
71280configured by $0, generated by GNU Autoconf 2.69,
71281  with options \\"\$ac_cs_config\\"
71282
71283Copyright (C) 2012 Free Software Foundation, Inc.
71284This config.status script is free software; the Free Software Foundation
71285gives unlimited permission to copy, distribute and modify it."
71286
71287ac_pwd='$ac_pwd'
71288srcdir='$srcdir'
71289INSTALL='$INSTALL'
71290MKDIR_P='$MKDIR_P'
71291AWK='$AWK'
71292test -n "\$AWK" || AWK=awk
71293_ACEOF
71294
71295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71296# The default lists apply if the user does not specify any file.
71297ac_need_defaults=:
71298while test $# != 0
71299do
71300  case $1 in
71301  --*=?*)
71302    ac_option=`expr "X$1" : 'X\([^=]*\)='`
71303    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
71304    ac_shift=:
71305    ;;
71306  --*=)
71307    ac_option=`expr "X$1" : 'X\([^=]*\)='`
71308    ac_optarg=
71309    ac_shift=:
71310    ;;
71311  *)
71312    ac_option=$1
71313    ac_optarg=$2
71314    ac_shift=shift
71315    ;;
71316  esac
71317
71318  case $ac_option in
71319  # Handling of the options.
71320  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
71321    ac_cs_recheck=: ;;
71322  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
71323    $as_echo "$ac_cs_version"; exit ;;
71324  --config | --confi | --conf | --con | --co | --c )
71325    $as_echo "$ac_cs_config"; exit ;;
71326  --debug | --debu | --deb | --de | --d | -d )
71327    debug=: ;;
71328  --file | --fil | --fi | --f )
71329    $ac_shift
71330    case $ac_optarg in
71331    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
71332    '') as_fn_error $? "missing file argument" ;;
71333    esac
71334    as_fn_append CONFIG_FILES " '$ac_optarg'"
71335    ac_need_defaults=false;;
71336  --header | --heade | --head | --hea )
71337    $ac_shift
71338    case $ac_optarg in
71339    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
71340    esac
71341    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
71342    ac_need_defaults=false;;
71343  --he | --h)
71344    # Conflict between --help and --header
71345    as_fn_error $? "ambiguous option: \`$1'
71346Try \`$0 --help' for more information.";;
71347  --help | --hel | -h )
71348    $as_echo "$ac_cs_usage"; exit ;;
71349  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
71350  | -silent | --silent | --silen | --sile | --sil | --si | --s)
71351    ac_cs_silent=: ;;
71352
71353  # This is an error.
71354  -*) as_fn_error $? "unrecognized option: \`$1'
71355Try \`$0 --help' for more information." ;;
71356
71357  *) as_fn_append ac_config_targets " $1"
71358     ac_need_defaults=false ;;
71359
71360  esac
71361  shift
71362done
71363
71364ac_configure_extra_args=
71365
71366if $ac_cs_silent; then
71367  exec 6>/dev/null
71368  ac_configure_extra_args="$ac_configure_extra_args --silent"
71369fi
71370
71371_ACEOF
71372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71373if \$ac_cs_recheck; then
71374  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
71375  shift
71376  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
71377  CONFIG_SHELL='$SHELL'
71378  export CONFIG_SHELL
71379  exec "\$@"
71380fi
71381
71382_ACEOF
71383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71384exec 5>>config.log
71385{
71386  echo
71387  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
71388## Running $as_me. ##
71389_ASBOX
71390  $as_echo "$ac_log"
71391} >&5
71392
71393_ACEOF
71394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71395#
71396# INIT-COMMANDS
71397#
71398AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
71399# Capture the value of obsolete ALL_LINGUAS because we need it to compute
71400    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
71401    OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
71402    # Capture the value of LINGUAS because we need it to compute CATALOGS.
71403    LINGUAS="${LINGUAS-%UNSET%}"
71404
71405GNUmakefile=$GNUmakefile
71406
71407
71408# The HP-UX ksh and POSIX shell print the target directory to stdout
71409# if CDPATH is set.
71410(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
71411
71412sed_quote_subst='$sed_quote_subst'
71413double_quote_subst='$double_quote_subst'
71414delay_variable_subst='$delay_variable_subst'
71415macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
71416macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
71417enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
71418enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
71419pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
71420enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
71421shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
71422SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
71423ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
71424PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
71425host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
71426host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
71427host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
71428build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
71429build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
71430build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
71431SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
71432Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
71433GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
71434EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
71435FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
71436LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
71437NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
71438LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
71439max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
71440ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
71441exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
71442lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
71443lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
71444lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
71445lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
71446lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
71447reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
71448reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
71449OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
71450deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
71451file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
71452file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
71453want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
71454DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
71455sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
71456AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
71457AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
71458archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
71459STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
71460RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
71461old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
71462old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
71463old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
71464lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
71465CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
71466CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
71467compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
71468GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
71469lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
71470lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
71471lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
71472lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
71473lt_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"`'
71474lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
71475nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
71476lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
71477lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
71478objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
71479MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
71480lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
71481lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
71482lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
71483lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
71484lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
71485need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
71486MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
71487DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
71488NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
71489LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
71490OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
71491OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
71492libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
71493shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
71494extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
71495archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
71496enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
71497export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
71498whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
71499compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
71500old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
71501old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
71502archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
71503archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
71504module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
71505module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
71506with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
71507allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
71508no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
71509hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
71510hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
71511hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
71512hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
71513hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
71514hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
71515hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
71516inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
71517link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
71518always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
71519export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
71520exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
71521include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
71522prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
71523postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
71524file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
71525variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
71526need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
71527need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
71528version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
71529runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
71530shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
71531shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
71532libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
71533library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
71534soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
71535install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
71536postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
71537postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
71538finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
71539finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
71540hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
71541sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
71542configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
71543configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
71544hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
71545enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
71546enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
71547enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
71548old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
71549striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
71550compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
71551predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
71552postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
71553predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
71554postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
71555compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
71556LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
71557reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
71558reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71559old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71560compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
71561GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
71562lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
71563lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
71564lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
71565lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
71566lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
71567archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
71568enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
71569export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
71570whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
71571compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
71572old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71573old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71574archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71575archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71576module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71577module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71578with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
71579allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
71580no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
71581hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
71582hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
71583hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
71584hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
71585hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
71586hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
71587hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
71588inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
71589link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
71590always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
71591export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71592exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
71593include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
71594prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71595postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
71596file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
71597hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
71598compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
71599predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
71600postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
71601predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
71602postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
71603compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
71604
71605LTCC='$LTCC'
71606LTCFLAGS='$LTCFLAGS'
71607compiler='$compiler_DEFAULT'
71608
71609# A function that is used when there is no print builtin or printf.
71610func_fallback_echo ()
71611{
71612  eval 'cat <<_LTECHO_EOF
71613\$1
71614_LTECHO_EOF'
71615}
71616
71617# Quote evaled strings.
71618for var in SHELL \
71619ECHO \
71620PATH_SEPARATOR \
71621SED \
71622GREP \
71623EGREP \
71624FGREP \
71625LD \
71626NM \
71627LN_S \
71628lt_SP2NL \
71629lt_NL2SP \
71630reload_flag \
71631OBJDUMP \
71632deplibs_check_method \
71633file_magic_cmd \
71634file_magic_glob \
71635want_nocaseglob \
71636DLLTOOL \
71637sharedlib_from_linklib_cmd \
71638AR \
71639AR_FLAGS \
71640archiver_list_spec \
71641STRIP \
71642RANLIB \
71643CC \
71644CFLAGS \
71645compiler \
71646lt_cv_sys_global_symbol_pipe \
71647lt_cv_sys_global_symbol_to_cdecl \
71648lt_cv_sys_global_symbol_to_import \
71649lt_cv_sys_global_symbol_to_c_name_address \
71650lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
71651lt_cv_nm_interface \
71652nm_file_list_spec \
71653lt_cv_truncate_bin \
71654lt_prog_compiler_no_builtin_flag \
71655lt_prog_compiler_pic \
71656lt_prog_compiler_wl \
71657lt_prog_compiler_static \
71658lt_cv_prog_compiler_c_o \
71659need_locks \
71660MANIFEST_TOOL \
71661DSYMUTIL \
71662NMEDIT \
71663LIPO \
71664OTOOL \
71665OTOOL64 \
71666shrext_cmds \
71667export_dynamic_flag_spec \
71668whole_archive_flag_spec \
71669compiler_needs_object \
71670with_gnu_ld \
71671allow_undefined_flag \
71672no_undefined_flag \
71673hardcode_libdir_flag_spec \
71674hardcode_libdir_separator \
71675exclude_expsyms \
71676include_expsyms \
71677file_list_spec \
71678variables_saved_for_relink \
71679libname_spec \
71680library_names_spec \
71681soname_spec \
71682install_override_mode \
71683finish_eval \
71684old_striplib \
71685striplib \
71686compiler_lib_search_dirs \
71687predep_objects \
71688postdep_objects \
71689predeps \
71690postdeps \
71691compiler_lib_search_path \
71692LD_CXX \
71693reload_flag_CXX \
71694compiler_CXX \
71695lt_prog_compiler_no_builtin_flag_CXX \
71696lt_prog_compiler_pic_CXX \
71697lt_prog_compiler_wl_CXX \
71698lt_prog_compiler_static_CXX \
71699lt_cv_prog_compiler_c_o_CXX \
71700export_dynamic_flag_spec_CXX \
71701whole_archive_flag_spec_CXX \
71702compiler_needs_object_CXX \
71703with_gnu_ld_CXX \
71704allow_undefined_flag_CXX \
71705no_undefined_flag_CXX \
71706hardcode_libdir_flag_spec_CXX \
71707hardcode_libdir_separator_CXX \
71708exclude_expsyms_CXX \
71709include_expsyms_CXX \
71710file_list_spec_CXX \
71711compiler_lib_search_dirs_CXX \
71712predep_objects_CXX \
71713postdep_objects_CXX \
71714predeps_CXX \
71715postdeps_CXX \
71716compiler_lib_search_path_CXX; do
71717    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
71718    *[\\\\\\\`\\"\\\$]*)
71719      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
71720      ;;
71721    *)
71722      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
71723      ;;
71724    esac
71725done
71726
71727# Double-quote double-evaled strings.
71728for var in reload_cmds \
71729old_postinstall_cmds \
71730old_postuninstall_cmds \
71731old_archive_cmds \
71732extract_expsyms_cmds \
71733old_archive_from_new_cmds \
71734old_archive_from_expsyms_cmds \
71735archive_cmds \
71736archive_expsym_cmds \
71737module_cmds \
71738module_expsym_cmds \
71739export_symbols_cmds \
71740prelink_cmds \
71741postlink_cmds \
71742postinstall_cmds \
71743postuninstall_cmds \
71744finish_cmds \
71745sys_lib_search_path_spec \
71746configure_time_dlsearch_path \
71747configure_time_lt_sys_library_path \
71748reload_cmds_CXX \
71749old_archive_cmds_CXX \
71750old_archive_from_new_cmds_CXX \
71751old_archive_from_expsyms_cmds_CXX \
71752archive_cmds_CXX \
71753archive_expsym_cmds_CXX \
71754module_cmds_CXX \
71755module_expsym_cmds_CXX \
71756export_symbols_cmds_CXX \
71757prelink_cmds_CXX \
71758postlink_cmds_CXX; do
71759    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
71760    *[\\\\\\\`\\"\\\$]*)
71761      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
71762      ;;
71763    *)
71764      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
71765      ;;
71766    esac
71767done
71768
71769ac_aux_dir='$ac_aux_dir'
71770
71771# See if we are running on zsh, and set the options that allow our
71772# commands through without removal of \ escapes INIT.
71773if test -n "\${ZSH_VERSION+set}"; then
71774   setopt NO_GLOB_SUBST
71775fi
71776
71777
71778    PACKAGE='$PACKAGE'
71779    VERSION='$VERSION'
71780    RM='$RM'
71781    ofile='$ofile'
71782
71783
71784
71785
71786
71787
71788_ACEOF
71789
71790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
71791
71792# Handling of arguments.
71793for ac_config_target in $ac_config_targets
71794do
71795  case $ac_config_target in
71796    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
71797    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
71798    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
71799    "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
71800    "ldd.sh") CONFIG_FILES="$CONFIG_FILES ldd.sh:build-aux/ldd.sh.in" ;;
71801    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
71802    "src/libopts/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopts/Makefile" ;;
71803    "guile/pre-inst-guile") CONFIG_FILES="$CONFIG_FILES guile/pre-inst-guile" ;;
71804    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
71805    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
71806    "doc/credentials/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/Makefile" ;;
71807    "doc/credentials/srp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/srp/Makefile" ;;
71808    "doc/credentials/x509/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/x509/Makefile" ;;
71809    "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
71810    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
71811    "doc/latex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/latex/Makefile" ;;
71812    "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
71813    "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
71814    "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
71815    "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
71816    "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
71817    "extra/includes/Makefile") CONFIG_FILES="$CONFIG_FILES extra/includes/Makefile" ;;
71818    "libdane/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/Makefile" ;;
71819    "libdane/includes/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/includes/Makefile" ;;
71820    "libdane/gnutls-dane.pc") CONFIG_FILES="$CONFIG_FILES libdane/gnutls-dane.pc" ;;
71821    "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
71822    "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;;
71823    "guile/Makefile") CONFIG_FILES="$CONFIG_FILES guile/Makefile" ;;
71824    "guile/src/Makefile") CONFIG_FILES="$CONFIG_FILES guile/src/Makefile" ;;
71825    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
71826    "lib/accelerated/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/Makefile" ;;
71827    "lib/accelerated/x86/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/x86/Makefile" ;;
71828    "lib/accelerated/aarch64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/aarch64/Makefile" ;;
71829    "lib/algorithms/Makefile") CONFIG_FILES="$CONFIG_FILES lib/algorithms/Makefile" ;;
71830    "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
71831    "lib/ext/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ext/Makefile" ;;
71832    "lib/extras/Makefile") CONFIG_FILES="$CONFIG_FILES lib/extras/Makefile" ;;
71833    "lib/gnutls.pc") CONFIG_FILES="$CONFIG_FILES lib/gnutls.pc" ;;
71834    "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
71835    "lib/includes/gnutls/gnutls.h") CONFIG_FILES="$CONFIG_FILES lib/includes/gnutls/gnutls.h" ;;
71836    "lib/minitasn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/minitasn1/Makefile" ;;
71837    "lib/nettle/Makefile") CONFIG_FILES="$CONFIG_FILES lib/nettle/Makefile" ;;
71838    "lib/x509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/x509/Makefile" ;;
71839    "lib/unistring/Makefile") CONFIG_FILES="$CONFIG_FILES lib/unistring/Makefile" ;;
71840    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
71841    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
71842    "src/args-std.def") CONFIG_FILES="$CONFIG_FILES src/args-std.def" ;;
71843    "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;;
71844    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
71845    "tests/windows/Makefile") CONFIG_FILES="$CONFIG_FILES tests/windows/Makefile" ;;
71846    "tests/cert-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cert-tests/Makefile" ;;
71847    "tests/slow/Makefile") CONFIG_FILES="$CONFIG_FILES tests/slow/Makefile" ;;
71848    "tests/suite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/Makefile" ;;
71849    "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
71850
71851  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
71852  esac
71853done
71854
71855
71856# If the user did not use the arguments to specify the items to instantiate,
71857# then the envvar interface is used.  Set only those that are not.
71858# We use the long form for the default assignment because of an extremely
71859# bizarre bug on SunOS 4.1.3.
71860if $ac_need_defaults; then
71861  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
71862  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
71863  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
71864  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
71865fi
71866
71867# Have a temporary directory for convenience.  Make it in the build tree
71868# simply because there is no reason against having it here, and in addition,
71869# creating and moving files from /tmp can sometimes cause problems.
71870# Hook for its removal unless debugging.
71871# Note that there is a small window in which the directory will not be cleaned:
71872# after its creation but before its name has been assigned to `$tmp'.
71873$debug ||
71874{
71875  tmp= ac_tmp=
71876  trap 'exit_status=$?
71877  : "${ac_tmp:=$tmp}"
71878  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
71879' 0
71880  trap 'as_fn_exit 1' 1 2 13 15
71881}
71882# Create a (secure) tmp directory for tmp files.
71883
71884{
71885  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
71886  test -d "$tmp"
71887}  ||
71888{
71889  tmp=./conf$$-$RANDOM
71890  (umask 077 && mkdir "$tmp")
71891} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
71892ac_tmp=$tmp
71893
71894# Set up the scripts for CONFIG_FILES section.
71895# No need to generate them if there are no CONFIG_FILES.
71896# This happens for instance with `./config.status config.h'.
71897if test -n "$CONFIG_FILES"; then
71898
71899
71900ac_cr=`echo X | tr X '\015'`
71901# On cygwin, bash can eat \r inside `` if the user requested igncr.
71902# But we know of no other shell where ac_cr would be empty at this
71903# point, so we can use a bashism as a fallback.
71904if test "x$ac_cr" = x; then
71905  eval ac_cr=\$\'\\r\'
71906fi
71907ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
71908if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
71909  ac_cs_awk_cr='\\r'
71910else
71911  ac_cs_awk_cr=$ac_cr
71912fi
71913
71914echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
71915_ACEOF
71916
71917
71918{
71919  echo "cat >conf$$subs.awk <<_ACEOF" &&
71920  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
71921  echo "_ACEOF"
71922} >conf$$subs.sh ||
71923  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
71924ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
71925ac_delim='%!_!# '
71926for ac_last_try in false false false false false :; do
71927  . ./conf$$subs.sh ||
71928    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
71929
71930  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
71931  if test $ac_delim_n = $ac_delim_num; then
71932    break
71933  elif $ac_last_try; then
71934    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
71935  else
71936    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
71937  fi
71938done
71939rm -f conf$$subs.sh
71940
71941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71942cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
71943_ACEOF
71944sed -n '
71945h
71946s/^/S["/; s/!.*/"]=/
71947p
71948g
71949s/^[^!]*!//
71950:repl
71951t repl
71952s/'"$ac_delim"'$//
71953t delim
71954:nl
71955h
71956s/\(.\{148\}\)..*/\1/
71957t more1
71958s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
71959p
71960n
71961b repl
71962:more1
71963s/["\\]/\\&/g; s/^/"/; s/$/"\\/
71964p
71965g
71966s/.\{148\}//
71967t nl
71968:delim
71969h
71970s/\(.\{148\}\)..*/\1/
71971t more2
71972s/["\\]/\\&/g; s/^/"/; s/$/"/
71973p
71974b
71975:more2
71976s/["\\]/\\&/g; s/^/"/; s/$/"\\/
71977p
71978g
71979s/.\{148\}//
71980t delim
71981' <conf$$subs.awk | sed '
71982/^[^""]/{
71983  N
71984  s/\n//
71985}
71986' >>$CONFIG_STATUS || ac_write_fail=1
71987rm -f conf$$subs.awk
71988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
71989_ACAWK
71990cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
71991  for (key in S) S_is_set[key] = 1
71992  FS = ""
71993
71994}
71995{
71996  line = $ 0
71997  nfields = split(line, field, "@")
71998  substed = 0
71999  len = length(field[1])
72000  for (i = 2; i < nfields; i++) {
72001    key = field[i]
72002    keylen = length(key)
72003    if (S_is_set[key]) {
72004      value = S[key]
72005      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
72006      len += length(value) + length(field[++i])
72007      substed = 1
72008    } else
72009      len += 1 + keylen
72010  }
72011
72012  print line
72013}
72014
72015_ACAWK
72016_ACEOF
72017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72018if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
72019  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
72020else
72021  cat
72022fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
72023  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
72024_ACEOF
72025
72026# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
72027# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
72028# trailing colons and then remove the whole line if VPATH becomes empty
72029# (actually we leave an empty line to preserve line numbers).
72030if test "x$srcdir" = x.; then
72031  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
72032h
72033s///
72034s/^/:/
72035s/[	 ]*$/:/
72036s/:\$(srcdir):/:/g
72037s/:\${srcdir}:/:/g
72038s/:@srcdir@:/:/g
72039s/^:*//
72040s/:*$//
72041x
72042s/\(=[	 ]*\).*/\1/
72043G
72044s/\n//
72045s/^[^=]*=[	 ]*$//
72046}'
72047fi
72048
72049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72050fi # test -n "$CONFIG_FILES"
72051
72052# Set up the scripts for CONFIG_HEADERS section.
72053# No need to generate them if there are no CONFIG_HEADERS.
72054# This happens for instance with `./config.status Makefile'.
72055if test -n "$CONFIG_HEADERS"; then
72056cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
72057BEGIN {
72058_ACEOF
72059
72060# Transform confdefs.h into an awk script `defines.awk', embedded as
72061# here-document in config.status, that substitutes the proper values into
72062# config.h.in to produce config.h.
72063
72064# Create a delimiter string that does not exist in confdefs.h, to ease
72065# handling of long lines.
72066ac_delim='%!_!# '
72067for ac_last_try in false false :; do
72068  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
72069  if test -z "$ac_tt"; then
72070    break
72071  elif $ac_last_try; then
72072    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
72073  else
72074    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72075  fi
72076done
72077
72078# For the awk script, D is an array of macro values keyed by name,
72079# likewise P contains macro parameters if any.  Preserve backslash
72080# newline sequences.
72081
72082ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
72083sed -n '
72084s/.\{148\}/&'"$ac_delim"'/g
72085t rset
72086:rset
72087s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
72088t def
72089d
72090:def
72091s/\\$//
72092t bsnl
72093s/["\\]/\\&/g
72094s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
72095D["\1"]=" \3"/p
72096s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
72097d
72098:bsnl
72099s/["\\]/\\&/g
72100s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
72101D["\1"]=" \3\\\\\\n"\\/p
72102t cont
72103s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
72104t cont
72105d
72106:cont
72107n
72108s/.\{148\}/&'"$ac_delim"'/g
72109t clear
72110:clear
72111s/\\$//
72112t bsnlc
72113s/["\\]/\\&/g; s/^/"/; s/$/"/p
72114d
72115:bsnlc
72116s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
72117b cont
72118' <confdefs.h | sed '
72119s/'"$ac_delim"'/"\\\
72120"/g' >>$CONFIG_STATUS || ac_write_fail=1
72121
72122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72123  for (key in D) D_is_set[key] = 1
72124  FS = ""
72125}
72126/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
72127  line = \$ 0
72128  split(line, arg, " ")
72129  if (arg[1] == "#") {
72130    defundef = arg[2]
72131    mac1 = arg[3]
72132  } else {
72133    defundef = substr(arg[1], 2)
72134    mac1 = arg[2]
72135  }
72136  split(mac1, mac2, "(") #)
72137  macro = mac2[1]
72138  prefix = substr(line, 1, index(line, defundef) - 1)
72139  if (D_is_set[macro]) {
72140    # Preserve the white space surrounding the "#".
72141    print prefix "define", macro P[macro] D[macro]
72142    next
72143  } else {
72144    # Replace #undef with comments.  This is necessary, for example,
72145    # in the case of _POSIX_SOURCE, which is predefined and required
72146    # on some systems where configure will not decide to define it.
72147    if (defundef == "undef") {
72148      print "/*", prefix defundef, macro, "*/"
72149      next
72150    }
72151  }
72152}
72153{ print }
72154_ACAWK
72155_ACEOF
72156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72157  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
72158fi # test -n "$CONFIG_HEADERS"
72159
72160
72161eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
72162shift
72163for ac_tag
72164do
72165  case $ac_tag in
72166  :[FHLC]) ac_mode=$ac_tag; continue;;
72167  esac
72168  case $ac_mode$ac_tag in
72169  :[FHL]*:*);;
72170  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
72171  :[FH]-) ac_tag=-:-;;
72172  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
72173  esac
72174  ac_save_IFS=$IFS
72175  IFS=:
72176  set x $ac_tag
72177  IFS=$ac_save_IFS
72178  shift
72179  ac_file=$1
72180  shift
72181
72182  case $ac_mode in
72183  :L) ac_source=$1;;
72184  :[FH])
72185    ac_file_inputs=
72186    for ac_f
72187    do
72188      case $ac_f in
72189      -) ac_f="$ac_tmp/stdin";;
72190      *) # Look for the file first in the build tree, then in the source tree
72191	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
72192	 # because $ac_f cannot contain `:'.
72193	 test -f "$ac_f" ||
72194	   case $ac_f in
72195	   [\\/$]*) false;;
72196	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
72197	   esac ||
72198	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
72199      esac
72200      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
72201      as_fn_append ac_file_inputs " '$ac_f'"
72202    done
72203
72204    # Let's still pretend it is `configure' which instantiates (i.e., don't
72205    # use $as_me), people would be surprised to read:
72206    #    /* config.h.  Generated by config.status.  */
72207    configure_input='Generated from '`
72208	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
72209	`' by configure.'
72210    if test x"$ac_file" != x-; then
72211      configure_input="$ac_file.  $configure_input"
72212      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
72213$as_echo "$as_me: creating $ac_file" >&6;}
72214    fi
72215    # Neutralize special characters interpreted by sed in replacement strings.
72216    case $configure_input in #(
72217    *\&* | *\|* | *\\* )
72218       ac_sed_conf_input=`$as_echo "$configure_input" |
72219       sed 's/[\\\\&|]/\\\\&/g'`;; #(
72220    *) ac_sed_conf_input=$configure_input;;
72221    esac
72222
72223    case $ac_tag in
72224    *:-:* | *:-) cat >"$ac_tmp/stdin" \
72225      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
72226    esac
72227    ;;
72228  esac
72229
72230  ac_dir=`$as_dirname -- "$ac_file" ||
72231$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
72232	 X"$ac_file" : 'X\(//\)[^/]' \| \
72233	 X"$ac_file" : 'X\(//\)$' \| \
72234	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
72235$as_echo X"$ac_file" |
72236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
72237	    s//\1/
72238	    q
72239	  }
72240	  /^X\(\/\/\)[^/].*/{
72241	    s//\1/
72242	    q
72243	  }
72244	  /^X\(\/\/\)$/{
72245	    s//\1/
72246	    q
72247	  }
72248	  /^X\(\/\).*/{
72249	    s//\1/
72250	    q
72251	  }
72252	  s/.*/./; q'`
72253  as_dir="$ac_dir"; as_fn_mkdir_p
72254  ac_builddir=.
72255
72256case "$ac_dir" in
72257.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
72258*)
72259  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
72260  # A ".." for each directory in $ac_dir_suffix.
72261  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
72262  case $ac_top_builddir_sub in
72263  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
72264  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
72265  esac ;;
72266esac
72267ac_abs_top_builddir=$ac_pwd
72268ac_abs_builddir=$ac_pwd$ac_dir_suffix
72269# for backward compatibility:
72270ac_top_builddir=$ac_top_build_prefix
72271
72272case $srcdir in
72273  .)  # We are building in place.
72274    ac_srcdir=.
72275    ac_top_srcdir=$ac_top_builddir_sub
72276    ac_abs_top_srcdir=$ac_pwd ;;
72277  [\\/]* | ?:[\\/]* )  # Absolute name.
72278    ac_srcdir=$srcdir$ac_dir_suffix;
72279    ac_top_srcdir=$srcdir
72280    ac_abs_top_srcdir=$srcdir ;;
72281  *) # Relative name.
72282    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
72283    ac_top_srcdir=$ac_top_build_prefix$srcdir
72284    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
72285esac
72286ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
72287
72288
72289  case $ac_mode in
72290  :F)
72291  #
72292  # CONFIG_FILE
72293  #
72294
72295  case $INSTALL in
72296  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
72297  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
72298  esac
72299  ac_MKDIR_P=$MKDIR_P
72300  case $MKDIR_P in
72301  [\\/$]* | ?:[\\/]* ) ;;
72302  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
72303  esac
72304_ACEOF
72305
72306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72307# If the template does not know about datarootdir, expand it.
72308# FIXME: This hack should be removed a few years after 2.60.
72309ac_datarootdir_hack=; ac_datarootdir_seen=
72310ac_sed_dataroot='
72311/datarootdir/ {
72312  p
72313  q
72314}
72315/@datadir@/p
72316/@docdir@/p
72317/@infodir@/p
72318/@localedir@/p
72319/@mandir@/p'
72320case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
72321*datarootdir*) ac_datarootdir_seen=yes;;
72322*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
72323  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
72324$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
72325_ACEOF
72326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72327  ac_datarootdir_hack='
72328  s&@datadir@&$datadir&g
72329  s&@docdir@&$docdir&g
72330  s&@infodir@&$infodir&g
72331  s&@localedir@&$localedir&g
72332  s&@mandir@&$mandir&g
72333  s&\\\${datarootdir}&$datarootdir&g' ;;
72334esac
72335_ACEOF
72336
72337# Neutralize VPATH when `$srcdir' = `.'.
72338# Shell code in configure.ac might set extrasub.
72339# FIXME: do we really want to maintain this feature?
72340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72341ac_sed_extra="$ac_vpsub
72342$extrasub
72343_ACEOF
72344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72345:t
72346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
72347s|@configure_input@|$ac_sed_conf_input|;t t
72348s&@top_builddir@&$ac_top_builddir_sub&;t t
72349s&@top_build_prefix@&$ac_top_build_prefix&;t t
72350s&@srcdir@&$ac_srcdir&;t t
72351s&@abs_srcdir@&$ac_abs_srcdir&;t t
72352s&@top_srcdir@&$ac_top_srcdir&;t t
72353s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
72354s&@builddir@&$ac_builddir&;t t
72355s&@abs_builddir@&$ac_abs_builddir&;t t
72356s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
72357s&@INSTALL@&$ac_INSTALL&;t t
72358s&@MKDIR_P@&$ac_MKDIR_P&;t t
72359$ac_datarootdir_hack
72360"
72361eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
72362  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72363
72364test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
72365  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
72366  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
72367      "$ac_tmp/out"`; test -z "$ac_out"; } &&
72368  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
72369which seems to be undefined.  Please make sure it is defined" >&5
72370$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
72371which seems to be undefined.  Please make sure it is defined" >&2;}
72372
72373  rm -f "$ac_tmp/stdin"
72374  case $ac_file in
72375  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
72376  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
72377  esac \
72378  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72379 ;;
72380  :H)
72381  #
72382  # CONFIG_HEADER
72383  #
72384  if test x"$ac_file" != x-; then
72385    {
72386      $as_echo "/* $configure_input  */" \
72387      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
72388    } >"$ac_tmp/config.h" \
72389      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72390    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
72391      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
72392$as_echo "$as_me: $ac_file is unchanged" >&6;}
72393    else
72394      rm -f "$ac_file"
72395      mv "$ac_tmp/config.h" "$ac_file" \
72396	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
72397    fi
72398  else
72399    $as_echo "/* $configure_input  */" \
72400      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
72401      || as_fn_error $? "could not create -" "$LINENO" 5
72402  fi
72403# Compute "$ac_file"'s index in $config_headers.
72404_am_arg="$ac_file"
72405_am_stamp_count=1
72406for _am_header in $config_headers :; do
72407  case $_am_header in
72408    $_am_arg | $_am_arg:* )
72409      break ;;
72410    * )
72411      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
72412  esac
72413done
72414echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
72415$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
72416	 X"$_am_arg" : 'X\(//\)[^/]' \| \
72417	 X"$_am_arg" : 'X\(//\)$' \| \
72418	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
72419$as_echo X"$_am_arg" |
72420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
72421	    s//\1/
72422	    q
72423	  }
72424	  /^X\(\/\/\)[^/].*/{
72425	    s//\1/
72426	    q
72427	  }
72428	  /^X\(\/\/\)$/{
72429	    s//\1/
72430	    q
72431	  }
72432	  /^X\(\/\).*/{
72433	    s//\1/
72434	    q
72435	  }
72436	  s/.*/./; q'`/stamp-h$_am_stamp_count
72437 ;;
72438  :L)
72439  #
72440  # CONFIG_LINK
72441  #
72442
72443  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
72444    :
72445  else
72446    # Prefer the file from the source tree if names are identical.
72447    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
72448      ac_source=$srcdir/$ac_source
72449    fi
72450
72451    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
72452$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
72453
72454    if test ! -r "$ac_source"; then
72455      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
72456    fi
72457    rm -f "$ac_file"
72458
72459    # Try a relative symlink, then a hard link, then a copy.
72460    case $ac_source in
72461    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
72462	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
72463    esac
72464    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
72465      ln "$ac_source" "$ac_file" 2>/dev/null ||
72466      cp -p "$ac_source" "$ac_file" ||
72467      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
72468  fi
72469 ;;
72470  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
72471$as_echo "$as_me: executing $ac_file commands" >&6;}
72472 ;;
72473  esac
72474
72475
72476  case $ac_file$ac_mode in
72477    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
72478  # Older Autoconf quotes --file arguments for eval, but not when files
72479  # are listed without --file.  Let's play safe and only enable the eval
72480  # if we detect the quoting.
72481  # TODO: see whether this extra hack can be removed once we start
72482  # requiring Autoconf 2.70 or later.
72483  case $CONFIG_FILES in #(
72484  *\'*) :
72485    eval set x "$CONFIG_FILES" ;; #(
72486  *) :
72487    set x $CONFIG_FILES ;; #(
72488  *) :
72489     ;;
72490esac
72491  shift
72492  # Used to flag and report bootstrapping failures.
72493  am_rc=0
72494  for am_mf
72495  do
72496    # Strip MF so we end up with the name of the file.
72497    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
72498    # Check whether this is an Automake generated Makefile which includes
72499    # dependency-tracking related rules and includes.
72500    # Grep'ing the whole file directly is not great: AIX grep has a line
72501    # limit of 2048, but all sed's we know have understand at least 4000.
72502    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
72503      || continue
72504    am_dirpart=`$as_dirname -- "$am_mf" ||
72505$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
72506	 X"$am_mf" : 'X\(//\)[^/]' \| \
72507	 X"$am_mf" : 'X\(//\)$' \| \
72508	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
72509$as_echo X"$am_mf" |
72510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
72511	    s//\1/
72512	    q
72513	  }
72514	  /^X\(\/\/\)[^/].*/{
72515	    s//\1/
72516	    q
72517	  }
72518	  /^X\(\/\/\)$/{
72519	    s//\1/
72520	    q
72521	  }
72522	  /^X\(\/\).*/{
72523	    s//\1/
72524	    q
72525	  }
72526	  s/.*/./; q'`
72527    am_filepart=`$as_basename -- "$am_mf" ||
72528$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
72529	 X"$am_mf" : 'X\(//\)$' \| \
72530	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
72531$as_echo X/"$am_mf" |
72532    sed '/^.*\/\([^/][^/]*\)\/*$/{
72533	    s//\1/
72534	    q
72535	  }
72536	  /^X\/\(\/\/\)$/{
72537	    s//\1/
72538	    q
72539	  }
72540	  /^X\/\(\/\).*/{
72541	    s//\1/
72542	    q
72543	  }
72544	  s/.*/./; q'`
72545    { echo "$as_me:$LINENO: cd "$am_dirpart" \
72546      && sed -e '/# am--include-marker/d' "$am_filepart" \
72547        | $MAKE -f - am--depfiles" >&5
72548   (cd "$am_dirpart" \
72549      && sed -e '/# am--include-marker/d' "$am_filepart" \
72550        | $MAKE -f - am--depfiles) >&5 2>&5
72551   ac_status=$?
72552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72553   (exit $ac_status); } || am_rc=$?
72554  done
72555  if test $am_rc -ne 0; then
72556    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
72557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
72558as_fn_error $? "Something went wrong bootstrapping makefile fragments
72559    for automatic dependency tracking.  If GNU make was not used, consider
72560    re-running the configure script with MAKE=\"gmake\" (or whatever is
72561    necessary).  You can also try re-running configure with the
72562    '--disable-dependency-tracking' option to at least be able to build
72563    the package (albeit without support for automatic dependency tracking).
72564See \`config.log' for more details" "$LINENO" 5; }
72565  fi
72566  { am_dirpart=; unset am_dirpart;}
72567  { am_filepart=; unset am_filepart;}
72568  { am_mf=; unset am_mf;}
72569  { am_rc=; unset am_rc;}
72570  rm -f conftest-deps.mk
72571}
72572 ;;
72573    "po-directories":C)
72574    for ac_file in $CONFIG_FILES; do
72575      # Support "outfile[:infile[:infile...]]"
72576      case "$ac_file" in
72577        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
72578      esac
72579      # PO directories have a Makefile.in generated from Makefile.in.in.
72580      case "$ac_file" in */Makefile.in)
72581        # Adjust a relative srcdir.
72582        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
72583        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
72584        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
72585        # In autoconf-2.13 it is called $ac_given_srcdir.
72586        # In autoconf-2.50 it is called $srcdir.
72587        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
72588        case "$ac_given_srcdir" in
72589          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
72590          /*) top_srcdir="$ac_given_srcdir" ;;
72591          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
72592        esac
72593        # Treat a directory as a PO directory if and only if it has a
72594        # POTFILES.in file. This allows packages to have multiple PO
72595        # directories under different names or in different locations.
72596        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
72597          rm -f "$ac_dir/POTFILES"
72598          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
72599          gt_tab=`printf '\t'`
72600          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
72601          POMAKEFILEDEPS="POTFILES.in"
72602          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
72603          # on $ac_dir but don't depend on user-specified configuration
72604          # parameters.
72605          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
72606            # The LINGUAS file contains the set of available languages.
72607            if test -n "$OBSOLETE_ALL_LINGUAS"; then
72608              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
72609            fi
72610            ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
72611            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
72612          else
72613            # The set of available languages was given in configure.in.
72614            ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
72615          fi
72616          # Compute POFILES
72617          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
72618          # Compute UPDATEPOFILES
72619          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
72620          # Compute DUMMYPOFILES
72621          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
72622          # Compute GMOFILES
72623          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
72624          case "$ac_given_srcdir" in
72625            .) srcdirpre= ;;
72626            *) srcdirpre='$(srcdir)/' ;;
72627          esac
72628          POFILES=
72629          UPDATEPOFILES=
72630          DUMMYPOFILES=
72631          GMOFILES=
72632          for lang in $ALL_LINGUAS; do
72633            POFILES="$POFILES $srcdirpre$lang.po"
72634            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
72635            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
72636            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
72637          done
72638          # CATALOGS depends on both $ac_dir and the user's LINGUAS
72639          # environment variable.
72640          INST_LINGUAS=
72641          if test -n "$ALL_LINGUAS"; then
72642            for presentlang in $ALL_LINGUAS; do
72643              useit=no
72644              if test "%UNSET%" != "$LINGUAS"; then
72645                desiredlanguages="$LINGUAS"
72646              else
72647                desiredlanguages="$ALL_LINGUAS"
72648              fi
72649              for desiredlang in $desiredlanguages; do
72650                # Use the presentlang catalog if desiredlang is
72651                #   a. equal to presentlang, or
72652                #   b. a variant of presentlang (because in this case,
72653                #      presentlang can be used as a fallback for messages
72654                #      which are not translated in the desiredlang catalog).
72655                case "$desiredlang" in
72656                  "$presentlang"*) useit=yes;;
72657                esac
72658              done
72659              if test $useit = yes; then
72660                INST_LINGUAS="$INST_LINGUAS $presentlang"
72661              fi
72662            done
72663          fi
72664          CATALOGS=
72665          if test -n "$INST_LINGUAS"; then
72666            for lang in $INST_LINGUAS; do
72667              CATALOGS="$CATALOGS $lang.gmo"
72668            done
72669          fi
72670          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
72671          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
72672          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
72673            if test -f "$f"; then
72674              case "$f" in
72675                *.orig | *.bak | *~) ;;
72676                *) cat "$f" >> "$ac_dir/Makefile" ;;
72677              esac
72678            fi
72679          done
72680        fi
72681        ;;
72682      esac
72683    done ;;
72684    "libtool":C)
72685
72686    # See if we are running on zsh, and set the options that allow our
72687    # commands through without removal of \ escapes.
72688    if test -n "${ZSH_VERSION+set}"; then
72689      setopt NO_GLOB_SUBST
72690    fi
72691
72692    cfgfile=${ofile}T
72693    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
72694    $RM "$cfgfile"
72695
72696    cat <<_LT_EOF >> "$cfgfile"
72697#! $SHELL
72698# Generated automatically by $as_me ($PACKAGE) $VERSION
72699# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
72700# NOTE: Changes made to this file will be lost: look at ltmain.sh.
72701
72702# Provide generalized library-building support services.
72703# Written by Gordon Matzigkeit, 1996
72704
72705# Copyright (C) 2014 Free Software Foundation, Inc.
72706# This is free software; see the source for copying conditions.  There is NO
72707# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
72708
72709# GNU Libtool is free software; you can redistribute it and/or modify
72710# it under the terms of the GNU General Public License as published by
72711# the Free Software Foundation; either version 2 of of the License, or
72712# (at your option) any later version.
72713#
72714# As a special exception to the GNU General Public License, if you
72715# distribute this file as part of a program or library that is built
72716# using GNU Libtool, you may include this file under the  same
72717# distribution terms that you use for the rest of that program.
72718#
72719# GNU Libtool is distributed in the hope that it will be useful, but
72720# WITHOUT ANY WARRANTY; without even the implied warranty of
72721# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
72722# GNU General Public License for more details.
72723#
72724# You should have received a copy of the GNU General Public License
72725# along with this program.  If not, see <http://www.gnu.org/licenses/>.
72726
72727
72728# The names of the tagged configurations supported by this script.
72729available_tags='CXX '
72730
72731# Configured defaults for sys_lib_dlsearch_path munging.
72732: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
72733
72734# ### BEGIN LIBTOOL CONFIG
72735
72736# Which release of libtool.m4 was used?
72737macro_version=$macro_version
72738macro_revision=$macro_revision
72739
72740# Whether or not to build static libraries.
72741build_old_libs=$enable_static
72742
72743# Whether or not to build shared libraries.
72744build_libtool_libs=$enable_shared
72745
72746# What type of objects to build.
72747pic_mode=$pic_mode
72748
72749# Whether or not to optimize for fast installation.
72750fast_install=$enable_fast_install
72751
72752# Shared archive member basename,for filename based shared library versioning on AIX.
72753shared_archive_member_spec=$shared_archive_member_spec
72754
72755# Shell to use when invoking shell scripts.
72756SHELL=$lt_SHELL
72757
72758# An echo program that protects backslashes.
72759ECHO=$lt_ECHO
72760
72761# The PATH separator for the build system.
72762PATH_SEPARATOR=$lt_PATH_SEPARATOR
72763
72764# The host system.
72765host_alias=$host_alias
72766host=$host
72767host_os=$host_os
72768
72769# The build system.
72770build_alias=$build_alias
72771build=$build
72772build_os=$build_os
72773
72774# A sed program that does not truncate output.
72775SED=$lt_SED
72776
72777# Sed that helps us avoid accidentally triggering echo(1) options like -n.
72778Xsed="\$SED -e 1s/^X//"
72779
72780# A grep program that handles long lines.
72781GREP=$lt_GREP
72782
72783# An ERE matcher.
72784EGREP=$lt_EGREP
72785
72786# A literal string matcher.
72787FGREP=$lt_FGREP
72788
72789# A BSD- or MS-compatible name lister.
72790NM=$lt_NM
72791
72792# Whether we need soft or hard links.
72793LN_S=$lt_LN_S
72794
72795# What is the maximum length of a command?
72796max_cmd_len=$max_cmd_len
72797
72798# Object file suffix (normally "o").
72799objext=$ac_objext
72800
72801# Executable file suffix (normally "").
72802exeext=$exeext
72803
72804# whether the shell understands "unset".
72805lt_unset=$lt_unset
72806
72807# turn spaces into newlines.
72808SP2NL=$lt_lt_SP2NL
72809
72810# turn newlines into spaces.
72811NL2SP=$lt_lt_NL2SP
72812
72813# convert \$build file names to \$host format.
72814to_host_file_cmd=$lt_cv_to_host_file_cmd
72815
72816# convert \$build files to toolchain format.
72817to_tool_file_cmd=$lt_cv_to_tool_file_cmd
72818
72819# An object symbol dumper.
72820OBJDUMP=$lt_OBJDUMP
72821
72822# Method to check whether dependent libraries are shared objects.
72823deplibs_check_method=$lt_deplibs_check_method
72824
72825# Command to use when deplibs_check_method = "file_magic".
72826file_magic_cmd=$lt_file_magic_cmd
72827
72828# How to find potential files when deplibs_check_method = "file_magic".
72829file_magic_glob=$lt_file_magic_glob
72830
72831# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
72832want_nocaseglob=$lt_want_nocaseglob
72833
72834# DLL creation program.
72835DLLTOOL=$lt_DLLTOOL
72836
72837# Command to associate shared and link libraries.
72838sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
72839
72840# The archiver.
72841AR=$lt_AR
72842
72843# Flags to create an archive.
72844AR_FLAGS=$lt_AR_FLAGS
72845
72846# How to feed a file listing to the archiver.
72847archiver_list_spec=$lt_archiver_list_spec
72848
72849# A symbol stripping program.
72850STRIP=$lt_STRIP
72851
72852# Commands used to install an old-style archive.
72853RANLIB=$lt_RANLIB
72854old_postinstall_cmds=$lt_old_postinstall_cmds
72855old_postuninstall_cmds=$lt_old_postuninstall_cmds
72856
72857# Whether to use a lock for old archive extraction.
72858lock_old_archive_extraction=$lock_old_archive_extraction
72859
72860# A C compiler.
72861LTCC=$lt_CC
72862
72863# LTCC compiler flags.
72864LTCFLAGS=$lt_CFLAGS
72865
72866# Take the output of nm and produce a listing of raw symbols and C names.
72867global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
72868
72869# Transform the output of nm in a proper C declaration.
72870global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
72871
72872# Transform the output of nm into a list of symbols to manually relocate.
72873global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
72874
72875# Transform the output of nm in a C name address pair.
72876global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
72877
72878# Transform the output of nm in a C name address pair when lib prefix is needed.
72879global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
72880
72881# The name lister interface.
72882nm_interface=$lt_lt_cv_nm_interface
72883
72884# Specify filename containing input files for \$NM.
72885nm_file_list_spec=$lt_nm_file_list_spec
72886
72887# The root where to search for dependent libraries,and where our libraries should be installed.
72888lt_sysroot=$lt_sysroot
72889
72890# Command to truncate a binary pipe.
72891lt_truncate_bin=$lt_lt_cv_truncate_bin
72892
72893# The name of the directory that contains temporary libtool files.
72894objdir=$objdir
72895
72896# Used to examine libraries when file_magic_cmd begins with "file".
72897MAGIC_CMD=$MAGIC_CMD
72898
72899# Must we lock files when doing compilation?
72900need_locks=$lt_need_locks
72901
72902# Manifest tool.
72903MANIFEST_TOOL=$lt_MANIFEST_TOOL
72904
72905# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
72906DSYMUTIL=$lt_DSYMUTIL
72907
72908# Tool to change global to local symbols on Mac OS X.
72909NMEDIT=$lt_NMEDIT
72910
72911# Tool to manipulate fat objects and archives on Mac OS X.
72912LIPO=$lt_LIPO
72913
72914# ldd/readelf like tool for Mach-O binaries on Mac OS X.
72915OTOOL=$lt_OTOOL
72916
72917# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
72918OTOOL64=$lt_OTOOL64
72919
72920# Old archive suffix (normally "a").
72921libext=$libext
72922
72923# Shared library suffix (normally ".so").
72924shrext_cmds=$lt_shrext_cmds
72925
72926# The commands to extract the exported symbol list from a shared archive.
72927extract_expsyms_cmds=$lt_extract_expsyms_cmds
72928
72929# Variables whose values should be saved in libtool wrapper scripts and
72930# restored at link time.
72931variables_saved_for_relink=$lt_variables_saved_for_relink
72932
72933# Do we need the "lib" prefix for modules?
72934need_lib_prefix=$need_lib_prefix
72935
72936# Do we need a version for libraries?
72937need_version=$need_version
72938
72939# Library versioning type.
72940version_type=$version_type
72941
72942# Shared library runtime path variable.
72943runpath_var=$runpath_var
72944
72945# Shared library path variable.
72946shlibpath_var=$shlibpath_var
72947
72948# Is shlibpath searched before the hard-coded library search path?
72949shlibpath_overrides_runpath=$shlibpath_overrides_runpath
72950
72951# Format of library name prefix.
72952libname_spec=$lt_libname_spec
72953
72954# List of archive names.  First name is the real one, the rest are links.
72955# The last name is the one that the linker finds with -lNAME
72956library_names_spec=$lt_library_names_spec
72957
72958# The coded name of the library, if different from the real name.
72959soname_spec=$lt_soname_spec
72960
72961# Permission mode override for installation of shared libraries.
72962install_override_mode=$lt_install_override_mode
72963
72964# Command to use after installation of a shared archive.
72965postinstall_cmds=$lt_postinstall_cmds
72966
72967# Command to use after uninstallation of a shared archive.
72968postuninstall_cmds=$lt_postuninstall_cmds
72969
72970# Commands used to finish a libtool library installation in a directory.
72971finish_cmds=$lt_finish_cmds
72972
72973# As "finish_cmds", except a single script fragment to be evaled but
72974# not shown.
72975finish_eval=$lt_finish_eval
72976
72977# Whether we should hardcode library paths into libraries.
72978hardcode_into_libs=$hardcode_into_libs
72979
72980# Compile-time system search path for libraries.
72981sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
72982
72983# Detected run-time system search path for libraries.
72984sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
72985
72986# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
72987configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
72988
72989# Whether dlopen is supported.
72990dlopen_support=$enable_dlopen
72991
72992# Whether dlopen of programs is supported.
72993dlopen_self=$enable_dlopen_self
72994
72995# Whether dlopen of statically linked programs is supported.
72996dlopen_self_static=$enable_dlopen_self_static
72997
72998# Commands to strip libraries.
72999old_striplib=$lt_old_striplib
73000striplib=$lt_striplib
73001
73002
73003# The linker used to build libraries.
73004LD=$lt_LD
73005
73006# How to create reloadable object files.
73007reload_flag=$lt_reload_flag
73008reload_cmds=$lt_reload_cmds
73009
73010# Commands used to build an old-style archive.
73011old_archive_cmds=$lt_old_archive_cmds
73012
73013# A language specific compiler.
73014CC=$lt_compiler
73015
73016# Is the compiler the GNU compiler?
73017with_gcc=$GCC
73018
73019# Compiler flag to turn off builtin functions.
73020no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
73021
73022# Additional compiler flags for building library objects.
73023pic_flag=$lt_lt_prog_compiler_pic
73024
73025# How to pass a linker flag through the compiler.
73026wl=$lt_lt_prog_compiler_wl
73027
73028# Compiler flag to prevent dynamic linking.
73029link_static_flag=$lt_lt_prog_compiler_static
73030
73031# Does compiler simultaneously support -c and -o options?
73032compiler_c_o=$lt_lt_cv_prog_compiler_c_o
73033
73034# Whether or not to add -lc for building shared libraries.
73035build_libtool_need_lc=$archive_cmds_need_lc
73036
73037# Whether or not to disallow shared libs when runtime libs are static.
73038allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
73039
73040# Compiler flag to allow reflexive dlopens.
73041export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
73042
73043# Compiler flag to generate shared objects directly from archives.
73044whole_archive_flag_spec=$lt_whole_archive_flag_spec
73045
73046# Whether the compiler copes with passing no objects directly.
73047compiler_needs_object=$lt_compiler_needs_object
73048
73049# Create an old-style archive from a shared archive.
73050old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
73051
73052# Create a temporary old-style archive to link instead of a shared archive.
73053old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
73054
73055# Commands used to build a shared archive.
73056archive_cmds=$lt_archive_cmds
73057archive_expsym_cmds=$lt_archive_expsym_cmds
73058
73059# Commands used to build a loadable module if different from building
73060# a shared archive.
73061module_cmds=$lt_module_cmds
73062module_expsym_cmds=$lt_module_expsym_cmds
73063
73064# Whether we are building with GNU ld or not.
73065with_gnu_ld=$lt_with_gnu_ld
73066
73067# Flag that allows shared libraries with undefined symbols to be built.
73068allow_undefined_flag=$lt_allow_undefined_flag
73069
73070# Flag that enforces no undefined symbols.
73071no_undefined_flag=$lt_no_undefined_flag
73072
73073# Flag to hardcode \$libdir into a binary during linking.
73074# This must work even if \$libdir does not exist
73075hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
73076
73077# Whether we need a single "-rpath" flag with a separated argument.
73078hardcode_libdir_separator=$lt_hardcode_libdir_separator
73079
73080# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
73081# DIR into the resulting binary.
73082hardcode_direct=$hardcode_direct
73083
73084# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
73085# DIR into the resulting binary and the resulting library dependency is
73086# "absolute",i.e impossible to change by setting \$shlibpath_var if the
73087# library is relocated.
73088hardcode_direct_absolute=$hardcode_direct_absolute
73089
73090# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
73091# into the resulting binary.
73092hardcode_minus_L=$hardcode_minus_L
73093
73094# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
73095# into the resulting binary.
73096hardcode_shlibpath_var=$hardcode_shlibpath_var
73097
73098# Set to "yes" if building a shared library automatically hardcodes DIR
73099# into the library and all subsequent libraries and executables linked
73100# against it.
73101hardcode_automatic=$hardcode_automatic
73102
73103# Set to yes if linker adds runtime paths of dependent libraries
73104# to runtime path list.
73105inherit_rpath=$inherit_rpath
73106
73107# Whether libtool must link a program against all its dependency libraries.
73108link_all_deplibs=$link_all_deplibs
73109
73110# Set to "yes" if exported symbols are required.
73111always_export_symbols=$always_export_symbols
73112
73113# The commands to list exported symbols.
73114export_symbols_cmds=$lt_export_symbols_cmds
73115
73116# Symbols that should not be listed in the preloaded symbols.
73117exclude_expsyms=$lt_exclude_expsyms
73118
73119# Symbols that must always be exported.
73120include_expsyms=$lt_include_expsyms
73121
73122# Commands necessary for linking programs (against libraries) with templates.
73123prelink_cmds=$lt_prelink_cmds
73124
73125# Commands necessary for finishing linking programs.
73126postlink_cmds=$lt_postlink_cmds
73127
73128# Specify filename containing input files.
73129file_list_spec=$lt_file_list_spec
73130
73131# How to hardcode a shared library path into an executable.
73132hardcode_action=$hardcode_action
73133
73134# The directories searched by this compiler when creating a shared library.
73135compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
73136
73137# Dependencies to place before and after the objects being linked to
73138# create a shared library.
73139predep_objects=$lt_predep_objects
73140postdep_objects=$lt_postdep_objects
73141predeps=$lt_predeps
73142postdeps=$lt_postdeps
73143
73144# The library search path used internally by the compiler when linking
73145# a shared library.
73146compiler_lib_search_path=$lt_compiler_lib_search_path
73147
73148# ### END LIBTOOL CONFIG
73149
73150_LT_EOF
73151
73152    cat <<'_LT_EOF' >> "$cfgfile"
73153
73154# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
73155
73156# func_munge_path_list VARIABLE PATH
73157# -----------------------------------
73158# VARIABLE is name of variable containing _space_ separated list of
73159# directories to be munged by the contents of PATH, which is string
73160# having a format:
73161# "DIR[:DIR]:"
73162#       string "DIR[ DIR]" will be prepended to VARIABLE
73163# ":DIR[:DIR]"
73164#       string "DIR[ DIR]" will be appended to VARIABLE
73165# "DIRP[:DIRP]::[DIRA:]DIRA"
73166#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
73167#       "DIRA[ DIRA]" will be appended to VARIABLE
73168# "DIR[:DIR]"
73169#       VARIABLE will be replaced by "DIR[ DIR]"
73170func_munge_path_list ()
73171{
73172    case x$2 in
73173    x)
73174        ;;
73175    *:)
73176        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
73177        ;;
73178    x:*)
73179        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
73180        ;;
73181    *::*)
73182        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
73183        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
73184        ;;
73185    *)
73186        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
73187        ;;
73188    esac
73189}
73190
73191
73192# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
73193func_cc_basename ()
73194{
73195    for cc_temp in $*""; do
73196      case $cc_temp in
73197        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
73198        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
73199        \-*) ;;
73200        *) break;;
73201      esac
73202    done
73203    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
73204}
73205
73206
73207# ### END FUNCTIONS SHARED WITH CONFIGURE
73208
73209_LT_EOF
73210
73211  case $host_os in
73212  aix3*)
73213    cat <<\_LT_EOF >> "$cfgfile"
73214# AIX sometimes has problems with the GCC collect2 program.  For some
73215# reason, if we set the COLLECT_NAMES environment variable, the problems
73216# vanish in a puff of smoke.
73217if test set != "${COLLECT_NAMES+set}"; then
73218  COLLECT_NAMES=
73219  export COLLECT_NAMES
73220fi
73221_LT_EOF
73222    ;;
73223  esac
73224
73225
73226ltmain=$ac_aux_dir/ltmain.sh
73227
73228
73229  # We use sed instead of cat because bash on DJGPP gets confused if
73230  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
73231  # text mode, it properly converts lines to CR/LF.  This bash problem
73232  # is reportedly fixed, but why not run on old versions too?
73233  sed '$q' "$ltmain" >> "$cfgfile" \
73234     || (rm -f "$cfgfile"; exit 1)
73235
73236   mv -f "$cfgfile" "$ofile" ||
73237    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
73238  chmod +x "$ofile"
73239
73240
73241    cat <<_LT_EOF >> "$ofile"
73242
73243# ### BEGIN LIBTOOL TAG CONFIG: CXX
73244
73245# The linker used to build libraries.
73246LD=$lt_LD_CXX
73247
73248# How to create reloadable object files.
73249reload_flag=$lt_reload_flag_CXX
73250reload_cmds=$lt_reload_cmds_CXX
73251
73252# Commands used to build an old-style archive.
73253old_archive_cmds=$lt_old_archive_cmds_CXX
73254
73255# A language specific compiler.
73256CC=$lt_compiler_CXX
73257
73258# Is the compiler the GNU compiler?
73259with_gcc=$GCC_CXX
73260
73261# Compiler flag to turn off builtin functions.
73262no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
73263
73264# Additional compiler flags for building library objects.
73265pic_flag=$lt_lt_prog_compiler_pic_CXX
73266
73267# How to pass a linker flag through the compiler.
73268wl=$lt_lt_prog_compiler_wl_CXX
73269
73270# Compiler flag to prevent dynamic linking.
73271link_static_flag=$lt_lt_prog_compiler_static_CXX
73272
73273# Does compiler simultaneously support -c and -o options?
73274compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
73275
73276# Whether or not to add -lc for building shared libraries.
73277build_libtool_need_lc=$archive_cmds_need_lc_CXX
73278
73279# Whether or not to disallow shared libs when runtime libs are static.
73280allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
73281
73282# Compiler flag to allow reflexive dlopens.
73283export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
73284
73285# Compiler flag to generate shared objects directly from archives.
73286whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
73287
73288# Whether the compiler copes with passing no objects directly.
73289compiler_needs_object=$lt_compiler_needs_object_CXX
73290
73291# Create an old-style archive from a shared archive.
73292old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
73293
73294# Create a temporary old-style archive to link instead of a shared archive.
73295old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
73296
73297# Commands used to build a shared archive.
73298archive_cmds=$lt_archive_cmds_CXX
73299archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
73300
73301# Commands used to build a loadable module if different from building
73302# a shared archive.
73303module_cmds=$lt_module_cmds_CXX
73304module_expsym_cmds=$lt_module_expsym_cmds_CXX
73305
73306# Whether we are building with GNU ld or not.
73307with_gnu_ld=$lt_with_gnu_ld_CXX
73308
73309# Flag that allows shared libraries with undefined symbols to be built.
73310allow_undefined_flag=$lt_allow_undefined_flag_CXX
73311
73312# Flag that enforces no undefined symbols.
73313no_undefined_flag=$lt_no_undefined_flag_CXX
73314
73315# Flag to hardcode \$libdir into a binary during linking.
73316# This must work even if \$libdir does not exist
73317hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
73318
73319# Whether we need a single "-rpath" flag with a separated argument.
73320hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
73321
73322# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
73323# DIR into the resulting binary.
73324hardcode_direct=$hardcode_direct_CXX
73325
73326# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
73327# DIR into the resulting binary and the resulting library dependency is
73328# "absolute",i.e impossible to change by setting \$shlibpath_var if the
73329# library is relocated.
73330hardcode_direct_absolute=$hardcode_direct_absolute_CXX
73331
73332# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
73333# into the resulting binary.
73334hardcode_minus_L=$hardcode_minus_L_CXX
73335
73336# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
73337# into the resulting binary.
73338hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
73339
73340# Set to "yes" if building a shared library automatically hardcodes DIR
73341# into the library and all subsequent libraries and executables linked
73342# against it.
73343hardcode_automatic=$hardcode_automatic_CXX
73344
73345# Set to yes if linker adds runtime paths of dependent libraries
73346# to runtime path list.
73347inherit_rpath=$inherit_rpath_CXX
73348
73349# Whether libtool must link a program against all its dependency libraries.
73350link_all_deplibs=$link_all_deplibs_CXX
73351
73352# Set to "yes" if exported symbols are required.
73353always_export_symbols=$always_export_symbols_CXX
73354
73355# The commands to list exported symbols.
73356export_symbols_cmds=$lt_export_symbols_cmds_CXX
73357
73358# Symbols that should not be listed in the preloaded symbols.
73359exclude_expsyms=$lt_exclude_expsyms_CXX
73360
73361# Symbols that must always be exported.
73362include_expsyms=$lt_include_expsyms_CXX
73363
73364# Commands necessary for linking programs (against libraries) with templates.
73365prelink_cmds=$lt_prelink_cmds_CXX
73366
73367# Commands necessary for finishing linking programs.
73368postlink_cmds=$lt_postlink_cmds_CXX
73369
73370# Specify filename containing input files.
73371file_list_spec=$lt_file_list_spec_CXX
73372
73373# How to hardcode a shared library path into an executable.
73374hardcode_action=$hardcode_action_CXX
73375
73376# The directories searched by this compiler when creating a shared library.
73377compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
73378
73379# Dependencies to place before and after the objects being linked to
73380# create a shared library.
73381predep_objects=$lt_predep_objects_CXX
73382postdep_objects=$lt_postdep_objects_CXX
73383predeps=$lt_predeps_CXX
73384postdeps=$lt_postdeps_CXX
73385
73386# The library search path used internally by the compiler when linking
73387# a shared library.
73388compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
73389
73390# ### END LIBTOOL TAG CONFIG: CXX
73391_LT_EOF
73392
73393 ;;
73394    "guile/pre-inst-guile":F) chmod +x guile/pre-inst-guile ;;
73395
73396  esac
73397done # for ac_tag
73398
73399
73400as_fn_exit 0
73401_ACEOF
73402ac_clean_files=$ac_clean_files_save
73403
73404test $ac_write_fail = 0 ||
73405  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
73406
73407
73408# configure is writing to config.log, and then calls config.status.
73409# config.status does its own redirection, appending to config.log.
73410# Unfortunately, on DOS this fails, as config.log is still kept open
73411# by configure, so config.status won't be able to write to it; its
73412# output is simply discarded.  So we exec the FD to /dev/null,
73413# effectively closing config.log, so it can be properly (re)opened and
73414# appended to by config.status.  When coming back to configure, we
73415# need to make the FD available again.
73416if test "$no_create" != yes; then
73417  ac_cs_success=:
73418  ac_config_status_args=
73419  test "$silent" = yes &&
73420    ac_config_status_args="$ac_config_status_args --quiet"
73421  exec 5>/dev/null
73422  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
73423  exec 5>>config.log
73424  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
73425  # would make configure fail if this is the last instruction.
73426  $ac_cs_success || as_fn_exit 1
73427fi
73428if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
73429  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
73430$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
73431fi
73432
73433
73434{ $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
73435
73436  version:              ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
73437  Host/Target system:   ${host}
73438  Build system:         ${build}
73439  Install prefix:       ${prefix}
73440  Compiler:             ${CC}
73441  Valgrind:             $opt_valgrind_tests ${VALGRIND}
73442  CFlags:               ${CFLAGS}
73443  Library types:        Shared=${enable_shared}, Static=${enable_static}
73444  Local libopts:        ${included_libopts}
73445  Local libtasn1:       ${included_libtasn1}
73446  Local unistring:      ${included_unistring}
73447  Use nettle-mini:      ${mini_nettle}
73448  Documentation:        ${enable_doc} (manpages: ${enable_manpages})
73449" >&5
73450$as_echo "$as_me: summary of build options:
73451
73452  version:              ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
73453  Host/Target system:   ${host}
73454  Build system:         ${build}
73455  Install prefix:       ${prefix}
73456  Compiler:             ${CC}
73457  Valgrind:             $opt_valgrind_tests ${VALGRIND}
73458  CFlags:               ${CFLAGS}
73459  Library types:        Shared=${enable_shared}, Static=${enable_static}
73460  Local libopts:        ${included_libopts}
73461  Local libtasn1:       ${included_libtasn1}
73462  Local unistring:      ${included_unistring}
73463  Use nettle-mini:      ${mini_nettle}
73464  Documentation:        ${enable_doc} (manpages: ${enable_manpages})
73465" >&6;}
73466
73467{ $as_echo "$as_me:${as_lineno-$LINENO}: External hardware support:
73468
73469  /dev/crypto:          $enable_cryptodev
73470  Hardware accel:       $hw_accel
73471  Padlock accel:        $use_padlock
73472  Random gen. variant:  $rnd_variant
73473  PKCS#11 support:      $with_p11_kit
73474  TPM support:          $with_tpm
73475" >&5
73476$as_echo "$as_me: External hardware support:
73477
73478  /dev/crypto:          $enable_cryptodev
73479  Hardware accel:       $hw_accel
73480  Padlock accel:        $use_padlock
73481  Random gen. variant:  $rnd_variant
73482  PKCS#11 support:      $with_p11_kit
73483  TPM support:          $with_tpm
73484" >&6;}
73485if test -n "$ac_trousers_lib";then
73486{ $as_echo "$as_me:${as_lineno-$LINENO}:
73487  TPM library:          $ac_trousers_lib
73488" >&5
73489$as_echo "$as_me:
73490  TPM library:          $ac_trousers_lib
73491" >&6;}
73492fi
73493
73494{ $as_echo "$as_me:${as_lineno-$LINENO}: Optional features:
73495(note that included applications might not compile properly
73496if features are disabled)
73497
73498  SSL3.0 support:       $ac_enable_ssl3
73499  SSL2.0 client hello:  $ac_enable_ssl2
73500  Allow SHA1 sign:      $ac_allow_sha1
73501  DTLS-SRTP support:    $ac_enable_srtp
73502  ALPN support:         $ac_enable_alpn
73503  OCSP support:         $ac_enable_ocsp
73504  SRP support:          $ac_enable_srp
73505  PSK support:          $ac_enable_psk
73506  DHE support:          $ac_enable_dhe
73507  ECDHE support:        $ac_enable_ecdhe
73508  GOST support:         $ac_enable_gost
73509  Anon auth support:    $ac_enable_anon
73510  Heartbeat support:    $ac_enable_heartbeat
73511  IDNA support:         $idna_support
73512  Non-SuiteB curves:    $enable_non_suiteb
73513  FIPS140 mode:         $enable_fips
73514  Strict DER time:	$ac_strict_der_time
73515" >&5
73516$as_echo "$as_me: Optional features:
73517(note that included applications might not compile properly
73518if features are disabled)
73519
73520  SSL3.0 support:       $ac_enable_ssl3
73521  SSL2.0 client hello:  $ac_enable_ssl2
73522  Allow SHA1 sign:      $ac_allow_sha1
73523  DTLS-SRTP support:    $ac_enable_srtp
73524  ALPN support:         $ac_enable_alpn
73525  OCSP support:         $ac_enable_ocsp
73526  SRP support:          $ac_enable_srp
73527  PSK support:          $ac_enable_psk
73528  DHE support:          $ac_enable_dhe
73529  ECDHE support:        $ac_enable_ecdhe
73530  GOST support:         $ac_enable_gost
73531  Anon auth support:    $ac_enable_anon
73532  Heartbeat support:    $ac_enable_heartbeat
73533  IDNA support:         $idna_support
73534  Non-SuiteB curves:    $enable_non_suiteb
73535  FIPS140 mode:         $enable_fips
73536  Strict DER time:	$ac_strict_der_time
73537" >&6;}
73538
73539{ $as_echo "$as_me:${as_lineno-$LINENO}: Optional libraries:
73540
73541  Guile wrappers:       $opt_guile_bindings
73542  C++ library:          $use_cxx
73543  DANE library:         $enable_dane
73544  OpenSSL compat:       $enable_openssl
73545" >&5
73546$as_echo "$as_me: Optional libraries:
73547
73548  Guile wrappers:       $opt_guile_bindings
73549  C++ library:          $use_cxx
73550  DANE library:         $enable_dane
73551  OpenSSL compat:       $enable_openssl
73552" >&6;}
73553
73554{ $as_echo "$as_me:${as_lineno-$LINENO}: System files:
73555
73556  Trust store pkcs11:   $with_default_trust_store_pkcs11
73557  Trust store dir:      $with_default_trust_store_dir
73558  Trust store file:     $with_default_trust_store_file
73559  Blacklist file:       $with_default_blacklist_file
73560  CRL file:             $with_default_crl_file
73561  Configuration file:   $system_config_file
73562  DNSSEC root key file: $unbound_root_key_file
73563" >&5
73564$as_echo "$as_me: System files:
73565
73566  Trust store pkcs11:   $with_default_trust_store_pkcs11
73567  Trust store dir:      $with_default_trust_store_dir
73568  Trust store file:     $with_default_trust_store_file
73569  Blacklist file:       $with_default_blacklist_file
73570  CRL file:             $with_default_crl_file
73571  Configuration file:   $system_config_file
73572  DNSSEC root key file: $unbound_root_key_file
73573" >&6;}
73574
73575if test ! -f "$unbound_root_key_file"; then
73576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
73577***
73578*** The DNSSEC root key file in $unbound_root_key_file was not found.
73579*** This file is needed for the verification of DNSSEC responses.
73580*** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
73581*** to generate or update it.
73582*** " >&5
73583$as_echo "$as_me: WARNING:
73584***
73585*** The DNSSEC root key file in $unbound_root_key_file was not found.
73586*** This file is needed for the verification of DNSSEC responses.
73587*** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
73588*** to generate or update it.
73589*** " >&2;}
73590fi
73591
73592if test "${enable_static}" != no;then
73593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
73594*** GnuTLS will be build as a static library. That means that library
73595*** constructors for gnutls_global_init will not be made available to
73596*** linking applications. If you are building that library for arbitrary
73597*** applications to link, do not enable static linking.
73598" >&5
73599$as_echo "$as_me: WARNING:
73600*** GnuTLS will be build as a static library. That means that library
73601*** constructors for gnutls_global_init will not be made available to
73602*** linking applications. If you are building that library for arbitrary
73603*** applications to link, do not enable static linking.
73604" >&2;}
73605fi
73606
73607if test "$enable_fuzzer_target" != "no";then
73608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
73609*** This version of the library is for fuzzying purposes and is intentionally broken!
73610" >&5
73611$as_echo "$as_me: WARNING:
73612*** This version of the library is for fuzzying purposes and is intentionally broken!
73613" >&2;}
73614fi
73615